Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #37306
| References | <f37ccb35-8439-42cd-a063-962249b44903@googlegroups.com> <XnsA14F5D5D4670FrtwfreenetREMOVEcouk@88.198.244.100> <0c2b3482-df46-4324-8bf9-2c45d3f6b516@googlegroups.com> <XnsA1505CBA6AF48rtwfreenetREMOVEcouk@88.198.244.100> <96947c45-f16b-4e97-b055-edc1241ee4a1@googlegroups.com> |
|---|---|
| Date | 2013-01-22 10:07 -0600 |
| Subject | Re: Sending a broadcast message using raw sockets |
| From | Corey LeBleu <coreylebleu@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.809.1358874138.2939.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
If you don't *have* to use the actual socket library, you might want to have a look at scapy. It's a packet manipulation program/library. It might make things a little easier. http://www.secdev.org/projects/scapy/ On Jan 22, 2013 9:17 AM, "Peter Steele" <pwsteele@gmail.com> wrote: > I just tried running you code, and the "sendto" call fails with "Network > is unreachable". That's what I expected, based on other tests I've done. > That's why I was asking about how to do raw sockets, since tools like > dhclient use raw sockets to do what they do. It can clearly be duplicated > in Python, I just need to find some code samples on how to construct a raw > packet. > > -- > http://mail.python.org/mailman/listinfo/python-list >
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Sending a broadcast message using raw sockets Peter Steele <pwsteele@gmail.com> - 2013-01-18 23:32 -0800
Re: Sending a broadcast message using raw sockets Rob Williscroft <rtw@rtw.me.uk> - 2013-01-21 09:10 +0000
Re: Sending a broadcast message using raw sockets Peter Steele <pwsteele@gmail.com> - 2013-01-21 17:06 -0800
Re: Sending a broadcast message using raw sockets Rob Williscroft <rtw@rtw.me.uk> - 2013-01-22 09:06 +0000
Re: Sending a broadcast message using raw sockets Peter Steele <pwsteele@gmail.com> - 2013-01-22 07:11 -0800
Re: Sending a broadcast message using raw sockets Corey LeBleu <coreylebleu@gmail.com> - 2013-01-22 10:07 -0600
Re: Sending a broadcast message using raw sockets Peter Steele <pwsteele@gmail.com> - 2013-01-22 09:57 -0800
Re: Sending a broadcast message using raw sockets Chris Angelico <rosuav@gmail.com> - 2013-01-23 08:19 +1100
Re: Sending a broadcast message using raw sockets Peter Steele <pwsteele@gmail.com> - 2013-01-22 13:36 -0800
Re: Sending a broadcast message using raw sockets Peter Steele <pwsteele@gmail.com> - 2013-01-22 13:36 -0800
Re: Sending a broadcast message using raw sockets Peter Steele <pwsteele@gmail.com> - 2013-01-22 09:57 -0800
Re: Sending a broadcast message using raw sockets Rob Williscroft <rtw@rtw.me.uk> - 2013-01-22 21:58 +0000
Re: Sending a broadcast message using raw sockets peter@peaxy.net - 2013-01-22 17:21 -0800
csiph-web