![]() |
miasm
Reverse engineering framework
|


Public Member Functions | |
| def | __init__ (self, base_path, linux_env) |
| def | resolve_path (self, path, follow_link=True) |
| def | get_path_inode (self, real_path) |
| def | exists (self, path) |
| def | readlink (self, path) |
| def | statfs (self) |
| def | getattr_ (self, path, follow_link=True) |
| def | open_ (self, path, flags, follow_link=True) |
Public Attributes | |
| base_path | |
| linux_env | |
| passthrough | |
| path_to_inode | |
Static Public Attributes | |
| int | device_id = 0x1234 |
| int | blocksize = 0x1000 |
| int | f_type = 0xef53 |
| int | nb_total_block = 0x1000 |
| int | nb_free_block = 0x100 |
| int | nb_avail_block = nb_free_block |
| int | nb_total_fnode = 100 |
| int | nb_free_fnode = 50 |
| int | max_filename_len = 256 |
| int | fragment_size = 0 |
| int | mount_flags = 0 |
File system abstraction Provides standard operations on the filesystem, (a bit like FUSE) API using FileSystem only used sandbox-side path. FileSystem should be the only object able to interact with real path, outside the sandbox. Thus, if `resolve_path` is correctly implemented and used, it should not be possible to modify files outside the sandboxed path
| def miasm.os_dep.linux.environment.FileSystem.__init__ | ( | self, | |
| base_path, | |||
| linux_env | |||
| ) |
| def miasm.os_dep.linux.environment.FileSystem.exists | ( | self, | |
| path | |||
| ) |

| def miasm.os_dep.linux.environment.FileSystem.get_path_inode | ( | self, | |
| real_path | |||
| ) |

| def miasm.os_dep.linux.environment.FileSystem.getattr_ | ( | self, | |
| path, | |||
follow_link = True |
|||
| ) |

| def miasm.os_dep.linux.environment.FileSystem.open_ | ( | self, | |
| path, | |||
| flags, | |||
follow_link = True |
|||
| ) |


| def miasm.os_dep.linux.environment.FileSystem.readlink | ( | self, | |
| path | |||
| ) |

| def miasm.os_dep.linux.environment.FileSystem.resolve_path | ( | self, | |
| path, | |||
follow_link = True |
|||
| ) |
Resolve @path to the corresponding sandboxed path


| def miasm.os_dep.linux.environment.FileSystem.statfs | ( | self | ) |
| miasm.os_dep.linux.environment.FileSystem.base_path |
|
static |
|
static |
|
static |
|
static |
| miasm.os_dep.linux.environment.FileSystem.linux_env |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| miasm.os_dep.linux.environment.FileSystem.passthrough |
| miasm.os_dep.linux.environment.FileSystem.path_to_inode |