This commit is contained in:
antisnatchor
2015-07-30 10:46:12 +02:00
parent d34f97c4cb
commit 050cc3edfd

View File

@@ -26,7 +26,7 @@ module BeEF
begin
data = JSON.parse request.body.read
rloader = BeEF::Core::AutorunEngine::RuleLoader.instance
rloader.load(data)
rloader.load(data).to_json
rescue => e
err = 'Malformed JSON ruleset.'
print_error "[ARE] ERROR: #{e.message}"