Skip to content

Commit

Permalink
cleared old code
Browse files Browse the repository at this point in the history
  • Loading branch information
pUrGe12 committed Mar 6, 2025
1 parent 083a321 commit dbe06f7
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 15 deletions.
6 changes: 1 addition & 5 deletions nettacker/core/fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,4 @@


def read_from_file(file_path):
return open(Config.path.payloads_dir / file_path).read().split("\n")


def custom_file_read(file_path):
return open(file_path).read().split("\n")
return open(Config.path.payloads_dir / file_path).read().split("\n")
7 changes: 3 additions & 4 deletions nettacker/core/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ def string_to_bytes(string):

AVAILABLE_DATA_FUNCTIONS = {
"passwords": {"read_from_file"},
"paths": {"custom_file_read", "read_from_file"},
"urls": {"custom_file_read", "read_from_file"},
"paths": {"read_from_file"},
"urls": {"read_from_file"},
}


Expand All @@ -230,9 +230,8 @@ def apply_data_functions_new():
for fn_name in data[item]:
if fn_name in AVAILABLE_DATA_FUNCTIONS[item]:
fn = getattr(importlib.import_module("nettacker.core.fuzzer"), fn_name)
if fn is not None and data[item][fn_name]:
if fn is not None:
original_data[item] = fn(data[item][fn_name])
break

def apply_data_functions_old():
function_results = {}
Expand Down
1 change: 0 additions & 1 deletion nettacker/modules/scan/admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ payloads:
interceptors:
data:
urls:
custom_file_read: "{user_wordlist}"
read_from_file: wordlists/admin_wordlist.txt
schema:
- "http"
Expand Down
1 change: 0 additions & 1 deletion nettacker/modules/scan/dir.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ payloads:
interceptors:
data:
urls:
custom_file_read: "{user_wordlist}"
read_from_file: wordlists/dir_wordlist.txt
schema:
- "http"
Expand Down
1 change: 0 additions & 1 deletion nettacker/modules/scan/pma.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ payloads:
interceptors:
data:
urls:
custom_file_read: "{user_wordlist}"
read_from_file: wordlists/pma_wordlist.txt
schema:
- "http"
Expand Down
1 change: 0 additions & 1 deletion nettacker/modules/scan/wp_plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ payloads:
- 443
#We are using small txt file. Work need to be done for handling user input based format files
paths:
custom_file_read: "{user_wordlist}"
read_from_file: wordlists/wp_plugin_small.txt
response:
condition_type: and
Expand Down
1 change: 0 additions & 1 deletion nettacker/modules/scan/wp_theme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ payloads:
- 80
- 443
paths:
custom_file_read: "{user_wordlist}"
read_from_file: wordlists/wp_theme_small.txt

response:
Expand Down
1 change: 0 additions & 1 deletion nettacker/modules/scan/wp_timethumbs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ payloads:
- 80
- 443
paths:
custom_file_read: "{user_wordlist}"
read_from_file: wordlists/wp_timethumbs.txt


Expand Down

0 comments on commit dbe06f7

Please sign in to comment.