#NEWLINE# def start( context , argv ) : #NEWLINE# #INDENT# if ( ( len ( argv ) != 2 ) and ( len ( argv ) != 3 ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Usage: -s "redirecttosmb.py smbserver-ip [identifier]"' ) #NEWLINE# #UNINDENT# context . smbserver_ip = context [ 1 ] #NEWLINE# if ( len ( argv ) == 3 ) : #NEWLINE# #INDENT# context . identifier = argv [ 2 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# context . identifier = 'mitmproxy-identifier'