From 309876f2f6d6f94de80900b1aa9a716aabbad391 Mon Sep 17 00:00:00 2001 From: itsmeroy2012 Date: Sat, 8 Apr 2017 22:43:58 +0530 Subject: [PATCH] Fixing code blocks --- .../multi/http/rails_web_console_v2_code_exec.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/documentation/modules/exploit/multi/http/rails_web_console_v2_code_exec.md b/documentation/modules/exploit/multi/http/rails_web_console_v2_code_exec.md index e51b73595b..46ee81d5ac 100644 --- a/documentation/modules/exploit/multi/http/rails_web_console_v2_code_exec.md +++ b/documentation/modules/exploit/multi/http/rails_web_console_v2_code_exec.md @@ -7,12 +7,16 @@ **Prerequisites:** ``` -$ gem install rails -v 4.2.6 -$ rails new taco -$ cd taco -$ vim config/environments/development.rb - Add the following line just before the final `end' tag: +gem install rails -v 4.2.6 +rails new taco +cd taco +vim config/environments/development.rb +``` + +Add the following line just before the final `end' tag: config.web_console.whitelisted_ips = %w(0.0.0.0/0) + +``` $ bundle $ rails server ``` @@ -26,7 +30,7 @@ sudo apt-get install nodejs **Launch msfconsole:** 1. Do: ```use exploit/multi/http/rails_web_console_v2_code_exec``` -2. Do: ```set RHOSTS [IP]``` +2. Do: ```set RHOST [IP]``` 3. Do: ```set RPORT [Port]``` 4. Do: ```run```