وصل شدن به یاهو با php

moein7tl

Member
سلام
می خواهم به یاهو مسنجر وصل شم باید چی کار کنم؟؟؟
می خواهم pm بفرستم + ... مثل ebuddy
هر چی گشتم هیچی پیدا نکردم
هاستی که باید بهش وصل شم چیه؟؟؟
 

moein7tl

Member
آره ، بلدم تا یه حدی:دی
الان یوزرت رو خوندم شناختمت:دی
معینم،حسینی منش:دی شهید سلطانی:دی
 

moein7tl

Member
وقتی می خوام از PHP SDK for Yahoo! Messenger API رو client رو اجرا کنم روی لوکال میگه Fetching request token failed
روی هاست هم میگه

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/printf/public_html/yahoo-msg-temp-no-use/jymengine.class.php on line 69
 

sajadmaz

Member
کلاس
PHP:
<?php

class carcabot {

var $yahoo_id = null;
var $yahoo_password = null;
var $victimid = null;
var $mesaj = null;
var $callback = false;


function carcabot($yahoo_id, $yahoo_password, $victimid, $mesaj) {


$this->yahoo_id = $yahoo_id;
$this->yahoo_password = $yahoo_password;
$this->victimid = $victimid;
$this->mesaj = $mesaj;

$_done = $this->get("http://us.m1.yahoo.com/p/messenger");
$_done = substr($_done, strpos($_done, "_done") + 14);
$_done = substr($_done, 0, strpos($_done, "\""));



$curl_data = $this->post("http://us.m1.yahoo.com/p/login/auth?ignore=signin","_done=" . $_done . "&_pc=&_src=&_ts=&_sig=&_css=&_intl=&_second_user=no&username=" . $yahoo_id . "&password=" . $yahoo_password . "&action=Sign+in");
$curl_data = $this->get("http://us.m1.yahoo.com/p/messenger/");

$getagain = $this->get_between($curl_data, "<a href=\"/p/messenger?c","\">");
$getagain = "/p/messenger?c".$getagain;



$post_url = $this->get("http://us.m1.yahoo.com".urldecode($getagain));
$chat = $this->get_between($post_url, "/p/messenger/chat?c", "\"");
$chat = "/p/messenger/chat?c".urldecode($chat);
$chat = $this->get("http://us.m1.yahoo.com". $chat);
$action = $this->get_between($chat, "action=\"/p/messenger/chat/","\">"); // We get action url
$action = '/p/messenger/chat/'.$action;
$post_url = "http://us.m1.yahoo.com" . urldecode($action);

if($this->post($post_url, "user=".$victimid."&message=".$mesaj."&wmlfix=Send")) {
echo "$victimid -> <font color=green>Sent</font><br/>";
flush();
ob_flush();
} else {
echo "$victimid -> <font color=red>Not Sent</font><br/>";
flush();
ob_flush();
}
}

function get_between($content,$start,$end){
        $r = explode($start, $content);
        if (isset($r[1])){
            $r = explode($end, $r[1]);
            return $r[0];
        }
        return '';
    }



function setCallback($func_name) {
    $this->callback = $func_name;
}

function doRequest($method, $url, $vars) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_HEADER, 1);
    curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
    curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
//    curl_setopt($ch, CURLOPT_PROXY, 'ip:port'); // if you want use proxy just uncomment this
    if ($method == 'POST') {
        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $vars);
    }
    $data = curl_exec($ch);

	echo $data ;

    curl_close($ch);
    if ($data) {
        if ($callback)
        {
            $callback = $this->callback;
            $this->callback = false;
            return call_user_func($callback, $data);
        } else {
            return $data;
        }
    } else {
        return curl_error($ch);
    }
}

function get($url) {
    return $this->doRequest('GET', $url, 'NULL');
}

function post($url, $vars) {
    return $this->doRequest('POST', $url, $vars);
}
} // end class
?>

نحوه استفاده

PHP:
<?php
set_time_limit(0);
/*
	This script was created by RENSLT

	http://www.RENSLT.org

Leading Warez forums in internet world. Here all kind of applications/softwares,
games, movies, music, ebooks, graphics, scripts, mobile and PDA resources,
linux and mac sotware & game collections are free for share and download.

Join with us.

Sponsored by:

Search for Hi5 Profile with ID of Y! Messenger - http://www.CautaHi5.com

Biggest Subtitles Database in Any language - http://www.GetSubtitle.org

Download Music and Videos & convert them for mobile or ipod from Trilulilu.ro - http://www.Trilulilu-Download.com

Check the status of your file sharing links - http://www.LinkChecker.biz


/*
	Your Configuration
				*/

 include_once("yahoo.class.php");

$yahoo_id = "Yahoo ID"; // Type here your Yahoo ID
$yahoo_password = "Password"; // Password of Yahoo ID
$mesaj = "<font color=red><b>Test !</b></font>"; // The message of victim
$victimid = "sajad.online"; // Victim Yahoo ID

/*
	End of Configuration

	www.RENSLT.org
				*/

/* we include what is needed */


$yahoo = new carcabot($yahoo_id,$yahoo_password,$victimid ,$mesaj); // sending message

?>

یادمه خیلی دنبالش گشتم
 

moein7tl

Member
این کدی که دادین روی لوکال کار می کنه؟؟؟؟
یه هدر HTTP نشون می ده + login یاهو
رو هاست هم که safe mode هست نمی ذاره
 

Domanjiri

Well-Known Member
سلام
روی هاست هم میگه

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/printf/public_html/yahoo-msg-temp-no-use/jymengine.class.php on line 69
یه چیز جالب راجع به این ارور بهتون بگم (واسه من که جالب بود وقتی فهمیدم!)

موتور زند رو دو نفر از بروبچه های اسرائیلی نوشتن، از قضا دوستان(آقا این تیکه کلام منه، همین!:green:) یادشون میره (و چه بسا که از قصد این کار رو کرده باشن! عی نامردا:green:) که این ارور رو به انگلیسی بر گردونن و این همینطوری به hebrew باقی مونده(!!!)

تیم حقیقت یاب(!) بعد از کلی دردسر متوجه شد که این ارور میگه: Unexpected double-colon :cool:

این ارور وقتی رخ میده که یه جایی که داخل کد، همچین چیزی هست:

PHP:
$x::harchi...

که باید بشه همچین چیزی(!):

PHP:
$x->harchi...


دوست من، من با این کلاس کار نکردم، ولی اگه مشکل برطرف نشد، بگو منم تستش کنم ببینم جریان چیه آخه...

موفق باشی
 
آخرین ویرایش:

جدیدترین ارسال ها

بالا