So let me explain, I want to fuzz a closed source application named Y that implements a custom protocol let's name the protocol X. Y is written in C.
Is there a way to patch the send/read family functions to read from file instead of the socket?
Could this potentially work for the AFL/AFL++ fuzzer?
Keep in mind the application is developed for UNIX-like ecosystems.
Patching a closed source network application to read from file
118 Views Asked by Shad3 At
1
There are 1 best solutions below
Related Questions in C
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in SOCKETS
- Drawing with ncurses, sockets and fork
- UDP sockets in C not working
- How can I send multiple objects over one socket in java?
- psuedo TCP multicast with os.dup2() in python?
- My get request for http is very slow
- Nodejs connect mysql socket to another host?
- HttpRequestContext vs HttpContext
- Spring based client server communication without network
- Java does not accept 2 methods with same name
- Retrieve Data From EOC(Eithernet Over coxial) device
- Ping a server without freezing the Thread
- C sockets: Exit client after all data is received
- What is the best way to send XML converted to a byte array over TCP, then translate the response back to readable XML?
- C# Winform to Connect to Device Using IP
- Java Restart a Socket
Related Questions in FUZZING
- Does a Fuzz Testing Tool use the TCP/IP Stack of the Operating System?
- Fuzz TCP packet using Peach Fuzzer
- Has the Delphi Win32 VCL been Fuzz Tested?
- OWASP ZAP: Enabling script
- Fuzzing Python Modules
- OWASP's ZAP and the Fuzz ability
- Recording failed fuzz tests for re-execution later
- How can i gather lots of files from one filetype?
- When testing an open source program using AFL, how would you analyze whether crashes you get are a vulnerability, and what kind of vulnerability?
- Issue running the RESTler image from docker hub (proc/1/stat error related)
- AFL++ (time out or crash)
- QEMU-AFL: follow fork() into child
- AFL++ Patch out of range
- How to apply C++ fuzzing test on function that has nested Google protobuf arguments?
- How to do fuzzing testing with Selenium
Related Questions in CUSTOM-PROTOCOL
- How to run insalled electron app from web browser with a custom url protocol
- Android equivilent of ios message://
- How To Tell Whether a Protocol is Valid In Javascript
- Detecting protocol handler with Javascript
- Why is my custom protocol interfering with ajax calls?
- How can I invoke Custom Protocol with large amount of data?
- JavaScript - Invoke Custom Protocol
- JavaScript - encodeURI results in illegal JSON
- Windows 10 Script to define Custom Protocol into Registry
- Stomp ActiveMQ questions
- What could be causing this Chrome security warning with a custom/external protocol?
- Tool for network traffic analysis of a custom protocol
- Custom Protocol Handler that does not "steal" focus
- Patching a closed source network application to read from file
- Check custom protocol exist or not
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Yes, you can do that easily by making bridges between named pipes (fifos) and TCP connections through netcat.
Create two files (named pipes):
Now, make a bridge between these files and the application.
In case the application is a TCP/IP Client, your bridge will be a TCP/IP Server:
Then you'll have to configure the application's peer IP address as the IP of the host where your bridge runs. Port also must match and is arbitrary. ("50000" in the example above.)
In case you can't change the IP address/TCP port the application uses, you'll have to map these on your router to the IP/port of your bridge application (see "port forwarding").
If the application is a TCP/IP Server, create a TCP/IP client as a bridge:
If you want to write something to the networking application you're analyzing, write to
/tmp/program_input. Read/tmp/program_outputto see its output.I'm not too familiar with AFL/AFL++, but you can certainly communicate with the application directly or also make socket/file bridges for the fuzzer as well.