Minecraft皮肤小偷

2020-02-03T18:48:00

何为皮肤小偷?偷Minecraft皮肤!

小偷固然大家知道,是个不好的东西,但我这个皮肤小偷可是个好东西,本项目通过玩家正版ID,调用Minecraft官方Mojang的官方接口,然后疯狂的处理数据调用出原始皮肤与披风...


原理

① 获取玩家的真实ID(这里拿Steve举例)

https://api.mojang.com/users/profiles/minecraft/steve
-> 得到数据

{"id":"8667ba71b85a4004af54457a9734eed7","name":"Steve"}

② 获取玩家皮肤/披风信息数据

8667ba71b85a4004af54457a9734eed7

◆ 以上为真实玩家ID
https://sessionserver.mojang.com/session/minecraft/profile/8667ba71b85a4004af54457a9734eed7
-> 得到数据

{"id":"8667ba71b85a4004af54457a9734eed7","name":"Steve","properties":[{"name":"textures","value":"eyJ0aW1lc3RhbXAiOjE1ODA3MjY4NTAxNTUsInByb2ZpbGVJZCI6Ijg2NjdiYTcxYjg1YTQwMDRhZjU0NDU3YTk3MzRlZWQ3IiwicHJvZmlsZU5hbWUiOiJTdGV2ZSIsInRleHR1cmVzIjp7IlNLSU4iOnsidXJsIjoiaHR0cDovL3RleHR1cmVzLm1pbmVjcmFmdC5uZXQvdGV4dHVyZS9kYzFjNzdjZThlNTQ5MjVhYjU4MTI1NDQ2ZWM1M2IwY2RkM2QwY2EzZGIyNzNlYjkwOGQ1NDgyNzg3ZWY0MDE2In0sIkNBUEUiOnsidXJsIjoiaHR0cDovL3RleHR1cmVzLm1pbmVjcmFmdC5uZXQvdGV4dHVyZS85NTNjYWM4Yjc3OWZlNDEzODNlNjc1ZWUyYjg2MDcxYTcxNjU4ZjIxODBmNTZmYmNlOGFhMzE1ZWE3MGUyZWQ2In19fQ=="}]}

③ 解密数据
很明显这段json数据值“value”被加密了,根据判断是base64加密所以我们就用到解析代码
◆ 解析出来是这样的

{"timestamp":1579333247029,"profileId":"8667ba71b85a4004af54457a9734eed7","profileName":"Steve","textures":{"SKIN":{"url":"https://textures.minecraft.net/texture/dc1c77ce8e54925ab58125446ec53b0cdd3d0ca3db273eb908d5482787ef4016"},"CAPE":{"url":"https://textures.minecraft.net/texture/953cac8b779fe41383e675ee2b86071a71658f2180f56fbce8aa315ea70e2ed6"}}}

项目源码

百度网盘:
https://pan.baidu.com/s/1hJZkww_rVSOrbRTx_gD1jQ
在线下载:
MC皮肤小偷.iAPP

注意

版权:D布丁233
联系:2724962172
注意:本项目采用 CC BY-NC-SA 4.0 授权协议,转载请注明来源保留原作者信息
时间:2020/2/3

当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »