In my website I have a php file called “hello.php” but it is not being listed in the directory listing,
Doesn’t matter whatever name I rename it or create a new php file it’s still not showing there,
What should I do?
hello.php
<?php echo "hello"; ?>
This is the code of my “hello.php” file which is just an echo
I want to know that how u injected your own php code in the “index.php” file and even when I’m opening the file from a FTP surprisingly your code is not there
I kinda of did the same thing, but on the insert page, and I can confirm your database is in fact vulnerable.
You should first check if the user input contains characters like "',;, and many more, before running your SQL query. (Search Google how to prevent SQL Injection)
For the code, I’m not teaching others how to hack here. (Can I PM the user? Is that allowed?)
As it should not be.
The vulnerability is not the file modification type, the exploit could be stored in your database, might want to check the table which is responsibe for storing student info.
I heavily recommend learning about the top ten vulnerabilities listed by OWASP. XSS, CSRF and MySQL injection etc.
I Dident. That was JavaScript. But it would probably work with PHP as well (Which is even worse). I wanted to prove it is broken and vulnerable without actually breaking anything.
Because it’s in the database, not in the files. However, I could modify those files if I actually injected PHP.
Um, why not just escape / encode everything non-alphanumeric? That’s quite the bit easier in my opinion.