naksyn / Pyramid

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

Syntax error when executing cradle.py #7

Closed dr4lekhine closed 1 year ago

dr4lekhine commented 1 year ago

Hello,

When trying to execute on Windows Server 2012 R2 "python cradle.py" (Python 3.10.6), I´m getting the following syntax error:

image

On server side, looks like this (when "ENTER PEM pass phrase", I entered the one I used upon execution of): openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365

python3 pyramid.py -p 443 -ssl -u testuser -pass Sup3rP4ss! -enc "chacha20" -passenc "TestPass1" -server "10.8.40.14" -generate

image

I also tried running cradle on a Windows11 box with the same results. What I´m doing wrong?. The code looks like this:

image

Thanks in advance.

Regards.

naksyn commented 1 year ago

Hi, your cradle.py is working fine, there's a typo from my end in mod-bh.py. I just pushed the correction.

import### AUTO-GENERATED PYRAMID CONFIG ### DELIMITER

was substituted with:

import inspect

### AUTO-GENERATED PYRAMID CONFIG ### DELIMITER

Thanks for pointing that out. Let me know now if the issue is solved.

Cheers

dr4lekhine commented 1 year ago

Hi!

Yes. It´s solved now!

Thank you.

Regards.