PoshC2 icon indicating copy to clipboard operation
PoshC2 copied to clipboard

[BUG]

Open RedTeamMagic opened this issue 2 years ago • 0 comments

Description

Error in python dropper

Execution Environment:

All of this must be filled in

Data Value
Full Posh version (all the text between the === at the top of the Implant Handler) PoshC2 v8.1 (7b5a881 2022-08-07 19:12:53)
OS & version Debian 5.10.113-1 GNU/Linux 11 (bullseye)
Using Docker/containerisation? No

Implant Info

  • What implant does the problem occur on? Python
  • How was the implant created? Running a default payload

Defensive Technologies

  • Is the target environment running any particular defensive products? No

To Reproduce

Steps to reproduce the behavior:

  1. Running a default python dropper, both py_dropper.py and py_dropper.sh

Expected behavior

The dropper to run without python errors. I am getting the errors: Error in part 1: non-integer arg 1 for randrange() Error in part 2: 'utf-8' codec can't decode byte 0x91 in position 0: invalid start byte

When running the default python dropper, the bash dropper for python, and the decoded version of the payload. I've tried with a couple different versions of python3 including python 3.10.4

Screenshots

image image

Attach files if required

Additional context

Not sure what the problem is, curious if anyone else has python error when running the default python dropper

RedTeamMagic avatar Oct 19 '22 17:10 RedTeamMagic