Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 1st, 2008, 6:09 PM   #1
null_ptr0
12 years old
 
Join Date: Nov 2007
Posts: 94
Rep Power: 1 null_ptr0 is on a distinguished road
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.
null_ptr0 is offline   Reply With Quote
Old Mar 1st, 2008, 8:10 PM   #2
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 763
Rep Power: 3 Jimbo is on a distinguished road
Re: kubuntu help

drivers would be specific to the OS running at the time...
__________________
<insert disclaimer here>
<insert shameless plug for Visual Studio here>
Jimbo is offline   Reply With Quote
Old Mar 2nd, 2008, 9:43 AM   #3
null_ptr0
12 years old
 
Join Date: Nov 2007
Posts: 94
Rep Power: 1 null_ptr0 is on a distinguished road
Re: kubuntu help

Quote:
Originally Posted by Jimbo View Post
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
null_ptr0 is offline   Reply With Quote
Old Mar 3rd, 2008, 12:21 AM   #4
Jabo
Not a user?
 
Join Date: Sep 2007
Posts: 272
Rep Power: 2 Jabo is on a distinguished road
Re: kubuntu help

Is there something wrong with raw sockets? networking challenged here.
Jabo is offline   Reply With Quote
Old Mar 3rd, 2008, 1:10 AM   #5
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 763
Rep Power: 3 Jimbo is on a distinguished road
Re: kubuntu help

Quote:
Originally Posted by Jabo View Post
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.
__________________
<insert disclaimer here>
<insert shameless plug for Visual Studio here>
Jimbo is offline   Reply With Quote
Old Apr 13th, 2008, 12:57 PM   #6
null_ptr0
12 years old
 
Join Date: Nov 2007
Posts: 94
Rep Power: 1 null_ptr0 is on a distinguished road
Re: kubuntu help

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

EDIT:
sorry for the bump

Last edited by null_ptr0; Apr 13th, 2008 at 12:57 PM. Reason: oops!!
null_ptr0 is offline   Reply With Quote
Old Apr 13th, 2008, 1:31 PM   #7
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 763
Rep Power: 3 Jimbo is on a distinguished road
Re: kubuntu help

Quote:
Originally Posted by null_ptr0 View Post
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?
__________________
<insert disclaimer here>
<insert shameless plug for Visual Studio here>
Jimbo is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Favourite Linux Distribution MrMan9879 Coder's Corner Lounge 45 Nov 24th, 2005 4:56 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:42 PM.

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