From e8a6c9ab58211f03846242836c585d412fed61f7 Mon Sep 17 00:00:00 2001 From: Matthew Haigh Date: Fri, 3 Jan 2020 08:34:09 -0700 Subject: [PATCH] fix format string errors due to line length limit (#133) * fix format string errors due to line length limit * bumped version to 1.4.10 Co-authored-by: Paul --- CHANGELOG.txt | 4 ++++ fakenet/diverters/winutil.py | 10 ++++------ fakenet/fakenet.py | 2 +- fakenet/listeners/DNSListener.py | 4 ++-- setup.py | 2 +- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 8c1c90f..87cd24b 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,3 +1,7 @@ +Version 1.4.10 +-------------- +* Fix format string errors due to line length limit + Version 1.4.9 ------------- * Fully customizable HTTP responses without building a full listener diff --git a/fakenet/diverters/winutil.py b/fakenet/diverters/winutil.py index 57ebf39..3620289 100644 --- a/fakenet/diverters/winutil.py +++ b/fakenet/diverters/winutil.py @@ -380,13 +380,11 @@ def fix_gateway(self): stdout=subprocess.PIPE, stderr=subprocess.PIPE) except subprocess.CalledProcessError, e: - self.logger.error(" Failed to set gateway %s" + - "on interface %s." % (gw_address, - interface_name)) + self.logger.error(" Failed to set gateway %s on interface %s." + % (gw_address, interface_name)) else: - self.logger.info(" Setting gateway %s on " + - "interface %s" % (gw_address, - interface_name)) + self.logger.info(" Setting gateway %s on interface %s" + % (gw_address, interface_name)) fixed = True return fixed diff --git a/fakenet/fakenet.py b/fakenet/fakenet.py index 2689ab8..9c285b5 100644 --- a/fakenet/fakenet.py +++ b/fakenet/fakenet.py @@ -331,7 +331,7 @@ def main(): | | / ____ \| . \| |____| |\ | |____ | | | |\ | |__| | |_|/_/ \_\_|\_\______|_| \_|______| |_| |_| \_|\_____| - Version 1.4.9 + Version 1.4.10 _____________________________________________________________ Developed by FLARE Team _____________________________________________________________ diff --git a/fakenet/listeners/DNSListener.py b/fakenet/listeners/DNSListener.py index 83db087..ef401d1 100644 --- a/fakenet/listeners/DNSListener.py +++ b/fakenet/listeners/DNSListener.py @@ -158,8 +158,8 @@ def parse(self,data): fake_record = socket.gethostbyname(socket.gethostname()) if self.server.nxdomains > 0: - self.server.logger.info('Ignoring query. NXDomains:' + - ' %d', self.server.nxdomains) + self.server.logger.info('Ignoring query. NXDomains: %d', + self.server.nxdomains) self.server.nxdomains -= 1 else: self.server.logger.debug('Responding with \'%s\'', diff --git a/setup.py b/setup.py index 5b28301..73f13d4 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ setup( name='FakeNet NG', - version='1.4.9', + version='1.4.10', description="", long_description="", author="FireEye FLARE Team with credit to Peter Kacherginsky as the original developer",