Skip to content

alex-nightvision/nightvision-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nightvision-cli

Containerized nightvision CLI for running API Envy Swagger Extraction on windows.

example use

# clone vulny app
git clone https://github.com/nvsecurity/java-github-actions-demo.git
cd java-github-actions-demo/

# log in through local cli to produce a token
nightvision login

# start the nightvision-cli container with the cli ready to go 
# and access to the local codebase of "java-github-actions-demo"
docker run -v $(pwd):/mnt -it --env "NIGHTVISION_TOKEN=$(nightvision token create)" --network="host" alexnightvision/nightvision-cli

# create an app and target if none exist
URL="https://localhost:9000"
APP="javaspringvulny-api"
nightvision app create -n $APP
nightvision target create -n $APP -u $URL --type api

# extract swagger openapi-spec.yml that will appear in the local development environment and container
nightvision swagger extract ./ -t $APP --lang spring

Example use for a full scan from cli

docker run -v $(pwd):/mnt \
	--env "NIGHTVISION_TOKEN=$NIGHTVISION_TOKEN" \
	--network="host" \
	alexnightvision/nightvision-cli \
	nightvision scan -t javaspringvulny-api -a javaspringvulny-api --auth javaspringvulny-api

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%