ipphoney 2.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. ipphoney-2.0.0/CHANGELOG.md +110 -0
  2. ipphoney-2.0.0/LICENSE +674 -0
  3. ipphoney-2.0.0/MANIFEST.in +9 -0
  4. ipphoney-2.0.0/PKG-INFO +150 -0
  5. ipphoney-2.0.0/README.md +17 -0
  6. ipphoney-2.0.0/core/__init__.py +0 -0
  7. ipphoney-2.0.0/core/compile.py +332 -0
  8. ipphoney-2.0.0/core/config.py +50 -0
  9. ipphoney-2.0.0/core/data.py +424 -0
  10. ipphoney-2.0.0/core/logfile.py +74 -0
  11. ipphoney-2.0.0/core/output.py +39 -0
  12. ipphoney-2.0.0/core/paths.py +54 -0
  13. ipphoney-2.0.0/core/protocol.py +561 -0
  14. ipphoney-2.0.0/core/tools.py +243 -0
  15. ipphoney-2.0.0/honeypot.py +144 -0
  16. ipphoney-2.0.0/ipphoney/__init__.py +26 -0
  17. ipphoney-2.0.0/ipphoney/cli.py +536 -0
  18. ipphoney-2.0.0/ipphoney/data/Dockerfile +56 -0
  19. ipphoney-2.0.0/ipphoney/data/docs/INSTALL.md +397 -0
  20. ipphoney-2.0.0/ipphoney/data/docs/INSTALLWIN.md +406 -0
  21. ipphoney-2.0.0/ipphoney/data/docs/PLUGINS.md +21 -0
  22. ipphoney-2.0.0/ipphoney/data/docs/TODO.md +15 -0
  23. ipphoney-2.0.0/ipphoney/data/docs/datadog/README.md +32 -0
  24. ipphoney-2.0.0/ipphoney/data/docs/discord/README.md +58 -0
  25. ipphoney-2.0.0/ipphoney/data/docs/geoipupdtask.ps1 +270 -0
  26. ipphoney-2.0.0/ipphoney/data/docs/mysql/README.md +176 -0
  27. ipphoney-2.0.0/ipphoney/data/docs/mysql/READMEWIN.md +157 -0
  28. ipphoney-2.0.0/ipphoney/data/docs/mysql/mysql.sql +72 -0
  29. ipphoney-2.0.0/ipphoney/data/docs/postgres/README.md +184 -0
  30. ipphoney-2.0.0/ipphoney/data/docs/postgres/READMEWIN.md +196 -0
  31. ipphoney-2.0.0/ipphoney/data/docs/postgres/postgres.sql +67 -0
  32. ipphoney-2.0.0/ipphoney/data/docs/slack/README.md +68 -0
  33. ipphoney-2.0.0/ipphoney/data/docs/sqlite3/README.md +131 -0
  34. ipphoney-2.0.0/ipphoney/data/docs/sqlite3/READMEWIN.md +123 -0
  35. ipphoney-2.0.0/ipphoney/data/docs/sqlite3/sqlite3.sql +65 -0
  36. ipphoney-2.0.0/ipphoney/data/docs/telegram/README.md +103 -0
  37. ipphoney-2.0.0/ipphoney/data/etc/honeypot.cfg.base +440 -0
  38. ipphoney-2.0.0/ipphoney/data/responses/getattr.ipp +54 -0
  39. ipphoney-2.0.0/ipphoney/data/responses/getattr_full.ipp +138 -0
  40. ipphoney-2.0.0/ipphoney/data/responses/getjattr.ipp +14 -0
  41. ipphoney-2.0.0/ipphoney/data/responses/getjobs.ipp +6 -0
  42. ipphoney-2.0.0/ipphoney/data/responses/header.ipp +4 -0
  43. ipphoney-2.0.0/ipphoney/data/responses/jobattr.ipp +8 -0
  44. ipphoney-2.0.0/ipphoney/data/responses/printjob.ipp +14 -0
  45. ipphoney-2.0.0/ipphoney/data/test/.gitignore +5 -0
  46. ipphoney-2.0.0/ipphoney/data/test/scripts/cancel-current-job.test +49 -0
  47. ipphoney-2.0.0/ipphoney/data/test/scripts/cancel-job.test +23 -0
  48. ipphoney-2.0.0/ipphoney/data/test/scripts/create-job.test +45 -0
  49. ipphoney-2.0.0/ipphoney/data/test/scripts/get-completed-jobs.test +35 -0
  50. ipphoney-2.0.0/ipphoney/data/test/scripts/get-job-attributes.test +29 -0
  51. ipphoney-2.0.0/ipphoney/data/test/scripts/get-jobs.test +39 -0
  52. ipphoney-2.0.0/ipphoney/data/test/scripts/get-printer-attributes.test +40 -0
  53. ipphoney-2.0.0/ipphoney/data/test/scripts/pause-printer.test +15 -0
  54. ipphoney-2.0.0/ipphoney/data/test/scripts/print-job.test +31 -0
  55. ipphoney-2.0.0/ipphoney/data/test/scripts/print-uri.test +32 -0
  56. ipphoney-2.0.0/ipphoney/data/test/scripts/resume-printer.test +15 -0
  57. ipphoney-2.0.0/ipphoney/data/test/scripts/send-uri.test +45 -0
  58. ipphoney-2.0.0/ipphoney/data/test/scripts/testfile.jpg +0 -0
  59. ipphoney-2.0.0/ipphoney/data/test/scripts/validate-job.test +25 -0
  60. ipphoney-2.0.0/ipphoney/data/test/test.ps1 +443 -0
  61. ipphoney-2.0.0/ipphoney/data/test/test.sh +478 -0
  62. ipphoney-2.0.0/ipphoney/honeypot.py +144 -0
  63. ipphoney-2.0.0/ipphoney.egg-info/PKG-INFO +150 -0
  64. ipphoney-2.0.0/ipphoney.egg-info/SOURCES.txt +92 -0
  65. ipphoney-2.0.0/ipphoney.egg-info/dependency_links.txt +1 -0
  66. ipphoney-2.0.0/ipphoney.egg-info/entry_points.txt +2 -0
  67. ipphoney-2.0.0/ipphoney.egg-info/requires.txt +155 -0
  68. ipphoney-2.0.0/ipphoney.egg-info/top_level.txt +3 -0
  69. ipphoney-2.0.0/output_plugins/README.md +21 -0
  70. ipphoney-2.0.0/output_plugins/__init__.py +0 -0
  71. ipphoney-2.0.0/output_plugins/couch.py +68 -0
  72. ipphoney-2.0.0/output_plugins/datadog.py +71 -0
  73. ipphoney-2.0.0/output_plugins/discord.py +123 -0
  74. ipphoney-2.0.0/output_plugins/elastic.py +137 -0
  75. ipphoney-2.0.0/output_plugins/hpfeed.py +43 -0
  76. ipphoney-2.0.0/output_plugins/influx2.py +64 -0
  77. ipphoney-2.0.0/output_plugins/jsonlog.py +36 -0
  78. ipphoney-2.0.0/output_plugins/kafka.py +57 -0
  79. ipphoney-2.0.0/output_plugins/localsyslog.py +71 -0
  80. ipphoney-2.0.0/output_plugins/mongodb.py +84 -0
  81. ipphoney-2.0.0/output_plugins/mysql.py +239 -0
  82. ipphoney-2.0.0/output_plugins/nlcvapi.py +126 -0
  83. ipphoney-2.0.0/output_plugins/postgres.py +168 -0
  84. ipphoney-2.0.0/output_plugins/redisdb.py +47 -0
  85. ipphoney-2.0.0/output_plugins/rethinkdblog.py +46 -0
  86. ipphoney-2.0.0/output_plugins/slack.py +81 -0
  87. ipphoney-2.0.0/output_plugins/socketlog.py +40 -0
  88. ipphoney-2.0.0/output_plugins/sqlite.py +154 -0
  89. ipphoney-2.0.0/output_plugins/telegram.py +130 -0
  90. ipphoney-2.0.0/output_plugins/textlog.py +33 -0
  91. ipphoney-2.0.0/output_plugins/xmpp.py +181 -0
  92. ipphoney-2.0.0/setup.cfg +7 -0
  93. ipphoney-2.0.0/setup.py +303 -0
@@ -0,0 +1,110 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [2.0.0]
9
+
10
+ ### Added in version 2.0.0
11
+
12
+ * Made the project installable from PyPI
13
+ * `.gitlab-ci.yml` file to scan for secrets
14
+
15
+ ### Changed in version 2.0.0
16
+
17
+ * Increased the version number
18
+ * Got rid of `getlist()`
19
+ * Fixed bugs in the Discord, PostgreSQL, Slack, and Telegram output plugins
20
+ * Better Python 2.x/3.x compatibility
21
+ * Completely rewritten `Dockerfile`, uses hardened images
22
+
23
+ ## [1.0.2]
24
+
25
+ ### Added in version 1.0.2
26
+
27
+ * Blacklist of networks, connections whom whose IP addresses won't be logged
28
+ * Error checking when trying to obtain the external IP address of the honeypot
29
+ * Added a verbose option, controlling whether the full IPP request is logged
30
+ * Added output plugins for
31
+ * Datadog
32
+ * Discord
33
+ * Kafka
34
+ * NLCV-BAS honeypot data aggregation API
35
+ * RethinkDB
36
+ * Slack
37
+ * Socket
38
+ * Telegram
39
+ * XMPP
40
+
41
+ ### Changed in version 1.0.2
42
+
43
+ * Updated the documentation
44
+ * Improved the unit tests script
45
+ * Improved error handling in the plugins that try to open a geolocation database
46
+ * Set the executable attribute of the unit tests script
47
+ * Fixed a bug in the MySQL and SQLite plugins (the string 'NULL' was passed instead of 0)
48
+ * Fixed a typo in the Docker section of the installation documentation
49
+ * Got rid of the deprecated functions `utcfromtimestamp` and `utcnow`
50
+ * Updated the documentation with information how to start the honeypot at boot
51
+ time
52
+
53
+ ## [1.0.1]
54
+
55
+ ### Added in version 1.0.1
56
+
57
+ * Jobs queue
58
+ * Macros for `$job` (current job ID) and `$jobs` (total number of pending jobs)
59
+ * Removed `Hold-Job` and `Release-Job` from the list of supported operations
60
+ * Added a testing script (Linux only, expects `ipptool` to be installed)
61
+ * Emulation of the following IPP operations:
62
+ * `Print-Uri`
63
+ * `Pause-Printer`
64
+ * `Resume-Printer`
65
+ * `Cancel-Job`
66
+ * "cancel current job"
67
+ * `Validate-Job`
68
+ * `Get-Job-Attributes`
69
+ * `Create-Job`
70
+ * `Send-Document`
71
+ * `Send-Uri`
72
+
73
+ ### Changed in version 1.0.1
74
+
75
+ * Fixed a typo in the `README.md` file
76
+ * Require a non-vulnerable version of Twisted
77
+
78
+ ## [1.0.0]
79
+
80
+ ### Added in version 1.0.0
81
+
82
+ * Initial release
83
+ * Implemented the honeypot using the Twisted framework
84
+ * Made the honeypot compatible with Python 3.x
85
+ * Config file support
86
+ * Various command-line options
87
+ * Log rotation
88
+ * Support for the `report_public_ip` config file option
89
+ * A script for starting, stopping, and restarting the honeypot
90
+ * Macros like `$ip`, `$now`, `$old`
91
+ * Documentation
92
+ * Emulation of the following IPP operations:
93
+ * `Get-Printer-Attributes`
94
+ * `Get-Jobs`
95
+ * "get completed jobs"
96
+ * `Print-Job`
97
+ * Output plugin support
98
+ * Output plugins for
99
+ * CouchDB
100
+ * Elasticsearch
101
+ * HPFeeds
102
+ * Influx 2.0 (Python 3.6+ only)
103
+ * JSON
104
+ * MongoDB
105
+ * MySQL
106
+ * PostgreSQL
107
+ * RedisDB
108
+ * SQLite3
109
+ * syslog
110
+ * text