From 8eae3b42a3da4940c052a4118068021cdeaeb4da Mon Sep 17 00:00:00 2001 From: TheConciergeDev <65483817+TheConciergeDev@users.noreply.github.com> Date: Tue, 30 Nov 2021 16:26:34 +0100 Subject: [PATCH] Update mysql connect parameter Hello there, I really like patator and just ran into the issue when trying to bruteforce `mysql_logins`, that the following error occurred: ``` 'passwd' is an invalid keyword argument for connect() ``` I checked the mysqlclient repo (stated in your dependency list) -> there it is written that `passwd` is deprecated (https://github.com/PyMySQL/mysqlclient/blob/main/MySQLdb/connections.py#L65). However in this line https://github.com/PyMySQL/mysqlclient/blob/main/MySQLdb/connections.py#L154 they are still setting it. If I change the parameter in your script from `passwd` to `password` it works accordingly. I hope this helps - keep the work up. Cheerz, --- patator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patator.py b/patator.py index 6c67b9a..337cf44 100755 --- a/patator.py +++ b/patator.py @@ -3535,7 +3535,7 @@ class MySQL_login: try: with Timing() as timing: - fp = _mysql.connect(host=host, port=int(port), user=user, passwd=password, connect_timeout=int(timeout)) + fp = _mysql.connect(host=host, port=int(port), user=user, password=password, connect_timeout=int(timeout)) resp = '0', fp.get_server_info()