Skip to content

Commit 4fb7472

Browse files
committed
Land rapid7#6975, Fixed typos in the Magento documentation
2 parents f5bfc84 + 1d27538 commit 4fb7472

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

documentation/modules/exploit/multi/http/magento_unserialize.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ Ubuntu 14, and assumes you are installing Magento under /var/www/html/.
4242
15. Enter: ```sudo apt-get install php5-xsl php5-curl php5-intl```
4343
16. Enter: ```sudo service apache2 restart```
4444
17. cd to /var/www/html, enter: ```sudo mkdir tmp```, and cd to tmp
45-
18. In tmp, do: ```curl -sS https://getcomposer.org/install | php```
45+
18. In tmp, do: ```curl -sS https://getcomposer.org/installer | php```
4646
19. Enter: ```sudo mv composer /usr/local/bin/composer```
4747
20. In /var/www/html, do: ```composer install```
4848
21. You will be asked for a username (public key) and password (private key). You can register
4949
for one here: https://marketplace.magento.com/
5050
22. Back to terminal, enter: ```mysql -h localhost -u root -p[password]```
5151
23. In mysql, enter: ```create database magento```, and exit
5252
24. Go to http://localhost with a browser, and install Magento through the web interface.
53-
25. After installation, back to the terminal, and enter: ```sudo rm -rf var/cache/*```
53+
25. After installation, back to Magento directory, and enter: ```sudo rm -rf var/cache/*```
5454
26. Enter: ```sudo rm -rf var/generation/*```
5555
27. Enter: ```sudo rm -rf var/page_cache/*```
5656
28. cd to /var/www/html/bin
@@ -60,7 +60,22 @@ Ubuntu 14, and assumes you are installing Magento under /var/www/html/.
6060
32. Enter: ```sudo chmod -R 777 /var/www/html```
6161
33. Go to http://localhost, you should see Magento up and running.
6262
34. From Magento, log in as admin, and create a product. After creating one, make sure this product
63-
is also searchable from the front-end.
63+
is:
64+
* Either includes a shipping address, or does not have a weight.
65+
* Searchable from the front-end.
66+
67+
If at some point the IP (base URL) of Magento has changed, then you will need to do these steps to update:
68+
69+
1. From the terminal, do: ```mysql -h localhost -u [username] -p[password]```
70+
2. In the SQL prompt, do: ```use [magento database name]```
71+
3. Do: ```select * from core_config_data;```, you should see both web/unsecure/base_url (config ID 2) and web/secure/base_url (config ID 3) with the hardcoded IP.
72+
4. Do: ```update core_config_data set value='http://[IP]/' where config_id=2;```
73+
5. Do: ```update core_config_data set value='https://[IP]/' where config_id=3;```
74+
6. Back to the Magento directory, do: ```sudo rm -rf var/cache/*```
75+
7. Also do: ```sudo rm -rf var/generation/*```
76+
8. Also do: ```sudo rm -rf var/page_cache/*```
77+
9. Browse to Magento again with the new IP, it should be up and running again.
78+
6479

6580
After setting up Magento, you can use your exploit module:
6681

0 commit comments

Comments
 (0)