CryptographyDeprecationWarning for ARC4 for winrm mode - kali 1.4.0

Aperta
#781 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cryptography, python
Ambito
security

Direzione di ricerca

The warning comes from the third-party spnego library's _ntlm_raw/crypto.py, so the fix likely belongs in NetExec's own WinRM/NTLM code path rather than the dependency. Start by finding where NetExec's winrm protocol module imports or uses spnego and the NTLM helpers. Done means the CryptographyDeprecationWarning no longer appears when running nxc winrm with hashes, which can be checked by reproducing the command above.

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

Descrizione

dependencies

Describe the bug
CryptographyDeprecationWarning for ARC4 for winrm mode issue persist on kali 1.4.0

kali@kali:~/PG/Resourced$ nxc --version
1.4.0 - SmoothOperator - Kali Linux -

To Reproduce
Steps to reproduce the behavior i.e.:
Command: nxc winrm $IP -u usernames.txt -H hashes
Resulted in:

kali@kali:~/PG/Resourced$ nxc winrm $IP -u usernames.txt -H hashes
WINRM       192.168.124.175 5985   RESOURCEDC       [*] Windows 10 / Server 2019 Build 17763 (name:RESOURCEDC) (domain:resourced.local)
/usr/lib/python3/dist-packages/spnego/_ntlm_raw/crypto.py:46: CryptographyDeprecationWarning: ARC4 has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.ARC4 and will be removed from this module in 48.0.0.
  arc4 = algorithms.ARC4(self._key)

...

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

NetExec info

  • OS: kali
  • Version of nxc: v1.4.0
  • Installed from: sudo apt

Additional context
Add any other context about the problem here.

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.