Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #56 from berylliumsec/adding_index_files
Browse files Browse the repository at this point in the history
Adding index files
  • Loading branch information
berylliumsec-handler authored Nov 9, 2023
2 parents dae890c + 3055bb1 commit 1968fff
Show file tree
Hide file tree
Showing 6 changed files with 28,876 additions and 2,013 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
prerelease: false
body: |
Release Notes:
- Search has now been expanded to include all CVE(s) in vuln-db. Supported exploits can be run directly from Nebula's interface.
- Added fresh index files
- name: Upload Release Assets
if: github.event.pull_request.merged == true
run: |
Expand Down
Binary file removed src/nebula/indexdir/MAIN_0zxvnmc412jlbmks.seg
Binary file not shown.
Binary file added src/nebula/indexdir/MAIN_5f6amzmw5nc9139u.seg
Binary file not shown.
Binary file modified src/nebula/indexdir/_MAIN_1.toc
Binary file not shown.
5 changes: 4 additions & 1 deletion src/nebula/nebula.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,8 @@ def print_star_sky(self, width=30, height=10, density=0.5):
def _load_flag_descriptions(self, file_path, selected_model_name):
"""Load flag descriptions from a file and return them as a dictionary."""
try:
if file_path is None:
raise ValueError("file_path cannot be None")
with open(file_path, "r") as f:
lines = f.readlines()
# Store the entire line as the value in the dictionary using flag as key
Expand All @@ -632,11 +634,12 @@ def _load_flag_descriptions(self, file_path, selected_model_name):
for line in lines
if ":" in line
}
except FileNotFoundError:
except Exception as e:
cprint(
f"Flags file '{file_path}' not found, commands for '{selected_model_name}' will not contain descriptions",
"yellow",
)
logging.error({e})
return {}

def extract_and_match_flags(self, command):
Expand Down
Loading

0 comments on commit 1968fff

Please sign in to comment.