Skip to content

Commit

Permalink
Improves detection for masscan (#7674)
Browse files Browse the repository at this point in the history
* Improves detection for masscan

ref #7673

* Change regex
  • Loading branch information
liviuconcioiu authored May 10, 2024
1 parent 413436d commit 5b9cac1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
6 changes: 0 additions & 6 deletions Tests/Parser/Client/fixtures/library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -653,12 +653,6 @@
type: library
name: httprs
version: 0.1.0
-
user_agent: ivre-masscan/1.3 https://github.com/robertdavidgraham/
client:
type: library
name: masscan
version: "1.3"
-
user_agent: Boto3/1.17.18 Python/3.8.5 Darwin/19.6.0 Botocore/1.20.18
client:
Expand Down
9 changes: 9 additions & 0 deletions Tests/fixtures/bots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7549,6 +7549,15 @@
name: Castopod
category: Crawler
url: https://www.castopod.org/
-
user_agent: ivre-masscan/1.3 https://github.com/robertdavidgraham/
bot:
name: masscan
url: https://github.com/robertdavidgraham/masscan
category: Crawler
producer:
name: Robert Graham
url: https://github.com/robertdavidgraham
-
user_agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GeedoProductSearch; +http://www.geedo.com/product-search.html) Chrome/79.0.3945.88 Safari/537.36
bot:
Expand Down
2 changes: 1 addition & 1 deletion regexes/bots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@
name: 'BIZON, OOO'
url: 'https://bi.zone/'

- regex: 'masscan'
- regex: '.*masscan'
name: 'masscan'
url: 'https://github.com/robertdavidgraham/masscan'
category: 'Crawler'
Expand Down
5 changes: 0 additions & 5 deletions regexes/client/libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -607,11 +607,6 @@
version: '$1'
url: 'https://github.com/http-server-rs/http-server'

- regex: 'ivre-masscan(?:/(\d+[\.\d]+))?'
name: 'masscan'
version: '$1'
url: 'https://github.com/robertdavidgraham/masscan'

- regex: 'Boto3(?:/(\d+[\.\d]+))?'
name: 'Boto3'
version: '$1'
Expand Down

0 comments on commit 5b9cac1

Please sign in to comment.