I am currently developing an application for my Networks Security project, which involves launching of smurf attack using C#. Smurf attack includes that u send a packet to any server (let's say yahoo,google) but in your destination u place the ip address of any victim(which the attacker wants to attack . So with this all the host (yahoo ,google) sends response to the victim, if large number of requests are sent then it can also cause denial of service. Now the problem is implementing it in C#, because C# don't allow u to change the packet header, if i use the TcpClient class i can only give the IP + Port of the host to connect but i cannot change anything in the packet header (it automatically places your ip in the destination of the packet), i just want to know that is there any way that i can access and change the packet header,?
Is there any library which can help me in this context?
The Pcap.Net library allows you to construct your own packets through
SendPacket()
. The example in the second link shows you how to construct and send ICMP Echo packets.