Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 37 guests and 2 members online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Network Pen Testingarrow Pillage that drive!
EH-Net
May 19, 2013, 01:53:23 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Pillage that drive!  (Read 5650 times)
0 Members and 1 Guest are viewing this topic.
xXxKrisxXx
Hero Member
*****
Offline Offline

Posts: 512



View Profile
« on: March 30, 2010, 11:16:16 AM »

Hey all,

I had a quick question - could someone recommend a stand alone windows executable that can be uploaded to a box and utilized via command line to search for particular files? What I'm looking for is a windows equivalent to the locate command. Any help would be appreciated, thanks in advanced!

Kris
Logged

eCPPT, GCIH, OSCP, OSWP
hayabusa
Hero Member
*****
Offline Offline

Posts: 1630



View Profile
« Reply #1 on: March 30, 2010, 11:28:54 AM »

So you're looking for something more detailed than simply using:

dir /s filename > files.txt

?

Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
xXxKrisxXx
Hero Member
*****
Offline Offline

Posts: 512



View Profile
« Reply #2 on: March 30, 2010, 11:34:23 AM »

You know what - I actually think that will work. I was looking for a quick way to see all txt files on a box. I think dir /s *.*txt > files.txt will do. Thanks!
Logged

eCPPT, GCIH, OSCP, OSWP
hayabusa
Hero Member
*****
Offline Offline

Posts: 1630



View Profile
« Reply #3 on: March 30, 2010, 11:41:09 AM »

No worries... sometimes, it's the easiest things that slip our minds, huh?  <grin>

If I think of anything easier / more formal, I'll post, but the nice thing with this is, no code to download, no extra time, no extra risk of detection, etc...

Cheers, Kris!
Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
chrisj
Hero Member
*****
Offline Offline

Posts: 1163


View Profile WWW
« Reply #4 on: March 30, 2010, 01:17:47 PM »

GnuWin32 gives you gnu tools in windows without emulation. there is always cygwin, I install it on every computer I build, including servers. I use it mostly for grep Smiley
Logged

OSWP, Sec+
n1p
Jr. Member
**
Offline Offline

Posts: 89


View Profile WWW
« Reply #5 on: March 30, 2010, 01:40:25 PM »

For command line reference and knowledge in a range of OS, I would suggest looking at http://blog.commandlinekungfu.com

Always helpful in a situation, where you are not quite aware of the inbuilt OS offerings available Smiley

Hope it helps
n1p
Logged
hayabusa
Hero Member
*****
Offline Offline

Posts: 1630



View Profile
« Reply #6 on: March 30, 2010, 02:00:21 PM »

@chrisj - I think (maybe I'm wrong, but) he wanted something he could use for a pentest, where he's already accessed a remote target.  To me, I wouldn't want to install or add anything extra to a machine, if I don't 'need' to, when I can just use the built-in commands within the OS, and push from my scripts, etc.

As for my own machines, I agree with you, though, on the usefulness of GnuWin32 and cygwin...  I run both, on my production machines and my lab boxes.
Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
chrisj
Hero Member
*****
Offline Offline

Posts: 1163


View Profile WWW
« Reply #7 on: March 30, 2010, 02:58:00 PM »

@hayabusa - I wasn't thinking along the lines of a pen-test. I've been dealing with the mundane world lately thinking servers and networking, without the pen-test part.

Could always run the command (cygwin / wingnu32) from his box on the other box (he's already showing network traffic to it by connecting to it).

Over the long weekend, I have to start a script that will look at dive usage against my windows based filer.  basically for x in ls -l do du -csh \\server\dir.

Just an idea.
Logged

OSWP, Sec+
xXxKrisxXx
Hero Member
*****
Offline Offline

Posts: 512



View Profile
« Reply #8 on: March 30, 2010, 09:08:01 PM »

@n1p - Thanks. Didn't know ED makes post on that blog, I'll bookmark it.

@hayabusa - Thanks again. Was just looking for it for a pentest.

@chrisj - I'll have to look into that, thanks for the link.
Logged

eCPPT, GCIH, OSCP, OSWP
Synquell
Full Member
***
Offline Offline

Posts: 169



View Profile
« Reply #9 on: March 31, 2010, 02:47:01 AM »

I've had quite a good experience at work with UnxUtils
http://unxutils.sourceforge.net/

Just in case Cygwin and winGNU32 don't carry your fancy anymore Wink
Logged

Twitter: https://twitter.com/dietervds
Blog: https://synquell.wordpress.com (not much there yet)

The beginning of knowledge is the discovery of something we do not understand.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.069 seconds with 22 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.