Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Read file with different permissions.

i.php is my shell.
https://i.imgur.com/MP04Gvv.png

I want to read flag.php
https://i.imgur.com/7ttn4LU.png

How can I do that? If I try to access it directly, I get Permision denied (/flag.txt)!

Thanks a lot!
Did You Try To Create Symlink or Hardlink?
(Oct 19, 2014 08:39 AM)iHacker-n00b Wrote:  Did You Try To Create Symlink or Hardlink?

Just did and it doesn't work...
Any other ideas?
(Oct 19, 2014 10:11 AM)Jon Snow Wrote:  Just did and it doesn't work...
Any other ideas?

Yea How about trying privilege escalation?? 🤭 http://www.exploit-db.com/exploits/33824/
You could try using this code;
PHP Code

<?
include /path/to/flag.txt;
?>

Then view the page source, I've used this trick to read a few config files before.

You could also try copying the contents to a new file;
PHP Code

<?
echo copy("flag.txt","flagnew.txt");
?>

~Sky 🤝


Possibly Related Threads...
Thread / Author Replies Views Last Post
by shddcfNov 30, 2017 12:15 AM 0 195 Nov 30, 2017 12:15 AM
Last Post: shddcf
by DynamicDunceOct 12, 2016 01:12 AM 1 127 Oct 12, 2016 01:12 AM
Last Post: 8lue7ornado
by Area MasterOct 22, 2015 07:03 PM 3 198 Oct 22, 2015 07:03 PM
Last Post: Area Master