Follow along with the video below to see how to install our site as a web app on your home screen.
Nota: This feature may not be available in some browsers.
PHP:ren *.epk *.ciòchevuoi
from Tkinter import *import Tkinter
def esci():
root.quit()
def riavvia():
os.startfile("MegaToolDecrypt.exe")
root.quit()
import os
import base64
import hashlib
import zlib
class XorCrypt():
KEYMAXLEN=4
def __init__(self,key):
self.i=0
self.key=hashlib.md5(key).hexdigest()[0:self.KEYMAXLEN];
def encrypt(self, c):
c = ord(c) ^ ord(self.key[self.i])
self.i += 1
if self.i == self.KEYMAXLEN:
self.i=0
return c
def encryptFile(self, plain, cipher):
self.i=0
p = open(plain,"rb")
c = open(cipher,"wb")
plain = p.read()
cipher = ""
plain=zlib.compress(plain)
for i in range(0,len(plain)):
cipher+= chr( self.encrypt(plain) )
cipher=base64.b64encode(cipher)
c.write(cipher)
p.close()
c.close()
def decryptFile(self, cipher, plain):
self.i=0
c = open(cipher,"rb")
p = open(plain,"wb")
cipher = c.read()
cipher=base64.b64decode(cipher)
plain = ""
for i in range(0,len(cipher)):
plain+= chr( self.encrypt(cipher) )
plain=zlib.decompress(plain)
p.write(plain)
p.close()
c.close()
def aiuto():
az=open("aiuto.txt","w")
az.write("Credit By BlackDay and AlphaAttack, Il nuovo file è disponibile nella directory del tool")
az.close()
os.startfile("aiuto.txt")
def cripta():
if __name__== "__main__":
xc=XorCrypt("ciao")
xc.encryptFile (a1.get(),a2.get())
root=Tk()
a1=StringVar()
a2=StringVar()
a3=StringVar()
a4=StringVar()
a5=StringVar()
a6=StringVar()
a7=StringVar()
root.title("Encrypt and Decrypt")
def decripta():
if __name__== "__main__":
xc=XorCrypt("ciao")
xc.decryptFile(a4.get(),a5.get())
def tool():
if converter.get() == 1 and decrypter.get() == 0 and creditss.get() == 0 and item_proto.get() == 0 and mob_proto.get() == 0 and cartella.get() == 0:
root2=Tk()
root2.title("Tool 1 By BlackDay and AlphaAttack")
Label(root2,text="Tool cambia formato, credits: BlackDay , Titanius World staff,AlphaAttack.").pack()
Label(text="Benvenuto!").pack()
Label(text="Tool By BlackDay,AlphaAttack").pack()
Label(text="-------------------------------------------").pack()
Label(text='Da formato epk a formato "estraneo"').pack()
Label(text="Inserisci il nome (compreso di estensione) del file a cui vuoi cambiare formato").pack()
Entry(textvariable=a1).pack()
Label(text="Inserisci il nome (compreso di estensione) del file che vuoi esportare").pack()
Entry(textvariable=a2).pack()
Label(text="-------------------------------------------").pack()
Label(text='Da formato "estraneo" a formato epk').pack()
Label(text="Inserisci il nome (compreso di estensione) del file interessato").pack()
Entry(textvariable=a4).pack()
Label(text="Inserisci il nome (compreso di estensione) di uscita del file").pack()
Entry(textvariable=a5).pack()
Button(text="epk - nr",command=cripta).pack()
Button(text="nr - epk",command=decripta).pack()
Button(text="Aiuto",command=aiuto).pack()
Label(text="-------------------------------------------").pack()
Button(text="Esci!",command=esci).pack()
root2.mainloop()
if converter.get() == 0 and decrypter.get() == 1 and creditss.get() == 0 and item_proto.get() == 0 and mob_proto.get() == 0 and cartella.get() == 0:
def cripta2():
bat=open("cripta.bat","w")
bat.write("m2 ")
bat.write(zx.get())
bat.write(""".xml
pause""")
bat.close()
os.startfile("cripta.bat")
def decripta2():
decriptpack=open("decriptpack.xml","w")
decriptpack.write("""<!--
"Buildfile" is the name of the root tag.
GENERAL INFORMATION
"DGames\METIN2" is my Metin2 installation directory.
You need to channge this path if you want to use this script.
(You also need to remove unnecessary actions.)
-->
<Buildfile version="1.1">
<!--
The action types "extract", "create" and "item_proto_extract" are
currently valid.
There are also action-type-dependent attributes:
If Action-Type is "extract"
Attribute Name Description
"outputPath" The path (relative or absolute) of the target directory where all files should be saved to.
"archivePath" The path (relative or absolute) of the input archive (without any extension, like ".epk" or ".eix")
Optional Attributes
"extractAll" If this attribute is specified (value is ignored) every file in the archive is extracted.
"createXML" If this attribute is specified (value is ignored) a xml file will be created.
"xmlPath" (INFO: Needed if "createXML" is set.) The output filename of the XML file.
-->
<Action type="extract" archivePath=""")
decriptpack.write('"')
decriptpack.write(zx.get())
decriptpack.write('"')
decriptpack.write(' outputPath="')
decriptpack.write(zx.get())
decriptpack.write("""Source" extractAll="doSo" createXML="something" xmlPath=""")
decriptpack.write('"')
decriptpack.write(zx.get())
decriptpack.write(""".xml" />""")
decriptpack.write("""
<!--
//
// Archive Creation Examples
//
-->
<!--
If the action type is "create" you need to specify these attributes:
Attribute Name Description
"output" The path of the output archive (without any extension, like ".eix" or ".epk")
-->
</Buildfile>""")
decriptpack.close()
os.startfile("decripta.bat")
Label(text="Decrypt By BlackDay ").pack()
Label(text="Decrypt By AlphaAttack ").pack()
Label(text="Titanius - World Staff").pack()
Label(text="-------------------------------------------").pack()
Label(text="Inserisci il nome del file interessato").pack()
zx=StringVar()
Entry(textvariable=zx).pack()
Button(text="decripta",command=decripta2).pack()
Button(text="cripta",command=cripta2).pack()
if converter.get() == 0 and decrypter.get() == 0 and creditss.get() == 1 and item_proto.get() == 0 and mob_proto.get() == 0 and cartella.get() == 0:
crediti=open("crediti.txt","w")
crediti.write("Mega tool By BlackDay, Titanius - World Staff,AlphaAttack, per saperne di più www.http://www.titanius-world.com/")
crediti.close()
os.startfile("crediti.txt")
if converter.get() == 0 and decrypter.get() == 0 and creditss.get() == 0 and item_proto.get() == 1 and mob_proto.get() == 0 and cartella.get() == 0:
root2=Tk()
root2.title("Modifica item_proto By BlackDay,AlphaAttack")
def decripta3():
bat3=open("decripta_item_proto.bat","w")
bat3.write("""m22 decriptitem.xml
pause""")
bat3.close()
decriptitem=open("decriptitem.xml","w")
decriptitem.write("""<Buildfile version="1.1">
<Action type="create" output="MyArchive">
<!--
If the action type is "create" you need to specify
one or more files to add to the archive.
Every file to add has an own "File"-Tag.
This tags needs to have the following attributes:
Attribute Name Description
"archivedPath" The absolute path of the file in the archive
"type" The type how to store the file in the archive.
(0 = not compressed & not encrypted
1 = compressed & not encrypted
2 = compressed & encrypted)
-->
<File archivedPath="item_proto" type="2">item_proto</File>
</Action>
<!--
//
// item_proto Extraction Example
//
-->
<!--
If the action type is "item_proto_extract" you need to specific
the following attributes:
Attribute Name Description
"path" The path of the item_proto file.
"output" Filename of the output XML file.
-->
<Action type="item_proto_extract" path="item_proto" output="item_proto_dump.xml" />
<!--
//
// item_proto Creation Example
//
-->
<!--
If the action type is "item_proto_create" you need to specific
the following attributes:
Attribute Name Description
"path" The path of the item_proto file.
"output" Filename of the output XML file.
-->
</Buildfile>""")
decriptitem.close()
os.startfile("decripta_item_proto.bat")
def cripta3():
bat4=open("cripta_item_proto.bat","w")
bat4.write("""m22 criptitem.xml
pause""")
bat4.close()
os.startfile("cripta_item_proto.bat")
Label(root2,text="decripta\cripta\modifica\item_proto").pack()
Label(root2,text="Premere 'Decripta' per decriptare l'item_proto").pack()
Label(root2,text="Ricordati di mettere un file item_proto nella").pack()
Label(root2,text="directory del tool.").pack()
Button(root2,text="Decripta",command=decripta3).pack()
Button(root2,text="Cripta",command=cripta3).pack()
if converter.get() == 0 and decrypter.get() == 0 and creditss.get() == 0 and item_proto.get() == 0 and mob_proto.get() == 1 and cartella.get() == 0:
root2=Tk()
root2.title("Decriptatore\Criptatore Mob_proto By BlackDay,AlphaAttack")
def decripta4():
bat4=open("decripta_mob_proto.bat","w")
bat4.write("""m222 decripta.xml
pause""")
bat4.close()
decripta=open("decripta.xml","w")
decripta.write("""<Buildfile version="1.1">
<Action type="mob_proto_extract" path="mob_proto" output="mob_proto_dump.xml" />
</Buildfile>""")
decripta.close()
os.startfile("decripta_mob_proto.bat")
def cripta4():
bat5=open("cripta_mob_proto.bat","w")
bat5.write("""m2 cripta.xml
pause""")
bat5.close()
cripta=open("cripta.xml","w")
cripta.write("""<Buildfile version="1.1">
<Action type="mob_proto_create" path="mob_proto_dump.xml" output="nuovo_mob_proto" />
</Buildfile>""")
cripta.close()
os.startfile("cripta_mob_proto.bat")
Label(root2,text="decripta\cripta\modifica\mob_proto").pack()
Label(root2,text="Premere 'Decripta' per decriptare il mob_proto").pack()
Label(root2,text="Ricordati di mettere un file mob_proto nella").pack()
Label(root2,text="directory del tool.").pack()
Button(root2,text="Decripta",command=decripta4).pack()
Button(root2,text="Cripta",command=cripta4).pack()
if converter.get() == 0 and decrypter.get() == 0 and creditss.get() == 0 and item_proto.get() == 0 and mob_proto.get() == 0 and cartella.get() == 1:
def lolz1():
a1z1=open("crea_cartella.xml","w")
a1z1.write("""<!-- This file was generated by the Metin2 File Archiver (r-->
<Buildfile version="1.1">
<Action type="create" output=""")
a1z1.write('"')
a1z1.write(az1.get())
a1z1.write('">')
a1z1.write("""
</Action>
</Buildfile>""")
a1z1.close()
a3z1=open("testcartella.bat","w")
a3z1.write("""m2 crea_cartella.xml
pause""")
a3z1.close()
os.startfile("testcartella.bat")
Label(text="inserisci il nome della cartella").pack()
Label(text="da criptare...").pack()
Label(text="RICORDA",bg="red").pack()
Label(text="ricordati di creare la cartella prima di utilizzare il tool").pack()
Label(text="la cartella dovrà stare nella directory del tool!").pack()
az1=StringVar()
Entry(textvariable=az1).pack()
Button(text="ok",command=lolz1).pack()
converter=IntVar(value=0)
decrypter=IntVar(value=0)
creditss=IntVar(value=0)
item_proto=IntVar(value=0)
mob_proto=IntVar(value=0)
cartella=IntVar(value=0)
Label(text="-------------------------------------------").pack()
Checkbutton(text="Avvia convertitore",variable=converter).pack()
Label(text="-------------------------------------------").pack()
Checkbutton(text="Avvia decrypter",variable=decrypter).pack()
Label(text="-------------------------------------------").pack()
Checkbutton(text="Cripta cartella in eix epk",variable=cartella).pack()
Label(text="-------------------------------------------").pack()
Checkbutton(text="Modifica item_proto",variable=item_proto).pack()
Label(text="-------------------------------------------").pack()
Checkbutton(text="Modifica mob_proto",variable=mob_proto).pack()
Label(text="-------------------------------------------").pack()
Checkbutton(text="Credits",variable=creditss).pack()
Label(text="-------------------------------------------").pack()
Button(text="Ok",command=tool).pack()
Button(text="Riavvia",command=riavvia).pack()
Button(text="Esci",command=esci).pack()
root.mainloop()
Eccoti uno script in Python creato da Sir BlackDay un paio di mesi fà.
intendo modificare epk: cioè io ho item.epk voglio farlo.. prd per esempio come faccio?