tweaking new landing page

This commit is contained in:
t3chn0m4g3 2020-01-24 14:14:09 +00:00
parent 95a075e764
commit 2d16a9c9f6
12 changed files with 51 additions and 87 deletions

View file

@ -6,56 +6,64 @@ ADD dist/ /root/dist/
# Get and install dependencies & packages
RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
apk -U --no-cache add \
git \
nginx \
nginx-mod-http-headers-more \
php7 \
php7-cgi \
php7-ctype \
php7-fileinfo \
php7-fpm \
php7-json \
php7-mbstring \
php7-openssl \
php7-pdo \
php7-pdo_pgsql \
php7-pdo_sqlite \
php7-session \
php7-sqlite3 \
php7-tokenizer \
php7-xml \
php7-zip
git \
nginx \
nginx-mod-http-headers-more \
php7 \
php7-cgi \
php7-ctype \
php7-fileinfo \
php7-fpm \
php7-json \
php7-mbstring \
php7-openssl \
php7-pdo \
php7-pdo_pgsql \
php7-pdo_sqlite \
php7-session \
php7-sqlite3 \
php7-tokenizer \
php7-xml \
php7-zip && \
#
# Clone Heimdall
RUN git clone https://github.com/linuxserver/heimdall && \
# Clone and setup Heimdall, Nginx
git clone https://github.com/linuxserver/heimdall && \
cp -R heimdall/. /var/lib/nginx/html && \
rm -rf heimdall && \
cd /var/lib/nginx/html && \
cp .env.example .env && \
php artisan key:generate && \
## Add previously configured content
mkdir -p /var/lib/nginx/html/storage/app/public/backgrounds/ && \
cp /root/dist/app/bg1.jpg /var/lib/nginx/html/public/img/bg1.jpg && \
#cp /root/dist/app/app.sqlite /var/lib/nginx/html/database/app.sqlite && \
cp /root/dist/app/t-pot.png /var/lib/nginx/html/public/img/heimdall-icon-small.png && \
cp /root/dist/app/app.sqlite /var/lib/nginx/html/database/app.sqlite && \
cp /root/dist/app/cyberchef.png /var/lib/nginx/html/storage/app/public/icons/ZotKKZA2QKplZhdoF3WLx4UdKKhLFamf3lSMcLkr.png && \
cp /root/dist/app/tsec.png /var/lib/nginx/html/storage/app/public/icons/RHwXCfCeGNDdhYgzlShL9o4NBFL2LHZWajgyeL0a.png && \
cp /root/dist/app/spiderfoot.png /var/lib/nginx/html/storage/app/public/icons/eIllmzavE52rNpg9CBoMg1tymHjEOgUnSTHuBwzc.png && \
cp /root/dist/html/*.html /var/lib/nginx/html/public/ && \
cp /root/dist/html/favicon.ico /var/lib/nginx/html/public/favicon-16x16.png && \
cp /root/dist/html/favicon.ico /var/lib/nginx/html/public/favicon-32x32.png && \
cp /root/dist/html/favicon.ico /var/lib/nginx/html/public/favicon-96x96.png && \
cp /root/dist/html/favicon.ico /var/lib/nginx/html/public/favicon.ico && \
## Change ownership, permissions
chown root:www-data -R /var/lib/nginx/html && \
chmod 775 -R /var/lib/nginx/html/storage && \
chmod 775 -R /var/lib/nginx/html/database && \
# Setup configs
sed -i "s/user = nobody/user = nginx/g" /etc/php7/php-fpm.d/www.conf && \
sed -i "s/group = nobody/group = nginx/g" /etc/php7/php-fpm.d/www.conf && \
sed -i "s/9000/64304/g" /etc/php7/php-fpm.d/www.conf && \
sed -i "s/APP_NAME=Heimdall/APP_NAME=T-Pot/g" /var/lib/nginx/html/.env && \
#sed -i '/<?php/aecho("<title>T-Pot</title>");' /var/lib/nginx/html/public/index.php && \
mkdir -p /run/nginx && \
#mkdir -p /run/nginx && \
## Add Nginx / T-Pot specific configs
rm -rf /etc/nginx/conf.d/* /usr/share/nginx/html/* && \
cp /root/dist/conf/nginx.conf /etc/nginx/ && \
cp -R /root/dist/conf/ssl /etc/nginx/ && \
cp /root/dist/conf/tpotweb.conf /etc/nginx/conf.d/ && \
#
# Clean up
apk del --purge \
git && \
rm -rf /root/* && \
rm -rf /var/cache/apk/*
#

Binary file not shown.

Before

Width:  |  Height:  |  Size: 606 KiB

Binary file not shown.

BIN
docker/heimdall/dist/app/cyberchef.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

BIN
docker/heimdall/dist/app/spiderfoot.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
docker/heimdall/dist/app/t-pot.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

BIN
docker/heimdall/dist/app/tsec.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9 KiB

11
docker/heimdall/dist/html/cockpit.html vendored Normal file
View file

@ -0,0 +1,11 @@
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh">
<script type="text/javascript">
window.location.href = window.location.protocol + '//' + window.location.hostname + ':64294'
</script>
<title>Redirect to Cockpit</title>
</head>
</html>

View file

@ -1,23 +0,0 @@
<!DOCTYPE html>
<html lang="en_US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>T-Pot</title>
</head>
<link href="style.css" rel="stylesheet" type="text/css"/>
<body bgcolor="#E20074">
<center>
<a href="/tpotweb.html" target="_top" class="btn">Home</a>
<script language="JavaScript">
document.write('<a href="' + window.location.protocol + '//' + window.location.hostname + ':64294' + '" target="_blank" class="btn">Cockpit</a> ' );
</script>
<a href="/cyberchef/" target="_blank" class="btn">CyberChef</a>
<a href="/myhead/" target="_blank" class="btn">ES Head</a>
<a href="/kibana/" target="_blank" class="btn">Kibana</a>
<a href="/spiderfoot/" target="_blank" class="btn">Spiderfoot</a>
</center>
</body>
</html>

View file

@ -1,17 +0,0 @@
.btn {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0px;
font-family: Arial;
color: #ffffff;
font-size: 12px;
background: #E20074;
padding: 2px 30px 2px 30px;
text-decoration: none;
}
.btn:hover {
background: #c2c2c2;
text-decoration: none;
}

View file

@ -1,15 +0,0 @@
<!DOCTYPE html>
<html lang="en_US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>T-Pot</title>
</head>
<frameset rows='20,*' border='0' frameborder='0' framespacing='0'>
<frame src='navbar.html' name='navbar' marginwidth='0' marginheight='0' scrolling='no' noresize>
<frame src='/kibana/' name='main' marginwidth='0' marginheight='0' scrolling='auto' noresize>
<noframes>
</noframes>
</frameset>
</html>

View file

@ -7,13 +7,13 @@ services:
build: .
container_name: nginx
restart: always
tmpfs:
- /var/tmp/nginx/client_body
- /var/tmp/nginx/proxy
- /var/tmp/nginx/fastcgi
- /var/tmp/nginx/uwsgi
- /var/tmp/nginx/scgi
- /run
# tmpfs:
# - /var/tmp/nginx/client_body
# - /var/tmp/nginx/proxy
# - /var/tmp/nginx/fastcgi
# - /var/tmp/nginx/uwsgi
# - /var/tmp/nginx/scgi
# - /run
network_mode: "host"
ports:
- "64297:64297"