trustedsec / social-engineer-toolkit

The Social-Engineer Toolkit (SET) repository from TrustedSec - All new versions of SET will be deployed here.
10.84k stars 2.76k forks source link

how to download index.php? #830

Open proplayertrust opened 3 years ago

proplayertrust commented 3 years ago

How I can download index.php from website it's only downloading index.html. if someone want know website where I'm trying to download index.php write in comment

I'm using kali linux sorry for flagging it as issue

ghost commented 3 years ago

You can't download it. It's a run and rendered by the php interpreter on the server.

It would be a security issue if you could.

https://security.stackexchange.com/questions/98425/is-there-a-way-to-download-a-php-file-without-it-being-executed

proplayertrust commented 3 years ago

You can't download it. It's a run and rendered by the php interpreter on the server.

It would be a security issue if you could.

https://security.stackexchange.com/questions/98425/is-there-a-way-to-download-a-php-file-without-it-being-executed

but i can't get index.php with other applications (metasploit) or something?

ghost commented 3 years ago

You can't download it. It's a run and rendered by the php interpreter on the server. It would be a security issue if you could. https://security.stackexchange.com/questions/98425/is-there-a-way-to-download-a-php-file-without-it-being-executed

but i can't get index.php with other applications (metasploit) or something?

No...it's not straightforward to "get" it.

To do that, you'll need to exploit a vulnerability (lfi, rce, etc.) on the server hosting the index.php file to access it.