Closed gloomy-ghost closed 8 years ago
This should be fixed now. You can call sublist3r from other programs as follows
import sublist3r subdomains = sublis3r.main(domain, no_threads, savefile, ports, silent, verbose, enable_bruteforce)
This main function will return a set
of unique subdomains found by sublister
Some notes:
savefile
: to save the result into a fileports
: the list of ports to checksilent
: This will make sublister very silent will not print anything during execution. This is very helpful when sublister is part of another program or a framework and you dont want a lot of noiseverbose
: to print the domains once sublister finds themenable_bruteforce
: to enable subbruteCan we have some defaults if the arguments are not given? Sometimes I only want to pass the domain
Another thing is sublist3r returns a list
, not a set
Edit: I think tuple
is better since set
is not sorted.
It would be awesome if sublist3r could be modularized, so that we could easily use it in other python programs.