# Valid IMEI generator script # # Usage: awk -f imeigen.awk [TAC] # you can pass any amount of digits, if less than 15 then the rest # is randomized and the checksum is calculated accordingly # if more, then it's truncated to 14 and the checksum is calculated # if no TAC is passed, a fully random valid IMEI is generated # # Created by Luxferre in 2024, released into public domain # Luhn checksum (picoLuhn variation for 14 digits) function luhn(imeistr, acc, i, l, d) { acc = 0 l = length(imeistr) # must be even in this variation for(i=0;i