How to generate custom wordlist in hashcat?

1. First, create a custom wordlist (i.e newlist.txt):

2. Run the following command: hashcat --force custom -r /usr/share/hashcat/rules/best64.rule --stdout > hashcat_wordlist.txt

3. Results:

Remember, that you can choose diffrent rules under the /usr/share/hashcat/rules/ directory!

How to upgrade your reverse shell

How to upgrade your reverse shell

If you ever wondering how to upgrade your reverse shell, here is the simple instruction that you can follow:

1. Spawning bash with python: $ python3 -c 'import pty; pty.spawn("/bin/bash")'
2. Backgrounding the remote shell with CTRL-Z: user@remote:~$ ^Z
3. Getting ROWS and COLS within current terminal window: user@local:~$ stty -a | head -n1 | cut -d ';' -f 2-3 | cut -b2- | sed 's/; /\n/'
4. Ignoring hotkeys in the local shell and getting back to the remote: user@local:~$ stty raw -echo; fg
5. Setting correct size for the remote shell: user@remote:~$ stty rows ROWS cols COLS
6. Adding some colors: user@remote:~$ export TERM=xterm-256color
7. Reloading bash to apply the TERM variable: user@remote:~$ exec /bin/bash