SHARE
TWEET

Untitled

a guest Jan 15th, 2014 327 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.  
  4. onion2 = '634292ba49fe336edada779a34054a335c2ec12c8bbaed4b92dcc05efe98f76abffdc2389bdb9de2cf20c009acdc1945ab095a52609a5c219afd5f3b3edf10fcb25950666dfe8d8c433cd10c0b4c72efdfe12c6270d5cfde291f9cf0d73cb1211140136e4057380c963d70c76948d9cf6775960cf98fbafa435c44015c5959837a0f8d9f46e094f27c5797b7f8ab49bf28fa674d2ad2f726e197839956921dab29724cd48e1a81fc9bab3565f7513e3e368cd0327b47cf595afebb78d6b5bca92ba021cd6734f4362a0b341f359157173b53d49ea5dff5889d2c9de6b0d7e8c615286ce596bfa83f50b6eeabd153aaf50cd75f39929ba11fb0f8e8d611442846'
  5. onion3 = '87de5b7fa26ab85d2256c453e7f5bc3ac7f25ee743297817febd7741ededf07ca0c7e8b1788ea4131441a8f71c63943d8b56aea6a45159e2f59f9a194af23eaabf9de0f3123c041c882d5b7e03e17ac49be67cef29fbc7786e3bda321a176498835f6198ef22e81c30d44281cd217f7a46f58c84dd7b29b941403ecd75c0c735d20266121f875aa8dec28f32fc153b1393e143fc71616945eea3c10d6820bd631cf775cf3c1f27925b4a2da655f783f7616f3359b23cff6fb5cb69bcb745c55dff439f7eb6a4094bd302b65a84360a62f94c8b010250fcc431c190d6ed8cc8a3bfce37dddb24b93f502ad83c5fa21923189d8be7a6127c4105fcf0e5275286f2'
  6. onion4 = 'bf1d5574ca36efd524e6c34c26cbd628b19aa835aceb94ea7f2ca7f33d1b8f51476bc597d4bf9ad5111d8f39ef5351b3b090bce47f023002fe69928e79f6f8147f6fe051f2f159041f932f5190308d7441fc3cecead0851662d3217485827e640a4183fa5bc8cef5ff7d1473d2746a37fbc8b94318ff0d3aeb467017c0ea5cb33b3e6967453986e1450b35ad47861f679cf7db5a6c170bcfb67544983ec1e36b27ee8c5721da39d27dbfa0cdc15ba3cbaa425e8a8b96b81ab665f3ebc41563a0e9270695d3d68887cfab2c07b290718307f764afba684b17fcfd71323f64206e5fa378b4ee89e80885733080065dd34a5c838898906b8d43de9f1d8eb6922bad'
  7.  
  8. onion2_bits = Bits(hex=onion2)
  9. onion3_bits = Bits(hex=onion3)
  10. onion4_bits = Bits(hex=onion4)
  11.  
  12. #xor permutations
  13. xored = {
  14.     'xored234': onion2_bits ^ onion3_bits ^ onion4_bits,
  15.     'xored23': onion2_bits ^ onion3_bits,
  16.     'xored24': onion2_bits ^ onion4_bits,
  17.     'xored34': onion3_bits ^ onion4_bits,
  18. }
  19.  
  20. for k,v in xored.items():
  21.     print "\n%s\n%s" % (k,v)
  22.  
  23. #other stuff that could be done
  24. #ones = Bits(hex=''.join(['f' for i in range(512)]))
  25. #onion2_bits.reverse()
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. OK, I Understand
 
Top