Skip to content
MSN

Authering as a subscriber on lookup servr's

A TG007 community discussion started by Terminal-access.

Discussion 3 posts
Page 1 of 1
Open
Topic #1920 · 3 published posts · 520 views

ok guys be for ya start to flame me for doubble posting

 

yes i know ihave posted about this in my IRC8 vers post in the clearmsn section but i though id start a whole new post unser the msn section for this seeing as its a new topic form my origional post..

 

heres the chalenge Im faced with...

 

im atempting to modify vincula's coding to make it auther as a subscriber ( prop the user role and subscriber info e.t.c) when the main and group look up servers are established , to allow me to sue the origional create room code insted of the mini browser one thats being used at the moment

 

dont get me wrong the min browser one is nicelly done and really apreciated you guy's releacing it , but id really like to get vincula back to the way it was when it was initially releaced be for it was abandond after msn changed to subscriber mode lol

 

 

ne way i think iv found the part of the coding ( 3 parts in all ) that need to be changed , added to / re done compleetly ill post them be low

 

as you may notice iv modified vincula to use IRC8 vers insted of IRC7 Vers

 

 

Section 1

 

on *:SOCKREAD:msn.look.*: {
 if ($sockerr > 0) { msn.sockerr $sockname read | return }
 var %read
 sockread %read
 while ($sockbr > 0) {
   tokenize 32 %read
   if ($msn.ini(debug)) echo @debug $sockname $+ : $1-
if ($msn.ini(debug)) echo @debug $sockname $+ : $1-
  if (AUTH GateKeeper* iswm $1-) {
     if ($sock(msn.client.lm $+ $right($sockname,4)).status == active) sockwrite -tn msn.client.lm $+ $right($sockname,4) %read
     if (AUTH GateKeeper *@GateKeeper* iswm $1-) {
       sockwrite -tn $sockname NICK $rand(111,999)
       if ($sockname == msn.look.main) {
         .timermsn.look.main 0 20 sockwrite -tn msn.look.main VERSION
         if ($sock(msn.server.*,0) == 0) scid $activecid echo $color(info2) -at * Main Lookup server connection established
         if (!$sock(msn.look.comm)) msn.lookcon -x
       }
       else {
         .timermsn.look.comm 0 20 sockwrite -tn msn.look.comm VERSION
         if ($sock(msn.server.*,0) == 0) scid $activecid echo $color(info2) -at * Groups Lookup server connection established
         if (!$sock(msn.look.main)) msn.lookcon -x
       }
     }
}

 

Section 2 - First Part Of The IRC8 Coding

on *:SOCKREAD:msn.client.lm*: {
if ($sockerr > 0) { msn.sockerr $sockname read | return }

var %read, %x $right($sockname,4)
sockread %read
while ($sockbr > 0) {
tokenize 32 %read

if ($msn.ini(debug)) echo @debug $sockname $+ : $1-
if (AUTH == $1) {
 sockwrite -tn msn.look. $+ %x %read
 if (AUTH GateKeeper S :GKSSP* iswm $1-) {
   sockclose msn.client.* $+ %x
   window -c @Vincula $+ %x
   .remove $+(",$scriptdir,vincula,$left(%x,1),.html")
   return
 }
}
elseif (IRCVERS == $1) sockwrite -n msn.look. $+ %x IRCVERS IRC8 MSN-OCX!9.02.0402.1601
sockread %read
}
}

 

Section 3 - sencond part of the IRC8 Ver coding

 

on *:SOCKREAD:msn.client.rm: {
var %nick = $gettok($gettok($1,1,33),1,58)
if ($sockerr > 0) { msn.sockerr $sockname read | return }
var %nick = $gettok($gettok($1,1,33),1,58)
var %read
sockread %read
while ($sockbr > 0) {
tokenize 32 %read

if ($msn.ini(debug)) echo @debug $sockname $+ : $1-
   if (AUTH == $1) {
     if (AUTH GateKeeper* S :GKSSP* iswm $1-) {
       if ($msn.get(999,guest)) sockwrite -tn msn.server.999 $1-
       else sockwrite -tn msn.server.999 $1 GateKeeperPassport $3-
       sockclose $sockname
       var %s $msn.ndll(select,$window(@VinculaHTML).hwnd)
       %s = $msn.ndll(navigate,about:blank)
       return
     }
     else {
       if ($msn.get(999,guest)) sockwrite -tn msn.server.999 $1-
       else sockwrite -tn msn.server.999 $1 GateKeeperPassport $3-
     }
   }
elseif (IRCVERS == $1) { 
 if ($msn.get(999,nick)) sockwrite -tn msn.server.999 NICK $msn.get(999,nick)
 sockwrite -tn msn.server.999 IRCVERS IRC8 MSN-OCX!9.02.0402.1601
}
sockread %read
}
}

 

 

the authering code used by vincula when a room connection is established (sepporate from that of lookup server's)

 

elseif (AUTH == $1) {
 if (AUTH GateKeeper*S :OK iswm $1-) {
   if ($msn.ini(usepass)) var %pass $msn.roompass($msn.get($sockname,room))
   if ((%msnpp.cookie) && (!$msn.get($sockname,nick))) sockwrite -tn $sockname AUTH GateKeeperPassport S : $+ $msn.authkey $lf PROP $ MSNREGCOOKIE : $+ %msnpp.cookie $lf PROP $ MSNPROFILE : $+ %msnpp.showprof $+ PROP $ ROLE %msnpp.UserRole $lf PROP $ SUBSCRIBERINFO %msnpp.SubscriberInfo $lf JOIN $msn.get($sockname,fullroom) %pass
   else sockwrite -tn $sockname AUTH GateKeeperPassport S : $+ $msn.authkey $lf USER * * " $+ $ip $+ " : $lf PROP $ ROLE %msnpp.UserRole $lf PROP $ SUBSCRIBERINFO %msnpp.SubscriberInfo $lf PROP $ MSNPROFILE : $+ %msnpp.showprof $lf JOIN $msn.get($sockname,fullroom) %pass
 }
 elseif (AUTH GateKeeper*@GateKeeper* 0 iswm $1-) {
   if (AUTH GateKeeper*@GateKeeper 0 iswm $1-) {
     if ($msn.ini(usepass)) var %pass $msn.roompass($msn.get($sockname,room))
     if (($msn.get($sockname,nick)) && (!$msn.get($sockname,guest)) && (%msnpp.cookie)) sockwrite -tn $sockname NICK $msn.get($sockname,nick) $lf JOIN $msn.get($sockname,fullroom) %pass
     elseif ($msn.get($sockname,guest)) sockwrite -tn $sockname NICK > $+ $msn.get($sockname,nick) $lf JOIN $msn.get($sockname,fullroom) %pass
   }
   %msnt.gate = $4
 }
 else sockwrite -tn msn.client.rm $1-
}

The alias for $msn.authkey is

alias msn.authkey return $base($len(%msnpp.ticket),10,16,8) $+ %msnpp.ticket $+ $base($len(%msnpp.profile),10,16,8) $+ %msnpp.profile

 

 

now iv been at this most of the day been close a few times acctually had it try and auth but kept on returning that the auth faild lol

 

so any help by you guy's would be really apreciated..

 

 

regds

 

lee

Terminal-Access

Hi Terminal smile.gif

I tried the coding you posted under the clearmsn section for the irc8 servers and it fully froze up my mIRC. Haven't looked into it much, just put it in and tired it out.

 

Anyways..before you get too far, you might want to look at a vincula thats already been re-edited to auth on subscribed and create rooms like the old way.

 

I think its koz|cal who released this updated vincula..not sure though, as I haven't had a chance to look at it and go through it. But have heard it works nicely.

 

http://hiz.vze.com/

 

It should be under the vincula section.

 

 

yea gwen that coding was totally wrong well most of it what i posted ^^ is the correct way but the drawback is if you dont set the passport updater to update automatically when the script starts then it error's out with those error messages i inclded ^^ there , dont know why though

 

Gwen ur a life saver biggrin.gif thanx for that just updated my vinc withthe recoding from koz's vinc and tis all working yay lol

 

and koz verry big pro's to you man nice one biggrin.gif

 

ohh and koz if you look at this post i dunno if you will lol , noticed some thing with the coding u wrote for authering on look upserver's

 

the msn.look.main is ok that works fine

 

the man.look.comm ( community server) dosent send the user role so if u go to create a groups room u wont be able to , though i might let ya know about that since im using ur coding in my ver of vinc now lol dont worry iv included credits for you also tongue.gif

 

ok iv submited the version of vincula that iv been working on , if they upload it and ne of you donwload it , let me knoww hat ya think n what i could improuve on

Edited Nov 16, 2004 4:36 AM by Terminal-access

Terminal-Access