Re: Newbie: Keep TCP socket open

2008-05-21 Thread Alan Wright
Thanks Roy Any ideas how to code this child process stuff, as I said I am newbie and not from a coding background to be honest ideally yes, i'd get 50K, but if i can get above 30K that would be OK Alan Roy Smith [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] In article [EMAIL

Re: Newbie: Keep TCP socket open

2008-05-21 Thread Alan Wright
Same on FC8, sends RST after it sees SYN/ACK Ghirai [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, 19 May 2008 23:50:50 +0100 Alan Wright [EMAIL PROTECTED] wrote: Ghirai, Scapy does the same, only it sends RST and not FIN, so still no help

Re: Newbie: Keep TCP socket open

2008-05-21 Thread Roy Smith
In article [EMAIL PROTECTED], Alan Wright [EMAIL PROTECTED] wrote: Thanks Roy Any ideas how to code this child process stuff, as I said I am newbie and not from a coding background The easiest thing would be to use os.system(). If you wanted to spawn 10 child processes, you could do:

Re: Newbie: Keep TCP socket open

2008-05-21 Thread Alan Wright
You must have something in your IPtables I needed to put a rule in to drop these unwanted RST from getting back out. All fixed now Thanks for the advice Alan Alan Wright [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Same on FC8, sends RST after it sees SYN/ACK Ghirai [EMAIL

Re: Newbie: Keep TCP socket open

2008-05-21 Thread Alan Wright
Thanks Roy, will give it a go. infact there is no need for any IT phone calls, I am the owner of this network Very simple [bunch of clients][box under test][bunch of servers] Now i should be able to hammer them ;) Alan Roy Smith [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: Newbie: Keep TCP socket open

2008-05-21 Thread Roy Smith
In article [EMAIL PROTECTED], Alan Wright [EMAIL PROTECTED] wrote: infact there is no need for any IT phone calls, I am the owner of this network That's the best way to do it :-) -- http://mail.python.org/mailman/listinfo/python-list

Newbie: Keep TCP socket open

2008-05-19 Thread Alan Wright
Hi Folks, I am newbie to Python, but have successfully created a simple client and server setup, I have one issue though. I am trying to test a box by sending many TCP conns (WHILE loop) but not closing them with a FIN/RST. However, no matter what i do, i cannot get the loop to stop sending

Re: Newbie: Keep TCP socket open

2008-05-19 Thread s0suk3
On May 19, 10:25 am, Alan Wright [EMAIL PROTECTED] wrote: Hi Folks, I am newbie to Python, but have successfully created a simple client and server setup, I have one issue though. I am trying to test a box by sending many TCP conns (WHILE loop) but not closing them with a FIN/RST. However,

Re: Newbie: Keep TCP socket open

2008-05-19 Thread Irmen de Jong
Alan Wright wrote: while (num1=10) : s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.settimeout(10.0) s.connect((10.1.1.69, 50008)) # SMTP print s.recv(1024) + '\n', num1=num1+1 #s.close() sys.exit(1) I think the following is happening: Reusing the 's' object for every new

Re: Newbie: Keep TCP socket open

2008-05-19 Thread Alan Wright
Thanks for the feedback. Using the socket in a list is great However, as i imagined, I now get a limit of around 1500 conns before the system crashes out, also i have noticed, that the ports loop back to 1025 when they hit 5000. Any ideas on how to make the list/socket get to around 50K TIA

Re: Newbie: Keep TCP socket open

2008-05-19 Thread Ghirai
On Mon, 19 May 2008 20:25:57 +0100 Alan Wright [EMAIL PROTECTED] wrote: Thanks for the feedback. Using the socket in a list is great However, as i imagined, I now get a limit of around 1500 conns before the system crashes out, also i have noticed, that the ports loop back to 1025 when

Re: Newbie: Keep TCP socket open

2008-05-19 Thread Alan Wright
Ghirai, Scapy does the same, only it sends RST and not FIN, so still no help send(IP(dst=10.1.1.2)/TCP(dport=5,flags=S)) Only have windows at the moment sadly. Alan Ghirai [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, 19 May 2008 20:25:57 +0100 Alan Wright [EMAIL

Re: Newbie: Keep TCP socket open

2008-05-19 Thread Ghirai
On Mon, 19 May 2008 23:50:50 +0100 Alan Wright [EMAIL PROTECTED] wrote: Ghirai, Scapy does the same, only it sends RST and not FIN, so still no help send(IP(dst=10.1.1.2)/TCP(dport=5,flags=S)) Only have windows at the moment sadly. Alan Are you sure there's no firewall or

Re: Newbie: Keep TCP socket open

2008-05-19 Thread Roy Smith
In article [EMAIL PROTECTED], Alan Wright [EMAIL PROTECTED] wrote: Thanks for the feedback. Using the socket in a list is great However, as i imagined, I now get a limit of around 1500 conns before the system crashes out, also i have noticed, that the ports loop back to 1025 when they