playground:playground
PlayGround
- 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}
- fti.sh
- for (( i=0; i<${#USERNAME}; i++ )); do
- HEXCHAR=$(echo -n ${USERNAME:$i:1} | od -An -txC | xargs)
- AUTHSTRING=${AUTHSTRING}:${HEXCHAR}
- done
- 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}
- 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}
playground/playground.txt · Dernière modification : 2018/05/16 12:41 de beu