This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Instructions for setting up web server for use with the | |
| UploadDataApp and custom-class-loader apps | |
| ( https://github.com/mitre/vulnerable-mobile-apps ) | |
| The following steps were tested on an EC2 Amazon AMI Linux instance, | |
| but similar steps should work with any installation of Apache + PHP. | |
| - Provision EC2 Amazon AMI Linux instance | |
| - SSH in to the virtual machine | |
| - Run the following commands to install Apache, Apache mod_ssl, and PHP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* Based on example at | |
| http://php.net/manual/en/features.file-upload.put-method.php */ | |
| /* PUT data comes in on the stdin stream */ | |
| $putdata = fopen("php://input", "r"); | |
| /* Open a file for writing */ | |
| $putfile = $_SERVER['REQUEST_URI']; |