-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Add payload counter #7
Comments
I am currently working on implementing this for the tool and was wondering how youd feel about using the logging package instead of print statements? I have an instance running (using a simple http server to test it that only sends 200 responses to all requests) and replaced the print statements with a logger, and added mutex locks for accessing the new class members that hold the successful and running numbers inside of the CredentialTester Class, since this is threaded. |
2024-03-07 15:07:04,021 - INFO - Starting with 5 threads and URL: http://localhost:25565/...
2024-03-07 15:07:06,060 - INFO - SUCCESS -- [Record: 0] -- 200 -- OK - {'example_payload': 'This is an example payload, capture the request and replace it with your own', 'user[email]': '[email protected]', 'user[password]': 'leaven5'}
2024-03-07 15:07:06,061 - INFO - SUCCESS -- [Record: 1] -- 200 -- OK - {'example_payload': 'This is an example payload, capture the request and replace it with your own', 'user[email]': '[email protected]', 'user[password]': 'withe'}
2024-03-07 15:07:06,062 - INFO - SUCCESS -- [Record: 2] -- 200 -- OK - {'example_payload': 'This is an example payload, capture the request and replace it with your own', 'user[email]': '[email protected]', 'user[password]': None}
2024-03-07 15:07:06,063 - INFO - SUCCESS -- [Record: 3] -- 200 -- OK - {'example_payload': 'This is an example payload, capture the request and replace it with your own', 'user[email]': '[email protected]', 'user[password]': '18121998'}
2024-03-07 15:07:06,063 - INFO - SUCCESS -- [Record: 4] -- 200 -- OK - {'example_payload': 'This is an example payload, capture the request and replace it with your own', 'user[email]': '[email protected]', 'user[password]': 'Payne9'}
2024-03-07 15:07:08,088 - INFO - SUCCESS -- [Record: 5] -- 200 -- OK - {'example_payload': 'This is an example payload, capture the request and replace it with your own', 'user[email]': '[email protected]', 'user[password]': 'zetazeta'}
2024-03-07 15:07:08,088 - INFO - SUCCESS -- [Record: 6] -- 200 -- OK - {'example_payload': 'This is an example payload, capture the request and replace it with your own', 'user[email]': '[email protected]', 'user[password]': 'lachlan'}
2024-03-07 15:07:08,103 - INFO - SUCCESS -- [Record: 7] -- 200 -- OK - {'example_payload': 'This is an example payload, capture the request and replace it with your own', 'user[email]': '[email protected]', 'user[password]': '10121997'}
2024-03-07 15:07:08,104 - INFO - SUCCESS -- [Record: 8] -- 200 -- OK - {'example_payload': 'This is an example payload, capture the request and replace it with your own', 'user[email]': '[email protected]', 'user[password]': '130468'}
2024-03-07 15:07:08,105 - INFO - SUCCESS -- [Record: 9] -- 200 -- OK - {'example_payload': 'This is an example payload, capture the request and replace it with your own', 'user[email]': '[email protected]', 'user[password]': 'elcid'}
2024-03-07 15:07:12,156 - INFO - --------------------
2024-03-07 15:07:12,156 - INFO - TOTAL Records Sent: 10. Total Successful Records Sent: 10
2024-03-07 15:07:12,156 - INFO - Successful Records:
----------------
{"record": 0, "form-data": {"example_payload": "This is an example payload, capture the request and replace it with your own", "user[email]": "[email protected]", "user[password]": "leaven5"}},
{"record": 1, "form-data": {"example_payload": "This is an example payload, capture the request and replace it with your own", "user[email]": "[email protected]", "user[password]": "withe"}},
{"record": 2, "form-data": {"example_payload": "This is an example payload, capture the request and replace it with your own", "user[email]": "[email protected]", "user[password]": null}},
{"record": 3, "form-data": {"example_payload": "This is an example payload, capture the request and replace it with your own", "user[email]": "[email protected]", "user[password]": "18121998"}},
{"record": 4, "form-data": {"example_payload": "This is an example payload, capture the request and replace it with your own", "user[email]": "[email protected]", "user[password]": "Payne9"}},
{"record": 5, "form-data": {"example_payload": "This is an example payload, capture the request and replace it with your own", "user[email]": "[email protected]", "user[password]": "zetazeta"}},
{"record": 6, "form-data": {"example_payload": "This is an example payload, capture the request and replace it with your own", "user[email]": "[email protected]", "user[password]": "lachlan"}},
{"record": 7, "form-data": {"example_payload": "This is an example payload, capture the request and replace it with your own", "user[email]": "[email protected]", "user[password]": "10121997"}},
{"record": 8, "form-data": {"example_payload": "This is an example payload, capture the request and replace it with your own", "user[email]": "[email protected]", "user[password]": "130468"}},
{"record": 9, "form-data": {"example_payload": "This is an example payload, capture the request and replace it with your own", "user[email]": "[email protected]", "user[password]": "elcid"}} Here is some example output. I am still currently working on a graceful way to end the program. |
That is really cool, definitely need to implement a proper logger. |
I most certainly will! I will add a few comments and we can refine it to meet the intent of the individual who requested it, as well as to your own specifications. |
In reference to #4
Add a counter for each successful payload sent to the target
The text was updated successfully, but these errors were encountered: