ADC Authentication - example
-
- Junior Member
- Posts: 13
- Joined: 15 Sep 2009, 12:08
- Location: Russia, Sankt-Petersburg
- Contact:
ADC Authentication - example
Hello there!
I looking for example of authentication in the ADC protocol, messages from Hub and Client. Can someone help me ?
I looking for example of authentication in the ADC protocol, messages from Hub and Client. Can someone help me ?
-
- Senior Member
- Posts: 328
- Joined: 04 Dec 2007, 07:25
- Location: Bucharest
- Contact:
Re: ADC Authentication - example
Hub asks for password, and sends a salt:
IGPA salt
Client sends back
HPAS password
password is hash(plain password + salt )
Hub checks password and if they match client is authenticated
Hope it helps !
IGPA salt
Client sends back
HPAS password
password is hash(plain password + salt )
Hub checks password and if they match client is authenticated
Hope it helps !
Just someone
-
- Junior Member
- Posts: 13
- Joined: 15 Sep 2009, 12:08
- Location: Russia, Sankt-Petersburg
- Contact:
Re: ADC Authentication - example
Fine! Thanks!Pietry wrote:Hub asks for password, and sends a salt:
IGPA salt
Client sends back
HPAS password
password is hash(plain password + salt )
Hub checks password and if they match client is authenticated
Hope it helps !
Can I ask you to provide a some trace (by TCPDUMP for example)?
-
- Senior Member
- Posts: 328
- Joined: 04 Dec 2007, 07:25
- Location: Bucharest
- Contact:
Re: ADC Authentication - example
You can do it on windows for example by using wireshark and just connect to some adc hub where you got a passworded account
Just someone
-
- Junior Member
- Posts: 13
- Joined: 15 Sep 2009, 12:08
- Location: Russia, Sankt-Petersburg
- Contact:
Re: ADC Authentication - example
Cool. Do you known any ADC hub with authentication, which public available ?Pietry wrote:You can do it on windows for example by using wireshark and just connect to some adc hub where you got a passworded account
Re: ADC Authentication - example
Just download a hub and set up an account and wireshark the whole thing
Re: ADC Authentication - example
How to simply connect to some ADC hub.
Socket Connection = Initiate_new_connection ( hostname, port) ; lets assume that we have a new ;TCP blocking socket to the hostname and port which should be the adc hub we want to connect to
if Connection=null
Abort ; oups, cant connect
Connection.write "HSUP ADBASE<cr>" ; this is the initial minimal greeting that the client should always ;send first
String Greeting = Connection.getLine ; getting the initial greeting, note that any getLine call should ;have a set timeout
; Greeting should be something like ISUP ADBASE
parsing... ; here, the string should be parsed to see what the hub supports
if not Greeting contains ADBASE
Abort ; doesnt support base
String mySID = Connection.getLine ; getting the line ISID mysid
parsing... ; get the SID from the mySID string
String Information = Connection.getLine ; getting the IINF
parsing... ; get the hubname and so on from the line, IINF NIhubname DEtopic ;VEhubsoftwareversion
;now need to send our own information
Connection.write "BINF " sid " ID" mycid " PD" mypid " NI" mynick " HN" my hubs normal " HO" my hubs op " HR" my hubs reg " VE" myclientversion " SU" whatmyclientsupports.. etc
String info=null
while info not equals myinf
newuserinfo= Connection.getLine; a line for each new user
;until you get your own info back,
;thats it, youre now in NORMAL state.
Socket Connection = Initiate_new_connection ( hostname, port) ; lets assume that we have a new ;TCP blocking socket to the hostname and port which should be the adc hub we want to connect to
if Connection=null
Abort ; oups, cant connect
Connection.write "HSUP ADBASE<cr>" ; this is the initial minimal greeting that the client should always ;send first
String Greeting = Connection.getLine ; getting the initial greeting, note that any getLine call should ;have a set timeout
; Greeting should be something like ISUP ADBASE
parsing... ; here, the string should be parsed to see what the hub supports
if not Greeting contains ADBASE
Abort ; doesnt support base
String mySID = Connection.getLine ; getting the line ISID mysid
parsing... ; get the SID from the mySID string
String Information = Connection.getLine ; getting the IINF
parsing... ; get the hubname and so on from the line, IINF NIhubname DEtopic ;VEhubsoftwareversion
;now need to send our own information
Connection.write "BINF " sid " ID" mycid " PD" mypid " NI" mynick " HN" my hubs normal " HO" my hubs op " HR" my hubs reg " VE" myclientversion " SU" whatmyclientsupports.. etc
String info=null
while info not equals myinf
newuserinfo= Connection.getLine; a line for each new user
;until you get your own info back,
;thats it, youre now in NORMAL state.
-
- Junior Member
- Posts: 13
- Joined: 15 Sep 2009, 12:08
- Location: Russia, Sankt-Petersburg
- Contact:
Re: ADC Authentication - example
Guys, thanks for the advices, but I don't want "download and setup a ADC Hub and play", as I wrote - I developing ADC Hub under OpenVMS. At the time I have some beta version up & running, now I'd like to implement authentication...