Skip to content

Instantly share code, notes, and snippets.

@ghostbar
Last active November 11, 2022 18:30
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ghostbar/9083388 to your computer and use it in GitHub Desktop.
Save ghostbar/9083388 to your computer and use it in GitHub Desktop.

Blockade

Cómo usar y reportar

Clona este repositorio

git clone https://gist.github.com/9083388.git bloqueo

Debes tener instalados los siguientes programas:

  • curl
  • dig
  • grep
  • script
  • traceroute

Empieza a grabar ejecutando el siguiente comando en tu terminal:

script bloqueo/test.log

script abrirá una sesión que será grabada en test.log.

Una vez hecho esto, ejecuta:

sh bloqueo/test.sh

Al finalizar simplemente escribe exit y se habrá guardado la información en el archivo test.log.

Para subirlo, ejecuta:

sh bloqueo/upload.sh

Aparecerá un enlace en el terminal con el siguiente formato:

http://codepad.org/URLPersonalizada

Si usas Inter y no has cambiado tus DNS

@accesolibreve REPORTE: http://codepad.org/URLPersonalizada / Inter / NO

Si usas CANTV y has cambiado tus DNS a los de Google:

@accesolibreve REPORTE: http://codepad.org/URLPersonalizada / CANTV / Google

¿Qué hace?

  • Verifica si se puede llegar a la página por http.
  • Verifica si está registrado el dominio en el servidor DNS que estás usando.
  • Verifica si puedes llegarle mediante traceroute.

¿Qué más hay?

También hay un verificador rápido usando un proxy. Esto es sobre todo para gente fuera de Venezuela o que esté usando un VPN y no quiera quitarlo. Este verificador es test-viaproxy-blockade.sh y acepta como primer argumento la IP de un proxy y sus puertos como:

sh bloqueo/test-viaproxy-blockade.sh 190.111.111.111:8080

Igualmente puedes verificar el bloqueo individualmente de páginas lanzándolas como primer argumento a test.sh de esta forma:

sh bloqueo/test.sh google.com

Licencia

MIT.

Copyright © 2014 Jose Luis Rivas
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
#!/bin/sh
echo "Este script viene de https://gist.github.com/ghostbar/9083388"
echo "Haciendo CURL mediante proxy (lo detendremos si no responde en 15 segundos)"
echo $1
echo "Google"
curl -x $1 -I --max-time 15 "http://google.com"
echo "Pastebin"
curl -x $1 -I --max-time 15 "http://pastebin.com"
echo "Twitter"
curl -x $1 -I --max-time 15 "https://twitter.com"
echo "Imágenes de Twitter"
curl -x $1 -I "https://pbs.twimg.com/media/BgyrOdcIQAEbWIX.jpg"
echo "NTN24"
curl -x $1 -I --max-time 15 "http://www.ntn24.com"
echo "Dig mediante DNS de CANTV"
echo "Pastebin"
dig @200.44.32.12 pastebin.com
echo "Twitter"
dig @200.44.32.12 twitter.com
echo "Imágenes de Twitter"
dig @200.44.32.12 pbs.twimg.com
echo "www.ntn24.com"
dig @200.44.32.12 www.ntn24.com
#!/bin/bash
if [[ $# -eq 0 ]] ; then
a="google.com
pastebin.com
pbs.twimg.com/media/Bgyr0dcIQAEbWIX.jpg
www.ntn24.com
www.clarin.com
pastehtml.com
aguacateverde.com
analisis24.com
catastro.sanluis.gov.ar
diariodecuba.com
diarioenlamira.com
dollar.ru
naturaventura.com.ar
noticias.terra.com
ow.ly/2vnT8O
quelacreo.com
radionexx.com
riccardoworkroom.altervista.org
rpp.com.pe
sunoticiero.com
towelto.wordpress.com
liberal-venezolano.net
bomberosdemiranda.gob.ve
democraciatv.com
alekboyd.blogspot.co.uk
ahoravision.com
privatepaste.com
rietedelgobierno.com
content.zello.com
zello.com
karabas.loudtalks.com"
fi
if [ $1 ]; then
a=$1
fi
for i in $a
do
echo "$i"
echo "curl $i"
curl -I --max-time 15 $i
echo "dig $i"
dig $i
echo "traceroute $i"
traceroute -n -w 1 $i
done
#!/bin/sh
echo "Este script viene de https://gist.github.com/ghostbar/9083388"
echo "Haciendo CURL (lo detendremos si no responde en 15 segundos)"
echo "Google"
curl -I --max-time 15 "http://google.com"
echo "Pastebin"
curl -I --max-time 15 "http://pastebin.com"
echo "Twitter"
curl -I --max-time 15 "https://twitter.com"
echo "Imágenes de Twitter"
curl -I --max-time 15 "https://pbs.twimg.com/media/BgyrOdcIQAEbWIX.jpg"
echo "NTN24"
curl -I --max-time 15 "http://www.ntn24.com"
echo "Clarin"
curl -I --max-time 15 "http://www.clarin.com"
echo "Dig mediante DNS de CANTV"
echo "Pastebin"
dig pastebin.com
echo "Twitter"
dig twitter.com
echo "Imágenes de Twitter"
dig pbs.twimg.com
echo "www.ntn24.com"
dig www.ntn24.com
echo "www.clarin.com"
dig www.clarin.com
echo "Traceroutes"
echo "traceroute -n -w 1 pastebin.com"
traceroute -n -w 1 pastebin.com
echo "traceroute -n -w 1 twitter.com"
traceroute -n -w 1 twitter.com
echo "traceroute -n -w 1 pbs.twimg.com"
traceroute -n -w 1 pbs.twimg.com
echo "traceroute -n -w 1 www.ntn24.com"
traceroute -n -w 1 www.ntn24.com
echo "traceroute -n -w 1 www.clarin.com"
traceroute -n -w 1 www.clarin.com
path=`dirname "$0"`
curl -sd "lang=Plain Text&submit=Submit" --data-urlencode code@$path/test.log codepad.org | grep -o "http.*\"" | sed -e 's/"//'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment