How to use set_property method in autotest

Best Python code snippet using autotest_python

gtkcontroller.py

Source:gtkcontroller.py Github

copy

Full Screen

...201 self.add_report_text(self._report_success, dest_url)202 def add_success(self, dest_url):203 self.add_report_text(self._report_vulnerables, dest_url)204 totalhits = self.wTree.get_object('totalhits')205 totalhits.set_property("label", int(totalhits.get_property("label"))+1)206 successhits = self.wTree.get_object('successhits')207 successhits.set_property("label", int(successhits.get_property("label"))+1)208 def report_error(self, error_msg):209 self.add_report_text(self._report_failed, error_msg)210 def mosquito_crashed(self, dest_url, reason):211 self.add_report_text(self._report_errors, dest_url+" ["+reason+"]")212 def add_failure(self, dest_url):213 self.add_report_text(self._report_failed, dest_url)214 totalhits = self.wTree.get_object('totalhits')215 totalhits.set_property("label", int(totalhits.get_property("label"))+1)216 failedhits = self.wTree.get_object('failedhits')217 failedhits.set_property("label", int(failedhits.get_property("label"))+1)218 def add_report_text(self, gtkbuffer, text):219 gtk.gdk.threads_enter()220 iter = gtkbuffer.get_end_iter()221 gtkbuffer.insert(iter, text+'\n')222 gtk.gdk.threads_leave()223 def setup_mozembed(self):224 self.moz = MozChecker(self)225 self.mothership.set_webbrowser(self.moz)226 #self.moz.hide()227 def fill_combos(self):228 # ui comboboxes229 dorker2_options_w = self.wTree.get_object('combobox4')230 dorker3_options_w = self.wTree.get_object('combobox6')231 crawlerdeep_options_w = self.wTree.get_object('combobox_deep1')232 connect_geomap_w = self.wTree.get_object('combobox7')233 checkmethod_options_w = self.wTree.get_object('combobox1')234 # wizard steps comboboxes235 step1_options_w = self.wTree.get_object('combobox_step1')236 step2_options_w = self.wTree.get_object('combobox_step2')237 step3_options_w = self.wTree.get_object('combobox_step3')238 step4_options_w = self.wTree.get_object('combobox_step4')239 step5_options_w = self.wTree.get_object('combobox_step5')240 # ui comboboxes content241 dorker_options = [ 'yahoo', 'bing']242 crawlerdeep_options = ['1', '2', '3', '4', '5']243 checkmethod_options = ['GET', 'POST']244 connect_geomap = ['OFF', 'ON']245 # wizard comboboxes content246 step1_options = ['0', '1', '2']247 step2_options = ['0', '1', '2', '3', '4']248 step3_options = ['0', '1', '2', '3', '4']249 step4_options = ['0', '1', '2', '3', '4', '5']250 step5_options = ['0', '1', '2', '3']251 # all comboboxes handlered252 self.fill_with_options(dorker2_options_w, dorker_options)253 self.fill_with_options(dorker3_options_w, dorker_options)254 self.fill_with_options(crawlerdeep_options_w, crawlerdeep_options)255 self.fill_with_options(connect_geomap_w, connect_geomap)256 self.fill_with_options(checkmethod_options_w, checkmethod_options)257 self.fill_with_options(step1_options_w, step1_options)258 self.fill_with_options(step2_options_w, step2_options)259 self.fill_with_options(step3_options_w, step3_options)260 self.fill_with_options(step4_options_w, step4_options)261 self.fill_with_options(step5_options_w, step5_options)262 def on_set_clicked(self, widget):263 """264 Set your mosquito(s) options265 """266 # control authmode267 auth_none = self.wTree.get_object('auth_none')268 auth_cred = self.wTree.get_object('auth_cred')269 if auth_cred.get_property('text') == "":270 auth_none.set_property('active', True)271 272 commandsenter = self.wTree.get_object('commandsenter')273 cmd = self.generate_command()274 commandsenter.set_property("text"," ".join(cmd))275 276 app = xsser()277 options = app.create_options(cmd)278 app.set_options(options)279 280 app.set_reporter(self)281 pass282 # set visor counters to zero283 totalhits = self.wTree.get_object('totalhits')284 totalhits.set_property("label", "0")285 failedhits = self.wTree.get_object('failedhits')286 failedhits.set_property("label", "0")287 successhits = self.wTree.get_object('successhits')288 successhits.set_property("label", "0")289 def end_attack(self):290 #self._flying.join()291 gtk.gdk.threads_enter()292 self.status.set_text("idle")293 self.status.set_fraction(0.0)294 fly_button = self.wTree.get_object('fly')295 fly_button.set_label('FLY!!!')296 fly_button.set_sensitive(True)297 if self._quitting:298 pass299 #self.do_quit()300 else:301 gobject.timeout_add(0, self.park_mosquito)302 gtk.gdk.threads_leave()303 def park_mosquito(self):304 self._flying.join()305 self._flying = None306 def on_stop_attack(self):307 if self._flying:308 self._flying.app.land()309 def on_quit(self, widget, data=None):310 """311 Callback called when the window is destroyed (close button clicked)312 """313 if self._flying:314 print("Exiting xsser... please wait until all mosquitoes return to mothership!")315 self._quitting = True316 self.on_stop_attack()317 self.do_quit()318 else:319 print("\nbyezZZZzzzz!\n")320 self.do_quit()321 def do_quit(self):322 self.mothership.land(True)323 #if self.moz:324 # self.moz.shutdown()325 if reactor:326 threadpool = reactor.getThreadPool()327 threadpool.stop()328 reactor.stop()329 else:330 # doing it here doesnt seem to give time to331 # the mothership to land but should be ok332 gtk.main_quit()333 def start_token_check(self, dest_url):334 self.update_counters_label()335 def update_counters_label(self):336 rem = str(self.moz.remaining())337 th_count = str(threading.activeCount()-1)338 if self._flying:339 work_count = str(len(self._flying.app.pool.workRequests))340 app = self._flying.app341 crawled = str(len(app.crawled_urls))+"/"+str(app.options.crawling)342 else:343 work_count = ""344 crawled = "X"345 pars = [crawled, rem, th_count, work_count]346 gtk.gdk.threads_enter()347 self.counters_label.set_text(" ".join(pars))348 if pars[3]:349 pars[3] = "\nworks in queue: %s"%(pars[3],)350 self.counters_label.set_tooltip_text('crawled during last attack: %s\nremaining checks: %s\nalive threads: %s %s' % tuple(pars))351 gtk.gdk.threads_leave()352 def report_state(self, state, val=-1):353 if not gtk:354 # exiting..355 return356 gtk.gdk.threads_enter()357 self.status.set_text(state)358 if val == -1:359 self.status.pulse()360 else:361 self.status.set_fraction(val)362 gtk.gdk.threads_leave()363 self.update_counters_label()364 def on_fly_clicked(self, widget):365 """366 Fly your mosquito(s)367 """368 fly_button = self.wTree.get_object('fly')369 if self._flying:370 self.on_stop_attack()371 fly_button.set_label('LANDING!!!')372 fly_button.set_sensitive(False)373 return374 self.output.get_buffer().set_property("text", "")375 auth_none = self.wTree.get_object('auth_none')376 auth_cred = self.wTree.get_object('auth_cred')377 if auth_cred.get_property('text') == "":378 auth_none.set_property('active', True)379 commandsenter = self.wTree.get_object('commandsenter')380 cmd = self.generate_command()381 commandsenter.set_property("text"," ".join(cmd))382 t = XSSerThread(cmd, self.mothership)383 t.daemon = True384 t.add_reporter(self)385 t.set_webbrowser(self.moz)386 if self.map:387 t.add_reporter(self.map)388 self.mothership.add_reporter(self.map)389 targetenter = self.wTree.get_object('targetenter')390 explorer_enter = self.wTree.get_object('explorer_enter')391 if t.app.options == None:392 pass393 elif targetenter.get_text() == None and explorer_enter.get_text() == None:394 pass395 else:396 t.start()397 self._flying = t398 fly_button.set_label('LAND!!!')399 # set visor counters to zero400 totalhits = self.wTree.get_object('totalhits')401 totalhits.set_property("label", "0")402 failedhits = self.wTree.get_object('failedhits')403 failedhits.set_property("label", "0")404 successhits = self.wTree.get_object('successhits')405 successhits.set_property("label", "0")406 # control on/off 'sensitive' switches407 def on_intruder_toggled(self, widget):408 """409 Active intruder mode410 """411 intruder = self.wTree.get_object('intruder')412 targetenter = self.wTree.get_object('targetenter')413 targetall = self.wTree.get_object('targetall')414 explorer_enter = self.wTree.get_object('explorer_enter')415 combobox4 = self.wTree.get_object('combobox4')416 if intruder.get_property('active') == True:417 targetenter.set_property('visible', True)418 targetall.set_property('visible', True)419 explorer_enter.set_property('visible', False)420 combobox4.set_property('visible', False)421 else:422 targetenter.set_property("text", "")423 targetenter.set_property('visible', False)424 targetall.set_property('visible', False)425 explorer_enter.set_property('visible', True)426 combobox4.set_property('visible', True)427 def on_explorer_toggled(self, widget):428 """429 Toggle ON/OFF explorer entry430 """431 explorer = self.wTree.get_object('explorer')432 targetenter = self.wTree.get_object('targetenter')433 targetall = self.wTree.get_object('targetall')434 explorer_enter = self.wTree.get_object('explorer_enter')435 combobox4 = self.wTree.get_object('combobox4')436 if explorer.get_property('active') == True: 437 explorer_enter.set_property('visible', True)438 targetenter.set_property('visible', False)439 targetall.set_property('visible', False)440 combobox4.set_property('visible', True)441 else:442 explorer_enter.set_property("text", "")443 explorer_enter.set_property("visible", False)444 targetenter.set_property('visible', True)445 targetall.set_property('visible', True)446 combobox4.set_property('visible', False)447 def on_targetall_toggled(self, widget):448 """449 Autoconfigure XSSer options to perform an automatic XSS pentesting450 """451 targetall = self.wTree.get_object('targetall')452 crawler = self.wTree.get_object('crawler')453 crawler2_spin = self.wTree.get_object('combobox5')454 localonly1 = self.wTree.get_object('localonly1')455 statistics = self.wTree.get_object('statistics')456 threads_spin = self.wTree.get_object('threads')457 timeout_spin = self.wTree.get_object('timeout')458 retries_spin = self.wTree.get_object('retries')459 delay_spin = self.wTree.get_object('delay')460 followredirects = self.wTree.get_object('followredirects')461 no_head = self.wTree.get_object('no-head')462 reverse_check = self.wTree.get_object('reverse-check')463 automatic_payload = self.wTree.get_object('automatic_payload')464 cookie_injection = self.wTree.get_object('cookie_injection')465 xas = self.wTree.get_object('xas')466 xsr = self.wTree.get_object('xsr')467 dom = self.wTree.get_object('dom')468 dcp = self.wTree.get_object('dcp')469 induced = self.wTree.get_object('induced')470 save = self.wTree.get_object('save')471 exportxml = self.wTree.get_object('exportxml')472 if targetall.get_property('active') == True:473 crawler.set_property("active", True)474 localonly1.set_property("active", True)475 crawler2_spin.set_value(99999)476 statistics.set_property("active", True)477 threads_spin.set_value(10)478 timeout_spin.set_value(60)479 retries_spin.set_value(2)480 delay_spin.set_value(5)481 followredirects.set_property("active", True)482 no_head.set_property("active", True)483 reverse_check.set_property("active", True)484 automatic_payload.set_property("active", True)485 cookie_injection.set_property("active", True)486 xas.set_property("active", True)487 xsr.set_property("active", True)488 dom.set_property("active", True)489 dcp.set_property("active", True)490 induced.set_property("active", True)491 save.set_property("active", True)492 exportxml.set_property("active", True)493 else:494 crawler.set_property("active", False)495 localonly1.set_property("active", True)496 crawler2_spin.set_value(50)497 statistics.set_property("active", True)498 threads_spin.set_value(5)499 timeout_spin.set_value(30)500 retries_spin.set_value(1)501 delay_spin.set_value(0)502 followredirects.set_property("active", False)503 no_head.set_property("active", False)504 reverse_check.set_property("active", False)505 automatic_payload.set_property("active", False)506 cookie_injection.set_property("active", False)507 xas.set_property("active", False)508 xsr.set_property("active", False)509 dom.set_property("active", False)510 dcp.set_property("active", False)511 induced.set_property("active", False)512 save.set_property("active", False)513 exportxml.set_property("active", False)514 def on_torproxy_toggled(self, widget):515 """516 Sync tor mode with expert visor517 """518 torproxy = self.wTree.get_object('torproxy')519 proxy = self.wTree.get_object('proxy')520 if torproxy.get_property('active') == True:521 proxy.set_property('text', 'http://127.0.0.1:8118')522 else:523 proxy.set_property('text', "")524 def on_automatic_toggled(self, widget):525 """526 Sync automatic mode with expert visor527 """528 automatic = self.wTree.get_object('automatic')529 automatic_payload = self.wTree.get_object('automatic_payload')530 if automatic.get_property('active') == True:531 automatic_payload.set_property('active', True)532 else:533 automatic_payload.set_property('active', False)534 def on_automatic_payload_toggled(self, widget):535 """536 Syn. automatic_payload mode with other automatic switches537 """538 automatic = self.wTree.get_object('automatic')539 automatic_payload = self.wTree.get_object('automatic_payload')540 if automatic_payload.get_property('active') == True:541 automatic.set_property('active', True)542 else:543 automatic.set_property('active', False)544 def on_crawler_toggled(self, widget):545 """546 Toggle ON/OFF crawling on main visor547 """548 crawler = self.wTree.get_object('crawler')549 combobox5 = self.wTree.get_object('combobox5')550 combobox_deep1 = self.wTree.get_object('combobox_deep1')551 localonly1 = self.wTree.get_object('localonly1')552 if crawler.get_property('active') == True:553 combobox5.set_property('visible', True)554 combobox_deep1.set_property('visible', True)555 localonly1.set_property('visible', True)556 else:557 connection_none = self.wTree.get_object('connection_none')558 connection_none.set_property('active', True)559 combobox5.set_property("visible", False)560 combobox_deep1.set_property('visible', False)561 localonly1.set_property('visible', False)562 def on_get_toggled(self, widget):563 """564 Toggle ON/OFF payloading entry for GET565 """566 get = self.wTree.get_object('get')567 hbox41 = self.wTree.get_object('hbox41')568 if get.get_property('active') == True:569 hbox41.set_property('visible', True)570 else:571 hbox41.set_property("visible", False)572 def on_post_toggled(self, widget):573 """574 Toggle ON/OFF payloading entry for POST575 """576 post = self.wTree.get_object('post')577 hbox41 = self.wTree.get_object('hbox41')578 if post.get_property('active') == True:579 hbox41.set_property('visible', True)580 else:581 hbox41.set_property('visible', False)582 def on_followredirects_toggled(self, widget):583 """584 Toggle ON/OFF follow redirects entry585 """586 followredirects = self.wTree.get_object('followredirects')587 follow_limit = self.wTree.get_object('follow-limit')588 hbox8 = self.wTree.get_object('hbox8')589 if followredirects.get_property('active') == True:590 hbox8.set_property('visible', True)591 follow_limit.set_value(50)592 else:593 hbox8.set_property('visible', False)594 follow_limit.set_value(0)595 def on_alive_toggled(self, widget):596 """597 Toggle ON/OFF alive checker598 """599 alive = self.wTree.get_object('alive')600 alive_limit = self.wTree.get_object('alive-limit')601 hbox58 = self.wTree.get_object('hbox58')602 hbox77 = self.wTree.get_object('hbox77')603 if alive.get_property('active') == True:604 hbox58.set_property('visible', True)605 hbox77.set_property('visible', False)606 alive_limit.set_value(5)607 else:608 hbox58.set_property('visible', False)609 hbox77.set_property('visible', True)610 alive_limit.set_value(0)611 def on_auth_none_toggled(self, widget):612 auth_cred = self.wTree.get_object('auth_cred')613 auth_cred.set_property('text', "")614 def on_auth_basic_toggled(self, widget):615 hbox17 = self.wTree.get_object('hbox17')616 auth_basic = self.wTree.get_object('auth_basic')617 if auth_basic.get_property('active') == True:618 hbox17.set_property('visible', True)619 else:620 hbox17.set_property('visible', False)621 def on_auth_digest_toggled(self, widget):622 hbox17 = self.wTree.get_object('hbox17')623 auth_digest = self.wTree.get_object('auth_digest')624 if auth_digest.get_property('active') == True:625 hbox17.set_property('visible', True)626 else:627 hbox17.set_property('visible', False)628 def on_auth_gss_toggled(self, widget):629 hbox17 = self.wTree.get_object('hbox17')630 auth_digest = self.wTree.get_object('auth_gss')631 if auth_digest.get_property('active') == True:632 hbox17.set_property('visible', True)633 else:634 hbox17.set_property('visible', False)635 def on_auth_ntlm_toggled(self, widget):636 hbox17 = self.wTree.get_object('hbox17')637 auth_digest = self.wTree.get_object('auth_ntlm')638 if auth_digest.get_property('active') == True:639 hbox17.set_property('visible', True)640 else:641 hbox17.set_property('visible', False)642 def on_finalnone_toggled(self, widget):643 payload_entry = self.wTree.get_object('payload_entry')644 payload_entry.set_property('text', "")645 def on_normalfinal_toggled(self, widget):646 hbox25 = self.wTree.get_object('hbox25')647 normalfinal = self.wTree.get_object('normalfinal')648 if normalfinal.get_property('active') == True:649 hbox25.set_property('visible', True)650 else:651 hbox25.set_property('visible', False)652 def on_remotefinal_toggled(self, widget):653 hbox25 = self.wTree.get_object('hbox25')654 remotefinal = self.wTree.get_object('remotefinal')655 if remotefinal.get_property('active') == True:656 hbox25.set_property('visible', True)657 else:658 hbox25.set_property('visible', False)659 # wizard helper buttons660 def on_startwizard_clicked(self, widget):661 self.output_wizard.set_buffer(self._wizard_buffer)662 step_view_start = self.wTree.get_object('vbox_start')663 step_view_start.set_property("visible", False)664 step_view1 = self.wTree.get_object('vbox_step1')665 step_view1.set_property("visible", True)666 commandsenter = self.wTree.get_object('commandsenter')667 commandsenter.set_property("text", "xsser")668 target_enter = self.wTree.get_object('targetenter')669 target_enter.set_property("text", "")670 explorer_enter = self.wTree.get_object('explorer_enter')671 explorer_enter.set_property("text", "")672 combo_choose1 = self.wTree.get_object('combobox_step1')673 combo_choose2 = self.wTree.get_object('combobox_step2')674 combo_choose3 = self.wTree.get_object('combobox_step3')675 combo_choose4 = self.wTree.get_object('combobox_step4')676 combo_choose5 = self.wTree.get_object('combobox_step5')677 #wizard auto-way options678 combo_choose1.set_active(2)679 combo_choose2.set_active(4)680 combo_choose3.set_active(3)681 combo_choose4.set_active(5)682 combo_choose5.set_active(3)683 combobox6 = self.wTree.get_object('combobox6')684 combobox6.set_active(0)685 combobox_deep1 = self.wTree.get_object('combobox_deep1')686 combobox_deep1.set_active(0)687 verbose = self.wTree.get_object('verbose')688 automatic = self.wTree.get_object('automatic')689 explorer = self.wTree.get_object('explorer')690 crawler = self.wTree.get_object('crawler')691 torproxy = self.wTree.get_object('torproxy')692 verbose.set_property("active", False)693 automatic.set_property("active", False)694 explorer.set_property("active", False)695 crawler.set_property("active", False)696 torproxy.set_property("active", False) 697 self.target_option = ""698 self.file_option = None699 self.dork_option = ""700 self.dorkengine_option = ""701 def on_combobox_step1_changed(self, widget):702 combo_choose = self.wTree.get_object('combobox_step1')703 vbox_step = self.wTree.get_object('vbox_step')704 hboxurl = self.wTree.get_object('hboxurl')705 vboxdork = self.wTree.get_object('vboxdork')706 next1 = self.wTree.get_object('next1')707 if combo_choose.get_active_text() == '0':708 vbox_step.set_property("visible", False)709 next1.set_property("visible", False)710 if combo_choose.get_active_text() == '1':711 vbox_step.set_property("visible", True)712 hboxurl.set_property("visible", True)713 vboxdork.set_property("visible", False)714 next1.set_property("visible", True)715 elif combo_choose.get_active_text() == '2':716 vbox_step.set_property("visible", True)717 hboxurl.set_property("visible", False)718 vboxdork.set_property("visible", True)719 next1.set_property("visible", True)720 def on_previous1_clicked(self, widget):721 step_view1 = self.wTree.get_object('vbox_step1')722 step_view1.set_property("visible", False)723 step_view_start = self.wTree.get_object('vbox_start')724 step_view_start.set_property("visible", True)725 alert_step1_url = self.wTree.get_object('alert_step1_url')726 alert_step1_url.set_property("visible", False)727 alert_step1_dork = self.wTree.get_object('alert_step1_dork')728 alert_step1_dork.set_property("visible", False)729 combo_choose = self.wTree.get_object('combobox_step1')730 step1_entry_url = self.wTree.get_object('step1_entry_url')731 step1_entry_dork = self.wTree.get_object('step1_entry_dork')732 step1_entry_url.set_property("text", "")733 step1_entry_dork.set_property("text", "")734 self.combo_step1_choose = ""735 self.target_option = ""736 self.dork_option = ""737 def on_next1_clicked(self, widget):738 step_view1 = self.wTree.get_object('vbox_step1')739 step_view2 = self.wTree.get_object('vbox_step2')740 combo_choose = self.wTree.get_object('combobox_step1')741 step1_entry_url = self.wTree.get_object('step1_entry_url')742 step1_entry_dork = self.wTree.get_object('step1_entry_dork')743 step1_entry_dorkengine = self.wTree.get_object('combobox6')744 alert_step1_url = self.wTree.get_object('alert_step1_url')745 alert_step1_dork = self.wTree.get_object('alert_step1_dork')746 if step1_entry_url.get_text() == '' and (combo_choose.get_active_text() == '1'):747 alert_step1_url.set_property("visible", True)748 step_view1.set_property("visible", True)749 step_view2.set_property("visible", False)750 elif step1_entry_dork.get_text() == '' and (combo_choose.get_active_text() == '2'):751 alert_step1_dork.set_property("visible", True)752 step_view1.set_property("visible", True)753 step_view2.set_property("visible", False)754 else:755 alert_step1_url.set_property("visible", False)756 alert_step1_dork.set_property("visible", False)757 step_view1.set_property("visible", False)758 step_view2.set_property("visible", True)759 self.combo_step1_choose = combo_choose.get_active_text()760 self.target_option = step1_entry_url.get_text()761 self.dork_option = step1_entry_dork.get_text()762 self.dorkengine_option = step1_entry_dorkengine.get_active_text()763 def on_combobox_step2_changed(self, widget):764 combo_choose = self.wTree.get_object('combobox_step2')765 vbox_step2 = self.wTree.get_object('vbox_step2_payload')766 step2_entry_payload = self.wTree.get_object('step2_entry_payload')767 alert_step2 = self.wTree.get_object('alert_step2')768 next2 = self.wTree.get_object('next2')769 if combo_choose.get_active_text() == '0':770 vbox_step2.set_property("visible", False)771 alert_step2.set_property("visible", False)772 next2.set_property("visible", False)773 step2_entry_payload.set_property("text", "")774 if combo_choose.get_active_text() == '1':775 vbox_step2.set_property("visible", True)776 alert_step2.set_property("visible", False)777 next2.set_property("visible", True)778 step2_entry_payload.set_property("text", "")779 elif combo_choose.get_active_text() == '2':780 vbox_step2.set_property("visible", True)781 next2.set_property("visible", True)782 alert_step2.set_property("visible", False)783 step2_entry_payload.set_property("text", "")784 elif combo_choose.get_active_text() == '3':785 vbox_step2.set_property("visible", False)786 next2.set_property("visible", True)787 alert_step2.set_property("visible", False)788 elif combo_choose.get_active_text() == '4':789 vbox_step2.set_property("visible", False)790 next2.set_property("visible", True)791 alert_step2.set_property("visible", False)792 def on_previous2_clicked(self, widget):793 step_view2 = self.wTree.get_object('vbox_step2')794 step_view2.set_property("visible", False)795 step_view1 = self.wTree.get_object('vbox_step1')796 step_view1.set_property("visible", True)797 alert_step2 = self.wTree.get_object('alert_step2')798 alert_step2.set_property("visible", False)799 step1_entry_url = self.wTree.get_object('step1_entry_url')800 step1_entry_url.set_property("text", "")801 step1_entry_dork = self.wTree.get_object('step1_entry_dork')802 step1_entry_dork.set_property("text", "")803 self.combo_step2_choose = ""804 self.target_option = ""805 self.dork_option = ""806 combo_choose = self.wTree.get_object('combobox_step2')807 step2_entry_payload = self.wTree.get_object('step2_entry_payload')808 step2_entry_payload.set_property("text", "")809 self.combo_step2_choose = ""810 self.payload_option = ""811 def on_next2_clicked(self, widget):812 step_view2 = self.wTree.get_object('vbox_step2')813 step_view3 = self.wTree.get_object('vbox_step3')814 combo_choose = self.wTree.get_object('combobox_step2')815 step2_entry_payload = self.wTree.get_object('step2_entry_payload')816 alert_step2 = self.wTree.get_object('alert_step2')817 if step2_entry_payload.get_text() == '' and (combo_choose.get_active_text() == '1' or combo_choose.get_active_text() == '2') :818 alert_step2.set_property("visible", True)819 step_view2.set_property("visible", True)820 step_view3.set_property("visible", False)821 else:822 alert_step2.set_property("visible", False)823 step_view2.set_property("visible", False) 824 step_view3.set_property("visible", True)825 self.combo_step2_choose = combo_choose.get_active_text()826 self.payload_option = step2_entry_payload.get_text()827 def on_combobox_step3_changed(self, widget):828 combo_choose = self.wTree.get_object('combobox_step3')829 vbox_step3 = self.wTree.get_object('vbox_st')830 step3_entry_proxy = self.wTree.get_object('step3_entry_proxy')831 alert_step3 = self.wTree.get_object('alert_step3')832 next3 = self.wTree.get_object('next3')833 if combo_choose.get_active_text() == '0':834 vbox_step3.set_property("visible", False)835 alert_step3.set_property("visible", False)836 next3.set_property("visible", False)837 step3_entry_proxy.set_property("text", "")838 if combo_choose.get_active_text() == '1':839 vbox_step3.set_property("visible", True)840 alert_step3.set_property("visible", False)841 next3.set_property("visible", True)842 step3_entry_proxy.set_property("text", "")843 elif combo_choose.get_active_text() == '2':844 vbox_step3.set_property("visible", False)845 next3.set_property("visible", True)846 alert_step3.set_property("visible", False)847 elif combo_choose.get_active_text() == '3':848 vbox_step3.set_property("visible", False)849 next3.set_property("visible", True)850 alert_step3.set_property("visible", False)851 elif combo_choose.get_active_text() == '4':852 vbox_step3.set_property("visible", False)853 next3.set_property("visible", True)854 alert_step3.set_property("visible", False)855 def on_previous3_clicked(self, widget):856 step_view3 = self.wTree.get_object('vbox_step3')857 step_view3.set_property("visible", False)858 step_view2 = self.wTree.get_object('vbox_step2')859 step_view2.set_property("visible", True)860 alert_step3 = self.wTree.get_object('alert_step3')861 alert_step3.set_property("visible", False)862 combo_choose = self.wTree.get_object('combobox_step3')863 step3_entry_proxy = self.wTree.get_object('step3_entry_proxy')864 step3_entry_proxy.set_property("text", "")865 self.combo_step3_choose = ""866 self.proxy_option = ""867 self.useragent_option = ""868 self.referer_option = ""869 def on_next3_clicked(self, widget):870 step_view3 = self.wTree.get_object('vbox_step3')871 step_view4 = self.wTree.get_object('vbox_step4')872 combo_choose = self.wTree.get_object('combobox_step3')873 step3_entry_proxy = self.wTree.get_object('step3_entry_proxy')874 alert_step3 = self.wTree.get_object('alert_step3')875 if step3_entry_proxy.get_text() == '' and combo_choose.get_active_text() == '1':876 alert_step3.set_property("visible", True)877 step_view3.set_property("visible", True)878 step_view4.set_property("visible", False)879 else:880 alert_step3.set_property("visible", False)881 step_view3.set_property("visible", False)882 step_view4.set_property("visible", True)883 self.combo_step3_choose = combo_choose.get_active_text()884 self.proxy_option = step3_entry_proxy.get_text()885 if combo_choose.get_active_text() == '2':886 self.proxy_option = "http://127.0.0.1:8118"887 def on_combobox_step4_changed(self, widget):888 combo_choose = self.wTree.get_object('combobox_step4')889 vbox_step4 = self.wTree.get_object('vboxstep4')890 step4_entry_cem = self.wTree.get_object('step4_entry_cem')891 alert_step4 = self.wTree.get_object('alert_step4')892 next4 = self.wTree.get_object('next4')893 if combo_choose.get_active_text() == '0':894 vbox_step4.set_property("visible", False)895 alert_step4.set_property("visible", False)896 next4.set_property("visible", False)897 step4_entry_cem.set_property("text", "")898 elif combo_choose.get_active_text() == '1':899 vbox_step4.set_property("visible", False)900 alert_step4.set_property("visible", False)901 next4.set_property("visible", True)902 elif combo_choose.get_active_text() == '2':903 vbox_step4.set_property("visible", False)904 alert_step4.set_property("visible", False)905 next4.set_property("visible", True)906 elif combo_choose.get_active_text() == '3':907 vbox_step4.set_property("visible", False)908 alert_step4.set_property("visible", False)909 next4.set_property("visible", True)910 elif combo_choose.get_active_text() == '4':911 vbox_step4.set_property("visible", True)912 next4.set_property("visible", True)913 elif combo_choose.get_active_text() == '5':914 vbox_step4.set_property("visible", False)915 next4.set_property("visible", True)916 alert_step4.set_property("visible", False)917 def on_previous4_clicked(self, widget):918 step_view4 = self.wTree.get_object('vbox_step4')919 step_view4.set_property("visible", False)920 step_view3 = self.wTree.get_object('vbox_step3')921 step_view3.set_property("visible", True)922 alert_step4 = self.wTree.get_object('alert_step4')923 alert_step4.set_property("visible", False)924 combo_choose = self.wTree.get_object('combobox_step4')925 step4_entry_cem = self.wTree.get_object('step4_entry_cem')926 step4_entry_cem.set_property("text", "")927 self.combo_step4_choose = ""928 self.cem_option = ""929 def on_next4_clicked(self, widget):930 step_view4 = self.wTree.get_object('vbox_step4')931 step_view5 = self.wTree.get_object('vbox_step5')932 combo_choose = self.wTree.get_object('combobox_step4')933 step4_entry_cem = self.wTree.get_object('step4_entry_cem')934 alert_step4 = self.wTree.get_object('alert_step4')935 if step4_entry_cem.get_text() == '' and combo_choose.get_active_text() == '4':936 alert_step4.set_property("visible", True)937 step_view4.set_property("visible", True)938 step_view5.set_property("visible", False)939 else:940 alert_step4.set_property("visible", False)941 step_view4.set_property("visible", False)942 step_view5.set_property("visible", True)943 self.combo_step4_choose = combo_choose.get_active_text()944 self.cem_option = step4_entry_cem.get_text()945 def on_combobox_step5_changed(self, widget):946 combo_choose = self.wTree.get_object('combobox_step5')947 vbox_step5 = self.wTree.get_object('vboxstep5')948 step5_entry_scripts = self.wTree.get_object('step5_entry_scripts')949 alert_step5 = self.wTree.get_object('alert_step5')950 next5 = self.wTree.get_object('next5')951 if combo_choose.get_active_text() == '0':952 vbox_step5.set_property("visible", False)953 alert_step5.set_property("visible", False)954 next5.set_property("visible", False)955 step5_entry_scripts.set_property("text", "")956 elif combo_choose.get_active_text() == '1':957 vbox_step5.set_property("visible", False)958 alert_step5.set_property("visible", False)959 next5.set_property("visible", True)960 elif combo_choose.get_active_text() == '2':961 vbox_step5.set_property("visible", True)962 alert_step5.set_property("visible", False)963 next5.set_property("visible", True)964 elif combo_choose.get_active_text() == '3':965 vbox_step5.set_property("visible", False)966 alert_step5.set_property("visible", False)967 next5.set_property("visible", True)968 def on_previous5_clicked(self, widget):969 step_view5 = self.wTree.get_object('vbox_step5')970 step_view5.set_property("visible", False)971 step_view4 = self.wTree.get_object('vbox_step4')972 step_view4.set_property("visible", True)973 alert_step5 = self.wTree.get_object('alert_step5')974 alert_step5.set_property("visible", False)975 combo_choose = self.wTree.get_object('combobox_step5')976 step5_entry_scripts = self.wTree.get_object('step5_entry_scripts')977 step5_entry_scripts.set_property("text", "")978 self.combo_step5_choose = ""979 self.scripts_option = ""980 def on_next5_clicked(self, widget):981 step_view5 = self.wTree.get_object('vbox_step5')982 step_view5.set_property("visible", False)983 step_view_end = self.wTree.get_object('vbox_end')984 step_view_end.set_property("visible", True)985 combo_choose = self.wTree.get_object('combobox_step5')986 step5_entry_scripts = self.wTree.get_object('step5_entry_scripts')987 alert_step5 = self.wTree.get_object('alert_step5')988 if step5_entry_scripts.get_text() == '' and combo_choose.get_active_text() == '2':989 alert_step5.set_property("visible", True)990 step_view5.set_property("visible", True)991 step_view_end.set_property("visible", False)992 else:993 alert_step5.set_property("visible", False)994 step_view5.set_property("visible", False)995 step_view_end.set_property("visible", True)996 self.combo_step5_choose = combo_choose.get_active_text()997 self.scripts_option = step5_entry_scripts.get_text()998 # building end form999 end_entry_target = self.wTree.get_object('end_entry_target')1000 end_entry_shadow = self.wTree.get_object('end_entry_shadow')1001 end_entry_connection = self.wTree.get_object('end_entry_connection')1002 end_entry_bypasser = self.wTree.get_object('end_entry_bypasser')1003 end_entry_exploit = self.wTree.get_object('end_entry_exploit')1004 # step 11005 if self.combo_step1_choose == "1":1006 end_entry_target.set_property("text", "URL: " + self.target_option)1007 1008 if self.combo_step1_choose == "2":1009 end_entry_target.set_property("text", ("Dork: " + self.dork_option + " // Engine: " + self.dorkengine_option))1010 # step 21011 if self.combo_step2_choose == "1":1012 end_entry_connection.set_property("text", ("Type: GET " + " // Payload: " + self.payload_option))1013 if self.combo_step2_choose == "2":1014 end_entry_connection.set_property("text", ("Type: POST " + " // Payload: " + self.payload_option))1015 if self.combo_step2_choose == "3":1016 end_entry_connection.set_property("text", "Type: Crawler")1017 if self.combo_step2_choose == "4":1018 end_entry_connection.set_property("text", "Type: AUTO")1019 # step 31020 if self.combo_step3_choose == "1":1021 shadow_proxy = end_entry_shadow.set_property("text", self.proxy_option)1022 shadow_useragent = end_entry_shadow.set_property("text", self.useragent_option)1023 shadow_referer = end_entry_shadow.set_property("text", self.referer_option)1024 proxy = "PROXY listening on: " + self.proxy_option1025 end_entry_shadow.set_property("text", proxy)1026 if self.useragent_option != "":1027 end_entry_shadow.set_property("text", proxy + " + UA spoofing")1028 if self.referer_option != "":1029 end_entry_shadow.set_property("text", proxy + " + UA spoofing + RF spoofing")1030 else:1031 end_entry_shadow.set_property("text", proxy + " + UA spoofing(by default)")1032 if self.referer_option != "":1033 end_entry_shadow.set_property("text", proxy + " + UA spoofing(by default)+ RF spoofing")1034 if self.referer_option != "":1035 end_entry_shadow.set_property("text", proxy + " + RF spoofing")1036 if self.combo_step3_choose == "2":1037 proxy = "PROXY listening on: " + self.proxy_option1038 end_entry_shadow.set_property("text", proxy)1039 if self.combo_step3_choose == "3":1040 end_entry_shadow.set_property("text", "NO PROXY + UA spoofing(by default)")1041 if self.combo_step3_choose == "4":1042 end_entry_shadow.set_property("text", "DIRECT + UA spoofing(by default)")1043 1044 # step 41045 if self.combo_step4_choose == "1":1046 end_entry_bypasser.set_property("text", "Encode: Nothing")1047 if self.combo_step4_choose == "2":1048 end_entry_bypasser.set_property("text", "Encode: Hexadecimal")1049 if self.combo_step4_choose == "3":1050 end_entry_bypasser.set_property("text", "Encode: mix 'String.FromCharCode()' and 'Unescape()'")1051 if self.combo_step4_choose == "4":1052 end_entry_bypasser.set_property("text", self.cem_option)1053 if self.combo_step4_choose == "5":1054 end_entry_bypasser.set_property("text", "Encode: Nothing")1055 # step 51056 if self.combo_step5_choose == "1":1057 end_entry_exploit.set_property("text", "Code: Classic 'XSS' alert box")1058 if self.combo_step5_choose == "2":1059 end_entry_exploit.set_property("text", self.scripts_option)1060 if self.combo_step5_choose == "3":1061 end_entry_exploit.set_property("text", "Code: Classic 'XSS' alert box")1062 def on_previous6_clicked(self, widget):1063 step_view_end = self.wTree.get_object('vbox_end')1064 step_view_end.set_property("visible", False)1065 step_view5 = self.wTree.get_object('vbox_step5')1066 step_view5.set_property("visible", True)1067 alert_step5 = self.wTree.get_object('alert_step5')1068 alert_step5.set_property("visible", False)1069 combo_choose = self.wTree.get_object('combobox_step5')1070 step5_entry_scripts = self.wTree.get_object('step5_entry_scripts')1071 step5_entry_scripts.set_property("text", "")1072 self.combo_step5_choose = ""1073 self.scripts_option = ""1074 def on_cancel_template_clicked(self, widget):1075 step_view_end = self.wTree.get_object('vbox_end')1076 step_view_end.set_property("visible", False)1077 step_view_start = self.wTree.get_object('vbox_start')1078 step1_entry_url = self.wTree.get_object('step1_entry_url')1079 step1_entry_dork = self.wTree.get_object('step1_entry_dork')1080 step2_entry_payload = self.wTree.get_object('step2_entry_payload')1081 step3_entry_proxy = self.wTree.get_object('step3_entry_proxy')1082 step4_entry_cem = self.wTree.get_object('step4_entry_cem')1083 step5_entry_scripts = self.wTree.get_object('step5_entry_scripts')1084 step_view_start.set_property("visible", True)1085 # reseting wizard options 1086 # step 11087 self.target_option = ""1088 self.dork_option = ""1089 self.dorkengine_option = ""1090 self.combo_step1_choose = ""1091 step1_entry_url.set_property("text", "")1092 step1_entry_dork.set_property("text", "")1093 # step 21094 self.payload_option = ""1095 self.combo_step2_choose = ""1096 step2_entry_payload.set_property("text", "")1097 # step 31098 self.combo_step3_choose = ""1099 self.proxy_option = ""1100 self.useragent_option = ""1101 self.referer_option = ""1102 step3_entry_proxy.set_property("text", "")1103 # step 41104 self.combo_step4_choose = ""1105 self.cem_option = ""1106 step4_entry_cem.set_property("text", "")1107 # step 51108 self.combo_step5_choose = ""1109 self.scripts_option = ""1110 step5_entry_scripts.set_property("text", "")1111 # remove parameters on autocompleter1112 commandsenter = self.wTree.get_object('commandsenter')1113 commandsenter.set_property("text", "xsser")1114 # clean all buffers1115 self.output_wizard.set_buffer(self._wizard_buffer)1116 1117 def on_accept_template_clicked(self, widget):1118 """ 1119 Fly your mosquito(s) from wizard1120 """1121 # clean startup wizard buffer1122 step_view_end = self.wTree.get_object('vbox_end')1123 step_view_end.set_property("visible", False)1124 step_view_start = self.wTree.get_object('vbox_start')1125 step_view_start.set_property("visible", True)1126 fly_button = self.wTree.get_object('fly')1127 if self._flying:1128 self.on_stop_attack()1129 fly_button.set_label('LANDING!!!')1130 fly_button.set_sensitive(False)1131 return1132 self._report_errors.set_text('')1133 self._report_vulnerables.set_text('')1134 self._report_success.set_text('')1135 self._report_failed.set_text('')1136 self._report_crawling.set_text('')1137 self.output_wizard.set_buffer(self.output.get_buffer())1138 commandsenter = self.wTree.get_object('commandsenter')1139 cmd = self.generate_command()1140 commandsenter.set_property("text"," ".join(cmd)) 1141 t = XSSerThread(cmd, self.mothership)1142 t.add_reporter(self)1143 t.set_webbrowser(self.moz)1144 if self.map:1145 t.add_reporter(self.map)1146 self.mothership.add_reporter(self.map)1147 t.start()1148 self._flying = t1149 fly_button.set_label('LAND!!!')1150 step1_entry_url = self.wTree.get_object('step1_entry_url')1151 step1_entry_dork = self.wTree.get_object('step1_entry_dork')1152 step2_entry_payload = self.wTree.get_object('step2_entry_payload')1153 step3_entry_proxy = self.wTree.get_object('step3_entry_proxy')1154 step4_entry_cem = self.wTree.get_object('step4_entry_cem')1155 step5_entry_scripts = self.wTree.get_object('step5_entry_scripts')1156 step_view_start.set_property("visible", True)1157 # reseting wizard options 1158 # step 11159 self.target_option = ""1160 self.dork_option = ""1161 self.dorkengine_option = ""1162 self.combo_step1_choose = ""1163 step1_entry_url.set_property("text", "")1164 step1_entry_dork.set_property("text", "")1165 # step 21166 self.payload_option = ""1167 self.combo_step2_choose = ""1168 step2_entry_payload.set_property("text", "")1169 # step 31170 self.combo_step3_choose = ""1171 self.proxy_option = ""1172 self.useragent_option = ""1173 self.referer_option = ""1174 # step 41175 self.combo_step4_choose = ""1176 self.cem_option = ""1177 step4_entry_cem.set_property("text", "")1178 # step 51179 self.combo_step5_choose = ""1180 self.scripts_option = ""1181 step5_entry_scripts.set_property("text", "")1182 # remove parameters on autocompleter1183 commandsenter = self.wTree.get_object('commandsenter')1184 commandsenter.set_property("text", "xsser")1185 def on_combobox7_changed(self, widget):1186 """1187 Generate Geoip1188 """1189 combo_choose = self.wTree.get_object('combobox7')1190 image_geomap = self.wTree.get_object('image_geomap')1191 vbox9 = self.wTree.get_object('vbox9')1192 if combo_choose.get_active_text() == 'OFF':1193 self.map.set_property("visible", False)1194 vbox9.set_property("visible", False)1195 if self._flying:1196 self._flying.remove_reporter(self.map)1197 self.mothership.remove_reporter(self.map)1198 elif combo_choose.get_active_text() == 'ON':1199 vbox9.set_property("visible", True)1200 if not self.map:1201 image_geomap.realize()1202 drawarea = GlobalMap(self, image_geomap.get_pixbuf(), self._flying)1203 vbox = image_geomap.parent1204 vbox.remove(image_geomap)1205 eventbox = gtk.EventBox()1206 eventbox.add(drawarea)1207 vbox.pack_end(eventbox)1208 eventbox.show()1209 drawarea.show()1210 self.map = drawarea1211 if self._flying:1212 self.mothership.add_reporter(self.map)1213 self._flying.add_reporter(self.map)1214 self.map.set_property("visible", True)1215 def on_update_clicked(self, widget):1216 """1217 Search for latest XSSer version1218 """1219 webbrowser.open("https://github.com/epsylon/xsser")1220 def on_reportbug_clicked(self, widget):1221 """1222 Report bugs, ideas...1223 """1224 webbrowser.open("https://lists.sourceforge.net/lists/listinfo/xsser-users")1225 def on_donate_clicked(self, widget):1226 """1227 Donate something1228 """1229 webbrowser.open("http://03c8.net")1230 def generate_command(self):1231 command = ["xsser"]1232 # set automatic audit a entire target1233 # get target from url1234 target_all = self.wTree.get_object('targetall')1235 target_entry = self.wTree.get_object('targetenter')1236 if target_all.get_active() == False:1237 pass1238 else:1239 if target_entry.get_text() == "":1240 pass1241 else:1242 command.append("--all")1243 command.append(target_entry.get_text())1244 # get target from url1245 target_entry = self.wTree.get_object('targetenter')1246 if target_all.get_active() == True:1247 pass1248 else:1249 if target_entry.get_text() == "":1250 pass1251 else:1252 command.append("-u")1253 command.append(target_entry.get_text())1254 # get explorer test mode1255 explorer = self.wTree.get_object('explorer')1256 if explorer.get_active() == False:1257 pass1258 else:1259 explorer_enter = self.wTree.get_object('explorer_enter')1260 dork_engine = self.wTree.get_object('combobox4')1261 if explorer_enter.get_text() == "":1262 pass1263 else:1264 command.append("-d")1265 command.append(explorer_enter.get_text())1266 command.append("--De")1267 command.append(dork_engine.get_active_text())1268 # get crawler test mode (common crawling c=50 Cw=3)1269 crawler = self.wTree.get_object('crawler')1270 combobox5 = self.wTree.get_object('combobox5')1271 combobox_deep1 = self.wTree.get_object('combobox_deep1')1272 localonly1 = self.wTree.get_object('localonly1')1273 if crawler.get_active() == False:1274 pass1275 else:1276 command.append("-c")1277 command.append(str(int(combobox5.get_value())))1278 command.append("--Cw")1279 iter = combobox_deep1.get_active_iter()1280 command.append(combobox_deep1.get_model().get_value(iter, 0))1281 if localonly1.get_active() == True:1282 command.append("--Cl") 1283 # get statistics1284 target_entry = self.wTree.get_object('statistics')1285 if target_entry.get_active() == False:1286 pass1287 else:1288 command.append("-s")1289 # get verbose1290 target_entry = self.wTree.get_object('verbose')1291 if target_entry.get_active() == False:1292 pass1293 else:1294 command.append("-v")1295 # use GET connections1296 target_entry = self.wTree.get_object('get')1297 if target_entry.get_active() == False:1298 pass1299 else:1300 target_entry = self.wTree.get_object('connection_parameters')1301 if target_entry.get_text() == "":1302 pass1303 else:1304 command.append("-g")1305 command.append(target_entry.get_text())1306 # use POST connections1307 target_entry = self.wTree.get_object('post')1308 if target_entry.get_active() == False:1309 pass1310 else:1311 target_entry = self.wTree.get_object('connection_parameters')1312 if target_entry.get_text() == "":1313 pass1314 else:1315 command.append("-p")1316 command.append(target_entry.get_text())1317 # use checker system No-HEAD1318 target_entry = self.wTree.get_object('no-head')1319 if target_entry.get_active() == False:1320 pass1321 else:1322 command.append("--no-head")1323 # use checker system HASH1324 target_entry = self.wTree.get_object('hashing')1325 if target_entry.get_active() == False:1326 pass1327 else:1328 command.append("--hash")1329 # use checker system HEURISTIC1330 target_entry = self.wTree.get_object('heuristic')1331 if target_entry.get_active() == False:1332 pass1333 else:1334 command.append("--heuristic")1335 # get USER-AGENT1336 target_entry = self.wTree.get_object('useragent')1337 command.append("--user-agent")1338 command.append(target_entry.get_text())1339 # get REFERER1340 target_entry = self.wTree.get_object('referer')1341 if target_entry.get_text() == "":1342 pass1343 else:1344 command.append("--referer")1345 command.append(target_entry.get_text())1346 # get COOKIE1347 target_entry = self.wTree.get_object('cookie')1348 if target_entry.get_text() == "":1349 pass1350 else:1351 command.append("--cookie")1352 command.append(target_entry.get_text())1353 # get Authentication BASIC1354 target_entry = self.wTree.get_object('auth_basic')1355 if target_entry.get_active() == False:1356 pass1357 else:1358 command.append("--auth-type")1359 command.append("basic")1360 # get Authentication DIGEST1361 target_entry = self.wTree.get_object('auth_digest')1362 if target_entry.get_active() == False:1363 pass1364 else:1365 command.append("--auth-type")1366 command.append("digest")1367 # get Authentication GSS1368 target_entry = self.wTree.get_object('auth_gss')1369 if target_entry.get_active() == False:1370 pass1371 else:1372 command.append("--auth-type")1373 command.append("gss")1374 # get Authentication NTLM1375 target_entry = self.wTree.get_object('auth_ntlm')1376 if target_entry.get_active() == False:1377 pass1378 else:1379 command.append("--auth-type")1380 command.append("ntlm")1381 # get Authentication Credentials1382 target_entry = self.wTree.get_object('auth_cred')1383 if target_entry.get_text() == "":1384 pass1385 else:1386 command.append("--auth-cred")1387 command.append(target_entry.get_text())1388 # get PROXY1389 proxy = self.wTree.get_object('proxy')1390 if proxy.get_text() == "":1391 pass1392 else:1393 command.append("--proxy")1394 command.append(proxy.get_text())1395 if proxy.get_text() == "http://127.0.0.1:8118":1396 torproxy = self.wTree.get_object('torproxy')1397 torproxy.set_property('active', True)1398 else:1399 torproxy.set_property('active', False)1400 # get IGNORE-PROXY1401 target_entry = self.wTree.get_object('ignore-proxy')1402 if target_entry.get_active() == False:1403 pass1404 else:1405 command.append("--ignore-proxy")1406 # get DROP-COOKIE1407 target_entry = self.wTree.get_object('drop-cookie')1408 if target_entry.get_active() == False:1409 pass1410 else:1411 command.append("--drop-cookie")1412 # get XFORW1413 target_entry = self.wTree.get_object('xforw')...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run autotest automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful