Added new quick-commands and a hover state for the attack-mode-switcher buttons

This commit is contained in:
Mathew Fleisch
2017-03-29 01:11:17 -07:00
parent abfea1f683
commit 2ee6e16a2f
2 changed files with 10 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ pre {
float:left; float:left;
width: 25%; width: 25%;
} }
.attack-mode:hover { color:#fff; }
.is_active_true, .is_active_false { cursor: pointer; } .is_active_true, .is_active_false { cursor: pointer; }
#readme-target { #readme-target {
float:left; float:left;

View File

@@ -3,6 +3,9 @@ var git_log = '/var/log/git.log';
var bunny_root = '/root/udisk'; var bunny_root = '/root/udisk';
var quick_commands = [ var quick_commands = [
{ {
name:"Update apt-get",
command:'apt-get-update && apt-get upgrade && apt-get autoremove'
},{
name:"Clone git repository", name:"Clone git repository",
command:'if [ ! -d '+bunny_root+'/.git ]; then ' command:'if [ ! -d '+bunny_root+'/.git ]; then '
+'cd '+bunny_root+'; ' +'cd '+bunny_root+'; '
@@ -53,5 +56,11 @@ var quick_commands = [
+'else ' +'else '
+'echo "Cannot run tools installer: Missing git repository"; ' +'echo "Cannot run tools installer: Missing git repository"; '
+'fi ' +'fi '
},{
name:"cat switch1/payload.txt",
command:'cat /root/udisk/payloads/switch1/payload.txt'
},{
name:"cat switch2/payload.txt",
command:'cat /root/udisk/payloads/switch2/payload.txt'
} }
]; ];