Skip to content

Commit 2c6d688

Browse files
committed
updated crates
1 parent be58fa3 commit 2c6d688

File tree

4 files changed

+41
-22
lines changed

4 files changed

+41
-22
lines changed

Cargo.lock

+34-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ropgadget-rs"
3-
version = "0.3.1"
3+
version = "0.4.0"
44
authors = ["hugsy <[email protected]>"]
55
edition = "2018"
66
description = "Another (bad) ROP gadget finder"
@@ -11,9 +11,9 @@ license = "MIT"
1111
keywords = ["pwn", "ctf", "x64", "x86", "arm", "arm64"]
1212

1313
[dependencies]
14-
goblin = "0.6.0"
14+
goblin = "0.8.0"
1515
capstone = "0.11.0"
1616
clap = { version = "4.0.29", features = ["derive"] }
1717
colored = "2"
18-
bitflags = "1.2.1"
19-
log = {version = "0.4.11", features = ["std",]}
18+
bitflags = "2.4.2"
19+
log = { version = "0.4.11", features = ["std"] }

src/format/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,6 @@ pub fn guess_file_format(file: &PathBuf) -> GenericResult<Box<dyn ExecutableForm
6464
Object::Mach(obj) => Ok(Box::new(mach::Mach::new(file.to_path_buf(), obj))),
6565
Object::Archive(_) => Err(Error::InvalidFileError),
6666
Object::Unknown(_) => Err(Error::InvalidFileError),
67+
_ => panic!(),
6768
}
6869
}

src/section.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
use std::fmt;
22

33
bitflags! {
4+
#[derive(Debug)]
45
pub struct Permission: u8
56
{
67
const NONE = 0;
78
const READABLE = 1;
89
const WRITABLE = 2;
910
const EXECUTABLE = 4;
10-
const ALL = Self::READABLE.bits | Self::WRITABLE.bits | Self::EXECUTABLE.bits;
11+
const ALL = Self::READABLE.bits() | Self::WRITABLE.bits() | Self::EXECUTABLE.bits();
1112
}
1213
}
1314

0 commit comments

Comments
 (0)