nettitude / PoshC2

A proxy aware C2 framework used to aid red teamers with post-exploitation and lateral movement.
BSD 3-Clause "New" or "Revised" License
1.78k stars 323 forks source link

[BUG] #275

Open RedTeamMagic opened 1 year ago

RedTeamMagic commented 1 year ago

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

Defensive Technologies

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