Пример #1
0
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.
#
import sys

import click
from beautifultable import BeautifulTable

from truegaze.plugins import ACTIVE_PLUGINS
from truegaze.utils import TruegazeUtils


@click.version_option(version=TruegazeUtils.get_version(),
                      prog_name='truegaze')
@click.group()
def cli():
    """
    truegaze - A static analysis tool for Android and iOS applications focusing on security issues
    outside the source code such as resource strings, third party libraries and configuration files.

    Copyright (c) 2019 Nightwatch Cybersecurity.
    Source code: https://github.com/nightwatchcybersecurity/truegaze
    """


@cli.command('list')
def list_plugins():
    """List supported plugins"""
Пример #2
0
from setuptools import find_packages, setup
from truegaze.utils import TruegazeUtils

with open("README.md", "r") as fh:
    long_description = fh.read()

setup(
    name='truegaze',
    version=TruegazeUtils.get_version(),
    description=
    'Static analysis tool for Android/iOS apps focusing on security issues outside the source code.',
    long_description=long_description,
    long_description_content_type="text/markdown",
    url='https://github.com/nightwatchcybersecurity/truegaze',
    author='Nightwatch Cybersecurity',
    author_email='*****@*****.**',
    license='Apache',
    packages=find_packages(
        exclude=["scripts.*", "scripts", "tests.*", "tests"]),
    include_package_data=True,
    install_requires=open('requirements.txt').read().splitlines(),
    entry_points={'console_scripts': ['truegaze = truegaze.cli:cli']},
    classifiers=[
        'Environment :: Console',
        'Development Status :: 3 - Alpha',
        'License :: OSI Approved :: Apache Software License',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
    ],
    python_requires='>=3.6',
Пример #3
0
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.
#
import sys

import click
from beautifultable import BeautifulTable

from truegaze.plugins import ACTIVE_PLUGINS
from truegaze.utils import TruegazeUtils


@click.version_option(version=TruegazeUtils.get_version(), prog_name='truegaze')
@click.group()
def cli():
    """
    truegaze - A static analysis tool for Android and iOS applications focusing on security issues
    outside the source code such as resource strings, third party libraries and configuration files.

    Copyright (c) 2019 Nightwatch Cybersecurity.
    Source code: https://github.com/nightwatchcybersecurity/truegaze
    """


@cli.command('list')
def list_plugins():
    """List supported plugins"""
    click.echo("Total active plugins: " + str(len(ACTIVE_PLUGINS)))
Пример #4
0
 def test_format_valid(self):
     pattern = re.compile(r'^(\d+\.)?(\d+\.)?(\*|\d+)$')
     assert pattern.match(TruegazeUtils.get_version()) is not None