summaryrefslogtreecommitdiffstats
path: root/honeypot.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-06-04 17:57:12 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-06-04 17:57:57 +0200
commite0b4223788190fe551bee3a30ed1c5f6b982fad0 (patch)
tree29a6b568cf1a7f5c8df623580c7341e073d247ed /honeypot.c
parentStrip the executable. (diff)
downloadtelnet-password-honeypot-e0b4223788190fe551bee3a30ed1c5f6b982fad0.tar.xz
telnet-password-honeypot-e0b4223788190fe551bee3a30ed1c5f6b982fad0.zip
Add the original license.
Diffstat (limited to 'honeypot.c')
-rw-r--r--honeypot.c32
1 files changed, 29 insertions, 3 deletions
diff --git a/honeypot.c b/honeypot.c
index b49ae5c..b0c63d0 100644
--- a/honeypot.c
+++ b/honeypot.c
@@ -1,16 +1,42 @@
/*
* honeypot.c
*
- * Copyright (C) 2012 Jason A. Donenfeld <Jason@zx2c4.com>. All rights reserved.
*
* This is telnet honeypot server. It asks the user for a username and password
* and logs it shamelessly to a file.
*
+ * This honeypot drops all privileges and chroots to /var/empty, after opening the
+ * log file and binding to the telnet port.
+ *
+ *
+ * Copyright (C) 2012 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ *
* Much of the telnet setup logic has been taken from the hilarious nyancat
* telnet server, nyancat.c, which is Copyright 2011 by Kevin Lange.
*
- * This honeypot drops all privileges and chroots to /var/empty, after opening the
- * log file and binding to the telnet port.
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal with the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimers.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimers in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. Neither the names of the Jason A. Donenfeld, Association for Computing
+ * Machinery, Kevin Lange, nor the names of its contributors may be used
+ * to endorse or promote products derived from this Software without
+ * specific prior written permission.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * WITH THE SOFTWARE.
*
*/