Home > Back-end >  Check the communication exe client connection port number in the document
Check the communication exe client connection port number in the document

Time:10-17

Now I hand a exe file, is the use of TCP Socket as a communication protocol, he belongs to the client, but he cannot know connection port, the so bad to write the server side, don't know what good method can obtain the exe file connection by the port number,,,, decompiled look at the assembly was confused,,,

CodePudding user response:

Netstat
This command can add some parameters:
- n shows the IP address and port number,
-s shows each protocol connection state,
- a displays all connections and listening ports, (service all connections are often don't show)
- e shows too network connection state, best and share, -s
-p PROTO according to specific protocol connection state,


Display:
Proto Local Address Foreign Address State
80 ESTABLISHED TCP 192.168.14.246:1148 61.152.160.154:
80 ESTABLISHED TCP 192.168.14.246:1180 222.137.116.47:
80 ESTABLISHED TCP 192.168.14.246:1181 222.137.116.47:
80 ESTABLISHED TCP 192.168.14.246:1182 159.226.202.59:
TIME_WAIT 207.46.198.60 TCP 192.168.14.246:1183:80

CodePudding user response:

Then again, you know communication protocol? If you don't know communication protocols, knowing it is also useless connection port

Even with sniffer caught, analysis the agreement?

CodePudding user response:

You this is used to check the service side, I am now want to know what a client wants to connect the target host, port, and then to write to the server, now only exe client, so I don't know the port number, in the struggle
  • Related