search for: base64_to_hex

Displaying 2 results from an estimated 2 matches for "base64_to_hex".

2017 Nov 05
0
ntfs user mappings?
...es running ldbsearch as a normal user. I created the following functions to get it in and out of base64 and hex swap_endian() { local input=$1 local output="" while [ "${input}" != "" ];do output="${input:0:2}${output}" input=${input:2} done echo $output } base64_to_hex() { echo $(echo $1|base64 -d|hexdump -ve '/1 "%02x"') } hex2sid() { local hex=$1 local rev=$((16#${hex:0:2})) local dsh=$((16#${hex:2:2})) local ath=$((16#${hex:4:12})) local sec=$((16#$(swap_endian ${hex:16:8}))) local is1=$((16#$(swap_endian ${hex:24:8}))) local is2=$((16#$(swa...
2017 Nov 05
3
ntfs user mappings?
On Sat, 4 Nov 2017 18:42:36 -0600 Jeff Sadowski <jeff.sadowski at gmail.com> wrote: > I decided to continue trying the ldap route as well > > littlehex2int() > { > hex=$1 > hex_chunk=$(echo ${hex}|cut -c$2-$3) > little=$(echo ${hex_chunk}|awk '{print > substr($0,7,2)substr($0,5,2)substr($0,3,2)substr($0,1,2)}') > echo "ibase=16; ${little}" |