Jump to content

Multiple Login Saver System


Recommended Posts

  • Premium

M2 Download Center

This is the hidden content, please
( Internal )

Hello,

Today I wanted to share with you something that I made quite some time ago that might turn useful to somebody.
The package was made without putting too much effort into it so if you find anything that might be off please notify me and I will update it.

The script does some basic encryption and saves the encryption key into your win registry so the decrypt works only on your machine, this doesn't mean that this is somehow secure, it's just the way I did it.

How it works

 

2042192soeyr.gif

DL (Mega) :

This is the hidden content, please

If you need the extra compiled libs, here you go: 

This is the hidden content, please


...I will also relase my other stuff, when I will find it...

  • Metin2 Dev 166
  • kekw 2
  • Eyes 5
  • Dislove 3
  • Sad 1
  • Think 3
  • Confused 1
  • Scream 2
  • Lmao 1
  • Good 50
  • Love 6
  • Love 91
Link to comment
Share on other sites

Hello, i have a problem:

 

0208 16:59:00478 :: Traceback (most recent call last):

0208 16:59:00478 ::   File "introLogo.py", line 60, in OnUpdate

0208 16:59:00478 ::   File "networkModule.py", line 177, in SetLoginPhase

0208 16:59:00478 ::   File "system.py", line 130, in __pack_import

0208 16:59:00478 ::   File "system.py", line 110, in _process_result

0208 16:59:00478 ::   File "introLogin.py", line 19, in <module>

0208 16:59:00478 ::   File "system.py", line 130, in __pack_import

0208 16:59:00478 ::   File "system.py", line 110, in _process_result

0208 16:59:00478 ::   File "uiSelectCredentials.py", line 5, in <module>

0208 16:59:00478 ::   File "system.py", line 130, in __pack_import

0208 16:59:00479 ::   File "system.py", line 110, in _process_result

0208 16:59:00479 ::   File "intrologin.py", line 20, in <module>

0208 16:59:00479 ::   File "system.py", line 137, in __pack_import

0208 16:59:00479 ::   File "base64.py", line 8, in <module>

0208 16:59:00479 ::   File "system.py", line 137, in __pack_import

0208 16:59:00479 :: ImportError
0208 16:59:00479 :: : 
0208 16:59:00479 :: Bad magic number in C:\Users\Noel\Desktop\Jelenlegi_HU_kliens\lib\re.pyc
0208 16:59:00479 :: 

 

you can help me?

Link to comment
Share on other sites

  • Forum Moderator

Nice idea, but I'd use crypt.triple_des, for save data, like:

# write
open(fileName, 'wb').write((crypt.triple_des(unhex(your_hex_str))).encrypt(cPickle.dumps({'userID': userID, 'userPassword': userPassword}), ' '))
# read
self.loginDataDict = cPickle.loads((crypt.triple_des(unhex(your_hex_str))).decrypt(open(fileName, "rb").read(), ' '))

 

  • Metin2 Dev 2
  • Love 1
Link to comment
Share on other sites

  • Premium

 

2 hours ago, Noel said:

Hello, i have a problem:

 

0208 16:59:00478 :: Traceback (most recent call last):

0208 16:59:00478 ::   File "introLogo.py", line 60, in OnUpdate

0208 16:59:00478 ::   File "networkModule.py", line 177, in SetLoginPhase

0208 16:59:00478 ::   File "system.py", line 130, in __pack_import

0208 16:59:00478 ::   File "system.py", line 110, in _process_result

0208 16:59:00478 ::   File "introLogin.py", line 19, in <module>

0208 16:59:00478 ::   File "system.py", line 130, in __pack_import

0208 16:59:00478 ::   File "system.py", line 110, in _process_result

0208 16:59:00478 ::   File "uiSelectCredentials.py", line 5, in <module>

0208 16:59:00478 ::   File "system.py", line 130, in __pack_import

0208 16:59:00479 ::   File "system.py", line 110, in _process_result

0208 16:59:00479 ::   File "intrologin.py", line 20, in <module>

0208 16:59:00479 ::   File "system.py", line 137, in __pack_import

0208 16:59:00479 ::   File "base64.py", line 8, in <module>

0208 16:59:00479 ::   File "system.py", line 137, in __pack_import

0208 16:59:00479 :: ImportError
0208 16:59:00479 :: : 
0208 16:59:00479 :: Bad magic number in C:\Users\Noel\Desktop\Jelenlegi_HU_kliens\lib\re.pyc
0208 16:59:00479 :: 

 

you can help me?

Bad magic number seems to be because the pyc file mismatches with your python version.

Check your python version, I took these libraries from python27 . You can download the correct python version from the official website and you will have the libs by adding them if needed with pip. The version is listed in the properties of your python dll.

Re.pyc seems odd though, I did not use it my script but maybe it got upset because of the extra libs.

Good idea @VegaS™, with some goodwill on my side I will eventually update the package but any help beforehand by anybody who wants to rewrite that part is welcome

  • Love 1
Link to comment
Share on other sites

  • 2 weeks later...

Hi i get this error 

0219 00:01:19765 :: Traceback (most recent call last):

0219 00:01:19766 ::   File "ui.py", line 1023, in CallEvent

0219 00:01:19766 ::   File "ui.py", line 88, in __call__

0219 00:01:19766 ::   File "ui.py", line 70, in __call__

0219 00:01:19766 ::   File "introLogin.py", line 1438, in __OnClickSaveLoginButton

0219 00:01:19766 ::   File "introLogin.py", line 1431, in __ReadSavedPassword

0219 00:01:19766 ::   File "introLogin.py", line 1425, in __GeneratePassword

0219 00:01:19767 ::   File "introLogin.py", line 1421, in __GenerateRandomWord

0219 00:01:19767 :: NameError
0219 00:01:19767 :: : 
0219 00:01:19767 :: global name 'string' is not defined
0219 00:01:19767 :: 

0219 00:02:13189 :: Traceback (most recent call last):

0219 00:02:13189 ::   File "ui.py", line 1023, in CallEvent

0219 00:02:13189 ::   File "ui.py", line 88, in __call__

0219 00:02:13189 ::   File "ui.py", line 70, in __call__

0219 00:02:13189 ::   File "introLogin.py", line 1459, in __OnClickLoginAutoButton

0219 00:02:13190 ::   File "system.py", line 115, in open

0219 00:02:13190 :: IOError
0219 00:02:13190 :: : 
0219 00:02:13190 :: [Errno 2] No such file or directory: 'user//preferred'
0219 00:02:13190 :: 

0219 00:02:14113 :: Traceback (most recent call last):

0219 00:02:14113 ::   File "ui.py", line 1023, in CallEvent

0219 00:02:14113 ::   File "ui.py", line 88, in __call__

0219 00:02:14113 ::   File "ui.py", line 70, in __call__

0219 00:02:14113 ::   File "introLogin.py", line 1459, in __OnClickLoginAutoButton

0219 00:02:14113 ::   File "system.py", line 115, in open

0219 00:02:14113 :: IOError
0219 00:02:14113 :: : 
0219 00:02:14113 :: [Errno 2] No such file or directory: 'user//preferred'
0219 00:02:14113 :: 

0219 00:02:22279 :: Traceback (most recent call last):

0219 00:02:22279 ::   File "ui.py", line 1023, in CallEvent

0219 00:02:22280 ::   File "ui.py", line 88, in __call__

0219 00:02:22280 ::   File "ui.py", line 70, in __call__

0219 00:02:22280 ::   File "introLogin.py", line 1438, in __OnClickSaveLoginButton

0219 00:02:22280 ::   File "introLogin.py", line 1431, in __ReadSavedPassword

0219 00:02:22280 ::   File "introLogin.py", line 1425, in __GeneratePassword

0219 00:02:22280 ::   File "introLogin.py", line 1421, in __GenerateRandomWord

0219 00:02:22280 :: NameError
0219 00:02:22280 :: : 
0219 00:02:22280 :: global name 'string' is not defined
0219 00:02:22280 :: 

in cliente 

image.th.png

open but no save any password

 

  • Metin2 Dev 3
Link to comment
Share on other sites

  • 2 months later...
  • Forum Moderator

Did you tried to add imports at begin of file < introLogin.py?

import random, string

 

  • Love 1
Link to comment
Share on other sites

1 hour ago, VegaS™ said:

Did you tried to add imports at begin of file < introLogin.py?


import random, string

 

Hi Vegas! Yes!

Spoiler

YwnXe9c.png

Spoiler

vUH4pSV.png

 

Spoiler

hG7j1N2.png

tabs are ok, and i tried even with "".join (thinking it was '' fault) 
p.s: the line is 1052 (i added an import later)

and this is the .py

https://pastebin.com/3xZRuLb8

could be because i'm using python 2.2? I can't get it work with 2.2?

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Forum Moderator
1 hour ago, Aioria said:

could be because i'm using python 2.2? I can't get it work with 2.2?

I can't read your file because atm i'm at phone,  you're not using the same minor version of python interpreter, the pyc (compiled bytecode) module was compiled for example 2.7 vs. 2.2, but this can't be the real problem since you don't get Bad magic number.

1 hour ago, Aioria said:

vUH4pSV.png

So i assume your problem is with the sequence (sequence of the elements to be joined) from join method.
Basically there's a list comprehensions, list comprehensions provide a concise way to create lists.

new_list = []
for item in old_list:
    new_list.append(item)

You can obtain the same thing using list comprehension:

new_list = [item for item in old_list]

The list comprehension always returns a result list.

# Now
return ''.join(random.choice(letters) for i in range(length))
# After
return ''.join([random.choice(letters) for i in range(length)])

That's because python22 isn't so smart. (18 years ago)

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

? that's interesting, thank you! 
Anyway it did work for that issue, (thank you again), but now it gives me a new error and don't know where looking for cause it just print me this

Spoiler

vDQ1hdi.png

while in intrologin.py at 176 there is this:

Spoiler

aikjj26.png

and a line 24 there are imports:

Spoiler

Joom4ov.png

I hate these errors, (I) never know where to look.

and at system.py 136:

Spoiler

d6XepuS.png

 

--- edit 1
Ok the issue is with the importing file in intrologin.py, but i don't know why, and mostly why syntax error and another error?

--- edit 2
I checked and probably there is another issue about python version in uiselectcredentials i think, am i wrong? ?

--- edit 3
I think the issue is here:

	def __OnOK(self):
		selItem=self.fileListBox.GetSelectedItem()
		if selItem:
			if self.selectEvent:
				self.selectEvent(selItem.GetText())
			with open('user//preferred','w') as mainpg:
				mainpg.write("{};{}".format(selItem.GetText(),self.GetPwdFromId(selItem.GetText())) )
			self.__PopupMessage("Account name {} selected.".format(selItem.GetText()))
			self.Hide()
		else:
			self.__PopupMessage("You did not select any account.")

 but i don't know, i though it was the double slash / / in "with open" but stil gives me syntax error

ok I'm pretty sure (but i could be wrong) that it's this lines fault:

			with open('user//preferred','w') as mainpg:
				mainpg.write("{};{}".format(selItem.GetText(),self.GetPwdFromId(selItem.GetText())))

but how make them work in python 2.2? ?

ok probably i'm wrong but i'm trying in this way

				mainpg = open("user//preferred", "w")
				mainpg.write("{};{}".format(selItem.GetText(),self.GetPwdFromId(selItem.GetText())))

but now i have to fight against bad magic number, and can't fine base64 for python 2.2 ?

--- edit idon'trememberthenumber

Ok base64 is the only .pyc for python 2.2 i found, missing random.pyc, struct.pyc, hashlib.pyc  and _winreg.pyc 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Premium
On 4/25/2019 at 1:01 PM, Aioria said:

? that's interesting, thank you! 
Anyway it did work for that issue, (thank you again), but now it gives me a new error and don't know where looking for cause it just print me this 

  Reveal hidden contents

vDQ1hdi.png

while in intrologin.py at 176 there is this:

  Reveal hidden contents

aikjj26.png

and a line 24 there are imports:

  Reveal hidden contents

Joom4ov.png

I hate these errors, (I) never know where to look.

and at system.py 136:

  Reveal hidden contents

d6XepuS.png

 

--- edit 1
Ok the issue is with the importing file in intrologin.py, but i don't know why, and mostly why syntax error and another error?

--- edit 2
I checked and probably there is another issue about python version in uiselectcredentials i think, am i wrong? ?

--- edit 3
I think the issue is here:


	def __OnOK(self):
		selItem=self.fileListBox.GetSelectedItem()
		if selItem:
			if self.selectEvent:
				self.selectEvent(selItem.GetText())
			with open('user//preferred','w') as mainpg:
				mainpg.write("{};{}".format(selItem.GetText(),self.GetPwdFromId(selItem.GetText())) )
			self.__PopupMessage("Account name {} selected.".format(selItem.GetText()))
			self.Hide()
		else:
			self.__PopupMessage("You did not select any account.")

 but i don't know, i though it was the double slash / / in "with open" but stil gives me syntax error 

ok I'm pretty sure (but i could be wrong) that it's this lines fault: 


			with open('user//preferred','w') as mainpg:
				mainpg.write("{};{}".format(selItem.GetText(),self.GetPwdFromId(selItem.GetText())))

but how make them work in python 2.2? ?

ok probably i'm wrong but i'm trying in this way


				mainpg = open("user//preferred", "w")
				mainpg.write("{};{}".format(selItem.GetText(),self.GetPwdFromId(selItem.GetText())))

but now i have to fight against bad magic number, and can't fine base64 for python 2.2 ?

--- edit idon'trememberthenumber

Ok base64 is the only .pyc for python 2.2 i found, missing random.pyc, struct.pyc, hashlib.pyc  and _winreg.pyc  

https://www.python.org/download/releases/2.2/

No idea if you still need help but to answer the last part:

Just download python from the official website and you can get the libs from there, most of them should be already inside the installation folder but if not, follow this:

This is the hidden content, please

 

If you have syntax errors try to not use with open instead use `mainpg = open('user//preferred', 'w')` instead, remember to `mainpg.close()` if you use this method, also .format() was not a thing yet if I recall correctly, you should use other kind of string formatting (https://docs.python.org/2.2/lib/typesseq-strings.html)

21 hours ago, Syriza said:

How can i use the keys f1, f2, f3, f4 for choosing the saved account data? Would be amazing if someone help  

You should bind them to the index of the list you get printed in the interface, probably usin try except since the list index might not exist (empty slots).

It's not much work but I haven't got any working environment at the moment where I could write this, I stopped doing stuff for metin2 at least for now

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 16
  • Eyes 2
  • Think 1
  • Good 5
  • Love 6
Link to comment
Share on other sites

  • Forum Moderator
On 4/29/2019 at 12:16 AM, Syriza said:

How can i use the keys f1, f2, f3, f4 for choosing the saved account data? Would be amazing if someone help 

Something I wrote in a hurry.

  • introLogin.py (add it to the end of the lines)

This is the hidden content, please

Edited by VegaS™
added a method to decrypt the password string
  • Metin2 Dev 30
  • Eyes 1
  • Think 1
  • Confused 1
  • Scream 1
  • Good 8
  • Love 34
Link to comment
Share on other sites

  • 8 months later...

i have a problem.. 

0116 21:28:00589 :: Traceback (most recent call last):

0116 21:28:00589 ::   File "introLogo.py", line 60, in OnUpdate

0116 21:28:00590 ::   File "networkModule.py", line 182, in SetLoginPhase

0116 21:28:00590 ::   File "system.py", line 164, in __hybrid_import

0116 21:28:00590 ::   File "system.py", line 129, in _process_result

0116 21:28:00590 ::   File "introLogin.py", line 19, in <module>

0116 21:28:00590 ::   File "system.py", line 164, in __hybrid_import

0116 21:28:00590 ::   File "system.py", line 129, in _process_result

0116 21:28:00590 ::   File "uiSelectCredentials.py", line 5, in <module>

0116 21:28:00590 ::   File "system.py", line 164, in __hybrid_import

0116 21:28:00590 ::   File "system.py", line 129, in _process_result

0116 21:28:00590 ::   File "intrologin.py", line 23, in <module>

0116 21:28:00590 ::   File "system.py", line 171, in __hybrid_import

0116 21:28:00590 :: ImportError
0116 21:28:00590 :: : 
0116 21:28:00590 :: Bad magic number in lib\string.pyc
0116 21:28:00590 :: 

 

Link to comment
Share on other sites

  • 2 weeks later...

Guys , my client opens but stays black and sysser says:

0131 19:22:01149 :: Traceback (most recent call last):

0131 19:22:01150 ::   File "introLogo.py", line 60, in OnUpdate

0131 19:22:01151 ::   File "networkModule.py", line 177, in SetLoginPhase

0131 19:22:01151 ::   File "system.py", line 130, in __pack_import

0131 19:22:01151 ::   File "
0131 19:22:01151 :: <string>
0131 19:22:01151 :: ", line 
0131 19:22:01151 :: 41
0131 19:22:01151 :: 

0131 19:22:01151 ::     
0131 19:22:01151 :: self.loadCredentialButton    = GetObject("LoadCredentials")

0131 19:22:01151 ::     
0131 19:22:01151 :: ^

0131 19:22:01151 :: SyntaxError
0131 19:22:01151 :: : 
0131 19:22:01151 :: invalid syntax
0131 19:22:01151 :: 

Link to comment
Share on other sites

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.