Skip to content

Instantly share code, notes, and snippets.

View jimywork's full-sized avatar
🌴
On vacation

Fábio Castro jimywork

🌴
On vacation
  • São Paulo, Brazil
View GitHub Profile
if __name__ == '__main__':
ipaddress = goipsms(apikey, 'HTTP/1.0 401 Please Authenticate WWW-Authenticate: Basic realm="Please Login"')
for e, ip in enumerate(ipaddress) :
try:
request = requests.get("{}/default/en_US/status.html?type=base".format(ip), auth=('admin', 'admin'), timeout=5)
except Exception as error:
continue
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import shodan
import requests
def goipsms (api=None, dork=None, limit=None, offset=None) :
urls = []
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import shodan
import requests
def goipsms (api=None, dork=None, limit=None, offset=None) :
try:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import shodan
import requests
def goipsms (api=None, dork=None, limit=None, offset=None) :
try:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
@jimywork
jimywork / gist:e3f1a227896a3c92453fc25590db09b6
Last active December 8, 2019 16:04
Como criar um script python para encontrar servidores GoIP GSM no Shodan.
if request.status_code == 200 :
print("[+] Default credentials found at {}".format(ip))
print("[+] Saving {}\n".format(ip))
try:
with open("{}".format('logs'), 'a') as logs :
logs.write("{}\n".format(ip))
except Exception as error:
print("{}".format(error))
import urllib3
from io import BytesIO
from bs4 import BeautifulSoup
conn = urllib3.PoolManager()
docx = conn.request( 'GET', 'http://procon.rs.gov.br/upload/arquivos/201801/03151705-procon-sao-gabriel-ranking-de-2017.docx').data
document = ZipFile(BytesIO(docx)).read('word/document.xml').decode('utf-8')
var tinder = {
swipe: function (interval) {
this.id = setInterval(function(){
this.swiped = document.querySelector('[aria-label="Curti"]');
this.swiped.click()
}, interval);
},
message: function(msg, interval) {
this.id = setInterval(function(){
var matches = document.querySelector('.recCard__img'),
@jimywork
jimywork / shodan.py
Last active May 29, 2019 18:52
Returns a list with ip address and port using shodan
import shodan
def search (api=None, dork=None, limit=None, offset=None) :
urls = []
try:
api = shodan.Shodan(api)
res = api.search(dork, limit=limit, offset=offset)
@jimywork
jimywork / pwned.py
Last active December 19, 2018 20:22
Does an analysis of the data and checks if the site was pwned
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import requests
from bs4 import BeautifulSoup
import json
def pwned(date=2018, limit=999):