systemhacking/practice
overthewire vortex 0~
qkqhxla1
2015. 3. 28. 17:03
0~1
vortex.labs.overthewire.org에 5842로 접속하면 4개의 unsiged int를 주는데, 이걸 받아서 합한 후 다시
재전송해라. vortex는 32bit머신이다.
# -*- encoding: cp949 -*- import socket, struct, itertools, operator s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) s.connect(('vortex.labs.overthewire.org',5842)) sum = reduce(operator.add,map(lambda x:struct.unpack('I',x)[0],[s.recv(4) for i in range(4)])) s.sendall(struct.pack('I',sum)) print s.recv(1000)
Username: vortex1 Password: Gq#qu3bF3
1~2