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
import os | |
import sys | |
import requests | |
from prettytable import PrettyTable | |
class MalwareBazaar(): | |
def __init__(self): | |
self.url = "https://mb-api.abuse.ch/api/v1/" | |
self.samples_folder = "samples" |
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
#!/bin/bash | |
sudo apt-get update | |
sudo apt install -y python2.7 | |
sudo apt install -y build-essential python2.7-dev | |
git clone https://github.com/volatilityfoundation/volatility.git | |
chmod +x volatility/vol.py | |
sudo mv volatility /opt | |
sudo ln -s /opt/volatility/vol.py /usr/bin/vol.py |
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
import whois | |
import csv | |
import sys | |
from elasticsearch import Elasticsearch, helpers | |
es = Elasticsearch() | |
fp = sys.argv[1] | |
ip_list = open(fp, "r") | |
output = csv.writer(open("output.csv", "w")) |
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
from elasticsearch import Elasticsearch, helpers | |
import csv | |
es = Elasticsearch() | |
with open("leak.csv") as f: | |
reader = csv.DictReader(f) | |
helpers.bulk(es, reader, index="osint", doc_type="csv") |
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
import pytesseract as ocr | |
from PIL import Image | |
text = ocr.image_to_string(Image.open("imagem.png")) | |
print(text) |
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
#!/usr/bin/python3 | |
import requests | |
username = input("Digite o nome de usuário: ") | |
websites = ["github.com", "twitter.com", "instagram.com"] | |
for website in websites: | |
url = "https://{}/{}".format(website, username) | |
print("[*] Testando {}".format(url)) | |
response = requests.get(url) |
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
#!/usr/bin/python3 | |
""" | |
Ferramenta para captura de posts no Facebook. | |
""" | |
from facebook_scraper import get_posts | |
username = input("Digite o nome do usuário: ") | |
output = input("Salvar o resultado? [S/n] ") | |
for post in get_posts(username, pages=1): |
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
#!/usr/bin/python3 | |
""" | |
Captura dados de usuários do Facebook. | |
""" | |
import urllib.request | |
from facebook_scraper import get_profile | |
username = input("Nome do usuário: ") | |
output = input("Salvar dados? [S/n]: ") | |
data = get_profile(username) |
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
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
import time | |
driver = webdriver.Firefox() | |
driver.get("http://testphp.vulnweb.com/login.php") | |
elem = driver.find_element_by_name("uname") | |
elem.clear() | |
elem.send_keys("test") |
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
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
import time | |
driver = webdriver.Firefox() | |
driver.get("https://google.com") | |
elem = driver.find_element_by_name("q") | |
elem.clear() |
NewerOlder