def doWork():
    t = Terminal()
    while True:
        netloc = q.get()
        url = "http://" + netloc
        status, url = getStatus(url)
        if status == 404:
            c_name = cname(netloc)
            print("------------------------------------------------------")
            doSomethingWithResult(status, url)
            print(
                t.bold_bright_cyan("[+] Check takeover posibility for " +
                                   netloc + " using CNAME:  " + str(c_name)))

            print("------------------------------------------------------")
        else:
            doSomethingWithResult(status, url)
        q.task_done()
Exemplo n.º 2
0
                		| $$__  $$ /$$__  $$                                    | $$_____/                                                                          | $$      
                		| $$  \ $$|__/  \ $$  /$$$$$$$  /$$$$$$  /$$$$$$$       | $$     /$$$$$$  /$$$$$$  /$$$$$$/$$$$   /$$$$$$  /$$  /$$  /$$  /$$$$$$   /$$$$$$ | $$   /$$
                		| $$$$$$$/   /$$$$$/ /$$_____/ /$$__  $$| $$__  $$      | $$$$$ /$$__  $$|____  $$| $$_  $$_  $$ /$$__  $$| $$ | $$ | $$ /$$__  $$ /$$__  $$| $$  /$$/
                		| $$__  $$  |___  $$| $$      | $$  \ $$| $$  \ $$      | $$__/| $$  \__/ /$$$$$$$| $$ \ $$ \ $$| $$$$$$$$| $$ | $$ | $$| $$  \ $$| $$  \__/| $$$$$$/ 
                		| $$  \ $$ /$$  \ $$| $$      | $$  | $$| $$  | $$      | $$   | $$      /$$__  $$| $$ | $$ | $$| $$_____/| $$ | $$ | $$| $$  | $$| $$      | $$_  $$ 
                		| $$  | $$|  $$$$$$/|  $$$$$$$|  $$$$$$/| $$  | $$      | $$   | $$     |  $$$$$$$| $$ | $$ | $$|  $$$$$$$|  $$$$$/$$$$/|  $$$$$$/| $$      | $$ \  $$
                		|__/  |__/ \______/  \_______/ \______/ |__/  |__/      |__/   |__/      \_______/|__/ |__/ |__/ \_______/ \_____/\___/  \______/ |__/      |__/  \__/
                                                                                                                                              
"""))
zero = "[#] Created By   :"
first = "Mr.Robot"
second = "IamNotRobot"
print('{t.bold_bright_cyan}{} {t.bold_bright_red}{} , {t.bold_bright_red}{}'.
      format(zero, first, second, t=t))
print(
    t.bold_bright_cyan(
        "[#] Tool Support : R3con in Depth and Fully Automated"))
print(t.bold_bright_cyan("[#] Version      : 1.2"))
print("\n")

done = False


#here is the animation
def animate():
    for c in itertools.cycle([
            '|',
            '/',
            '-',
            '\\',
    ]):
        if done: