Skip to content

Commit

Permalink
Merge pull request #41 from ByteCorum/WIP
Browse files Browse the repository at this point in the history
security update
  • Loading branch information
ByteCorum authored May 2, 2024
2 parents 8bb6f6e + 68e4f3c commit b7f35ac
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 56 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
with:
name: Compiled-Binaries
path: |
\built\DragonBurn.exe
\DragonBurn\built\DragonBurn.exe
78 changes: 39 additions & 39 deletions DragonBurn/Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ bool CGame::InitAddress()
this->Address.LocalController = GetClientDLLAddress() + Offset::LocalPlayerController;
this->Address.LocalPawn = GetClientDLLAddress() + Offset::LocalPlayerPawn;
this->Address.ServerPawn = GetServerDLLAddress() + Offset::LocalPlayerPawn;
this->Address.ForceJump = GetClientDLLAddress() + Offset::ForceJump;
this->Address.ForceCrouch = GetClientDLLAddress() + Offset::ForceCrouch;
this->Address.ForceForward = GetClientDLLAddress() + Offset::ForceForward;
this->Address.ForceLeft = GetClientDLLAddress() + Offset::ForceLeft;
this->Address.ForceRight = GetClientDLLAddress() + Offset::ForceRight;
//this->Address.ForceJump = GetClientDLLAddress() + Offset::ForceJump;
//this->Address.ForceCrouch = GetClientDLLAddress() + Offset::ForceCrouch;
//this->Address.ForceForward = GetClientDLLAddress() + Offset::ForceForward;
//this->Address.ForceLeft = GetClientDLLAddress() + Offset::ForceLeft;
//this->Address.ForceRight = GetClientDLLAddress() + Offset::ForceRight;
this->Address.GlobalVars = GetClientDLLAddress() + Offset::GlobalVars;

return this->Address.ClientDLL != 0;
Expand Down Expand Up @@ -85,37 +85,37 @@ bool CGame::UpdateEntityListEntry()
return this->Address.EntityListEntry != 0;
}

bool CGame::GetForceJump(int& value)
{
if (!ProcessMgr.ReadMemory<int>(this->Address.ForceJump, value))
return false;

return true;
}
bool CGame::GetForceCrouch(int& value)
{
if (!ProcessMgr.ReadMemory<int>(this->Address.ForceCrouch, value))
return false;

return true;
}

bool CGame::GetForceMove(int MovingType, int& Value)
{
switch (MovingType)
{
case 0:
if (!ProcessMgr.ReadMemory<int>(this->Address.ForceForward, Value)) return false;
break;
case 1:
if (!ProcessMgr.ReadMemory<int>(this->Address.ForceLeft, Value)) return false;
break;
case 2:
if (!ProcessMgr.ReadMemory<int>(this->Address.ForceRight, Value)) return false;
break;
default:
return false;
break;
}
return true;
}
//bool CGame::GetForceJump(int& value)
//{
// if (!ProcessMgr.ReadMemory<int>(this->Address.ForceJump, value))
// return false;
//
// return true;
//}
//bool CGame::GetForceCrouch(int& value)
//{
// if (!ProcessMgr.ReadMemory<int>(this->Address.ForceCrouch, value))
// return false;
//
// return true;
//}
//
//bool CGame::GetForceMove(int MovingType, int& Value)
//{
// switch (MovingType)
// {
// case 0:
// if (!ProcessMgr.ReadMemory<int>(this->Address.ForceForward, Value)) return false;
// break;
// case 1:
// if (!ProcessMgr.ReadMemory<int>(this->Address.ForceLeft, Value)) return false;
// break;
// case 2:
// if (!ProcessMgr.ReadMemory<int>(this->Address.ForceRight, Value)) return false;
// break;
// default:
// return false;
// break;
// }
// return true;
//}
16 changes: 8 additions & 8 deletions DragonBurn/Game.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ class CGame
private:
struct
{
DWORD64 ForceJump;
DWORD64 ForceCrouch;
DWORD64 ForceForward;
DWORD64 ForceLeft;
DWORD64 ForceRight;
//DWORD64 ForceJump;
//DWORD64 ForceCrouch;
//DWORD64 ForceForward;
//DWORD64 ForceLeft;
//DWORD64 ForceRight;

DWORD64 ServerDLL;
DWORD64 ClientDLL;
Expand Down Expand Up @@ -45,9 +45,9 @@ class CGame
DWORD64 GetGlobalVarsAddress();

bool UpdateEntityListEntry();
bool GetForceJump(int& Value);
bool GetForceCrouch(int& Value);
bool GetForceMove(int MovingType, int& Value);
//bool GetForceJump(int& Value);
//bool GetForceCrouch(int& Value);
//bool GetForceMove(int MovingType, int& Value);
};

inline CGame gGame;
10 changes: 5 additions & 5 deletions DragonBurn/Offsets.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

namespace Offset
{
inline DWORD ForceJump = 0x1736920;
inline DWORD ForceCrouch = 0x17369B0;
inline DWORD ForceForward = 0x1736650;
inline DWORD ForceLeft = 0x1736770;
inline DWORD ForceRight = 0x1736800;
//inline DWORD ForceJump = 0x1736920;
//inline DWORD ForceCrouch = 0x17369B0;
//inline DWORD ForceForward = 0x1736650;
//inline DWORD ForceLeft = 0x1736770;
//inline DWORD ForceRight = 0x1736800;

inline DWORD EntityList;
inline DWORD Matrix;
Expand Down
5 changes: 2 additions & 3 deletions DragonBurn/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,20 +138,19 @@ void Cheat()

cout << endl;
SetConsoleTextAttribute(hConsole, 14);
cout << "=======[ Offset List ]=======" << endl;
cout << "======={ Offset List }=======" << endl;
cout << setw(23) << left << "EntityList:" << setiosflags(ios::uppercase) << hex << Offset::EntityList << endl;
cout << setw(23) << left << "Matrix:" << setiosflags(ios::uppercase) << hex << Offset::Matrix << endl;
cout << setw(23) << left << "LocalPlayerController:" << setiosflags(ios::uppercase) << hex << Offset::LocalPlayerController << endl;
cout << setw(23) << left << "ViewAngles:" << setiosflags(ios::uppercase) << hex << Offset::ViewAngle << endl;
cout << setw(23) << left << "LocalPlayerPawn:" << setiosflags(ios::uppercase) << hex << Offset::LocalPlayerPawn << endl;
cout << setw(23) << left << "PlantedC4:" << setiosflags(ios::uppercase) << hex << Offset::PlantedC4 << endl;
cout << setw(23) << left << "ForceJump:" << setiosflags(ios::uppercase) << hex << Offset::ForceJump << endl;
cout << setw(23) << left << "Sensitivity:" << setiosflags(ios::uppercase) << hex << Offset::Sensitivity << endl;
//cout << setw(23) << left << "ForceJump:" << setiosflags(ios::uppercase) << hex << Offset::ForceJump << endl;
//cout << setw(23) << left << "ForceCrouch:" << setiosflags(ios::uppercase) << hex << Offset::ForceCrouch << endl;
//cout << setw(23) << left << "ForceForward:" << setiosflags(ios::uppercase) << hex << Offset::ForceForward << endl;
//cout << setw(23) << left << "ForceLeft:" << setiosflags(ios::uppercase) << hex << Offset::ForceLeft << endl;
//cout << setw(23) << left << "ForceRight:" << setiosflags(ios::uppercase) << hex << Offset::ForceRight << endl;
//cout << setw(23) << left << "TestPointer:" << setiosflags(ios::uppercase) << hex << Offset::Pointer << endl;
cout << endl;
SetConsoleTextAttribute(hConsole, FOREGROUND_GREEN);
cout << "DragonBurn loaded!!!\nGLHF" << endl;
Expand Down

0 comments on commit b7f35ac

Please sign in to comment.