mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-06 08:32:03 -04:00
Use proper logging in SPNEGO tests
Avoid using print() and use proper logging facility instead.
This commit is contained in:
parent
1e87b5ffc6
commit
51ac5bdd14
1 changed files with 3 additions and 8 deletions
|
|
@ -17,7 +17,6 @@ A tool for reproducing ISC SPNEGO vulnerabilities
|
|||
"""
|
||||
|
||||
import argparse
|
||||
import datetime
|
||||
import struct
|
||||
import time
|
||||
|
||||
|
|
@ -177,14 +176,10 @@ def send_crafted_tkey_query(opts: argparse.Namespace) -> None:
|
|||
"""
|
||||
|
||||
query = CraftedTKEYQuery(opts).msg
|
||||
print("# > " + str(datetime.datetime.now()))
|
||||
print(query.to_text())
|
||||
print()
|
||||
|
||||
response = isctest.query.tcp(query, opts.server_ip, timeout=2)
|
||||
print("# < " + str(datetime.datetime.now()))
|
||||
print(response.to_text())
|
||||
print()
|
||||
isctest.query.tcp(
|
||||
query, opts.server_ip, timeout=2, log_query=True, log_response=True
|
||||
)
|
||||
|
||||
|
||||
def test_cve_2020_8625():
|
||||
|
|
|
|||
Loading…
Reference in a new issue