Skip to content
MSN

updater

A TG007 community discussion started by Dippy.

Discussion 5 posts
Page 1 of 1
Open
Topic #6882 · 5 published posts · 901 views

Hi Used Have this updater working and now it don't I been over this code so would like a fresh per of eyes please

 

 

 

alias update {
 if (!%msnpp.email) { set %msnpp.email $$?"Please enter in the account" }
 if (!%msnpp.passwd) { set %msnpp.passwd $$?"Please enter in the password" }
 if ($1) { getinfo $1 $2 }
 else { getinfo }
}

alias getinfo {
 if (!$1) { tokenize 32 %msnpp.email }
 if ($gettok($1,2,64) == msn.com) { set %GCDomain msnialogin.passport.com }
 elseif ($gettok($1,2,64) == hotmail.com) { set %GCDomain loginnet.passport.com }
 else { set %GCDomain login.passport.com }
 server -me %GCDomain 443
 set %udticks $ticks
}

on ^*:LOGON:*:{
 if ($server == %GCDomain) {
   scid $cid window -nh "Status Window"
   set %udCID $cid
   .raw GET /login2.srf HTTP/1.1 $+ $crlf $+ Authorization: Passport1.4 OrgVerb=GET,OrgURL=?,sign-in= $+ $gettok(%email,1,64) $+ $chr(37) $+ 40 $+ $gettok(%email,2,64) $+ ,pwd= $+ %passwd $+ ,id=507 $+ $crlf $+ Host: $+($server,$crlf,$crlf)
   halt
 }
}

on *:DISCONNECT:{
 if ($server == %GCDomain) { scid $cid window -c "Status Window" }
 halt
}

raw *:*:{
 if ($1 == Passport1.4) {
   if (da-status=failed-noretry isin $2) { scid 0 echo -s Passport update failed. | halt }
   set %ticket $right($gettok($mid($2,$pos($2,'t=),$len($2)),1,38),-3)
   set %profile $right($gettok($gettok($mid($2,$pos($2,'t=),$len($2)),2,38),1,39),-2)
   set %pauth : $+ $passform(%ticket,%profile)
   scid $cid disconnect
   render
 }
 if ($cid == %udCID) { halt }
 return
}

alias render {
 sockclose renderchat
 sockopen renderchat chat.msn.com 80
}
on *:sockopen:renderchat:{
 sockwrite -n $sockname GET /renderchat.msnw? HTTP/1.1
 sockwrite -n $sockname HOST: chat.msn.com
 sockwrite -n $sockname User-Agent: compatible; MSIE 4.0; Windows NT 4.0
 sockwrite -n $sockname Cookie: MSPAuth= $+ %ticket $+; MSPProf= $+ %profile $+ $crlf $+ $crlf
}

on *:sockread:renderchat:{
 sockread -n &read
 if ($sockbr == 0) { return }
 var %x = $bvar(&read,$bfind(&read,1,"SubscriberInfo"),$bvar(&read,0)).text
 if (SubscriberInfo isin %x) { 
   %x = $mid(%x,$pos(%x,VALUE),$len(%x))
   %x = $mid(%x,$calc($pos(%x,") + 1),$len(%x))
   set %subinfo $mid(%x,1,$calc($pos(%x,") - 1))
   echo -s 2-update complete ( $+ $iif(%email,%email,unknown) - $calc(($ticks - %udticks) / 1000) $+ s)
 }
}

alias passform return $+($base($len(%ticket),10,16,8),%ticket,$base($len(%profile),10,16,8),%profile)

I didn't look over all of it, but it didn't work for me, it uses %passwd in the auth string which isn't set by this script so set %email and %passwd and it works; Passport1.4 da-status=success,

 

Try this one, its made by Zantetsuken.

 

 

 

if (!$exists($shortfn($mircdirnHTMLn_2.95.dll))) { echo -atq 7 Warning!14 you will need nHTMLn_2.95.dll for this updater to work. you can download it at 12http://mircscripts.org/download.php?id=2463&type=5 | return }
 else {
   msn.passports
   unset.cookies
   %msnpp.lotime = $ticks
   echo $color(info2) -atq 7*14 Updating the 7"14 $+ $msn.ini(selpp) $+ 7"14 passport7,14please wait7...14
   window -ph @ppupdate
   dll $shortfn($mircdirnHTMLn_2.95.dll) attach $window(@ppupdate).hwnd
   dll $shortfn($mircdirnHTMLn_2.95.dll) handler msn.cookies
   dll $shortfn($mircdirnHTMLn_2.95.dll) navigate [url="http://login.passport.com/logout.srf?lc=1033&id=2260"]http://login.passport.com/logout.srf?lc=1033&id=2260[/url]
 }
}
alias msn.cookies {
 if (*navigate_complete [url="http://www.msn.com/"]http://www.msn.com/[/url]* iswm $1-) { 
   dll $shortfn($mircdirnHTMLn_2.95.dll) navigate [url="http://login.passport.net/uilogin.srf?lc=1033&id=2260"]http://login.passport.net/uilogin.srf?lc=1033&id=2260[/url]
 }
 if ($regex($1-,/navigate_begin \S+t=(\S+)&p=(\S+)&lc/i)) {
   %msnpp.ticket = $regml(1)
   %msnpp.profile = $regml(2)
   .timer 1 0 window -c @ppupdate
   sockopen get.sub chat.msn.com 80 
 } 
 if (*document_complete [url="http://login.live.com/login.srf"]http://login.live.com/login.srf[/url]* iswm $1-) {
  ;The Gate Keepers snippet changed a lil by $me
   dll $shortfn($mircdirnHTMLn_2.95.dll) execScript document.getElementById("login").value = $+ " $+ %msnpp.email $+ "
   dll $shortfn($mircdirnHTMLn_2.95.dll) execScript document.getElementById("passwd").value = $+ " $+ %msnpp.passwd $+ "
   dll $shortfn($mircdirnHTMLn_2.95.dll) execScript document.getElementById('i0011').click()
 }
 return S_OK
}
alias msn.passports {
 if (!%msnpp.email) || (!%msnpp.passwd) { 
   set %msnpp.email $??="Enter Email" 
   set %msnpp.passwd $$?="Enter Password" 
 }
}
alias msn.getsub {
 sockopen get.sub chat.msn.com 80
}

alias msn.fullwrite { 
 if ($script(vincula.mrc)) { 
   writeini $+(",$scriptdir,vpassport.dat") $msn.ini(selpp) ticket %msnpp.ticket 
   writeini $+(",$scriptdir,vpassport.dat") $msn.ini(selpp) profile %msnpp.profile 
   writeini $+(",$scriptdir,vpassport.dat") $msn.ini(selpp) subscriberinfo %msnpp.subscriberinfo 
   writeini $+(",$scriptdir,vpassport.dat") $msn.ini(selpp) updated $ctime 
 } 
}

alias msn.halfwrite {
 if ($script(vincula.mrc)) {
   writeini $+(",$scriptdir,vpassport.dat") $msn.ini(selpp) ticket %msnpp.ticket
   writeini $+(",$scriptdir,vpassport.dat") $msn.ini(selpp) profile %msnpp.profile
   writeini $+(",$scriptdir,vpassport.dat") $msn.ini(selpp) updated %msnpp.loupdate $ctime
 }
}

alias unset.cookies {
 unset %msnpp.SubscriberInfo
 unset %msnpp.ticket
 unset %msnpp.profile
 unset %msnpp.loupdate
}
on *:sockopen:get.sub:{
 sockwrite -n $sockname GET /renderchat.msnw HTTP/1.1 $+ $crlf
 sockwrite -n $sockname User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322) $+ $crlf
 sockwrite -n $sockname Host: chat.msn.com $+ $crlf
 sockwrite -n $sockname Cookie: MSPProf= $+ %msnpp.profile $+; MSPAuth= $+ %msnpp.ticket $+; $+ $crlf
 sockwrite -n $sockname $crlf $+ $crlf
}
on *:sockread:get.sub:{ 
 sockread -n &u
 if (!$sockbr) return 
 if ($regex($bvar(&u,1,940).text,/SubscriberInfo" VALUE="(.+)"/)) { %msnpp.SubscriberInfo = $regml(1) | echo $color(info2) -atq 7*14 Passport ticket 7&14 profile 7&14 subinfo for 7"14 $+ $msn.ini(selpp) $+ 7"14 is now updated $calc(($ticks - %msnpp.lotime) / 1000) Sec7(14s7) | sockclose get.sub | msn.fullwrite } 
 elseif ($bfind(&u,1,</OBJECT>)) { echo $color(info2) -atq 7*14 Passport ticket 7&14 profile for 7"14 $+ $msn.ini(selpp) $+ 7"14 is now updated $calc(($ticks - %msnpp.lotime) / 1000) Sec7(14s7) | sockclose get.sub | msn.halfwrite }
}

 

 

Custom Computer

AMD Athlon 64 x2 Dual Core 5200+

Asus M2N-SLI MOB

2GB DDR2 @ 800mhz

160GB Hard Drive

NVidia GeForce 8400GS 256

Uh oh .. if it's made by Seph, dont be surprised if you get 1500 porn popups when it says updated :P
Uh oh .. if it's made by Seph, dont be surprised if you get 1500 porn popups when it says updated :P

 

 

 

:lmaojump::lolwave: