Solved

bypass java prompts

Posted on 1997-03-22
5
1,156 Views
Last Modified: 2006-11-17
How do you bypass java prompts so that you don't have to enter a user name and password on a site, but still have FULL access of that site (like you would if you had entered the password and user name)

I guess...  Like hacking the page to get in!?
0
Comment
Question by:motor-man
5 Comments
 

Expert Comment

by:alanw
ID: 1219121
The usernames etc is not generated by Java, and therefore can not be hacked (!!)

They are HTML server generated.  And this is a much bigger subject, than can be answered here.
0
 

Author Comment

by:motor-man
ID: 1219122

0
 
LVL 2

Expert Comment

by:majkl
ID: 1219123
Tehre is no such thing possible. Probably you won't find here an answer.
Try on IRC #java #java_hack. There sometimes come such thing, but Java should be "secure" language, so chenches are low. It depends lot of programers how did they solve this. Try to check also some bugs, that you can work around ..
Here is WWW address, where bugs are up . Study them and success is guaranted.
http://www2.vo.lu/homepages/gmid/java.htm
Hope me brings some points :

0
 

Author Comment

by:motor-man
ID: 1219124
thanx...  but nope

sorry
0
 
LVL 1

Accepted Solution

by:
JWBito earned 200 total points
ID: 1219125
I assume you refer to access a site that is implementing http Basic Authentication when you refer to "java prompts" for user name and password.

I suppose I could tell you exactly what you need to put in, would have to shoot you afterwards.  I believe that you want to get a URLConnection:

URL u = new URL(mumble);
//Default in JDK 1.1 will return HttpURLConnection for http spec.
URLConnection c = u.openConnection();  

// Now you need to set some modes

c.setDoInput(true);
c.setAllowUserInteraction(false);

// Now you need to know the user id and password
// I don't know where to pick up a base64 encoding class
// I'm sure someone has built it...

String auth = com.imaginary.util.Encode64(userid + ":" + pass);
c.setRequestProperty("Authorization", "Basic " + auth);

DataInputStream dis = new DataInputStream(c.getInputStream());
// now read that "protected" page.

0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Java Loop 6 62
Basic Java Case or If-Else statement... 3 51
Java SE 8u111  Lot of stuff broke 11 69
Configure a Bean in an XML file 4 32
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question