Skip to content

Commit

Permalink
remove tim, modify import
Browse files Browse the repository at this point in the history
  • Loading branch information
0ss committed Nov 29, 2020
1 parent 507ebfc commit b491914
Showing 1 changed file with 8 additions and 22 deletions.
30 changes: 8 additions & 22 deletions byp4ss3er.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@

import requests
import sys
import colorama
from colorama import Fore, Back, Style
import time
from sys import exit, argv
from colorama import Fore, Back, Style,init

colorama.init()

init()

print("""
__ __ __ _____
Expand All @@ -18,7 +17,6 @@
version: 1.0
coded by (twitter: @akaSalah)
""")
print("STARTING IN 2 SECONDS . . .")

print(Fore.GREEN,"\rIF BYPASSED ACCORDING TO THE ANALYSIS => GREEN")
print(Fore.YELLOW,"\rIF REDIRECT => YELLOW ")
Expand All @@ -27,13 +25,13 @@

def getArgs():
try:
URL = sys.argv[1]
PATH = sys.argv[2]
URL = argv[1]
PATH = argv[2]
return URL, PATH
except:
print("\n\nPlease use this format => ./byp4ss3er http(s)://url /path \n")
print("Example => ./byp4ss3er http(s)://somewebsite.com /admin \n\n")
sys.exit() # kill the program
exit() # kill the program

def fixedHeaders(URL,PATH):
payloads = {
Expand Down Expand Up @@ -112,7 +110,7 @@ def checkResponse(r):

def start():

time.sleep(2)

URL, PATH = getArgs()

print(Fore.WHITE,"\r\n####### WITH HTTP Different Methods #######")
Expand Down Expand Up @@ -154,18 +152,6 @@ def start():
r = requests.get(URL+"/", headers=getHeader,allow_redirects=False
)
code, color = checkResponse(r)
'''
the reason we have to request
1- checkRequest
and the main request
2- r
is because those dynamic header could return a response with 200 status code but that does not it by passed
so we have to make request to the root page and compare, then we can check if it really by passed or not
proxies= {"http":"http://127.0.0.1:8080"
,"https":"http://127.0.0.1:8080"
},verify=False
'''
if color == Fore.GREEN:
if checkRequest.text != r.text:
print(color,header," | ", URL+PATH, "=> ",code )
Expand Down

0 comments on commit b491914

Please sign in to comment.