Jump to content
cristian.pana

HI5 Scaner

Recommended Posts

Posted

Din pacate numai am vps asa ca acest cod nu-mi mai este util:


$username = "" ;
$password = "" ;
function detecthi5( $yid ) {
global $username, $password ;
$ch = curl_init() ;
curl_setopt( $ch, CURLOPT_URL, "http://hi5.com/friend/login.do" ) ;
curl_setopt( $ch, CURLOPT_REFERER, "http://hi5.com/friend/displayHomePage.do" ) ;
curl_setopt( $ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT'] ) ;
//curl_setopt( $ch, CURLOPT_FRESH_CONNECT, 1 ) ; //optional
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ) ;
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1 ) ;
curl_setopt( $ch, CURLOPT_POST, 1 ) ;
curl_setopt( $ch, CURLOPT_POSTFIELDS, "/friend/processBrowseSearch.do?searchText=" . $yid . "&email=" . urlencode( $username ) . "&password=" . urlencode( $password ) . "&remember=on&type=1" ) ;
//curl_setopt( $ch, CURLOPT_COOKIEFILE, "./txt/cookies.txt" ) ;
//curl_setopt( $ch, CURLOPT_COOKIEJAR, "./txt/cookies.txt" ) ;
$result = curl_exec( $ch ) ;
if ( $result === false ) {
return false ;
//echo curl_errno($ch).':'.curl_error($ch);
}
$redirect = curl_getinfo( $ch, CURLINFO_EFFECTIVE_URL ) ;
curl_close( $ch ) ;
$logged = preg_match( '/LoggedinHome/', $redirect ) ;
if ( ! $logged ) {
return false ;
}
$ch = curl_init() ;
curl_setopt( $ch, CURLOPT_URL, "http://hi5.com/friend/processBrowseSearch.do?searchText=" . $yid . "" ) ;
curl_setopt( $ch, CURLOPT_REFERER, "http://hi5.com/friend/displayMyProfile.do" ) ;
curl_setopt( $ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT'] ) ;
//curl_setopt( $ch, CURLOPT_FRESH_CONNECT, 1 ) ;
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ) ;
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1 ) ;
//curl_setopt( $ch, CURLOPT_COOKIEFILE, "./txt/cookies.txt" ) ;
//curl_setopt( $ch, CURLOPT_COOKIEJAR, "./txt/cookies.txt" ) ;
$result = curl_exec( $ch ) ;
if ( $result === false ) {
return false ;
//echo curl_errno($ch).':'.curl_error($ch);
}
curl_close( $ch ) ;
$id = string ( $result, 'photo-link" href="/friend/p', '--' ) ;
$title = string ( $result, '/friend/p' . $id . '--', '--html">' ) ;
$avatar = string ( $result, 'height="75" src="', '"' ) ;
if ( $id ) {
return "<table align=\"center\">
<tr>
<td>
<img src=\"" . $avatar . "\" width=\"60\" height=\"60\" class=\"avatar\" alt=\"" . $yid . "\"/>
</td>
<td>
" . str_replace( "_", " ", urldecode( $title ) ) . "
<br/>
[<a href=\"http://hi5.com/friend/mobile/photos/displayAlbum.do?ownerId=" . $id . "\">Vezi Fotografii</a>]
[<a href=\"http://hi5.com/friend/mobile/friends/displayAddFriend.do?userid=" . $id . "\">Adauga Prieten</a>]
[<a href=\"http://hi5.com/friend/mobile/mail/displayNewMessage.do?toIds=" . $id . "\">Trimite Privat</a>]
</td>
</tr>
</table>" ;
} else {
return null ;
}
}
echo detecthi5("email@email.com"); // sau orice alt email

Posted

Nu mai exista hi5. Acum e mutat hi5.com pe platforma tagged.com. Scriptul e inutil. De fapt de ce ar fi folosit cineva un script in loc sa caute adresa de mail direct pe hi5?

Posted
Nu mai exista hi5. Acum e mutat hi5.com pe platforma tagged.com. Scriptul e inutil. De fapt de ce ar fi folosit cineva un script in loc sa caute adresa de mail direct pe hi5?

De fapt a reaparut si sa transformat in altceva :|

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...