Пример #1
0
 def __init__(self):
     MOSDEFNode.__init__(self)
     self.nodetype="bsdNode"
     self.pix="bsdMOSDEFNode"
     self.activate_text()
     self.shell=None
     self.capabilities=["bsd", "posix", "Unix Shell", "VFS"]
Пример #2
0
 def __init__(self):
     CrossPlatformNode.__init__(self)
     MOSDEFNode.__init__(self)
     self.nodetype = "ScriptNode"
     self.pix = "ScriptNode"
     self.capabilities += ["upload", "download", "sock"]
     self.activate_text()
     return
Пример #3
0
 def __init__(self):
     MOSDEFNode.__init__(self)
     self.nodetype = "solarisNode"
     self.pix = "solarisMOSDEFNode"
     self.activate_text()
     self.shell = None
     self.sane_interface_number = 32
     self.capabilities += ["Unix Shell", "Solaris", "posix", "VFS"]
     return
Пример #4
0
 def __init__(self):
     MOSDEFNode.__init__(self)
     self.nodetype = "PowerShellNode"
     self.pix = "PowerShellNode"
     self.capabilities += [
         "spawn", "VFS", "upload", "download", "Win32 Shell"
     ]
     self.activate_text()
     self.colour = "cyan"
Пример #5
0
 def __init__(self, proctype='i386'):
     MOSDEFNode.__init__(self)
     self.nodetype = "linuxNode"
     self.pix = "linuxMOSDEFNode"
     self.activate_text()
     self.shell = None
     self.hasrawsocks = None  #initialized first time hasRawSocks is called
     self.capabilities = ["linux", "Unix Shell", "posix", "VFS"]
     return
Пример #6
0
    def __init__(self):
        MOSDEFNode.__init__(self)
        self.nodetype = "osxNode"
        self.pix = "osxMOSDEFNode"
        self.activate_text()
        self.shell = None
        self.colour = 'pink'
        self.capabilities = ["osx", "bsd", "posix", "Unix Shell", "VFS"]

        return
Пример #7
0
 def __init__(self):
     MOSDEFNode.__init__(self)
     self.nodetype = "win32Node"
     self.pix = "Win32MOSDEFNode"
     self.activate_text()
     self.shell = None
     self.capabilities += [
         "VFS", "win32api", "sock", "Win32 Shell", "upload", "download"
     ]
     return
Пример #8
0
 def __init__(self, proctype='x64'):
     MOSDEFNode.__init__(self)
     self.nodetype = 'win64Node'
     self.pix = 'Win64MOSDEFNode'
     self.activate_text()
     self.shell = None
     self.hasrawsocks = None
     self.capabilities = []
     self.capabilities += [
         "VFS", "win32api", "win64api", "sock", "Win32 Shell", "upload",
         "download"
     ]
     self.colour = 'green'
Пример #9
0
    def __init__(self, proctype='i386'):
        MOSDEFNode.__init__(self)
        self.nodetype = "linuxNode"
        self.pix = "linuxMOSDEFNode"
        self.activate_text()
        self.shell = None
        self.hasrawsocks = None  #initialized first time hasRawSocks is called
        self.capabilities = ["linux", "Unix Shell", "posix", "VFS", "sock"]
        self.colour = "purple"
        self.proctype = proctype

        # proctype is set in canvasengine.py:2980
        if proctype == 'ARM9': self.capabilities.append('android')
Пример #10
0
    def __init__(self):
        CrossPlatformNode.__init__(self)
        MOSDEFNode.__init__(self)
        self.nodetype = "ScriptNode"
        self.pix = "ScriptNode"
        self.capabilities += ["PHP", "upload", "download", "sock"]
        self.activate_text()
        self.colour = "yellow"
        # not working for now, but ill leave it here
        self.server_http = [
            "HTTP_HOST", "HTTP_USER_AGENT", "HTTP_ACCEPT",
            "HTTP_ACCEPT_LANGUAGE", "HTTP_ACCEPT_ENCODING", "HTTP_CONNECTION",
            "PATH", "SERVER_SIGNATURE"
        ]

        self.server_vars = [
            "SERVER_SOFTWARE", "SERVER_NAME", "SERVER_ADDR", "SERVER_PORT",
            "REMOTE_ADDR", "DOCUMENT_ROOT", "SERVER_ADMIN", "SCRIPT_FILENAME",
            "REMOTE_PORT", "GATEWAY_INTERFACE", "SERVER_PROTOCOL",
            "REQUEST_METHOD", "QUERY_STRING", "REQUEST_URI", "SCRIPT_NAME",
            "PHP_SELF", "REQUEST_TIME_FLOAT", "REQUEST_TIME"
        ]
        self.env_vars = ["PATH", "LANG"]
        # ini settings are setup using a flag value
        # this is to determine if we are reading a string or not
        self.ini_settings = [
            ("safe_mode", 0),
            ("register_globals", 0),  # are all the variables 
            ("allow_url_fopen", 0),  # can we include code remotley?
            ("allow_url_include", 0),  # can we include code remotley?
            ("variables_order", 1),  # Which superglobals are enabled?
            ("register_argc_argv", 1),  # CLI scripts anyone
            ("register_globals", 0),
            ("default_socket_timeout",
             1),  # I feel this would be important to know..
            ("enable_dl", 0),  # can we remotly load shared_objects?
            ("extension", 1),  # which extensions are loaded?
            ("date.timezone", 1),  # timezone of the target server
            ("sql.safe_mode", 0),  # sql safe mode???
            ("session.name",
             1),  # get the current session name nornally PHPSESSID
            ("disable_functions",
             1),  # the most important, get the list of disabled_functions
        ]

        return
Пример #11
0
 def __init__(self):
     MOSDEFNode.__init__(self)
     self.nodetype = "aixNode"
     self.capabilities += ["Unix Shell", 'AIX', 'posix', 'VFS']
     self.shell = None
     self.sane_interface_number = 32
Пример #12
0
 def send(self, sock, message):
     return MOSDEFNode.send(self, sock, message)
Пример #13
0
 def recv(self, sock, length):
     return MOSDEFNode.recv(self, sock, length)