Added self as tear_down_monitor argument *blush*
[pwnitter] / pwnitter.py
index 6b176f1..67d3f75 100755 (executable)
@@ -83,7 +83,7 @@ class Pwnitter(dbus.service.Object):
         return self.status
 
 
-    def tear_down_monitor(device='mon0'):
+    def tear_down_monitor(self, device='mon0'):
         cmd = '/sbin/ifconfig mon0 down'.split()
         subprocess.call(cmd)
         cmd = '/usr/sbin/iw dev mon0 del'.split()