Class: Watobo::Gui::SessionManagementDialog

Inherits:
FXDialogBox
  • Object
show all
Includes:
Icons
Defined in:
lib/watobo/gui/session_management_dialog.rb

Overview

S E S S I O N M A N A G E M E N T D I A L O G

Constant Summary

Constants included from Icons

Icons::ICON_ADD_PROJECT, Icons::ICON_BROWSER_MEDIUM, Icons::ICON_BROWSER_SMALL, Icons::ICON_BTN_DOWN, Icons::ICON_BTN_UP, Icons::ICON_CB_CHECKED, Icons::ICON_CB_CHECKED_ORANGE, Icons::ICON_CB_UNCHECKED, Icons::ICON_CONVERSATION, Icons::ICON_DASHBOARD, Icons::ICON_DIFFER, Icons::ICON_FOLDER, Icons::ICON_FOLDER_SMALL, Icons::ICON_FUZZER, Icons::ICON_FUZZER_MEDIUM, Icons::ICON_FUZZER_SMALL, Icons::ICON_FUZZ_FILTER, Icons::ICON_FUZZ_GENERATOR, Icons::ICON_FUZZ_TAG, Icons::ICON_HINTS, Icons::ICON_HINTS_INFO, Icons::ICON_HINTS_INFO_SMALL, Icons::ICON_HINTS_SMALL, Icons::ICON_INFO, Icons::ICON_INFO_INFO, Icons::ICON_INFO_INFO_SMALL, Icons::ICON_INFO_SMALL, Icons::ICON_INFO_USER, Icons::ICON_INFO_USER_SMALL, Icons::ICON_INTERCEPTOR, Icons::ICON_LOGIN_WIZZARD, Icons::ICON_MANUAL_REQUEST, Icons::ICON_MANUAL_REQUEST_MEDIUM, Icons::ICON_MANUAL_REQUEST_SMALL, Icons::ICON_PAUSE, Icons::ICON_PLUGIN, Icons::ICON_PROJECT, Icons::ICON_PROJECT_SMALL, Icons::ICON_REPORT, Icons::ICON_REQUEST, Icons::ICON_REQUEST_SMALL, Icons::ICON_SEND_REQUEST, Icons::ICON_SITE, Icons::ICON_SITE_SMALL, Icons::ICON_START, Icons::ICON_STOP, Icons::ICON_TOKEN, Icons::ICON_TRANSCODER, Icons::ICON_VULN, Icons::ICON_VULN_BP, Icons::ICON_VULN_BP_SMALL, Icons::ICON_VULN_CRITICAL, Icons::ICON_VULN_CRITICAL_SMALL, Icons::ICON_VULN_HIGH, Icons::ICON_VULN_HIGH_SMALL, Icons::ICON_VULN_LOW, Icons::ICON_VULN_LOW_SMALL, Icons::ICON_VULN_MEDIUM, Icons::ICON_VULN_MEDIUM_SMALL, Icons::ICON_VULN_SMALL, Icons::ICON_WATOBO, Icons::SIBERAS_ICON, Icons::TBL_ICON_LOCK, Icons::WATOBO_LOGO

Instance Method Summary collapse

Constructor Details

#initialize(owner) ⇒ SessionManagementDialog

Returns a new instance of SessionManagementDialog.


635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
# File 'lib/watobo/gui/session_management_dialog.rb', line 635

def initialize(owner)
  #@project = project
  # Invoke base class initialize function first
  #  super(owner, "LoginScript Wizzard", DECOR_TITLE|DECOR_BORDER,:width=>800, :height=>600)
  super(owner, "Session Management", DECOR_ALL, :width=>800, :height=>600)
  self.icon = ICON_LOGIN_WIZZARD
  main_frame = FXVerticalFrame.new(self, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y, :padding => 0)

  tabBook = FXTabBook.new(main_frame, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_RIGHT)
  @loginSettings = nil
  @sidSettings = nil
  
  unless Watobo.project.nil?

   = FXTabItem.new(tabBook, "Login Script", nil)
  @loginSettings = LoginScriptSettings.new(tabBook)

 
  end
   sid_tab = FXTabItem.new(tabBook, "Sesssion IDs", nil)
  # @sidFrame = FXVerticalFrame.new(tabBook, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y)
  @sidSettings = SessionIdSettings.new(tabBook)

  logout_tab = FXTabItem.new(tabBook, "Logout Signatures", nil)
  @logoutSettings = LogoutSettings.new(tabBook)

#        unless Watobo.project.nil?
#        sidcache_tab = FXTabItem.new(tabBook, "SID-Cache", nil)
#        SIDCacheFrame.new(tabBook)
#        end
  
  tabBook.connect(SEL_COMMAND) do |sender, sel, tabItem|

    case tabItem.to_i
    when 0
      #  puts "Login Script Selected"
    when 1
      # puts "Session IDs Selected"
      unless Watobo.project.nil?
      ids = getLoginScriptIds()
      @sidSettings.updateRequests(ids)
      end
    when 2
      #   puts "Logout Selected"
    end
  end

  button_frame = FXHorizontalFrame.new(main_frame, :opts => LAYOUT_FILL_X)
  FXButton.new(button_frame, "OK" ,
  :target => self, :selector => FXDialogBox::ID_ACCEPT,
  :opts => BUTTON_NORMAL|LAYOUT_RIGHT)
  FXButton.new(button_frame, "Cancel" ,
  :target => self, :selector => FXDialogBox::ID_CANCEL,
  :opts => BUTTON_NORMAL|LAYOUT_RIGHT)
end

Instance Method Details

#getLoginScriptIdsObject


627
628
629
# File 'lib/watobo/gui/session_management_dialog.rb', line 627

def getLoginScriptIds()
   = @loginSettings.getLoginScriptIds()
end

#getLogoutSignaturesObject


631
632
633
# File 'lib/watobo/gui/session_management_dialog.rb', line 631

def getLogoutSignatures()
  signatures = @logoutSettings.getLogoutSignatures()
end

#getSidPatternsObject


623
624
625
# File 'lib/watobo/gui/session_management_dialog.rb', line 623

def getSidPatterns()
  sidpats = @sidSettings.getSidPatternList
end