[−][src]Struct checksec::macho::MachOCheckSecResults
Checksec result struct for MachO32/64 binaries
Example
use checksec::macho::MachOCheckSecResults; use goblin::mach::MachO; use std::fs; pub fn print_results(binary: &String) { if let Ok(fp) = fs::File::open(&binary) { if let Ok(buf) = fs::read(fp) { if let Ok(macho) = MachO::parse(&buf) { println!("{:#?}", MachOCheckSecResults::parse(&macho)); } } } }
Fields
arc: bool
Automatic Reference Counting
canary: bool
Stack Canary
code_signature: bool
Code Signature (codesign)
encrypted: bool
Encrypted (LC_ENCRYPTION_INFO/LC_ENCRYPTION_INFO_64)
nx_heap: bool
Non-Executable Heap (MH_NO_HEAP_EXECUTION)
nx_stack: bool
Non-Executable Stack (MH_ALLOW_STACK_EXECUTION)
pie: bool
Position Independent Executable (MH_PIE)
restrict: bool
Restrict segment
rpath: bool
Load Command @rpath
Methods
impl MachOCheckSecResults
[src]
pub fn parse(macho: &MachO) -> MachOCheckSecResults
[src]
Trait Implementations
impl Debug for MachOCheckSecResults
[src]
impl<'de> Deserialize<'de> for MachOCheckSecResults
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for MachOCheckSecResults
[src]
impl Serialize for MachOCheckSecResults
[src]
Auto Trait Implementations
impl RefUnwindSafe for MachOCheckSecResults
impl Send for MachOCheckSecResults
impl Sync for MachOCheckSecResults
impl Unpin for MachOCheckSecResults
impl UnwindSafe for MachOCheckSecResults
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,