git clone <https://github.com/utoni/ptunnel-ng.git>

Building statically:

sed -i '$s/.*/LDFLAGS=-static "${NEW_WD}\\/configure" --enable-static $@ \\&\\& make clean \\&\\& make -j${BUILDJOBS:-4} all/' autogen.sh
./autogen.sh

Launch tunnel on target: (default port 2222)

./ptunnel-ng

Connect on attacker:

ptunnel-ng -p 10.129.202.64 -r172.16.5.19 -R3389 -l 3390

Here we forward remote 172.16.5.19:3389 to local 127.0.0.1:3390