mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 12:32:12 +00:00
tweaking
This commit is contained in:
parent
3b8c959c66
commit
a4227e6a9f
4 changed files with 10 additions and 9 deletions
|
@ -19,8 +19,6 @@ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
|
||||||
# Setup Tanner
|
# Setup Tanner
|
||||||
git clone --depth=1 https://github.com/mushorg/tanner /opt/tanner && \
|
git clone --depth=1 https://github.com/mushorg/tanner /opt/tanner && \
|
||||||
cd /opt/tanner/ && \
|
cd /opt/tanner/ && \
|
||||||
git fetch origin pull/362/head:test && \
|
|
||||||
git checkout test && \
|
|
||||||
cp /root/dist/config.py /opt/tanner/tanner/ && \
|
cp /root/dist/config.py /opt/tanner/tanner/ && \
|
||||||
pip3 install --no-cache-dir setuptools && \
|
pip3 install --no-cache-dir setuptools && \
|
||||||
pip3 install --no-cache-dir -r requirements.txt && \
|
pip3 install --no-cache-dir -r requirements.txt && \
|
||||||
|
|
|
@ -13,8 +13,8 @@ myTPOTCOMPOSE="/opt/tpot/etc/tpot.yml"
|
||||||
myLSB_STABLE_SUPPORTED="stretch buster"
|
myLSB_STABLE_SUPPORTED="stretch buster"
|
||||||
myLSB_TESTING_SUPPORTED="sid"
|
myLSB_TESTING_SUPPORTED="sid"
|
||||||
myREMOTESITES="https://hub.docker.com https://github.com https://pypi.python.org https://debian.org"
|
myREMOTESITES="https://hub.docker.com https://github.com https://pypi.python.org https://debian.org"
|
||||||
myPREINSTALLPACKAGES="aria2 apache2-utils cracklib-check curl dialog figlet fuse grc libcrack2 libpq-dev lsb-release netselect-apt net-tools software-properties-common toilet"
|
myPREINSTALLPACKAGES="aria2 apache2-utils cracklib-runtime curl dialog figlet fuse grc libcrack2 libpq-dev lsb-release netselect-apt net-tools software-properties-common toilet"
|
||||||
myINSTALLPACKAGES="aria2 apache2-utils apparmor apt-transport-https aufs-tools bash-completion build-essential ca-certificates cgroupfs-mount cockpit cockpit-docker console-setup console-setup-linux cracklib-check curl debconf-utils dialog dnsutils docker.io docker-compose ethtool fail2ban figlet genisoimage git glances grc haveged html2text htop iptables iw jq kbd libcrack2 libltdl7 man mosh multitail netselect-apt net-tools npm ntp openssh-server openssl pass pigz prips software-properties-common syslinux psmisc pv python3-pip toilet unattended-upgrades unzip vim wget wireless-tools wpasupplicant"
|
myINSTALLPACKAGES="aria2 apache2-utils apparmor apt-transport-https aufs-tools bash-completion build-essential ca-certificates cgroupfs-mount cockpit cockpit-docker console-setup console-setup-linux cracklib-runtime curl debconf-utils dialog dnsutils docker.io docker-compose elasticsearch-curator ethtool fail2ban figlet genisoimage git glances grc haveged html2text htop iptables iw jq kbd libcrack2 libltdl7 man mosh multitail netselect-apt net-tools npm ntp openssh-server openssl pass pigz prips software-properties-common syslinux psmisc pv python3-pip toilet unattended-upgrades unzip vim wget wireless-tools wpasupplicant"
|
||||||
myINFO="\
|
myINFO="\
|
||||||
########################################
|
########################################
|
||||||
### T-Pot Installer for Debian (Sid) ###
|
### T-Pot Installer for Debian (Sid) ###
|
||||||
|
@ -685,7 +685,7 @@ echo "UseRoaming no" | tee -a /etc/ssh/ssh_config
|
||||||
# Installing elasticdump, yq
|
# Installing elasticdump, yq
|
||||||
fuBANNER "Installing pkgs"
|
fuBANNER "Installing pkgs"
|
||||||
npm install https://github.com/taskrabbit/elasticsearch-dump -g
|
npm install https://github.com/taskrabbit/elasticsearch-dump -g
|
||||||
pip3 install elasticsearch-curator yq
|
pip3 install yq
|
||||||
hash -r
|
hash -r
|
||||||
|
|
||||||
# Cloning T-Pot from GitHub
|
# Cloning T-Pot from GitHub
|
||||||
|
|
|
@ -109,7 +109,7 @@ tasksel tasksel/first multiselect ssh-server
|
||||||
########################
|
########################
|
||||||
### Package Installation
|
### Package Installation
|
||||||
########################
|
########################
|
||||||
d-i pkgsel/include string apache2-utils cracklib-check curl dialog figlet git grc libcrack2 libpq-dev lsb-release netselect-apt net-tools software-properties-common toilet
|
d-i pkgsel/include string apache2-utils cracklib-runtime curl dialog figlet git grc libcrack2 libpq-dev lsb-release netselect-apt net-tools software-properties-common toilet
|
||||||
popularity-contest popularity-contest/participate boolean false
|
popularity-contest popularity-contest/participate boolean false
|
||||||
|
|
||||||
#################
|
#################
|
||||||
|
|
|
@ -63,7 +63,7 @@ function fuSELFUPDATE () {
|
||||||
echo "###### $myBLUE""No updates found in repository.""$myWHITE"
|
echo "###### $myBLUE""No updates found in repository.""$myWHITE"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
myRESULT=$(git diff --name-only origin/master | grep update.sh)
|
myRESULT=$(git diff --name-only origin/dev | grep update.sh)
|
||||||
if [ "$myRESULT" == "update.sh" ];
|
if [ "$myRESULT" == "update.sh" ];
|
||||||
then
|
then
|
||||||
echo "###### $myBLUE""Found newer version, will be pulling updates and restart myself.""$myWHITE"
|
echo "###### $myBLUE""Found newer version, will be pulling updates and restart myself.""$myWHITE"
|
||||||
|
@ -183,7 +183,10 @@ function fuUPDATER () {
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
echo "### Installing apt-fast"
|
echo "### Installing apt-fast"
|
||||||
/bin/bash -c "$(curl -sL https://raw.githubusercontent.com/ilikenwf/apt-fast/master/quick-install.sh)"
|
/bin/bash -c "$(curl -sL https://raw.githubusercontent.com/ilikenwf/apt-fast/master/quick-install.sh)"
|
||||||
local myPACKAGES="aria2 apache2-utils apparmor apt-transport-https aufs-tools bash-completion build-essential ca-certificates cgroupfs-mount cockpit cockpit-docker console-setup console-setup-linux cracklib-check curl debconf-utils dialog dnsutils docker.io docker-compose ethtool fail2ban figlet genisoimage git glances grc haveged html2text htop iptables iw jq kbd libcrack2 libltdl7 man mosh multitail netselect-apt net-tools npm ntp openssh-server openssl pass pigz prips software-properties-common syslinux psmisc pv python3-pip toilet unattended-upgrades unzip vim wget wireless-tools wpasupplicant"
|
local myPACKAGES="aria2 apache2-utils apparmor apt-transport-https aufs-tools bash-completion build-essential ca-certificates cgroupfs-mount cockpit cockpit-docker console-setup console-setup-linux cracklib-runtime curl debconf-utils dialog dnsutils docker.io docker-compose elasticsearch-curator ethtool fail2ban figlet genisoimage git glances grc haveged html2text htop iptables iw jq kbd libcrack2 libltdl7 man mosh multitail netselect-apt net-tools npm ntp openssh-server openssl pass pigz prips software-properties-common syslinux psmisc pv python3-elasticsearch-curator python3-pip toilet unattended-upgrades unzip vim wget wireless-tools wpasupplicant"
|
||||||
|
echo "### Removing pip based install of elasticsearch-curator"
|
||||||
|
pip3 uninstall elasticsearch-curator -y
|
||||||
|
hash -r
|
||||||
echo "### Now upgrading packages ..."
|
echo "### Now upgrading packages ..."
|
||||||
dpkg --configure -a
|
dpkg --configure -a
|
||||||
apt-fast -y autoclean
|
apt-fast -y autoclean
|
||||||
|
@ -197,7 +200,7 @@ echo "debconf debconf/frontend select noninteractive" | debconf-set-selections -
|
||||||
apt-fast -y dist-upgrade -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --force-yes
|
apt-fast -y dist-upgrade -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --force-yes
|
||||||
dpkg --configure -a
|
dpkg --configure -a
|
||||||
npm install "https://github.com/taskrabbit/elasticsearch-dump" -g
|
npm install "https://github.com/taskrabbit/elasticsearch-dump" -g
|
||||||
pip3 install --upgrade elasticsearch-curator yq
|
pip3 install --upgrade yq
|
||||||
hash -r
|
hash -r
|
||||||
echo "### Removing and holding back problematic packages ..."
|
echo "### Removing and holding back problematic packages ..."
|
||||||
apt-fast -y purge exim4-base mailutils pcp cockpit-pcp
|
apt-fast -y purge exim4-base mailutils pcp cockpit-pcp
|
||||||
|
|
Loading…
Reference in a new issue