Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'root': 0.04; 'socket': 0.05; 'python': 0.09; '22,': 0.09; 'etc).': 0.09; 'sockets': 0.09; 'subject:using': 0.09; 'to:addr:comp.lang.python': 0.09; 'yeah,': 0.09; 'cc:addr:python-list': 0.10; ':-)': 0.13; 'bypassing': 0.16; 'privileges.': 0.16; 'reasonably': 0.16; 'subject:raw': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'code,': 0.18; 'fairly': 0.21; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; '(which': 0.26; 'am,': 0.27; 'raw': 0.27; "doesn't": 0.28; 'chris': 0.28; 'environment': 0.29; 'restricted': 0.29; 'subject:Sending': 0.29; 'though.': 0.29; 'point': 0.31; "can't": 0.34; 'received:google.com': 0.34; "won't": 0.35; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'add': 0.36; 'really': 0.36; 'but': 0.36; 'available.': 0.37; 'received:209': 0.37; 'well.': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'think': 0.40; 'lower': 0.61; "you'll": 0.62; 'more': 0.63; 'note:': 0.64; 'reverse': 0.65; 'fact,': 0.69; 'teach': 0.69; 'special': 0.73; '2013': 0.84; 'actually,': 0.84; 'hard.': 0.84; 'steele': 0.84; 'employ': 0.95; 'have.': 0.95 X-Received: by 10.50.191.131 with SMTP id gy3mr4668885igc.1.1358890599558; Tue, 22 Jan 2013 13:36:39 -0800 (PST) Newsgroups: comp.lang.python Date: Tue, 22 Jan 2013 13:36:39 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=204.11.231.122; posting-account=U-VKXwoAAABBNTXwSeRIKs11KMikvPUN References: <0c2b3482-df46-4324-8bf9-2c45d3f6b516@googlegroups.com> <96947c45-f16b-4e97-b055-edc1241ee4a1@googlegroups.com> <28c05d48-1af1-46db-a316-69d29089d487@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 204.11.231.122 MIME-Version: 1.0 Subject: Re: Sending a broadcast message using raw sockets From: Peter Steele To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1358891237 news.xs4all.nl 6988 [2001:888:2000:d::a6]:52118 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37353 Actually, I used to teach C, so yeah, I know it pretty well. :-) Scapy is a possibility, I just need to add it to my environment (which does= n't have a C compiler). I can jury rig something though. On Tuesday, January 22, 2013 1:19:14 PM UTC-8, Chris Angelico wrote: > On Wed, Jan 23, 2013 at 4:57 AM, Peter Steele wrote: >=20 > > In fact, I have used scapy in the past, but I am working in a restricte= d environment and don't have this package available. It provides tones more= than I really need anyway, and I figured a simple raw socket send/receive = can't be *that* hard. I may have to reverse engineer some C code, such as d= hclient... >=20 >=20 >=20 > Yeah, I think you're working with something fairly esoteric there - >=20 > bypassing the lower tiers of support (routing etc). Chances are you >=20 > won't find any good Python examples, and C's all you'll have. Are you >=20 > reasonably familiar with C? >=20 >=20 >=20 > Point to note: Raw sockets *may* require special privileges. Some >=20 > systems require that only root employ them, for security's sake. >=20 >=20 >=20 > ChrisA