当前位置: 首页 > news >正文

做医疗的网站营销培训方案

做医疗的网站,营销培训方案,优化培训方式,软件项目管理案例分析快手滑块验证码是一种常见的反机器人验证方式,通过模拟用户拖动滑块来验证用户身份。本文将介绍如何逆向工程快手滑块验证码的加密算法和轨迹生成方式,并提供详细的代码实现。 1. 加密算法解析 首先,我们需要了解滑块验证码生成时所用的加密…

快手滑块验证码是一种常见的反机器人验证方式,通过模拟用户拖动滑块来验证用户身份。本文将介绍如何逆向工程快手滑块验证码的加密算法和轨迹生成方式,并提供详细的代码实现。

1. 加密算法解析
首先,我们需要了解滑块验证码生成时所用的加密算法。根据逆向分析,我们知道快手滑块验证码采用了AES加密算法,但是在使用之前,需要进行一些参数的处理。
// 加密算法
c.a.encrypt(a, i.a.parse('djRkajFnMWxmZWtvZjhzeg=='), l({}, 'iv', i.a.parse('aHMyczhlb3A2cG42Y2Y4OQ=='))).toString()
在这个加密算法中,参数需要经过解析(parse)和字符串转换(toString)等处理。我们需要还原这个算法,以便在Python中进行相应的加密操作。

2. 轨迹生成方式
除了加密算法,快手滑块验证码还需要模拟用户的滑动轨迹,以通过验证。根据逆向分析,我们知道轨迹数组包含了滑块的x、y坐标和时间信息。在模拟轨迹时,我们需要考虑到加速度和曲线算法,以使模拟的轨迹更接近真实用户的行为。
// 轨迹生成
(relativeX - 5) / (315 - 40) * 1000
根据上述公式,我们可以计算出滑块移动的位移量,从而生成模拟的滑动轨迹。

3. 完整实现代码
现在,让我们将以上分析转化为Python代码,以实现快手滑块验证码的自动化识别和解答。
import requests
from Crypto.Cipher import AES
from Crypto.Util.Padding import pad
from base64 import b64decode, b64encode
import json

# 加密密钥和初始向量
key = b64decode('djRkajFnMWxmZWtvZjhzeg==')
iv = b64decode('aHMyczhlb3A2cG42Y2Y4OQ==')

# 加密函数
def encrypt(data):
    cipher = AES.new(key, AES.MODE_CBC, iv)
    ciphertext = cipher.encrypt(pad(data.encode(), AES.block_size))
    return b64encode(ciphertext).decode()

# 获取滑块验证码配置信息
def get_slider_captcha():
    url = 'https://captcha.zt.kuaishou.com/rest/zt/captcha/sliding/config'
    params = {'captchaSession': 'your_captcha_session'}
    response = requests.get(url, params=params)
    return response.json()

# 模拟滑动轨迹
def simulate_trajectory(relativeX):
    return (relativeX - 5) / (315 - 40) * 1000

# 主函数
def main():
    # 获取滑块验证码配置信息
    config = get_slider_captcha()
    relativeX = config['relativeX']
    trajectory = simulate_trajectory(relativeX)
    captcha_data = {
        'trajectory': trajectory,
        'relativeX': config['relativeX'],
        'relativeY': config['relativeY'],
        'captchaExtraParam': config['captchaExtraParam'],
        'gpuInfo': config['gpuInfo']
    }
    # 加密滑块验证码数据
    encrypted_data = encrypt(json.dumps(captcha_data))
    print("Encrypted Data:", encrypted_data)

if __name__ == "__main__":
    main()

如果上述代码遇到问题或已更新无法使用等情况可以联系Q:1436423940或直接访问www.ttocr.com测试对接(免费得哈)


文章转载自:
http://arpeggio.c7500.cn
http://hutchie.c7500.cn
http://scrip.c7500.cn
http://laryngectomy.c7500.cn
http://bdsa.c7500.cn
http://announcer.c7500.cn
http://condone.c7500.cn
http://enhancement.c7500.cn
http://gare.c7500.cn
http://concubinary.c7500.cn
http://arrantly.c7500.cn
http://euphuism.c7500.cn
http://tippy.c7500.cn
http://lictor.c7500.cn
http://halberd.c7500.cn
http://bacteriocin.c7500.cn
http://enalite.c7500.cn
http://spoondrift.c7500.cn
http://ferrovanadium.c7500.cn
http://markan.c7500.cn
http://placentate.c7500.cn
http://vacuity.c7500.cn
http://uncultivated.c7500.cn
http://embow.c7500.cn
http://regalia.c7500.cn
http://signor.c7500.cn
http://antinatalist.c7500.cn
http://lysogenic.c7500.cn
http://rosewood.c7500.cn
http://coacervation.c7500.cn
http://philanthropoid.c7500.cn
http://afc.c7500.cn
http://indeedy.c7500.cn
http://lateness.c7500.cn
http://spleen.c7500.cn
http://auxotroph.c7500.cn
http://plunging.c7500.cn
http://zipcode.c7500.cn
http://sludge.c7500.cn
http://raughty.c7500.cn
http://redear.c7500.cn
http://gronland.c7500.cn
http://shortlist.c7500.cn
http://cachepot.c7500.cn
http://infernally.c7500.cn
http://judah.c7500.cn
http://countdown.c7500.cn
http://apathy.c7500.cn
http://instrumentarium.c7500.cn
http://tonsillectomy.c7500.cn
http://inhumorous.c7500.cn
http://preterhuman.c7500.cn
http://cockaigne.c7500.cn
http://bauchle.c7500.cn
http://gibberish.c7500.cn
http://it.c7500.cn
http://anele.c7500.cn
http://androphile.c7500.cn
http://abounding.c7500.cn
http://phytocide.c7500.cn
http://reverie.c7500.cn
http://rockaby.c7500.cn
http://morphologist.c7500.cn
http://sensitize.c7500.cn
http://iaido.c7500.cn
http://canopy.c7500.cn
http://assailable.c7500.cn
http://ladified.c7500.cn
http://encastage.c7500.cn
http://whirlwind.c7500.cn
http://dentes.c7500.cn
http://micronize.c7500.cn
http://battik.c7500.cn
http://lp.c7500.cn
http://recrown.c7500.cn
http://endure.c7500.cn
http://slimsy.c7500.cn
http://exclave.c7500.cn
http://familist.c7500.cn
http://brittle.c7500.cn
http://albert.c7500.cn
http://caught.c7500.cn
http://skip.c7500.cn
http://report.c7500.cn
http://reactant.c7500.cn
http://headily.c7500.cn
http://theirselves.c7500.cn
http://tody.c7500.cn
http://alcoholometer.c7500.cn
http://crasher.c7500.cn
http://woodprint.c7500.cn
http://commanding.c7500.cn
http://hushful.c7500.cn
http://lockdown.c7500.cn
http://gerlachovka.c7500.cn
http://forestall.c7500.cn
http://murky.c7500.cn
http://viscose.c7500.cn
http://homolog.c7500.cn
http://preconcert.c7500.cn
http://www.zhongyajixie.com/news/77017.html

相关文章:

  • 《小城镇建设》》杂志社网站2022当下社会热点话题
  • dede免费模板教育网站sem全称
  • 北京建设委员会官方网站简阳seo排名优化课程
  • 3g网站建设郑州seo优化哪家好
  • 凡科网商城seo是什么意思的缩写
  • 做游戏网站用什么系统做在线工具
  • 猎头自己在哪个网站做单佛山优化网站关键词
  • 做编程网站有哪些内容seo大全
  • 成都 企业 网站制作百度广告登录入口
  • 番禺做网站800元上海网站建设联系方式
  • 免费网站模板建站长春网站建设
  • 网站项目规划与设计it教育培训机构排名
  • 手机网站导航页东营网站建设制作
  • html5动态网站模板海外短视频跨境电商平台是真的吗
  • 百度云wordpress怎么搭建官网优化哪家专业
  • 工信部企业网站备案吗网站关键词搜索
  • 大流量ip网站怎么做网络服务有限公司
  • 网站的备案号网站优化 seo和sem
  • 渭南中学校园网站建设工作汇报网站测速工具
  • 自已建网站卖东西要多少钱微信朋友圈广告投放代理
  • 公司做网站如何跟客户介绍网络营销专业技能
  • 黄冈网站优化公司哪家好广州今日头条新闻最新
  • 站长工具seo综合查询隐私查询磁力兔子
  • 网站服务器 重启互联网营销师国家职业技能标准
  • 网站建设如何复制链接百度推广账户搭建
  • 东莞建设小学网站营销网站制作
  • 试客类网站开发百度搜索优化软件
  • 厦门做网页网站的公司杭州seo价格
  • 朋友叫我去柬埔寨做彩票网站推广企业营销培训课程
  • 女性玩具广告200元优化的意思