Raised This Month: $ Target: $400
 0% 

ITempEntsSystem signature =)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 04-25-2006 , 10:59   ITempEntsSystem signature =)
Reply With Quote #1

Code:
#define DispatchEffect_Sig "\x83\xEC\x20\x56\x8D\x4C\x24\x04\xE8\xB3\x3F\xFC\xFF\x8B\x74\x24"
#define DispatchEffect_SigBytes			16
#define DispatchEffect_Offset	x29

#define SIGFIND( var, type, sig, sigbytes ) \
	var = (type)g_SigMngr.ResolveSig(laddr, sig, sigbytes); \
	META_CONPRINTF("[ZOMBIE] %p\n", var); \
	if (!var) { \
		snprintf(error, maxlen, "Could not find all sigs!\n%s:%d\n", __FILE__, __LINE__); \
		return false; \
	}
void *vDisptachEffect = NULL;
SIGFIND( vDisptachEffect,	void *,	DispatchEffect_Sig, DispatchEffect_SigBytes );
memcpy(&m_TempEnts, ((char*)vDisptachEffect + DispatchEffect_Offset), sizeof(char*));
int *ptr = *( (int **)(m_TempEnts) );
m_TempEnts = (ITempEntsSystem *)ptr;
if ( !m_TempEnts )
{
	snprintf(error, maxlen, "Could not find all sigs!\n%s:%d\n", __FILE__, __LINE__);
	return false;
}
vDisptachEffect = NULL;
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
Mani
Veteran Member
Join Date: Dec 2004
Location: UK
Old 04-25-2006 , 11:29  
Reply With Quote #2

Do you have any idea if the signature is portable across all Source based mods ?

Mani
__________________
Installation files, documentation and help can be found at: -

www.mani-admin-plugin.com
Mani is offline
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 04-25-2006 , 13:03  
Reply With Quote #3

I used DispatchSpawn for the referance function, so very possibly. I dont have anything except DOD:S installed, ill go check with that right now.

EDIT: That doesn't work for DOD:S so im going to wait for IDA to finish running on the server.dll and find a sig with wild cards. The one above didn't yet have wild cards inserted.
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 04-25-2006 , 13:44  
Reply With Quote #4

Code:
#define DispatchEffect_Sig							"\x83\xEC\x20\x56\x8D\x4C\x24\x04\xE8\x2A\x2A\xFC\xFF\x8B\x74\x24"
That should work for *all* mods, try it and let me know. Notice the 2 * \x2A, thats the wild cards =)
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
CoolPeter
Member
Join Date: Nov 2005
Old 06-04-2006 , 04:46  
Reply With Quote #5

I tried that with SeLfkiLLs sigscan method, but it crashs all the time.
Can someone help me with that?

Code:
DispatchEffect_Sig.Init("DispatchEffect",
	(unsigned char*)"\x83\xEC\x20\x56\x8D\x4C\x24\x04\xE8\xB3\x3F\xFC\xFF\x8B\x74\x24",
	"xxxxxxxxx??xxxxx",
	16);

if(DispatchEffect_Sig.is_set) {
	memcpy(&te, ((char*)DispatchEffect_Sig.addr + 29), sizeof(char*));
	int *ptr = *((int **)(te));
	te = (ITempEntsSystem *)ptr;
}
Edit:

Ok, i got it... changed 29 to 0x29 or 41
CoolPeter is offline
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 07-03-2006 , 10:07   Re: ITempEntsSystem signature =)
Reply With Quote #6

This sig broke in the latest DOD:S update, im working on fixing it, just waiting for IDA to finish on the new dll.
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 07-03-2006 , 10:11   Re: ITempEntsSystem signature =)
Reply With Quote #7

Code:
#define DispatchEffect_Sig "\x83\xEC\x20\x56\x8D\x4C\x24\x04\xE8\x2A\x2A\x2A \xFF\x8B\x74\x24"
Haven't checked if the offset is still the same yet.
__________________

Last edited by c0ldfyr3; 04-02-2007 at 04:21.
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode