Skip to content

Commit

Permalink
fix format string errors due to line length limit (#133)
Browse files Browse the repository at this point in the history
* fix format string errors due to line length limit

* bumped version to 1.4.10

Co-authored-by: Paul <[email protected]>
  • Loading branch information
mlhaigh and tarterp committed Jan 3, 2020
1 parent aa1d7e9 commit e8a6c9a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 4 additions & 6 deletions fakenet/diverters/winutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion fakenet/fakenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def main():
| | / ____ \| . \| |____| |\ | |____ | | | |\ | |__| |
|_|/_/ \_\_|\_\______|_| \_|______| |_| |_| \_|\_____|
Version 1.4.9
Version 1.4.10
_____________________________________________________________
Developed by FLARE Team
_____________________________________________________________
Expand Down
4 changes: 2 additions & 2 deletions fakenet/listeners/DNSListener.py
Original file line number Diff line number Diff line change
Expand Up @@ -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\'',
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e8a6c9a

Please sign in to comment.