Coder Social home page Coder Social logo

pan-saas-cli's Introduction

SaaS-CLI

SaaS-CLI is a utility that interacts with a Palo Alto Networks Firewall to pull the SaaS Application Usage Report and outputs all the discovered SaaS applications which you can then review and tag them as Sanctioned if applicable.

Files contained in this folder:

  • cmd - Contains the application entry point code
  • pkg - Contains multiple packages used by the application (The secret package is not included in this repository for security reasons).
  • saascli-linux - Executable for Linux systems
  • saascli-windows - Executable for Windows systems

Download and Installation

  • For Windows users download the "saascli-windows" executable and rename it by adding a ".exe" extension
  • For Linux users download the "saascli-linux" executable
  • Windows run "saas-cli-windows.exe"
  • Linux run "./saas-cli-linux"
  • For Linux users you might have to give the application executable rights
  • Run saas-cli-your_operating_system -h to list all the supported commands

Optional - Encryption/Decryption Key Details

The executable is packaged with a 32-byte array used to encrypt and decrypt the API key. If you want to change this key and recompile the executable use the following steps. *Install Go (if you don't have it already)

  • Clone the repository
  • Create a secret folder under pkg
  • Create a secret.go file inside the secret folder
  • Create a function that returns a 32-byte array. Example below:
package secret

// Secret: returns a 32 byte array used as the encryption and decryption key. This can be any 32byte array.
func Secret() []byte {
	return []byte("thisshouldbeany32bytearrayyoudig") // CHANGE THIS VALUE TO YOUR OWN VALUE
}
  • Build the executable
env GOOS=target-OS GOARCH=target-architecture go build package-import-path

Example: Linux OS on amd64 Platform

env GOOS=linux GOARCH=amd64 go build -o saascli-linux cmd/saascli.go

pan-saas-cli's People

Contributors

zackmacharia avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

harunaoseni

pan-saas-cli's Issues

[Community Health Assessment] Changes needed

Health Check Pass Score More Info
Contains a meaningful README.md file 20 / 20 More info
SUPPORT.md file exists 20 / 20 More info
Repo has a description 15 / 15 More info
Has a recognized open source license 15 / 15 More info
Has a descriptive repo name 15 / 15 More info
Required topics attached to repo 15 / 15 More info
CONTRIBUTING.md file with contribution guidelines 0 / 5 More info
Has custom issue and pull request templates 0 / 5 More info

Current score: 100
Target threshold: 100
Total possible: 110

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.