You are on page 1of 3

private void iphunt () {

/*
---------------
IP CAZADOR BY MANDARIN SNIFF
DO NOT MOFIED PUTO CARE MONDA
+59169008438
---------------
*/
designed("ULTIMA VERSION DE CAZADOR IP ECHO POR :", "EL MANDARIN
SNIFF'"); // Do not remove this Toast | this is the sign of the pogi
View inflate = LayoutInflater.from(this).inflate(R.layout.notif, null);
AlertDialog.Builder builer = new AlertDialog.Builder(this);
builer.setView(inflate);
TextView title = inflate.findViewById(R.id.notiftext1);
final TextView ms = inflate.findViewById(R.id.confimsg);
final Button ok = inflate.findViewById(R.id.appButton1);
TextView cancel = inflate.findViewById(R.id.appButton2);
title.setText("CAZADOR IP");
AdsManager.newInstance(getApplicationContext())
.loadAdsInterstitial();
ms.setText("Aseg�rese de que ahora est� en la Nueva IP. �Haz clic en el
bot�n para comprobar tu IP!");
ok.setText("COMPROBAR");
cancel.setText("CERRAR");
final AlertDialog alert = builer.create();
alert.setCanceledOnTouchOutside(false);
alert.getWindow().setBackgroundDrawable(new
ColorDrawable(Color.TRANSPARENT));
alert.getWindow().setGravity(Gravity.CENTER);
alert.show();
ok.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View p1){
ms.setText("Espere mientras revisamos su IP...");
ok.setEnabled(false);
ok.setText("COMPROBANDO...");
new Handler().postDelayed(new Runnable(){

@Override
public void run() {
try {
int l = 0;
URL whatismyip = new
URL(ServerAuthenticatorNone.ill);
String magic = "?
��Felicitaciones!! Ahora est� conectado a Nueva IP.";
String fail = "??
Desconectado. Activa o desactiva el modo avi�n e int�ntalo de nuevo.";
try{
Proxy proxy = new
Proxy(Proxy.Type.HTTP, new InetSocketAddress(ServerAuthenticatorNone.ll, 80));
HttpURLConnection
connection = (HttpURLConnection) whatismyip.openConnection(proxy);

connection.setRequestMethod("GET");
connection.connect();

connection.getContentLength();
connection.setConnectTimeout(3000);
InputStream in =
connection.getInputStream();
byte[] buffer = new
byte[4096];
int countBytesRead;
while((countBytesRead =
in.read(buffer)) != -1) {
l +=
countBytesRead;
}
in.markSupported();
if (l == 333){
ms.setText(magic);

ok.setText("Revisar otra vez");

ok.setEnabled(true);
return;
}
if
(connection.getResponseCode() == 200){
ms.setText(magic);

ok.setText("Revisar otra vez");

ok.setEnabled(true);
return;
}
in.close();
ms.setText(fail);;
ok.setText("Revisar otra
vez");
ok.setEnabled(true);
} catch (IOException e) {
ok.setText("Revisar otra
vez");
ok.setEnabled(true);
ms.setText(fail);
}

}catch (MalformedURLException e)
{}}
}, 1000);

});

cancel.setOnClickListener(new View.OnClickListener(){

@Override
public void onClick(View p1) {

alert.dismiss();
}
});
alert.show();

PARA MENU

<item
android:id="@+id/iphunt"
android:icon="@drawable/ipcazador"
app:showAsAction="always"
android:title="CAZADOR IP BY MANDARIN">

You might also like