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:33] beuplayground:playground [2018/05/16 12:41] (Version actuelle) beu
Ligne 1: Ligne 1:
 ====== PlayGround ====== ====== PlayGround ======
 +
  
 <code bash fti.sh [enable_line_numbers="true"]> <code bash fti.sh [enable_line_numbers="true"]>
-    #!/bin/bash+#!/bin/bash
            
-    USERNAME=$1 +USERNAME=$1 
-    AUTHSTRING=00:00:00:00:00:00:00:00:00:00:00:66:74:69:2f+AUTHSTRING=00:00:00:00:00:00:00:00:00:00:00:66:74:69:2f
            
-    for (( i=0; i<${#USERNAME}; i++ )); do +for (( i=0; i<${#USERNAME}; i++ )); do 
-            HEXCHAR=$(echo -n ${USERNAME:$i:1} | od -An -txC | xargs) + HEXCHAR=$(echo -n ${USERNAME:$i:1} | od -An -txC | xargs) 
-            AUTHSTRING=${AUTHSTRING}:${HEXCHAR} + AUTHSTRING=${AUTHSTRING}:${HEXCHAR} 
-    done +done 
-    echo ${AUTHSTRING}+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 
 +      
 +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>
playground/playground.1526474001.txt.gz · Dernière modification : 2018/05/16 12:33 de beu