Thomas Jost activity https://gitlab.com/Schnouki 2024-10-11T11:57:09Z tag:gitlab.com,2024-10-11:3721974218 Thomas Jost deleted project branch zenburn at Thomas Jost / Simp1e 2024-10-11T11:57:09Z Schnouki Thomas Jost

Thomas Jost (fdfd51c5) at 11 Oct 11:57

tag:gitlab.com,2024-10-01:3693032474 Thomas Jost opened merge request !9: Add Zenburn color scheme at Cursors / Simp1e 2024-10-01T13:03:06Z Schnouki Thomas Jost

Based on the Zenburn Emacs theme: https://github.com/bbatsov/zenburn-emacs.

There is no dark/light color scheme here as Zenburn is dark only.

tag:gitlab.com,2024-10-01:3693028257 Thomas Jost pushed new project branch zenburn at Thomas Jost / Simp1e 2024-10-01T13:01:54Z Schnouki Thomas Jost

Thomas Jost (fdfd51c5) at 01 Oct 13:01

Add Zenburn color scheme

tag:gitlab.com,2024-10-01:3692997980 Thomas Jost created project Thomas Jost / Simp1e 2024-10-01T12:54:00Z Schnouki Thomas Jost tag:gitlab.com,2021-02-05:1101847386 Thomas Jost opened issue #2: Wrong positive when testing more than 200 credentials at Woolf / RTSPbrute 2021-02-05T15:26:14Z Schnouki Thomas Jost

Hi there,

When brute-forcing, the check for success is way too simple. It basically checks if "200" or "404" are found in the answer from the RTSP server. But it can be found even in case of authentication failure, for instance after 200 failures with CSeq: 200...

Here's a simple modification that fixed this for me:

diff --git rtspbrute/__main__.py rtspbrute/__main__.py
index 8101fcd..c1a23a0 100644
--- rtspbrute/__main__.py
+++ rtspbrute/__main__.py
@@ -99,7 +100,7 @@ def attack_credentials(target: RTSPClient):
 
     # If it's a 404, it means that the route is incorrect but the credentials might be okay.
     # If it's a 200, the stream is accessed successfully.
-    ok_codes = ["200", "404"]
+    ok_codes = ["RTSP/1.0 200", "RTSP/1.0 404"]
 
     # If stream responds positively to no credentials, it means
     # it doesn't require them and the attack can be skipped.

With this patch, I was able to recover a 6-digit code for a home camera I own. Took more than 180k trials and several hours :) Thanks a lot for this program!

tag:gitlab.com,2020-03-27:699717864 Thomas Jost commented on issue #372 at Colin Duquesnoy / MellowPlayer 2020-03-27T14:05:08Z Schnouki Thomas Jost

Updated patch from my local repository:

diff --git src/lib/presentation/imports/MellowPlayer/Controls/WebView.qml src/lib/presentation/imports/MellowPlayer/Controls/WebView.qml
index 2a8bd778..12f79858 100644
--- src/lib/presentation/imports/MellowPlayer/Controls/WebView.qml
+++ src/lib/presentation/imports/MellowPlayer/Controls/WebView.qml
@@ -60,6 +60,13 @@ Page {
         webView.reload();
     }
 
+    function getDefaultAcceptLanguage() {
+        var lang_country = Qt.locale().name.split(".")[0].replace("_", "-");
+        var lang = lang_country.split("-")[0];
+        var header = lang_country + ", " + lang + ";q=0.9, en;q=0.8, *;q=0.5";
+        return header;
+    }
+
     WebEngineView {
         id: webView
 
@@ -68,6 +75,7 @@ Page {
         url: service.url
         profile {
             httpUserAgent: userAgentSetting.value
+            httpAcceptLanguage: getDefaultAcceptLanguage()
         }
         settings {
             pluginsEnabled : true
tag:gitlab.com,2019-12-11:589045545 Thomas Jost commented on issue #372 at Colin Duquesnoy / MellowPlayer 2019-12-11T13:45:54Z Schnouki Thomas Jost

I added a quick-n-dirty implementation on my local clone. I've used it successfully for a few weeks:

diff --git src/lib/presentation/imports/MellowPlayer/Controls/WebView.qml src/lib/presentation/imports/MellowPlayer/Controls/WebView.qml
index 12baf2cd..0a75a459 100644
--- src/lib/presentation/imports/MellowPlayer/Controls/WebView.qml
+++ src/lib/presentation/imports/MellowPlayer/Controls/WebView.qml
@@ -42,10 +42,18 @@ WebEngineView {
         _zoom.reset();
     }
 
+    function getDefaultAcceptLanguage() {
+        var lang_country = Qt.locale().name.split(".")[0].replace("_", "-");
+        var lang = lang_country.split("-")[0];
+        var header = lang_country + ", " + lang + ";q=0.9, en;q=0.8, *;q=0.5";
+        return header;
+    }
+
     enabled: visible
     url: service.url
     visible: _streamingServices.currentService && _streamingServices.currentService.name === service.name
     profile {
+        httpAcceptLanguage: getDefaultAcceptLanguage()
         httpUserAgent: userAgentSetting.value
     }
     settings {

I'm not sure that it's a good idea to add en;q=0.8 as a fallback (probably not if the user language is already English). I have no idea how it works or fails if the user is fr instead of fr_FR. But nonetheless it works well for me 😉

If it can help, feel free to use this as a basis for a better implementation 🙂

tag:gitlab.com,2019-11-02:551311783 Thomas Jost deleted project branch fix-brainfm at Thomas Jost / MellowPlayer 2019-11-02T10:02:54Z Schnouki Thomas Jost

Thomas Jost (3c1a278e) at 02 Nov 10:02

tag:gitlab.com,2019-10-30:548824680 Thomas Jost opened merge request !314: brain.fm: Update DOM selector at Colin Duquesnoy / MellowPlayer 2019-10-30T16:05:34Z Schnouki Thomas Jost

Fixes Brain.fm integration

Proposed Changes

  • Update DOM selector to find the player object. The new selector is a bit more generic, which should help future-proofing it.
tag:gitlab.com,2019-10-30:548821851 Thomas Jost pushed new project branch fix-brainfm at Thomas Jost / MellowPlayer 2019-10-30T16:03:14Z Schnouki Thomas Jost

Thomas Jost (3c1a278e) at 30 Oct 16:03

brain.fm: Update DOM selector

... and 40 more commits

tag:gitlab.com,2019-10-30:548459584 Thomas Jost opened issue #372: `Accept-Language` header support at Colin Duquesnoy / MellowPlayer 2019-10-30T11:09:35Z Schnouki Thomas Jost

Description:

I'm French and my entire system is sent in French. But in MellowPlayer, Spotify is in English.

Adding a Accept-Language header to every HTTP request would likely solve this.

Steps To Reproduce:

  1. Set your system in your favorite non-English language

  2. Open MellowPlayer: it's in your language!

  3. Open Spotify in MellowPlayer: it's in English!

  4. Using Chrome DevTools connected to MellowPlayer shows that there's no Accept-Language in the request headers.

  5. Now let's do the same with curl. Run this:

    $ curl -s https://open.spotify.com/browse | head -3
    <!DOCTYPE html><html
      dir="ltr"
      lang="en" ...
  6. Let's now fix this with curl:

    $ curl -s https://open.spotify.com/browse -H 'Accept-Language: fr' | head -3
    <!DOCTYPE html><html
      dir="ltr"
      lang="fr" ...

I'm sorry but I don't know enough about Qt or QtWebEngine to add that header myself and submit a PR. Could you please have a look at this?

Thanks a lot!

Additional Information:

  • Version: 3.5.5
  • Affected streaming services (if any): Spotify, possibly others?
  • Operating System: Arch Linux, no DE (using Awesome WM), native package installed from AUR
tag:gitlab.com,2019-06-24:440272294 Thomas Jost commented on merge request !306 at Colin Duquesnoy / MellowPlayer 2019-06-24T19:32:30Z Schnouki Thomas Jost

That theme looks great, thanks! :)

tag:gitlab.com,2019-06-20:437391457 Thomas Jost pushed to project branch brainfm at Thomas Jost / MellowPlayer 2019-06-20T12:19:53Z Schnouki Thomas Jost

Thomas Jost (8c48c229) at 20 Jun 12:19

Fix Brain.fm track metadata

tag:gitlab.com,2019-06-20:437231641 Thomas Jost pushed to project branch brainfm at Thomas Jost / MellowPlayer 2019-06-20T09:26:51Z Schnouki Thomas Jost

Thomas Jost (e1484d9b) at 20 Jun 09:26

Update Brain.fm URL

tag:gitlab.com,2019-06-20:437226632 Thomas Jost commented on merge request !306 at Colin Duquesnoy / MellowPlayer 2019-06-20T09:21:52Z Schnouki Thomas Jost

It only streams mp3 audio :)

Tested with the AppImage build from CI: it works, I'm listening to it right now :)

tag:gitlab.com,2019-06-18:435477836 Thomas Jost opened merge request !306: Add Brain.fm at Colin Duquesnoy / MellowPlayer 2019-06-18T13:15:38Z Schnouki Thomas Jost

This adds support for Brain.fm, a (non-free) music streaming service that aims at improving focus, meditation & sleep.

  • Logo based on the official Brain.fm logo
  • Default theme: the website theme changes depending on the type of music you're streaming, which makes it harder to find nice colors for the MellowPlayer UI
  • Integration JS: hooks into React to avoid having to mess too much with the DOM

Tested against a fresh debug build of MellowPlayer on Linux x86_64. Brain.fm doesn't use any DRM or Flash so it should work everywhere :)

tag:gitlab.com,2019-06-18:435470150 Thomas Jost pushed new project branch brainfm at Thomas Jost / MellowPlayer 2019-06-18T13:08:56Z Schnouki Thomas Jost

Thomas Jost (ba29fb98) at 18 Jun 13:08

Add Brain.fm

tag:gitlab.com,2019-06-18:435442629 Thomas Jost created project Thomas Jost / MellowPlayer 2019-06-18T12:44:14Z Schnouki Thomas Jost