Skip to content

Commit a8eeef7

Browse files
authored
Update README.md
1 parent 0df8031 commit a8eeef7

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,22 @@ you should do with it, and what you shouldn't.
1010
# Why did you write it?
1111
Because I could. :) It doesn't have any features that aren't in a million other web servers, and is ridiculously slow. But isn't the idea cool? :)
1212
# What's the current version?
13-
bash-httpd is at version 0.02 at this writing. I don't have any plans for it, but who knows?
13+
The sole script in this repository is versioned.
1414
# Why should I run it instead of Apache or [insert favorite server software here].
1515
You shouldn't. Let me repeat that -- you should *not* use this code in any sort of production environment. If you want a web server, use something else, ie. Apache. See the next question.
1616
# Why *shouldn't* I run it?
17-
Because it's not secure, relatively slow, probably doesn't comply with any of the http specs, and is feature-poor.
17+
Because it's not secure, relatively slow, probably doesn't comply with any of the HTTP specs, and is feature-poor.
1818
# I want to run it anyway. How do I get it and install it?
19-
First, download bash-httpd-0.02. Then edit the config variables at the beginning. Then put a line for it in /etc/inetd.conf, running as nobody. You probably also want to wrap the port.
19+
```console
20+
foo@bar:~$ git clone https://github.com/lewismc/bash-httpd.git
21+
foo@bar:~$ sudo ln -s /path/to/bash-httpd/bash-httpd-0.03.sh /usr/local/bin/bash-httpd
22+
```
23+
Then edit the config variables at the beginning of the script. You may need to insert a line for it in /etc/inetd.conf, running as nobody. You probably also want to wrap the port.
2024

21-
If you're not root, get ahold of Netcat, compile it with -DGAPING_SECURITY_HOLE (because it *is* a gaping security hole), and run:
22-
```bash
23-
(while true; do nc -l -p 8080 -e bash-httpd; done)&
24-
```
25+
If you're not root, get ahold of Netcat, preferably compile it with -DGAPING_SECURITY_HOLE (because it *is* a gaping security hole), and run:
26+
```console
27+
foo@bar:~$ (while true; do nc -l -p 8080 -e bash-httpd; done)&
28+
```
2529

2630
or the like. If you don't understand any part of these instructions, you probably shouldn't be running it. If any harm comes to you or your computer because you ran this software, don't blame me: I don't recommend that *anyone* run it.
2731

0 commit comments

Comments
 (0)