Hacking and more...
HaCkinG CulT
|
Lista Forumurilor Pe Tematici
|
Hacking and more... | Reguli | Inregistrare | Login
POZE HACKING AND MORE...
Nu sunteti logat.
|
Nou pe simpatie: yasminsept
| Femeie 24 ani Bucuresti cauta Barbat 26 - 54 ani |
|
Maxxim
Bluffer
Inregistrat: acum 18 ani
Postari: 366
|
|
Code:
ScriptAlias /cgi-bin/ "c:/wamp/Apache2/cgi-bin/" |
creez un alias in fisierul /www/ catre ce am scris mai sus si cand incerc sa acceses fisierul cgi-bin primesc eroarea 403 Forbidden. Sa fie gresit ceva in permisiuni in httpd.conf ?
Code:
<Directory "c:/wamp/apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory> |
_______________________________________ Ideile mari se exprima prin cuvinte banale
|
|
pus acum 17 ani |
|
OSHO
Elite Member
Din: Cluj
Inregistrat: acum 18 ani
Postari: 2069
|
|
|
pus acum 17 ani |
|
Maxxim
Bluffer
Inregistrat: acum 18 ani
Postari: 366
|
|
am adaugat handler`ul dar optiunea execcgi cum o adaug?
Modificat de Maxxim (acum 17 ani)
_______________________________________ Ideile mari se exprima prin cuvinte banale
|
|
pus acum 17 ani |
|
OSHO
Elite Member
Din: Cluj
Inregistrat: acum 18 ani
Postari: 2069
|
|
|
pus acum 17 ani |
|
Maxxim
Bluffer
Inregistrat: acum 18 ani
Postari: 366
|
|
Code:
<Directory "c:/wamp/apache2/cgi-bin">
AllowOverride None
Options +ExecCGI
Order allow,deny
Allow from all
</Directory> |
si atunci cand intru in http://localhost/cgi-bin/ primesc eroarea 403 Forbidden iar cand incerc sa rulez un script din fisier primesc eroarea 500 Internal Server Error. Ce e configurat gresit? eu ma gandeam la linia asta unde gaseste calea pt perl:
Alias`ul arata cam asa:
Code:
Alias /cgi-bin/ "c:/wamp/apache2/cgi-bin/"
<Directory "c:/wamp/apache2/cgi-bin/">
Options Indexes FollowSymLinks MultiViews
Options +ExecCGI
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory> |
Modificat de Maxxim (acum 17 ani)
_______________________________________ Ideile mari se exprima prin cuvinte banale
|
|
pus acum 17 ani |
|
OSHO
Elite Member
Din: Cluj
Inregistrat: acum 18 ani
Postari: 2069
|
|
Daca iti da eroare 500 problema e in script undeva. Incearca scriptul urmator:
Code:
#!C:/perl/bin/perl
print "Content-type: text/htmlnn";
print "Hello, World."; |
Daca e configurat corect tot, ar trebui sa functioneze.
_______________________________________
IPFind: IP Finder and browser revealer SkullBox: IT pentru incepatori _______________________________________
|
|
pus acum 17 ani |
|
Maxxim
Bluffer
Inregistrat: acum 18 ani
Postari: 366
|
|
i`am dat un print enviroment:
Code:
COMSPEC="C:WINDOWSsystem32cmd.exe"
DOCUMENT_ROOT="C:/wamp/www"
GATEWAY_INTERFACE="CGI/1.1"
HTTP_ACCEPT="application/x-shockwave-flash,text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"
HTTP_ACCEPT_CHARSET="ISO-8859-1,utf-8;q=0.7,*;q=0.7"
HTTP_ACCEPT_ENCODING="gzip,deflate"
HTTP_ACCEPT_LANGUAGE="en-us,en;q=0.5"
HTTP_CONNECTION="keep-alive"
HTTP_HOST="localhost"
HTTP_KEEP_ALIVE="300"
HTTP_USER_AGENT="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
PATH="C:Perlsitebin;C:Perlbin;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:Program FilesCommon FilesAdobeAGL"
PATHEXT=".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH"
QUERY_STRING=""
REMOTE_ADDR="127.0.0.1"
REMOTE_PORT="2780"
REQUEST_METHOD="GET"
REQUEST_URI="/cgi-bin/printenv.pl"
SCRIPT_FILENAME="C:/wamp/Apache2/cgi-bin/printenv.pl"
SCRIPT_NAME="/cgi-bin/printenv.pl"
SERVER_ADDR="127.0.0.1"
SERVER_ADMIN=" ;
SERVER_NAME="localhost"
SERVER_PORT="80"
SERVER_PROTOCOL="HTTP/1.1"
SERVER_SIGNATURE=""
SERVER_SOFTWARE="Apache/2.2.4 (Win32) PHP/5.2.1"
SYSTEMROOT="C:WINDOWS"
WINDIR="C:WINDOWS" |
Deci functioneaza,mersi mult pentru ajutor.
_______________________________________ Ideile mari se exprima prin cuvinte banale
|
|
pus acum 17 ani |
|