Intent Script Define the function send_command with arguments s and cmd then call method sendline with argument cmd on s and call method prompt with no argument on s "def send_command(s, cmd): \n s.sendline(cmd) \n s.prompt() " "Connect to the database skypeDB and execute the command ""SELECT fullname, skypename, city, country, datetime(profile_timestamp,'unixepoch') FROM Accounts;""" "def printProfile(skypeDB): \n conn = sqlite3.connect(skypeDB) \n c = conn.cursor() \n c.execute(""SELECT fullname, skypename, city, country, datetime(profile_timestamp,'unixepoch') FROM Accounts;"" \n " Define the method __init__ with arguments self, title, text and url and return the title of self "def __repr__(self): \n return self.title " Given an url and a proxy address get the html code through a proxy "def testProxy(url, proxy): \n browser = mechanize.Browser() \n browser.set_proxies(proxy) \n page = browser.open(url) \n source_code = page.read() \n " Check if DNS requests return rcode 3 given a pkt "def dnsQRTest(pkt): \n if pkt.haslayer(DNSRR) and pkt.getlayer(UDP).sport == 53: \n rcode = pkt.getlayer(DNS).rcode \n qname = pkt.getlayer(DNSQR).qname \n if rcode == 3: \n return True \n else: \n return False \n " Send a packet pkt with source src, destination dst, UDP with destination port equals to 7 and the load equals to 'cybercop' and send a packet pkt with source src, destination dst, UDP with destination port equals to 10080 and the load equals to 'Amanda' "def scanTest(src, dst, iface, count): \n pkt = IP(src=src, dst=dst) / UDP(dport=7) /Raw(load='cybercop') \n send(pkt) \n \n pkt = IP(src=src, dst=dst) / UDP(dport=10080) /Raw(load='Amanda') \n send(pkt, iface=iface, count=count) \n " Call the command on each client def botnetCommand(command): \n for client in botNet: \n output = client.send_command(command) \n