Advertisement
Guest User

0xIL

a guest
Jan 23rd, 2017
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. While connecting to the server , we got a different name every time
  2. we wrote a bash 3 line script to get all the names to a file
  3.  
  4. #!/bin/bash
  5. for i in `seq 1 100`;
  6. do
  7. nc quizz.teaser.insomnihack.ch 1031 | grep year | cut -d ' ' -f8- | sed 's/.$//'
  8. done
  9.  
  10. after we got all the names , we sorted and deleted uniq.
  11.  
  12. we got all the names , we searched google for all years.(Using Xgoogle python)
  13. and wrote a simple python script that answer to the server and get us the flag.
  14.  
  15. import socket
  16. names = {
  17. 'Bart Preneel':1963,'Adi Shamir':1952,'Alex Biryukov':1969,
  18. 'Amit Sahai':1974,'Amos Fiat':1956,'Antoine Joux':1967,'K. Lenstra':1956,
  19. 'Claus-Peter Schnorr':1970,'Dan Boneh':1969,'Daniel Bleichenbacher':1964 ,
  20. 'J. Bernstein':1971,'David Naccache':1967,'Donald Davies':1924,
  21. 'Douglas Stinson':1956,'Eli Biham':1960,'Gilles Brassard':1955,
  22. 'Horst Feistel':1915,'Jacques Patarin':1965,'Jacques Stern':1949,
  23. 'Jim Massey':1934,'Joan Daemen':1965,'Lars Knudsen':1962,
  24. 'Markus Jakobsson':1968,'Martin Hellman':1945,'O. Rabin':1931,
  25. 'Moni Naor':1961,'Niels Ferguson':1965, 'P. Smart':1967 ,
  26. 'Paul Kocher':1973,'Paulo Barreto':1965, 'Phil Rogaway':1962,
  27. 'Rafail Ostrovsky':1963, 'Ralph Merkle':1952 ,'Ross Anderson':1956,
  28. 'Scott Vanstone':1947, 'Serge Vaudenay':1968 ,'Shai Halevi':1966 ,
  29. 'Tatsuaki Okamoto':1952, 'Ueli Maurer':1960 ,'S. Miller':1947,
  30. 'Whitfield Diffie':1944 ,'Yvo Desmedt':1956,
  31. 'Yehuda Lindell':1971,'Ron Rivest':1947,'Rafail Ostrovsky':1963,
  32. 'Horst Feistel':1915,'Xuejia Lai':1954,'van Oorschot':1962,
  33. 'Ronald Cramer':1968,'Kaisa Nyberg':1948
  34. }
  35. s = socket.socket()
  36. s.connect(('quizz.teaser.insomnihack.ch',1031))
  37. a = s.recv(2048)
  38. a = s.recv(2048)
  39. print a
  40. while True:
  41. b = a.split()
  42. try:
  43. b = b[-3]+ ' ' + b[-2]
  44. print b
  45. if b in names.keys():
  46. print names[b]
  47. s.send (str(names[b])+'\n')
  48. a = s.recv(2048)
  49. print a
  50. except:
  51. a = s.recv(2048)
  52. print a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement