Author Topic: no hack works for me please help  (Read 1937 times)

0 Members and 1 Guest are viewing this topic.

Melanthius

  • Cheater Apprentice
  • *
  • Posts: 11
    • View Profile
no hack works for me please help
« on: August 13, 2014, 10:47:37 pm »
im using mount and blade warband 1.160 on steam, please help it desnt block automatically

FriendsKnow

  • Guest
Re: no hack works for me please help
« Reply #1 on: August 14, 2014, 01:03:36 am »
because it doesn't block AUTOMATICALLY

it just adjust swing direction.

big clue:

Melanthius

  • Cheater Apprentice
  • *
  • Posts: 11
    • View Profile
Re: no hack works for me please help
« Reply #2 on: August 14, 2014, 01:22:58 am »
so i just hold the right click button? how will i benefit from that exactly? how will i be able to hit people?

FriendsKnow

  • Guest
Re: no hack works for me please help
« Reply #3 on: August 14, 2014, 02:13:45 am »
Just spam defend button

The only way to win is cheat
And lay it down before I'm beat
And to another give my seat
For that's the only painless feat.

Melanthius

  • Cheater Apprentice
  • *
  • Posts: 11
    • View Profile
Re: no hack works for me please help
« Reply #4 on: August 14, 2014, 02:23:47 am »
That's useless as fuck...

FriendsKnow

  • Guest
Re: no hack works for me please help
« Reply #5 on: August 14, 2014, 02:28:53 am »
suicide is painless  :icon_laugh

I will be working on auto that blocks without player intervention  :icon_rolleyes2

Medic u got any old vs projects of chams or something ?  :icon_laugh

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: no hack works for me please help
« Reply #6 on: August 14, 2014, 02:31:52 am »
suicide is painless  :icon_laugh

I will be working on auto that blocks without player intervention  :icon_rolleyes2

Medic u got any old vs projects of chams or something ?  :icon_laugh

yes mate :smile

ive got some old hook source codes if you want one let me know.

plenty on the internet as well.
« Last Edit: August 14, 2014, 04:21:29 am by MrMedic »
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

FriendsKnow

  • Guest
Re: no hack works for me please help
« Reply #7 on: August 14, 2014, 02:35:29 am »
suicide is painless  :icon_laugh

I will be working on auto that blocks without player intervention  :icon_rolleyes2

Medic u got any old vs projects of chams or something ?  :icon_laugh

yes mate :smile

ive got some old hook source codes if you want one let me know.

plenty on the internet as well.

great. share something with me if its not a problem

I must have a point to start+ I am going to watch fleep hacks vids

so I can get down to it deeper.

btw nice sig huh?

see ya tommorow
« Last Edit: August 14, 2014, 03:13:07 am by FriendsKnow »

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: no hack works for me please help
« Reply #8 on: August 14, 2014, 04:23:54 am »
Main.cpp
Code: [Select]
//-----------------------------------------------------------------------------------------------------------------------------------
//pastebin
//----------------------------------------------------------------------------------------------------------------------------------
#include <windows.h>
//----------------------------------------------------------------------------------------------------------------------------------
#include "Main.h"
//-----------------------------------------------------------------------------------------------------------------------------------
#include <mmsystem.h>
#pragma comment(lib, "winmm.lib")
//-----------------------------------------------------------------------------------------------------------------------------------
#include <stdio.h>
//-----------------------------------------------------------------------------------------------------------------------------------
#include <fstream>
//-----------------------------------------------------------------------------------------------------------------------------------
#include "detours.h"
#pragma comment(lib,"detours.lib")
//-----------------------------------------------------------------------------------------------------------------------------------
#include <d3d9.h>
#include <d3dx9.h>
#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "d3dx9.lib")
//-----------------------------------------------------------------------------------------------------------------------------------
using namespace std;
//---------------------------------------------------------------------------------------------------------------------------------
#define HOOK(func,addy) o##func = (t##func)DetourFunction((PBYTE)addy,(PBYTE)hk##func) //Quick Hook using MS Detour
#define UNHOOK(func,addy) o##func = (t##func)DetourFunction((PBYTE)addy,(PBYTE)o##func) //Quick Unook using MS Detour
//---------------------------------------------------------------------------------------------------------------------------------
#define ES  0 //EndScene
#define DIP 1 //DrawIndexedPrimitive
#define RES 2 //Reset
//---------------------------------------------------------------------------------------------------------------------------------
LPDIRECT3DDEVICE9 npDevice; //pDevice is stored here so we can hook through the VTable
//---------------------------------------------------------------------------------------------------------------------------------
LPD3DXFONT      g_pFont = NULL; //D3D Font
LPD3DXLINE      g_pLine = NULL; //D3D Line
D3DVIEWPORT9    g_ViewPort; //ViewPort
//---------------------------------------------------------------------------------------------------------------------------------
LPDIRECT3DVERTEXBUFFER9 Stream_Data;
UINT Offset = 0;
UINT Stride = 0;
//---------------------------------------------------------------------------------------------------------------------------------
ofstream myfile; //Used for logging to a text file
//---------------------------------------------------------------------------------------------------------------------------------
typedef HRESULT (WINAPI* tEndScene)(LPDIRECT3DDEVICE9 pDevice);
tEndScene oEndScene = NULL;

typedef HRESULT (WINAPI* tDrawIndexedPrimitive)(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE PrimType,INT BaseVertexIndex,UINT MinVertexIndex,UINT NumVertices,UINT startIndex,UINT primCount);
tDrawIndexedPrimitive oDrawIndexedPrimitive = NULL;

typedef HRESULT(WINAPI* tReset)(LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters);
tReset oReset = NULL;
//---------------------------------------------------------------------------------------------------------------------------------
PBYTE HookVTableFunction( PDWORD* dwVTable, PBYTE dwHook, INT Index )
{
    DWORD dwOld = 0;
    VirtualProtect((void*)((*dwVTable) + (Index*4) ), 4, PAGE_EXECUTE_READWRITE, &dwOld);

    PBYTE pOrig = ((PBYTE)(*dwVTable)[Index]);
    (*dwVTable)[Index] = (DWORD)dwHook;

    VirtualProtect((void*)((*dwVTable) + (Index*4)), 4, dwOld, &dwOld);

    return pOrig;
}
//-----------------------------------------------------------------------------------------------------------------------------------
HRESULT WINAPI hkEndScene(LPDIRECT3DDEVICE9 pDevice)
{
    myfile << "EndScene is hooked\n";             //Check log
    while(!npDevice) {
        npDevice = pDevice;                       //Here we store pDevice so we can re-hook with a VTable hook later.
    }

                                                  
    if(g_pFont == NULL) D3DXCreateFont(pDevice, 15, 0, FW_BOLD, 1, 0, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, ANTIALIASED_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Verdana", &g_pFont); //Create fonts
                                                  
    if(g_pLine == NULL) D3DXCreateLine(pDevice, &g_pLine); //Create lines

    pDevice->GetViewport(&g_ViewPort);

    return oEndScene(pDevice);
}
//---------------------------------------------------------------------------------------------------------------------------------
HRESULT WINAPI hkDrawIndexedPrimitive(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE PrimType,INT BaseVertexIndex,UINT MinVertexIndex,UINT NumVertices,UINT startIndex,UINT primCount)
{

    myfile << "DIP is hooked\n";                  //Check log
    if(pDevice->GetStreamSource(0, &Stream_Data, &Offset, &Stride) == D3D_OK)
        Stream_Data->Release();

    return oDrawIndexedPrimitive(pDevice, PrimType, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);

}
//---------------------------------------------------------------------------------------------------------------------------------
HRESULT WINAPI hkReset(LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters)
{
    myfile << "Reset is hooked\n";                //Check log
    if( g_pFont )
        g_pFont->OnLostDevice();

    if( g_pLine )
        g_pLine->OnLostDevice();

    HRESULT iReturnValue = oReset(pDevice, pPresentationParameters);

    if(iReturnValue == D3D_OK) {

        if( g_pFont )
            g_pFont->OnResetDevice();

        if( g_pLine )
            g_pLine->OnResetDevice();
    }

    return iReturnValue;

}
//-----------------------------------------------------------------------------------------------------------------------------------
LRESULT CALLBACK MsgProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam){return DefWindowProc(hwnd, uMsg, wParam, lParam);}
void DX_Init(DWORD* table)
{
    WNDCLASSEX wc = {sizeof(WNDCLASSEX),CS_CLASSDC,MsgProc,0L,0L,GetModuleHandle(NULL),NULL,NULL,NULL,NULL,"DX",NULL};
    RegisterClassEx(&wc);
    HWND hWnd = CreateWindow("DX",NULL,WS_OVERLAPPEDWINDOW,100,100,300,300,GetDesktopWindow(),NULL,wc.hInstance,NULL);
    LPDIRECT3D9 pD3D = Direct3DCreate9( D3D_SDK_VERSION );
    D3DPRESENT_PARAMETERS d3dpp;
    ZeroMemory( &d3dpp, sizeof(d3dpp) );
    d3dpp.Windowed = TRUE;
    d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;
    d3dpp.BackBufferFormat = D3DFMT_UNKNOWN;
    LPDIRECT3DDEVICE9 pd3dDevice;
    pD3D->CreateDevice(D3DADAPTER_DEFAULT,D3DDEVTYPE_HAL,hWnd,D3DCREATE_SOFTWARE_VERTEXPROCESSING,&d3dpp,&pd3dDevice);
    DWORD* pVTable = (DWORD*)pd3dDevice;
    pVTable = (DWORD*)pVTable[0];

    table[ES]   = pVTable[42];                    //EndScene address
    table[DIP]  = pVTable[82];                    //DrawIndexedPrimitive address
    table[RES]  = pVTable[16];                    //Reset address

    DestroyWindow(hWnd);
}
//------------------------------------------------------------------------------------------------------------------------------------
DWORD WINAPI VirtualMethodTableRepatchingLoopToCounterExtensionRepatching( LPVOID  Param )
{
    while(1) {
        Sleep(100);
        HookVTableFunction((PDWORD*)npDevice, (PBYTE)hkDrawIndexedPrimitive, 82); //Hook DrawIndexedPrimitive
        HookVTableFunction((PDWORD*)npDevice, (PBYTE)hkEndScene, 42); //Hook EndScene
        HookVTableFunction((PDWORD*)npDevice, (PBYTE)hkReset, 16); //Hook Reset

    }

    return 1;
}
//------------------------------------------------------------------------------------------------------------------------------------
bool hooked = false;
DWORD WINAPI LoopFunction( LPVOID lpParam  )
{

    while(1) {
        if( hooked == false) {
            DWORD VTable[3] = {0};

            while(GetModuleHandle("d3d9.dll")==NULL) {
                Sleep(250);
            }

            DX_Init(VTable);
            HOOK(EndScene,VTable[ES]);            //Hook EndScene as a device discovery hook

            while(!npDevice) {
                Sleep(50); //Sleep until npDevice is not equal to NULL
            }
            UNHOOK(EndScene, VTable[ES]);         //Unhook as soon as we have a valid pointer to pDevice

            *(PDWORD)&oDrawIndexedPrimitive = VTable[DIP];
            *(PDWORD)&oEndScene = VTable[ES];
            *(PDWORD)&oReset = VTable[RES];

            CreateThread(NULL,0,&VirtualMethodTableRepatchingLoopToCounterExtensionRepatching,NULL,0,NULL); //Create hooking thread

            hooked = true;

            Sleep(200);

        }
    }
    return 0;
}
//------------------------------------------------------------------------------------------------------------------------------------
BOOL WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpvReserved)
{
    if(dwReason == DLL_PROCESS_ATTACH) {
        CreateThread(0, 0, LoopFunction, 0, 0, 0);
        myfile.open("c:\\dx.log");
        myfile.clear();
        myfile << "----------Attached----------\n";
        myfile << "\n";
    }
    else if(dwReason == DLL_PROCESS_DETACH) {
        myfile << "----------Detached----------";
        myfile.close();
    }

    return TRUE;
}
//------------------------------------------------------------------------------------------------------------------------------------

Main.h
Code: [Select]
#define WIN32_LEAN_AND_MEAN

#ifndef _MAIN_H
#define _MAIN_H

char *GetDirectoryFile(char *filename);
void __cdecl add_log (const char * fmt, ...);
void *DetourFunc(BYTE *src, const BYTE *dst, const int len);
bool RetourFunc(BYTE *src, BYTE *restore, const int len);

#endif

cant remember who made it but its a good base to start with.
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

FriendsKnow

  • Guest
Re: no hack works for me please help
« Reply #9 on: August 14, 2014, 06:10:53 pm »
My new autoblocker in vs2010 (with beeps) :smile  

-lighter & faster than your wife on fitness unlike previous heavy autoblocks which lagged game)  :icon_laugh




and must say thanks to medic because he told me what to download,read and motivated me to start off etc.
« Last Edit: August 14, 2014, 06:38:23 pm by FriendsKnow »

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: no hack works for me please help
« Reply #10 on: August 14, 2014, 08:22:11 pm »
My new autoblocker in vs2010 (with beeps) :smile  

-lighter & faster than your wife on fitness unlike previous heavy autoblocks which lagged game)  :icon_laugh




and must say thanks to medic because he told me what to download,read and motivated me to start off etc.

:icon_thumbsup
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

ZOldDude

  • The Unknown Rank!
  • Administrator
  • MasstKer
  • *
  • Posts: 20874
  • Old School TKC
    • View Profile
    • Admin
Re: no hack works for me please help
« Reply #11 on: August 14, 2014, 10:31:35 pm »
Quote
Give a man a fish, and you feed him for a day; show him how to catch fish, and you feed him for a lifetime.

The correct saying is:
"Give a man a fish, and you feed him for a day;give him a poisoned fish, and you feed him for his lifetime."  :icon_teehee

*While we crash and burn, small, low tech, agrarian societies such as the Hmong in the mountains of Laos will continue on without so much as blinking an eye.*

johnmann

  • Moderator
  • Klass Klown
  • *
  • Posts: 300
    • View Profile
    • http://www.tkc-community.net
Re: no hack works for me please help
« Reply #12 on: August 14, 2014, 11:16:39 pm »
My new autoblocker in vs2010 (with beeps) :smile  

-lighter & faster than your wife on fitness unlike previous heavy autoblocks which lagged game)  :icon_laugh




and must say thanks to medic because he told me what to download,read and motivated me to start off etc.

Good job mate nice seeing people team up and credits going out to people who helped

mReURO

  • The Central Committee
  • Heckler Apprentice
  • *
  • Posts: 1364
    • View Profile
    • >>>>>> free porn <<<<<<
Re: no hack works for me please help
« Reply #13 on: August 14, 2014, 11:21:49 pm »
My new autoblocker in vs2010 (with beeps) :smile  

-lighter & faster than your wife on fitness unlike previous heavy autoblocks which lagged game)  :icon_laugh




and must say thanks to medic because he told me what to download,read and motivated me to start off etc.

Good job mate nice seeing people team up and credits going out to people who helped

agree. well done