Skip to content

Speed improvement for script afp-ls  #2098

Closed
res0nat0r/nmap
#1

Description

@nnposter

Script afp-ls spends an exorbitant amount of time on collecting file details because files on a volume are first enumerated but then individual file parameters, such as size, permissions, and modification time, are queried one request at a time. In the end, roughly 3*N+1 requests are sent for a volume with N files.

It appears possible to utilize the initial enumeration (which uses FPEnumerateExt2 at the protocol level) to receive all the necessary file details as well, so only one request is needed per volume, even though somewhat larger.

The performance improvement is rather dramatic, typically between 5x to 20x for real-life volumes.

The patch will be committed in a few weeks if no concerns are raised.

Activity

  1. self-assigned this
    on Aug 31, 2020
  2. nnposter commented on Aug 31, 2020

    @nnposter
    Author

    The patch has been committed as r37992.

  3. added a commit that references this issue on Oct 7, 2020
    c461990
  4. deleted a comment from on Apr 11, 2022
  5. added a commit that references this issue on Mar 20, 2024
    05ad57d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions