bitsadmin / wesng

Windows Exploit Suggester - Next Generation
BSD 3-Clause "New" or "Revised" License
4.24k stars 571 forks source link

Allow updating definition with --definition --update #60

Open FalcoGer opened 2 years ago

FalcoGer commented 2 years ago

I wish to use a central definition.zip. I have made an alias to always run wes.py with --definition /some/path/to/file.zip.

However when --update is supplied, parse will throw errors about invalid arguments.

I'd like if arguments are allowed, in particular where --update will write the new definition to. I'd also like if --color and other such tags were still allowed.

bitsadmin commented 2 years ago

If I remember correctly the --update parameter indeed doesn't support the --definition [path] parameter. What you could do as a workaround is to create two aliases:

Update pushd /some/path/to; wes.py --update; popd

Check wes.py --color --definition /some/path/to/file.zip systeminfo.txt