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.

Catch Fishing Script

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

  1. maxihost2

    maxihost2 Well-Known Member
    PartnerNOC

    Joined:
    Feb 28, 2005
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    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: e-mail@e-mail.com
    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 spam.pl` ; `qmailctl stat`
    " | /var/qmail/bin/qmail-inject

    Thank you.
     
  2. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    You can use mail command for this.....mail -s "subject" emailID

    replace /var/qmail/bin/qmail-inject with command mentioned above........it 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.
     
    #2 nickb, Jun 14, 2005
    Last edited: Jun 14, 2005

Share This Page