@@ -147,7 +147,247 @@ This command will:
147147### Sample Output
148148
149149``` bash
150+ _ _ _ _ _ _ _ _
151+ __ _ ___ ___| | __ ___ ___| | __ | | __ | | _| | _ _ __ _ __ ___ ___| | _| | __ ___ __| | ___
152+ / _' |/ _ \ _____ / __| ' _ \ / _ \/ __| | / /____| ' _ \| __| __| ' _ \ _____| ' _ ' _ \ / _ \ __| ' _ \ / _ \ / _' / __|
153+ | (_| | (_) | _____| (__| | | | __/ (__| < _____| | | | | _| | _| | _) | _____| | | | | | __/ | _| | | | (_) | (_| \_ _ \
154+ \_ _, | \_ __/ \_ __| _| | _| \_ __| \_ __| _| \_\ | _| | _| \_ _| \_ _| .__/ | _| | _| | _| \_ __| \_ _| _| | _| \_ __/ \_ _,_| ___/
155+ | ___/ | _|
156+
157+ Author: Abhinandan Khurana aka @l0u51f3r007
158+ go-check-http-methods v1.0.0 - Results
159+ Timestamp: 2025-03-04T16:41:01+05:30
160+
161+ URL: https://example.com
162+ METHOD CODE STATUS RESPONSE_TIME VULNERABILITY
163+ ----------------------------------------------------------------------------------------------------
164+ POST 403 403 Forbidden 928
165+ ----------------------------------------------------------------------------------------------------
166+ PROPFIND 501 501 Not Implemented 928 DANGEROUS
167+ ----------------------------------------------------------------------------------------------------
168+ HEAD 200 200 OK 929
169+ ----------------------------------------------------------------------------------------------------
170+ PATCH 501 501 Not Implemented 929
171+ ----------------------------------------------------------------------------------------------------
172+ DELETE 501 501 Not Implemented 939 DANGEROUS
173+ ----------------------------------------------------------------------------------------------------
174+ GET 200 200 OK 939
175+ ----------------------------------------------------------------------------------------------------
176+ CONNECT 400 400 Bad Request 946
177+ ----------------------------------------------------------------------------------------------------
178+ TRACE 403 403 Forbidden 960 DANGEROUS
179+ ----------------------------------------------------------------------------------------------------
180+ PUT 501 501 Not Implemented 963 DANGEROUS
181+ ----------------------------------------------------------------------------------------------------
182+ OPTIONS 501 501 Not Implemented 1027
183+ ----------------------------------------------------------------------------------------------------
184+ MKCOL 501 501 Not Implemented 227 DANGEROUS
185+ ----------------------------------------------------------------------------------------------------
186+ COPY 501 501 Not Implemented 245 DANGEROUS
187+ ----------------------------------------------------------------------------------------------------
188+ MOVE 501 501 Not Implemented 283 DANGEROUS
189+ ----------------------------------------------------------------------------------------------------
190+ PROPPATCH 501 501 Not Implemented 348 DANGEROUS
191+ ----------------------------------------------------------------------------------------------------
192+ LOCK 501 501 Not Implemented 810 DANGEROUS
193+ ----------------------------------------------------------------------------------------------------
194+ UNLINK 400 400 Bad Request 785
195+ ----------------------------------------------------------------------------------------------------
196+ LINK 400 400 Bad Request 789
197+ ----------------------------------------------------------------------------------------------------
198+ PURGE 400 400 Bad Request 803
199+ ----------------------------------------------------------------------------------------------------
200+ UNLOCK 501 501 Not Implemented 809 DANGEROUS
201+ ----------------------------------------------------------------------------------------------------
202+ ` ` `
150203
204+ # ## Sample JSON output
205+
206+ ` ` ` json
207+ {
208+ " tool_name" : " go-check-http-methods" ,
209+ " tool_version" : " 1.0.0" ,
210+ " tool_author" : " Abhinandan Khurana aka @l0u51f3r007" ,
211+ " timestamp" : " 2025-03-04T16:41:57+05:30" ,
212+ " results" : [
213+ {
214+ " url" : " https://example.com" ,
215+ " results" : [
216+ {
217+ " method" : " CONNECT" ,
218+ " status_code" : 400,
219+ " status" : " 400 Bad Request" ,
220+ " response_time_ms" : 810,
221+ " content_length" : 312,
222+ " is_dangerous" : false,
223+ " is_vulnerable" : false
224+ },
225+ {
226+ " method" : " TRACE" ,
227+ " status_code" : 403,
228+ " status" : " 403 Forbidden" ,
229+ " response_time_ms" : 810,
230+ " content_length" : 359,
231+ " is_dangerous" : true,
232+ " is_vulnerable" : false
233+ },
234+ {
235+ " method" : " PATCH" ,
236+ " status_code" : 501,
237+ " status" : " 501 Not Implemented" ,
238+ " response_time_ms" : 811,
239+ " content_length" : 336,
240+ " is_dangerous" : false,
241+ " is_vulnerable" : false
242+ },
243+ {
244+ " method" : " POST" ,
245+ " status_code" : 403,
246+ " status" : " 403 Forbidden" ,
247+ " response_time_ms" : 813,
248+ " content_length" : 359,
249+ " is_dangerous" : false,
250+ " is_vulnerable" : false
251+ },
252+ {
253+ " method" : " OPTIONS" ,
254+ " status_code" : 501,
255+ " status" : " 501 Not Implemented" ,
256+ " response_time_ms" : 813,
257+ " content_length" : 19,
258+ " is_dangerous" : false,
259+ " is_vulnerable" : false
260+ },
261+ {
262+ " method" : " DELETE" ,
263+ " status_code" : 501,
264+ " status" : " 501 Not Implemented" ,
265+ " response_time_ms" : 810,
266+ " content_length" : 339,
267+ " is_dangerous" : true,
268+ " is_vulnerable" : false
269+ },
270+ {
271+ " method" : " PUT" ,
272+ " status_code" : 501,
273+ " status" : " 501 Not Implemented" ,
274+ " response_time_ms" : 810,
275+ " content_length" : 334,
276+ " is_dangerous" : true,
277+ " is_vulnerable" : false
278+ },
279+ {
280+ " method" : " HEAD" ,
281+ " status_code" : 200,
282+ " status" : " 200 OK" ,
283+ " response_time_ms" : 810,
284+ " content_length" : 0,
285+ " is_dangerous" : false,
286+ " is_vulnerable" : false
287+ },
288+ {
289+ " method" : " GET" ,
290+ " status_code" : 200,
291+ " status" : " 200 OK" ,
292+ " response_time_ms" : 810,
293+ " content_length" : 1256,
294+ " is_dangerous" : false,
295+ " is_vulnerable" : false
296+ },
297+ {
298+ " method" : " PROPFIND" ,
299+ " status_code" : 501,
300+ " status" : " 501 Not Implemented" ,
301+ " response_time_ms" : 810,
302+ " content_length" : 339,
303+ " is_dangerous" : true,
304+ " is_vulnerable" : false
305+ },
306+ {
307+ " method" : " LOCK" ,
308+ " status_code" : 501,
309+ " status" : " 501 Not Implemented" ,
310+ " response_time_ms" : 299,
311+ " content_length" : 337,
312+ " is_dangerous" : true,
313+ " is_vulnerable" : false
314+ },
315+ {
316+ " method" : " MKCOL" ,
317+ " status_code" : 501,
318+ " status" : " 501 Not Implemented" ,
319+ " response_time_ms" : 300,
320+ " content_length" : 336,
321+ " is_dangerous" : true,
322+ " is_vulnerable" : false
323+ },
324+ {
325+ " method" : " LINK" ,
326+ " status_code" : 400,
327+ " status" : " 400 Bad Request" ,
328+ " response_time_ms" : 762,
329+ " content_length" : 312,
330+ " is_dangerous" : false,
331+ " is_vulnerable" : false
332+ },
333+ {
334+ " method" : " UNLOCK" ,
335+ " status_code" : 501,
336+ " status" : " 501 Not Implemented" ,
337+ " response_time_ms" : 764,
338+ " content_length" : 339,
339+ " is_dangerous" : true,
340+ " is_vulnerable" : false
341+ },
342+ {
343+ " method" : " MOVE" ,
344+ " status_code" : 501,
345+ " status" : " 501 Not Implemented" ,
346+ " response_time_ms" : 790,
347+ " content_length" : 335,
348+ " is_dangerous" : true,
349+ " is_vulnerable" : false
350+ },
351+ {
352+ " method" : " PURGE" ,
353+ " status_code" : 400,
354+ " status" : " 400 Bad Request" ,
355+ " response_time_ms" : 789,
356+ " content_length" : 312,
357+ " is_dangerous" : false,
358+ " is_vulnerable" : false
359+ },
360+ {
361+ " method" : " PROPPATCH" ,
362+ " status_code" : 501,
363+ " status" : " 501 Not Implemented" ,
364+ " response_time_ms" : 791,
365+ " content_length" : 342,
366+ " is_dangerous" : true,
367+ " is_vulnerable" : false
368+ },
369+ {
370+ " method" : " COPY" ,
371+ " status_code" : 501,
372+ " status" : " 501 Not Implemented" ,
373+ " response_time_ms" : 793,
374+ " content_length" : 335,
375+ " is_dangerous" : true,
376+ " is_vulnerable" : false
377+ },
378+ {
379+ " method" : " UNLINK" ,
380+ " status_code" : 400,
381+ " status" : " 400 Bad Request" ,
382+ " response_time_ms" : 799,
383+ " content_length" : 312,
384+ " is_dangerous" : false,
385+ " is_vulnerable" : false
386+ }
387+ ]
388+ }
389+ ]
390+ }
151391` ` `
152392
153393# # 🏗️ Building from Source
0 commit comments