Skip to content

Commit

Permalink
Update upload_to_cuckoo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
k0T0z committed Jul 25, 2024
1 parent 4075098 commit c7dbb1a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions resources/scripts/upload_to_cuckoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@

while True:
try:
temp = driver.find_element(By.XPATH, '//*[@id="info"]/span[5]/strong').text

if temp == 'Something went wrong!':
print('Something went wrong! Refreshing the page...\n')
refresh = True
break

b1 = None
b1 = driver.find_element(By.XPATH, '//*[@id="timeout"]/ul/li[1]')

Expand All @@ -110,6 +117,9 @@
time.sleep(1)
continue

if refresh:
continue

time.sleep(0.5)

while True:
Expand Down

0 comments on commit c7dbb1a

Please sign in to comment.