Pennyw0rth / NetExec

The Network Execution Tool
https://netexec.wiki/
BSD 2-Clause "Simplified" License
2.57k stars 263 forks source link

Hitting maximum character limit while executing powershell string #338

Open papashilingi opened 4 weeks ago

papashilingi commented 4 weeks ago

Describe the bug I am trying to integrate netexec with powershell-empire platform. While incorporating the output from powershell-empire client string, the system bombs out with the Error 'Command exceeds maximum length of 8191 (was 10140). exiting.'

To Reproduce 1) Open powershell-empire . sudo powershell-empire server

2) Open powershell-empire client sudo powershell-empire client set up an http listener and attach it to a multi-launcher using usetager

3) open netexec as below netexec smb ip.add.rr.es - u username -p password -X 'OUTPUT FROM POWERSHELL EMPIRE CLIENT ABOVE'

Expected behavior The expectation is I should be able to register hosts directly from netexec using powershell string generated from powershell.

*Screenshots My output has hashes/ip addresses/passwords of the environment.

NetExec info

Additional context Thank you

NeffIsBack commented 4 weeks ago

Thanks for the bug report! We will take a look into it.

Marshall-Hallenbeck commented 4 weeks ago

@papashilingi why don't you just use the empire_exec module?