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



'systemhacking > practice' 카테고리의 다른 글

fedoracore 3 evil_wizard->dark_stone  (0) 2015.02.26
fedoracore 3 hell_fire->evil_wizard  (0) 2015.02.25
io.smash the stack 6~8  (0) 2015.02.21
fedoracore 3 dark_eyes->hell_fire  (0) 2015.02.20
fedoracore 3 iron_golem->dark_eyes  (0) 2015.02.17