xref: /aosp_15_r20/external/AFLplusplus/utils/socket_fuzzing/README.md (revision 08b48e0b10e97b33e7b60c5b6e2243bd915777f2)
1*08b48e0bSAndroid Build Coastguard Worker# socketfuzz
2*08b48e0bSAndroid Build Coastguard Worker
3*08b48e0bSAndroid Build Coastguard Workerwhen you want to fuzz a network service and you can not/do not want to modify
4*08b48e0bSAndroid Build Coastguard Workerthe source (or just have a binary), then this LD_PRELOAD library will allow
5*08b48e0bSAndroid Build Coastguard Workerfor sending input to stdin which the target binary will think is coming from
6*08b48e0bSAndroid Build Coastguard Workera network socket.
7*08b48e0bSAndroid Build Coastguard Worker
8*08b48e0bSAndroid Build Coastguard WorkerThis is desock_dup.c from the amazing preeny project
9*08b48e0bSAndroid Build Coastguard Worker[https://github.com/zardus/preeny](https://github.com/zardus/preeny)
10*08b48e0bSAndroid Build Coastguard Worker
11*08b48e0bSAndroid Build Coastguard WorkerIt is packaged in AFL++ to have it at hand if needed
12