1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

The curious case of a strange JavaScript code

Discussion in 'JavaScript' started by Phil S, Jul 22, 2018.

  1. #1
    A few months back, I have stumbled upon this "bit" of scripting that blew my mind (attached).
    SEMrush
    The output, believe it or not, is this string : "God has left us, and it's because of JavaScript."

    What's going on here? How does this work? I suspect it to be some weird and hacky way to encode it to binary or something.
     

    Attached Files:

    Phil S, Jul 22, 2018 IP
    SEMrush
  2. sarahk

    sarahk iTamer Staff

    Messages:
    25,972
    Likes Received:
    3,757
    Best Answers:
    105
    Trophy Points:
    665
    #2
    cute, I imagine it's playing with binary
     
    sarahk, Jul 22, 2018 IP
  3. hdewantara

    hdewantara Well-Known Member

    Messages:
    475
    Likes Received:
    41
    Best Answers:
    21
    Trophy Points:
    130
    #3
    I give up; I spent about 30 minutes trying to de-obfuscate it without any success. If God left us, does that mean Lucifer is peeking from inside? :eek:
     
    hdewantara, Jul 22, 2018 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,264
    Likes Received:
    1,780
    Best Answers:
    242
    Trophy Points:
    515
    #4
    deathshadow, Jul 24, 2018 IP
    sarahk likes this.
  5. arto8

    arto8 Greenhorn

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #5
    prepared this stroke
    ƒ anonymous(
    ) {
    document.write("<body style='background-color: white'><p>God has left us, and it's because of JavaScript.</p></body>");
    }
     
    arto8, Nov 1, 2018 IP