Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.15 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. import platform
  4. import re
  5.  
  6. vulnerable_arr = ['4.15.4', '4.14.13', '4.14.11', '4.14.10', '4.14.6', '4.14.5', '4.14.1', '4.13.11', '4.13.10', '4.13.8', '4.13.7', '4.13.6', '4.13.4', '4.13.3', '4.12.9', '4.12.3', '4.12.2', '4.11.9', '4.11.5', '4.11.4', '4.11.3', '4.11.2', '4.11.1', '4.11', '4.10.15', '4.10.13', '4.10.12', '4.10.10', '4.10.6', '4.10.4', '4.10', '4.1.47', '4.1.4', '4.1.1', '4.0.6', '3.19.3', '3.18.22', '3.18.17', '3.18.11', '3.18.8', '3.18.7', '3.18.3', '3.18.2', '3.18.1', '3.17.4', '3.17.2', '3.16.7', '3.16.2', '3.16.1', '3.15.10', '3.15.5', '3.15.2', '3.14.54', '3.14.45', '3.14.37', '3.14.4', '3.14.3', '3.14.2', '3.13.11', '3.13.9', '3.13.3', '3.13.1', '3.12.49', '3.12.48', '3.12.44', '3.12.40', '3.12.21', '3.12.18', '3.12.17', '3.12.16', '3.12.11', '3.12.7', '3.12.4', '3.12.3', '3.12.2', '3.11.3', '3.10.90', '3.10.81', '3.10.73', '3.10.45', '3.10.41', '3.10.38', '3.10.37', '3.10.36', '3.10.30', '3.10.27', '3.10.26', '3.10.23', '3.10.22', '3.10.21', '3.10.14', '3.10.10', '3.10.9', '3.10.7', '3.10', '3.8.9', '3.8.6', '3.8.5', '3.8.4', '3.8.2', '3.8.1', '3.7.10', '3.7.9', '3.7.8', '3.7.7', '3.7.5', '3.7.4', '3.7.3', '3.7.2', '3.7.1', '3.6.11', '3.6.10', '3.6.9', '3.6.8', '3.6.7', '3.6.6', '3.6.5', '3.6.4', '3.6.3', '3.6.2', '3.6.1', '3.5.7', '3.5.6', '3.5.5', '3.5.4', '3.5.3', '3.5.2', '3.5.1', '3.4.88', '3.4.87', '3.4.86', '3.4.80', '3.4.76', '3.4.73', '3.4.72', '3.4.71', '3.4.64', '3.4.58', '3.4.42', '3.4.36', '3.4.32', '3.4.31', '3.4.27', '3.4.26', '3.4.25', '3.4.21', '3.4.20', '3.4.19', '3.4.18', '3.4.17', '3.4.16', '3.4.15', '3.4.14', '3.4.13', '3.4.12', '3.4.11', '3.4.10', '3.4.9', '3.4.8', '3.4.7', '3.4.6', '3.4.5', '3.4.4', '3.4.3', '3.4.2', '3.4.1', '3.3.5', '3.3.4', '3.3.2', '3.2.82', '3.2.72', '3.2.62', '3.2.57', '3.2.56', '3.2.51', '3.2.24', '3.2.23', '3.2.13', '3.2.12', '3.2.9', '3.2.1', '3.1.8', '3.0.98', '3.0.75', '3.0.72', '3.0.69', '3.0.65', '3.0.60', '3.0.59', '3.0.58', '3.0.37', '3.0.34', '3.0.5', '3.0.4', '3.0.2', '3.0.1', '2.6.39', '2.6.38', '2.6.37', '2.6.36', '2.6.35', '2.6.34', '2.6.33', '2.6.32.9', '2.6.32', '2.6.31', '2.6.29', '2.6.28', '2.6.27', '2.6.26', '2.6.25', '2.6.24', '2.6.23', '4.4.14', '4.4.1', '4.4.0-57', '4.15.7', '4.15', '4.14.8', '4.14.7', '4.14.4', '4.14.3', '4.14.2', '4.14.15', '4.14.14', '4.14.0-rc1', '4.14-rc5', '4.14-rc1', '4.14', '4.13.5', '4.13.2', '4.13.1', '4.13', '4.12.10', '4.12.1', '4.12', '4.11.8', '4.11.7', '4.11', '4.10.9', '4.10.8', '4.10.7', '4.10.5', '4.10.3', '4.10.2', '4.10.11', '4.10.1', '4.1.15', '4.1', '4.0.5', '4.0', '3.8', '3.7.6', '3.7', '3.6', '3.5', '3.4.93', '3.4.81', '3.4.70', '3.4.67', '3.4.29', '3.4', '3.3', '3.2.81', '3.2.78', '3.2.65', '3.2.64', '3.2.63', '3.2.60', '3.2.55', '3.2.54', '3.2.53', '3.2.52', '3.2.50', '3.2.44', '3.2.42', '3.2.38', '3.2.2', '3.2', '3.19', '3.18.9', '3.18', '3.17.6', '3.17', '3.16.6', '3.16.36', '3.16', '3.15', '3.14.73', '3.14.7', '3.14.5', '3.14-4', '3.14-1', '3.14', '3.13.7', '3.13.6', '3.13.5', '3.13.4', '3.13.0', '3.13', '3.12.22', '3.12.15', '3.12.14', '3.12.12', '3.12.1', '3.12', '3.11.9', '3.11.6', '3.11', '3.10.5', '3.10.43', '3.10.31', '3.10.20', '3.10.17', '3.10', '3.1', '3.0.66', '3.0.62', '3.0.18', '3.0', '2.6.38.6', '2.6.38.4', '2.6.38.3', '2.6.38.2', '2.6.37.2', '2.6.32.8', '2.6.32.7', '2.6.32.62', '2.6.32.61', '2.6.32.60', '2.6.32.6', '2.6.32.5', '2.6.32.3', '2.6.32.28', '2.6.32.15', '2.6.32.14', '2.6.32.13', '2.6.32.12', '2.6.32.11', '2.6.32.10', '2.6.32.1', '2.6.31.6', '2.6.31.4', '2.6.31.1', '2.6.30.5', '2.6.30.4', '2.6.30.3', '2.6.28.4', '2.6.28.10', '2.6.27.54', '2.6.27.51', '2.6.27.49', '2.6.27.26', '2.6.26.1', '2.6.25.4', '2.6.25.3', '2.6.25.2', '2.6.25.1', '2.6.24.6', '2.6.24.4', '2.6.24.3', '2.6.23.14', '2.6.23.10', '2.6.23.1']
  7.  
  8.  
  9. def is_exlpoitable():
  10. exploitable = 0
  11. if(platform.system()=="Linux"):
  12. kernel_version = platform.release()
  13. reg = re.compile("(\d{1,2}\.)+\d{1,2}")
  14. val = reg.search(kernel_version).group(0)
  15. print(val)
  16. val = "4.15.4"
  17. if val in vulnerable_arr:
  18. print("vulnerable kernel")
  19. return exploitable
  20.  
  21. def do_exploit():
  22. pas
  23.  
  24. def main():
  25. is_exlpoitable()
  26. pass
  27.  
  28. if __name__=="__main__":
  29. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement