#some fancy text box stuff
[void][Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic')
#you must use an external recipient to trigger the outbound spamfilter
#just so much easier to run the ps1 and get input boxes
$extadd = [Microsoft.VisualBasic.Interaction]::InputBox('Type the External recipient','need some info please')
$sender = [Microsoft.VisualBasic.Interaction]::InputBox('Type the sender you want to restrict','need some info please')
$attempts = [Microsoft.VisualBasic.Interaction]::InputBox('how many messages to send?','need some info please')
$count = 0
#if the get credentials isnt at the end of the creds it breaks the input boxes, no idea why
$cred = get-credential $sender
#Configuring the message to send
$mailstuff = @{
To = $extadd
From = $sender
#if you use a disclaimer with urls and/or an image for an autosignature, it somehow sanitizes the message, no idea why, just disable it on the account you want to compromise
Subject = '$500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
Body = 'http://imgur.com.uri'
SmtpServer = 'smtp.office365.com'
Port = '587'
Credential = $cred
}
#put a little loop on em
1..$attempts | foreach {
Send-MailMessage @mailstuff -UseSsl
#just want to see whats going on... whats going on
$count = $count + 1
echo $count
}