Author | Message | Time |
---|---|---|
BaDDBLooD | Upon connecting to the proxy ( this is in vb6 ) [code] With Buffer .InsertBYTE &H5 .InsertBYTE &H1 .InsertBYTE &H0 .SendPacket frmMain.sckBNCS, SOCKS End With [/code] When you Recieve Chr(&H5) & Chr(&H0) YOu then send: [code] With Buffer .InsertBYTE &H5 .InsertBYTE &H1 .InsertBYTE &H0 .InsertBYTE &H1 .InsertDWORD inet_addr(Bot.Server) .InsertWORD htons("6112") .SendPacket frmMain.sckBNCS, SOCKS End With [/code] Then when you Recieve Chr(&H5) & Chr(&H0) & Chr(&H0) & Chr(&H1) Your request was granted? These are my Other failed responses: [code] Case Chr(&H5) & Chr(&H1) & Chr(&H0) & Chr(&H1) AddChat frmMain.rtbChat, vbRed, "SOCKS 5: Request Failed, General Server Failure" Case Chr(&H5) & Chr(&H2) & Chr(&H0) & Chr(&H1) AddChat frmMain.rtbChat, vbRed, "SOCKS 5: Request Failed, Connection Not Allowed By Ruleset" Case Chr(&H5) & Chr(&H3) & Chr(&H0) & Chr(&H1) AddChat frmMain.rtbChat, vbRed, "SOCKS 5: Request Failed, Network Unreachable" Case Chr(&H5) & Chr(&H4) & Chr(&H0) & Chr(&H1) AddChat frmMain.rtbChat, vbRed, "SOCKS 5: Request Failed, Host Unreachable" Case Chr(&H5) & Chr(&H5) & Chr(&H0) & Chr(&H1) AddChat frmMain.rtbChat, vbRed, "SOCKS 5: Request Failed, Connection Refused" Case Chr(&H5) & Chr(&H6) & Chr(&H0) & Chr(&H1) AddChat frmMain.rtbChat, vbRed, "SOCKS 5: Request Failed, TTL Expired" Case Chr(&H5) & Chr(&H7) & Chr(&H0) & Chr(&H1) AddChat frmMain.rtbChat, vbRed, "SOCKS 5: Request Failed, Command Not Supported" Case Chr(&H5) & Chr(&H8) & Chr(&H0) & Chr(&H1) AddChat frmMain.rtbChat, vbRed, "SOCKS 5: Request Failed, Address type not supported" Case Else AddChat frmMain.rtbChat, vbRed, "SOCKS 5: Request Failed, Unknown Error" [/code] I have always gotten: [code] Case Else AddChat frmMain.rtbChat, vbRed, "SOCKS 5: Request Failed, Unknown Error" [/code] When i try and connect to a proxy. This is what i Recieve for responses [code] [8:43:57 AM] 0000: 05 00 ............... [8:43:57 AM] SOCKS 5: Connected, Authenticating... [8:43:57 AM] 0000: 05 00 00 01 42 77 8C 8C 11 E6 ..BwŒŒæ...... [8:43:57 AM] SOCKS 5: Request Failed, Unknown Error [/code] | October 9, 2004, 1:39 PM |
BaDDBLooD | I found the problem [code] Select Case Mid(Data, 1, 5) [/code] Should be [code] Select Case Mid(Data, 1, 4) [/code] In the packetlog [code] [8:43:57 AM] 0000: 05 00 00 01 42 77 8C 8C 11 E6 ..BwŒŒæ...... [/code] 05 *00* means Accepted, that ranges from 0x00 to 0x08 | October 9, 2004, 3:05 PM |