Skip to main content

Can php add cron jobs?

Comments

2 comments

  • quizknows
    I have seen instances where the shell/cpanel password is not compromised, but the crontab was changed by an infected web application. You should 'stat' the /var/spool/cron/$username file to get a timestamp, and consult the domain access logs and other relevant logs.
    0
  • cPanelMichael
    Hello :)
    I have as of yet not finished cleaning out all of the infected scripts so if it is possible for scripts to set the cron jobs then obviously that is how it is happening, but I wasn't sure if that was the case or not.

    Feel free to update us with the outcome after you have finished cleaning out the infected scripts, or let us know if you found anything in the domain access logs. Thank you.
    0

Please sign in to leave a comment.