Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hmibrahimhasan/0d5f9c8f0a5d2b4062b1d6c87858f8bd to your computer and use it in GitHub Desktop.
Save hmibrahimhasan/0d5f9c8f0a5d2b4062b1d6c87858f8bd to your computer and use it in GitHub Desktop.
Pentesting Cheatsheet

Reminders


Remember to gog all the things!

  • Metasploit - spool /home//.msf3/logs/console.log
  • Save contents from each terminal!
  • Linux - script myoutput.txt # Type exit to stop

Setup


# Disable network-manager
$ service network-manager stop
# Set IP address
$ ifconfig eth0 192.168.50.12/24
# Set default gateway
route add default gw 192.168.50.9

Set DNS servers

$ echo "nameserver 192.168.100.2" >> /etc/resolv.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment