Skip to content

Commit 6a36441

Browse files
committed
2025.1.1:RELEASE
1 parent a2b4d55 commit 6a36441

File tree

33 files changed

+10268
-82
lines changed

33 files changed

+10268
-82
lines changed

modules/attacks/battering_ram.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,22 +134,22 @@ def attempt_battering_ram_fuzz(elements, payload, driver, this_threads_file):
134134
driver.execute_script("arguments[0].removeAttribute('class');",element_being_fuzzed) # remove the class attribute using javascript
135135
# Algorithm step: 4.c Fill the payload in element
136136
try:
137-
fill_payload_in_element(driver,element_being_fuzzed,payload)
137+
fill_payload_in_element(driver,element_being_fuzzed,payload,element)
138138
except StaleElementReferenceException: # if there is a StaleElementReferenceException then retry
139139
sleep(6)
140140
try:
141-
fill_payload_in_element(driver,element_being_fuzzed,payload)
141+
fill_payload_in_element(driver,element_being_fuzzed,payload,element)
142142
except StaleElementReferenceException: # if there is a StaleElementReferenceException then retry
143143
sleep(6) # wait for sometime before retrying
144144
try: # retry
145-
fill_payload_in_element(driver,element_being_fuzzed,payload)
145+
fill_payload_in_element(driver,element_being_fuzzed,payload,element)
146146
except StaleElementReferenceException: # if there is a StaleElementReferenceException then retry
147147
sleep(10)
148148
try:
149-
fill_payload_in_element(driver,element_being_fuzzed,payload)
149+
fill_payload_in_element(driver,element_being_fuzzed,payload,element)
150150
except StaleElementReferenceException: # if there is a StaleElementReferenceException then retry
151151
sleep(20)
152-
fill_payload_in_element(driver,element_being_fuzzed,payload)
152+
fill_payload_in_element(driver,element_being_fuzzed,payload,element)
153153
button_to_press = get_element(driver,global_variable.args.button,False) # Algorithm step: 5 get the button element
154154
if global_variable.args.button in global_variable.remove_class_elements: # Algorithm step: 6 remove class attribute if required
155155
driver.execute_script("arguments[0].removeAttribute('class');",button_to_press) # remove the class attribute using javascript

modules/attacks/cluster_bomb.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,18 @@ def attempt_clusterbomb_fuzz(payloads_combinations, driver, this_threads_files,
115115
driver.execute_script("arguments[0].removeAttribute('class');",element_being_fuzzed) # remove the class attribute using javascript
116116
# Algorithm step:2.f.3 Fill the payload in element
117117
try:
118-
fill_payload_in_element(driver,element_being_fuzzed,payload)
118+
fill_payload_in_element(driver,element_being_fuzzed,payload,element)
119119
except StaleElementReferenceException: # if there is a StaleElementReferenceException then retry
120120
sleep(4) # wait for sometime before retry
121121
try: # retry
122-
fill_payload_in_element(driver,element_being_fuzzed,payload)
122+
fill_payload_in_element(driver,element_being_fuzzed,payload,element)
123123
except StaleElementReferenceException: # if there is a StaleElementReferenceException then retry
124124
sleep(10)
125125
try:
126-
fill_payload_in_element(driver,element_being_fuzzed,payload)
126+
fill_payload_in_element(driver,element_being_fuzzed,payload,element)
127127
except StaleElementReferenceException: # if there is a StaleElementReferenceException then retry
128128
sleep(20)
129-
fill_payload_in_element(driver,element_being_fuzzed,payload)
129+
fill_payload_in_element(driver,element_being_fuzzed,payload,element)
130130
# Algorithm step:2.g Press the button
131131
if not global_variable.terminate:
132132
button_to_press = get_element(driver,global_variable.args.button,False)

modules/attacks/pitchfork.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,22 +147,22 @@ def attempt_pitchfork_fuzz(elements_payloads,index,driver,this_threads_file):
147147
driver.execute_script("arguments[0].removeAttribute('class');",element_being_fuzzed) # remove the class attribute using javascript
148148
# Algorithm step: 6.c Fill the payload in element
149149
try:
150-
fill_payload_in_element(driver,element_being_fuzzed,payload_list[index])
150+
fill_payload_in_element(driver,element_being_fuzzed,payload_list[index],element)
151151
except StaleElementReferenceException: # if there is a StaleElementReferenceException then retry
152152
sleep(6) # wait for some time before retrying
153153
try:
154-
fill_payload_in_element(driver,element_being_fuzzed,payload_list[index])
154+
fill_payload_in_element(driver,element_being_fuzzed,payload_list[index],element)
155155
except StaleElementReferenceException: # if there is a StaleElementReferenceException then retry
156156
sleep(6)
157157
try:
158-
fill_payload_in_element(driver,element_being_fuzzed,payload_list[index])
158+
fill_payload_in_element(driver,element_being_fuzzed,payload_list[index],element)
159159
except StaleElementReferenceException: # if there is a StaleElementReferenceException then retry
160160
sleep(10)
161161
try:
162-
fill_payload_in_element(driver,element_being_fuzzed,payload_list[index])
162+
fill_payload_in_element(driver,element_being_fuzzed,payload_list[index],element)
163163
except StaleElementReferenceException:# if there is a StaleElementReferenceException then retry
164164
sleep(20)
165-
fill_payload_in_element(driver,element_being_fuzzed,payload_list[index])
165+
fill_payload_in_element(driver,element_being_fuzzed,payload_list[index],element)
166166
# Algorithm step: 7 Press the button
167167
button_to_press = get_element(driver,global_variable.args.button,False)
168168
if global_variable.args.button in global_variable.remove_class_elements: # Algorithm step: 8

modules/attacks/sniper.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,22 +132,22 @@ def attempt_sniper_fuzz(element, payload, driver, this_threads_file):
132132
driver.execute_script("arguments[0].removeAttribute('class');",element_being_fuzzed) # remove the class attribute using javascript
133133
# Algorithm step: 6 Fill the payload in element
134134
try:
135-
fill_payload_in_element(driver,element_being_fuzzed,payload)
135+
fill_payload_in_element(driver,element_being_fuzzed,payload,element)
136136
except StaleElementReferenceException: # if there is a StaleElementReferenceException then retry
137137
sleep(6) # wait for sometime before retrying
138138
try: # retry
139-
fill_payload_in_element(driver,element_being_fuzzed,payload)
139+
fill_payload_in_element(driver,element_being_fuzzed,payload,element)
140140
except StaleElementReferenceException: # if there is a StaleElementReferenceException then retry
141141
sleep(6)
142142
try:
143-
fill_payload_in_element(driver,element_being_fuzzed,payload)
143+
fill_payload_in_element(driver,element_being_fuzzed,payload,element)
144144
except StaleElementReferenceException: # if there is a StaleElementReferenceException then retry
145145
sleep(10)
146146
try:
147-
fill_payload_in_element(driver,element_being_fuzzed,payload)
147+
fill_payload_in_element(driver,element_being_fuzzed,payload,element)
148148
except StaleElementReferenceException: # if there is a StaleElementReferenceException then retry
149149
sleep(20)
150-
fill_payload_in_element(driver,element_being_fuzzed,payload)
150+
fill_payload_in_element(driver,element_being_fuzzed,payload,element)
151151
button_to_press = get_element(driver,global_variable.args.button,False) # Algorithm step: 7 Get the button element
152152
if global_variable.args.button in global_variable.remove_class_elements: # Algorithm step: 8 remove class if required
153153
driver.execute_script("arguments[0].removeAttribute('class');",button_to_press) # remove the class attribute using javascript

modules/automatic_navigation_handler/load_navigation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def load_navigation(driver, file_path):
100100

101101
# Ensure the element is clickable
102102
driver.execute_script("arguments[0].click();", element)
103+
print(element)
103104

104105
# Add a small delay between actions to mimic real user interactions
105106
#time.sleep(0.1)

modules/automatic_navigation_handler/record_navigation.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
from modules.global_config_arguments.global_variables import global_variable
1414
from modules.run_browser.add_cookies import add_cookies
1515
from modules.run_browser.get_and_initialize_driver import get_and_initialize_chrome_driver
16+
from modules.run_browser.add_local_storage import add_local_storage
17+
from modules.run_browser.add_session_storage import add_session_storage
1618

1719
##################################################################
1820
# Importing Python Libraries
@@ -44,6 +46,11 @@ def record_navigation():
4446
try:
4547
driver = get_and_initialize_chrome_driver()
4648
driver.get(global_variable.args.target)
49+
if global_variable.args.add_storage:
50+
#driver.get(global_variable.args.target)
51+
add_local_storage(driver)
52+
if global_variable.args.add_session_storage:
53+
add_session_storage(driver)
4754
if global_variable.args.cookie:
4855
add_cookies(driver)
4956
driver.get(global_variable.args.target)

0 commit comments

Comments
 (0)