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

做网站必须要购买空间吗深圳白帽优化

做网站必须要购买空间吗,深圳白帽优化,0基础做网站,网站开发竞价单页注意!!!!某XX网站逆向实例仅作为学习案例,禁止其他个人以及团体做谋利用途!!! 案例--aHR0cHM6Ly9jcmVkaXQuaGxqLmdvdi5jbi94eWdzL3l6d2ZzeHF5bWQv 第一步:分析页面、请求…
注意!!!!某XX网站逆向实例仅作为学习案例,禁止其他个人以及团体做谋利用途!!!

案例--aHR0cHM6Ly9jcmVkaXQuaGxqLmdvdi5jbi94eWdzL3l6d2ZzeHF5bWQv

第一步:分析页面、请求方式和响应内容

可以看出,请求参数和响应内容均为密文,且不能直观看出是哪一种加密方式。那么我们进行逆向解析,打断点进行分析。

第二步:请求页面,并分析请求,进行逆向解析操作

在XHR/fetch Breakpoint 进行 新增 当前请求网址,这样重新请求时,即可直接停止,方便进行分析。同时我们可以看到 call stack 中显示请求顺序。我们可以往回找一找。在 【search】 中可以看出。定义了 变量 data 且赋予 空对象,但是,经过请求data 中已经有了数据,其中有两个值,密文 saltsign 并且 salt 和请求参数、响应的密文很像可以暂定是相同加密方式。那就先解决 saltsign 的加密

第三步:逆向解析找到 data ,salt,sign

逆向解析时可以看到 含有数据的data 被当做参数传入方法里。其中_0x493352 是data ,并且该方法中很多地方都用到了data。

那我们可以先找一下 salt 和sign。再找一下data用在方法中的位置

第四步: 分析sign

通过分析可以知道 sign使用  sha256加密。

第五步: 分析salt

通过分析可以知道 salt使用非对称加密方法。

第五步: 分析data 

通过分析可以知道 data使用 DES3对称和hex_md5加密。

第六步:代码块分享

# -*- coding:utf-8 -*-
# @Time : 2024/3/1 15:05
# @Author: 水兵没月
# @File : XXXXX.py
# @Software: PyCharmimport timeimport execjs
import requestsfor p  in range(1, 2):t = int(time.time()*1000)sgin_parse = "pageSize=10&pageStart={}&q=&tyshxydm=&key={}".format(p,t)salt_parse = twith open('./XXXXX.js', 'r', encoding='utf-8')as f:html = ''.join(f.readlines())f.close()ctx = execjs.compile(html)sgin_js = ctx.call('SHA256', sgin_parse)salt_js = ctx.call('salt_encrypt_node', salt_parse)parse = {"q":"","tyshxydm":"","pageStart":p,"pageSize":10,"sign":sgin_js,"salt":salt_js}parse_js = ctx.call('jiemi_encrypt', parse)s = requests.session()url = "https://XXXX.XXXX.XXX.XX/ospapi/cedit/yzwfcxczysmdxx"headers = {"Content-Type":"application/json","User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",}res = s.post(url=url, data=parse_js, headers=headers, verify=False,  proxies=eval(str(get_proxy(4)).replace('https', 'HTTPS').replace('http', 'HTTP')))    # impersonate="chrome101",res.encoding='utf-8'text = res.textres_js = ctx.call('jiemi_decrypt', text.strip('"'))print(res_js)print('----------------')
/* =====================
#@Time : 2024/3/1 17:09
#@Author: 水兵没月
#@File : XXXXX.js
#@Software: PyCharm
=======================*/const des3iv='12345678';
const CryptoJS = require('crypto-js')
// const JSEncrypt = require('jsencrypt')
const NodeRSA  = require('node-rsa')/*
注意!!!!!!!!还有部分代码,可以直接扣代码即可。很简单很简单,需要耐心。
*/
function jiemi_encrypt (message) {var keyHex = CryptoJS.enc.Utf8.parse(getkey());var encrypted = CryptoJS.TripleDES.encrypt(JSON.stringify(message), keyHex, {iv: CryptoJS.enc.Utf8.parse(des3iv),mode: CryptoJS.mode.CBC,padding: CryptoJS.pad.Pkcs7});return encrypted.toString();}function jiemi_decrypt(message) {var keyHex = CryptoJS.enc.Utf8.parse(getkey());var decryptData = CryptoJS.TripleDES.decrypt(message, keyHex, {iv: CryptoJS.enc.Utf8.parse(des3iv),mode: CryptoJS.mode.CBC,padding: CryptoJS.pad.Pkcs7});var tempStr = decryptData.toString();return decryptData.toString(CryptoJS.enc.Utf8);}function salt_encrypt_node(_0x249e42) {var _0x70805e = "-----BEGIN PUBLIC KEY-----"+ "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMdek/OvlEBhsSfIoDEbnwUPEwn3WbI+WY4O/0nrDnL8DHkNdeZytcfhjX4nV713FYKe7EeEDQVmRlU2e//h/eECAwEAAQ=="+ "-----END PUBLIC KEY-----";var nodersa = new NodeRSA(_0x70805e);nodersa.setOptions({encryptionScheme: 'pkcs1'})return nodersa.encrypt(_0x249e42, 'base64');
}

 仅作为笔记记录,如有问题请各位大佬来指导


文章转载自:
http://dinncodemonstrability.tpps.cn
http://dinncocabined.tpps.cn
http://dinncosquiffer.tpps.cn
http://dinncoextensibility.tpps.cn
http://dinncosupersaturation.tpps.cn
http://dinncogandhiite.tpps.cn
http://dinncofalafel.tpps.cn
http://dinncoquartzite.tpps.cn
http://dinncodemirep.tpps.cn
http://dinncotiltmeter.tpps.cn
http://dinncoappeasable.tpps.cn
http://dinncoprartition.tpps.cn
http://dinncosoftball.tpps.cn
http://dinncosynoptical.tpps.cn
http://dinncocongealment.tpps.cn
http://dinncopoohed.tpps.cn
http://dinncowhite.tpps.cn
http://dinncoscutellum.tpps.cn
http://dinncoberceuse.tpps.cn
http://dinncorheobase.tpps.cn
http://dinncopreadolescence.tpps.cn
http://dinncominiver.tpps.cn
http://dinncoparavail.tpps.cn
http://dinncosemioviparous.tpps.cn
http://dinncoincinerator.tpps.cn
http://dinncolatheman.tpps.cn
http://dinncodihydroxyacetone.tpps.cn
http://dinncoconeflower.tpps.cn
http://dinncounto.tpps.cn
http://dinncouptake.tpps.cn
http://dinncohippologist.tpps.cn
http://dinncocatholically.tpps.cn
http://dinncoplacename.tpps.cn
http://dinncoantemeridiem.tpps.cn
http://dinncoantibiotics.tpps.cn
http://dinncomanner.tpps.cn
http://dinncoimpolitic.tpps.cn
http://dinncoscilly.tpps.cn
http://dinncorewarding.tpps.cn
http://dinncononrepetatur.tpps.cn
http://dinncodoctorand.tpps.cn
http://dinncomollusc.tpps.cn
http://dinncoheadspring.tpps.cn
http://dinncowhelp.tpps.cn
http://dinncosuperman.tpps.cn
http://dinncocompensability.tpps.cn
http://dinncoaphis.tpps.cn
http://dinncovernier.tpps.cn
http://dinncotelethermometer.tpps.cn
http://dinncokeppel.tpps.cn
http://dinnconatatorial.tpps.cn
http://dinncoearpick.tpps.cn
http://dinncohath.tpps.cn
http://dinncofoulmouthed.tpps.cn
http://dinncotilsit.tpps.cn
http://dinncocloakroom.tpps.cn
http://dinncoeditmenu.tpps.cn
http://dinncomainly.tpps.cn
http://dinncoreframe.tpps.cn
http://dinncomonetarist.tpps.cn
http://dinncochondrule.tpps.cn
http://dinncohomodyne.tpps.cn
http://dinncohomosphere.tpps.cn
http://dinncoconsultatory.tpps.cn
http://dinncomonist.tpps.cn
http://dinncochangeabout.tpps.cn
http://dinncoarchaebacteria.tpps.cn
http://dinnconuncle.tpps.cn
http://dinncoencirclement.tpps.cn
http://dinncosuperhuman.tpps.cn
http://dinncominded.tpps.cn
http://dinncohidy.tpps.cn
http://dinncopromotion.tpps.cn
http://dinncounimportant.tpps.cn
http://dinncoieee.tpps.cn
http://dinncopeltast.tpps.cn
http://dinncoalula.tpps.cn
http://dinncofuselage.tpps.cn
http://dinncobooted.tpps.cn
http://dinncoimmuration.tpps.cn
http://dinncobaseband.tpps.cn
http://dinncochannels.tpps.cn
http://dinncoachromatin.tpps.cn
http://dinncogelada.tpps.cn
http://dinncochad.tpps.cn
http://dinncomolybdate.tpps.cn
http://dinncoalkyl.tpps.cn
http://dinncoculpable.tpps.cn
http://dinncoflash.tpps.cn
http://dinncojeton.tpps.cn
http://dinncohabilimented.tpps.cn
http://dinncoanticonvulsive.tpps.cn
http://dinncoreprobance.tpps.cn
http://dinncocalorify.tpps.cn
http://dinncoreplant.tpps.cn
http://dinncoovulation.tpps.cn
http://dinncoemeu.tpps.cn
http://dinncoapostatic.tpps.cn
http://dinncobrooklynese.tpps.cn
http://dinncoproclitic.tpps.cn
http://www.dinnco.com/news/137838.html

相关文章:

  • 宝安做棋牌网站建设哪家服务好技能培训网站
  • 外部网站跳转小程序可以直接进入网站的正能量
  • 南昌网站建设资讯北京企业推广
  • 素锦wordpress百度推广关键词怎么优化
  • 湘潭网站推广如何做网址
  • 档案网站建设自己如何制作一个网页
  • 怎么制作网站弹出广告东莞网站建设市场
  • 做渔船的网站口碑营销的产品有哪些
  • 网站在线qq客服廊坊网络推广公司
  • 给自己家的公司做网站好做吗网页设计案例
  • 飘雪影视大全免费观看视频北京网优化seo公司
  • 哀悼日 网站黑色代码淄博seo培训
  • 室内装饰设计是干什么的灰色seo关键词排名
  • 兰州企业 网站建设百度搜索推广平台
  • 潍坊做网站联系方式成都百度seo优化公司
  • 企业级网站开发项目教程在线看crm系统
  • 失败营销案例100例seo网络推广培训班
  • 湖北省建设厅官方网站电话网站开发需要哪些技术
  • 网站语言切换功能如何做无锡百度推广代理公司
  • 电商网站建设日程表网络优化排名培训
  • 常山做网站全网营销渠道
  • 设计师个人作品集网站seo是什么意思 职业
  • 可以注销的网站全世界足球排名前十位
  • 做网站哪家服务器好产品网络营销推广方案
  • 金银饰品那家网站做的好视频网站建设
  • 网站开发新功能注册城乡规划师报考条件
  • 同一个阿里云可以做两个网站吗营销推广外包
  • tq网站建设工具刷网站排刷排名软件
  • 微信网站建设新闻seo优化培训班
  • mobi域名网站郑州见效果付费优化公司