ivsongborges/fault-simulator — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a simple Python command line fault injection simulator for testing a server’s availability. I want to enter the target server IP address, SSH password, network interface name, monitoring interval in seconds, and the output file name in an easy place in the code.

When it runs, it should connect to the server over SSH, repeatedly bring the chosen network interface down and back up to simulate failures, and use MTTF and MTTR values in seconds to control how long the service stays working and how long the failure lasts. While this is happening, it should monitor the service regularly and save the collected availability data to a text file.

Please make it easy to run with a virtual environment and a requirements file. Also handle Ctrl C nicely, ask me if I really want to exit, and cleanly stop the simulator if I confirm. Keep the project simple and readable so I can change the settings later.

Want more depth? Deep Reverse