Skip to content

RustScan scripts parser error #527

@qwrdxer

Description

@qwrdxer

Describe the bug

scripts\mod.rs , line 236
let arguments = shell_words::split(&to_run).expect("Failed to parse script arguments");

my to_run variable like:
python3 C:\Users\qwrdxer\.rustscan_scripts\test_script.py 192.22.105.149 22,111,25,110,3344,8080,8888

after call the func shell_words::split(&to_run)
image
the '\' was delete ! I don't know more about this lib , here is my environment:

os: windows10
ide: Clion

The temporary solution is
change
let arguments = shell_words::split(&to_run).expect("Failed to parse script arguments");
to
let arguments:Vec<String> =to_run.split_whitespace().map(|s| s.to_string()).collect();

screen shot

image
image

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