Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Help me get started (traffic manipulation)

My main goal is to create an advanced program for manipulating the packets that route within my network via the router. Let my program have total control over the router. Set the download/upload speeds to my inputs, apply the effect to certain devices within in my network. Block upload or download traffic. Set second delay for either the upload or download speed. Specify % of loss packets, and the list goes on.

The problem is that I don't know where to start. I know most languages at the very most basic level. I'd like to create this program in either C, C++ or C# but I don't know yet. What else do I need to know before creating this program? Winsock or something? Winpcap APIs?

This goal is my motivation to learn programming to the extreme, and I'm really looking forward to it.

Thanks in advance!

like image 425
Mark Avatar asked Nov 06 '22 00:11

Mark


2 Answers

Hmmm I guess you would want to look at pcap(?): pcap

like image 95
snoofkin Avatar answered Nov 09 '22 07:11

snoofkin


Check out:

http://beej.us/guide/bgnet/html/multi/index.html

'Beej's Guide to Network Programming Using Internet Sockets'

All you could possibly need to know about programming sockets for capture and manipulation.

If I were you I'd write it in C, I'm writing a similar project at the moment in C++ and it's hell but too late to stop and start again.

Hope that helps.

like image 33
MerreM Avatar answered Nov 09 '22 08:11

MerreM