MySQL Injection

Let’s say I know where the file with the connection to the Database is located. How can I extract the source from it, for example? Or let’s get some data out of it? Base.

Answer 1

if it’s a stupid text file, then just open it, if it’s, for example, a php script and this data is written in it, then nothing…

[sarkazm]go to the hosting control panel and open ^^[/sarkazm]

By the way, what about injections?

Answer 2

S) Let’s say something like this is written in this file:

defined("CONST") or die ("  ");

Then definitely not)