def handle_incident_dionaea_service_shell_listen(self, icd): con = icd.con if con not in self.attacks: return attackid = self.attacks[con][1] logger.info("listen shell for attackid %i", attackid) self.db_session.add( model.EmuService(connection_id=attackid, url="bindshell://{}".format(str(icd.port)))) self.db_session.commit()
def handle_incident_dionaea_service_shell_connect(self, icd): con = icd.con if con not in self.attacks: return attackid = self.attacks[con][1] logger.info("connect shell for attackid %i", attackid) self.db_session.add( model.EmuService(connection_id=attackid, url="connectbackshell://" + str(icd.host) + ":" + str(icd.port))) self.db_session.commit()