View Full Version : Raw Sockets for ARP
gray_hat
January 13th, 2009, 11:52 PM
I have been planning to code an ARP poisoner in C soon but I still need to do more research with raw socket/network layer programming in C. However I haven't found a suitable location for the right information. Could anyone provide me a linky with content that I would find useful?
I already know everything about how ARP works and how ARP caches are poisoned but I am lacking in how to do this in C code. That's why I am posting in the programming forum rather than hacking. I have also programmed some with raw sockets before to make a simple SYN flooder but that's not that bad.
Thanks in advance for any help.
DoG MikkyW
January 14th, 2009, 12:34 AM
I can't help you seeing as this is beyond the scopes of my ability. However, I do know that the senior members like to see what effort, no matter how little, you have put in towards your current code. So just put your code on here, or pastebin.com it, and I'm sure someone would be glad to help you.
DoG MikkyW
January 14th, 2009, 04:14 PM
Hmmm, you posted absolutely no reason why what I posted was wrong.
gray_hat
January 14th, 2009, 04:18 PM
I was thinking the same thing. >_>
ishkur88
January 14th, 2009, 06:27 PM
First of all, why are you using something like C/C++? With something like C, you waste so much time managing memory. Why not go with a dynamically typed language like Python or .... dare I even say Perl.
Built in networking support, and much less overhead in terms of complexity.
And as for a link to be provided for you, like a baby who needs his apple sauce... here you go; you lazy cunt.
http://www.google.com/search?source=ig&hl=en&rlz=&=&q=sockets+in+C&btnG=Google+Search&aq=f
gray_hat
January 14th, 2009, 07:55 PM
Haha, ok. Nevermind then. I thought maybe somebody would have a specific link somewhere that has really helpful information for me. I finally found one myself though. But thanks anyway for giving me a useless link, (pretty much all I expected anyway...)
And also, I am doing it in C for the challenge. If I wanted it to be easy I would just download some program to do it for me.
I have noticed that around here, when someone tries to take the skiddie way out they are criticized yet when someone tries to actually learn something difficult they are told to search for methods much easier. Seems like some of the mods just like the feeling of being "all-powerful" with the ability to say anything they want because they can muhaha....
ishkur88
January 14th, 2009, 08:31 PM
Haha, ok. Nevermind then. I thought maybe somebody would have a specific link somewhere that has really helpful information for me. I finally found one myself though. But thanks anyway for giving me a useless link, (pretty much all I expected anyway...)
And also, I am doing it in C for the challenge. If I wanted it to be easy I would just download some program to do it for me.
I have noticed that around here, when someone tries to take the skiddie way out they are criticized yet when someone tries to actually learn something difficult they are told to search for methods much easier. Seems like some of the mods just like the feeling of being "all-powerful" with the ability to say anything they want because they can muhaha....
As I stated somewhere else, I say nothing different now than I normally would say. So this is really getting annoying; people claiming power abuse. Are you banned yet? Have I closed this thread? Have I threatened you in any way shape or form? No. So please, give it a rest. I equate this to calling someone a racist or a sexist in the event of having nothing better to say against them; which is wrong.
So. I deter noobish questions because they usually cause more problems than they're worth. If you get someone asking questions about something they have no clue on earth about (or have no business asking), then that tends to cause confusion on their part when I give them an answer.
I tell people with more advanced questions to research some more because if they're resourceful enough to have the question; they're probably also resourceful enough to find an answer.
Explain to me how a 2 second Google search for "sockets in C" is irrelevant to what you were looking for? Rather than have me go through all of the BS that is C/C++ to explain how to create a data stream to a remote host and use it in a program, I do what you should have done in the first place and Google'd it.
If that link I sent you didn't help you at all, please; for the sake of me knowing a better way to find information.. tell me how you found your mysterious link of wonders that has everything you needed. I'd love to see where that came from.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.