Skip to content

Commit e4651d6

Browse files
author
arantzardzm
committed
updated duo to match arantza's
1 parent 9bb840a commit e4651d6

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ pip-selfcheck.json
2020
bot/facebook/config/default.json
2121
bot/telegram/config/default.json
2222
node_modules
23-
selenium/
23+
selenium/
24+
flask/new.csv

spammer/scrapper/scrapper.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/python
2-
# -*- coding: utf-8 -*-
2+
# -*- coding: utf-8 -*-
33
# @File Name: scrapper.py
4-
# @Created: 2018-04-11 02:57:12 Simon Myunggun Seo (simon.seo@nyu.edu)
4+
# @Created: 2018-04-11 02:57:12 Simon Myunggun Seo (simon.seo@nyu.edu)
55
# @Updated: 2018-04-18 17:08:14 Simon Seo (simon.seo@nyu.edu)
66
import sys, time
77
sys.path.insert(0,'..')
@@ -40,7 +40,7 @@ def authenticate(driver):
4040
# Duo MFA
4141
print("Authenticating Duo MFA")
4242
driver.switch_to_frame(driver.find_element_by_id("duo_iframe"))
43-
bypass_button = driver.find_elements_by_class_name("auth-button")[1] # 0th is push, 1st is passcode
43+
bypass_button = driver.find_elements_by_class_name("auth-button")[2] # 0th is push, 1st is passcode; for Arantza it's 2
4444
bypass_button.click()
4545

4646
generateOTP = duo.HOTP()
@@ -78,6 +78,4 @@ def run(forEvery=5*60):
7878
time.sleep(forEvery) # 5 minutes
7979

8080
if __name__ == '__main__':
81-
run(forEvery=5)
82-
83-
81+
run()

0 commit comments

Comments
 (0)