Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f27a2871d7 | ||
|
|
909c44d72a | ||
|
|
53cf595e17 |
12
Dockerfile
12
Dockerfile
@@ -1,20 +1,12 @@
|
||||
# +-+-+-+-+-+ +-+-+-+-+-+
|
||||
# |B|u|i|l|d| |S|t|a|g|e|
|
||||
# +-+-+-+-+-+ +-+-+-+-+-+
|
||||
# Build
|
||||
FROM node:lts-alpine as build-stage
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
# For testing purposes, it's easy to run http-server on lts-alpine such as continuing from here:
|
||||
# RUN npm install -g http-server
|
||||
# EXPOSE 8080
|
||||
# CMD [ "http-server", "dist" ]
|
||||
|
||||
# +-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+
|
||||
# |P|r|o|d|u|c|t|i|o|n| |S|t|a|g|e|
|
||||
# +-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+
|
||||
# Production stage
|
||||
FROM nginx:stable-alpine as production-stage
|
||||
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
|
||||
20
README.md
20
README.md
@@ -28,16 +28,16 @@ Fork it & add more scripts in [application.yaml](src/application/application.yam
|
||||
|
||||
## Commands
|
||||
|
||||
- Setup and run
|
||||
- For development:
|
||||
- `npm install` to project setup.
|
||||
- `npm run serve` to compile & hot-reload for development.
|
||||
- Production (using Docker):
|
||||
- Build `docker build -t undergroundwires/privacy.sexy .`
|
||||
- Run `docker run -it -p 8080:8080 --rm --name privacy.sexy-1 undergroundwires/privacy.sexy`
|
||||
- Prepare for production: `npm run build`
|
||||
- Run tests: `npm run test:unit`
|
||||
- Lint and fix files: `npm run lint`
|
||||
- Project setup: `npm install`
|
||||
- Testing
|
||||
- Run unit tests: `npm run test:unit`
|
||||
- Lint: `npm run lint`
|
||||
- **Webpage**
|
||||
- Development: `npm run serve` to compile & hot-reload for development.
|
||||
- Production: `npm run build` to prepare files for distribution.
|
||||
- Or run using Docker:
|
||||
1. Build: `docker build -t undergroundwires/privacy.sexy:0.4.8 .`
|
||||
2. Run: `docker run -it -p 8080:80 --rm --name privacy.sexy-0.4.8 undergroundwires/privacy.sexy:0.4.8`
|
||||
|
||||
## Architecture
|
||||
|
||||
|
||||
@@ -298,13 +298,22 @@ actions:
|
||||
recommended: false
|
||||
docs: https://www.windowslifestyle.com/reset-data-usage-tool-reset-network-data-usage-windows-10/
|
||||
code: |-
|
||||
SET was_running=0
|
||||
net stop DPS && was_running=1
|
||||
echo %was_running%
|
||||
del /F /S /Q /A "%windir%\System32\sru*"
|
||||
IF NOT %was_running% == 0 (
|
||||
net start DPS
|
||||
)
|
||||
setlocal EnableDelayedExpansion
|
||||
SET /A dps_service_running=0
|
||||
SC queryex "DPS"|Find "STATE"|Find /v "RUNNING">Nul||(
|
||||
SET /A dps_service_running=1
|
||||
net stop DPS
|
||||
)
|
||||
|
||||
REM del /F /S /Q /A "%windir%\System32\sru*"
|
||||
|
||||
IF !dps_service_running! == 1 (
|
||||
echo "Was running"
|
||||
net start DPS
|
||||
) ELSE (
|
||||
echo "Was not running"
|
||||
)
|
||||
endlocal
|
||||
|
||||
-
|
||||
category: Disable OS data collection
|
||||
@@ -373,6 +382,10 @@ actions:
|
||||
code: |-
|
||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata" /v "PreventDeviceMetadataFromNetwork" /t REG_DWORD /d 1 /f
|
||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" /v "PreventDeviceMetadataFromNetwork" /t REG_DWORD /d 1 /f
|
||||
-
|
||||
name: Disable active prompting (pings to MSFT NCSI server)
|
||||
recommend: false
|
||||
code: reg add "HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet" /v "EnableActiveProbing" /t REG_DWORD /d "0" /f
|
||||
-
|
||||
name: Opt out from Windows privacy consent
|
||||
recommend: true
|
||||
@@ -538,7 +551,6 @@ actions:
|
||||
name: Deny app access to text/mms
|
||||
recommend: true
|
||||
code: reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{992AFA70-6F47-4148-B3E9-3003349C1548}" /t REG_SZ /v "Value" /d DENY /f
|
||||
|
||||
-
|
||||
name: Deny location access
|
||||
recommend: true
|
||||
@@ -867,7 +879,11 @@ actions:
|
||||
reg add "HKCU\SOFTWARE\Policies\Microsoft\Office\15.0\osm" /v "Enablelogging" /t REG_DWORD /d 0 /f
|
||||
reg add "HKCU\SOFTWARE\Policies\Microsoft\Office\15.0\osm" /v "EnableUpload" /t REG_DWORD /d 0 /f
|
||||
reg add "HKCU\SOFTWARE\Policies\Microsoft\Office\16.0\osm" /v "Enablelogging" /t REG_DWORD /d 0 /f
|
||||
reg add "HKCU\SOFTWARE\Policies\Microsoft\Office\16.0\osm" /v "EnableUpload" /t REG_DWORD /d 0 /f
|
||||
reg add "HKCU\SOFTWARE\Policies\Microsoft\Office\16.0\osm" /v "EnableUpload" /t REG_DWORD /d 0 /f
|
||||
schtasks /change /TN "Microsoft\Office\Office ClickToRun Service Monitor" /DISABLE
|
||||
schtasks /change /TN "Microsoft\Office\OfficeTelemetryAgentFallBack2016" /DISABLE
|
||||
schtasks /change /TN "Microsoft\Office\OfficeTelemetryAgentLogOn2016" /DISABLE
|
||||
sc stop "ClickToRunSvc" & sc config "ClickToRunSvc" start= disabled
|
||||
-
|
||||
category: Configure browsers
|
||||
children:
|
||||
@@ -1130,7 +1146,11 @@ actions:
|
||||
-
|
||||
name: Disable Windows Defender
|
||||
recommend: false
|
||||
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f
|
||||
code: |
|
||||
netsh advfirewall set allprofiles state off
|
||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\MpsSvc" /v "Start" /t REG_DWORD /d 4 /f
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\WinDefend" /v "Start" /t REG_DWORD /d 4 /f
|
||||
-
|
||||
name: Disable Smart Screen
|
||||
recommend: false
|
||||
|
||||
Reference in New Issue
Block a user