This file contains hidden or 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
Add these two lines to your /etc/apt/sources.list file: | |
deb http://packages.dotdeb.org jessie all | |
deb-src http://packages.dotdeb.org jessie all | |
Add the GPG key: | |
wget https://www.dotdeb.org/dotdeb.gpg | |
sudo apt-key add dotdeb.gpg | |
Install PHP 7: |
This file contains hidden or 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
wget http://downloads.metasploit.com/data/releases/metasploit-latest-linux-x64-installer.run | |
chmod +x metasploit-latest-linux-x64-installer.run | |
sudo ./metasploit-latest-linux-x64-installer.run |
This file contains hidden or 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 | |
# -*- ENCODING: UTF-8 -*- | |
echo -e "<° Linux es lo mejor - Instalaremos Tomb - una herramienta de seguridad ;) \n" | |
echo -e "Prepararemos su sistema para intalar tomb - No olvide ingresar su contraseña al final :D \n" | |
sudo apt-get install zsh gnupg cryptsetup pinentry-curses | |
sudo -e "Listo comenzaremos con la instalación de tomb \n" | |
echo -e "Descargando tomb v2.2 \n" | |
wget https://files.dyne.org/tomb/tomb-2.2.tar.gz | |
echo -e "Se ha descargado tomb correctamente \n" | |
echo -e "Descomprimiendo tomb \n" |
This file contains hidden or 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 socket | |
f = open("urls.txt") | |
num_line = sum(1 for line in f) | |
f.close() | |
with open("urls.txt", "r") as ins: | |
array = [] | |
for line in ins: | |
print socket.gethostbyname(line.strip()) |
This file contains hidden or 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
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Filtro de una lista fácil</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> | |
<script> | |
(function ($) { | |
// Expresión css personalizado para mayúsculas y minúsculas contains() | |
jQuery.expr[':'].Contains = function(a,i,m){ |
This file contains hidden or 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
<html> | |
<head> | |
<title> | |
COMBOBOX | |
</title> | |
<script type="text/javascript"> | |
function cargarSelect2(valor) { | |
var arrayValores=new Array( | |
new Array(1,1,"opcion1-1"), |
This file contains hidden or 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 sys, math | |
from time import time, localtime, strftime | |
########################### CONFIGURACION ######################### | |
# LONGITUD DEBE SER MINIMO 8 | CLAVES WPA/2 SON DE MINIMO 8 CARACTERES | |
LONGITUD = 10 | |
ALFABETO = "qwertyuioplkjhgfdsazxcvbnm" |
This file contains hidden or 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/env python | |
# Librerias necesarias | |
import paramiko | |
import os | |
# Datos para la conexion SSH | |
ssh_servidor = '10.0.70.44' | |
ssh_usuario = 'tuusuario' | |
ssh_clave = 'tucontraseña' |
This file contains hidden or 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/env python | |
# Ejemplo de como enviar SMS usando gammu y python | |
import gammu | |
import sys | |
# se crea un objeto stateMachine, para hablar con el telefono | |
sm = gammu.StateMachine() | |
# Leer la configuracion desde (~/.gammurc) |
This file contains hidden or 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/lib/env python | |
#Utilizamos la libreria de python urllib2 | |
import urllib2 | |
def contenidoPagina(url): | |
try: | |
traer = urllib2.urlopen(page) | |
# leemos el contenido que trae la pagina. | |
datos = traer.read() |