Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Usage details #1
To answer your question, if you take a look at the code here:
You will notice that the Ethernet header has its source and destination MAC addresses hardcoded. I should instead pull these details from the network interface however for the time being you would need to do it yourself. The source MAC address is simply your local NIC card which can be pulled like so:
Whereas the Target MAC address would depend on the following:
When that is done, you can run
If you don't know your network interface beforehand, you can run the command once with a dummy value like I did above, and see what the console prints out thanks to:
OR you can use tools like WireShark in order to see what interfaces it can pull.
I hope this helps.
This should now be resolved as of:
You should be able to simply send a SYN packet by running:
I'll be implement packet count to adjust how many packets to send and will polish the README. Closing issue; if you have any further questions feel free to re-open. :-)