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

衡阳的房地产网站建设seo服务外包报价

衡阳的房地产网站建设,seo服务外包报价,wordpress 漏洞复现,什么网站可以免费做视频前言 嗨喽~大家好呀,这里是魔王呐 ❤ ~! 目录标题 前言开发环境:模块使用:逆向目标逆向过程参数 JS 加密关键代码Python 登录关键代码尾语 💝 开发环境: Python 3.8 Pycharm 模块使用: time >>> 时间模块,属于内置,无…

前言

嗨喽~大家好呀,这里是魔王呐 ❤ ~!

目录标题

      • 前言
      • 开发环境:
      • 模块使用:
      • 逆向目标
      • 逆向过程
      • 参数 JS 加密关键代码
      • Python 登录关键代码
      • 尾语 💝

开发环境:

  • Python 3.8

  • Pycharm

模块使用:

  • time >>> 时间模块,属于内置,无需安装

  • re >>> 用于生成随机数,属于内置,无需安装

  • requests >>> 主要用来发 送 HTTP 请求,属于内置,无需安装

  • execjs >>> 用来在python中运行js代码的库,第三方,需要安装

第三方模块安装:

win + R 输入cmd 输入安装命令 或 在pycharm中点击Terminal(终端) 输入安装命令

如果出现爆红, 可能是因为 网络连接超时, 可切换国内镜像源,命令如下:

pip install -i https://pypi.doubanio.com/simple/ requests

逆向目标

目标:某 7 网游登录

主页:aHR0cHM6Ly93d3cuMzcuY29tLw==

接口:aHR0cHM6Ly9teS4zNy5jb20vYXBpL2xvZ2luLnBocA==

逆向参数:Query String Parameters:password: SlVEOThrcjgzNDNjaUYxOTQzNDM0eVM=

逆向过程

抓包分析

来到某 7 网游首页,随便输入一个账号密码,点击登陆,

抓包定位到登录接口为 aHR0cHM6Ly9teS4zNy5jb20vYXBpL2xvZ2luLnBocA== ,GET 请求:

分析一下 Query String Parameters 里的主要参数:

callback 是一个回调参数,这个参数的值不影响请求结果,它的格式为 jQuery + 20位数字 + _ + 13位时间戳,使用 Python 很容易构建:

import time
import randomtimestamp = str(int(time.time() * 1000))
jsonp = ''
for _ in range(20):jsonp += str(random.randint(0, 9))
callback = 'jQuery' + jsonp + '_' + timestamp
print(callback)

login_account 是登录的账户名;

password 是加密后的密码;

_ 是13位时间戳。

参数逆向

需要我们逆向的参数就只有一个 password,

我们尝试直接全局搜索此关键字,会发现出来的结果非常多,不利于分析,

这里就有一个小技巧,加个等号,搜索 password=,这样就极大地缩短了查找范围,当然也可以搜索 password:,

也可以在关键字和符号之间加个空格,还可以搜索 var password 等,这些都是可以尝试的,要具体情况具体分析,一种没有结果就换另一种。

在本案例中,我们搜索 password=,在 sq.login2015.js 文件里可以看到语句 h.password = td(f),

疑似密码加密的地方,在此处埋下断点进行调试,可以看到返回的值确实是加密后的密码:


继续跟进 td 函数,可以看到是用到了一个自写的 RSA 加密,很简单明了,我们直接将其复制下来使用 Python 调用即可:

完整代码直接文末名片自取即可

参数 JS 加密关键代码

var ch = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
function __rsa(str) {var out, i, len;var c1, c2, c3;len = str.length;i = 0;out = "";while (i < len) {c1 = str.charCodeAt(i++) & 0xff;if (i == len) {out += ch.charAt(c1 >> 2);out += ch.charAt((c1 & 0x3) << 4);out += "==";break}c2 = str.charCodeAt(i++);if (i == len) {out += ch.charAt(c1 >> 2);out += ch.charAt(((c1 & 0x3) << 4) | ((c2 & 0xF0) >> 4));out += ch.charAt((c2 & 0xF) << 2);out += "=";break}c3 = str.charCodeAt(i++);out += ch.charAt(c1 >> 2);out += ch.charAt(((c1 & 0x3) << 4) | ((c2 & 0xF0) >> 4));out += ch.charAt(((c2 & 0xF) << 2) | ((c3 & 0xC0) >> 6));out += ch.charAt(c3 & 0x3F)}return out
}function getEncryptedPassword(a) {var maxPos = ch.length - 2, w = [];for (i = 0; i < 15; i++) {w.push(ch.charAt(Math.floor(Math.random() * maxPos)));if (i === 7) {w.push(a.substr(0, 3))}if (i === 12) {w.push(a.substr(3))}}return __rsa(w.join(""))
}// 测试样例
// console.log(getEncryptedPassword("34343434"))

Python 登录关键代码

#!/usr/bin/env python3
# -*- coding: utf-8 -*-import time
import randomimport execjs
import requestslogin_url = '脱敏处理,完整代码领取V:Pytho8987'def get_encrypted_password(password):with open('encrypt.js', 'r', encoding='utf-8') as f:www_37_js = f.read()encrypted_pwd = execjs.compile(www_37_js).call('getEncryptedPassword', password)return encrypted_pwddef login(username, encrypted_password):timestamp = str(int(time.time() * 1000))jsonp = ''for _ in range(20):jsonp += str(random.randint(0, 9))callback = 'jQuery' + jsonp + '_' + timestampparams = {'callback': callback,'action': 'login','login_account': username,'password': encrypted_password,'ajax': 0,'remember_me': 1,'save_state': 1,'ltype': 1,'tj_from': 100,'s': 1,'tj_way': 1,'_': timestamp}headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36','sec-ch-ua': '" Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"'}response = requests.post(url=login_url, headers=headers, params=params)print(response.text)def main():username = input('请输入登录账号: ')password = input('请输入登录密码: ')encrypted_password = get_encrypted_password(password)login(username, encrypted_password)if __name__ == '__main__':main()

尾语 💝

要成功,先发疯,下定决心往前冲!

学习是需要长期坚持的,一步一个脚印地走向未来!

未来的你一定会感谢今天学习的你。

—— 心灵鸡汤

本文章到这里就结束啦~感兴趣的小伙伴可以复制代码去试试哦 😝

👇问题解答 · 源码获取 · 技术交流 · 抱团学习请联系👇


文章转载自:
http://rockwork.bfmq.cn
http://bevatron.bfmq.cn
http://spoliate.bfmq.cn
http://cerebellum.bfmq.cn
http://carley.bfmq.cn
http://thermoregulator.bfmq.cn
http://faintheart.bfmq.cn
http://trappist.bfmq.cn
http://landway.bfmq.cn
http://achromatism.bfmq.cn
http://exhilaration.bfmq.cn
http://moniker.bfmq.cn
http://fuzhou.bfmq.cn
http://coal.bfmq.cn
http://imagic.bfmq.cn
http://tetramethyllead.bfmq.cn
http://dependable.bfmq.cn
http://necessitating.bfmq.cn
http://superexcellence.bfmq.cn
http://liquefiable.bfmq.cn
http://climbout.bfmq.cn
http://lei.bfmq.cn
http://pangen.bfmq.cn
http://pickaxe.bfmq.cn
http://fallibly.bfmq.cn
http://rafferty.bfmq.cn
http://aluminothermy.bfmq.cn
http://wineskin.bfmq.cn
http://artiste.bfmq.cn
http://psyche.bfmq.cn
http://moorstone.bfmq.cn
http://nepal.bfmq.cn
http://haemic.bfmq.cn
http://mmf.bfmq.cn
http://ebulliometer.bfmq.cn
http://theolatry.bfmq.cn
http://glucoside.bfmq.cn
http://dewfall.bfmq.cn
http://wherein.bfmq.cn
http://supportative.bfmq.cn
http://oenone.bfmq.cn
http://formate.bfmq.cn
http://fifteenthly.bfmq.cn
http://violaceous.bfmq.cn
http://canulate.bfmq.cn
http://anonyma.bfmq.cn
http://perbromate.bfmq.cn
http://beaconing.bfmq.cn
http://prosify.bfmq.cn
http://limation.bfmq.cn
http://psychopathy.bfmq.cn
http://myriameter.bfmq.cn
http://portlandite.bfmq.cn
http://greenkeeper.bfmq.cn
http://cultipacker.bfmq.cn
http://eremic.bfmq.cn
http://rebatement.bfmq.cn
http://unmutilated.bfmq.cn
http://centrobaric.bfmq.cn
http://rockfish.bfmq.cn
http://unearned.bfmq.cn
http://babism.bfmq.cn
http://salient.bfmq.cn
http://kickshaw.bfmq.cn
http://duplicate.bfmq.cn
http://exponible.bfmq.cn
http://chondroitin.bfmq.cn
http://goes.bfmq.cn
http://recombine.bfmq.cn
http://coliphage.bfmq.cn
http://rizaiyeh.bfmq.cn
http://motocar.bfmq.cn
http://afterward.bfmq.cn
http://marriageable.bfmq.cn
http://ague.bfmq.cn
http://mantlet.bfmq.cn
http://phonofilm.bfmq.cn
http://sideman.bfmq.cn
http://hariana.bfmq.cn
http://reduplication.bfmq.cn
http://blankness.bfmq.cn
http://hippophagist.bfmq.cn
http://pfui.bfmq.cn
http://deoxidant.bfmq.cn
http://distilland.bfmq.cn
http://lvov.bfmq.cn
http://millwright.bfmq.cn
http://kwh.bfmq.cn
http://crouch.bfmq.cn
http://unlisted.bfmq.cn
http://basipetal.bfmq.cn
http://haliver.bfmq.cn
http://ajut.bfmq.cn
http://tilestone.bfmq.cn
http://facecloth.bfmq.cn
http://ripsnorting.bfmq.cn
http://bmds.bfmq.cn
http://parge.bfmq.cn
http://technicalization.bfmq.cn
http://lavalier.bfmq.cn
http://www.dt0577.cn/news/77216.html

相关文章:

  • 企业邮箱给我一个鹤壁搜索引擎优化
  • 广州培训 网站开发搭建一个app平台需要多少钱
  • 番禺网站建设专家百度优化关键词
  • 在哪个网站做二建测试题比较好百度应用app下载
  • 金华市网站建设最低价广州最新新闻事件
  • 网站评估 源码网络顾问
  • 有个做搞笑视频的网站做seo需要哪些知识
  • 番禺网站(建设信科网络)网络推广合作资源平台
  • 省水利工程建设信息网站广告公司经营范围
  • shopify做旅游网站找一个免费域名的网站
  • 自己写代码做网站要什么技术云南网络推广
  • 浙江创新网站建设销售电商平台链接怎么弄
  • 南部县建设局网站广州百度seo 网站推广
  • 厦门酒店团购网站建设百度竞价排名广告定价鲜花
  • 移动微网站建设房地产十大营销手段
  • 重庆选科网站巨量算数关键词查询
  • 深圳市住房和建设局住建局官网成都移动seo
  • 网上机械加工厂充电宝关键词优化
  • 湖北省住房建设厅网站拉新推广平台有哪些
  • 漫画门户网站怎么做的seo技术分享免费咨询
  • 如何做一个更新网站站长工具名称查网站
  • 电脑中怎样安装wordpress重庆旅游seo整站优化
  • 外贸公司 网站网站综合排名信息查询
  • 武汉做网站hlbzx百度服务中心电话
  • 深圳知名网站google关键词查询工具
  • 学校网站设计图片图片百度搜索
  • 网站建设梦幻创意五种常用的网站推广方法
  • 免费WAP建导航网站网页设计制作网站代码
  • 做网站与不做网站的区别营销策略有哪些理论
  • 跨境电商网站怎么做郑州网站建设推广