Skip to content

Commit

Permalink
Merge branch 'feature/nibbles' into docs/nibbles
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanie0x00 authored Jan 13, 2025
2 parents 830b016 + 171c449 commit 70646ea
Show file tree
Hide file tree
Showing 119 changed files with 3,085 additions and 581 deletions.
10 changes: 0 additions & 10 deletions octopoes/bits/ask_disallowed_domains/bit.py

This file was deleted.

10 changes: 0 additions & 10 deletions octopoes/bits/ask_port_specification/bit.py

This file was deleted.

10 changes: 0 additions & 10 deletions octopoes/bits/ask_url_params_to_ignore/bit.py

This file was deleted.

9 changes: 0 additions & 9 deletions octopoes/bits/check_cve_2021_41773/bit.py

This file was deleted.

10 changes: 0 additions & 10 deletions octopoes/bits/check_hsts_header/bit.py

This file was deleted.

9 changes: 0 additions & 9 deletions octopoes/bits/cipher_classification/bit.py

This file was deleted.

10 changes: 0 additions & 10 deletions octopoes/bits/default_findingtype_risk/bit.py

This file was deleted.

10 changes: 0 additions & 10 deletions octopoes/bits/disallowed_csp_hostnames/bit.py

This file was deleted.

9 changes: 0 additions & 9 deletions octopoes/bits/domain_owner_verification/bit.py

This file was deleted.

9 changes: 0 additions & 9 deletions octopoes/bits/expiring_certificate/bit.py

This file was deleted.

6 changes: 0 additions & 6 deletions octopoes/bits/missing_certificate/bit.py

This file was deleted.

14 changes: 0 additions & 14 deletions octopoes/bits/missing_spf/bit.py

This file was deleted.

29 changes: 0 additions & 29 deletions octopoes/bits/missing_spf/missing_spf.py

This file was deleted.

10 changes: 0 additions & 10 deletions octopoes/bits/oois_in_headers/bit.py

This file was deleted.

6 changes: 0 additions & 6 deletions octopoes/bits/port_common/bit.py

This file was deleted.

37 changes: 0 additions & 37 deletions octopoes/bits/port_common/port_common.py

This file was deleted.

4 changes: 0 additions & 4 deletions octopoes/bits/spf_discovery/bit.py

This file was deleted.

10 changes: 0 additions & 10 deletions octopoes/bits/url_classification/bit.py

This file was deleted.

14 changes: 0 additions & 14 deletions octopoes/bits/url_discovery/bit.py

This file was deleted.

28 changes: 0 additions & 28 deletions octopoes/bits/url_discovery/url_discovery.py

This file was deleted.

15 changes: 0 additions & 15 deletions octopoes/bits/website_discovery/bit.py

This file was deleted.

25 changes: 0 additions & 25 deletions octopoes/bits/website_discovery/website_discovery.py

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import json
from collections.abc import Iterator
from pathlib import Path
from typing import Any

from octopoes.models import OOI
from octopoes.models.ooi.network import Network
from octopoes.models.ooi.question import Question


def run(input_ooi: Network, additional_oois: list, config: dict[str, Any]) -> Iterator[OOI]:
def nibble(input_ooi: Network) -> Iterator[OOI]:
network = input_ooi

with (Path(__file__).parent / "question_schema.json").open() as f:
Expand Down
4 changes: 4 additions & 0 deletions octopoes/nibbles/ask_disallowed_domains/nibble.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from nibbles.definitions import NibbleDefinition, NibbleParameter
from octopoes.models.ooi.network import Network

NIBBLE = NibbleDefinition(id="ask-disallowed-domains", signature=[NibbleParameter(object_type=Network)])
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import json
from collections.abc import Iterator
from pathlib import Path
from typing import Any

from octopoes.models import OOI
from octopoes.models.ooi.network import Network
from octopoes.models.ooi.question import Question


def run(input_ooi: Network, additional_oois: list, config: dict[str, Any]) -> Iterator[OOI]:
def nibble(input_ooi: Network) -> Iterator[OOI]:
network = input_ooi

with (Path(__file__).parent / "question_schema.json").open() as f:
Expand Down
4 changes: 4 additions & 0 deletions octopoes/nibbles/ask_port_specification/nibble.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from nibbles.definitions import NibbleDefinition, NibbleParameter
from octopoes.models.ooi.network import Network

NIBBLE = NibbleDefinition(id="ask-port-specification", signature=[NibbleParameter(object_type=Network)])
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import json
from collections.abc import Iterator
from pathlib import Path
from typing import Any

from octopoes.models import OOI
from octopoes.models.ooi.network import Network
from octopoes.models.ooi.question import Question


def run(input_ooi: Network, additional_oois: list, config: dict[str, Any]) -> Iterator[OOI]:
def nibble(input_ooi: Network) -> Iterator[OOI]:
network = input_ooi

with (Path(__file__).parent / "question_schema.json").open() as f:
Expand Down
4 changes: 4 additions & 0 deletions octopoes/nibbles/ask_url_params_to_ignore/nibble.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from nibbles.definitions import NibbleDefinition, NibbleParameter
from octopoes.models.ooi.network import Network

NIBBLE = NibbleDefinition(id="ask_url_params_to_ignore", signature=[NibbleParameter(object_type=Network)])
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
from collections.abc import Iterator
from typing import Any

from octopoes.models import OOI
from octopoes.models.ooi.findings import CVEFindingType, Finding
from octopoes.models.ooi.web import HTTPHeader


def run(input_ooi: HTTPHeader, additional_oois: list, config: dict[str, Any]) -> Iterator[OOI]:
def nibble(input_ooi: HTTPHeader) -> Iterator[OOI]:
header = input_ooi
if header.key.lower() != "server":
return
Expand Down
4 changes: 4 additions & 0 deletions octopoes/nibbles/check_cve_2021_41773/nibble.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from nibbles.definitions import NibbleDefinition, NibbleParameter
from octopoes.models.types import HTTPHeader

NIBBLE = NibbleDefinition(id="check_cve_2021_41773", signature=[NibbleParameter(object_type=HTTPHeader)])
Loading

0 comments on commit 70646ea

Please sign in to comment.