update schema
This commit is contained in:
parent
37b54205f8
commit
eebe727686
22
schemas/smtp.py
Normal file
22
schemas/smtp.py
Normal file
@ -0,0 +1,22 @@
|
||||
# zschema sub-schema for zgrab2's smtp module
|
||||
# Registers zgrab2-smtp globally, and smtp with the main zgrab2 schema.
|
||||
from zschema.leaves import *
|
||||
from zschema.compounds import *
|
||||
import zschema.registry
|
||||
|
||||
import schemas.zcrypto as zcrypto
|
||||
import schemas.zgrab2 as zgrab2
|
||||
|
||||
smtp_scan_response = SubRecord({
|
||||
"result": SubRecord({
|
||||
"banner": String(),
|
||||
"ehlo": String(),
|
||||
"smtp_help": String(),
|
||||
"starttls": String(),
|
||||
"tls": zgrab2.tls_log,
|
||||
})
|
||||
}, extends=zgrab2.base_scan_response)
|
||||
|
||||
zschema.registry.register_schema("zgrab2-smtp", smtp_scan_response)
|
||||
|
||||
zgrab2.register_scan_response_type("smtp", smtp_scan_response)
|
Loading…
Reference in New Issue
Block a user