diff --git a/ncat/docs/ncatguide.xml b/ncat/docs/ncatguide.xml index 73f1f2e40..d23d42403 100644 --- a/ncat/docs/ncatguide.xml +++ b/ncat/docs/ncatguide.xml @@ -1467,11 +1467,11 @@ Hello. This short message is being sent by Ncat. Continuing the example from , we can create a simple HTTP server that serves the - index.html file using the following command: + index.html file using the following command: -nc -lk -p 8080 --sh-exec "echo -e 'HTTP/1.1 200 OK\r\n'; cat index.html" +nc -lk -p 8080 --sh-exec "echo -e 'HTTP/1.1 200 OK\r\n'; cat index.html" @@ -1508,7 +1508,7 @@ https://svn.nmap.org/nmap-exp/d33tah/lua-exec-examples/ncat/scripts/httpd.lua Once you have downloaded it, simply run Ncat in listening mode. Assuming that your working directory contains the httpd.lua script, simply run: - + ncat --lua-exec httpd.lua --listen 8080 --keep-open