mirror of https://github.com/n1nj4sec/pupy.git
Use lower logging priority by default
This commit is contained in:
parent
e2f25223b9
commit
b2264093d8
|
@ -293,7 +293,7 @@ class DnsCommandServerHandler(BaseResolver):
|
|||
elif isinstance(command, Ack) and (session is not None):
|
||||
self.on_keep_alive(session.system_info)
|
||||
if command.amount > len(session.commands):
|
||||
logging.error('ACK: invalid amount of commands: {} > {}'.format(
|
||||
logging.info('ACK: invalid amount of commands: {} > {}'.format(
|
||||
command.amount, len(session.commands)))
|
||||
session.commands = session.commands[command.amount:]
|
||||
return [Ack()]
|
||||
|
@ -353,12 +353,12 @@ class DnsCommandServerHandler(BaseResolver):
|
|||
request, session, nonce = self._q_page_decoder(qname)
|
||||
if session and session.last_nonce:
|
||||
if nonce < session.last_nonce:
|
||||
logging.error('Ignore nonce from past: {} < {}'.format(
|
||||
logging.info('Ignore nonce from past: {} < {}'.format(
|
||||
nonce, session.last_nonce))
|
||||
reply.header.rcode = RCODE.NXDOMAIN
|
||||
return reply
|
||||
elif session.last_nonce == nonce and session.last_qname != qname:
|
||||
logging.error('Last nonce but different qname: {} != {}'.format(
|
||||
logging.info('Last nonce but different qname: {} != {}'.format(
|
||||
session.last_qname, qname))
|
||||
reply.header.rcode = RCODE.NXDOMAIN
|
||||
return reply
|
||||
|
|
Loading…
Reference in New Issue