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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.