Giter VIP home page Giter VIP logo

desockmulti's Introduction

desockmulti

A de-socketing tool that is 10x faster than desock (Preeny) in fuzzing network protocols

Build

make

Usage

Similar to desock (Preeny):

USE_RAW_FORMAT=1 LD_PRELOAD=/path/to/desockmulti/desockmulti.so ./afl-fuzz -d -i testcase_dir -o findings_dir -- /path/to/program [...params...]

USE_RAW_FORMAT=1 is telling desockmulti that the seed is in orginal format, but not the new multifuzz format (checking our MultiFuzz paper if you are interested, and the source code of MultiFuzz is here https://github.com/hdusoftsec/MultiFuzz).

Documentation

Please check the Section 4.4 of our MultiFuzz paper, which can be downloaded from https://www.mdpi.com/1424-8220/20/18/5194/pdf .

If you use desockmulti, please kindly help to cite our paper:

Yingpei Zeng, Mingmin Lin, Shanqing Guo, Yanzhao Shen, Tingting Cui, Ting Wu, Qiuhua Zheng, Qiuhua Wang, MultiFuzz: A Coverage-Based Multiparty-Protocol Fuzzer for IoT Publish/Subscribe Protocols, Sensors, Vol.20, No.18, 5194, 2020.

desockmulti's People

Contributors

zyingp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

desockmulti's Issues

Testing desockmulti on server

hello zyingp i have question on how desockmulti works
i write vulnerable server for testing desockmulti

 #include <netinet/in.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <sys/socket.h>
 #include <unistd.h>
 #define PORT 8080
 int main(int argc, char const* argv[])
 {
	int server_fd, new_socket, valread;
	struct sockaddr_in address;
	int opt = 1;
	int addrlen = sizeof(address);
	char buffer[30] = { 0 };
	char* hello = "Hello from server";
	

        // Creating socket file descriptor
	if ((server_fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
		perror("socket failed");
		exit(EXIT_FAILURE);
	}

	// Forcefully attaching socket to the port 8080
	if (setsockopt(server_fd, SOL_SOCKET,
				SO_REUSEADDR | SO_REUSEPORT, &opt,
				sizeof(opt))) {
		perror("setsockopt");
		exit(EXIT_FAILURE);
	}
	address.sin_family = AF_INET;
	address.sin_addr.s_addr = INADDR_ANY;
	address.sin_port = htons(PORT);

	// Forcefully attaching socket to the port 8080
	if (bind(server_fd, (struct sockaddr*)&address,
			sizeof(address))
		< 0) {
		perror("bind failed");
		exit(EXIT_FAILURE);
	}
	if (listen(server_fd, 3) < 0) {
		perror("listen");
		exit(EXIT_FAILURE);
	}
	if ((new_socket
		= accept(server_fd, (struct sockaddr*)&address,
				(socklen_t*)&addrlen))
		< 0) {
		perror("accept");
		exit(EXIT_FAILURE);
	}
	valread = read(new_socket, buffer, 1024);
	printf("%s\n", buffer);
	send(new_socket, hello, strlen(hello), 0);
	printf("Hello message sent\n");

	// closing the connected socket
	close(new_socket);
	// closing the listening socket
	shutdown(server_fd, SHUT_RDWR);
	return 0;
}

and than i use afl to fuzz this program
but regarding of my buffer[30] or my input i cant get any error form this
i even test
USE_RAW_FORMAT=1 LD_PRELOAD=./desockmulti-master/desockmulti.so ss/server in/base_test.txt
to directly give input to sever but seems like its not working
Sorry for some newbie question and thanks for your time

GLIBC_2.34 not found (required by ./desockmulti.so)

Hi
i have problem with desockmulti that desockmulti.so required GLIBS 2.34 although i have gilbs 2.34 already install on my ubuntu 21.04
and i test it on the 22.04 as well .Same problem

i compiled desockmulti with "arm-linux-gnueabihf" for my devise
and i run httpd with desock as preload and after some debugging this happen.
sudo qemu-arm-static -g 5555 -L ./var/www/ -E USE_RAW_FORMAT=1 -E LD_PRELOAD=./desockmulti.so ./usr/sbin/httpd

./usr/sbin/httpd: /lib/libc.so.6: version 'GLIBC_2.34' not found (required by ./desockmulti.so)

I can't run it successfully after I build it.

I use 'make' to build it, but it shows 'Segmentation fault' when I run it.

$ make
cc logging.c -o logging.so -shared -fPIC 
cc desockmulti.c logging.c -o desockmulti.so -shared -fPIC -lpthread -lrt
$ ./desockmulti.so 
Segmentation fault

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.