In3tinct / See-SURF

Python based scanner to find potential SSRF parameters
GNU General Public License v3.0
282 stars 63 forks source link

an idea #14

Open karim-jpg opened 2 years ago

karim-jpg commented 2 years ago

how to add see-surf to a bash script ?

example:

subfinder -d domain.com |while read $host do; do python3 see-surf.py -H $host ;done

or scanning multiple domain in a file.txt like : python3 see-surf.py -r file.txt

sedorf commented 2 years ago

For : subfinder -d domain.com |while read $host do; do python3 see-surf.py -H $host ;done

it dont work : i got " usage: see-surf.py [-h] -H HOST [-t THREADS] [-c COOKIES [COOKIES ...]] [-v] [-p PAYLOAD] [-b BURP] see-surf.py: error: the following arguments are required: -H/--host " multiple times

also for : python3 see-surf.py -r file.txt i got the same

usage: see-surf.py [-h] -H HOST [-t THREADS] [-c COOKIES [COOKIES ...]] [-v] [-p PAYLOAD] [-b BURP] see-surf.py: error: the following arguments are required: -H/--host

In3tinct commented 2 years ago

Thanks for reporting. Let me try that out and fix whats needed.

sedorf commented 2 years ago

Thanks @In3tinct , please tell us if you fix that errors ..

Thanks again

best ,

In3tinct commented 2 years ago

It seems your bash script problem. you need to remove "$" from "$host" in this line "while read $host do". Try this subfinder -d domain.com |while read host do; do python3 see-surf.py -H $host ;done

In3tinct commented 2 years ago

I'll add supplying multiple domains in the form of text file soon.

sedorf commented 2 years ago

subfinder -d domain.com |while read host do; do python3 see-surf.py -H $host ;done

@In3tinct its not works :

results : Terminating... Please enter Host in the format http://google.com or https://google.com or http://10.10.10.10 for internal hosts