aboul3la / Sublist3r

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

RuntimeError While Using Sublist3r module in custom script #335

Open RiteshSec opened 1 year ago

RiteshSec commented 1 year ago

Hello!

I am trying to find sub domains of a given domains using sublist3r tool in a custom python script. I am getting the bellow Error when trying to execute this custom script. I have successfully installed Sublist3r using pip3 install sublist3r and imported it to the script using import sublist3r command. All the requirements have been installed successfully too.

image
suwbru commented 1 year ago

Works for me if used in the main module:

import sublist3r

def show_subs():
    subdomains = sublist3r.main('yahoo.com', 4, 'yahoo_subdomains.txt', ports=None, silent=False,
                                verbose=True, enable_bruteforce=True, engines=None)

if __name__ == '__main__':
    show_subs()