-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
105 changed files
with
54 additions
and
36,206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,4 +58,4 @@ web_modules/ | |
custom_profiles/ | ||
|
||
# Security tools | ||
/tools/security/arachni/* | ||
/tools/security/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import requests | ||
from pathlib import Path | ||
import shutil | ||
import zipfile | ||
import io | ||
|
||
CURRENT_DIR = Path(__file__).resolve().parent | ||
BASE_DIR = CURRENT_DIR.parents[2] | ||
NIKTO_DIR = BASE_DIR / "tools" / "security" / "nikto" | ||
|
||
|
||
def check_and_download_nikto(): | ||
# GitHub URL for Nikto | ||
NIKTO_REPO_URL = "https://github.com/sullo/nikto/archive/refs/heads/master.zip" | ||
|
||
# Check if the Nikto directory exists | ||
if not NIKTO_DIR.exists(): | ||
print("Nikto directory not found. Downloading from GitHub...") | ||
try: | ||
response = requests.get(NIKTO_REPO_URL) | ||
response.raise_for_status() | ||
|
||
NIKTO_DIR.parent.mkdir(parents=True, exist_ok=True) | ||
|
||
# Extract the zip file into the NIKTO_DIR | ||
with zipfile.ZipFile(io.BytesIO(response.content)) as zip_file: | ||
# Extract all files to a temporary folder | ||
temp_dir = NIKTO_DIR.parent / "temp_nikto" | ||
zip_file.extractall(temp_dir) | ||
# Move the extracted content to the target directory | ||
extracted_folder = temp_dir / "nikto-master" | ||
shutil.move(str(extracted_folder), str(NIKTO_DIR)) | ||
# Remove the temporary folder | ||
shutil.rmtree(temp_dir) | ||
print(f"Nikto successfully downloaded and extracted to {NIKTO_DIR}") | ||
return True | ||
except Exception as e: | ||
print(f"Failed to download or extract Nikto: {e}") | ||
return False | ||
else: | ||
return True | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
tools/security/nikto/.github/ISSUE_TEMPLATE/FeatureRequest.md
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
tools/security/nikto/.github/ISSUE_TEMPLATE/TestRequest.md
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
tools/security/nikto/.github/ISSUE_TEMPLATE/false_positive_negative_report.md
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.