Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //How: Nofuser
- //Screencap: http://prntscr.com/4pgohb
- //Download: http://www.mediafire.com/download/5b5palwpb5bwwys/Bin+To+Byte+Converter+SOURCE+%28PwN3D%29.zip
- namespace seb5594s_Bin_to_Byte_Converter
- {
- using DevComponents.DotNetBar;
- using DevComponents.DotNetBar.Metro;
- using System;
- using System.ComponentModel;
- using System.Diagnostics;
- using System.Drawing;
- using System.IO;
- using System.Text;
- using System.Windows.Forms;
- /*
- * °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
- * °°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°
- ____ __ __ __ __ __ ____
- /\ _`\ /\ \ __/\ \/\ \/\ \ /'__`\ /\ _`\
- \ \ \L\ \ \ \/\ \ \ \ \ `\\ \/\_\L\ \\ \ \/\ \
- \ \ ,__/\ \ \ \ \ \ \ \ , ` \/_/_\_<_\ \ \ \ \
- \ \ \/ \ \ \_/ \_\ \ \ \`\ \/\ \L\ \\ \ \_\ \
- \ \_\ \ `\___x___/\ \_\ \_\ \____/ \ \____/
- \/_/ '\/__//__/ \/_/\/_/\/___/ \/___/
- * _ _ _
- / /\ /\ \ /\_\ _
- / / \\ \ \ / / //\_\
- / / /\ \\ \ \_/ / / \/_/
- / / /\ \ \\ \___/ /
- / / /\ \_\ \\ \ \_/
- / / /\ \ \___\\ \ \
- / / / \ \ \__/ \ \ \ _
- / / /____\_\ \ \ \ \ /_/\
- / / /__________\ \ \_\ \_\/
- \/_____________/ \/_/
- °
- _____ _____ _____ _____ _____ _____ _______ _____
- /\ \ /\ \ /\ \ /\ \ /\ \ /\ \ ______ /::\ \ /\ \
- /::\ \ /::\ \ /::\ \ /::\ \ /::\____\ /::\ \ |::| | /::::\ \ /::\ \
- /::::\ \ /::::\ \ /::::\ \ /::::\ \ /:::/ / /::::\ \ |::| | /::::::\ \ /::::\ \
- /::::::\ \ /::::::\ \ /::::::\ \ /::::::\ \ /:::/ / /::::::\ \ |::| | /::::::::\ \ /::::::\ \
- /:::/\:::\ \ /:::/\:::\ \ /:::/\:::\ \ /:::/\:::\ \ /:::/ / /:::/\:::\ \ |::| | /:::/~~\:::\ \ /:::/\:::\ \
- /:::/__\:::\ \ /:::/__\:::\ \ /:::/__\:::\ \ /:::/__\:::\ \ /:::/____/ /:::/__\:::\ \ |::| | /:::/ \:::\ \ /:::/__\:::\ \
- /::::\ \:::\ \ /::::\ \:::\ \ \:::\ \:::\ \ \:::\ \:::\ \ /::::\ \ /::::\ \:::\ \ |::| | /:::/ / \:::\ \ /::::\ \:::\ \
- /::::::\ \:::\ \ /::::::\ \:::\ \ ___\:::\ \:::\ \ ___\:::\ \:::\ \ /::::::\ \ _____ /::::::\ \:::\ \ |::| | /:::/____/ \:::\____\ /::::::\ \:::\ \
- /:::/\:::\ \:::\ ___\ /:::/\:::\ \:::\ \ /\ \:::\ \:::\ \ /\ \:::\ \:::\ \ /:::/\:::\ \ /\ \ /:::/\:::\ \:::\ \ ______|::|___|___ ____ |:::| | |:::| | /:::/\:::\ \:::\____\
- /:::/__\:::\ \:::| |/:::/ \:::\ \:::\____\/::\ \:::\ \:::\____\/::\ \:::\ \:::\____\/:::/ \:::\ /::\____\/:::/ \:::\ \:::\____\|:::::::::::::::::| ||:::|____| |:::| |/:::/ \:::\ \:::| |
- \:::\ \:::\ /:::|____|\::/ \:::\ /:::/ /\:::\ \:::\ \::/ /\:::\ \:::\ \::/ /\::/ \:::\ /:::/ /\::/ \:::\ /:::/ /|:::::::::::::::::|____| \:::\ \ /:::/ / \::/ |::::\ /:::|____|
- \:::\ \:::\/:::/ / \/____/ \:::\/:::/ / \:::\ \:::\ \/____/ \:::\ \:::\ \/____/ \/____/ \:::\/:::/ / \/____/ \:::\/:::/ / ~~~~~~|::|~~~|~~~ \:::\ \ /:::/ / \/____|:::::\/:::/ /
- \:::\ \::::::/ / \::::::/ / \:::\ \:::\ \ \:::\ \:::\ \ \::::::/ / \::::::/ / |::| | \:::\ /:::/ / |:::::::::/ /
- \:::\ \::::/ / \::::/ / \:::\ \:::\____\ \:::\ \:::\____\ \::::/ / \::::/ / |::| | \:::\__/:::/ / |::|\::::/ /
- \:::\ /:::/ / /:::/ / \:::\ /:::/ / \:::\ /:::/ / /:::/ / /:::/ / |::| | \::::::::/ / |::| \::/____/
- \:::\/:::/ / /:::/ / \:::\/:::/ / \:::\/:::/ / /:::/ / /:::/ / |::| | \::::::/ / |::| ~|
- \::::::/ / /:::/ / \::::::/ / \::::::/ / /:::/ / /:::/ / |::| | \::::/ / |::| |
- \::::/ / /:::/ / \::::/ / \::::/ / /:::/ / /:::/ / |::| | \::/____/ \::| |
- \::/____/ \::/ / \::/ / \::/ / \::/ / \::/ / |::|___| ~~ \:| |
- ~~ \/____/ \/____/ \/____/ \/____/ \/____/ ~~ \|___|
- *
- *
- Yb dP 8 w .d88b. w w dP"Yb
- Yb db dP 8d8b. .d88 w8ww YPwww. .d88b .d8b 8 8 8d8b w w8ww Yb dP " d8
- YbdPYbdP 8P Y8 8 8 8 d8 8.dP' 8 8b d8 8P 8 8 YbdP dP
- YP YP 8 8 `Y88 Y8P `Y88P' `Y88P `Y8P `Y8P8 8 8 Y8P dP w
- dP
- *
- *
- ::: ::::::::
- :+: :+: :+:
- +:+ +:+
- +#+ +#++:
- +#+ +#+
- #+# #+# #+#
- ### ######## _ _ _
- | | | | | |
- _ _ _ __ ___ _ __ ___ _ __ _ _ _ __ | |_ ___ __| | | |__ ___ ___ __ _ _ _ ___ ___ __ _____ ___ __ _ _ __ ___
- | | | | '_ \ / _ \ '_ \ / __| '__| | | | '_ \| __/ _ \/ _` | | '_ \ / _ \/ __/ _` | | | / __|/ _ \ \ \ /\ / / _ \ / __/ _` | '__/ _ \
- | |_| | | | | __/ | | | (__| | | |_| | |_) | || __/ (_| | | |_) | __/ (_| (_| | |_| \__ \ __/ \ V V / __/ | (_| (_| | | | __/
- \__,_|_| |_|\___|_| |_|\___|_| \__, | .__/ \__\___|\__,_| |_.__/ \___|\___\__,_|\__,_|___/\___| \_/\_/ \___| \___\__,_|_| \___|
- __/ | |
- |___/|_|
- ::: ::::::::
- :+: :+: :+:
- +:+ +:+
- +#+ +#++:
- +#+ +#+
- #+# #+# #+#
- ### ########
- */
- public class Form1 : MetroForm
- {
- private OpenFileDialog bin;
- private ButtonX buttonX1;
- private ButtonX buttonX2;
- private ButtonX buttonX3;
- private ButtonX buttonX4;
- public string bytes;
- private IContainer components = null;
- private RichTextBox function;
- private Label label1;
- private Label label2;
- private TextBox offset;
- private PictureBox pictureBox1;
- private TextBox textBox1;
- public string vbbytes;
- public Form1()
- {
- this.InitializeComponent();
- }
- private void buttonX1_Click(object sender, EventArgs e)
- {
- this.bin.Title = "Please Open a .bin File...";
- this.bin.Filter = "BIN Files (*.bin)|*.bin";
- this.bin.InitialDirectory = Application.StartupPath;
- if (this.bin.ShowDialog() == DialogResult.OK)
- {
- Stream stream = new FileStream(this.bin.FileName, FileMode.Open, FileAccess.ReadWrite);
- string str = BitConverter.ToString(stream.ToByteArray());
- this.bytes = str.Replace("-", " ,0x");
- this.vbbytes = str.Replace("-", " ,&H");
- this.textBox1.Text = this.bin.FileName;
- stream.Close();
- stream.Dispose();
- }
- }
- private void buttonX2_Click(object sender, EventArgs e)
- {
- if (this.offset.Text == "")
- {
- this.offset.Text = "XXX";
- }
- this.function.Text = "byte[] seb5594 = new byte[] { 0x" + this.bytes + " };\nPS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0xFFFFFFFF, " + this.offset.Text + ", seb5594);\n//Code generated by seb5594s & Red-EyeX32\x00b4s .BIN to Byte Converter";
- }
- private void buttonX3_Click(object sender, EventArgs e)
- {
- Clipboard.SetText(this.function.Text);
- MessageBox.Show("Function copied to Clipboard!", "Done");
- }
- private void buttonX4_Click(object sender, EventArgs e)
- {
- if (this.offset.Text == "")
- {
- this.offset.Text = "XXX";
- }
- this.function.Text = "Dim seb5594 As Byte() = New Byte() { &H" + this.vbbytes + " }\nPS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, Address (" + this.offset.Text + ", seb5594)\n//Code generated by seb5594s & Red-EyeX32\x00b4s .BIN to Byte Converter";
- }
- private string ByteArrayToString(byte[] arr)
- {
- ASCIIEncoding encoding = new ASCIIEncoding();
- return encoding.GetString(arr);
- }
- protected override void Dispose(bool disposing)
- {
- if (disposing && (this.components != null))
- {
- this.components.Dispose();
- }
- base.Dispose(disposing);
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- }
- private void InitializeComponent()
- {
- ComponentResourceManager manager = new ComponentResourceManager(typeof(Form1));
- this.label2 = new Label();
- this.function = new RichTextBox();
- this.buttonX1 = new ButtonX();
- this.buttonX2 = new ButtonX();
- this.buttonX3 = new ButtonX();
- this.offset = new TextBox();
- this.textBox1 = new TextBox();
- this.bin = new OpenFileDialog();
- this.pictureBox1 = new PictureBox();
- this.label1 = new Label();
- this.buttonX4 = new ButtonX();
- ((ISupportInitialize) this.pictureBox1).BeginInit();
- base.SuspendLayout();
- this.label2.AutoSize = true;
- this.label2.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label2.Location = new Point(12, 0x27);
- this.label2.Name = "label2";
- this.label2.Size = new Size(0x29, 13);
- this.label2.TabIndex = 3;
- this.label2.Text = "Offset";
- this.function.Font = new Font("Consolas", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.function.Location = new Point(15, 0x54);
- this.function.Name = "function";
- this.function.ShowSelectionMargin = true;
- this.function.Size = new Size(0x349, 0x13c);
- this.function.TabIndex = 4;
- this.function.Text = "";
- // this.buttonX1.AccessibleRole = AccessibleRole.PushButton;
- this.buttonX1.ColorTable = eButtonColor.OrangeWithBackground;
- this.buttonX1.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.buttonX1.Location = new Point(0x240, 0x1d);
- this.buttonX1.Name = "buttonX1";
- this.buttonX1.Size = new Size(280, 0x17);
- this.buttonX1.Style = eDotNetBarStyle.StyleManagerControlled;
- this.buttonX1.TabIndex = 6;
- this.buttonX1.Text = "Load Binary File (.bin)";
- this.buttonX1.Click += new EventHandler(this.buttonX1_Click);
- // this.buttonX2.AccessibleRole = AccessibleRole.PushButton;
- this.buttonX2.ColorTable = eButtonColor.OrangeWithBackground;
- this.buttonX2.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.buttonX2.Location = new Point(15, 0x196);
- this.buttonX2.Name = "buttonX2";
- this.buttonX2.Size = new Size(100, 0x17);
- this.buttonX2.Style = eDotNetBarStyle.StyleManagerControlled;
- this.buttonX2.TabIndex = 7;
- this.buttonX2.Text = "Build C# Function";
- this.buttonX2.Click += new EventHandler(this.buttonX2_Click);
- // this.buttonX3.AccessibleRole = AccessibleRole.PushButton;
- this.buttonX3.ColorTable = eButtonColor.OrangeWithBackground;
- this.buttonX3.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.buttonX3.Location = new Point(0x2c3, 0x196);
- this.buttonX3.Name = "buttonX3";
- this.buttonX3.Size = new Size(0x95, 0x17);
- this.buttonX3.Style = eDotNetBarStyle.StyleManagerControlled;
- this.buttonX3.TabIndex = 8;
- this.buttonX3.Text = "Copy Function";
- this.buttonX3.Click += new EventHandler(this.buttonX3_Click);
- this.offset.Location = new Point(15, 0x37);
- this.offset.MaxLength = 20;
- this.offset.Name = "offset";
- this.offset.Size = new Size(100, 20);
- this.offset.TabIndex = 9;
- this.offset.Text = "Put Your Offset";
- this.textBox1.Location = new Point(0x240, 0x37);
- this.textBox1.MaxLength = 20;
- this.textBox1.Name = "textBox1";
- this.textBox1.Size = new Size(280, 20);
- this.textBox1.TabIndex = 10;
- this.textBox1.Text = "File Path...";
- this.bin.FileName = "Bin File";
- this.bin.Filter = "Binary File|*.bin";
- this.bin.RestoreDirectory = true;
- // this.pictureBox1.Image = (Image) manager.GetObject("pictureBox1.Image");
- this.pictureBox1.Location = new Point(0x10a, 4);
- this.pictureBox1.Name = "pictureBox1";
- this.pictureBox1.Size = new Size(0x130, 0x4a);
- this.pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
- this.pictureBox1.TabIndex = 11;
- this.pictureBox1.TabStop = false;
- this.pictureBox1.Click += new EventHandler(this.pictureBox1_Click);
- this.label1.AutoSize = true;
- this.label1.Font = new Font("Consolas", 12f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label1.Location = new Point(0x145, 0x196);
- this.label1.Name = "label1";
- this.label1.Size = new Size(0xcf, 0x13);
- this.label1.TabIndex = 12;
- this.label1.Text = "Application Build: 1.0";
- // this.buttonX4.AccessibleRole = AccessibleRole.PushButton;
- this.buttonX4.ColorTable = eButtonColor.OrangeWithBackground;
- this.buttonX4.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.buttonX4.Location = new Point(0x79, 0x196);
- this.buttonX4.Name = "buttonX4";
- this.buttonX4.Size = new Size(0x73, 0x17);
- this.buttonX4.Style = eDotNetBarStyle.StyleManagerControlled;
- this.buttonX4.TabIndex = 13;
- this.buttonX4.Text = "Build VB.Net Function";
- this.buttonX4.Click += new EventHandler(this.buttonX4_Click);
- base.AutoScaleDimensions = new SizeF(6f, 13f);
- // base.AutoScaleMode = AutoScaleMode.Font;
- base.ClientSize = new Size(0x36b, 430);
- base.Controls.Add(this.buttonX4);
- base.Controls.Add(this.label1);
- base.Controls.Add(this.pictureBox1);
- base.Controls.Add(this.textBox1);
- base.Controls.Add(this.offset);
- base.Controls.Add(this.buttonX3);
- base.Controls.Add(this.buttonX2);
- base.Controls.Add(this.buttonX1);
- base.Controls.Add(this.function);
- base.Controls.Add(this.label2);
- this.DoubleBuffered = true;
- // base.FormBorderStyle = FormBorderStyle.Fixed3D;
- // base.set_Icon((Icon) manager.GetObject("$this.Icon"));
- base.MaximizeBox = false;
- base.Name = "Form1";
- base.StartPosition = FormStartPosition.CenterScreen;
- this.Text = ".Bin to Byte Converter by seb5594 & Red-EyeX32 PwN3D";
- base.Load += new EventHandler(this.Form1_Load);
- ((ISupportInitialize) this.pictureBox1).EndInit();
- base.ResumeLayout(false);
- base.PerformLayout();
- }
- private void pictureBox1_Click(object sender, EventArgs e)
- {
- Process.Start("www.youtube.com/user/CODNoobFriendly");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement