aboul3la / Sublist3r

Fast subdomains enumeration tool for penetration testers
GNU General Public License v2.0
9.84k stars 2.11k forks source link

‎Modularize #45

Closed gloomy-ghost closed 8 years ago

gloomy-ghost commented 8 years ago

It would be awesome if sublist3r could be modularized, so that we could easily use it in other python programs.

the-st0rm commented 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:

gloomy-ghost commented 8 years ago

Can we have some defaults if the arguments are not given? Sometimes I only want to pass the domain

gloomy-ghost commented 8 years ago

Another thing is sublist3r returns a list, not a set

Edit: I think tuple is better since set is not sorted.