Results 1 to 15 of 15

Thread: decoding files

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    126

    file

    would it help if I gave some more on what I am doing? I am trying to de-encrypt the scores file for the game MXMania, I wan't to make a score recording program. I have tried looking with a hex editor, and I find the names of the players, but the laptimes are still scrambled. Help?

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    they are probably stored binary, you could backup the score file, then try getting a new score and see what changes. You probably need to read the section in either integers or longs with get statement, that is if it's not encrypted.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    126

    HEX

    if i couldn't get it with a hex editor, isn't it encrypted? how do i go about reading the binary, im new to this.

  4. #4
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    A hex editor will show you what the hex values are, but not necessarily the decimal values. If it's any more than a very basic app though, it will probably have encrypted them a bit.
    Harry.

    "From one thing, know ten thousand things."

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    126

    code?

    so what code should i use to read it in?

  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Code:
    Open file for binary as 1
    
      get#1, POSITION, VARIABLE
    
    close 1
    POSITON is the position from which you read, the first byte in the file is 1, the last is the length of file, can be retrieved with Lof(1). You have to either check out what bytes are changed, or try guessing by looking at the numbers (get the decimals of the hex) or you could try putting your own changes and see what happens to the table.

    VARIABLE. Here you put either a long (4 bytes) or a integer(2 bytes) to get the score. If you can't find any pattern at all with the return values, it could be encrypted, and then you can't do anything about it.

    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    126

    ok

    I will try that in my boring old high school pascal class this morning. lol.

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    126

    uh

    how do i get the string values of the players names?

  9. #9
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    you place a string as variable, use space() function to prebuffer its size if you don't use a fixed length string.

    strName=space(LengthOfIt)
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    126

    k

    checking it out

  11. #11

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    126

    got it

    ok, its obviously encrypeted, all it returned was "¤RB", lmao, how do i de-encrypt?

  12. #12

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    126

    cmon

    c'mon guys, i need help!

  13. #13
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Well I guess you either (A) figure out the encrypt/decrypt algorithm, (B) give up or (C) get the scores out of memory before they are encrypted. You'd probably need to use pointers for that though.
    Harry.

    "From one thing, know ten thousand things."

  14. #14

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    126

    bad code

    had my code wrong, lol, got it for now

  15. #15
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    Mastergoon, you can upload it to my ftp server. So, people can look at the file.
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width