Crash if the correct password is at the end of the list

Aperta
#69 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

The report reproduces a segmentation fault in Ncrack 0.7 when a password succeeds at the end of a list; it also notes the same behavior with -P. Start by reproducing the two-password command and tracing how successful authentication affects later connection scheduling. Done means both examples finish without a crash while reporting the discovered credentials.

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

Descrizione

Crash if the correct password is at the end of the list
➜   ncrack --user root --pass WongPassword,CorrectPassword ssh://172.16.178.177 -d9

Starting Ncrack 0.7 ( http://ncrack.org ) at 2019-11-20 16:20 CST

ssh://172.16.178.177:22 (EID 1) Initiating new Connection
ssh://172.16.178.177:22 pushed to list FULL
ssh://172.16.178.177:22 (EID 1) Login failed: 'root' 'WongPassword'
Discovered credentials on ssh://172.16.178.177:22 'root' 'CorrectPassword'
ssh://172.16.178.177:22 popped from list FULL
ssh://172.16.178.177:22 (EID 1) Attempts: total 2 completed 2 supported 2 --- rate 0.90
ssh://172.16.178.177:22 (EID 2) Initiating new Connection
ssh://172.16.178.177:22 (EID 3) Initiating new Connection
ssh://172.16.178.177:22 (EID 4) Initiating new Connection
ssh://172.16.178.177:22 (EID 5) Initiating new Connection
ssh://172.16.178.177:22 (EID 6) Initiating new Connection
ssh://172.16.178.177:22 (EID 7) Initiating new Connection
ssh://172.16.178.177:22 (EID 8) Initiating new Connection
ssh://172.16.178.177:22 (EID 9) Initiating new Connection
ssh://172.16.178.177:22 (EID 10) Initiating new Connection
ssh://172.16.178.177:22 (EID 11) Initiating new Connection
ssh://172.16.178.177:22 pushed to list FULL
[1]    25596 segmentation fault  ncrack --user root --pass WongPassword,CorrectPassword ssh://172.16.178.177 -d9
➜  ncrack --user root --pass WongPassword,CorrectPassword,WongPassword2 ssh://172.16.178.177 -d9

Starting Ncrack 0.7 ( http://ncrack.org ) at 2019-11-20 16:20 CST

ssh://172.16.178.177:22 (EID 1) Initiating new Connection
ssh://172.16.178.177:22 pushed to list FULL
ssh://172.16.178.177:22 (EID 1) Login failed: 'root' 'WongPassword'
Discovered credentials on ssh://172.16.178.177:22 'root' 'CorrectPassword'
ssh://172.16.178.177:22 popped from list FULL
ssh://172.16.178.177:22 (EID 1) Attempts: total 2 completed 2 supported 2 --- rate 0.82
ssh://172.16.178.177:22 (EID 2) Initiating new Connection
ssh://172.16.178.177:22 Password list finished!
ssh://172.16.178.177:22 pushed to list FINISHING
ssh://172.16.178.177:22 (EID 2) Login failed: 'root' 'WongPassword2'
ssh://172.16.178.177:22 last: 0.00 current 0.44 parallelism 10
ssh://172.16.178.177:22 Increasing connection limit to: 13
ssh://172.16.178.177:22 pushed to list FINISHED
ssh://172.16.178.177:22 finished.
ssh://172.16.178.177:22 (EID 2) Attempts: total 3 completed 3 supported 2 --- rate 0.67
nsock_loop returned 3

Discovered credentials for ssh on 172.16.178.177 22/tcp:
172.16.178.177 22/tcp ssh: 'root' 'CorrectPassword'

Ncrack done: 1 service scanned in 6.01 seconds.
Probes sent: 2 | timed-out: 0 | prematurely-closed: 0

Ncrack finished.
-P is the same
Lingua principale
C
Stelle
1.2k
Fork
275
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 nmap/ncrack

Tutte le issue di nmap/ncrack

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.