Hmm...

Discussion in 'Archives' started by Olan14, May 10, 2007.

Hmm...
  1. Unread #1 - May 10, 2007 at 5:52 PM
  2. Olan14
    Joined:
    Jan 26, 2007
    Posts:
    581
    Referrals:
    0
    Sythe Gold:
    0

    Olan14 Forum Addict

    Hmm...

    Im decompiling RuneScape's client files like Runescape.zip WinRAR Archive and Loader.cab WinRAR Archive. Heres Unpack from Loader:

    Code:
    import java.io.*;
    import java.util.Hashtable;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipInputStream;
    public class unpack
    {
        protected Hashtable cache;
        public final byte[] a(int i, String s)
        {
            try
            {
                int j = -34 % ((7 - i) / 62);
                return (byte[])cache.remove(s);
            }
            catch(RuntimeException runtimeexception)
            {
                throw runtimeexception;
            }
        }
        protected unpack()
        {
            cache = new Hashtable();
        }
        public unpack(byte abyte0[])
            throws IOException
        {
            cache = new Hashtable();
            try
            {
                ZipInputStream zipinputstream = new ZipInputStream(new ByteArrayInputStream(abyte0));
                byte abyte1[] = new byte[1000];
                do
                {
                    ZipEntry zipentry = zipinputstream.getNextEntry();
                    if(zipentry == null)
                    {
                        break;
                    }
                    String s = zipentry.getName();
                    if(s.endsWith(".class"))
                    {
                        s = s.substring(0, s.length() + -6);
                        s = s.replace('/', '.');
                        ByteArrayOutputStream bytearrayoutputstream = new ByteArrayOutputStream();
                        do
                        {
                            int i = zipinputstream.read(abyte1, 0, 1000);
                            if(i == -1)
                            {
                                break;
                            }
                            bytearrayoutputstream.write(abyte1, 0, i);
                        } while(true);
                        byte abyte2[] = bytearrayoutputstream.toByteArray();
                        cache.put(s, abyte2);
                    }
                } while(true);
                zipinputstream.close();
                return;
            }
            catch(RuntimeException runtimeexception)
            {
                throw runtimeexception;
            }
        }
    }
    
    Maybe we can try and create a 456 client using the files yet the question is how?
     
< buying 1 pbp pin for 1mil | Selling a good mauler -- bidding -- >

Users viewing this thread
1 guest


 
 
Adblock breaks this site