[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [ooni-probe/master] Removes duplicated startSniffer code
commit 47945ddf4f047dce50409216a21cd89b78fa065e
Author: Flavio Amieiro <amieiro.flavio@xxxxxxxxx>
Date: Fri Dec 7 22:51:13 2012 -0200
Removes duplicated startSniffer code
---
ooni/oonicli.py | 15 ---------------
1 files changed, 0 insertions(+), 15 deletions(-)
diff --git a/ooni/oonicli.py b/ooni/oonicli.py
index c4da345..2df8195 100644
--- a/ooni/oonicli.py
+++ b/ooni/oonicli.py
@@ -87,21 +87,6 @@ def testsEnded(*arg, **kw):
try: reactor.stop()
except: pass
-def startSniffing():
- from ooni.utils.txscapy import ScapyFactory, ScapySniffer
- try:
- checkForRoot()
- except NotRootError:
- print "[!] Includepcap options requires root priviledges to run"
- print " you should run ooniprobe as root or disable the options in ooniprobe.conf"
- sys.exit(1)
-
- print "Starting sniffer"
- config.scapyFactory = ScapyFactory(config.advanced.interface)
-
- sniffer = ScapySniffer(config.reports.pcap)
- config.scapyFactory.registerProtocol(sniffer)
-
def runTestList(none, test_list):
"""
none: is always None.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits