Solved

bypass java prompts

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
difference of if loops 23 62
Windows 10 IE Certificate Issue 10 51
servlet filter example 37 72
eclipse console opening separately 2 29
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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 will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

828 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