Home > OS >  The.net Core 3.1 app) TCP server receives a byte stream
The.net Core 3.1 app) TCP server receives a byte stream

Time:11-19

I use the.net 3.1 to develop a core server app, compile on Windows 7, placed directly to the Linux platforms, with SocketAsyncEventArgs network concurrent processing, but the server is running after a period of time, abnormal server receives a byte stream,

Complete byte stream is:

,0,0,164,255,83,77,66,114,0,0,0,0,8,1,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,6,0,0,1,0,0,129,0,2,80,67,32,78,69,84,87,79,82,75,32,80,82,79,71,82,65,77,32,49,46,48,0,2,77,73,67,82,79,83,79,70,84,32,78,69,84,87,79,82,75,83,32,49,46,48,51,0,2,77,73,67,82,79,83,79,70,84,32,78,69,84,87,79,82,75,83,32,51,46,48,0,2,76,65,78,77,65,78,49,46,48,0,2,76,77,49,46,50,88,48,48,50,0,2,83,97,109,98,97,0,2,78,84,32,76,65,78,77,65,78,32,49,46,48,0,2,78,84,32,76,77,32,48,46,49,50,0
 {0} 


I try to use ASCII parse it, the result is:

 {\ 0, 0, 0?? SMBr \ 0, 0, 0, 0 \ b \ u0001 @, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 @ \ u0006 \ \ \ \ u0001\0 0 0 0? 1.0\0 \ \ 0 \ u0002PC NETWORK PROGRAM u0002MICROSOFT NETWORKS 1.03\0 \ u0002MICROSOFT NETWORKS \ 0 \ u0002LANMAN1. 3.0 0 \ \ u0002LM1 0. 2 x002 \ \ u0002Samba \ 0 0 \ u0002NT LANMAN 1.0 0.12 \ \ 0 \ u0002NT LM 0} 


There are a great god met this problem?

CodePudding user response:

Your service is used to file sharing? If not, it is illegal third party in trying to connect, judgment when you accept the other party identity, close illegal connection in time,
  • Related