menu arrow_back 湛蓝安全空间 |狂野湛蓝,暴躁每天 chevron_right ... chevron_right stars chevron_right cve_2018_2894.py
  • home 首页
  • brightness_4 暗黑模式
  • cloud
    xLIYhHS7e34ez7Ma
    cloud
    湛蓝安全
    code
    Github
    cve_2018_2894.py
    768 B / 2021-07-12 19:46:00
        #!/usr/bin/env python3
    # _*_ coding:utf-8 _*_
    # CVE-2018-2894
    # updated 2019/10/23
    # by 0xn0ne
    
    from stars import universe, Star, target_type
    from utils import http
    
    
    @universe.groups()
    class CVE_2018_2894(Star):
        info = {
            'NAME': '',
            'CVE': 'CVE-2018-2894',
            'TAG': []
        }
        type = target_type.MODULE
    
        def light_up(self, dip, dport, *args, **kwargs) -> (bool, dict):
            url = 'http://{}:{}/wsutc/begin.do'.format(dip, dport)
            b_res, data = http(url)
            url = 'http://{}:{}/ws_utc/config.do'.format(dip, dport)
            c_res, data = http(url)
            if (b_res and b_res.status_code == 200) or (c_res and c_res.status_code == 200):
                return True, {'msg': 'finish.'}
            return False, {'msg': 'finish.'}
    
    
    links
    file_download