Esempio n. 1
0
 def relancerNmap(self,tableau_ip,options):
         self.nmap['options']=options
         self.nmap['status']='ready'
         self.nmap['import']='ready'
         sc_nmap=scanNmap(self.cibles,self.nmap['options'],CHEMIN_TEMP+'nmap/'+str(self.nom_unique)+'.xml')
         self.nmap['instance']=sc_nmap
         self.demarrerScanNmap()
Esempio n. 2
0
    def __init__(self,id_scan,nom_unique,type_scan,chemin_rapport,liste_adresses,nmap_options=None,nessus_policy_id=None):
        Observable.__init__(self)
        self.nmap={'enable':False,'options':None,'instance':None,'status':'disable','progress':0,'import':'disable'}
        self.nessus={'enable':False,'id':-1,'policy_id':None,'status':'disable','progress':0,'import':'disable'}
        self.erreurs=[]
        self.cibles=liste_adresses
        self.nom_unique=nom_unique
        self.chemin_rapport=chemin_rapport
        self.id_scan=id_scan
        self.tache_attente=[]
        self.compteur_erreur_nessus=0
        self.type_scan=type_scan

        if nmap_options!=None:
            self.nmap['enable']=True
            self.nmap['options']=nmap_options
            self.nmap['status']='ready'
            self.nmap['import']='ready'
            self.nmap['instance']=scanNmap(self.cibles,self.nmap['options'],CHEMIN_TEMP+'nmap/'+str(self.nom_unique)+'.xml')


        if nessus_policy_id!=None:
            self.nessus['enable']=True
            self.nessus['policy_id']=nessus_policy_id
            self.nessus['status']='ready'
            self.nessus['import']='ready'
Esempio n. 3
0
 def relancerNmap(self, tableau_ip, options):
     self.nmap['options'] = options
     self.nmap['status'] = 'ready'
     self.nmap['import'] = 'ready'
     sc_nmap = scanNmap(
         self.cibles, self.nmap['options'],
         CHEMIN_TEMP + 'nmap/' + str(self.nom_unique) + '.xml')
     self.nmap['instance'] = sc_nmap
     self.demarrerScanNmap()
Esempio n. 4
0
    def __init__(self,
                 id_scan,
                 nom_unique,
                 type_scan,
                 chemin_rapport,
                 liste_adresses,
                 nmap_options=None,
                 nessus_policy_id=None):
        Observable.__init__(self)
        self.nmap = {
            'enable': False,
            'options': None,
            'instance': None,
            'status': 'disable',
            'progress': 0,
            'import': 'disable'
        }
        self.nessus = {
            'enable': False,
            'id': -1,
            'policy_id': None,
            'status': 'disable',
            'progress': 0,
            'import': 'disable'
        }
        self.erreurs = []
        self.cibles = liste_adresses
        self.nom_unique = nom_unique
        self.chemin_rapport = chemin_rapport
        self.id_scan = id_scan
        self.tache_attente = []
        self.compteur_erreur_nessus = 0
        self.type_scan = type_scan

        if nmap_options != None:
            self.nmap['enable'] = True
            self.nmap['options'] = nmap_options
            self.nmap['status'] = 'ready'
            self.nmap['import'] = 'ready'
            self.nmap['instance'] = scanNmap(
                self.cibles, self.nmap['options'],
                CHEMIN_TEMP + 'nmap/' + str(self.nom_unique) + '.xml')

        if nessus_policy_id != None:
            self.nessus['enable'] = True
            self.nessus['policy_id'] = nessus_policy_id
            self.nessus['status'] = 'ready'
            self.nessus['import'] = 'ready'