diff options
| author | Cyrille Bagard <nocbos@gmail.com> | 2019-02-01 18:12:31 (GMT) | 
|---|---|---|
| committer | Cyrille Bagard <nocbos@gmail.com> | 2019-02-01 18:12:31 (GMT) | 
| commit | 113f37b954e395beb2a335e5e364746c70af625d (patch) | |
| tree | d58b2839f1dd95096f72221c07c4b2a508eca6e9 /tests/analysis/hm.c | |
| parent | 9d4a0ba0e5a217bf4ac63c21e14d5f44580b6138 (diff) | |
Inserted an option to render disassembly even in batch mode.
Diffstat (limited to 'tests/analysis/hm.c')
| -rw-r--r-- | tests/analysis/hm.c | 20 | 
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/analysis/hm.c b/tests/analysis/hm.c new file mode 100644 index 0000000..9d49352 --- /dev/null +++ b/tests/analysis/hm.c @@ -0,0 +1,20 @@ + +#include <stdio.h> +#include <string.h> + +int main(int argc, char **argv) +{ +    int a; +    char cmd[128]; + +    memcpy(&a, (int []) { 4 }, sizeof(int)); + +    sprintf(cmd, "cat /proc/%d/maps", getpid()); + +    system(cmd); + +    printf("Hello %d\n", a); + +    return 0; + +}  | 
