1 Windows cmd kungfu

type myfile   ..display
type *.txt    ..multiple
type my1 my2  ..multiple
type my1 | find /i "pass"  ..search-in-file
type my1 | findstr [regex]
more my1      ..onepage-at-a-time
set          ..view env vars
set path     ..view path
set username ..view usern

dir /b /s mydir\file
dir /b /s c:\pass.txt
dir /b /s %systemroot%\hosts
b - bare 
s - subdir/recurse

search all of c: for 'pass.txt' even subfolders
wildcards are supported too

--------------------
--------------------
Software Inventory Search:
dir /s "c:\Program Files"
dir /s "c:\Program Files (x86)"

Read Files

Environment

Search:

  • b - bare

  • s - subdir/recurse

Windows Users

AD Lockout Settings

RDP Trick

Windows Password policy

Windows registry

Windows smb

Windows services

Windows psexec

Windows schedule tasks

Windows Services & Processes

Windows Firewall

runas

  • Creates a reverse shell from a windows server to Kali

  • Using netcat for Windows and Runas.exe:

Last updated

Was this helpful?