Profile
Profile
Profile files (.ql) are INI-format files that override Qiling’s default settings per OS/architecture.
Usage
1from qiling import Qiling
2from qiling.const import QL_VERBOSE
3
4ql = Qiling(
5 ["rootfs/netgear_r6220/bin/mini_httpd", "-d", "/www", "-r", "NETGEAR R6220", "-c", "**.cgi", "-t", "300"],
6 "rootfs/netgear_r6220",
7 verbose=QL_VERBOSE.DEBUG,
8 profile="netgear.ql"
9)
10ql.add_fs_mapper("/proc", "/proc")
11ql.run()
Profile File Format
1[MIPS]
2mmap_address = 0x7f7ee000
3log_dir = qlog
4log_split = True
Section header matches the architecture name (e.g. [MIPS], [X8664], [ARM]).
Default Profiles
| OS | Profile path |
|---|---|
| Windows | qiling/profiles/windows.ql |
| Linux | qiling/profiles/linux.ql |
| macOS | qiling/profiles/macos.ql |
| UEFI | qiling/profiles/uefi.ql |
| FreeBSD | qiling/profiles/freebsd.ql |
Read profile values at runtime:
1load_addr = int(ql.profile.get("OS64", "load_address"), 16)