[Quake Live] Wallhack

stealth93

Semi-Coder
A PB SS proof wallhack with some chams but doesn't know what team is what yet. Still working on adding somethings and going to restructure the code sometime soon. If you have any comments please feel free to reply.

Make sure all of your iceweasel / firefox browser windows are closed before running.

Also thanks to Noobie for writing up some instructions on how to compile and run:
Open a terminal:
Code:
sudo apt-get install make binutils-dev libelfg0-dev libcppunit-dev gcc pkg-config
Now cd to the qlh folder and do
Code:
make RELEASE=1
(or without RELEASE=1 if you want debug stuff)
now open the qlh file with a texteditor, such as gedit, and edit the path to your qlh folder
Code:
export LD_PRELOAD=/path/to/library/libQLH.so
e.g.
Code:
export LD_PRELOAD=/home/yourUserName/qlh/libQLH.so
that's all - now simply enter
Code:
./qlh
This is posted here under the GPL license so please respect it.

Credits: *nixcoders, rabbnix coders, kingorgy, and most of all chaplex for helping me with offset finding - thanks again :worship:

Offsets for version 0.1.0.263
 

Attachments

  • qlh_distro.tar.gz
    1.7 MB · Views: 234

Noobie

the mad m.c. with a multiple personality
How to run it? (sry im new)
open a terminal and cd to the qlh folder,
do
Code:
make RELEASE=1
(or without RELEASE=1 if you want debug stuff)
now open the qlh file with a texteditor and edit the path to your qlh folder
Code:
export LD_PRELOAD=/path/to/library/libQLH.so
e.g.
Code:
export LD_PRELOAD=/home/yourUserName/qlh/libQLH.so
that's all - now simply enter
Code:
./qlh

Probably stealth93 should create a lil readme though
 

hoopa

New member
make is failing on my Ubuntu jaunty 32 bit machine. Any idea on how to fix?

Code:
tar xzf ghf-0.5-2.tar.gz
make -C ghf clean all 
make[1]: Entering directory `/home/mn/Desktop/qlh_distro/ghf'
rm -rf  asm.o  elf.o  utils.o  vfunction.o libghf.a ghf-test.o ghf-test ghf-0.5-2.tar.gz ghf
cc -Wall -pipe -march=i686  -ggdb -c -o asm.o asm.c
asm.c:4:21: error: dis-asm.h: No such file or directory
asm.c:30: error: expected ‘)’ before ‘from’
asm.c:35: error: expected declaration specifiers or ‘...’ before ‘bfd_vma’
asm.c:35: warning: ‘struct disassemble_info’ declared inside parameter list
asm.c:35: warning: its scope is only this definition or declaration, which is probably not what you want
asm.c: In function ‘my_perror_memory’:
asm.c:36: error: dereferencing pointer to incomplete type
asm.c:36: error: dereferencing pointer to incomplete type
asm.c: At top level:
asm.c:41: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘my_fprintf’
asm.c: In function ‘disassemble_x86’:
asm.c:48: error: ‘disassemble_info’ undeclared (first use in this function)
asm.c:48: error: (Each undeclared identifier is reported only once
asm.c:48: error: for each function it appears in.)
asm.c:48: error: expected ‘;’ before ‘info’
asm.c:49: warning: implicit declaration of function ‘init_disassemble_info’
asm.c:49: error: ‘info’ undeclared (first use in this function)
asm.c:49: error: ‘stdout’ undeclared (first use in this function)
asm.c:49: error: ‘fprintf_ftype’ undeclared (first use in this function)
asm.c:49: error: expected ‘)’ before ‘my_fprintf’
asm.c:50: error: ‘bfd_mach_i386_i386’ undeclared (first use in this function)
asm.c:51: error: ‘my_buffer_read_memory’ undeclared (first use in this function)
asm.c:55: warning: implicit declaration of function ‘print_insn_i386’
asm.c:55: error: ‘bfd_vma’ undeclared (first use in this function)
asm.c:55: error: expected expression before ‘ptr_size_t’
asm.c:55: error: expected ‘)’ before ‘addr’
asm.c: In function ‘detourFunction’:
asm.c:61: warning: implicit declaration of function ‘printf’
asm.c:61: warning: incompatible implicit declaration of built-in function ‘printf’
asm.c:73: warning: implicit declaration of function ‘perror’
asm.c:82: warning: incompatible implicit declaration of built-in function ‘printf’
make[1]: *** [asm.o] Error 1
make[1]: Leaving directory `/home/mn/Desktop/qlh_distro/ghf'
make: *** [ghf/libghf.a] Error 2
 

ByOuT

New member
ERROR: ld.so: object '/home/crxo/ql/libQLH.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/home/crxo/ql/libQLH.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/home/crxo/ql/libQLH.so' from LD_PRELOAD cannot be preloaded: ignored.
crxo@crxo-desktop:~/ql$ ./qlh
ERROR: ld.so: object '/home/crxo/ql/libQLH.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/home/crxo/ql/libQLH.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/home/crxo/ql/libQLH.so' from LD_PRELOAD cannot be preloaded: ignored.
LoadPlugin: failed to initialize shared library /home/crxo/.mozilla/firefox/d6h1tsi8.default/extensions/quakeliveplugin@idsoftware.com/plugins/npquakelive.x64.so [/home/crxo/.mozilla/firefox/d6h1tsi8.default/extensions/quakeliveplugin@idsoftware.com/plugins/npquakelive.x64.so: wrong ELF class: ELFCLASS64]

And? Ubuntu, i download all binuntils....:<
 

SDS

New member
Thanks! This seems great,but,i seem to get errors while compiling,here's what it says
Code:
tar xzf ghf-0.5-2.tar.gz
make -C ghf clean all  RELEASE=1
make[1]: Entering directory `/home/*******/Downloads/qlh_distro/ghf'
rm -rf  asm.o  elf.o  utils.o  vfunction.o libghf.a ghf-test.o ghf-test ghf-0.5-2.tar.gz ghf
cc -Wall -pipe -march=i686 -I/usr/include/libelf   -c -o asm.o asm.c
cc -Wall -pipe -march=i686 -I/usr/include/libelf   -c -o elf.o elf.c
cc -Wall -pipe -march=i686 -I/usr/include/libelf   -c -o utils.o utils.c
g++ -Wall -pipe -march=i686 -I/usr/include/libelf   -c -o vfunction.o vfunction.cpp
make[1]: g++: Command not found
make[1]: *** [vfunction.o] Error 127
make[1]: Leaving directory `/home/********/Downloads/qlh_distro/ghf'
make: *** [ghf/libghf.a] Error 2
all of the packages are installed.
My distro is Ubuntu 9.10
 

SDS

New member
Thanks for the advice,seems to compile fine now,but after executing it and going to a map,it crashes on loading map,this is what happens on the terminal before it does that:
Code:
quakelive.i386.so address: 0xb0f88000
quakelive.i386.so address: 0xb0f88000
quakelive.i386.so address: 0xaefff000
quakelive.i386.so address: 0xb0f88000
quakelive.i386.so address: 0xaefff000
cgamei386.so address: 0x9f46e000
./qlh: line 5: 20312 Segmentation fault      ./firefox $*
 
Top