β Step 1: Check if Python is Installed Correctly
1οΈβ£ Open Command Prompt (CMD)
- Press
Win + R, type cmd, and press Enter.
2οΈβ£ Type the following command and press Enter:
python --version
OR
py --version
πΉ If you see a Python version (e.g., Python 3.x.x), Python is installed correctly.
3οΈβ£ If CMD still shows "Python was not found", continue to Step 2.
β Step 2: Add Python to System PATH (Manual Method)
If Python is installed but not recognized in CMD, you need to add it to the system PATH manually.
1οΈβ£ Find Python Installation Path:
- Open File Explorer (
Win + E). - Go to
C:UsersYourUsernameAppDataLocalProgramsPythonPython3X(or wherever Python was installed). - Copy the full path (Example:
C:Python310orC:UsersYourNameAppDataLocalProgramsPythonPython310).
2οΈβ£ Add Python to System Environment Variables:
- Press
Win + R, type sysdm.cpl, and press Enter. - Go to the Advanced tab β Click Environment Variables.
- Under System Variables, find Path, then click Edit.
- Click New, then paste your Python path (e.g.,
C:Python310). - Click OK β OK β Restart your computer.
3οΈβ£ Test Again in CMD:
- Open Command Prompt and type:shCopyEdit
python --version - If Python is recognized, you're good to go! π
β Step 3: Install Required Python Packages
Once Python is working, install dependencies needed for the script:
1οΈβ£ Open Command Prompt
2οΈβ£ Run the following command to install required Python libraries:
pip install openai pandas requests
β This will install OpenAI API, Pandas (for CSV handling), and Requests (for HTTP requests).
β Step 4: Run the Python Script
Now that Python is installed, you can run the malware blog post generator script.
1οΈβ£ Move your Python script (malware_post_generator.py) to a folder (e.g., C:MalwareScripts).
2οΈβ£ Open Command Prompt and navigate to the script's folder:
cd C:MalwareScripts
3οΈβ£ Run the script:
python malware_post_generator.py