daily pastebin goal
47%
SHARE
TWEET

Untitled

a guest Nov 19th, 2013 140 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Solucion reto Security Art Work
  2. #http://www.securityartwork.es/2013/11/18/reto-de-reversing/
  3. #Autor: @rubenvillar
  4.  
  5. import random
  6.  
  7. def main():
  8.         constraints = (0,4,6,0,6,0,0,5,6,3,0,5,6,9,2,5)
  9.         serial = ''
  10.         row = random.randint(0,9)
  11.         serial += str(row)
  12.         for i in range(1,16):
  13.                 row = random.randint(0,9)              
  14.                 while (row*i) % 10 != constraints[i]:
  15.                         row = random.randint(0,9)      
  16.                 serial += str(row)
  17.         print(serial)
  18.  
  19. if __name__ == '__main__':
  20.         main()
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