Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
d9adff3a
Commit
d9adff3a
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Option to verify the tripwire code
parent
99479d64
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-controlpanel
+52
-39
52 additions, 39 deletions
src/freedombone-controlpanel
with
52 additions
and
39 deletions
src/freedombone-controlpanel
+
52
−
39
View file @
d9adff3a
...
...
@@ -1268,6 +1268,18 @@ function security_settings {
any_key
}
function
show_tripwire_verification_code
{
clear
echo
''
echo
$'Tripwire Verification Code'
echo
''
DBHASH
=
$(
sha512sum
/var/lib/tripwire/
${
HOSTNAME
}
.twd
)
echo
"
$DBHASH
"
| qrencode
-t
UTF8
echo
''
echo
"
$DBHASH
"
echo
''
}
function
reset_tripwire
{
if
[
!
-f
/usr/bin/reset-tripwire
]
;
then
echo
$'Missing /usr/bin/reset-tripwire'
...
...
@@ -1299,12 +1311,10 @@ function reset_tripwire {
'
| reset-tripwire
echo
''
if
[
-f
/var/lib/tripwire/
${
HOSTNAME
}
.twd
]
;
then
DBHASH
=
$(
sha512sum
/var/lib/tripwire/
${
HOSTNAME
}
.twd
)
echo
"
$DBHASH
"
| qrencode
-t
UTF8
echo
''
echo
"
$DBHASH
"
echo
''
echo
$'Tripwire is now reset'
show_tripwire_verification_code
echo
$'Tripwire is now reset. Take a note of the above hash, or record'
echo
$'the QR code using a mobile device. This will enable you to independently'
echo
$'verify the integrity of the tripwire.'
else
echo
$'ERROR: tripwire database was not created'
fi
...
...
@@ -2131,27 +2141,28 @@ function menu_top_level {
trap
"rm -f
$data
"
0 1 2 5 15
dialog
--backtitle
$"Freedombone Control Panel"
\
--title
$"Control Panel"
\
--radiolist
$"Choose an operation:"
2
8
70 2
0
\
--radiolist
$"Choose an operation:"
2
9
70 2
1
\
1
$"About this system"
off
\
2
$"Passwords"
off
\
3
$"Backup and Restore"
off
\
4
$"Show Firewall"
off
\
5
$"Reset Tripwire"
off
\
6
$"App Settings"
off
\
7
$"Add/Remove Apps"
off
\
8
$"Logging on/off"
off
\
9
$"Ping enable/disable"
off
\
10
$"Manage Users"
off
\
11
$"Email Menu"
off
\
12
$"Domain or User Blocking"
off
\
13
$"Security Settings"
off
\
14
$"Change the name of this system"
off
\
15
$"Set a static local IP address"
off
\
16
$"Wifi menu"
off
\
17
$"Check for updates"
off
\
18
$"Power off the system"
off
\
19
$"Restart the system"
off
\
20
$"Exit"
on 2>
$data
5
$"Verify Tripwire Code"
off
\
6
$"Reset Tripwire"
off
\
7
$"App Settings"
off
\
8
$"Add/Remove Apps"
off
\
9
$"Logging on/off"
off
\
10
$"Ping enable/disable"
off
\
11
$"Manage Users"
off
\
12
$"Email Menu"
off
\
13
$"Domain or User Blocking"
off
\
14
$"Security Settings"
off
\
15
$"Change the name of this system"
off
\
16
$"Set a static local IP address"
off
\
17
$"Wifi menu"
off
\
18
$"Check for updates"
off
\
19
$"Power off the system"
off
\
20
$"Restart the system"
off
\
21
$"Exit"
on 2>
$data
sel
=
$?
case
$sel
in
1
)
exit
1
;;
...
...
@@ -2163,26 +2174,28 @@ function menu_top_level {
2
)
view_or_change_passwords
;;
3
)
menu_backup_restore
;;
4
)
show_firewall
;;
5
)
reset_tripwire
;;
6
)
menu_app_settings
;;
7
)
/usr/local/bin/addremove
5
)
show_tripwire_verification_code
any_key
;;
6
)
reset_tripwire
;;
7
)
menu_app_settings
;;
8
)
/usr/local/bin/addremove
if
[
!
"
$?
"
=
"0"
]
;
then
any_key
fi
;;
8
)
logging_on_off
;;
9
)
ping_enable_disable
;;
1
0
)
menu_users
;;
1
1
)
menu_email
;;
1
2
)
domain_blocking
;;
1
3
)
security_settings
;;
1
4
)
change_system_name
;;
1
5
)
set_static_IP
;;
1
6
)
menu_wifi
;;
1
7
)
check_for_updates
;;
1
8
)
shut_down_system
;;
19
)
restart_system
;;
2
0
)
break
;;
9
)
logging_on_off
;;
10
)
ping_enable_disable
;;
1
1
)
menu_users
;;
1
2
)
menu_email
;;
1
3
)
domain_blocking
;;
1
4
)
security_settings
;;
1
5
)
change_system_name
;;
1
6
)
set_static_IP
;;
1
7
)
menu_wifi
;;
1
8
)
check_for_updates
;;
1
9
)
shut_down_system
;;
20
)
restart_system
;;
2
1
)
break
;;
esac
done
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment