Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

[1.0.0] "Invalid server key" fix


  • Please log in to reply
218 replies to this topic

#1

sk89q
    sk89q

    Gold Miner

  • Curse Premium
  • Curse Premium
  • 474 posts

Posted 20 November 2011 - 07:50 AM

*
POPULAR

It's Mr. Out-of-nowhere patch-for-Minecraft again. If someone hasn't posted it yet, here's a self-serve (you don't have to wait for servers to fix it) client-side fix for the "Invalid server key" error.

If you find the fix useful, please reply with a thanks or something to keep the thread available for others to see! Thanks.

Manual installation:
Replace this file: http://www.sk89q.com...11/11/abp.class
(Don't forget to delete everything inside the META-INF folder of minecraft.jar, except for the MANIFEST.MF file.)

If you really want to donate to me: http://www.sk89q.com/donate


EXPLANATION

The bug is actually caused by (another attempt...) at fixing this exploit:
http://www.minecraft...ecraft-account/
It attempts to check if the server key is valid by attempting to parse the server key as a long, but there's an error that makes this fail (attempt to parse an unsigned long, causing overflow). I've changed this to a simple check to make sure that the server key is a hexadecimal number.

A bunch of moderators told me last time that my last thread kept getting reported, so check out the post I linked above (which I posted). That was moderator-approved. Oh, I also make WorldEdit, WorldGuard, CraftBook, and a few other things.


FREQUENTLY ASKED QUESTIONS

I get "java.lang.SecurityException: SHA-256 digest error for abp.class".
Delete the signature files in META-INF/ (the two files besides MANIFEST.MF). They tell Java to verify that the game files aren't modified, which is exactly what we're doing!

I get "Outdated server" instead after installing this patch.
The server you are joining is still running 1.8.1! You can't do anything about that, except to revert back to 1.8.1 (you did save it, right?).

After installing, I still get this error.
If you didn't mess up, it's because my valid key check is still a bit restrictive. I'll have to look into that if Minecraft doesn't get a fix soon (which it may). For the technical people, the current regex is ^\-?[0-9a-fA-F]+$

How do I install?
First, if you use Windows, try this installer:
http://www.sk89q.com...y-fix-mc1.0.exe

Basically, you install it like every other mod:
  • Open up the minecraft.jar file with a ZIP program, because .jar files are secretly .zip (on Windows, type %APPDATA%\.minecraft\bin in Windows Explorer to find this file, on Linux, it is in ~/.minecraft/bin, on Mac OS X I have no clue)
  • Copy the downloaded abp.class file into minecraft.jar and replace the existing file.
  • Go to the META-INF folder and delete everything except for MANIFEST.MF. The files you delete tell Java to make sure that Minecraft's files have not been modified, but that's what we're doing!
If you don't understand these instructions, don't worry! They're pretty bad. (If someone has a link to a good tutorial, please post it.)
I'm the author of WorldEdit, WorldGuard, WarmRoast, a custom MC launcher platform, and a few other things.
I've also been running a server since MC alpha:
Posted Image

Register or log in to remove.

#2

metalmine
  • Location: BC, Canada
  • Minecraft: Metalmine

Posted 20 November 2011 - 07:58 AM

Thank you so much good sir.

#3

MrMcCheeseburger

Posted 20 November 2011 - 08:08 AM

It fixed it.... now it says outdated server :/
Creepers just love me... When they see me they just explode with happyness

#4

jorster23
  • Minecraft: jorster23

Posted 20 November 2011 - 08:11 AM

I love you <3
Posted Image

#5

Budgeh
    Budgeh

    Glowstone Miner

  • Curse Premium
  • Curse Premium
  • 3262 posts
  • Location: Brisbane, Australia
  • Minecraft: Meapa
  • Xbox:Meapa

Posted 20 November 2011 - 08:22 AM

yAY!

Posted Image

I didn't even know what 5 did - Meapa 2014

picBox: The best and easiest image hosting site ever!


#6

sk89q
    sk89q

    Gold Miner

  • Curse Premium
  • Curse Premium
  • 474 posts

Posted 20 November 2011 - 08:23 AM

View PostMrMcCheeseburger, on 20 November 2011 - 08:08 AM, said:

It fixed it.... now it says outdated server :/

Sounds like you have a different problem :P
I'm the author of WorldEdit, WorldGuard, WarmRoast, a custom MC launcher platform, and a few other things.
I've also been running a server since MC alpha:
Posted Image

#7

DanielTheSpaniel
  • Location: that way
  • Minecraft: DanielTheSpaniel

Posted 20 November 2011 - 08:50 AM

Okay what folder do I replace?
I know where you live.... in a house
Posted Image

#8

Humululu
    Humululu

    Diamond Miner

  • Members
  • 802 posts
  • Minecraft: Terminator1994

Posted 20 November 2011 - 08:55 AM

View PostMrMcCheeseburger, on 20 November 2011 - 08:08 AM, said:

It fixed it.... now it says outdated server :/


Then you have a other version as the server

Like :

You have 1.8.1

The server is 1.9 RC2

#9

Jayzzee
    Jayzzee

    Gold Miner

  • Members
  • 451 posts
  • Minecraft: Jaydestroyworld

Posted 20 November 2011 - 09:01 AM

View PostHumululu, on 20 November 2011 - 08:55 AM, said:

Then you have a other version as the server

Like :

You have 1.8.1

The server is 1.9 RC2
I believe he has 1.0.0 and the server is 1.8.1
Did I help, or were I just funny? If so click the green + down there :)

#10

Senyazza
  • Location: New Zealand
  • Minecraft: Senyazza

Posted 20 November 2011 - 09:01 AM

Good job :)
I love the forum community... casually following mojang, sweeping up all the errors with neat fixes like these.

#11

jrocker798

Posted 20 November 2011 - 09:06 AM

it just sits at connecting to server for evar

#12

WchocalateFTW

Posted 20 November 2011 - 09:14 AM

actually if u dont delete the manifest, it wont enable mod sounds

#13

Meldieboy

Posted 20 November 2011 - 09:52 AM

Right now it just wont log into the server all it says is "connecting to the server..." nothing else no logging in or other's? Any ideas on how to sort this
FTW

#14

digerdad

Posted 20 November 2011 - 09:57 AM

View PostMrMcCheeseburger, on 20 November 2011 - 08:08 AM, said:

It fixed it.... now it says outdated server :/
r u sure u r connecting to a 1.0.0 server not 1.8 most server r still 1.8!
Posted Image

#15

TheEnlightened

Posted 20 November 2011 - 10:04 AM

Great fix!

#16

MadeOke
    MadeOke

    Zombie Killer

  • Curse Premium
  • Curse Premium
  • 232 posts
  • Location: Denpasar, Bali ,Indonesia
  • Minecraft: MadeOke

Posted 20 November 2011 - 12:24 PM

Cool i love you <3

Posted Image


#17

Meet_The_Spart3n

Posted 20 November 2011 - 12:35 PM

can someone tell me step by step instructions on how to do this.

#18

Meet_The_Spart3n

Posted 20 November 2011 - 12:41 PM

someone plz help me

#19

spikering

Posted 20 November 2011 - 12:44 PM

brillant i love this
Posted Image I also make YouTube vids which are pretty bad i think other people don't tho :P

#20

Meet_The_Spart3n

Posted 20 November 2011 - 12:49 PM

View Postspikering, on 20 November 2011 - 12:44 PM, said:

brillant i love this
what d u do to get it working-step by step intructions plz