-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM ubuntu:latest | ||
MAINTAINER [email protected] | ||
|
||
RUN apt-get update && apt-get upgrade -y | ||
RUN apt-get install -y lighttpd perl git golang libjson-perl libdatetime-perl libwww-mechanize-perl cron | ||
RUN mkdir /root/sslscan && mkdir /var/www/html/json && mkdir ~/git && cd ~/git && git clone https://github.com/ssllabs/ssllabs-scan && git clone https://github.com/nfcring/sslscan && ls sslscan | ||
ADD index.html /var/www/html/. | ||
ADD start.sh /root/. | ||
RUN chmod 644 /var/www/html/* | ||
RUN cd ~/git/ssllabs-scan && go build ssllabs-scan-v3.go | ||
RUN cp ~/git/sslscan/sslscan.css /var/www/html/. | ||
RUN chmod +x /root/start.sh | ||
RUN touch /var/log/cron.log | ||
RUN apt-get install -y rsyslog | ||
ADD sslscan_cron /etc/cron.d/. | ||
ADD hosts.txt /root/git/sslscan/hosts.txt | ||
RUN chmod 644 /etc/cron.d/sslscan_cron | ||
ADD runscan.sh /root/. | ||
RUN chmod +x /root/runscan.sh | ||
CMD /root/start.sh | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="refresh" content="60"> | ||
<title>SSL security scan</title> | ||
</head> | ||
<body> | ||
<p>First scan has not completed yet. come back in a few minutes.</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
cd ~/git/sslscan | ||
perl scanssl-beta.pl | ||
cp sslscan.html /var/www/html/index.html | ||
cp -R /root/git/sslscan/json/ /var/www/html/. | ||
chown -R www-data:www-data /var/www/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# m h dom mon dow user command | ||
#run scan at 01:00 every night | ||
0 01 * * * root perl /root/runscan.sh | ||
|
||
# empty line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
# start syslog | ||
rsyslogd | ||
# start web server | ||
/usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf | ||
# run cron - which runs scan from /etc/cron.d/sslscan_cron | ||
cron && tail -f /var/log/syslog |