Results 1 to 12 of 12
  1. #1
    hackzerz's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    $T4Lk much?
    Posts
    1,450
    Reputation
    18
    Thanks
    159
    My Mood
    Sneaky

    Sending Email Fails [solved]

    Code:
    See the end of this message for details on invoking 
    just-in-time (JIT) debugging instead of this dialog box.
    
    ************** Exception Text **************
    System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at                              
       at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
       at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from)
       at System.Net.Mail.SmtpTranspo******ndMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
       at System.Net.Mail.SmtpClient.Send(MailMessage message)
       at WindowsApplication1.Form1.Timer1_Tick(Object sender, EventArgs e) in C:\Users\Hackzerz\Desktop\HACKING\email bomber\Email Bomber\Form1.2.vb:line 22
       at System.Windows.Forms.Timer.OnTick(EventArgs e)
       at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    
    
    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.237 (RTMGDR.030319-2300)
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    Email Bomber
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Users/Hackzerz/Desktop/HACKING/email%20bomber/Email%20Bomber/bin/Release/Email%20Bomber.exe
    ----------------------------------------
    Microsoft.VisualBasic
        Assembly Version: 10.0.0.0
        Win32 Version: 10.0.30319.1 built by: RTMRel
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    ----------------------------------------
    System
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.236 built by: RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Core
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.233 built by: RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.235 built by: RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 built by: RTMRel
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Runtime.Remoting
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
    ----------------------------------------
    System.Configuration
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Xml
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.233 built by: RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    
    For example:
    
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.


    ---
    this is on my email bomber, can anyone help?

  2. #2
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Use SSL and an authentication account

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  3. The Following User Says Thank You to Jason For This Useful Post:

    hackzerz (08-31-2011)

  4. #3
    hackzerz's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    $T4Lk much?
    Posts
    1,450
    Reputation
    18
    Thanks
    159
    My Mood
    Sneaky
    wats that lol
    and what do u mean by auth acc?

    [FIXED] THANKS BRO
    Last edited by hackzerz; 08-31-2011 at 08:58 AM.

  5. #4
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Okay, here's some code I used in an old project, a very generic email function:
    [highlight=vb.net]
    Imports System.Net.Mail
    Imports System.Net
    [/highlight]

    [highlight=vb.net]
    Public Structure SmtpServer
    Public Shared LiveSmtp = New SmtpServer("smtp.live.com", 587, False)
    Public Shared GmailSmtp = New SmtpServer("smtp.gmail.com", 587, True)

    Public URI As String
    Public Port As Integer
    Public UseSSL As Boolean

    Public Sub New(ByVal smtp As String, ByVal port As Integer, ByVal ssl As Boolean)
    Me.URI = smtp
    Me.Port = port
    Me.UseSSL = ssl
    End Sub
    End Structure

    Public Function SendEmail(ByVal message As String, ByVal accountInfo As NetworkCredential, ByVal recipients As String(), ByVal sender As String, ByVal subj As String, ByVal server As SmtpServer)
    Dim nMail As New MailMessage
    Dim smtpServer As New SmtpClient(server.URI, server.Port)

    nMail.Sender = New MailAddress(sender)
    nMail.From = New MailAddress(sender)
    nMail.Subject = subj
    nMail.Body = message

    For Each s As String In recipients
    nMail.To.Add(New MailAddress(s))
    Next s
    Try
    smtpServer.Credentials = CType(accountInfo, ICredentials)
    smtpServer.EnableSsl = server.UseSSL
    smtpServer.Send(nMail)
    Return True
    Catch ex As Exception
    Return False
    End Try
    End Function
    [/highlight]

    Example use:
    [highlight=vb.net]
    SendEmail("Hello World", _
    new NetworkCredential("foo@gmail.com", "bar"), _
    new String() { "fake@live.com", "joke@hotmail.com" }, _
    "[MPGH]Jason", _
    "Testing Email", _
    SmtpServer.GmailSmtp)
    [/highlight]
    Last edited by Jason; 09-20-2011 at 07:37 PM.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  6. The Following User Says Thank You to Jason For This Useful Post:

    hackzerz (08-31-2011)

  7. #5
    hackzerz's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    $T4Lk much?
    Posts
    1,450
    Reputation
    18
    Thanks
    159
    My Mood
    Sneaky
    thanks mate :P

  8. #6
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Marked solved then.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  9. #7
    hackzerz's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    $T4Lk much?
    Posts
    1,450
    Reputation
    18
    Thanks
    159
    My Mood
    Sneaky
    oh i need ur help again, il post a new thread :S
    buttons lock them self LOL

  10. #8
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Use multi-threading.

  11. The Following User Says Thank You to Hassan For This Useful Post:

    hackzerz (09-03-2011)

  12. #9
    hackzerz's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    $T4Lk much?
    Posts
    1,450
    Reputation
    18
    Thanks
    159
    My Mood
    Sneaky
    its fixed now lol but il keep that in mind. can u help me with something else -
    when ever i click a button on my bomber (v2) the names go blue then they lock and i cant press them anymore :P

  13. #10
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Quote Originally Posted by hackzerz View Post
    its fixed now lol but il keep that in mind. can u help me with something else -
    when ever i click a button on my bomber (v2) the names go blue then they lock and i cant press them anymore :P
    That's because you are sending the email synchronously. Until the email is sent / fails, the thread remains locked. To solve this, you need to use multi threading as I stated earlier.

  14. The Following User Says Thank You to Hassan For This Useful Post:

    hackzerz (09-03-2011)

  15. #11
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Quote Originally Posted by Hassan View Post


    That's because you are sending the email synchronously. Until the email is sent / fails, the thread remains locked. To solve this, you need to use multi threading as I stated earlier.
    For multithreading...

    [highlight=VB.Net]
    Private Sub Foo()
    For i = 0 To Whatever - 1
    Fufufu()
    Next
    End Sub[/highlight]

    To start a multithread of Foo() you need to do the following:

    [highlight=VB.Net]
    Dim mT as new threading.thread(addressof Foo)
    mT.Start
    [/highlight]

    As for multithreading, the sub now runs in the background. So you can execute further code while Foo() is running in the background. Your controls/form won't freeze.



  16. The Following User Says Thank You to Blubb1337 For This Useful Post:

    hackzerz (09-03-2011)

  17. #12
    hackzerz's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    $T4Lk much?
    Posts
    1,450
    Reputation
    18
    Thanks
    159
    My Mood
    Sneaky
    il try that, thanks guys !

Similar Threads

  1. [HELP] Sends Email
    By FUKO in forum Visual Basic Programming
    Replies: 19
    Last Post: 04-06-2011, 08:08 PM
  2. [Help]Sending Email
    By 258456 in forum C++/C Programming
    Replies: 7
    Last Post: 10-01-2010, 03:25 AM
  3. crossfire error: send error report[SOLVED]
    By royalpb in forum CrossFire Help
    Replies: 6
    Last Post: 08-13-2010, 04:49 AM
  4. Is it possible to send email.
    By 258456 in forum C++/C Programming
    Replies: 12
    Last Post: 06-11-2010, 07:38 AM
  5. Help on sending emails
    By zmansquared in forum Visual Basic Programming
    Replies: 4
    Last Post: 02-13-2010, 01:34 PM