Skip to content

Commit

Permalink
WRN-2239: WRN-2239: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasAubry committed Apr 12, 2018
1 parent 9f6739f commit 1db9ea0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ python -m openwebvulndb.common find_unclosed_vulnerabilities --filter popular
# Regenerate the Vane WordPress Scanner vulnerability data
python -m openwebvulndb.wordpress vane_export -i ~/vane/data/
# Export the Vane 2.0 WordPress Scanner vulnerability data.
# Add Vane 2 data as an asset of a release on the GitHub repository configured in the virtual environment.
# With no argument, the data will be added to the latest release. To create a new release for the data,
# use the --create-release option, specify the version with --release-version.
# --target-commitish can be ignored for now, as the default is master.
python -m openwebvulndb.wordpress vane2_export [--create-release] [--target-commitish branch|tag|commit]
[--release-version version]
# Re-load CVE data
python -m openwebvulndb.wordpress load_cve
Expand All @@ -54,8 +62,12 @@ python -m openwebvulndb.wordpress list_plugins
python -m openwebvulndb.wordpress list_themes
# Populate versions (takes a really long time, but you can stop at any point)
# - Searches through repositories for new versions and populate file hashes
python -m openwebvulndb.wordpress populate_versions
# Searches through repositories updated in the last 30 days and populate versions file hashes.
# --interval is used to change the default value of 30 days. -w or --wp-only only update WordPress core versions.
python -m openwebvulndb.wordpress populate_versions [--interval days] [-w | --wp-only]
# Fetch the latest vulnerabilities about WordPress on Security Focus and update the vulnerability database.
python -m openwebvulndb.wordpress update_securityfocus_database
```

# License
Expand Down
2 changes: 1 addition & 1 deletion openwebvulndb/wordpress/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def change_version_format(storage):
help="Cached input file")
parser.add_argument("--create-release", dest="create_release", action="store_true", help="Create a new GitHub release")
parser.add_argument("--target-commitish", dest="target_commitish", help="Branch name or SHA number of the commit used "
"for the new release")
"for the new release", default="master")
parser.add_argument("--release-version", dest="release_version", help="print version of the new release")
parser.add_argument("--interval", dest="interval", help="The interval in days since the last update of plugins and "
"themes versions. 30 days by default", default=30, type=int)
Expand Down

0 comments on commit 1db9ea0

Please sign in to comment.