Misc. Commands

Miscellaneous Commands

Decode base64/58

echo -n ........base64here........ | base64 -d
echo -n ........base64here........ | base58 -d

Windows hidden files

dir /a     ---> should show hidden folders.
dir /a:d  ---> shows all directories.
dir /a:h  ---> shows all hidden files.

PWD command for Windows

echo shell_exec("echo %cd%");

shell_exec() VS system() VS exec()

shell_exec — Execute command via shell and return the complete output as a string
system     — Execute an external program and display the output
exec       — Execute an external program

# More info here:

List VHD with 7z

7z l filename.vhd

Use PSExec to login to the target.

Located in:

python psexec.py administrator@

Use Evil-Winrm to login to the target

ruby evil-winrm.rb -i -u username -p 'password_here'

Database dump

sqlite3 name_of_the_db.db .dump

Setting PATH

export PATH="/bin:/sbin:/usr/bin:/usr/sbin:$PATH"

Last updated