Source Code Assault Cube NOCLIP

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

KaizenLouie

Newbie
Full Member
Nov 15, 2016
11
48
0
hello GH, got bored earlier and ended up making this small thing. this may also help you get out of your boredom since "noclip 1" will now be possible in ac. (realized that I really don't like ogl renders or maybe on ac only)




heres the source code:


Functions.h

C++:
#include <iostream>
#include <Windows.h>
#include <tlhelp32.h>
#pragma comment( lib, "psapi.lib" ) //this one will save you, trust me. if you know what I mean.
#include <psapi.h>

void WriteToMemory(uintptr_t addressToWrite, char* valueToWrite, int byteNum)
{
    unsigned long OldProtection;
    VirtualProtect((LPVOID)(addressToWrite), byteNum, PAGE_EXECUTE_READWRITE, &OldProtection);
    memcpy( (LPVOID)addressToWrite, valueToWrite, byteNum);
    VirtualProtect((LPVOID)(addressToWrite), byteNum, OldProtection, NULL);
}

MODULEINFO GetModuleInfo( char *szModule )
{
    MODULEINFO modinfo = {0};
    HMODULE hModule = GetModuleHandle(szModule);
    if(hModule == 0) 
        return modinfo;
    GetModuleInformation(GetCurrentProcess(), hModule, &modinfo, sizeof(MODULEINFO));
    return modinfo;
}

DWORD FindPattern(char *module, char *pattern, char *mask)
{
    MODULEINFO mInfo = GetModuleInfo(module);
    DWORD base = (DWORD)mInfo.lpBaseOfDll;
    DWORD size =  (DWORD)mInfo.SizeOfImage;

    DWORD patternLength = (DWORD)strlen(mask);

    for(DWORD i = 0; i < size - patternLength; i++)
    {
        bool found = true;
        for(DWORD j = 0; j < patternLength; j++)
        {
            found &= mask[j] == '?' || pattern[j] == *(char*)(base + i + j);
        }

        if(found) 
        {
            return base + i;
        }
    }

    return NULL;
}
Main.cpp
C++:
#include <Windows.h>
#include "Functions.h"

using namespace std;

void noclip(char* pattern, char* mask, char* procName, bool msg, char* valuetowrite, int size, int position)
{

	DWORD pVariable = FindPattern(procName, pattern, mask);
	pVariable += position;    
	if (pVariable != 0)
	{
		WriteToMemory(pVariable, valuetowrite, size);
	}
	else
	{
		MessageBoxA(NULL,"Error! Your client version should be 1.2.0.2" , NULL, NULL);
	}
}

DWORD __stdcall Main(LPVOID param)
{
	//NOCLIP
	noclip("\x74\x57\xDD\xDB\xD9\x43\x04\xDE\xC2\xD9\xC9\xD9\x5B\x04", "xxxxxxxxxxxxxx", "ac_client.exe", true, "\x90\x90", 2, 0); 
	
	return 0;
}

BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
{
    switch (dwReason)
    {
    case DLL_PROCESS_ATTACH:
        CreateThread(0, 0, Main, hModule, 0, 0);
        break;
  
    case DLL_PROCESS_DETACH:
        break;
    }
    return TRUE;
}
yes I know there's a simpler and shorter approach regarding this, just drop it in the comments if you like.
its just that, I use this template for my aob patching stuff.



Credits:
Fleep - aob functions (correct me if !)
Rake - For his skeletons, yes he offered his skeletons for our sake. rip.
 

Traxin

Escobar Tier VIP
Dank Tier Donator
Aug 3, 2015
1,041
25,378
154
Very nice! Thanks for the share mate!
Maybe a little write-up or something on how you actually found the instruction?
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,205
78,998
2,400
Working online? God save us all!
 

KaizenLouie

Newbie
Full Member
Nov 15, 2016
11
48
0
Very nice! Thanks for the share mate!
Maybe a little write-up or something on how you actually found the instruction?
thanks man, but sadly (here's the story behind)...
I only accidentally noped a wrong function while trying to mess with stuff that'll possibly trigger a collisions. I'll check it out again if I have more spare time.
So here's an advise from me: "Never quit even if you're about to sleep"

~
Im planning to release my source on triggerbot first. 'cause I noticed that there's a bunch of tuts on making a triggerbot but I cant find any releases for AC.
suspicious...
 

wolf22j

Coder
Full Member
Nobleman
Mar 19, 2014
133
1,778
20
Rake;47250 said:
Working online? God save us all!
Aren't the assault cube servers gone? Last time I was messing around with it there was no server list
 

Traxin

Escobar Tier VIP
Dank Tier Donator
Aug 3, 2015
1,041
25,378
154
thanks man, but sadly (here's the story behind)...
I only accidentally noped a wrong function while trying to mess with stuff that'll possibly trigger a collisions. I'll check it out again if I have more spare time.
So here's an advise from me: "Never quit even if you're about to sleep"

~
Im planning to release my source on triggerbot first. 'cause I noticed that there's a bunch of tuts on making a triggerbot but I cant find any releases for AC.
suspicious...
Makes sense, it's a valid technique lol.
But yea, I just want people to start releasing more informative stuff instead of just small code snippets.
Especially for assault cube since it's basically the training platform we all use to learn.
Not to mention, teaching someone helps to cement that knowledge in yourself :)

Aren't the assault cube servers gone? Last time I was messing around with it there was no server list
There are still a few servers up actually.
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,205
78,998
2,400
Aren't the assault cube servers gone? Last time I was messing around with it there was no server list
They ban alot of VPN IP ranges and admins in the community can submit your IP to be banned from querying the master server list. You can still manually connect to servers tho, just query the server with an unbanned IP, copy the IP and port and then manually connect once you are connected to your VPN.
 

wolf22j

Coder
Full Member
Nobleman
Mar 19, 2014
133
1,778
20
Rake;47274 said:
They ban alot of VPN IP ranges and admins in the community can submit your IP to be banned from querying the master server list. You can still manually connect to servers tho, just query the server with an unbanned IP, copy the IP and port and then manually connect once you are connected to your VPN.
Wow, I'm surprised people actually still play it online, lol
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods