WAZ NRZ deobfuscator

bypass paywall on waz.de, nrz.de

< Feedback on WAZ NRZ deobfuscator

Question/comment

§
Posted: 2021-05-04

ur script do it :) but mite puffed up and throw some insignificant errors/warnings. with greetz

function rot13(str) {
    var input = ' ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz123456789:;./àýÝ{=?0÷-åµ#"”@×—[)*´\'';
    var output = ' zABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxy0123456789:-.ßüÜz<>/ö,ä="„“?Ö–Z();&';
    var index = x => input.indexOf(x);
    var translate = x => index(x) > -1 ? output[index(x)] : x;
    return str.split('').map(translate).join('');
}

var obfuscated = document.querySelectorAll("p.obfuscated"), outDiv = document.getElementById("paywall-container"), decodeTxt = "";
outDiv.id = "unmasked_article"; // change ID to prevents reloading paywall crap

for (var i = 0; i < obfuscated.length; i++){
    decodeTxt += '<p class="article__paragraph">'+rot13(obfuscated[i].innerHTML)+'</p>';
}
outDiv.innerHTML = decodeTxt;
pas-calcAuthor
§
Posted: 2021-05-05

ur script do it :) but mite puffed up and throw some insignificant errors/warnings. with greetz

[...]

Thanks for the nice feedback. How did you find it, using specific search queries or just randomly on this greasemonkey script page?
And yes, you are right. The code is not that short as it could be, and you are pointing out very correctly that it is important to ensure that the paywall is not removing the obfuscated text completely using JavaScript since otherwise the text disappears in the DOM (of course not in the source code) when the page is loading.

§
Posted: 2021-05-06
Edited: 2021-05-06

/* Hi, i'm interesting working against paywalls and always looking for clues ;)
You are welcome, feel free to use/change/publish my code. Just give credits to mk1212 and a digital coffee :) */



// ==UserScript==
// @version 1.0.0
// @icon https://icons.iconarchive.com/icons/graphicloads/colorful-long-shadow/48/Unlock-icon.png
// @name Funke Mediengruppe Paywallblocker
// @description Read "Plus" article from: Westdeutsche Allgemeine Zeitung (WAZ), Neue Ruhr/Rhein Zeitung (NRZ), Westfalenpost (WP), Westfälische Rundschau (WR), Iserlohner Kreisanzeiger (IKZ)
// @include https://www.waz.de/*
// @include https://www.nrz.de/*
// @include https://www.wp.de/*
// @include https://www.wr.de/*
// @include https://www.ikz-online.de/*
// ==/UserScript==

(function() {
'use strict';

function rot13(str) {
var input = ' ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz123456789:;./àýÝ{=?0÷-åµ#"”@×—[)*´\'';
var output = ' zABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxy0123456789:-.ßüÜz<>/ö,ä="„“?Ö–Z();&';
var index = x => input.indexOf(x);
var translate = x => index(x) > -1 ? output[index(x)] : x;
return str.split('').map(translate).join('');
}

var obfuscated = document.querySelectorAll("p.obfuscated"), outDiv = document.querySelector("div.paywall-ld-ident"), decodeTxt = "";
outDiv.id = "unmasked_article"; // change ID to prevents reloading paywall crap

for (var i = 0; i < obfuscated.length; i++){
decodeTxt += rot13(obfuscated[i].innerHTML);
}
outDiv.innerHTML = decodeTxt;

})();

§
Posted: 2021-05-06
Edited: 2021-05-06

/* this form need entities :/
change to ...
*/

decodeTxt += '< p class="article__paragraph">' + rot13(obfuscated[i].innerHTML) +'</p>';

Post reply

Sign in to post a reply.