Results 1 to 5 of 5
- 07-23-2011, 06:26 AM #1
Member
- Join Date
- Apr 2011
- Posts
- 7
- Rep Power
- 0
Is There Anything In The Router..
Is there anything in the router that doesn't change, and is unique to everyone/most people that java can read? I'm using an authentication system and I would like to use something like this. I was using internal IP but it changes to much. Thanks :)
EDIT: or even on the computer.Last edited by walkineagle; 07-23-2011 at 06:43 AM.
- 07-23-2011, 05:31 PM #2
Senior Member
- Join Date
- Feb 2011
- Location
- Georgia, USA
- Posts
- 122
- Rep Power
- 0
MAC Address is the only thing that comes to mind unless you set up static IPs. However, MAC Address spoofing will most likely make this a less than secure Authentication system.
- 07-23-2011, 07:26 PM #3
Unless you move into advanced networking, there is very little that doesn't change. MAC Addresses don't change, but can be spoofed. If you set up static IP's that could help, but depending on the configuration someone could simply change that too. Why are you trying to make a security system based off of a router's set up?
- Use [code][/code] tags when posting code. That way people don't want to stab their eyes out when trying to help you.
- +Rep people for helpful posts.
- 07-23-2011, 10:53 PM #4
Member
- Join Date
- Apr 2011
- Posts
- 7
- Rep Power
- 0
Because, it's easy to call and read, and I can't think of anything else in the users computer that wouldn't change and is unique and java can call (preferably in number format)
But I did post this: "EDIT: or even on the computer. "
EDIT: Okay, I did
then I can do addresses[number], but each number is different, how do I know which one to use?Java Code:InetAddress []addresses = InetAddress.getAllByName(InetAddress.getLocalHost().getHostName());
Last edited by walkineagle; 07-23-2011 at 11:12 PM.
- 07-24-2011, 12:30 AM #5
Member
- Join Date
- Apr 2011
- Posts
- 7
- Rep Power
- 0
Hey guys, could you please review that and tell me if it looks fairly safe (I could also remove the letters to make it even more obvious it's not using the MAC address, if it is)?Java Code:else if(s1.equalsIgnoreCase(".get")){ try{ String desktopPath = System.getProperty("user.home") + "/Desktop"; File f; f=new File(desktopPath.replace("\\", "/")+"/get.txt"); if(!f.exists()){ f.createNewFile(); } InetAddress []addresses = InetAddress.getAllByName(InetAddress.getLocalHost().getHostName()); Writer output = null; String text1 = String.valueOf(addresses[1]).substring(String.valueOf(addresses[1]).indexOf("/")+1)+String.valueOf(addresses[2]).substring(String.valueOf(addresses[2]).indexOf("/")+1); String text2 = text1.replaceAll(":", ""); String text3 = text2.replaceAll("%", ""); String text = text3; File file = new File(desktopPath.replace("\\", "/")+"/get.txt"); output = new BufferedWriter(new FileWriter(file)); output.write(text); output.close(); }catch(Exception e){ System.out.println("Error"); } }
My authentication works by the user typing in .get, a text file being created on his desktop, he tells me everything in the text file, then I add it to the authentication (which I already have 100% worked out, as before I was using internal IP).
Though I may later change it to when he types .get it sends it to a MySQL database, so he never sees the number anyway.Last edited by walkineagle; 07-24-2011 at 12:36 AM.
Similar Threads
-
Impossible or not? restart router through java
By Questionmark in forum Advanced JavaReplies: 5Last Post: 08-07-2010, 12:22 PM -
Server is in a network using an IP, but router in network carries the external IP(www
By lse123 in forum NetworkingReplies: 7Last Post: 05-02-2010, 10:35 PM -
how to force port-forwarding for socket on a se505 router
By j2me64 in forum NetworkingReplies: 1Last Post: 01-17-2010, 03:29 PM -
Java is revealing my Private IP (router IP) to Internet
By surfinmdq in forum NetworkingReplies: 7Last Post: 10-21-2009, 04:24 AM -
router working?
By priya deshpande in forum NetworkingReplies: 0Last Post: 10-09-2009, 06:52 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks