D
DeaDHackS
Guest
So i'm having an issue, with C#. I'm new and only started coding GUI programs. I like to prank my friends. So i had an idea to create a Jigsaw virus that is no armful.
All it does it "encrypt" the user desktop files and then asks for password to decrypt them. Its hidden into a binary key.
So you need to put the password into a textbox which needs to check if its the password (JigsawHasWon)
Though i have got the code to check but it doesn't work it says
"CS0642 Possible mistaken empty statement" when not...
Here's the code:
using System;
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;
namespace Alien_Ransomware_V1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button3_Click(object sender, EventArgs e)
{
MessageBox.Show("I love binaries....they are cool."); // hint button.
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
if(textBox1.Text == ("JigsawHasWon")) ;
{
MessageBox.Show("Good job, you got the password!");
Console.WriteLine("Decrypting files...")
<Decrypt function which i'm asking after>
}
}
}
}
As you see there is the if statement and it doesn't detect the condition.
I'm coding into Bash on linux so i know how a bit other languages works. And == means equals a string = means bools so numbers. So like what am i doing wrong?
2. Question
Anyone know how to encrypt file making it unreadable just for desktop file and how to get all the files in desktop and then decrypt them?
Encrypt: AES-256 // if possible thanks you
Of course this "virus" is not to be malicious but be a prank of course its why it will only encrypt the desktop files not system32 etc..
Please someone help me!
Lots of love!
Continue reading...
All it does it "encrypt" the user desktop files and then asks for password to decrypt them. Its hidden into a binary key.
So you need to put the password into a textbox which needs to check if its the password (JigsawHasWon)
Though i have got the code to check but it doesn't work it says
"CS0642 Possible mistaken empty statement" when not...
Here's the code:
using System;
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;
namespace Alien_Ransomware_V1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button3_Click(object sender, EventArgs e)
{
MessageBox.Show("I love binaries....they are cool."); // hint button.
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
if(textBox1.Text == ("JigsawHasWon")) ;
{
MessageBox.Show("Good job, you got the password!");
Console.WriteLine("Decrypting files...")
<Decrypt function which i'm asking after>
}
}
}
}
As you see there is the if statement and it doesn't detect the condition.
I'm coding into Bash on linux so i know how a bit other languages works. And == means equals a string = means bools so numbers. So like what am i doing wrong?
2. Question
Anyone know how to encrypt file making it unreadable just for desktop file and how to get all the files in desktop and then decrypt them?
Encrypt: AES-256 // if possible thanks you
Of course this "virus" is not to be malicious but be a prank of course its why it will only encrypt the desktop files not system32 etc..
Please someone help me!
Lots of love!
Continue reading...