1.

Solve : Attempting to find hash?

Answer»

I'm trying to FIND the hash of my favourite minecraft server so I can automatically switch to it if it changes IP addresses without having to look through the server list and find it, but I'm running into a bit of an issue. When I go to http://www.minecraft.net/servers.jsp and look at the source, I see the server details like this:<BR>Code: [Select]<a href="play.jsp?server=79be7a5abc334f8ae4bcbcd235cd4141"><b>Neko-san. Nyan!</b></a> 8/50

<br>

<a href="play.jsp?server=9439c1e4ca9c75edf046f7a03dbb92bb"><b>Au70 Galaxy</b></a> 14/35

<br>

<a href="play.jsp?server=d828ce6a503f2f61c12c19b70df2f48a"><b>Minecraft Server</b></a> 0/16

<br>
...It would be all too easy to find the hash for my desired server like this, but when I TRY to get the source of the page with a tool like CURL, wGET, or this miscellaneous VBS tool from http://www.robvanderwoude.com/vbstech_internet_download.php, the source looks like this:
Code: [Select] <b>Team9000 Public (team9000.net)</b> 94/512

<br>

<b>Javackes - LavaSurvival!</b> 30/30

<br>

<b>Official Opticraft Dev Server!</b> 104/320

<br>
...
Does anyone know of another method of downloading the source of a page that would work for me?Tried using PHP with cURL?Quote from: kpac on May 24, 2011, 02:59:15 PM

Tried using PHP with cURL?
How exactly kpac? There is no switch between --pass and --post301. I'm using the command line "Win32 2000/XP on i386 curl executable" version.
you need to be logged in to join or even get links to multiplayer games. (if you log out and view the page you don't get links either).
why can't you use view source from within the browser to acquire the link/hash?Quote from: BC_Programmer on May 24, 2011, 08:53:03 PM
you need to be logged in to join or even get links to multiplayer games. (if you log out and view the page you don't get links either).
why can't you use view source from within the browser to acquire the link/hash?
So true BC, I completely forgot about that. I already answered that question in my first post however, I wish to do this all automatically. I run a bot for the server, which automatically rejoins except when the server IP changes.

I tried using my cookie from internet explorer, but that didn't give desired results, so how would I log in with cURL and download the file?
I tried using --user USERNAME:PASSWORD, but that ALSO didn't work.
I tried to OBTAIN a cURL cookie by using Code: [Select]curl --cookie-jar newcookie.txt --data "username=USERNAME^&password=PASSWORD^&use_secure=false" http://www.minecraft.net/login.jsp but it tells me my username or password is incorrect, I've checked that they're right.Quote from: Helpmeh on May 24, 2011, 09:05:53 PM
So true BC, I completely forgot about that. I already answered that question in my first post however, I wish to do this all automatically. I run a bot for the server, which automatically rejoins except when the server IP changes.

I tried using my cookie from internet explorer, but that didn't give desired results, so how would I log in with cURL and download the file?
I tried using --user USERNAME:PASSWORD, but that also didn't work.
I tried to obtain a cURL cookie by using Code: [Select]curl --cookie-jar newcookie.txt --data "username=USERNAME^&password=PASSWORD^&use_secure=false" http://www.minecraft.net/login.jsp but it tells me my username or password is incorrect, I've checked that they're right.

youve put that secure=false, surely this needs to be set to true?Nope. I checked the POST data when I submit the form and that's what it is.I would try Denmark....

Sorry Helpmeh....couldn't resist.

Quote from: patio on June 07, 2011, 05:37:12 PM
I would try Denmark....

Sorry Helpmeh....couldn't resist.


*sigh* No actual advice though?

It doesn't even technically need it to be batch...it just needs to put the hash in a file for the bot.Nobody has an answer...*sigh*

BUMP


Discussion

No Comment Found