Aim:
- I am trying to setup and run
Afl Fuzzer
(link), as part of following an online course.
Info:
- I'm running
Ubuntu 14.04
on dvd. - In the video the teacher uses the
BinUtils
2.25
package, and I chose to use the latest version2.26
. - I don't have much experience with compiling / making software.
Steps I followed:
- Downloaded the latest version of
BinUtils
to the Desktop (/home/ubuntu/Desktop
) - Unpacked BinUtils folder using
tar
via Terminal. - Used
make
to try to create the program in the unpacked folder on the Desktop, which I think worked. - Downloaded the latest version of
afl-latest.tgz
from here to/home/ubuntu/
. - Unpacked afl-latest.tgz using
tar
via Terminal. - Used
make
to try to create the program in/home/ubuntu/afl-2.08b
, which I think worked.
Problems:
- The output using
ls -a
of that folder is significantly different to the output shown on the video (ie I don't have all of the files that the Teacher has shown) aftermake
has been run. - Get error
bash: ./configure: No such file or directory
when in the folder/home/ubuntu/afl-2.08b/
, and try to run the following command:CC=afl-gcc ./config
. Theafl-gcc.c
file exists in the folder. Do I need to try./configure --prefix=/home/ubuntu/afl-2.08b/
? Cannot compile executables
error message.
What I've tried:
- Tried to find out which folder for Binutils I should be in for doing the
make
. It's not clear from the online course, and there are several similarly named folders. Searches have not been fruitful thus far. - Posted question re the BinUtils folder on Course chat area for the video in question.
- Sent email asking where BinUtils folder is to the course provider.
- Read the
Readme
file forBinUtils
. - Read the
Readme
file forafl-2.08b
. - Googled
cannot compile executables
I wasn't sure whether this is my inexperience of using Ubuntu terminal commands, or trying to follow unclear instructions.
What I haven't tried yet:
- Installed latest version of gcc
Update:
I got it working in the end. I think I should have been running ./configure when in the /binutils folder.
I also forgot to do:
1) chmod 777 -R on each of the folders 2) sudo make install
afl
or to download the source code forbinutils
? Theafl
package is less than 100 kBytes. – Nathaniel M. Beaver Jun 27 '16 at 23:15