MCPcopy Create free account
hub / github.com/OWASP/Python-Honeypot / force_kill_tshark

Function force_kill_tshark

core/network.py:63–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61
62
63def force_kill_tshark():
64 pid = os.popen('ps aux | grep tshark').readline().split()[1]
65 os.popen('kill -9 {} &> /dev/null'.format(pid)).read()
66 # wait to make sure tshark is gone!
67 time.sleep(1)
68 return
69
70
71def process_packet(packet, honeypot_events_queue, network_events_queue):

Callers 1

network_traffic_captureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected