proxmark3/client/experimental_lib/example_c/test.c

15 lines
275 B
C
Raw Normal View History

2023-11-12 01:23:58 +08:00
#include <stdio.h>
#include <stdlib.h>
#include "pm3.h"
int main(int argc, char *argv[]) {
2023-11-12 01:23:58 +08:00
if (argc < 2) {
printf("Usage: %s <port>\n", argv[0]);
exit(-1);
}
pm3 *p;
2023-11-12 01:23:58 +08:00
p = pm3_open(argv[1]);
pm3_console(p, "hw status");
pm3_close(p);
}