naksyn / Pyramid

a tool to help operate in EDRs' blind spots
Apache License 2.0
638 stars 71 forks source link

Support for Python 3.12 #15

Closed jrrgimenez closed 5 months ago

jrrgimenez commented 5 months ago

While debugging, I realized Pyramid no longer works starting from Python 3.12 as find_module has been deprecated 1. Support for Python 3.12 is quite important to build offensive killchains, as it is the only version you can download from the Microsoft App Store that does not require Admin privileges 2

Instead, I reimplemented the CFinder class with its recommended alternative, find_spec, this should also enable backwards compatibility

naksyn commented 5 months ago

Thank you for your contribution! Tested your PR on few modules and indeed looks like there is backward compatibility since they are working on both 3.10.11 and 3.12.2. Great job