Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-29-2012, 02:13 AM   PM User | #1
My Crappy ISP
New to the CF scene

 
Join Date: Feb 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
My Crappy ISP is an unknown quantity at this point
Exclamation Designing a .jpeg fuzzer

I'm in the planning stages of designing a fuzzer. The goal is to fuzz test a unix binary program.

It will:
1. Grab a file (a .jpeg image I supply)
2. Mutate that file (randomly flip a bit somewhere)
3. Feed it to the program (a unix binary program)
4. Record the output (from that unix binary)

This leads me to a few questions...

1. What would be the best language to begin this endeavour?
2. What is the most efficient way to flip a bit? How can I do this in a coding language I can run on a Linux system?
3. What is the proper code form to feed a file to a Linux binary program?
4. What is the proper way to record the output of the Linux Binary file after it's fed the file?

I understand 2-3 are completely dependant on my coding language of choice but as I said I'm not sure what language is best for this. It's new territory for me. I'd like to expedite the process as much as possible by communicating with some experts here, as such I appreciate ANY help given to me greatly.

Thank you and have a great day.
My Crappy ISP is offline   Reply With Quote
Old 02-29-2012, 03:13 PM   PM User | #2
kamillion
New to the CF scene

 
Join Date: Jan 2012
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
kamillion is an unknown quantity at this point
1. you can use Perl to script this. using wget to acquire the image and save it to a dir

2. I would look into image magic, you can use that in conjunction with perl to re-size, flip, cut and place images with other images and save it in the dir where the binary program will read it from. I say Perl, cause i know for a fact imagemagic has a library for it.

3-4. depends on the binary program you are using
kamillion is offline   Reply With Quote
Reply

Bookmarks

Tags
beginner, fuzz, jpeg, language

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:24 AM.


Advertisement
Log in to turn off these ads.