❗ Need Help On A Source Code

Posts 1–7 of 7 · Page 1 of 1
❗ Need Help On A Source Code
here is the source code, but i have no idea what is wrong, i updated the offsets, i fixed all the errors. Please tell the if you can find the errors, you can even use the code for yourself if you fix it, but please tell me.

sorry, the problem is that once you inject this into a middleman service, it does not work, no aimbot, no walls ntg.

i injected this into 32 bit VLC and it should have worked but it did not. i changed the offsets.

i really hope someone can help.

i also tried to inject to another program, 64 bit and 32 bit programs, but it still did not work. i tried to inject it to cs go directly but it crashed cs go.

i removed this code:

MessageBoxW(NULL, XOR(L"Bacros is now active in your middleman process!\n Now rund Steam/CSGO!\n Close this box AFTER you have ran the game"), XOR(L"Bacros"), MB_OK);

from DLLMain.cpp (line 22)

i also changed line 47 from CCheats.cpp this (CSPlayerResource) to this (CID_CCSPlayerResource). this gave me no errors so i changed it. It was a error b4 so i changed it.i also changed it from line 151.

******i also changed this*******

void Cheats::entityglow()
{
DWORD GlowObjectRead = pMemory->ReadMemory<DWORD>(ClientDLL + m_dwGlowObject);

if (pCvars->visual_enabled)
{
if (pCvars->visual_glowesp)
{
for (int i = 0; i <= 128; i++)
{
pEntity->getPlayer(i);

switch (pEntity->getClassID())
{
default:
break;
case Chicken:
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x4)), 0.8f);
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x8)), 0.0f);
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0xC)), 0.0f);
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x10)), 0.8f);
pMemory->WriteMemory<bool>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x24)), true);
pMemory->WriteMemory<bool>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x25)), false);
break;
case C4:
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x4)), 0.3f);
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x8)), 0.0f);
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0xC)), 0.6f);
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x10)), 0.8f);
pMemory->WriteMemory<bool>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x24)), true);
pMemory->WriteMemory<bool>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x25)), false);
break;
case PlantedC4:
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x4)), 0.3f);
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x8)), 0.0f);
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0xC)), 0.6f);
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x10)), 0.8f);
pMemory->WriteMemory<bool>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x24)), true);
pMemory->WriteMemory<bool>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x25)), false);
break;
}
}
}
}
std::this_thread::sleep_for(std::chrono::milliseco nds(20));
}


***********to this************

void Cheats::entityglow()
{
DWORD GlowObjectRead = pMemory->ReadMemory<DWORD>(ClientDLL + m_dwGlowObject);

if (pCvars->visual_enabled)
{
if (pCvars->visual_glowesp)
{
for (int i = 0; i <= 128; i++)
{
pEntity->getPlayer(i);

switch (pEntity->getClassID())
{
default:
break;
case CID_CChicken:
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x4)), 0.8f);
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x8)), 0.0f);
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0xC)), 0.0f);
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x10)), 0.8f);
pMemory->WriteMemory<bool>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x24)), true);
pMemory->WriteMemory<bool>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x25)), false);
break;
case CID_CC4:
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x4)), 0.3f);
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x8)), 0.0f);
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0xC)), 0.6f);
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x10)), 0.8f);
pMemory->WriteMemory<bool>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x24)), true);
pMemory->WriteMemory<bool>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x25)), false);
break;
case CID_CPlantedC4:
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x4)), 0.3f);
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x8)), 0.0f);
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0xC)), 0.6f);
pMemory->WriteMemory<float>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x10)), 0.8f);
pMemory->WriteMemory<bool>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x24)), true);
pMemory->WriteMemory<bool>((GlowObjectRead + ((pEntity->getGlowIndex() * 0x38) + 0x25)), false);
break;
}
}
}
}
std::this_thread::sleep_for(std::chrono::milliseco nds(20));
}










THIS WERE THE ERRORS B4 I FIXED IT.

CCheats.cpp
CCheats.cpp(16): error C2039: 'ReadMem': is not a member of 'CMemory'
c:\users\sagaan\desktop\bacros private build 2.0\CMemory.h(4): note: see declaration of 'CMemory'
CCheats.cpp(19): error C2039: 'ReadMem': is not a member of 'CMemory'
c:\users\sagaan\desktop\bacros private build 2.0\CMemory.h(4): note: see declaration of 'CMemory'
CCheats.cpp(24): error C2039: 'WriteMem': is not a member of 'CMemory'
c:\users\sagaan\desktop\bacros private build 2.0\CMemory.h(4): note: see declaration of 'CMemory'
CCheats.cpp(24): error C2062: type 'float' unexpected
CCheats.cpp(25): error C2039: 'WriteMem': is not a member of 'CMemory'
c:\users\sagaan\desktop\bacros private build 2.0\CMemory.h(4): note: see declaration of 'CMemory'
CCheats.cpp(25): error C2062: type 'float' unexpected
CCheats.cpp(26): error C2039: 'WriteMem': is not a member of 'CMemory'
c:\users\sagaan\desktop\bacros private build 2.0\CMemory.h(4): note: see declaration of 'CMemory'
CCheats.cpp(26): error C2062: type 'float' unexpected
CCheats.cpp(27): error C2039: 'WriteMem': is not a member of 'CMemory'
c:\users\sagaan\desktop\bacros private build 2.0\CMemory.h(4): note: see declaration of 'CMemory'
CCheats.cpp(27): error C2062: type 'bool' unexpected
CCheats.cpp(28): error C2039: 'WriteMem': is not a member of 'CMemory'
c:\users\sagaan\desktop\bacros private build 2.0\CMemory.h(4): note: see declaration of 'CMemory'
CCheats.cpp(28): error C2062: type 'bool' unexpected
CCheats.cpp(29): error C2039: 'WriteMem': is not a member of 'CMemory'
c:\users\sagaan\desktop\bacros private build 2.0\CMemory.h(4): note: see declaration of 'CMemory'
CCheats.cpp(29): error C2062: type 'bool' unexpected
CCheats.cpp(47): error C2065: 'CSPlayerResource': undeclared identifier
CCheats.cpp(151): error C2065: 'CSPlayerResource': undeclared identifier
CCheats.cpp(197): error C2065: 'Chicken': undeclared identifier
CCheats.cpp(197): error C2131: expression did not evaluate to a constant
CCheats.cpp(197): note: failure was caused by non-constant arguments or reference to a non-constant symbol
CCheats.cpp(197): note: see usage of 'Chicken'
CCheats.cpp(205): error C2065: 'C4': undeclared identifier
CCheats.cpp(205): error C2131: expression did not evaluate to a constant
CCheats.cpp(205): note: failure was caused by non-constant arguments or reference to a non-constant symbol
CCheats.cpp(205): note: see usage of 'C4'
CCheats.cpp(213): error C2065: 'PlantedC4': undeclared identifier
CCheats.cpp(213): error C2131: expression did not evaluate to a constant
CCheats.cpp(213): note: failure was caused by non-constant arguments or reference to a non-constant symbol
CCheats.cpp(213): note: see usage of 'PlantedC4'
CCheats.cpp(197): error C2051: case expression not constant
CCheats.cpp(205): error C2051: case expression not constant
CCheats.cpp(213): error C2051: case expression not constant
CCheats.cpp(221): warning C4065: switch statement contains 'default' but no 'case' labels
DLLMain.cpp
DLLMain.cpp(22): error C2440: '<function-style-cast>': cannot convert from 'const wchar_t [114]' to 'CXorString<IndexList<0,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,2 9,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,7 9,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,10 9,110,111,112,113,114,115,116,117,118,119,120,121, 122,123,124,125,126,127,128,129,130,131,132,133,13 4,135,136,137,138,139,140,141,142,143,144,145,146, 147,148,149,150,151,152,153,154,155,156,157,158,15 9,160,161,162,163,164,165,166,167,168,169,170,171, 172,173,174,175,176,177,178,179,180,181,182,183,18 4,185,186,187,188,189,190,191,192,193,194,195,196, 197,198,199,200,201,202,203,204,205,206,207,208,20 9,210,211,212,213,214,215,216,217,218,219,220,221, 222,223,224,225,226>>'
DLLMain.cpp(22): note: No constructor could take the source type, or constructor overload resolution was ambiguous
DLLMain.cpp(22): error C2228: left of '.decrypt' must have class/struct/union
DLLMain.cpp(22): error C2440: '<function-style-cast>': cannot convert from 'const wchar_t [7]' to 'CXorString<IndexList<0,1,2,3,4,5,6,7,8,9,10,11,12 >>'
DLLMain.cpp(22): note: No constructor could take the source type, or constructor overload resolution was ambiguous
DLLMain.cpp(22): error C2660: 'MessageBoxW': function does not take 2 arguments
CCheats.cpp
CCheats.cpp(16): error C2039: 'ReadMem': is not a member of 'CMemory'
c:\users\sagaan\desktop\bacros private build 2.0\CMemory.h(4): note: see declaration of 'CMemory'
CCheats.cpp(19): error C2039: 'ReadMem': is not a member of 'CMemory'
c:\users\sagaan\desktop\bacros private build 2.0\CMemory.h(4): note: see declaration of 'CMemory'
CCheats.cpp(24): error C2039: 'WriteMem': is not a member of 'CMemory'
c:\users\sagaan\desktop\bacros private build 2.0\CMemory.h(4): note: see declaration of 'CMemory'
CCheats.cpp(24): error C2062: type 'float' unexpected
CCheats.cpp(25): error C2039: 'WriteMem': is not a member of 'CMemory'
c:\users\sagaan\desktop\bacros private build 2.0\CMemory.h(4): note: see declaration of 'CMemory'
CCheats.cpp(25): error C2062: type 'float' unexpected
CCheats.cpp(26): error C2039: 'WriteMem': is not a member of 'CMemory'
c:\users\sagaan\desktop\bacros private build 2.0\CMemory.h(4): note: see declaration of 'CMemory'
CCheats.cpp(26): error C2062: type 'float' unexpected
CCheats.cpp(27): error C2039: 'WriteMem': is not a member of 'CMemory'
c:\users\sagaan\desktop\bacros private build 2.0\CMemory.h(4): note: see declaration of 'CMemory'
CCheats.cpp(27): error C2062: type 'bool' unexpected
CCheats.cpp(28): error C2039: 'WriteMem': is not a member of 'CMemory'
c:\users\sagaan\desktop\bacros private build 2.0\CMemory.h(4): note: see declaration of 'CMemory'
CCheats.cpp(28): error C2062: type 'bool' unexpected
CCheats.cpp(29): error C2039: 'WriteMem': is not a member of 'CMemory'
c:\users\sagaan\desktop\bacros private build 2.0\CMemory.h(4): note: see declaration of 'CMemory'
CCheats.cpp(29): error C2062: type 'bool' unexpected
CCheats.cpp(47): error C2065: 'CSPlayerResource': undeclared identifier
CCheats.cpp(151): error C2065: 'CSPlayerResource': undeclared identifier
CCheats.cpp(197): error C2065: 'Chicken': undeclared identifier
CCheats.cpp(197): error C2131: expression did not evaluate to a constant
CCheats.cpp(197): note: failure was caused by non-constant arguments or reference to a non-constant symbol
CCheats.cpp(197): note: see usage of 'Chicken'
CCheats.cpp(205): error C2065: 'C4': undeclared identifier
CCheats.cpp(205): error C2131: expression did not evaluate to a constant
CCheats.cpp(205): note: failure was caused by non-constant arguments or reference to a non-constant symbol
CCheats.cpp(205): note: see usage of 'C4'
CCheats.cpp(213): error C2065: 'PlantedC4': undeclared identifier
CCheats.cpp(213): error C2131: expression did not evaluate to a constant
CCheats.cpp(213): note: failure was caused by non-constant arguments or reference to a non-constant symbol
CCheats.cpp(213): note: see usage of 'PlantedC4'
CCheats.cpp(197): error C2051: case expression not constant
CCheats.cpp(205): error C2051: case expression not constant
CCheats.cpp(213): error C2051: case expression not constant
CCheats.cpp(221): warning C4065: switch statement contains 'default' but no 'case' labels
DLLMain.cpp
DLLMain.cpp(22): error C2440: '<function-style-cast>': cannot convert from 'const wchar_t [114]' to 'CXorString<IndexList<0,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,2 9,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,7 9,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,10 9,110,111,112,113,114,115,116,117,118,119,120,121, 122,123,124,125,126,127,128,129,130,131,132,133,13 4,135,136,137,138,139,140,141,142,143,144,145,146, 147,148,149,150,151,152,153,154,155,156,157,158,15 9,160,161,162,163,164,165,166,167,168,169,170,171, 172,173,174,175,176,177,178,179,180,181,182,183,18 4,185,186,187,188,189,190,191,192,193,194,195,196, 197,198,199,200,201,202,203,204,205,206,207,208,20 9,210,211,212,213,214,215,216,217,218,219,220,221, 222,223,224,225,226>>'
DLLMain.cpp(22): note: No constructor could take the source type, or constructor overload resolution was ambiguous
DLLMain.cpp(22): error C2228: left of '.decrypt' must have class/struct/union
DLLMain.cpp(22): error C2440: '<function-style-cast>': cannot convert from 'const wchar_t [7]' to 'CXorString<IndexList<0,1,2,3,4,5,6,7,8,9,10,11,12 >>'
DLLMain.cpp(22): note: No constructor could take the source type, or constructor overload resolution was ambiguous
DLLMain.cpp(22): error C2660: 'MessageBoxW': function does not take 2 arguments




ONE MORE PROBLEM:

Whenever i try to inject it, it will say "An error occurred while injecting "Bacros Private Build 1.0.dll" into"vlc.exe"

System.Exception: The injection method used returned NULL (injection failed).


I USED EXTREME INJECTOR

i also tried using all the injecting possible, standard, Thread Hijacking and stuff




The file with a (3) at the end is the original code

The one without it is my fixed attempt

virus scans:
https://virustotal.com/en/file/27ec9...is/1490450729/
https://virusscan.jotti.org/en-US/fi...job/89ejfkbrgr


https://virustotal.com/en/file/8620b...is/1490450741/
https://virusscan.jotti.org/en-US/fi...job/4y2rqffqd6
Bacros Private Build 2.0_mpgh.net.zip15.2 MB · 9 downloads Clean
Bacros Private Build 2.0 (3)_mpgh.net.zip1.8 MB · 12 downloads Clean
Quote Originally Posted by sagaantheepic4 View Post
here is the source code, but i have no idea what is wrong, i updated the offsets, i fixed all the errors. Please tell the if you can find the errors, you can even use the code for yourself if you fix it, but please tell me.

Could you be more specific? What exactly doesn't work, does the cheat not start when debugging or do some features just not work?
sorry, the problem is that once you inject this into a middleman service, it does not work, no aimbot, no walls ntg
Quote Originally Posted by sagaantheepic4 View Post
sorry, the problem is that once you inject this into a middleman service, it does not work, no aimbot, no walls ntg
Next time when you post a snippet make sure you add it between [CODE] brackets.
It isn't a good idea to just remove code if it gives you an error, the part could be critical.
What exact part did you remove that gave you an error?
i updated the post, i added all the details
1. Move the thread in to Coding and Resources ok?
2. Really pal, say something more about your problem
Files looks good. Approved | Source code inside
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us