Skip to content

"Failed to resolve" error when set user-agent to nmap #416

@diegoxcn

Description

@diegoxcn

Describe the bug
seems like rustscan can't pass http.useragent strings to nmap correctly.

To Reproduce
Steps to reproduce the behavior:

rustscan -u 5000 -a 127.0.0.1 -- --script-args http.useragent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0" -sC -sV

Expected behavior
expected to call nmap use assigned user-agent string to scan target without problem.

Screenshots
image
image
image

Desktop (please complete the following information):

  • OS: ubuntu 21.10
  • Browser firefox
  • Version 94

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions