def do_tools_clone_page(self, _): dialogs.ClonePageDialog(self.application).interact()
def signal_activate_tools_clone_page(self, _): dialogs.ClonePageDialog(self.application).interact()
def _add_menu_actions(self, action_group): # File Menu Actions action = Gtk.Action(name='FileMenu', label='File', tooltip=None, stock_id=None) action_group.add_action(action) action = Gtk.Action(name='FileOpenCampaign', label='_Open Campaign', tooltip='Open a Campaign', stock_id=Gtk.STOCK_NEW) action.connect('activate', lambda x: self.show_campaign_selection()) action_group.add_action_with_accel(action, '<control>O') action = Gtk.Action(name='FileImportMenu', label='Import', tooltip=None, stock_id=None) action_group.add_action(action) action = Gtk.Action(name='FileImportMessageConfiguration', label='Message Configuration', tooltip='Message Configuration', stock_id=None) action.connect('activate', lambda x: self.tabs['mailer'].import_message_data()) action_group.add_action(action) action = Gtk.Action(name='FileExportMenu', label='Export', tooltip=None, stock_id=None) action_group.add_action(action) action = Gtk.Action(name='FileExportCampaignXML', label='Campaign XML', tooltip='Campaign XML', stock_id=None) action.connect('activate', lambda x: self.export_campaign_xml()) action_group.add_action(action) action = Gtk.Action(name='FileExportMessageConfiguration', label='Message Configuration', tooltip='Message Configuration', stock_id=None) action.connect('activate', lambda x: self.tabs['mailer'].export_message_data()) action_group.add_action(action) action = Gtk.Action(name='FileQuit', label=None, tooltip=None, stock_id=Gtk.STOCK_QUIT) action.connect('activate', lambda x: self.emit('exit-confirm')) action_group.add_action_with_accel(action, '<control>Q') # Edit Menu Actions action = Gtk.Action(name='EditMenu', label='Edit', tooltip=None, stock_id=None) action_group.add_action(action) action = Gtk.Action(name='EditPreferences', label='Preferences', tooltip='Edit Preferences', stock_id=Gtk.STOCK_EDIT) action.connect('activate', lambda x: self.edit_preferences()) action_group.add_action(action) action = Gtk.Action(name='EditDeleteCampaign', label='Delete Campaign', tooltip='Delete Campaign', stock_id=None) action.connect('activate', lambda x: self.delete_campaign()) action_group.add_action(action) action = Gtk.Action(name='EditRenameCampaign', label='Rename Campaign', tooltip='Rename Campaign', stock_id=None) action.connect('activate', lambda x: self.rename_campaign()) action_group.add_action(action) action = Gtk.Action(name='EditStopService', label='Stop Service', tooltip='Stop The Remote King-Phisher Service', stock_id=None) action.connect('activate', lambda x: self.stop_remote_service()) action_group.add_action(action) # Tools Menu Action action = Gtk.Action(name='ToolsMenu', label='Tools', tooltip=None, stock_id=None) action_group.add_action(action) action = Gtk.Action(name='ToolsRPCTerminal', label='RPC Terminal', tooltip='RPC Terminal', stock_id=None) action.connect( 'activate', lambda x: tools.KingPhisherClientRPCTerminal( self.config, self, self.get_property('application'))) action_group.add_action_with_accel(action, '<control>F1') action = Gtk.Action(name='ToolsCloneWebPage', label='Clone Web Page', tooltip='Clone A Web Page', stock_id=None) action.connect( 'activate', lambda x: dialogs.ClonePageDialog(self.config, self).interact()) action_group.add_action(action) # Help Menu Actions action = Gtk.Action(name='HelpMenu', label='Help', tooltip=None, stock_id=None) action_group.add_action(action) action = Gtk.Action(name='HelpAbout', label='About', tooltip='About', stock_id=None) action.connect( 'activate', lambda x: dialogs.AboutDialog(self.config, self).interact()) action_group.add_action(action) action = Gtk.Action(name='HelpWiki', label='Wiki', tooltip='Wiki', stock_id=None) action.connect( 'activate', lambda x: utilities.open_uri( 'https://github.com/securestate/king-phisher/wiki')) action_group.add_action(action)