commit b247afe63832e174e5dc443189cad3bf9b6c4b21 Author: Aaron Johnson Date: Sun Sep 27 06:49:30 2020 -0500 Initial Commit from Harris diff --git a/add.php b/add.php new file mode 100644 index 0000000..8f03b77 --- /dev/null +++ b/add.php @@ -0,0 +1,78 @@ + + + + Password Fetch tool + + + +

+
+
+AJServer password retrieval +
+
+Password insert succeeded. Here\'s the URL to fetch it:

'; + print '

link

'; + + } + else{ + print '

Nope, not here: '.$adminPassword.'

'; + } + + } + + if($displayForm){ + +?> +
+ + + + + + + + + + +
Admin Password:
New Password:
+
+ +
+
+

+ + diff --git a/changeAdminPass.txt b/changeAdminPass.txt new file mode 100644 index 0000000..cc8f476 --- /dev/null +++ b/changeAdminPass.txt @@ -0,0 +1 @@ +update password_delivery set key = md5('your new password') where id = 0; diff --git a/index.php b/index.php new file mode 100644 index 0000000..b68fa5d --- /dev/null +++ b/index.php @@ -0,0 +1,79 @@ + + + + Password Fetch tool + + + +

+
+
+AJServer password retrieval +
+
+Error: This key was valid for one-time ' + .'use and is no longer valid.

It was already delivered to IP address ' + .''.$MyIP.' on '.$MyTime.'. Please contact ' + .'support immediately to have your password reset if you feel your key ' + .'might have been intercepted.

'; + } + else{ + + $MyPassword = pg_fetch_result($MyLookup,0,0); + $MyIP = $_SERVER['REMOTE_ADDR']; + $MyLookup = pg_query($DBConnection, "UPDATE password_delivery + SET retrieved_ip = '".pg_escape_string($MyIP)."', + retrieved_time = 'now()', + password = '' + WHERE key = '".pg_escape_string($MyKey)."'"); + + print '

Your password is:

'; + + if(strlen($MyPassword) > 20){ + + print '

'.$MyPassword.'

'; + + } else { + print ''.$MyPassword.'

'; + } + print '

Do not hit reload on your browser. This URL is one-time use and will not show your passsword again.

'; + } + } + else{ + print '

Error: You need to supply a valid key.

'; + } + } + else{ + print '

Error: You need to supply a valid key.

'; + } + +?> +
+
+

+ + diff --git a/style.css b/style.css new file mode 100644 index 0000000..b89af57 --- /dev/null +++ b/style.css @@ -0,0 +1,75 @@ +/* Base element styles +----------------------------------------------------------------- */ + +body, div { + font-size: 11px; + font-family: verdana, geneva, sans-serif; + color: #000000; + background: #ffffff; + text-align: center; + padding: 0px 0px 0px 0px; + border: 0px solid #000000; + margin: 0px 0px 0px 0px; + line-height: 1.4; +} + +/* Centers contents horizontally in browser window */ +#page, +div #page, #signinpage { + height: 100%; + display: block; + float: none; + clear: both; + padding: 0px 14px 14px 14px; + border: 0px solid #999999; + margin: 0px 0px 0px 0px; + margin-right: auto; + margin-left: auto; + background: #ffffff; + color: #ffffff; + text-align: left; +} + +#signinpage { + text-align: center; +} + +#page{ + width: 781px; +} + +div { + text-align: left; +} + + +/* Headings */ +/* Links on the front of the Reporter should be h2 but were done a p a.head */ +h1, h1.firsthead, .firsthead, +h2, h2.nolinehead, .nolinehead, span.head, div.head, p.head, .longhead, +h3, .subhead, +h4, h5, h6, +p a.head { + display: block; + float: none; + clear: both; + color: #483D8B; + background: transparent; + font-family: verdana, geneva, sans-serif; + font-size: 18px; + font-weight: bold; + text-align: left; + line-height: 1; + padding: 3px 0px 0px 0px; + border: 0px solid #000000; + margin: 5px 0px 10px 0px; +} + +h2, span.head, div.head, p.head, .longhead, +h2.nolinehead, .nolinehead, +p a.head { + font-size: 14px; + border-top: 1px solid #FF8C00; + margin: 5px 0px 5px 0px; +} +