class IECom: def __init__(self, PageHeap=False): print('[+] ' + datetime.now().strftime("%Y:%m:%d::%H:%M:%S") + ' Using Win32Com for fuzzing') self.ph = PageHeap self.help = Helpers() self.iePiD_p = None self.iePid_c = None self.StartUpPage = 'file://' + os.getcwd().replace( '\\', '/') + '\\Start.html'.replace('\\', '/') def startfuzzer(self): print '[+] ' + datetime.now().strftime( "%Y:%m:%d::%H:%M:%S" ) + ' Killig all ie process if any exist system wide..' os.popen('taskkill /PID iexplore.exe /f') self.help.c = 1 start_time = time.time() print '[+] ' + datetime.now().strftime( "%Y:%m:%d::%H:%M:%S") + ' Starting Fuzzer..' thread.start_new_thread(self.help.detectHungTab, ()) while 1: #print self.help.c #if self.help.CrashFlag: # sleep(2) # If there is any crash, let access violation handler finish its jobs .... if len(self.help.checkierunning()) == 2: #logging.info('[+] IE Running....Loading Tetscase....') try: url = self.help.generateTestCaseFile(insertAtan2=False) except Exception, e: print('[+] ' + datetime.now().strftime("%Y:%m:%d::%H:%M:%S") + ' Error while generating test case file' + str(e)) print e continue try: ie.Navigate(url + '?c=' + str(self.help.c)) if ie.Busy: sleep(0.5) self.help.c = self.help.c + 1 # +1 count only if Navigation successful except Exception, e: #print e continue else:
class IECom: def __init__(self,PageHeap=False): print( '[+] '+ datetime.now().strftime("%Y:%m:%d::%H:%M:%S") +' Using Win32Com for fuzzing') self.ph = PageHeap self.help = Helpers() self.iePiD_p = None self.iePid_c = None self.StartUpPage = 'file://'+os.getcwd().replace('\\','/')+'\\Start.html'.replace('\\','/') def startfuzzer(self): print '[+] '+ datetime.now().strftime("%Y:%m:%d::%H:%M:%S") +' Killig all ie process if any exist system wide..' os.popen('taskkill /PID iexplore.exe /f') self.help.c = 1 start_time = time.time() print '[+] '+ datetime.now().strftime("%Y:%m:%d::%H:%M:%S") +' Starting Fuzzer..' thread.start_new_thread(self.help.detectHungTab,()) while 1: #print self.help.c #if self.help.CrashFlag: # sleep(2) # If there is any crash, let access violation handler finish its jobs .... if len(self.help.checkierunning()) == 2: #logging.info('[+] IE Running....Loading Tetscase....') try: url = self.help.generateTestCaseFile(insertAtan2=False) except Exception, e: print('[+] '+ datetime.now().strftime("%Y:%m:%d::%H:%M:%S") +' Error while generating test case file'+str(e)) print e continue try: ie.Navigate(url+'?c='+str(self.help.c)) if ie.Busy: sleep(0.5) self.help.c = self.help.c + 1 # +1 count only if Navigation successful except Exception, e: #print e continue else: