✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ premium290.web-hosting.com ​🇻​♯➤ 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 63.250.38.37 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.217.51
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/utils//chattr.py
"""
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.


This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
See the GNU General Public License for more details.


You should have received a copy of the GNU General Public License
 along with this program.  If not, see <https://www.gnu.org/licenses/>.

Copyright © 2019 Cloud Linux Software Inc.

This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>

 chattr.py
This is a module for managing file attributes via ioctl.
Used IOCTL request constants:
    FS_IOC_GETFLAGS - get fs flags
    FS_IOC_SETFLAGS - set fs flags
Supported attributes:
    FS_IMMUTABLE_FL - immutable attribute
Refer to include/linux/fs.h for values of above constants:
https://elixir.bootlin.com/linux/v2.6.32.71/source/include/linux/fs.h
"""

import sys
from array import array
from fcntl import ioctl

# IOCTL requests
FS_IOC_SETFLAGS = 0x40086602
FS_IOC_GETFLAGS = 0x80086601

# File attribute flags
FS_IMMUTABLE_FL = 0x00000010


def get_flags(fd):
    """Get attributes of a file.
    :param fd: descriptor of a file to examine, read-only access is enough
    :return: flags as integer value
    """
    flags_ptr = array("i", [0])
    ioctl(fd, FS_IOC_GETFLAGS, flags_ptr, 1)
    return int.from_bytes(flags_ptr, byteorder=sys.byteorder)


def _set_flags(fd, flags):
    """Replace existing file attributes with the ones provided.
    Calling _set_flags() directly is most likely NOT what you want. Consider
     using append_flags() and subtract_flags().
    :param fd: descriptor of a file to modify, read-only access is enough
    :param flags: attribute flags combined by bitwise OR operator |
    """
    flags_ptr = array("i", [flags])
    ioctl(fd, FS_IOC_SETFLAGS, flags_ptr)


def append_flags(fd, flags):
    """Enable given attributes of a file. See _set_flags() for details."""
    new_flags = get_flags(fd) | flags
    _set_flags(fd, new_flags)


def subtract_flags(fd, flags):
    """Disable given attributes of a file. See _set_flags() for details."""
    new_flags = get_flags(fd) & ~flags
    _set_flags(fd, new_flags)


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
8 Jun 2026 8.24 PM
root / root
0755
__pycache__
--
8 Jun 2026 8.24 PM
root / root
0755
__init__.py
2.025 KB
26 May 2026 9.31 PM
root / root
0644
chattr.py
2.389 KB
26 May 2026 9.31 PM
root / root
0644
check_file.py
2.428 KB
26 May 2026 9.31 PM
root / root
0644
cloudways.py
2.505 KB
26 May 2026 9.31 PM
root / root
0644
crontab.py
20.314 KB
26 May 2026 9.31 PM
root / root
0644
endpoints.py
1.004 KB
26 May 2026 9.31 PM
root / root
0644
malware_response.py
16.247 KB
26 May 2026 9.31 PM
root / root
0644
revisium.py
4.17 KB
26 May 2026 9.31 PM
root / root
0644
submit.py
2.102 KB
26 May 2026 9.31 PM
root / root
0644
user_list.py
13.415 KB
26 May 2026 9.31 PM
root / root
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF