Stacksort – Searches StackOverflow for sorting functions and runs them (2013)
71–80 of 86 posts
Re: Stacksort – Searches StackOverflow for sorting functions and runs them (2013)
#72Re: Stacksort – Searches StackOverflow for sorting functions and runs them (2013)
#73Doesn't seem to work. Tried with input ["z","b","a","c","d"] and returns the same ["z","b","a" "c","d"] as the output, using StackOverflow answer 4833835
Re: Stacksort – Searches StackOverflow for sorting functions and runs them (2013)
#74Earlier quoted context omitted.
It's all fun and games until the next JavaScript sandbox busting zero day drops.
If I had that kind of exploit I surely wouldn't post it on stackoverflow.
Re: Stacksort – Searches StackOverflow for sorting functions and runs them (2013)
#75this reminds me of the 4chan's sleepsort: for each number $n in the array, spin a thread that sleeps $n and then append $n to the result array.
Adapted for JS: https://jsfiddle.net/dheu9q7f/
Re: Stacksort – Searches StackOverflow for sorting functions and runs them (2013)
#76Hey, creator here! I built this a few years ago on a whim, and am surprised how well it still works. Thanks for sharing again :) (Psst, if you're an engineer and like dev tools, I'm hiring! https://readme.io/careers )
Is it safe?
Uh… it evals both user input and random code, unchecked, from an external site. This is what the security-minded folks writing anti virus software would refer to as: hey, our unpacker does that too! In kernel mode if we're from symantec! Must be perfectly safe!
Yeah, cheap shot, I know ;-)
https://googleprojectzero.blogspot.com/2015/06/analysis-and-...
Re: Stacksort – Searches StackOverflow for sorting functions and runs them (2013)
#77Doesn't seem to work. Tried with input ["z","b","a","c","d"] and returns the same ["z","b","a" "c","d"] as the output, using StackOverflow answer 4833835
For string sorts, i needed to keep running about 5 or 6 times until a sorted result was found.
Re: Stacksort – Searches StackOverflow for sorting functions and runs them (2013)
#78Re: Stacksort – Searches StackOverflow for sorting functions and runs them (2013)
#79Re: Stacksort – Searches StackOverflow for sorting functions and runs them (2013)
#80Earlier quoted context omitted.
If I had that kind of exploit I surely wouldn't post it on stackoverflow.
Why not? They even have a tag for it https://stackoverflow.com/questions/tagged/exploit