# -*- coding:UTF-8 -*-#"""根据Redis的密码字典,暴力破解"""import redisimport sys,osimport threadingBIN="/usr/local/bin/medusa"#medusa -u root -p 123456 -h 111.207.22.72 -M sshdef threadTask(plist,threadnum): 
# -*- coding:UTF-8 -*-"""access_log 建模:根据request长度来生成白名单(基于统计的方法)第一阶段:训练阶段 application profiling分析对象:access log分析方法:(1) 去重(2) 筛掉响应码为4xx,5xx的请求 (或者选择2xx,3xx的请求)(3) 筛掉静态资源请求第二阶段:检测阶段on-line learning sta
备忘:import os,sysif __name__=='__main__': if not sys.argv[1:]: print "Usage: python bench_normal.py [OPTIONS] \n" &
#encoding:utf-8#!/usr/local/bin/pythonfrom crontab import CronTabimport sys,refrom croniter import croniterfrom datetime import datetimeimport socketimport fcntlimport structdef get_ip_address(ifname)
import socketimport fcntlimport structdef get_ip_address(ifname): s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) return socket.inet_ntoa(fcntl.ioctl(  
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号