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

Prochaine révision
Révision précédente
playground:playground [2017/12/09 00:19] – modification externe 127.0.0.1playground:playground [2018/05/16 12:41] (Version actuelle) beu
Ligne 1: Ligne 1:
 ====== PlayGround ====== ====== PlayGround ======
  
 +
 +<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
 +     
 +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>
playground/playground.1512778779.txt.gz · Dernière modification : 2017/12/09 00:19 de 127.0.0.1