예제 #1
0
class Command():
    """
    """
    def __init__(self):
        """
        """
        self.go = GoLang()
        self.npm = NodeJs()
        self.java = Java()

    def run_command(self, cmd_name: str, repo: str):
        """
        """
        if cmd_name is "spotbugs":
            return self.java.project_build(repo)
        elif cmd_name is "gosec":
            return self.go.gosec(repo)
        elif cmd_name is "npm_audit":
            return self.npm.npm_audit(repo)
예제 #2
0
파일: main.py 프로젝트: 5l1v3r1/Patronus
from config.config import Config
from core.sast.java import Java
import multiprocessing
import datetime
import requests
import logging
import shutil
import uuid
import time
import json
import os


mrc = MyRemoteCallbacks()
config = Config()
java = Java()
dc = DependencyCheck()
go = GoLang()
node = NodeJs()
repos = mrc.scan_repos()
command = Command()
const = Constants()
gp = Gosecparser()
fsbp = Fsbparser()
dcp = Dependencycheckparser()
np = Npmauditparser()
utils = Utils()

java_repos = []
go_repos = []
node_repos = []
예제 #3
0
	def __init__(self):
		self.java = Java()
		self.utils = Utils()
		self.config = Config()
예제 #4
0
 def __init__(self):
     """
     """
     self.go = GoLang()
     self.npm = NodeJs()
     self.java = Java()