mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-20 06:02:24 +00:00
tweaking
This commit is contained in:
parent
3a81e988da
commit
e2d9362f8a
5 changed files with 28 additions and 18 deletions
|
@ -15,8 +15,6 @@ Before you post your issue make sure it has not been answered yet and provide **
|
|||
- 📚 Consult the documentation of 💻 your Linux OS, 🐳 [Docker](https://docs.docker.com/), the 🦌 [Elastic stack](https://www.elastic.co/guide/index.html) and the 🍯 [T-Pot Readme](https://github.com/dtag-dev-sec/tpotce/blob/master/README.md).
|
||||
- **⚠️ Provide [BASIC SUPPORT INFORMATION](#-basic-support-information-commands-are-expected-to-run-as-root) or similar detailed information with regard to your issue or we will close the issue or convert it into a discussion without further interaction from the maintainers**.<br>
|
||||
|
||||
Questions such as **"Not seeing any attacks, containers are running fine"** or **"Cannot connect to the T-Pot WebUI, containers are running just fine"** are most likely caused by failures in routing and / or firewall setup and belong into the T-Pot [discussions](https://github.com/telekom-security/tpotce/discussions).
|
||||
|
||||
# ⚠️ Basic support information (commands are expected to run as `root`)
|
||||
|
||||
**We happily take the time to improve T-Pot and take care of things, but we need you to take the time to create an issue that provides us with all the information we need.**
|
||||
|
@ -25,7 +23,7 @@ Questions such as **"Not seeing any attacks, containers are running fine"** or *
|
|||
- What is the version of the OS `lsb_release -a` and `uname -a`?
|
||||
- What T-Pot version are you currently using (only **T-Pot 24.04.x** is currently supported)?
|
||||
- What architecture are you running on (i.e. hardware, cloud, VM, etc.)?
|
||||
- Review the `~/tpotce/install_tpot.log`, attach the log and highlight the errors.
|
||||
- Review the `~/install_tpot.log`, attach the log and highlight the errors.
|
||||
- How long has your installation been running?
|
||||
- If it is a fresh install consult the documentation first.
|
||||
- Most likely it is a port conflict or a remote dependency was unavailable.
|
||||
|
|
|
@ -15,8 +15,6 @@ Before you post your issue make sure it has not been answered yet and provide **
|
|||
- 📚 Consult the documentation of 💻 your Linux OS, 🐳 [Docker](https://docs.docker.com/), the 🦌 [Elastic stack](https://www.elastic.co/guide/index.html) and the 🍯 [T-Pot Readme](https://github.com/dtag-dev-sec/tpotce/blob/master/README.md).
|
||||
- **⚠️ Provide [BASIC SUPPORT INFORMATION](#-basic-support-information-commands-are-expected-to-run-as-root) or similar detailed information with regard to your issue or we will close the issue or convert it into a discussion without further interaction from the maintainers**.<br>
|
||||
|
||||
Questions such as **"Not seeing any attacks, containers are running fine"** or **"Cannot connect to the T-Pot WebUI, containers are running just fine"** are most likely caused by failures in routing and / or firewall setup and belong into the T-Pot [discussions](https://github.com/telekom-security/tpotce/discussions).
|
||||
|
||||
# ⚠️ Basic support information (commands are expected to run as `root`)
|
||||
|
||||
**We happily take the time to improve T-Pot and take care of things, but we need you to take the time to create an issue that provides us with all the information we need.**
|
||||
|
@ -25,7 +23,7 @@ Questions such as **"Not seeing any attacks, containers are running fine"** or *
|
|||
- What is the version of the OS `lsb_release -a` and `uname -a`?
|
||||
- What T-Pot version are you currently using (only **T-Pot 24.04.x** is currently supported)?
|
||||
- What architecture are you running on (i.e. hardware, cloud, VM, etc.)?
|
||||
- Review the `~/tpotce/install_tpot.log`, attach the log and highlight the errors.
|
||||
- Review the `~/install_tpot.log`, attach the log and highlight the errors.
|
||||
- How long has your installation been running?
|
||||
- If it is a fresh install consult the documentation first.
|
||||
- Most likely it is a port conflict or a remote dependency was unavailable.
|
||||
|
|
|
@ -149,7 +149,7 @@ fi
|
|||
# Run Ansible Playbook
|
||||
echo "### Now running T-Pot Ansible Installation Playbook ..."
|
||||
echo
|
||||
ANSIBLE_LOG_PATH=${PWD}/install_tpot.log ansible-playbook ${myANSIBLE_TPOT_PLAYBOOK} -i 127.0.0.1, -c local --tags "${myANSIBLE_TAG}" ${myANSIBLE_BECOME_OPTION}
|
||||
ANSIBLE_LOG_PATH=${HOME}/install_tpot.log ansible-playbook ${myANSIBLE_TPOT_PLAYBOOK} -i 127.0.0.1, -c local --tags "${myANSIBLE_TAG}" ${myANSIBLE_BECOME_OPTION}
|
||||
|
||||
# Something went wrong
|
||||
if [ ! $? -eq 0 ];
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
# T-Pot - Remove cron job and service #
|
||||
#######################################
|
||||
|
||||
- name: Reverse T-Pot - Remove randomized daily reboot
|
||||
- name: Remove T-Pot daily reboot
|
||||
hosts: all
|
||||
gather_facts: true
|
||||
become: true
|
||||
|
@ -64,7 +64,7 @@
|
|||
state: absent
|
||||
when: ansible_distribution in ["AlmaLinux", "Debian", "Fedora", "openSUSE Tumbleweed", "Raspbian", "Rocky", "Ubuntu"]
|
||||
|
||||
- name: Reverse T-Pot - Remove systemd service
|
||||
- name: Remove T-Pot systemd service
|
||||
hosts: all
|
||||
gather_facts: true
|
||||
become: true
|
||||
|
@ -83,6 +83,7 @@
|
|||
name: tpot.service
|
||||
state: stopped
|
||||
enabled: no
|
||||
ignore_errors: yes
|
||||
when: ansible_distribution in ["AlmaLinux", "Debian", "Fedora", "openSUSE Tumbleweed", "Raspbian", "Rocky", "Ubuntu"]
|
||||
|
||||
- name: Remove systemd service file for tpot
|
||||
|
@ -102,7 +103,7 @@
|
|||
# T-Pot - Adjust bashrc, remove T-Pot repository #
|
||||
##################################################
|
||||
|
||||
- name: T-Pot - Reverse Adjustments
|
||||
- name: T-Pot - Revert Adjustments
|
||||
hosts: all
|
||||
gather_facts: true
|
||||
become: true
|
||||
|
@ -285,6 +286,20 @@
|
|||
- "Rocky"
|
||||
- "Ubuntu"
|
||||
|
||||
- name: Remove /var/lib/docker directory
|
||||
file:
|
||||
path: /var/lib/docker
|
||||
state: absent
|
||||
when: ansible_distribution in ["AlmaLinux", "Debian", "Fedora", "openSUSE Tumbleweed", "Raspbian", "Rocky", "Ubuntu"]
|
||||
tags:
|
||||
- "AlmaLinux"
|
||||
- "Debian"
|
||||
- "Fedora"
|
||||
- "openSUSE Tumbleweed"
|
||||
- "Raspbian"
|
||||
- "Rocky"
|
||||
- "Ubuntu"
|
||||
|
||||
######################################
|
||||
# T-Pot - Remove Docker Engine Repos #
|
||||
######################################
|
||||
|
@ -295,11 +310,11 @@
|
|||
become: true
|
||||
|
||||
tasks:
|
||||
- name: Remove Docker Engine repository (Debian, Raspbian, Ubuntu)
|
||||
apt_repository:
|
||||
filename: docker
|
||||
- name: Remove Docker Engine repository file (Debian, Raspbian, Ubuntu)
|
||||
file:
|
||||
path: /etc/apt/sources.list.d/docker.list
|
||||
state: absent
|
||||
when: ansible_distribution in ["Debian", "Raspbian", "Ubuntu"]
|
||||
when: ansible_distribution in ["Debian", "Raspbian", "Ubuntu"]
|
||||
tags:
|
||||
- "Debian"
|
||||
- "Raspbian"
|
||||
|
@ -317,4 +332,3 @@
|
|||
tags:
|
||||
- "AlmaLinux"
|
||||
- "Rocky"
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ fi
|
|||
# Run Ansible Playbook
|
||||
echo "### Now running T-Pot Ansible Uninstallation Playbook ..."
|
||||
echo
|
||||
ANSIBLE_LOG_PATH=${PWD}/uninstall_tpot.log ansible-playbook ${myANSIBLE_TPOT_PLAYBOOK} -i 127.0.0.1, -c local --tags "${myANSIBLE_TAG}" ${myANSIBLE_BECOME_OPTION}
|
||||
ANSIBLE_LOG_PATH=${HOME}/uninstall_tpot.log ansible-playbook ${myANSIBLE_TPOT_PLAYBOOK} -i 127.0.0.1, -c local --tags "${myANSIBLE_TAG}" ${myANSIBLE_BECOME_OPTION}
|
||||
|
||||
# Something went wrong
|
||||
if [ ! $? -eq 0 ];
|
||||
|
@ -90,8 +90,8 @@ if [ ! $? -eq 0 ];
|
|||
exit 1
|
||||
else
|
||||
echo "### Playbook was successful."
|
||||
echo "### Now removing $HOME/tpotce."
|
||||
rm -rf $HOME/tpotce
|
||||
echo "### Now removing ${HOME}/tpotce."
|
||||
rm -rf ${HOME}/tpotce
|
||||
echo
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue