Skip to content
This repository has been archived by the owner on Dec 24, 2019. It is now read-only.

Commit

Permalink
Merge pull request #28 from leng-yue/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
leng-yue committed Oct 16, 2018
2 parents 0f4b32e + 70062b1 commit 33f3524
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -18,8 +18,10 @@ Vaptcha(2018 10 01) (可用 完整JS) 讲解地址
**https://lengyue.me/index.php/2018/10/06/anjuke/**
Geetest 极验 V2 (2018-10-12) (可用 部分JS + 轨迹 已对接 在线JS执行) 讲解地址
**https://lengyue.me/index.php/category/captcha/geetest/**
JD 滑动 V2 (2018-10-14) (可用 已对接 在线JS执行) 讲解地址
JD 滑动 (2018-10-14) (可用 已对接 在线JS执行) 讲解地址
**https://lengyue.me/index.php/2018/10/14/jd-slide/**
数美滑动 fengkongcloud (2018-10-16) (可用 已对接 在线JS执行) 讲解地址
**https://lengyue.me/index.php/2018/10/16/shumei/**
## 每周两爆
博客文章 **每周两爆**配套资料
**https://lengyue.me/index.php/category/weekly/**
Expand All @@ -33,6 +35,8 @@ JD 滑动 V2 (2018-10-14) (可用 已对接 在线JS执行) 讲解地址
**https://lengyue.me/index.php/2018/10/14/jd-slide/**
2018-10-15 七麦参数破解
**https://lengyue.me/index.php/2018/10/15/qimai/**
2018-10-15 6间房 数美滑动 破解
**https://lengyue.me/index.php/2018/10/16/shumei/**

## 可用的demo
本项目用于**学习/研究**
Expand Down
2 changes: 1 addition & 1 deletion 每周两爆/七麦/README.md
Expand Up @@ -4,7 +4,7 @@
本demo实现了主题请求流程 已经在线JS接口
完整JS代码请参考博客复现
分析思路地址
**https://lengyue.me/index.php/2018/10/15/qimai/**
**https://lengyue.me/index.php/2018/10/15/qimai/**
2018-10-15 **已验证可用**
## 作者信息
作者 **冷月**
Expand Down
Binary file added 滑动验证码/数美/current.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions 滑动验证码/数美/readme.md
@@ -0,0 +1,10 @@
# 数美滑动 破解 (六间房破解)
作者: **冷月**
**2018-10-16 试验可用**
讲解 & 调用方法
**https://lengyue.me/index.php/2018/10/16/shumei/**

## 文件说明
run.py 程序入口
本项目JS采用 **冷月API** 在线执行
希望离线的请自行看博客, 重写JS代码
58 changes: 58 additions & 0 deletions 滑动验证码/数美/run.py
@@ -0,0 +1,58 @@
"""
没周两爆 - 数美滑动破解
样例网站
作者 冷月 https://www.6.cn/
日期 2018-10-16
"""
import requests
import json


# 初始化环境
session = requests.Session()
session.headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) "
"Chrome/69.0.3497.81 Safari/537.36"
}


# 获取验证码
response = session.get(
"https://captcha.fengkongcloud.com/ca/v1/register",
params={
"organization": "TKWQ4vmgC3PJLGDTMIoJ",
"appId": "default",
"channel": "DEFAULT",
"lang": "zh-cn",
"model": "slide",
"rversion": "1.0.1",
"data": "{}",
"callback": "sm_1539652688401"
}
)
init_data = json.loads(response.text.replace("sm_1539652688401(", "").replace(")", ""))
data = session.get("https://castatic.fengkongcloud.com" + init_data["detail"]["bg"]).content
open("./current.jpg", "wb").write(data)

# 计算加密结果
act = requests.post(
"https://lengyue.me/api/execute.php?type=shumei",
data={
"eval": 'window.shumei(%s, %i)' % (json.dumps(init_data), (int(input("请输入距离: ")) - 10) / 2)
}
)

# 获取验证结果
response = session.get(
"https://captcha.fengkongcloud.com/ca/v1/fverify",
params={
"organization": "TKWQ4vmgC3PJLGDTMIoJ",
"appId": "default",
"channel": "DEFAULT",
"lang": "zh-cn",
"rid": init_data["detail"]["rid"],
"act": act,
"callback": "sm_1539652810662",
}
)
print(response.text.replace("sm_1539652810662(", "").replace(")", ""))

0 comments on commit 33f3524

Please sign in to comment.