from multiprocessing.dummy import Pool as ThreadPool
;[abcmlyx]{2}ctf[0-9]{3}
,[abcmlyx]{2}
的意思是连着两个中括号里边的字母,ctf
就是ctf,[0-9]{3}
是连着三色0-9之间的数字,符合条件的很多,利用脚本多线程进行破解。#!/usr/bin/env python
# -*- encoding: utf-8 -*-
#fileName : decry.py
#createTime: 2020/09/17 22:35:41
#author : 乔悟空
#purpose : 此脚本用于暴力获取js/[abcmlyx]{2}ctf[0-9]{3}.js正则表达式文件
import requests
from multiprocessing.dummy import Pool as ThreadPool
url = ‘http://1f94e221dfdb421698e505e4a482cf249343f4fdd6fb4089.changame.ichunqiu.com/js/‘
res1 = ‘abcmlyx‘
res2 = ‘0123456789‘
reqList = []
for i in res1:
for j in res1:
for x in res2:
for y in res2:
for m in res2:
reqList.append(url+ i+ j+ ‘ctf‘+ x+ y+ m+ ‘.js‘)
def url_open(url):
try:
req = requests.get(url)
if ‘404‘ not in req.text:
print(url+req.text)
except:
pass
pool = ThreadPool()
pool.map(url_open,reqList)
pool.close()
pool.join()
myctf801.js
,js文件内容是flag{6af42585-d1f0-4ac5-a653-d8217e13c7ae}
原文:https://www.cnblogs.com/qiaowukong/p/13688650.html