Module Expr Str ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body For TupleStore NameStore NameStore NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return ListLoad NameLoad NameLoad orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Return ListLoad NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr NameLoad body Return ListLoad NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse If CompareEq AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr AttributeLoad Call NameLoad NameLoad attr body Return ListLoad NameLoad NameLoad Return ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return CompareIn AttributeLoad Call NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Assign NameStore Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str For NameStore NameLoad body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Slice Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body While Call AttributeLoad AttributeLoad NameLoad attr attr body If Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Num handlers ExceptHandler type NameLoad body Expr Call NameLoad Num decorator_list decorator_list
N/A N/A 
# Inbound Proxy Module developed by Bharadwaj Machiraju (blog.tunnelshade.in)
#                     as a part of Google Summer of Code 2013
 multiprocessing Process current_process framework.http transaction framework.http.proxy.cache_handler response_from_cache request_from_cache framework.lib.owtf_process OWTFProcess framework timer urlparse urlparse N/A os N/A json N/A glob N/A time N/A logging TransactionLogger N/A OWTFProcess N/A N/A 
    This transaction logging process is started seperately from tornado proxy
    This logger checks for *.rd files in cache_dir and saves it as owtf db
    transaction, *.rd files serve as a message that the file corresponding
    to the hash is ready to be converted.
     __init__ N/A N/A self N/A kwargs N/A N/A N/A N/A N/A super TransactionLogger self __init__ kwargs N/A N/A self target N/A N/A self get_component target N/A N/A self transaction N/A N/A self get_component transaction N/A derive_target_for_transaction N/A N/A self request response target_list host_list N/A N/A N/A N/A target_id Target target_list N/A N/A N/A N/A N/A request url startswith Target N/A N/A N/A target_id True N/A N/A N/A Target N/A request url N/A N/A N/A target_id N/A N/A self get_scope_for_url N/A request url host_list N/A N/A N/A N/A N/A N/A response headers get Referer None N/A N/A N/A N/A response headers N/A Referer startswith Target N/A N/A N/A target_id N/A N/A self get_scope_for_url N/A request url host_list N/A N/A N/A N/A N/A urlparse N/A request url hostname N/A N/A urlparse Target hostname N/A N/A N/A target_id True N/A N/A N/A N/A N/A self target GetTargetID N/A N/A self get_scope_for_url N/A request url host_list N/A get_scope_for_url N/A N/A self url host_list N/A N/A N/A N/A N/A N/A urlparse url hostname host_list N/A get_owtf_transactions N/A N/A self hash_list N/A N/A N/A transactions_dict None N/A target_list N/A N/A N/A self target GetIndexedTargets N/A target_list N/A N/A transactions_dict N/A N/A host_list N/A N/A N/A self target GetAllInScope host_name N/A request_hash hash_list N/A N/A request N/A request_from_cache N/A N/A N/A os path join N/A self cache_dir request_hash N/A response N/A response_from_cache N/A N/A N/A os path join N/A self cache_dir request_hash N/A N/A target_id N/A request in_scope N/A N/A self derive_target_for_transaction request response target_list host_list N/A owtf_transaction N/A N/A transaction HTTP_Transaction N/A N/A timer Timer N/A N/A N/A owtf_transaction ImportProxyRequestResponse request response N/A N/A N/A N/A N/A N/A transactions_dict N/A target_id append owtf_transaction N/A N/A N/A KeyError N/A N/A N/A transactions_dict N/A target_id N/A owtf_transaction N/A transactions_dict N/A get_hash_list N/A N/A self cache_dir N/A N/A N/A hash_list N/A N/A file_path N/A N/A glob glob N/A N/A N/A os path join cache_dir *.rd N/A N/A request_hash N/A N/A N/A N/A os path basename file_path N/A -3 N/A N/A N/A hash_list append request_hash N/A N/A N/A os remove file_path N/A hash_list N/A pseudo_run N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self poison_q empty N/A N/A N/A N/A glob glob N/A N/A N/A os path join N/A self cache_dir *.rd N/A N/A hash_list N/A N/A self get_hash_list N/A self cache_dir N/A transactions_dict N/A N/A self get_owtf_transactions hash_list N/A transactions_dict N/A N/A N/A N/A N/A self transaction LogTransactionsFromLogger transactions_dict N/A N/A N/A N/A time sleep 2 N/A N/A N/A KeyboardInterrupt N/A N/A N/A exit -1 N/A N/A