Skip to content

Commit

Permalink
fix up clap app descriptions, and release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
junnlikestea committed Jul 1, 2020
1 parent f340ee4 commit c4802e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ jobs:

- name: Strip release binary (linux and macos)
if: matrix.build == 'linux' || matrix.build == 'macos'
run: strip "target/${{ matrix.target }}/release/bulkssrf"
run: strip "target/${{ matrix.target }}/release/bssrf"

- name: Build archive
shell: bash
Expand All @@ -151,11 +151,11 @@ jobs:
mkdir -p "$staging"/
if [ "${{ matrix.os }}" = "windows-2019" ]; then
cp "target/${{ matrix.target }}/release/bulkssrf.exe" "$staging/"
cp "target/${{ matrix.target }}/release/bssrf.exe" "$staging/"
7z a "$staging.zip" "$staging"
echo "::set-env name=ASSET::$staging.zip"
else
cp "target/${{ matrix.target }}/release/bulkssrf" "$staging/"
cp "target/${{ matrix.target }}/release/bssrf" "$staging/"
tar czf "$staging.tar.gz" "$staging"
echo "::set-env name=ASSET::$staging.tar.gz"
fi
Expand Down
8 changes: 4 additions & 4 deletions src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@ async fn main() -> Result<()> {
urls = read_stdin()?;
}

run(urls, location.to_string(), timeout, verbose).await;
run(urls, location.to_owned(), timeout, verbose).await;
Ok(())
}

fn create_clap_app(version: &str) -> clap::App {
// Add support to not include subdomains.
App::new("rs")
App::new("bssrf")
.version(version)
.about(
"Test for SSRF by injecting a location into headers.
This is a Rust port of m4ll0k's python script.",
)
.usage("rs <urls> -l <location> or rs -l <location>")
.usage("bssrf -f <urls.txt> -l <location.com>")
.arg(Arg::with_name("input").index(1).required(false))
.arg(
Arg::with_name("file")
.help("rs -f <urls.txt> -l <location>")
.help("bssrf -f <urls.txt> -l <location.com>")
.short("f")
.long("file"),
)
Expand Down

0 comments on commit c4802e2

Please sign in to comment.