示例#1
0
 def get_ip_value_from_online_cloudflare_interface(self):
     # 从在线的cloudflare查询真实ip接口处查询真实ip
     # 如果查询到真实ip则返回ip值,如果没有查询到则返回0
     print("[*]现在从在线cloudflare类型cdn查询真实ip接口尝试获取真实ip")
     url = "http://www.crimeflare.com/cgi-bin/cfsearch.cgi"
     post_data = 'cfS=%s' % self.domain
     content = post_request(url, post_data)
     findIp = re.search(
         "((\d{1,3}\.){3}\d{1,3})"
         "((\d{1,3}\.){3}\d{1,3})"
         "((\d{1,3}\.){3}\d{1,3})"
         "((\d{1,3}\.){3}\d{1,3})"
         "((\d{1,3}\.){3}\d{1,3})"
         "((\d{1,3}\.){3}\d{1,3})"
         "((\d{1,3}\.){3}\d{1,3})"
         "((\d{1,3}\.){3}\d{1,3})"
         "((\d{1,3}\.){3}\d{1,3})"
         "((\d{1,3}\.){3}\d{1,3})"
         "((\d{1,3}\.){3}\d{1,3})"
         "((\d{1,3}\.){3}\d{1,3})"
         "((\d{1,3}\.){3}\d{1,3})"
         r"((\d{1,3}\.){3}\d{1,3})", content)
     if findIp:
         return findIp.group(1)
     return 0
示例#2
0
import re
import os
os.system("pip3 install exp10it -U --no-cache")
from exp10it import post_request
while 1:
    post_url = "http://javatools.bejson.com/tools/convert/hex_char"
    ox = input("Please input your string from hopper:>")
    if re.match(r"\\[^\\]+", ox):
        # 只有一个\符号
        pass
    if re.match(r"\\{2}", ox):
        # 有两个\符号
        ox = re.sub(r"\\{2}", r"\\", ox)
    data = {}
    data['old_str'] = ox
    data['fmt_type'] = 'c'
    req = post_request(post_url, data)
    result = re.search(r'''message('|"):('|")(.*?)('|")''', req, re.I).group(3)
    print(result)
示例#3
0
import re
import os
os.system("pip3 install exp10it -U --no-cache")
from exp10it import post_request
while 1:
    postUrl = "http://javatools.bejson.com/tools/convert/hexChar"
    ox = input("Please input your string from hopper:>")
    if re.match(r"\\[^\\]+", ox):
        # 只有一个\符号
        pass
    if re.match(r"\\{2}", ox):
        # 有两个\符号
        ox = re.sub(r"\\{2}", r"\\", ox)
    data = {}
    data['oldStr'] = ox
    data['fmtType'] = 'c'
    req = post_request(postUrl, data)
    result = re.search(r'''message('|"):('|")(.*?)('|")''', req, re.I).group(3)
    print(result)