Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using XRPCLib;
- namespace Project_S
- {
- class Program
- {
- static XRPC d = new XRPC();
- static void Main(string[] args)
- {
- Console.Title = "GSC Dump";
- Connection();
- Console.ReadKey();
- }
- static void Connection()
- {
- try
- {
- d.Connect();
- if (d.activeConnection)
- {
- Console.WriteLine("Connected to Default Console.");
- Console.Clear();
- Console.WriteLine("Make your Choice.");
- Console.WriteLine("");
- Console.WriteLine("1. _Development_Dvars");
- Console.WriteLine("");
- Console.WriteLine("2. _clientids");
- MakeChoice();
- }
- else
- {
- Console.WriteLine("Failed to Connect");
- }
- }
- catch(Exception ex)
- {
- Console.WriteLine("Failed to Connect");
- }
- }
- static void beginDeveloDump()
- {
- byte[] e = d.GetMemory(0x831EBC80, 0x40300000);
- string ee = ASCIIEncoding.ASCII.GetString(e);
- System.IO.File.WriteAllText(@"_Development_DvarsDump.gsc", ee);
- }
- static void beginclientidsDump()
- {
- byte[] g = d.GetMemory(0x831EBE78, 0x40300000);
- string ee = ASCIIEncoding.ASCII.GetString(g);
- System.IO.File.WriteAllText(@"_clientidsDump.gsc", ee);
- }
- static void MakeChoice()
- {
- string Selection = Console.ReadLine();
- if(Selection == "1")
- {
- beginDeveloDump();
- }
- if (Selection == "2")
- {
- beginclientidsDump();
- }
- else
- {
- Console.WriteLine("Not a valid Selection");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment