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
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
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