Exemplo n.º 1
0
 def banner(self):
     utils.print_banner("Vulnerability Scanning")
     utils.make_directory(self.options['WORKSPACE'] + '/vulnscan')
     utils.make_directory(self.options['WORKSPACE'] + '/vulnscan/details')
     utils.make_directory(self.options['WORKSPACE'] + '/vulnscan/report')
     utils.make_directory(self.options['WORKSPACE'] +
                          '/vulnscan/screenshot')
     utils.make_directory(self.options['WORKSPACE'] +
                          '/vulnscan/screenshot/raw-gowitness/')
     self.delay = 1200
Exemplo n.º 2
0
 def banner(self):
     utils.print_banner("Port Scanning")
     utils.make_directory(self.options['WORKSPACE'] + '/portscan')
     utils.make_directory(self.options['WORKSPACE'] +
                          '/portscan/screenshot')
     utils.make_directory(self.options['WORKSPACE'] +
                          '/portscan/screenshot/raw-gowitness/')
     self.delay = 500
 def banner(self):
     utils.print_banner("Starting ScreenShot")
     utils.make_directory(self.options['WORKSPACE'] + '/screenshot')
     utils.make_directory(
         self.options['WORKSPACE'] + '/screenshot/raw-gowitness')
Exemplo n.º 4
0
def parsing_config(args):
    # create default osmedeus client path
    osmedeus_home = str(Path.home().joinpath('.osmedeus'))
    utils.make_directory(osmedeus_home)

    # parsing remote server here
    remote = args.remote if args.remote else None
    credentials = args.auth if args.auth else None

    # reading old config file or create new one
    if args.config_path:
        config_path = args.config_path
    else:
        config_path = str(Path.home().joinpath('.osmedeus/client.conf'))
    remote, credentials = _config_file_handle(config_path, remote, credentials)

    # remote, credentials = _handle_remote(remote, credentials, configs)

    # folder name to store all the results
    workspace = args.workspace if args.workspace else None

    # Target stuff
    target = args.target if args.target else None
    target_list = args.targetlist if args.targetlist else False
    target = _verify_target(target, target_list)

    # get direct input as single or a file
    direct_input = args.input if args.input else None
    direct_input_list = args.inputlist if args.inputlist else None
    direct_input = _verify_target(direct_input, direct_input_list)

    # parsing speed config
    if args.slow and args.slow.lower() == 'all':
        speed = "quick|-;;slow|*"  # all slow
    elif args.slow:
        # quick all but some slow
        speed = "quick|*;;slow|{0}".format(args.slow.strip())
    else:
        speed = "quick|*;;slow|-"  # all quick

    # parsing modules
    modules = args.modules if args.modules else None

    report = args.report if args.report else None

    # turn on default
    try:
        slack = False if args.noslack else True
        monitor = False if args.nomonitor else True
        localhost = args.localhost if args.localhost else False
    # catch config different from private version
    except:
        slack = True if args.slack else False
        monitor = False
        localhost = True

    if modules:
        if direct_input_list:
            mode = 'direct_list'
        else:
            mode = 'direct'
    elif report:
        mode = 'report'
    else:
        mode = 'general'
    # modules = _handle_speed(raw_modules, speed, mode)

    debug = str(args.debug)
    forced = str(args.forced)

    # select one
    if mode == 'general':
        real_target = utils.set_value(direct_input, target)
    else:
        real_target = utils.set_value(target, direct_input)

    options = {
        'start_ts': utils.gen_ts(),
        'raw_target': real_target,
        'target_list': target_list,
        'mode': mode,
        'slack': slack,
        'speed': speed,
        'workspace': workspace,
        'modules': modules,
        'forced': forced,
        'debug': debug,
        'remote_api': remote.strip('/'),
        'credentials': credentials,
        'localhost': localhost,
        'report': report,
        'monitor': monitor,
    }
    # clean None options before send submit request
    options = _clean_None(options)
    return options
Exemplo n.º 5
0
 def banner(self):
     utils.print_banner("Starting Probing")
     utils.make_directory(self.options['WORKSPACE'] + '/probing')
     self.options['DEBUG'] = True
 def banner(self):
     utils.print_banner("Starting IPSpace")
     utils.make_directory(self.options['WORKSPACE'] + '/ipspace')
 def banner(self):
     utils.print_banner("Start Formatting")
     utils.make_directory(self.options['WORKSPACE'] + '/formatted')
Exemplo n.º 8
0
 def banner(self):
     utils.print_banner("Starting ParamFinding")
     utils.make_directory(self.options['WORKSPACE'] + '/params')
     utils.make_directory(self.options['WORKSPACE'] + '/params/raw')
Exemplo n.º 9
0
 def banner(self):
     utils.print_banner("Starting Subdomain Scanning")
     utils.make_directory(self.options['WORKSPACE'] + '/subdomain')
Exemplo n.º 10
0
 def banner(self):
     utils.print_banner("Scanning Vhosts")
     utils.make_directory(self.options['WORKSPACE'] + '/vhosts')
     utils.make_directory(self.options['WORKSPACE'] + '/vhosts/raw')
 def banner(self):
     utils.print_banner("Starting DirbScan")
     utils.make_directory(self.options['WORKSPACE'] + '/directory/raw')
     utils.make_directory(self.options['WORKSPACE'] + '/directory')
Exemplo n.º 12
0
 def banner(self):
     utils.print_banner("Scanning for Permutation domain")
     utils.make_directory(self.options['WORKSPACE'] + '/permutation')
Exemplo n.º 13
0
 def banner(self):
     utils.print_banner("Starting Fingerprint")
     utils.make_directory(self.options['WORKSPACE'] + '/fingerprint')
     utils.make_directory(self.options['WORKSPACE'] +
                          '/fingerprint/responses')
 def banner(self):
     utils.print_banner("Starting Linkfinding")
     utils.make_directory(self.options['WORKSPACE'] + '/links')
     utils.make_directory(self.options['WORKSPACE'] + '/links/raw')
 def banner(self):
     utils.print_banner("Starting Subdomain TakeOver")
     utils.make_directory(self.options['WORKSPACE'] + '/stoscan')
 def banner(self):
     utils.print_banner("Starting GitScan")
     utils.make_directory(self.options['WORKSPACE'] + '/gitscan')
Exemplo n.º 17
0
 def banner(self):
     utils.print_banner("Scanning for CORScan")
     utils.make_directory(self.options['WORKSPACE'] + '/cors')