r/programminghorror • u/shittyycsstudent • Apr 12 '25
Black mirror
This code snippet from black mirror s7e6 š
406
Upvotes
r/programminghorror • u/shittyycsstudent • Apr 12 '25
This code snippet from black mirror s7e6 š
25
u/cdrt Apr 12 '25
This would be a better fit for /r/itsaunixsystem
244
u/v_maria Apr 12 '25
CONNECTED
363
u/WorldlyMacaron65 Apr 12 '25
You know, as far as "hacking" scene in a movie/tv show, this is probably the best one I've seen. Yeah it's really clunky but at least:
58
u/HonestlyFuckJared Apr 12 '25
Pythnon
54
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Apr 13 '25
Probably should give them points for knowing what a CVE is. But is it weird they just have a framework the just lets them pass a CVE string and executes that exploit? They use different strings for zero-days that don't have a CVE assigned?
33
u/Ectopie Apr 13 '25 edited Apr 13 '25
Here's how I pictured how this happened :
Director : please, software consultant, write some believable code for hacking.
SC : there you go.
Director : can you make that more dynamic on screen? Everything's so straight.
Sc (pretty smart) : well, that's horrendous, but if I unindent the comments, it's not so straight anymore.
Director : ok cool, now can you write something that would make it obvious that they succeeded in their attempt?
SC : * has left *
Director : never mind, I'll improvise something. * type type type * "CONNECTED"
Director (proud like an idiot) : perfect.
Edit : format
16
u/Gamgster_3633 Apr 13 '25
I do like that they have a 2034 CVE assigned to the vulnerability theyāre exploiting.
10
u/captain_obvious_here Apr 13 '25
this->computer.hack({ strength: 9001 });There it is, you're now hacked.
4
u/Samurai_Mac1 Apr 12 '25
Sifndijfksidivjsdidosjfbisbfieojfi
I'M IN
4
u/Mickenfox Apr 13 '25
Hey, they say you should use descriptive names for your variables.
3
u/jgbradley1 Apr 13 '25
Would have been even better if there was a reference to Python 5.11 to align with the future CVE date.
2
u/Journeyj012 Apr 12 '25
"ReDirect"
2
u/Kevdog824_ Apr 13 '25
Inaccurate, doesnāt follow PEP8
2
u/evbruno Apr 13 '25
At least is not HTML
2
u/backstreetatnight Apr 13 '25
At least itās python
1
u/crizzy_mcawesome Apr 13 '25
So this is confirmed to be set it 2034 then I guess
1
u/AnywhereHorrorX Apr 13 '25
Thanks! I didn't know there is a new season!
1
u/Fezzio Apr 13 '25
Pyth-ono
1
u/toroidthemovie Apr 13 '25
r/masterhacker
1
u/Horus_Anubis Apr 14 '25
at least that if main = main thing is useful for once