From 34f83d69ef696202d4adce1ba02500890d17986d Mon Sep 17 00:00:00 2001 From: Umbreon Date: Thu, 2 Sep 2021 16:37:28 +0100 Subject: [PATCH] Improvements --- .gitignore | 2 + .vscode/launch.json | 5 +- example.html | 0 src/__pycache__/extension.cpython-37.pyc | Bin 1167 -> 0 bytes src/chrome.html | 103 ++++++++-------- src/chrome.md | 34 +++--- src/convert.py | 146 ++++++++++------------- src/template.html | 42 +++++++ 8 files changed, 181 insertions(+), 151 deletions(-) create mode 100644 .gitignore delete mode 100644 example.html delete mode 100644 src/__pycache__/extension.cpython-37.pyc create mode 100644 src/template.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3040d64 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +__pycache__/ +.vscode/ \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index 17e15f2..45e6c97 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -8,8 +8,9 @@ "name": "Python: Current File", "type": "python", "request": "launch", - "program": "${file}", - "console": "integratedTerminal" + "program": "${workspaceFolder}/src/convert.py", + "console": "integratedTerminal", + "cwd": "${workspaceFolder}/src" } ] } \ No newline at end of file diff --git a/example.html b/example.html deleted file mode 100644 index e69de29..0000000 diff --git a/src/__pycache__/extension.cpython-37.pyc b/src/__pycache__/extension.cpython-37.pyc deleted file mode 100644 index d5b6aabc02a41b6120654be9757daf0b2cfbd807..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1167 zcmb7DTTj$L6rM{PYX=uDOc#tYc`BM3nR zO^A=0B_yRjrD*enrQGMGO%p4%8KESd@oh@p5Mc@XoCsU;GwwU!&j<&6M^f-zK|92A zFX3#`_Nb|?9~Uyy-8=(l{%w|YGx=WSvD7+OF=kB`;H+>hf+2}d1@W1nf}Ine3l67R zrrF8+DwZ4F>`=dmtvTv8}ztbHYSujtkl-BuXzTw}{Z zNokz*M5Zz;Ouf_Jnb`K8%Hf!qs3=r-$5@3tE{v^Hjwi=3lC!8zX*oDDtB$#=~%-{zHU&;0);jP@w=C z4e1#ZOz=@jY9v#8&_3`@nedz!hj-(rGr0n*AV6FPW!4Snn1RA{lf3+W2+tNSP(p}>((iL#pyAa)b> zq?_n_HRGn^#wcuvzcg`M)ops?+bH~h% - Google Chrome — Spyware Watchdog + Google Chrome — Spyware Watchdog @@ -20,59 +19,57 @@

Google Chrome is a web browser developed and distributed by Google.

Spyware Level: 8

Google Chrome is not fully open source

-

Large parts of Google Chrome are open source, however not all of them are, and this prevents people from - checking the entire software for potential spyware features that are not disclosed.

-

Google Chrome tracks the user's search history

-

Google Chrome contains several spyware features that reply on the user's search history being uploaded to Google servers. This is confirmed by the language in the privacy policy[1], clarifying the spyware features that rely on this.

-

The first spyware feature is Google Chrome's integration with the "Google Account" spyware platform. "If you are signed in to a Google site or signed in to Chrome and Google is your default search engine, searches you perform using the address bar in Chrome are stored in your Google account."

-

Google Chrome also contains a spyware feature called "Search prediction service". It is explained that: - "When you search using the address bar in Chrome, the characters you type (even if you haven’t hit "enter" yet) are sent to your default search engine. If Google is your default search engine, predictions are based on your own search history, topics related to what you’re typing and what other people are searching for."

-

There is also the spyware feature "Navigation Assistance" which states that: "When you can’t connect to a web page, you can get suggestions for alternative pages similar to the one you're trying to reach. In order to offer you suggestions, Chrome sends Google the URL of the page you're trying to reach. "

-

Google Chrome profiles your computer usage

-

In the privacy policy[1], Google details the extreme spyware feature it labels "Usage Statistics and Crash Reports". What it does, is it sends very detailed information about your hardware and computer usage, which confirms that it definitely contains the following spyware features:

-
    -
  • A tracker that records mouse input over time
  • -
  • A tracker that profiles memory usage
  • -
-

But, it can also be extrapolated from the vague language that Chrome could and probably does monitor what other programs you have open. Either way, it is an extreme amount of information being collected, since it can be used to recreate what the user is doing on their desktop at all times. Chrome clarifies that this information is being sent whenever a website is being "slow" or whenever Google Chrome crashes.

-

Google Chrome is integrated with Google Payments

-

Google Payments is a spyware service that records your banking information and sends it to Google.[2] This service is integrated into the Google Chrome browser, which makes it another opt-in spyware feature in the software.

-

Google Chrome contains a keylogger

-

This was confirmed in multiple places[3][4]. Basically, whenever you type into the search bar, that information is sent to Google. You can apparently turn it off by opting out of the "suggestion service".

-

Google Chrome records your voice

-

Google Chrome is confirmed to be constantly listening to any open microphones on your computer. This can be found in this statement[5] in a privacy publication. "Voice & audio information may be collected. For example, if your child uses audio activation commands (e.g., "OK, Google" or touching the microphone icon), a recording of the following speech/audio, plus a few seconds before, will be stored to their account…" This feature is opt-in if you are using the "Google Accounts" spyware platform and specifically tell Google to build a profile of your child. It's unverified whether or not Google uploads information it listens too to its servers outside of this feature.

-

Google Chrome saves user passwords on Google Servers

-

Any password stored in Google Chrome's "password management" feature is uploaded to Google if you sign into the "Google Accounts" spyware platform.

-

Google Chrome profiles users in other various ways

-

According to the privacy policy[1], Google Chrome profiles what kinds of web forms you fill out, as well as what kind of language the content you consume is primarily in. Google Chrome also creates a unique identifier for each install you do. This unique identifier is sent to Google whenever you start the browser, so that Google can create a consistent user identity for you, undermining anonymity. Google also stores all of your settings on it's official servers when using the "Google Accounts" feature.

-

Google Chrome is self-updating software

-

Google Chrome has an updater which is constantly running in the background and syncing with Google servers to check for updates. The updater will download and run unverified binaries from Google when it updates Google Chrome. It is impossible for an automatic updater service such as this to verify that the updates are not spyware and/or do not contain additional spyware features.

+

Large parts of Google Chrome are open source, however not all of them are, and this prevents people from checking the entire software for potential spyware features that are not disclosed.

+

Google Chrome tracks the user's search history

+

Google Chrome contains several spyware features that reply on the user's search history being uploaded to Google servers. This is confirmed by the language in the privacy policy[1], clarifying the spyware features that rely on this.

+

The first spyware feature is Google Chrome's integration with the "Google Account" spyware platform. "If you are signed in to a Google site or signed in to Chrome and Google is your default search engine, searches you perform using the address bar in Chrome are stored in your Google account."

+

Google Chrome also contains a spyware feature called "Search prediction service". It is explained that: +"When you search using the address bar in Chrome, the characters you type (even if you haven’t hit "enter" yet) are sent to your default search engine. If Google is your default search engine, predictions are based on your own search history, topics related to what you’re typing and what other people are searching for."

+

There is also the spyware feature "Navigation Assistance" which states that: "When you can’t connect to a web page, you can get suggestions for alternative pages similar to the one you're trying to reach. In order to offer you suggestions, Chrome sends Google the URL of the page you're trying to reach. "

+

Google Chrome profiles your computer usage

+

In the privacy policy[1], Google details the extreme spyware feature it labels "Usage Statistics and Crash Reports". What it does, is it sends very detailed information about your hardware and computer usage, which confirms that it definitely contains the following spyware features:

+
    +
  • A tracker that records mouse input over time
  • +
  • A tracker that profiles memory usage
  • +
+

But, it can also be extrapolated from the vague language that Chrome could and probably does monitor what other programs you have open. Either way, it is an extreme amount of information being collected, since it can be used to recreate what the user is doing on their desktop at all times. Chrome clarifies that this information is being sent whenever a website is being "slow" or whenever Google Chrome crashes.

+

Google Chrome is integrated with Google Payments

+

Google Payments is a spyware service that records your banking information and sends it to Google.[2] This service is integrated into the Google Chrome browser, which makes it another opt-in spyware feature in the software.

+

Google Chrome contains a keylogger

+

This was confirmed in multiple places[3][4]. Basically, whenever you type into the search bar, that information is sent to Google. You can apparently turn it off by opting out of the "suggestion service".

+

Google Chrome records your voice

+

Google Chrome is confirmed to be constantly listening to any open microphones on your computer. This can be found in this statement[5] in a privacy publication. "Voice & audio information may be collected. For example, if your child uses audio activation commands (e.g., "OK, Google" or touching the microphone icon), a recording of the following speech/audio, plus a few seconds before, will be stored to their account…" This feature is opt-in if you are using the "Google Accounts" spyware platform and specifically tell Google to build a profile of your child. It's unverified whether or not Google uploads information it listens too to its servers outside of this feature.

+

Google Chrome saves user passwords on Google Servers

+

Any password stored in Google Chrome's "password management" feature is uploaded to Google if you sign into the "Google Accounts" spyware platform.

+

Google Chrome profiles users in other various ways

+

According to the privacy policy[1], Google Chrome profiles what kinds of web forms you fill out, as well as what kind of language the content you consume is primarily in. Google Chrome also creates a unique identifier for each install you do. This unique identifier is sent to Google whenever you start the browser, so that Google can create a consistent user identity for you, undermining anonymity. Google also stores all of your settings on it's official servers when using the "Google Accounts" feature.

+

Google Chrome is self-updating software

+

Google Chrome has an updater which is constantly running in the background and syncing with Google servers to check for updates. The updater will download and run unverified binaries from Google when it updates Google Chrome. It is impossible for an automatic updater service such as this to verify that the updates are not spyware and/or do not contain additional spyware features.

+ + + + - + \ No newline at end of file diff --git a/src/chrome.md b/src/chrome.md index dd6f637..8269d9e 100644 --- a/src/chrome.md +++ b/src/chrome.md @@ -1,26 +1,28 @@ -Title: Google Chrome -Rating: 8 -Catagory: Browser -Created: 0000.00.00 -Modified: 2018.12.12 -Version: 1337 -Introduction: +--- +title: Google Chrome +rating: 8 +catagory: Browser +created: 0000.00.00 +modified: 2018.12.12 +version: 1337 +--- + +## Introduction Google Chrome is a web browser developed and distributed by [Google](https://spyware.neocities.org/articles/google.html). -Content: +## Content ### Google Chrome is not fully open source -Large parts of Google Chrome are open source, however not all of them are, and this prevents people from -checking the entire software for potential spyware features that are not disclosed. +Large parts of Google Chrome are open source, however not all of them are, and this prevents people from checking the entire software for potential spyware features that are not disclosed. ### Google Chrome tracks the user's search history Google Chrome contains several spyware features that reply on the user's search history being uploaded to Google servers. This is confirmed by the language in the privacy policy[^1], clarifying the spyware features that rely on this. -The first spyware feature is Google Chrome's integration with the "Google Account" spyware platform. _"If you are signed in to a Google site or signed in to Chrome and Google is your default search engine, searches you perform using the address bar in Chrome are stored in your Google account."_ +The first spyware feature is Google Chrome's integration with the "Google Account" spyware platform. *"If you are signed in to a Google site or signed in to Chrome and Google is your default search engine, searches you perform using the address bar in Chrome are stored in your Google account."* Google Chrome also contains a spyware feature called "Search prediction service". It is explained that: -_"When you search using the address bar in Chrome, the characters you type (even if you haven’t hit "enter" yet) are sent to your default search engine. If Google is your default search engine, predictions are based on your own search history, topics related to what you’re typing and what other people are searching for."_ +*"When you search using the address bar in Chrome, the characters you type (even if you haven’t hit "enter" yet) are sent to your default search engine. If Google is your default search engine, predictions are based on your own search history, topics related to what you’re typing and what other people are searching for."* -There is also the spyware feature "Navigation Assistance" which states that: _"When you can’t connect to a web page, you can get suggestions for alternative pages similar to the one you're trying to reach. In order to offer you suggestions, Chrome sends Google the URL of the page you're trying to reach. "_ +There is also the spyware feature "Navigation Assistance" which states that: *"When you can’t connect to a web page, you can get suggestions for alternative pages similar to the one you're trying to reach. In order to offer you suggestions, Chrome sends Google the URL of the page you're trying to reach. "* ### Google Chrome profiles your computer usage In the privacy policy[^1], Google details the extreme spyware feature it labels "Usage Statistics and Crash Reports". What it does, is it sends very detailed information about your hardware and computer usage, which confirms that it definitely contains the following spyware features: @@ -37,7 +39,7 @@ Google Payments is a spyware service that records your banking information and s This was confirmed in multiple places[^3][^4]. Basically, whenever you type into the search bar, that information is sent to Google. You can apparently turn it off by opting out of the "suggestion service". ### Google Chrome records your voice -Google Chrome is confirmed to be constantly listening to any open microphones on your computer. This can be found in this statement[^5] in a privacy publication. _"Voice & audio information may be collected. For example, if your child uses audio activation commands (e.g., "OK, Google" or touching the microphone icon), a recording of the following speech/audio, **plus a few seconds before**, will be stored to their account…"_ This feature is opt-in if you are using the "Google Accounts" spyware platform and specifically tell Google to build a profile of your child. It's unverified whether or not Google uploads information it listens too to its servers outside of this feature. +Google Chrome is confirmed to be constantly listening to any open microphones on your computer. This can be found in this statement[^5] in a privacy publication. *"Voice & audio information may be collected. For example, if your child uses audio activation commands (e.g., "OK, Google" or touching the microphone icon), a recording of the following speech/audio, **plus a few seconds before**, will be stored to their account…"* This feature is opt-in if you are using the "Google Accounts" spyware platform and specifically tell Google to build a profile of your child. It's unverified whether or not Google uploads information it listens too to its servers outside of this feature. ### Google Chrome saves user passwords on Google Servers Any password stored in Google Chrome's "password management" feature is uploaded to Google if you sign into the "Google Accounts" spyware platform. @@ -48,11 +50,11 @@ According to the privacy policy[^1], Google Chrome profiles what kinds of web fo ### Google Chrome is self-updating software Google Chrome has an updater which is constantly running in the background and syncing with Google servers to check for updates. The updater will download and run unverified binaries from Google when it updates Google Chrome. It is impossible for an automatic updater service such as this to verify that the updates are not spyware and/or do not contain additional spyware features. -Further: +## Further * [Reasons to not use google](https://stallman.org/google.html) [[web.archive.org]](https://web.archive.org/web/20180512214729/http://stallman.org/google.html) [[archive.is]](http://archive.is/20170929072403/https://stallman.org/google.html) * [Welcome to the Botnet. Or, The Case Against Google Chrome](https://8ch.net/tech/chrome.html) [[web.archive.org]](https://web.archive.org/web/20150501010435/https://8ch.net/tech/chrome.html) [[archive.is]](http://archive.is/OR4dz) -Sources: +## Sources 1. [Google Chrome Privacy Notice](https://www.google.com/chrome/browser/privacy/index.html) [[web.archive.org]](http://web.archive.org/web/20180427041202/https://www.google.com/chrome/browser/privacy/index.html) [[archive.is]](https://archive.is/GJIKw) 2. [Google Payments Privacy Notice](https://payments.google.com/payments/apis-secure/get_legal_document?ldo=0&ldt=privacynotice) [[web.archive.org]](https://web.archive.org/web/20180514095832/https://payments.google.com/payments/apis-secure/get_legal_document?ldo=0&ldt=privacynotice) 3. [Google Chrome – Spyware? Confirmed?](http://www.favbrowser.com/google-chrome-spyware-confirmed/) [[web.archive.org]](https://web.archive.org/web/20180410043922/http://www.favbrowser.com/google-chrome-spyware-confirmed/) [[archive.li]](https://archive.li/jxCPf) diff --git a/src/convert.py b/src/convert.py index 1fe9c42..e8da8ea 100644 --- a/src/convert.py +++ b/src/convert.py @@ -1,109 +1,95 @@ -import markdown -import extension -import re +## Imports +import re # built-in +import markdown, yaml #PIP +import extension # local -MAIN_HTML = """ - - +## Config +FORMAT_HTML = False # Useful for debugging, can be disabled otherwise. +CONFIG_REGEX = r"---((.|\n)+)---" # Regex used to find YAML config. +CATAGORY_REGEX = r"(?:^|\n)##\s([^\n]*)\n(.*?)(?=\n##?\s|$)" # Regex used to find each catagory - source: https://stackoverflow.com/a/66619938. - - - {title} — Spyware Watchdog - - +## Main +f = open("template.html") +MAIN_HTML = f.read() +f.close() - -
- - -
- {title}'s Logo -

{title}

- {introduction} -

Spyware Level: {spywareLevel}

- {content} -
- - -
- - - -""" - -md = markdown.Markdown(extensions=[extension.ArticleMarkdown()]) # The extension which adds various features to the markdown - -regex = r"Title: (.+)\nRating: (\d+)\nCatagory: (.+)\nCreated: (.+)\nModified: (.+)\nVersion: (.+)\nIntroduction:\n([\s\S]*)Content:\n([\s\S]*)Further:\n([\s\S]*)Sources:\n([\s\S]*)" +md = markdown.Markdown( + extensions=[ + extension.ArticleMarkdown() # The extension which adds various features to the markdown + ] +) def convertMarkdown(inputStr, fileName): - result = re.match(regex, inputStr, re.MULTILINE) - title = result.group(1) - rating = result.group(2) - catagory = result.group(3) - created = result.group(4) - modified = result.group(5) - version = result.group(6) - introduction = result.group(7) - content = result.group(8) - further = result.group(9) - sources = result.group(10) + ## Variable Setup + # Get Markdown config + configReg = re.match(CONFIG_REGEX, inputStr, re.MULTILINE) + if configReg is None: + raise Exception("Config regex failed") + config = yaml.safe_load(configReg.group(1)) - footer = "" + # Get Markdown catagories + catagories = {} + catagoriesReg = re.finditer(CATAGORY_REGEX, inputStr, re.DOTALL) + if catagoriesReg is None: + raise Exception("Catagories regex failed") + for _, match in enumerate(catagoriesReg, start=1): + catagories[match.group(1)] = match.group(2) + ## Document generation # Futher reading - footer += """
+ further = "" + if "Further" in catagories: + further = """
-

Further Reading:

+

Further Reading:

{further}
-""".format(further = md.convert(further).replace("\n","\n\t")).replace("\n", "\n\t\t\t") +""".format(further = md.convert(catagories['Further'])) # Sources - a = "" - for i in sources.split("\n"): - if i != "": - result = re.match(r"(\d+)\. (.+)", i) - a += """\n
  • {content}
  • """.format( - number = result.group(1), - content = md.convert(result.group(2)) - ).replace("\n", "\n\t\t") + sources = "" + if "Sources" in catagories: + a = "" + for i in catagories['Sources'].split("\n"): + if i != "": + result = re.match(r"(\d+)\. (.+)", i) + a += """
  • {content}
  • """.format( + number = result.group(1), + content = md.convert(result.group(2)) + ) - footer += f"""
    + sources = f"""

    Sources:

      {a}
    -
    -""".replace("\n", "\n\t\t\t") +""" - # dates - footer += f"""
    -This article was created on {created}
    -This article was last modified on {modified}
    -This article is made for version {version} of the software""".replace("\n", "\n\t\t\t") + # Footer + footer = "
    " + if "created" in config: + footer += f"This article was created on {config['created']}
    " + if "modified" in config: + footer += f"This article was last modified on {config['modified']}
    " + if "version" in config: + footer += f"This article is made for version {config['version']} of the software" - # The .replace is used below to make sure indentation is consistent - # This is not required but makes debugging a little easier. - return MAIN_HTML.format( - title = title, + html = MAIN_HTML.format( + title = config['title'], fileName = fileName, - spywareLevel = rating, - introduction = md.convert(introduction).replace("\n", "\n\t\t\t"), - content = md.convert(content).replace("\n", "\n\t\t\t"), + spywareLevel = config['rating'], + introduction = md.convert(catagories['Introduction']), + content = md.convert(catagories['Content']), + further = further, + sources = sources, footer = footer ) + return html + open("chrome.html", "w", encoding="utf8").write( convertMarkdown( - open("./chrome.md", encoding="utf8").read(), + open("chrome.md", encoding="utf8").read(), "chrome" ) ) \ No newline at end of file diff --git a/src/template.html b/src/template.html new file mode 100644 index 0000000..27e8a0f --- /dev/null +++ b/src/template.html @@ -0,0 +1,42 @@ + + + + + + {title} — Spyware Watchdog + + + + +
    + + +
    + {title}'s Logo +

    {title}

    + {introduction} +

    Spyware Level: {spywareLevel}

    + {content} +
    + +
    + {further} +
    + +
    + {sources} +
    + + +
    + + + \ No newline at end of file