Ejemplo n.º 1
0
def vulnerable_pkg1():
    pkg = ImagePackage()
    pkg.image_id = "image1"
    pkg.image_user_id = "admin"
    pkg.name = "pkg1"
    pkg.normalized_src_pkg = "pkg1"
    pkg.version = "0:1.0.el8"
    pkg.fullversion = "0:1.0.el8"
    pkg.release = None
    pkg.pkg_type = "RPM"
    pkg.distro_name = "rhel"
    pkg.distro_version = "8"
    pkg.like_distro = "RHEL"
    pkg.arch = "amd64"
    pkg.pkg_path = "rpmdb"
    return pkg
Ejemplo n.º 2
0
def vulnerable_pkg1():
    pkg = ImagePackage()
    pkg.image_id = 'image1'
    pkg.image_user_id = 'admin'
    pkg.name = 'pkg1'
    pkg.normalized_src_pkg = 'pkg1'
    pkg.version = '0:1.0.el8'
    pkg.fullversion = '0:1.0.el8'
    pkg.release = None
    pkg.pkg_type = 'RPM'
    pkg.distro_name = 'rhel'
    pkg.distro_version = '8'
    pkg.like_distro = 'rhel'
    pkg.arch = 'amd64'
    pkg.pkg_path = 'rpmdb'
    return pkg
Ejemplo n.º 3
0
def vulnerable_semver_pkg2():
    pkg = ImagePackage()
    pkg.image_id = "image1"
    pkg.image_user_id = "admin"
    pkg.name = "semverpkg1"
    pkg.normalized_src_pkg = "semverpkg1"
    pkg.version = "2.2.0"
    pkg.fullversion = "2.2.0"
    pkg.release = None
    pkg.pkg_type = "npm"
    pkg.distro_name = "npm"
    pkg.distro_version = "N/A"
    pkg.like_distro = "npm"
    pkg.arch = "amd64"
    pkg.pkg_path = "/app/myapp2/package.json"
    return pkg
def vulnerable_semver_pkg2():
    pkg = ImagePackage()
    pkg.image_id = 'image1'
    pkg.image_user_id = 'admin'
    pkg.name = 'semverpkg1'
    pkg.normalized_src_pkg = 'semverpkg1'
    pkg.version = '2.2.0'
    pkg.fullversion = '2.2.0'
    pkg.release = None
    pkg.pkg_type = 'npm'
    pkg.distro_name = 'npm'
    pkg.distro_version = 'N/A'
    pkg.like_distro = 'npm'
    pkg.arch = 'amd64'
    pkg.pkg_path = '/app/myapp2/package.json'
    return pkg