Patchedhng classic norecoil + source code

Posts 115 of 19 · Page 1 of 2
hng classic norecoil + source code
1 - open game or cheat as admin order does not matter.
2 - in console you see options to choice

source code:
Code:
; +-----------------------------------------------------------------+
; |            hereos and generals classic no recoil                |
; |             started on 9.8.2015(m.d.y) by lava                  |
; |  if you want to donate to lava:                                 |
; |       BTC: 19X7KKkMZsu4dLC3wd93N3UHiDJdomb6Vd                   |
; +-----------------------------------------------------------------+

.386
.model flat, stdcall
option casemap :none

system proto c :dword

include windows.inc
include user32.inc
include kernel32.inc
include masm32.inc
includelib msvcrt.lib

includeLib user32.lib
includeLib kernel32.lib
includelib masm32.lib

.data
	hellomsg			db					"heroes and generals no recoil toggler coded in asm by: lava", 0dh, 0ah, "1     - no recoil : OFF", 0dh, 0ah, "enter - exit", 0dh, 0ah, "choice# ", 0 ; 82 bytes to edit off or on
	choice				db					?
	cmd1				db					"CLS", 0
	cmd2				db					"PAUSE", 0
	bo_norecoil			db					0
	me32				MODULEENTRY32		<>
	cmodule32first		db					"Module32First", 0
	ckernel32_dll		db					"kernel32.dll", 0
	cplayer_dll			db					"player.dll", 0
	dw_hng				dd					?
	dw_player			dd					?
	snapshot			dd					?
	pid					dd					?
	dw_var				dd					?
	
	hwndname			db					"H&G", 0
	waitingmsg			db					"waiting for H&G...", 0dh, 0ah, 0
	hwnd				HWND				?
	h_hng				HANDLE				?
	bytes_to_write		db					01h, 00h
	
	failmsg				db					"you dont have enough privileges to edit memory", 0dh, 0ah, 0

.code
start:
	push offset waitingmsg
	call StdOut
	
findwindow_loop:
	push 100
	call Sleep
	
	push offset hwndname
	push 0
	call FindWindow
	test eax,eax
	je findwindow_loop
	
	mov [hwnd], eax
	
	push offset pid
	push eax
	call GetWindowThreadProcessId
	
	push pid
	push 0
	push [8h + 10h + 20h] ; PROCESS_VM_OPERATION + PROCESS_VM_READ + PROCESS_VM_WRITE
	call OpenProcess
	test eax, eax
	je end_failed
	
	mov [h_hng], eax
	
	call get_hng
	mov [dw_hng], eax
	
	mov eax, dw_hng
	mov dword ptr [dw_var], eax
	add [dw_var], 94B04h
	
	push 0
	push 4
	push offset dw_player
	push dw_var
	push h_hng
	call ReadProcessMemory
	
	mov eax, [dw_player]
	mov [dw_var], eax
	add [dw_var], 36454Dh
	add [dw_var], 3
	
	push 0
	push 1
	push offset bytes_to_write
	push dw_var
	push h_hng
	call WriteProcessMemory
	
	mov eax, [dw_player]
	mov [dw_var], eax
	add [dw_var], 1E9074h
	add [dw_var], 6

begin:
	push offset cmd1
	call system
	
	call print_menu
	
	push 1
	push offset choice
	call StdIn
	
	cmp [choice], 31h
	je toggle_norecoil
	
	jmp end_proc
	
print_menu:
	push offset hellomsg
	call StdOut
	
	ret

toggle_norecoil:
	call get_2_more_inputs
	
	cmp [bo_norecoil], 0
	je enable_norecoil
	
	mov [bo_norecoil], 0
	mov [hellomsg +82], 46h
	mov [hellomsg +83], 46h
	
	push 0
	push 1
	push offset [bytes_to_write +1]
	push dw_var
	push h_hng
	call WriteProcessMemory
	
	jmp begin
	
enable_norecoil:
	mov [bo_norecoil], 1
	mov [hellomsg +82], 4Eh
	mov [hellomsg +83], 20h
	
	push 0
	push 1
	push offset bytes_to_write
	push dw_var
	push h_hng
	call WriteProcessMemory
	
	jmp begin
	
	
get_2_more_inputs:
	push 1
	push offset choice
	call StdIn
	push 1
	push offset choice
	call StdIn
	
	ret

get_hng:
	push pid
	push 8 ; TH32CS_SNAPMODULE
	call CreateToolhelp32Snapshot
	mov snapshot, eax
	
	mov ecx, SIZEOF me32
	mov me32.dwSize, ecx
	
	push offset ckernel32_dll
	call GetModuleHandle
	
	push offset cmodule32first
	push eax
	call GetProcAddress
	
	push offset me32
	push snapshot
	call eax
	
	mov eax, me32.modBaseAddr
	ret

end_failed:
	push offset failmsg
	call StdOut

	push offset cmd2
	call system

end_proc:
	push 0
	call ExitProcess

end start
virus scans:
https://www.metascan-online.com/#!/r...a8da/extracted
https://virusscan.jotti.org/en-US/fi...job/2vwzmpy3hy

hcnr_mpgh.net.zip1 KB · 258 downloads 1/56 malicious
thx good work
Wonderful, any chance we will see aimbot update 4 ?
Quote Originally Posted by Sankhiro View Post
Approve! Looks good mate, can't wait.
you can download masm32 and compile that code ^^.

- - - Updated - - -

Quote Originally Posted by Sandvich View Post
Wonderful, any chance we will see aimbot update 4 ?
i think so
You tha man.
Nice code :} At first I was lost to get where you was writing, because u reused alot of vars... ahahaha. I'm trying to get infinite stamina, but I can find where it's calculated
I played around at IDA pro, found some places, by trigging run and stoping, but I just get lost on debugger, can find nothing
Do you have a methodology to debug games... you seems to find allot of stuff :} ... the best I did was "auto shooting", useless aahahaha...

Anyway, thanks for the code :P

- - - Updated - - -

Quote Originally Posted by dark9011 View Post
You tha man.
Quote Originally Posted by ozone5577 View Post
good work man
Aahaha... she is a girl dudes...
Looks good.
//Approved
Is there a more simple point? Directly can be used for this kind of small white is too difficult ~
umm after the hotfix (15/9/2015), it doesn't work anymore. If u try to ON it, you'll just get crashes
not working...dont download...game crashes everytime
could you please do an update? Thanks for your awesome work by the way
Posts 115 of 19 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?