LoveHecate

[PYTHON] NoCrash

Jul 26th, 2017
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. #!/usr/bin/python
  2. #Coded By: Love Hecate
  3.  
  4. import subprocess
  5.  
  6. def system(cmd):
  7.   subprocess.call(cmd, shell=True)
  8.  
  9. print ("making sure net wont crash")
  10. file = open("/proc/sys/fs/file-max", "w")
  11. file.write ("99999999")
  12. file.close()
  13.  
  14. system ("sed -i 's/1024/9999999/g' /usr/include/bits/typesizes.h")
  15. system ("ulimit -n 99999")
Advertisement
Add Comment
Please, Sign In to add comment