INNER CODE UNIT · Python
get_user_agent
demining/CryptoDeepTools · 24ShellShockAttack/main.py:29
def get_user_agent():
try:
lines = [line.rstrip("\n") for line in open("useragent.txt")]
except IOError as e:
print("User Agent error: %s" % e.strerror)
sys.exit(1)
return lines
def cgiBul():
try:
print(Colors.y + "e.g ==>http://target.com\n(Dont add / symbol at the end of the url!)")
url = input("TARGET URL\t:")
bb = url + "/cgi-bin/"
c = requests.get(bb)
istek = c.status_code
print(istek)
if (istek == 200) or (istek == 403) or (istek == 301) or (istek == 302):