Results 11 to 20 of 24
-
8th Nov 2011, 01:27 PM #11Respected DeveloperWebsite's:
X4B.org
-
9th Nov 2011, 05:53 PM #12Respected Developer
feeling lazy SplitIce?
here you go, just wrote now for you guys
PHP Code:<?php
/**
* written by mRAza
* 11-09-2011
*
*
* Usage: $link = upFilepost($user,$password,$cookie,$file);
**/
function upFilepost($user,$password,$cookie,$file){
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4)Gecko/20030624 Netscape/7.1 (ax)";
$post = 'email='.$user.'&password='.$password;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://filepost.com/general/login_form/");
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_REFERER, "http://filepost.com/");
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
$result = curl_exec($ch);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://filepost.com/files/upload/");
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_REFERER, "http://filepost.com/");
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
$result = curl_exec($ch);
preg_match("#upload_url: '(.*)'#",$result,$upURL);
$upURL = $upURL[1];
preg_match("#SID: '(.*)'#",$result,$SID);
$SID = $SID[1];
$post = array();
$post['file']="@$file";
$post['SID']=$SID;
$post['Filename']= basename($file);
$post['Upload']="Submit Query";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $upURL);
curl_setopt($ch, CURLOPT_USERAGENT, 'Shockwave Flash');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
$result = curl_exec($ch);
preg_match("#answer\":\"(.*)\"#",$result,$answer);
$answer = $answer[1];
if ($answer ){
$url = 'http://filepost.com/files/done/'.$answer.'/?JsHttpRequest';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_REFERER, "http://filepost.com/");
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
$result = curl_exec($ch);
curl_close($ch);
preg_match("#id=\"down_link\" class=\"inp_text\" value=\"(.*)\"#",$result,$link);
if($link) {
return $link[1];
}
}
return false;
}
?>Bots Development | Web Development | Wordpress Customization | PSD Conversion
Life has many twists and turns in it, you have to take what you are given and use it for the best.
-
9th Nov 2011, 08:57 PM #13OPMember
Wow mRaza are you awesome!!! Thank you!
-
9th Nov 2011, 10:48 PM #14Member
mRAza awesome script
-
10th Nov 2011, 01:22 AM #15Respected DeveloperWebsite's:
X4B.org
-
17th Nov 2011, 09:22 AM #16MemberWebsite's:
sibsoft.netGood job, mRAza. As per our experience, filepost is using chunked upload. It's works fine in php (as mRAza demonstrated), but there's some problems with other languages (for example, in Perl you have to patch LWP). They also have quite interesting FTP upload.
-
24th Nov 2011, 10:35 AM #17Member
mRAza script does not work anymore
-
25th Nov 2011, 08:25 AM #18Respected DeveloperBots Development | Web Development | Wordpress Customization | PSD Conversion
Life has many twists and turns in it, you have to take what you are given and use it for the best.
-
30th Nov 2011, 03:59 AM #19Member
Thanks mRAza, just looking this script
-
20th Dec 2011, 02:15 PM #20Member
This site is using a hacked database of W junction
Last edited by Gavo; 4th Jan 2015 at 02:36 PM.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Help] PHP Curl Uploader to RapidShare Problem
By heppinnz in forum Web Development AreaReplies: 2Last Post: 29th Nov 2011, 06:28 AM -
PHP CURL LulzImg Uploader
By heppinnz in forum Web Development AreaReplies: 2Last Post: 2nd Sep 2011, 03:43 PM -
Catalyst Uploader v1.0. ONE CLICK FULL FEATURED UPLOADER
By becoolufull in forum File Host DiscussionReplies: 1Last Post: 27th Oct 2010, 02:16 PM -
[Hiring] Paid Uploader - MagikalMusic.com - Uploader for Music Albums
By Young Star-G in forum Completed TransactionsReplies: 10Last Post: 18th Oct 2010, 07:43 PM -
fileserver error uploader file & image uploader
By logitec100 in forum Webmaster ResourcesReplies: 0Last Post: 16th Sep 2010, 10:05 PM
themaCreator - create posts from...
Version 3.20 released. Open older version (or...