Advertisement
Python253

kill_ms_spyware_host_connections

Mar 17th, 2024 (edited)
638
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.22 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. # Filename: kill_ms_spyware_host_connections.py
  4. # Version: 1.00
  5. # Author: Jeoi Reqi
  6.  
  7.  
  8. """
  9. A Tool to Prevent Microsoft Spyware from Sending & Selling Your Data to Malicious Data Harvesters & Government Entities:
  10.  
  11. This script aims to enhance user privacy and security within the Windows environment.
  12. It achieves this by preventing Microsoft Windows from establishing connections to data mining hosts associated with organizations such as the NSA and the CCP, which are known for selling user data.
  13. These hosts are considered malicious data harvesters due to their intrusive practices.
  14.  
  15. By appending specific IP data to the 'hosts' file located in 'C:/Windows/System32/drivers/etc', the script effectively blocks Windows from communicating with these malicious hosts.
  16. This action mitigates the risk of unauthorized data collection and surveillance.
  17. As a result, users are empowered to maintain control over their online activities and personal information, ensuring transparency and ethical use of data.
  18.  
  19. Ensure that you have administrative privileges to execute the script and that you've backed up your hosts file before running it to prevent any unintended consequences.
  20.  
  21. Important Notes:
  22. - The script requires elevated permissions to modify system files and must be executed manually from the terminal with administrative privileges.
  23.  
  24. - Before executing the script, please ensure that you have backed up your hosts file to avoid any unintended consequences.
  25.  
  26. - To execute the script, open Command Prompt as administrator
  27.        (right-click 'CMD' to run as administrator).
  28.  
  29. - Navigate to the script's directory using the command:
  30.        'cd C:/path/to/your/script'.
  31. - Execute the script with the command:
  32.        'python kill_ms_spyware_host_connections.py'.
  33.  
  34. Usage:
  35. - From the Start menu, choose "Command Prompt (Admin)" or right-click your favorite editor OR cmd & select "Run as administrator".
  36. (This will launch Command Prompt with administrative privileges.)
  37. - Navigate to the script's directory using the command 'cd C:/Windows/System32/drivers/etc'.
  38. - Execute the script with the command 'python kill_ms_spyware_host_connections.py'.
  39. """
  40.  
  41. def append_to_hosts_file(data):
  42.     try:
  43.         with open('C:/Windows/System32/drivers/etc/hosts', 'a') as hosts_file:
  44.             hosts_file.write(data)
  45.         print("\nData appended successfully to hosts file.\n")
  46.     except Exception as e:
  47.         print("An error occurred:", str(e))
  48.  
  49. # Data to append to hosts file (YOU MUST HAVE ADMINISTRATIVE PERMISSIONS)
  50. data_to_append = """
  51. # Malicious Data Havester Addresses Microsoft Sends Your Data & Grants Perminent Scraping:
  52.  
  53. 127.0.0.1       localhost
  54. ::1             localhost
  55. 127.0.0.1  data.microsoft.com
  56. 127.0.0.1  msftconnecttest.com
  57. 127.0.0.1  azureedge.net
  58. 127.0.0.1  activity.windows.com
  59. 127.0.0.1  bingapis.com
  60. 127.0.0.1  msedge.net
  61. 127.0.0.1  assets.msn.com
  62. 127.0.0.1  scorecardresearch.com
  63. 127.0.0.1  edge.microsoft.com
  64. 127.0.0.1  data.msn.com
  65. """
  66.  
  67. # Append data to hosts file
  68. append_to_hosts_file(data_to_append)
  69.  
  70. # Congratulations!
  71. print("\nMICROSOFT SPYWARE IP ADDRESSES HAVE BEEN BLACKLISTED IN HOSTS SUCCESSFULLY!\n\nYOUR DATA IS NO LONGER BEING HARVESTED!\n")
  72.  
  73.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement