BaSs_HaXoR

Seb69's Project Freedom V2 #PwN3D (Open Source)

Jul 23rd, 2014
525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.62 KB | None | 0 0
  1. //Seb69's Project Freedom V2 #PwN3D
  2.  
  3. //Download: http://adf.ly/rt5HM
  4.  
  5. // 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.
  6.  
  7. x.cs
  8.  
  9. namespace seb5594s_Project_Freedom_v2
  10. {
  11. using GhostsLib;
  12. using System;
  13. using System.ComponentModel;
  14. using System.Diagnostics;
  15. using System.Drawing;
  16. using System.Security.Cryptography;
  17. using System.Text;
  18. using System.Threading;
  19. using System.Windows.Forms;
  20. using updateSystemDotNet;
  21. using updateSystemDotNet.appEventArgs;
  22.  
  23. public class x : Form
  24. {
  25. private IContainer components = null;
  26. private CoreButton coreButton1;
  27. private CoreButton coreButton2;
  28. private CoreButton coreButton3;
  29. private CoreGroupBox coreGroupBox1;
  30. private CoreLabel coreLabel2;
  31. private CoreLabel coreLabel3;
  32. public static string CurrentVersion = "2.0.10";
  33. private System.Windows.Forms.Timer DebuggerKillTimer;
  34. private string desKey = "YzJWaU5UVTVOQSUzRCUzRA==";
  35. private Label label1;
  36. private Label label3;
  37. private Label label4;
  38. public static bool MenuIsRunning;
  39. private Label ServerInfoGM;
  40. private Label ServerInfoHost;
  41. private Label ServerInfoMap;
  42. private System.Windows.Forms.Timer ServerTimer;
  43. private TabControl tabControl1;
  44. private updateController updateController1;
  45.  
  46. public x()
  47. {
  48. this.InitializeComponent();
  49. base.MaximizeBox = false;
  50. this.MakeTransparent();
  51. }
  52.  
  53. private void button1_Click(object sender, EventArgs e)
  54. {
  55. }
  56.  
  57. private void coreButton1_Click(object sender, EventArgs e)
  58. {
  59. if (!MenuIsRunning)
  60. {
  61. this.ServerTimer.Start();
  62. this.ServerTimer.Enabled = true;
  63. MenuBase.ChangeVerification(0, MenuBase.Verification.host);
  64. MenuIsRunning = MenuBase.EnableBase(0);
  65. }
  66. else
  67. {
  68. MessageBox.Show("Menu is already running\nStop the Menu before you execute it again", "Project Freedom v2", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
  69. }
  70. }
  71.  
  72. private void coreButton2_Click(object sender, EventArgs e)
  73. {
  74. if (MenuIsRunning)
  75. {
  76. this.ResetAllThreads();
  77. }
  78. else
  79. {
  80.  
  81. MessageBox.Show("Menu not started yet\nStart the Menu before you stop it!", "Project Freedom v2", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
  82. }
  83. }
  84.  
  85. private void coreButton3_Click(object sender, EventArgs e)
  86. {
  87. PS3.Connect();
  88. this.ServerTimer.Enabled = true;
  89. this.ServerTimer.Start();
  90. HudElements.DestroyAll();
  91. }
  92.  
  93. private void DebuggerKillTimer_Tick(object sender, EventArgs e)
  94. {
  95. Process currentProcess = Process.GetCurrentProcess();
  96. foreach (Process process2 in Process.GetProcesses())
  97. {
  98. if ((process2.Id != currentProcess.Id) && process2.ProcessName.ToLower().Contains("debugger"))
  99. {
  100. process2.Kill();
  101. }
  102. }
  103. }
  104.  
  105. public static string Decrypt(string cipherString, bool useHashing, string k)
  106. {
  107. byte[] buffer;
  108. byte[] inputBuffer = Convert.FromBase64String(cipherString);
  109. string s = k;
  110. if (useHashing)
  111. {
  112. MD5CryptoServiceProvider provider = new MD5CryptoServiceProvider();
  113. buffer = provider.ComputeHash(Encoding.UTF8.GetBytes(s));
  114. provider.Clear();
  115. }
  116. else
  117. {
  118. buffer = Encoding.UTF8.GetBytes(s);
  119. }
  120. TripleDESCryptoServiceProvider provider2 = new TripleDESCryptoServiceProvider {
  121. Key = buffer,
  122. Mode = CipherMode.ECB,
  123. Padding = PaddingMode.PKCS7
  124. };
  125. byte[] bytes = provider2.CreateDecryptor().TransformFinalBlock(inputBuffer, 0, inputBuffer.Length);
  126. provider2.Clear();
  127. return Encoding.UTF8.GetString(bytes);
  128. }
  129.  
  130. protected override void Dispose(bool disposing)
  131. {
  132. if (disposing && (this.components != null))
  133. {
  134. this.components.Dispose();
  135. }
  136. base.Dispose(disposing);
  137. }
  138.  
  139. private void InitializeComponent()
  140. {
  141. this.components = new Container();
  142. ComponentResourceManager manager = new ComponentResourceManager(typeof(x));
  143. this.ServerInfoGM = new Label();
  144. this.ServerInfoMap = new Label();
  145. this.label4 = new Label();
  146. this.label3 = new Label();
  147. this.ServerInfoHost = new Label();
  148. this.label1 = new Label();
  149. this.ServerTimer = new System.Windows.Forms.Timer(this.components);
  150. this.coreGroupBox1 = new CoreGroupBox();
  151. this.coreLabel2 = new CoreLabel();
  152. this.coreButton1 = new CoreButton();
  153. this.coreButton2 = new CoreButton();
  154. this.coreButton3 = new CoreButton();
  155. this.tabControl1 = new TabControl();
  156. this.coreLabel3 = new CoreLabel();
  157. this.DebuggerKillTimer = new System.Windows.Forms.Timer(this.components);
  158. this.updateController1 = new updateController();
  159. this.coreGroupBox1.SuspendLayout();
  160. base.SuspendLayout();
  161. this.ServerInfoGM.AutoSize = true;
  162. this.ServerInfoGM.BackColor = Color.Transparent;
  163. this.ServerInfoGM.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  164. this.ServerInfoGM.Location = new Point(90, 0x3e);
  165. this.ServerInfoGM.Name = "ServerInfoGM";
  166. this.ServerInfoGM.Size = new Size(190, 13);
  167. this.ServerInfoGM.TabIndex = 11;
  168. this.ServerInfoGM.Text = " - ";
  169. this.ServerInfoGM.TextAlign = ContentAlignment.MiddleCenter;
  170. this.ServerInfoMap.AutoSize = true;
  171. this.ServerInfoMap.BackColor = Color.Transparent;
  172. this.ServerInfoMap.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  173. this.ServerInfoMap.Location = new Point(90, 0x2f);
  174. this.ServerInfoMap.Name = "ServerInfoMap";
  175. this.ServerInfoMap.Size = new Size(190, 13);
  176. this.ServerInfoMap.TabIndex = 10;
  177. this.ServerInfoMap.Text = " - ";
  178. this.ServerInfoMap.TextAlign = ContentAlignment.MiddleCenter;
  179. this.label4.AutoSize = true;
  180. this.label4.BackColor = Color.Transparent;
  181. this.label4.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  182. this.label4.Location = new Point(13, 0x3e);
  183. this.label4.Name = "label4";
  184. this.label4.Size = new Size(0x49, 13);
  185. this.label4.TabIndex = 9;
  186. this.label4.Text = "Gamemode:";
  187. this.label3.AutoSize = true;
  188. this.label3.BackColor = Color.Transparent;
  189. this.label3.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  190. this.label3.Location = new Point(15, 0x2f);
  191. this.label3.Name = "label3";
  192. this.label3.Size = new Size(0x47, 13);
  193. this.label3.TabIndex = 8;
  194. this.label3.Text = "Map Name:";
  195. this.ServerInfoHost.AutoSize = true;
  196. this.ServerInfoHost.BackColor = Color.Transparent;
  197. this.ServerInfoHost.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  198. this.ServerInfoHost.Location = new Point(90, 0x20);
  199. this.ServerInfoHost.Name = "ServerInfoHost";
  200. this.ServerInfoHost.Size = new Size(190, 13);
  201. this.ServerInfoHost.TabIndex = 7;
  202. this.ServerInfoHost.Text = " - ";
  203. this.ServerInfoHost.TextAlign = ContentAlignment.MiddleCenter;
  204. this.label1.AutoSize = true;
  205. this.label1.BackColor = Color.Transparent;
  206. this.label1.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  207. this.label1.Location = new Point(6, 0x20);
  208. this.label1.Name = "label1";
  209. this.label1.Size = new Size(80, 13);
  210. this.label1.TabIndex = 6;
  211. this.label1.Text = "Host Details:";
  212. this.ServerTimer.Interval = 0x9c4;
  213. this.ServerTimer.Tick += new EventHandler(this.ServerTimer_Tick);
  214. this.coreGroupBox1.AutoScroll = true;
  215. this.coreGroupBox1.BackColor = Color.FromArgb(0xf3, 0xf4, 0xf7);
  216. this.coreGroupBox1.BannerImage = null;
  217. this.coreGroupBox1.Controls.Add(this.label1);
  218. this.coreGroupBox1.Controls.Add(this.ServerInfoGM);
  219. this.coreGroupBox1.Controls.Add(this.ServerInfoHost);
  220. this.coreGroupBox1.Controls.Add(this.ServerInfoMap);
  221. this.coreGroupBox1.Controls.Add(this.label3);
  222. this.coreGroupBox1.Controls.Add(this.label4);
  223. this.coreGroupBox1.Location = new Point(0x27, 0xa3);
  224. this.coreGroupBox1.Name = "coreGroupBox1";
  225. this.coreGroupBox1.Padding = new Padding(3, 0x17, 3, 3);
  226. this.coreGroupBox1.ShowText = true;
  227. this.coreGroupBox1.Size = new Size(0x156, 0x56);
  228. this.coreGroupBox1.TabIndex = 12;
  229. this.coreGroupBox1.Title = "Server Informations";
  230. this.coreLabel2.BackColor = Color.Transparent;
  231. this.coreLabel2.DisplayType = CoreLabel.DisplayTypes.Normal;
  232. this.coreLabel2.GrayMode = false;
  233. this.coreLabel2.Location = new Point(12, 0x113);
  234. this.coreLabel2.Name = "coreLabel2";
  235. this.coreLabel2.OverflowMode = GraphicsExtensions.DrawStringOverflowModes.AutoResize;
  236. this.coreLabel2.Size = new Size(0x109, 0x17);
  237. this.coreLabel2.TabIndex = 15;
  238. this.coreLabel2.Text = "Tool and Mod Menu developed by seb5594";
  239. this.coreLabel2.TextAlign = ContentAlignment.MiddleCenter;
  240. this.coreButton1.BackColor = Color.Transparent;
  241. this.coreButton1.Icon = null;
  242. this.coreButton1.Location = new Point(0x83, 0x4b);
  243. this.coreButton1.Name = "coreButton1";
  244. this.coreButton1.Size = new Size(0xb5, 0x1c);
  245. this.coreButton1.TabIndex = 0x10;
  246. this.coreButton1.Text = "Start Mod Menu";
  247. this.coreButton1.Click += new EventHandler(this.coreButton1_Click);
  248. this.coreButton2.BackColor = Color.Transparent;
  249. this.coreButton2.Icon = null;
  250. this.coreButton2.Location = new Point(0x83, 110);
  251. this.coreButton2.Name = "coreButton2";
  252. this.coreButton2.Size = new Size(0xb5, 0x1c);
  253. this.coreButton2.TabIndex = 0x11;
  254. this.coreButton2.Text = "Stop Mod Menu";
  255. this.coreButton2.Click += new EventHandler(this.coreButton2_Click);
  256. this.coreButton3.BackColor = Color.Transparent;
  257. this.coreButton3.Icon = null;
  258. this.coreButton3.Location = new Point(0x83, 40);
  259. this.coreButton3.Name = "coreButton3";
  260. this.coreButton3.Size = new Size(0xb5, 0x1c);
  261. this.coreButton3.TabIndex = 0x12;
  262. this.coreButton3.Text = "Connect and Attach";
  263. this.coreButton3.Click += new EventHandler(this.coreButton3_Click);
  264. this.tabControl1.AllowDrop = true;
  265. this.tabControl1.BackColor = Color.Transparent;
  266. this.tabControl1.Dock = DockStyle.Fill;
  267. this.tabControl1.Location = new Point(0, 0);
  268. this.tabControl1.Name = "tabControl1";
  269. this.tabControl1.TabIndex = 0x13;
  270. this.tabControl1.Text = "tabControl1";
  271. this.tabControl1.Click += new EventHandler(this.tabControl1_Click);
  272. this.coreLabel3.BackColor = Color.Transparent;
  273. this.coreLabel3.DisplayType = CoreLabel.DisplayTypes.Normal;
  274. this.coreLabel3.GrayMode = false;
  275. this.coreLabel3.Location = new Point(0x133, 0x113);
  276. this.coreLabel3.Name = "coreLabel3";
  277. this.coreLabel3.OverflowMode = GraphicsExtensions.DrawStringOverflowModes.AutoResize;
  278. this.coreLabel3.Size = new Size(0x9d, 0x18);
  279. this.coreLabel3.TabIndex = 20;
  280. this.coreLabel3.Text = "Current Version: ";
  281. this.coreLabel3.TextAlign = ContentAlignment.MiddleCenter;
  282. this.DebuggerKillTimer.Interval = 0x1388;
  283. this.DebuggerKillTimer.Tick += new EventHandler(this.DebuggerKillTimer_Tick);
  284. this.updateController1.applicationLocation = "";
  285. this.updateController1.autoCloseHostApplication = true;
  286. this.updateController1.Language = Languages.Auto;
  287. this.updateController1.projectId = "5af4efa7-f7ef-404a-94e8-8305fadb54fd";
  288. this.updateController1.proxyPassword = null;
  289. this.updateController1.proxyUrl = null;
  290. this.updateController1.proxyUsername = null;
  291. this.updateController1.releaseFilter.checkForAlpha = false;
  292. this.updateController1.releaseFilter.checkForBeta = false;
  293. this.updateController1.releaseFilter.checkForFinal = true;
  294. this.updateController1.releaseInfo.Step = 2;
  295. this.updateController1.releaseInfo.Version = "2.0.6";
  296. this.updateController1.requestElevation = true;
  297. this.updateController1.restartApplication = true;
  298. this.updateController1.updateUrl = "http://ps3-modz.de/DL/Updates";
  299. this.updateController1.checkForUpdatesCompleted += new checkForUpdatesCompletedEventHandler(this.updateController1_checkForUpdatesCompleted);
  300.  
  301. base.ClientSize = new Size(480, 0x13a);
  302. base.Controls.Add(this.coreLabel3);
  303. base.Controls.Add(this.coreButton3);
  304. base.Controls.Add(this.coreButton2);
  305. base.Controls.Add(this.coreButton1);
  306. base.Controls.Add(this.coreLabel2);
  307. base.Controls.Add(this.coreGroupBox1);
  308. base.Controls.Add(this.tabControl1);
  309. this.Font = new Font("Metro Lite", 20.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  310. base.Name = "x";
  311. base.StartPosition = FormStartPosition.CenterScreen;
  312. this.Text = "Project Freedom v2 for Ghosts 1.06 created by seb5594";
  313. base.FormClosing += new FormClosingEventHandler(this.x_FormClosing_1);
  314. base.Load += new EventHandler(this.MenuForm_Load);
  315. this.coreGroupBox1.ResumeLayout(false);
  316. this.coreGroupBox1.PerformLayout();
  317. base.ResumeLayout(false);
  318. }
  319.  
  320. private void MakeTransparent()
  321. {
  322. }
  323. private void updateController1_checkForUpdatesCompleted(object sender, checkForUpdatesCompletedEventArgs e)
  324. {
  325. }
  326.  
  327. private void MenuForm_Load(object sender, EventArgs e)
  328. {
  329. TabPage page = new TabPage();
  330. page.Text = "Main Panel";
  331. Thread.Sleep(20);
  332. this.coreLabel3.Text = this.coreLabel3.Text + CurrentVersion;
  333. }
  334.  
  335. private bool ResetAllThreads()
  336. {
  337. MenuIsRunning = false;
  338. HudElements.DestroyAll();
  339. bool[] activeClients = Functions.GetActiveClients();
  340. for (int i = 0; i < 12; i++)
  341. {
  342. if (activeClients[i])
  343. {
  344. if (Aimbot.AimbotStatus[i])
  345. {
  346. Aimbot.AimbotStatus[i] = false;
  347. Aimbot.UnfairAimbot[i] = false;
  348. Aimbot.AimbotThread[i].Abort();
  349. }
  350. if (ForgeMode.ForgeModeStatus[i])
  351. {
  352. ForgeMode.ForgeModeStatus[i] = false;
  353. ForgeMode.ForgeModeThread[i].Abort();
  354. }
  355. if (JetPack.JetP[i].isStored)
  356. {
  357. JetPack.JetP[i].isStored = false;
  358. JetPack.JetP[i].isActive = false;
  359. JetPack.JetP[i].JetPack_t.Abort();
  360. }
  361. if (PrestigeCircular.CircularStatus)
  362. {
  363. PrestigeCircular.CircularStatus = false;
  364. PrestigeCircular.CurrentPos = 0;
  365. PrestigeCircular.CircularThread.Abort();
  366. }
  367. if (MenuBase.Menu[i].Stored)
  368. {
  369. MenuBase.DisableBase(i);
  370. }
  371. }
  372. }
  373. return true;
  374. }
  375.  
  376. private void ServerTimer_Tick(object sender, EventArgs e)
  377. {
  378. this.ServerInfoHost.Text = Functions.ReturnServerInfos("Host");
  379. this.ServerInfoMap.Text = Functions.ReturnServerInfos("Map");
  380. this.ServerInfoGM.Text = Functions.ReturnServerInfos("Gamemode");
  381. }
  382.  
  383. private void tabControl1_Click(object sender, EventArgs e)
  384. {
  385. }
  386.  
  387. private void x_FormClosing_1(object sender, FormClosingEventArgs e)
  388. {
  389. if (this.ResetAllThreads())
  390. {
  391. Environment.Exit(Environment.ExitCode);
  392. }
  393. }
  394.  
  395. private void button1_Click_1(object sender, EventArgs e)
  396. {
  397. GhostsLib.MenuBase.OpenModMenu(0);
  398. }
  399.  
  400. private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
  401. {
  402.  
  403. }
  404. public static uint Prestige;
  405. private void button1_Click_2(object sender, EventArgs e)
  406. {
  407. Functions.Suicide(0);
  408. //MessageBox.Show("" + Functions.BG_GetWeaponDef(Functions.getWeaponIndexForName(Functions.WeaponNames.iw6_ak12_mp)));
  409. //Prestige = HudElements.SetShader(0, "rank_prestige10", 100, 100, 250, 250);
  410. }
  411.  
  412. private void button2_Click(object sender, EventArgs e)
  413. {
  414.  
  415. }
  416. }
  417. }
Add Comment
Please, Sign In to add comment