Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #
- # Simple CGI (bash) PASSWORD GENERATOR
- #
- # todor.donev@gmail.com
- # http://www.ethical-hacker.org/
- # https://www.facebook.com/ethicalhackerorg
- # http://pastebin.com/u/hackerscommunity
- #
- # Disclaimer:
- # This or previous program is for Educational
- # purpose ONLY. Do not use it without permission.
- # The usual disclaimer applies, especially the
- # fact that Todor Donev is not liable for any
- # damages caused by direct or indirect use of the
- # information or functionality provided by these
- # programs. The author or any Internet provider
- # bears NO responsibility for content or misuse
- # of these programs or any derivatives thereof.
- # By using these programs you accept the fact
- # that any damage (dataloss, system crash, system
- # compromise, etc.) caused by the use of these
- # programs is not Todor Donev's responsibility.
- #
- # Use at your own risk and educational purpose
- # ONLY!
- #
- echo "Content-type: text/html"
- echo "
- <html>
- <head>
- <title>Simple CGI Password Generator</title>
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="expires" content="-1">
- <meta http-equiv="content-type" content="text/html\; charset=utf-8">
- </head>
- <body>
- Generating passwords..<br><br>
- <strong>tr -dc A-Za-z0-9 < /dev/urandom | head -c 25 | xargs</strong>
- <br>"
- length=25
- tr -dc A-Za-z0-9 < /dev/urandom | head -c ${length} | xargs
- echo "<br><br>
- <strong>tr -cd '[:alnum:]' < /dev/urandom | fold -w25 | head -n1</strong>
- <br>"
- tr -cd '[:alnum:]' < /dev/urandom | fold -w25 | head -n1
- echo "<br>
- </body>
- </html>"
Add Comment
Please, Sign In to add comment