Skip to content
Snippets Groups Projects
Commit 8278c849 authored by bongo's avatar bongo
Browse files

added genChipTan string generator

parent def411b4
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
str=""
ncoord=$(python -c 'import codecs; print(codecs.encode(b"N50Gxx.xxxx","hex_codec"))'|sed 's/^..//'| sed 's/.$//')
ecoord=$(python -c 'import codecs; print(codecs.encode(b"E8Gxx.xxxx","hex_codec"))'|sed 's/^..//'| sed 's/.$//')
str=$str'00' # length =auto
str=$str'0' # bcd=yes
str=$str'4 ' #bytes lang
str=$str'855 ' # mask 8xx x=freitext
str=$str'49552 ' # foobar
str=$str'1' #cod = ascii
str=$str'b ' #len
str=$str$ncoord
str=$str' 1' #cod = ascii
str=$str'a ' #len
str=$str$ecoord
str=$str' 00' #checks=auto
echo $str | tr -d '\s'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment