From 4d56828d2cf4cdd2caf5a0aef2256e616ee1ca99 Mon Sep 17 00:00:00 2001 From: 0xSysr3ll Date: Sat, 11 Jun 2022 23:00:11 +0200 Subject: [PATCH] Fix to remove the InsecureRequestWarning message --- hash.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hash.py b/hash.py index 7061f75..8d41925 100644 --- a/hash.py +++ b/hash.py @@ -5,6 +5,7 @@ import requests import argparse import concurrent.futures +import urllib3 parser = argparse.ArgumentParser() parser.add_argument('-s', help='hash', dest='hash') @@ -31,6 +32,7 @@ directory = args.dir file = args.file thread_count = args.threads or 4 +urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) if directory: if directory[-1] == '/':