Open pynkpanther opened 5 years ago
Unfortunately not. The codes were hosted ad tibiaauto.net and we had a server crash several years back and lost the files that generated the code. You could download the project and try and make it work with that version, though. But I'm afraid that's quite hard to do.
wow thx for fast reply! well. its really the original tibia client used by cip in 2006. therefore i think tibiauto at around 1.9.5 should work flawlessly if there was no code check. do you think would it be possible that i download the code and checkout at some commit back from 2006 and just try to make it work without the code?
Well... I'm not quite sure you can do that. You can certainly give it a shot, though.
Try https://github.com/Wisling/tibiaauto/commit/0ba2c48f5122a4acf4042d6066ae9cd6b6b3cd02 or some commit near this one.
Em sex, 28 de set de 2018 às 11:05, pynkpanther notifications@github.com escreveu:
wow thx for fast reply! well. its really the original tibia client used by cip in 2006. therefore i think tibiauto at around 1.9.5 should work flawlessly if there was no code check. do you think would it be possible that i download the code and checkout at some commit back from 2006 and just try to make it work without the code?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Wisling/tibiaauto/issues/78#issuecomment-425446456, or mute the thread https://github.com/notifications/unsubscribe-auth/AEEkM6bVeHVPidHHqgeVlFFVjL5Cx7d-ks5ufiyzgaJpZM4W-jC6 .
thx dude! i'll giv it a try ;)
No problem... Good luck! :)
Em sex, 28 de set de 2018 às 11:26, pynkpanther notifications@github.com escreveu:
thx dude! i'll giv it a try ;)
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Wisling/tibiaauto/issues/78#issuecomment-425453032, or mute the thread https://github.com/notifications/unsubscribe-auth/AEEkM8tVuhZPYHFUwnNIWOyX7-BuDYKCks5ufjGigaJpZM4W-jC6 .
mh. i think even got the code part, just changed the return values (see below). though i htink i m stuck compiling this monster. dozens of c++ files and no makefile? and its been some years i was last working with c/c++. if you got any clue i'd be really thankful
int CEnterCode::auth()
{
// we calculate good sum
int goodSum=randTab[0]*randTab[0]*11+randTab[1]*121+randTab[2]*randTab[1]*27+randTab[3]*23+randTab[4]*15+randTab[5]*randTab[6]*randTab[7]*11-randTab[3]*(randTab[5]+randTab[4]);
goodSum%=100000000;
// then md5 it
char buf[128];
char buf3[128];
sprintf(buf,"%d",goodSum);
CMD5 md5;
md5.setPlainText(buf);
sprintf(buf2,"%s",md5.getMD5Digest());
m_code.GetWindowText(buf3,127);
if (strcmp(buf2,buf3))
{
return 1;
//return 0;
} else {
return 0;
//return 1;
}
}
It's been years since I last compiled it. I think you can find a tutorial in here or on the forum as to how to compile. @Rebell or @Wisling made it, if I'm not mistaken.
It might be easy to try and understand how the code is generated and reverse engineer it?
Em sex, 28 de set de 2018 às 11:54, pynkpanther notifications@github.com escreveu:
mh. i think even got the code part, just changed the return values (see below). though i htink i m stuck compiling this monster. dozens of c++ files and no makefile? and its been some years i was last working with c/c++. if you got any clue i'd be really thankful
int CEnterCode::auth() { // we calculate good sum int goodSum=randTab[0]randTab[0]11+randTab[1]121+randTab[2]randTab[1]27+randTab[3]23+randTab[4]15+randTab[5]randTab[6]randTab[7]11-randTab[3]*(randTab[5]+randTab[4]); goodSum%=100000000; // then md5 it char buf[128];
char buf3[128]; sprintf(buf,"%d",goodSum); CMD5 md5; md5.setPlainText(buf); sprintf(buf2,"%s",md5.getMD5Digest());
m_code.GetWindowText(buf3,127);
if (strcmp(buf2,buf3)) { return 1; //return 0; } else { return 0; //return 1; } }— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Wisling/tibiaauto/issues/78#issuecomment-425461974, or mute the thread https://github.com/notifications/unsubscribe-auth/AEEkM716uPokotOdovPF_RtI1SssxGMVks5ufjgLgaJpZM4W-jC6 .
for anyone else finding this thread: found this thread on how to build: From zero to build hero
though its from 2015, so 8-9 years after the version i am trying to build.
fround a tibiaauto.dsp file and inside:
# Microsoft Developer Studio Generated Build File, Format Version 6.00
i guess i have to somehow find such a version of Visual Studio when it wasnt called Visual Studio yet???
That's the thread I was talking about... :)
I still think it might be easier to reverse engineer it to find out how to generate the code, though. But good luck!
Em sex, 28 de set de 2018 às 12:13, pynkpanther notifications@github.com escreveu:
for anyone else finding this thread: found this thread on how to build: From zero to build hero http://ma.tibiaauto.net/forum/viewtopic.php?f=33&t=1018053
though its from 2015, so 8-9 years after the version i am trying to build. fround a tibiaauto.dsp file and inside:
Microsoft Developer Studio Generated Build File, Format Version 6.00
i guess i have to somehow find such a version of Visual Studio when it wasnt called Visual Studio yet???
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Wisling/tibiaauto/issues/78#issuecomment-425468304, or mute the thread https://github.com/notifications/unsubscribe-auth/AEEkM74HMKELNp2_hDCbKIDtscDNTaFTks5ufjyEgaJpZM4W-jC6 .
really thanx for your help so far man!
i know its a shame but never ever really got into reverse engineering (start to think this could become a very educational thing xD).
but nevertheless. dont i need the old microsoft developer studio to build a working win32 app? or do you think any recent visual studio version will do?
I think you'll need to use the same version that Vanitas and Wisling were using back then. But if you reverse engineer it, you probably don't even need to compile it. Just download the version that has already been compiled should work, provided that you use an older operating system as well... I think it will not work on Windows 10, for example.
Em sex, 28 de set de 2018 às 12:28, pynkpanther notifications@github.com escreveu:
really thanx for your help so far man!
i know its a shame but never ever really got into reverse engineering (start to think this could become a very educational thing xD).
but nevertheless. dont i need the old microsoft developer studio to build a working win32 app? or do you think any recent visual studio version will do?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Wisling/tibiaauto/issues/78#issuecomment-425473392, or mute the thread https://github.com/notifications/unsubscribe-auth/AEEkMzpXtNHvrP70EwbWpuSowl3O_K8tks5ufkA6gaJpZM4W-jC6 .
yea i already have the 1.9.8 and even tried it with the tibia client in a windows xp VM. seemed to work, except the code-authentication.
i think i ll try to get into reverse engineering it. again thx for you help so far. i ll let you know how it works out.
so far wish you good evening!
Thanks, man. Good luck! :)
Em sex, 28 de set de 2018 às 12:37, pynkpanther notifications@github.com escreveu:
yea i already have the 1.9.8 and even tried it with the tibia client in a windows xp VM. seemed to work, except the code-authentication.
i think i ll try to get into reverse engineering it. again thx for you help so far. i ll let you know how it works out.
so far wish you good evening!
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Wisling/tibiaauto/issues/78#issuecomment-425476106, or mute the thread https://github.com/notifications/unsubscribe-auth/AEEkM913KfrZHg3Dgg6FEN3fRDIY5Wgvks5ufkJGgaJpZM4W-jC6 .
where can one download the 1.9.6 .exe? could probably crack it, look for references to the string "%d"
in the exe file, it shouldn't take long to find the function where you need to add a simple jmp short cleanup_and_return_zero_line;
instruction
another way to crack it.. i wonder if this PHP function returns a valid answer:
<?php
echo solve("123-123-123-123-213-123-123-123");
function solve(string $quest):string{
$randTab=explode("-",$quest);
if(count($randTab)!==8){
throw new \LogicException("not 8 randTab's (".count($randTab).")");
}
foreach($randTab as $i=>$wut){
if(!is_numeric($wut)){
throw new \LogicException("randTab {$i} is not numeric! wtf?");
}
}
$goodSum=$randTab[0]*$randTab[0]*11+$randTab[1]*121+$randTab[2]*$randTab[1]*27+$randTab[3]*23+$randTab[4]*15+$randTab[5]*$randTab[6]*$randTab[7]*11-$randTab[3]*($randTab[5]+$randTab[4]);
$goodSum%=100000000;
$buf2=hash("md5",(string)$goodSum,false);
return $buf2;
}
does it? you can test here: https://3v4l.org/DALTI like
echo solve("123-123-123-123-213-123-123-123");
prints 0a527c93d1679e7c6f877299f04dac44
ping @pynkpanther
hi, i recently discovered a 7.7 server running the original tibia server files.
tibiaauto.net/code seems to be broken or the backend seems to be down. any chance you could provide me with valid codes? 1.9.4, 1.95 and 1.9.6 seem to work with the tibia client, but get no codes :-(
if the code server is down and theres no chance in brining it up, i'd be willing to donate you some dollars for some code so i can implement a standalone code generator for myself
greetz klaus