Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias identifier Import alias ImportFrom alias alias alias alias alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Str TupleLoad NameLoad Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr BinOpAdd Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str TupleLoad NameLoad Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad NameLoad Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str NameLoad Call NameLoad Str AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Call NameLoad Str Call AttributeLoad NameLoad attr keyword NameLoad Call NameLoad Str AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Str Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler body Pass decorator_list decorator_list
N/A N/A unittest N/A tempfile N/A uuid N/A os N/A datetime N/A socket N/A mittn.httpfuzzer.dbtools dbtools N/A sqlalchemy sqlalchemy create_engine Table Column MetaData exc types dbtools_test_case N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self context N/A type context N/A object N/A dict N/A N/A self db_file N/A N/A N/A os path join N/A N/A tempfile gettempdir N/A mittn_unittest. N/A str N/A N/A uuid uuid4 N/A N/A N/A self context dburl N/A sqlite:/// N/A self db_file N/A test_dburl_not_defined N/A N/A self N/A N/A N/A empty_context N/A type context N/A object N/A dict N/A dbconn N/A N/A dbtools open_database empty_context N/A N/A N/A self assertEqual dbconn None No dburl provided should return None as connection N/A test_create_db_connection N/A N/A self N/A N/A N/A dbconn N/A N/A dbtools open_database N/A self context N/A N/A N/A self assertEqual N/A type dbconn N/A N/A N/A sqlalchemy engine base Connection An SQLAlchemy connection object was not returned N/A test_add_false_positive N/A N/A self N/A N/A N/A response N/A scenario_id req_headers req_body url timestamp req_method server_protocol_error server_timeout server_error_text_detected server_error_text_matched resp_statuscode resp_headers resp_body resp_history 1 headers body url N/A N/A N/A datetime datetime utcnow method None False False matched_text statuscode resp_headers resp_body resp_history N/A N/A N/A dbtools add_false_positive N/A self context response N/A db_engine N/A N/A sqlalchemy create_engine N/A N/A self context dburl N/A dbconn N/A N/A db_engine connect N/A db_metadata N/A N/A sqlalchemy MetaData N/A httpfuzzer_issues N/A Table httpfuzzer_issues db_metadata N/A Column new_issue N/A types Boolean N/A Column issue_no N/A types Integer primary_key True nullable False N/A Column timestamp N/A N/A types DateTime timezone True N/A Column test_runner_host N/A types Text N/A Column scenario_id N/A types Text N/A Column url N/A types Text N/A Column server_protocol_error N/A types Text N/A Column server_timeout N/A types Boolean N/A Column server_error_text_detected N/A types Boolean N/A Column server_error_text_matched N/A types Text N/A Column req_method N/A types Text N/A Column req_headers N/A types LargeBinary N/A Column req_body N/A types LargeBinary N/A Column resp_statuscode N/A types Text N/A Column resp_headers N/A types LargeBinary N/A Column resp_body N/A types LargeBinary N/A Column resp_history N/A types LargeBinary N/A db_select N/A N/A N/A sqlalchemy sql select N/A httpfuzzer_issues N/A db_result N/A N/A dbconn execute db_select N/A result N/A N/A db_result fetchone N/A N/A key value N/A N/A response iteritems N/A N/A N/A N/A self assertEqual N/A result N/A key value N/A %s not found in database after add key N/A N/A N/A self assertEqual N/A result N/A test_runner_host N/A N/A socket gethostbyname N/A N/A socket getfqdn Test runner host name not correct in database N/A N/A N/A self assertLessEqual N/A result N/A timestamp N/A N/A N/A datetime datetime utcnow Timestamp not correctly stored in database N/A N/A N/A dbconn close N/A test_number_of_new_false_positives N/A N/A self N/A N/A N/A response N/A scenario_id req_headers req_body url req_method timestamp server_protocol_error server_timeout server_error_text_detected server_error_text_matched resp_statuscode resp_headers resp_body resp_history 1 headers body url method N/A N/A N/A datetime datetime utcnow None False False matched_text statuscode resp_headers resp_body resp_history N/A N/A N/A dbtools add_false_positive N/A self context response N/A N/A N/A self assertEqual N/A N/A dbtools number_of_new_in_database N/A self context 1 After adding one, no one finding in database N/A N/A N/A dbtools add_false_positive N/A self context response N/A N/A N/A self assertEqual N/A N/A dbtools number_of_new_in_database N/A self context 2 After adding two, no two findings in db N/A test_false_positive_detection N/A N/A self N/A N/A N/A response N/A scenario_id req_headers req_body url req_method timestamp server_protocol_error server_timeout server_error_text_detected server_error_text_matched resp_statuscode resp_headers resp_body resp_history 1 headers body url method N/A N/A N/A datetime datetime utcnow False False False matched_text statuscode resp_headers resp_body resp_history N/A N/A N/A dbtools add_false_positive N/A self context response N/A N/A N/A self assertEqual N/A N/A dbtools known_false_positive N/A self context response True Duplicate false positive not detected N/A N/A response N/A scenario_id 2 N/A N/A N/A self assertEqual N/A N/A dbtools known_false_positive N/A self context response False Not a duplicate: scenario_id different N/A N/A N/A dbtools add_false_positive N/A self context response N/A N/A response N/A server_protocol_error Error text N/A N/A N/A self assertEqual N/A N/A dbtools known_false_positive N/A self context response False Not a duplicate: server_protocol_error different N/A N/A N/A dbtools add_false_positive N/A self context response N/A N/A response N/A resp_statuscode 500 N/A N/A N/A self assertEqual N/A N/A dbtools known_false_positive N/A self context response False Not a duplicate: resp_statuscode different N/A N/A N/A dbtools add_false_positive N/A self context response N/A N/A response N/A server_timeout True N/A N/A N/A self assertEqual N/A N/A dbtools known_false_positive N/A self context response False Not a duplicate: server_timeout different N/A N/A N/A dbtools add_false_positive N/A self context response N/A N/A response N/A server_error_text_detected True N/A N/A N/A self assertEqual N/A N/A dbtools known_false_positive N/A self context response False Not a duplicate: server_error_text_detected different N/A N/A N/A dbtools add_false_positive N/A self context response N/A N/A N/A self assertEqual N/A N/A dbtools known_false_positive N/A self context response True A duplicate case not detected N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A N/A os unlink N/A self db_file N/A N/A N/A N/A N/A N/A