matro7sh / Yelaa

Obtain a clean-cut architecture at the launch of a mission and run some tests ( subdomain search, fuzzing, make screenshots on a given perimeter )
25 stars 4 forks source link

(fix/tools)proxy usage with socks & http #69

Closed djnnvx closed 1 year ago

djnnvx commented 1 year ago

tried to run Yelaa with http proxy & socks proxy. doesn't work with proxychains out of the box because it is statically compiled & proxchains does LD_PRELOAD stuff to hook to the connect() call & set the proxies itself, but I also added a rule in the makefile to compile with gcc-go if it absolutely must be done.

it's not the recommanded way however, i've noticed that some tool interfaces did not read from HTTP_PROXY/HTTPS_PROXY values, so I had to set it up manually and it worked. no clue why tbh, maybe it was just a local issue.

How to use ?

Just run through your socks proxy / http(s) proxy through the command-line arguments, instead of wrapping with a Proxychains call:

./Yelaa scan -p socks5://127.0.0.1:9050 -t targets.txt

Note: I had issues with socks4 proxy, please prefer socks5 proxy if possible I had the following error, but it worked with socks5 proxyconnect tcp: dial tcp xxx.xxx.xx.xx:xxxx: connect: connection refused