Index: doc/socat.html --- doc/socat.html.orig +++ doc/socat.html @@ -3509,10 +3505,10 @@ connection, invokes a shell. This shell has its stdin connected to the TCP socket (nofork). The shell starts filan and lets it print the socket addresses to stderr (your terminal window).

-

echo -e "\0\14\0\0\c" |socat -u - file:/usr/bin/squid.exe,seek=0x00074420
+

echo -e "\0\14\0\0\c" |socat -u - file:${LOCALBASE}/bin/squid.exe,seek=0x00074420

functions as primitive binary editor: it writes the 4 bytes 000 014 000 000 to -the executable /usr/bin/squid at offset 0x00074420 (this is a real world patch +the executable ${LOCALBASE}/bin/squid at offset 0x00074420 (this is a real world patch to make the squid executable from Cygwin run under Windows, actual per May 2004).

socat - tcp:www.blackhat.org:31337,readbytes=1000
@@ -3669,9 +3665,9 @@ error.

FILES

-/usr/bin/socat
-/usr/bin/filan
-/usr/bin/procan +${LOCALBASE}/bin/socat
+${LOCALBASE}/bin/filan
+${LOCALBASE}/bin/procan

ENVIRONMENT VARIABLES