Status output freezed on windows

Open
#103 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c
Domain
networking

Research direction

Start by tracing how the SSH module reports packet rates and progress during long runs, then compare the behavior with the -m and -g options mentioned in the report. Reproduce the Windows slowdown and check whether the rate, progress, and remaining-host counts stay consistent while packets are still being sent.

Written by the indexing model from the issue text.

Description

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)

Dominant language
C
Stars
1.2k
Forks
275
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nmap/ncrack

All issues in nmap/ncrack

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.