0% found this document useful (0 votes)
11 views1 page

Fast Inject

The document is a C# code snippet for a Windows Forms application that interacts with a process named 'HD-Player'. It performs an array of bytes (AoB) scan and writes memory values using a class named MAGİCMEM. The operation's duration is measured, and a success message is displayed upon completion.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views1 page

Fast Inject

The document is a C# code snippet for a Windows Forms application that interacts with a process named 'HD-Player'. It performs an array of bytes (AoB) scan and writes memory values using a class named MAGİCMEM. The operation's duration is measured, and a success message is displayed upon completion.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

using System;

using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Media;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MAGİC;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;

namespace test
{
public partial class Form1 : Form
{
MAGİCMEM MAGİC = new MAGİCMEM();
public Form1()
{
InitializeComponent();
}
public string gp;

private async void guna2Button1_Click(object sender, EventArgs e)


{
Stopwatch stopwatch = new Stopwatch();
stopwatch.Start();

Int32 proc = Process.GetProcessesByName("HD-Player")[0].Id;


MAGİC.OpenProcess(proc);
var enumerable = await MAGİC.AoBScan(0x0000000000010000,
0x00007ffffffeffff, "9A 99 19 3F 00 00 80 3E 00 00 00 00 04 00 00 00 00 00 80 3F 00
00 20 41 00 00 34 42 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 80 3F
9A", true, true, string.Empty);
gp = "0X" + enumerable.FirstOrDefault().ToString();
foreach (long num in enumerable)
{
MAGİC.WriteMemory(num.ToString("X"), "bytes", "9A 99 19 3B 00 00 80
2F 00 00 00 00 04 00 00 00 00 00 80 3F 00 00 20 41 00 00 34 42 01 00 00 00 01 00 00
00 00 00 00 00 00 00 00 00 00 00 80 3F 00", string.Empty, null);
}
stopwatch.Stop();
double elapsodSeconds = stopwatch.Elapsed.TotalSeconds;
Console.Beep();
status.Text = $"SUCCESSFUL,Time: {elapsodSeconds:F2} Seconds;";
}
}
}

You might also like