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
'''Position | |
Find the Name when the Serial is 76876-77776 | |
This problem has several answers. | |
Password is ***p | |
''' | |
import string | |
name = ['g','o','l','u'] | |
serial = [None]*11 |
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
## Fixing wav and generating an img | |
import soundfile as sf | |
import numpy as np | |
from PIL import Image | |
#im = Image.new() | |
#np.set_printoptions(threshold=np.inf) | |
data, samplerate = sf.read('../aaaaaaaaaaaaaaaaaa.wav') |
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
#https://crackmes.one/crackme/5e2e79f933c5d43b8718c5d0 | |
def deobf(enc,k): | |
num = 276606405 + k +1 | |
dec = "" | |
for item in enc: | |
c = ord(item) | |
lev2 = ((c >> 8) ^ num) & 0xff | |
num+=2 | |
dec += (chr(lev2)) |
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
dd = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" | |
get_bin = lambda x: format(x, 'b').zfill(6) | |
enc = "h3dly.DhgeOUeicweL2Zp." | |
n = 4 | |
enc = [enc[i:i+n] for i in range(0, len(enc), n)] | |
#print enc | |
i=0 |
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
def b64From24bit(a, b, c, n): | |
num = c << 16 | b << 8 | a | |
b64enc = "" | |
while (n): | |
b64enc += "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"[num & 63] | |
num >>= 6; | |
n-=1 | |
return b64enc |
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
from z3 import * | |
import time | |
start_time = time.time() | |
s = Solver() | |
enc = ['0x48', '0x5f', '0x36', '0x35', '0x35', '0x25', '0x14', '0x2c', '0x1d', '0x01', '0x03', '0x2d', '0x0c', '0x6f', '0x35', '0x61', '0x7e', '0x34', '0x0a', '0x44', '0x24', '0x2c', '0x4a', '0x46', '0x19', '0x59', '0x5b', '0x0e', '0x78', '0x74', '0x29', '0x13','0x2c'] | |
enc = [int(x,16) for x in enc] | |
inp = [] |
NewerOlder