[Twisted-Python] twisted irc client + packet capturing

2013-11-08 Thread Edmund Wong
Hi, I've created a script that would log on to an irc server, while capturing packets. I came across the following link: http://dound.com/2009/09/integrating-twisted-with-a-pcap-based-python-packet-sniffer/ But I'm using pycap (http://pycap.sourceforge.net/), but I'm having some difficulties w

Re: [Twisted-Python] twisted irc client + packet capturing

2013-11-08 Thread bino
> Hi, > > I've created a script that would log on to an irc server, while > capturing packets. > > I came across the following link: > > http://dound.com/2009/09/integrating-twisted-with-a-pcap-based-python-packet-sniffer/ > > But I'm using pycap (http://pycap.sourceforge.net/), but I'm having > so

Re: [Twisted-Python] twisted irc client + packet capturing

2013-11-08 Thread exarkun
On 08:50 am, ew...@pw-wspx.org wrote: Hi, I've created a script that would log on to an irc server, while capturing packets. I came across the following link: http://dound.com/2009/09/integrating-twisted-with-a-pcap-based-python- packet-sniffer/ But I'm using pycap (http://pycap.sourceforge

Re: [Twisted-Python] twisted irc client + packet capturing

2013-11-08 Thread David Stainton
I got my sniffer to work in Twisted... but then I'm not using pycap : https://github.com/david415/hushVPN/blob/master/nflog_reader.py I use the NetLinkFilter socket via this python cffi: https://github.com/mk-fg/scapy-nflog-capture Anyhow this allows me to control which packets my sniffer picks up

Re: [Twisted-Python] twisted irc client + packet capturing

2013-11-08 Thread Sofiane Akermoun
Hello, 1) create a pcapdevice I use pcapy because it can return a file descriptor of the new pcapdevice created 2) Use abstract.FileDescriptor With absbract.FileDescriptor you can wrap the previvous pcapdevice with its file descriptor into some that twisted can use properly into the reactor. With

Re: [Twisted-Python] Bristol (England!) sprint hosted by HybridCluster

2013-11-08 Thread James Broadhead
Sounds exciting -- there have been some changes to trial that I've been thinking about for a little while, so this would be a great opportunity. Would you mind if I distributed this email farther afield? To python...@python.org for instance (or are you waiting until you have a fixed venue?) On 5

Re: [Twisted-Python] twisted irc client + packet capturing

2013-11-08 Thread Phil Mayers
Another option is to run tcpdump as a sub-process writing to stdout, and write a ProcessProtocol to parse the pcap stream. This is not terribly difficult, and can actually have some advantages - if your python process blocks for too long you can lose captured packets, but by letting tcpdump agg

Re: [Twisted-Python] Bristol (England!) sprint hosted by HybridCluster

2013-11-08 Thread exarkun
On 04:42 pm, jamesbroadh...@gmail.com wrote: Sounds exciting -- there have been some changes to trial that I've been thinking about for a little while, so this would be a great opportunity. Would you mind if I distributed this email farther afield? To python...@python.org for instance (or are

[Twisted-Python] Twisted 13.2.0 Release Announcement

2013-11-08 Thread HawkOwl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of Twisted Matrix Laboratories, I am honoured to announce the release of Twisted 13.2! The highlights of this release are: * Twisted now includes a HostnameEndpoint implementation which uses IPv4 and IPv6 in parallel, speeding up the conne

Re: [Twisted-Python] Bristol (England!) sprint hosted by HybridCluster

2013-11-08 Thread exarkun
On 5 Nov, 10:25 pm, exar...@twistedmatrix.com wrote: Greetings all, I'm pleased to invite you to join Tom Prince (2013 Twisted Fellow), Luke Marsden (founder of HybridCluster), and the HybridCluster team (including myself!) for the first Twisted sprint hosted by HybridCluster! The sprint wi

Re: [Twisted-Python] Twisted 13.2.0 Release Announcement

2013-11-08 Thread John Santos
A little late to the party, but since you asked for feedback, I installed 13.2.0pre1 last night. No problems with Twisted itself, but I made the mistake of updating (or trying to update) all the other component packages, including Python, openssl, gmp, pyOpenSSL, pycrypto (my app uses SSH to talk

Re: [Twisted-Python] Twisted 13.2.0 Release Announcement

2013-11-08 Thread HawkOwl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi John, There's no code changes between pre1 and full release - so you shouldn't have any problems! :) - -hawkowl On 09/11/13 03:37, John Santos wrote: > > A little late to the party, but since you asked for feedback, I > installed 13.2.0pre1 last