diff options
author | Christian Rößler | 2018-08-06 16:32:21 +0200 |
---|---|---|
committer | Christian Rößler | 2018-08-06 16:32:21 +0200 |
commit | 68d5e6b52e71014cf154e7e86ce448c813b74f4e (patch) | |
tree | 1a252ab7e7eafc5bf40292911f1d6cbe6abfd998 /core/modules/run-virt/data/opt/openslx/vmchooser/data/linux/includes/20_get_creds.inc | |
parent | [run-virt] linux script: Waiting when starting script minimised. (diff) | |
download | mltk-68d5e6b52e71014cf154e7e86ce448c813b74f4e.tar.gz mltk-68d5e6b52e71014cf154e7e86ce448c813b74f4e.tar.xz mltk-68d5e6b52e71014cf154e7e86ce448c813b74f4e.zip |
[run-virt] Linux mount script: very shitty bug (hexdump), some minor stuff.
Diffstat (limited to 'core/modules/run-virt/data/opt/openslx/vmchooser/data/linux/includes/20_get_creds.inc')
-rwxr-xr-x[-rw-r--r--] | core/modules/run-virt/data/opt/openslx/vmchooser/data/linux/includes/20_get_creds.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/data/linux/includes/20_get_creds.inc b/core/modules/run-virt/data/opt/openslx/vmchooser/data/linux/includes/20_get_creds.inc index f0081658..c9043e21 100644..100755 --- a/core/modules/run-virt/data/opt/openslx/vmchooser/data/linux/includes/20_get_creds.inc +++ b/core/modules/run-virt/data/opt/openslx/vmchooser/data/linux/includes/20_get_creds.inc @@ -19,9 +19,9 @@ function get_creds() ANZAHL=$((16#$(dd if=$RAWKEYTEMP bs=1 count=2 2>/dev/null|hexdump -e '1/1 "%02x"'))) # Und raus-xor-en: - PW=$( xor $(dd if="$RAWKEYTEMP" bs=1 skip=2 2>/dev/null|hexdump -e '1/1 "%02x"') \ - $(head -n 1 "$CONFIGFILE" | cut -f 4 -d$'\t') | sed 's/../\\x&/g') + PW=$( xor "$(dd if="$RAWKEYTEMP" bs=1 skip=2 count="$ANZAHL" 2>/dev/null|hexdump -v -e '1/1 "%02x"')" \ + "$(head -n 1 "$CONFIGFILE" | cut -f 4 -d$'\t')" | sed 's/../\\x&/g') PW=$(echo -e "$PW") # \x...-Ausdrücke zu ASCII - PW="${PW:0:${ANZAHL}}" # ...und Rest nach ANZAHL abhacken. +# PW="${PW:0:${ANZAHL}}" # ...und Rest nach ANZAHL abhacken. } |