Tag hardware

Linux hardware fingerprint

26 Октябрь, 22:48, by Rus Метки: , ,

Simple Linux fingerprint utility:

[Dao]:rus:~/Projects/elf-protect/si # ./si

——————————- PCI Fingerprint ——————————-

1: 0000:00:00.0, class — 0×060000, vendor — 0×1022, device — 0×9601, sub_vendor — 0×1022, sub_device — 0×9601, revision — 0×00

2: 0000:00:01.0, class — 0×060400, vendor — 0×1022, device — 0×9602, sub_vendor — 0×1022, sub_device — 0×9602, revision — 0×00

3: 0000:00:0a.0, class — 0×060400, vendor — 0×1022, device — 0×9609, sub_vendor — 0×1022, sub_device — 0×9601, revision — 0×00

4: 0000:00:11.0, class — 0×010601, vendor — 0×1002, device — 0×4390, sub_vendor — 0×1002, sub_device — 0×4390, revision — 0×40

5: 0000:00:12.0, class — 0x0c0310, vendor — 0×1002, device — 0×4397, sub_vendor — 0×1002, sub_device — 0×4397, revision — 0×00

6: 0000:00:12.2, class — 0x0c0320, vendor — 0×1002, device — 0×4396, sub_vendor — 0×1002, sub_device — 0×4396, revision — 0×00

7: 0000:00:13.0, class — 0x0c0310, vendor — 0×1002, device — 0×4397, sub_vendor — 0×1002, sub_device — 0×4397, revision — 0×00

8: 0000:00:13.2, class — 0x0c0320, vendor — 0×1002, device — 0×4396, sub_vendor — 0×1002, sub_device — 0×4396, revision — 0×00

9: 0000:00:14.0, class — 0x0c0500, vendor — 0×1002, device — 0×4385, sub_vendor — 0×0000, sub_device — 0×0000, revision — 0×41

10: 0000:00:14.1, class — 0x01018a, vendor — 0×1002, device — 0x439c, sub_vendor — 0×1002, sub_device — 0x439c, revision — 0×40

11: 0000:00:14.2, class — 0×040300, vendor — 0×1002, device — 0×4383, sub_vendor — 0×1043, sub_device — 0×8410, revision — 0×40

12: 0000:00:14.3, class — 0×060100, vendor — 0×1002, device — 0x439d, sub_vendor — 0×1002, sub_device — 0x439d, revision — 0×40

13: 0000:00:14.4, class — 0×060401, vendor — 0×1002, device — 0×4384, sub_vendor — 0×0000, sub_device — 0×0000, revision — 0×40

14: 0000:00:14.5, class — 0x0c0310, vendor — 0×1002, device — 0×4399, sub_vendor — 0×1002, sub_device — 0×4399, revision — 0×00

15: 0000:00:15.0, class — 0×060400, vendor — 0×1002, device — 0x43a0, sub_vendor — 0×1002, sub_device — 0×0000, revision — 0×00

16: 0000:00:16.0, class — 0x0c0310, vendor — 0×1002, device — 0×4397, sub_vendor — 0×1002, sub_device — 0×4397, revision — 0×00

17: 0000:00:16.2, class — 0x0c0320, vendor — 0×1002, device — 0×4396, sub_vendor — 0×1002, sub_device — 0×4396, revision — 0×00

18: 0000:00:18.0, class — 0×060000, vendor — 0×1022, device — 0×1200, sub_vendor — 0×0000, sub_device — 0×0000, revision — 0×00

19: 0000:00:18.1, class — 0×060000, vendor — 0×1022, device — 0×1201, sub_vendor — 0×0000, sub_device — 0×0000, revision — 0×00

20: 0000:00:18.2, class — 0×060000, vendor — 0×1022, device — 0×1202, sub_vendor — 0×0000, sub_device — 0×0000, revision — 0×00

21: 0000:00:18.3, class — 0×060000, vendor — 0×1022, device — 0×1203, sub_vendor — 0×0000, sub_device — 0×0000, revision — 0×00

22: 0000:00:18.4, class — 0×060000, vendor — 0×1022, device — 0×1204, sub_vendor — 0×0000, sub_device — 0×0000, revision — 0×00

23: 0000:01:05.0, class — 0×030000, vendor — 0×1002, device — 0×9714, sub_vendor — 0×1043, sub_device — 0×8454, revision — 0×00

24: 0000:01:05.1, class — 0×040300, vendor — 0×1002, device — 0x970f, sub_vendor — 0×1002, sub_device — 0x970f, revision — 0×00

25: 0000:02:00.0, class — 0×010601, vendor — 0x197b, device — 0×2361, sub_vendor — 0×1043, sub_device — 0x824f, revision — 0×02

26: 0000:02:00.1, class — 0×010185, vendor — 0x197b, device — 0×2361, sub_vendor — 0×1043, sub_device — 0x824f, revision — 0×02

27: 0000:03:05.0, class — 0×078000, vendor — 0×9710, device — 0×9835, sub_vendor — 0×1000, sub_device — 0×0012, revision — 0×01

28: 0000:03:06.0, class — 0×040100, vendor — 0×1102, device — 0×0004, sub_vendor — 0×1102, sub_device — 0×1002, revision — 0×04

29: 0000:03:06.1, class — 0×098000, vendor — 0×1102, device — 0×7003, sub_vendor — 0×1102, sub_device — 0×0060, revision — 0×04

30: 0000:03:06.2, class — 0x0c0010, vendor — 0×1102, device — 0×4001, sub_vendor — 0×1102, sub_device — 0×0010, revision — 0×04

31: 0000:03:07.0, class — 0x0c0010, vendor — 0×1106, device — 0×3044, sub_vendor — 0×1043, sub_device — 0x81fe, revision — 0xc0

32: 0000:04:00.0, class — 0×020000, vendor — 0x10ec, device — 0×8168, sub_vendor — 0×1043, sub_device — 0×8432, revision — 0×06

———————————— Network ————————————

eth0: PCI place [ 0000:04:00.0 ], class — 0×020000, vendor — 0x10ec, device — 0×8168, sub_vendor — 0×1043, sub_device — 0×8432, rev — 0×06, ipv6 addr [ fe80::4a5b:39ff:fe02:3924/64, Scope: Link ], ipv4 addr [ 10.1.0.100 ], MAC XX:XX:XX:XX:XX:XX, NETMASK 255.255.255.0, BROADCAST 10.1.0.255

eth0 csum — \x9a\x96\xdb\x13\x37\x3e\x53\xd1\x32\xe7\x5c\x0f\x7e\x50\x51\x90\xa4\xb1\xe2\xfd\x3f\xbc\x6c\xf4\x71\xce\x91\x8e\x06\x34\xeb\x3e\x8f\x69\xa6\xd0\xf2\xcc\x85\xb2\xa6\x2b\xf4\x5b\x53\x91\xce\x21\x66\x64\x8e\x43\x25\x57\xfc\xb9\x96\x44\x88\x53\x07\x62\x59\x02

————————————- CPU ————————————-

Vendor: AuthenticAMD

CPU Family: 16

Model: 4

Model Name: AMD Phenom(tm) II X2 555 Processor

Stepping: 3

Cache Size: 512 KB

Cpuid Level: 5

Configured: 2

Online: 2

———————————— Memory ————————————

Total Memory: 1807320kB

Total Swap: 6434028kB

————————————- HDD ————————————-

Drive: sda

Removable: 0

Size: 488386584 kB

Vendor: ATA

Model: HDS725050KLA360

Revision: K2AO

Model: HDS725050KLA360

Serial Number: KRVPXXXXXXXXXX

FW revision: K2XXXXX

Drive: sdc

Removable: 0

Size: 976762584 kB

Vendor: ATA

Model: WDCWD1000FYPS-0

Revision: 02.0

Model: WDC WD1000FYPS-01ZKB0

Serial Number: WD-XXXXXXXXXXXX

FW revision: 02.XXXXX

Drive: sdd

Removable: 0

Size: 976762584 kB

Vendor: ATA

Model: WDCWD1000FYPS-0

Revision: 02.0

Model: WDC WD1000FYPS-01ZKB0

Serial Number: WD-XXXXXXXXXXXX

FW revision: 02.XXXXX

Drive: sde

Removable: 0

Size: 488386584 kB

Vendor: ATA

Model: WDCWD5000YS-01M

Revision: 07.0

Model: WDC WD5000YS-01MPB0

Serial Number: WD-XXXXXXXXXXXX

FW revision: 07.XXXXX

Drive: sdb

Removable: 0

Size: 976762584 kB

Vendor: ATA

Model: WDCWD1000FYPS-0

Revision: 02.0

Model: WDC WD1000FYPS-01ZKB0

Serial Number: WD-XXXXXXXXXXXX

FW revision: 02.XXXXX

Drive: sdf

Removable: 1

Size: 28315648 kB

Vendor: Nokia

Model: N900

Revision: 031

———————————- USB Drive ———————————-

Drive: sdf

Removable: 1

Size: 28315648 kB

Vendor: Nokia

Model: N900

Revision: 031

USB Vendor ID: 0421

USB Product ID: 01c7

USB Manufacturer: Nokia

USB product: N900 (Storage Mode)

USB serial: XXXXXXXXXXXX

USB device version: 2.00

———————————- Partitions ———————————-

8 0 488386584 sda

8 1 488384001 sda1

8 32 976762584 sdc

8 33 976760001 sdc1

8 48 976762584 sdd

8 49 976760001 sdd1

8 64 488386584 sde

8 65 240974968 sde1

8 66 240975000 sde2

8 67 6434032 sde3

8 16 976762584 sdb

8 17 976760001 sdb1

9 0 1953519872 md0

8 80 28315648 sdf

———————————— Uname ————————————

System: Linux version 2.6.36 (root@Dao) (gcc version 4.5.1 (GCC) ) #16 SMP PREEMPT Fri Oct 22 09:47:29 EEST 2010

HostName: Dao

DomainName: (none)

UserName1: root, uid — 0, gid — 0

UserName2: root, uid — 0, gid — 0

/ is mounted on /dev/sde1

Time1: [ 1288125265 ] Tue Oct 26 23:34:25 2010

Current Device: /dev/sde1

Current Mount Point: /

Current Working Directory: /root

————————————- DMI ————————————-

EFI not found, trying memory scan

SMBIOS 2.6 present.

BIOS Information

Vendor: American Megatrends Inc.

Version: 1606

Release Date: 08/24/2010

ROM Size: 2048 kB

BIOS Revision: 8.15

System Information

Manufacturer: System manufacturer

Product Name: System Product Name

Version: System Version

Serial Number: System Serial Number

UUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

SKU Number: To Be Filled By O.E.M.

Family: To Be Filled By O.E.M.

Base Board Information

Manufacturer: ASUSTeK Computer INC.

Product Name: M4A89GTD-PRO

Version: Rev 1.xx

Serial Number: XXXXXXXXXXXXXXX

Asset Tag: To Be Filled By O.E.M.

Location In Chassis: To Be Filled By O.E.M.

Chassis Handle: 0×0003

Type: Motherboard

Contained Object Handles: 0

Chassis Information

Manufacturer: Chassis Manufacture

Type: Desktop

Lock: Not Present

Version: Chassis Version

Serial Number: Chassis Serial Number

Asset Tag: Asset-1234567890

Boot-up State: Safe

Power Supply State: Safe

Thermal State: Safe

Security Status: None

OEM Information: 0×00000001

Height: Unspecified

Number Of Power Cords: 1

Contained Elements: 0

Processor Information

Socket Designation: AM3

Type: Central Processor

Family: Phenom II

Manufacturer: AMD

ID: 43 0F XX XX XX XX XX XX

Version: AMD Phenom(tm) II X2 555 Processor

Voltage: 1.5 V

External Clock: 200 MHz

Max Speed: 3200 MHz

Current Speed: 3724 MHz

Status: Populated, Enabled

Serial Number: To Be Filled By O.E.M.

Asset Tag: To Be Filled By O.E.M.

Part Number: To Be Filled By O.E.M.

Core Count: 2

Core Enabled: 2

Characteristics:

64-bit capable

———————— End of System Fingerprint Data ————————

eth0 SI_NET_PCI_ETHERNET_DEVICE csum — \x85\x79\x19\x5f\x37\x0d\x96\xe7\x26\x03\xc6\x61\x50\x18\xf0\x12\x86\xfe\x7e\xa9\xb5\xbe\xf8\x1e\x98\x0e\x84\xa6\x90\xc0\x1b\x52\xb6\xc3\xf2\xf3\xea\x27\xef\xff\x82\xa9\x72\x9b\xd7\x91\xbc\xa4\x8c\x40\x29\x78\xab\x56\x29\xa9\x8d\xa6\x9b\x9a\xc1\x4a\x7c\x64

eth0 SI_NET_IP_DEVICE csum — \x4c\xa5\x25\xb4\x64\x3c\x67\x97\xc6\x4e\x76\x32\x1a\x85\xc0\x11\x58\x41\x79\x71\x25\x5d\xb6\x55\x34\xea\xef\x1a\x08\xd5\x0e\x3e\xc2\x28\x04\x55\x9c\x0a\xf7\x7e\xa0\xd1\xd8\x13\xda\x45\x86\xc1\x63\xb7\x89\xbe\x4a\x29\x44\x60\x72\xc4\xb5\xdc\x97\x68\xd5\xc8

eth0 SI_NET_ALL_DEVICE csum — \x9a\x96\xdb\x13\x37\x3e\x53\xd1\x32\xe7\x5c\x0f\x7e\x50\x51\x90\xa4\xb1\xe2\xfd\x3f\xbc\x6c\xf4\x71\xce\x91\x8e\x06\x34\xeb\x3e\x8f\x69\xa6\xd0\xf2\xcc\x85\xb2\xa6\x2b\xf4\x5b\x53\x91\xce\x21\x66\x64\x8e\x43\x25\x57\xfc\xb9\x96\x44\x88\x53\x07\x62\x59\x02

Если интересует XML вариант, то welcome to http:/sfinxsoft.com/products

P.S. Прикольная бага в glibc-2.12 — любое статическое приложение, использующее getpw* функции с незапущеным ncsd (кто ж его пущает ?!) получит что-то типа  «../sysdeps/unix/sysv/linux/getpagesize.c:32: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0′ failed.»

Подробнее см. http://sourceware.org/bugzilla/show_bug.cgi?id=11929