|
You last visited: Today at 03:06
Advertisement
python loader [c++] project
Discussion on python loader [c++] project within the Metin2 Hacks, Bots, Cheats, Exploits & Macros forum part of the Metin2 category.
01/16/2015, 11:20
|
#1
|
elite*gold: 0
Join Date: Aug 2013
Posts: 33
Received Thanks: 5
|
python loader [c++] project
Can any body give me full c++ project for python loader [python22]
like kamer muiltihack
I try Sanchez_x code but the problem it's console I want it (windowsforum) 
Code:
#include <io.h>
#include <string>
#include <fcntl.h>
#include <Windows.h>
#include "python.h"
enum
{
FILE_NAME_MAX_LEN = 50
};
VOID Inject(VOID);
VOID CreateConsole(VOID);
DWORD WINAPI Reader(LPVOID);
CHAR Name[FILE_NAME_MAX_LEN];
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
CreateConsole();
CreateThread(NULL, NULL, Reader, NULL, NULL, NULL);
break;
}
return TRUE;
}
DWORD WINAPI Reader(LPVOID)
{
while (TRUE)
{
printf("File name: ");
fgets(Name, FILE_NAME_MAX_LEN, stdin);
Name[strlen(Name) - 1] = '\0';
Inject();
}
return FALSE;
}
VOID Inject(VOID)
{
PyRun_SimpleFileEx(PyFile_AsFile(PyFile_FromString(Name, "r")), Name, TRUE);
}
VOID CreateConsole(VOID)
{
int hConHandle;
long lStdHandle;
CONSOLE_SCREEN_BUFFER_INFO coninfo;
FILE *fp;
AllocConsole();
GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &coninfo);
coninfo.dwSize.Y = 1500;
SetConsoleScreenBufferSize(GetStdHandle(STD_OUTPUT_HANDLE), coninfo.dwSize);
lStdHandle = (long)GetStdHandle(STD_OUTPUT_HANDLE);
hConHandle = _open_osfhandle(lStdHandle, _O_TEXT);
fp = _fdopen(hConHandle, "w");
*stdout = *fp;
setvbuf(stdout, NULL, _IONBF, 0);
lStdHandle = (long)GetStdHandle(STD_INPUT_HANDLE);
hConHandle = _open_osfhandle(lStdHandle, _O_TEXT);
fp = _fdopen(hConHandle, "r");
*stdin = *fp;
setvbuf(stdin, NULL, _IONBF, 0);
lStdHandle = (long)GetStdHandle(STD_ERROR_HANDLE);
hConHandle = _open_osfhandle(lStdHandle, _O_TEXT);
fp = _fdopen(hConHandle, "w");
*stderr = *fp;
setvbuf(stderr, NULL, _IONBF, 0);
std::ios::sync_with_stdio();
}
Sorry for post a question her
|
|
|
01/16/2015, 12:52
|
#2
|
elite*gold: 405
Join Date: Dec 2007
Posts: 6,615
Received Thanks: 6,358
|
Quote:
Originally Posted by srmmt1999
Sorry for post a question her
|
Learn programming maybe and do it yourself..?
|
|
|
01/16/2015, 13:48
|
#3
|
elite*gold: 0
Join Date: Aug 2013
Posts: 33
Received Thanks: 5
|
I will
but now I need it now
|
|
|
01/16/2015, 17:13
|
#4
|
elite*gold: 726
Join Date: Jul 2010
Posts: 14,233
Received Thanks: 7,915
|
Python loader for 2.2:
|
|
|
 |
Similar Threads
|
Python & Dll Loader By Pasha37
01/17/2015 - Metin2 PServer Guides & Strategies - 6 Replies
Py load
Py unload
Dll load
Loaded py list
Loaded dll list(python 2.7)
http://i.imgur.com/lmgZP6N.jpg
https://www.mediafire.com/?fctopca7a9l484o
|
[Python-Modul]EXP-Donator (kompatibel mit Python Loader)
11/23/2013 - Metin2 Hacks, Bots, Cheats, Exploits & Macros - 27 Replies
Moin,
da man mich danach gefragt hat und ich sowieso mal ein Beispiel für die Benutzung meines Python Loaders veröffentlichen wollte, habe ich die Gelegenheit genutzt und euch eben einen EXP-Spendebot geschrieben.
Man kann ihn einfach mit dem oben verlinkten Python Module Loader laden und ihn mit F5 aktivieren/deaktivieren.
Sobald ihr mehr als 99 Erfahrungspunkte habt (man kann nur in 100er Schritten spenden), werden alle Erfahrungspunkte an eure Gilde gespendet.
Wer Lust hat und...
|
[Python]Python Loader vs import
07/29/2013 - Metin2 Private Server - 2 Replies
when i tried to inject my bot with this
pyScrLoader = ui.PythonScriptLoader()
pyScrLoader.LoadScriptFile(self, "eigenartig/mainboard.py")
syserr shows me:
0728 16:55:05139 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/hit/percent_damage1.mse) Error
0728 16:55:05139 :: CInstanceBase::RegisterEffect(eEftType=264, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/hit/percent_damage1.mse, isCache=1) - Error
0728 16:55:05139 :: CEffectManager::RegisterEffect...
|
Help to make a python file works with python loader
03/03/2013 - Metin2 - 2 Replies
Hey epvp! I want make a very. Little hack works on pythonn loader can anybody help me please?
|
Python Loader?
08/22/2012 - Metin2 - 16 Replies
HeyHo, wollte mal fragen, ob es zurzeit einene auf DE funktionstüchtigen Python Module Loader gibt?
Wenn ja, währe ich euch sehr verbunden, wenn ihr mir den Thread-Link geben würdet, Thanks im vorraus.
|
All times are GMT +1. The time now is 03:08.
|
|