Linux tsuru-no-tsurugi 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.0.18 & Your IP : 216.73.216.68
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
elftools /
elf /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2024-08-21 22:43
__init__.py
0
B
-rw-r--r--
2020-10-27 22:42
constants.py
3.71
KB
-rw-r--r--
2020-10-27 22:42
descriptions.py
23.34
KB
-rw-r--r--
2020-10-27 22:42
dynamic.py
13.42
KB
-rw-r--r--
2020-10-27 22:42
elffile.py
31.19
KB
-rw-r--r--
2020-10-27 22:42
enums.py
35.19
KB
-rw-r--r--
2020-10-27 22:42
gnuversions.py
8.19
KB
-rw-r--r--
2020-10-27 22:42
hash.py
7.31
KB
-rw-r--r--
2020-10-27 22:42
notes.py
2.04
KB
-rw-r--r--
2020-10-27 22:42
relocation.py
11.93
KB
-rw-r--r--
2020-10-27 22:42
sections.py
17.26
KB
-rw-r--r--
2020-10-27 22:42
segments.py
4.34
KB
-rw-r--r--
2020-10-27 22:42
structs.py
19.44
KB
-rw-r--r--
2020-10-27 22:42
Save
Rename
#------------------------------------------------------------------------------- # elftools: elf/notes.py # # ELF notes # # Eli Bendersky (eliben@gmail.com) # This code is in the public domain #------------------------------------------------------------------------------- from ..common.py3compat import bytes2str from ..common.utils import struct_parse, roundup from ..construct import CString def iter_notes(elffile, offset, size): """ Yield all the notes in a section or segment. """ end = offset + size while offset < end: note = struct_parse( elffile.structs.Elf_Nhdr, elffile.stream, stream_pos=offset) note['n_offset'] = offset offset += elffile.structs.Elf_Nhdr.sizeof() elffile.stream.seek(offset) # n_namesz is 4-byte aligned. disk_namesz = roundup(note['n_namesz'], 2) note['n_name'] = bytes2str( CString('').parse(elffile.stream.read(disk_namesz))) offset += disk_namesz desc_data = bytes2str(elffile.stream.read(note['n_descsz'])) note['n_descdata'] = desc_data if note['n_type'] == 'NT_GNU_ABI_TAG': note['n_desc'] = struct_parse(elffile.structs.Elf_abi, elffile.stream, offset) elif note['n_type'] == 'NT_GNU_BUILD_ID': note['n_desc'] = ''.join('%.2x' % ord(b) for b in desc_data) elif note['n_type'] == 'NT_PRPSINFO': note['n_desc'] = struct_parse(elffile.structs.Elf_Prpsinfo, elffile.stream, offset) elif note['n_type'] == 'NT_FILE': note['n_desc'] = struct_parse(elffile.structs.Elf_Nt_File, elffile.stream, offset) else: note['n_desc'] = desc_data offset += roundup(note['n_descsz'], 2) note['n_size'] = offset - note['n_offset'] yield note