ahmedkhlief / Ninja

Open source C2 server created for stealth red team operations
776 stars 169 forks source link

upload not working over 50% of the time #17

Open ghost opened 3 years ago

ghost commented 3 years ago

Uploading files doesn't always work for some reason. Does anyone know why this happens?

(Ninja : Agent(0)-DESKTOP-092N7BQ) upload payload.ps1
(Ninja : Agent(0)-DESKTOP-092N7BQ) [~] MYPAX-img.jpeg:load upload.ps1 
[+] New Agent Request Module upload.ps1 (0 - <redacted>)
[+] Agent (0) -  <redacted>@WORKGROUP\DESKTOP-092N7BQ send Result

[~] MYPAX-img.jpeg:up -filename "payload.ps1"      
[-] Download: ljust() argument 2 must be a byte string of length 1, not str
[+] Agent (0) -  <redacted>@WORKGROUP\DESKTOP-092N7BQ send Result
Exception calling "CreateDecryptor" with "0" argument(s): "The cipher mode specified 
requires that an initialization vector (IV) be used."
At line:43 char:1
+ $d = $FileName.CreateDecryptor()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : CryptographicException
ahmedkhlief commented 3 years ago

Please provide me with the size of the file and if you can share it with me it will better to debug the issue

On Tue, 11 May 2021, 2:22 pm TheJoker, @.***> wrote:

Uploading files doesn't always work for some reason. Does anyone know why this happens?

(Ninja : Agent(0)-DESKTOP-092N7BQ) upload payload.ps1 (Ninja : Agent(0)-DESKTOP-092N7BQ) [~] MYPAX-img.jpeg:load upload.ps1 [+] New Agent Request Module upload.ps1 (0 - ) [+] Agent (0) - @WORKGROUP\DESKTOP-092N7BQ send Result

[~] MYPAX-img.jpeg:up -filename "payload.ps1" [-] Download: ljust() argument 2 must be a byte string of length 1, not str [+] Agent (0) - @WORKGROUP\DESKTOP-092N7BQ send Result Exception calling "CreateDecryptor" with "0" argument(s): "The cipher mode specified requires that an initialization vector (IV) be used." At line:43 char:1

  • $d = $FileName.CreateDecryptor()
  • 
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : CryptographicException

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ahmedkhlief/Ninja/issues/17, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF43ESHKPTFSSLGRNISD6STTNEHP7ANCNFSM44VFRXTA .

ghost commented 3 years ago

image

ahmedkhlief commented 3 years ago

Send me the data in order to replicate the error

On Tue, 11 May 2021, 2:33 pm TheJoker, @.***> wrote:

[image: image] https://user-images.githubusercontent.com/53082621/117808618-65874a80-b25d-11eb-98a9-ef620509b534.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ahmedkhlief/Ninja/issues/17#issuecomment-838314722, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF43ESG5UBK46P2SWW3W4U3TNEIYZANCNFSM44VFRXTA .

ghost commented 3 years ago

https://ghostbin.co/paste/2goyb4jy Password to the link above: 11111