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

option to get just urls #10

Open
marcelo321 opened this issue Jul 17, 2020 · 4 comments
Open

option to get just urls #10

marcelo321 opened this issue Jul 17, 2020 · 4 comments

Comments

@marcelo321
Copy link

Would be cool an option to get just the urls alone without the [words] and everything else. like a flag to do that

@Bedrovelsen
Copy link

Bedrovelsen commented Jul 19, 2020

Solution would be to add url matching regex such as this to codebase with a urls only flag added to options

(([a-zA-Z][a-zA-Z0-9+-.]*\:\/\/)|mailto|data\:)([a-zA-Z0-9\.\&\/\?\:@\+-\_=#%;,])*

Temporary easy solution until then
You can easily pipe the commands stdout to a grep with a regex to match just urls

gospider -s https://jaeles-project.github.io/ -t 10 -d 1 -c 10 | grep -o -E "(([a-zA-Z][a-zA-Z0-9+-.]*\:\/\/)|mailto|data\:)([a-zA-Z0-9\.\&\/\?\:@\+-\_=#%;,])*" | sort -u | tee justurls.txt

You alternatively can save the output with -o flag then grep the contents of output directories file (or files if multiple input sites such as live site subdomains in this example)

gospider -S <(assetfinder -subs-only hackerone.com | sort -u | httprobe -prefer-https) -t 10 -d 1 -c 10 -o outdir && grep -r -o -E "(([a-zA-Z][a-zA-Z0-9+-.]*\:\/\/)|mailto|data\:)([a-zA-Z0-9\.\&\/\?\:@\+-\_=#%;,])*" outdir | sort -u | tee rawstdout.txt

Feel free to replace

-S <(assetfinder -subs-only hackerone.com | sort -u | httprobe -prefer-https)

with

-S alivedomains.txt

If already have list of domains in the file alivedomains.txt or whichever

@nav7neeet
Copy link

I feel "-q, --quiet Suppress all the output and only show URL" flag was meant for only showing the URL but its not working in the latest version v1.1.2.

@yuraloginoff
Copy link

I feel "-q, --quiet Suppress all the output and only show URL" flag was meant for only showing the URL but its not working in the latest version v1.1.2.

Same here. -q gives no effect.

@arthur4ires
Copy link

The -q option is not yet fully effective and continues to print unnecessary information to the screen.

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

5 participants