-
Notifications
You must be signed in to change notification settings - Fork 4
/
INSTALL.TXT
89 lines (51 loc) · 2.48 KB
/
INSTALL.TXT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
ServletPot Installation Notes (0.34 and above)
-----------------------------------------------
Tested on:
- OpenSuse 11.4
- MacOS 10.6.++
- Ubuntu 10.04 ++
- Mysql 5.1
- Cassandra 1.0.3 (starting with version 0.35)
- Tomcat 6.0.x ++
Needed software:
- an application server supporting latest servlet specification (2.2+)
- ant 1.8.1
Note for OpenSuse 11.3 and Tomcat:
Make sure to install at least the full version of the Java 1.5 SDK, not
only te gcj-compat version.
How to install ServletPot
1. read THIS file
2. change information in config.txt /web/WEB-INF/config.txt to match your environment
3. compile it (ANT build script supplied build.xml, adapt Tomcat location, task is DIST)
4. prepare the database by running install.sql
5. deploy the application in the ROOT context of the Tomcat Server
6. for Tomcat 6 and 7, delete the ROOT drawer in the webapps directory
7. run ./import.sh to set up initial page
8. (optional) change the content of /web/index.html, just leave the marker
<!--flake--> in it
Configuration:
The userevproxy=yes setting in the configfile (default) means, that Servletpot
is checking if the X-Forwarded-For or CLIENT_IP headers are set. If so, the
IP listed here will be used for IP handling. This makes sense, if Servletpot
is run behind a apache server.
Useful apache settings:
RewriteEngine On
RewriteRule ^/$ /homepage.max.html
Header set CLIENT_IP %{REMOTE_ADDR}
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1/8080/
Means that all requests to / will be rewritten to /homepage.max.html (Tomcat
has some strange behavior when dealing with / URLs).
Additionally the proxypass commands are needed to forward the requests to
the toncat backend.
Servletpot supports custom timezones starting with version 0.34, by entering the timezone field in the
configuration file (default is Europe/Berlin), the honeypot stores the time stamps
in correlation to the local time zone.
Users reported that they use nagios for monitoring the operations and complained
about the not needed log entries, solution starting with version 0.34:
Change the noanswer field in the configuration file to an appropriate value:
noanswer=/your_nagios_request
Make the variable SERVLETPOT_HOME visible to the appserver.
Like this: <Environment name="SERVLETPOT_HOME" value="/Users/flake/config_servletpot" type="java.lang.String"/>
Servletpot will then look into the directory and searches for the files index.html and config.txt for
the config files.