-
-
Save leepupu/b82d56bbf3b82143742a to your computer and use it in GitHub Desktop.
ASIS 2015 Rev 125
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 xor_s(s, s2, c=0): | |
sr = "" | |
for a, b in zip(list(s), list(s2)): | |
sr += chr(c^ord(a)^ord(b)) | |
return sr | |
v34 = "hgyGxW" | |
v32 = xor_s(v34, "Vc4LTy", 0x23) | |
v31 = xor_s(v32, "iKWoZL") | |
v33 = xor_s(v34, "GrCRed") | |
v35 = xor_s(v34, "PhfEni", 0x23) | |
v35 = xor_s(v35, v33) | |
print xor_s(v31, v32) | |
print xor_s(v34, v32, 0x23) | |
print xor_s(v34, v33) | |
s = xor_s(v34, v35, 0x23) | |
print xor_s(s, v33) | |
with open("_a\nb\tc_", 'wb') as f: | |
f.write(v31) | |
f.write("\x0a") | |
f.write(v32) | |
f.write("\x0a") | |
f.write(v33) | |
f.write("\x0a") | |
f.write(v34) | |
f.write("\x0a") | |
f.write(v35) | |
# print v31, v32, v33, v34, v35 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment