Skip to content

Instantly share code, notes, and snippets.

<?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'];
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