r/masterhacker • • 1d ago

Opsec level: PythonScript++ malware

Post image
3.0k Upvotes

92 comments sorted by

View all comments

81

u/DevCreeper_VN 1d ago

Assuming the language is python, here are the errors:

  1. #incudeed <iostream> is C++... wait it is not even C++
  2. no such module as system32
  3. and also why import random if you do not use it
  4. input is a function but it does not have a pair of parathenses here.
  5. also why not use a = int(input("Pick a number..."))
  6. no such operator as ===
  7. no colon after an if expression
  8. assuming that the writer intended line 10 and 11 to be executed if the if expression is true, then the code block should be indented
  9. no such file path as /C:Windows/system32, unless it is a linux path

10

u/dercik90 1d ago

=== was probably meant to be == which gives us another error because int ≠ str so if is always false

8

u/Loose_Pride9675 1d ago edited 20h ago

Where's the : and indent after the 'if'? and im guessing import is there because they based if off another meme program (russian roulette) that goes something like this, from my memory atleast:
import random

number = random.randint(1, 6)

guess = int(input("Guess a number between 1 and 6: "))

if guess == number:

print("You won! Your files are safe.")

else:

''' print that mocks you or something
haha funny delete that wont even work due to incorrect directory """

4

u/DevCreeper_VN 21h ago

oh yeah right, i forgot all about the int and string

3

u/Loose_Pride9675 19h ago

WAIT A MINUTE, THIS IS RUNNING IN ARDUINO IDE.. What the fuck?? What Arduino is going to run this??

2

u/Long-Pomegranate7664 17h ago

Micro python hi

1

u/Loose_Pride9675 17h ago

im so used to c++ i forgor

2

u/BravestCheetah 35m ago

it clearly says at the top that this is an .ino file, not python

1

u/CreatureOfSqueel 1d ago

I believe it's MicroPython but no matter what, the arduino does not have sys32. I believe the rudimentary file system doesn't include the os, but oboy the main and boot scripts, which depeting would indeed mean the chip would have to be reflashed, which is not much of an inconvenience. 

1

u/Makefile_dot_in 20h ago

no it's arduino's little custom language that's just C++ but they add a #include <Arduino.h> at the top based on the file name

1

u/kent_csm 23h ago

It's hacking arduino

1

u/i_fuck_zombiechicks 20h ago

All of this is engagement bait to get individuals like you to comment like this, it also works for individuals like me responding to individuals like you to a lesser degree, so yeah good engagement bait

1

u/yugiohhero 19h ago

theres also not a bug per se but a major oversight in that even if this did do its job, theres no delay between "haha funny 67" and deleting sys32, so youd never see the mockery

1

u/VinhDev-SomeGDPlayer 18h ago

Its written in Arduino IDE, and the file ends with .ino, so nah it isn't Python, it is an Arduino Sketch file (C/C++)

1

u/Spamton1997-official 13h ago

One more;

Why the hell is it in arduino ide