Hello 🤝
I wanted to create a bot to send login/join packets to a game server. So it will join then send more packets for it to write something in the chat, but I'm not sure how to do this. If someone could help me, I'd appriciate it so much! :)
This is the code I got so far:
FYI, the game I picked to try on is "Soldat" a old 2d shooting game. Also, someone told me I could use wireshark or some packet sniffer but I have no clue in what form to put it into the code and how to send it.
Please help me! 😖
--
EDIT: I installed Wireshark and listened to port 23073 while I connected to the server and gave me this data (UDP protocol):
0e:e9:6e:00:31:2e:36:2e:38:4d:61:6a:6f:72:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:0b:32:31:45:39:33:35:42:41:44:37:30:00
How could I apply that to the code and send that packet to the established connection?
I wanted to create a bot to send login/join packets to a game server. So it will join then send more packets for it to write something in the chat, but I'm not sure how to do this. If someone could help me, I'd appriciate it so much! :)
This is the code I got so far:
Code
import socket
# Create a TCP/IP socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Connect the socket to the port where the server is listening
server_address = ('79.133.198.11x', 23073)
sock.connect(server_address)
# Trying to send something
PACKET = "Hello World!".encode('utf-8')
sock.send(PACKET)
# Close connection
sock.close()FYI, the game I picked to try on is "Soldat" a old 2d shooting game. Also, someone told me I could use wireshark or some packet sniffer but I have no clue in what form to put it into the code and how to send it.
Please help me! 😖
--
EDIT: I installed Wireshark and listened to port 23073 while I connected to the server and gave me this data (UDP protocol):
0e:e9:6e:00:31:2e:36:2e:38:4d:61:6a:6f:72:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:0b:32:31:45:39:33:35:42:41:44:37:30:00
How could I apply that to the code and send that packet to the established connection?

