Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to run custom scripts on windows #513

Open
RFHACKE opened this issue Apr 25, 2023 · 2 comments
Open

unable to run custom scripts on windows #513

RFHACKE opened this issue Apr 25, 2023 · 2 comments

Comments

@RFHACKE
Copy link

RFHACKE commented Apr 25, 2023

Describe the bug
when i try to run rustscan with custom scripts it throw error
"""rustscan -a ip --ulimit 500 --scripts custom
[!] Initiating scripts failed!
The system cannot find the file specified. (os error 2)"""
i run rustscan on windows 10 amd64
The .rustscan_scripts folder and .rustscan_scripts.toml are also present in C:/users/{username}/
The scripts i used is the example script provided in the docs
"""#!/usr/bin/python3
#tags = ["core_approved", "example",]
#developer = [ "example", "https://example.org" ]
#trigger_port = "80"
#call_format = "python3 {{script}} {{ip}} {{port}}"

Scriptfile parser stops at the first blank line with parsing.

This script will run itself as an argument with the system installed python interpreter, only scanning port 80.

Unused filed: ports_separator = ","

import sys

print('Python script ran with arguments', str(sys.argv))"""

@RFHACKE
Copy link
Author

RFHACKE commented Jul 23, 2023

the error given is

.----. .-. .-. .----..---. .----. .---. .--. .-. .-.
| {} }| { } |{ {__ {_ }{ {_ / ___} / {} \ | | | | .-. \| {_} |.-._} } | | .-._} }\ }/ /\ \| |\ | -' -'-----'----' -' ----' ---' -' -'-' -'
The Modern Day Port Scanner.


: http://discord.skerritt.blog :
: https://github.com/RustScan/RustScan :

0day was here ♥

[] The config file is expected to be at "C:\Users\NAME\.rustscan.toml"
Open IP:443
[
] Starting Script(s)
python: can't open file 'C:\Usersusername.rustscan_scriptsexample.py': [Errno 2] No such file or directory
[!] Error Exit code = 2

@qwrdxer
Copy link

qwrdxer commented Sep 26, 2023

#527 look here 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants