def parse_arguments():
from datetime import datetime
import argparse
import os
datetime_now = datetime.now().strftime('%Y%m%d-%H%M')
parser = argparse.ArgumentParser(
prog='securityonion_airgap_download.py',
description='Download updates for tools within Security Onion.',
epilog='Created by SkiTheSlicer (https://github.com/SkiTheSlicer)')
#formatter_class=argparse.RawTextHelpFormatter)
parser.add_argument('-e', '--snort-email',
nargs='?',
help='If supplied, download VRT Registered Rulesets with specified snort.org email address.')#,
#action='store_true')
parser.add_argument('-d', '--output-dir',
nargs='?', default="so-airgap-"+datetime_now,
help='If supplied, download files to specific directory.')#,
#action='store_true')
return parser.parse_args()
securityonion_airgap_download.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录