1 - how can I configure a host to receive multiple ips at runtime ?
2 - how can I send a packet that I created to host1 host2 through ( OnOff or BulkSend ) application ?
3 - How do I change a TCP header Flags ?
My idea to make the attack is as follows:
Two host on a CSMA network , an attacker and a victim . The attacker is configured with a onoff application and the victim is configured with a SinkPacket application , to receive the requested TCP connections by the attacker .
In an attempt to make the SYN Flood attack , put the two host inside a loop increments the port number of the socket of the victim . The door striker is incremented automatically in NS 3 .
This generated the following result : the first two ports ( 1 and 2 ) accept connections and are receiving packets . Next, the two connections are reset and starts trying to connect the following ports which are denied .
My idea to enhance this code is as follows :
Create packets with random source address and destination address of the victim inside a loop , so that no connection is completed.
I do not have much experience in NS 3 . Any help will be appreciated .