コード例 #1
0
    def go(self, event):
        if not all((self.picked_ips, self.picked_extra, self.picked_normal)):
            self.settings(event=None)

        undo = bool(self.mode_rad.GetSelection())

        if self.ip_check.IsChecked():
            dwt_util.ip_block(self.picked_ips, undo=undo)
        if self.diagtrack_check.IsChecked():
            dwt_util.clear_diagtrack()
        if self.service_check.IsChecked():
            if self.service_rad.GetSize():
                dwt_util.delete_service("dmwappushsvc")
                dwt_util.delete_service("DiagTrack")
            else:
                dwt_util.disable_service("dmwappushsvc")
                dwt_util.disable_service("DiagTrack")
            dwt_util.services(undo=undo)
        if self.telemetry_check.IsChecked():
            dwt_util.telemetry(undo=undo)
        if self.host_check.IsChecked():
            dwt_util.host_file(self.picked_normal, undo=undo)
        if self.extra_host_check.IsChecked():
            dwt_util.host_file(self.picked_extra, undo=undo)
        if self.defender_check.IsChecked():
            dwt_util.defender(undo=undo)
        if self.wifisense_check.IsChecked():
            dwt_util.wifisense(undo=undo)
        if self.onedrive_check.IsChecked():
            dwt_util.onedrive(undo=undo)
        logger.info("Done. It's recommended that you reboot as soon as possible for the full effect.")
        logger.info(("If you feel something didn't work properly, please press the 'Report an issue"
                      "button and follow the directions"))
        console.Center()
        console.Show()
コード例 #2
0
	def go(self, event):
		if not all((self.picked_ips, self.picked_extra, self.picked_normal)):
			self.settings(event=None)

		undo = bool(self.mode_rad.GetSelection())

		if self.ip_check.IsChecked():
			dwt_util.ip_block(self.picked_ips, undo=undo)
		if self.diagtrack_check.IsChecked():
			dwt_util.clear_diagtrack()
		if self.service_check.IsChecked():
			if self.service_rad.GetSize():
				dwt_util.delete_service("dmwappushsvc")
				dwt_util.delete_service("DiagTrack")
			else:
				dwt_util.disable_service("dmwappushsvc")
				dwt_util.disable_service("DiagTrack")
			dwt_util.services(undo=undo)
		if self.telemetry_check.IsChecked():
			dwt_util.telemetry(undo=undo)
		if self.host_check.IsChecked():
			dwt_util.host_file(self.picked_normal, undo=undo)
		if self.extra_host_check.IsChecked():
			dwt_util.host_file(self.picked_extra, undo=undo)
		if self.defender_check.IsChecked():
			dwt_util.defender(undo=undo)
		if self.wifisense_check.IsChecked():
			dwt_util.wifisense(undo=undo)
		if self.onedrive_check.IsChecked():
			dwt_util.onedrive(undo=undo)
		logger.info("Done. It's recommended that you reboot as soon as possible for the full effect.")
		logger.info(("If you feel something didn't work properly, please press the 'Report an issue'"
					  " button and follow the directions"))
		console.Center()
		console.Show()
コード例 #3
0
ファイル: dwt.py プロジェクト: LukaszLapaj/DisableWinTracking
def silent():
    setup_logging()
    check_elevated(True)
    dwt_util.clear_diagtrack()
    dwt_util.disable_service("dmwappushsvc")
    dwt_util.disable_service("DiagTrack")
    dwt_util.services(0)
    dwt_util.telemetry(0)
    dwt_util.wifisense(0)
    dwt_util.onedrive(0)
    logger.info("COMPLETE")
コード例 #4
0
ファイル: dwt.py プロジェクト: LukaszLapaj/DisableWinTracking
def silent_default():
    setup_logging()
    check_elevated(True)
    dwt_util.clear_diagtrack()
    dwt_util.disable_service("dmwappushsvc")
    dwt_util.disable_service("DiagTrack")
    dwt_util.services(0)
    dwt_util.telemetry(0)
    dwt_util.clear_hosts()
    dwt_util.hosts_ad_removal(adblock_whitelist, 0)
    dwt_util.hosts_tracking_removal(normal_domains, 0)
    logger.info("COMPLETE")
コード例 #5
0
ファイル: dwt.py プロジェクト: LukaszLapaj/DisableWinTracking
    def go(self, event):
        if not all((self.unpicked_ads, self.picked_ips, self.picked_extra,
                    self.picked_normal)):
            self.settings(event=None)

        undo = bool(self.mode_rad.GetSelection())

        if self.ip_check.IsChecked():
            dwt_util.ip_block(self.picked_ips, undo=undo)
        if self.diagtrack_check.IsChecked():
            dwt_util.clear_diagtrack()
        if self.service_check.IsChecked():
            if self.service_rad.GetSize():
                dwt_util.delete_service("dmwappushsvc")
                dwt_util.delete_service("DiagTrack")
            else:
                dwt_util.disable_service("dmwappushsvc")
                dwt_util.disable_service("DiagTrack")
            dwt_util.services(undo=undo)
        if self.telemetry_check.IsChecked():
            dwt_util.telemetry(undo=undo)
        if self.clear_hosts_check.IsChecked():
            dwt_util.clear_hosts()
        if self.ads_check.IsChecked():
            dwt_util.hosts_ad_removal(self.unpicked_ads, undo=undo)
        if self.host_check.IsChecked():
            dwt_util.hosts_tracking_removal(self.picked_normal, undo=undo)
        if self.extra_host_check.IsChecked():
            dwt_util.hosts_tracking_removal(self.picked_extra, undo=undo)
        if self.flush_dns_check.IsChecked():
            dwt_util.flush_dns()
        if self.wifisense_check.IsChecked():
            dwt_util.wifisense(undo=undo)
        if self.onedrive_check.IsChecked():
            dwt_util.onedrive(undo=undo)
        if self.dvr_check.IsChecked():
            dwt_util.dvr(undo=undo)
        if self.windows_update_check.IsChecked():
            dwt_util.windows_update(undo=undo)
        if self.cloudflare_dns_check.IsChecked():
            dwt_util.cloudflare_dns(undo=undo)
        if self.location_check.IsChecked():
            dwt_util.location(undo=undo)
        logger.info(
            "Done. It's recommended that you reboot as soon as possible for the full effect."
        )
        logger.info(
            "If you feel something didn't work properly, please press the 'Report an issue'"
        )
        console.Center()
        console.Show()