Jump to content
SSForum.net is back!

Recommended Posts

Posted

Does anyone know how to make a java applet grab ipconfig data and maybe perform a telnet to a specific address?

 

The goal is to direct people to a URL have the applet perform these tasks for the user and then dump the data to the server.

 

Ive played around with it a bit and cant get there.

 

Might be some money for anyone who can help

http://www.liquidrain.com/testtube.jpg

http://www.speedtest.net/result/702607985.png

Posted

It'll have to be a signed applet, since a normal applet cannot perform those tasks for security reasons. That just means you have to sign it yourself (like I did with chatnut). I know there's a way to disable the security for an applet for testing, but I forget exactly how it goes. Perhaps having the webpage on your local hard drive? A google search should reveal the answer.

 

What else is giving you problems?

Freedom is the right to be wrong.
Posted (edited)

What is it exactly you want the applet to do? From what I've understood is that you want to have an applet that automatically connects to a specific server via telnet and dump the results of this attempt to (another?) server. Is that correct?

 

At first I though you needed a signed applet aswell, like Dr. Brain said, but my Google Search has turned out otherwise.

 

What you need is pretty much showed here (apart from the results dumping):

http://javaboutique.internet.com/Telnet/

 

A ready-made library is available here: http://javassh.org/space/start

 

As for the IPConfig stuff, here is an applet to get the (local) IP of the computer; http://www.reglos.de/myaddress/MyAddress.html (Unfortunately without source code.)

Here is how you do it in java code: http://www.jguru.com/faq/view.jsp?EID=15832

Edited by Maverick

Check out your zone population statistics at stats.sshq.net!

 

 

Maverick

Subspace Statistics Administrator

Retired SSCU Trench Wars Super Moderator

TWCore Coordinator Administrator

Posted

You cannot connect to IP addresses *except* the one hosting the applet without a signed applet. This applies to all network connections. That's why chatnut has to be signed.

 

If you want to run ipconfig itself, rather than just getting the LAN IP, then you'll still need the applet to be signed.

 

So yes, If you only want to telnet to the web server and print the ip address, you don't need any special security settings. My understanding of the initial post was that this wouldn't be enough.

Freedom is the right to be wrong.
Posted

A special thanks to Mav for the research. ( i did search and could not find this info) I really appreciate you going the extra mile here and posting your results. You helped me more than you know.

 

Dr Brain Thanks go out to you as well. For helping me with my remaining questions You have always been a stand up guy and i appreciate that as well.

 

 

You both are great assets to this community continue the great work you guys do

 

 

thanks again

 

-Ryan

http://www.liquidrain.com/testtube.jpg

http://www.speedtest.net/result/702607985.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...