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 #54 from berylliumsec/fixing_result_processing
Browse files Browse the repository at this point in the history
fixing result_processing
  • Loading branch information
berylliumsec-handler authored Nov 5, 2023
2 parents 3b76717 + 1755024 commit 54da74a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ jobs:
prerelease: false
body: |
Release Notes:
- Fixed a bug where nmap commands being ran after search queries were not being stored
- Updated search index
- Fixed a bug where command explanations were not being displayed
- Fixed a bug where results displayed after processing didnt have the -oX and -oN flags.
- name: Upload Release Assets
if: github.event.pull_request.merged == true
run: |
Expand Down
6 changes: 4 additions & 2 deletions src/nebula/nebula.py
Original file line number Diff line number Diff line change
Expand Up @@ -1811,13 +1811,15 @@ def _select_and_run_command(self, results, ai):
if 1 <= selection <= len(selectable_results):
selected_result = selectable_results[selection - 1]
if not ai and ":" in selected_result:
content_after_colon = selected_result.split(":", 1)[1].strip()
content_after_colon = self.process_string(
selected_result.split(":", 1)[1].strip()
)
if (
not content_after_colon
): # If the content after the colon is empty
content_after_colon = selected_result
else:
content_after_colon = selected_result
content_after_colon = self.process_string(selected_result)

modified_content = self.get_input_with_default(
"\nEnter the modified content (or press enter to keep it unchanged): ",
Expand Down

0 comments on commit 54da74a

Please sign in to comment.