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

分析黑客 | 实用技巧之“抢火车票、红包技术”,防止上当受骗

发布时间:2019-01-26 18:13:11 所属栏目:评论 来源: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; 

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

(编辑:威海站长网)

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

热点阅读