コード例 #1
0
ファイル: atck.py プロジェクト: shellb0y/attack_framework
def parse_args():
    global pluginObj
    args=get_args()
    script=args.script
    exp=args.exp
    host=args.host
    if script=='list':
        pluginObj.showPluginList()
        print '[#]usage:'+os.path.basename(__file__)+' -script scriptName'
        sys.exit()
    if exp=='list':
        fileUtil.showPocFileList()
        print '[#]usage:'+os.path.basename(__file__)+' -host http://localhost/ -exp cmsexp.poc'
        sys.exit()
    if host!=None and exp!=None:
        executeExp(host,exp)
    if script!=None:
        use_script(script,host)