Advertisement
scriptz-team

[TUT] SSH CONSOLE COMMANDS [/FiND/LOCATE/]

Jun 4th, 2012
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. /**************
  2.  
  3. USAGE:
  4.  
  5. DESCRiPTiON => SSH COMMAND
  6.  
  7. ***************/
  8.  
  9. List Directory => dir,
  10. Find index.php in current dir => dir /s /w /b index.php,
  11. Find *config*.php in current dir => dir /s /w /b *config*.php,
  12. Show active connections => netstat -an,
  13. Show running services => net start,
  14. User accounts => net user,
  15. Show computers => net view,
  16. ARP Table => arp -a,
  17. IP Configuration => ipconfig /all
  18. List dir => ls -la,
  19. list file attributes on a Linux second extended file system => lsattr -va,
  20. show opened ports => netstat -an | grep -i listen,
  21.  
  22. /**************
  23.  
  24. FiND
  25.  
  26. ***************/
  27.  
  28. find all suid files => find / -type f -perm -04000 -ls,
  29. find suid files in current dir => find . -type f -perm -04000 -ls,
  30. find all sgid files => find / -type f -perm -02000 -ls,
  31. find sgid files in current dir => find . -type f -perm -02000 -ls,
  32. find config.inc.php files => find / -type f -name config.inc.php,
  33. find config* files => find / -type f -name \config*\,
  34. find config* files in current dir => find . -type f -name \config*\,
  35. find all writable folders and files => find / -perm -2 -ls,
  36. find all writable folders and files in current dir => find . -perm -2 -ls,
  37. find all service.pwd files => find / -type f -name service.pwd,
  38. find service.pwd files in current dir => find . -type f -name service.pwd,
  39. find all .htpasswd files => find / -type f -name .htpasswd,
  40. find .htpasswd files in current dir => find . -type f -name .htpasswd,
  41. find all .bash_history files => find / -type f -name .bash_history,
  42. find .bash_history files in current dir => find . -type f -name .bash_history,
  43. find all .fetchmailrc files => find / -type f -name .fetchmailrc,
  44. find .fetchmailrc files in current dir => find . -type f -name .fetchmailrc,
  45.  
  46. /**************
  47.  
  48. LOCATE
  49.  
  50. ***************/
  51.  
  52. locate httpd.conf files => locate httpd.conf,
  53. locate vhosts.conf files => locate vhosts.conf,
  54. locate proftpd.conf files => locate proftpd.conf,
  55. locate psybnc.conf files => locate psybnc.conf,
  56. locate my.conf files => locate my.conf,
  57. locate admin.php files =>locate admin.php,
  58. locate cfg.php files => locate cfg.php,
  59. locate conf.php files => locate conf.php,
  60. locate config.dat files => locate config.dat,
  61. locate config.php files => locate config.php,
  62. locate config.inc files => locate config.inc,
  63. locate config.inc.php => locate config.inc.php,
  64. locate config.default.php files => locate config.default.php,
  65. locate config* files => locate config,
  66. locate .conf files=>locate '.conf',
  67. locate .pwd files => locate '.pwd',
  68. locate .sql files => locate '.sql',
  69. locate .htpasswd files => locate '.htpasswd',
  70. locate .bash_history files => locate '.bash_history',
  71. locate .mysql_history files => locate '.mysql_history',
  72. locate .fetchmailrc files => locate '.fetchmailrc',
  73. locate backup files => locate backup,
  74. locate dump files => locate dump,
  75. locate priv files => locate priv
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement