LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-21-2008, 01:45 PM   #1
redmoon zero
LQ Newbie
 
Registered: Sep 2004
Posts: 18

Rep: Reputation: 0
java program output to website field


I don't know where to go to ask this
I don't know any good programming or security forums

i am not trying anything illegal
i am trying to make a password and crack it

say you have a 6 digit numeric password
i have a java program that uses brute force to figure out the password
a 6 digit password has one million permutations
my program can do it in like a second

MY QUESTION is how do i have those password permutations output to something else

i know this kinda sounds general but how bout this example
what if i make a website that requires a password
then how do i make a java program send possible passwords to the website
 
Old 03-21-2008, 05:03 PM   #2
jpk
Member
 
Registered: Apr 2006
Location: Copenhagen, Denmark
Distribution: FC5->Ubuntu 6.10->Ubuntu 7.04->Ubuntu 7.10->Ubuntu 8.04
Posts: 39

Rep: Reputation: 16
Depending on the authentication mechanism used by such a site, your program (http client) can do one of the following:
* send http POST/GET request with parameters corresponding to the username and password fields on the login form
* provide the credetials in HTTP header
Then your program should process the response from the web server, and re-try if login fails.

However, even if your program is fast, you must remember, that a HTTP request will normally take a least 1 second. Also, modern web servers are able to detect such kind of brute force attack, and your java client (actually, your IP addr) will be probably banned very soon, if the authentication fails too many times.

Quote:
I don't know where to go to ask this
I don't know any good programming or security forums
<--- Have a look to literature about HTTP, there are many good books describing the situations related to your case

Last edited by jpk; 03-21-2008 at 05:05 PM.
 
Old 03-22-2008, 12:41 AM   #3
redmoon zero
LQ Newbie
 
Registered: Sep 2004
Posts: 18

Original Poster
Rep: Reputation: 0
thanks for the reply
at first this seemed way over my head but eh why not give it a try

i made a html file with a javascript that has a form that asks for username and password

i was having trouble trying to figure out how to use java to send data to the forms

i didn't know if i would have to piece together a http get request or something
then i saw some stuff about post's
i figured java had to have some method for this

it really sucks not having the internet whenever i want
i need to be online 24/7 to figure this out

[provide the credetials in HTTP header]
is that like this
http://www.website.com/?name=bob&password=123
it didn't work - that may not be exact syntax from memory but anyway

but i heard about a java class called Forms
i am going to look into that
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Script/Programing:Enter a value in a field andClick on Java knob with curl/wget type? frenchn00b Linux - General 2 12-22-2007 05:44 AM
[cmdline, links type] How to enter a field, and run the java knob ? frenchn00b Programming 0 10-21-2007 03:05 PM
What is the ninth (9th) character or field in the output string of rpm -V ? zimon Linux - Distributions 1 08-28-2006 02:47 PM
is there any way to change a static field during runtime in java ?? alred Programming 5 08-20-2006 09:13 AM
C function to execute a program and return the output of the program ryan.n Programming 4 08-14-2004 10:11 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration