-
Notifications
You must be signed in to change notification settings - Fork 0
/
asmpynter.cfg
115 lines (111 loc) · 3.02 KB
/
asmpynter.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# vim:filetype=cfg
# vim:fenc=utf-8
#
[IA32]
bits = 32
# Gcc location
compiler = /usr/bin/gcc
# Dialect (att,intel)
dialect = intel
# Format compilation command
## {0}: compiler
## {1}: source file
## {2}: destination obj file
compilation_command = {0} -masm=intel -m32 -fno-pie -fno-stack-protector -c -o {2} {1}
# Format link command
## {0}: compiler
## {1}: object file
## {2}: destination executable file
link_command = {0} -m32 -fno-pie -fno-stack-protector -o {2} {1}
# Exec command
## {0}: debugger command
exec_command = /usr/bin/setarch $(/usr/bin/uname -m) -R {0}
# Gdb
gdb = /usr/bin/gdb
# Gdb command format
## {0}: gdb
## {1}: generated text command file
## {2}: executable file
gdb_command = {0} -q -n -x {1} {2}
# Asm template
asm_template = ./templates/sample.c
# Blacklisted registers
blacklist_register = cs, ss, ds, es, fs, gs
# rename_register = eip: ip, esp: sp
flag_register = eflags
flag_names = CF, _, PF, _, AF, _, ZF, SF, TF, IF, DF, OF, IOPL, _, NT, _, RF, VM, AC, VIF, VIP, ID
lib_path = /
[IA64]
bits = 64
# Gcc location
compiler = /usr/bin/gcc
# Format compilation command
## {0}: compiler
## {1}: source file
## {2}: destination obj file
compilation_command = {0} -masm=intel -fno-pie -fno-stack-protector -c -o {2} {1}
# Format link command
## {0}: compiler
## {1}: object file
## {2}: destination executable file
link_command = {0} -fno-pie -fno-stack-protector -o {2} {1}
# Exec command
## {0}: debugger command
exec_command = /usr/bin/setarch $(/usr/bin/uname -m) -R {0}
# Gdb
lib_path = /
gdb = /usr/bin/gdb
# Gdb command format
## {0}: gdb
## {1}: generated text command file
## {2}: executable file
gdb_command = {0} -q -n -x {1} {2}
# Asm template
asm_template = ./templates/sample.c
# Blacklisted registers
blacklist_register = cs, ss, ds, es, fs, gs
# rename_register = eip: ip, esp: sp
flag_register = eflags
flag_names = CF, _, PF, _, AF, _, ZF, SF, TF, IF, DF, OF, IOPL, _, NT, _, RF, VM, AC, VIF, VIP, ID
[ARM]
bits = 32
# Gcc location
compiler = /usr/bin/arm-linux-gnueabi-gcc
# Format compilation command
## {0}: compiler
## {1}: source file
## {2}: destination obj file
compilation_command = {0} -ggdb -fno-pie -fno-stack-protector -c -o {2} {1}
# Format link command
## {0}: compiler
## {1}: object file
## {2}: destination executable file
link_command = {0} -fno-pie -fno-stack-protector -o {2} {1}
# Gdb
gdb = /usr/bin/arm-linux-gnueabi-gdb
# Gdb command format
## {0}: gdb
## {1}: generated text command file
## {2}: executable file
gdb_command = {0} -q -n -x {1}
# Exec command
## {0}: executable file
#exec_command = /usr/bin/setarch $(/usr/bin/uname -m) -R {0}
# Qemu
qemu = /usr/bin/qemu-arm
qemu_port = 1234
lib_path = /usr/arm-linux-gnueabi
# Qemu command
## {0}: qemu
## {1}: gdb port
## {2}: library path
## {3}: executable file
qemu_command = {0} -g {1} -L {2} {3}
# Asm template
asm_template = ./templates/sample-arm.c
# blacklist_register =
rename_register = r11: fp, cpsr: flags
flag_register = cpsr
flag_names = _,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,V,C,Z,N