Ejemplo n.º 1
0
 def setAttribute(self, attr, value, sessionData=None):
     if attr == "apiPass" and not value.startswith("ENC "):
         self.apiPass = "******".format(auth.getENCFromPassword(value))
         return True
     return super(_xForceReport, self).setAttribute(attr,
                                                    value,
                                                    sessionData=sessionData)
Ejemplo n.º 2
0
 def setAttribute(self, attr, value, sessionData=None):
     if attr == "client_secret" and not value.startswith("ENC "):
         self.client_secret = "ENC {0}".format(
             auth.getENCFromPassword(value))
         return True
     return super(_sophosGetTamperProtection,
                  self).setAttribute(attr, value, sessionData=sessionData)
Ejemplo n.º 3
0
 def setAttribute(self,attr,value,sessionData=None):
     if attr == "password" and not value.startswith("ENC "):
         if db.fieldACLAccess(sessionData,self.acl,attr,accessType="write"):
             self.password = "******".format(auth.getENCFromPassword(value))
             return True
         return False
     return super(_testFire, self).setAttribute(attr,value,sessionData=sessionData)
Ejemplo n.º 4
0
 def setAttribute(self, attr, value, sessionData=None):
     if (attr == "password" and not value.startswith("ENC ")
             and not re.match(".*%%.*%%", value)):
         self.password = "******".format(auth.getENCFromPassword(value))
         return True
     return super(_remoteConnectLinux,
                  self).setAttribute(attr, value, sessionData=sessionData)
Ejemplo n.º 5
0
 def setAttribute(self, attr, value, sessionData=None):
     if attr == "url" and not value.startswith("ENC "):
         if db.fieldACLAccess(sessionData,
                              self.acl,
                              attr,
                              accessType="write"):
             self.url = "ENC {0}".format(auth.getENCFromPassword(value))
             return True
         return False
     return super(_microsoftteamswebhooksPostMessage,
                  self).setAttribute(attr, value, sessionData=sessionData)
Ejemplo n.º 6
0
 def setAttribute(self, attr, value, sessionData=None):
     if attr == "apiToken" and not value.startswith("ENC "):
         if db.fieldACLAccess(sessionData,
                              self.acl,
                              attr,
                              accessType="write"):
             self.apiToken = "ENC {0}".format(
                 auth.getENCFromPassword(value))
             return True
         return False
     return super(_shodanGetHostByIP,
                  self).setAttribute(attr, value, sessionData=sessionData)
Ejemplo n.º 7
0
 def setAttribute(self, attr, value, sessionData=None):
     if attr == "apiToken" and not value.startswith("ENC "):
         if db.fieldACLAccess(sessionData,
                              self.acl,
                              attr,
                              accessType="write"):
             self.apiToken = "ENC {0}".format(
                 auth.getENCFromPassword(value))
             return True
         return False
     return super(_whoisxmlapiDomainAvailabilityCheck,
                  self).setAttribute(attr, value, sessionData=sessionData)
Ejemplo n.º 8
0
 def setAttribute(self, attr, value, sessionData=None):
     if attr == "client_secret" and not value.startswith("ENC "):
         if db.fieldACLAccess(sessionData,
                              self.acl,
                              attr,
                              accessType="write"):
             self.client_secret = "ENC {0}".format(
                 auth.getENCFromPassword(value))
             return True
         return False
     return super(_azurebotserviceUpdateActivity,
                  self).setAttribute(attr, value, sessionData=sessionData)
Ejemplo n.º 9
0
 def setAttribute(self, attr, value, sessionData=None):
     if attr == "searchQuery":
         self.humioJob = ""
         self.update(['humioJob'])
     if attr == "humioAPIToken" and not value.startswith("ENC "):
         if db.fieldACLAccess(sessionData,
                              self.acl,
                              attr,
                              accessType="write"):
             self.humioAPIToken = "ENC {0}".format(
                 auth.getENCFromPassword(value))
             return True
         return False
     return super(_humio, self).setAttribute(attr, value, sessionData)
Ejemplo n.º 10
0
 def setAttribute(self, attr, value):
     if attr == "client_secret" and not value.startswith("ENC "):
         self.client_secret = "ENC {0}".format(
             auth.getENCFromPassword(value))
         return True
     return super(_sophos, self).setAttribute(attr, value)