Date: | 2012-06-20 18:19:22 (11 years 3 months ago) |
---|---|
Author: | Warren Pattison |
Commit: | 9a04a3d23ed0aa2f421947f9fef08b551abb34cd |
Message: | Push initial Security works login - a simple login script verify -
text file to hold password owner - text file to hold contact info
to be displayed Update README with appropriate info. |
Files: |
ben-security/README (1 diff) ben-security/etc/owner (1 diff) ben-security/etc/verify (1 diff) ben-security/sbin/login (1 diff) |
Change Details
ben-security/README | ||
---|---|---|
1 | 1 | This Directory will contain projects about Securing the Ben Nananote. |
2 | 2 | |
3 | Things so far: | |
4 | ||
5 | /sbin/login - A login script with the option to print user/contact info | |
6 | /etc/verify - A text file containing the password in plain text (will definitely get onto hashing it). | |
7 | If this file doesn't exist login aborts and the system/shell/etc comes up | |
8 | /etc/owner - A text file containing contact information printed above the password prompt. | |
9 | If /etc/owner doesn't exist only the prompt is shown. | |
10 | ||
11 | Planned features: | |
12 | ||
13 | Hashed passwords or reading root password if possible. | |
14 | Nicer look (Graphic login screen or something) | |
15 | Failure limit - Stop/limit bruteforcing | |
16 | ?? Nuker ?? - possible option to erase user data if too many failures | |
17 | prevent it showing up after each gmenu2x program | |
3 | 18 |
ben-security/etc/owner | ||
---|---|---|
1 | Retrun to: | |
2 | Somebody | |
3 | 54 Someplace lane | |
4 | Some Country | |
5 |
ben-security/etc/verify | ||
---|---|---|
1 | BNN | |
2 |
ben-security/sbin/login | ||
---|---|---|
1 | #!/bin/bash | |
2 | # | |
3 | # Login script to secure the nanonote | |
4 | reset | |
5 | ||
6 | if [ -f /etc/owner ]; then | |
7 | cat /etc/owner | |
8 | fi | |
9 | ||
10 | echo -n "Password: " | |
11 | ||
12 | stty -echo | |
13 | read password | |
14 | stty echo | |
15 | ||
16 | echo "" | |
17 | ||
18 | correct="$(cat /etc/verify)" | |
19 | if [ $password = $correct ] ; then | |
20 | exec $1 | |
21 | fi |
Branches:
master