首页 > 其他分享 >myfreemp3音乐token逆向

myfreemp3音乐token逆向

时间:2024-05-18 20:58:32浏览次数:9  
标签:case 逆向 console log token continue toString myfreemp3

目前还能用。

window=global;
const CryptoJS=require('crypto-js')
function Fs(e, t) {
    return e['charCodeAt'](Math['floor']({
        ELxvT: function(e, t) {
            return e % t
        }
    }["ELxvT"](t, 64)))
}
function qs(e, t) {
      a = t['split']("")
      , l = 114514;
        l = 1;
    return a['map']((function(t, a) {
        // const r = n;
        return t['charCodeAt'](0)^Fs( e, (a+ l) - 1)
    }
    ))
}
function Bs(e) {
    // m = {
    //     HPrAi: $s(451, "%amn"),
    //     UvJUa: $s(384, 'n8^Y'),
    //     lPeqS: $s(422, 'soEi'),
    // }
    f = 0, h = "";
    do {
        for (var y = '0|6|2|4|7|5|1|8|3'['split']("|"), g = 0; ; ) {
            switch (y[g++]) {
            case "0":
                s = e[f++];
                continue;
            case "1":
                r = 63 & (u>> 6);
                continue;
            case "2":
                i = e[f++];
                continue;
            case "3":
                Es='pW8jg/mke6cO1F4CTuaiswhZfQGzMyq5NJRLPVIvDxlA7=E3YrSUoH0b2BXKn9td+';
                h += ((Es['charAt'](a)+ Es['charAt'](l))+Es['charAt'](r)) + Es['charAt'](c);
                continue;
            case "4":
                u = s<<16|o<< 8| i;
                continue;
            case "5":
                l = u>>12&63;
                continue;
            case "6":
                var o;
                o = e[f++];
                continue;
            case "7":
                a = u>>18&63;
                continue;
            case "8":
                c = u&63;
                continue
            }
            break
        }
    } while (f < e['length']);
    var v = (e['length']% 3);
    return (v ? h['slice'](0, (v-3)) : h)
}
let t='yGz4n9XE9xYy2Oj5Ub7E6u9a5p5aIWZYe53Orq5wE5UgnjbWq0410WTvmLBO1Z2N'
// e='{"type":"YQM","text":"红色高跟鞋","page":1,"v":"beta","_t":1708266541189}'
// e=encodeURIComponent(e);
// console.log(e)
let e='%7B%22id%22%3A%22m3f63OtUGNZoMDio1KqoFvz5tn8-QIvMrKHzz2lA7dWSL0qLZFeLha7sr2xvLdJo%22%2C%22quality%22%3A%22128%22%2C%22_t%22%3A%221708331090368%22%7D'
// var a=qs(t["toString"](), e['toString']())
// console.log(a.length)
// console.log()
// token=CryptoJS.MD5(Bs(a)).toString();
// console.log("20230327."+token)
function get_token(t,e){
    let data = Bs(qs(t["toString"](), e['toString']()))
    return CryptoJS.MD5(data).toString()
}

console.log(get_token(t,e))
console.log( Bs(qs(t["toString"](), e['toString']())))
// b3f634HzOLrfMF9SfoFY6YVXPExJXlsqDmWF8caIOg6ByR2n2
function get_music_token(t,e){
    let data = Bs(qs(t["toString"](), e['toString']()))+'=='
    return CryptoJS.MD5(data).toString()
}
console.log(get_music_token(t,e))
console.log( Bs(qs(t["toString"](), e['toString']()))+'==')

 

标签:case,逆向,console,log,token,continue,toString,myfreemp3
From: https://www.cnblogs.com/wxd501/p/18199754

相关文章

  • 逆向WeChat (二)
     本篇在博客园的地址https://www.cnblogs.com/bbqzsl/p/18187099回顾一下现时网上的资源。原生https://github.com/duilib,Ultimatehttps://github.com/qdtroy/DuiLib_Ultimate腾讯https://github.com/tencentyun/TIMSDK/tree/master/cross-platform/Windows/IMApp/Basic/d......
  • SpringCloud解决feign调用token丢失问题
    背景讨论feign请求在微服务环境中,完成一个http请求,经常需要调用其他好几个服务才可以完成其功能,这种情况非常普遍,无法避免。那么就需要服务之间的通过feignClient发起请求,获取需要的资源。认证和鉴权一般而言,微服务项目部署环境中,各个微服务都是运行在内网环境,网关服务负责请......
  • python 逆向
    python逆向也是CTFreverse的一个重要组成部分(废话)。题目一般会给一个exe文件或者pyc文件。工具工欲善其事,必先利其器,好的工具是必不可少的。exe转pyc工具:GitHub-WithSecureLabs/python-exe-unpacker:AhelperscriptforunpackinganddecompilingEXEsco......
  • 逆向 | 驱动IRP通信模板
    逆向|驱动IRP通信模板踩了很多坑,比如说IoCreateDevice以后要删除,符号链接也要在卸载的时候删除啥的。反正存个模板在这儿下次就能套了:#include<ntddk.h>#include<stdio.h>#include<stdlib.h>//0-2047是保留的,可以用2048-4095#defineOPER1CTL_CODE(FILE_DEVICE_UN......
  • 微信开发-获取AccessToken授权
    获取微信授权有两种方式1:通过AppID和AppSecret,后台可以直接获取2:通过网页授权(主要应用场景是Web端例如公众号等需要获取用户基本信息,需要用户授权,最终通过Code换取access_token)由于目前Senparc等框架都比较重量级,往往使用其开发时不光要理解微信官方的开发文档,还要理解其类库......
  • 【iOS逆向与安全】iOS远程大师:通过H5后台远程查看和协助iPhone设备
    前言在移动设备测试和远程协助的过程中,能够远程查看和协助iPhone设备是一项非常实用的功能。为了解决这一需求,我开发了一款名为iOS远程大师的产品,允许用户通过H5后台界面查看和协助越狱或非越狱的iPhone设备。本文将详细介绍iOS远程大师的开发过程和技术实现。一、技术实现整......
  • NSSCTF round#22逆向
    NSSCTFround#22逆向1.wp要及时写不然忘光光2.赛题分文件夹放ezcrypt下载下来是python打包的exe,解包出pyc用pycdc反编译看一下嗯不认识BEFORE_WITH命令。丢到gpt4o里看看还蛮准确的,和作者提供的源码一样。不过对填充的处理不对,原程序是填充'\x00'。不过比自己硬看好太多......
  • 某东h5st 3.x-4.x 本篇web端4.7的生成方式和逆向分享
    前言本文中所有的内容仅供学习交流,禁止非法用途和商业行为。产生的一切后果与本作者无关。如有雷同纯属巧合4.7较前面的版本改动稍大,通过异步的方式生成了h5st。这个了解过的应该都可以看出来分析一、抓包确定逆向参数:20240511183735521;n9nymytm9nzgi560;f06cc;tk03wd2f......
  • fastapi - 获取token
    在FastAPI通过标注Header类型获取Authorization时,会导致openapi页面的请求没法使用fromtypingimportAnnotatedfromfastapiimportFastAPI,Header,Request,Depends,Cookie,Query,APIRouterfromfastapi.routingimportAPIRoutefromfastapi.security.api_keyim......
  • Mapbox GL JS access token 问题
    使用MapboxGLJS时出现如下错误Error:AvalidMapboxaccesstokenisrequiredtouseMapboxGLJS.Tocreateanaccountoranewaccesstoken,visithttps://account.mapbox.com/解决方法:(1)MapBox在内网使用时,accesstoken不能使用,导致局域网内地图服务不能使用,只需修......