Tag Archives: hex

Windows: Enable SCHANNEL verbose logging to determine cipher suite

Hi,

to determine which CIPHER Suite a TLS connection uses you can enable SCHANNEL logging.
Continue reading Windows: Enable SCHANNEL verbose logging to determine cipher suite

Advertisment to support michlstechblog.info

Powershell: Convert Hex to Int type

Hi,

short post today. Topic: convert a hex string to an integer type.
Continue reading Powershell: Convert Hex to Int type

Linux: HEX edit and diff in a shell

Hi,

let us assume you want to edit a binary file /tmp/binfile and you want to replace all strings matches to “sda” by “hda”.

gnu sed can edit bin files by the \xnn hex notation. The option –in-place changes the original file and makes a backup copy with a file extension .org

michael@devdeb ~#  sed -e 's/\x73\x64\x61/\x68\x64\x61/g' /tmp/binfile --in-place=.org

Continue reading Linux: HEX edit and diff in a shell