-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
1,002 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+115 Bytes
(120%)
public/ViPER/modules/__pycache__/get_Arguments.cpython-35.pyc
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+589 Bytes
(130%)
public/ViPER/modules/__pycache__/httpcommands.cpython-35.pyc
Binary file not shown.
Binary file modified
BIN
+1.2 KB
(180%)
public/ViPER/modules/__pycache__/info_disclosure.cpython-35.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,79 @@ | ||
import requests | ||
from termcolor.termcolor import colored, cprint | ||
|
||
|
||
class httpCommands(): | ||
def __init__(self): | ||
pass | ||
|
||
def execute_all_func(self, target): | ||
try: | ||
self.get_method(target) | ||
except: | ||
cprint("Error", "red") | ||
try: | ||
self.post_method(target) | ||
except: | ||
cprint("Error", "red") | ||
try: | ||
self.head_method(target) | ||
except: | ||
cprint("Error", "red") | ||
try: | ||
self.put_method(target) | ||
except: | ||
cprint("Error", "red") | ||
try: | ||
self.delete_method(target) | ||
except: | ||
cprint("Error", "red") | ||
|
||
def get_method(self, target): | ||
print("Testing GET Method#") | ||
cprint("Testing GET Method", 'yellow') | ||
print("") | ||
req = requests.get(target) | ||
r = req.status_code | ||
if r == 200: | ||
print(r, "OK#") | ||
print(r, "OK") | ||
else: | ||
print("Response:", r) | ||
|
||
def post_method(self, target): | ||
print("Testing POST Method#") | ||
try: | ||
req = requests.post(target) | ||
r = req.status_code | ||
if r == 200: | ||
print(r, "OK#") | ||
else: | ||
print("Response", r,"#") | ||
except: | ||
print("I/O Error") | ||
cprint("Testing POST Method",'yellow') | ||
print("") | ||
req = requests.post(target) | ||
r = req.status_code | ||
if r == 200: | ||
print(r, "OK") | ||
else: | ||
print("Response", r) | ||
|
||
def head_method(self, target): | ||
print("Testing Head Method#") | ||
cprint("Testing Head Method",'yellow') | ||
print("") | ||
req = requests.head(target) | ||
r = req.status_code | ||
if r == 200: | ||
print(r, "OK#") | ||
print(r, "OK") | ||
else: | ||
print("Response", OK) | ||
|
||
def put_method(self, target): | ||
print("Testing Put Method#") | ||
cprint("Testing Put Method",'yellow') | ||
print("") | ||
req = requests.put(target) | ||
r = req.status_code | ||
if r == 200: | ||
print(r,"OK#") | ||
print(r, "OK") | ||
else: | ||
print("Response", r) | ||
|
||
def delete_method(self, target): | ||
print("Testing Delete Method#") | ||
cprint("Testing Delete Method",'yellow') | ||
print("") | ||
req = requests.delete(target) | ||
r = req.status_code | ||
if r == 200: | ||
print(r,"OK#") | ||
print(r, "OK") | ||
else: | ||
print("Response", r,"#") | ||
print("Response", r) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,74 @@ | ||
import requests | ||
from urllib.parse import urlsplit | ||
from termcolor.termcolor import colored, cprint | ||
|
||
|
||
class info(): | ||
def __init__(self): | ||
pass | ||
|
||
def execute_all_func(self, target): | ||
try: | ||
self.get_robots_txt(target) | ||
except: | ||
cprint("No robots.txt file Found!", "blue") | ||
try: | ||
self.get_dot_git(target) | ||
except: | ||
cprint("Error !", "red") | ||
try: | ||
self.get_dot_svn(target) | ||
except: | ||
cprint("Error", "red") | ||
try: | ||
self.get_dot_htaccess(target) | ||
except: | ||
cprint("Error", "red") | ||
|
||
def get_robots_txt(self, target): | ||
cprint("[*]Checking for Robots.txt", 'yellow') | ||
url = target | ||
target = "{0.scheme}://{0.netloc}/".format(urlsplit(url)) | ||
req = requests.get(target+"/robots.txt") | ||
r = req.text | ||
print(r,"#") | ||
cprint(r, 'blue') | ||
|
||
def get_dot_git(self, target): | ||
cprint("[*]Checking for .git folder", 'yellow') | ||
url = target | ||
target = "{0.scheme}://{0.netloc}/".format(urlsplit(url)) | ||
req = requests.get(target+"/.git/") | ||
r = req.status_code | ||
if r == 200: | ||
subprocess.call("wget -r"+target, shell=True) | ||
cprint("Alert!", 'red') | ||
cprint(".git folder exposed publicly", 'red') | ||
else: | ||
print("NO .git folder found#") | ||
print("NO .git folder found", 'blue') | ||
|
||
def get_dot_svn(self, target): | ||
cprint("[*]Checking for .svn folder", 'yellow') | ||
url = target | ||
target = "{0.scheme}://{0.netloc}/".format(urlsplit(url)) | ||
req = requests.get(target+"/.svn/entries") | ||
r = req.status_code | ||
if r == 200: | ||
print(r,"#") | ||
cprint("Alert!", 'red') | ||
cprint(".SVN folder exposed publicly", 'red') | ||
else: | ||
print("NO .SVN folder found#") | ||
cprint("NO .SVN folder found", 'blue') | ||
|
||
def get_dot_htaccess(self, target): | ||
cprint("[*]Checking for .htaccess", 'yellow') | ||
url = target | ||
target = "{0.scheme}://{0.netloc}/".format(urlsplit(url)) | ||
req = requests.get(target+"/.htaccess") | ||
r = req.text | ||
statcode = req.status_code | ||
if statcode == 403: | ||
print("403 Forbidden#") | ||
cprint("403 Forbidden", 'blue') | ||
elif statcode == 200: | ||
cprint("Alert!!", 'blue') | ||
cprint(".htaccess file found publicly!", 'blue') | ||
else: | ||
print(r,"#") | ||
cprint("Status code", 'blue') | ||
cprint(statcode, 'blue') |
Binary file not shown.
Oops, something went wrong.