Skip to content

Commit 40baa26

Browse files
committed
pwn_bdba_scan Driver - #bugfix when looking for parent id of file name that contains non-conforming HTTP chars (e.g. SPACES)
1 parent 2ab04b9 commit 40baa26

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ gem 'aws-sdk', '3.1.0'
1818
# gem 'bettercap', '1.6.2'
1919
gem 'brakeman', '6.0.0'
2020
gem 'bson', '4.15.0'
21-
gem 'bundler', '>=2.4.15'
21+
gem 'bundler', '>=2.4.16'
2222
gem 'bundler-audit', '0.9.1'
2323
gem 'bunny', '2.22.0'
2424
gem 'colorize', '1.1.0'

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $ rvm use ruby-3.2.2@pwn
3737
$ rvm list gemsets
3838
$ gem install --verbose pwn
3939
$ pwn
40-
pwn[v0.4.788]:001 >>> PWN.help
40+
pwn[v0.4.789]:001 >>> PWN.help
4141
```
4242

4343
[![Installing the pwn Security Automation Framework](https://raw.githubusercontent.com/0dayInc/pwn/master/documentation/pwn_install.png)](https://youtu.be/G7iLUY4FzsI)
@@ -52,7 +52,7 @@ $ rvm use ruby-3.2.2@pwn
5252
$ gem uninstall --all --executables pwn
5353
$ gem install --verbose pwn
5454
$ pwn
55-
pwn[v0.4.788]:001 >>> PWN.help
55+
pwn[v0.4.789]:001 >>> PWN.help
5656
```
5757

5858

bin/pwn_bdba_scan

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env ruby
22
# frozen_string_literal: false
33

4+
require 'cgi'
45
require 'optparse'
56
require 'pwn'
67
require 'yaml'
@@ -101,7 +102,7 @@ begin
101102
break if scan_progress_resp[:products].none? { |p| p[:status] == 'B' }
102103
end
103104

104-
product_id = scan_progress_resp[:products].find { |p| p[:name] == File.basename(target_file) }[:product_id]
105+
product_id = scan_progress_resp[:products].find { |p| p[:name] == File.basename(CGI.escape(target_file)) }[:product_id]
105106

106107
scan_report_resp = PWN::Plugins::BlackDuckBinaryAnalysis.generate_product_report(
107108
token: token,

lib/pwn/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module PWN
4-
VERSION = '0.4.788'
4+
VERSION = '0.4.789'
55
end

0 commit comments

Comments
 (0)