• Welcome to Valhalla Legends Archive.
 

Check Revision Failed

Started by Yegg, October 26, 2004, 06:00 PM

Previous topic - Next topic

Yegg

Ok, for my bot which i've setup to use TCP, im pretty sure everything is setup up CORRECTLY, but when i try to connect i get the Check Revision Failed error. Does ne1 know a common reason why this error is recerived, or is there a newer version of checkrevision.dll i should have?

Soul Taker

Quote from: Yegg on October 26, 2004, 06:00 PM
Ok, for my bot which i've setup to use TCP, im pretty sure everything is setup up CORRECTLY, but when i try to connect i get the Check Revision Failed error. Does ne1 know a common reason why this error is recerived, or is there a newer version of checkrevision.dll i should have?
It's recieved because you didn't send what the server thinks you should have sent.  Additionally, you may have set a record for "Least amount of information to help someone posted"  :P

Yegg

#2
Ok im not sure wut info i should giv u but heres a few things that may help.

AddChat "Connecting..." & vbNewLine, vbYellow
    sckBnet.Close
    Set chatbot = New bnetchat
    sckBnet.Connect varServer, 6112

Private Sub sckBnet_connect()
    SendHeader
    Send1E
    AddChat "BNET: 1E Sent!" & vbNewLine, vbGreen
End Sub

Private Sub sckbnet_DataArrival(ByVal bytesTotal As Long)
    Static strBuffer As String
    Dim strTemp As String, lngLen As Long
    sckBnet.GetData strTemp, vbString

    strBuffer = strBuffer & strTemp
    While Len(strBuffer) > 4
      lngLen = Val("&H" & StrToHex(StrReverse(Mid(strBuffer, 3, 2))))
      If Len(strBuffer) < lngLen Then Exit Sub
       parsep (Left(strBuffer, lngLen))
       
      strBuffer = Mid(strBuffer, lngLen + 1)
    Wend
End Sub

Public Sub SendHeader()
    Form1.sckBnet.SendData Chr(1)
End Sub

Public Function Send1E()
    pbuffer.InsertDWORD 1
    pbuffer.InsertDWORD 0
    pbuffer.InsertDWORD 0
    pbuffer.InsertDWORD 0
    pbuffer.InsertDWORD 1
    pbuffer.InsertNTString "123"
    pbuffer.InsertNTString "123"
    pbuffer.sendPacket &H1E
    pbuffer.InsertNonNTString "68XI" & varProduct
    pbuffer.InsertDWORD "&H" & "C7"
    pbuffer.InsertDWORD 0
    pbuffer.sendPacket &H6
pbuffer.InsertDWORD 0
pbuffer.sendPacket &H25

End Function

Public Sub SendCDKey(cdkey As String)
On Error Resume Next
    If varProduct = "RTSJ" Then
    pbuffer.InsertDWORD &H0
    pbuffer.InsertNTString Mid(varCDKey, 5, Len(varCDKey) - 4)
    pbuffer.InsertNTString "123"
    pbuffer.sendPacket &H30
Else
Dim lngSeed As Long, lngKey As Long, lngProdID As Long, lngValue1 As Long, lngValue2 As Long, lngValue3 As Long
Dim dblProdID As Double, dblValue1 As Double, dblValue2 As Double, dblSeed As Double, dblkey As Double
    dblSeed = Val("&h" & StrToHex(StrReverse(serverhash)))
    dblkey = GetTickCount()
    lngSeed = CLng(dblSeed)
    lngKey = CLng(dblkey)
    Call DecodeCDKey(cdkey, dblProdID, dblValue1, dblValue2)
    lngProdID = CLng(dblProdID)
    lngValue1 = CLng(dblValue1)
    lngValue2 = CLng(dblValue2)
    Call HashCDKey(lngKey, lngSeed, lngProdID, lngValue1, lngValue2)
    pbuffer.InsertDWORD &H0
    pbuffer.InsertDWORD Len(cdkey)
    pbuffer.InsertDWORD CLng(dblProdID)
    pbuffer.InsertDWORD CLng(dblValue1)
    pbuffer.InsertDWORD CLng(dblSeed)
    pbuffer.InsertDWORD CLng(dblkey)
    pbuffer.InsertDWORD lngKey
    pbuffer.InsertDWORD lngSeed
    pbuffer.InsertDWORD lngProdID
    pbuffer.InsertDWORD lngValue1
    pbuffer.InsertDWORD lngValue2
    pbuffer.InsertNTString "123"
    pbuffer.sendPacket &H36
    End If
End Sub

Public Sub SendUsernamePassword()
On Error Resume Next
Dim dbseed As Double
Dim dblkey As Double
Dim dblSeed As Double
Dim lngSeed As Long
Dim lngKey As Long
Dim lngValue1 As Long
Dim lngValue2 As Long
Dim lngValue3 As Long
'Name = varUser
'pass = varPass
dblSeed = Val("&h" & StrToHex(StrReverse(serverhash)))
dblkey = GetTickCount
lngSeed = CLng(dblSeed)
lngKey = CLng(dblkey)
HashPass varPass, Len(varPass), lngKey, lngSeed, lngValue1, lngValue2, lngValue3
pbuffer.InsertDWORD CLng(dblkey)
pbuffer.InsertDWORD CLng(dblSeed)
pbuffer.InsertDWORD lngKey
pbuffer.InsertDWORD lngSeed
pbuffer.InsertDWORD lngValue1
pbuffer.InsertDWORD lngValue2
pbuffer.InsertDWORD lngValue3
pbuffer.InsertNTString varUser
pbuffer.sendPacket &H29
End Sub[\code]

Now obviously this isn't the code that is put in modules or class mods.
If ttheres no problem with ne of this code tel me and i'll giv u the code from the modules, but im sure those r done correctly.

CrAz3D

Do you have the hash files in the correct directory?... ;)
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

Yegg

yes, my hash files r in the correct directory. also, my checkrevision.dll wus modified in 2001, should i have a newer version?

LivedKrad

Hmm, *reminisces on the coding of Feanor's bot. Finds amazing similarities between the posted code and Feanor's*. Also, 2001? I don't know if the CheckRevision function used in the DLL is "outdated". I didn't think the CheckRevision function changed at all.

Warrior

Im pretty sure Feanors TCP Connection uses Bnetauth.dll
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

CrAz3D

Quote from: Warrior on October 27, 2004, 05:52 PM
Im pretty sure Feanors TCP Connection uses Bnetauth.dll
Quite a few do...is there a problem with that?
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

Yegg

ok, well now that i know checkrevision.dll's date doesn't matter. just in case, i found a version of bnetauth.dll from 2004. but i stil have the check revision error. does ne1 think that they need to see more code in order 2 help me?

CrAz3D

You have the updated hashes?
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

DeTaiLs

is it me or the verbyte is c7 when it should be c9



Yegg

yesi hav updated hashed and i changed "c7" to verByte and all that is setup correctly, but mayb ur right, mayb starcraft is c9 and not c7, i'll try it out.

Dyndrilliac

#12
Quote from: Twix on October 27, 2004, 08:02 PM
is it me or the verbyte is c7 when it should be c9
Your right, he has a bad VerByte.

Quote from: Yegg on October 27, 2004, 05:10 PM
    pbuffer.InsertDWORD "&H" & "C7"
It needs to be C9, assuming you're trying to logon STAR/SEXP.
Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.

Warrior

Well yea, I figured since hes trying to use CheckRevision.dll...
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

Yegg

well, i tried it with C9 and it stil fails, i think theres something missing but i hav no clu wut.