From 1dc49e58731035f5bb08ebc25749f3db9b42359f Mon Sep 17 00:00:00 2001 From: SrBiggs Date: Tue, 21 Nov 2017 22:52:38 -0200 Subject: [PATCH] Add files via upload --- XSS_Rabbit.py | 120 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 XSS_Rabbit.py diff --git a/XSS_Rabbit.py b/XSS_Rabbit.py new file mode 100644 index 0000000..0e44d73 --- /dev/null +++ b/XSS_Rabbit.py @@ -0,0 +1,120 @@ +import requests +import re +import os + +class colors: + vermelho = '\033[3;31m' + verde = '\033[1;32m' + azul = '\033[1;34m' + ciano = '\033[1;36m' + magenta = '\033[1;35m' + amarelo = '\033[1;33m' + preto = '\033[1;30m' + branco = '\033[1;37m' + original = '\033[0;0m' + reverso = '\033[2m' + default = '\033[0m' + + +def banner(): + try: + os.system('clear') + except: + os.system('cls') + pass + print(''' .-'"""`---.___.----._ + ,' _ __,-- __ `. + '---' `----.' /_9> `--. + __.-'_.-- `/ __ + _..-"""---..',---' _.' :_.'-'--i-._ +--------------------------------------+ + .'' <""__..-' ` . 7-`-._.-.`. `. | XSS Rabbit | + / `` ` `-..-< ( .-. \ +--------------------------------------+ + / ; `' `' | Coder: Sr.Biggs | + ! _.--. ; | Telegram: @SrBiggs | + : ,' `. .' / | Version: 1.0 | + ;"`! \ ! / | Date: 20/11/2017 | + ;` \ ; ! / | GitHub: /SrBiggs | + '; `. | _`. \-' +--------------------------------------+ + `..~'`-.. ;_ .-+. `. `._.-. + `-._ "-' `"" .`. `.____\\ + "------------`-`' \n\n\n''') + +def XSS(): + with open("Crawled.txt","r") as file: + for site in file: + site = site.replace("\n","") + try: + with open("XSS Payloads.txt","r") as payloads: + for payload in payloads: + payload = payload.replace("\n","") + try: + req = requests.get(site+payload) + html = req.text + + if payload in html: + print(colors.amarelo + "\n=====================================") + print(colors.azul + "[*] Vulnerable to XSS [*]") + print(colors.verde + "[+] Url : " + colors.ciano + site) + print(colors.verde + "[+] Script : " + colors.ciano + payload) + print(colors.amarelo + "=====================================") + + with open("Vulnerable to XSS.txt","a") as vulns: + vulns.write(str(site+"\n")) + vulns.close() + + break + else: + break + + except: + print(colors.vermelho + "[!] Error : Erro ao fazer a requisição" + colors.default) + except Exception as erro: + print(colors.vermelho + "[!] Error : " + colors.default + str(erro)) + + print(colors.verde + "[*] Scan XSS finished sites vulneráveis salvos em 'Vulneraveis to XSS.txt'") + +def bing(pages): + count = 1 + + with open('Dorks.txt', 'r') as file: + lines = file.readlines() + for i in range(len(lines)): + dork = lines[i].strip() + + while count < pages: + + try: + req = requests.get('http://www.bing.com/search?q=' + dork + '&first=' + str(count)) + html = req.text + + except Exception as erro: + print(colors.vermelho + "[!] Error : " + colors.default + str(erro)) + + try: + regex = re.findall('

" + colors.default))*10 + bing(page) + print(colors.default) + +if __name__ == '__main__': + main() \ No newline at end of file