Peroxide現(xiàn)有代碼
Program.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Peroxide
{
? ?static class Program
? ?{
? ? ? ?///
? ? ? ?/// 應(yīng)用程序的主入口點(diǎn)。
? ? ? ?///
? ? ? ?[STAThread]
? ? ? ?static void Main()
? ? ? ?{
? ? ? ? ? ?RamsomLoad();
? ? ? ?}
? ? ? ?static void RamsomLoad()
? ? ? ?{
? ? ? ? ? ?Application.EnableVisualStyles();
? ? ? ? ? ?Application.SetCompatibleTextRenderingDefault(false);
? ? ? ? ? ?Application.Run(new Ramsomware());
? ? ? ?}
? ?}
}
Form1.cs:
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 Peroxide
{
? ?public partial class Ramsomware : Form
? ?{
? ? ? ?public Ramsomware()
? ? ? ?{
? ? ? ? ? ?InitializeComponent();
? ? ? ?}
? ? ? ?private void Form1_Load(object sender, EventArgs e)
? ? ? ?{
? ? ? ?}
? ? ? ?private void label4_Click(object sender, EventArgs e)
? ? ? ?{
? ? ? ?}
? ?}
}
Form1.Desiger.cs:
namespace Peroxide
{
? ? partial class Ramsomware
? ? {
? ? ? ? /// <summary>
? ? ? ? /// 必需的設(shè)計(jì)器變量。
? ? ? ? /// </summary>
? ? ? ? private System.ComponentModel.IContainer components = null;
? ? ? ? /// <summary>
? ? ? ? /// 清理所有正在使用的資源。
? ? ? ? /// </summary>
? ? ? ? /// <param name="disposing">如果應(yīng)釋放托管資源,為 true;否則為 false。</param>
? ? ? ? protected override void Dispose(bool disposing)
? ? ? ? {
? ? ? ? ? ? if (disposing && (components != null))
? ? ? ? ? ? {
? ? ? ? ? ? ? ? components.Dispose();
? ? ? ? ? ? }
? ? ? ? ? ? base.Dispose(disposing);
? ? ? ? }
? ? ? ? #region Windows 窗體設(shè)計(jì)器生成的代碼
? ? ? ? /// <summary>
? ? ? ? /// 設(shè)計(jì)器支持所需的方法 - 不要修改
? ? ? ? /// 使用代碼編輯器修改此方法的內(nèi)容。
? ? ? ? /// </summary>
? ? ? ? private void InitializeComponent()
? ? ? ? {
? ? ? ? ? ? this.label1 = new System.Windows.Forms.Label();
? ? ? ? ? ? this.label2 = new System.Windows.Forms.Label();
? ? ? ? ? ? this.label3 = new System.Windows.Forms.Label();
? ? ? ? ? ? this.label4 = new System.Windows.Forms.Label();
? ? ? ? ? ? this.SuspendLayout();
? ? ? ? ? ? //?
? ? ? ? ? ? // label1
? ? ? ? ? ? //?
? ? ? ? ? ? this.label1.AutoSize = true;
? ? ? ? ? ? this.label1.Font = new System.Drawing.Font("Consolas", 48F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
? ? ? ? ? ? this.label1.Location = new System.Drawing.Point(221, 9);
? ? ? ? ? ? this.label1.Name = "label1";
? ? ? ? ? ? this.label1.Size = new System.Drawing.Size(312, 75);
? ? ? ? ? ? this.label1.TabIndex = 0;
? ? ? ? ? ? this.label1.Text = "WARNING!";
? ? ? ? ? ? //?
? ? ? ? ? ? // label2
? ? ? ? ? ? //?
? ? ? ? ? ? this.label2.Font = new System.Drawing.Font("Consolas", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
? ? ? ? ? ? this.label2.Location = new System.Drawing.Point(12, 84);
? ? ? ? ? ? this.label2.Name = "label2";
? ? ? ? ? ? this.label2.Size = new System.Drawing.Size(649, 27);
? ? ? ? ? ? this.label2.TabIndex = 2;
? ? ? ? ? ? this.label2.Text = "Your system have been encrypted by Peroxide.exe!\r\n";
? ? ? ? ? ? //?
? ? ? ? ? ? // label3
? ? ? ? ? ? //?
? ? ? ? ? ? this.label3.AutoSize = true;
? ? ? ? ? ? this.label3.Font = new System.Drawing.Font("Consolas", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
? ? ? ? ? ? this.label3.Location = new System.Drawing.Point(286, 111);
? ? ? ? ? ? this.label3.Name = "label3";
? ? ? ? ? ? this.label3.Size = new System.Drawing.Size(311, 28);
? ? ? ? ? ? this.label3.TabIndex = 3;
? ? ? ? ? ? this.label3.Text = "What the FUCK IS THIS?!";
? ? ? ? ? ? //?
? ? ? ? ? ? // label4
? ? ? ? ? ? //?
? ? ? ? ? ? this.label4.AutoSize = true;
? ? ? ? ? ? this.label4.Font = new System.Drawing.Font("Consolas", 9.75F);
? ? ? ? ? ? this.label4.Location = new System.Drawing.Point(288, 139);
? ? ? ? ? ? this.label4.Name = "label4";
? ? ? ? ? ? this.label4.Size = new System.Drawing.Size(49, 15);
? ? ? ? ? ? this.label4.TabIndex = 4;
? ? ? ? ? ? this.label4.Text = "label4";
? ? ? ? ? ? this.label4.Click += new System.EventHandler(this.label4_Click);
? ? ? ? ? ? //?
? ? ? ? ? ? // Ramsomware
? ? ? ? ? ? //?
? ? ? ? ? ? this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
? ? ? ? ? ? this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
? ? ? ? ? ? this.BackColor = System.Drawing.SystemColors.ControlDarkDark;
? ? ? ? ? ? this.ClientSize = new System.Drawing.Size(609, 757);
? ? ? ? ? ? this.Controls.Add(this.label4);
? ? ? ? ? ? this.Controls.Add(this.label3);
? ? ? ? ? ? this.Controls.Add(this.label2);
? ? ? ? ? ? this.Controls.Add(this.label1);
? ? ? ? ? ? this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
? ? ? ? ? ? this.Name = "Ramsomware";
? ? ? ? ? ? this.ShowIcon = false;
? ? ? ? ? ? this.ShowInTaskbar = false;
? ? ? ? ? ? this.Text = "Peroxide Ramsomware";
? ? ? ? ? ? this.Load += new System.EventHandler(this.Form1_Load);
? ? ? ? ? ? this.ResumeLayout(false);
? ? ? ? ? ? this.PerformLayout();
? ? ? ? }
? ? ? ? #endregion
? ? ? ? private System.Windows.Forms.Label label1;
? ? ? ? private System.Windows.Forms.Label label2;
? ? ? ? private System.Windows.Forms.Label label3;
? ? ? ? private System.Windows.Forms.Label label4;
? ? }
}
pch.cpp:
// pch.cpp: 與預(yù)編譯標(biāo)頭對應(yīng)的源文件
#include "pch.h"
// 當(dāng)使用預(yù)編譯的頭時(shí),需要使用此源文件,編譯才能成功。
DWORD WINAPI DrawIcon() {
}
RamsomKenrelAndPayloadsLib.cpp:
// RamsomKenrelAndPayloadsLib.cpp : 定義靜態(tài)庫的函數(shù)。
//
#include "pch.h"
#include "framework.h"
// TODO: 這是一個(gè)庫函數(shù)示例
void fnRamsomKenrelAndPayloadsLib()
{
}
pch.h:
// pch.h: 這是預(yù)編譯標(biāo)頭文件。
// 下方列出的文件僅編譯一次,提高了將來生成的生成性能。
// 這還將影響 IntelliSense 性能,包括代碼完成和許多代碼瀏覽功能。
// 但是,如果此處列出的文件中的任何一個(gè)在生成之間有更新,它們?nèi)慷紝⒈恢匦戮幾g。
// 請勿在此處添加要頻繁更新的文件,這將使得性能優(yōu)勢無效。
#ifndef PCH_H
#define PCH_H
// 添加要在此處預(yù)編譯的標(biāo)頭
#include "framework.h".
#endif //PCH_H
framework.h:
#pragma once
#include <windows.h>
#define WIN32_LEAN_AND_MEAN? ? ? ? ? ? ?// 從 Windows 頭文件中排除極少使用的內(nèi)容