commit
bf25f0fafc
3 changed files with 40 additions and 0 deletions
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
FROM debian |
||||
|
||||
RUN apt-get update |
||||
RUN apt-get install -y afl |
||||
RUN mkdir -p /golop/input /golop/output |
||||
|
||||
COPY chain.sh chain.sh |
||||
|
||||
CMD ./chain.sh |
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
# golop-afl |
||||
|
||||
| Environment variable | Description | |
||||
|---|---| |
||||
| `GOLOP_FILE` | Location to be fuzzed. Either filename or `stdin` | |
||||
| `GOLOP_TIMEOUT` | Timeout per execution | |
||||
| `GOLOP_MEMORY` | Memory limit per execution | |
||||
| `GOLOP_ID` | Identifier for this fuzzer | |
||||
| `GOLOP_MODE` | Either `master` or `slave` | |
||||
| `GOLOP_OBJECTIVE` | The binary name | |
||||
| `GOLOP_ARGUMENTS` | Optional arguments for the binary | |
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash |
||||
|
||||
if [ "$GOLOP_MODE" = "slave" ]; then |
||||
GOLOP_MODE="-S" |
||||
else |
||||
GOLOP_MODE="-M" |
||||
fi |
||||
|
||||
afl-fuzz \ |
||||
-i /golop/input \ |
||||
-o /golop/output \ |
||||
-f $GOLOP_FILE \ |
||||
-t $GOLOP_TIMEOUT \ |
||||
-m $GOLOP_MEMORY \ |
||||
-T "$GOLOP_ID" \ |
||||
$GOLOP_MODE $GOLOP_ID \ |
||||
-- \ |
||||
$GOLOP_OBJECTIVE \ |
||||
$GOLOP_ARGUMENTS |
||||
|
Loading…
Reference in new issue