mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 04:52:11 +00:00
fixes #973
This commit is contained in:
parent
fb93d85119
commit
beb9abca16
2 changed files with 8 additions and 3 deletions
|
@ -159,10 +159,10 @@ ListenStream=
|
||||||
ListenStream=64294
|
ListenStream=64294
|
||||||
"
|
"
|
||||||
mySSHSETTINGS="
|
mySSHSETTINGS="
|
||||||
|
Port 64295
|
||||||
Match Group tpotlogs
|
Match Group tpotlogs
|
||||||
PermitOpen 127.0.0.1:64305
|
PermitOpen 127.0.0.1:64305
|
||||||
ForceCommand /usr/bin/false
|
ForceCommand /usr/bin/false
|
||||||
Port 64295
|
|
||||||
"
|
"
|
||||||
myRANDOM_HOUR=$(shuf -i 2-22 -n 1)
|
myRANDOM_HOUR=$(shuf -i 2-22 -n 1)
|
||||||
myRANDOM_MINUTE=$(shuf -i 0-59 -n 1)
|
myRANDOM_MINUTE=$(shuf -i 0-59 -n 1)
|
||||||
|
|
|
@ -218,8 +218,13 @@ echo
|
||||||
|
|
||||||
# Ensure some defaults
|
# Ensure some defaults
|
||||||
echo "### Ensure some T-Pot defaults with regard to some folders, permissions and configs."
|
echo "### Ensure some T-Pot defaults with regard to some folders, permissions and configs."
|
||||||
sed -i '/^port/Id' /etc/ssh/sshd_config
|
sed -i '/^port/I,$d' /etc/ssh/sshd_config
|
||||||
echo "Port 64295" >> /etc/ssh/sshd_config
|
tee -a /etc/ssh/sshd_config << EOF
|
||||||
|
Port 64295
|
||||||
|
Match Group tpotlogs
|
||||||
|
PermitOpen 127.0.0.1:64305
|
||||||
|
ForceCommand /usr/bin/false
|
||||||
|
EOF
|
||||||
echo
|
echo
|
||||||
|
|
||||||
### Ensure creation of T-Pot related folders, just in case
|
### Ensure creation of T-Pot related folders, just in case
|
||||||
|
|
Loading…
Reference in a new issue