SHARE
TWEET

Untitled

a guest Apr 23rd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a = [0x0804842b, 0x18, 0xfcffffff, 0x080484d0, 0x0804a030, 0x80484b0, 0x15000000, 0x4]
  2. def req(sum, i, path):
  3.     if i == len(a):
  4.         if sum == 0x69:
  5.             print(path)
  6.         return
  7.     s = str(hex(a[i]))[2::]
  8.     if len(s) % 2 == 1:
  9.         s = '0' + s
  10.     s2 = ''
  11.     for z in range(len(s) - 2, -2, -2):
  12.         s2 += s[z:z+2]
  13.     b = int(s2, 16)
  14.     req(sum + b, i + 1, path + "r+")
  15.     req(sum + a[i], i + 1, path + "n+")
  16.     req(sum, i + 1, path + "00")
  17.     req(sum - a[i], i + 1, path + "n-")
  18.     req(sum - b, i + 1, path + "r-")
  19. req(0, 0, '')
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