Live data from Hacker News

TIL you can de-obfuscate code with ChatGPT

twitter.com

101–110 of 111 posts

Re: TIL you can de-obfuscate code with ChatGPT

#101

Earlier quoted context omitted.

Are you just now realizing these LLM’s can’t factually determine if what they output is correct?

It actively makes shit up in my experience. Like outright lies about basic facts.

Now I'm starting to wonder if Elon's tweets aren't him just testing ChatGPT.

Re: TIL you can de-obfuscate code with ChatGPT

#102

Is it correct though? I’ve been toying around with ChatGPT for a few weeks now and I encountered a few situations in which ChatGPT was like 90% accurate at best. Things like suggesting snippets of configuration files or plugin research. It’s good to get an idea and get started somewhere, but I certainly cannot trust it blindly.

It's good enough. I know zero powershell, but I know other languages enough to understand the common grammar. With ChatGPT I'm a fairly rapid powershell programmer right off the bat - as evidenced by the script I've been writing this afternoon. I don't know any of the (overcomplicated) syntax, but now I don't have to.

Re: TIL you can de-obfuscate code with ChatGPT

#103

Earlier quoted context omitted.

I know, all those frusty old grumpyboots who actually want the thing to return factually accurate answers and valid code. Just be happy with plausible sounding answers people. Sheesh!

Did you actually ever receive 100% factually correct answers from anything before for anything other than strictly mathematical statements? Regardless, I find it silly to focus on the small flaws when we're witnessing a foundational shift in what kind of problems we can solve.

But they're not small flaws if you're relying on it to eg replace a person's job.

If i ask it for the dimensions of a product and it gives the wrong figures it should just tell me it doesn't know instead of inventing something.

That's the problem. It doesn't tell you when something is wrong so you can never trust if it's right unless you happen to know the field. That makes it far less useful.

Re: TIL you can de-obfuscate code with ChatGPT

#104
post #45

I have to say, I find all the comments dismissing ChatGPT hilarious. I read them in a funny grandpa voice. However, we should look past the insignificant details. The main achievement is that we now have a really capable unstructured text-to-computer interface. We can hook it up to anything and it will give us answers with whatever properties we desire, in whatever shape we can think of.

What escapes a lot of people is that ChatGPT was a battle won in the UI/UX real first and foremost. GPT3 was old news, but throw a new paradigm and interface on it and here we are.

Incorrect. ChatGPT is markedly more capable than GPT3 because of its improved model (instructgpt and supervised fine tuning). Anyone who has played with both can attest to that.

It's not merely UI changes.

Re: TIL you can de-obfuscate code with ChatGPT

#105

https://twitter.com/AlexAlexandrius/status/16178852870484254... So, all I've learned is that ChatGPT knows the obfuscated and de-obfuscated versions of code that it itself has generated.

I just tested it on a little snippet of my code obfuscated with https://obfuscator.io/ and it worked almost perfectly. My original code: function resizeImage(img) { var maxHeight = 350; var ratio = 1; if(img.height > maxHeight) { ratio = maxHeight / img.height; } var width = img.width * ratio var height = img.height * ratio; var canvas = document.createElement('canvas'); canvas.height = height; canvas.width = width;…

Interesting, I tried it on the sample code at https://obfuscator.io, which was just:

    function hi() {
      console.log("Hello World!");
    }
    hi();
ChatGPT was unable to deobfuscate. Here's the answer: https://i.imgur.com/20XhPw6.png

Re: TIL you can de-obfuscate code with ChatGPT

#106
post #49

Earlier quoted context omitted.

So what?

the "obfuscated" "version" doesnt even work. alex literally asked chatgpt to come up with a math problem and its solution, both from whole cloth. and you ask so what. well, everyone should ask "so what?" to alex.

I meant "so what" by so what it generated the obfuscated code, it still de-obfusacted it which is impressive.

Re: TIL you can de-obfuscate code with ChatGPT

#107

Earlier quoted context omitted.

I just tested it on a little snippet of my code obfuscated with https://obfuscator.io/ and it worked almost perfectly. My original code: function resizeImage(img) { var maxHeight = 350; var ratio = 1; if(img.height > maxHeight) { ratio = maxHeight / img.height; } var width = img.width * ratio var height = img.height * ratio; var canvas = document.createElement('canvas'); canvas.height = height; canvas.width = width;…

Interesting, I tried it on the sample code at https://obfuscator.io , which was just: function hi() { console.log("Hello World!"); } hi(); ChatGPT was unable to deobfuscate. Here's the answer: https://i.imgur.com/20XhPw6.png

Worked for me.

https://i.imgur.com/e4EWMlF.jpg

Re: TIL you can de-obfuscate code with ChatGPT

#108
post #49

Earlier quoted context omitted.

the "obfuscated" "version" doesnt even work. alex literally asked chatgpt to come up with a math problem and its solution, both from whole cloth. and you ask so what. well, everyone should ask "so what?" to alex.

I meant "so what" by so what it generated the obfuscated code, it still de-obfusacted it which is impressive.

first it generated garbage that doesnt even run.

and then it generated something that looks like valid source based on that garbage.

is the source it spat out runable? then it is not the same program as the input and (any way you spin it) nothing has been deobfuscated but just dreamed about the prompt a bit and then shown you its dream diary notes. wake up boy, this is statistics, not a magic swiss army knife API.

Re: TIL you can de-obfuscate code with ChatGPT

#109
post #71

I have to say, I find all the comments dismissing ChatGPT hilarious. I read them in a funny grandpa voice. However, we should look past the insignificant details. The main achievement is that we now have a really capable unstructured text-to-computer interface. We can hook it up to anything and it will give us answers with whatever properties we desire, in whatever shape we can think of.

[flagged]

Personal attacks will get you banned here, so please don't post like this.

https://news.ycombinator.com/newsguidelines.html

Re: TIL you can de-obfuscate code with ChatGPT

#110
post #91

Earlier quoted context omitted.

Just like Siri was about to revolutionize the world and it now is at best a shortcut to set a timer ? Or like crypto was about to revolutionize the world in 2010 ? Or maybe like we would have fully autonomous cars "in two years" in 2012 ? I might be a pessimistic grandpa but it's not worse than a blind technophile

Okay, the bets are placed. Let's come back to this conversation in a year.

I set my reminder ;)
Post reply on HN