Solved

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

Posted on 2014-01-19
4
725 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 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

17 Experts available now in Live!

Get 1:1 Help Now