def sub_brute(domain, sublist):
    if os.path.isfile(sublist):
        print(f'[[1;37m+[1;39m] Subdomain wordlist {sublist} loaded -> OK')
        print('')
        pass
    else:
        print(f'[[1;31m-[1;39m] Wordlist {sublist} not found!!')
        exit()
    sub = open(sublist, 'r+')
    subs = sub.read().split('\n')
    sub.close()
    for host in subs:
        try:
            req = requests.get(f'http://{host}.{domain}')
            print(f'[1;39m{host}.{domain}     --> [1;37m{req.status_code}')
        except requests.exceptions.ConnectionError:
            pass
        except UnicodeError:
            pass
    print('')
    print('[\x1b[1;37m+\x1b[1;39m] Finshed!')
    print('\x1b[1;37m WEB_REAMER Execution Completed. \x1b[1;33m!HAPPY HACKING! \x1b[1;34m \n')
def sub_brute(domain, sublist):
    if os.path.isfile(sublist):
        print(f'[[1;37m+[1;39m] Subdomain wordlist {sublist} loaded -> OK')
        print()
        pass
    else:
        print(f'[[1;31m-[1;39m] Wordlist {sublist} not found!!')
        exit()
    sub = open(sublist, 'r+')
    subs = sub.read().split('\n')
    sub.close()
    for host in subs:
        try:
            req = requests.get(f'http://{host}.{domain}')
            print(f'[1;39m{host}.{domain}     --> [1;37m{req.status_code}')
        except requests.exceptions.ConnectionError:
            pass
        except UnicodeError:
            pass
    print()
    print('[\x1b[1;37m+\x1b[1;39m] Finshed!')
    print('\x1b[1;37m WEB_REAMER Execution Completed. \x1b[1;33m!HAPPY HACKING! \x1b[1;34m \n')