mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
disable ntp server on host, start working on ddospot
This commit is contained in:
@ -778,6 +778,23 @@ echo "$mySYSTEMDFIX" | tee /etc/systemd/network/99-default.link
|
||||
fuBANNER "Add cronjobs"
|
||||
echo "$myCRONJOBS" | tee -a /etc/crontab
|
||||
|
||||
### For some honeypots to work we need to ensure ntp.service is not listening
|
||||
echo "### Ensure ntp.service is not listening to avoid port potential port conflict with ddospot."
|
||||
myNTP_IF_DISABLE="interface ignore wildcard
|
||||
interface ignore 127.0.0.1
|
||||
interface ignore ::1"
|
||||
|
||||
if [ "$(cat /etc/ntp.conf | grep "interface ignore wildcard" | wc -l)" != "1" ];
|
||||
then
|
||||
echo "### Found active ntp listeners and updating config."
|
||||
echo "$myNTP_IF_DISABLE" | tee -a /etc/ntp.conf
|
||||
echo "### Restarting ntp.service for changes to take effect."
|
||||
systemctl stop ntp.service
|
||||
systemctl start ntp.service
|
||||
else
|
||||
echo "### Found no active ntp listeners."
|
||||
fi
|
||||
|
||||
# Let's create some files and folders
|
||||
fuBANNER "Files & folders"
|
||||
mkdir -vp /data/adbhoney/{downloads,log} \
|
||||
|
Reference in New Issue
Block a user