Solved

ASP.net VB.net Getting unique information about a computer

Posted on 2014-01-19
4
728 Views
Last Modified: 2014-01-19
Hi. The following code seems to find just the name of the PC from an ASP.net site
 How do I find other information that is unique to that PC?


Dim way1 As String = System.Environment.MachineName
            Dim way2 As String = Server.MachineName
            Dim way3 As String = System.Net.Dns.GetHostName
            Dim way4 As String = My.Computer.Name
            Dim way5 As String = System.Net.Dns.GetHostEntry(Request.ServerVariables
0
Comment
Question by:murbro
  • 2
  • 2
4 Comments
 
LVL 27

Expert Comment

by:Ark
ID: 39791895
ASP.net controls server-side, not client side machine. Though you can get remote_addr, but for IPv6 it may be useless. You can get some info via ActiveX like shell/wsh/WMI, but user can simply switch ActiveX off...
0
 

Author Comment

by:murbro
ID: 39791897
Thanks. How would I get the following ActiveX: shell/wsh/WMI
0
 
LVL 27

Accepted Solution

by:
Ark earned 500 total points
ID: 39791906
These activeX are already on user machine and you can access them via javascript (if user permit).
You can use following scenario insted:
1. Create 'ProductGenerator' WinApp for download on your site. This app will gather info from client computer (using System.Management or system.Net class for example) and convert it into some code-like (GUID, for examle) form
2. User send this info to you (via e-mail or just filling ASP.net form).
3. You home computer or ASP server contains a code which encrypt some text ('My app is cool' for ex) with above GUID (as a  crypto key)
4. You send encrypted key (password) to user after (s)hi paid for software
5. Your main app available for download have same code as #1 to get and convert system info as well as symmetric algo to decrypt password. Then check decrypted string - if it's 'My app is cool' - run full code, otherwise - run demo code
0
 

Author Closing Comment

by:murbro
ID: 39792146
Thanks very much
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need help parsing JSON in my VB.Net application 4 41
asp.net mvc return json 2 53
Get Top Visible Row of Datagridview 6 26
Vb. Net application freezes 9 28
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

932 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

11 Experts available now in Live!

Get 1:1 Help Now