Marked-up Ghidra disassembly, feel free to load this up in Ghidra
[Note for this section, the nvidia-smi binary was copied into quok/pwn]
filetype:
file nvidia-smi
nvidia-smi: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=691ad658f9763ec87778b0e15ef102fcb4a72748, stripped
Ghidra analysis
More nvidia-smi cracking:
void processEntry entry(undefined8 param_1,undefined8 param_2)
{
undefined auStack_8 [8];
__libc_start_main(FUN_00406e40,param_2,&stack0x00000008,FUN_0049d690,FUN_0049d720,param_1,
auStack_8);
do {
/* WARNING: Do nothing block with infinite loop */
} while( true );
}
| address | field | References | Notes |
|---|---|---|---|
| 004a98c1 | s_<GPUNAME_004a98c1 | FUN 004159c0: 00415aa6 | |
| FUN 0043bb60: 0043d59e | This is a string | ||
| FUN 00415660 | Appears to be a printing function |
__s might be GPU name? | | 004ab860 | s_The_official_product_name_of_the_004ab860 | 006ff748 00702490 00702730 00702a10 00702d88 00703070 00703548 | The official product name of the GPU. This is an alphanumeric string. For all products
length of 88! | | 004ab8b8 | s_This_number_matches_the_serial_n_004ab8b8 | 006ff748(), 00702490(), 00702730(), 00702a10(), 00702d88(), 00703070(), 00703548() | This number matches the serial number physically printed on each board. It is a globally unique immutable alphanumeric value. | | 004ab938 | s_This_value_is_the_globally_uniqu_004ab938 | 006ff7d8(), 00702568(), 00702808(), 00702ae8(), 00702e60(), 00703148(), 00703620() | "This value is the globally unique immutable alphanumeric identifier of the GPU. It does not correspond to any physical label on the board.” | | 04aa4c3 | s_gpu_name_004aa4c4 | FUN_004178b0:004178eb(), FUN_004178b0:0041791c(), FUN_0041b9c0:0041ba1a(), FUN_0041c4f0:0041c53a(), 006ff710(), 00702450(), 007026f0(), 007029d0(), 00702d48(), 00703030(), 00703508(*) | gpu_name |