Giter VIP home page Giter VIP logo

Comments (3)

mzdaemon avatar mzdaemon commented on July 24, 2024

See when I try to run the afl-fuzz.exe binary, if I add a higher number for the timeout, it will reach the limit and fail as well, I don't know what is wrong.

C:\winafl\bin32>afl-fuzz.exe -i dumb_files -o findings_dir -D ..\DynamoRIO\bin32
-t 20000 -- -coverage_module notepad.exe -fuzz_iterations 5000 -target_module n
otepad.exe -target_offset 0x73BB -nargs 2 -- c:\Windows\System32\notepad.exe @@
WinAFL 1.03 by [email protected]
Based on AFL 1.96b by [email protected]
[] Setting up output directories...
[+] Output directory exists but deemed OK to reuse.
[
] Deleting old session data...
[+] Output dir cleanup successful.
[] Scanning 'dumb_files'...
[+] No auto-generated dictionary tokens to reuse.
[
] Creating hard links for all input files...
[*] Attempting dry run with 'id_000000'...
1 processes nudged

[-] The program took more than 20000 ms to process one of the initial test cases
.
Usually, the right thing to do is to relax the -t option - or to delete it
altogether and allow the fuzzer to auto-calibrate. That said, if you know
what you are doing and want to simply skip the unruly test cases, append
'+' at the end of the value passed to -t ('-t 20000+').

[-] PROGRAM ABORT : Test case 'id_000000' results in a hang
Location : perform_dry_run(), ..\afl-fuzz.c:2504

from winafl.

mzdaemon avatar mzdaemon commented on July 24, 2024

I have tried again, now I am getting this error below:

C:\winafl\bin32>afl-fuzz.exe -i dumb_files -o findings_dir -D ..\DynamoRIO\bin3
-t 20000 -- -debug -logdir debug -coverage_module notepad.exe -fuzz_iterations
10 -target_module notepad.exe -target_offset 0x1409 -- notepad.exe @@
WinAFL 1.03 by [email protected]
Based on AFL 1.96b by [email protected]
[] Setting up output directories...
[+] Output directory exists but deemed OK to reuse.
[
] Deleting old session data...
[+] Output dir cleanup successful.
[] Scanning 'dumb_files'...
[+] No auto-generated dictionary tokens to reuse.
[
] Creating hard links for all input files...
[*] Attempting dry run with 'id_000000'...
0 processes nudged
ERROR: The process "-1" not found.

[-] PROGRAM ABORT : Cannot kill child process

     Location : destroy_target_process(), ..\afl-fuzz.c:2120

The Debug Log:
Module loaded, notepad.exe
Module loaded, dynamorio.dll
Module loaded, WINSPOOL.DRV
Module loaded, drreg.dll
Module loaded, drwrap.dll
Module loaded, drmgr.dll
Module loaded, drx.dll
Module loaded, winafl.dll
Module loaded, COMCTL32.dll
Module loaded, VERSION.dll
Module loaded, KERNELBASE.dll
Module loaded, USER32.dll
Module loaded, KERNEL32.dll
Module loaded, SHELL32.dll
Module loaded, OLEAUT32.dll
Module loaded, SHLWAPI.dll
Module loaded, COMDLG32.dll
Module loaded, msvcrt.dll
Module loaded, RPCRT4.dll
Module loaded, ole32.dll
Module loaded, GDI32.dll
Module loaded, MSCTF.dll
Module loaded, ADVAPI32.dll
Module loaded, ntdll.dll
Module loaded, LPK.dll
Module loaded, SECHOST.dll
Module loaded, IMM32.dll
Module loaded, USP10.dll
In pre_fuzz_handler
Module loaded, CRYPTBASE.dll
Module loaded, UxTheme.dll
In OpenFileW, reading C:\winafl\bin32\findings_dir.cur_input
In OpenFileW, reading C:\Windows\Fonts\staticcache.dat

from winafl.

mzdaemon avatar mzdaemon commented on July 24, 2024

Hi Ivan,

I am just closing it, I was doing a mistake regarding to the target_offset, I found a target offset that open and close the file and everything worked beautifully !.

Here is the test command that I used:
C:\winafl\bin32>..\DynamoRIO\bin32\drrun.exe -c winafl.dll -debug -target_module
KERNEL32.dll -target_offset 0x4eaa8 -fuzz_iterations 5 -nargs 5 -- C:\Windows\s
ystem32\notepad.exe test.txt

screen shot 2016-12-22 at 11 43 50 am

from winafl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.