add comment about Debian nc.traditional
This commit is contained in:
@@ -8,6 +8,8 @@ Only works with Ncat versions that are compiled with the `-c` switch.
|
|||||||
while true; do nc -lnp 1337 -c 'read REQ; GET=$(echo $REQ | sed -E "s/GET \/(.*) HTTP.*/\1/"); echo -e "HTTP/1.1 200 OK\nContent-Type: text/html; charset=UTF-8\n\n"; eval "$(echo "%>$(cat index.sh.html)<%" | sed -e "s/<%=/<%echo /g" -e "s/<%/\nRAW\n/g" -e "s/%>/\ncat <<- RAW\n/g")"'; done
|
while true; do nc -lnp 1337 -c 'read REQ; GET=$(echo $REQ | sed -E "s/GET \/(.*) HTTP.*/\1/"); echo -e "HTTP/1.1 200 OK\nContent-Type: text/html; charset=UTF-8\n\n"; eval "$(echo "%>$(cat index.sh.html)<%" | sed -e "s/<%=/<%echo /g" -e "s/<%/\nRAW\n/g" -e "s/%>/\ncat <<- RAW\n/g")"'; done
|
||||||
```
|
```
|
||||||
|
|
||||||
|
_(Note: On Debian you might find `nc` to use the BSD alternative by default. The GNU Netcat is usually at `/usr/bin/nc.traditional`)_
|
||||||
|
|
||||||
## Busybox httpd
|
## Busybox httpd
|
||||||
|
|
||||||
If Busybox was compiled with `httpd`, it can serve simple scripts. If there is no `index.html` it tries `cgi-bin/index.cgi` next using whatever is in the shebang. It can be further customized by having a `httpd.conf` around but keeping it minimal, this works in this repo:
|
If Busybox was compiled with `httpd`, it can serve simple scripts. If there is no `index.html` it tries `cgi-bin/index.cgi` next using whatever is in the shebang. It can be further customized by having a `httpd.conf` around but keeping it minimal, this works in this repo:
|
||||||
|
|||||||
Reference in New Issue
Block a user