• API
• FAQ
• Tools
• Archive
SHARE
TWEET

Script to generate http://pastebin.com/T7KCsQcC

a guest Jan 17th, 2014 221 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. # Docs: http://pythonhosted.org/bitstring/
2. from bitstring import BitArray, Bits
3.
7.
8. _2_bits = BitArray(hex=onion2)
9. _2_bits_r = BitArray(hex=onion2)
10. _2_bits_r.reverse()
11.
12. _3_bits = BitArray(hex=onion3)
13. _3_bits_r = BitArray(hex=onion3)
14. _3_bits_r.reverse()
15.
16. _4_bits = BitArray(hex=onion4)
17. _4_bits_r = BitArray(hex=onion4)
18. _4_bits_r.reverse()
19.
20. xored = {
21.     '2^3^4': _2_bits ^ _3_bits ^ _4_bits,
22.     '2^3': _2_bits ^ _3_bits,
23.     '2^4': _2_bits ^ _4_bits,
24.     '3^4': _3_bits ^ _4_bits,
25.     '2r^3': _2_bits_r ^ _3_bits,
26.     '2r^4': _2_bits_r ^ _4_bits,
27.     '2r^3^4': _2_bits_r ^ _3_bits ^ _4_bits,
28.     '2r^3r^4': _2_bits_r ^ _3_bits_r ^ _4_bits,
29.     '2^2r': _2_bits ^ _2_bits_r,
30.     '3^3r': _3_bits ^ _3_bits_r,
31.     '4^4r': _4_bits ^ _4_bits_r,
32.     '(2^2r)^(3^3r)^(4^4r)': (_2_bits ^ _2_bits_r) ^ (_3_bits ^ _3_bits_r) ^ (_4_bits ^ _4_bits_r)
33. }
34.
35. s = ''
36. for k,v in xored.items():
37.     s += "%s\n%s\n\n" % (k,v.hex)
38.
39. f = open('out.txt', 'w')
40. f.write(s)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

Top