#NEWLINE# def sync_fuzz( self , requests , delay = 0 , follow_cookies = True ) : #NEWLINE# #INDENT# ' This is the synchronous fuzzing engine. Useful for fuzzing with\n        delays and fuzzing that follows cookies' #NEWLINE# self . reset ( ) #NEWLINE# http_client = HTTPClient ( ) #NEWLINE# cookie = None #NEWLINE# for request in requests : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if ( follow_cookies and delay ) : #NEWLINE# #INDENT# request . headers = HTTPHelper . add_header_param ( request . header , 'Cookie' , cookie ) #NEWLINE# #UNINDENT# response = http_client . fetch ( request ) #NEWLINE# #UNINDENT# except HTTPError as e : #NEWLINE# #INDENT# if e . response : #NEWLINE# #INDENT# response = e . response #NEWLINE# #UNINDENT# #UNINDENT# self . responses . append ( response ) #NEWLINE# if follow_cookies : #NEWLINE# #INDENT# if ( 'Set-Cookie' in response . headers ) : #NEWLINE# #INDENT# cookie = response . headers [ 'Set-Cookie' ] #NEWLINE# #UNINDENT# #UNINDENT# if delay : #NEWLINE# #INDENT# sleep ( delay ) #NEWLINE# #UNINDENT# #UNINDENT# return self . responses