MCPcopy Create free account
hub / github.com/chasingboy/Xtools / format_httpx_result

Function format_httpx_result

utils.py:555–571  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

553
554
555def format_httpx_result(text):
556 texts, results = text.split('\n'), []
557
558 for text in texts:
559 try:
560 assert (text.startswith('http://') or text.startswith('https://'))
561 url, code, end = text.split(' ', 2)
562 except:
563 continue
564
565 results.append('{code} {url} {end}'.format(code=code, url=url, end=end))
566
567 if results == []:
568 sublime.message_dialog('[waring-httpx] The result format is not supported! Please read the docs')
569 return ''
570
571 return '\n'.join(sorted(results))
572
573
574def format_nuclei_result(text):

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected