Skip to content

Commit

Permalink
Merge pull request #210 from lprat/master
Browse files Browse the repository at this point in the history
Fix use proxy SOCKS5/4
  • Loading branch information
xmendez authored Aug 10, 2020
2 parents f7bbca4 + 89b2bee commit 2d54c9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wfuzz/myhttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@ def _set_extra_options(self, c, fuzzres, poolid):

if ptype == "SOCKS5":
c.setopt(pycurl.PROXYTYPE, pycurl.PROXYTYPE_SOCKS5)
c.setopt(pycurl.PROXY, "%s:%s" % (ip, port))
elif ptype == "SOCKS4":
c.setopt(pycurl.PROXYTYPE, pycurl.PROXYTYPE_SOCKS4)
c.setopt(pycurl.PROXY, "%s:%s" % (ip, port))
elif ptype == "HTTP":
c.setopt(pycurl.PROXY, "%s:%s" % (ip, port))
else:
Expand Down

0 comments on commit 2d54c9a

Please sign in to comment.