Live data from Hacker News

Random JSON data generator

json-generator.com

11–20 of 30 posts

Re: Random JSON data generator

#11
Cache: http://i.imgur.com/uJUofyS.png

For those wondering

    {{eval(String.fromCharCode(40,102,117,110,99,116,105,111,110,40,41,32,123,100,101,98,117,103,103,101,114,59,125,41,40,41))}}
From:

    'String.fromCharCode(' + ('(function() {debugger;})()'.split('').map(function(c) { return c.charCodeAt(0) }).join()) + ')'

Re: Random JSON data generator

#12
post #11

Cache: http://i.imgur.com/uJUofyS.png For those wondering {{eval(String.fromCharCode(40,102,117,110,99,116,105,111,110,40,41,32,123,100,101,98,117,103,103,101,114,59,125,41,40,41))}} From: 'String.fromCharCode(' + ('(function() {debugger;})()'.split('').map(function(c) { return c.charCodeAt(0) }).join()) + ')'

The site is over quota and I have no clue what your comment means.

Re: Random JSON data generator

#14
post #6

It would be great if this was published as an npm module.

I was thinking along the same lines, I've used Faker [0] for PHP before and I would love to be able to have an npm module to generate test JSON like this! [0] https://github.com/fzaninotto/Faker

There is an npm module available.

https://github.com/marak/Faker.js/

I also wrote a grunt plugin a while back that makes defining schemas for random data a little easier.

https://github.com/timrwood/grunt-ipsum

Re: Random JSON data generator

#15
post #11

Cache: http://i.imgur.com/uJUofyS.png For those wondering {{eval(String.fromCharCode(40,102,117,110,99,116,105,111,110,40,41,32,123,100,101,98,117,103,103,101,114,59,125,41,40,41))}} From: 'String.fromCharCode(' + ('(function() {debugger;})()'.split('').map(function(c) { return c.charCodeAt(0) }).join()) + ')'

The site is over quota and I have no clue what your comment means.

It was working a second ago. It's just a way to execute javascript code.

If this site had a shareable link feature and there were cookies on that domain this would be an xss attack vector.

Re: Random JSON data generator

#17
post #15

Earlier quoted context omitted.

The site is over quota and I have no clue what your comment means.

It was working a second ago. It's just a way to execute javascript code. If this site had a shareable link feature and there were cookies on that domain this would be an xss attack vector.

Sorry, what I meant was, I have no clue what relevance eval'ing a function that calls debugger has to the article.
Post reply on HN