Giriş yap
En iyi yollayıcılar
Hello EMO | ||||
EMO | ||||
eMoStyLe | ||||
BesimBICER | ||||
GameKinG | ||||
Crysis | ||||
~>!.DεvιLρяιεsт.!<~ | ||||
MeTaL | ||||
TrueCrime | ||||
djhayal3t |
Istatistikler
Toplam 203 kayıtlı kullanıcımız varSon kaydolan kullanıcımız: crayzboy76
Kullanıcılarımız toplam 1186 mesaj attılar bunda 862 konu
Arama
Sosyal yer imi
Sosyal bookmarking sitesinde Emo, Emo nedir, Emo resimleri, Emo Kıyafetleri, Emo Sözleri, Emo Oyunları, EmoTurkey, Emo Nickler, Emo Avatarları, Punk, Punk Resimleri, Punk Avatarları, Rock, Rock Resimleri, Rock Avatarları, Msn Nickleri, Msn Avatarları, Müzik adresi saklayın ve paylaşın
Sosyal bookmarking sitesinde EMO Style ForumPro - Hos Geldiniz adresi saklayın ve paylaşın
Kimler hatta?
Toplam 5 kullanıcı online :: 0 Kayıtlı, 0 Gizli ve 5 Misafir Yok
Sitede bugüne kadar en çok 217 kişi C.tesi Tem. 29, 2017 1:46 am tarihinde online oldu.
En son konular
Reklam
auto find pointer source
1 sayfadaki 1 sayfası
auto find pointer source
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace KOAB_pointer_finder
{
static class Program
{
///
/// The main entry point for the application.
///
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new PointerScan());
}
}
}
namespace KOAB_pointer_finder
{
partial class PointerScan
{
///
/// Required designer variable.
///
private System.ComponentModel.IContainer components = null;
///
/// Clean up any resources being used.
///
/// true if managed resources should be disposed; otherwise, false.
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
this.textBox1 = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.textBox2 = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.textBox3 = new System.Windows.Forms.TextBox();
this.textBox4 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.button2 = new System.Windows.Forms.Button();
this.listBox1 = new System.Windows.Forms.ListBox();
this.label4 = new System.Windows.Forms.Label();
this.button3 = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(129, 18);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(79, 20);
this.textBox1.TabIndex = 0;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 21);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(101, 13);
this.label1.TabIndex = 1;
this.label1.Text = "Your Characters HP";
//
// openFileDialog1
//
this.openFileDialog1.FileName = "Settings";
this.openFileDialog1.Filter = "(*.ini)|*.ini|All files (*.*)|*.*\"";
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(15, 46);
this.textBox2.Name = "textBox2";
this.textBox2.ReadOnly = true;
this.textBox2.Size = new System.Drawing.Size(193, 20);
this.textBox2.TabIndex = 2;
//
// button1
//
this.button1.Enabled = false;
this.button1.Location = new System.Drawing.Point(214, 46);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(96, 23);
this.button1.TabIndex = 3;
this.button1.Text = "BROWSE";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(12, 72);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(89, 13);
this.label2.TabIndex = 4;
this.label2.Text = "Your Old Pointers";
//
// textBox3
//
this.textBox3.AcceptsReturn = true;
this.textBox3.Location = new System.Drawing.Point(15, 88);
this.textBox3.Multiline = true;
this.textBox3.Name = "textBox3";
this.textBox3.ReadOnly = true;
this.textBox3.Size = new System.Drawing.Size(140, 152);
this.textBox3.TabIndex = 5;
//
// textBox4
//
this.textBox4.AcceptsReturn = true;
this.textBox4.Location = new System.Drawing.Point(170, 88);
this.textBox4.Multiline = true;
this.textBox4.Name = "textBox4";
this.textBox4.ReadOnly = true;
this.textBox4.Size = new System.Drawing.Size(140, 152);
this.textBox4.TabIndex = 7;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(167, 72);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(95, 13);
this.label3.TabIndex = 6;
this.label3.Text = "Your New Pointers";
//
// button2
//
this.button2.Location = new System.Drawing.Point(214, 17);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(85, 23);
this.button2.TabIndex = 8;
this.button2.Text = "FIRST SCAN";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// listBox1
//
this.listBox1.FormattingEnabled = true;
this.listBox1.Location = new System.Drawing.Point(329, 80);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(161, 160);
this.listBox1.TabIndex = 9;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(326, 56);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(164, 13);
this.label4.TabIndex = 10;
this.label4.Text = "Related Adresses About Your HP";
//
// button3
//
this.button3.Enabled = false;
this.button3.Location = new System.Drawing.Point(305, 18);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(88, 23);
this.button3.TabIndex = 11;
this.button3.Text = "NEXT SCAN";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(399, 23);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(0, 13);
this.label5.TabIndex = 12;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(502, 248);
this.Controls.Add(this.label5);
this.Controls.Add(this.button3);
this.Controls.Add(this.label4);
this.Controls.Add(this.listBox1);
this.Controls.Add(this.button2);
this.Controls.Add(this.textBox4);
this.Controls.Add(this.label3);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.label2);
this.Controls.Add(this.button1);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.label1);
this.Controls.Add(this.textBox1);
this.Name = "Form1";
this.Text = "KOAB pointer finder By NeW124TaN !";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Label label5;
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace KOAB_pointer_finder
{
public partial class PointerScan : Form
{
public PointerScan()
{
InitializeComponent();
}
int[] possiblyHpAdresses = new int[5000];
int[] possiblyHpAdresses2 = new int[5000];
int KO_CHAR;
private void button1_Click(object sender, EventArgs e)
{
string[] data = new string[10];
int[] oldPointers = new int[10];
int[] newPointers = new int[10];
int i;
int fark,KO_SEND=0;
openFileDialog1.ShowDialog();
openFileDialog1.Title = "Select your settings file";
textBox2.Text = openFileDialog1.FileName;
StreamReader reader = new StreamReader(openFileDialog1.FileName);
data[0] = reader.ReadLine();
while (data[0] != "[Memory]")
{
data[0] = reader.ReadLine();
}
for (i = 0; i < 10; i++)
{
data[i] = reader.ReadLine();
textBox3.Text += data[i]+"\r\n";
}
textBox3.Text += reader.ReadLine();
for (i = 0; i < 10; i++)
{
oldPointers[i] = HexToDecimal(data[i].Substring(12, );
}
//KO_CHAR = HexToDecimal(textBox1.Text.Substring(2,);
//KO_CHAR = HexToDecimal("00b831ac");
fark = KO_CHAR - oldPointers[7];
for (i = 0; i < 10; i++)
{
newPointers[i] = oldPointers[i] + fark;
}
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(PointerScan));
ProcessMemoryReader pReader = new ProcessMemoryReader();
System.Diagnostics.Process[] myProcesses = System.Diagnostics.Process.GetProcessesByName("KnightOnLine");
if (myProcesses.Length == 0)
{
MessageBox.Show("No KnightOnline process found!");
return;
}
pReader.ReadProcess = myProcesses[0];
pReader.OpenProcess();
byte[] memory = new byte[4];
int firstAdress = 0x00400000;
int lastAdress = 0x00500000;
//int KO_SEND = 0x004743D0; KO_SEND POINTER FOR 1740
int bytesReaded;
for (i = firstAdress; i <= lastAdress; i++)
{
memory = pReader.ReadProcessMemory((IntPtr)i, 4, out bytesReaded);
if ((memory[0] == 0x6A) && memory[1] == 0xFF && memory[2] == 0x64 && memory[3] == 0xA1)
{
KO_SEND = i;
}
}
pReader.CloseHandle();
textBox4.Text += "KO_FLDC = 0x00" + newPointers[0].ToString("X") + "\r\n";
textBox4.Text += "KO_FLDB = 0x00" + newPointers[1].ToString("X") + "\r\n";
textBox4.Text += "KO_SMMT = 0x00" + newPointers[2].ToString("X") + "\r\n";
textBox4.Text += "KO_SM3T = 0x00" + newPointers[3].ToString("X") + "\r\n";
textBox4.Text += "KO_CHAT = 0x00" + newPointers[4].ToString("X") + "\r\n";
textBox4.Text += "KO_SMMB = 0x00" + newPointers[5].ToString("X") + "\r\n";
textBox4.Text += "KO_FLDA = 0x00" + newPointers[6].ToString("X") + "\r\n";
textBox4.Text += "KO_CHAR = 0x00" + newPointers[7].ToString("X") + "\r\n";
textBox4.Text += "KO_PCKT = 0x00" + newPointers[8].ToString("X") + "\r\n";
textBox4.Text += "KO_SRVR = 0x00" + newPointers[9].ToString("X") + "\r\n";
textBox4.Text += "KO_SEND = 0x00" + KO_SEND.ToString("X") + "\r\n";
}
public int UsAl(int taban, int us)
{
int i = 0;
int sonuc = 1;
for (i = 0; i < us; i++)
sonuc *= taban;
return sonuc;
}
public int HexToDecimal(string HexSayi)
{
int Sonuc = 0;
int[] Sayisal = new int[HexSayi.Length];
char[] TersHexSayi = new char[HexSayi.Length];
int i;
TersHexSayi = HexSayi.ToCharArray();
Array.Reverse(TersHexSayi);
for (i = 0; i < HexSayi.Length; i++)
{
if (TersHexSayi[i] == 'A' || TersHexSayi[i] == 'a')
{
Sayisal[i] = 10;
}
else if (TersHexSayi[i] == 'B' || TersHexSayi[i] == 'b')
{
Sayisal[i] = 11;
}
else if (TersHexSayi[i] == 'C' || TersHexSayi[i] == 'c')
{
Sayisal[i] = 12;
}
else if (TersHexSayi[i] == 'D' || TersHexSayi[i] == 'd')
{
Sayisal[i] = 13;
}
else if (TersHexSayi[i] == 'E' || TersHexSayi[i] == 'e')
{
Sayisal[i] = 14;
}
else if (TersHexSayi[i] == 'F' || TersHexSayi[i] == 'f')
{
Sayisal[i] = 15;
}
else
{
Sayisal[i] = Convert.ToInt32(TersHexSayi[i] - 48);
}
}
for (i = 0; i < HexSayi.Length; i++)
{
Sonuc += Sayisal[i] * UsAl(16, i);
}
return Sonuc;
}
private void Form1_Load(object sender, EventArgs e)
{
MessageBox.Show("This Program Written By NeW124TaN For Snoxd.net", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
class ProcessMemoryReaderApi
{
// constants information can be found in
public const uint PROCESS_VM_READ = (0x0010);
// function declarations are found in the MSDN and in
// HANDLE OpenProcess(
// DWORD dwDesiredAccess, // access flag
// BOOL bInheritHandle, // handle inheritance option
// DWORD dwProcessId // process identifier
// );
[DllImport("kernel32.dll")]
public static extern IntPtr OpenProcess(UInt32 dwDesiredAccess, Int32 bInheritHandle, UInt32 dwProcessId);
// BOOL CloseHandle(
// HANDLE hObject // handle to object
// );
[DllImport("kernel32.dll")]
public static extern Int32 CloseHandle(IntPtr hObject);
// BOOL ReadProcessMemory(
// HANDLE hProcess, // handle to the process
// LPCVOID lpBaseAddress, // base of memory area
// LPVOID lpBuffer, // data buffer
// SIZE_T nSize, // number of bytes to read
// SIZE_T * lpNumberOfBytesRead // number of bytes read
// );
[DllImport("kernel32.dll")]
public static extern Int32 ReadProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, [In, Out] byte[] buffer, UInt32 size, out IntPtr lpNumberOfBytesRead);
}
public class ProcessMemoryReader
{
public ProcessMemoryReader()
{
}
///
/// Process from which to read
///
public Process ReadProcess
{
get
{
return m_ReadProcess;
}
set
{
m_ReadProcess = value;
}
}
private Process m_ReadProcess = null;
private IntPtr m_hProcess = IntPtr.Zero;
public void OpenProcess()
{
m_hProcess = ProcessMemoryReaderApi.OpenProcess(ProcessMemoryReaderApi.PROCESS_VM_READ, 1, (uint)m_ReadProcess.Id);
}
public void CloseHandle()
{
int iRetValue;
iRetValue = ProcessMemoryReaderApi.CloseHandle(m_hProcess);
if (iRetValue == 0)
throw new Exception("CloseHandle failed");
}
public byte[] ReadProcessMemory(IntPtr MemoryAddress, uint bytesToRead, out int bytesReaded)
{
byte[] buffer = new byte[bytesToRead];
IntPtr ptrBytesReaded;
ProcessMemoryReaderApi.ReadProcessMemory(m_hProcess, MemoryAddress, buffer, bytesToRead, out ptrBytesReaded);
bytesReaded = ptrBytesReaded.ToInt32();
return buffer;
}
}
private void button2_Click(object sender, EventArgs e)
{
try
{
if (textBox1.Text == "")
{
MessageBox.Show("Please Enter Your character's HP value", "EROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
System.Int32.Parse(textBox1.Text);
}
catch
{
MessageBox.Show("Please Enter Only numeric character","EROR",MessageBoxButtons.OK,MessageBoxIcon.Error);
textBox1.Text = "";
textBox1.Focus();
return;
}
if (button2.Text == "NEW SCAN")
{
textBox1.Text = "";
button2.Text = "FIRST SCAN";
button3.Enabled = false;
textBox1.Focus();
return;
}
listBox1.Items.Clear();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(PointerScan));
ProcessMemoryReader pReader = new ProcessMemoryReader();
System.Diagnostics.Process[] myProcesses = System.Diagnostics.Process.GetProcessesByName("KnightOnLine");
if (myProcesses.Length == 0)
{
MessageBox.Show("No KnightOnline process found!");
return;
}
pReader.ReadProcess = myProcesses[0];
pReader.OpenProcess();
byte[] memory ;
int firstAdress = 0x02000000;
int lastAdress = 0x03000000;
int bytesReaded,i,HP,Lenght=0;
//memory = pReader.ReadProcessMemory((IntPtr)lastAdress, 4, out bytesReaded);
//HP = System.BitConverter.ToInt32(memory, 0);
HP = System.Int32.Parse(textBox1.Text);
for (i = firstAdress; i <= lastAdress;)//memory scan for hp adres
{
memory = pReader.ReadProcessMemory((IntPtr)i, 4, out bytesReaded);
if (HP==System.BitConverter.ToInt32(memory,0))
{
possiblyHpAdresses[Lenght] = i;
Lenght++;
listBox1.Items.Add("0x0" + i.ToString("X"));
}
i += 4;
}
pReader.CloseHandle();
button2.Text = "NEW SCAN";
button3.Enabled = true;
button1.Enabled = true;
label5.Text = listBox1.Items.Count.ToString() + " Adresses Found";
}
private void button3_Click(object sender, EventArgs e)
{
int HP = System.Int32.Parse(textBox1.Text);
int i, bytesReaded, Lenght = 0;
byte[] memory;
int firstAdress = 0x00B00000;
int lastAdress = 0x00C00000;
listBox1.Items.Clear();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(PointerScan));
ProcessMemoryReader pReader = new ProcessMemoryReader();
System.Diagnostics.Process[] myProcesses = System.Diagnostics.Process.GetProcessesByName("KnightOnLine");
if (myProcesses.Length == 0)
{
MessageBox.Show("No KnightOnline process found!");
return;
}
pReader.ReadProcess = myProcesses[0];
pReader.OpenProcess();
//adres = possiblyHpAdresses[0];
//memory = pReader.ReadProcessMemory((IntPtr)adres, 4, out bytesReaded);
//temp = System.BitConverter.ToInt32(memory, 0);
http://pReader.CloseHandle();
for (i = 0; i < 30; i++)
{
if (possiblyHpAdresses[i] != 0)
{
memory = pReader.ReadProcessMemory((IntPtr)possiblyHpAdresses[i], 4, out bytesReaded);
if (HP == System.BitConverter.ToInt32(memory, 0))
{
possiblyHpAdresses2[Lenght] = possiblyHpAdresses[i];
listBox1.Items.Add("0x0" + possiblyHpAdresses2[Lenght].ToString("X"));
Lenght++;
}
}
}
if (uniqAdrees())
{
for (i = firstAdress; i <= lastAdress; i++) //scan for KO_CHAR
{
memory = pReader.ReadProcessMemory((IntPtr)i, 4, out bytesReaded);
if (System.BitConverter.ToInt32(memory, 0) == possiblyHpAdresses2[0] - 0x594)
{
MessageBox.Show("KO_CHAR Pointer is Found : 0x00"+i.ToString("X")+"\n\nPlease Select Your Settings.ini from your KOAB Folder","INFORMATION",MessageBoxButtons.OK,MessageBoxIcon.Information);
KO_CHAR = HexToDecimal("00" + i.ToString("X"));
break;
}
}
}
else
{
MessageBox.Show("KO_CHAR pointer hasn't found yet.\nChange Your Health Please Press the NEXT SCAN button","ERROR",MessageBoxButtons.OK,MessageBoxIcon.Error);
}
pReader.CloseHandle();
label5.Text = listBox1.Items.Count.ToString() + " Adresses Found";
}
public bool uniqAdrees()
{
if (listBox1.Items.Count==1)
{
return true;
}
else
{
return false;
}
}
}
}
using System.Collections.Generic;
using System.Windows.Forms;
namespace KOAB_pointer_finder
{
static class Program
{
///
/// The main entry point for the application.
///
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new PointerScan());
}
}
}
namespace KOAB_pointer_finder
{
partial class PointerScan
{
///
/// Required designer variable.
///
private System.ComponentModel.IContainer components = null;
///
/// Clean up any resources being used.
///
/// true if managed resources should be disposed; otherwise, false.
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
this.textBox1 = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.textBox2 = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.textBox3 = new System.Windows.Forms.TextBox();
this.textBox4 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.button2 = new System.Windows.Forms.Button();
this.listBox1 = new System.Windows.Forms.ListBox();
this.label4 = new System.Windows.Forms.Label();
this.button3 = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(129, 18);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(79, 20);
this.textBox1.TabIndex = 0;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 21);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(101, 13);
this.label1.TabIndex = 1;
this.label1.Text = "Your Characters HP";
//
// openFileDialog1
//
this.openFileDialog1.FileName = "Settings";
this.openFileDialog1.Filter = "(*.ini)|*.ini|All files (*.*)|*.*\"";
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(15, 46);
this.textBox2.Name = "textBox2";
this.textBox2.ReadOnly = true;
this.textBox2.Size = new System.Drawing.Size(193, 20);
this.textBox2.TabIndex = 2;
//
// button1
//
this.button1.Enabled = false;
this.button1.Location = new System.Drawing.Point(214, 46);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(96, 23);
this.button1.TabIndex = 3;
this.button1.Text = "BROWSE";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(12, 72);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(89, 13);
this.label2.TabIndex = 4;
this.label2.Text = "Your Old Pointers";
//
// textBox3
//
this.textBox3.AcceptsReturn = true;
this.textBox3.Location = new System.Drawing.Point(15, 88);
this.textBox3.Multiline = true;
this.textBox3.Name = "textBox3";
this.textBox3.ReadOnly = true;
this.textBox3.Size = new System.Drawing.Size(140, 152);
this.textBox3.TabIndex = 5;
//
// textBox4
//
this.textBox4.AcceptsReturn = true;
this.textBox4.Location = new System.Drawing.Point(170, 88);
this.textBox4.Multiline = true;
this.textBox4.Name = "textBox4";
this.textBox4.ReadOnly = true;
this.textBox4.Size = new System.Drawing.Size(140, 152);
this.textBox4.TabIndex = 7;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(167, 72);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(95, 13);
this.label3.TabIndex = 6;
this.label3.Text = "Your New Pointers";
//
// button2
//
this.button2.Location = new System.Drawing.Point(214, 17);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(85, 23);
this.button2.TabIndex = 8;
this.button2.Text = "FIRST SCAN";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// listBox1
//
this.listBox1.FormattingEnabled = true;
this.listBox1.Location = new System.Drawing.Point(329, 80);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(161, 160);
this.listBox1.TabIndex = 9;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(326, 56);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(164, 13);
this.label4.TabIndex = 10;
this.label4.Text = "Related Adresses About Your HP";
//
// button3
//
this.button3.Enabled = false;
this.button3.Location = new System.Drawing.Point(305, 18);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(88, 23);
this.button3.TabIndex = 11;
this.button3.Text = "NEXT SCAN";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(399, 23);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(0, 13);
this.label5.TabIndex = 12;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(502, 248);
this.Controls.Add(this.label5);
this.Controls.Add(this.button3);
this.Controls.Add(this.label4);
this.Controls.Add(this.listBox1);
this.Controls.Add(this.button2);
this.Controls.Add(this.textBox4);
this.Controls.Add(this.label3);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.label2);
this.Controls.Add(this.button1);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.label1);
this.Controls.Add(this.textBox1);
this.Name = "Form1";
this.Text = "KOAB pointer finder By NeW124TaN !";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Label label5;
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace KOAB_pointer_finder
{
public partial class PointerScan : Form
{
public PointerScan()
{
InitializeComponent();
}
int[] possiblyHpAdresses = new int[5000];
int[] possiblyHpAdresses2 = new int[5000];
int KO_CHAR;
private void button1_Click(object sender, EventArgs e)
{
string[] data = new string[10];
int[] oldPointers = new int[10];
int[] newPointers = new int[10];
int i;
int fark,KO_SEND=0;
openFileDialog1.ShowDialog();
openFileDialog1.Title = "Select your settings file";
textBox2.Text = openFileDialog1.FileName;
StreamReader reader = new StreamReader(openFileDialog1.FileName);
data[0] = reader.ReadLine();
while (data[0] != "[Memory]")
{
data[0] = reader.ReadLine();
}
for (i = 0; i < 10; i++)
{
data[i] = reader.ReadLine();
textBox3.Text += data[i]+"\r\n";
}
textBox3.Text += reader.ReadLine();
for (i = 0; i < 10; i++)
{
oldPointers[i] = HexToDecimal(data[i].Substring(12, );
}
//KO_CHAR = HexToDecimal(textBox1.Text.Substring(2,);
//KO_CHAR = HexToDecimal("00b831ac");
fark = KO_CHAR - oldPointers[7];
for (i = 0; i < 10; i++)
{
newPointers[i] = oldPointers[i] + fark;
}
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(PointerScan));
ProcessMemoryReader pReader = new ProcessMemoryReader();
System.Diagnostics.Process[] myProcesses = System.Diagnostics.Process.GetProcessesByName("KnightOnLine");
if (myProcesses.Length == 0)
{
MessageBox.Show("No KnightOnline process found!");
return;
}
pReader.ReadProcess = myProcesses[0];
pReader.OpenProcess();
byte[] memory = new byte[4];
int firstAdress = 0x00400000;
int lastAdress = 0x00500000;
//int KO_SEND = 0x004743D0; KO_SEND POINTER FOR 1740
int bytesReaded;
for (i = firstAdress; i <= lastAdress; i++)
{
memory = pReader.ReadProcessMemory((IntPtr)i, 4, out bytesReaded);
if ((memory[0] == 0x6A) && memory[1] == 0xFF && memory[2] == 0x64 && memory[3] == 0xA1)
{
KO_SEND = i;
}
}
pReader.CloseHandle();
textBox4.Text += "KO_FLDC = 0x00" + newPointers[0].ToString("X") + "\r\n";
textBox4.Text += "KO_FLDB = 0x00" + newPointers[1].ToString("X") + "\r\n";
textBox4.Text += "KO_SMMT = 0x00" + newPointers[2].ToString("X") + "\r\n";
textBox4.Text += "KO_SM3T = 0x00" + newPointers[3].ToString("X") + "\r\n";
textBox4.Text += "KO_CHAT = 0x00" + newPointers[4].ToString("X") + "\r\n";
textBox4.Text += "KO_SMMB = 0x00" + newPointers[5].ToString("X") + "\r\n";
textBox4.Text += "KO_FLDA = 0x00" + newPointers[6].ToString("X") + "\r\n";
textBox4.Text += "KO_CHAR = 0x00" + newPointers[7].ToString("X") + "\r\n";
textBox4.Text += "KO_PCKT = 0x00" + newPointers[8].ToString("X") + "\r\n";
textBox4.Text += "KO_SRVR = 0x00" + newPointers[9].ToString("X") + "\r\n";
textBox4.Text += "KO_SEND = 0x00" + KO_SEND.ToString("X") + "\r\n";
}
public int UsAl(int taban, int us)
{
int i = 0;
int sonuc = 1;
for (i = 0; i < us; i++)
sonuc *= taban;
return sonuc;
}
public int HexToDecimal(string HexSayi)
{
int Sonuc = 0;
int[] Sayisal = new int[HexSayi.Length];
char[] TersHexSayi = new char[HexSayi.Length];
int i;
TersHexSayi = HexSayi.ToCharArray();
Array.Reverse(TersHexSayi);
for (i = 0; i < HexSayi.Length; i++)
{
if (TersHexSayi[i] == 'A' || TersHexSayi[i] == 'a')
{
Sayisal[i] = 10;
}
else if (TersHexSayi[i] == 'B' || TersHexSayi[i] == 'b')
{
Sayisal[i] = 11;
}
else if (TersHexSayi[i] == 'C' || TersHexSayi[i] == 'c')
{
Sayisal[i] = 12;
}
else if (TersHexSayi[i] == 'D' || TersHexSayi[i] == 'd')
{
Sayisal[i] = 13;
}
else if (TersHexSayi[i] == 'E' || TersHexSayi[i] == 'e')
{
Sayisal[i] = 14;
}
else if (TersHexSayi[i] == 'F' || TersHexSayi[i] == 'f')
{
Sayisal[i] = 15;
}
else
{
Sayisal[i] = Convert.ToInt32(TersHexSayi[i] - 48);
}
}
for (i = 0; i < HexSayi.Length; i++)
{
Sonuc += Sayisal[i] * UsAl(16, i);
}
return Sonuc;
}
private void Form1_Load(object sender, EventArgs e)
{
MessageBox.Show("This Program Written By NeW124TaN For Snoxd.net", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
class ProcessMemoryReaderApi
{
// constants information can be found in
public const uint PROCESS_VM_READ = (0x0010);
// function declarations are found in the MSDN and in
// HANDLE OpenProcess(
// DWORD dwDesiredAccess, // access flag
// BOOL bInheritHandle, // handle inheritance option
// DWORD dwProcessId // process identifier
// );
[DllImport("kernel32.dll")]
public static extern IntPtr OpenProcess(UInt32 dwDesiredAccess, Int32 bInheritHandle, UInt32 dwProcessId);
// BOOL CloseHandle(
// HANDLE hObject // handle to object
// );
[DllImport("kernel32.dll")]
public static extern Int32 CloseHandle(IntPtr hObject);
// BOOL ReadProcessMemory(
// HANDLE hProcess, // handle to the process
// LPCVOID lpBaseAddress, // base of memory area
// LPVOID lpBuffer, // data buffer
// SIZE_T nSize, // number of bytes to read
// SIZE_T * lpNumberOfBytesRead // number of bytes read
// );
[DllImport("kernel32.dll")]
public static extern Int32 ReadProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, [In, Out] byte[] buffer, UInt32 size, out IntPtr lpNumberOfBytesRead);
}
public class ProcessMemoryReader
{
public ProcessMemoryReader()
{
}
///
/// Process from which to read
///
public Process ReadProcess
{
get
{
return m_ReadProcess;
}
set
{
m_ReadProcess = value;
}
}
private Process m_ReadProcess = null;
private IntPtr m_hProcess = IntPtr.Zero;
public void OpenProcess()
{
m_hProcess = ProcessMemoryReaderApi.OpenProcess(ProcessMemoryReaderApi.PROCESS_VM_READ, 1, (uint)m_ReadProcess.Id);
}
public void CloseHandle()
{
int iRetValue;
iRetValue = ProcessMemoryReaderApi.CloseHandle(m_hProcess);
if (iRetValue == 0)
throw new Exception("CloseHandle failed");
}
public byte[] ReadProcessMemory(IntPtr MemoryAddress, uint bytesToRead, out int bytesReaded)
{
byte[] buffer = new byte[bytesToRead];
IntPtr ptrBytesReaded;
ProcessMemoryReaderApi.ReadProcessMemory(m_hProcess, MemoryAddress, buffer, bytesToRead, out ptrBytesReaded);
bytesReaded = ptrBytesReaded.ToInt32();
return buffer;
}
}
private void button2_Click(object sender, EventArgs e)
{
try
{
if (textBox1.Text == "")
{
MessageBox.Show("Please Enter Your character's HP value", "EROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
System.Int32.Parse(textBox1.Text);
}
catch
{
MessageBox.Show("Please Enter Only numeric character","EROR",MessageBoxButtons.OK,MessageBoxIcon.Error);
textBox1.Text = "";
textBox1.Focus();
return;
}
if (button2.Text == "NEW SCAN")
{
textBox1.Text = "";
button2.Text = "FIRST SCAN";
button3.Enabled = false;
textBox1.Focus();
return;
}
listBox1.Items.Clear();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(PointerScan));
ProcessMemoryReader pReader = new ProcessMemoryReader();
System.Diagnostics.Process[] myProcesses = System.Diagnostics.Process.GetProcessesByName("KnightOnLine");
if (myProcesses.Length == 0)
{
MessageBox.Show("No KnightOnline process found!");
return;
}
pReader.ReadProcess = myProcesses[0];
pReader.OpenProcess();
byte[] memory ;
int firstAdress = 0x02000000;
int lastAdress = 0x03000000;
int bytesReaded,i,HP,Lenght=0;
//memory = pReader.ReadProcessMemory((IntPtr)lastAdress, 4, out bytesReaded);
//HP = System.BitConverter.ToInt32(memory, 0);
HP = System.Int32.Parse(textBox1.Text);
for (i = firstAdress; i <= lastAdress;)//memory scan for hp adres
{
memory = pReader.ReadProcessMemory((IntPtr)i, 4, out bytesReaded);
if (HP==System.BitConverter.ToInt32(memory,0))
{
possiblyHpAdresses[Lenght] = i;
Lenght++;
listBox1.Items.Add("0x0" + i.ToString("X"));
}
i += 4;
}
pReader.CloseHandle();
button2.Text = "NEW SCAN";
button3.Enabled = true;
button1.Enabled = true;
label5.Text = listBox1.Items.Count.ToString() + " Adresses Found";
}
private void button3_Click(object sender, EventArgs e)
{
int HP = System.Int32.Parse(textBox1.Text);
int i, bytesReaded, Lenght = 0;
byte[] memory;
int firstAdress = 0x00B00000;
int lastAdress = 0x00C00000;
listBox1.Items.Clear();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(PointerScan));
ProcessMemoryReader pReader = new ProcessMemoryReader();
System.Diagnostics.Process[] myProcesses = System.Diagnostics.Process.GetProcessesByName("KnightOnLine");
if (myProcesses.Length == 0)
{
MessageBox.Show("No KnightOnline process found!");
return;
}
pReader.ReadProcess = myProcesses[0];
pReader.OpenProcess();
//adres = possiblyHpAdresses[0];
//memory = pReader.ReadProcessMemory((IntPtr)adres, 4, out bytesReaded);
//temp = System.BitConverter.ToInt32(memory, 0);
http://pReader.CloseHandle();
for (i = 0; i < 30; i++)
{
if (possiblyHpAdresses[i] != 0)
{
memory = pReader.ReadProcessMemory((IntPtr)possiblyHpAdresses[i], 4, out bytesReaded);
if (HP == System.BitConverter.ToInt32(memory, 0))
{
possiblyHpAdresses2[Lenght] = possiblyHpAdresses[i];
listBox1.Items.Add("0x0" + possiblyHpAdresses2[Lenght].ToString("X"));
Lenght++;
}
}
}
if (uniqAdrees())
{
for (i = firstAdress; i <= lastAdress; i++) //scan for KO_CHAR
{
memory = pReader.ReadProcessMemory((IntPtr)i, 4, out bytesReaded);
if (System.BitConverter.ToInt32(memory, 0) == possiblyHpAdresses2[0] - 0x594)
{
MessageBox.Show("KO_CHAR Pointer is Found : 0x00"+i.ToString("X")+"\n\nPlease Select Your Settings.ini from your KOAB Folder","INFORMATION",MessageBoxButtons.OK,MessageBoxIcon.Information);
KO_CHAR = HexToDecimal("00" + i.ToString("X"));
break;
}
}
}
else
{
MessageBox.Show("KO_CHAR pointer hasn't found yet.\nChange Your Health Please Press the NEXT SCAN button","ERROR",MessageBoxButtons.OK,MessageBoxIcon.Error);
}
pReader.CloseHandle();
label5.Text = listBox1.Items.Count.ToString() + " Adresses Found";
}
public bool uniqAdrees()
{
if (listBox1.Items.Count==1)
{
return true;
}
else
{
return false;
}
}
}
}
Similar topics
» [REQUEST] DLL Auto-Inject Source
» [Source C++ 1.15] Uhack Source code
» C# read memory from pointer + CE
» Find Pattern Tutorial C++
» [ASM] Pointer Updater
» [Source C++ 1.15] Uhack Source code
» C# read memory from pointer + CE
» Find Pattern Tutorial C++
» [ASM] Pointer Updater
1 sayfadaki 1 sayfası
Bu forumun müsaadesi var:
Bu forumdaki mesajlara cevap veremezsiniz
Cuma Ağus. 29, 2014 8:33 am tarafından Hello EMO
» goldenchase.net maden yaparak para kazanma
Cuma Ağus. 29, 2014 8:18 am tarafından Hello EMO
» etichal hacker görsel egitim seti
Çarş. Ağus. 06, 2014 4:57 am tarafından Hello EMO
» KO TBL Source C#
Ptsi Ara. 09, 2013 6:36 am tarafından Hello EMO
» x86 Registers
C.tesi Ağus. 24, 2013 5:02 am tarafından Hello EMO
» [Tutorial] Pegando Address, Pointers de WYD
Çarş. Tem. 10, 2013 7:25 am tarafından Hello EMO
» [Tutorial] Pegando Address, Pointers de CS Metodo²
Çarş. Tem. 10, 2013 7:23 am tarafından Hello EMO
» [Tutorial] Aprendendo basico deASM OLLYDBG
Çarş. Tem. 10, 2013 7:22 am tarafından Hello EMO
» Basic C# DLL injector
Ptsi Tem. 08, 2013 7:48 am tarafından Hello EMO