From d362f546a9c01c7e8464f25c02edde82cd846017 Mon Sep 17 00:00:00 2001 From: htnhan Date: Tue, 24 Mar 2020 00:37:10 -0500 Subject: [PATCH 1/2] raise RuntimeError() instead of str --- fakenet/listeners/RawListener.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fakenet/listeners/RawListener.py b/fakenet/listeners/RawListener.py index 1dfd72a..206f7e4 100644 --- a/fakenet/listeners/RawListener.py +++ b/fakenet/listeners/RawListener.py @@ -178,7 +178,7 @@ def checkSetting(d, name, value): if self.server.custom_response: msg = ('Only one %s Custom Response can be configured ' 'at a time' % (proto)) - raise(msg) + raise RuntimeError(msg) self.server.custom_response = ( RawCustomResponse(proto, section, entries, configdir)) From 381e11eae317382d5d08aa626b34374608847266 Mon Sep 17 00:00:00 2001 From: htnhan Date: Tue, 24 Mar 2020 00:37:47 -0500 Subject: [PATCH 2/2] remove duplicate entry --- docs/developing.md | 67 +++++++++++++++++++++++----------------------- 1 file changed, 33 insertions(+), 34 deletions(-) diff --git a/docs/developing.md b/docs/developing.md index c8b8f5e..0402742 100644 --- a/docs/developing.md +++ b/docs/developing.md @@ -221,40 +221,39 @@ structure: ``` fakenet1.4.3\ - +-- LICENSE.txt - +-- CHANGELOG.txt - +-- fakenet.exe - +-- README.md - | - +-- docs\ - |   +-- contributors.md - |   +-- CustomResponse.md - | - +-- configs\ - |   +-- CustomProviderExample.py - |   +-- default.ini - | +-- CustomProviderExample.py - |   +-- sample_custom_response.ini - | +-- sample_raw_response.txt - | +-- sample_raw_tcp_response.txt - | - +-- defaultFiles\ - | +-- FakeNet.gif - | +-- FakeNet.html - | +-- FakeNet.ico - | +-- FakeNet.jpg - | +-- FakeNetMini.exe - | +-- FakeNet.pdf - | +-- FakeNet.png - | +-- FakeNet.txt - | +-- ncsi.txt - | - +-- listeners\ -    +-- ssl_utils - +-- __init__.pyc - +-- privkey.pem - +-- server.pem - +-- ssl_detector.py + +-- LICENSE.txt + +-- CHANGELOG.txt + +-- fakenet.exe + +-- README.md + | + +-- docs\ + |   +-- contributors.md + |   +-- CustomResponse.md + | + +-- configs\ + |   +-- default.ini + | +-- CustomProviderExample.py + |   +-- sample_custom_response.ini + | +-- sample_raw_response.txt + | +-- sample_raw_tcp_response.txt + | + +-- defaultFiles\ + | +-- FakeNet.gif + | +-- FakeNet.html + | +-- FakeNet.ico + | +-- FakeNet.jpg + | +-- FakeNetMini.exe + | +-- FakeNet.pdf + | +-- FakeNet.png + | +-- FakeNet.txt + | +-- ncsi.txt + | + +-- listeners\ +    +-- ssl_utils + +-- __init__.pyc + +-- privkey.pem + +-- server.pem + +-- ssl_detector.py ``` FireEye only: