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] 2.54 Is Broken #247

Closed ghyde closed 3 years ago

ghyde commented 3 years ago

Description

The write-up for 2.54 needs to be updated to allow for the implant to load PS modules. Using the current documentation, loadmodule InvokeWmiPersist.ps1 results with the following error:

Task 00011 (T3rm1nal) issued against implant 1 on host initech\SYSTEM* @ INITECH-Z3B1 (2021-07-20 17:51:32)
loadmodule InvokeWmiPersist.ps1                                                          

The multicmd errored:                                             
Error:  System.FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.                                                                                                                   
   at System.Convert.FromBase64_ComputeResultLength(Char* inputPtr, Int32 inputLength)                                                              
   at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)                                                                                        
   at System.Convert.FromBase64String(String s)                                                                                                                                    
   at Program.ImplantCore(String baseURL, String RandomURI, String stringURLS, String KillDate, String Sleep, String Key, String stringIMGS, String Jitter)
ghyde commented 3 years ago

Sorry. I opened this bug on the wrong repository. Please disregard.