Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hitting maximum character limit while executing powershell string #338

Open
papashilingi opened this issue Jun 8, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@papashilingi
Copy link

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

  • OS: Linux kali 6.6.15-686-pae Update README #1 SMP PREEMPT_DYNAMIC Kali 6.6.15-2kali1 (2024-05-17) i686 GNU/Linux
  • Version of nxc: 1.2.0 - ItsAlwaysDNS - kali

Additional context
Thank you

@NeffIsBack
Copy link
Contributor

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

@NeffIsBack NeffIsBack added the bug Something isn't working label Jun 8, 2024
@Marshall-Hallenbeck
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants