OWASP: OWASP Dependency-Check install and usage 安裝與使用說明

17 篇文章 0 订阅
3 篇文章 0 订阅

Variables

envversion
VM virtualboxUbuntu 24.04

How to install OWASP Dependency-Check

JAVA Installation

same and simpile as ussuall

$ sudo apt update
$ sudo apt install default-jre
$ java -version
openjdk version "21.0.4" 2024-07-16
OpenJDK Runtime Environment (build 21.0.4+7-Ubuntu-1ubuntu224.04)
OpenJDK 64-Bit Server VM (build 21.0.4+7-Ubuntu-1ubuntu224.04, mixed mode, sharing)
$ sudo apt install default-jdk
$ javac -version
javac 21.0.4

yarn Installation

$ sudo apt update 
$ sudo apt install curl

Import Yarn GPG keys and enable Yarn repo

$ curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
$ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
$ sudo apt install yarn

npm

$ sudo apt install npm
$ sudo npm install -g n
// install NodeJs 14.21.3
$ sudo n 14.21.3

NET 8.0 Installation

$ sudo apt-get update && sudo apt-get install -y dotnet-sdk-8.0

Download Dependency-check and install

github: DependencyCheck Version 10.0.3
all usage

$ sudo unzip dependency-check
$ cd dependency-check/bin
$ sudo update-alternatives --install /usr/bin/dependency-check.sh dependency-check dependency-check/bin/dependency-check.sh 1

How to run dependency-check

dependency-check can be used Before Compilation and After Compilation

Generate Report

$ dependency-check.sh -s <Source code Path> -o <Report_Output_Path> --project <Report_Name> --zipExtensions "rpm,gz,zip,tgz,tar" 

Reference

  1. https://techdirectarchive.com/2022/09/28/how-to-install-and-uninstall-yarn-on-a-linux-ubuntu-system/
  2. DependencyCheck Version 10.0.3
  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值