Friday, September 12, 2014

Java Hack --- external private method access

Using reflection, you can access the private methods out side the scope of the class and get the method values.
 Reference: Java World

Our victim class:

public class Victim
 private String getPassword() 
  return "Password";
 private int getAge() 
  return 15;
 private String getMyName()
  return "Noob";

Now lets get busy hacking the victim.
import java.lang.reflect.Method;

public class HackVictim 
 public static void main(String[] args) 
   Class cls = Class.forName("");
   Object obj = cls.newInstance();
   Method[] methods =  cls.getDeclaredMethods();
   for( int i = 0 ; i < methods.length ; i++ )
    System.out.println("Method Name--->>>"+methods[i].getName());
    System.out.println("Method Return Type--->>>"+methods[i].getReturnType());
    System.out.println("Method Value--->>>"+methods[i].invoke(obj));
  catch( Exception e )
You are all set. :)


Anonymous said...

Jobs, -- the man who revolutionized the personal computer and is resuscitating Apple Computer as interim CEO -- clearly relishes his second career as movie mogul. And he is profiting from it -- his 70 percent stake in the company is worth $1.59 billion. [url=]moncler outlet store[/url] Comments ( ) E-mail story Print story E-mail this article To: Invalid E-mail address Add a personal message: (80 [url=]longchamp bags on sale[/url]
Her own harshest critic: The pensioner was not too happy after her friend showed her a snap she had taken [url=]moncler outlet store[/url] Sherry and I committed to each other- to go 30-days with NO LOOSE ENDS. We took our measurements. We are taking pictures this week. We are tracking EVERY WORKOUT AND EVERY MEAL. We will go 30-days SPOT ON (we are both following the 4-Hour Body diet philosophy) and then analyze our results. [url=]canada goose jackets on sale[/url]
meat is thrown into warm tacos, with a splodge of red salsa, a dollop of [url=]uggs clearance[/url] In 2001, you could buy an ounce of gold for $250. Today, gold sells for more than $1,400 an ounce. Thats more than 460% gain. [url=]tory burch outlet[/url]
Pulsing tinnitus can certainly be linked to vascular as well as kinetic abnormalities in addition being an artery deformation. Therefore, making it even more important for the doctor to accurately diagnosing what causes it prior to an operation. For more information concerning pulsating ringing in the ears, refer to Remove Tinnitus that may be slowly but surely increasing cult rank popularity on the World Wide Web for being rapid, effective, reasonable and a long lasting solution to solving tinnitus permanently. Puma ditches shoe boxes in eco initiative [url=]genuine ugg boots[/url] 7. Easy gain access to for the earphones is, naturally, a must. [url=]black timberland boots[/url]

[url=]ugg boots 10 9 1 10.88 shoe store[/url]
[url=]ugg boots 10 5 2 20 zenetti rims[/url]
[url=]ugg boots 10 8 mac update 10.5[/url]
[url=]ugg boots 10 7 6 130 river landing charleston sc[/url]
[url=]ugg boots 10 4 7 0 113 bus schedule[/url]

Anonymous said...

Neat blog! Is your theme custom made or did you download it from somewhere?
A theme like yours with a few simple tweeks would really make
my blog stand out. Please let me know where you got your theme.

Feel free to surf to my page home renovations before and after (

Anonymous said...

I do consider all of the concepts you have introduced on your post.
They're really convincing and will definitely work. Nonetheless, the posts are very brief for starters.
May you please extend them a bit from subsequent time?

Thank you for the post.

Stop by my web blog ... novomatic slots online

Anonymous said...

A full combat sport like Mixed Martial arts allows various kinds
of techniques that include grappling and striking. Buying Equipments:
Boxing, Judo, Karate and all other forms of martial arts
equipment are generally available at many shops but options might be restricted.

The majority of grading systems will ensure that
you receive your new belt or sash and so
have great value.

Alexander White said...

Nice post it is just awesome.. visit my blog: installment loan

oakleyses said...

christian louboutin uk, nike free, polo outlet, oakley sunglasses, nike free run, longchamp outlet, longchamp pas cher, christian louboutin outlet, oakley sunglasses, burberry pas cher, ugg boots, louis vuitton outlet, longchamp outlet, christian louboutin shoes, nike air max, louboutin pas cher, oakley sunglasses wholesale, michael kors pas cher, longchamp outlet, jordan pas cher, louis vuitton outlet, gucci handbags, ray ban sunglasses, ray ban sunglasses, oakley sunglasses, replica watches, tory burch outlet, louis vuitton, nike roshe, tiffany jewelry, louis vuitton outlet, kate spade outlet, prada handbags, polo ralph lauren outlet online, ray ban sunglasses, nike outlet, nike air max, christian louboutin, air max, prada outlet, louis vuitton, chanel handbags, uggs on sale, polo ralph lauren, replica watches, cheap oakley sunglasses, jordan shoes, ugg boots, tiffany and co

oakleyses said...

replica handbags, coach outlet, uggs outlet, true religion outlet, nike tn, mulberry uk, hollister pas cher, ray ban pas cher, nike free uk, hollister uk, michael kors outlet, timberland pas cher, true religion jeans, michael kors outlet online, nike air max, oakley pas cher, polo lacoste, hogan outlet, converse pas cher, burberry outlet, nike roshe run uk, sac vanessa bruno, coach outlet store online, uggs outlet, michael kors outlet, michael kors, north face, michael kors, nike air max uk, michael kors outlet online, ray ban uk, abercrombie and fitch uk, guess pas cher, sac hermes, lululemon canada, north face uk, nike air max uk, true religion outlet, vans pas cher, michael kors outlet online, nike blazer pas cher, burberry handbags, true religion outlet, nike air force, michael kors outlet online, ralph lauren uk, kate spade, coach purses, michael kors outlet

oakleyses said...

abercrombie and fitch, soccer jerseys, iphone cases, ralph lauren, vans outlet, converse outlet, jimmy choo outlet, mcm handbags, ferragamo shoes, lululemon, wedding dresses, hollister, new balance shoes, reebok outlet, north face outlet, soccer shoes, insanity workout, oakley, longchamp uk, nike air max, gucci, nike trainers uk, herve leger, mont blanc pens, vans, beats by dre, nfl jerseys, giuseppe zanotti outlet, valentino shoes, ray ban, nike air max, hollister clothing, p90x workout, converse, bottega veneta, babyliss, chi flat iron, instyler, hermes belt, louboutin, north face outlet, nike roshe run, baseball bats, nike huaraches, hollister, mac cosmetics, asics running shoes, timberland boots, ghd hair, celine handbags

oakleyses said...

thomas sabo, barbour uk, pandora jewelry, barbour, karen millen uk, ugg uk, canada goose, moncler, canada goose outlet, louis vuitton, ugg,ugg australia,ugg italia, pandora uk, pandora charms, louis vuitton, doudoune moncler, canada goose, louis vuitton, montre pas cher, ugg pas cher, canada goose outlet, marc jacobs, supra shoes, canada goose outlet, moncler, replica watches, canada goose jackets, louis vuitton, links of london, canada goose uk, coach outlet, moncler, juicy couture outlet, lancel, juicy couture outlet, ugg, swarovski crystal, moncler outlet, toms shoes, louis vuitton, moncler outlet, wedding dresses, canada goose, hollister, swarovski, moncler, ugg,uggs,uggs canada, pandora jewelry, moncler uk

juliana dyab said...

كثيرون يحصلون على بعض المعلومات عن تكاليف التنظيف داخل الكويت وتكاليف تنظيف التصاميم وتكاليف عالية وعالية؟ حقيقة الأمر هي أن تقييم أعمال التنظيف ليس عرضة للتقييم. في أي حال ، فإن نموذج الغرفة هو التشغيل والتدبير المستخدم لمعرفة التكلفة.
افضل شركة تنظيف منازل
افضل شركة تنظيف خزانات بالكويت
شركة تنظيف منازل بالكويت
شركة تنظيف موكيت بالكويت

مروه علوش said...

شركة تسليك مجاري بالرياض
تعتبر اعمال التسليك وشفط البيارات من اهم الاعمال التى يجب الاهتمام بها لتحافظ على امان وسلامة اسرتك واثاث بيتك من الاتساخ والجراسيم فأعمال التسليك من الاعمال الشاقة والتى تحتاج الى الجهد والتعب والعناء فنحن افضل شركة تسليك مجاري بالرياض نقوم باعمال التسليك عمن طريق فريق عمل مدرب وذو خبرة وكفائة عالية فى مجال التسليك بالرياض
ف شركة تسليك مجاري بالرياض
لديها افضل المعدات واحدث الادوات التى تستخدم فى مجال التسليك والشفط بالرياض كل ما عليك فقط هو الاتصال بأفضل شركة تسليك مجاري بالرياض