Add
This commit is contained in:
parent
569d08310b
commit
3be573b6d1
|
|
@ -1,22 +1,16 @@
|
||||||
# تنظیمات سایت قربانی (Laravel)
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name victim.lab;
|
server_name webapp.kr-rezvan.ir;
|
||||||
root /var/www/html/public;
|
root /var/www/html/public;
|
||||||
index index.php;
|
index index.php;
|
||||||
location / { try_files $uri $uri/ /index.php?$query_string; }
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.php?$query_string;
|
||||||
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
fastcgi_pass php:9000;
|
fastcgi_pass php:9000;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
# تنظیمات سایت مهاجم (Static/Hacker)
|
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
server_name attacker.lab;
|
|
||||||
location / {
|
|
||||||
proxy_pass http://hacker-app:80;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user