Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Add a JS --> PHP code parser, plus element/comments detection #3

Open
Quirinus opened this issue Feb 21, 2015 · 0 comments
Open

Add a JS --> PHP code parser, plus element/comments detection #3

Quirinus opened this issue Feb 21, 2015 · 0 comments

Comments

@Quirinus
Copy link
Owner

Zippyshare started adding more and more complicated algorithms, to the point I now will have to make a small JS into PHP code parser. Examples of algorithm code:

Produces 111 or 1111 (iirc):

<span id="omg" class="2" style="display:none;"></span>
<script type="text/javascript">
    var a = function() {return 1};
    var b = function() {return a() + 1};
    var c = function() {return b() + 1};
    var d = document.getElementById('omg').getAttribute('class');
    if (true) { d = d*2;}
    document.getElementById('dlbutton').href = "/d/14662564/"+(627100%1000 + a() + b() + c() + d + 5/5)+"/%28GHWT_MSL%29_01-WI%27D.7z";
    if (document.getElementById('fimage')) {
        document.getElementById('fimage').href = "/i/14662564/"+(627100%1000 + a() + b() + c() + d + 5/5)+"/%28GHWT_MSL%29_01-WI%27D.7z";
    }
</script>

Another one (497434):

<script type="text/javascript">
    document.getElementById('lang-one').a = 988852;
    var a = document.getElementById('lang-one').a;
    var b = 1234567;
    var c = 8;
    if (false) {
        c = 9;
        var d = 9;
    }
    document.getElementById('lang-one').d = 988855%13;
    var e = function() {if (false) {return a+b+c} else {return ((a+3)*3)%b + 3}};
    document.getElementById('dlbutton').href = "/d/14662564/"+e()+"/%28GHWT_MSL%29_01-WI%27D.7z";
    if (document.getElementById('fimage')) {
        document.getElementById('fimage').href = "/i/14662564/"+e()+"/%28GHWT_MSL%29_01-WI%27D.7z";
    }
</script>

Produces 344069:

<script type="text/javascript">
    var a = 814994;
    var b = 742589;
    document.getElementById('dlbutton').omg = "f";
    if (document.getElementById('dlbutton').omg != 'f') {
       a = Math.ceil(a/3);
    } else {
       a = Math.floor(a/3);
    }
    document.getElementById('dlbutton').href = "/d/14662564/"+(a + 814994%b)+"/%28GHWT_MSL%29_01-WI%27D.7z";
    if (document.getElementById('fimage')) {
        document.getElementById('fimage').href = "/i/14662564/"+(a + 814994%b)+"/%28GHWT_MSL%29_01-WI%27D.7z";
    }
</script>

Produces 603581:

<span id="omg" class="2" style="display:none;"></span>
<script type="text/javascript">
    var a = document.getElementById('omg').getAttribute('class');
    var b = 603580;
    document.getElementById('dlbutton').href = "/d/14662564/"+(a/a+b+b%10)+"/%28GHWT_MSL%29_01-WI%27D.7z";
    if (document.getElementById('fimage')) {
        document.getElementById('fimage').href = "/i/14662564/"+(a/a+b+b%10)+"/%28GHWT_MSL%29_01-WI%27D.7z";
    }
</script>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant