def execute_nmap_bruteforce(self): command = "nmap --script=dns-brute " + str(self.url).replace( 'www.', '') return execute_terminal("nmap-zonetransfer", command)
def execute_nmap_reverse_ptr(self): command = "nmap -sL " + str(socket.gethostbyname(str( self.url))) + "/24" return execute_terminal("nmap-reverse", command)
def execute_dig_soa(self): command = "dig " + str(self.url).replace('www.', '') + " -t soa" return execute_terminal("dig-soa", command)
def execute_nslookup(self): command = "nslookup " + str(self.url).replace('www.', '') return execute_terminal("nslookup", command)
def execute_dig_reverse_trace(self): command = "dig +trace -x " + str(socket.gethostbyname(str(self.url))) return execute_terminal("dig-reverse-trace", command)
def execute_dig_axfr(self): command = "dig " + str(self.url).replace('www.', '') + " -t axfr" return execute_terminal("dig-axfr", command)
def execute_dig_mx(self): command = "dig mx " + str(self.url).replace('www.', '') return execute_terminal("dig-mx", command)
def execute_dig_trace(self): command = "dig +trace " + str(self.url).replace('www.', '') return execute_terminal("dig-trace", command)
def execute_dig(self): command = "dig " + self.url return execute_terminal("dig", command)
def execute_dig_ns(self): command = "dig ns " + str(self.url).replace('www.', '') return execute_terminal("dig-ns", command)
def execute_theharvester(self): command = "python " + self.theharvester_path + "theHarvester.py -d " + str(self.url).replace("www.", "") + " -b all" return execute_terminal("theharvester", command)
def execute_whois(self): command = "whois " + str(self.url).replace('www.', '') return execute_terminal("whois", command)
def execute_dnsrecon_reverse_ptr(self): command = self.dnsrecon_path + "dnsrecon.py -r " + str( socket.gethostbyname(str(self.url))) + "/24" return execute_terminal("dnsrecon-reverse-ptr", command)
def execute_dnsrecon_bruteforce(self): command = self.dnsrecon_path + "dnsrecon.py -t brt -d " + str( self.url).replace('www.', '') return execute_terminal("dnsrecon-bruteforce", command)
def execute_dnsrecon_zonetransfer(self): command = self.dnsrecon_path + "dnsrecon.py -a -d " + str( self.url).replace('www.', '') return execute_terminal("dnsrecon-zonetransfer", command)