Skip to content

Commit

Permalink
Merge pull request #72 from BC-SECURITY/sponsors-dev
Browse files Browse the repository at this point in the history
3.8.2 release
  • Loading branch information
Cx01N committed Mar 29, 2021
2 parents b6fc9d7 + fca58ca commit 66e4458
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.8.1
3.8.2
5 changes: 5 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
3/28/2021
------------
- Version 3.8.2 Master Release
- Fixed issue with try/catch preventing agent connections for http_hop/http listeners (@Cx01N)

3/22/2021
------------
- Version 3.8.1 Master Release
Expand Down
2 changes: 1 addition & 1 deletion lib/common/empire.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from datetime import datetime, timezone
from flask_socketio import SocketIO

VERSION = "3.8.1 BC Security Fork"
VERSION = "3.8.2 BC Security Fork"

from pydispatch import dispatcher

Expand Down
10 changes: 6 additions & 4 deletions lib/listeners/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -1194,11 +1194,13 @@ def handle_post(request_uri):
dispatcher.send(signal, sender="listeners/http/{}".format(listenerName))

hopListenerName = request.headers.get('Hop-Name')
try:
hopListener = helpers.get_listener_options(hopListenerName)
tempListenerOptions = copy.deepcopy(listenerOptions)

# Check for hop listener
hopListener = helpers.get_listener_options(hopListenerName)
tempListenerOptions = copy.deepcopy(listenerOptions)
if hopListener is not None:
tempListenerOptions['Host']['Value'] = hopListener.options['Host']['Value']
except TypeError:
else:
tempListenerOptions = listenerOptions

# step 6 of negotiation -> server sends patched agent.ps1/agent.py
Expand Down

0 comments on commit 66e4458

Please sign in to comment.