PDA

View Full Version : [Source] Totenkopf's Super Simple Nametags


Quicktime
24th November 2007, 06:39
Hey all,

I know this is nothing compared to the works of patrick/wurzil but its easy to understand and I hope some noobs will learn from it.

I was going to write a simple COD4 hack using okidoki's method but PB updated to version 2.XX+ so I scraped it. Anyway, PB isnt scanning the exe yet (or at least some of the useful cvar's). I have removed all the okidoki stuff. This hack is PBPROOF for the time being.

I've written this small hack which is a very simple nametags mempatch. It patches the Nametags which draws both enemy and friendly nametags (red && Green) as well changing the distance (draws nametags overwalls etc).

There is no on/off toggle, and it uses NOPS. However, I have included the original values. I had originally intended to use this for COD4 1.0, thanks alot to silverfish for providing the 1.2 offsets. This hack is written for COD4 1.2, and is PBPROOF as of 24th/November/2007.

Screenshot:
http://www.calvinh.pwp.blueyonder.co.uk/screenshot.PNG

Main.CPP:
#include "main.h"
bool Nametags=true; // used to see if nametags is on or not.

int __stdcall DllMain(void* Module, unsigned long Reason, void* Reserved)
{
if(Reason == 1) // if injected do code below..
{

Modification(1); // turn on memory modifications
return 1;

}

return 1;

}

void __stdcall Modification(unsigned int arg)
{
if(arg == 1)
{
DWORD Protection;

// nametags
VirtualProtect((void*)lpteamc, 6, PAGE_READWRITE, &Protection);
memcpy((void*)lpteamc, (const void*)Six, 6); // nop it
VirtualProtect((void*)lpteamc, 6, Protection, 0);

//distance (visibility)
VirtualProtect((void*)lpdist, 2, PAGE_READWRITE, &Protection);
memcpy((void*)lpdist, (const void*)Two, 2); // nop it
VirtualProtect((void*)lpdist, 2, Protection, 0);

}

}

Main.H

// Totenkopf/Quicktime's Simple COD4 Nametags Example
// Written for http://www.uc-forum.com

#define teams 0x42E090 // Where the function starts
int lpteamc = teams + 0xDC; // Team Check (disable to draw both)
int lpdist = teams + 0xFE; // Distance check, if drawn through walls etc

// Nop'd values kekeke
unsigned char Two[2] = { 0x90, 0x90 };
unsigned char Six[6] = { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 };

// Original values (if you want to make an on/off toggle etc
unsigned char NameTags[6] = { 0x0F, 0x85, 0xCE, 0x00, 0x00, 0x00 };
unsigned char Distance[2] = { 0x74, 0x25 };


// memory init func proto
void __stdcall Modification(unsigned int); //proto

// This is the ollydbg info: (this is 1.0 INFO)
/*
0042E19C |. 0F85 CE000000 |JNZ iw3mp.0042E270
0042DE94 |. 0F85 09020000 JNZ iw3mp.0042E0A3

0042E19C 0F84 CE000000 JE iw3mp.0042E270
0042DE94 0F84 09020000 JE iw3mp.0042E0A3
*/

Download full project:
http://www.mpcforum.com/showthread.php?p=1977064#post1977064

Have fun,

Totenkopf.

EDIT: I will code an injector to go with this when I can be bothered

Detected.

SyD1337
24th November 2007, 09:24
Great post. You hit it on the head. :) A noob like me. :x

Madvillian77
24th November 2007, 10:13
Will try it out, thx for the work.

shimano
24th November 2007, 18:33
Works great, good job

Quicktime
24th November 2007, 21:45
thanks alot for the feedback ;)

KCKCKC2004
24th November 2007, 23:10
code an injector please!

0o0o0o0o0
25th November 2007, 22:33
i compiled it and im using codjunkie's loader to inject it and its working great.. alot less lag then having full on WH also..chams would be a good addition

i can attach a zip with this compiled and codjunkies loader if people need it and its allowed

LiMiTED
25th November 2007, 22:53
plz release it =)

Trigg
25th November 2007, 23:45
im guessin u have to know a thing or 2 about coding to get this to work?

0o0o0o0o0
26th November 2007, 00:42
here im just gonna post a link to it

I take no credit for this work nor have i modified these files in any way

Loader - codjunkie
NameTags - Totenkopf

To use open the loader, first you point to your "iw3mp.exe" in your cod4 dir
next point to the "SimpleNameTags.dll" in the name tags folder


enjoy - once again if this isnt allowed with out a moderators approval i apologize, just trying to help

Trigg
26th November 2007, 00:50
once im in game what do i do? because i did what u said and it loaded up..once in game it just played normal..

0o0o0o0o0
26th November 2007, 01:17
there is no hotkey it is always on

make sure that cg_drawFriendlyNames is set to 1

and that your using 1.2 and not 1.1 or 1.0

Trigg
26th November 2007, 01:23
i did and i still get nothing..i have v1.2 .. i downloaded the fileds u gave me..clicked the .exe directed it to my iw3mp then it asked me for the library thing i directed it to the simplenametags.dll then it loaded into the game...then i hit ` and typed cg_drawfriendlynames 1 then i went into a server and...nothing

scruie
26th November 2007, 01:57
here im just gonna post a link to it

I take no credit for this work nor have i modified these files in any way

Loader - codjunkie
NameTags - Totenkopf

To use open the loader, first you point to your "iw3mp.exe" in your cod4 dir
next point to the "SimpleNameTags.dll" in the name tags folder


enjoy - once again if this isnt allowed with out a moderators approval i apologize, just trying to help


Attached file to post.

If local mod wants to remove then feel free to do so.

0o0o0o0o0
26th November 2007, 03:02
thanks scruie

and to anyone who cant get it to work by following the instructions i gave im sorry but i dont know enough about the game or the hack to really help beyond that

just got the game a few days ago myself.. noticed people walling me in the death cam so i decided to see what was out there

Trigg
26th November 2007, 03:13
o i figured it out..it doesnt work in ffa's

SyD1337
26th November 2007, 05:30
thanks scruie

and to anyone who cant get it to work by following the instructions i gave im sorry but i dont know enough about the game or the hack to really help beyond that

just got the game a few days ago myself.. noticed people walling me in the death cam so i decided to see what was out there

May I ask if you remember who was walling you? The non-PB servers are getting owned with hacks now. I was to win with a lead of 1000 points. Now I have to also fight other people with the same hacks. lol :bandit:

I guess it is time to write my own stuff. :D

0o0o0o0o0
26th November 2007, 05:37
nah i dont take note of people who are hacking

it was a pb server but its also a cracked server

if you guys wanna have fun hacking in a server go here

BlackDove says: cracked server removed

the admins hack but they all deny it and will kick you if you call them out on it

the one guy scoped at a model thru the wall then realized it and went around the wall and killed the guy, it was 2v1 situation and the bomb had been planted no reason for him to stop half way there and scope at a random wall

i laughed about it, basically letting him know we all noticed and he flipped out

ohnoes banned from a cracked server.. guess ill just go down the list

Madvillian77
26th November 2007, 06:33
here im just gonna post a link to it

I take no credit for this work nor have i modified these files in any way

Loader - codjunkie
NameTags - Totenkopf

To use open the loader, first you point to your "iw3mp.exe" in your cod4 dir
next point to the "SimpleNameTags.dll" in the name tags folder


enjoy - once again if this isnt allowed with out a moderators approval i apologize, just trying to help thanks for the loader man, it works great. makes it much easier. i played in a pb server for a hour no problem.

Akitsaws
26th November 2007, 07:52
This isn't PB dected yet if your wondering.

Can it be detected? Probably eh. Im new to hacking.

Madvillian77
26th November 2007, 08:11
This isn't PB dected yet if your wondering.

Can it be detected? Probably eh. Im new to hacking. im sure sooner or later it will be as they start there patch frenzy

$Kobsa$
26th November 2007, 20:16
I hope the author will keep the hack alive
thanks!

Shizarp
26th November 2007, 22:27
this is already detected sorry guys :D

0o0o0o0o0
27th November 2007, 00:05
its not detected, just played with it for about an hour.. the cracked key you were using probably got banned by someone else using a different hack

remember when your playing with a generated key there are also other people using the same key

Akitsaws
27th November 2007, 01:11
Is it detected or not?

Anyway, How do the coders get hacks that are dected, undetected again.

What do they have to do, do they have to alter the coding or something, or what?

Just wondering.

One more newbish question.

When hack gets detected, and you try to use them in a server, do you get banned right away?

Or do you have a chance to leave and stop using them before you do get banned?

BlackDove
27th November 2007, 02:01
You will get kicked for Corrupted File / Memory when this hack is detected unless Even Balance decides to directly scan / ban for it. Corrupted File / Memory has never been a PB bannable offense.

Even Balance is waiting or silently detecting so they can mass ban / detect at once. They do this with new games.

0o0o0o0o0
27th November 2007, 02:06
right on, i dunno how you would go about knowing if a cheat is detected if they do it that way then =\

i know ive been using this particular cheat alot today, and while i see other people being banned(mostly the same guid) i havent had any trouble aside from the servers which i have been banned from by server admins, damn ip bans

it will have to do while im patiently awaiting a fix for n7's chams

$Kobsa$
27th November 2007, 13:14
Sorry im new and maybe make dumb questions:
1.Do i need to fear IP ban if i have a dynamic IP?
2. i use cracked version and play on cracked servers so if PB bans me i can simply change the cd key and play again,or im wrong?

BlackDove
27th November 2007, 14:51
1. PB does not ban IPs. Game server admins can, but they can only ban you from one server.

2. Don't discuss cracked servers / keys please. If you get a Global PB GUID Ban then yes, replacing the illegal CD key with a new unused working multiplayer CD key will bypass the ban.

$Kobsa$
27th November 2007, 16:28
thanks for answer!

ok no discuss about cracks

GlexSoldier
27th November 2007, 20:50
This has been detected. Been kicked for PB Violation (2 minute ban) across multiple servers using my own ligitiment CD key.

saldivizio
27th November 2007, 21:54
Yes I used it for about 2 hours then was kicked with the two minute ban thing. Now I am GLOBAL GUID banned. Damn these primitive releases. Pretty f**kin lame because I was level 55 and got there all legit. Now I will need a REMOVED. Thanks!

BlackDove says: use hacks at own risk. Don't complain when you knew there was a risk clicking the Download button and using the hack.

0o0o0o0o0
27th November 2007, 22:03
Yes I used it for about 2 hours then was kicked with the two minute ban thing. I kept using it and am now GLOBAL banned. Damn primitive releases.

wow you ungrateful bastard.

if you dont realize the risk in using Public cheats then you deserve whatever fate falls upon you

dont blame the release, if your not using a cracked key.. either pay for cheats that are secure or dont cheat.. thats the only way to be safe

saldivizio
27th November 2007, 22:10
wow you ungrateful bastard.

if you dont realize the risk in using Public cheats then you deserve whatever fate falls upon you

dont blame the release, if your not using a cracked key.. either pay for cheats that are secure or dont cheat.. thats the only way to be safe

We don't discuss CRACKED KEYS here.

Why don't you guys test these things out for awhile before posting them? What are we guinea pigs?

BTW LOL @ buying ANY cheat. Now that is total NUB.

0o0o0o0o0
27th November 2007, 22:23
you joined today, and just bitch.

i like how you consider yourself "WE"

i didnt discuss or post a cracked key, i said if your not using one you should be a little more cautious and not just go around using any hack u can find

every action has consequence this is yours, enjoy

edit: dont consider it buying cheats..consider it paying the people who make them for their time and effort to keep you with up to date cheats and unbanned.. if that doesnt seem like something worth the money then continue using public cheats

and as far as "US" being the "guinea pigs" this cheat worked for some time without any problems, so it wasnt detected when it got released, it was released and then became detected

there is always risk involved in using public cheats, accept it or play legit

$Kobsa$
27th November 2007, 23:25
i played happy with this hack 2 days untill now and everything was great
i hope somebody will make this hack pb proof again or create a new one

2 saldivizio:
nobody asked u to use this hack and i sure u knew the risk to be baned and such

Quicktime
27th November 2007, 23:46
Yes I used it for about 2 hours then was kicked with the two minute ban thing. Now I am GLOBAL GUID banned. Damn these primitive releases. Pretty f**kin lame because I was level 55 and got there all legit. Now I will need a key generator. Thanks!

Irc > QuakeNet > #care

You obviously understood the risks when downloading the cheat and intending to use it especially with public hacks. If your so angry about a 'primitive release' go code your own ****ing hack.

Why don't you guys test these things out for awhile before posting them? What are we guinea pigs?

BTW LOL @ buying ANY cheat. Now that is total NUB.

This was tested before it was released and it worked fine. All it did was modifiy a un-protected cvar... How can you say buying cheats is noob if you cant even code your own proof one?

Punkbuster obviously saw this release and patricks on GD which is very similar, found the offset and updated and now scan it (they didnt before this was released).

This is a source designed to aid those looking to code hacks especially those who have read alot of the content on mem patching the battlefield games.

skillz101
28th November 2007, 12:26
Yes I used it for about 2 hours then was kicked with the two minute ban thing. Now I am GLOBAL GUID banned. Damn these primitive releases. Pretty f**kin lame because I was level 55 and got there all legit. Now I will need a REMOVED. Thanks!

BlackDove says: use hacks at own risk. Don't complain when you knew there was a risk clicking the Download button and using the hack.

should maybe try coding your own then? and hanging aboot here looking for free hax is NUB

xConrex
28th November 2007, 19:53
Pretty Nice Release

Dont Know If it was alot of work

butta im 110% sure that u make pretty much ppl happy with it =)

Good job

stickybun
30th November 2007, 18:45
this is detected end of, until updated

drewpaul86
1st December 2007, 13:13
i compiled it and im using codjunkie's loader to inject it and its working great.. alot less lag then having full on WH also..chams would be a good addition

chams = same lag as wallhack

You have to hook the same function and then anything you can see with wallhack is still being colored when you don't have wallhack on, you just can't see it.


As for this release, it's very good. I'd say more than anything hopefully people can learn from this. Especially since no recoil is done with very basic memory modifications as well. Tho it's a bit harder to find, no strings to search for. Granted the initial part of this hack can't be done by string searching either so good job.