schemas.zgrab2 -> zgrab2_schemas
This commit is contained in:
parent
6836299bfb
commit
1e4ec64650
8
setup.py
8
setup.py
@ -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({
|
0
schemas/zgrab2/testdata/ftp-authtls.json → zgrab2_schemas/zgrab2/testdata/ftp-authtls.json
vendored
0
schemas/zgrab2/testdata/ftp-authtls.json → zgrab2_schemas/zgrab2/testdata/ftp-authtls.json
vendored
0
schemas/zgrab2/testdata/ftp-default.json → zgrab2_schemas/zgrab2/testdata/ftp-default.json
vendored
0
schemas/zgrab2/testdata/ftp-default.json → zgrab2_schemas/zgrab2/testdata/ftp-default.json
vendored
0
schemas/zgrab2/testdata/mssql-2017-linux.json → zgrab2_schemas/zgrab2/testdata/mssql-2017-linux.json
vendored
0
schemas/zgrab2/testdata/mssql-2017-linux.json → zgrab2_schemas/zgrab2/testdata/mssql-2017-linux.json
vendored
0
schemas/zgrab2/testdata/ntp-4.2.6_normal.json → zgrab2_schemas/zgrab2/testdata/ntp-4.2.6_normal.json
vendored
0
schemas/zgrab2/testdata/ntp-4.2.6_normal.json → zgrab2_schemas/zgrab2/testdata/ntp-4.2.6_normal.json
vendored
0
schemas/zgrab2/testdata/ntp-openntp.json → zgrab2_schemas/zgrab2/testdata/ntp-openntp.json
vendored
0
schemas/zgrab2/testdata/ntp-openntp.json → zgrab2_schemas/zgrab2/testdata/ntp-openntp.json
vendored
0
schemas/zgrab2/testdata/pop3-banner.json → zgrab2_schemas/zgrab2/testdata/pop3-banner.json
vendored
0
schemas/zgrab2/testdata/pop3-banner.json → zgrab2_schemas/zgrab2/testdata/pop3-banner.json
vendored
0
schemas/zgrab2/testdata/pop3-banner.quit.json → zgrab2_schemas/zgrab2/testdata/pop3-banner.quit.json
vendored
0
schemas/zgrab2/testdata/pop3-banner.quit.json → zgrab2_schemas/zgrab2/testdata/pop3-banner.quit.json
vendored
0
schemas/zgrab2/testdata/postgres-9.3-ssl.json → zgrab2_schemas/zgrab2/testdata/postgres-9.3-ssl.json
vendored
0
schemas/zgrab2/testdata/postgres-9.3-ssl.json → zgrab2_schemas/zgrab2/testdata/postgres-9.3-ssl.json
vendored
0
schemas/zgrab2/testdata/postgres-9.4-ssl.json → zgrab2_schemas/zgrab2/testdata/postgres-9.4-ssl.json
vendored
0
schemas/zgrab2/testdata/postgres-9.4-ssl.json → zgrab2_schemas/zgrab2/testdata/postgres-9.4-ssl.json
vendored
0
schemas/zgrab2/testdata/postgres-9.5-ssl.json → zgrab2_schemas/zgrab2/testdata/postgres-9.5-ssl.json
vendored
0
schemas/zgrab2/testdata/postgres-9.5-ssl.json → zgrab2_schemas/zgrab2/testdata/postgres-9.5-ssl.json
vendored
0
schemas/zgrab2/testdata/postgres-9.6-ssl.json → zgrab2_schemas/zgrab2/testdata/postgres-9.6-ssl.json
vendored
0
schemas/zgrab2/testdata/postgres-9.6-ssl.json → zgrab2_schemas/zgrab2/testdata/postgres-9.6-ssl.json
vendored
0
schemas/zgrab2/testdata/smtp-ehlo.03.json → zgrab2_schemas/zgrab2/testdata/smtp-ehlo.03.json
vendored
0
schemas/zgrab2/testdata/smtp-ehlo.03.json → zgrab2_schemas/zgrab2/testdata/smtp-ehlo.03.json
vendored
0
schemas/zgrab2/testdata/smtp-ehlo.04.json → zgrab2_schemas/zgrab2/testdata/smtp-ehlo.04.json
vendored
0
schemas/zgrab2/testdata/smtp-ehlo.04.json → zgrab2_schemas/zgrab2/testdata/smtp-ehlo.04.json
vendored
0
schemas/zgrab2/testdata/smtp-helo.01.json → zgrab2_schemas/zgrab2/testdata/smtp-helo.01.json
vendored
0
schemas/zgrab2/testdata/smtp-helo.01.json → zgrab2_schemas/zgrab2/testdata/smtp-helo.01.json
vendored
0
schemas/zgrab2/testdata/smtp-helo.02.json → zgrab2_schemas/zgrab2/testdata/smtp-helo.02.json
vendored
0
schemas/zgrab2/testdata/smtp-helo.02.json → zgrab2_schemas/zgrab2/testdata/smtp-helo.02.json
vendored
0
schemas/zgrab2/testdata/telnet-telnet.json → zgrab2_schemas/zgrab2/testdata/telnet-telnet.json
vendored
0
schemas/zgrab2/testdata/telnet-telnet.json → zgrab2_schemas/zgrab2/testdata/telnet-telnet.json
vendored
@ -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).
|
Loading…
Reference in New Issue
Block a user