Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    h4x0r
    h4x0r is offline
    h4x0r's Avatar
    Join Date
    2011 Aug
    Location
    ..\root\home\pgc
    Posts
    826
    Thanks Thanks Given 
    64
    Thanks Thanks Received 
    525
    Thanked in
    205 Posts
    Rep Power
    14

    [Java] Cosmic Break KAR Encryption / Decryption Algo

    Victim

    Here extracted and decrypted java class files from executable. Some general parts decompiled.

    Maybe some one who understand JAVA programming language make packer / unpacker for KAR archives

    Please register or login to download attachments.

    Last edited by h4x0r; 2012-08-14 at 07:20 AM.

  2. #2
    toptaran
    toptaran is offline
    New member
    Join Date
    2012 Mar
    Posts
    9
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    1
    Thanked in
    1 Post
    Rep Power
    0
    I be able to compile tool, but can't check, need password. Kar files crypted with key maked from password.
    Code:
    	  CryptKey(String key) // key = password
    	  {
    		long hash = 0L;
    		for (int i = 0; i < key.length(); i++) {
    		  hash = 31L * hash + key.charAt(i);
    		}
    		setSeed(hash);
    	  }

  3. #3
    xTsukihime
    xTsukihime is offline
    New member
    Join Date
    2012 Jan
    Posts
    17
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    3
    Thanked in
    1 Post
    Rep Power
    0
    lol wanted to see this since it wasn't posted on xentax directly but I guess I have to wait until my account's out of lurker mode
    I develop noesis plugins using the Sanae3D interface I wrote. If a plugin says Sanae3D is missing, just download it and put it in your plugins folder. Since signatures do not allow URL tags you can visit my profile to get the link to my website which contains a link to the Sanae3D package.

    But I'm usually on xentax.

  4. #4
    h4x0r
    h4x0r is offline
    h4x0r's Avatar
    Join Date
    2011 Aug
    Location
    ..\root\home\pgc
    Posts
    826
    Thanks Thanks Given 
    64
    Thanks Thanks Received 
    525
    Thanked in
    205 Posts
    Rep Power
    14
    Updated source's. Try pwd
    Code:
    dhfuhsudfh98vhdsovnfdhiouer8u8hgjbkjciudsuifsjdiosajfn
    Last edited by h4x0r; 2012-08-14 at 07:21 AM.

  5. #5
    toptaran
    toptaran is offline
    New member
    Join Date
    2012 Mar
    Posts
    9
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    1
    Thanked in
    1 Post
    Rep Power
    0
    Are you sure it's source of current kar format?

    I founded some differences in header. Here is right:
    void readExternal(DataInput in)
    throws IOException, ClassNotFoundException
    {
    in.readByte(); // not known, not present in default
    if(in.readBoolean())
    password = in.readUTF();
    timestamp = in.readLong();
    in.readByte(); // not known, not present in default
    String deflatet = in.readUTF(); // was byte
    deflate = Integer.parseInt(deflatet.substring(deflatet.index Of("=") + 1, deflatet.length() - 1)) <= 0 ? false : true;
    One more interesting thing:
    password digest stored in kar(password = in.readUTF() has 29 symbols "8612427997cc3b484346c73f11bba", but must be 32, coz it's md5.

    Password do not match if nothing changed, password need to decrypt files. For headers is no need.

    Some files from image.kar:
    /arena/cg_loadingstg1_poyeen05.png
    /arena/cg_room1img_a00_01.png
    /mate/cg_mate2_B_angry.png
    /arena/cg_loadingstg1_black02.png
    /arena/cg_loadingstg1_event004.png
    /other/ic_planet_flowy.png
    /loading/loading_001.png

  6. #6
    h4x0r
    h4x0r is offline
    h4x0r's Avatar
    Join Date
    2011 Aug
    Location
    ..\root\home\pgc
    Posts
    826
    Thanks Thanks Given 
    64
    Thanks Thanks Received 
    525
    Thanked in
    205 Posts
    Rep Power
    14
    Quote Originally Posted by toptaran View Post
    Are you sure it's source of current kar format?
    Java classes from latest version client.

    Quote Originally Posted by toptaran View Post
    password digest stored in kar(password = in.readUTF() has 29 symbols "8612427997cc3b484346c73f11bba", but must be 32, coz it's md5.
    No ideas

    btw: This game used too KAR
    Last edited by h4x0r; 2012-08-14 at 03:38 PM.

  7. #7
    toptaran
    toptaran is offline
    New member
    Join Date
    2012 Mar
    Posts
    9
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    1
    Thanked in
    1 Post
    Rep Power
    0
    Here you are version can list files and extract one of files.

    If we will found password or what's wrong i rewrite it.

    Please register or login to download attachments.


  8. The Following User Says Thank You to toptaran For This Useful Post:


  9. #8
    h4x0r
    h4x0r is offline
    h4x0r's Avatar
    Join Date
    2011 Aug
    Location
    ..\root\home\pgc
    Posts
    826
    Thanks Thanks Given 
    64
    Thanks Thanks Received 
    525
    Thanked in
    205 Posts
    Rep Power
    14
    Good. I check it later
    Last edited by h4x0r; 2012-08-14 at 05:28 PM.

  10. #9
    toptaran
    toptaran is offline
    New member
    Join Date
    2012 Mar
    Posts
    9
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    1
    Thanked in
    1 Post
    Rep Power
    0
    Haha, there are two KarSource files, one of them only to confuse us.
    For example right entry structure:
    void readExternal(DataInput in) throws IOException, ClassNotFoundException
    {
    in.readShort();
    password = in.readUTF();
    timestamp = in.readLong();
    int b = in.readByte();
    if (b > 0) {
    String ext = in.readUTF();
    int i = ext.indexOf("deflate=");
    if (i >= 0) {
    String ls = ext.substring(i);
    i = ls.indexOf(",");
    if (i >= 0) {
    ls = ls.substring("deflate=".length(), i);
    deflevel = Integer.parseInt(ls);
    }
    deflater = new Deflater(deflevel);
    }

    }

  11. #10
    h4x0r
    h4x0r is offline
    h4x0r's Avatar
    Join Date
    2011 Aug
    Location
    ..\root\home\pgc
    Posts
    826
    Thanks Thanks Given 
    64
    Thanks Thanks Received 
    525
    Thanked in
    205 Posts
    Rep Power
    14
    Rewrite unpacker

Page 1 of 2 12 LastLast

Similar Threads

  1. Selling-Cosmic break account
    By pingas in forum Selling Place
    Replies: 0
    Last Post: 2012-07-30, 05:10 AM
  2. Requiem Packet Decryption
    By aspergo in forum Requiem Online
    Replies: 1
    Last Post: 2012-07-14, 07:07 PM
  3. [JAVA] Simple Java Socket Programming.
    By emoisback in forum Programming Tutorials
    Replies: 0
    Last Post: 2011-12-21, 08:52 AM
  4. Aika Bin files encryption-decryption
    By Dwar in forum Aika Online
    Replies: 12
    Last Post: 2010-11-30, 05:04 AM

Posting Permissions

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