Nonresponsive RDP

Aperta
#655 16 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
18/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
security

Direzione di ricerca

The hang happens during the NLA check, which the debug log places in nxc/protocols/rdp.py around the Checking NLA line inside connection setup in connection.py. Start by reproducing against a host that accepts RDP and tracing where the socket stops responding. Done means the command returns either a PWNED result or a clear error instead of freezing. The thread has 16 comments with no assignee or linked pull request, so check whether a fix already landed before starting.

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

Descrizione

Describe the bug
Using RDP protocol doesn't work, it simply freezes and stays that way, no error messages or anything

To Reproduce
Command: netexec rdp 10.129.229.244 -u 'helen' -p RedRiot88 --debug
Resulted in:

[23:44:55] DEBUG    NXC VERSION: 1.4.0 - SmoothOperator - 9668cbce - 7                                                                                                               cli.py:28
           DEBUG    PYTHON VERSION: 3.13.2 (main, Mar 13 2025, 14:29:07) [GCC 14.2.0]                                                                                            netexec.py:81
           DEBUG    RUNNING ON: Linux Release: 6.12.20-amd64                                                                                                                     netexec.py:82
           DEBUG    Passed args: Namespace(version=False, threads=256, timeout=None, jitter=None, verbose=False, debug=True, no_progress=False, log=None, force_ipv6=False,      netexec.py:83
                    dns_server=None, dns_tcp=False, dns_timeout=3, protocol='rdp', target=['10.129.229.244'], username=['helen'], password=['RedRiot88'], cred_id=[],                         
                    ignore_pw_decoding=False, no_bruteforce=False, continue_on_success=False, gfail_limit=None, ufail_limit=None, fail_limit=None, kerberos=False,                            
                    use_kcache=False, aesKey=None, kdcHost=None, pfx_cert=None, pfx_base64=None, pfx_pass=None, pem_cert=None, pem_key=None, server='https',                                  
                    server_host='0.0.0.0', server_port=None, connectback_host=None, module=None, module_options=[], list_modules=False, show_module_options=False, hash=[],                   
                    port=3389, rdp_timeout=5, nla_screenshot=False, domain=None, local_auth=False, screenshot=False, screentime=10, res='1024x768')                                           
           DEBUG    Protocol: rdp                                                                                                                                               netexec.py:137
           DEBUG    Protocol Path: /root/.local/pipx/venvs/netexec/lib/python3.13/site-packages/nxc/protocols/rdp.py                                                            netexec.py:140
           DEBUG    Protocol DB Path: /root/.local/pipx/venvs/netexec/lib/python3.13/site-packages/nxc/protocols/rdp/database.py                                                netexec.py:142
           DEBUG    symmetric using "pyCryptodomex" for "DES"                                                                                                                   __init__.py:55
           DEBUG    symmetric using "pyCryptodomex" for "TDES"                                                                                                                  __init__.py:55
           DEBUG    symmetric using "pyCryptodomex" for "AES"                                                                                                                   __init__.py:55
           DEBUG    symmetric using "pyCryptodomex" for "RC4"                                                                                                                   __init__.py:55
           DEBUG    Protocol Object: <class 'protocol.rdp'>, type: <class 'type'>                                                                                               netexec.py:145
           DEBUG    Protocol DB Object: <class 'protocol.database'>                                                                                                             netexec.py:147
           DEBUG    DB Path: /root/.nxc/workspaces/default/rdp.db                                                                                                               netexec.py:150
           DEBUG    Using selector: EpollSelector                                                                                                                        selector_events.py:64
           DEBUG    Creating ThreadPoolExecutor                                                                                                                                  netexec.py:45
           DEBUG    Creating thread for <class 'protocol.rdp'>                                                                                                                   netexec.py:48
           INFO     Socket info: host=10.129.229.244, hostname=10.129.229.244, kerberos=False, ipv6=False, link-local ipv6=False                                             connection.py:165
           DEBUG    Kicking off proto_flow                                                                                                                                   connection.py:227
           DEBUG    Checking NLA for 10.129.229.244                                                                                                                                 rdp.py:171
           DEBUG    Using selector: EpollSelector                                                                                                                        selector_events.py:64
^C^C[00:23:28] DEBUG    Got keyboard interrupt                                                                                                                                      netexec.py:228

Expected behavior
Should show the PWNED prefix, the account does have RDP privs

Screenshots

Image

NetExec info

  • OS: Kali
  • Version of nxc: 1.4.0 - SmoothOperator - 9668cbce - 7
  • Installed from: pipx install git+https://github.com/Pennyw0rth/NetExec
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.