加入收藏 | 设为首页 | 会员中心 | 我要投稿 湖南网 (https://www.hunanwang.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 业界 > 正文

说明黑客 | 适用能力之“抢火车票、红包技能”,防惫亓?受骗

发布时间:2019-01-17 21:57:50 所属栏目:业界 来源:Jayson
导读:一、抢火车票 1、抢火车票软件的技能道理 今朝主流的抢票软件是安装在赏识器上的插件,像猎豹、360赏识器等,用于在12306网站上抢票。 通例环境下,行使12306网站订票时,假如革新页面就必要再次填写小我私人书息,这就延伸了不少时刻。这一延伸,也许必要秒杀

下面是监听谈天列表的代码:

  1. private boolean watchList(AccessibilityEvent event) { 
  2.  // Not a message 
  3.  if (event.getEventType() != AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED || event.getSource() == null) 
  4.  return false; 
  5.   
  6.  List<AccessibilityNodeInfo> nodes = event.getSource().findAccessibilityNodeInfosByText(RED_PACKET_NOTIFICATION); 
  7.  if (!nodes.isEmpty()) { 
  8.  AccessibilityNodeInfo nodeToClick = nodes.get(0); 
  9.  CharSequence contentDescription = nodeToClick.getContentDescription(); 
  10.  if (contentDescription != null && !lastContentDescription.equals(contentDescription)) { 
  11.  nodeToClick.performAction(AccessibilityNodeInfo.ACTION_CLICK); 
  12.  lastContentDescription = contentDescription.toString(); 
  13.  return true; 
  14.  } 
  15.  } 
  16.  return false; 
  17.  } 

下面是监听关照信息的代码:

  1. private boolean watchNotifications(AccessibilityEvent event) { 
  2.  // Not a notification 
  3.  if (event.getEventType() != AccessibilityEvent.TYPE_NOTIFICATION_STATE_CHANGED) 
  4.  return false; 
  5.   
  6.  // Not a hongbao 
  7.  String tip = event.getText().toString(); 
  8.  if (!tip.contains(RED_PACKET_NOTIFICATION)) return true; 
  9.   
  10.  Parcelable parcelable = event.getParcelableData(); 
  11.  if (parcelable instanceof Notification) { 
  12.  Notification notification = (Notification) parcelable; 
  13.  try { 
  14.  notification.contentIntent.send(); 
  15.  } catch (PendingIntent.CanceledException e) { 
  16.  e.printStackTrace(); 
  17.  } 
  18.  } 
  19.  return true; 

红包信息的获取,及日记的存储:

(编辑:湖南网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读