Code seen in Mr Robot is typically spot on. I can’t quite tell what the code there is doing but I would assume it probably makes sense given the context. I just see array manipulation and counting of “nodes”, could be some type of endpoint scanner or something looking for vulnerable “nodes”.
Yeah, it was surprising to see this piece of code appear in the show. The code is a function to "pop" or remove a node from a stack implemented using pointers in C++. Basic stuff if you've taken a data structures class.
Sure but it’s generic enough to be a minor few functions as part of much more code that actually does something. I suppose if the reaction to this particular page is “WOW! Holy shit, this opens the mainframe’s hard drive!” it’d be stupid af, but I haven’t seen the scene in context.
The show often shows them wiping computers and other hardware (keyboards, monitors) because they like to play it safe. Having hard copies of code means you can review it and not have it digitally stolen.
Protip: You're never going to find anything in a Mr. Robot episode that wasn't put their intentionally. Countless other posters try to "catch" Mr. Robot on this sub with incorrect tech usage, and there's an perfectly valid explanation each and every time.
This is just a c++ implementation of linked list... A lot of c++ programmers would just "#include <list>" and be done. I am curious what the context of this in the show is because this is the kind of code someone would write when learning about linked lists.
Basically there's a group called fsociety with our protagonists. Bunch basically encrypted the largest bank's data on things like credit repayment, mortgages, etc so they can 'free people from their shackles'. It ends up making the world worse, but that's besides the point.
Season 2 introduces us to global Chinese 'pyramid scheme by force' mob called Dark Army that basically is the will of a single 1%. They wanted the original hack in order to have more control over a sci fi project in NYC, and by this point they're "cleaning up" and disposing of risks to maintaining that. Our dead guy is paranoid and started preparing to get out of town with his info.
So they're killing off members of fsociety "pop". Now why not just declare some variables, init, do some innocent operations, and then deallocate one by one? The paper for this code on a dead person had been on a dead person first, and later might have been wrapping another potential clue for a new character investigating fsociety.
So by popping the guy away, we get a return value of a clue. Funny enough, the character receiving the clue basically was unable to make progress without the return clue. Just like a function calling another one.
I've taken this a little far, maybe inaccurate, but that's the gist of context.
You sometimes need special tweak to data structure, and using standard linked list will not work. Very very rearly, but it does happen. Plus hackers like to write own libraries, it is just fun shuffling pointers.
70
u/tatorface Sep 22 '19
Code seen in Mr Robot is typically spot on. I can’t quite tell what the code there is doing but I would assume it probably makes sense given the context. I just see array manipulation and counting of “nodes”, could be some type of endpoint scanner or something looking for vulnerable “nodes”.
5
u/[deleted] Sep 22 '19
number of episode?
26
u/[deleted] Sep 23 '19
I haven't seen the episode but... why would anybody print a hacking script?
18
u/blue_2501 Sep 30 '19
Protip: You're never going to find anything in a Mr. Robot episode that wasn't put their intentionally. Countless other posters try to "catch" Mr. Robot on this sub with incorrect tech usage, and there's an perfectly valid explanation each and every time.
3
u/BlackIce38 Oct 18 '19
The real reason this is unrealistic is the amount of comments
2
u/[deleted] Oct 12 '19
Linked lists ftw
1
u/ussr_reborn Oct 21 '19
Why
1
u/Maxine-Fr Nov 26 '19
You cant find anything wrong with it.
1
u/WindowsDOS Jan 09 '20
This looks like a CS1 or even intro to C programming assignment for linked lists.
TBH, it's probably just wrapping paper with a cool aesthetic.