setTimeout( function(){
Java.perform(function() {
var TYPE_VPN = 0x00000011
var connectivityManager = Java.use('android.net.ConnectivityManager')
connectivityManager.getNetworkInfo.overload('int').implementation = function(netType) {
if(netType && TYPE_VPN == 0x00000011) {
var TYPE_ETHERNET = 0x00000009
var ret = this.getNetworkInfo(TYPE_ETHERNET)
console.log(`[*] Called ConnectivityManager.getNetworkInfo(TYPE_VPN)`);
console.log(`[*] Bypassing VPN detection check..`)
return ret;
}
else{
var ret = this.getNetworkInfo(netType);
return ret;
}
}
var TRANSPORT_VPN = 0x00000004
var networkCapabilities = Java.use('android.net.NetworkCapabilities');
networkCapabilities.hasTransport.overload('int').implementation = function(transportType) {
if(transportType && TRANSPORT_VPN == 0x00000004){
console.log(`[*] Called NetworkCapabilities.hasTransport(TRANSPORT_VPN)`);
console.log(`[*] Bypassing VPN detection check..`)
return false;
}
else{
return true;
}
}
});
var networkIterface = Java.use('java.net.NetworkInterface');
var interface_list = ['tun', 'tun0', 'utun0', 'utun1', 'utun2', 'utun3', 'utun4', 'ppp0', 'ppp' , 'pptp'];
networkIterface.getByName.overload('java.lang.String').implementation = function(name) {
if(interface_list.includes(name)){
console.log(`[*] Called NetworkInterface.getByName(${name})`);
console.log(`[*] Bypassing VPN detection check..`)
var ret = this.getByName('ZZEIADONN');
return ret;
}
else{
var ret = this.getByName(name);
return ret;
}
}
networkIterface.getDisplayName.overload().implementation = function() {
var ret = this.getDisplayName();
if(interface_list.includes(ret)){
console.log(`[*] Called NetworkInterface.getDisplayName()`);
console.log(`[*] Bypassing VPN detection check..`)
return 'ZDUABIDBWA';
}
else{
return ret;
}
}
networkIterface.getName.overload().implementation = function() {
var ret = this.getDisplayName();
if(interface_list.includes(ret)){
console.log(`[*] Called NetworkInterface.getName()`);
console.log(`[*] Bypassing VPN detection check..`)
return 'ZDUABIDBWA';
}
else{
return ret;
}
}
}, 0);