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