📝 Added simple nc tutorial script
This commit is contained in:
parent
8181ab865d
commit
335af55be5
1 changed files with 6 additions and 0 deletions
6
scripts/netcat_tut.sh
Executable file
6
scripts/netcat_tut.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
while :
|
||||
do
|
||||
echo -e "HTTP/1.1 200 OK\n\n$(echo '<h1>Hi there</h1>')" | nc -l -k -p 8080 -q 1
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue