.

Pillage that drive!

<<

KrisTeason

User avatar

Hero Member
Hero Member

Posts: 531

Joined: Sat Sep 08, 2007 7:48 pm

Post Tue Mar 30, 2010 11:16 am

Pillage that drive!

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
<<

hayabusa

User avatar

Hero Member
Hero Member

Posts: 1704

Joined: Mon Jan 29, 2007 2:59 pm

Post Tue Mar 30, 2010 11:28 am

Re: Pillage that drive!

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

dir /s filename > files.txt

?
~ 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
<<

KrisTeason

User avatar

Hero Member
Hero Member

Posts: 531

Joined: Sat Sep 08, 2007 7:48 pm

Post Tue Mar 30, 2010 11:34 am

Re: Pillage that drive!

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!
<<

hayabusa

User avatar

Hero Member
Hero Member

Posts: 1704

Joined: Mon Jan 29, 2007 2:59 pm

Post Tue Mar 30, 2010 11:41 am

Re: Pillage that drive!

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!
~ 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
<<

rattis

User avatar

Hero Member
Hero Member

Posts: 1187

Joined: Mon Jul 27, 2009 1:25 pm

Post Tue Mar 30, 2010 1:17 pm

Re: Pillage that drive!

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 :)
OSWP, Sec+
<<

n1p

Jr. Member
Jr. Member

Posts: 89

Joined: Tue Mar 16, 2010 5:31 pm

Post Tue Mar 30, 2010 1:40 pm

Re: Pillage that drive!

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 :)

Hope it helps
n1p
<<

hayabusa

User avatar

Hero Member
Hero Member

Posts: 1704

Joined: Mon Jan 29, 2007 2:59 pm

Post Tue Mar 30, 2010 2:00 pm

Re: Pillage that drive!

@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.
~ 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
<<

rattis

User avatar

Hero Member
Hero Member

Posts: 1187

Joined: Mon Jul 27, 2009 1:25 pm

Post Tue Mar 30, 2010 2:58 pm

Re: Pillage that drive!

@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.
OSWP, Sec+
<<

KrisTeason

User avatar

Hero Member
Hero Member

Posts: 531

Joined: Sat Sep 08, 2007 7:48 pm

Post Tue Mar 30, 2010 9:08 pm

Re: Pillage that drive!

@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.
<<

Anquilas

User avatar

Full Member
Full Member

Posts: 169

Joined: Fri Mar 19, 2010 7:50 am

Location: Belgium

Post Wed Mar 31, 2010 2:47 am

Re: Pillage that drive!

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 ;)
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.

Return to Network Pen Testing

Who is online

Users browsing this forum: No registered users and 0 guests

.
Powered by phpBB® Forum Software © phpBB Group.
Designed by ST Software