![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 1 012 Pomógł: 109 Dołączył: 26.09.2003 Skąd: nexis.pl Ostrzeżenie: (0%) ![]() ![]() |
Jak pobrać stronę, która jest zabezpieczona poprzed dostęp .htaccess? Znam login i hasło, ale w jaki sposób to wpisać? Chodzi mi o pobranie strony:
[php:1:984efa03b2]<?php $f = @fopen("http://www.domena.pl/plik.php", "r"); ?>[/php:1:984efa03b2] gdzie dostęp do głównego katalogu jest zabezpieczony poprzez .htaccess. Dzięki z góry za pomoc. |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 636 Pomógł: 0 Dołączył: 22.10.2003 Skąd: Katowice Ostrzeżenie: (0%) ![]() ![]() |
Hehehe (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) Ja tu kombinuje a tu klasa jest do tego (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Takie cos zrobilem: [php:1:76562e8788]<?php $host = 'www.nexis.pl'; $adres = '/phpforum/'; $user = 'test'; $pass = 'test'; $fp = fsockopen($host, 80, $errno, $errstr, 5); $out = "GET / HTTP/1.1rn"; $out .= "Host: www.example.comrn"; $out .= "Authorization: Basic ".base64_encode($user.':'.$pass)."rn"; $out .= "Connection: Closernrn"; fwrite($fp, $out); while (!feof($fp)) { $odpowiedz .= fgets($fp, 128); } fclose($fp); echo $odpowiedz; // tu trzeba wyodrebnic sama tresc strony ?>[/php:1:76562e8788] Nie dokonczylem tego skoro widze, ze matid rozwiazal problem (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) |
|
|
![]() ![]() |
![]() |
Aktualny czas: 6.10.2025 - 00:18 |