Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #set -x;
- #nc -l -u -p 137 | nc -u 127.0.0.1 1137;
- redirect()
- {
- Proto=$1;
- From=$2;
- To=$3;
- if [ "$Proto" == "udp" ]; then
- {
- ProtoOption=" -u ";
- } fi;
- set -x;
- nc.traditional -l $ProtoOption -p $From -c "nc $ProtoOption 127.0.0.1 $To" &
- set +x;
- }
- killall nc.traditional;
- redirect tcp 139 1139;
- redirect tcp 445 1445;
- redirect udp 137 1137;
- redirect udp 138 1138;
- ps -Af | grep nc.traditional;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement