schemas.zgrab2 -> zgrab2_schemas

This commit is contained in:
Justin Bastress 2018-05-04 11:15:09 -04:00
parent 6836299bfb
commit 1e4ec64650
70 changed files with 22 additions and 26 deletions

@ -4,7 +4,7 @@ from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__)) here = os.path.abspath(os.path.dirname(__file__))
setup( setup(
name="zgrab2-schemas", name="zgrab2_schemas",
version="0.0.1", version="0.0.1",
description="ZSchema definitions for zgrab2's JSON output.", description="ZSchema definitions for zgrab2's JSON output.",
classifiers=[ classifiers=[
@ -15,11 +15,7 @@ setup(
author_email="team@zmap.io", author_email="team@zmap.io",
url="https://github.com/zmap/zgrab2", url="https://github.com/zmap/zgrab2",
keywords="zmap censys zgrab2 internet-wide scanning", keywords="zmap censys zgrab2 internet-wide scanning",
# packages=["schemas/zgrab2"],
packages=find_packages(), packages=find_packages(),
include_package_data=True, include_package_data=True,
zip_safe=False, zip_safe=False
install_requires = [
"zschema"
],
) )

@ -4,7 +4,7 @@ from zschema.leaves import *
from zschema.compounds import * from zschema.compounds import *
import zschema.registry import zschema.registry
import schemas.zcrypto import zcrypto_schemas
import zgrab2 import zgrab2
bacnet_scan_response = SubRecord({ bacnet_scan_response = SubRecord({

@ -4,7 +4,7 @@ from zschema.leaves import *
from zschema.compounds import * from zschema.compounds import *
import zschema.registry import zschema.registry
import schemas.zcrypto import zcrypto_schemas.zcrypto as zcrypto
import zgrab2 import zgrab2
dnp3_scan_response = SubRecord({ dnp3_scan_response = SubRecord({

@ -4,7 +4,7 @@ from zschema.leaves import *
from zschema.compounds import * from zschema.compounds import *
import zschema.registry import zschema.registry
import schemas.zcrypto import zcrypto_schemas.zcrypto as zcrypto
import zgrab2 import zgrab2
fox_scan_response = SubRecord({ fox_scan_response = SubRecord({

@ -4,7 +4,7 @@ from zschema.leaves import *
from zschema.compounds import * from zschema.compounds import *
import zschema.registry import zschema.registry
import schemas.zcrypto import zcrypto_schemas.zcrypto as zcrypto
import zgrab2 import zgrab2
# modules/ftp.go - FTPScanResults # modules/ftp.go - FTPScanResults

@ -4,7 +4,7 @@ from zschema.leaves import *
from zschema.compounds import * from zschema.compounds import *
import zschema.registry import zschema.registry
import schemas.zcrypto import zcrypto_schemas.zcrypto as zcrypto
import zgrab2 import zgrab2
# lib/http/header.go: knownHeaders # lib/http/header.go: knownHeaders

@ -4,7 +4,7 @@ from zschema.leaves import *
from zschema.compounds import * from zschema.compounds import *
import zschema.registry import zschema.registry
import schemas.zcrypto import zcrypto_schemas.zcrypto as zcrypto
import zgrab2 import zgrab2
imap_scan_response = SubRecord({ imap_scan_response = SubRecord({

@ -4,7 +4,7 @@ from zschema.leaves import *
from zschema.compounds import * from zschema.compounds import *
import zschema.registry import zschema.registry
import schemas.zcrypto import zcrypto_schemas.zcrypto as zcrypto
import zgrab2 import zgrab2
mei_object_names = [ mei_object_names = [

@ -4,7 +4,7 @@ from zschema.leaves import *
from zschema.compounds import * from zschema.compounds import *
import zschema.registry import zschema.registry
import schemas.zcrypto import zcrypto_schemas.zcrypto as zcrypto
import zgrab2 import zgrab2
ENCRYPT_MODES = [ ENCRYPT_MODES = [

@ -4,7 +4,7 @@ from zschema.leaves import *
from zschema.compounds import * from zschema.compounds import *
import zschema.registry import zschema.registry
import schemas.zcrypto import zcrypto_schemas.zcrypto as zcrypto
import zgrab2 import zgrab2
from zgrab2 import DebugOnly from zgrab2 import DebugOnly

@ -4,7 +4,7 @@ from zschema.leaves import *
from zschema.compounds import * from zschema.compounds import *
import zschema.registry import zschema.registry
import schemas.zcrypto import zcrypto_schemas.zcrypto as zcrypto
import zgrab2 import zgrab2
ntp_short = SubRecord({ ntp_short = SubRecord({

@ -5,7 +5,7 @@ from zschema.leaves import *
from zschema.compounds import * from zschema.compounds import *
import zschema.registry import zschema.registry
import schemas.zcrypto import zcrypto_schemas.zcrypto as zcrypto
import zgrab2 import zgrab2
FlagsSet = zgrab2.FlagsSet FlagsSet = zgrab2.FlagsSet

@ -4,7 +4,7 @@ from zschema.leaves import *
from zschema.compounds import * from zschema.compounds import *
import zschema.registry import zschema.registry
import schemas.zcrypto import zcrypto_schemas.zcrypto as zcrypto
import zgrab2 import zgrab2
pop3_scan_response = SubRecord({ pop3_scan_response = SubRecord({

@ -4,7 +4,7 @@ from zschema.leaves import *
from zschema.compounds import * from zschema.compounds import *
import zschema.registry import zschema.registry
import schemas.zcrypto import zcrypto_schemas.zcrypto as zcrypto
import zgrab2 import zgrab2
# modules/postgres/scanner.go - decodeError() (TODO: Currently an unconstrained # modules/postgres/scanner.go - decodeError() (TODO: Currently an unconstrained

@ -4,7 +4,7 @@ from zschema.leaves import *
from zschema.compounds import * from zschema.compounds import *
import zschema.registry import zschema.registry
import schemas.zcrypto import zcrypto_schemas.zcrypto as zcrypto
import zgrab2 import zgrab2
redis_scan_response = SubRecord({ redis_scan_response = SubRecord({

@ -4,7 +4,7 @@ from zschema.leaves import *
from zschema.compounds import * from zschema.compounds import *
import zschema.registry import zschema.registry
import schemas.zcrypto import zcrypto_schemas.zcrypto as zcrypto
import zgrab2 import zgrab2
siemens_scan_response = SubRecord({ siemens_scan_response = SubRecord({

@ -4,7 +4,7 @@ from zschema.leaves import *
from zschema.compounds import * from zschema.compounds import *
import zschema.registry import zschema.registry
import schemas.zcrypto import zcrypto_schemas.zcrypto as zcrypto
import zgrab2 import zgrab2
header_log = { header_log = {

@ -4,7 +4,7 @@ from zschema.leaves import *
from zschema.compounds import * from zschema.compounds import *
import zschema.registry import zschema.registry
import schemas.zcrypto import zcrypto_schemas.zcrypto as zcrypto
import zgrab2 import zgrab2
smtp_scan_response = SubRecord({ smtp_scan_response = SubRecord({

@ -5,7 +5,7 @@ from zschema.leaves import *
from zschema.compounds import * from zschema.compounds import *
import zschema.registry import zschema.registry
import schemas.zcrypto import zcrypto_schemas.zcrypto as zcrypto
import zgrab2 import zgrab2
# NOTE: Despite the fact that we have e.g. "supportedHostKeyAlgos", # NOTE: Despite the fact that we have e.g. "supportedHostKeyAlgos",

@ -4,7 +4,7 @@ from zschema.leaves import *
from zschema.compounds import * from zschema.compounds import *
import zschema.registry import zschema.registry
import schemas.zcrypto import zcrypto_schemas.zcrypto as zcrypto
import zgrab2 import zgrab2
telnet_option = SubRecord({ telnet_option = SubRecord({

@ -5,7 +5,7 @@ from collections import defaultdict
# Base / shared schema types for zgrab2 # Base / shared schema types for zgrab2
import schemas.zcrypto import zcrypto_schemas.zcrypto as zcrypto
# Map of protocol-name -> protocl-schema. This is wrapped in a SubRecord # Map of protocol-name -> protocl-schema. This is wrapped in a SubRecord
# Protocols are responsible for calling register_scan_response_type(protocol_name, schema). # Protocols are responsible for calling register_scan_response_type(protocol_name, schema).