Originally Posted by kleinernascher4
noch ne frage:
Ich hab Visual c++ 2010 express und bekomme dauernd folgende fehlermeldung:
1>------ Erstellen gestartet: Projekt: Assassin's Creed Hack, Konfiguration: Debug x64 ------
1> stdafx.cpp
1> Assassin's Creed Hack.cpp
1> AssemblyInfo.cpp
1> Generating Code...
1>Assassin's Creed Hack.obj : error LNK2028: unresolved token (0A000017) "extern "C" int __cdecl WriteProcessMemory(void *,void *,void const *,unsigned __int64,unsigned __int64 *)" (?WriteProcessMemory@@$$J0YAHPEAX0PEBX_KPEA_K@Z) referenced in function "private: void __clrcall AssassinsCreedHack::Form1::timer1_Tick(class System::Object ^,class System::EventArgs ^)" (?timer1_Tick@Form1@AssassinsCreedHack@@$$FAE$AAMX PE$AAVObject@System@@PE$AAVEventArgs@4@@Z)
1>Assassin's Creed Hack.obj : error LNK2028: unresolved token (0A000018) "extern "C" int __cdecl ReadProcessMemory(void *,void const *,void *,unsigned __int64,unsigned __int64 *)" (?ReadProcessMemory@@$$J0YAHPEAXPEBX0_KPEA_K@Z) referenced in function "private: void __clrcall AssassinsCreedHack::Form1::timer1_Tick(class System::Object ^,class System::EventArgs ^)" (?timer1_Tick@Form1@AssassinsCreedHack@@$$FAE$AAMX PE$AAVObject@System@@PE$AAVEventArgs@4@@Z)
1>Assassin's Creed Hack.obj : error LNK2028: unresolved token (0A00001E) "extern "C" void * __cdecl OpenProcess(unsigned long,int,unsigned long)" (?OpenProcess@@$$J0YAPEAXKHK@Z) referenced in function "private: void __clrcall AssassinsCreedHack::Form1::Form1_Load(class System::Object ^,class System::EventArgs ^)" (?Form1_Load@Form1@AssassinsCreedHack@@$$FAE$AAMXP E$AAVObject@System@@PE$AAVEventArgs@4@@Z)
1>Assassin's Creed Hack.obj : error LNK2028: unresolved token (0A00001F) "extern "C" unsigned long __cdecl GetWindowThreadProcessId(struct HWND__ *,unsigned long *)" (?GetWindowThreadProcessId@@$$J0YAKPEAUHWND__@@PEA K@Z) referenced in function "private: void __clrcall AssassinsCreedHack::Form1::Form1_Load(class System::Object ^,class System::EventArgs ^)" (?Form1_Load@Form1@AssassinsCreedHack@@$$FAE$AAMXP E$AAVObject@System@@PE$AAVEventArgs@4@@Z)
1>Assassin's Creed Hack.obj : error LNK2028: unresolved token (0A000021) "extern "C" int __cdecl MessageBoxA(struct HWND__ *,char const *,char const *,unsigned int)" (?MessageBoxA@@$$J0YAHPEAUHWND__@@PEBD1I@Z) referenced in function "private: void __clrcall AssassinsCreedHack::Form1::Form1_Load(class System::Object ^,class System::EventArgs ^)" (?Form1_Load@Form1@AssassinsCreedHack@@$$FAE$AAMXP E$AAVObject@System@@PE$AAVEventArgs@4@@Z)
1>Assassin's Creed Hack.obj : error LNK2028: unresolved token (0A000022) "extern "C" struct HWND__ * __cdecl FindWindowW(wchar_t const *,wchar_t const *)" (?FindWindowW@@$$J0YAPEAUHWND__@@PEB_W0@Z) referenced in function "private: void __clrcall AssassinsCreedHack::Form1::Form1_Load(class System::Object ^,class System::EventArgs ^)" (?Form1_Load@Form1@AssassinsCreedHack@@$$FAE$AAMXP E$AAVObject@System@@PE$AAVEventArgs@4@@Z)
1>Assassin's Creed Hack.obj : error LNK2019: unresolved external symbol "extern "C" void * __cdecl OpenProcess(unsigned long,int,unsigned long)" (?OpenProcess@@$$J0YAPEAXKHK@Z) referenced in function "private: void __clrcall AssassinsCreedHack::Form1::Form1_Load(class System::Object ^,class System::EventArgs ^)" (?Form1_Load@Form1@AssassinsCreedHack@@$$FAE$AAMXP E$AAVObject@System@@PE$AAVEventArgs@4@@Z)
1>Assassin's Creed Hack.obj : error LNK2019: unresolved external symbol "extern "C" unsigned long __cdecl GetWindowThreadProcessId(struct HWND__ *,unsigned long *)" (?GetWindowThreadProcessId@@$$J0YAKPEAUHWND__@@PEA K@Z) referenced in function "private: void __clrcall AssassinsCreedHack::Form1::Form1_Load(class System::Object ^,class System::EventArgs ^)" (?Form1_Load@Form1@AssassinsCreedHack@@$$FAE$AAMXP E$AAVObject@System@@PE$AAVEventArgs@4@@Z)
1>Assassin's Creed Hack.obj : error LNK2019: unresolved external symbol "extern "C" int __cdecl MessageBoxA(struct HWND__ *,char const *,char const *,unsigned int)" (?MessageBoxA@@$$J0YAHPEAUHWND__@@PEBD1I@Z) referenced in function "private: void __clrcall AssassinsCreedHack::Form1::Form1_Load(class System::Object ^,class System::EventArgs ^)" (?Form1_Load@Form1@AssassinsCreedHack@@$$FAE$AAMXP E$AAVObject@System@@PE$AAVEventArgs@4@@Z)
1>Assassin's Creed Hack.obj : error LNK2019: unresolved external symbol "extern "C" struct HWND__ * __cdecl FindWindowW(wchar_t const *,wchar_t const *)" (?FindWindowW@@$$J0YAPEAUHWND__@@PEB_W0@Z) referenced in function "private: void __clrcall AssassinsCreedHack::Form1::Form1_Load(class System::Object ^,class System::EventArgs ^)" (?Form1_Load@Form1@AssassinsCreedHack@@$$FAE$AAMXP E$AAVObject@System@@PE$AAVEventArgs@4@@Z)
1>Assassin's Creed Hack.obj : error LNK2019: unresolved external symbol "extern "C" int __cdecl WriteProcessMemory(void *,void *,void const *,unsigned __int64,unsigned __int64 *)" (?WriteProcessMemory@@$$J0YAHPEAX0PEBX_KPEA_K@Z) referenced in function "private: void __clrcall AssassinsCreedHack::Form1::timer1_Tick(class System::Object ^,class System::EventArgs ^)" (?timer1_Tick@Form1@AssassinsCreedHack@@$$FAE$AAMX PE$AAVObject@System@@PE$AAVEventArgs@4@@Z)
1>Assassin's Creed Hack.obj : error LNK2019: unresolved external symbol "extern "C" int __cdecl ReadProcessMemory(void *,void const *,void *,unsigned __int64,unsigned __int64 *)" (?ReadProcessMemory@@$$J0YAHPEAXPEBX0_KPEA_K@Z) referenced in function "private: void __clrcall AssassinsCreedHack::Form1::timer1_Tick(class System::Object ^,class System::EventArgs ^)" (?timer1_Tick@Form1@AssassinsCreedHack@@$$FAE$AAMX PE$AAVObject@System@@PE$AAVEventArgs@4@@Z)
1>C:\Users\Cybran\Documents\Visual Studio 2010\Projects\Assassin's Creed Hack\x64\Debug\Assassin's Creed Hack.exe : fatal error LNK1120: 12 unresolved externals
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========
was mach ich falsch?
hier der code von der Form1.h datei:
Code:
HWND window;
DWORD id;
HANDLE handle;
int Sync;
int MaxSync;
int MaxSyncEdit;
int Max = 2147483647;
short MaxMesser = 999;
DWORD Messer;
DWORD BaseSync = 0x199DA04;
DWORD OffSync[3] = {0x40,0x78,0x14};
DWORD BaseMaxSync = 0x199DA04;
DWORD OffMaxSync[3] = {0x40,0x78,0x18};
DWORD BaseMesser = 0x029C1554;
DWORD OffMesser[3] = {0x8C,0x58,0x158};
DWORD MesserFunc[6] = {0x00CCEC6B,0x00CCEC6C,0x00CCEC6D,0x00CCEC6E,0x00CCEC6F,0x00CCEC70};
DWORD LebenFunc[3] = {0x00D2560F,0x00D25610,0x00D25611};
DWORD NormalMax = 20;
BYTE nop = 0x90;
BYTE MesserOrg[6] = {0x89,0xAE,0x88,0x02,0x00,0x00};
BYTE LebenOrg[3] = {0x89,0x46,0x14};
#pragma once
namespace AssassinsCreedHack {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Zusammenfassung für Form1
/// </summary>
public ref class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
InitializeComponent();
//
//TODO: Konstruktorcode hier hinzufügen.
//
}
protected:
/// <summary>
/// Verwendete Ressourcen bereinigen.
/// </summary>
~Form1()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::Button^ button1;
protected:
private: System::Windows::Forms::Label^ label1;
private: System::Windows::Forms::Label^ label2;
private: System::Windows::Forms::Button^ button2;
private: System::Windows::Forms::GroupBox^ groupBox1;
private: System::Windows::Forms::CheckBox^ checkBox1;
private: System::Windows::Forms::TextBox^ textBox1;
private: System::Windows::Forms::Label^ label3;
private: System::Windows::Forms::Button^ button3;
private: System::Windows::Forms::Timer^ timer1;
private: System::Windows::Forms::Timer^ timer2;
private: System::Windows::Forms::Timer^ timer3;
private: System::Windows::Forms::Timer^ timer4;
private: System::Windows::Forms::GroupBox^ groupBox2;
private: System::Windows::Forms::Button^ button4;
private: System::Windows::Forms::Button^ button5;
private: System::Windows::Forms::Label^ label5;
private: System::Windows::Forms::Label^ label4;
private: System::Windows::Forms::Button^ button6;
private: System::ComponentModel::IContainer^ components;
private:
/// <summary>
/// Erforderliche Designervariable.
/// </summary>
#pragma region Windows Form Designer generated code
/// <summary>
/// Erforderliche Methode für die Designerunterstützung.
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
/// </summary>
void InitializeComponent(void)
{
this->components = (gcnew System::ComponentModel::Container());
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
this->button1 = (gcnew System::Windows::Forms::Button());
this->label1 = (gcnew System::Windows::Forms::Label());
this->label2 = (gcnew System::Windows::Forms::Label());
this->button2 = (gcnew System::Windows::Forms::Button());
this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
this->checkBox1 = (gcnew System::Windows::Forms::CheckBox());
this->textBox1 = (gcnew System::Windows::Forms::TextBox());
this->label3 = (gcnew System::Windows::Forms::Label());
this->button3 = (gcnew System::Windows::Forms::Button());
this->timer1 = (gcnew System::Windows::Forms::Timer(this->components));
this->timer2 = (gcnew System::Windows::Forms::Timer(this->components));
this->timer3 = (gcnew System::Windows::Forms::Timer(this->components));
this->timer4 = (gcnew System::Windows::Forms::Timer(this->components));
this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
this->label5 = (gcnew System::Windows::Forms::Label());
this->label4 = (gcnew System::Windows::Forms::Label());
this->button5 = (gcnew System::Windows::Forms::Button());
this->button4 = (gcnew System::Windows::Forms::Button());
this->button6 = (gcnew System::Windows::Forms::Button());
this->groupBox1->SuspendLayout();
this->groupBox2->SuspendLayout();
this->SuspendLayout();
//
// button1
//
this->button1->Location = System::Drawing::Point(12, 12);
this->button1->Name = L"button1";
this->button1->Size = System::Drawing::Size(103, 23);
this->button1->TabIndex = 0;
this->button1->Text = L"Unendlich Leben";
this->button1->UseVisualStyleBackColor = true;
this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
//
// label1
//
this->label1->AutoSize = true;
this->label1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label1->ForeColor = System::Drawing::Color::Red;
this->label1->Location = System::Drawing::Point(121, 17);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(30, 13);
this->label1->TabIndex = 1;
this->label1->Text = L"OFF";
//
// label2
//
this->label2->AutoSize = true;
this->label2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label2->ForeColor = System::Drawing::Color::Red;
this->label2->Location = System::Drawing::Point(121, 46);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(30, 13);
this->label2->TabIndex = 3;
this->label2->Text = L"OFF";
//
// button2
//
this->button2->Location = System::Drawing::Point(12, 41);
this->button2->Name = L"button2";
this->button2->Size = System::Drawing::Size(103, 23);
this->button2->TabIndex = 2;
this->button2->Text = L"Unendlich Messer";
this->button2->UseVisualStyleBackColor = true;
this->button2->Click += gcnew System::EventHandler(this, &Form1::button2_Click);
//
// groupBox1
//
this->groupBox1->Controls->Add(this->checkBox1);
this->groupBox1->Controls->Add(this->textBox1);
this->groupBox1->Controls->Add(this->label3);
this->groupBox1->Controls->Add(this->button3);
this->groupBox1->Location = System::Drawing::Point(12, 82);
this->groupBox1->Name = L"groupBox1";
this->groupBox1->Size = System::Drawing::Size(160, 100);
this->groupBox1->TabIndex = 4;
this->groupBox1->TabStop = false;
this->groupBox1->Text = L"Maximales Leben";
//
// checkBox1
//
this->checkBox1->AutoSize = true;
this->checkBox1->Location = System::Drawing::Point(10, 74);
this->checkBox1->Name = L"checkBox1";
this->checkBox1->Size = System::Drawing::Size(58, 17);
this->checkBox1->TabIndex = 8;
this->checkBox1->Text = L"Freeze";
this->checkBox1->UseVisualStyleBackColor = true;
//
// textBox1
//
this->textBox1->Location = System::Drawing::Point(10, 48);
this->textBox1->Name = L"textBox1";
this->textBox1->Size = System::Drawing::Size(100, 20);
this->textBox1->TabIndex = 7;
this->textBox1->Text = L"2147483647";
//
// label3
//
this->label3->AutoSize = true;
this->label3->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label3->ForeColor = System::Drawing::Color::Red;
this->label3->Location = System::Drawing::Point(119, 24);
this->label3->Name = L"label3";
this->label3->Size = System::Drawing::Size(30, 13);
this->label3->TabIndex = 6;
this->label3->Text = L"OFF";
//
// button3
//
this->button3->Location = System::Drawing::Point(10, 19);
this->button3->Name = L"button3";
this->button3->Size = System::Drawing::Size(103, 23);
this->button3->TabIndex = 5;
this->button3->Text = L"MaxLeben";
this->button3->UseVisualStyleBackColor = true;
this->button3->Click += gcnew System::EventHandler(this, &Form1::button3_Click);
//
// timer1
//
this->timer1->Tick += gcnew System::EventHandler(this, &Form1::timer1_Tick);
//
// timer2
//
this->timer2->Tick += gcnew System::EventHandler(this, &Form1::timer2_Tick);
//
// timer3
//
this->timer3->Tick += gcnew System::EventHandler(this, &Form1::timer3_Tick);
//
// timer4
//
this->timer4->Tick += gcnew System::EventHandler(this, &Form1::timer4_Tick);
//
// groupBox2
//
this->groupBox2->Controls->Add(this->button6);
this->groupBox2->Controls->Add(this->label5);
this->groupBox2->Controls->Add(this->label4);
this->groupBox2->Controls->Add(this->button5);
this->groupBox2->Controls->Add(this->button4);
this->groupBox2->Location = System::Drawing::Point(184, 7);
this->groupBox2->Name = L"groupBox2";
this->groupBox2->Size = System::Drawing::Size(125, 174);
this->groupBox2->TabIndex = 5;
this->groupBox2->TabStop = false;
this->groupBox2->Text = L"Beta-Hacks";
//
// label5
//
this->label5->AutoSize = true;
this->label5->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label5->ForeColor = System::Drawing::Color::Red;
this->label5->Location = System::Drawing::Point(50, 123);
this->label5->Name = L"label5";
this->label5->Size = System::Drawing::Size(30, 13);
this->label5->TabIndex = 3;
this->label5->Text = L"OFF";
//
// label4
//
this->label4->AutoSize = true;
this->label4->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label4->ForeColor = System::Drawing::Color::Red;
this->label4->Location = System::Drawing::Point(50, 44);
this->label4->Name = L"label4";
this->label4->Size = System::Drawing::Size(30, 13);
this->label4->TabIndex = 2;
this->label4->Text = L"OFF";
//
// button5
//
this->button5->Location = System::Drawing::Point(6, 145);
this->button5->Name = L"button5";
this->button5->Size = System::Drawing::Size(113, 23);
this->button5->TabIndex = 1;
this->button5->Text = L"Leben zu nop";
this->button5->UseVisualStyleBackColor = true;
this->button5->Click += gcnew System::EventHandler(this, &Form1::button5_Click);
//
// button4
//
this->button4->Location = System::Drawing::Point(6, 19);
this->button4->Name = L"button4";
this->button4->Size = System::Drawing::Size(113, 23);
this->button4->TabIndex = 0;
this->button4->Text = L"Messer zu nop";
this->button4->UseVisualStyleBackColor = true;
this->button4->Click += gcnew System::EventHandler(this, &Form1::button4_Click);
//
// button6
//
this->button6->Location = System::Drawing::Point(22, 74);
this->button6->Name = L"button6";
this->button6->Size = System::Drawing::Size(75, 23);
this->button6->TabIndex = 4;
this->button6->Text = L"Info...";
this->button6->UseVisualStyleBackColor = true;
this->button6->Click += gcnew System::EventHandler(this, &Form1::button6_Click);
//
// Form1
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->ClientSize = System::Drawing::Size(341, 191);
this->Controls->Add(this->groupBox2);
this->Controls->Add(this->groupBox1);
this->Controls->Add(this->label2);
this->Controls->Add(this->button2);
this->Controls->Add(this->label1);
this->Controls->Add(this->button1);
this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedDialog;
this->Icon = (cli::safe_cast<System::Drawing::Icon^ >(resources->GetObject(L"$this.Icon")));
this->MaximizeBox = false;
this->MinimizeBox = false;
this->Name = L"Form1";
this->StartPosition = System::Windows::Forms::FormStartPosition::CenterScreen;
this->Text = L"Assassin\'s Creed Hack";
this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
this->groupBox1->ResumeLayout(false);
this->groupBox1->PerformLayout();
this->groupBox2->ResumeLayout(false);
this->groupBox2->PerformLayout();
this->ResumeLayout(false);
this->PerformLayout();
}
#pragma endregion
private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {
window = FindWindow (0,L"Assassin's Creed");
if (!window)
{
MessageBoxA (0, "Zuerst Assassin's Creed starten!","Fehler",16);
exit(false);
}
else
{
GetWindowThreadProcessId (window,&id);
handle = OpenProcess (PROCESS_ALL_ACCESS, false, id);
timer4->Enabled = true;
}
}
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
if (label1->Text == "OFF")
{
timer1->Enabled=true;
label1->ForeColor=System::Drawing::Color::Green;
label1->Text="ON";
}
else
{
timer1->Enabled=false;
label1->ForeColor=System::Drawing::Color::Red;
label1->Text="OFF";
}
}
private: System::Void timer4_Tick(System::Object^ sender, System::EventArgs^ e) {
window = FindWindow (0, L"Assassin's Creed");
if (!window)
{
timer1->Enabled=false;
timer2->Enabled=false;
timer3->Enabled=false;
timer4->Enabled=false;
Enabled=false;
MessageBoxA (0, "Assassin's Creed wurde geschlossen!","Fehler",16);
exit(false);
}
}
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
if (label2->Text == "OFF")
{
timer2->Enabled=true;
label2->ForeColor=System::Drawing::Color::Green;
label2->Text="ON";
}
else
{
timer2->Enabled=false;
label2->ForeColor=System::Drawing::Color::Red;
label2->Text="OFF";
}
}
private: System::Void timer1_Tick(System::Object^ sender, System::EventArgs^ e) {
ReadProcessMemory(handle,(LPVOID)BaseSync,&Sync,sizeof(int),NULL);
Sync += OffSync[0];
ReadProcessMemory(handle,(LPVOID)Sync,&Sync,sizeof(int),NULL);
Sync += OffSync[1];
ReadProcessMemory(handle,(LPVOID)Sync,&Sync,sizeof(int),NULL);
Sync += OffSync[2];
WriteProcessMemory(handle,(LPVOID)Sync,&Max,sizeof(int),NULL);
}
private: System::Void timer2_Tick(System::Object^ sender, System::EventArgs^ e) {
ReadProcessMemory(handle,(LPVOID)BaseMesser,&Messer,sizeof(int),NULL);
ReadProcessMemory(handle,(LPVOID)Messer,&Messer,sizeof(int),NULL);
Messer += OffMesser[0];
ReadProcessMemory(handle,(LPVOID)Messer,&Messer,sizeof(int),NULL);
Messer += OffMesser[1];
ReadProcessMemory(handle,(LPVOID)Messer,&Messer,sizeof(int),NULL);
Messer += OffMesser[2];
WriteProcessMemory(handle,(LPVOID)Messer,&MaxMesser,sizeof(int),NULL);
}
private: System::Void button3_Click(System::Object^ sender, System::EventArgs^ e) {
try
{
MaxSyncEdit = System::Convert::ToInt32(textBox1->Text);
}
catch(...)
{
timer3->Enabled = false;
label3->ForeColor=System::Drawing::Color::Red;
label3->Text="OFF";
Enabled = false;
MessageBoxA (0, "Diese Zahl wird nicht akzeptiert.", "Fehler", 16);
Enabled = true;
}
ReadProcessMemory(handle,(LPVOID)BaseMaxSync,&MaxSync,sizeof(int),NULL);
MaxSync += OffMaxSync[0];
ReadProcessMemory(handle,(LPVOID)MaxSync,&MaxSync,sizeof(int),NULL);
MaxSync += OffMaxSync[1];
ReadProcessMemory(handle,(LPVOID)MaxSync,&MaxSync,sizeof(int),NULL);
MaxSync += OffMaxSync[2];
WriteProcessMemory(handle,(LPVOID)MaxSync,&MaxSyncEdit,sizeof(int),NULL);
if (checkBox1->Checked==true)
{
if (label3->Text == "OFF")
{
timer3->Enabled = true;
label3->Text ="ON";
label3->ForeColor=System::Drawing::Color::Green;
}
else
{
timer3->Enabled = false;
label3->Text ="OFF";
label3->ForeColor=System::Drawing::Color::Red;
}
}
}
private: System::Void timer3_Tick(System::Object^ sender, System::EventArgs^ e) {
try
{
MaxSyncEdit = System::Convert::ToInt32(textBox1->Text);
}
catch(...)
{
timer3->Enabled = false;
label3->ForeColor=System::Drawing::Color::Red;
label3->Text="OFF";
Enabled = false;
MessageBoxA (0, "Diese Zahl wird nicht akzeptiert.", "Fehler", 16);
Enabled = true;
}
ReadProcessMemory(handle,(LPVOID)BaseMaxSync,&MaxSync,sizeof(int),NULL);
MaxSync += OffMaxSync[0];
ReadProcessMemory(handle,(LPVOID)MaxSync,&MaxSync,sizeof(int),NULL);
MaxSync += OffMaxSync[1];
ReadProcessMemory(handle,(LPVOID)MaxSync,&MaxSync,sizeof(int),NULL);
MaxSync += OffMaxSync[2];
WriteProcessMemory(handle,(LPVOID)MaxSync,&MaxSyncEdit,sizeof(int),NULL);
}
private: System::Void button4_Click(System::Object^ sender, System::EventArgs^ e) {
if (label4->Text == "OFF")
{
WriteProcessMemory(handle,(LPVOID)MesserFunc[0],&nop,sizeof(BYTE),NULL);
WriteProcessMemory(handle,(LPVOID)MesserFunc[1],&nop,sizeof(BYTE),NULL);
WriteProcessMemory(handle,(LPVOID)MesserFunc[2],&nop,sizeof(BYTE),NULL);
WriteProcessMemory(handle,(LPVOID)MesserFunc[3],&nop,sizeof(BYTE),NULL);
WriteProcessMemory(handle,(LPVOID)MesserFunc[4],&nop,sizeof(BYTE),NULL);
WriteProcessMemory(handle,(LPVOID)MesserFunc[5],&nop,sizeof(BYTE),NULL);
ReadProcessMemory(handle,(LPVOID)BaseMesser,&Messer,sizeof(int),NULL);
ReadProcessMemory(handle,(LPVOID)Messer,&Messer,sizeof(int),NULL);
Messer += OffMesser[0];
ReadProcessMemory(handle,(LPVOID)Messer,&Messer,sizeof(int),NULL);
Messer += OffMesser[1];
ReadProcessMemory(handle,(LPVOID)Messer,&Messer,sizeof(int),NULL);
Messer += OffMesser[2];
WriteProcessMemory(handle,(LPVOID)Messer,&MaxMesser,sizeof(int),NULL);
label4->ForeColor=System::Drawing::Color::Green;
label4->Text="ON";
}
else
{
WriteProcessMemory(handle,(LPVOID)MesserFunc[0],&MesserOrg[0],sizeof(BYTE),NULL);
WriteProcessMemory(handle,(LPVOID)MesserFunc[1],&MesserOrg[1],sizeof(BYTE),NULL);
WriteProcessMemory(handle,(LPVOID)MesserFunc[2],&MesserOrg[2],sizeof(BYTE),NULL);
WriteProcessMemory(handle,(LPVOID)MesserFunc[3],&MesserOrg[3],sizeof(BYTE),NULL);
WriteProcessMemory(handle,(LPVOID)MesserFunc[4],&MesserOrg[4],sizeof(BYTE),NULL);
WriteProcessMemory(handle,(LPVOID)MesserFunc[5],&MesserOrg[5],sizeof(BYTE),NULL);
label4->ForeColor=System::Drawing::Color::Red;
label4->Text="OFF";
}
}
private: System::Void button5_Click(System::Object^ sender, System::EventArgs^ e) {
if (label5->Text == "OFF")
{
WriteProcessMemory(handle,(LPVOID)LebenFunc[0],&nop,sizeof(BYTE),NULL);
WriteProcessMemory(handle,(LPVOID)LebenFunc[1],&nop,sizeof(BYTE),NULL);
WriteProcessMemory(handle,(LPVOID)LebenFunc[2],&nop,sizeof(BYTE),NULL);
ReadProcessMemory(handle,(LPVOID)BaseSync,&Sync,sizeof(int),NULL);
Sync += OffSync[0];
ReadProcessMemory(handle,(LPVOID)Sync,&Sync,sizeof(int),NULL);
Sync += OffSync[1];
ReadProcessMemory(handle,(LPVOID)Sync,&Sync,sizeof(int),NULL);
Sync += OffSync[2];
WriteProcessMemory(handle,(LPVOID)Sync,&Max,sizeof(int),NULL);
ReadProcessMemory(handle,(LPVOID)BaseMaxSync,&MaxSync,sizeof(int),NULL);
MaxSync += OffMaxSync[0];
ReadProcessMemory(handle,(LPVOID)MaxSync,&MaxSync,sizeof(int),NULL);
MaxSync += OffMaxSync[1];
ReadProcessMemory(handle,(LPVOID)MaxSync,&MaxSync,sizeof(int),NULL);
MaxSync += OffMaxSync[2];
WriteProcessMemory(handle,(LPVOID)MaxSync,&Max,sizeof(int),NULL);
label5->ForeColor=System::Drawing::Color::Green;
label5->Text="ON";
}
else
{
WriteProcessMemory(handle,(LPVOID)LebenFunc[0],&LebenOrg[0],sizeof(BYTE),NULL);
WriteProcessMemory(handle,(LPVOID)LebenFunc[1],&LebenOrg[1],sizeof(BYTE),NULL);
WriteProcessMemory(handle,(LPVOID)LebenFunc[2],&LebenOrg[2],sizeof(BYTE),NULL);
ReadProcessMemory(handle,(LPVOID)BaseSync,&Sync,sizeof(int),NULL);
Sync += OffSync[0];
ReadProcessMemory(handle,(LPVOID)Sync,&Sync,sizeof(int),NULL);
Sync += OffSync[1];
ReadProcessMemory(handle,(LPVOID)Sync,&Sync,sizeof(int),NULL);
Sync += OffSync[2];
WriteProcessMemory(handle,(LPVOID)Sync,&NormalMax,sizeof(int),NULL);
ReadProcessMemory(handle,(LPVOID)BaseMaxSync,&MaxSync,sizeof(int),NULL);
MaxSync += OffMaxSync[0];
ReadProcessMemory(handle,(LPVOID)MaxSync,&MaxSync,sizeof(int),NULL);
MaxSync += OffMaxSync[1];
ReadProcessMemory(handle,(LPVOID)MaxSync,&MaxSync,sizeof(int),NULL);
MaxSync += OffMaxSync[2];
WriteProcessMemory(handle,(LPVOID)MaxSync,&NormalMax,sizeof(int),NULL);
label5->ForeColor=System::Drawing::Color::Red;
label5->Text="OFF";
}
}
private: System::Void button6_Click(System::Object^ sender, System::EventArgs^ e) {
MessageBoxA (0, "Die BETA Hacks verändern Funktionen im RAM, sie sind mit Vorsicht zu genießen! Allerdings stoppen sie jegliche Änderung der Variable, was es möglich macht aus beliebig großer Höhe zu fallen ohne Schaden zu nehmen! \nHack by Simon!","Info...",64);
}
};
};
und hier von der .cpp:
Code:
// Assassin's Creed Hack.cpp: Hauptprojektdatei.
#include "stdafx.h"
#include "Form1.h"
using namespace AssassinsCreedHack;
[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
// Aktivieren visueller Effekte von Windows XP, bevor Steuerelemente erstellt werden
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
// Hauptfenster erstellen und ausführen
Application::Run(gcnew Form1());
return 0;
}
|