Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Sep 2003
    Posts
    149

    Default how to track hacker?

    Hi,

    I keep seeing files like "extrupator.pl" in my tmp folder which are attempts to hack the server.

    I think they are uploaded through a site which has a vunerable script, but I am not sure what commands to run to catch this little sod.

    What lines should i run to find out who uploaded/ran extrupator.pl?

  2. #2
    Member
    Join Date
    May 2004
    Location
    South East England
    Posts
    71

    Default

    u could replace the script with one that logs there IP and
    as well as the hostname it was ran through (i think that can be done) that should help u find them make sure it emails it to an off site email address tho....
    Alex A. Smith MCP
    Wired Network LTD Managing Director

  3. #3
    Member
    Join Date
    Sep 2003
    Posts
    149

    Default

    that would be cool, where would i get such a script?

  4. #4
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,313
    cPanel/Enkompass Access Level

    Root Administrator

  5. #5
    Member
    Join Date
    Sep 2003
    Posts
    149

    Default

    Originally posted by edewing
    You might try logcheck.
    http://www.astro.uiuc.edu/~r-dass/logcheck/
    That looks good but the actual link to the script is a dead one,
    http://www.psionic.com/abacus/logcheck

  6. #6
    Ben
    Ben is offline
    Member
    Join Date
    Aug 2002
    Posts
    77

    Default

    If you are using phpSuExec, then determining the vulnerable site is easy.

    If you aren't, it's harder.

    If you are, run

    ls -la file.pl

    That should tell you the owner of the file.

    Then goto /usr/local/apache/domlogs/ and run

    grep wget `ls | grep username`

    This should then show all instances where attempts to wget a file were logged. This is usually a good indication of a vulnerable script, usually something like

    index.php?x=wget bad file

    What you do with the site from there is up to you.

    If you don't use phpSuExec, then you can run the following, please note that this command can be load intensive and take a while to run

    grep filename.pl *.com

    If no results, proceed to other TLD's on your machine, ex

    grep filename.pl *.net

    That will show you instances where most likely the file was wget'ed, and can also determine the site, yet again, what to do with is up to you.

    HTH,

    Ben

  7. #7
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,313
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Sorry about the bad link. Try: http://linux.maruhn.com/sec/logcheck.html
    If using rpm there are also links for those packages.

  8. #8
    Member
    Join Date
    Sep 2003
    Posts
    149

    Default

    Originally posted by edewing
    Sorry about the bad link. Try: http://linux.maruhn.com/sec/logcheck.html
    If using rpm there are also links for those packages.
    Thanks

Similar Threads & Tags
Similar threads

  1. Hacker?? Need help
    By ChipW in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-12-2007, 02:42 AM
  2. How to track down hacker IP
    By mambovince in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-21-2006, 12:53 PM
  3. is this a hacker ?
    By gordypordy in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-01-2006, 12:07 PM
  4. Crazy hacker.......
    By amal in forum cPanel and WHM Discussions
    Replies: 14
    Last Post: 05-09-2005, 10:58 PM
  5. Is this a hacker??
    By hjnet in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-31-2002, 06:17 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube