[SOLVED] Trying to write a simple fuzzer with Peach to detect a buffer overflow
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
<?xml version="1.0" encoding="utf-8"?>
<Peach xmlns="http://peachfuzzer.com/2012/Peach" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://peachfuzzer.com/2012/Peach /peach/peach.xsd">
<!-- Fuzzing the Extract program with a malformed parameter -->
<DataModel name="program">
<String value="./test " />
</DataModel>
<DataModel name="parameter">
<String value="" >
<Analyzer class="StringToken"/>
</String>
</DataModel>
<StateModel name="TheState" initialState="Initial">
<State name="Initial">
<!-- we write a batch file which Peach calls -->
<!-- for example, a test run would have the contents "Extract.exe C:\output_dir" in the batch file -->
<!-- subsequent runs will have the contents "Extract.exe [fuzzed data goes here]" -->
<Action type="output">
<DataModel ref="program"/>
</Action>
<Action type="output">
<DataModel ref="parameter"/>
</Action>
<Action type="close" />
<Action type="call" method="Runprogram" publisher="Peach.Agent"/>
</State>
</StateModel>
<Agent name="LinAgent">
<Monitor class="LinuxDebugger">
<!-- This is the program we're going to run inside of the debugger -->
<Param name="Executable" value="./call_program.bat"/>
</Monitor>
</Agent>
<Test name="Default">
<!-- We only want to fuzz the Extract program's parameter, hence the following line -->
<Exclude xpath="//program" />
<StateModel ref="TheState"/>
<Strategy class="Sequential"/>
<Publisher class="File">
<Param name="FileName" value="call_program.bat" />
</Publisher>
<Logger class="File">
<!-- save crash information in the Logs directory -->
<Param name="Path" value="Logs"/>
</Logger>
</Test>
</Peach>
<!-- end -->
ow can I make this work? Any help would be greatly appreciated. Thank you. I've found a few references to this exact thing but I can't get the files to work correctly.
now you brought your post out of zero reply status, which is not a desirable thing to do on LQ, if you really need help, because now it won't float up to the top anymore. duh.
i cannot help with your problem at all.
all i see is some very specialized verbiage ("fuzzer" "peach pit") and no links to anything that might shed more light at the whole problem.
well ok, i can clearly see "peachfuzzer.com" there at the top, so i went to have a look: "Peach’s revolutionary fuzzing engine outperforms its competitors, discovering unknown system vulnerabilities like no other testing method can." - i have no idea how that would relate to those few lines of C code.
sorry.
maybe by keeping the rant going, someone knowledgeable will eventually see this, or you provide more info.
well ok, i can clearly see "peachfuzzer.com" there at the top, so i went to have a look: "Peach’s revolutionary fuzzing engine outperforms its competitors, discovering unknown system vulnerabilities like no other testing method can." - i have no idea how that would relate to those few lines of C code.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.