Hitting maximum character limit while executing powershell string

Aperta
#338 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
powershell, python
Ambito
backend

Direzione di ricerca

The payload only shows the -X command option on the smb protocol and the 8191-character limit error. Start by reproducing with a long -X string to see where the command is passed to remote execution. Done when long commands are either delivered or rejected with a clear message. The thread has no maintainer reply and no fix, so confirm the expected behaviour before starting.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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 #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

Lingua principale
Python
Stelle
6k
Fork
803
Merge medio
2g 13h
PR unite (30g)
23

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Pennyw0rth/NetExec

Tutte le issue di Pennyw0rth/NetExec

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.