Skip to content
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

Add functionality to crash at a random point after script starts execution #1

Open
deutranium opened this issue Oct 17, 2023 · 0 comments

Comments

@deutranium
Copy link
Owner

At the moment, the call to crash or not happens directly during import, but it can be changed to an async call, or a background process which executes at a certain delay once the script has been called.

A few potential solutions/problems can be:

  1. If we add sys.exit() as an async function which executes after a time t, choice of this time will have a big impact. Eg. if t is 5 seconds when the entire script is supposed to take say 2 seconds, we have an issue
  2. Another potential solution can be execution of the package code once a certain proportion of the victim script has executed. However, I'm not very sure how to approach this, or even python allows such things in the first place
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant