<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Crappy Dev on Medium]]></title>
        <description><![CDATA[Stories by Crappy Dev on Medium]]></description>
        <link>https://medium.com/@crappydev?source=rss-12ca604b1035------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lx0uMtMzA9NU3uo8Bp6Z6g.gif</url>
            <title>Stories by Crappy Dev on Medium</title>
            <link>https://medium.com/@crappydev?source=rss-12ca604b1035------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 05:11:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@crappydev/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[“Wall of Moments”]]></title>
            <link>https://medium.com/@crappydev/wall-of-moments-622d98f5f616?source=rss-12ca604b1035------2</link>
            <guid isPermaLink="false">https://medium.com/p/622d98f5f616</guid>
            <dc:creator><![CDATA[Crappy Dev]]></dc:creator>
            <pubDate>Thu, 29 Jan 2015 15:34:48 GMT</pubDate>
            <atom:updated>2015-01-29T16:02:17.691Z</atom:updated>
            <content:encoded><![CDATA[<p>This entire story is fictional and never happened. I do not declare that any of the events below happened, nor do I condone any hacking, ill nature, or likewise to any major cruise line company. But if you’d like to read a <strong>totally fictional</strong> story about a geek on a cruise boat, go ahead. I’m also going to preface this by saying I’m not a great writer, so whatever.</p><p>The year was 2014. A lovely time in the year where a man’s wife, mother and father usually head on our voyages with cruises. An almost complete disconnect from the internet world, unless you absolutely need too, and then it’s costly. We’re talking 45+ cents a minute of internet access, costly.</p><p>Perfect for me, actually. See, I need a way to be disconnected like that. To tell my clients I’ll be out of the office, and think of no other thing than enjoying my time with my wife and parents aboard a cruise ship sailing in Caribbean waters. Until of course, you have a usual lazy day and decide to pick up your laptop when you have ran out of books to read … and then you notice something.</p><p>But let’s not get to that yet, let’s get back to thinking about Caribbean water.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*9X5IBY6-QY28mhWKBTkQLQ.jpeg" /><figcaption>Disembarkation to beautiful <a href="http://www.curacao.com/">Curaçao</a>.</figcaption></figure><p>Right, let’s get back to it, like I said, “…until you notice something”.</p><h3>The Ocean Breeze</h3><p>We really wanted to try this “new” boat out (we have sailed with them 4 times before on other ships) and heard that it was newer, updated, and all that fun stuff. See, we are not those people who think “Everyone on the ship is going to get sick!”, “Oh my god I could never stay on a BOAT that long!” or I love this one … “Diseases spread fast, and it’s absolutely DISGUSTING!”. Everyone has their thing, some people are close minded, and hey after some <a href="http://www.cdc.gov/nceh/vsp/surv/gilist.htm">recent events</a>, I’m sure anyone would be cautious (we were at first). But hey, you can get in your car today and get into an accident, too. Does that prevent you from driving? Come on now!</p><p>Likewise, let’s not argue about to cruise or not. Not the point!</p><p>So this boat had it’s bells and whistles. It definitely was updated, clean, the staff was awesome. It was a larger boat with a larger amount of people, but you can be as social as you want. You could literally seclude yourself in your room and just live off of room service your entire stay, totally up to you.</p><h3>I ran out of books to read</h3><p>On one of our “at sea” days, I can’t remember which, I was sitting on my balcony and just staring out into the sea. My wife was sitting next to me reading, sipping her virgin piña colada, I didn’t have much to do and frankly didn’t want to go anywhere else on the boat at that time. She was very involved with her book and I decided I would grab my laptop and offload some of my pictures from my phone from the excursions we did that day.</p><p>Remember how I said “An almost complete disconnect from the internet world” when I began? Here comes the reference. Remember how I said this boat was new and had some bells and whistles? Oh, and “until I noticed something”? You’re probably guessing this right in some way, but these things are about to collide.</p><h3>Enter, a social experiment!</h3><p>So there I was seeing plastered on their big movie screen on the top deck something called “Wall of Moments”. Interesting sounding, right?</p><p>What it is, is a web-app for your phone / laptop / tablet / whatever where you simply select a photo and it uploads, and you then are directed to this view of photos that other people uploaded and you can “like” photos. Not Facebook likes mind you, but this boat’s own version of “likes”. Essentially it’s just a number that climbs when people tap the button.</p><p>See, when you submit a photo from your phone, it goes into a “moderation queue” to which someone on the boat (staff, obviously) is sitting there … sifting through only what I’m assuming is a horrendous amount of family photos, dick pics and the like, and either accepts it (then it shows on this wall everyone sees) or rejects it, where you don’t get any notification it just never shows up on said wall. Nothing. Nada.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FM5QGkOGZubQ%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DM5QGkOGZubQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FM5QGkOGZubQ%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f3a6180c1924f8a2be9db616863b5e04/href">https://medium.com/media/f3a6180c1924f8a2be9db616863b5e04/href</a></iframe><p>These photos also show up on the main deck. That’s why people want to submit, so they can see their photo on the main deck in front of everyone else. Cool concept, I thought, and I decided to check it out.</p><p>First, I uploaded a picture of the sea, a simple yet nice picture. 20 or so minutes passed and it was actually accepted. People across the boat “liked” it apparently (all likes are anonymous … but we’ll also get to that in a second) and I never checked if it was shown on the big screen on the main deck. But hey, 13 “people” liked it! Woo!</p><p>So I decided to dive deeper. Here comes the laptop.</p><p>So if you don’t pay for wifi (like I said it’s very expensive) what you CAN do is still connect to the boat’s wifi and use their website. You can actually access their website, this “Wall of Moments”, and a few other things like “Herald’s Blog”, some guy who frequents the boat as a cruise director and blogs about … things. The assets never load correctly, though, because this guy is always linking to images not “approved” to be accessed by their free wifi, so it’s a broken, botched experience any how. But that’s not why we’re ON the free wifi, now are we?</p><p>So I access their wall of moments on my laptop and sure enough, it pops up just fine. It even works, too, I can select any image from my laptop and upload it. So I did, of course. I selected a photo I took of the ship while out on Aruba after I took it through Adobe Lightroom. Looked fantastic (or so I thought any way). Likewise it was accepted and it showed up on the Wall of Moments. Once the photo is up on this wall, it just pushes the other ones down depending on their like count (to which they hang out a little longer but will eventually be pushed down the page to allow space for newly moderated images). What I found out later is <em>THEY SAVE THEM FOR MARKETING PURPOSES.</em> But we’ll get to that at the very end.</p><p>Out comes the browser tools. I have to see how these photos are getting uploaded. Hey, my wife is reading her book and I’m out of books. I’m tired from our excursion and I just wanted to fiddle around! iPhone images have EXIF data on them (with GPS which is scary if you don’t remove it with people being able to stalk you and such) not a real big thing on a <em>moving boat</em>, but still you can get some funky data off of it. Ah screw it, I was relaxed and bored, OK?</p><p>The beginning of my crappy dev discovery. Nay, my epic boat moment.</p><p>Popped open the page source, looking through javascript files, etc, and I found some of the most horrendous code I’ve seen since my infancy days in development. They deployed this code, too! I chuckled.</p><p>What I found out was:</p><ol><li>It’s based on windows (yuck) and IIS.</li><li>They used <a href="http://signalr.net/">SignalR</a> for their “real time” experience. It was clearly their first time using this due to their funny comments like “We’ll figure this out later” and my all time fav “I did this for now on a setTimeout, we will need to correct this later”.</li><li>Used FineUploader for uploading of the files (Just wanted to find out how they dealt with the uploads)</li><li>They have some really expertly crafted code such as this gem:</li></ol><blockquote>var folioNum = self.utils.$(“#folio1&quot;).val() + self.utils.$(“#folio2&quot;).val() + self.utils.$(“#folio3&quot;).val() + self.utils.$(“#folio4&quot;).val();</blockquote><p>5. They left everything open. <strong>OOPS!</strong></p><p>Wait what? “<em>Left everything open”</em>?</p><p>What I mean by that is, not only did they keep all of their logging code (console logging out everything to the browser so you can see responses, errors, variables, etc. ) explicitly saying <em>which user id it was who voted in real time, including the photoID </em>they left a really great breadcrumb as to where their moderation portal was. I cannot confirm if I got access to such portal.</p><blockquote>// derive photo HTML //photo.Status == 2: pending approval //photo.Status == 3: approved by moderators if (photo.Status == 2) { var photoHtml = self.utils.String.format(“&lt;div data-photo-id=’{2}’ class=’photo {3}’ style=’padding-bottom: {4}px;’&gt;{0}&lt;div class=’info’&gt;{5}&lt;/div&gt;&lt;div class=’actions’&gt;{1}&lt;/div&gt;&lt;/div&gt;”, imgHtml, actionsHtml, photo.Id, cssClass, photoPaddingBottom, infoHtml); } else if (photo.Status == 3) { var photoHtml = self.utils.String.format(“&lt;div data-photo-id=’{2}’ class=’photo {3}’ style=’padding-bottom: {4}px;’&gt;{0}&lt;div class=’info’&gt;{5}&lt;/div&gt;&lt;div class=’actions likeable’&gt;{1}&lt;/div&gt;&lt;/div&gt;”, imgHtml, actionsHtml, photo.Id, cssClass, photoPaddingBottom, infoHtml); }</blockquote><p>Nice code. Not.</p><p>Just making a simple jquery .click loop with the photoID that was LOGGED to the page, you could effectively vote-bomb any photo you wanted to the top if it got approved.</p><p>So I did, I called it the <strong>Robin Hood Bomb</strong>.</p><p>Just then, our room service came with my Mojitos. This was perfect. I sat down, got every photoID I could, and let this thing run, up-voting every photo hundred and hundreds of times with a delay in between as to seem less “conspicuous” and take less bandwidth (did I mention there wasn’t ANY throttling and my first infinite loop pegged 13MB/s? Crap!). Oh, I just assumed they were logging traffic, <a href="http://osxdaily.com/2008/01/17/how-to-spoof-your-mac-address-in-mac-os-x/">logging MAC addresses</a>, IPs, blah blahs, so I did my do-diligence before hand. Whatever you fools I thought, black list me from your crappy, over-priced wifi!</p><p>I then sent a simple text response (oh, I failed to mentioned, strings weren’t sanitized, <em>XSS was extremely easy</em>) that said “Rob from the rich and give to the poor”. There was no throttling of responses (no time outs done in their code) <strong>so you could really do some traffic on the boats’ entire internal network and bog the hell out of it. </strong>But I figured, if they were logging the data (like I said above they are saving the photos you upload for marketing purposes, and I found this out by GOOGLING and a WIREFRAME of the entire system popped up! HA. HA. IDIOTS!) I’ll at least get my laugh in, if they’re going to sell the damn photos / use them in their adverts anyhow. Some guy had to see it.</p><p>That’s when my Mojito was kicking in a bit.</p><p>I’m happily sitting on my balcony, in Caribbean blue water, the sun is now setting, I’m giggling like an idiot “Vote-bombing” people’s photos. This was perfect.</p><p>I then realized, I wonder what the wall of moments looked like out on the top deck?</p><p>I told my wife that I was going up to the main deck to grab a burger, which I was. I just failed to mention I was going to bask in my glory. Perfect, I’ll head to the top deck, stop and get a burger, and casually walk across the main deck and check the screen like I’m Matt Damon in the Bourne Identity series. Hell yes, I’m freaking Matt Damon!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*C56R9-zgNXRzHsnrXszhLA.jpeg" /><figcaption>MATT DAMON!</figcaption></figure><p>That’s when, however, I noticed a particular photo on my screen.</p><p>It was an old lady (80+ years old) with a shirt on that said “Cancer free, 30+ years and going”. My heart sunk.</p><p>I thought to myself, shit, what have I done? This was her, celebrating her cancer free anniversary and I was here, on my balcony like a complete asshole manipulating the system. She just wanted to see herself on the big screen. I was there taking it away from her.</p><p>Hell no I said, and I concocted an idea. I sat there for a bit after her photo was submitted waiting to see if there was anyone else she was with (sometimes there are groups, family, etc., that go on cruises together). 5 minutes later, they all came flying in, at least 16. All wearing the years of their cancer-free anniversaries on them. Operation cancer-free grandma vote-bombing is underway.</p><p>First Mojito : done. Need more juice. Mojito 2 engage! <a href="https://www.youtube.com/watch?v=ltmqn26ADh0">Eagle 20, Fox 2!</a></p><p>I waited about 10–15 minutes after the last photo from her group was submitted and approved, and the usual bro photos of guys flexing and girls taking selfies on the deck with their spray tanned boyfriends / husbands continued. Typical actually, that’s all this thing was really honestly used for on this specific cruise. Tons of “bros” doing duck faces. This was it. This is where this all came down to. THIS WAS MY MISSION ON THIS BOAT, I AM MATT DAMON.</p><p>I got all of their photoIDs. Robin Hood Bomb V1 (the one I initially ran), those photos were now hitting the end of their queue, and about to fall off the top page due to their time of existence. The usual “15&quot; and even the really popular voted “20&quot; vote pictures came back. See, they never really “disappear”, you can <a href="https://github.com/paulirish/infinite-scroll/wiki">infinite scroll</a> to your heart’s content down the page, seeing photos that were uploaded the day your ship took off from your original embarkation port if you frantically scrolled through the hundreds and hundreds of photos. For me, I can infinite scroll down and see all the crazily voted images from the little loop I made. Bahaha.</p><p>I wrote a stupidly simple function that would up-vote these photoIDs (The old ladies, that is) 5 or so times I made the number random for further obfuscation every 1 to 6 seconds, until the maximum passenger number (2,000+). Juuuuust to make it seem a little more believeable. Heh! Through the 17 photos I had I measured the throughput out of my device as to make sure it wasn’t too insane and obvious, and at a good rate of about 10–15kbps, I thought it was perfect.</p><p>Second Mojito : done. Need more juice for my victory lap.</p><p>So I’m sitting in my swimming trunks, thinking about how I’m probably making this woman and her friends / groups’ day if she sees the big screen, smiling ear to ear. My wife then looks up from her book and says “…why are you smiling?”. I then start laughing thinking how weird/creepy it would be if I looked up from my book and my SO grinning like an idiot, staring out in the open sea. Hey, I was two Mojitos in already … but I decide to tell her what I did, and she starts laughing. I didn’t tell her about the old ladies, though, I just told her I hacked the boat’s “photo sharing thing”. You know, just “computer stuff”. I didn’t want to make a big deal about it then.</p><p>At that point, the function was still cranking along. Chumming away as it were, and I decide to go up to the deck and get that burger. Oh, and some more mojitos.</p><p>I’m smiling the entire way to the deck at this point, I jump in the elevator to the main deck, stop off and grab a burger from the buffet line, stop at one of the many bars and get another Mojito (gotta get my popcorn and soda for my movie, haw haw), after a semi-long line and wait (it was late afternoon) I make my way to the main area with THE BIG SCREEN.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Aw26yEDAVQ26XS9hLSrYQA.jpeg" /><figcaption>The BIG SCREEN! OOOOooooooo</figcaption></figure><p>I was probably walking like I won at the ships’ casino craps table. Pretty sure.</p><p>Like out of some sappy movie that chicks watch, you know, when they have the bucket of ice cream and they’re just sobbing at the screen, comes the next moment.</p><p>All 17 old ladies were out on the main deck. They were in their lawn chairs, direct front and center and staring at the screen. Each of their photos read 1,000+ likes and they were all cheering. I made this face, with my Mojito in my right hand, and my Burger in my left :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*qaulwKPCxcsromtoYvvPug.gif" /></figure><p>It was beautiful. I almost teared.</p><p>I sipped my Mojito, ate my burger, and just watched the number on the screen go up, and finally stopped. Then I went back to my room, found that the function completed and hit it’s 2,000+ passenger number limit and disconnected my laptop for the rest of my trip.</p><p>So while this was written as a story, and I haven’t written shit, nor can I write like shit (whatever) I figured I’d share the story that kicked off the idea that is “Crappy Dev” here at medium. Picking out the horrors in code. I’ll probably tell my Wife and mom and dad the full story eventually. Hey, they might even read this before I tell them.</p><p>Oh — and yeah, they save your images, like data, etc for marketing. So if you’re not cool with that don’t upload and use this thing. Little sketchy.</p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=622d98f5f616" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>