Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Seb69's Project Freedom V2 #PwN3D
- //Download: http://adf.ly/rt5HM
- // I BaSs_HaXoR, do not take credit for this PwN. Someone else did this, i just did the pleasure of posting it here for everyone's //convenience.
- x.cs
- namespace seb5594s_Project_Freedom_v2
- {
- using GhostsLib;
- using System;
- using System.ComponentModel;
- using System.Diagnostics;
- using System.Drawing;
- using System.Security.Cryptography;
- using System.Text;
- using System.Threading;
- using System.Windows.Forms;
- using updateSystemDotNet;
- using updateSystemDotNet.appEventArgs;
- public class x : Form
- {
- private IContainer components = null;
- private CoreButton coreButton1;
- private CoreButton coreButton2;
- private CoreButton coreButton3;
- private CoreGroupBox coreGroupBox1;
- private CoreLabel coreLabel2;
- private CoreLabel coreLabel3;
- public static string CurrentVersion = "2.0.10";
- private System.Windows.Forms.Timer DebuggerKillTimer;
- private string desKey = "YzJWaU5UVTVOQSUzRCUzRA==";
- private Label label1;
- private Label label3;
- private Label label4;
- public static bool MenuIsRunning;
- private Label ServerInfoGM;
- private Label ServerInfoHost;
- private Label ServerInfoMap;
- private System.Windows.Forms.Timer ServerTimer;
- private TabControl tabControl1;
- private updateController updateController1;
- public x()
- {
- this.InitializeComponent();
- base.MaximizeBox = false;
- this.MakeTransparent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- }
- private void coreButton1_Click(object sender, EventArgs e)
- {
- if (!MenuIsRunning)
- {
- this.ServerTimer.Start();
- this.ServerTimer.Enabled = true;
- MenuBase.ChangeVerification(0, MenuBase.Verification.host);
- MenuIsRunning = MenuBase.EnableBase(0);
- }
- else
- {
- MessageBox.Show("Menu is already running\nStop the Menu before you execute it again", "Project Freedom v2", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
- }
- }
- private void coreButton2_Click(object sender, EventArgs e)
- {
- if (MenuIsRunning)
- {
- this.ResetAllThreads();
- }
- else
- {
- MessageBox.Show("Menu not started yet\nStart the Menu before you stop it!", "Project Freedom v2", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
- }
- }
- private void coreButton3_Click(object sender, EventArgs e)
- {
- PS3.Connect();
- this.ServerTimer.Enabled = true;
- this.ServerTimer.Start();
- HudElements.DestroyAll();
- }
- private void DebuggerKillTimer_Tick(object sender, EventArgs e)
- {
- Process currentProcess = Process.GetCurrentProcess();
- foreach (Process process2 in Process.GetProcesses())
- {
- if ((process2.Id != currentProcess.Id) && process2.ProcessName.ToLower().Contains("debugger"))
- {
- process2.Kill();
- }
- }
- }
- public static string Decrypt(string cipherString, bool useHashing, string k)
- {
- byte[] buffer;
- byte[] inputBuffer = Convert.FromBase64String(cipherString);
- string s = k;
- if (useHashing)
- {
- MD5CryptoServiceProvider provider = new MD5CryptoServiceProvider();
- buffer = provider.ComputeHash(Encoding.UTF8.GetBytes(s));
- provider.Clear();
- }
- else
- {
- buffer = Encoding.UTF8.GetBytes(s);
- }
- TripleDESCryptoServiceProvider provider2 = new TripleDESCryptoServiceProvider {
- Key = buffer,
- Mode = CipherMode.ECB,
- Padding = PaddingMode.PKCS7
- };
- byte[] bytes = provider2.CreateDecryptor().TransformFinalBlock(inputBuffer, 0, inputBuffer.Length);
- provider2.Clear();
- return Encoding.UTF8.GetString(bytes);
- }
- protected override void Dispose(bool disposing)
- {
- if (disposing && (this.components != null))
- {
- this.components.Dispose();
- }
- base.Dispose(disposing);
- }
- private void InitializeComponent()
- {
- this.components = new Container();
- ComponentResourceManager manager = new ComponentResourceManager(typeof(x));
- this.ServerInfoGM = new Label();
- this.ServerInfoMap = new Label();
- this.label4 = new Label();
- this.label3 = new Label();
- this.ServerInfoHost = new Label();
- this.label1 = new Label();
- this.ServerTimer = new System.Windows.Forms.Timer(this.components);
- this.coreGroupBox1 = new CoreGroupBox();
- this.coreLabel2 = new CoreLabel();
- this.coreButton1 = new CoreButton();
- this.coreButton2 = new CoreButton();
- this.coreButton3 = new CoreButton();
- this.tabControl1 = new TabControl();
- this.coreLabel3 = new CoreLabel();
- this.DebuggerKillTimer = new System.Windows.Forms.Timer(this.components);
- this.updateController1 = new updateController();
- this.coreGroupBox1.SuspendLayout();
- base.SuspendLayout();
- this.ServerInfoGM.AutoSize = true;
- this.ServerInfoGM.BackColor = Color.Transparent;
- this.ServerInfoGM.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.ServerInfoGM.Location = new Point(90, 0x3e);
- this.ServerInfoGM.Name = "ServerInfoGM";
- this.ServerInfoGM.Size = new Size(190, 13);
- this.ServerInfoGM.TabIndex = 11;
- this.ServerInfoGM.Text = " - ";
- this.ServerInfoGM.TextAlign = ContentAlignment.MiddleCenter;
- this.ServerInfoMap.AutoSize = true;
- this.ServerInfoMap.BackColor = Color.Transparent;
- this.ServerInfoMap.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.ServerInfoMap.Location = new Point(90, 0x2f);
- this.ServerInfoMap.Name = "ServerInfoMap";
- this.ServerInfoMap.Size = new Size(190, 13);
- this.ServerInfoMap.TabIndex = 10;
- this.ServerInfoMap.Text = " - ";
- this.ServerInfoMap.TextAlign = ContentAlignment.MiddleCenter;
- this.label4.AutoSize = true;
- this.label4.BackColor = Color.Transparent;
- this.label4.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label4.Location = new Point(13, 0x3e);
- this.label4.Name = "label4";
- this.label4.Size = new Size(0x49, 13);
- this.label4.TabIndex = 9;
- this.label4.Text = "Gamemode:";
- this.label3.AutoSize = true;
- this.label3.BackColor = Color.Transparent;
- this.label3.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label3.Location = new Point(15, 0x2f);
- this.label3.Name = "label3";
- this.label3.Size = new Size(0x47, 13);
- this.label3.TabIndex = 8;
- this.label3.Text = "Map Name:";
- this.ServerInfoHost.AutoSize = true;
- this.ServerInfoHost.BackColor = Color.Transparent;
- this.ServerInfoHost.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.ServerInfoHost.Location = new Point(90, 0x20);
- this.ServerInfoHost.Name = "ServerInfoHost";
- this.ServerInfoHost.Size = new Size(190, 13);
- this.ServerInfoHost.TabIndex = 7;
- this.ServerInfoHost.Text = " - ";
- this.ServerInfoHost.TextAlign = ContentAlignment.MiddleCenter;
- this.label1.AutoSize = true;
- this.label1.BackColor = Color.Transparent;
- this.label1.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label1.Location = new Point(6, 0x20);
- this.label1.Name = "label1";
- this.label1.Size = new Size(80, 13);
- this.label1.TabIndex = 6;
- this.label1.Text = "Host Details:";
- this.ServerTimer.Interval = 0x9c4;
- this.ServerTimer.Tick += new EventHandler(this.ServerTimer_Tick);
- this.coreGroupBox1.AutoScroll = true;
- this.coreGroupBox1.BackColor = Color.FromArgb(0xf3, 0xf4, 0xf7);
- this.coreGroupBox1.BannerImage = null;
- this.coreGroupBox1.Controls.Add(this.label1);
- this.coreGroupBox1.Controls.Add(this.ServerInfoGM);
- this.coreGroupBox1.Controls.Add(this.ServerInfoHost);
- this.coreGroupBox1.Controls.Add(this.ServerInfoMap);
- this.coreGroupBox1.Controls.Add(this.label3);
- this.coreGroupBox1.Controls.Add(this.label4);
- this.coreGroupBox1.Location = new Point(0x27, 0xa3);
- this.coreGroupBox1.Name = "coreGroupBox1";
- this.coreGroupBox1.Padding = new Padding(3, 0x17, 3, 3);
- this.coreGroupBox1.ShowText = true;
- this.coreGroupBox1.Size = new Size(0x156, 0x56);
- this.coreGroupBox1.TabIndex = 12;
- this.coreGroupBox1.Title = "Server Informations";
- this.coreLabel2.BackColor = Color.Transparent;
- this.coreLabel2.DisplayType = CoreLabel.DisplayTypes.Normal;
- this.coreLabel2.GrayMode = false;
- this.coreLabel2.Location = new Point(12, 0x113);
- this.coreLabel2.Name = "coreLabel2";
- this.coreLabel2.OverflowMode = GraphicsExtensions.DrawStringOverflowModes.AutoResize;
- this.coreLabel2.Size = new Size(0x109, 0x17);
- this.coreLabel2.TabIndex = 15;
- this.coreLabel2.Text = "Tool and Mod Menu developed by seb5594";
- this.coreLabel2.TextAlign = ContentAlignment.MiddleCenter;
- this.coreButton1.BackColor = Color.Transparent;
- this.coreButton1.Icon = null;
- this.coreButton1.Location = new Point(0x83, 0x4b);
- this.coreButton1.Name = "coreButton1";
- this.coreButton1.Size = new Size(0xb5, 0x1c);
- this.coreButton1.TabIndex = 0x10;
- this.coreButton1.Text = "Start Mod Menu";
- this.coreButton1.Click += new EventHandler(this.coreButton1_Click);
- this.coreButton2.BackColor = Color.Transparent;
- this.coreButton2.Icon = null;
- this.coreButton2.Location = new Point(0x83, 110);
- this.coreButton2.Name = "coreButton2";
- this.coreButton2.Size = new Size(0xb5, 0x1c);
- this.coreButton2.TabIndex = 0x11;
- this.coreButton2.Text = "Stop Mod Menu";
- this.coreButton2.Click += new EventHandler(this.coreButton2_Click);
- this.coreButton3.BackColor = Color.Transparent;
- this.coreButton3.Icon = null;
- this.coreButton3.Location = new Point(0x83, 40);
- this.coreButton3.Name = "coreButton3";
- this.coreButton3.Size = new Size(0xb5, 0x1c);
- this.coreButton3.TabIndex = 0x12;
- this.coreButton3.Text = "Connect and Attach";
- this.coreButton3.Click += new EventHandler(this.coreButton3_Click);
- this.tabControl1.AllowDrop = true;
- this.tabControl1.BackColor = Color.Transparent;
- this.tabControl1.Dock = DockStyle.Fill;
- this.tabControl1.Location = new Point(0, 0);
- this.tabControl1.Name = "tabControl1";
- this.tabControl1.TabIndex = 0x13;
- this.tabControl1.Text = "tabControl1";
- this.tabControl1.Click += new EventHandler(this.tabControl1_Click);
- this.coreLabel3.BackColor = Color.Transparent;
- this.coreLabel3.DisplayType = CoreLabel.DisplayTypes.Normal;
- this.coreLabel3.GrayMode = false;
- this.coreLabel3.Location = new Point(0x133, 0x113);
- this.coreLabel3.Name = "coreLabel3";
- this.coreLabel3.OverflowMode = GraphicsExtensions.DrawStringOverflowModes.AutoResize;
- this.coreLabel3.Size = new Size(0x9d, 0x18);
- this.coreLabel3.TabIndex = 20;
- this.coreLabel3.Text = "Current Version: ";
- this.coreLabel3.TextAlign = ContentAlignment.MiddleCenter;
- this.DebuggerKillTimer.Interval = 0x1388;
- this.DebuggerKillTimer.Tick += new EventHandler(this.DebuggerKillTimer_Tick);
- this.updateController1.applicationLocation = "";
- this.updateController1.autoCloseHostApplication = true;
- this.updateController1.Language = Languages.Auto;
- this.updateController1.projectId = "5af4efa7-f7ef-404a-94e8-8305fadb54fd";
- this.updateController1.proxyPassword = null;
- this.updateController1.proxyUrl = null;
- this.updateController1.proxyUsername = null;
- this.updateController1.releaseFilter.checkForAlpha = false;
- this.updateController1.releaseFilter.checkForBeta = false;
- this.updateController1.releaseFilter.checkForFinal = true;
- this.updateController1.releaseInfo.Step = 2;
- this.updateController1.releaseInfo.Version = "2.0.6";
- this.updateController1.requestElevation = true;
- this.updateController1.restartApplication = true;
- this.updateController1.updateUrl = "http://ps3-modz.de/DL/Updates";
- this.updateController1.checkForUpdatesCompleted += new checkForUpdatesCompletedEventHandler(this.updateController1_checkForUpdatesCompleted);
- base.ClientSize = new Size(480, 0x13a);
- base.Controls.Add(this.coreLabel3);
- base.Controls.Add(this.coreButton3);
- base.Controls.Add(this.coreButton2);
- base.Controls.Add(this.coreButton1);
- base.Controls.Add(this.coreLabel2);
- base.Controls.Add(this.coreGroupBox1);
- base.Controls.Add(this.tabControl1);
- this.Font = new Font("Metro Lite", 20.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- base.Name = "x";
- base.StartPosition = FormStartPosition.CenterScreen;
- this.Text = "Project Freedom v2 for Ghosts 1.06 created by seb5594";
- base.FormClosing += new FormClosingEventHandler(this.x_FormClosing_1);
- base.Load += new EventHandler(this.MenuForm_Load);
- this.coreGroupBox1.ResumeLayout(false);
- this.coreGroupBox1.PerformLayout();
- base.ResumeLayout(false);
- }
- private void MakeTransparent()
- {
- }
- private void updateController1_checkForUpdatesCompleted(object sender, checkForUpdatesCompletedEventArgs e)
- {
- }
- private void MenuForm_Load(object sender, EventArgs e)
- {
- TabPage page = new TabPage();
- page.Text = "Main Panel";
- Thread.Sleep(20);
- this.coreLabel3.Text = this.coreLabel3.Text + CurrentVersion;
- }
- private bool ResetAllThreads()
- {
- MenuIsRunning = false;
- HudElements.DestroyAll();
- bool[] activeClients = Functions.GetActiveClients();
- for (int i = 0; i < 12; i++)
- {
- if (activeClients[i])
- {
- if (Aimbot.AimbotStatus[i])
- {
- Aimbot.AimbotStatus[i] = false;
- Aimbot.UnfairAimbot[i] = false;
- Aimbot.AimbotThread[i].Abort();
- }
- if (ForgeMode.ForgeModeStatus[i])
- {
- ForgeMode.ForgeModeStatus[i] = false;
- ForgeMode.ForgeModeThread[i].Abort();
- }
- if (JetPack.JetP[i].isStored)
- {
- JetPack.JetP[i].isStored = false;
- JetPack.JetP[i].isActive = false;
- JetPack.JetP[i].JetPack_t.Abort();
- }
- if (PrestigeCircular.CircularStatus)
- {
- PrestigeCircular.CircularStatus = false;
- PrestigeCircular.CurrentPos = 0;
- PrestigeCircular.CircularThread.Abort();
- }
- if (MenuBase.Menu[i].Stored)
- {
- MenuBase.DisableBase(i);
- }
- }
- }
- return true;
- }
- private void ServerTimer_Tick(object sender, EventArgs e)
- {
- this.ServerInfoHost.Text = Functions.ReturnServerInfos("Host");
- this.ServerInfoMap.Text = Functions.ReturnServerInfos("Map");
- this.ServerInfoGM.Text = Functions.ReturnServerInfos("Gamemode");
- }
- private void tabControl1_Click(object sender, EventArgs e)
- {
- }
- private void x_FormClosing_1(object sender, FormClosingEventArgs e)
- {
- if (this.ResetAllThreads())
- {
- Environment.Exit(Environment.ExitCode);
- }
- }
- private void button1_Click_1(object sender, EventArgs e)
- {
- GhostsLib.MenuBase.OpenModMenu(0);
- }
- private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
- {
- }
- public static uint Prestige;
- private void button1_Click_2(object sender, EventArgs e)
- {
- Functions.Suicide(0);
- //MessageBox.Show("" + Functions.BG_GetWeaponDef(Functions.getWeaponIndexForName(Functions.WeaponNames.iw6_ak12_mp)));
- //Prestige = HudElements.SetShader(0, "rank_prestige10", 100, 100, 250, 250);
- }
- private void button2_Click(object sender, EventArgs e)
- {
- }
- }
- }
Add Comment
Please, Sign In to add comment