Results 1 to 8 of 8

Thread: Java client

  1. #1
    Junior Member
    Vandenkush is offline

    Posts
    4

    Java client

    I've been trying to make an applet for ypp but I seem to be getting this error
    "2019/04/28 20:52:26:826 WARNING r.a: No resource certificate found, falling back to class signers
    2019/04/28 20:52:26:838 WARNING r.a: Failed to preinit: java.io.IOException: m.missing_class"

    When I reverse-engineer the getdownapplet.class file I found the first error
    Code:
       if ((localObject1 = loadCertificate("resource.crt")) != null)
          {
            localArrayList.add(localObject1);
          }
          else
          {
            Log.log.b("No resource certificate found, falling back to class signers", new Object[0]);
            int i = (localObject1 = GetdownApplet.class.getSigners()).length;
            for (int j = 0; j < i; j++)
            {
              Object localObject2;
              if (((localObject2 = localObject1[j]) instanceof Certificate)) {
                localArrayList.add((Certificate)localObject2);
              }
            }
          }
    the loadcertificate method is this :

    Code:
      /* Error */
      protected static Certificate loadCertificate(String paramString)
      {
        // Byte code:
        //   0: ldc_w 24
        //   3: invokevirtual 86	java/lang/Class:getClassLoader	()Ljava/lang/ClassLoader;
        //   6: aload_0
        //   7: invokevirtual 88	java/lang/ClassLoader:getResource	(Ljava/lang/String;)Ljava/net/URL;
        //   10: dup
        //   11: astore_0
        //   12: ifnonnull +5 -> 17
        //   15: aconst_null
        //   16: areturn
        //   17: aload_0
        //   18: invokevirtual 104	java/net/URL:openStream	()Ljava/io/InputStream;
        //   21: astore_0
        //   22: ldc 12
        //   24: invokestatic 106	java/security/cert/CertificateFactory:getInstance	(Ljava/lang/String;)Ljava/security/cert/CertificateFactory;
        //   27: aload_0
        //   28: invokevirtual 105	java/security/cert/CertificateFactory:generateCertificate	(Ljava/io/InputStream;)Ljava/security/cert/Certificate;
        //   31: astore_1
        //   32: aload_0
        //   33: invokevirtual 82	java/io/InputStream:close	()V
        //   36: aload_1
        //   37: areturn
        //   38: astore_1
        //   39: aload_0
        //   40: invokevirtual 82	java/io/InputStream:close	()V
        //   43: aload_1
        //   44: athrow
        //   45: astore_0
        //   46: new 38	java/lang/RuntimeException
        //   49: dup
        //   50: aload_0
        //   51: invokespecial 90	java/lang/RuntimeException:<init>	(Ljava/lang/Throwable;)V
        //   54: athrow
        //   55: astore_0
        //   56: new 38	java/lang/RuntimeException
        //   59: dup
        //   60: aload_0
        //   61: invokespecial 90	java/lang/RuntimeException:<init>	(Ljava/lang/Throwable;)V
        //   64: athrow
        // Local variable table:
        //   start	length	slot	name	signature
        //   0	65	0	paramString	String
        //   31	6	1	localCertificate	Certificate
        //   38	6	1	localObject	Object
        // Exception table:
        //   from	to	target	type
        //   22	32	38	finally
        //   0	16	45	java/security/cert/CertificateException
        //   17	36	45	java/security/cert/CertificateException
        //   38	45	45	java/security/cert/CertificateException
        //   0	16	55	java/io/IOException
        //   17	36	55	java/io/IOException
        //   38	45	55	java/io/IOException
      }
    So the result of loadCertificate("resource.crt") must be null
    I have no idea what this certificate is and how I'm able to send one with my client
    Any help?

  2. #2
    Senior Member
    erik is offline

    Posts
    343
    Have you tried yelling at your computer?


  3. #3
    Junior Member
    Vandenkush is offline

    Posts
    4
    Doubt it has something to do with my computer cause I barely know what I'm doing but hey I'll give it a shot

    EDIT: didn't help

  4. #4
    Senior Member
    TheRigger is offline

    Posts
    640
    This probably won't help, but applets were deprecated in JDK 9. Also, YPP does a bunch of checksumming on their .jars, so it's probably instantly detected if you try to do a reflection client.

  5. #5
    Junior Member
    Vandenkush is offline

    Posts
    4
    I got the code of a runescape forum how come a game like runescape doesn't do all those checksummings on their jars then? I'm pretty sure people here have made reflection clients before so I was hoping for some help

  6. #6
    Senior Member
    TheRigger is offline

    Posts
    640
    Puzzle Pirates uses a software called getdown to verify that you don't mess with their jars. It's quite complicated so I'm not surprised that something similar was not done in Runescape, which was released at least 2 years earlier than Puzzle Pirates. If you'd like to take a further look check out github repo threerings/getdown, which is where you might be able to find out where the errors are coming from. On the other hand, this may be some kind of http(s) certificate that you're missing.

  7. #7
    Junior Member
    Vandenkush is offline

    Posts
    4
    I've tried looking into it but seems like the error I got was from a class that isn't in the repository.

    I mainly just want a way to send my clicks without using my real mouse so I can keep working on other stuff whilst the mouse is clicking.
    I believe a reflection client is the only way to achieve this but I'm not sure
    So if there is another way feel free to tell me

  8. #8
    Senior Member
    TheRigger is offline

    Posts
    640
    You're very likely going to have to use autohotkey for that kind of automation. Specifically, check out the ControlClick command.
    Also it might not even work then. For example, I can send keys to YPP in the background (using ControlSend). However, it can disable the ability for me to press Control, Alt, Shift, and Windows keys (altkeys) while sending keys, so it's not perfect.

Tags for this Thread

Posting Permissions

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