Update audio files

bug/bundler_fix
wchen-r7 2015-11-25 23:41:18 -06:00
parent 776455d10a
commit d44224142e
5 changed files with 15 additions and 7 deletions

Binary file not shown.

Binary file not shown.

BIN
data/sounds/default/wonderful.mp3 Executable file

Binary file not shown.

View File

@ -13,9 +13,8 @@ module Msf
class Plugin::EventSounds < Msf::Plugin
attr_accessor :theme, :base, :queue, :queue_thread
attr_reader :try_harder, :session_open, :excellent
attr_reader :try_harder, :excellent, :got_a_shell, :exploit_worked, :wonderful, :excellent
include Msf::SessionEvent
@ -24,12 +23,18 @@ class Plugin::EventSounds < Msf::Plugin
end
def on_session_open(session)
sound = [excellent, session_open].sample
sound = [
excellent,
got_a_shell,
exploit_worked,
wonderful,
excellent
].sample
play_sound(sound)
end
def on_session_close(session, reason='')
play_sound(session_close)
# Cannot find an audio clip of muts saying something suitable for this.
end
def on_session_fail(reason='')
@ -70,9 +75,12 @@ class Plugin::EventSounds < Msf::Plugin
def init_sound_paths
@try_harder = 'try_harder'
@session_open = 'session_open'
@excellent = 'excellent'
@try_harder = 'try_harder'
@excellent = 'excellent'
@got_a_shell = 'got_a_shell'
@exploit_worked = 'exploit_worked'
@wonderful = 'wonderful'
@excellent = 'excellent'
end