Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,82 @@ PS C:\Users\DoubleSine\Github\MobaXterm-Keygen> .\MobaXterm-Keygen.py "DoubleSin

Then copy `Custom.mxtpro` to `C:\Program Files (x86)\Mobatek\MobaXterm`.

---

### Prerequisites

1. **Install Python**: Make sure Python 3 is installed on your machine. You can download it from the official [python.org](https://www.python.org/). During installation, check the option to add Python to PATH.

2. **Install Visual Studio Code**: If you haven't already, download and install Visual Studio Code from [code.visualstudio.com](https://code.visualstudio.com/).

3. **Install the Python Extension for VS Code**: Open VS Code and install the Python extension by Microsoft from the Extensions Marketplace.

### Steps to Test the Script

1. **Create a New Python File**: Open VS Code and create a new file, for example, `MobaXterm-Keygen.py`.

2. **Copy the Script**: Copy the complete Python script into this file.

3. **Open a Terminal in VS Code**: You can open an integrated terminal in VS Code by going to the `Terminal` menu > `New Terminal`.

4. **Run the Script with Arguments**: In the integrated terminal, run the script by providing the required arguments (username and MobaXterm version).

```bash
python MobaXterm-Keygen.py "TestUser" 11.2
```

### Detailed Steps

#### 1. Install Python

1. Download the installer from [python.org](https://www.python.org/downloads/).
2. Run the installer and check "Add Python to PATH".
3. Click on "Install Now" and follow the instructions.

#### 2. Install Visual Studio Code

1. Download the installer from [code.visualstudio.com](https://code.visualstudio.com/).
2. Run the installer and follow the instructions.

#### 3. Install the Python Extension for VS Code

1. Open VS Code.
2. Click on the Extensions icon on the left sidebar (or use `Ctrl+Shift+X`).
3. Search for "Python" and install the extension by Microsoft.

#### 4. Create and Run the Script

1. **Create a Python File**:
- Open VS Code.
- Click on `File` > `New File` or use `Ctrl+N`.
- Save the file as `MobaXterm-Keygen.py` by going to `File` > `Save As`.

2. **Copy the Script**:
- Copy the complete Python script into the `MobaXterm-Keygen.py` file.

3. **Open an Integrated Terminal**:
- Go to the `Terminal` menu > `New Terminal` or use `Ctrl+` .
- A terminal will open at the bottom of the VS Code window.

4. **Run the Script**:
- In the integrated terminal, type the following command to run the script with arguments:
```bash
python MobaXterm-Keygen.py "TestUser" 11.2
```

### Verify the Results

1. **Check the Success Message**: You should see a message indicating that the `Custom.mxtpro` file has been generated successfully.

2. **Verify the Generated File**: The `Custom.mxtpro` file should be located in the same directory as your script.

3. **Unzip and Check the Contents**:
- Use an archive manager like 7-Zip to open the `Custom.mxtpro` file and verify the contents of `Pro.key`.

By following these steps, you should be able to test your key generation script on Windows using VS Code. If you have any questions or encounter issues, feel free to ask for additional help.

---

## Screenshot

![](pic0.png)
Expand Down