Skip to content

WangYihang/pickle-pickle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Pickle-Pickle

A arbitrary python code executer via python pickle

Usage

# cat evil.py
#!/usr/bin/env python
# encoding:utf-8

class Exploit():
    def __init__(self, command):
        self.command = command
    
    def run(self):
        import os
        return os.system(self.command)

print(Exploit("whoami").run())

# python pickle-pickle.py
Usage:
        python ./pickle-pickle.py [FILENAME]

# python pickle-pickle.py evil.py
root

Restriction

  • Only tested on Python 3.7.4

Reference

About

A arbitary python code executer via python pickle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages