Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > League of Legends
You last visited: Today at 18:01

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



RLS: Zoomhack with signature scanning, 1 byte patch. Written in python

Discussion on RLS: Zoomhack with signature scanning, 1 byte patch. Written in python within the League of Legends forum part of the Popular Games category.

Reply
 
Old   #1
 
TheOrange's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 18
Received Thanks: 24
RLS: Zoomhack with signature scanning, 1 byte patch. Written in python

Code:
from struct import *

def bytes_from_file(filename, chunksize=8192):
    with open(filename, "rb") as f:
        while True:
            chunk = f.read(chunksize)
            if chunk:
                for b in chunk:
                    yield b
            else:
                break

def findSig(filename,sig):
    sigpos = 0
    positionToPatch = 0
    for byte in bytes_from_file(path):  
        if sig[sigpos] == 0 or byte == signature[sigpos]:
            sigpos+=1           
            if sigpos == len(sig):
                if byte == 0x76:
                     print("Signature found!, byte value is: ",hex(byte))
                     return positionToPatch
                elif byte == 0xeb:
                    print("This file is already patched, byte value is: ",hex(byte))
                    return -1
                else:
                    print("Signature found but byte value is ",hex(byte)," and not 0x76!")
                    print("Please update patcher!")
                    return -1                 
        else:
            sigpos = 0
        positionToPatch +=1
    print("not found!")
    return -1

def patchFile(infile,outfile,position):
    bytecounter = 0
    f = open(outfile, 'wb')

    for byte in bytes_from_file(infile):       
        if bytecounter == position:
            f.write(pack('B',235))
        else:
            f.write(pack('B',byte))
        bytecounter+=1

    f.close()


print("start")


import win32ui
import win32file


o = win32ui.CreateFileDialog( 1, ".exe", "League of Legends.exe", 0, "Exe files (*.exe)|*.exe|All Files (*.*)|*.*|")
o.DoModal()
path = o.GetPathName()

##print("Copy original file:")
##print(path)
##print("To:")
##print(path+".bak")
##
##win32file.CopyFile(path,path+".bak",0)
##
##outpath = path
##path = path+".bak"

signature = bytes.fromhex('DF F1 DD D8 00 00 F3 0F 10 05 00 00 00 00 F3 0F 11 05 00 00 00 00 B0 01 5F 5E 5B 59 C2 04 00 F3 0F 10 0D 00 00 00 00 F3 0F 10 05 00 00 00 00 0F 2F C8 00')


patchPosition = findSig(path,signature)
if patchPosition != -1:
    print("patch with 0xeb on: ",hex(patchPosition))

    print("Copy original file:")
    print(path)
    print("To:")
    print(path+".bak")

    win32file.CopyFile(path,path+".bak",0)

    outpath = path
    path = path+".bak"
        
    print("patching now....")
    patchFile(path,outpath,patchPosition)
    print("done")
else:
    print("not patching")

    

print("end")
TheOrange is offline  
Reply


Similar Threads Similar Threads
Rhysato Zoomhack Patch 1070
05/15/2008 - EO Exploits, Hacks, Tools & Macros - 8 Replies
Zoom hack for Patch 1070 Edit: Files deleted, not working anymore The Zoom Hack: http://www.megaupload.com/?d=9ZNZCHGL The .CT File: http://www.megaupload.com/?d=NJWW5PH0
Silkroad Modifier, Multiclient, Nude Patch, Swear Filter Bypass and Zoomhack
10/17/2007 - SRO Hacks, Bots, Cheats & Exploits - 4 Replies
take a look on WWW.TURBOBOT.CJB.NET
ZoomHack Patch 1038
12/31/2006 - Eudemons Online - 10 Replies
For the people who cant play without zoomhack, here it is!



All times are GMT +1. The time now is 18:02.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.