Home Tech Assists Security Assists Finding common exploits in the Unix shell
PDF Print E-mail
User Rating: / 0
PoorBest 

 Check the active processes
Using the "ps" command to look for odd or unknown processes is normally the first place to start, if you are unsure what to look for in the process list, using   "netstat -ae | grep irc"    and/or  "netstat -ea | grep 666" and look for ports 6666, 6667, 6668, 6669 being in use, these are common ports used for running IRC bots, they may have the name "irc" listed against them, or may have "httpd" or sometimes other regular services names, but are very likely to have an incorrect or unusual path.

Check crontab
Check your crontab and see if there are unexpected or strange entries, crontab taks are often to check that the exploit has not been found and regenerate it from hidden directories if it has been exposed  and considered to have been deleted, alternatively these may be used in many exploits to restart IRC bots, even when administrators or automated process monitors are used to kill a rogue process. 

Check for hidden files or directories
Check for hidden files or directories you dont expect to see, those starting with "." (dots) and also look for ". " (dot, space) often favored to try and catch searches for hidden directories. Hidden directories are employed for two reasons, initially in an attempt to hide the exploit but also as a method of continuing to infect the exploited machine, even when the user deletes the obvious or discovered active exploit files (see above)

Examples of searches that may help pin down exploits and/or unexpected files and folders:

    find /home -type f | xargs grep -l MultiViews
    find . -type f | xargs grep -l base64_encode    << this may produce false positives, it is valid in some mail/graphics scripts
    find . -type f | xargs grep -l error_reporting
    find / -name "[Bb]itch[xX]"
    find / -name "psy*"
    ls -lR | grep rwxrwxrwx > listing.txt

 

 

Donate To Tools Suite

Like it? Share it!

Add to: JBookmarks Add to: Facebook Add to: Mr. Wong Add to: Windows Live Add to: Digg Add to: Del.icoi.us Add to: Reddit Add to: StumbleUpon Add to: Slashdot Add to: Netscape Add to: Furl Add to: Yahoo Add to: Technorati Add to: Newsvine Add to: Blinkbits Add to: Ma.Gnolia Add to: Spurl Add to: Google Information

Latest Twitter

  • AmyStephen  wonderful http://tinyurl.com/5qzotd
  • AmyStephen  for those of you in and around the UK -> http://twitter.com/joomladayuk
  • AmyStephen  i guess it is time to admit it is getting cold outside.
  • AmyStephen  Check out a *smoking* Jennifer Marriot http://tinyurl.com/5qynl7
  • JoomlaDeveloper  J! Research 1.1 Alpha 1

Contact openVISION

openVISIONPO Box 2215
Taylors Lakes
Victoria. 3038
Australia.

Contact our Service Managers

openVISION Licensing



Creative Commons License
openVISION written content and images are published under Creative Commons license


openVISION Tools Suites are released under the GNU General Public License v3