pagalaxylab / unifuzzer Goto Github PK
View Code? Open in Web Editor NEWA fuzzing tool for closed-source binaries based on Unicorn and LibFuzzer
License: GNU General Public License v3.0
A fuzzing tool for closed-source binaries based on Unicorn and LibFuzzer
License: GNU General Public License v3.0
When I test it with the x86 version binary, the dynamic lib symbol's address isn't updated in the got table. Have you implemented the arm and x86 functions?
Hi, I am able to reproduce the demo but when trying with another binary target it fails.
I updated demo-callback.c with the corresponding addresses and my binary was compiled as shown in the demo.
Is there something else to modify ?
Excuse me, are there any system restrictions for the project? Why do I get this error: 'unicorn/unicorn.h' file not found
By running make
, it generates the following error:
clang -o callback/demo-callback.o -Wall -fPIC -g -DUF_DEBUG -c callback/demo-callback.c
callback/demo-callback.c:46:29: warning: incompatible pointer types assigning to 'uint32_t *' (aka 'unsigned int *') from 'char *' [-Wincompatible-pointer-types]
46 | heapBoundaryGOT = (char *)baseAddr + HEAP_BOUNDARY_GOT_OFFSET;
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
callback/demo-callback.c:61:27: error: incompatible pointer to integer conversion passing 'char *' to parameter of type 'uint64_t' (aka 'unsigned long') [-Wint-conversion]
61 | if(uc_mem_map_ptr(uc, heapBase, HEAP_SIZE, UC_PROT_READ | UC_PROT_WRITE, heapBase) != UC_ERR_OK) {
| ^~~~~~~~
/usr/include/unicorn/unicorn.h:945:47: note: passing argument to parameter 'address' here
945 | uc_err uc_mem_map_ptr(uc_engine *uc, uint64_t address, size_t size,
| ^
callback/demo-callback.c:74:27: error: incompatible pointer to integer conversion passing 'char *' to parameter of type 'uint64_t' (aka 'unsigned long') [-Wint-conversion]
74 | if(uc_mem_map_ptr(uc, stackTop, STACK_SIZE, UC_PROT_READ | UC_PROT_WRITE, stackTop) != UC_ERR_OK) {
| ^~~~~~~~
/usr/include/unicorn/unicorn.h:945:47: note: passing argument to parameter 'address' here
945 | uc_err uc_mem_map_ptr(uc_engine *uc, uint64_t address, size_t size,
| ^
callback/demo-callback.c:87:27: error: incompatible pointer to integer conversion passing 'char *' to parameter of type 'uint64_t' (aka 'unsigned long') [-Wint-conversion]
87 | if(uc_mem_map_ptr(uc, dataAddr, DATA_SIZE, UC_PROT_READ | UC_PROT_WRITE, dataAddr) != UC_ERR_OK) {
| ^~~~~~~~
/usr/include/unicorn/unicorn.h:945:47: note: passing argument to parameter 'address' here
945 | uc_err uc_mem_map_ptr(uc_engine *uc, uint64_t address, size_t size,
| ^
callback/demo-callback.c:96:9: error: incompatible pointer to integer conversion assigning to 'uint32_t' (aka 'unsigned int') from 'char *' [-Wint-conversion]
96 | reg = stackTop+STACK_SIZE - 0x200;
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
callback/demo-callback.c:99:9: error: incompatible pointer to integer conversion assigning to 'uint32_t' (aka 'unsigned int') from 'char *' [-Wint-conversion]
99 | reg = dataAddr;
| ^ ~~~~~~~~
callback/demo-callback.c:125:22: error: incompatible pointer to integer conversion assigning to 'uint32_t' (aka 'unsigned int') from 'char *' [-Wint-conversion]
125 | *heapBoundaryGOT = heapBase;
| ^ ~~~~~~~~
callback/demo-callback.c:156:15: error: incompatible integer to pointer conversion initializing 'uint32_t *' (aka 'unsigned int *') with an expression of type 'uint32_t' (aka 'unsigned int'); remove * [-Wint-conversion]
156 | uint32_t *boundary = *heapBoundaryGOT;
| ^ ~~~~~~~~~~~~~~~~
callback/demo-callback.c:159:15: warning: incompatible pointer types initializing 'uint32_t *' (aka 'unsigned int *') with an expression of type 'char *' [-Wincompatible-pointer-types]
159 | uint32_t *start = heapBase;
| ^ ~~~~~~~~
callback/demo-callback.c:175:15: warning: incompatible pointer types assigning to 'uint32_t *' (aka 'unsigned int *') from 'char *' [-Wincompatible-pointer-types]
175 | start = (char *)start + chunk_len + 8;
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings and 7 errors generated.
make: *** [Makefile:23: callback/demo-callback.o] Error 1
Please @rk700 can you fix it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.