全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 823|回复: 9

某兑换诈骗的上传接口

[复制链接]
发表于 2023-11-24 10:18:01 | 显示全部楼层 |阅读模式
早上接到诈骗短信:
余额提示:您手机号内261800分将于明日全做废,请尽快戳 f.o6r.cn/DOSiML 换好物!拒收请回复R【优品兑】

用的是crypto-js的md5加密的头请求字段accept-locale

这个诈骗份子应该有很多域名,但是图片上传地址一直没变,三个月了加密也没换过
https://hostloc.com/thread-1199359-1-1.html




Bun运行时,node运行时拿gpt转换一下
  1. function generateRandomString(length) {
  2.   const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
  3.   let result = '';
  4.   const charactersLength = characters.length;

  5.   for (let i = 0; i < length; i++) {
  6.     const randomIndex = Math.floor(Math.random() * charactersLength);
  7.     result += characters.charAt(randomIndex);
  8.   }

  9.   return result;
  10. }

  11. const md5 = new Bun.CryptoHasher("md5");
  12. // 图片路径
  13. const imgFile = Bun.file("1.png");
  14. const fd = new FormData()
  15. const nonce = generateRandomString(8);
  16. const timestamp = (new Date).getTime() + ""
  17. fd.append("file", imgFile)
  18. fd.append("nonce", nonce);
  19. fd.append("timestamp", timestamp);

  20. md5.update(`nonce=${nonce}&timestamp=${timestamp}fuck-your-mother-three-thousand-times-apes-not-kill-apes`)
  21. const acceptLocale = md5.digest("hex")

  22. fetch("https://api.weixinyanxuan.com/mall/api/img/upload", {
  23.   "headers": {
  24.     "accept": "application/json, text/plain, */*",
  25.     "accept-language": "zh-CN,zh;q=0.9",
  26.     "accept-locale": acceptLocale,
  27.     "cache-control": "no-cache",
  28.     "pragma": "no-cache",
  29.     "sec-fetch-dest": "empty",
  30.     "sec-fetch-mode": "cors",
  31.     "sec-fetch-site": "cross-site"
  32.   },
  33.   "referrer": "https://e.zxhpmy.cn/",
  34.   body: fd,
  35.   "method": "POST",
  36.   "mode": "cors",
  37.   "credentials": "omit"
  38. }).then(res => res.json()).then(res => {
  39.   console.log(res)
  40.   // 图片地址
  41.   const imgUrl = res.data
  42.   console.log("图片地址", imgUrl)
  43. })
复制代码
发表于 2023-11-24 10:19:25 | 显示全部楼层
坐等成品白**
发表于 2023-11-24 10:22:19 | 显示全部楼层

https://resurl.cn/upload
发表于 2023-11-24 10:23:45 | 显示全部楼层

{'code': 401, 'message': 'qmrz请求失败'}

发表于 2023-11-24 10:24:37 | 显示全部楼层
发表于 2023-11-24 10:25:35 | 显示全部楼层
winsunz 发表于 2023-11-24 10:22
https://resurl.cn/upload

能分享下上传的源码吗?
发表于 2023-11-24 10:25:58 | 显示全部楼层
本帖最后由 jqbaobao 于 2023-11-24 10:32 编辑

搞定了
root@debian:~# python3 weixinyanxuan.py
{'code': 200, 'data': 'https://img.58duihuan.com/2662636322111595', 'extend': None, 'message': 'SUCCESS'}
图片地址 https://img.58duihuan.com/2662636322111595


代码 https://img.58duihuan.com/2662648770822150
发表于 2023-11-24 10:27:08 | 显示全部楼层
Benladen 发表于 2023-11-24 10:25
能分享下上传的源码吗?


html不存在什么源码直接右键看
发表于 2023-11-24 10:30:28 | 显示全部楼层
发表于 2023-11-24 10:46:25 | 显示全部楼层
这是刷他的上传接口吗,家用的宽带上传本来就小啊。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-28 18:05 , Processed in 0.064347 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表