Liamm

GSC Dump..

Jun 29th, 2016
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.15 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using XRPCLib;
  7.  
  8. namespace Project_S
  9. {
  10.     class Program
  11.     {
  12.         static XRPC d = new XRPC();
  13.         static void Main(string[] args)
  14.         {
  15.             Console.Title = "GSC Dump";
  16.             Connection();
  17.             Console.ReadKey();
  18.         }
  19.         static void Connection()
  20.         {
  21.             try
  22.             {
  23.                 d.Connect();
  24.                 if (d.activeConnection)
  25.                 {
  26.                     Console.WriteLine("Connected to Default Console.");
  27.                     Console.Clear();
  28.                     Console.WriteLine("Make your Choice.");
  29.                     Console.WriteLine("");
  30.                     Console.WriteLine("1. _Development_Dvars");
  31.                     Console.WriteLine("");
  32.                     Console.WriteLine("2. _clientids");
  33.                     MakeChoice();
  34.                 }
  35.                 else
  36.                 {
  37.                     Console.WriteLine("Failed to Connect");
  38.                 }
  39.             }
  40.             catch(Exception ex)
  41.             {
  42.                 Console.WriteLine("Failed to Connect");
  43.             }
  44.         }
  45.         static void beginDeveloDump()
  46.         {
  47.             byte[] e = d.GetMemory(0x831EBC80, 0x40300000);
  48.             string ee = ASCIIEncoding.ASCII.GetString(e);
  49.             System.IO.File.WriteAllText(@"_Development_DvarsDump.gsc", ee);
  50.         }
  51.         static void beginclientidsDump()
  52.         {
  53.             byte[] g = d.GetMemory(0x831EBE78, 0x40300000);
  54.             string ee = ASCIIEncoding.ASCII.GetString(g);
  55.             System.IO.File.WriteAllText(@"_clientidsDump.gsc", ee);
  56.         }
  57.         static void MakeChoice()
  58.         {
  59.             string Selection = Console.ReadLine();
  60.             if(Selection == "1")
  61.             {
  62.                 beginDeveloDump();
  63.             }
  64.             if (Selection == "2")
  65.             {
  66.                 beginclientidsDump();
  67.             }
  68.             else
  69.             {
  70.                 Console.WriteLine("Not a valid Selection");
  71.             }
  72.         }
  73.     }
  74. }
Add Comment
Please, Sign In to add comment