Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Coder's Corner Lounge (http://www.programmingforums.org/forum11.html)
-   -   kubuntu help (http://www.programmingforums.org/showthread.php?t=15297)

null_ptr0 Mar 1st, 2008 6:09 PM

kubuntu help
 
well on my older desktop i recently added a dual boot with kubuntu, so now it has kubuntu 7.10 and windows xp (im thinking sp2). well im hoping its not sp2, because of the dreaded raw-sockets kill. so i wrote a simple syn flooder with kate and compiled with gcc, when, to my suprise, didn't work. the following socket() call failed and produced the perror("socket()") call.
:

s = socket(PF_INET, SOCK_RAW, IPPROTO_RAW);
im afraid that this is because windows has already messed with the networking drivers and disabled raw sockets.
if anyone here has some insight, please help

edit:
i believe nmap does work (port scanning atleast). im severely confused.

Jimbo Mar 1st, 2008 8:10 PM

Re: kubuntu help
 
drivers would be specific to the OS running at the time...

null_ptr0 Mar 2nd, 2008 9:43 AM

Re: kubuntu help
 
Quote:

Originally Posted by Jimbo (Post 141853)
drivers would be specific to the OS running at the time...

yeah i shortly realized that after i pressed submit. disregard the whole post, i just needed to supply root password again by appending sudo infront of it :P

Jabo Mar 3rd, 2008 12:21 AM

Re: kubuntu help
 
Is there something wrong with raw sockets? networking challenged here.

Jimbo Mar 3rd, 2008 1:10 AM

Re: kubuntu help
 
Quote:

Originally Posted by Jabo (Post 141920)
Is there something wrong with raw sockets? networking challenged here.

Not sure, but I'd guess it requires root privileges, hence the need for sudo.

[edit:] actually, this makes sense. Giving raw network access seems (to my slightly buzzed mind, had a couple drinks this evening) like a very possible security risk, hence the need for - as Vista so well puts it - elevated privileges. Requiring anything using raw sockets to either run as root or call setuid() to get root privileges seems like a feasible requirement.

null_ptr0 Apr 13th, 2008 12:57 PM

Re: kubuntu help
 
jimbo and jabo, in windows xp sp2 and above, raw sockets are disabled at driver level.

EDIT:
sorry for the bump :(

Jimbo Apr 13th, 2008 1:31 PM

Re: kubuntu help
 
Quote:

Originally Posted by null_ptr0 (Post 143831)
jimbo and jabo, in windows xp sp2 and above, raw sockets are disabled at driver level.

Even so, the problem was occurring in Kubuntu, wasn't it? :icon_wink:


All times are GMT -5. The time now is 4:10 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC