Skip to content

Commit

Permalink
Fix 'PY_SSIZE_T_CLEAN macro must be defined' issue in python 3.10 (in…
Browse files Browse the repository at this point in the history
…cluding commenting donut shellcode creation for now)
  • Loading branch information
riskydissonance committed Aug 1, 2022
1 parent edaa5e8 commit 5179034
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rope = "*"
[packages]
pandas = "*"
prompt-toolkit = "*"
pycrypto = "*"
pycryptodome = "==3.15.0"
psycopg2-binary = "*"
pyOpenSSL = "*"
PyYAML = "*"
Expand Down
14 changes: 8 additions & 6 deletions poshc2/server/payloads/Payloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,12 +728,14 @@ def CreateDynamicCodeTemplate(self, name=""):

def CreateDonutShellcode(self, name="", pbindOnly=False):
self.QuickstartLog(Colours.END)
self.QuickstartLog("Donut shellcode files:")
for Payload in PayloadType:
if not pbindOnly:
self.CreateDonutShellcodeFile(Payload, name)
if pbindOnly and Payload in (PayloadType.PBind, PayloadType.PBindSharp):
self.CreateDonutShellcodeFile(Payload, name)
self.QuickstartLog("Donut shellcode creation temporarily removed due to breaking changes in python 3.10")
self.QuickstartLog("Waiting on a fix to the donut module")
# self.QuickstartLog("Donut shellcode files:")
# for Payload in PayloadType:
# if not pbindOnly:
# self.CreateDonutShellcodeFile(Payload, name)
# if pbindOnly and Payload in (PayloadType.PBind, PayloadType.PBindSharp):
# self.CreateDonutShellcodeFile(Payload, name)

def CreateDonutShellcodeFile(self, payloadtype, name=""):
if payloadtype == PayloadType.Posh_v2:
Expand Down

0 comments on commit 5179034

Please sign in to comment.