epinna / weevely3

Weaponized web shell
GNU General Public License v3.0
3.21k stars 606 forks source link

Add some CLI options #158

Closed rsrdesarrollo closed 1 year ago

rsrdesarrollo commented 1 year ago

fix https://github.com/epinna/weevely3/issues/103. fix https://github.com/epinna/weevely3/issues/137. fix https://github.com/epinna/weevely3/issues/29. Add CLI options to specify headers, proxy and basic authentication whitout the need of touching config file

rsrdesarrollo commented 1 year ago

This PR adds the following CLI options to the terminal command

  -H HEADERS, --header HEADERS
                        (HTTP) Extra header to include in the request. This option can be used multiple times to add/replace/remove multiple headers.
  -x PROXY, --proxy PROXY
                        Use a specific proxy [protocol://]host[:port].
  -u USER, --user USER  <user:password> server user and password for basic auth

the interface is the same as curl

ZanyMonk commented 1 year ago

Good idea !

There is one thing that bothers me though : there is no default=[] for headers, it's None when starting a new session and that raises an Exception. Could you add a default value to this argument please ?

rsrdesarrollo commented 1 year ago

Sorry I fu%k%d up my repo (for reasons I'm ashamed to tell) xDD, I will generate a new PR, is easier than recovering the history of my broken repo xD

noraj commented 7 months ago

@rsrdesarrollo I would be nice you PR this again :)