[RELEASE + HOW TO]Loading DLL On The Client With Python (ctypes)

11/07/2014 11:24 WarXWar#1
Download the ctypes.rar (compatible python 2.2) on the "Attach files" in this topic and extract it into lib folder of the client.

Now you could use all the function of ctypes.

EXAMPLE TO LOAD A LIB (EX. AntiHack):

Quote:
from ctypes import windll;
windll.kernel32.LoadLibraryA("antihack_into_client.dll");
if windll.kernel32.GetModuleHandleA("antihack_into_client.dll") == 0: app.Abort();
OTHER EXAMPLE PADMACK BONUS SWITCHER INGAME:

Code:
onPressKeyDict[app.DIK_F10] = lambda : self.__CtypesPadmack()

def __CtypesPadmack(self):
	from ctypes import windll;
	if windll.kernel32.GetModuleHandleA("switchbotv3.dll") == 0:
		windll.kernel32.LoadLibraryA("switchbotv3.dll") #or the name of the switchbot's dll
		if windll.kernel32.GetModuleHandleA("switchbotv3.dll") == 0:
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Switchbot failed!")
	else:
		chat.AppendChat(chat.CHAT_TYPE_INFO, "Switchbot already started!")
MessageBoxA in Python:

Code:
from ctypes import windll;
windll.user32.MessageBoxA(None, "Message", "Title", 0);
11/07/2014 13:40 [uLow]Beni#2
Should work but not really useable real, normally you can inject a dll easier than a python file.
11/03/2016 22:32 PeterPan30#3
Can somebody explain where i have to place the hack dll?
I already have a working .py file... how can i start a dll with it?