nmap / ncrack

Ncrack network authentication tool
Other
1.08k stars 237 forks source link

Status output freezed on windows #103

Open k79e opened 3 years ago

k79e commented 3 years ago

Run program for some time. The rate becomes 0 but program is still send out packets.

percent or progress is freezed too.

I'm using ssh module

Today I found the speed is also slow down when running for long time Stats: 0:47:29 Rate: 119.21; Stats: 0:47:31 Rate: 98.58; F Stats: 0:47:32 Rate: 91.25; F Stats: 0:47:33 Rate: 79.30; F Stats: 0:47:36 Rate: 73.29; F Stats: 0:48:09 Rate: 10.00; F Stats: 0:48:14 Rate: 9.86; Fo Stats: 0:57:32 Rate: 11.70; F Stats: 0:57:34 Rate: 14.92; F Stats: 0:57:35 Rate: 14.05; F Stats: 0:58:23 Rate: 41.00; F

The cpu usage didn't drop down when this speed drop down.

I'm using parameter like https://github.com/nmap/ncrack/issues/102#issuecomment-771503554 Today I found that -m is more stable? (Not very sure)

after 45min speed suddenly drop down Rate: 274.47; Stats: 0:46:14 Rate: 46.65; F Stats: 0:46:18 Rate: 37.55; F Stats: 0:46:27 Rate: 33.70; F Stats: 0:46:34 Rate: 27.89; F Progress is @ 99.75% but it's around 35 hosts left. (calculated by number of services completed but the "about xxx done" is drop back!! it's from 18% to 14%)

at 50min the rate become 0 but there still around 30 hosts left!!!! Cpu usage is 25% which is a full core and it's still sending packets(It looks like the real speed is not drop down with -m but with -g they all drop down)

k79e commented 3 years ago

Here is some info under linux when the rate become veryslow (1-2)

0 0x00007f5113ec97b7 in epoll_wait (epfd=7, events=0x5631dcc40d50,

maxevents=8222, timeout=168) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30

1 0x00005631cc15ca4a in ?? ()

2 0x00005631cc158152 in ?? ()

3 0x00005631cc130058 in ?? ()

4 0x00005631cc12b01f in ?? ()

5 0x00007f5113df409b in __libc_start_main (main=0x5631cc12afe0, argc=18,

argv=0x7ffe945c1588, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7ffe945c1578)
at ../csu/libc-start.c:308

6 0x00005631cc12b2aa in ?? ()