PowerShellMafia / PowerSploit

PowerSploit - A PowerShell Post-Exploitation Framework
Other
11.68k stars 4.59k forks source link

PowerUp gives a lot of errors #353

Open PenTestical opened 4 years ago

PenTestical commented 4 years ago

Hi,

I'm using Kali 2019.3 (VMware Workstation Player 15) and tried to use PowerUp inside a meterpreter shell. After starting a powershell, I entered the following command

meterpreter > powershell_shell PS > . .\PowerUp.ps1 ERROR: At C:\Users\bill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\PowerUp.ps1:146 char:19 ERROR: + Sign&nbsp;up ERROR: + ~ ERROR: The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double ERROR: quotation marks ("&") to pass it as part of a string. ERROR: ERROR: At C:\Users\bill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\PowerUp.ps1:173 char:190 ERROR: + ... ures">Features <span class="Bump-link-symbol float-right text-normal text-gray-l ... ERROR: + ~ ERROR: The '<' operator is reserved for future use. ERROR: ERROR: At C:\Users\bill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\PowerUp.ps1:173 char:261 ERROR: + ... xt-gray-light">&rarr;</span></a> ERROR: + ~ ERROR: The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double ERROR: quotation marks ("&") to pass it as part of a string. ERROR: ERROR: At C:\Users\bill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\PowerUp.ps1:186 char:255 ERROR: + ... stomer stories <span class="Bump-link-symbol float-right text-normal text-gray-l ... ERROR: + ~ ERROR: The '<' operator is reserved for future use. ERROR: ERROR: At C:\Users\bill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\PowerUp.ps1:186 char:326 ERROR: + ... xt-gray-light">&rarr;</span></a></li> ERROR: + ~ ERROR: The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double ERROR: quotation marks ("&") to pass it as part of a string. ERROR: ERROR: At C:\Users\bill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\PowerUp.ps1:187 char:231 ERROR: + ... rity">Security <span class="Bump-link-symbol float-right text-normal text-gray-l ... ERROR: + ~ ERROR: The '<' operator is reserved for future use. ERROR: ERROR: At C:\Users\bill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\PowerUp.ps1:187 char:302 ERROR: + ... xt-gray-light">&rarr;</span></a></li> ERROR: + ~ ERROR: The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double ERROR: quotation marks ("&") to pass it as part of a string. ERROR: ERROR: At C:\Users\bill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\PowerUp.ps1:210 char:222 ERROR: + ... Explore GitHub <span class="Bump-link-symbol float-right text-normal text-gray-l ... ERROR: + ~ ERROR: The '<' operator is reserved for future use. ERROR: ERROR: At C:\Users\bill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\PowerUp.ps1:210 char:293 ERROR: + ... xt-gray-light">&rarr;</span></a></li> ERROR: + ~ ERROR: The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double ERROR: quotation marks ("&") to pass it as part of a string. ERROR: ERROR: At C:\Users\bill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\PowerUp.ps1:213 char:107 ERROR: + ... pt-lg-3">Learn &amp; contribute</h4> ERROR: + ~ ERROR: The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double ERROR: quotation marks ("&") to pass it as part of a string. ERROR: ERROR: Not all parse errors were reported. Correct the reported errors and try again. ERROR: ERROR: ERROR: + CategoryInfo : ParserError: (:) [], ParseException ERROR: + FullyQualifiedErrorId : AmpersandNotAllowed ERROR: I've successful uploaded PowerUp to the target machine, but can't use the Exploit. Any suggestions, what I'm doing wrong?

Chamse commented 4 years ago

im experiencing the same problem

Chamse commented 4 years ago

Hi,

I'm using Kali 2019.3 (VMware Workstation Player 15) and tried to use PowerUp inside a meterpreter shell. After starting a powershell, I entered the following command

meterpreter > powershell_shell PS > . .\PowerUp.ps1 ERROR: At C:\Users\bill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\PowerUp.ps1:146 char:19 ERROR: + Sign&nbsp;up ERROR: + ~ ERROR: The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double ERROR: quotation marks ("&") to pass it as part of a string. ERROR: ERROR: At C:\Users\bill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\PowerUp.ps1:173 char:190 ERROR: + ... ures">Features <span class="Bump-link-symbol float-right text-normal text-gray-l ... ERROR: + ~ ERROR: The '<' operator is reserved for future use. ERROR: ERROR: At C:\Users\bill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\PowerUp.ps1:173 char:261 ERROR: + ... xt-gray-light">&rarr;</span></a> ERROR: + ~ ERROR: The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double ERROR: quotation marks ("&") to pass it as part of a string. ERROR: ERROR: At C:\Users\bill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\PowerUp.ps1:186 char:255 ERROR: + ... stomer stories <span class="Bump-link-symbol float-right text-normal text-gray-l ... ERROR: + ~ ERROR: The '<' operator is reserved for future use. ERROR: ERROR: At C:\Users\bill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\PowerUp.ps1:186 char:326 ERROR: + ... xt-gray-light">&rarr;</span></a></li> ERROR: + ~ ERROR: The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double ERROR: quotation marks ("&") to pass it as part of a string. ERROR: ERROR: At C:\Users\bill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\PowerUp.ps1:187 char:231 ERROR: + ... rity">Security <span class="Bump-link-symbol float-right text-normal text-gray-l ... ERROR: + ~ ERROR: The '<' operator is reserved for future use. ERROR: ERROR: At C:\Users\bill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\PowerUp.ps1:187 char:302 ERROR: + ... xt-gray-light">&rarr;</span></a></li> ERROR: + ~ ERROR: The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double ERROR: quotation marks ("&") to pass it as part of a string. ERROR: ERROR: At C:\Users\bill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\PowerUp.ps1:210 char:222 ERROR: + ... Explore GitHub <span class="Bump-link-symbol float-right text-normal text-gray-l ... ERROR: + ~ ERROR: The '<' operator is reserved for future use. ERROR: ERROR: At C:\Users\bill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\PowerUp.ps1:210 char:293 ERROR: + ... xt-gray-light">&rarr;</span></a></li> ERROR: + ~ ERROR: The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double ERROR: quotation marks ("&") to pass it as part of a string. ERROR: ERROR: At C:\Users\bill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\PowerUp.ps1:213 char:107 ERROR: + ... pt-lg-3">Learn &amp; contribute</h4> ERROR: + ~ ERROR: The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double ERROR: quotation marks ("&") to pass it as part of a string. ERROR: ERROR: Not all parse errors were reported. Correct the reported errors and try again. ERROR: ERROR: ERROR: + CategoryInfo : ParserError: (:) [], ParseException ERROR: + FullyQualifiedErrorId : AmpersandNotAllowed ERROR: I've successful uploaded PowerUp to the target machine, but can't use the Exploit. Any suggestions, what I'm doing wrong?

I found out what i was doing wrong, i did a wget on the link to the script which resultet in getting PowerUp.ps1 but it contained alot of html... make sure you clone the whole repository