pgsqlpot 2.0.0__py2.py3-none-any.whl

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 (61) hide show
  1. core/__init__.py +0 -0
  2. core/config.py +50 -0
  3. core/logfile.py +74 -0
  4. core/output.py +39 -0
  5. core/paths.py +53 -0
  6. core/protocol.py +161 -0
  7. core/tools.py +170 -0
  8. output_plugins/__init__.py +0 -0
  9. output_plugins/couch.py +68 -0
  10. output_plugins/datadog.py +74 -0
  11. output_plugins/discord.py +133 -0
  12. output_plugins/elastic.py +137 -0
  13. output_plugins/hpfeed.py +43 -0
  14. output_plugins/influx2.py +66 -0
  15. output_plugins/jsonlog.py +36 -0
  16. output_plugins/kafka.py +57 -0
  17. output_plugins/localsyslog.py +66 -0
  18. output_plugins/mongodb.py +83 -0
  19. output_plugins/mysql.py +210 -0
  20. output_plugins/nlcvapi.py +119 -0
  21. output_plugins/postgres.py +154 -0
  22. output_plugins/redisdb.py +47 -0
  23. output_plugins/rethinkdblog.py +46 -0
  24. output_plugins/slack.py +94 -0
  25. output_plugins/socketlog.py +40 -0
  26. output_plugins/sqlite.py +141 -0
  27. output_plugins/telegram.py +141 -0
  28. output_plugins/textlog.py +46 -0
  29. output_plugins/xmpp.py +193 -0
  30. pgsqlpot/__init__.py +25 -0
  31. pgsqlpot/cli.py +512 -0
  32. pgsqlpot/data/Dockerfile +56 -0
  33. pgsqlpot/data/docs/INSTALL.md +400 -0
  34. pgsqlpot/data/docs/INSTALLWIN.md +411 -0
  35. pgsqlpot/data/docs/PLUGINS.md +21 -0
  36. pgsqlpot/data/docs/TODO.md +8 -0
  37. pgsqlpot/data/docs/datadog/README.md +32 -0
  38. pgsqlpot/data/docs/discord/README.md +58 -0
  39. pgsqlpot/data/docs/geoipupdtask.ps1 +270 -0
  40. pgsqlpot/data/docs/mysql/README.md +176 -0
  41. pgsqlpot/data/docs/mysql/READMEWIN.md +157 -0
  42. pgsqlpot/data/docs/mysql/mysql.sql +85 -0
  43. pgsqlpot/data/docs/postgres/README.md +184 -0
  44. pgsqlpot/data/docs/postgres/READMEWIN.md +196 -0
  45. pgsqlpot/data/docs/postgres/postgres.sql +73 -0
  46. pgsqlpot/data/docs/slack/README.md +68 -0
  47. pgsqlpot/data/docs/sqlite3/README.md +131 -0
  48. pgsqlpot/data/docs/sqlite3/READMEWIN.md +123 -0
  49. pgsqlpot/data/docs/sqlite3/sqlite3.sql +69 -0
  50. pgsqlpot/data/docs/telegram/README.md +103 -0
  51. pgsqlpot/data/etc/honeypot.cfg +415 -0
  52. pgsqlpot/data/etc/honeypot.cfg.base +418 -0
  53. pgsqlpot/data/test/.gitignore +3 -0
  54. pgsqlpot/data/test/test.py +51 -0
  55. pgsqlpot/honeypot.py +117 -0
  56. pgsqlpot-2.0.0.dist-info/METADATA +152 -0
  57. pgsqlpot-2.0.0.dist-info/RECORD +61 -0
  58. pgsqlpot-2.0.0.dist-info/WHEEL +6 -0
  59. pgsqlpot-2.0.0.dist-info/entry_points.txt +2 -0
  60. pgsqlpot-2.0.0.dist-info/licenses/LICENSE +674 -0
  61. pgsqlpot-2.0.0.dist-info/top_level.txt +3 -0
@@ -0,0 +1,152 @@
1
+ Metadata-Version: 2.4
2
+ Name: pgsqlpot
3
+ Version: 2.0.0
4
+ Summary: A PostgeSQL Honeypot
5
+ Home-page: https://gitlab.com/bontchev/pgsqlpot
6
+ Author: Vesselin Bontchev
7
+ Author-email: vbontchev@yahoo.com
8
+ License: GPL-3.0-only
9
+ Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Environment :: Console
11
+ Classifier: Intended Audience :: Information Technology
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: Intended Audience :: System Administrators
14
+ Classifier: Operating System :: Microsoft :: Windows
15
+ Classifier: Operating System :: POSIX :: Linux
16
+ Classifier: Programming Language :: Python :: 2
17
+ Classifier: Programming Language :: Python :: 2.7
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.6
20
+ Classifier: Programming Language :: Python :: 3.7
21
+ Classifier: Programming Language :: Python :: 3.8
22
+ Classifier: Programming Language :: Python :: 3.9
23
+ Classifier: Programming Language :: Python :: 3.10
24
+ Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
26
+ Classifier: Programming Language :: Python :: 3.13
27
+ Classifier: Programming Language :: Python :: 3.14
28
+ Classifier: Topic :: Security
29
+ Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*
30
+ Description-Content-Type: text/markdown
31
+ License-File: LICENSE
32
+ Requires-Dist: configparser>=3.5.0
33
+ Requires-Dist: geoip2>=2.7.0
34
+ Requires-Dist: ipaddress; python_version < "3"
35
+ Requires-Dist: maxminddb>=1.3.0
36
+ Requires-Dist: pytz
37
+ Requires-Dist: requests<=2.27.1; python_version < "3"
38
+ Requires-Dist: requests; python_version >= "3"
39
+ Requires-Dist: service_identity<=18.1.0; python_version < "3"
40
+ Requires-Dist: service_identity; python_version >= "3"
41
+ Requires-Dist: twisted<21,>=20.3.0; python_version < "3"
42
+ Requires-Dist: twisted>=21; python_version >= "3"
43
+ Provides-Extra: couchdb
44
+ Requires-Dist: couchdb; extra == "couchdb"
45
+ Provides-Extra: datadog
46
+ Requires-Dist: cryptography<=2.8; python_version < "3" and extra == "datadog"
47
+ Requires-Dist: pyOpenSSL<=18.0.0; python_version < "3" and extra == "datadog"
48
+ Requires-Dist: cryptography; python_version >= "3" and extra == "datadog"
49
+ Requires-Dist: pyOpenSSL; python_version >= "3" and extra == "datadog"
50
+ Provides-Extra: discord
51
+ Provides-Extra: elastic
52
+ Requires-Dist: elasticsearch<=7.13; python_version < "3" and extra == "elastic"
53
+ Requires-Dist: numpy<=1.16.6; python_version < "3" and extra == "elastic"
54
+ Requires-Dist: elasticsearch8<9.0.0,>=8.12.0; python_version >= "3" and extra == "elastic"
55
+ Requires-Dist: numpy; python_version >= "3" and extra == "elastic"
56
+ Provides-Extra: hpfeed
57
+ Requires-Dist: Automat<20; python_version < "3" and extra == "hpfeed"
58
+ Requires-Dist: hpfeeds>=3.0.0; extra == "hpfeed"
59
+ Provides-Extra: influx2
60
+ Requires-Dist: influxdb-client; python_version >= "3" and extra == "influx2"
61
+ Provides-Extra: jsonlog
62
+ Provides-Extra: kafka
63
+ Requires-Dist: confluent-kafka<1.0; python_version < "3" and extra == "kafka"
64
+ Requires-Dist: confluent-kafka; python_version >= "3" and extra == "kafka"
65
+ Provides-Extra: localsyslog
66
+ Provides-Extra: mongodb
67
+ Requires-Dist: pymongo<=3.13.0; python_version < "3" and extra == "mongodb"
68
+ Requires-Dist: dnspython; python_version < "3" and extra == "mongodb"
69
+ Requires-Dist: pymongo; python_version >= "3" and extra == "mongodb"
70
+ Provides-Extra: mysql
71
+ Requires-Dist: PyMySQL; python_version < "3" and extra == "mysql"
72
+ Requires-Dist: mysqlclient>=1.3.12; python_version >= "3" and extra == "mysql"
73
+ Provides-Extra: nlcvapi
74
+ Requires-Dist: pyOpenSSL<=18.0.0; python_version < "3" and extra == "nlcvapi"
75
+ Requires-Dist: pyOpenSSL; python_version >= "3" and extra == "nlcvapi"
76
+ Provides-Extra: postgres
77
+ Requires-Dist: psycopg2-binary; extra == "postgres"
78
+ Provides-Extra: redisdb
79
+ Requires-Dist: redis<=3.5.3; python_version < "3" and extra == "redisdb"
80
+ Requires-Dist: redis; python_version >= "3" and extra == "redisdb"
81
+ Provides-Extra: rethinkdblog
82
+ Requires-Dist: rethinkdb>=2.4; extra == "rethinkdblog"
83
+ Requires-Dist: looseversion; extra == "rethinkdblog"
84
+ Provides-Extra: slack
85
+ Requires-Dist: slackclient<3; python_version < "3" and extra == "slack"
86
+ Requires-Dist: slack-sdk; python_version >= "3" and extra == "slack"
87
+ Provides-Extra: socketlog
88
+ Provides-Extra: sqlite
89
+ Provides-Extra: telegram
90
+ Provides-Extra: textlog
91
+ Provides-Extra: xmpp
92
+ Requires-Dist: xmpppy>=0.7.3; extra == "xmpp"
93
+ Provides-Extra: all
94
+ Requires-Dist: Automat<20; python_version < "3" and extra == "all"
95
+ Requires-Dist: PyMySQL; python_version < "3" and extra == "all"
96
+ Requires-Dist: confluent-kafka; python_version >= "3" and extra == "all"
97
+ Requires-Dist: confluent-kafka<1.0; python_version < "3" and extra == "all"
98
+ Requires-Dist: couchdb; extra == "all"
99
+ Requires-Dist: cryptography; python_version >= "3" and extra == "all"
100
+ Requires-Dist: cryptography<=2.8; python_version < "3" and extra == "all"
101
+ Requires-Dist: dnspython; python_version < "3" and extra == "all"
102
+ Requires-Dist: elasticsearch8<9.0.0,>=8.12.0; python_version >= "3" and extra == "all"
103
+ Requires-Dist: elasticsearch<=7.13; python_version < "3" and extra == "all"
104
+ Requires-Dist: hpfeeds>=3.0.0; extra == "all"
105
+ Requires-Dist: influxdb-client; python_version >= "3" and extra == "all"
106
+ Requires-Dist: looseversion; extra == "all"
107
+ Requires-Dist: mysqlclient>=1.3.12; python_version >= "3" and extra == "all"
108
+ Requires-Dist: numpy; python_version >= "3" and extra == "all"
109
+ Requires-Dist: numpy<=1.16.6; python_version < "3" and extra == "all"
110
+ Requires-Dist: psycopg2-binary; extra == "all"
111
+ Requires-Dist: pyOpenSSL; python_version >= "3" and extra == "all"
112
+ Requires-Dist: pyOpenSSL<=18.0.0; python_version < "3" and extra == "all"
113
+ Requires-Dist: pymongo; python_version >= "3" and extra == "all"
114
+ Requires-Dist: pymongo<=3.13.0; python_version < "3" and extra == "all"
115
+ Requires-Dist: redis; python_version >= "3" and extra == "all"
116
+ Requires-Dist: redis<=3.5.3; python_version < "3" and extra == "all"
117
+ Requires-Dist: rethinkdb>=2.4; extra == "all"
118
+ Requires-Dist: slack-sdk; python_version >= "3" and extra == "all"
119
+ Requires-Dist: slackclient<3; python_version < "3" and extra == "all"
120
+ Requires-Dist: xmpppy>=0.7.3; extra == "all"
121
+ Dynamic: author
122
+ Dynamic: author-email
123
+ Dynamic: classifier
124
+ Dynamic: description
125
+ Dynamic: description-content-type
126
+ Dynamic: home-page
127
+ Dynamic: license
128
+ Dynamic: license-file
129
+ Dynamic: provides-extra
130
+ Dynamic: requires-dist
131
+ Dynamic: requires-python
132
+ Dynamic: summary
133
+
134
+ # PGSQLPot: a PostgreSQL Honeypot
135
+
136
+ This is a honeypot simulating a PostgreSQL server. It borrows some ideas from
137
+ the [honeypots](https://github.com/qeeqbox/honeypots) package.
138
+
139
+ The honeypot does not emulate a full PostgreSQL server with databases and
140
+ tables - it only records the IP of the attacker, as well as the username and
141
+ password used, if any, and returns a "bad login credentials" error.
142
+
143
+ ## Prerequisites
144
+
145
+ - a working database server (only if you use an output plugin that outputs to
146
+ a database - e.g., MySQL)
147
+
148
+ ## Usage
149
+
150
+ Check the [Linux installation guide](https://gitlab.com/bontchev/pgsqlpot/-/blob/master/pgsqlpot/data/docs/INSTALL.md) or the
151
+ [Windows installation guide](https://gitlab.com/bontchev/pgsqlpot/-/blob/master/pgsqlpot/data/docs/INSTALLWIN.md) for complete
152
+ instructions on how to install, configure, and run the honeypot.
@@ -0,0 +1,61 @@
1
+ core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ core/config.py,sha256=FbOlizNvnvZZiuRamIkA6oRSf8vtYdOgUzmbwt1trTc,1509
3
+ core/logfile.py,sha256=3UPRiZg6gKxeSJqCmVp7R4ZOZ_VmVdTin9xPNf4Mork,2276
4
+ core/output.py,sha256=SuxI_qz5_IZd9wYyBqBGnsuQ6E1FzCZbS6W2EFGNBbs,834
5
+ core/paths.py,sha256=5IT_msmn1aBA1Re3Oe0JXIBz4JiFLjq0HziHhNfOGaQ,1905
6
+ core/protocol.py,sha256=hULdk1eva9DZjLIyR9f3icOQtHaFDxbKKq-in7_p9pY,5679
7
+ core/tools.py,sha256=p5A_FTWdN0qRynLjEirjMehqGWbI2Yxj3Z8gioUGSEc,4651
8
+ output_plugins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ output_plugins/couch.py,sha256=Dex3UmyF5SWUrrRn_HFyuWq9pKHRBpg5qDGrE4h1t9s,2575
10
+ output_plugins/datadog.py,sha256=cHoMxdB3l6-MC_gL3AXOsS_tcilgJL3_lq2_9BgYiew,2750
11
+ output_plugins/discord.py,sha256=38D61Zrc-lmTkRwj-9ujGlMYK8f2XFIlE3fz62E1vbg,4205
12
+ output_plugins/elastic.py,sha256=WFC9Y4Zzlb2mZhoqovUcBKyzxktdIvekg9e1jcgN4bA,5101
13
+ output_plugins/hpfeed.py,sha256=Jw3Fwx_2eVzTvLr3ijSCwdGcJOUJl3Ly_OELybwb7Cg,1547
14
+ output_plugins/influx2.py,sha256=RFRofk8WfoprtKzU5kfNYa8aoyg__b2Deq7jR9_xhRg,1977
15
+ output_plugins/jsonlog.py,sha256=o8WI6l2_Ibfs8geeArp3mI4vcIhrgOgAeovVgzfJlE0,1109
16
+ output_plugins/kafka.py,sha256=0J-9uz4L3-IPdEoJ_H2s0RVcCMG1A887nHllTRsoY3s,1810
17
+ output_plugins/localsyslog.py,sha256=vGAeS3Dqe6Ie6yXNZ9pprMFL4bDjwQqphekeu3Zbob4,1876
18
+ output_plugins/mongodb.py,sha256=8aMvtKAViZ_uAoaoO6lSD1kE0RX4sFMBTI8CP3tTBIU,3348
19
+ output_plugins/mysql.py,sha256=ioGSMWAkfcFZgta32IKLb9kEZZnSMN3bvlpBnQSnh5o,8433
20
+ output_plugins/nlcvapi.py,sha256=4i1kGSUXM0MBqw66KvrkLag8Qzpdof4pfY4AEhUlKHw,4103
21
+ output_plugins/postgres.py,sha256=1nkhEqjWtqgDgIHV7O6QJAn7-XetiZOqbbRVVx0YNA8,6001
22
+ output_plugins/redisdb.py,sha256=cc5AUZ010aBgZG0cwf83YlZtAJrFSuVWAJ8lhfoKfLM,1441
23
+ output_plugins/rethinkdblog.py,sha256=R9Y7uFk2qFevY13kBT_SlHC-pQoECvbqVuXmZtoZ7E8,1655
24
+ output_plugins/slack.py,sha256=Q1xNSOl8jToBTXuy2EA6tl4E5x487ppr8sJrxyeE0go,3235
25
+ output_plugins/socketlog.py,sha256=SQFjj3OrY1g4EgVC_zOb0UDFGFO-o3ZHaxzVJaqsBzs,1036
26
+ output_plugins/sqlite.py,sha256=iYDO2nmD_Qhr8x97809ZBV0XwlATSKv97ni8mrJ76qk,5676
27
+ output_plugins/telegram.py,sha256=tBCeTR8sJ-FTiaSx4uo9uiDe7MTnI9ofbFuLDMXyJxU,4605
28
+ output_plugins/textlog.py,sha256=o81q2R8mlMcyWcN9YI0hpvE79DcsS5K3rmTXPh10-ok,1555
29
+ output_plugins/xmpp.py,sha256=E5INKs1xeKWIfq8JgMmDkcLvXoQlCP--U8SaKb5jjmQ,7022
30
+ pgsqlpot/__init__.py,sha256=G0RmQzN3NGSGxbz_cUZB8asYJvPktIDpo3Srqf2Sddc,1273
31
+ pgsqlpot/cli.py,sha256=Tvh1oztEy1CYibjNyd62-SIBRsSHorIvcRI5ejm42fg,16663
32
+ pgsqlpot/honeypot.py,sha256=Zx4TsZIaRiDJecEyLB8sDhkKfmMVlDBgxntteDgCzc4,3764
33
+ pgsqlpot/data/Dockerfile,sha256=8n84OIDlNODLQZE0c3jlYrk46j1vncq82-vo0tcFEoI,2096
34
+ pgsqlpot/data/docs/INSTALL.md,sha256=Iom-vPW0mHZ9BTiNMKhONhDMxj4Q1FDUaB07Xg5HdMo,12935
35
+ pgsqlpot/data/docs/INSTALLWIN.md,sha256=xdnjRGM5NVbF8BPyz_FvLWq6VDncb0ZStThH9EADNQI,16273
36
+ pgsqlpot/data/docs/PLUGINS.md,sha256=Y7rwEpf9IdZZwO5VVCa7G1C4vg4cS5ouT58Qx5FIb8g,447
37
+ pgsqlpot/data/docs/TODO.md,sha256=nN2SMYzxD5Rvu7b6fbwxldonzSbYs-BgMu9Y_T07jW4,137
38
+ pgsqlpot/data/docs/geoipupdtask.ps1,sha256=qubOHX3JCb5ECJ83z37OZgAKy5LYoXAXLpFBIY2YBXg,8576
39
+ pgsqlpot/data/docs/datadog/README.md,sha256=6tdtE6wdpLRW-x2O1xb_2X9e07HUdAFMoClsO8UPT94,1521
40
+ pgsqlpot/data/docs/discord/README.md,sha256=o4jN7aMdyr7JPcvGSwNchJ4fLhPMI4fkxZ4fBZO61jo,2625
41
+ pgsqlpot/data/docs/mysql/README.md,sha256=UonwDHRknvAth3thqJZ9HRkdRMFH_axz-Dg5RJSYtlw,6353
42
+ pgsqlpot/data/docs/mysql/READMEWIN.md,sha256=JX_IqtMBRCM_boQNeAXrOPTD_IEm49ntMBzrtGdIlTE,6189
43
+ pgsqlpot/data/docs/mysql/mysql.sql,sha256=0zmYJyiAcgBcv-hoBJuC_ZGp4X42dbjw_IVBSuXQR_w,2227
44
+ pgsqlpot/data/docs/postgres/README.md,sha256=XDcguoYILYW8mHVo70vq5XIOiUHWzECpVm4l3oNCZ5c,6256
45
+ pgsqlpot/data/docs/postgres/READMEWIN.md,sha256=yZQaR7fHKhxMh8eiiKgPbq7uYI3e92wZ_Q1VOWNztxE,8063
46
+ pgsqlpot/data/docs/postgres/postgres.sql,sha256=x-hbV9ySxhX_g2YmqIH4RTTd98pjMlFEgizJDRvvL8U,1927
47
+ pgsqlpot/data/docs/slack/README.md,sha256=lmNZnoIe5ADXpxSAkUnZ_jajIcVWxzEwARCvDnW0UPI,3142
48
+ pgsqlpot/data/docs/sqlite3/README.md,sha256=tbJQuOYHHn5ZD7kStpXhhSjElf94ddP2igvrXkiQkHg,4452
49
+ pgsqlpot/data/docs/sqlite3/READMEWIN.md,sha256=FIcs3vCKJZe73aHNI0LMhQoGkwFZFz0mSL8x-qh1MB0,4762
50
+ pgsqlpot/data/docs/sqlite3/sqlite3.sql,sha256=4HHxatNg8MYfkjk5GIvbJ5HzllhL-iOCebYvGMRiH08,1976
51
+ pgsqlpot/data/docs/telegram/README.md,sha256=QekYg-dW63VRG3DF84Gwk0baeFdy2VTq-rWRLUxeG9g,4431
52
+ pgsqlpot/data/etc/honeypot.cfg,sha256=uCvIO1tNf3bmJa-n0MKkDTBHjAGFVDpa1D4MmXriGbM,11620
53
+ pgsqlpot/data/etc/honeypot.cfg.base,sha256=-GwwHcV7etamh4IXJtnnYKpQW2rQyDOIJJgB1oM0Pf0,11693
54
+ pgsqlpot/data/test/.gitignore,sha256=uPnBkZKqqbX1AXVmgJc-1ouu6xDc_hbOJu7ywelFvYM,26
55
+ pgsqlpot/data/test/test.py,sha256=a_TN5U_7difKpQFvJEM-dRPyE9uDngONw4uzeTYRnEk,1631
56
+ pgsqlpot-2.0.0.dist-info/licenses/LICENSE,sha256=Dus7ulEo1WQzu36-ouLqd26EeJaoZoqSsGnO_EehRgI,35755
57
+ pgsqlpot-2.0.0.dist-info/METADATA,sha256=8hXOcqgMDKuS4cNnUBOKbxmfsfYl2pYnUXJuN8IR7Ks,7360
58
+ pgsqlpot-2.0.0.dist-info/WHEEL,sha256=TdQ5LtNwLuxTCjgxN51AgdU5w-KkB9ttmLbzjTH02pg,109
59
+ pgsqlpot-2.0.0.dist-info/entry_points.txt,sha256=ESmDMVFtueCVAGopzOiOpVdET2Wvy2AC_Pi73wzIwg8,47
60
+ pgsqlpot-2.0.0.dist-info/top_level.txt,sha256=piNBnpoQk4xsGy8fNIl-Z-oxxKa14tp9uCJIkp-zFk0,29
61
+ pgsqlpot-2.0.0.dist-info/RECORD,,
@@ -0,0 +1,6 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py2-none-any
5
+ Tag: py3-none-any
6
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ pgsqlpot = pgsqlpot.cli:main