Jump to content

Python 3.8.13 for Windows XP SP3


cmalex

Recommended Posts

  • 3 weeks later...

On 27 January 2024 at 7:28 AM, gxlydlyf said:

Can I use pyinstaller to package a program?

Yes, I am using Pyinstaller 4.10 under Windows XP with Visual Studio 2010 to package XP compatible binaries of LOKI the IOC scanner.  Needless to say I have installed cmalex's XP compatible build of Python 3.8.13.

Link to comment
Share on other sites

On 03 January 2024 at 2:38 AM, dmiranda said:

Hi there, @cmalex. I've been trying to set up pyton 3.8 in xp, but the instructions in PythonXP\README are not enough for me, poor illiterate folk, to make it work. Could you explain in more detail (as in spoonfed) how to set it up, and what items to include in path to run it? Thank you very much.

 

 

I reorganized the contents of cmalex's distribution of Python 3.8.13 and made a simple batch file to install it along with shortcuts, file associations and environment variables.  You can download it here:

File: Python 3.8.1350.7z (OneDrive)
SHA-1: 0D8C5A3009AD45D6199FC78A0219702B2BB35E58
SHA-256: 21AB796973A635378824B09F5CF8C78D0319C79E05885E488AA23E35D380D8EC
Build Date: 14/07/2022
Size: 42.8 MB

I intend to make a proper installer one day, but at least in this form you can see what is included and make modifications to suit your needs.

Enclosed are batch files to temporarily set environment variables if you want to run more than one version of Python on a drive.

CP28_Env.bat CP34_Env.bat CP35_Env.bat

Edited by Zorba the Geek
Error in Install.bat
Link to comment
Share on other sites

I have made a new binary build of LOKI the indicator of compromise scanner, and have downgraded yara-python from version 4.3 to version 4.2.3 to eliminate the error message:

"TypeError: 'yara.StringMatch' object is not subscriptable"

The explanation in the release notes for version 4.3 is as follows:

Quote

Important note: This release introduces backward incompatible changes to the yara-python API.

Specifically, the strings field in the yara.Match object has changed from an array of tuples (<offset>, <string identifier>, <string data>) to an array of yara.StringMatch objects. If your program iterates over the matched strings you will need to update your program accordingly.

File: Loki-0.46.2-xp.zip (OneDrive)
File: Loki-0.46.2-xp.zip (4Shared)
MD5: 8D646734522303FCCD1058DFA126C11D
SHA-1: E8F32E0F03AA55E5F3A419AFDBD47ED42E12F8EA
Size: 24.5 MB
Build date: 11/02/2024

Once unzipped the package does no need to be installed, except that an XP compatible build of bcrypt.dll must be in your path, and the IPV6 protocol must be installed from your Local Area Connection.

The relevant Python modules to build LOKI under Windows XP are:

colorama                           0.4.6
future                                0.18.3
netaddr                             0.8.0
psutil                                 5.6.1
pyinstaller                         4.10
rfc5424-logging-handler   1.4.3
python                               3.8.13    
pywin32                             300
WMI                                   1.5
yara-python                       4.2.3

Edited by Zorba the Geek
Link to comment
Share on other sites

On 2/12/2024 at 10:31 PM, Zorba the Geek said:

I reorganized the contents of cmalex's distribution of Python 3.8.13 and made a simple batch file to install it along with shortcuts, file associations and environment variables.  You can download it here:

File: Python 3.8.1350.7z (OneDrive)
MD5: b7c47b9d98f8998aae7ff6759fcc0684
SHA-1: e5adb30b8631a7a8790554bbcd14e8bdab84831a
Build Date: 14/07/2022
Size: 42.8 MB

I intend to make a proper installer one day, but at least in this form you can see what is included and make modifications to suit your needs.

Hi, great package!

Just check line 56 in Install.bat. It should be %SystemDrive% instead of %ProgramFilest%. Also using %%SystemDrive%% to keep them as variables in registry could be fine too.

And line 68 have unneeded colon (:) in InstallDir %SystemDrive%:. SystemDrive returns drive with colon like C:

Edited by George King
Link to comment
Share on other sites

On 18 February 2024 at 1:05 PM, George King said:

Just check line 56 in Install.bat. It should be %SystemDrive% instead of %ProgramFilest%. Also using %%SystemDrive%% to keep them as variables in registry could be fine too.

And line 68 have unneeded colon (:) in InstallDir %SystemDrive%:. SystemDrive returns drive with colon like C:

Thanks for pointing out the errors.  Line 56 was thus:

Reg.exe add "HKLM\SOFTWARE\Classes\Python.File\Shell\editwithidle\shell\edit38-32\command" /ve /t REG_SZ /d "\"%ProgramFilest%\Python38\pythonw.exe\" -m idlelib \"%%L\" %%*" /f

When it should have been:

Reg.exe add "HKLM\SOFTWARE\Classes\Python.File\Shell\editwithidle\shell\edit38-32\command" /ve /t REG_SZ /d "\"%SystemDrive%\Python38\pythonw.exe\" -m idlelib \"%%L\" %%*" /f

I shall re-upload Python 3.8.1350.7z with these corrections.

I made the batch file by monitoring the changes made to the system by installing an official Python 3.8 distribution and saving the changes to the registry as a reg file which was then converted into a batch file using RegConvert.  In the registry paths were not written as variables, so I had to convert them to variables in the batch file.

Edited by Zorba the Geek
Link to comment
Share on other sites

  • 2 months later...
On 7/10/2022 at 6:35 AM, cmalex said:

mitmproxy 6.0.3 (patched with zstandard from WHL folder).

Can you specify how you installed mitmproxy?

I have used https://mitmproxy.org/downloads/#6.0.2/ and other versions.

Installation successful, but error when running mitmweb --help

 

err_mitm6.0.2_p3.9.PNG

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...