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
120 Views Asked by Shad3 At
1
There are 1 best solutions below
Related Questions in C
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in SOCKETS
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- My server TCP doesn't receive messages from the client in C
- how is strncpy able to copy from source to empty destination?
- Python Multicast packet receiver stops receiving multicast packets when computer is connected to WiFi
- Python Client-Server Communication with Protocol
- Reversed TLS re-connection issue
- Android 13 & 14 seem to close WebSocket connection, if i put app in background, after ~20s
- Java SocketException: Connection reset,. What is the cause?
- Multipart/form-data with chunked data transfer (ICAP protocol)
- View Socket View
- Client connection timeout during Android & Windows PC communication via sockets
- Browser connect to raw sockets even possible?
- Protocol 43200 after unpacking received data
- Unity SocketIo using Best http2 plugin want to use in webgl
- How does pre-allocating a pool of SocketAsyncEventArgs objects upfront improve the performance of a server application in c#
Related Questions in FUZZING
- oss-fuzz does not cover the code after if - else in C code
- compile syzkaller fuzzer failed without any error or warning
- Unable to use Jazzer due to compilation error
- how to fuzz program using libfuzzer?
- Fuzz testing with Playwright and gremlins.js
- Error compilingLLVMFuzzerTestOneInput DWARF error: invalid or unhandled FORM value: 0x25
- does anyone use jazzer to fuzz on android binder service
- RESTler API Fuzzing Add Authentication Bearer token
- missing afl-gcc even after installing af++
- Compiling CUPS with AFL++ instrumentation: "relocation R_X86_64_32 against ... can not be used when making a PIE object; recompile with -fPIE"
- How to apply C++ fuzzing test on function that has nested Google protobuf arguments?
- AFL++ Patch out of range
- QEMU-AFL: follow fork() into child
- AFL++ (time out or crash)
- Issue running the RESTler image from docker hub (proc/1/stat error related)
Related Questions in CUSTOM-PROTOCOL
- Acknowledge whether user has a program bound to a certain protocol
- Reopening Word js-addin 'tries to open external app' confirmation dialog
- How to catch the params of the custom protocol in chrome?
- Windows 10 Script to define Custom Protocol into Registry
- JavaScript - encodeURI results in illegal JSON
- How can I invoke Custom Protocol with large amount of data?
- JavaScript - Invoke Custom Protocol
- Invoke program/script from JavaScript using Custom Protocol
- Windows-10 Interface between JavaScript and Batch file executed using a Custom Protocol
- Windows 10 - Custom Protocol fails when invoked from JavaScript while it works via other methods
- Windows 10 JavaScript Invoking a batch file using custom protocol fails
- How to bypass custom schema restrictions when opening a link from the browser?
- Chrome/Firefox:- How To display the prompt that appear if you open Custom Protocol Handler again
- How to add a custom URL scheme programmatically on macOS?
- Not allowed to launch cutom protocol because a user gesture is required
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 # Hahtags
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.