Module ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign SubscriptStore NameLoad Index Str Call NameLoad Num BinOpSub SubscriptLoad NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call NameLoad Num BinOpPow Num Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad BinOpAdd Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str attr Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str BinOpAdd SubscriptLoad NameLoad Index Str BinOpMult SubscriptLoad NameLoad Index Str Call NameLoad NameLoad Num SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad Call NameLoad Call NameLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad BinOpMult SubscriptLoad NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad Call NameLoad Call NameLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad SubscriptLoad NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str Return CompareEq NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assert Call NameLoad NameLoad decorator_list Expr Str FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad BinOpAdd Call NameLoad SubscriptLoad NameLoad Index Str NameLoad attr Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Call NameLoad NameLoad Num SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad BinOpMult SubscriptLoad NameLoad Index Str NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad NameLoad Call AttributeLoad Call NameLoad Call NameLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Return CompareEq NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore ListLoad Str Str SubscriptLoad NameLoad Index Str Str Assign NameStore NameLoad Assign NameStore NameLoad For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Assert NameLoad Assert CompareEq NameLoad SubscriptLoad NameLoad Index Str decorator_list If CompareEq NameLoad Str body Expr Call NameLoad Expr Call NameLoad Print Str
N/A prob36 SRP_step1 SRP_step2 myhmac SRP_init random randrange prob33 mypow intToBytes hashlib sha256 N/A simplified_SRP_step1 SRP_step1 N/A simplified_SRP_step2 SRP_step2 simplified_SRP_step3 N/A N/A state N/A N/A N/A N/A state N/A b N/A randrange 2 N/A N/A state N/A p 2 N/A N/A state N/A B N/A mypow N/A state N/A g N/A state N/A b N/A state N/A p N/A N/A state N/A u N/A randrange 2 N/A 2 128 N/A state N/A simplified_SRP_step4 N/A N/A state N/A N/A N/A x N/A N/A N/A sha256 N/A N/A intToBytes N/A state N/A salt N/A state N/A P hexdigest N/A S N/A mypow N/A state N/A B N/A N/A state N/A a N/A N/A state N/A u N/A int x 16 N/A state N/A p N/A N/A state N/A C_K N/A N/A N/A sha256 N/A intToBytes S digest N/A state N/A simplified_SRP_step5 N/A N/A state N/A N/A N/A S N/A mypow N/A N/A state N/A A N/A mypow N/A state N/A v N/A state N/A u N/A state N/A p N/A state N/A b N/A state N/A p N/A N/A state N/A S_K N/A N/A N/A sha256 N/A intToBytes S digest N/A state N/A simplified_SRP_step6 N/A N/A state N/A N/A N/A N/A state N/A challenge N/A myhmac sha256 N/A state N/A C_K N/A intToBytes N/A state N/A salt N/A state N/A simplified_SRP_validate N/A N/A state N/A N/A N/A expected N/A myhmac sha256 N/A state N/A S_K N/A intToBytes N/A state N/A salt N/A N/A expected N/A state N/A challenge N/A test_simplified_SRP N/A N/A N/A N/A N/A state N/A SRP_init N/A state N/A simplified_SRP_step1 state N/A state N/A simplified_SRP_step2 state N/A state N/A simplified_SRP_step3 state N/A state N/A simplified_SRP_step4 state N/A state N/A simplified_SRP_step5 state N/A state N/A simplified_SRP_step6 state N/A N/A simplified_SRP_validate state N/A N/A  This will run the whole protocol, but to crack the password it won't
access any information the MITM wouldn't know, namely a, v, x or P run_simplified_SRP_MITM N/A N/A N/A N/A N/A state N/A SRP_init N/A state N/A simplified_SRP_step1 state N/A state N/A simplified_SRP_step2 state N/A state N/A simplified_SRP_step3 state N/A state N/A simplified_SRP_step4 state N/A state N/A simplified_SRP_step5 state N/A state N/A simplified_SRP_step6 state N/A state N/A try_simplified_SRP_password N/A N/A state guess N/A N/A N/A x N/A N/A N/A sha256 N/A N/A intToBytes N/A state N/A salt guess hexdigest N/A v N/A mypow N/A state N/A g N/A int x 16 N/A state N/A p N/A v_u N/A mypow v N/A state N/A u N/A state N/A p N/A S N/A mypow N/A N/A state N/A A v_u N/A state N/A b N/A state N/A p N/A mychal N/A myhmac sha256 N/A N/A N/A sha256 N/A intToBytes S digest N/A intToBytes N/A state N/A salt N/A N/A mychal N/A state N/A challenge N/A crack_simplified_SRP N/A N/A N/A N/A N/A state N/A run_simplified_SRP_MITM N/A pw_guess_list N/A Thomas the tank engine Dora the Explora N/A state N/A P Jake the Pirate N/A success False N/A pw None N/A guess pw_guess_list N/A N/A N/A try_simplified_SRP_password state guess N/A N/A success True N/A pw guess N/A success N/A N/A pw N/A state N/A P N/A N/A N/A __name__ __main__ N/A N/A N/A test_simplified_SRP N/A N/A crack_simplified_SRP N/A problem 38 success