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```