BishopFox / sliver

Adversary Emulation Framework
GNU General Public License v3.0
8.53k stars 1.13k forks source link

implant does not uses socks5 proxy #1366

Open cristal-node opened 1 year ago

cristal-node commented 1 year ago

Describe the bug generated implant does not uses proxy from "ALL_PROXY" environment variable in linux.

To Reproduce

  1. generate command: generate -o linux -m 192.168.0.2 -d
  2. run the implant ALL_PROXY=socks5h://127.0.0.1:8080 ./implant

Expected behavior implant connects with socks5 server.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context

I am trying to use the implant with tor hidden service. so I need to use "socks5h" proxy.

moloch-- commented 1 year ago

Only HTTP/S proxies are supported by the implant currently.

cristal-node commented 1 year ago

thanks for clearing this up. I'll try using http proxy. but still humbly request for socks5 proxies 😅

cristal-node commented 1 year ago

I still wonder why only "HTTPS_PROXY" works. wiki says,

Environment Variable: HTTPS_PROXY, HTTP_PROXY, FTP_PROXY, or ALL_PROXY. NO_PROXY is respected.

moloch-- commented 1 year ago

Oh that's probably a bug.