projects
/
matthijs
/
servers
/
drsnuggles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
554023e
)
lighttpd/stdout.nl: Add authentication for /beef.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Mon, 20 Feb 2012 14:01:57 +0000
(15:01 +0100)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Mon, 20 Feb 2012 14:01:57 +0000
(15:01 +0100)
Beef is a browser exploit framework, useful for testing XSS
vulnerabilities.
etc/lighttpd/vhosts/stdout-nl
patch
|
blob
|
history
diff --git
a/etc/lighttpd/vhosts/stdout-nl
b/etc/lighttpd/vhosts/stdout-nl
index 1fbb4e4f1d46e17270144c7ab58aec07b0588f9b..1bd9fb89273b98e98521fefbe28428ffdfa20c07 100644
(file)
--- a/
etc/lighttpd/vhosts/stdout-nl
+++ b/
etc/lighttpd/vhosts/stdout-nl
@@
-19,4
+19,18
@@
$HTTP["host"] =~ ".stdout.nl$" {
# Enable dirlistings for /tmp
server.dir-listing = "enable"
}
+
+ $HTTP["url"] =~ "^/beef/" {
+ auth.backend = "htpasswd"
+ auth.backend.htpasswd.userfile = var.site-dir + "/conf/beef.user"
+
+ auth.require = (
+ "/" => (
+ "method" => "basic",
+ "realm" => "Beef",
+ "require" => "valid-user"
+ )
+ )
+ }
+
}