"/sys/qemu\_trace",
"/system/bin/qemu-props"
};
private static String\[\] known\_numbers = { "15555215554", "15555215556",
"15555215558", "15555215560", "15555215562", "15555215564",
"15555215566", "15555215568", "15555215570", "15555215572",
"15555215574", "15555215576", "15555215578", "15555215580",
"15555215582", "15555215584", };
private static String\[\] known\_device\_ids = {
"000000000000000" // 默认ID
};
private static String\[\] known\_imsi\_ids = {
"310260000000000" // 默认的 imsi id
};
//检测“/dev/socket/qemud”,“/dev/qemu\_pipe”这两个通道
public static boolean checkPipes(){
for(int i = 0; i < known\_pipes.length; i++){
String pipes = known\_pipes\[i\];
File qemu\_socket = new File(pipes);
if(qemu\_socket.exists()){
Log.v("Result:", "Find pipes!");
return true;
}
}
Log.i("Result:", "Not Find pipes!");
return false;
}
// 检测驱动文件内容
// 读取文件内容,然后检查已知QEmu的驱动程序的列表
public static Boolean checkQEmuDriverFile(){
File driver\_file = new File("/proc/tty/drivers");
if(driver\_file.exists() && driver\_file.canRead()){
byte\[\] data = new byte\[1024\]; //(int)driver\_file.length()
try {
InputStream inStream = new FileInputStream(driver\_file);
inStream.read(data);
inStream.close();
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
}
String driver\_data = new String(data);
for(String known\_qemu\_driver : AntiEmulator.known\_qemu\_drivers){
if(driver\_data.indexOf(known\_qemu\_driver) != -1){
Log.i("Result:", "Find know\_qemu\_drivers!");
return true;
}
}
}
Log.i("Result:", "Not Find known\_qemu\_drivers!");
return false;
}
//检测模拟器上特有的几个文件
public static Boolean CheckEmulatorFiles(){
for(int i = 0; i < known\_files.length; i++){
String file\_name = known\_files\[i\];
File qemu\_file = new File(file\_name);
if(qemu\_file.exists()){
Log.v("Result:", "Find Emulator Files!");
return true;
}
}
Log.v("Result:", "Not Find Emulator Files!");
return false;
}
// 检测模拟器默认的电话号码
public static Boolean CheckPhoneNumber(Context context) {
TelephonyManager telephonyManager = (TelephonyManager) context
.getSystemService(Context.TELEPHONY\_SERVICE);
String phonenumber = telephonyManager.getLine1Number();
for (String number : known\_numbers) {
if (number.equalsIgnoreCase(phonenumber)) {
Log.v("Result:", "Find PhoneNumber!");
return true;
}
}
Log.v("Result:", "Not Find PhoneNumber!");
return false;
}
//检测设备IDS 是不是 “000000000000000”
public static Boolean CheckDeviceIDS(Context context) {
TelephonyManager telephonyManager = (TelephonyManager) context
.getSystemService(Context.TELEPHONY\_SERVICE);
String device\_ids = telephonyManager.getDeviceId();
for (String know\_deviceid : known\_device\_ids) {
if (know\_deviceid.equalsIgnoreCase(device\_ids)) {
Log.v("Result:", "Find ids: 000000000000000!");
return true;
}
}
Log.v("Result:", "Not Find ids: 000000000000000!");
return false;
}
// 检测imsi id是不是“310260000000000”
public static Boolean CheckImsiIDS(Context context){
TelephonyManager telephonyManager = (TelephonyManager)
context.getSystemService(Context.TELEPHONY\_SERVICE);
String imsi\_ids = telephonyManager.getSubscriberId();
for (String know\_imsi : known\_imsi\_ids) {
if (know\_imsi.equalsIgnoreCase(imsi\_ids)) {
Log.v("Result:", "Find imsi ids: 310260000000000!");
return true;
}
}
Log.v("Result:", "Not Find imsi ids: 310260000000000!");
学习路线:
这个方向初期比较容易入门一些,掌握一些基本技术,拿起各种现成的工具就可以开黑了。不过,要想从脚本小子变成黑客大神,这个方向越往后,需要学习和掌握的东西就会越来越多以下是网络渗透需要学习的内容:
网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!