Skip to content

Commit 157f9e8

Browse files
authored
Merge pull request #80 from rubyfu/noraj-patch-1
web-server-and-proxy: fix typo + add tls example
2 parents ec3b963 + 5cd0b6a commit 157f9e8

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

module-0x4-or-web-kung-fu/web-server-and-proxy.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,19 @@ Iodine.threads = 1
182182
Iodine.start
183183
```
184184

185+
**HTTPS server**
186+
187+
Self-signed automatic certificates:
188+
189+
`iodine -b 10.0.0.1 -p 8000 -www /var/www -tls -v`
190+
191+
Manually provide certs
192+
193+
`iodine -b 10.0.0.1 -p 8000 -www /var/www -v -tls-cert serv.crt -tls-key serv.key -tls-pass key_pass`
194+
185195
## Agoo Web Server
186196

187-
Agoo has a logging class which allows controlling which data you want deplayed, this is useful for data grabbing (eg. blind XSS). As yo ucan also configure some routes without using a applicatio nframework it is also useful for quick exploit writting when you need to return a special answer.
197+
Agoo has a logging class which allows controlling which data you want deplayed, this is useful for data grabbing (eg. blind XSS). As you can also configure some routes without using an application framework. It is also useful for quick exploit writting when you need to return a special answer.
188198

189199
```
190200
require 'agoo'
@@ -220,6 +230,10 @@ Agoo::Server.handle(:POST, "/data", handler)
220230
Agoo::Server.start()
221231
```
222232

233+
One-line:
234+
235+
`agoo -b 10.0.0.1 -p 8000 -d /var/www -v`
236+
223237
## Web Proxy
224238

225239
As we can run web server, we can run a proxy server, here's a oneliner code to run a web proxy server in ruby

0 commit comments

Comments
 (0)