MCPcopy Create free account
hub / github.com/bsauce/kernel-exploit-factory / loopback_send

Function loopback_send

CVE-2017-7308/exploit.c:146–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void loopback_send(char *buffer, int size) {
147 int s = socket(AF_PACKET, SOCK_RAW, IPPROTO_RAW);
148 if (s == -1) {
149 perror("[-] socket(SOCK_RAW)");
150 exit(EXIT_FAILURE);
151 }
152
153 packet_socket_send(s, buffer, size);
154}
155// (1-1) 消耗 kmalloc-2048
156int packet_sock_kmalloc() {
157 int s = socket(AF_PACKET, SOCK_DGRAM, htons(ETH_P_ARP));

Callers 1

oob_writeFunction · 0.85

Calls 2

socketClass · 0.85
packet_socket_sendFunction · 0.85

Tested by

no test coverage detected