Timeout for AFL

942 views
Skip to first unread message

Jln Wntr

unread,
Nov 1, 2015, 10:07:50 AM11/1/15
to afl-users
Is it possible to stop AFL-fuzz after a specified amount of time (for example 24 hours) ?

What would be a good practice for "remotely" start and stop AFL-Fuzz from another program?
The fact that AFL uses something like an internal fork-server makes me wonder if it's a good idea to have another C-Program forking AFL.

Jacek Wielemborek

unread,
Nov 1, 2015, 10:09:38 AM11/1/15
to afl-...@googlegroups.com
W dniu 01.11.2015 o 16:07, Jln Wntr pisze:
> Is it possible to stop AFL-fuzz after a specified amount of time (for
> example 24 hours) ?

Hi,

I'd use this one:

https://www.gnu.org/software/coreutils/manual/html_node/timeout-invocation.html

> What would be a good practice for "remotely" start and stop AFL-Fuzz from
> another program?
> The fact that AFL uses something like an internal fork-server makes me
> wonder if it's a good idea to have another C-Program *forking* AFL.

Why not just use a Unix shell?

Cheers,
d33tah


signature.asc

Jakub Wilk

unread,
Nov 1, 2015, 10:13:34 AM11/1/15
to afl-...@googlegroups.com
* Jln Wntr <jln...@googlemail.com>, 2015-11-01, 07:07:
>Is it possible to stop AFL-fuzz after a specified amount of time (for
>example 24 hours) ?

You can use timeout(1) from coreutils to send SIGINT, which should be
equivalent to pressing Ctrl+C:

timeout -s INT 24h afl-fuzz ...

--
Jakub Wilk

Jln Wntr

unread,
Nov 1, 2015, 10:48:18 AM11/1/15
to afl-users
Good idea! Thanks a lot for the quick answer!

jln...@googlemail.com

unread,
Nov 1, 2015, 12:02:20 PM11/1/15
to afl-users
Is it possible to stop AFL-fuzz after a specified amount of time (for example 24 hours) ?

What would be a good practice for "remotely" start and stop AFL-Fuzz from another program?
The fact that AFL uses something like an internal fork-server makes me wonder if it's a good idea to have another C-Program forking AFL.
Reply all
Reply to author
Forward
0 new messages