Skip to content

Commit

Permalink
Merge pull request anouarbensaad#106 from anouarbensaad/v2.1
Browse files Browse the repository at this point in the history
FIX ISSUES V2.1
  • Loading branch information
anouarbensaad authored Jun 10, 2022
2 parents 2f9f46e + b5fd0c0 commit bcf451d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
6 changes: 6 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ function debianOS(){
echo -e "#!/bin/bash
python3 /usr/share/vulnx/vulnx.py" '${1+"$@"}' > "vulnx";
chmod +x "vulnx";
if [[ ! -d "/usr/share/vulnx" ]];then
sudo mkdir "/usr/share/vulnx"
fi
sudo cp "install.sh" "/usr/share/vulnx"
sudo cp "update.sh" "/usr/share/vulnx"
sudo cp -r "./common" "/usr/share/vulnx/"
Expand All @@ -104,6 +106,7 @@ function debianOS(){
fi
}
#main
if [[ $UID -eq 0 ]]; then
if [ -d "/data/data/com.termux/files/usr/" ]; then
banner
echo -e "$red [$green+$red]$off Vulnx Will Be Installed In Your System";
Expand All @@ -116,3 +119,6 @@ else
echo -e "$red [$green$red]$off Tool Cannot Be Installed On Your System! Use It As Portable !";
exit
fi
else
echo "You must run as root..."
fi
2 changes: 1 addition & 1 deletion modules/dns_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def dnsdumper(url):
print(' %s Retrieved token: %s' % (info, csrf_token))
cookies = {'csrftoken': csrf_token}
headers = {'Referer': 'https://dnsdumpster.com/'}
data = {'csrfmiddlewaretoken': csrf_token, 'targetip': domain}
data = {'csrfmiddlewaretoken': csrf_token, 'targetip': domain, 'user': 'free'}
response = requests.Session().post('https://dnsdumpster.com/',
cookies=cookies, data=data, headers=headers)
image = requests.get('https://dnsdumpster.com/static/map/%s.png' % domain)
Expand Down
2 changes: 1 addition & 1 deletion modules/dorks/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def _google_singlepage_(self):
set_dork = self.__setdork__()
google_query = 'https://www.google.com/search?q=' + set_dork['dork']
print(' {0} searching for : {1}' .format(que, google_query))
response = requests.get(google_query,headers=self.headers).text
response = requests.get(google_query,headers=self.headers,verify=False).text
return response

def _google_multipage_(self,num_p):
Expand Down
4 changes: 2 additions & 2 deletions modules/gathering/host_gathering.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def match_printer(self,to_match,match):

def os_server(self):

response = requests.get(self.url, headers=self.headers).headers
response = requests.get(self.url, headers=self.headers,verify=False).headers
try:
regx = re.compile(r"(.+) \((.+)\)")
data = regx.search(response["server"])
Expand All @@ -38,7 +38,7 @@ def os_server(self):

def web_host(self):
urldate = "https://input.payapi.io/v1/api/fraud/domain/age/" + hostd(self.url)
getinfo = requests.get(urldate, self.headers).text
getinfo = requests.get(urldate, self.headers,verify=False).text
regex_date = r'Date: (.+?)-(.+?)'
regex_date = re.compile(regex_date)
matches = re.search(regex_date, getinfo)
Expand Down
7 changes: 4 additions & 3 deletions vulnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,10 @@ def signal_handler(signal, frame):
if root.startswith('http://'):
url = root
elif root.startswith('https://'):
url=root.replace('https://','http://')
url = root
# url=root.replace('https://','http://')
else:
url = 'http://'+root
url = 'https://'+root
print(url)
detection()

Expand All @@ -166,7 +167,7 @@ def signal_handler(signal, frame):
if root.startswith('http'):
url = root
else:
url = 'http://'+root
url = 'https://'+root
detection()
urls.close()
except Exception as error:
Expand Down

0 comments on commit bcf451d

Please sign in to comment.