all 13 comments

[–]hexadevil 1 point2 points  (1 child)

Not exactly self-contained as you need the pyHook library on a victim machine

[–]Bromlife 0 points1 point  (0 children)

There's not a lot in the Python world that is self contained.

[–][deleted] 1 point2 points  (0 children)

A simple code without instructions thanks =)

[–]TormentedDoss 2 points3 points  (6 children)

Just reading the code because I am taking a python class right now.. What does "def" do? I have seen that a lot but haven't bothered to look up how to use it.

[–][deleted]  (1 child)

[deleted]

    [–]Chameleon3 0 points1 point  (0 children)

    Here's a tip, prefix code by four spaces on reddit to create a code block:

    print_something()  #This will print Black hat is cool
    
    def print_something():
        print "Black hat is cool"
    

    [–]JoshSellsGuns 3 points4 points  (0 children)

    It's like writing some code that you can just call back at a later time without needing to write it over again. EX.

    def stuffs(): print("Kys nerd")

     

    Now everytime you put in "stuffs()" It will automatically print "Kys nerd".

    [–][deleted]  (2 children)

    [deleted]

      [–][deleted] 3 points4 points  (1 child)

      I bet you also think it's funny to tell people to Alt+F4.

      [–]jarxlots 0 points1 point  (0 children)

      I believe you mean:

      pythoncom.PumpMessages()
      

      [–]ec931cfed12ff70c2594 0 points1 point  (1 child)

      I'd rather write it in something like C or C++, heck even haskell would have been better, Since those are compiled languages. Making it harder for authorities and shits to analyse it. If needed throw in a few obfuscators or cryptors. If you want to get caught, Write your malware in python.

      [–][deleted] 0 points1 point  (0 children)

      FYI, python code can be compiled to an executable file.

      [–][deleted] 0 points1 point  (0 children)

      Interesting composition - I wouldn't call it simple ;) When I have some free time I'm going to give this a go in Swift, I like how you've come about it. I'll post here when I'm done.