Example #1
0
 // Token: 0x06000244 RID: 580 RVA: 0x000087C0 File Offset: 0x000069C0
 public T ReadMemory <T>(ulong addr) where T : struct
 {
     byte[] array = new byte[Marshal.SizeOf(typeof(T))];
     if (!this.ReadMemory(addr, array))
     {
         throw new Exception("read memory failed");
     }
     return(HSClient.ByteArrayToStructure <T>(array));
 }
Example #2
0
 // Token: 0x06000272 RID: 626 RVA: 0x000092C8 File Offset: 0x000074C8
 public PUBG(ulong processId, HSClient client)
 {
     this._processId     = processId;
     this._actors        = new ConcurrentBag <Actor>();
     this._running       = true;
     this._client        = client;
     this._updateThread  = new Thread(new ThreadStart(this.UpdateThread));
     this._playerClasses = new int[2];
 }
Example #3
0
        private static void Main(string[] args)
        {
            Console.ForegroundColor = ConsoleColor.White;
            string[] guid = Guid.NewGuid().ToString().Split('-');
            Console.Title = (guid[0] + guid[1] + "|VentrixCode#6897|" + guid[2] + guid[3]).Replace("-", "");
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            for (int i = 0; i < 3; i++)
            {
                Console.WriteLine(Guid.NewGuid().ToString().Replace("-", ""));
            }
            Console.WriteLine("Waiting for G");
            do
            {
                //Program.PubgProcess = ((IEnumerable<Process>) Process.GetProcessesByName("TslGame")).FirstOrDefault<Process>();
                Program.PubgProcess = Process.GetProcesses().FirstOrDefault(x => x.ProcessName.GetHashCode() == -219875547);
                Thread.Sleep(100);
            }while (Program.PubgProcess == null);
            Console.WriteLine("G Proc {0}", (object)Program.PubgProcess.Id);
            Console.WriteLine("Init PayPass");
            Program.Client = new HSClient();
            if (Program.Client.connect())
            {
                Console.ForegroundColor = ConsoleColor.Green;
                Console.WriteLine("PayPass step 1/2 OK");
                Console.ForegroundColor = ConsoleColor.White;

                Console.WriteLine("Loading PayPass, wait few seconds...");
                Thread.Sleep(2000);
                if (Program.Client.Handshake(Program.PubgProcess.Id, 10))
                {
                    Console.ForegroundColor = ConsoleColor.Green;
                    Console.WriteLine("PayPass step 2/2 OK");
                    Console.WriteLine("PayPass Completed");
                    Console.ForegroundColor = ConsoleColor.White;
                    IntPtr zero = IntPtr.Zero;
                    Console.WriteLine("Looking for Fenster...");
                    IntPtr window;
                    do
                    {
                        window = Program.FindWindow("UnrealWindow", (string)null);
                        Thread.Sleep(100);
                    }while (window == IntPtr.Zero);
                    Console.ForegroundColor = ConsoleColor.Green;
                    Console.WriteLine("Fenster Found {0}", (object)window.ToInt32());
                    Console.ForegroundColor = ConsoleColor.White;
                    Thread.Sleep(1000);
                    Program.Pubg = new PUBG((ulong)Program.PubgProcess.Id, Program.Client);
                    if (!Program.Pubg.Start())
                    {
                        Console.WriteLine("Failed to load");
                        Environment.Exit(0);
                    }
                    Application.Run((Form) new PGVisual.Overlay.Overlay(window));
                }
                else
                {
                    Console.ForegroundColor = ConsoleColor.Red;
                }
                Console.WriteLine("PayPass step 2 fail");
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
            }
            Console.WriteLine("PayPass step 1 fail");
        }