8 lines
140 B
Bash
Executable File
8 lines
140 B
Bash
Executable File
#!/bin/bash
|
|
|
|
while true; do {
|
|
echo -ne "HTTP/1.0 200 OK\r\n
|
|
Content-Length: \$(wc -c <index.htm)\r\n\r\n";
|
|
} | nc -l -p 8080 ;
|
|
done
|