Register for your free account! | Forgot your password?

You last visited: Today at 08:46

  • Please register to post and access all features, it's quick, easy and FREE!


PyLoader (Python 2.7)

Discussion on PyLoader (Python 2.7) within the Metin2 Hacks, Bots, Cheats, Exploits & Macros forum part of the Metin2 category.

Reply
 
Old 05/24/2016, 23:21   #16
 
elite*gold: 0
Join Date: Mar 2011
Posts: 66
Received Thanks: 13
0524 23:21:19252 :: Traceback (most recent call last):

0524 23:21:19252 :: File "<string>", line 1, in <module>

0524 23:21:19252 :: File "system.py", line 163, in __hybrid_import

0524 23:21:19252 :: ImportError
0524 23:21:19252 :: :
0524 23:21:19252 :: Bad magic number in C:\Users\User\Downloads\Tsuyoshi2.0 - Client 1.2\m2kmod\__init__.pyc
0524 23:21:19252 ::
MasterGamer1 is offline  
Old 05/25/2016, 09:01   #17
 
elite*gold: 0
Join Date: Mar 2008
Posts: 18
Received Thanks: 18
Quote:
Originally Posted by MasterGamer1 View Post
0524 23:21:19252 :: Traceback (most recent call last):

0524 23:21:19252 :: File "<string>", line 1, in <module>

0524 23:21:19252 :: File "system.py", line 163, in __hybrid_import

0524 23:21:19252 :: ImportError
0524 23:21:19252 :: :
0524 23:21:19252 :: Bad magic number in C:\Users\User\Downloads\Tsuyoshi2.0 - Client 1.2\m2kmod\__init__.pyc
0524 23:21:19252 ::
There is a problem with decompiling this file because as klo says it was compiled with different version of python (2.2) so I guess you have to wait till he releases updated version of his mod.
maximus780 is offline  
Old 05/30/2016, 15:17   #18
 
elite*gold: 0
Join Date: Sep 2011
Posts: 530
Received Thanks: 21
Quote:
Originally Posted by 123klo View Post
try to open the file "syser.txt" of your metin2 client and post the content here. Anyway the latest m2kmod version wont work for 2.7 clients at the moment because they are only compiled for 2.2 client. But on 01.06 I will release an update for 2.7 and some other features.

the latest version of maximus780 works with m2kmod now (wait for the update next week)
Would be really nice want to start cheat at .sg
schmifi96 is offline  
Old 05/30/2016, 20:02   #19
 
elite*gold: 0
Join Date: Dec 2014
Posts: 421
Received Thanks: 190
Quote:
Originally Posted by 123klo View Post
it works with small scripts but when I try to execute longer scripts the client crashes. Any idea for a solution? the other public pyloader (v2.7) have the same problem.
hook mainthread in game routine (onupdate or onrender) and execute python code from there
_asm is offline  
Old 05/30/2016, 21:09   #20
 
elite*gold: 726
Join Date: Jul 2010
Posts: 14,240
Received Thanks: 7,909
Quote:
Originally Posted by _asm View Post
hook mainthread in game routine (onupdate or onrender) and execute python code from there
first I have no idea how to implement it and secondly it is more difficult to make it work for every pserver client.
noahrmal is offline  
Old 05/30/2016, 22:48   #21
 
elite*gold: 0
Join Date: Dec 2014
Posts: 421
Received Thanks: 190
will this community ever turn their brains on and finally do something right?
like seriously, this method of accessing the mainthread of the game routine is known for 6 years now and yet no one except some users who already left this board (probably because of it's stupidity) have contributed something to this section.

I'm not salty or directly saying this to you, everyone is meant and I'm not saying that because I'm any better than you guys. In fact, I just took the advice from the previous members.
it's just sad coming back here after 4 months and seeing that there's still no change in this section.
_asm is offline  
Old 05/31/2016, 10:44   #22
 
elite*gold: 0
Join Date: May 2008
Posts: 1,415
Received Thanks: 5,429
Quote:
Originally Posted by _asm View Post
will this community ever turn their brains on and finally do something right?
like seriously, this method of accessing the mainthread of the game routine is known for 6 years now and yet no one except some users who already left this board (probably because of it's stupidity) have contributed something to this section.

I'm not salty or directly saying this to you, everyone is meant and I'm not saying that because I'm any better than you guys. In fact, I just took the advice from the previous members.
it's just sad coming back here after 4 months and seeing that there's still no change in this section.
the hook method is even public in this forum
i dont remember where but his name is infinity something and released multihack with source
KaMeR1337 is offline  
Old 05/31/2016, 11:04   #23
 
elite*gold: 0
Join Date: Feb 2008
Posts: 2,754
Received Thanks: 1,748
Quote:
Originally Posted by KaMeR1337 View Post
the hook method is even public in this forum
i dont remember where but his name is infinity something and released multihack with source
Yep, here:

It's just important to use inline-asm hooks, since it will crash otherwise if you don't call some specific python functions.
Basically:


Code:
void hook_main()
{
     _asm pushad
     // do stuff
     _asm popad

      return (*original_main_func)();
}
Oh, and @:
It's way easier to make it work on every private servers since those functions stood the same since like ever.
Computerfreek is offline  
Old 05/31/2016, 18:35   #24
 
elite*gold: 0
Join Date: Dec 2014
Posts: 421
Received Thanks: 190
Quote:
Originally Posted by Computerfreek View Post
Yep, here:

It's just important to use inline-asm hooks, since it will crash otherwise if you don't call some specific python functions.
Basically:


Code:
void hook_main()
{
     _asm pushad
     // do stuff
     _asm popad

      return (*original_main_func)();
}
Oh, and @:
It's way easier to make it work on every private servers since those functions stood the same since like ever.
actually the method has been released .

and for ***'s sake, use function pointers and an actual hook library like instead of those ugly inline assembler hooks.
I literally can't repeat myself with the ugliness of code that is still used on this board. for ****'s sake learn c++ before reversing a game
_asm is offline  
Old 05/29/2017, 18:01   #25
 
elite*gold: 0
Join Date: Jun 2015
Posts: 8
Received Thanks: 2
For some reason, when I try to load m2kmod using your pyloader, it crashes (Metin 2 Singapore) so I'd like someone to please help me.

Bear in mind, I don't know anything with python and these codes, thanks
mizozaki is offline  
Old 05/30/2017, 04:10   #26
 
elite*gold: 0
Join Date: Jun 2011
Posts: 98
Received Thanks: 48
Quote:
Originally Posted by mizozaki View Post
For some reason, when I try to load m2kmod using your pyloader, it crashes (Metin 2 Singapore) so I'd like someone to please help me.

Bear in mind, I don't know anything with python and these codes, thanks


You just gave your self the Answer: " I don't know anything with python and these codes"
stunthacker is offline  
Old 05/31/2017, 20:42   #27
 
elite*gold: 0
Join Date: Dec 2012
Posts: 12
Received Thanks: 1
Any python scripts for Send attack to target (called Hidden or Autoattack- ProDamage however)
if there are some... let me know pls
MagicJunkY is offline  
Old 06/03/2017, 08:32   #28
 
elite*gold: 0
Join Date: Jul 2010
Posts: 20
Received Thanks: 1
I have a little server which still uses python2.2 and it seems that either PyGILState_Ensure doesn't exist in 2.2 or the function is wrong, where did you find parameters and actual implementation of your version's GIL?
dex73r is offline  
Old 06/03/2017, 18:13   #29
 
elite*gold: 0
Join Date: Mar 2008
Posts: 18
Received Thanks: 18
Quote:
Originally Posted by dex73r View Post
I have a little server which still uses python2.2 and it seems that either PyGILState_Ensure doesn't exist in 2.2 or the function is wrong, where did you find parameters and actual implementation of your version's GIL?
Hi GIL exists in Python since version 2.3 you can re-implement PyGILState_Ensure on your own:



This is how you'd do it in pre 2.3
Code:
PyThreadState* currentstate = PyThreadState_Get()
PyThreadState* tstate = PyThreadState_New(currentstate->interp);
PyEval_AcquireThread(tstate);

// Call python here

PyEval_ReleaseThread(tstate);
PyThreadState_Delete(tstate);
maximus780 is offline  
Thanks
1 User
Old 06/03/2017, 19:13   #30
 
elite*gold: 0
Join Date: Jun 2011
Posts: 98
Received Thanks: 48
Quote:
Originally Posted by MagicJunkY View Post
Any python scripts for Send attack to target (called Hidden or Autoattack- ProDamage however)
if there are some... let me know pls

Not Possible in python alone
stunthacker is offline  
Reply


Similar Threads Similar Threads
[Python Frage] Python aus Clienten importieren
04/23/2016 - Metin2 Private Server - 16 Replies
Guten Tag. Ich habe eine kleine Frage. Da ich es selber nicht verstehe und mit Python einfach nichts kann, frage ich mal wieder euch lieben, da ihr mir bis jetzt immer geholfen habt. Ich möchte meinen Skript im Spiel testen ohne die .epk und .eix dauernd zu verpacken/entpacken. Deshalb möchte in in die Game.py in der root.epk eine Art Pfad importieren. Das heißt, ich will es ungefähr so machen: https://i.gyazo.com/9875d4bbe00655e4af5efbe19789c e14.png Natürlich ist dies nur ein...
[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...
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?
Metin2 - Python - Wie Python Hacks verschlüsseln und Server überprüfen (GF/PServe)
09/23/2012 - Metin2 - 2 Replies
Ich wollte fragen, wie man Python Hacks am besten Verschlüsselt ? und wie man feststellen kann ob man auf einem GF / Pserver spielt. ?
Python + Eric Python IDE installieren ?!
07/05/2011 - General Coding - 0 Replies
hat sich erledigt.



All times are GMT +1. The time now is 08:46.


Powered by vBulletin®
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2021 elitepvpers All Rights Reserved.