int $0x80

level0 -> level1 본문

워게임/vortex

level0 -> level1

cd80 cd80 2013.09.29 23:36

 

import struct
from socket import *
p = lambda x : struct.pack("<Q", x)
up = lambda x : struct.unpack("<L", x)
host = "vortex.labs.overthewire.org"
port = 5842
s = socket(AF_INET, SOCK_STREAM)
s.connect((host, port))
a,b,c,d = up(s.recv(4))+up(s.recv(4))+up(s.recv(4))+up(s.recv(4))
s.send(p(a+b+c+d))
print s.recv(512)
 

 

Username: vortex1 Password: Gq#qu3bF3 

 

'워게임 > vortex' 카테고리의 다른 글

vortex10 -> vortex11  (3) 2014.05.22
level0 -> level1  (0) 2013.09.29
0 Comments
댓글쓰기 폼