2025年原来真有外挂,QQ自动抢红包,JAVA可以实现!卧槽

原来真有外挂,QQ自动抢红包,JAVA可以实现!卧槽和微信最近天天发红包 我怀疑有人真的开挂了 刚发出来立马就没了 我不甘心啊啊啊啊啊啊啊 检测到红包 private void openHongBao Accessibilit event state STATE NO getRunningAc if

大家好,我是讯享网,很高兴认识大家。

``和微信最近天天发红包。。我怀疑有人真的开挂了,刚发出来立马就没了。我不甘心啊啊啊啊啊啊啊,
//检测到红包
private void openHongBao(AccessibilityEvent event) { state_ = STATE_NO_;// getRunningActivityName(); if (“cooperation.qwallet.plugin.QWalletPluginProxyActivity”.equals(event.getClassName())) { state_ = STATE_OPENED_; if (RBSharedPerences.readRBState(getApplicationContext(), STATE_CODE_).equals(state_)) { performGlobalAction(GLOBAL_ACTION_HOME); RBSharedPerences.writeRBstate(getApplicationContext(), STATE_CODE_, STATE_NO_); } } else if (“com.tencent.mobile.activity.SplashActivity”.equals(event.getClassName())) { //拆红包 state_ = STATE_CLIECKED_; openPacket(); } } //领取打开红包 private void openPacket() { AccessibilityNodeInfo nodeInfo = getRootInActiveWindow(); if (nodeInfo != null) { AccessibilityNodeInfo targetNode = null; targetNode = findNodeInfosByText(nodeInfo, RB_BUTTON_TEXT_NAME); //普通红包 if (targetNode != null) { performClick(targetNode); RBSharedPerences.writeRBstate(getApplicationContext(), STATE_CODE_, STATE_OPENED_); } //口令红包 else { AccessibilityNodeInfo accessibilityNodeInfo = getRootInActiveWindow(); if (accessibilityNodeInfo != null) { List nodeInfos = accessibilityNodeInfo .findAccessibilityNodeInfosByText(RB_PASSWORD); for (AccessibilityNodeInfo nodeInfo1 : nodeInfos) { targetNode = nodeInfos.get(nodeInfos.size() - 1); performClick(targetNode); writePassword(); } } } } } //写入并发送口令 private void writePassword() { AccessibilityNodeInfo accessibilityNodeInfo = getRootInActiveWindow(); if (accessibilityNodeInfo != null) { findWidgetByText(accessibilityNodeInfo, RB_CLICK_TO_PASTE_PASSWORD); } if (accessibilityNodeInfo != null) { findWidgetByText(accessibilityNodeInfo, SEND_PASSWORD); RBSharedPerences.writeRBstate(getApplicationContext(), STATE_CODE_, STATE_OPENED_); } }
有兴趣完善的可以试试

看了不少发表的文章
自动抢红包的代码点进去,基本都是在讲算法
比如下面的举例……
不过java真的可以实现抢红包功能
也就是100%的java源代码写出的APP
完整代码(来源于牛哄哄的柯南):
今检验可行
package com.zhl.blogTest;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.Scanner;


讯享网

public class redEnvelope {

/*Random 随机生成一个区间在[min , max]的数值 randNumber 将被赋值为一个 MIN 和 MAX 范围内的随机数 int randNumber =rand.nextInt(MAX - MIN + 1) + MIN; */ / * 生成min到max范围的浮点数 / public static double nextDouble(final double min, final double max) { return min + ((max - min) * new Random().nextDouble()); } public static String format(double value) { return new java.text.DecimalFormat("0.00").format(value); // 保留两位小数 } //二倍均值法 public static List<Double> doubleMeanMethod(double money,int number){ List<Double> result = new ArrayList<Double>(); if(money<0&&number<1) return null; double amount,sum=0; int remainingNumber=number; int i=1; while(remainingNumber>1){ amount= nextDouble(0.01,2*(money/remainingNumber)); sum+=amount; System.out.println("第"+i+"个人领取的红包金额为:"+format(amount)); money -= amount; remainingNumber--; result.add(amount); i++; } result.add(money); System.out.println("第"+i+"个人领取的红包金额为:"+format(money)); sum+=money; System.out.println("验证发出的红包总金额为:"+format(sum)); return result; } //线段切割法 public static void lineSegmentCutting(double money,int number){ if(money<0&&number<1) System.out.println("输入错误!"); double begin=0,end=money; double y=0; for(int i=0;i<number-1;i++){ double nn=0; double amount=nextDouble(begin,end); nn=amount-begin; System.out.println("第"+(i+1)+"个人领取的红包金额为:"+format(nn)); y+=nn; begin=amount; } System.out.println("第"+number+"个人领取的红包金额为:"+format(end-begin)); y+=(end-begin); System.out.println("验证发出的红包总金额为:"+format(y)); } public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("这是一段模拟抢红包的代码。"); int number; double money; System.out.print("请输入红包总金额:"); money = sc.nextDouble(); System.out.print("请输入红包数量:"); number = sc.nextInt(); //System.out.println(money + " " + number); //二倍均值法 doubleMeanMethod(money,number); //System.out.println(doubleMeanMethod(money,number).toString()); //也是可以直接输出list的,为了观察方便,我就在循环中输出了,存在list里主要是为了后续方便数据的使用 System.out.println(); //线段切割法 lineSegmentCutting(money,number); } 

讯享网

}

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
竟然都看到这了,好吧,APP在此,互动交流,相互学习,我有空的话
https://github.com/JAYAndroid/QiangHongBao.git
都看到这了,还不点个赞!

小讯
上一篇 2025-02-24 09:43
下一篇 2025-03-09 19:37

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/112193.html