脚本通读报告,抓取IP并检查是否恶意,输出恶意IP信息

FilterReportIPsByCount的Python项目详细描述


FilterReportPSByCount筛选器报表

脚本来通读包含潜在恶意IP地址并需要黑名单的报告,检查这些IP是否在报告中出现多次(计数),并检查这些IP是否已被列入黑名单。将IP列表和IP分析输出到标准输出或选择的文件中。在

如何使用

Make sure that you have Python installed on your computer, and that it is updated to at least version 3.6

方法1:使用PyPi

pip安装
  1. 在命令行中,导航到存储库并输入以下命令(仅在首次使用时需要)

    • python -m pip install FilterReportIPsByCount
  2. 使用以下参数输入以下命令:

    • 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 filenameno countpython -m FilterReportIPsByCount -i "BotReport.xls"

  • 输入文件名和输出文件名和no countpython -m FilterReportIPsByCount -i "BotReport.xls -o "ListOfIPs.txt"

  • 输入文件名和输出文件名和计数 python -m FilterReportIPsByCount -i "BotReport.xls" -c 2

方法2:不安装

  1. 下载zip文件或克隆存储库
  2. 在命令行中,导航到存储库并输入以下命令(仅在首次使用时需要)
    • pip install -r requirements.txt
  3. 使用以下参数输入以下命令:
    • 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 filenameno countpython -m FilterReportIPsByCount\FilterReportIPsByCount.py -i "BotReport.xls"

  • 输入文件名和输出文件名和no countpython -m FilterReportIPsByCount\FilterReportIPsByCount.py -i "BotReport.xls -o "ListOfIPs.txt"

  • 输入文件名和输出文件名和计数 python -m FilterReportIPsByCount\FilterReportIPsByCount.py -i "BotReport.xls" -c 2

方法三:用git

安装
  1. 在命令行中,通过输入以下命令安装存储库(仅第一次需要)
    • python -m pip install git+https://github.com/divyaaveerama/FilterReportIPsByCount.git#egg=FilterReportIPsByCount
  2. 安装后,使用以下参数输入以下命令:
    • 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 filenameno countpython -m FilterReportIPsByCount -i "BotReport.xls"

  • 输入文件名和输出文件名和no countpython -m FilterReportIPsByCount -i "BotReport.xls -o "ListOfIPs.txt"

  • 输入文件名和输出文件名和计数 python -m FilterReportIPsByCount -i "BotReport.xls" -c 2

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
分别使用椭圆曲线密码对文本消息进行java加密和解密   java如何将JTable滚动到特定值?   java JSP登录注销简单web应用程序,使用bean在数据库中存在数据时返回false   java无法编译,未设置类路径,包不存在?   java为什么这一变量会受到影响?   集合为什么Java在Map中没有putIfAbsent(key,supplier)方法?   安卓在Java中计算仿真时间   java初始化方法在主类中的指定方法之前运行   java如何在hadoop的reduce中将genericWritable恢复为用户定义的可写?   如何使用java替换pdf中的文本   参数不适用于ASP服务器的java HttpPost   创建对象时的java NullPointerException   Java JPanel中的swing图形有问题,但它在一个框架中工作   java Android Studio在硬件设备上运行时出错   google api类路径的java空指针异常   java如何将InputStream转换为DataHandler?   java在多个Jetty服务器之间共享连接池