This repository has been archived by the owner on Feb 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Hack.cs
613 lines (555 loc) · 24.4 KB
/
Hack.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace QWORD_LITE
{
public partial class Hack : MetroFramework.Forms.MetroForm
{
public static int BaseAddress = global.processSession.ReadInt32((IntPtr)global.clientModule.moduleAddress + signatures.dwLocalPlayer);
//
//Form Sabitleri
//
public static string proccess = "csgo";
public static VAMemory vam = new VAMemory(proccess);
[DllImport("user32", CharSet = CharSet.Ansi, SetLastError = true)]
public static extern int GetAsyncKeyState(int vKey);
public static int Client;
public static int Engine;
Thread thread_wall = new Thread(new ThreadStart(dwWallhack));
Thread thread_bhop = new Thread(new ThreadStart(dwBunnyHop));
Thread thread_tbot = new Thread(new ThreadStart(dwTriggerBot));
Thread thread_aflash = new Thread(new ThreadStart(dwAntiFlash));
public class HackStats
{
public static bool wallhack_use = false;
public static bool bunnyhop_use = false;
public static bool triggetbot_use = false;
public static bool antiflash_use = false;
public static bool fov_use = false;
public static bool gui = false;
}
public struct GlowStruct
{
public float r;
public float g;
public float b;
public float a;
public bool rwo;
public bool rwuo;
}
static bool GetModuleAddress()
{
try
{
Process[] p = Process.GetProcessesByName(proccess);
if (p.Length > 0)
{
foreach (ProcessModule m in p[0].Modules)
{
if (m.ModuleName == "client.dll")
{
Client = (int)m.BaseAddress;
return true;
}
if (m.ModuleName == "engine.dll")
{
Engine = (int)m.BaseAddress;
}
}
return true;
}
else
{
return false;
}
}
catch (Exception ex)
{
Console.WriteLine(ex);
return false;
}
}
//
//Initialize Components
//
public Hack()
{
InitializeComponent();
}
//
//Form Load
//
private void Hack_Load(object sender, EventArgs e)
{
//Language Setting
//Hile Kismi
HackTab.Text = "| HACK |";
WallHackLabel.Text = "WallHack =>";
BunnyLabel.Text = "BunnyHop =>";
TriggerLabel.Text = "TriggerBot =>";
information.Text = "F1 => Hide Trainer\n-------------------------\nF8 => Show Trainer\nF9 => Exit Cheat";
//Profil Bilgi Kismi
InfoProfil.Text = "| Profile Information |";
NotAvaliable.Text = "Not Avaliable In LITE / LITE+";
NotAvaliable.Location = new Point(90, 114);
//Hakkinda Kismi
About.Text = "| About |";
CreditsLabel.Text = " QWORD HACK\n BY\n H4Space TEAM";
//Language Ending
thread_wall.Start();
thread_bhop.Start();
thread_tbot.Start();
thread_aflash.Start();
}
//
//Dil Secenekleri
//
private void TR_Click(object sender, EventArgs e)
{
//Hile Kismi
HackTab.Text = "| Hileler |";
WallHackLabel.Text = "Duvardan Görüş =>";
BunnyLabel.Text = "Bunny Hop Hilesi =>";
TriggerLabel.Text = "Otomatik Atış =>";
information.Text = "F1 => Menüyü Gizle\n-------------------------\nF8 => Menüyü Göster\nF9 => Hileden Çık";
//Profil Bilgi Kismi
InfoProfil.Text = "| Profil Bilgileri |";
NotAvaliable.Text = "QWORD LITE / LITE+ Sürümlerinde Kapalı!";
NotAvaliable.Location = new Point(35, 114);
//Hakkinda Kismi
About.Text = "| Hakkında |";
CreditsLabel.Text = " QWORD HACK\n BY\nH4Space Takımı";
}
private void ENG_Click(object sender, EventArgs e)
{
//Hile Kismi
HackTab.Text = "| HACK |";
WallHackLabel.Text = "WallHack =>";
BunnyLabel.Text = "BunnyHop =>";
TriggerLabel.Text = "TriggerBot =>";
information.Text = "F1 => Hide Trainer\n-------------------------\nF8 => Show Trainer\nF9 => Exit Cheat";
//Profil Bilgi Kismi
InfoProfil.Text = "| Profile Information |";
NotAvaliable.Text = "Not Avaliable In LITE / LITE+";
NotAvaliable.Location = new Point(90, 114);
//Hakkinda Kismi
About.Text = "| About |";
CreditsLabel.Text = " QWORD HACK\n BY\n H4Space TEAM";
}
//
//HACKS
//
public static void dwWallhack()
{
if (GetModuleAddress())
{
while (true)
{
if (HackStats.wallhack_use)
{
GlowStruct Enemy = new GlowStruct()
{
r = 1,
g = 0,
b = 0,
a = 1f,
rwo = true,
rwuo = true
};
GlowStruct Team = new GlowStruct()
{
r = 1,
g = 1,
b = 1,
a = 0.800f,
rwo = true,
rwuo = true
};
int address;
int i = 1;
do
{
address = Client + signatures.dwLocalPlayer;
int Player = vam.ReadInt32((IntPtr)address);
address = Player + netvars.m_iTeamNum;
int MyTeam = vam.ReadInt32((IntPtr)address);
address = Client + signatures.dwEntityList + (i - 1) * 0x10;
int EntityList = vam.ReadInt32((IntPtr)address);
address = EntityList + netvars.m_iTeamNum;
int HisTeam = vam.ReadInt32((IntPtr)address);
address = EntityList + netvars.m_iDormant;
if (!vam.ReadBoolean((IntPtr)address))
{
address = EntityList + netvars.m_iGlowIndex;
int GlowIndex = vam.ReadInt32((IntPtr)address);
if (MyTeam == HisTeam)
{
address = Client + signatures.dwGlowObject;
int GlowObject = vam.ReadInt32((IntPtr)address);
int calculation = GlowIndex * 0x38 + 0x4;
int current = GlowObject + calculation;
vam.WriteFloat((IntPtr)current, Team.r);
calculation = GlowIndex * 0x38 + 0x8;
current = GlowObject + calculation;
vam.WriteFloat((IntPtr)current, Team.g);
calculation = GlowIndex * 0x38 + 0xC;
current = GlowObject + calculation;
vam.WriteFloat((IntPtr)current, Team.b);
calculation = GlowIndex * 0x38 + 0x10;
current = GlowObject + calculation;
vam.WriteFloat((IntPtr)current, Team.a);
calculation = GlowIndex * 0x38 + 0x24;
current = GlowObject + calculation;
vam.WriteBoolean((IntPtr)current, Team.rwo);
calculation = GlowIndex * 0x38 + 0x25;
current = GlowObject + calculation;
vam.WriteBoolean((IntPtr)current, Team.rwuo);
}
else
{
address = Client + signatures.dwGlowObject;
int GlowObject = vam.ReadInt32((IntPtr)address);
int calculation = GlowIndex * 0x38 + 0x4;
int current = GlowObject + calculation;
vam.WriteFloat((IntPtr)current, Enemy.r);
calculation = GlowIndex * 0x38 + 0x8;
current = GlowObject + calculation;
vam.WriteFloat((IntPtr)current, Enemy.g);
calculation = GlowIndex * 0x38 + 0xC;
current = GlowObject + calculation;
vam.WriteFloat((IntPtr)current, Enemy.b);
calculation = GlowIndex * 0x38 + 0x10;
current = GlowObject + calculation;
vam.WriteFloat((IntPtr)current, Enemy.a);
calculation = GlowIndex * 0x38 + 0x24;
current = GlowObject + calculation;
vam.WriteBoolean((IntPtr)current, Enemy.rwo);
calculation = GlowIndex * 0x38 + 0x25;
current = GlowObject + calculation;
vam.WriteBoolean((IntPtr)current, Enemy.rwuo);
}
}
i++;
} while (i < 65);
Thread.Sleep(10);
}
}
}
}
public static void dwBunnyHop()
{
int aLocalPlayer = 0xAAFFFC;
if (GetModuleAddress())
{
int fJump = Client + signatures.dwForceJump;
aLocalPlayer = Client + signatures.dwLocalPlayer;
int LocalPlayer = vam.ReadInt32((IntPtr)aLocalPlayer);
int aFlags = LocalPlayer + netvars.m_fFlags;
while (true)
{
if (HackStats.bunnyhop_use)
{
int spacekey = GetAsyncKeyState(32);
if (spacekey <= -32768)
{
if (vam.ReadInt32((IntPtr)aFlags) == 257)
{
vam.WriteInt32((IntPtr)fJump, 5);
Thread.Sleep(10);
vam.WriteInt32((IntPtr)fJump, 4);
}
}
}
Thread.Sleep(1);
}
}
}
public static void dwTriggerBot()
{
if (GetModuleAddress())
{
int fAttack = Client + signatures.dwForceAttack;
Random random = new Random();
while (true)
{
if (HackStats.triggetbot_use)
{
int address = Client + signatures.dwLocalPlayer;
int LocalPlayer = vam.ReadInt32((IntPtr)address);
address = LocalPlayer + netvars.m_iTeamNum;
int MyTeam = vam.ReadInt32((IntPtr)address);
address = LocalPlayer + netvars.m_iCrosshairId;
int PlayerInCross = vam.ReadInt32((IntPtr)address);
if (PlayerInCross > 0 && PlayerInCross < 65)
{
address = Client + signatures.dwEntityList + (PlayerInCross - 1) * 0x0000010;
int PtrToPIC = vam.ReadInt32((IntPtr)address);
address = PtrToPIC + netvars.m_iHealth;
int PICHealth = vam.ReadInt32((IntPtr)address);
address = PtrToPIC + netvars.m_iTeamNum;
int PICTeam = vam.ReadInt32((IntPtr)address);
Debug.Print(PICHealth.ToString());
if ((PICTeam != MyTeam) && (PICTeam > 1) && (PICHealth > 0))
{
for (int i = 0; i < 2; i++)
{
vam.WriteInt32((IntPtr)fAttack, 1);
Thread.Sleep(20);
vam.WriteInt32((IntPtr)fAttack, 4);
}
}
}
Thread.Sleep(10);
}
}
}
}
public static void CrossHair()
{
int screen_width = 1400;
int screen_height = 900;
string anan = @"C:\resimler\Crosshair.png";
// Your image..
var crosshair_bitmap = (Bitmap)Image.FromFile(anan);
Graphics g = Graphics.FromHwnd(Process.GetProcesses("csgo")[0].MainWindowHandle);
g.DrawImage(crosshair_bitmap, new Point((screen_width - crosshair_bitmap.Width) / 2, (screen_height - crosshair_bitmap.Height) / 2)); ;
}
public static void dwAntiFlash()
{
if (GetModuleAddress())
{
int fFlashAlpha = signatures.dwLocalPlayer + netvars.m_flFlashMaxAlpha;
while (true)
{
if (HackStats.antiflash_use)
{
vam.WriteFloat((IntPtr)fFlashAlpha, 0);
Thread.Sleep(1);
}
}
}
}
//
//Random Metin Olusturucu
//
public static string RandomString(int length)
{
StringBuilder builder = new StringBuilder();
Random random = new Random();
string input = ">£#$½{[]}|!'^+%&/()=?\\_}{][ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
var chars = Enumerable.Range(0, length).Select(x => input[random.Next(0, input.Length)]);
return new string(chars.ToArray());
}
//
//Timers
//
private void WallHack_Tick(object sender, EventArgs e)
{
int keyState_0 = GetAsyncKeyState(112);
int keyState_1 = GetAsyncKeyState(119);
int keyState_2 = GetAsyncKeyState(113);
int keyState_3 = GetAsyncKeyState(120);
int keyState_4 = GetAsyncKeyState(45);
int keyState_5 = GetAsyncKeyState(34);
if (keyState_0 < -32765)
{
Console.Beep();
this.Hide();
}
else if (keyState_1 < -32765)
{
Console.Beep();
this.Show();
}
else if (keyState_3 < -32765)
{
Console.Beep();
Environment.Exit(0);
}
}
private void TitleChanger_Tick(object sender, EventArgs e)
{
this.Text = "QWORD LITE+ " + RandomString(30);
}
private void WallHackToggle_CheckedChanged(object sender, EventArgs e)
{
if (!HackStats.wallhack_use)
{
HackStats.wallhack_use = true;
Console.Beep();
}
else
{
HackStats.wallhack_use = false;
Console.Beep();
}
}
private void BunnyToggle_CheckedChanged(object sender, EventArgs e)
{
if (!HackStats.bunnyhop_use)
{
HackStats.bunnyhop_use = true;
Console.Beep();
}
else
{
HackStats.bunnyhop_use = false;
Console.Beep();
}
}
private void TriggerToggle_CheckedChanged(object sender, EventArgs e)
{
if (!HackStats.triggetbot_use)
{
HackStats.triggetbot_use = true;
Console.Beep();
}
else
{
HackStats.triggetbot_use = false;
Console.Beep();
}
}
private void BunnyHop_Tick(object sender, EventArgs e)
{
}
private void HackTab_Click(object sender, EventArgs e)
{
}
public static class netvars
{
public const Int32 m_ArmorValue = 0xB238;
public const Int32 m_Collision = 0x318;
public const Int32 m_CollisionGroup = 0x470;
public const Int32 m_Local = 0x2FAC;
public const Int32 m_MoveType = 0x258;
public const Int32 m_OriginalOwnerXuidHigh = 0x316C;
public const Int32 m_OriginalOwnerXuidLow = 0x3168;
public const Int32 m_aimPunchAngle = 0x301C;
public const Int32 m_aimPunchAngleVel = 0x3028;
public const Int32 m_bGunGameImmunity = 0x3894;
public const Int32 m_bHasDefuser = 0xB248;
public const Int32 m_bHasHelmet = 0xB22C;
public const Int32 m_bInReload = 0x3245;
public const Int32 m_bIsDefusing = 0x3888;
public const Int32 m_bIsScoped = 0x387E;
public const Int32 m_bSpotted = 0x939;
public const Int32 m_bSpottedByMask = 0x97C;
public const Int32 m_dwBoneMatrix = 0x2698;
public const Int32 m_fAccuracyPenalty = 0x32B0;
public const Int32 m_fFlags = 0x100;
public const Int32 m_flFallbackWear = 0x3178;
public const Int32 m_flFlashDuration = 0xA2F8;
public const Int32 m_flFlashMaxAlpha = 0xA2F4;
public const Int32 m_flNextPrimaryAttack = 0x31D8;
public const Int32 m_hActiveWeapon = 0x2EE8;
public const Int32 m_hMyWeapons = 0x2DE8;
public const Int32 m_hObserverTarget = 0x3360;
public const Int32 m_hOwner = 0x29BC;
public const Int32 m_hOwnerEntity = 0x148;
public const Int32 m_iAccountID = 0x2FA8;
public const Int32 m_iClip1 = 0x3204;
public const Int32 m_iCompetitiveRanking = 0x1A44;
public const Int32 m_iCompetitiveWins = 0x1B48;
public const Int32 m_iCrosshairId = 0xB2A4;
public const Int32 m_iEntityQuality = 0x2F8C;
public const Int32 m_iFOVStart = 0x31D8;
public const Int32 m_iGlowIndex = 0xA310;
public const Int32 m_iHealth = 0xFC;
public const Int32 m_iItemDefinitionIndex = 0x2F88;
public const Int32 m_iItemIDHigh = 0x2FA0;
public const Int32 m_iObserverMode = 0x334C;
public const Int32 m_iShotsFired = 0xA2B0;
public const Int32 m_iState = 0x31F8;
public const Int32 m_iTeamNum = 0xF0;
public const Int32 m_lifeState = 0x25B;
public const Int32 m_nFallbackPaintKit = 0x3170;
public const Int32 m_nFallbackSeed = 0x3174;
public const Int32 m_nFallbackStatTrak = 0x317C;
public const Int32 m_nForceBone = 0x267C;
public const Int32 m_nTickBase = 0x3404;
public const Int32 m_rgflCoordinateFrame = 0x440;
public const Int32 m_szCustomName = 0x301C;
public const Int32 m_szLastPlaceName = 0x3588;
public const Int32 m_vecOrigin = 0x134;
public const Int32 m_vecVelocity = 0x110;
public const Int32 m_vecViewOffset = 0x104;
public const Int32 m_viewPunchAngle = 0x3010;
public const Int32 m_iDormant = 0xE9;
}
public static class signatures
{
public const Int32 dwClientState = 0x57B7EC;
public const Int32 dwClientState_GetLocalPlayer = 0x180;
public const Int32 dwClientState_Map = 0x28C;
public const Int32 dwClientState_MapDirectory = 0x188;
public const Int32 dwClientState_MaxPlayer = 0x310;
public const Int32 dwClientState_PlayerInfo = 0x5240;
public const Int32 dwClientState_State = 0x108;
public const Int32 dwClientState_ViewAngles = 0x4D10;
public const Int32 dwClientState_IsHLTV = 0x4CC8;
public const Int32 dwEntityList = 0x4A78BA4;
public const Int32 dwForceAttack = 0x2EBAF64;
public const Int32 dwForceAttack2 = 0x2EBAF70;
public const Int32 dwForceBackward = 0x2EBAF4C;
public const Int32 dwForceForward = 0x2EBAF40;
public const Int32 dwForceJump = 0x4F0FE0C;
public const Int32 dwForceLeft = 0x2EBAF28;
public const Int32 dwForceRight = 0x2EBAF34;
public const Int32 dwGameDir = 0x619068;
public const Int32 dwGameRulesProxy = 0x4F7A154;
public const Int32 dwGetAllClasses = 0x4F7A224;
public const Int32 dwGlobalVars = 0x57B4F0;
public const Int32 dwGlowObjectManager = 0x4F959F0;
public const Int32 dwInput = 0x4EC3768;
public const Int32 dwInterfaceLinkList = 0x6DA8F4;
public const Int32 dwLocalPlayer = 0xA9BDDC;
public const Int32 dwMouseEnable = 0xAA1640;
public const Int32 dwMouseEnablePtr = 0xAA1610;
public const Int32 dwPlayerResource = 0x2EB92AC;
public const Int32 dwRadarBase = 0x4EAD89C;
public const Int32 dwSensitivity = 0xAA14DC;
public const Int32 dwSensitivityPtr = 0xAA14B0;
public const Int32 dwViewMatrix = 0x4A6A614;
public const Int32 dwWeaponTable = 0x4EC4364;
public const Int32 dwWeaponTableIndex = 0x31FC;
public const Int32 dwYawPtr = 0xAA12A0;
public const Int32 dwZoomSensitivityRatioPtr = 0xAA6308;
public const Int32 dwbSendPackets = 0xCCD5A;
public const Int32 dwppDirect3DDevice9 = 0xA1F40;
public const Int32 dwSetClanTag = 0x869D0;
public const Int32 m_pStudioHdr = 0x293C;
public const Int32 dwGlowObject = 0x4F959F0;
}
private void anan_Tick(object sender, EventArgs e)
{
if (LocalPlayerGS.flashMaxAlpha == 255)
{
LocalPlayerGS.flashMaxAlpha = 0;
}
if (!antiFlashH.Checked)
{
LocalPlayerGS.flashMaxAlpha = 255;
}
}
private void antiFlashH_CheckedChanged(object sender, EventArgs e)
{
Console.Beep();
}
private void ClanTagger_Tick(object sender, EventArgs e)
{
}
private void TriggerBot_Tick(object sender, EventArgs e)
{
}
}
}