Показать сообщение отдельно

  #4  
Старый 28.10.2012, 09:43
kacergei
Новичок
Регистрация: 26.05.2007
Сообщений: 8
Провел на форуме:
23906

Репутация: -5
По умолчанию

Подскажите что нибудь под:

Код:
Server software: Apache
Disabled PHP Functions: none
cURL support: enabled
Supported databases: MySql (5.1.62), MSSQL

Readable /etc/passwd: yes [view]
Readable /etc/shadow: no
OS version: Linux version 2.6.30-gentoo-r8-U (root@xen-host) (gcc version 3.4.6 (Gentoo Hardened 3.4.6-r2 p1.5, ssp-3.4.6-1.0, pie-8.7.10)) #1 SMP Tue Nov 24 11:56:28 MSK 2009

Userful: gcc, cc, ld, make, php, perl, python, tar, gzip, bzip2, nc
Downloaders: wget, curl
Пробывал half-nelson в ответ получил:

Код:
half-nelson.c: In function 'get_kstack':
half-nelson.c:212:79: error: 'MAP_32BIT' undeclared (first use in this function)
half-nelson.c:212:79: note: each undeclared identifier is reported only once for each function it appears in 
и т.д.
Пробывал другой способ со статьи:

Код:
sh-4.2$ mkdir /tmp/exploit
mkdir /tmp/exploit
sh-4.2$ ln /bin/ping /tmp/exploit/target
ln /bin/ping /tmp/exploit/target
sh-4.2$ exec 3 socket:[76306682]
Пробывал full-nelson:

Код:
gcc full-nelson.c -o full-nelson
full-nelson.c:1:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'all'
full-nelson.c:3:2: warning: missing terminating ' character
full-nelson.c:3:1: error: missing terminating ' character
full-nelson.c:4:62: warning: missing terminating ' character
full-nelson.c:4:1: error: missing terminating ' character
In file included from /usr/include/stdio.h:75:0,
                 from full-nelson.c:73:
/usr/include/libio.h:334:3: error: expected specifier-qualifier-list before 'size_t'
/usr/include/libio.h:366:62: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/libio.h:375:6: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/libio.h:497:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_IO_sgetn'
In file included from full-nelson.c:73:0:
/usr/include/stdio.h:316:35: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:322:47: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:334:20: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:341:10: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:383:44: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:385:6: error: format string argument not a string type
/usr/include/stdio.h:387:45: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:659:11: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:662:9: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:672:8: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:702:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread'
/usr/include/stdio.h:708:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite'
/usr/include/stdio.h:730:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread_unlocked'
/usr/include/stdio.h:732:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite_unlocked'
In file included from /usr/include/sys/uio.h:29:0,
                 from /usr/include/sys/socket.h:28,
                 from full-nelson.c:74:
/usr/include/bits/uio.h:47:5: error: expected specifier-qualifier-list before 'size_t'
In file included from /usr/include/sys/socket.h:40:0,
                 from full-nelson.c:74:
/usr/include/bits/socket.h:257:5: error: expected specifier-qualifier-list before 'size_t'
/usr/include/bits/socket.h:280:5: error: expected specifier-qualifier-list before 'size_t'
In file included from full-nelson.c:74:0:
/usr/include/sys/socket.h:141:53: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/sys/socket.h:148:45: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/sys/socket.h:155:55: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/sys/socket.h:166:60: error: expected declaration specifiers or '...' before 'size_t'
In file included from full-nelson.c:77:0:
/usr/include/string.h:45:40: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:49:58: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:58:18: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:65:42: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:68:60: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:95:50: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:132:41: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:140:9: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:146:61: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:153:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strxfrm'
In file included from full-nelson.c:77:0:
/usr/include/string.h:168:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strxfrm_l'
/usr/include/string.h:183:47: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:284:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strcspn'
/usr/include/string.h:288:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strspn'
/usr/include/string.h:399:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strlen'
/usr/include/string.h:406:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strnlen'
/usr/include/string.h:427:12: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:451:33: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:455:55: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:459:31: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:462:58: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:540:65: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:577:36: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:580:41: error: expected declaration specifiers or '...' before 'size_t'
In file included from /usr/include/sched.h:43:0,
                 from full-nelson.c:79:
/usr/include/bits/sched.h:205:37: error: expected ')' before '__setsize'
/usr/include/bits/sched.h:207:44: error: expected ')' before '__count'
In file included from full-nelson.c:80:0:
/usr/include/stdlib.h:140:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ctype_get_mb_cur_max'
/usr/include/stdlib.h:337:4: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:367:4: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:369:6: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h:471:29: error: expected ')' before '__size'
/usr/include/stdlib.h:473:29: error: expected ')' before '__nmemb'
/usr/include/stdlib.h:485:36: error: expected declaration specifiers or '...' before 'size_t'
In file included from /usr/include/stdlib.h:497:0,
                 from full-nelson.c:80:
/usr/include/alloca.h:33:29: error: expected ')' before '__size'
In file included from full-nelson.c:80:0:
/usr/include/stdlib.h:503:29: error: expected ')' before '__size'
/usr/include/stdlib.h:508:45: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:508:65: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:756:9: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:756:25: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:757:6: error: nonnull argument with out-of-range operand number (argument 1, operand 5)
/usr/include/stdlib.h:761:34: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:761:50: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:762:6: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h:840:6: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:843:6: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:847:31: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:851:31: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:860:38: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:864:36: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:871:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mbstowcs'
/usr/include/stdlib.h:874:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wcstombs'
In file included from /usr/include/signal.h:356:0,
                 from full-nelson.c:81:
/usr/include/bits/sigstack.h:54:5: error: expected specifier-qualifier-list before 'size_t'
In file included from full-nelson.c:83:0:
/usr/include/sys/mman.h:58:34: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/sys/mman.h:77:34: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/sys/mman.h:82:36: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/sys/mman.h:90:33: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/sys/mman.h:95:35: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/sys/mman.h:99:41: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/sys/mman.h:104:41: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/sys/mman.h:107:43: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/sys/mman.h:124:36: error: expected declaration specifiers or '...' before 'size_t'
In file included from full-nelson.c:84:0:
/usr/include/unistd.h:357:45: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/unistd.h:363:54: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/unistd.h:373:46: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/unistd.h:381:55: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/unistd.h:508:35: error: expected declaration specifiers or '...' before 'size_t'
In file included from full-nelson.c:84:0:
/usr/include/unistd.h:620:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'confstr'
/usr/include/unistd.h:793:46: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/unistd.h:829:29: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/unistd.h:840:31: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/unistd.h:876:38: error: expected declaration specifiers or '...' before 'size_t'
In file included from full-nelson.c:84:0:
/usr/include/unistd.h:898:39: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/unistd.h:905:47: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/unistd.h:916:41: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/unistd.h:918:49: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/unistd.h:936:57: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/unistd.h:937:6: error: expected declaration specifiers or '...' before 'size_t'
full-nelson.c: In function 'get_kernel_sym':
full-nelson.c:128:33: error: too many arguments to function 'strncmp'
/usr/include/string.h:146:12: note: declared here
full-nelson.c:153:9: error: too many arguments to function 'strncmp'
/usr/include/string.h:146:12: note: declared here
full-nelson.c: In function 'trigger':
full-nelson.c:200:9: error: too many arguments to function 'memset'
/usr/include/string.h:65:14: note: declared here
full-nelson.c:201:9: error: too many arguments to function 'strncpy'
/usr/include/string.h:131:14: note: declared here
full-nelson.c: In function 'main':
full-nelson.c:249:25: warning: incompatible implicit declaration of built-in function 'malloc'
full-nelson.c:262:24: error: too many arguments to function 'mmap'
/usr/include/sys/mman.h:58:14: note: declared here
full-nelson.c:269:9: error: too many arguments to function 'memcpy'
/usr/include/string.h:44:14: note: declared here
full-nelson.c:273:15: error: 'CLONE_VM' undeclared (first use in this function)
full-nelson.c:273:15: note: each undeclared identifier is reported only once for each function it appears in
full-nelson.c:273:26: error: 'CLONE_CHILD_CLEARTID' undeclared (first use in this function)
Пробывал CVE-2010-3904:

Код:
sh-4.2$ gcc linux-rds-exploit.c -o linux-rds-exploit
gcc linux-rds-exploit.c -o linux-rds-exploit
sh-4.2$ ./linux-rds-exploit
./linux-rds-exploit[*] Linux kernel >= 2.6.30 RDS socket exploit[*] by Dan Rosenberg[*] Could not open socket.
Надеюсь описал более менее подробно
 
Ответить с цитированием