
Automated exploit script for CVE-2023-42793 targeting TeamCity, enabling token manipulation and admin user creation for penetration testing.
This script is designed to automate the exploitation process for the CVE-2023-42793 vulnerability. It targets a specific service (presumably affected by this vulnerability) and attempts to delete a user token, create a new user token, and then create a new user with administrative privileges.
requests, random, argparse, xml.etree.ElementTreepip install requests
The script can be executed against either a single URL or a list of URLs.
Single URL Mode:
python script_name.py -u <URL of the TeamCity>
List Mode:
python script_name.py -l <file containing list of URLs>
vulnerable.txt.Contributions to enhance the script or its documentation are welcome. Please adhere to standard coding practices and ensure that all submissions are thoroughly tested.