Module ImportFrom alias Expr Call AttributeLoad NameLoad attr keyword NameLoad Import alias Import alias alias Import alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr Str orelse Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Print BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Num keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr Print NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Str AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Print BinOpMod Str NameLoad If NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Print Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Print Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str NameLoad TryExcept body With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Print Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A gevent monkey N/A N/A N/A monkey patch_all thread False N/A zerorpc N/A os sys N/A argparse watchdog.observers Observer watchdog.events FileSystemEventHandler N/A tempfile N/A shutil N/A subprocess DirWatcher N/A FileSystemEventHandler N/A N/A  Watches a directory and calls the callback when files are created  __init__ N/A N/A self data_dir callback N/A N/A N/A  Initialization  N/A N/A self callback callback N/A observer N/A Observer N/A N/A N/A observer schedule self path data_dir N/A N/A N/A observer start N/A on_created N/A N/A self event N/A N/A N/A  File created  N/A N/A N/A self callback N/A event src_path N/A N/A TCPDumpToWorkbench N/A object N/A N/A  This is a very specific tcpdump to workbench client.  __init__ N/A N/A self listen N/A False N/A N/A  Initialization  N/A N/A self orig_dir N/A N/A os getcwd N/A N/A self temp_dir None N/A listen N/A N/A N/A self tcpdump_cmd tcpdump -I -P -i en0 -C 1 -s 0 -k NP -W 2 -w workbench.pcap N/A N/A N/A self tcpdump_cmd tcpdump -i en0 -C 1 -s 0 -k NP -W 2 -w workbench.pcap N/A N/A self tcpdump_process None N/A N/A self pcap_index 0 N/A N/A self on_deck None N/A N/A Capturing with: %s N/A self tcpdump_cmd N/A __enter__ N/A N/A self N/A N/A N/A  Return self (with statement idiom)  N/A self N/A execute N/A N/A self N/A N/A N/A  Begin capturing PCAPs and sending them to workbench  N/A N/A self temp_dir N/A N/A tempfile mkdtemp N/A N/A N/A os chdir N/A self temp_dir N/A N/A DirWatcher N/A self temp_dir N/A self file_created N/A N/A N/A self subprocess_manager N/A self tcpdump_cmd N/A file_created N/A N/A self filepath N/A N/A N/A  File created callback  N/A N/A self on_deck N/A N/A N/A N/A self store_file N/A self on_deck N/A N/A N/A os remove N/A self on_deck N/A N/A self on_deck filepath N/A store_file N/A N/A self filename N/A N/A N/A  Store a file into workbench  N/A N/A self workbench N/A N/A zerorpc Client timeout 300 heartbeat 60 N/A N/A N/A N/A self workbench connect tcp://127.0.0.1:4242 N/A storage_name N/A streaming_pcap N/A str N/A self pcap_index N/A filename storage_name N/A N/A open filename rb f N/A N/A N/A N/A N/A self workbench store_sample N/A N/A f read storage_name pcap N/A N/A self pcap_index 1 N/A N/A N/A N/A self workbench close N/A subprocess_manager N/A N/A self exec_args N/A N/A N/A N/A N/A N/A self tcpdump_process N/A N/A subprocess Popen N/A N/A exec_args split stdout N/A subprocess PIPE stderr N/A subprocess PIPE N/A N/A N/A OSError N/A N/A N/A RuntimeError N/A Could not run tcpdump executable (either not                                installed or not in path): %s exec_args N/A N/A out err N/A N/A N/A self tcpdump_process communicate N/A out N/A N/A N/A standard output of subprocess: %s out N/A err N/A N/A N/A RuntimeError N/A %s
tcpdump had output on stderr: %s N/A exec_args err N/A N/A N/A self tcpdump_process returncode N/A N/A N/A RuntimeError N/A %s
tcpdump had returncode: %d N/A exec_args N/A N/A self tcpdump_process returncode N/A __exit__ N/A N/A self func_type value traceback N/A N/A N/A  Class Cleanup  N/A 
TCP Dumper.. Cleaning up :) N/A N/A N/A N/A self tcpdump_process kill N/A N/A N/A os chdir N/A self orig_dir N/A N/A N/A shutil rmtree N/A self temp_dir N/A N/A main N/A N/A N/A N/A N/A parser N/A N/A argparse ArgumentParser N/A N/A N/A parser add_argument -p --port type int default 4242 help port used by workbench server N/A N/A N/A parser add_argument -s --server type str default tcp://127.0.0.1 help location of workbench server N/A N/A N/A parser add_argument -l --listen dest listen default False action store_true help listen/monitor mode N/A args N/A N/A parser parse_args N/A port N/A str N/A args port N/A server N/A str N/A args server N/A listen N/A args listen N/A Dumping PCAPs to Workbench server. Use ^C to stop this script... N/A workbench N/A N/A zerorpc Client timeout 300 heartbeat 60 N/A N/A N/A workbench connect N/A N/A server : port N/A N/A N/A N/A TCPDumpToWorkbench listen dumper N/A N/A N/A N/A dumper execute N/A N/A N/A KeyboardInterrupt N/A N/A Exiting... N/A N/A N/A sys exit N/A test N/A N/A N/A N/A N/A  pcap_streamer test  N/A N/A main N/A N/A N/A __name__ __main__ N/A N/A N/A main