HNHacker News
TopNewBestAskShowJobs

tshadwell

798 karma · joined April 17, 2012

Infosec @Twitch twitter.com/zemnmez

I can be contacted at my gmail: thomas.shadwell

submissionscomments
tshadwell··on Optimal Characters Per Line
I can't read this while doing something else - I have to select the window and scroll every few words.
tshadwell··on eBay remote code execution
But multi-byte safety is one thing, and executing arbitrary code is another.

It's still not an explanation of how you go from injecting a deformed string to executing code.

tshadwell··on eBay remote code execution
A very interesting exploit.

This phrase "internally php strings are byte arrays. As a result accessing or modifying a string using array brackets will trick the parser into evaluating arbitrary php code in the scope of the variable if the prior mentioned requirements are met." doesn't seem to be present in the linked documentation (http://www.php.net/manual/en/language.types.string.php), however. Does anyone know what these "prior mentioned requirements" might be?

tshadwell··on YouTube Blocks Game Videos, Industry Offers Help
Why is it that video games are not filmable? I cannot imagine Grand Illusions' (https://www.youtube.com/user/henders007) videos being flagged for not owning the copyright for the toys he does "let's plays" of.
tshadwell··on New Relic now supports Node.js
Is the best reason to use Node.js really just that it supports asynchrony? I'm sure Go also has that and Erlang has existed for a long time. There are many other options, so why Node?
tshadwell··on Show HN: A Dashboard for External Monitors
Does anyone use http://www.geckoboard.com/ for this type of thing, out of interest?
tshadwell··on Bletchley – A Collection of Practical Cryptanalysis Tools
Where do I learn about cryptography?
tshadwell··on Googleusercontent.com fun
I understand now, the articles you previously wrote are very interesting, I really appreciate your writing this.
tshadwell··on Googleusercontent.com fun
What is happening? You've loaded something in an iframe, that I can see, but there is a passing reference to XSS and cookie tossing that isn't elaborated upon, which for me would be what I really want explained.
tshadwell··on Breaking Hacker News's CSRF Protections
You've completely misunderstood what CSRF tokens do.
tshadwell··on Biggest Virus Yet Found, May Be Fourth Domain of Life?
I'm sure the author means dislike for the current system for trying 'too hard' to classify life, not dislikes it entirely, or out goes our ability to describe life with words entirely, which I think you'll agree is a pretty important faculty.
tshadwell··on Biggest Virus Yet Found, May Be Fourth Domain of Life?
So how do you classify life?
tshadwell··on Isla: a programming language for young children
Is it really such a great idea to make languages that look more like English? From my experience, newcomers to programming pick up a lot of misconceptions about general programming from English-like syntax.
tshadwell··on Vi Hart on Stravinsky's Atonal Compositions [video]
This is the third time I've seen brainpickings.org: would it not have sufficed to link directly to the video?
tshadwell··on Search Engine Ixquick does not collect or share information
Can someone who has used this search engine compare it with DuckDuckGo?
tshadwell··on SQL injection search
;.;
tshadwell··on Are HN comments broken for everyone?
Works fine. Chromium Version 27.0.1453.93 (200836)
tshadwell··on JavaScript: The Important Parts
That section on Javascript security is pretty brief, I'd like to add some others from websites that I've tested:

* Take document.location.href and document.location.hash as unsanitised input especially if they're affecting DOM.

* Avoid using innerHTML or jQuery's .append(), they slow down the page with reflow and make it easier to inject code into the page.

* Always write regex to match the minimum it needs to; Javascript code is visible to the client and therefore anyone who wishes to find and abuse exploits, completely avoiding iterative testing to determine regexes that generate links and other code.

* Remember that because jQuery has a lot of syntactic sugar, doing $("#bac" + myString) can do a lot more than just select from a set of similarly id'd nodes.

tshadwell··on Interfaces in Go make it hard to navigate code
First, the grievances expressed by the author can be solved by better documentation tools: http://godoc.org/image/gif#Decode clicking "io.Reader" will take you to its definition, pretty useful when navigating messes like xgb.

The author has avoided reading the "Learning Go" documents on the Go website which explains these differences from other languages http://golang.org/doc/ .

I'd like to argue against writing explicit implementation annotations in code unless really necessary. If the author had read the documents I mentioned earlier, he would have read this: http://golang.org/doc/effective_go.html#interface-names and realised that any value that implements io.Reader will have a function called Reader, no need for messy lists of code annotations describing lists of interface implementations. The authors complaint is somewhat like complaining that a car is not sold with the text "this goes into a garage" because otherwise they couldn't know- you'd expect the Car to implement the Volume interface the Garage takes so you could check.

To me, the way interfaces function is more intuitive. The author's problem is that they are solving the problem in reverse, it is strange to me that they would start the problem of reading a GIF from the end of 'decoding it' and not the end of 'reading it from something', the point of io.Reader is that it represents anything that can be read, whatever method he uses to read a GIF, be it out of a buffer, a connection, or a file will return a value that implements io.Reader if it is good code.

tshadwell··on UnQLite - An Embeddable NoSQL Database Engine
LevelDB is similarly self-contained, and client/server API-less and is extremely fast. Though it has a large advantage of speed, the databases are not one files.
tshadwell··on Payroll on Auto Pilot, done in 0 seconds
"Like our meme? Here’s a few more we tried. Which one is your favorite?"
tshadwell··on Turing Drawings
http://wry.me/hacking/Turing-Drawings/#4,3,3,1,0,1,1,3,1,2,3...
tshadwell··on Hipset Boost: A little app we made to help you get subscribers on YouTube
Why do you embed the video anyway? Wouldn't it make more sense to insert the video /after/ the user has subscribed?
tshadwell··on Digital audio signals and how they really behave [video]
This is absolutely fascinating, and completely transparent.
tshadwell··on Instacode
Just add class 'ie' to the html tags.
tshadwell··on [dead]
Well, macOS, HP/UX and Linux based operating systems are all UNIX-like operating systems.
tshadwell··on So you think you can tell Arial from Helvetica?
I agree- the only one I got wrong was toyota- for the other all caps, I looked for the slightly longer 'A'.
tshadwell··on The Headphones Rule
It's just wasteful to wear two headphones when you could give the other pair to someone else.
tshadwell··on Go: a nice language with an annoying personality
The :Drop, :Import, :Gofmt and :Godoc statements that allow you to drop packages, import packages, cleanly format what you're working on, and document the targeted function are in the vim extras that come with Go, and work well enough to make this painless for me.
tshadwell··on Go: a nice language with an annoying personality
As someone who has moved to using Go whenever it is possible and reasonably appropriate, I don't find this a particularly large problem.

Yes, it's one I encounter, but only once the package is finished and I am in the testing stage and need to debug. Then, the fmt import stays there until I'm done fixing bugs, and I just use gocode's `:Drop fmt` to drop the import. Syntastic, which is a brilliant code validator for vim uses the go compiler to point out every place I have placed an fmt.Println with >>>, allowing me to remove all of them in one fell swoop, where in other languages I would have to search through the code for various print statements. The vanilla Go compiler also points this out, as the author notes.

I prefer the way the compiler works because it makes sure your code is always representative of what needs to, and happens.

To the author I would say "Why comment out the fmt.Println if you are still debugging?" and "If you are debugging, why only one fmt.Println?".

← PreviousPage 5 of 6Next →