Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/10se1ucgo/DisableWinTracking.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuined1 <ruined1@gmail.com>2015-10-09 12:47:42 +0300
committerRuined1 <ruined1@gmail.com>2015-10-09 12:47:42 +0300
commit6df18aa00f1ff022724b7decbba5fb1b2e652e96 (patch)
tree29ba804a8452b4b01f77672912df6b9fd77574dd
parent0476453840a5c5f55cf3b3db140eb8e4bc256b60 (diff)
fixed variables/final 4 policy manager
-rw-r--r--.gitignore8
-rw-r--r--run.py24
2 files changed, 20 insertions, 12 deletions
diff --git a/.gitignore b/.gitignore
index c5138ba..f075898 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,5 +9,13 @@ build/
dist/
*.spec
+#Sublime Stuff
+*.sublime-project
+*.sublime-workspace
+
# Log
DisableWinTracking.log
+
+# Ruined1 Stuff
+setup.py
+tester.py \ No newline at end of file
diff --git a/run.py b/run.py
index e90b84b..7d1f6ec 100644
--- a/run.py
+++ b/run.py
@@ -1,4 +1,4 @@
-import ctypes
+import ctypes
import logging
import os
import subprocess
@@ -307,7 +307,7 @@ class MainFrame(wx.Frame):
startval = 3
telemetryval = 1
undo = True
- defendersenseval = 1
+ val = 1
filesyncval = 0
installerfunc = "install"
else:
@@ -315,7 +315,7 @@ class MainFrame(wx.Frame):
startval = 4
telemetryval = 0
undo = False
- defendersenseval = 0
+ val = 0
filesyncval = 1
installerfunc = "uninstall"
self.cluttercontrol()
@@ -350,8 +350,8 @@ class MainFrame(wx.Frame):
logging.info("IP block box ticked")
blockips(iplist=self.ippicker.GetSelections(), undo=undo)
if self.ppbox.IsChecked():
- logging.info("Defender/Wifisense box ticked")
- privacypoliciesregs(defendersenseval=defendersenseval)
+ logging.info("Policy Manager box ticked")
+ privacypoliciesregs(val=val)
if self.onedrivedbox.IsChecked():
logging.info("OneDrive box ticked")
modifyonedrive(installerfunc=installerfunc, filesyncval=filesyncval)
@@ -519,32 +519,32 @@ def privacypoliciesregs(val):
wdwfsdict = {'Delivery Optimization Download Mode' :
[_winreg.HKEY_LOCAL_MACHINE,
r'SOFTWARE\Microsoft\PolicyManager\default\DeliveryOptimization\DODownloadMode',
- 'value', _winreg.REG_DWORD, defendersenseval],
+ 'value', _winreg.REG_DWORD, val],
'WifiSense Hotspot Auto Connect' :
[_winreg.HKEY_LOCAL_MACHINE,
r'SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots',
- 'value', _winreg.REG_DWORD, defendersenseval],
+ 'value', _winreg.REG_DWORD, val],
'WifiSense Hotspot Reporting' :
[_winreg.HKEY_LOCAL_MACHINE,
r'SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting',
- 'value', _winreg.REG_DWORD, defendersenseval],
+ 'value', _winreg.REG_DWORD, val],
'Windows Telemtry Data Gathering' :
[_winreg.HKEY_LOCAL_MACHINE,
r'SOFTWARE\Microsoft\PolicyManager\default\System\AllowTelemetry',
- 'value', _winreg.REG_DWORD, defendersenseval],
+ 'value', _winreg.REG_DWORD, val],
'Windows Defender Automatic Sample Submission' :
[_winreg.HKEY_LOCAL_MACHINE,
r'SOFTWARE\Microsoft\PolicyManager\default\Defender\SubmitSamplesConsent',
- 'value', _winreg.REG_DWORD, defendersenseval],
+ 'value', _winreg.REG_DWORD, val],
'Windows Defender Spynet (Cloud Protection)' :
[_winreg.HKEY_LOCAL_MACHINE,
r'SOFTWARE\Microsoft\PolicyManager\default\Defender\AllowCloudProtection',
- 'value', _winreg.REG_DWORD, defendersenseval]}
+ 'value', _winreg.REG_DWORD, val]}
#Commented until we fix these or find alternatives like above
#Not sure if above will have desired effect, so I didn't want to get rid of these
@@ -570,7 +570,7 @@ def privacypoliciesregs(val):
# r'SOFTWARE\Microsoft\Windows Defender\Spynet',
# 'SubmitSamplesConsent', _winreg.REG_DWORD, defendersenseval]}
- modifyregistry(wdwfsdict, name="WifiSense/Defender")
+ modifyregistry(wdwfsdict, name="Policy Manager Registry Entries")
def modifyonedrive(installerfunc, filesyncval):