Buggy CAPTCHA

561 points · 32 comments · view on lemmy.world

32 Comments

anotherspinelessdem@lemmy.ml · 55 pts · 346d (2 replies)

Jesus, is that a decompilation?

ChaosMonkey@lemmy.dbzer0.com · 72 pts · 346d (1 reply)

Obfuscated JS.

anotherspinelessdem@lemmy.ml · 8 pts · 346d

😧

In any case it could probably be refactored neatly programmatically but otherwise obfuscation achieved

relativestranger@feddit.nl · 38 pts · 346d

they all do, if each square is considered separately.

DScratch@sh.itjust.works · 29 pts · 346d (1 reply)

PirateSoftware is making CAPTCHAS now?

Gonzako@lemmy.world · 14 pts · 346d

I think this is just ofuscated code from one of the npm supply chain attacks

scrubbles@poptalk.scrubbles.tech · 23 pts · 345d

If there are none, press "Ship"

AmidFuror@fedia.io · 22 pts · 346d (4 replies)

Ironically, this is something AI should be very good at detecting.

Ephera@lemmy.ml · 24 pts · 346d (2 replies)

I actually doubt that somewhat. The language models do still go off of words to a large degree.

calcopiritus@lemmy.world · 7 pts · 346d

They may be worse than a very good programmer. But will be much faster answer. The real captcha is not to check if the answer is correct. It is to check the time it takes to answer.

Except humans that are not very good programmers will just give up and answer quite fast. Or just click away lol.

misteloct@lemmy.dbzer0.com · 2 pts · 346d
[ removed ]
SubArcticTundra@lemmy.ml · 2 pts · 346d

No but I can see it being good at deobfuscation

ripcord@lemmy.world · 19 pts · 346d (3 replies)

This code makes me really unhappy

Although I am really desensitized right now. Earlier today I had to review a PR for that guy that maintains that one project that has things like 8000-line functions of mostly nested ifs. And they won't let me reject them anymore with "BURN IT. BURN IT ALL"

mere@lemmy.blahaj.zone · 14 pts · 346d (2 replies)

it's de-obfuscated, a human didn't write it (in that form) thankfully

Tja@programming.dev · 11 pts · 345d (1 reply)

Disassembled. Still pretty obfuscated.

EDIT: on a close look this is not C, so not disassembled, just obfuscated.

mere@lemmy.blahaj.zone · 2 pts · 345d

oops yeah brain fart sorry

Freigeist@lemmy.world · 15 pts · 346d (2 replies)

Outsourcing PR reviews

treesquid@lemmy.world · 1 pts · 345d (1 reply)

Peer Review Reviews?

Freigeist@lemmy.world · 1 pts · 345d

Pull request reviews

cows_are_underrated@feddit.org · 5 pts · 346d (6 replies)

What the hell is that code even meant to do?

ArsonButCute@lemmy.dbzer0.com · 14 pts · 346d (4 replies)

So there's some data its concatenating from some lists and running some checks on. If one if the checks succeeds it runs a function called clearInfo, I don't know js so idk if that's a built-in or if they defined it elsewhere in the script. If that check fails it runs clearInterval. This is all wrapped in a function called setInterval, and it looks like if all the checks succeed and the interpreter isn't moved to a different section of code by those functions called earlier then it will set whatever this interval is to 10000, presumably milliseconds. That's the big block in the middle.

The top block calls some code referencing a document, which appears to be stored as a list, index 12 is referenced and another obfuscated argument is applied to it.

The bottom block appears to be defining a function that will interact with the document referenced above. Calling the function showInfo and presumably concatenating and formatting some data into a pretty output for a user to get info regarding the document being referenced.

Someone who actually knows js could probably tell you more, I know python and c++ and this looks kinda like python but the syntax is a bit different so I could be way off

SubArcticTundra@lemmy.ml · 9 pts · 346d (3 replies)

If you were reading it as python with c++ syntax, you'd be right. Also you have too much free time.

ArsonButCute@lemmy.dbzer0.com · 5 pts · 346d (2 replies)

I do have way too much free time, that's why I'm in school to get the piece of paper that says I know programming so I can get a job god I'm so bored being unemployed sucks

SubArcticTundra@lemmy.ml · 2 pts · 345d (1 reply)

I'm in school to get the piece of paper that says I know programming so I can get a job

Same here homie! Cheers! 🥂

You might want to try taking part in some competitions/hackathons. I've been doing it in an attempt to put my free time to good use and it helps you gain industry connections. Plus you get to try out various fields of application so you find out what you'd potentially enjoy.

ArsonButCute@lemmy.dbzer0.com · 2 pts · 345d

That's a great idea, I've got some hacker/programmer buddies who go to defcon and ziacon every year so I'm gonna try to go next year to make connections in the field too. Missed them this year and I was super upset, I've been wanting to hit defcon since I was a freshman in high-school, some decade and a half ago

Ephera@lemmy.ml · 5 pts · 346d

This isn't supposed to be readable code, by the way.

CXORA@aussie.zone · 4 pts · 345d

clearInterval needs an argument, so we need to be storing the interval we created with the setInterval call.

danc4498@lemmy.world · 3 pts · 346d

Is this how AI actually helps me complete my code?

rikudou@lemmings.world · 2 pts · 346d

LGTM, approved.

pewpew@feddit.it · 2 pts · 346d

What the hell is this 😭

stupidcasey@lemmy.world · 2 pts · 345d

Ctrl+A

humanspiral@lemmy.ca · 1 pts · 346d (1 reply)

can't tell if C or Javascript. Could this be meta that all squares of javascript are always all buggy?

irelephant@lemmy.dbzer0.com · 5 pts · 346d

C doesn't have the function keyword