⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
sbin
/
View File Name :
remove-shell
#!/bin/sh -e if test $# -eq 0 then echo "usage: $0 shellname [shellname ...]" 1>&2 exit 1 fi file="$DPKG_ROOT/etc/shells" # I want this to be GUARANTEED to be on the same filesystem as $file tmpfile="${file}.tmp" otmpfile="${file}.tmp2" set -o noclobber cleanup() { rm -f "$tmpfile" "$otmpfile" } trap cleanup EXIT if ! cat "$file" > "$tmpfile" then cat 1>&2 <
"$otmpfile" || true mv "$otmpfile" "$tmpfile" done done chmod --reference="${file}" "${tmpfile}" || chmod $(stat -c %a "${file}") "${tmpfile}" chown --reference="${file}" "${tmpfile}" || chown $(stat -c %U "${file}") "${tmpfile}" mv -Z "${tmpfile}" "${file}" || mv "${tmpfile}" "${file}" trap "" EXIT exit 0