hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

Full Version: Searching Ftp
kidrockers71
besides the long search in flashfxp does anyone have a bat they can post that will tell u all the rars on a pc from ftp command

thnx if u do and thnx if u dong...hehe
ThrillKill
bat file

dir /a /s c:\*.rar >> rarfiles.txt

change the c:\ to any other dir you like to scan it should create a txt file with all the rar files and where they are enjoy
Sh4dowWalker
Here's a bit more universal version of what ThrillKill posted:

RARFinder.bat
CODE

dir /a /s %1:\*.rar >> rarfiles.txt

Now you only need to enter the letter of the drive as a parameter of this bat file. No need to edit it each time, eg.:
CODE

RARFinder.bat c

RARFinder.bat is your name of the bat file - you can change this to anything you want.


EDIT:
BTW. wouldn't it be much simplier to use FlashFXP built-in "Find Files on FTP serwer" feature? wink.gif
CraZy_A
QUOTE (Sh4dowWalker @ Sep 12 2003, 03:48 PM)
Here's a bit more universal version of what ThrillKill posted:

RARFinder.bat
CODE

dir /a /s %1:\*.rar >> rarfiles.txt

Now you only need to enter the letter of the drive as a parameter of this bat file. No need to edit it each time, eg.:
CODE

RARFinder.bat c

RARFinder.bat is your name of the bat file - you can change this to anything you want.


EDIT:
BTW. wouldn't it be much simplier to use FlashFXP built-in "Find Files on FTP serwer" feature? wink.gif

ok... now you confused your self m8... that batch file will work on stros or any dos shell
but not on a public ftp
so yes search with the flashfxp option for pubs
Sh4dowWalker
Hey CraZy_A, i've made just some little modifications to ThrillKill bat example. This way you don't need to edit the file each time you want to use it for a different disk. And yes it won't work on public ftp's... unless admin forgot (or did this for some purpose but i can't imagine why) to remove Execute attrib:P cool.gif
CraZy_A
hmm execute on linux pubs??? nope...
execute on M$ FTP Service? pffff they prolly dont know how to code this option lol
not many servers support execute... servu does but most of anonymous servu ftps are missconfigured wizard genarated accounts that have only upload\download premissions and no more

btw what the /a switch does?
Sh4dowWalker
QUOTE (CraZy_A @ Sep 13 2003, 08:58 PM)
hmm execute on linux pubs??? nope...
execute on M$ FTP Service? pffff they prolly dont know how to code this option lol
not many servers support execute... servu does but most of anonymous servu ftps are missconfigured wizard genarated accounts that have only upload\download premissions and no more

btw what the /a switch does?

dir with "/a" switch (alone - not with 'hsdar' attributes) shows you all files including system and hidden files.
So in my example it looks for all rar files (hidden and normal) on given disk. Not many ppl are hiding rar archives but who knows what you can find smile.gif
CraZy_A
oh.. cool thanks for info...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.