Skip to content

Commit

Permalink
readme_update
Browse files Browse the repository at this point in the history
  • Loading branch information
grayddq authored and grayddq committed May 5, 2019
1 parent 358bfa4 commit 145c090
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 deletions.
7 changes: 3 additions & 4 deletions GScan.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@
print(progam)

parser = optparse.OptionParser()
parser.add_option("--overseas", dest="overseas", default=False, action='store_true',
help=u"默认国内模式,设置此参数将不进行境外ip的匹配")
parser.add_option("--full", dest="full_scan", default=False, action='store_true', help=u"完全扫描,默认为快速扫描")
parser.add_option("--overseas", dest="overseas", default=False, action='store_true', help=u"境外模式,此参数将不进行境外ip的匹配")
parser.add_option("--full", dest="full_scan", default=False, action='store_true', help=u"完全扫描,此参数将启用完全扫描")
parser.add_option("--debug", dest="debug", default=False, action='store_true', help=u"调试模式,进行程序的调试数据输出")
parser.add_option("-l", "--log", dest="logdir", help=u"打包当前系统的所有安全日志,demo: -l /var/log/")
parser.add_option("-l", "--log", dest="logdir", help=u"打包当前系统的所有安全日志(暂不支持),demo: -l /var/log/")
options, _ = parser.parse_args()

if not options.logdir:
Expand Down
27 changes: 24 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,37 @@
>
>权限:root权限启动
>
>执行时间:新创建的主机程序大概执行时间为10分钟,程序执行时间的长度由检测文件的多少决定,有可能会存在较长的时间,请耐心等待
>执行时间:默认安全扫描大概执行时间为4~6分钟,完全扫描在1~2小时之间,程序执行时间的长度由检测文件的多少决定,有可能会存在较长的时间,请耐心等待
>
>兼容性:目前程序只针对Centos进行开发测试,其他系统并未做兼容性,检测结果未知
## 部署和执行 ##

程序下载

> root# <kbd>git clone https://github.com/grayddq/GScan.git</kbd>
>
> root# <kbd>cd GScan</kbd>
>
> root# <kbd>sudo python GScan.py</kbd>
程序执行

> root# python GScan.py -h
>
> Usage: GScan.py [options]
>
> Options:
>
> -h, --help show this help message and exit
>
> --overseas 境外模式,此参数将不进行境外ip的匹配
>
> --full 完全扫描,此参数将启用完全扫描
>
> --debug 调试模式,进行程序的调试数据输出
>
> -l LOGDIR, --log=LOGDIR 打包当前系统的所有安全日志,demo: -l /var/log/
>
>root# <kbd>python GScan.py</kbd>
>
>或者使用nohup后台执行,一段时间后直接查看输出结果/var/log/gscan/gscan.log
>
Expand Down

0 comments on commit 145c090

Please sign in to comment.