Skip to content

Instantly share code, notes, and snippets.

View UlisesGascon's full-sized avatar
😎
Focus on FOSS Projects!

Ulises Gascón UlisesGascon

😎
Focus on FOSS Projects!
View GitHub Profile
@UlisesGascon
UlisesGascon / README.md
Created August 13, 2019 17:45
Montar un docker con TOR en local

Montar/lanzar un docker con TOR en local

  1. Tenemos que tener instalado Docker
  2. ℹ️ Usaremos esta imagen: osminogin/tor-simple
  3. Nos traemos la imagen: docker pull osminogin/tor-simple
  4. Analicemos el contenido del Docker
  5. Lanzamos el Docker: docker run -p 127.0.0.1:9050:9050 --name tor osminogin/tor-simple
  6. Verificamos la conexión
curl  https://check.torproject.org #Inseguro
curl https://ipinfo.io/ip # Ip pública de salida
@UlisesGascon
UlisesGascon / README.md
Last active August 13, 2019 17:44
Montar un servidor remoto con TOR en Digital Ocean
@UlisesGascon
UlisesGascon / image_inverter.js
Created January 25, 2019 11:19
Inversión Binaria de imagenes
// npm install jimp
const Jimp = require('jimp');
function reverseString(str) {
return str.split("").reverse().join("");
}
function dec2bin(dec){
return (dec >>> 0).toString(2);
}
@UlisesGascon
UlisesGascon / fictizia_setup.sh
Last active November 21, 2018 10:08
Fictizia setup
# curl -L https://gist.githubusercontent.com/ulisesGascon/88a5dff0b5aafc395b131b6089068788/raw/fictizia_setup.sh | bash
# Install xcode
xcode-select --install
# install homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Code!
brew install git
@UlisesGascon
UlisesGascon / fu3m-mongo-conculta.md
Created October 6, 2018 11:52
consultar los datos guardados
  1. Abrir terminal
  2. mongo (abre la terminal)
  3. show dbs (muestra bases de datos)
  4. use formula-uc3m-realtime (uso esta base de datos)
  5. show collections (muestra las tablas)
  6. db.datas.find()(muestra los datos de la tabla)
  7. it para continuar
@UlisesGascon
UlisesGascon / hack.js
Created August 13, 2018 16:37
Yeoman Today
// Ejecutar en http://yeoman.io/generators/
let md = "";
function generateMd(dataItem){
md += `**:top: ${dataItem}**\n`
const datos = document.querySelectorAll(".list > tr");
datos.forEach(dato => {
const linkSelector = dato.querySelector("a");
const nameSelector = dato.querySelector(".name");
const descripcionSelector = dato.querySelector(".description");
var usefulldata;
@UlisesGascon
UlisesGascon / hola.js
Created August 1, 2018 13:29
Esto es una prueba...
console.log("Hola")
http://blog.emtmadrid.es/2014/05/14/disponible-la-api-de-tiempo-real-rest-json-en-version-beta-de-emt-madrid/
idCliente: EMT.SERVICIOS.EMTJSONBETA
passKey: 4F4EEB75-A822-41E3-817B-AB301D5DA321
@UlisesGascon
UlisesGascon / recon_methods.sh
Created June 27, 2018 12:00 — forked from brannondorsey/recon_methods.sh
Red teaming reconnaissance and information gathering techniques
# define your target
export TARGET = brannon.online
# perform a whois lookup
whois $TARGET
# do a dns lookup
nslookup $TARGET
# here we find that 34.201.87.194 is the
# true IP address of the $TARGET
@UlisesGascon
UlisesGascon / migration_and_split.md
Created May 4, 2018 08:20
From one repo to another organization and several repos....

bring hsitory from another repo

git remote -v
git remote add upstream https://github.com/{ORG}/{REPO}.git
git pull upstream master --allow-unrelated-histories
git add .
git commit -m "Bring all info from single repo"
git push