Skip to content

Commit 427ce6b

Browse files
author
Mihai
authored
Update README.md
1 parent 00a7489 commit 427ce6b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,23 @@ This is a real neat peice of kit ;) A web server in all of ~100 lines of bash.
55
Below is some commentary by the original author on what the software is, what
66
you should do with it, and what you shouldn't.
77

8-
#What is it?
8+
# What is it?
99
Bash-httpd is a web server written in bash, the GNU bourne shell replacement.
10-
#Why did you write it?
10+
# 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? :)
12-
#What's the current version?
12+
# What's the current version?
1313
bash-httpd is at version 0.02 at this writing. I don't have any plans for it, but who knows?
14-
#Why should I run it instead of Apache or [insert favorite server software here].
14+
# 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.
16-
#Why *shouldn't* I run it?
16+
# Why *shouldn't* I run it?
1717
Because it's not secure, relatively slow, probably doesn't comply with any of the http specs, and is feature-poor.
18-
#I want to run it anyway. How do I get it and install it?
18+
# I want to run it anyway. How do I get it and install it?
1919
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.
2020

2121
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-
22+
```bash
2323
(while true; do nc -l -p 8080 -e bash-httpd; done)&
24+
```
2425

2526
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.
2627

0 commit comments

Comments
 (0)