• 🎉 Hey there! I've just launched my brand new server voting platform — Metin2 P Servers 🚀

Metin2 Python Patcher (Ftp based)

Member
Nov
Threads
0
66
2
8
Ano - Patcher


(metin2(dot)download didn't let me upload it. I think, they suspect it contains a trojan or something similar, I offered to send them the source code, but i don't have enough patient to wait for the answere. My intention was to offer a secure method for creating a basic patcher as a beginner, so I didn't publish the encrypter script. Instead, I only shared the compiled .exe file, which was flagged as a trojan by VirusTotal because I used "pyinstaller --onefile" to package it.)
Hey everyone,


Summary
: This Patcher is a straightforward utility for SFTP-based file downloads. While it lacks advanced encryption features and its decryption logic is open-source, it's recommended to employ your own encryption methods for handling sensitive data. I didn't focus on the design; instead, I ensured functionality. The progress bar functions smoothly without any erratic behavior, and the patcher window can be dragged and closed during patching due to the use of threading. The interface is kept simple for easy understanding, modification, and to ensure there are no backdoors, viruses, or other issues.


Initial Setup:


  1. In the Patcher-src
    1. In the patcher.py file locate line 49 and replace "A_New_Password_Wich_Can_Be_Anything" with your actual password.
    2. Modify the line in patcher.spec containing "['D:/Patcher-src/patcher.py']" to match the path to your Python script. (And edit the v.rc file if you are not a good person :c)
      1. I forget to mention originally, so if you are a very new person in python, make sure to install the required packages by typing the following in the cmd:
        Code:
        pip install paramiko
        pip install pycryptodome
    3. Execute the following commands in a command prompt (you can open one in the directory by typing "cmd" and pressing Enter in your path field): First, run "pip install pyinstaller", then "pyinstaller patcher.spec"! (If Python is not installed on your PC, make sure to install it and add it to your system's PATH.)
    4. The .exe will be generated in the "dist" folder.
  2. In the Encryptor folder:
    1. Place your data into the ftp.ini file.
    2. Set your password in the config.ini file. (Replace "A_New_Password_Which_Can_Be_Anything" with your chosen password, which will be used to encrypt your FTP authentication data.)
    3. Launch the Encryptor/Encryptor-Demo.exe, which generates a "file.ano" containing your encrypted authentication data.

Preparing Files:


  1. Grab your "file.ano" and "patcher.exe" files and put them into a folder. (Into your client folder.)
  2. Use the provided "lister.exe" tool to create a patch_list.txt file. Here's a quick guide on using the lister:
    1. Copy all files and folders into a dedicated directory (let's call it the list directory for clarity).
    2. Run the Lister/Lister.exe tool.
    3. Select the list directory (not the pack directory if present). (Actually, you can select the entire client, then delete the line related to the Patcher from the generated list, as it only downloads what has been modified.)
    4. Once the process is complete, copy the generated patcher_list.txt file along with the contents of the list directory to a patcher folder on your SFTP server.

Running the Patcher:
Now, simply run the patcher. It will automatically sync the files between your local directory and the specified SFTP server based on the information provided in the patch_list.txt file.
And that's it! You're all set to manage your files using the Patcher. If you have any questions or need further assistance, feel free to ask.


Bye!

Screens:


The amazing design:
View attachment 2066

Your sftp should look like:
View attachment 2067

Open cmd (Pretty basic, but who knows...):
View attachment 2068

These should be in the same folder:
View attachment 2069

Virustotals:
patcher.py:


Lister.exe:
(says its a trojan, bcs i used "pyinstaller --onefile filename.py")


Encrypter.exe:
(says its a trojan, bcs i used "pyinstaller --onefile filename.py")
+1
 
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock