2

I wrote a little java program that establishes a socket connection (port 23456) over TCP between a server (pong.java) and a client (ping.java). I start the server and then the client which sends ping and the server responds with pong. This happens 50 times.

This works all fine but now i want to shut this down using a SYN Flood DoS attack with hping3, but i can't get it to work. I can easily stop a file transfer running between the client and the server over SMB with the same DoS program. The server definitely gets the SYN packages- When i attack the same port the java socket connection uses it just shuts the attack down and the java program happily finishes the 50 loops. i can't figure out why. is there some protection in java or do sockets in java work different than a TCP exchange over SMB?

I do this for a network class and i just can't figure it out. I just attack myself between 3 VMs so no one will get harmed.

I can provide the source code or further information if needed.

Thanks a lot if anyone can help.

4

1 回答 1

2

我不知道它是否合适,但是我编写了一个服务器客户端应用程序,并且更多的客户端正在尝试连接。只要我使用 Sun JRE,它就可以工作。使用 OpenJava,我无法让它工作——只有第一个客户端连接,其他客户端必须等待。我无法弄清楚为什么,并且并不真正关心 - 在服务器上安装了 Sun(现在是 Oracle)JRE,它运行顺利。因此,如果您使用 Linux 和 OpenJava,我建议您尝试使用 Oracle 的 JRE。

于 2012-12-17T20:20:54.800 回答