Object to store Credential Event Parameters Attributes: ip_src: Client ip used for connecting to the module module_name: Which module was accessed date: Date and time of the event username: Username tried for connecting to modules password: Password
| 167 | |
| 168 | |
| 169 | class CredentialEvent: |
| 170 | """ |
| 171 | Object to store Credential Event Parameters |
| 172 | |
| 173 | Attributes: |
| 174 | ip_src: Client ip used for connecting to the module |
| 175 | module_name: Which module was accessed |
| 176 | date: Date and time of the event |
| 177 | username: Username tried for connecting to modules |
| 178 | password: Password tried for connecting to modules |
| 179 | machine_name: Real machine name |
| 180 | country_ip_src: Country corresponding to the IP Address |
| 181 | """ |
| 182 | |
| 183 | def __init__(self, ip_src, module_name, date, username, password): |
| 184 | self.ip_src = ip_src |
| 185 | self.module_name = module_name |
| 186 | self.date = date |
| 187 | self.username = username |
| 188 | self.password = password |
| 189 | self.machine_name = None |
| 190 | self.country_ip_src = None |
| 191 | |
| 192 | |
| 193 | class EventData: |
no outgoing calls