diff --git a/patator.py b/patator.py index 531d7ff..28ace63 100755 --- a/patator.py +++ b/patator.py @@ -3572,10 +3572,10 @@ class HTTP_fuzz(TCP_Cache): ('raw_request', 'load request from file'), ('scheme', 'scheme [http|https]'), ('auto_urlencode', 'automatically perform URL-encoding [1|0]'), + ('pathasis', 'retain sequences of /../ or /./ [0|1]'), ('user_pass', 'username and password for HTTP authentication (user:pass)'), ('auth_type', 'type of HTTP authentication [basic | digest | ntlm]'), ('follow', 'follow any Location redirect [0|1]'), - ('pathasis', 'handle sequences of /../ or /./ [0|1]'), ('max_follow', 'redirection limit [5]'), ('accept_cookie', 'save received cookies to issue them in future requests [0|1]'), ('proxy', 'proxy to use (host:port)'), @@ -3628,8 +3628,8 @@ class HTTP_fuzz(TCP_Cache): fp.perform() def execute(self, url=None, host=None, port='', scheme='http', path='/', params='', query='', fragment='', body='', - header='', method='GET', auto_urlencode='1', user_pass='', auth_type='basic', - follow='0', pathasis='0', max_follow='5', accept_cookie='0', proxy='', proxy_type='http', resolve='', ssl_cert='', timeout_tcp='10', timeout='20', persistent='1', + header='', method='GET', auto_urlencode='1', pathasis='0', user_pass='', auth_type='basic', + follow='0', max_follow='5', accept_cookie='0', proxy='', proxy_type='http', resolve='', ssl_cert='', timeout_tcp='10', timeout='20', persistent='1', before_urls='', before_header='', before_egrep='', after_urls='', max_mem='-1'): if url: @@ -3656,8 +3656,8 @@ class HTTP_fuzz(TCP_Cache): fp, _ = self.bind(host, port, scheme) - fp.setopt(pycurl.FOLLOWLOCATION, int(follow)) fp.setopt(pycurl.PATH_AS_IS, int(pathasis)) + fp.setopt(pycurl.FOLLOWLOCATION, int(follow)) fp.setopt(pycurl.MAXREDIRS, int(max_follow)) fp.setopt(pycurl.CONNECTTIMEOUT, int(timeout_tcp)) fp.setopt(pycurl.TIMEOUT, int(timeout))