mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Use proper logging in SPNEGO tests
Avoid using print() and use proper logging facility instead.
(cherry picked from commit 51ac5bdd14
)
This commit is contained in:
@@ -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():
|
||||
|
Reference in New Issue
Block a user