Who said VB is weak? Look at this program!
Originally, a commercial application of mine was cracked ~~~ The program only hides some key registration information in the registry. After disassembly, it is easy to crack. I thought of modifying the serial number of this hard disk partition to hide some key information, though only four bytes. As a dynamic internal authentication code. The external authenticatio
C ++ hardware information to obtain the hard disk serial number
This section describes how to obtain the serial number of a hard disk, not the serial number of a hard disk partition. The core is throughDeviceIoControlInterface to
Hard disk using System;
Using System.IO;
Using System.Runtime.InteropServices;
Using System.Text;
Using Microsoft.Win32;
Namespace Wjb.readorwriteiniandreg
{
Summary description of the harddiskval.
Read the hard drive sequence number of the specified drive letter
Function: Read the hard drive sequence
There is no good solution when I find the serial number of the SCSI hard disk on the Internet. Most of the information on the Internet is about the IDE hard disk. After a large number of searches, I finally found an effective method, post it to share with you:
The Code is as follows:
# Include # Include # Include # Inc
First introduce the service and then call the
This paper is reproduced from http://blog.sina.com.cn/s/blog_7eeb43210101hf7f.html
public class Computer {public static string CpuID;//1.cpu serial number public static string MacAddress;//2. Mac serial number public static string DiskID; 3. Hard disk ID public static string ipaddress; 4.ip address public static st
The hard disk Serial Number (Serial Number) is not equal to the Volume Name. Although the latter is easy to obtain, it will be overwritten after formatting the partition, which is unreliable. Unfortunately, many friends often cannot tell this point.
To obtain the physical serial number of the
Reprint the original source of the articleIn the absence of nagios monitoring, as long as the server can be on the Internet, you can send e-mail to remind administrators of the use of system resources.First, write the Linux system warning mail script# vim/scripts/sys-warning.sh#!/bin/Bash#monitor the system load and CPU, memory, hard disk, log on the number of users, beyond the alert to send email alerts. #
The physical serial number of a hard disk cannot be read in some cases, such as a SCSI hard disk or a user who uses a virtual machine. It is said that a popular SATA hard disk cannot be read now.My method is: if the physical serial number can be obtained, the physical serial
C # uses the Win32 Api to modify the local system time, obtain the hard drive serial number, can be used to write software registration mechanism! The code is as follows: Using System; Using System.Collections.Generic; Using System.Text; Using System.Runtime.InteropServices; Namespace Fengyun { public class Win32 { #region Modifying the Local system time [DllImport ("Kernel32.dll")] private extern static vo
Problem | The registration mechanism of the hard disk general software can be obtained by acquiring the hardware serial number and then using the asymmetric encryption algorithm to generate the corresponding public and private key. But using managed code to get the hard drive serial number can not solve all the problem
Obtain the CPU serial number, hard disk ID, and nic MAC address.
Private void getinfo (){String cpuinfo = ""; // CPU serial numberManagementclass cimobject = new managementclass ("win32_processor ");Managementobjectcollection MOC = cimobject. getinstances ();Foreach (managementobject Mo in MoC){Cpuinfo = Mo. properties ["processorid"]. value. tostring ();Response. Write ("CPU serial
Hard disk
Using System;Using System.IO;Using System.Runtime.InteropServices;Using System.Text;Using Microsoft.Win32;
Namespace Wjb.readorwriteiniandreg{/**////Read the hard drive sequence number of the specified drive letter///public class Harddiskval{[DllImport ("kernel32.dll")]private static extern int GetVolumeInformation (String lpRootPathName,String Lpvolume
Cloud Backup Service Vendor Backblaze publishes its actual hard disk usage Failure Rate Report Quarterly, and this year Q1 's report has just been released. The report calculates the failure rate of different branded hard drives using a sample of Backblaze's 61523 hard drives. The results show that Hitachi (HGST) has the lowest cumulative failure rate (more than
RAID5 Resize and activate the number of hard disks-general Linux technology-Linux technology and application information. The following is a detailed description. RAID5 started with three hard disks with the same capacity. The capacity should be the total capacity of the two hard disks.
A
());
}
}
// Obtain the first hard disk number
Public string getharddiskid ()
{
Try
{
Managementobjectsearcher searcher = new managementobjectsearcher ("select * from win32_physicalmedia ");
String strharddiskid = null;
Foreach (managementobject mo in searcher. get ())
{
Strharddiskid = mo ["serialnumber"]. tostring (). trim ();
Break;
}
Return strharddiskid;
}
Catch
{
Return "";
}
} // End
// Obtain the di
I looked at other materials, including CPU extraction, but there was no hard disk serial number in MAC out-of-the-box code. After searching for a long time, I found the parameter for extracting the hard disk serial number. So I made it up.The code found here:For ASP or. net users, through asp or. net Language to obtain
I looked at other materials, including CPU extraction and Mac off-the-shelf.
Code But there is no hard disk serial number. After searching for a long time, we can find the parameter for extracting the hard disk serial number. So I made it up.
The code found here:For ASP or. net users, through ASP or. net Language
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.