Update API.md

This commit is contained in:
kj.xwings.l
2020-05-10 21:43:55 +08:00
committed by GitHub
parent 89fd88dfb4
commit 590acccdd5
+1 -55
View File
@@ -1,55 +1 @@
#### Pre-Loader Settings
In pre-loader(during initialization) state, there are multiple options that can be configured.
required:
```
path
rootfs
```
required for shellcode execution only:
```
ostype
arch
```
ql.profile settings
```
stack_address = 0xhexaddress
stack_size = 0xhexaddress
interp_address = 0xhexaddress
mmap_address = 0xhexaddress
```
additional options
```
output = ["debug","off","disasm","dump"] // dump=(disam + debug)
console
log_dir = path to all the logs
```
#### Pre-Execution Settings
APIs allow users to instuments an executeable file/shellcode before execution.
```
ql.set_callback
ql.patch
ql.root
ql.debug
ql.set_syscall
ql.set_api
```
#### Qiling's Coding Style
Some tips if you with to sent your pull request to Qiling Framework
```
ql.nprint("")
```
ql.nprint will not print anything when output="off"
```
ql.dprint(D_INFO,"")
```
ql.dprint will only print anything when output="dump" or output="debug"
###
For latest documentation, goto https://qilingframework.readthedocs.io/