Ingin menangid
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
423 B

преди 5 години
  1. from pwn import *
  2. v5 = ""
  3. v2 = ord('H')
  4. flag = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
  5. key = "[OIonU2_<__nK<KsK"
  6. iterator = 0
  7. while True:
  8. for i in flag:
  9. if(((ord(i) + 12) * v2 + 17) % 70 + 48) == ord(key[iterator]):
  10. v5 += i
  11. v2 = ord(key[iterator])
  12. iterator += 1
  13. break
  14. if(len(v5) == len(key)):
  15. break
  16. v5 = v5[:-1]
  17. print "Key: {}".format(v5)
  18. r = remote("rev.tamuctf.com", 7223)
  19. r.sendline(v5)
  20. r.interactive()