Skip to content

Instantly share code, notes, and snippets.

View erm3nda's full-sized avatar
😑
Expressionless master

m3nda erm3nda

😑
Expressionless master
  • n0n3
  • localhost
View GitHub Profile
@erm3nda
erm3nda / flask-http-307-redirect.py
Last active May 20, 2020 20:02
Redirecting http connections with Flask in Python
#!/usr/local/env python
#!/ -*- coding: utf-8 -*-
# Acts as a proxy for the requests, that's all, but instead of proxify them performs a redirection
# Redirection is set to http://anti-captcha.com/in.php
import os
import traceback
import time
@erm3nda
erm3nda / google-images-reverse-search.py
Last active January 1, 2024 11:19
Google Images Reverse Search - Python & Selenium
#!/usr/local/env python
# -*- coding: utf-8 -*-
# autor: erm3nda at gmail
# website: erm3nda.github.io
# searchs for content inside an image, then compares to a string, example, looking for cat inside a picture (PetFinder)
# if geany: Geany (f5) ads custom params when executes file, remove them if you don't wanna see errors or play yourself with term
import os, sys, re
import selenium, base64, time
from selenium import webdriver
@erm3nda
erm3nda / 6-way-to-get-current-ip.py
Last active April 22, 2020 06:40
6 ways to get the current ip using Python and it's modules
#!/usr/bin/env python
#! -*- coding: utf-8 -*-
# TODO: fix ip_firefox() and ip_socket() functions
# NOTE: Note that PhantomJS is blazing fast to being a fully javascript capable browser who makes the connection.
print ""
import sys, json, time, selenium, urllib, urllib2, urllib3, requests, socket
from selenium import webdriver
@erm3nda
erm3nda / text2speech-remote.sh
Last active June 20, 2016 14:57
vozme.com online text 2 speech service with bash
#!/bin/bash
# sample url: http://vozme.com/speech/es-fm/5d/5d40a31e1164b793c6200780c5dafb5e.mp3
# set a random filename for wget tmp data (html output)
# used 3:-33 instead 1:-32 to avoid $1 argument clash
tmpfile=/tmp/`< /dev/urandom tr -dc A-Za-z0-9 | head -c${2:-33}`.txt
tmpaudio=/tmp/`< /dev/urandom tr -dc A-Za-z0-9 | head -c${2:-33}`.mp3
# argument checking for $1 ("use quoted text")
if [ -z "$1" ]
@erm3nda
erm3nda / blizzard-scrapper.php
Last active January 2, 2017 08:09
Blizzard user data scrapper like a thread from PHP CLI
<?php
/**
* database.php
*
* Database access
*
* @category Data scrapper
* @package Blizzard
* @author erm3nda
@erm3nda
erm3nda / fetch_messages()
Last active June 15, 2019 05:57 — forked from tshirtman/main.py
Google Android get messages using URI parser and content.Resolver
def get_message(cursor):
return (
cursor.getString(cursor.getColumnIndex('_id')),
cursor.getString(cursor.getColumnIndex('address')),
cursor.getString(cursor.getColumnIndex('body')))
def fetch_messages(lastindex):
if platform == 'android':
uriSms = Uri.parse('content://sms')
@erm3nda
erm3nda / registro.py
Created March 4, 2017 21:55
Python basic txt list manager CLI
#!/user/local/env python
# -*- coding:utf8 -*-
import os
import platform
filename = "registros"
if not os.path.isfile(filename):
open(filename, "w+").close()
@erm3nda
erm3nda / openvpn-installer.sh
Created April 16, 2017 08:56
Road warrior OpenVPN installer
#!/bin/bash
# OpenVPN road warrior installer for Debian, Ubuntu and CentOS
# This script will work on Debian, Ubuntu, CentOS and probably other distros
# of the same families, although no support is offered for them. It isn't
# bulletproof but it will probably work if you simply want to setup a VPN on
# your Debian/Ubuntu/CentOS box. It has been designed to be as unobtrusive and
# universal as possible.
@erm3nda
erm3nda / Reverse-ip.py
Created April 16, 2017 20:04
Reverse ip lookup usando o site yougetsignal.com
#!/usr/bin/env python
from sys import argv,exit
import urllib2
import urllib
import json
print '\033[1;32m[+]\033[0m Reverse ip lookup by MMxM'
if(len(argv) != 2):
@erm3nda
erm3nda / netspeed.sh
Last active April 16, 2017 23:47 — forked from rsvp/netspeed.sh
netspeed.sh : check download speed rate via command line | Linux bash script
#!/usr/bin/env bash
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2013-07-11
#
# _______________| netspeed : check download speed via command line.
#
# Usage: netspeed [tokyo, london, usw, use, east, west, URL]
# ^default U.S. west coast.
# [ -speed_KB/sec ]
# ^negation activates the Mbps converter.
#