Verified Commit b2712b6a authored by Thorsten Küfer's avatar Thorsten Küfer
Browse files

FontAwesome 5 Icons eingefügt.

parent be426c5d
File mode changed from 100644 to 100755
# ZIV Passwort-Tools
# WWU-CERT Passwort-Tools
Die ZIV Passwort-Tools sind eine Webanwendung, die einen Passworgenerator für zufällige Passwörter und Passwortkarten, sowie einen ausführlichen Passwortcheck anbietet. Die Anwendung nutzt PHP und JavaScript.
Die WWU-CERT Passwort-Tools sind eine Webanwendung, die einen Passworgenerator für zufällige Passwörter und Passwortkarten, sowie einen ausführlichen Passwortcheck anbietet. Die Anwendung nutzt PHP und JavaScript. Zur Erzeugung der Passwörter wird `pwgen` genutzt.
* Produktivsystem: https://www.uni-muenster.de/ZIV.CERT/pw
* Testsystem: https://www.uni-muenster.de/ZIV.CERT/pw-neu
......@@ -11,6 +11,7 @@ Die ZIV Passwort-Tools sind eine Webanwendung, die einen Passworgenerator für z
* [TCPDF](https://tcpdf.org/) (Enthalten)
* [jQuery](https://jquery.com/) (Enthalten)
* [jQuery UI](https://jqueryui.com/) (Enthalten)
* [Font-Awesome v5](https://github.com/FortAwesome/Font-Awesome) (Enthalten)
## Installation
......@@ -18,7 +19,7 @@ Den gesamten Ordnerinhalt in das gewünschte Verzeichnis auf dem Webserver kopie
## Notiz zum Passwortcheck
Der Passwortcheck basiert auf dem [Password Strength Checker](http://www.passwordmeter.com/), welcher unter der GNU General Public License (GPL) frei verfügbar ist. Der Quellcode wurde für die ZIV Passwort-Tools modifiziert.
Der Passwortcheck basiert auf dem [Password Strength Checker](http://www.passwordmeter.com/), welcher unter der GNU General Public License (GPL) frei verfügbar ist. Der Quellcode wurde für die WWU-CERT Passwort-Tools modifiziert.
## History
......
This diff is collapsed.
/*
* ZIV Passwort-Generator
* WWU-CERT Passwort-Generator
*
* Stil-Datei
*
......@@ -7,6 +7,7 @@
*
* (c) 2017-2020 Westfälische Wilhelms-Universität Münster
*/
/* Allgemein */
.error {
margin: auto;
......@@ -78,6 +79,11 @@
padding: auto;
}
.rndgen legend {
font-weight: bold;
font-size: 1.1em;
}
.rndgen fieldset {
width: 90%;
height: 90%;
......@@ -130,6 +136,11 @@
color: #fff !important;
}
.ui-tabs-anchor {
font-weight: bold;
font-size: 1.2em;
}
.ui-spinner-input {
}
<?php
/*
* ZIV Passwort-Generator
* WWU-CERT Passwort-Generator
*
* Beschreibung: PHP-Backend für den Passwort-Generator. Generiert zufällige Passwörter und Passwortkarten mit Hilfe des pwgen-Tools.
*
......@@ -14,7 +14,7 @@
# HTML Befehle können verwendet werden und werden übernommen
$strings = array (
'de' => array (
'title' => 'ZIV Passwort-Tools',
'title' => 'WWU-CERT Passwort-Tools',
'jswarning' => 'Einige Funktionen dieser Seite benötigen Javascript! Bitte aktivieren Sie Javascript um die Seite im vollen Umfang nutzen zu können!',
'error' => 'Ein interner Fehler ist aufgetreten! Bitte versuchen Sie es in Kürze erneut!',
'refresh' => 'Neu generieren',
......@@ -45,7 +45,7 @@ $strings = array (
'pwcheck_negative' => 'Nur Buchstaben|Nur Ziffern|Wiederholende Zeichen|Konsekutive Großbuchstaben (z.B. JLD)|Konsekutive Kleinbuchstaben (z.B. jld)|Konsekutive Ziffern (z.B. 058)|Aufeinanderfolgende Buchstaben/Tastaturmuster (z.B. abc, qwe)|Aufeinanderfolgende Ziffern (z.B. 123)|Aufeinanderfolgende Sonderzeichen (z.B. !"§)'
),
'en' => array (
'title' => 'ZIV Password-Tools',
'title' => 'WWU-CERT Password-Tools',
'jswarning' => 'Some functions on this page require javascript to run properly! Please enable javascript to use this website in it\'s entirety!',
'error' => 'An internal error occurred! Please try again in a few minutes!',
'refresh' => 'Refresh',
......@@ -148,13 +148,14 @@ if($pwcard_return === 0) {
}
}
?>
<html>
<!DOCTYPE html>
<html lang="<?= $lang ?>">
<head>
<meta charset="UTF-8">
<meta name="author" content="Dustin Gawron">
<meta name="copyright" content="&copy; 2017 Universität Münster">
<title><?= $strings[$lang]['title'] ?></title>
<link rel="stylesheet" href="css/fontawesome-all.min.css">
<link rel="stylesheet" href="css/jquery-ui.min.css">
<link rel="stylesheet" href="css/jquery-ui.theme.min.css">
<link rel="stylesheet" href="css/zivpwtools.css">
......@@ -185,10 +186,10 @@ if($pwcard_return === 0) {
<div id="jsWarn" class="ui-state-error ui-corner-all error"><?= $strings[$lang]['jswarning'] ?></div>
<div id="tabs" style="width: 100%; margin: auto;">
<ul style="border-bottom: 2px solid black;">
<li><a href="#random"><?= $strings[$lang]['rnd_title'] ?></a></li>
<li><a href="#pwcard"><?= $strings[$lang]['pwcard_title'] ?></a></li>
<li><a href="#hook"><?= $strings[$lang]['hook_title'] ?></a></li>
<li><a href="#pwcheck"><?= $strings[$lang]['pwcheck_title'] ?></a></li>
<li><a href="#random"><i class="fas fa-dice"></i> <?= $strings[$lang]['rnd_title'] ?></a></li>
<li><a href="#pwcard"><i class="fas fa-credit-card"></i> <?= $strings[$lang]['pwcard_title'] ?></a></li>
<li><a href="#hook"><i class="fas fa-comment-dots"></i> <?= $strings[$lang]['hook_title'] ?></a></li>
<li><a href="#pwcheck"><i class="fas fa-check-double"></i> <?= $strings[$lang]['pwcheck_title'] ?></a></li>
</ul>
<div id="random">
......@@ -201,28 +202,35 @@ if($pwcard_return === 0) {
<div>
<fieldset>
<legend><?= explode('|', $strings[$lang]['rnd_subs'])[0] ?></legend>
<table>
<form action="index.php" method="get">
<input type="hidden" name="mode" value="random">
<input type="hidden" name="lang" value="<?= $lang ?>">
<input type="hidden" name="rnd_custom" value="1">
<table>
<tr><td><b><?= explode('|', $strings[$lang]['rnd_form'])[0] ?></b></td><td><input type="number" name="rnd_pwlen" min="8" max="30" step="1" value="<?= $rnd_pwlen ?>"></td></tr>
<tr><td><b><?= explode('|', $strings[$lang]['rnd_form'])[1] ?></b></td><td><input type="number" name="rnd_count" min="1" max="30" step="1" value="<?= $rnd_count ?>"></td></tr>
<tr><td><b><?= explode('|', $strings[$lang]['rnd_form'])[2] ?></b></td><td><input type="checkbox" name="rnd_opt[]" value="s" <?php if(in_array('s', $rnd_opt)) echo 'checked'?>> <span class="tooltip" title="<?= explode('|', $strings[$lang]['rnd_tooltips'])[0] ?>"><?= explode('|', $strings[$lang]['rnd_form'])[3] ?></span></td></tr>
<tr><td></td><td><input type="checkbox" name="rnd_opt[]" value="c" <?php if(in_array('c', $rnd_opt)) echo 'checked'?>> <?= explode('|', $strings[$lang]['rnd_form'])[4] ?></td></tr>
<tr><td></td><td><input type="checkbox" name="rnd_opt[]" value="n" <?php if(in_array('n', $rnd_opt)) echo 'checked'?>> <?= explode('|', $strings[$lang]['rnd_form'])[5] ?></td></tr>
<tr><td></td><td><input type="checkbox" name="rnd_opt[]" value="y" <?php if(in_array('y', $rnd_opt)) echo 'checked'?>> <?= explode('|', $strings[$lang]['rnd_form'])[6] ?></td></tr>
<tr><td></td><td><input type="checkbox" name="rnd_opt[]" value="B" <?php if(in_array('B', $rnd_opt)) echo 'checked'?>> <span class="tooltip" title="<?= explode('|', $strings[$lang]['rnd_tooltips'])[1] ?>"><?= explode('|', $strings[$lang]['rnd_form'])[7] ?></span></td></tr>
<tr><td></td><td><input class="ui-button" type="submit" value="<?= $strings[$lang]['refresh'] ?>"><a style="text-decoration: none;" href="?mode=random&lang=<?= $lang ?>"><input class="ui-button" type="button" value="<?= $strings[$lang]['reset'] ?>"></a></td></tr>
</table>
<tr><td><label for="rnd_pwlen"><b><?= explode('|', $strings[$lang]['rnd_form'])[0] ?></b></label></td><td><input type="number" name="rnd_pwlen" id="rnd_pwlen" min="8" max="30" step="1" value="<?= $rnd_pwlen ?>"></td></tr>
<tr><td><label for="rnd_count"><b><?= explode('|', $strings[$lang]['rnd_form'])[1] ?></b></label></td><td><input type="number" name="rnd_count" id="rnd_count" min="1" max="30" step="1" value="<?= $rnd_count ?>"></td></tr>
<tr><td><b><?= explode('|', $strings[$lang]['rnd_form'])[2] ?></b></td><td><input type="checkbox" name="rnd_opt[]" value="s" <?php if(in_array('s', $rnd_opt)) echo 'checked'?>> <span class="tooltip" title="<?= explode('|', $strings[$lang]['rnd_tooltips'])[0] ?>"><?= explode('|', $strings[$lang]['rnd_form'])[3] ?></span></td></tr>
<tr><td></td><td><input type="checkbox" name="rnd_opt[]" value="c" <?php if(in_array('c', $rnd_opt)) echo 'checked'?>> <?= explode('|', $strings[$lang]['rnd_form'])[4] ?></td></tr>
<tr><td></td><td><input type="checkbox" name="rnd_opt[]" value="n" <?php if(in_array('n', $rnd_opt)) echo 'checked'?>> <?= explode('|', $strings[$lang]['rnd_form'])[5] ?></td></tr>
<tr><td></td><td><input type="checkbox" name="rnd_opt[]" value="y" <?php if(in_array('y', $rnd_opt)) echo 'checked'?>> <?= explode('|', $strings[$lang]['rnd_form'])[6] ?></td></tr>
<tr><td></td><td><input type="checkbox" name="rnd_opt[]" value="B" <?php if(in_array('B', $rnd_opt)) echo 'checked'?>> <span class="tooltip" title="<?= explode('|', $strings[$lang]['rnd_tooltips'])[1] ?>"><?= explode('|', $strings[$lang]['rnd_form'])[7] ?></span></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td colspan="2" style="text-align:center"><button class="ui-button" type="submit"><i class="fas fa-redo"></i> <?= $strings[$lang]['refresh'] ?></button></td></tr>
</form>
<form action="index.php" method="get">
<input type="hidden" name="mode" value="random">
<input type="hidden" name="lang" value="<?= $lang ?>">
<tr><td>&nbsp;</td></tr>
<tr><td colspan="2" style="text-align:center"><button class="ui-button" type="submit"><i class="fas fa-step-backward"></i> <?= $strings[$lang]['reset'] ?></button></td></tr>
</form>
</table>
</fieldset>
</div>
<div>
<fieldset>
<legend><?= explode('|', $strings[$lang]['rnd_subs'])[1] ?></legend>
<table style="width: 100%; height: 100%;">
<tr><td colspan="2">
<tr style="height: 80%;"><td colspan="2">
<textarea readonly>
<?= implode('&#13;&#10;', $rnd_result) ?>
</textarea>
......@@ -247,18 +255,13 @@ if($pwcard_return === 0) {
<?php
if($pwcard_return === 0) {
?>
<form action="makePDF.php" method="post" target="_blank">
<input type="hidden" name="lang" value="<?= $lang ?>">
<input type="hidden" name="data" value="<?= urlencode(json_encode($pwcard_result)) ?>">
<p style="text-align: center;"><input class="ui-button" type="submit" value="<?= $strings[$lang]['pwcard_link'] ?>"></p>
</form>
<form action="index.php" method="get">
<input type="hidden" name="mode" value="pwcard">
<input type="hidden" name="lang" value="<?= $lang ?>">
<table class="inputtbl">
<tr><td><b><?= explode('|', $strings[$lang]['pwcard_form'])[0] ?></b></td><td><input type="text" id="pwcard_name" name="pwcard_key" value="<?= $pwcard_key ?>" size="35" oninput="getPass()"></td></tr>
<tr><td><b><?= explode('|', $strings[$lang]['pwcard_form'])[1] ?></b></td><td><input type="text" id="pwcard_pass" size="35" readonly> <input type="text" size="18" class="score" id="pwcard_score" readonly></td></tr>
<tr><td></td><td><input class="ui-button" type="submit" value="<?= $strings[$lang]['refresh'] ?>"></td></tr>
<tr><td><label for="pwcard_name"><i class="fas fa-comment-dots"></i> <b><?= explode('|', $strings[$lang]['pwcard_form'])[0] ?></b></label></td><td><input type="text" id="pwcard_name" name="pwcard_key" value="<?= $pwcard_key ?>" size="35" oninput="getPass()"></td></tr>
<tr><td><label for="pwcard_pass"><i class="fas fa-key"></i> <b><?= explode('|', $strings[$lang]['pwcard_form'])[1] ?></b></label></td><td><input type="text" id="pwcard_pass" size="35" readonly> <input type="text" size="18" class="score" id="pwcard_score" readonly></td></tr>
<tr><td colspan="2" style="text-align:center"><button class="ui-button" type="submit"><i class="fas fa-redo"></i> <?= $strings[$lang]['refresh'] ?></button></td></tr>
</table>
</form>
<table class="pwcard">
......@@ -278,6 +281,11 @@ if($pwcard_return === 0) {
?>
</tr>
</table>
<form action="makePDF.php" method="post" target="_blank">
<input type="hidden" name="lang" value="<?= $lang ?>">
<input type="hidden" name="data" value="<?= urlencode(json_encode($pwcard_result)) ?>">
<p style="text-align: center;"><button class="ui-button" type="submit"><i class="far fa-file-pdf"></i> <?= $strings[$lang]['pwcard_link'] ?></button></p>
</form>
<?php
}
else {
......@@ -299,8 +307,8 @@ if($pwcard_return === 0) {
<div id="pwcheck">
<?= $strings[$lang]['pwcheck_desc'] ?>
<table class="inputtbl">
<tr><td><b><?= explode('|', $strings[$lang]['pwcheck_form'])[0] ?></b></td><td><input type="password" id="pwcheck_in" size="20" oninput="analysePass()"></td></tr>
<tr><td><b><?= explode('|', $strings[$lang]['pwcheck_form'])[1] ?></b></td><td><input type="text" id="pwcheck_score" size="18" class="score" readonly></td></tr>
<tr><td><label for="pwcheck_in"><i class="fas fa-key"></i> <b><?= explode('|', $strings[$lang]['pwcheck_form'])[0] ?></b></label></td><td><input type="password" id="pwcheck_in" size="20" oninput="analysePass()"></td></tr>
<tr><td><i class="fas fa-fist-raised"></i> <b><?= explode('|', $strings[$lang]['pwcheck_form'])[1] ?></b></td><td><input type="text" id="pwcheck_score" size="18" class="score" readonly></td></tr>
</table>
<br>
<table id="pwcheck_details">
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment