From 76c09aa38aa3a62e0d627063d640da041fa9f9cb Mon Sep 17 00:00:00 2001 From: Spencer McIntyre Date: Mon, 28 Apr 2014 15:35:01 -0400 Subject: [PATCH] Support pulling the server version through the REST API --- core/main/rest/handlers/server.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/main/rest/handlers/server.rb b/core/main/rest/handlers/server.rb index a2d02c6fb..e10a1a210 100644 --- a/core/main/rest/handlers/server.rb +++ b/core/main/rest/handlers/server.rb @@ -35,7 +35,11 @@ module BeEF error 400 end end + + get '/version' do + { 'version' => config.get('beef.version') }.to_json + end end end end -end \ No newline at end of file +end