Untitled

From Crippled Armadillo, 3 Months ago, written in Plain Text, viewed 54 times.
URL http://axuhongbo.top/paste/view/96bc1c0b Embed
Download Paste or View Raw
  1. import random
  2.  
  3.  
  4. def generate_checksum(input):
  5.     trial = ""
  6.     total = 0
  7.     while total != input:
  8.         total = 0
  9.         trial = ''.join(random.choice("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890")
  10.                for i in range(4))
  11.         for i in range(4):
  12.                 total = (total + ord(trial[i:i+1])) % 256
  13.     return trial
  14.  
  15. if __name__ == '__main__':
  16.     uri_x86 = generate_checksum(92) # 32位的payload
  17.     uri_x64 = generate_checksum(93) # 64位的payload
  18.     print(uri_x86)
  19.     print(uri_x64)
  20.  

Reply to "Untitled"

Here you can reply to the paste above

captcha