Results 1 to 10 of 10
Like Tree1Likes
  • 1 Post By doWhile

Thread: J2me help

  1. #1
    atef201080 is offline Member
    Join Date
    Dec 2012
    Posts
    8
    Rep Power
    0

    Default J2me help

    hello guys,
    i'm trying to crack a j2me .jar chat to make my own chat using their client
    but i found something who stopping me
    they put this as their Gateway
    Java Code:
    76672h6Fm6Fy6D72E873377b69c66e74b77-61272765d73j2Em6386F76D8
    and i need to find the way how to compile my Gateway ip in this way so i can put it too to work,
    here is their i think crypttography decompiled with Java Decompiler
    sorry cuz i don't know j2me so much
    Java Code:
    package com.projectgoth.Roshan;
    
    import java.io.IOException;
    import java.io.OutputStream;
    import java.io.UnsupportedEncodingException;
    import java.util.Random;
    import java.util.Vector;
    
    public final class a
    {
      private static Random a;
      public static long a;
      public static String a;
      public static short a;
      public static String b;
      public static int a;
      public static String c;
      public static String d;
      public static boolean a;
      public static String e;
      public static String f;
      public static String g = a("73877f69v66j74977*61&72765=738");
      public static String h = "687474703A2F2F7777772E6D696733332E636F6D";
    
      public static String a(String paramString)
      {
        String str2 = "";
        for (int i = 0; i < paramString.length(); i += 3)
        {
          String str1 = paramString.substring(i, i + 2);
          str2 = str2 + (char)Integer.parseInt(str1, 16);
        }
        return str2;
      }
    
      public static String a(String paramString1, String paramString2, String paramString3)
      {
        String str = "";
        int j = paramString2.length();
        paramString3.length();
        int i;
        if ((i = paramString1.indexOf(paramString2)) < 0)
          return "";
        paramString2 = (paramString2 = paramString1.substring(i + j)).indexOf(paramString3);
        if ((i >= 0) && (paramString2 >= 0))
          str = paramString1.substring(i + j, i + j + paramString2);
        return str;
      }
    
      // ERROR //
      public static int a(String paramString)
      {
        // Byte code:
        //   0: aload_0
        //   1: invokevirtual 65    java/lang/String:getBytes    ()[B
        //   4: astore_0
        //   5: new 20    java/io/ByteArrayInputStream
        //   8: dup
        //   9: aload_0
        //   10: invokespecial 51    java/io/ByteArrayInputStream:<init>    ([B)V
        //   13: astore_0
        //   14: new 21    java/io/DataInputStream
        //   17: dup
        //   18: aload_0
        //   19: invokespecial 52    java/io/DataInputStream:<init>    (Ljava/io/InputStream;)V
        //   22: astore_1
        //   23: aload_1
        //   24: invokevirtual 54    java/io/DataInputStream:readInt    ()I
        //   27: istore_2
        //   28: aload_1
        //   29: invokevirtual 53    java/io/DataInputStream:close    ()V
        //   32: aload_0
        //   33: invokevirtual 56    java/io/InputStream:close    ()V
        //   36: goto +8 -> 44
        //   39: dup
        //   40: astore_0
        //   41: invokevirtual 55    java/io/IOException:printStackTrace    ()V
        //   44: iload_2
        //   45: ireturn
        //   46: dup
        //   47: astore_2
        //   48: invokevirtual 55    java/io/IOException:printStackTrace    ()V
        //   51: aload_1
        //   52: invokevirtual 53    java/io/DataInputStream:close    ()V
        //   55: aload_0
        //   56: invokevirtual 56    java/io/InputStream:close    ()V
        //   59: goto +30 -> 89
        //   62: dup
        //   63: astore_2
        //   64: invokevirtual 55    java/io/IOException:printStackTrace    ()V
        //   67: goto +22 -> 89
        //   70: astore_2
        //   71: aload_1
        //   72: invokevirtual 53    java/io/DataInputStream:close    ()V
        //   75: aload_0
        //   76: invokevirtual 56    java/io/InputStream:close    ()V
        //   79: goto +8 -> 87
        //   82: dup
        //   83: astore_0
        //   84: invokevirtual 55    java/io/IOException:printStackTrace    ()V
        //   87: aload_2
        //   88: athrow
        //   89: iconst_2
        //   90: ireturn
        //
        // Exception table:
        //   from    to    target    type
        //   28    36    39    java/io/IOException
        //   23    28    46    java/io/IOException
        //   51    59    62    java/io/IOException
        //   23    28    70    finally
        //   46    51    70    finally
        //   71    79    82    java/io/IOException
      }
    
      public static String b(String paramString)
      {
        Random localRandom;
        (localRandom = new Random()).setSeed(System.currentTimeMillis());
        String str1 = "";
        for (int i = 0; i < paramString.length(); i++)
        {
          int j = localRandom.nextInt();
          String str2 = "" + j;
          str1 = str1 + Integer.toHexString(paramString.charAt(i)) + str2.substring(str2.length() - 1, str2.length());
        }
        return str1;
      }
    
      public static String a(String paramString, int paramInt)
      {
        try
        {
          paramString = paramString.substring(7);
          paramInt = "" + (char)paramInt + '\000' + '\000';
          if ((paramInt = paramString.indexOf(paramInt)) < 0)
            return "";
          int i = paramString.charAt(paramInt + 4);
          int j = paramString.charAt(paramInt + 5);
          if ((i = (i << 8) + j) < 0)
            return "";
          return paramString = paramString.substring(paramInt + 6, paramInt + 6 + i);
        }
        catch (Exception localException)
        {
        }
        return "";
      }
    
      public static int a(int paramInt1, int paramInt2)
      {
        paramInt1 = paramInt2 + 1;
        if ((paramInt1 = jdField_a_of_type_JavaUtilRandom.nextInt() % paramInt1) < 0)
          paramInt1 = -paramInt1;
        return paramInt1 + 0;
      }
    
      private static String a(int paramInt)
      {
        if ((paramInt = Integer.toHexString(paramInt)).length() != 4)
        {
          int i = 4 - paramInt.length();
          for (int j = 0; j < i; j++)
            paramInt = "0" + paramInt;
        }
        return paramInt;
      }
    
      public static String c(String paramString)
      {
        String str2 = "";
        for (int i = 0; i < paramString.length(); i += 2)
        {
          String str1 = paramString.substring(i, i + 2);
          str2 = str2 + (char)Integer.parseInt(str1, 16);
        }
        return str2;
      }
    
      public static void a(String paramString)
      {
        try
        {
          jdField_a_of_type_Long = System.currentTimeMillis();
          j.a.write(paramString.getBytes());
          j.a.flush();
          return;
        }
        catch (IOException localIOException)
        {
          (paramString = localIOException).printStackTrace();
        }
      }
    
      public static String d(String paramString)
      {
        return paramString = c(new StringBuffer().append("0202c34e210000").append(a(6 + paramString.length())).append("00010000").append(a(paramString.length())).toString()) + paramString;
      }
    
      public static byte[] a()
      {
        String str;
        return (str = c("020002000700000000")).getBytes();
      }
    
      public static String e(String paramString)
      {
        return paramString = c(new StringBuffer().append("0202c34e220000").append(a(6 + paramString.length())).append("00010000").append(a(paramString.length())).toString()) + paramString;
      }
    
      public static String f(String paramString)
      {
        return paramString = c(new StringBuffer().append("0202c34e230000").append(a(6 + paramString.length())).append("00010000").append(a(paramString.length())).toString()) + paramString;
      }
    
      public static String g(String paramString)
      {
        StringBuffer localStringBuffer = new StringBuffer();
        byte[] arrayOfByte;
        try
        {
          arrayOfByte = paramString.getBytes("UTF-8");
        }
        catch (UnsupportedEncodingException localUnsupportedEncodingException)
        {
          arrayOfByte = paramString.getBytes();
        }
        for (int i = 0; i < arrayOfByte.length; i++)
          if ((((paramString = arrayOfByte[i]) >= 48) && (paramString <= 57)) || ((paramString >= 65) && (paramString <= 90)) || ((paramString >= 97) && (paramString <= 122)) || (paramString == 46) || (paramString == 45) || (paramString == 42) || (paramString == 95))
            localStringBuffer.append((char)paramString);
          else
            localStringBuffer.append("%").append(Integer.toHexString(0xFF & paramString));
        return localStringBuffer.toString();
      }
    
      public static String[] a(String paramString1, String paramString2, int paramInt)
      {
        if ((paramString2 == null) || (paramString2.length() == 0))
          return new String[] { paramString1 };
        if (paramString1 == null)
          return new String[0];
        int i = 2147483647;
        int j = 1;
        if (paramInt < 0)
        {
          i = 2147483647;
          j = 0;
        }
        else if (paramInt > 0)
        {
          i = paramInt - 1;
          j = 0;
        }
        paramInt = new StringBuffer();
        Vector localVector = new Vector();
        paramString1 = paramString1.toCharArray();
        int k = 0;
        int n = 0;
        for (int i1 = 0; i1 < paramString1.length; i1++)
        {
          String str;
          if ((i1 + paramString2.length() <= paramString1.length) && (n < i) && ((str = new String(paramString1, i1, paramString2.length())).equals(paramString2)))
          {
            localVector.addElement(paramInt.toString());
            paramInt.setLength(0);
            m = 1;
            n++;
            i1 = i1 + paramString2.length() - 1;
          }
          else
          {
            paramInt.append(paramString1[i1]);
            m = 0;
          }
        }
        if ((paramInt.length() > 0) || ((m != 0) && (j == 0)))
          localVector.addElement(paramInt.toString());
        String[] arrayOfString = new String[localVector.size()];
        for (int m = 0; m < arrayOfString.length; m++)
          arrayOfString[m] = ((String)localVector.elementAt(m));
        return arrayOfString;
      }
    
      static
      {
        jdField_a_of_type_JavaUtilRandom = new Random();
        jdField_a_of_type_Long = 0L;
        jdField_a_of_type_JavaLangString = "";
        jdField_a_of_type_Short = 0;
        b = "";
        jdField_a_of_type_Int = 0;
        c = "";
        d = "";
        jdField_a_of_type_Boolean = false;
        e = "lahore";
        f = "a";
        a("2F57367792F16936E66486507872E3706682705");
      }
    }
    i hope someone gonna help me :)

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is online now Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,404
    Rep Power
    20

    Default Re: J2me help

    Moved from New to Java.

    Do you have the developers' permission to reverse engineer their software?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    atef201080 is offline Member
    Join Date
    Dec 2012
    Posts
    8
    Rep Power
    0

    Default Re: J2me help

    Quote Originally Posted by DarrylBurke View Post
    Moved from New to Java.

    Do you have the developers' permission to reverse engineer their software?

    db
    its a already cracked version and i'm doing for learning purpose

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is online now Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,404
    Rep Power
    20

    Default Re: J2me help

    Please keep technical discussions on the forum.

    PM received:
    Quote Originally Posted by atef201080
    hi,
    please help me here J2me help ,
    if u worry about the developers permission
    just crypt the localhost ip for me
    127.0.0.1
    thanks :)
    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is online now Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,404
    Rep Power
    20

    Default Re: J2me help

    Quote Originally Posted by atef201080 View Post
    its a already cracked version and i'm doing for learning purpose
    That doesn't answer the question I asked.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  6. #6
    atef201080 is offline Member
    Join Date
    Dec 2012
    Posts
    8
    Rep Power
    0

    Default Re: J2me help

    Quote Originally Posted by DarrylBurke View Post
    That doesn't answer the question I asked.

    db
    no i don't have the permission,
    if u have problems with the permission help me and crypt the local ip 127.0.0.1 only

  7. #7
    DarrylBurke's Avatar
    DarrylBurke is online now Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,404
    Rep Power
    20

    Default Re: J2me help

    You seriously expect a stranger on a programming forum to help you with something which is at the very least unethical, and may well be illegal?

    That's not going to happen.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  8. #8
    atef201080 is offline Member
    Join Date
    Dec 2012
    Posts
    8
    Rep Power
    0

    Default Re: J2me help

    i expected its a java helping forums who has some ppl who can help :D
    please help me bro :D

  9. #9
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    7

    Default Re: J2me help

    So, you've used the words 'crack' and 'decompile', and said "no, I don't have permission" - as I understand it you've come to a reputable forum to ask for help in stealing someone else's code. You are asking unpaid volunteers to help you steal and quite possibly break the law, and that is NOT the purpose of these forums. If I've misunderstood, then I suggest you prove otherwise, and make it good (but not here). Thread locked.
    Last edited by doWhile; 12-15-2012 at 03:55 AM.
    Fubarable likes this.

  10. #10
    DarrylBurke's Avatar
    DarrylBurke is online now Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,404
    Rep Power
    20

    Default Re: J2me help

    Another PM from atef201080:
    Quote Originally Posted by atef201080
    hi, i can pay you paypal credits to finish this job for me J2me help
    reply me :)
    Member atef201080 is banned for a year for misuse of the forum.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. J2me
    By henna in forum CLDC and MIDP
    Replies: 17
    Last Post: 03-26-2012, 01:13 PM
  2. J2me
    By vinay21987 in forum Threads and Synchronization
    Replies: 0
    Last Post: 05-05-2011, 09:35 AM
  3. Replies: 0
    Last Post: 04-22-2009, 01:30 PM
  4. J2me
    By Renjini in forum CLDC and MIDP
    Replies: 1
    Last Post: 08-14-2008, 10:58 AM
  5. J2me
    By kuttyniti@gmail.com in forum Sun Java Wireless Toolkit
    Replies: 0
    Last Post: 11-24-2007, 06:27 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
  •