Outils pour utilisateurs

Outils du site


playground:playground

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
playground:playground [2018/05/16 12:38] beuplayground:playground [2018/05/16 12:41] (Version actuelle) beu
Ligne 3: Ligne 3:
  
 <code bash fti.sh [enable_line_numbers="true"]> <code bash fti.sh [enable_line_numbers="true"]>
 +#!/bin/bash
 +     
 +USERNAME=$1
 +AUTHSTRING=00:00:00:00:00:00:00:00:00:00:00:66:74:69:2f
 +     
 +for (( i=0; i<${#USERNAME}; i++ )); do
 + HEXCHAR=$(echo -n ${USERNAME:$i:1} | od -An -txC | xargs)
 + AUTHSTRING=${AUTHSTRING}:${HEXCHAR}
 +done
 +echo ${AUTHSTRING}
 +
 +
 +</code>
 +
 +
 +
 +<code bash fti.sh [enable_line_numbers="true", start_line_numbers_at="6"]>
 +for (( i=0; i<${#USERNAME}; i++ )); do
 + HEXCHAR=$(echo -n ${USERNAME:$i:1} | od -An -txC | xargs)
 + AUTHSTRING=${AUTHSTRING}:${HEXCHAR}
 +done
 +</code>
 +
 +<code bash fti.sh>
 +#!/bin/bash
 +     
 +USERNAME=$1
 +AUTHSTRING=00:00:00:00:00:00:00:00:00:00:00:66:74:69:2f
 +     
 +for (( i=0; i<${#USERNAME}; i++ )); do
 + HEXCHAR=$(echo -n ${USERNAME:$i:1} | od -An -txC | xargs)
 + AUTHSTRING=${AUTHSTRING}:${HEXCHAR}
 +done
 +echo ${AUTHSTRING}
 +
 +
 +</code>
 +
 +<code bash fti.sh  [highlight_lines_extra="4"]>
 #!/bin/bash #!/bin/bash
            
playground/playground.1526474287.txt.gz · Dernière modification : 2018/05/16 12:38 de beu