mirror of
https://github.com/j3ssie/osmedeus.git
synced 2026-08-21 15:12:29 +02:00
35 lines
1.3 KiB
Python
Executable File
35 lines
1.3 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
import os
|
|
import sys
|
|
import time
|
|
import argparse
|
|
import urllib.parse
|
|
sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
|
|
|
|
from core import utils
|
|
|
|
|
|
# portscan -i /tmp/target.txt -o '$WORKSPACE/portscan/$OUTPUT' -s '$WORKSPACE/portscan/summary.txt' -p '$PLUGINS_PATH'
|
|
def routine(args):
|
|
target = args.input
|
|
output = args.output
|
|
|
|
os.system(f'cat {target} | unfurl -u format http://%d >> {output}-scheme.txt')
|
|
os.system(f'cat {target} | unfurl -u format https://%d >> {output}-scheme.txt')
|
|
os.system(f'cat {target} | unfurl -u format %s://%d%p >> {output}-raw-scheme.txt')
|
|
os.system(f'cat {target} | unfurl -u format http://%d:%P >> {output}-port.txt')
|
|
os.system(f'cat {target} | unfurl -u format %s://%d%p >> {output}-paths.txt')
|
|
os.system(
|
|
f'cat {target} | unfurl -u format https://%d:%P >> {output}-port.txt')
|
|
os.system(f'cat {target} | unfurl -u format %d >> {output}-domains.txt')
|
|
os.system(f'cat {target} | unfurl -u format %r >> {output}-root.txt')
|
|
time.sleep(0.3)
|
|
|
|
|
|
parser = argparse.ArgumentParser(description="VulnScan alias")
|
|
parser.add_argument('-i', '--input', action='store', dest='input', help='input')
|
|
parser.add_argument('-o', '--output', action='store', dest='output', help='output')
|
|
|
|
args = parser.parse_args()
|
|
routine(args)
|