-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add build script to unicorn. Improve docs for unicorn and qiling (#33)
- Loading branch information
Showing
3 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,28 @@ | ||
## Установка | ||
|
||
Необходимо дополнительно установить поддержку qiling/unicorn в python фаззера, см. пункт _Частичная | ||
эмуляция с помощью Unicorn/Qiling_ в документации к Crusher. | ||
эмуляция с помощью Unicorn/Qiling_ в документации к Crusher. | ||
|
||
Также нужно запустить скрипт установки - `build.sh` | ||
|
||
## Фаззинг с помощью unicorn | ||
|
||
Инструментация работает ровно как статическая инструментация с форк сервером - запускается программа "обертка" (harness), | ||
которая работает с измененным unicorn, который перед запуском включает форк сервер и таким образом общается | ||
с фаззером. | ||
|
||
Фундаментальной разницы нет на каком языке написана обертка, важно лишь то что она использует API, в котором реализован | ||
протокол форк сервера. | ||
|
||
## unicorn/c | ||
|
||
Пример показывает как работает API unicorn-mode для языка c. | ||
|
||
## unicorn/compcov_x64 | ||
|
||
Пример показывает как работает API unicorn-mode для языка Python 3. | ||
|
||
## Замечание | ||
|
||
Данный пример взят из [репозитория AFLplusplus](https://github.com/AFLplusplus/AFLplusplus/tree/stable/unicorn_mode) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
if [[ "$#" -ne 2 ]]; then | ||
echo "Error: not enough arguments" | ||
echo "Usage: ./build.sh -f <path/to/crusher/bin_x86-64>" | ||
exit 1 | ||
fi | ||
|
||
echo "Building Unicorn examples" | ||
echo "Note: assuming qiling/unicorn module is installed" | ||
|
||
export UNICORNAFL_DIR="$(readlink -e "$2/unicornafl")" | ||
|
||
cd c | ||
make clean | ||
make | ||
|
||
cd .. | ||
|