Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: sendEmail from Konsole isn't Working

  1. #1
    Just burned his ISO
    Join Date
    May 2010
    Location
    Chicago / India
    Posts
    9

    Cool sendEmail from Konsole isn't Working

    Well - the title really says its all, what I'm doing is im trying to send my-self an email with a false link in it(and ip link -> 20.19.13141.1414........) and when I click it - it'll go to a website that has been cloned and then I can take control using the meterpreter tools. So i get the clone and everything set-up perfectly fine, but when i go the send the email - it doesn't work

    I type in:
    (in konsole)
    Code:
    sendEmail -f (my @ yahoo email) -t (my @gmail email) -u"hey" -m "random messege...http://20.XX.XXX
    and i hit <enter> - which returns this messege:
    Code:
    May 09 05:38:10 backtrack sendEmail[22342]: ERROR => Connection attempt to localhost:25 failed: IO::Socket::INET: connect: Connection refused
    I've google'd it - but with very odd results, and with mostly answers that I don't understand.

  2. #2
    Member
    Join Date
    Jan 2010
    Posts
    332

    Default Re: sendEmail from Konsole isn't Working

    Read the help page and pay attention to the -s flag.
    SecurityTube has two new sections. Questions & News

  3. #3
    Developer
    Join Date
    Mar 2007
    Posts
    6,124

    Default Re: sendEmail from Konsole isn't Working

    Do you even have sendmail started?

  4. #4
    My life is this forum thorin's Avatar
    Join Date
    Jan 2010
    Posts
    2,629

    Default Re: sendEmail from Konsole isn't Working

    I'm with purehate you can't connect to port 25 because there is no mail server (sendmail) listening/started.
    I'm a compulsive post editor, you might wanna wait until my post has been online for 5-10 mins before quoting it as it will likely change.

    I know I seem harsh in some of my replies. SORRY! But if you're doing something illegal or posting something that seems to be obvious BS I'm going to call you on it.

  5. #5
    Very good friend of the forum killadaninja's Avatar
    Join Date
    Oct 2007
    Location
    London, United Kingdom.
    Posts
    526

    Default Re: sendEmail from Konsole isn't Working

    Code:
    sendEmail  -s plus.smtp.mail.yahoo.com:465 -f "your account" -m "insert message here" -t "Victims account" -xu "your account" -xp "yourpassword"
    Or something similar.

    Note, the -s flag above might not be right but it`s an example.
    Last edited by killadaninja; 05-10-2010 at 03:10 PM.
    Sometimes I try to fit a 16-character string into an 8–byte space, on purpose.

  6. #6
    Developer
    Join Date
    Mar 2007
    Posts
    6,124

    Default Re: sendEmail from Konsole isn't Working

    That is the correct command however I am fairly sure it will not work until the sendmail daemon is started

  7. #7
    Administrator sickness's Avatar
    Join Date
    Jan 2010
    Location
    Behind the screen.
    Posts
    2,921

    Default Re: sendEmail from Konsole isn't Working

    Why not use SET ? It's easier.

  8. #8
    Just burned his ISO
    Join Date
    Mar 2010
    Posts
    5

    Default Re: sendEmail:different problem

    Quote Originally Posted by purehate View Post
    That is the correct command however I am fairly sure it will not work until the sendmail daemon is started
    I have "Starting Mail Transport Agent (MTA): sendmail_
    started as a service, so I know that's started.

    It actually takes up a few more minutes to start Backtrack4 Final when you have
    sendmail starting up as a service, nevertheless it's started.

    I set up my firewall to allow 25tcp, 25udp, any.

    My first command:

    Code:
    sendEmail -v  -f coding.s9@gmail.com -t munya2005@aol.com -u "Dude, Check out this cool link"Reading message body from STDIN because the '-m' option was not used.
    If you are manually typing in a message:
      - First line must be received within 60 seconds.
      - End manual input with a CTRL-D on its own line.
    
    Hi check this link out
    http://www.whateva.com
    CTRL-D

    Here is my verbose output:
    Code:
    May 10 12:05:06 backtrack sendEmail[5530]: Message input complete.
    May 10 12:05:06 backtrack sendEmail[5530]: DEBUG => Connecting to localhost:25
    May 10 12:05:06 backtrack sendEmail[5530]: DEBUG => My IP address is: 127.0.0.1
    May 10 12:05:06 backtrack sendEmail[5530]: SUCCESS => Received:         220 backtrack ESMTP Sendmail 8.14.3/8.14.3/Debian-4; Mon, 10 May 2010 12:05:06 -0700; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1]
    May 10 12:05:06 backtrack sendEmail[5530]: INFO => Sending:     EHLO backtrack
    May 10 12:05:06 backtrack sendEmail[5530]: SUCCESS => Received:         250-backtrack Hello localhost [127.0.0.1], pleased to meet you, 250-ENHANCEDSTATUSCODES, 250-PIPELINING, 250-EXPN, 250-VERB, 250-8BITMIME, 250-SIZE, 250-DSN, 250-ETRN, 250-AUTH DIGEST-MD5 CRAM-MD5, 250-DELIVERBY, 250 HELP
    May 10 12:05:06 backtrack sendEmail[5530]: INFO => Sending:     MAIL FROM:<coding.s9@gmail.com>
    May 10 12:05:06 backtrack sendEmail[5530]: SUCCESS => Received:         250 2.1.0 <coding.s9@gmail.com>... Sender ok
    May 10 12:05:06 backtrack sendEmail[5530]: INFO => Sending:     RCPT TO:<munya2005@aol.com>
    May 10 12:05:06 backtrack sendEmail[5530]: SUCCESS => Received:         250 2.1.5 <munya2005@aol.com>... Recipient ok
    May 10 12:05:06 backtrack sendEmail[5530]: INFO => Sending:     DATA
    May 10 12:05:06 backtrack sendEmail[5530]: SUCCESS => Received:         354 Enter mail, end with "." on a line by itself
    May 10 12:05:06 backtrack sendEmail[5530]: INFO => Sending message body
    May 10 12:05:06 backtrack sendEmail[5530]: SUCCESS => Received:         250 2.0.0 o4AJ56tn005532 Message accepted for delivery
    May 10 12:05:06 backtrack sendEmail[5530]: Email was sent successfully!  From: <coding.s9@gmail.com> To: <munya2005@aol.com> Subject: [Dude, Check out this cool link] Server: [localhost:25]
    The problem is that when I check my test cases email inbox, including the Spam inbox, there is nothing, so what I am dong wrong?

    Output from sendmail says "Email was sent successfully!"?

    Just wondering does it matter that My IP address above is: 127.0.0.1?

    The reason I ask, is cause, W@r~l0RD says to try:
    nano /etc/mail/sendmail.mc
    comment out (or deletd) the following line's:
    DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')

    And
    m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
    /etc/init.d/sendmail restart

    My guess is that sendmail is bound to send mail to 127.0.0.1:25 and will generate a successful message, so
    then one has to change that address or comment it out?

    Source:http://www.backtrack-linux.org/forum...t-working.html


    I even tried switching the emails around with the From: <munya2005@aol.com> To: <coding.s9@gmail.com>, still nothing, in either email inbox, including the spam inbox?

    Oh, and sorry for hijacking this thread, I have just been thinking about this for a while, having sendmail working, and DarkDavil, just made me also have to ask about why my config is also not working.
    Last edited by MunyA; 05-11-2010 at 04:40 PM. Reason: Added more pertinent info

  9. #9
    Just burned his ISO
    Join Date
    May 2010
    Location
    Chicago / India
    Posts
    9

    Default Re: sendEmail from Konsole isn't Working

    Quote Originally Posted by thorin View Post
    I'm with purehate you can't connect to port 25 because there is no mail server (sendmail) listening/started.
    Got it! Thanks everyone :P It wasn't started (I guess i forgot to turn it on :P, on my Kubuntu, I usually just have it start up at boot.)

    Thanks to everyone

  10. #10
    Just burned his ISO
    Join Date
    Mar 2010
    Posts
    5

    Default Re: sendEmail from Konsole isn't Working

    Quote Originally Posted by sickness View Post
    Why not use SET ? It's easier.
    SET's nice, but I wanted to at least learn how to get sendmail to work.

Page 1 of 2 12 LastLast

Similar Threads

  1. SendEmail relay server
    By foster in forum Beginners Forum
    Replies: 9
    Last Post: 05-29-2010, 09:54 AM
  2. sendEmail + sendmail trouble
    By CeEe4 in forum OLD Newbie Area
    Replies: 5
    Last Post: 03-07-2010, 01:43 PM
  3. spedire posta con sendEmail
    By imported_cironte in forum Supporto Software
    Replies: 3
    Last Post: 01-05-2010, 01:29 PM
  4. Cannot run Konsole and anything after trying to mount HDD
    By sκy_walκer in forum OLD BT4beta Bugs and Fixes
    Replies: 4
    Last Post: 02-23-2009, 06:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •