What's Changed
- Add updown script capabilities by @oschwartz10612 in #19
You can pass in a updown script for Newt to call when it is adding or removing a target:
--updown "python3 test.py"
It will get called with args when a target is added:
python3 test.py add tcp localhost:8556
python3 test.py remove tcp localhost:8556
Returning a string from the script in the format of a target (ip:dst
so 10.0.0.1:8080
) it will override the target and use this value instead to proxy.
You can look at updown.py as a reference script to get started!
Full Changelog: 1.0.0...1.1.0