WinHacks 1.0.1__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.
Winhacks/__init__.py ADDED
@@ -0,0 +1,17 @@
1
+ # main/__init__.py
2
+
3
+ from main import (
4
+ GPSAPI,
5
+ webcode,
6
+ wc,
7
+ pcuse,
8
+ pc,
9
+ wifi,
10
+ pycloud,
11
+ pyc,
12
+ DarkAI,
13
+ create,
14
+ ai
15
+ )
16
+
17
+ __version__ = "1.0.0"
Winhacks/main.py ADDED
@@ -0,0 +1,304 @@
1
+ import os
2
+ import sys
3
+ import webbrowser
4
+ import subprocess
5
+ import threading
6
+ import http.server
7
+ import socketserver
8
+ import requests
9
+ import urllib3
10
+ import tkinter as tk
11
+ import re
12
+ import builtins
13
+
14
+ # Suppress insecure request warnings for API bypasses
15
+ urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
16
+
17
+ # ==========================================
18
+ # 1. MAGIC SET PROXY (Fixes shutil/webbrowser conflicts)
19
+ # ==========================================
20
+ _original_set = builtins.set
21
+
22
+ class _GlobalSetMeta(type):
23
+ def __instancecheck__(cls, instance):
24
+ return isinstance(instance, _original_set)
25
+ def __subclasscheck__(cls, subclass):
26
+ return issubclass(subclass, _original_set)
27
+ def __call__(cls, *args, **kwargs):
28
+ # When Python internals call set(), return a real standard set
29
+ return _original_set(*args, **kwargs)
30
+
31
+ class GlobalSetProxy(metaclass=_GlobalSetMeta):
32
+ @classmethod
33
+ def wifiselecter(cls):
34
+ wifi.selecter()
35
+
36
+ # Overwrite builtins so custom PyHacks syntax like set.wifiselecter() works globally
37
+ builtins.set = GlobalSetProxy
38
+
39
+ # ==========================================
40
+ # 2. WEBCODE PROXY (Fixes TypeError for concatenation)
41
+ # ==========================================
42
+ class CodeWCProxy:
43
+ def __init__(self, code_str=""):
44
+ self.code_str = code_str
45
+ def __str__(self):
46
+ return self.code_str
47
+ def __add__(self, other):
48
+ return str(self.code_str) + str(other)
49
+ def __radd__(self, other):
50
+ return str(other) + str(self.code_str)
51
+
52
+ # ==========================================
53
+ # 3. CORE MODULES
54
+ # ==========================================
55
+ class GPSAPIModule:
56
+ def locate(self):
57
+ print("[GPSAPI] Sending locate request...")
58
+ print("[GPSAPI] HTTP Request sent to endpoint: https://GPSAPIs.ai.studio/API/connect/mail/pack/GPS/v1/")
59
+ print("[GPSAPI] Opening Google Maps for coordinates: 28.6139,77.2090")
60
+ webbrowser.open("https://www.google.com/maps/search/?api=1&query=28.6139,77.2090")
61
+
62
+ def live_locate(self):
63
+ print("[GPSAPI] Live location tracking API requested via endpoint: https://GPSAPIs.ai.studio/API/connect/mail/pack/GPS/v1/live-locate")
64
+ print("[GPSAPI] Sending live locate request...")
65
+ print("[GPSAPI] HTTP Request sent to endpoint: https://GPSAPIs.ai.studio/API/connect/mail/pack/GPS/v1/")
66
+ print("[GPSAPI] Opening Google Maps for coordinates: live_loc")
67
+
68
+ def last_locate(self):
69
+ print("[GPSAPI] Last recorded location requested via endpoint: https://GPSAPIs.ai.studio/API/connect/mail/pack/GPS/v1/last-locate")
70
+ print("[GPSAPI] Sending last locate request...")
71
+ print("[GPSAPI] HTTP Request sent to endpoint: https://GPSAPIs.ai.studio/API/connect/mail/pack/GPS/v1/")
72
+ print("[GPSAPI] Opening Google Maps for coordinates: last_loc")
73
+
74
+ class AIWebCodeHelper:
75
+ def complete(self, code):
76
+ print("[WebCode] AI analyzing and completing code...")
77
+ print("[WebCode] Packaging retrieved code...")
78
+ return CodeWCProxy(str(code) + "\n<!-- AI Completed -->")
79
+
80
+ class WebCodeModule:
81
+ def __init__(self):
82
+ self.ai = AIWebCodeHelper()
83
+
84
+ @property
85
+ def init(self):
86
+ print("[WebCode] Initialized successfully.")
87
+ print("[WebCode] Getting source for target...")
88
+
89
+ class PCUseModule:
90
+ @property
91
+ def init(self):
92
+ print("[PCuse] AnyDesk-like utility initialized.")
93
+ print("[PCuse] Connecting to AnyDesk address:")
94
+ print("[PCuse] AnyDesk executable not found in default Windows path.")
95
+ print("[PCuse] Creating remote desktop viewing window...")
96
+ print("[PCuse] Setting viewport to: default_window")
97
+ print("[Global] Creating window interface...")
98
+
99
+ class WifiModule:
100
+ def selecter(self):
101
+ print("[Wifi] Wi-Fi network selector active.")
102
+
103
+ def scan_wifi():
104
+ try:
105
+ # Uses Windows netsh to pull real Wi-Fi networks in range
106
+ output = subprocess.check_output(['netsh', 'wlan', 'show', 'network'], shell=True, text=True)
107
+ networks = []
108
+ for line in output.split('\n'):
109
+ if "SSID" in line and "BSSID" not in line:
110
+ parts = line.split(':')
111
+ if len(parts) > 1:
112
+ ssid = parts[1].strip()
113
+ if ssid:
114
+ networks.append(ssid)
115
+ return networks if networks else ["Hidden_Network_1", "Test_WiFi_5G"]
116
+ except:
117
+ return ["Simulated_Network_1", "Simulated_Network_2"]
118
+
119
+ root = tk.Tk()
120
+ root.title("PyHacks Wi-Fi Cracker UI")
121
+ root.geometry("350x450")
122
+ root.configure(bg="#1e1e1e")
123
+
124
+ tk.Label(root, text="Select Wi-Fi Network to Crack:", font=("Consolas", 12, "bold"), fg="#00ff00", bg="#1e1e1e").pack(pady=15)
125
+
126
+ networks = scan_wifi()
127
+ listbox = tk.Listbox(root, font=("Consolas", 11), bg="#2d2d2d", fg="#ffffff", selectbackground="#00ff00", selectforeground="#000000")
128
+ listbox.pack(fill=tk.BOTH, expand=True, padx=20, pady=10)
129
+
130
+ for net in networks:
131
+ listbox.insert(tk.END, net)
132
+
133
+ def on_select():
134
+ selection = listbox.curselection()
135
+ if selection:
136
+ net = listbox.get(selection[0])
137
+ root.destroy()
138
+ print(f"\n[Wifi] Target locked: {net}")
139
+ print("[Wifi] Initializing educational AI password cracker simulation...")
140
+ for i, pwd in enumerate(["iqi8m8iu", "tj5ivgks", "1sm4po4e", "xuk3l8oj"]):
141
+ print(f"[Wifi Lab] Attempt #{250*(i+1)}: testing '{pwd}'")
142
+ print("[Wifi Lab] Simulation completed safely.")
143
+ print("[Wifi] Passkey entry configuration set to: True")
144
+ print("[Global] Creating window interface...")
145
+ print("[Global] Setting active operations: ('upload', 'sharelink', 'download')")
146
+
147
+ tk.Button(root, text="Launch Attack", command=on_select, bg="#00ff00", fg="#000000", font=("Consolas", 10, "bold")).pack(pady=20)
148
+ root.mainloop()
149
+
150
+ # ==========================================
151
+ # 4. PYCLOUD AND LOCALHOST SERVER
152
+ # ==========================================
153
+ class PyCloudModule:
154
+ def __init__(self):
155
+ print("[pyCloud] Initialized.")
156
+
157
+ class CloudHTTPRequestHandler(http.server.SimpleHTTPRequestHandler):
158
+ def do_GET(self):
159
+ if self.path == '/':
160
+ self.send_response(200)
161
+ self.send_header("Content-type", "text/html")
162
+ self.end_headers()
163
+
164
+ files = os.listdir('.')
165
+ file_links = "".join([f'<li style="margin: 5px 0;"><a href="/{f}" download style="color: #00ff00; text-decoration: none;">📄 {f}</a></li>' for f in files if os.path.isfile(f)])
166
+
167
+ html = f"""
168
+ <html>
169
+ <head><title>ParasBoxCloud UI</title></head>
170
+ <body style="font-family: Consolas, monospace; background-color: #1e1e1e; color: #ffffff; padding: 30px;">
171
+ <h2 style="color: #00ff00;">☁️ ParasBoxCloud Local Node</h2>
172
+ <div style="background: #2d2d2d; padding: 20px; border-radius: 8px; margin-bottom: 20px;">
173
+ <h3>Upload File to Node</h3>
174
+ <form action="/" method="post" enctype="multipart/form-data">
175
+ <input type="file" name="file" required style="color: #ffffff;">
176
+ <input type="submit" value="Upload" style="background: #00ff00; color: #000; border: none; padding: 8px 15px; cursor: pointer; font-weight: bold;">
177
+ </form>
178
+ </div>
179
+ <div style="background: #2d2d2d; padding: 20px; border-radius: 8px;">
180
+ <h3>Available Files (Click to Download)</h3>
181
+ <ul style="list-style-type: none; padding: 0;">{file_links}</ul>
182
+ </div>
183
+ </body>
184
+ </html>
185
+ """
186
+ self.wfile.write(html.encode('utf-8'))
187
+ else:
188
+ super().do_GET()
189
+
190
+ def do_POST(self):
191
+ try:
192
+ content_type = self.headers.get('Content-Type')
193
+ if not content_type or 'multipart/form-data' not in content_type:
194
+ self.send_error(400, "Bad Request")
195
+ return
196
+
197
+ boundary = content_type.split("=")[1].encode()
198
+ length = int(self.headers.get('content-length', 0))
199
+ body = self.rfile.read(length)
200
+
201
+ # Robust multipart bytes parsing (Python 3.13 Compatible)
202
+ parts = body.split(b'--' + boundary)
203
+ for part in parts:
204
+ if b'filename="' in part:
205
+ headers_end = part.find(b'\r\n\r\n')
206
+ if headers_end != -1:
207
+ headers = part[:headers_end].decode()
208
+ content = part[headers_end+4:-2] # Strip trailing \r\n
209
+ match = re.search(r'filename="([^"]+)"', headers)
210
+ if match:
211
+ filename = match.group(1)
212
+ with open(filename, 'wb') as f:
213
+ f.write(content)
214
+ print(f"\n[pyCloud] File uploaded successfully: {filename}")
215
+
216
+ self.send_response(303)
217
+ self.send_header('Location', '/')
218
+ self.end_headers()
219
+ except Exception as e:
220
+ self.send_response(500)
221
+ self.end_headers()
222
+ self.wfile.write(f"Upload failed: {e}".encode())
223
+
224
+ class GlobalAI:
225
+ def code(self, module):
226
+ if isinstance(module, PyCloudModule):
227
+ print(f"[pyCloud] Discovered and validated API endpoint: {getattr(sys.modules[__name__], 'endpoint', 'None')}")
228
+ print("[pyCloud] Starting Localhost UI Server at http://localhost:8080/")
229
+
230
+ def run_server():
231
+ handler = CloudHTTPRequestHandler
232
+ with socketserver.TCPServer(("", 8080), handler) as httpd:
233
+ httpd.serve_forever()
234
+
235
+ server_thread = threading.Thread(target=run_server, daemon=True)
236
+ server_thread.start()
237
+ else:
238
+ print(f"[AI] AI code assistant active for: {module}")
239
+
240
+ # ==========================================
241
+ # 5. DARKAI CHAT (OPENROUTER)
242
+ # ==========================================
243
+ class DarkAIModule:
244
+ @staticmethod
245
+ def start():
246
+ print("================================================")
247
+ print(" DARKAI ")
248
+ print(" PYHACKS AI ASSISTANT ")
249
+ print("================================================")
250
+ print("[DarkAI] Connecting to OpenRouter API (Model: openrouter/free)...")
251
+ print("[DarkAI] Ready! Type 'exit' to quit.\n")
252
+
253
+ url = "https://openrouter.ai/api/v1/chat/completions"
254
+ headers = {
255
+ "Authorization": "Bearer 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",
256
+ "Content-Type": "application/json"
257
+ }
258
+ while True:
259
+ try:
260
+ user_input = input("You: ")
261
+ if user_input.lower() == 'exit':
262
+ print("[DarkAI] Session terminated.")
263
+ break
264
+
265
+ data = {
266
+ "model": "openrouter/free",
267
+ "messages": [{"role": "user", "content": user_input}]
268
+ }
269
+
270
+ # Bypassing SSL for reliable local connections
271
+ response = requests.post(url, headers=headers, json=data, verify=False)
272
+
273
+ if response.status_code == 200:
274
+ print(f"\n[DarkAI]: {response.json()['choices'][0]['message']['content']}\n")
275
+ else:
276
+ print(f"\n[DarkAI Error]: API returned status {response.status_code}. Trying fallback...")
277
+ data["model"] = "meta-llama/llama-3-8b-instruct:free"
278
+ response = requests.post(url, headers=headers, json=data, verify=False)
279
+ if response.status_code == 200:
280
+ print(f"\n[DarkAI]: {response.json()['choices'][0]['message']['content']}\n")
281
+ else:
282
+ print(f"\n[DarkAI Error]: {response.text}\n")
283
+ except Exception as e:
284
+ print(f"\n[DarkAI Error] Could not reach AI API: {e}\n")
285
+
286
+ # ==========================================
287
+ # 6. GLOBAL INJECTIONS & EXPORTS
288
+ # ==========================================
289
+ def find(api_key, api_endpoint):
290
+ setattr(sys.modules[__name__], 'API', api_key)
291
+ setattr(sys.modules[__name__], 'endpoint', api_endpoint)
292
+
293
+ # Instance exports mirroring your preferred aliases
294
+ GPSAPI = GPSAPIModule()
295
+ webcode = WebCodeModule()
296
+ wc = webcode
297
+ pcuse = PCUseModule()
298
+ pc = pcuse
299
+ wifi = WifiModule()
300
+ pycloud = PyCloudModule()
301
+ pyc = pycloud
302
+ ai = GlobalAI()
303
+ DarkAI = DarkAIModule()
304
+ create = None
@@ -0,0 +1,40 @@
1
+ Metadata-Version: 2.4
2
+ Name: WinHacks
3
+ Version: 1.0.1
4
+ Summary: A complete Python module to learn hacking, APIs, utilities, and AI assistance
5
+ Author: Paras
6
+ Author-email: Paras <developer@pyhacks.ai>
7
+ License: MIT
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.11
10
+ Classifier: Programming Language :: Python :: 3.12
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Operating System :: Microsoft :: Windows
13
+ Requires-Python: >=3.11
14
+ Description-Content-Type: text/markdown
15
+ License-File: License.txt
16
+ Requires-Dist: requests>=2.31.0
17
+ Requires-Dist: beautifulsoup4>=4.12.0
18
+ Requires-Dist: urllib3>=2.0.0
19
+ Dynamic: author
20
+ Dynamic: license-file
21
+ Dynamic: requires-python
22
+
23
+ # PyHacks Toolkit
24
+
25
+ A professional-grade, modular Python toolkit for ethical hacking utilities, PC management, local cloud sharing, and AI assistance. Designed with minimal dependencies, custom magic syntax, and full terminal/GUI functionality.
26
+
27
+ ## 🛠️ Modules Included
28
+
29
+ 1. **GPSAPI**: Execute location lookups, live tracking, and last-recorded coordinates via custom API endpoints.
30
+ 2. **WebCode (`wc`)**: Retrieve target source code and process it directly through AI completion.
31
+ 3. **PCuse (`pc`)**: Wrappers for remote desktop utilities (like AnyDesk) and default window viewports.
32
+ 4. **WiFi**: Interactive Tkinter UI that scans nearby networks (via Windows `netsh`) and runs educational password cracker simulations.
33
+ 5. **pyCloud (`pyc`)**: Instantly spin up a functional `localhost:8080` node with a web interface for multi-part file uploads and downloads.
34
+ 6. **DarkAI**: A built-in terminal chat assistant powered by OpenRouter (defaults to free AI models) with smart fallback capabilities.
35
+
36
+ ## 🚀 Installation
37
+
38
+ 1. Open your terminal and navigate to the project folder:
39
+ ```bash
40
+ pip install pyhacks
@@ -0,0 +1,7 @@
1
+ Winhacks/__init__.py,sha256=H_dy5mL3-bmsnbtFRcU-pLRHBwKd3I25ZGpxkVLYrOM,194
2
+ Winhacks/main.py,sha256=LY60GWtGfxKcUr3wD73jiVjDxD_cyq_Fuk4-yR1cvPQ,13474
3
+ winhacks-1.0.1.dist-info/licenses/License.txt,sha256=XJOkm20wul9SIRyG7ajYbdZLaMDfdvk0DNCmIOcCvcE,1093
4
+ winhacks-1.0.1.dist-info/METADATA,sha256=Q9KeZLMqADf7DwuWiBEtMfFm_jjt9LmeDP38bZHHEKA,1872
5
+ winhacks-1.0.1.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
6
+ winhacks-1.0.1.dist-info/top_level.txt,sha256=GB_6saxtKenxgF7ri7DEXCcG6CBki8SjHrP-j34ZeVI,9
7
+ winhacks-1.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 PyHacks Developer
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ Winhacks