Browse Source

Init.

master
maride 3 years ago
commit
bf25f0fafc
  1. 9
      Dockerfile
  2. 11
      README.md
  3. 20
      chain.sh

9
Dockerfile

@ -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

11
README.md

@ -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 |

20
chain.sh

@ -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…
Cancel
Save