X-Git-Url: http://git.maemo.org/git/?p=pwnitter;a=blobdiff_plain;f=pwnitter.py;h=6b176f134ca94985dba2ef99897de1c314e61b41;hp=6995b0a76d8c201b21125162c9bc3c9971980a75;hb=6cc1ab74cfd3c4a97c8a49722b52941c8f28ff8d;hpb=95c9e14469b6ce4dd23723e9d5d7aabf3190ca38 diff --git a/pwnitter.py b/pwnitter.py index 6995b0a..6b176f1 100755 --- a/pwnitter.py +++ b/pwnitter.py @@ -41,9 +41,11 @@ class Pwnitter(dbus.service.Object): in_signature='', out_signature='') def Start(self, filename=None): # FIXME: Prevent double Start() - device = self.device if filename is None: # Then we do *not* want to read from a PCap file but rather a monitor device self.setup_monitor(device) + device = self.device + else: # We have given a filename, so let's make PCap read from the file + device = filename self.is_running = True try: self.cap = pcap.pcap(device)