Skip to content

Commit

Permalink
new brc4 test data from v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Tw1sm committed Mar 24, 2023
1 parent 4921b8c commit 4424ef7
Show file tree
Hide file tree
Showing 5 changed files with 17,185 additions and 4,834 deletions.
2 changes: 1 addition & 1 deletion bofhound/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def main(
debug: bool = typer.Option(False, "--debug", help="Enable debug output"),
zip_files: bool = typer.Option(False, "--zip", "-z", help="Compress the JSON output files into a zip archive")):
"""
Generate BloodHound compatible JSON from logs written by ldapsearch BOF and pyldapsearch
Generate BloodHound compatible JSON from logs written by ldapsearch BOF, pyldapsearch and Brute Ratel's LDAP Sentinel
"""

if debug:
Expand Down
6 changes: 3 additions & 3 deletions tests/parsers/test_brc4_ldap_sentinel.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
from tests.test_data import *


def test_parse_file_ldapsearchpyNormalFile(brc4ldapsentinel_standard_file_252):
parsed_objects = Brc4LdapSentinelParser.parse_file(brc4ldapsentinel_standard_file_252)
assert len(parsed_objects) == 252
def test_parse_file_ldapsearchpyNormalFile(brc4ldapsentinel_standard_file_1030):
parsed_objects = Brc4LdapSentinelParser.parse_file(brc4ldapsentinel_standard_file_1030)
assert len(parsed_objects) == 1030


def test_parse_data_computer():
Expand Down
4 changes: 2 additions & 2 deletions tests/test_data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ def testdata_ldapsearchbof_beacon_202_objects():

# BRc4 LDAP Sentinel Fixtures
@pytest.fixture
def brc4ldapsentinel_standard_file_252():
yield os.path.join(TEST_DATA_DIR, "brc4_ldap_sentinel_logs/badger_no_acl_252_objects.log")
def brc4ldapsentinel_standard_file_1030():
yield os.path.join(TEST_DATA_DIR, "brc4_ldap_sentinel_logs/badger_no_acl_1030_objects.log")
Loading

0 comments on commit 4424ef7

Please sign in to comment.