changed "data num" to accept -r -i parameters where it will reverse or inverse the values.\nrenamed some util functions

This commit is contained in:
iceman1001 2023-12-07 16:44:31 +01:00
commit 97e2d7f026
13 changed files with 149 additions and 51 deletions

View file

@ -986,7 +986,7 @@ int loadFileEML_safe(const char *preferredName, void **pdata, size_t *datalen) {
if (line[0] == '#')
continue;
strcleanrn(line, sizeof(line));
str_cleanrn(line, sizeof(line));
res = param_gethex_to_eol(line, 0, buf, sizeof(buf), &hexlen);
if (res == 0) {
@ -1059,7 +1059,7 @@ int loadFileNFC_safe(const char *preferredName, void *data, size_t maxdatalen, s
if (line[0] == '#')
continue;
strcleanrn(line, sizeof(line));
str_cleanrn(line, sizeof(line));
str_lower(line);
if (str_startswith(line, "uid:")) {
@ -1306,7 +1306,7 @@ int loadFileMCT_safe(const char *preferredName, void **pdata, size_t *datalen) {
if (line[0] == '+')
continue;
strcleanrn(line, sizeof(line));
str_cleanrn(line, sizeof(line));
res = param_gethex_to_eol(line, 0, buf, sizeof(buf), &hexlen);
if (res == 0) {
@ -2261,7 +2261,7 @@ nfc_df_e detect_nfc_dump_format(const char *preferredName, bool verbose) {
return PM3_EFILE;
}
strcleanrn(line, sizeof(line));
str_cleanrn(line, sizeof(line));
str_lower(line);
if (str_startswith(line, "device type: ntag")) {