Skip to content
Permalink
fce200cac0
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
33 lines (24 sloc) 995 Bytes
""" Template classes for plugins and useful functions """
import pty
## A couple of optional super classes and a general item class to represent them more abstractly
## Can be used to add common functionality to privesc/enumeration plugins
class Item:
"""A generic privelege escalation/enumeration class. Include common
functionality here"""
def __init__(self):
self.name="Not for actual use"
self.author="James Shuttleworth"
self.description="Someone needs to write this bit"
def execute(self):
"""Execute the privelege escalation/enumeration, dropping the user
into a shell or displaying collected info.
"""
print("This should be overridden in your plugin")
def info(self):
"""Return useful information on the plugin, suitable for the user to
read"""
return f"{self.name}, by {self.author}. {self.description}"
class PrivEsc(Item):
pass
class Enumeration(Item):
pass