Improve helper script to execute powercat command if powershell is installed
Daniel Ruiz de AlegrÃa
2 years ago
0 | 0 | #!/bin/sh |
1 | 1 | |
2 | kali-treecd "/usr/share/windows-resources/powercat" "powercat" 1 false | |
2 | if command -v pwsh > /dev/null; then | |
3 | pwsh -c ". /usr/share/windows-resources/powercat/powercat.ps1; powercat $@" | |
4 | else | |
5 | echo "If you want to execute powercat script you need to install powershell:" | |
6 | echo " $ sudo apt install powershell" | |
7 | echo | |
8 | kali-treecd "/usr/share/windows-resources/powercat" "powercat" 1 false | |
9 | echo | |
10 | fi |