脚本通读报告,抓取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第三方库


热门话题
部署在kubernetes上时,微服务中服务间通信中的java连接超时问题   java Nway合并对2G字符串文件进行排序   java如何使用FlexJson按特定顺序序列化对象和属性   如何在java布尔方法中导入文本文件   swing需要帮助在我的Java GUI中实现用户输入的侦听器   java如何读取枚举中Spring Messagesource的内容?   每个Ajaxcall上(之前和之后)的java Javascript   java compareTo(Comparable)方法对于Comparable类型未定义   带换行符的java Bash输入重定向   使用Spring授权标记检查用户是否登录时发生java错误?   使用大尺寸(100000)数组执行快速排序时出现Java StackOverflower错误   java forEach迭代器标记   Java ClassNotFound异常,Maven依赖项作为JAR   java将HQL转换为SQL查询   java正在将片段列表发送到FragmentPagerAdapter   java onActivityResult应该调用super。onActivityResult   java如果我导入一个超类,我也需要导入它的子类吗?   java是否可以通过openid协议对aadhar进行身份验证