Monitor socket with ngrep or perl for activity, then issue command
Posted
by Lester Kahn
on Stack Overflow
See other posts from Stack Overflow
or by Lester Kahn
Published on 2010-04-03T22:47:50Z
Indexed on
2010/04/03
22:53 UTC
Read the original article
Hit count: 392
I'd like to use ngrep and/or perl to monitor the incoming data stream on a socket, then, when the appropriate characters arrive, like in this case, the string "192.168.1.101:8080", input to the data stream a redirect to another ipaddress, such as "192.168.1.102"
Is this even possible?
© Stack Overflow or respective owner