argus-header 0.5.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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 sriram
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,402 @@
1
+ Metadata-Version: 2.4
2
+ Name: argus-header
3
+ Version: 0.5.0
4
+ Summary: A Python CLI tool for analyzing HTTP response headers and identifying security issues.
5
+ Author-email: Sriram <sriram060106@gmail.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2025 sriram
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Project-URL: Homepage, https://github.com/heyshreee/argus-header
29
+ Project-URL: Repository, https://github.com/heyshreee/argus-header
30
+ Project-URL: Issues, https://github.com/heyshreee/argus-header/issues
31
+ Keywords: http,https,headers,security,cybersecurity,cli,pentesting,web-security,header-analysis
32
+ Classifier: Development Status :: 4 - Beta
33
+ Classifier: Environment :: Console
34
+ Classifier: Intended Audience :: Developers
35
+ Classifier: Intended Audience :: Information Technology
36
+ Classifier: License :: OSI Approved :: MIT License
37
+ Classifier: Operating System :: OS Independent
38
+ Classifier: Programming Language :: Python :: 3
39
+ Classifier: Programming Language :: Python :: 3.9
40
+ Classifier: Programming Language :: Python :: 3.10
41
+ Classifier: Programming Language :: Python :: 3.11
42
+ Classifier: Programming Language :: Python :: 3.12
43
+ Classifier: Topic :: Internet :: WWW/HTTP
44
+ Classifier: Topic :: Security
45
+ Classifier: Topic :: Software Development :: Libraries
46
+ Requires-Python: >=3.9
47
+ Description-Content-Type: text/markdown
48
+ License-File: LICENSE
49
+ Requires-Dist: requests>=2.32.0
50
+ Requires-Dist: rich>=13.7.0
51
+ Dynamic: license-file
52
+
53
+ # 🛡️ Argus Header
54
+
55
+ > Fast, lightweight HTTP security header analyzer built for developers, security engineers, and penetration testers.
56
+
57
+ ![Python](https://img.shields.io/badge/Python-3.9+-blue.svg)
58
+ ![Version](https://img.shields.io/badge/version-v0.5.0-orange.svg)
59
+ ![License](https://img.shields.io/badge/license-MIT-green.svg)
60
+
61
+ Argus Header is a command-line tool that analyzes HTTP response headers and identifies common security misconfigurations, information leakage, and header-related best practice issues.
62
+
63
+ ---
64
+
65
+ ## ✨ Features
66
+
67
+ ### HTTP Request Engine
68
+
69
+ - GET and HEAD request support
70
+ - Configurable request timeout
71
+ - Redirect support
72
+ - Retry mechanism for temporary failures
73
+ - Multiple URL scanning
74
+ - Parallel scanning
75
+
76
+ ### Security Analysis
77
+
78
+ Detects missing security headers including:
79
+
80
+ - Content-Security-Policy (CSP)
81
+ - Strict-Transport-Security (HSTS)
82
+ - X-Frame-Options
83
+ - X-Content-Type-Options
84
+
85
+ ### Information Disclosure Detection
86
+
87
+ Checks for exposed:
88
+
89
+ - Server
90
+ - X-Powered-By
91
+
92
+ ### CORS Analysis
93
+
94
+ Detects:
95
+
96
+ - Access-Control-Allow-Origin: *
97
+
98
+ ### Performance Checks
99
+
100
+ Checks:
101
+
102
+ - Cache-Control
103
+
104
+ ### Reports
105
+
106
+ - Beautiful Rich CLI output
107
+ - JSON report export
108
+ - Severity levels
109
+ - Recommendations
110
+
111
+ ---
112
+
113
+ # Installation
114
+
115
+ ## From Source
116
+
117
+ ```bash
118
+ git clone https://github.com/heyshreee/argus-header.git
119
+
120
+ cd argus-header
121
+
122
+ python -m venv .venv
123
+
124
+ source .venv/bin/activate
125
+ ```
126
+
127
+ Windows
128
+
129
+ ```powershell
130
+ .venv\Scripts\activate
131
+ ```
132
+
133
+ Install
134
+
135
+ ```bash
136
+ pip install -e .
137
+ ```
138
+
139
+ ---
140
+
141
+ ## Verify Installation
142
+
143
+ ```bash
144
+ argus-header --version
145
+ ```
146
+
147
+ Expected output
148
+
149
+ ```text
150
+ argus-header 0.5.0
151
+ ```
152
+
153
+ ---
154
+
155
+ # Usage
156
+
157
+ Basic scan
158
+
159
+ ```bash
160
+ argus-header https://example.com
161
+ ```
162
+
163
+ HEAD request
164
+
165
+ ```bash
166
+ argus-header https://example.com --method HEAD
167
+ ```
168
+
169
+ Custom timeout
170
+
171
+ ```bash
172
+ argus-header https://example.com --timeout 5
173
+ ```
174
+
175
+ Multiple URLs
176
+
177
+ ```bash
178
+ argus-header https://google.com https://github.com --parallel
179
+ ```
180
+
181
+ Disable redirects
182
+
183
+ ```bash
184
+ argus-header https://example.com --no-redirect
185
+ ```
186
+
187
+ Export JSON
188
+
189
+ ```bash
190
+ argus-header https://example.com --json report.json
191
+ ```
192
+
193
+ Help
194
+
195
+ ```bash
196
+ argus-header --help
197
+ ```
198
+
199
+ ---
200
+
201
+ # Command Line Options
202
+
203
+ | Option | Description |
204
+ |---------|-------------|
205
+ | --method | HTTP Method (GET / HEAD) |
206
+ | --timeout | Request timeout |
207
+ | --parallel | Scan multiple URLs concurrently |
208
+ | --json FILE | Save report as JSON |
209
+ | --no-redirect | Disable redirect following |
210
+ | --verbose | Verbose output |
211
+ | --version | Display version |
212
+ | --help | Show help |
213
+
214
+ ---
215
+
216
+ # Example Output
217
+
218
+ ```text
219
+ Target
220
+ https://example.com
221
+
222
+ Status
223
+ 200
224
+
225
+ Headers Found
226
+ 18
227
+
228
+ HIGH
229
+ Missing Content-Security-Policy
230
+
231
+ HIGH
232
+ Missing Strict-Transport-Security
233
+
234
+ MEDIUM
235
+ X-Powered-By Header Exposed
236
+
237
+ LOW
238
+ Missing Cache-Control
239
+ ```
240
+
241
+ ---
242
+
243
+ # Project Structure
244
+
245
+ ```
246
+ argus-header/
247
+
248
+ src/
249
+ └── argus_header/
250
+ ├── __init__.py
251
+ ├── cli.py
252
+ ├── requester.py
253
+ ├── analyzer.py
254
+ ├── reporter.py
255
+ └── utils.py
256
+
257
+ tests/
258
+
259
+ README.md
260
+ LICENSE
261
+ pyproject.toml
262
+ ```
263
+
264
+ ---
265
+
266
+ # Current Checks
267
+
268
+ ## Security Headers
269
+
270
+ - Content-Security-Policy
271
+ - Strict-Transport-Security
272
+ - X-Frame-Options
273
+ - X-Content-Type-Options
274
+
275
+ ## Information Leakage
276
+
277
+ - Server
278
+ - X-Powered-By
279
+
280
+ ## CORS
281
+
282
+ - Wildcard Access-Control-Allow-Origin
283
+
284
+ ## Performance
285
+
286
+ - Cache-Control
287
+
288
+ ---
289
+
290
+ # Roadmap
291
+
292
+ ## v0.6.0
293
+
294
+ - Security score
295
+ - Grade (A–F)
296
+ - Cookie analysis
297
+ - CSP validation
298
+ - HSTS validation
299
+
300
+ ## v0.7.0
301
+
302
+ - HTML reports
303
+ - Markdown reports
304
+ - Response time
305
+ - Redirect chain
306
+ - HTTP version display
307
+
308
+ ## v0.8.0
309
+
310
+ - Unit tests
311
+ - GitHub Actions
312
+ - Documentation improvements
313
+ - Better architecture
314
+
315
+ ## v0.9.0
316
+
317
+ - TLS inspection
318
+ - Certificate analysis
319
+ - HTTP/2 detection
320
+ - Advanced CORS analysis
321
+
322
+ ## v1.0.0
323
+
324
+ - Stable public release
325
+ - Complete security analysis
326
+ - Production-ready documentation
327
+ - Comprehensive testing
328
+
329
+ ---
330
+
331
+ # Development
332
+
333
+ Clone
334
+
335
+ ```bash
336
+ git clone https://github.com/heyshreee/argus-header.git
337
+ ```
338
+
339
+ Install development version
340
+
341
+ ```bash
342
+ pip install -e .
343
+ ```
344
+
345
+ Run
346
+
347
+ ```bash
348
+ argus-header https://example.com
349
+ ```
350
+
351
+ ---
352
+
353
+ # Contributing
354
+
355
+ Contributions are welcome.
356
+
357
+ 1. Fork the repository
358
+ 2. Create a feature branch
359
+
360
+ ```bash
361
+ git checkout -b feature/my-feature
362
+ ```
363
+
364
+ 3. Commit
365
+
366
+ ```bash
367
+ git commit -m "feat: add awesome feature"
368
+ ```
369
+
370
+ 4. Push
371
+
372
+ ```bash
373
+ git push origin feature/my-feature
374
+ ```
375
+
376
+ 5. Open a Pull Request
377
+
378
+ ---
379
+
380
+ # License
381
+
382
+ Released under the MIT License.
383
+
384
+ See LICENSE for details.
385
+
386
+ ---
387
+
388
+ # Author
389
+
390
+ **Sriram**
391
+
392
+ GitHub
393
+
394
+ https://github.com/heyshreee
395
+
396
+ ---
397
+
398
+ ## Disclaimer
399
+
400
+ Argus Header is intended for defensive security, security auditing, learning, and authorized penetration testing only.
401
+
402
+ Only scan systems that you own or have explicit permission to assess.