Solved

bypass java prompts

Posted on 1997-03-22
5
1,154 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
Comment Utility
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
Comment Utility

0
 
LVL 2

Expert Comment

by:majkl
Comment Utility
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
Comment Utility
thanx...  but nope

sorry
0
 
LVL 1

Accepted Solution

by:
JWBito earned 200 total points
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now