GerakSendiri (106 pts)
import asyncio
import websockets
async def connect_to_websocket(uri):
async with websockets.connect(uri) as websocket:
print("Connection opened!")
while True:
try:
# get message from server
message = await websocket.recv()
print(f"{message.decode()}")
# send input
user_input = input("Enter message: ")
# input handling
if user_input.lower() == 'exit':
break
else:
await websocket.send(user_input + '\n')
except websockets.ConnectionClosed:
print("Connection closed!")
break
except Exception as e:
print(f"Error: {e}")
break
uri = "wss://ctf.intechfest.cc/api/proxy/079b7720-7140-44ea-82b5-337de9c52dff"
asyncio.get_event_loop().run_until_complete(connect_to_websocket(uri))[1/6] What is the device that attacker use to attack victim device? (answer in lowercase e.g. cpu)
[2/6] What is the victim bluetooth name? (answer in lowercase e.g. ujang)
[3/6] What is the victim device MAC address (e.g. 00:11:22:33:44:55)
[4/6] What is the first app that attacker use to open victim whatsapp? (answer in lowercase e.g. twitter)
[5/6] What is the message that attacker send to victim whatsapp?
[6/6] Attacker trying to open browser again in private mode, there are an attachment that you can see.
Last updated