supermicro ipmi key

Розділи: 

1) Shell:
$ echo -n '00:25:90:cd:26:da' | xxd -r -p | openssl dgst -sha1 -mac HMAC -macopt hexkey:8544E3B47ECA58F9583043F8 | awk '{print $2}' | cut -c 1-24 | fold -w4 | paste -sd'-'
857a-b7a9-4a4c-103e-3a8c-c044

2) Perl:
#!/usr/bin/perl
use strict;
use Digest::HMAC_SHA1 'hmac_sha1';
my $key = "\x85\x44\xe3\xb4\x7e\xca\x58\xf9\x58\x30\x43\xf8";
my $mac = shift || die 'args: mac-addr (i.e. 00:25:90:cd:26:da)';
my $data = join '', map { chr hex $_ } split ':', $mac;
my $raw = hmac_sha1($data, $key);
printf "%02lX%02lX-%02lX%02lX-%02lX%02lX-%02lX%02lX-%02lX%02lX-%02lX%02lX\n", (map { ord $_ } split '', $raw);

$ ./ipmi.pl 00:25:90:cd:26:da
857A-B7A9-4A4C-103E-3A8C-C044

3) supermicro-ipmi-key on Github
$ git clone https://github.com/bwachter/supermicro-ipmi-key.git
$ cd supermicro-ipmi-key
$ ./supermicro-ipmi-key 00:25:90:cd:26:da

857a b7a9 4a4c 103e 3a8c c044

4) Online
https://cryptii.com/pipes/QiZmdA

Sources:
https://techblog.jeppson.org/2018/12/generate-supermicro-ipmi-license/
https://peterkleissner.com/2018/05/27/reverse-engineering-supermicro-ipmi/