java hijack socket possible?

前端 未结 3 1542
旧巷少年郎
旧巷少年郎 2021-01-26 17:08

I suddenly find myself wondering this question, is it possible in java to hijack a socket?

say a server is listening on port 5000, would it be possible to write a java p

3条回答
  •  轮回少年
    2021-01-26 17:38

    Network sockets are managed by the operating system, and the OS will not let you bind to a socket that is already in use. So yes, you would need to do some trickery on the network driver level.

提交回复
热议问题