fnet-ctf 2.19.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.
- fnet_ctf-2.19.0/LICENSE +201 -0
- fnet_ctf-2.19.0/PKG-INFO +273 -0
- fnet_ctf-2.19.0/README.md +239 -0
- fnet_ctf-2.19.0/fnet/__init__.py +15 -0
- fnet_ctf-2.19.0/fnet/__main__.py +9 -0
- fnet_ctf-2.19.0/fnet/app.py +55 -0
- fnet_ctf-2.19.0/fnet/assets/config.ini +39 -0
- fnet_ctf-2.19.0/fnet/assets/favicon.ico +0 -0
- fnet_ctf-2.19.0/fnet/assets/profile.yaml +120 -0
- fnet_ctf-2.19.0/fnet/assets/shiro_keys.txt +1109 -0
- fnet_ctf-2.19.0/fnet/assets/wordlists/top1000.txt +1742 -0
- fnet_ctf-2.19.0/fnet/assets/wordlists/top10000.txt +9961 -0
- fnet_ctf-2.19.0/fnet/assets/wordlists/top25000.txt +24393 -0
- fnet_ctf-2.19.0/fnet/assets/wordlists/webshell-pass.txt +15940 -0
- fnet_ctf-2.19.0/fnet/assets/wordlists/wifi_top2000.txt +2000 -0
- fnet_ctf-2.19.0/fnet/cli.py +348 -0
- fnet_ctf-2.19.0/fnet/config.py +152 -0
- fnet_ctf-2.19.0/fnet/features/__init__.py +6 -0
- fnet_ctf-2.19.0/fnet/features/arp.py +52 -0
- fnet_ctf-2.19.0/fnet/features/common.py +96 -0
- fnet_ctf-2.19.0/fnet/features/cs.py +244 -0
- fnet_ctf-2.19.0/fnet/features/flag_deep.py +263 -0
- fnet_ctf-2.19.0/fnet/features/flows.py +545 -0
- fnet_ctf-2.19.0/fnet/features/forensics.py +484 -0
- fnet_ctf-2.19.0/fnet/features/http.py +243 -0
- fnet_ctf-2.19.0/fnet/features/ics.py +119 -0
- fnet_ctf-2.19.0/fnet/features/kerberos.py +335 -0
- fnet_ctf-2.19.0/fnet/features/misc.py +113 -0
- fnet_ctf-2.19.0/fnet/features/ntlm.py +228 -0
- fnet_ctf-2.19.0/fnet/features/protocols.py +2105 -0
- fnet_ctf-2.19.0/fnet/features/rdp.py +159 -0
- fnet_ctf-2.19.0/fnet/features/registry.py +376 -0
- fnet_ctf-2.19.0/fnet/features/sql.py +350 -0
- fnet_ctf-2.19.0/fnet/features/text_scan.py +214 -0
- fnet_ctf-2.19.0/fnet/features/tls.py +817 -0
- fnet_ctf-2.19.0/fnet/features/usb.py +139 -0
- fnet_ctf-2.19.0/fnet/features/webshell.py +747 -0
- fnet_ctf-2.19.0/fnet/features/wifi.py +472 -0
- fnet_ctf-2.19.0/fnet/features/winrm.py +219 -0
- fnet_ctf-2.19.0/fnet/findings.py +166 -0
- fnet_ctf-2.19.0/fnet/jobs.py +1168 -0
- fnet_ctf-2.19.0/fnet/live.py +205 -0
- fnet_ctf-2.19.0/fnet/logger.py +211 -0
- fnet_ctf-2.19.0/fnet/paths.py +87 -0
- fnet_ctf-2.19.0/fnet/plugins.py +118 -0
- fnet_ctf-2.19.0/fnet/report.py +585 -0
- fnet_ctf-2.19.0/fnet/services.py +581 -0
- fnet_ctf-2.19.0/fnet/themes.py +64 -0
- fnet_ctf-2.19.0/fnet/tools/__init__.py +1 -0
- fnet_ctf-2.19.0/fnet/tools/runner.py +431 -0
- fnet_ctf-2.19.0/fnet/utils/__init__.py +1 -0
- fnet_ctf-2.19.0/fnet/utils/_hpack_data.py +115 -0
- fnet_ctf-2.19.0/fnet/utils/codec.py +170 -0
- fnet_ctf-2.19.0/fnet/utils/crypto.py +471 -0
- fnet_ctf-2.19.0/fnet/utils/http2.py +663 -0
- fnet_ctf-2.19.0/fnet/utils/kerberos.py +1332 -0
- fnet_ctf-2.19.0/fnet/utils/ldap.py +453 -0
- fnet_ctf-2.19.0/fnet/utils/mail.py +875 -0
- fnet_ctf-2.19.0/fnet/utils/mongodb.py +552 -0
- fnet_ctf-2.19.0/fnet/utils/mysql.py +880 -0
- fnet_ctf-2.19.0/fnet/utils/pcap.py +89 -0
- fnet_ctf-2.19.0/fnet/utils/postgres.py +499 -0
- fnet_ctf-2.19.0/fnet/utils/protocol_detect.py +307 -0
- fnet_ctf-2.19.0/fnet/utils/redis.py +437 -0
- fnet_ctf-2.19.0/fnet/utils/rules.py +365 -0
- fnet_ctf-2.19.0/fnet/utils/smb.py +420 -0
- fnet_ctf-2.19.0/fnet/utils/stream.py +208 -0
- fnet_ctf-2.19.0/fnet/utils/system.py +84 -0
- fnet_ctf-2.19.0/fnet/utils/tlsdeep.py +553 -0
- fnet_ctf-2.19.0/fnet/utils/tunnel.py +636 -0
- fnet_ctf-2.19.0/fnet/utils/webshell.py +439 -0
- fnet_ctf-2.19.0/fnet/utils/websocket.py +265 -0
- fnet_ctf-2.19.0/fnet/utils/wifi.py +925 -0
- fnet_ctf-2.19.0/fnet/webui/__init__.py +1 -0
- fnet_ctf-2.19.0/fnet/webui/server.py +1043 -0
- fnet_ctf-2.19.0/fnet/webui/static/app.js +3118 -0
- fnet_ctf-2.19.0/fnet/webui/static/favicon.ico +0 -0
- fnet_ctf-2.19.0/fnet/webui/static/index.html +570 -0
- fnet_ctf-2.19.0/fnet/webui/static/style.css +911 -0
- fnet_ctf-2.19.0/fnet_ctf.egg-info/PKG-INFO +273 -0
- fnet_ctf-2.19.0/fnet_ctf.egg-info/SOURCES.txt +117 -0
- fnet_ctf-2.19.0/fnet_ctf.egg-info/dependency_links.txt +1 -0
- fnet_ctf-2.19.0/fnet_ctf.egg-info/entry_points.txt +2 -0
- fnet_ctf-2.19.0/fnet_ctf.egg-info/requires.txt +9 -0
- fnet_ctf-2.19.0/fnet_ctf.egg-info/top_level.txt +1 -0
- fnet_ctf-2.19.0/pyproject.toml +68 -0
- fnet_ctf-2.19.0/setup.cfg +4 -0
- fnet_ctf-2.19.0/tests/test_api.py +499 -0
- fnet_ctf-2.19.0/tests/test_batch.py +157 -0
- fnet_ctf-2.19.0/tests/test_codec.py +65 -0
- fnet_ctf-2.19.0/tests/test_crypto.py +131 -0
- fnet_ctf-2.19.0/tests/test_features.py +237 -0
- fnet_ctf-2.19.0/tests/test_findings.py +120 -0
- fnet_ctf-2.19.0/tests/test_flag_deep.py +113 -0
- fnet_ctf-2.19.0/tests/test_forensics.py +189 -0
- fnet_ctf-2.19.0/tests/test_http2.py +147 -0
- fnet_ctf-2.19.0/tests/test_kerberos.py +594 -0
- fnet_ctf-2.19.0/tests/test_ldap.py +139 -0
- fnet_ctf-2.19.0/tests/test_live.py +168 -0
- fnet_ctf-2.19.0/tests/test_mail.py +272 -0
- fnet_ctf-2.19.0/tests/test_mysql.py +440 -0
- fnet_ctf-2.19.0/tests/test_protocol_detect.py +80 -0
- fnet_ctf-2.19.0/tests/test_protocol_streams.py +478 -0
- fnet_ctf-2.19.0/tests/test_protocols.py +121 -0
- fnet_ctf-2.19.0/tests/test_registry.py +53 -0
- fnet_ctf-2.19.0/tests/test_report.py +173 -0
- fnet_ctf-2.19.0/tests/test_roadmap.py +452 -0
- fnet_ctf-2.19.0/tests/test_runner.py +94 -0
- fnet_ctf-2.19.0/tests/test_services.py +93 -0
- fnet_ctf-2.19.0/tests/test_site.py +53 -0
- fnet_ctf-2.19.0/tests/test_smb.py +187 -0
- fnet_ctf-2.19.0/tests/test_tls.py +78 -0
- fnet_ctf-2.19.0/tests/test_tlsdeep.py +161 -0
- fnet_ctf-2.19.0/tests/test_tunnel.py +200 -0
- fnet_ctf-2.19.0/tests/test_webshell.py +62 -0
- fnet_ctf-2.19.0/tests/test_webshell_rules.py +141 -0
- fnet_ctf-2.19.0/tests/test_websocket.py +120 -0
- fnet_ctf-2.19.0/tests/test_wifi.py +180 -0
- fnet_ctf-2.19.0/tests/test_wifi_decrypt.py +230 -0
fnet_ctf-2.19.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
fnet_ctf-2.19.0/PKG-INFO
ADDED
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: fnet-ctf
|
|
3
|
+
Version: 2.19.0
|
|
4
|
+
Summary: Fnet - 开源 CTF 网络流量分析工具箱(WebUI,Linux/macOS/Windows)
|
|
5
|
+
Author: Fnet contributors
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/fyfhcgch/Fnet
|
|
8
|
+
Project-URL: Repository, https://github.com/fyfhcgch/Fnet
|
|
9
|
+
Project-URL: Issues, https://github.com/fyfhcgch/Fnet/issues
|
|
10
|
+
Keywords: ctf,pcap,pcapng,wireshark,tshark,forensics,security
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Environment :: Web Environment
|
|
13
|
+
Classifier: Intended Audience :: Information Technology
|
|
14
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
15
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
16
|
+
Classifier: Operating System :: MacOS
|
|
17
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Topic :: Security
|
|
24
|
+
Requires-Python: >=3.10
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
Provides-Extra: samples
|
|
28
|
+
Requires-Dist: scapy>=2.5; extra == "samples"
|
|
29
|
+
Provides-Extra: crypto
|
|
30
|
+
Requires-Dist: cryptography>=41; extra == "crypto"
|
|
31
|
+
Provides-Extra: rdp
|
|
32
|
+
Requires-Dist: pyrdp-mitm>=1.0; extra == "rdp"
|
|
33
|
+
Dynamic: license-file
|
|
34
|
+
|
|
35
|
+
# Fnet
|
|
36
|
+
|
|
37
|
+
[](LICENSE)
|
|
38
|
+
[](pyproject.toml)
|
|
39
|
+
[](https://www.wireshark.org/)
|
|
40
|
+
[](pyproject.toml)
|
|
41
|
+
[](https://github.com/fyfhcgch/Fnet/pulls)
|
|
42
|
+
|
|
43
|
+
Fnet 是一个面向 CTF 与流量取证的开源网络流量分析工具箱。它把常见赛题里的
|
|
44
|
+
“找 flag、找凭据、解协议、还原文件”等操作集中到一个本地 WebUI 中。
|
|
45
|
+
|
|
46
|
+
**English** — Fnet is a stdlib-only Python toolkit for CTF and network forensics:
|
|
47
|
+
point it at a pcap/pcapng, tick the checks you need, and read flags, credentials,
|
|
48
|
+
reassembled files and decrypted traffic in a local WebUI or from the CLI. Protocol
|
|
49
|
+
parsing is delegated to `tshark`, so there are no Python dependencies to install.
|
|
50
|
+
|
|
51
|
+
在线教程与功能介绍:<https://fyfhcgch.github.io/Fnet/>
|
|
52
|
+
|
|
53
|
+
## 快速开始
|
|
54
|
+
|
|
55
|
+
### 1. 安装系统依赖
|
|
56
|
+
|
|
57
|
+
Fnet 的协议解析依赖 Wireshark 的命令行工具 `tshark`。
|
|
58
|
+
|
|
59
|
+
### 2. 运行
|
|
60
|
+
|
|
61
|
+
从源码目录直接运行:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
cd Fnet
|
|
65
|
+
python3 -m fnet
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
浏览器会自动打开 <http://127.0.0.1:8765>。常用参数:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
python3 -m fnet --no-browser # 不自动打开浏览器
|
|
72
|
+
python3 -m fnet --port 9000 # 换端口
|
|
73
|
+
python3 -m fnet capture.pcapng # 启动并预选流量包
|
|
74
|
+
python3 -m fnet capture.pcapng --features checkBox_10,http.extract
|
|
75
|
+
python3 -m fnet --doctor # 检查 tshark / java / hashcat 等
|
|
76
|
+
python3 -m fnet --list-features # 列出 37 个功能与复选框编号
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
WebUI 顶栏可切换中文 / English;大文件上传显示进度并可按 `Esc` 取消,
|
|
80
|
+
分析过程中可在功能边界暂停/继续,也可在“任务历史”里对比两个任务的结果。
|
|
81
|
+
工具栏的“实时抓包”会枚举 `tshark -D` 的网卡,停止后可直接送入分析。
|
|
82
|
+
|
|
83
|
+
也可以安装成命令(PyPI 发行名为 `fnet-ctf`,安装后仍是 `fnet` 命令):
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
pipx install fnet-ctf
|
|
87
|
+
# 或从源码
|
|
88
|
+
python3 -m pip install .
|
|
89
|
+
fnet
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### 3. 无界面分析
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
# 运行默认勾选的功能,日志直接打印到终端
|
|
96
|
+
python3 -m fnet -C capture.pcapng
|
|
97
|
+
|
|
98
|
+
# 运行全部 37 个功能
|
|
99
|
+
python3 -m fnet -C capture.pcapng --all
|
|
100
|
+
|
|
101
|
+
# 只运行指定功能(复选框编号或 handler 均可)
|
|
102
|
+
python3 -m fnet -C capture.pcapng --features checkBox_10,webshell.decrypt
|
|
103
|
+
|
|
104
|
+
# 传入功能参数
|
|
105
|
+
python3 -m fnet -C capture.pcapng --features checkBox_37 \
|
|
106
|
+
--param webshell_password=pass --param shiro_key=<base64>
|
|
107
|
+
|
|
108
|
+
# 机器可读输出(任务、findings、统计、产出)
|
|
109
|
+
python3 -m fnet -C capture.pcapng --features checkBox_10 --json
|
|
110
|
+
|
|
111
|
+
# 无状态功能按帧区间分片;已知 WPA PSK / Kerberos 密钥时直接解密
|
|
112
|
+
python3 -m fnet -C capture.pcapng --features checkBox_10 --shards 4
|
|
113
|
+
python3 -m fnet -C wifi.pcap --features checkBox_18 --wpa-psk 'password'
|
|
114
|
+
python3 -m fnet -C krb5.pcap --features checkBox_45 --keytab /etc/krb5.keytab
|
|
115
|
+
|
|
116
|
+
# 导入自定义正则/YARA 子集规则,命中写入 findings
|
|
117
|
+
python3 -m fnet -C capture.pcapng --features checkBox_30 --rules rules.yar
|
|
118
|
+
|
|
119
|
+
# 继续已暂停/中断的任务,或对比两个任务的发现
|
|
120
|
+
python3 -m fnet --resume <job-id>
|
|
121
|
+
python3 -m fnet --compare <base-job-id> <target-job-id> --json
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
报告与导出文件写入 `~/.cache/fnet/jobs/<job-id>/`,终端会列出
|
|
125
|
+
`report.txt`、`report.md`、`report.html` 与结构化结果
|
|
126
|
+
`findings.json` / `findings.csv` 的路径。
|
|
127
|
+
|
|
128
|
+
tshark 字段提取默认启用磁盘缓存与超时重试,可通过 `config.ini` 的
|
|
129
|
+
`tshark_cache`、`tshark_retry`、`tshark_timeout`、`tshark_max_field_kb`、
|
|
130
|
+
`tshark_max_rows` 调整缓存与内存上限。
|
|
131
|
+
|
|
132
|
+
## WebUI 界面
|
|
133
|
+
|
|
134
|
+

|
|
135
|
+
|
|
136
|
+
| 区域 | 说明 |
|
|
137
|
+
| ---------- | ---------------------------------------------------------------------------------------------------------------- |
|
|
138
|
+
| 左侧功能栏 | 37 个功能按 13 个分类折叠展示,可全选/全不选 |
|
|
139
|
+
| 顶部 | 全局功能搜索、文件/统计/设置/工具菜单、tshark 状态、语言切换、主题切换 |
|
|
140
|
+
| 主区域 | 关键字、HTTP、Webshell、SQL、认证、C2、工控、杂项、文本、设置、关于 |
|
|
141
|
+
| 分析结果 | 凭据、哈希、flag、导出文件等汇总为可排序表格,支持筛选、搜索、分页、列显示/隐藏、批量复制、按帧号跳转与 CSV 导出 |
|
|
142
|
+
| 任务历史 | 保存历次分析记录,可回看报告、一键重跑、对比两个任务的 findings diff 或删除 |
|
|
143
|
+
| 批量队列 | 一次拖入多个流量包,按并发数排队执行,可暂停/继续、拖拽排序、逐包查看日志、取消并合并报告 |
|
|
144
|
+
| 统计图表 | 流量时间线、协议分层、Top 会话与会话拓扑;时间线支持缩放/框选与点击下钻,图表可导出 SVG/PNG |
|
|
145
|
+
| 日志区 | 级别过滤、关键字过滤、复制、导出、进度与取消;日志中的帧号可点击定位数据包 |
|
|
146
|
+
| 产出区 | 任务结束后列出报告与导出文件,可单文件下载或打包下载 |
|
|
147
|
+
| 报告导出 | 自动生成 `report.txt` / `report.md` / `report.html`,可自选章节,HTML 可直接打印为 PDF |
|
|
148
|
+
|
|
149
|
+
侧栏提供功能搜索与“最近使用”快捷入口:搜索会匹配功能名称、说明、分类与
|
|
150
|
+
handler,最近使用的复选框会保存在浏览器本地,便于重复执行常用分析。
|
|
151
|
+
|
|
152
|
+
“文件”菜单里的“查看 HTML 报告 / 导出分析报告…”使用同一套报告渲染器:
|
|
153
|
+
任务详情、功能清单、关键发现、完整日志、产出文件与分析参数都可以单独勾选,
|
|
154
|
+
HTML 报告自带样式、无需联网,适合直接交付或打印成 PDF。
|
|
155
|
+
|
|
156
|
+
界面为响应式布局:窄屏自动堆叠,宽屏保持双栏工作区;视觉上采用暖中性色加
|
|
157
|
+
陶土红强调色(参考 EBCTFCodeBox 的 Material 3 取向),提供暖夜、暖昼、浅樱、
|
|
158
|
+
暮玫、莓紫五套配色,选择会保存在浏览器本地。
|
|
159
|
+
|
|
160
|
+
“分析结果”页把日志里值得汇总的内容(凭据、哈希、flag、Webshell/SQL 还原
|
|
161
|
+
结果、导出的文件等)整理成表格:可以按类别与级别筛选、搜索、点击表头排序、
|
|
162
|
+
分页浏览并调整每页条数、切换显示的列、复制本页或选中行、按帧号跳转,也可
|
|
163
|
+
导出 CSV;任务结束时相同数据也会写入输出目录的 `findings.json` 与
|
|
164
|
+
`findings.csv`。
|
|
165
|
+
|
|
166
|
+
日志与分析结果中的“帧 N”是可点击按钮:弹窗会显示该帧的摘要、前后文帧和
|
|
167
|
+
`tshark -V` 解码详情,可一键导出包含上下文的小 pcapng 片段,或在检测到
|
|
168
|
+
Wireshark 时直接打开对应帧。
|
|
169
|
+
|
|
170
|
+
### 自定义规则
|
|
171
|
+
|
|
172
|
+
“设置 → 自定义规则…”或 `POST /api/rules` 可以导入规则文件,支持逐行正则与
|
|
173
|
+
YARA 子集(`strings`/`condition`、`any/all/N of them`、`$a and $b`)。命中
|
|
174
|
+
结果会写入 findings 的“自定义规则”类别(包含规则名、帧号、协议与片段),
|
|
175
|
+
并参与报告、CSV 导出与任务对比。规则文件路径保存在 `paths.rules_file`,
|
|
176
|
+
也可用 `--rules` 为单次任务临时覆盖。
|
|
177
|
+
|
|
178
|
+
### 任务对比与断点续跑
|
|
179
|
+
|
|
180
|
+
`GET /api/compare?base=<id>&target=<id>` 会对比两个任务的 findings,返回
|
|
181
|
+
`added`/`removed`/`common` 与按类别统计;WebUI 的“对比两个任务”与
|
|
182
|
+
`--compare` 使用同一实现。任务在功能边界保存 `completed` 与
|
|
183
|
+
`feature_status`,因此暂停后可以“继续”或 `--resume` 从断点恢复;无状态
|
|
184
|
+
功能还能用 `--shards N` 按帧区间并行分析。
|
|
185
|
+
|
|
186
|
+
### 性能基准
|
|
187
|
+
|
|
188
|
+
[`docs/PERFORMANCE.md`](docs/PERFORMANCE.md) 由 `scripts/bench.py` 生成,
|
|
189
|
+
记录 10 MB / 100 MB / 1 GB 抓包上每个功能的耗时与峰值 RSS。1 GB 抓包的
|
|
190
|
+
关键字检测采用分块扫描,内存稳定在约 150 MB;重新生成:
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
python3 scripts/bench.py --sizes 10,100,1000 --features default
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
## 外部工具
|
|
197
|
+
|
|
198
|
+
| 工具 | 用途 | 是否必需 |
|
|
199
|
+
| ---------------------- | -------------------------------- | -------- |
|
|
200
|
+
| `tshark` | 所有协议解析与字段提取 | **是** |
|
|
201
|
+
| `java` | 反编译、部分 Webshell/序列化分析 | 可选 |
|
|
202
|
+
| `hashcat` / `john` | 哈希爆破 | 可选 |
|
|
203
|
+
| `foremost` / `binwalk` | 文件分离 | 可选 |
|
|
204
|
+
| `aircrack-ng` | Wi-Fi 握手包处理 | 可选 |
|
|
205
|
+
| `hcxtools` | 生成 16800/22000 等哈希格式 | 可选 |
|
|
206
|
+
| `pcapfix` | 修复损坏的 pcap | 可选 |
|
|
207
|
+
| `etl2pcapng` | Windows ETL 转 pcapng | 可选 |
|
|
208
|
+
| `pyrdp-player` | RDP 会话回放 | 可选 |
|
|
209
|
+
|
|
210
|
+
用 `python3 -m fnet --doctor` 查看本机检测结果;缺失的可选工具只会让对应
|
|
211
|
+
功能降级,不影响其它分析。
|
|
212
|
+
|
|
213
|
+
## 功能一览
|
|
214
|
+
|
|
215
|
+
完整列表与每个功能的输入/输出、依赖见 [`docs/FEATURES.md`](docs/FEATURES.md)。
|
|
216
|
+
分类概览:
|
|
217
|
+
|
|
218
|
+
- **文本 / HTTP**:关键字与编码识别、深度 flag 扫描(重组流/导出文件/二进制载荷,带来源与置信度)、HTTP 请求响应提取、登录凭据、Basic 认证。
|
|
219
|
+
- **会话 / 协议**:TCP/UDP 会话、DNS、ICMP、ARP、FTP、SMTP、Telnet、MySQL;
|
|
220
|
+
额外支持 Redis、MongoDB、PostgreSQL、LDAP、SMB2/3、WebSocket 与 HTTP/2。
|
|
221
|
+
Redis/MongoDB/PostgreSQL 会先做 TCP 流重组,再解析 RESP3、OP_MSG/SCRAM/GridFS、
|
|
222
|
+
扩展查询/COPY 等深层协议内容;HTTP/2 内置 HPACK 与 DATA 正文还原,SMB2/3
|
|
223
|
+
可还原共享、DFS、命名管道与文件内容。
|
|
224
|
+
- **Web 安全**:SQL 注入(含盲注时间/布尔)、Webshell 明文与哥斯拉/冰蝎 3.x/4.x/蚁剑/菜刀/天蝎解密(规则表驱动、请求响应配对、内存马与命令输出还原)、Shiro `rememberMe`(CBC/ECB/GCM)。
|
|
225
|
+
- **认证 / C2**:NTLM 哈希、Kerberos 票据、WinRM、Cobalt Strike Beacon。
|
|
226
|
+
- **工控 / 无线**:Modbus、S7comm、MQTT、BACnet、DNP3、OPC UA、Wi-Fi EAPOL/PMKID/WPA3/SAE 与 hashcat 22000 命令。
|
|
227
|
+
- **其它**:TLS/QUIC 解密(keylog、带口令私钥与证书匹配、证书链/KeyUpdate、解密后的 HTTP/2/gRPC/WebSocket/HTTP3 与凭据文件提取)、RDP、USB 键盘/鼠标、文件分离、EV3/SCSI/IPID 等。
|
|
228
|
+
|
|
229
|
+
## 项目结构
|
|
230
|
+
|
|
231
|
+
```
|
|
232
|
+
Fnet/
|
|
233
|
+
├── fnet/
|
|
234
|
+
│ ├── __main__.py python -m fnet
|
|
235
|
+
│ ├── cli.py 参数解析、无界面运行、启动 WebUI
|
|
236
|
+
│ ├── app.py 对象图组装(WebUI/CLI/测试共用)
|
|
237
|
+
│ ├── jobs.py 后台任务、进度、取消、断点/分片、对比、报告与导出
|
|
238
|
+
│ ├── live.py tshark 实时抓包控制器
|
|
239
|
+
│ ├── findings.py 结构化结果(类别、级别、筛选、CSV)
|
|
240
|
+
│ ├── report.py 纯文本/Markdown/HTML 报告渲染与章节选择
|
|
241
|
+
│ ├── config.py config.ini 读写与默认值
|
|
242
|
+
│ ├── features/ 37 个分析功能(按主题拆分)
|
|
243
|
+
│ ├── tools/runner.py 外部工具发现与 tshark 封装
|
|
244
|
+
│ ├── utils/ 编解码、AES/RC4/MD4/RSA、pcap、TCP 流重组、
|
|
245
|
+
│ │ MySQL/Kerberos/邮件/隧道/WPA/规则解析
|
|
246
|
+
│ ├── webui/ HTTP 服务与静态页面
|
|
247
|
+
│ └── assets/ 字典、Shiro 密钥、图标、默认配置
|
|
248
|
+
├── docs/ 架构、功能、WebUI、安全说明
|
|
249
|
+
├── scripts/ 样例抓包生成、性能基准
|
|
250
|
+
├── tests/ 单元测试、API 冒烟测试与样例 pcap
|
|
251
|
+
└── packaging/ Linux 桌面入口与安装脚本
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
## 开发与测试
|
|
255
|
+
|
|
256
|
+
```bash
|
|
257
|
+
python3 -m pip install -e '.[samples]' # 安装测试所需的 scapy
|
|
258
|
+
python3 scripts/make_samples.py # 生成 tests/data/*.pcap
|
|
259
|
+
python3 -m unittest discover -s tests -v
|
|
260
|
+
node --check fnet/webui/static/app.js # 前端语法检查
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
测试覆盖纯 Python 加密实现(AES/GCM/MD4/RC4/RSA 向量)、编解码、功能注册表、
|
|
264
|
+
WebUI API 冒烟、UI 规格完整性,以及样例抓包上的关键断言。`tests/test_roadmap.py`
|
|
265
|
+
额外覆盖流式上传、自定义规则、暂停/继续、任务对比、CLI JSON 与
|
|
266
|
+
`--shards`/`--resume`,以及 DNS/ICMP 隧道、SMTP、MySQL、Kerberos、WPA 的集成;`tests/test_live.py` 用桩 `tshark`
|
|
267
|
+
验证实时抓包的 start/stop、单实例限制与重复停止。CI 在 Python 3.10–3.13 上
|
|
268
|
+
安装 `tshark` 后运行全量测试;Docker 镜像与 Compose 文件位于仓库根目录。
|
|
269
|
+
|
|
270
|
+
## 许可证
|
|
271
|
+
|
|
272
|
+
本项目以 [Apache License 2.0](LICENSE) 发布。Fnet 的名称、图标与代码均为
|
|
273
|
+
独立实现;第三方商标与素材归各自权利人所有。
|