-
-
Save hmibrahimhasan/0d5f9c8f0a5d2b4062b1d6c87858f8bd to your computer and use it in GitHub Desktop.
Pentesting Cheatsheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Reminders | |
| ------------------------------------------------------------------ | |
| **Remember to gog all the things!** | |
| * Metasploit - spool /home/<username>/.msf3/logs/console.log | |
| * Save contents from each terminal! | |
| * Linux - script myoutput.txt # Type exit to stop | |
| ## Setup | |
| ------------------------------------------------------------------ | |
| ```bash | |
| # Disable network-manager | |
| $ service network-manager stop | |
| ``` | |
| ```bash | |
| # Set IP address | |
| $ ifconfig eth0 192.168.50.12/24 | |
| ``` | |
| ```bash | |
| # Set default gateway | |
| route add default gw 192.168.50.9 | |
| ``` | |
| ### Set DNS servers | |
| ```bash | |
| $ 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