Advertisement
hackedprofile

HoneyBadgerLib

Feb 29th, 2024 (edited)
784
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.39 KB | None | 0 0
  1. import socket, time, requests, os, pyautogui
  2. from requests import get
  3.  
  4. # System call
  5. os.system("")
  6.  
  7. # Chocolate's hello world.
  8.  
  9.  
  10. class app:
  11.  
  12.   def chocolate():
  13.     print("Hey! I'm chocolate!")
  14.  
  15.   # Display Commands, Displays to console
  16.  
  17.   def display(type, string, style=0):
  18.     if type == "header":
  19.       if style == 0:
  20.         print("<----- " + string + " ----->")
  21.       else:
  22.         print(style + "<----- " + string + " ----->" + endstyle)
  23.  
  24.     if type == "error":
  25.       if style == 0:
  26.         print("ERROR [X]: " + string)
  27.       else:
  28.         print(style + "ERROR [X]: " + string + endstyle)
  29.  
  30.     if type == "warn":
  31.       if style == 0:
  32.         print("WARN [!]: " + string)
  33.       else:
  34.         print(style + "WARN [!]: " + string + endstyle)
  35.  
  36.     if type == "info":
  37.       if style == 0:
  38.         print("INFO [+]: " + string)
  39.       else:
  40.         print(style + "INFO [+]: " + string + endstyle)
  41.  
  42.     if type == "write":
  43.       if style == 0:
  44.         print(string)
  45.       else:
  46.         print(style + string + endstyle)
  47.  
  48.     if type == "capture":
  49.       if style == 0:
  50.         input(string)
  51.       else:
  52.         input(style + string + endstyle)
  53.  
  54.   # End of output
  55.  
  56.   # Formatting Commands
  57.  
  58.   def linebreak():
  59.     print("")
  60.  
  61.   def pause(string):
  62.     input(string)
  63.  
  64.   def wait(num):
  65.     time.sleep(num)
  66.  
  67.   # End of formatting
  68.  
  69.   # Data types
  70.  
  71.   def getip(mode):
  72.     if mode == 1:
  73.       print(socket.gethostbyname(socket.gethostname()))
  74.     if mode == 2:
  75.       ipadd = get('https://api.ipify.org').text
  76.       print(format(ipadd))
  77.  
  78.   def resolve(hostname):
  79.     print(socket.gethostbyname(hostname))
  80.  
  81.   def http(type, website, reponsetype=0):
  82.     if type == "get":
  83.       website = get(website).text
  84.       print(format(website))
  85.  
  86.  
  87. class input:
  88.   pass
  89.  
  90.  
  91. class gui:
  92.  
  93.   def alert(string):
  94.     pyautogui.alert(string)
  95.  
  96.   def confirm(string, answer=0):
  97.     if answer == 0:
  98.       pyautogui.confirm(string)
  99.     else:
  100.       pyautogui.confirm(string, buttons=answer)
  101.  
  102.   def prompt(string):
  103.     pyautogui.prompt(string)
  104.  
  105.   def password(string):
  106.     pyautogui.password(string)
  107.  
  108.  
  109. # Stylesheet
  110.  
  111. endstyle = '\033[0m'
  112.  
  113.  
  114. class style():
  115.   BLACK = '\033[30m'
  116.   RED = '\033[31m'
  117.   GREEN = '\033[32m'
  118.   YELLOW = '\033[33m'
  119.   BLUE = '\033[34m'
  120.   MAGENTA = '\033[35m'
  121.   CYAN = '\033[36m'
  122.   WHITE = '\033[37m'
  123.   UNDERLINE = '\033[4m'
  124.   NONE = '\033[0m'
  125.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement