Jump to content

permissions change -


arfa

Recommended Posts

I have a hacker on/in my site and the trick seems to be to change permissions on various files.

 

Obviously I need to fix the hole and eject the hacker but, in the meantime I am having trouble resetting permissions.

 

The file(s)/dirs in question are owner www-data [as opposed to ftpweb or base owner]

I have tried resetting perms using:

- my ftp client - no!

- Using a backdoor chmod app on the same server within the same root - no!

- A small php script chmod.php I wrote:

 

<?php
echo "<form action=chmod.php method=POST>
        <input type=text name=path size=50>
        <input type=submit value=CHMOD>";

if (isset($_POST['path'])) { $path = $_POST['path'];  
chmod($path,0755);
echo $path;
unset($_POST['path'],$path); }
?>

I have this installed in the dir above the dir I want to change and have tried both absolute and relative paths. No change. Is there something missing in this code or is there an alternative.

The directories have been changed to: 40700 - drwx------

 

GRrrrrrrr..... and other frustrated emoticons.

 

Any suggestions?

 

thanks - arfa

Link to comment
https://forums.phpfreaks.com/topic/181599-permissions-change/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.