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!

Catch Fishing Script

Discussion in 'General Discussion' started by maxihost2, Jun 14, 2005.

  1. maxihost2

    maxihost2 Well-Known Member PartnerNOC

    Feb 28, 2005
    Likes Received:
    Trophy Points:

    I am using a simple script to catch fishing at my server.

    It will work locating malicious files and sending to my e-mail the results, although I dont know how to send e-mail from the command line using exim.

    For qmail it works this way:

    echo "To:
    Subject: Apache Monitor

    `locate itau_dima` ; `locate xxx.php` ; `locate x9.php` ; `locate lanzinho.txt` ; `locate *.scr` ; `locate aacd.htm` ; `locate crss3.exe` ; `locate email*.txt` ; `locate cartao.exe` ; `locate cartao1.exe` ; `locate lista1.txt` ; `locate` ; `qmailctl stat`
    " | /var/qmail/bin/qmail-inject

    Thank you.
  2. nickb

    nickb Well-Known Member

    Feb 25, 2005
    Likes Received:
    Trophy Points:
    You can use mail command for this.....mail -s "subject" emailID

    replace /var/qmail/bin/qmail-inject with command mentioned should work.

    You can test that Exim is working and delivering email messages with the
    following command also:

    /path/to/exim -v 'user@domain'
    message here
    ^D ( control D )

    This will use exim from the command line to create an email
    message To: user@domain. After typing the message, use
    Control+D to send the EOF (end of file) characters to exim.
    Exim will stop receiving input from the command line and
    send the message text to user@domain.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 nickb, Jun 14, 2005
    Last edited: Jun 14, 2005

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice