update to wesng-1.0.2.1

This commit is contained in:
sthen 2022-11-25 19:29:25 +00:00
parent 403886751d
commit 1b093447a2
5 changed files with 40 additions and 78 deletions

View File

@ -1,11 +1,13 @@
COMMENT= Windows Exploit Suggester - Next Generation
MODPY_EGG_VERSION = 0.98
GH_COMMIT = 07ac559c1f63c0db0324a54713e078d5f26afd57
GH_PROJECT = wesng
GH_ACCOUNT = bitsadmin
MODPY_EGG_VERSION= 1.0.2.1
DISTNAME= wesng-${MODPY_EGG_VERSION}
REVISION = 2
# definitions.zip isn't in the pypi release, and is updated frequently;
# fetch it from upstream's github repo instead
DEF_DATE= 20221123
DEF_COMMITHASH= 2834f8e925d1f3ea7ff7de2dad6d7d4155f0fa00
HOMEPAGE= https://github.com/bitsadmin/wesng
CATEGORIES= security
@ -13,20 +15,23 @@ CATEGORIES = security
PERMIT_PACKAGE= Yes
MODULES= lang/python
MODPY_PI= yes
MODPY_PYBUILD= setuptools
MODPY_SETUPTOOLS = Yes
RUN_DEPENDS= textproc/py-chardet${MODPY_FLAVOR} \
graphics/py-termcolor${MODPY_FLAVOR}
RUN_DEPENDS = textproc/py-chardet${MODPY_FLAVOR}
# https://github.com/bitsadmin/wesng/pull/12
post-extract:
cp ${FILESDIR}/setup.py ${WRKSRC}
DISTFILES= ${DISTNAME}.tar.gz \
definitions-${DEF_DATE}{definitions}.zip:0
MASTER_SITES0= https://github.com/bitsadmin/wesng/raw/${DEF_COMMITHASH}/
EXTRACT_ONLY= ${DISTNAME}.tar.gz
pre-configure:
${SUBST_CMD} ${WRKSRC}/wes.py
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/wesng/
${INSTALL_DATA} ${WRKSRC}/*.zip ${PREFIX}/share/wesng/
${INSTALL_DATA} ${FULLDISTDIR}/definitions-${DEF_DATE}.zip \
${PREFIX}/share/wesng/definitions.zip
.include <bsd.port.mk>

View File

@ -1,2 +1,4 @@
SHA256 (wesng-0.98-07ac559c.tar.gz) = a5WjjfMVdrHYliUi8JcPmqqE4PAnAvDeE/RiYZiLvcU=
SIZE (wesng-0.98-07ac559c.tar.gz) = 1672088
SHA256 (definitions-20221123.zip) = yQjhNlGH03WVPlKVb89Z4jDnxHFwXS8vF6D0xRhCxgU=
SHA256 (wesng-1.0.2.1.tar.gz) = WnKSMwrenaSk9BTWyXCq75sEf/jN+l1c2iPRKlhsLMo=
SIZE (definitions-20221123.zip) = 1905786
SIZE (wesng-1.0.2.1.tar.gz) = 19892

View File

@ -1,50 +0,0 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
from setuptools import setup
from os import path
from io import open
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='wesng',
version='0.95',
description='WES-NG is a tool based on the output of Windows\' systeminfo'
' utility which provides the list of vulnerabilities the OS is vulnerable'
' to, including any exploits for these vulnerabilities.',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/bitsadmin/wesng',
author='Arris Huijgen (@bitsadmin)',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Topic :: Security',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
py_modules=["wes"],
python_requires='>=3.4',
install_requires=['chardet'],
package_data={
'CVE': ['CVE.zip'],
},
entry_points={
'console_scripts': [
'wes=wes:main',
],
},
project_urls={ # Optional
'Bug Reports': 'https://github.com/bitsadmin/wesng/issues',
'Source': 'https://github.com/bitsadmin/wesng/',
},
)

View File

@ -3,7 +3,7 @@
Index: wes.py
--- wes.py.orig
+++ wes.py
@@ -232,7 +232,7 @@ def main():
@@ -354,7 +354,7 @@ def main():
# Load definitions.zip containing a CSV with vulnerabilities collected by the WES collector module
# and a file determining the minimum wes.py version the definitions are compatible with.
def load_definitions(definitions):
@ -12,7 +12,7 @@ Index: wes.py
files = definitionszip.namelist()
# Version_X.XX.txt
@@ -684,7 +684,7 @@ def check_file_exists(value):
@@ -865,7 +865,7 @@ def check_file_exists(value):
# Validate file existence for definitions file
def check_definitions_exists(value):

View File

@ -1,12 +1,17 @@
bin/wes
lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}muc_lookup.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}muc_lookup.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}wes.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}wes.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/muc_lookup.py
lib/python${MODPY_VERSION}/site-packages/wes.py
lib/python${MODPY_VERSION}/site-packages/wesng-0.95-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/wesng-0.95-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/wesng-0.95-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/wesng-0.95-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/wesng-0.95-py${MODPY_VERSION}.egg-info/entry_points.txt
lib/python${MODPY_VERSION}/site-packages/wesng-0.95-py${MODPY_VERSION}.egg-info/requires.txt
lib/python${MODPY_VERSION}/site-packages/wesng-0.95-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/wesng-${MODPY_EGG_VERSION}.dist-info/
lib/python${MODPY_VERSION}/site-packages/wesng-${MODPY_EGG_VERSION}.dist-info/LICENSE.txt
lib/python${MODPY_VERSION}/site-packages/wesng-${MODPY_EGG_VERSION}.dist-info/METADATA
lib/python${MODPY_VERSION}/site-packages/wesng-${MODPY_EGG_VERSION}.dist-info/RECORD
lib/python${MODPY_VERSION}/site-packages/wesng-${MODPY_EGG_VERSION}.dist-info/WHEEL
lib/python${MODPY_VERSION}/site-packages/wesng-${MODPY_EGG_VERSION}.dist-info/entry_points.txt
lib/python${MODPY_VERSION}/site-packages/wesng-${MODPY_EGG_VERSION}.dist-info/top_level.txt
share/wesng/
share/wesng/definitions.zip