perl -wMstrict -le '
my @bits = unpack "(A1)16", sprintf "%016b", hex shift;
my $bitmap = "D5679123C4EF80AB";
@bits = @bits[ map { hex } split //, $bitmap ];
$"="";
print sprintf "%04X", oct "0b@bits";
' "B455"
Результат: CB15
First we convert the input hex number into it's 16-bit binary equivalent and store the indi-
dual bits in the array @bits. The individual bits are now mapped according to the bitmap wh-
ich is generated by splitting into single bits and getting their decimal equivalents which
are the array indices of @bits. Last step involves in converting the mapped bits into their
4-digit hex counterpart.
add-apt-repository
Похоже, он не знает, как обращаться с Кали. Вот что говорит об этом эта строка:
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Kali/kali-rolling
Чтобы добавить это, вам придется добавить PPA вручную, если вы действительно хотите это настроить. Это означает получение соответствующих источников. Если вы перейдете по этому URL-адресу, вы можете использовать выпадающее меню, чтобы получить общее представление о том, как выглядят записи /etc/apt/sources.list
для разных версий Ubuntu:
Для Ubuntu 18.10:
deb http://ppa.launchpad.net/yubico/stable/ubuntu cosmic main
deb-src http://ppa.launchpad.net/yubico/stable/ubuntu cosmic main
Для Kali вам, вероятно, придется изменить их.