脚本通读报告,抓取IP并检查是否恶意,输出恶意IP信息
FilterReportIPsByCount的Python项目详细描述
FilterReportPSByCount筛选器报表
脚本来通读包含潜在恶意IP地址并需要黑名单的报告,检查这些IP是否在报告中出现多次(计数),并检查这些IP是否已被列入黑名单。将IP列表和IP分析输出到标准输出或选择的文件中。在
如何使用
方法1:使用PyPi
pip安装- 在
在命令行中,导航到存储库并输入以下命令(仅在首次使用时需要)
python -m pip install FilterReportIPsByCount
- 在
使用以下参数输入以下命令:
python FilterReportIPsByCount -i "<input filename>" -o "<output filename>" -c <count>
在-i [input filename] : REQUIRED, the filename (with path, if not on the same directory) of the excel file you want to analyze
-o [output filename] : Optional, the filename of the text file to which you would like to print the IP analysis information; if not specified, will output to stdout
-c [count] : Optional, number of times an IP should appear in the report to be added to the list of IPs to analyze; if not specified, will default to 5
-h : Shows the arguments and options required Make sure you do not include the arrow brackets (<>) when entering the commands
示例命令
- 在
输入文件名和no output filename和no count
在python -m FilterReportIPsByCount -i "BotReport.xls"
- 在
输入文件名和输出文件名和no count
在python -m FilterReportIPsByCount -i "BotReport.xls -o "ListOfIPs.txt"
- 在
输入文件名和输出文件名和计数
在python -m FilterReportIPsByCount -i "BotReport.xls" -c 2
方法2:不安装
- 下载zip文件或克隆存储库
- 在命令行中,导航到存储库并输入以下命令(仅在首次使用时需要)
pip install -r requirements.txt
- 使用以下参数输入以下命令:
python FilterReportIPsByCount\FilterReportIPsByCount.py -i <input filename> -o <output filename> -c <count>
在-i [input filename] : REQUIRED, the filename (with path, if not on the same directory) of the excel file you want to analyze
-o [output filename] : Optional, the filename of the text file to which you would like to print the IP analysis information; if not specified, will output to stdout
-c [count] : Optional, number of times an IP should appear in the report to be added to the list of IPs to analyze; if not specified, will default to 5
-h : Shows the arguments and options required Make sure you do not include the arrow brackets (<>) when entering the commands
示例命令
- 在
输入文件名和no output filename和no count
在python -m FilterReportIPsByCount\FilterReportIPsByCount.py -i "BotReport.xls"
- 在
输入文件名和输出文件名和no count
在python -m FilterReportIPsByCount\FilterReportIPsByCount.py -i "BotReport.xls -o "ListOfIPs.txt"
- 在
输入文件名和输出文件名和计数
在python -m FilterReportIPsByCount\FilterReportIPsByCount.py -i "BotReport.xls" -c 2
方法三:用git
安装- 在命令行中,通过输入以下命令安装存储库(仅第一次需要)
python -m pip install git+https://github.com/divyaaveerama/FilterReportIPsByCount.git#egg=FilterReportIPsByCount
- 安装后,使用以下参数输入以下命令:
python FilterReportIPsByCount -i "<input filename>" -o "<output filename>" -c <count>
在-i [input filename] : REQUIRED, the filename (with path, if not on the same directory) of the excel file you want to analyze
-o [output filename] : Optional, the filename of the text file to which you would like to print the IP analysis information; if not specified, will output to stdout
-c [count] : Optional, number of times an IP should appear in the report to be added to the list of IPs to analyze; if not specified, will default to 5
-h : Shows the arguments and options required Make sure you do not include the arrow brackets (<>) when entering the commands
示例命令
- 在
输入文件名和no output filename和no count
在python -m FilterReportIPsByCount -i "BotReport.xls"
- 在
输入文件名和输出文件名和no count
在python -m FilterReportIPsByCount -i "BotReport.xls -o "ListOfIPs.txt"
- 在
输入文件名和输出文件名和计数
在python -m FilterReportIPsByCount -i "BotReport.xls" -c 2
- 项目
标签: