Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cant find script sending spam

Discussion in 'Security' started by madpato, Mar 20, 2018.

Tags:
  1. madpato

    madpato Active Member

    Joined:
    May 30, 2008
    Messages:
    44
    Likes Received:
    1
    Trophy Points:
    58
    Hello

    I have a customer whos sending spam via some specific script, my problem is i cant find it.

    I have suspended the account to stop the activity but when its active it starts to span process which i cant trace or kill because process manager says it no longer exists.
    I have run maldet and clamav on the account, changed account´s password but still happens as soon as i unsuspend the account.
    I do have CSF installed and it sends me a report with this:

    [removed]

    I am also attaching a screenshot of the process manager swarming with those ghost process.

    I have dealt with these before but usually CSF sends me the location of the script or clamav founds the problem.
    Can anyone help me on how to uncover this i was thinking to post this also on CSF forum but wanted to try my luck here first. Regards.
     

    Attached Files:

  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Try running the following command to see if it provides more information about the directory the email is coming from:

    Code:
    grep cwd /var/log/exim_mainlog | grep -v /var/spool | awk -F"cwd=" '{print $2}' | awk '{print $1}' | sort | uniq -c | sort -n
    Thank you.
     
  3. madpato

    madpato Active Member

    Joined:
    May 30, 2008
    Messages:
    44
    Likes Received:
    1
    Trophy Points:
    58
    with that found out that is the public_html folder i will have to check all the files there. Thanks it helped me to narrow the search.
     
    cPanelMichael likes this.
Loading...

Share This Page