Date:2012-06-20 18:19:22 (8 years 4 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
11This Directory will contain projects about Securing the Ben Nananote.
22
3Things 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
11Planned features:
12
13Hashed passwords or reading root password if possible.
14Nicer look (Graphic login screen or something)
15Failure limit - Stop/limit bruteforcing
16?? Nuker ?? - possible option to erase user data if too many failures
17prevent it showing up after each gmenu2x program
318
ben-security/etc/owner
1Retrun to:
2Somebody
354 Someplace lane
4Some Country
5
ben-security/etc/verify
1BNN
2
ben-security/sbin/login
1#!/bin/bash
2#
3# Login script to secure the nanonote
4reset
5
6if [ -f /etc/owner ]; then
7    cat /etc/owner
8fi
9
10echo -n "Password: "
11
12stty -echo
13read password
14stty echo
15
16echo ""
17
18correct="$(cat /etc/verify)"
19if [ $password = $correct ] ; then
20   exec $1
21fi

Archive Download the corresponding diff file

Branches:
master



interactive