Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
venominfosec committed Aug 3, 2023
1 parent 572b392 commit 5bbc969
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions NetblockTool.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@
import requests
import time
import random
from requests.packages.urllib3.exceptions import InsecureRequestWarning
from urllib3 import disable_warnings, exceptions
from lxml import html
from bs4 import BeautifulSoup


# Configure requests
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
disable_warnings(exceptions.InsecureRequestWarning)


# Program details
__authors__ = ['Alex Poorman', 'NetSPI']
__version__ = '2.1.0'
__version__ = '2.2.0'

# Global variables
STATES = ['afghanistan', 'ak', 'al', 'alabama', 'alaska', 'albania', 'alberta',
Expand Down Expand Up @@ -572,7 +572,7 @@ def process_url_encode(encode_string):
def process_output_name(encode_string):
"""Removes all bad characters in a string so it can be used as a file name.
"""
return_string = re.sub('[^\w\-_\. ]', '_', encode_string)
return_string = re.sub('[^\w\-_\.\/ ]', '_', encode_string)
return_string = return_string.replace(' ', '_')
return return_string

Expand Down

0 comments on commit 5bbc969

Please # to comment.