CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/data/sounds/gensounds_mac.rb
Views: 11766
1
sounds = {
2
'num0' => '0',
3
'num1' => '1',
4
'num2' => '2',
5
'num3' => '3',
6
'num4' => '4',
7
'num5' => '5',
8
'num6' => '6',
9
'num7' => '7',
10
'num8' => '8',
11
'num9' => '9',
12
'closed' => 'closed',
13
'opened' => 'opened',
14
'plugin_load' => 'meta sploit sound plugin has been loaded',
15
'plugin_unload' => 'sound plugin has been unloaded',
16
'session' => 'session',
17
'address' => 'address',
18
'port' => 'port',
19
'dot' => 'dot',
20
'session_open_meterpreter' => 'a new meterp reter session has been opened',
21
'session_open_shell' => 'a new command shell session has been opened',
22
'session_open_vnc' => 'a new VNC session has been opened'
23
}
24
25
voice_name = 'Zarvox'
26
27
def create_aiff(voice, file,text)
28
system("say -v #{voice} -o #{file}.aiff #{text}")
29
end
30
31
sounds.keys.each do |k|
32
create_aiff(voice_name, k, sounds[k])
33
end
34
35
36