Skip to content

Commit

Permalink
python lint
Browse files Browse the repository at this point in the history
  • Loading branch information
phillip-stephens committed Jan 25, 2025
1 parent 0fd9121 commit d3913e1
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions zgrab2_schemas/zgrab2/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,21 @@
from . import zgrab2

# Schema for ScanResults struct
mqtt_scan_response = SubRecord({
"session_present": Boolean(),
"connect_return_code": Binary(),
"response": String(),
"tls": zgrab2.tls_log,
})
mqtt_scan_response = SubRecord(
{
"session_present": Boolean(),
"connect_return_code": Binary(),
"response": String(),
"tls": zgrab2.tls_log,
}
)

mqtt_scan = SubRecord({
"result": mqtt_scan_response,
}, extends=zgrab2.base_scan_response)
mqtt_scan = SubRecord(
{
"result": mqtt_scan_response,
},
extends=zgrab2.base_scan_response,
)

zschema.registry.register_schema("zgrab2-mqtt", mqtt_scan)
zgrab2.register_scan_response_type("mqtt", mqtt_scan)
zgrab2.register_scan_response_type("mqtt", mqtt_scan)

0 comments on commit d3913e1

Please sign in to comment.