Skip to main content

Track Outgoing Port 80 Connections - Compromised Scripts - Botnet Attacks - Etc

Comments

3 comments

  • quizknows
    usually ps faux is pretty reliable- often the bad processes stick out like a sore thumb and have spoofed names like crond. If you see a fake crond, host, etc. proc running as a user instead of root, use lsof -p on it and see what's going on. Otherwise check: lsof -i :80 When you see the PID that is connecting to a remote port 80 rather than accepting a connection to local port 80, use lsof -p on that pid number to find the working directory of it. You're lucky that SuPHP makes tracking this stuff a lot easier. DSO can be a nightmare. Worst case if you come up totally blank, might be time to maldet scan or clamscan all your public_html dirs.
    0
  • Solokron
    I didn't think to use lsof -p. Good call. Thank you!
    0
  • cPanelMichael
    [quote="Solokron, post: 1559602">I didn't think to use lsof -p. Good call. Thank you!
    I am happy to see you were provided with a useful solution. Let us know if it helps you find the source of the abusive script. Thanks.
    0

Please sign in to leave a comment.