Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Message interpretation of Wechat Database

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Decryption reference:

/ / http://blog.csdn.net/njweiyukun/article/details/54024442//imei number: press * # 06pcfg 354169060462426 c4cc03c / / sqlite jdbc: https://bitbucket.org/xerial/sqlite-jdbc/downloads/import java.io.UnsupportedEncodingException;import java.text.SimpleDateFormat;import java.util.Date;import java.security.MessageDigest;class Ex02_3_3 {/ / md5 encrypted 3public static String md5 (String content) {MessageDigest md5 = null; try {md5 = MessageDigest.getInstance ("MD5") Md5.update (content.getBytes ("UTF-8")); byte [] encryption = md5.digest (); / / encryption StringBuffer sb = new StringBuffer (); for (int I = 0; I

< encryption.length; i++) { if (Integer.toHexString(0xff & encryption[i]).length() == 1) { sb.append("0").append(Integer.toHexString(0xff & encryption[i])); } else { sb.append(Integer.toHexString(0xff & encryption[i])); } } return sb.toString(); } catch (Exception e) { e.printStackTrace(); return null; } }//日期打印到毫秒public static void display() {System.out.println(new SimpleDateFormat("yyyy/MM/dd KK:mm:ss:SSS").format(new Date()));}//注册数据库public Connection getConnection() throws ClassNotFoundException,IOException, SQLException { Class.forName("org.sqlite.JDBC"); return DriverManager.getConnection("jdbc:sqlite:enmicromsg.db"); }public static void main(String args[]) { // String imei="354169060462426";Connection conn = null;String imei=args[0]; //String uin="1297173361";String uin=args[1]; Mynumber a= new Mynumber(); // a.number= 5; System.out.println(imei+uin);String md5 = md5(imei + uin); String password = md5.substring(0, 7).toLowerCase(); String sql="select count(*) from message';display();Statement stmt = conn.createStatement;ResultSet rs = stmt.executeQuery(sql);System.out.println(password); }} 运行 D:\javasource>

Java Ex02_3_3 354169060462426 129717336135416906046242612971733612017/08/13 08:02:02:640c4cc03c

Message query:

Select datetime (createTime/1000, 'unixepoch','localtime'), createtime,content from message where talker='ha**ong00'

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report