week06
This commit is contained in:
@ -1,18 +1,20 @@
|
||||
import socket
|
||||
import random
|
||||
from Crypto.Cipher import AES
|
||||
import base64
|
||||
import time
|
||||
|
||||
# Fill in the right target here
|
||||
HOST = 'this.is.not.a.valid.domain' # TODO
|
||||
PORT = 0 # TODO
|
||||
|
||||
HOST = 'localhost' # TODO
|
||||
PORT = 20205 # TODO
|
||||
correct_message = "dHlwZT1zZWNyZXRzJm51bWJlcj0xMzM3;AAAAAAAAAAAAAAAAAAAAAA==;OpDnZaDSwwbQ7YoFg16Q3Q=="
|
||||
|
||||
def get_flag():
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
|
||||
s.connect((HOST, PORT))
|
||||
sf = s.makefile('rw') # we use a file abstraction for the sockets
|
||||
|
||||
# TODO
|
||||
|
||||
|
||||
sf.close()
|
||||
s.close()
|
||||
|
||||
|
Reference in New Issue
Block a user