Skip to content

Instantly share code, notes, and snippets.

View AgustinParmisano's full-sized avatar
🏠
Working from home

Agustin Parmisano AgustinParmisano

🏠
Working from home
View GitHub Profile
@AgustinParmisano
AgustinParmisano / pattern_lambda_example.py
Created April 21, 2018 22:22
un pequeño ejemplo de lambda con pattern
#!/usr/bin/python3
import pattern.es
verbosInfinitivos = input("Ingrese una frase: ")
infs = map(lambda v : pattern.es.conjugate(v,'inf'), verbosInfinitivos.split(" "))
print(list(infs))
@AgustinParmisano
AgustinParmisano / scancat.sh
Last active April 17, 2018 04:05
host port scan with netcat
#!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage: port"
exit 1
fi
local_ip=$(ifconfig | grep "inet " | tail -1 | awk -F ' ' '{print $2}')
port=$1
ips=($(fping -g $local_ip/24 2> /dev/null | grep alive | cut -d" " -f1 | sed -n '1!p'))
@AgustinParmisano
AgustinParmisano / magic_cursor.py
Last active April 21, 2018 22:26
pygame + lambda example
#!/usr/bin/python3
#Desarrolle un programa en Python3 utilizando Pygame y expresiones lambda
#que genere figuras de distintos colores según la posicion del puntero y el tiempo.
#Las figuras no deben exeder los 100 píxeles de diámetro.
#Debe dar la sesación que el cursor pinta en la pantalla.
import pygame
import datetime
@AgustinParmisano
AgustinParmisano / lambda_examples.py
Last active April 6, 2018 14:50
Python3 Lambda examples
# -*- coding: utf-8 -*-
'''
En el ámbito de la programación, una función anónima (función literal, expresión lambda)
es una subrutina definida que no está enlazada a un identificador, no tiene nombre,
es una función anónima.
'''
# Las expresiones lambda pueden llevar o no parámetros.
# Las expresiones lambda pueden asignarse a variables para ser reutilizadas.
@AgustinParmisano
AgustinParmisano / zipbruteforcer.py
Created February 22, 2018 00:27
zip password brute forcer with python
import zipfile
import optparse
from threading import Thread
def extractFile(zFile, password):
try:
zFile.extractall(pwd=password)
print '[+] Found password ' + password + '\n'
except:
pass
@AgustinParmisano
AgustinParmisano / sources.list.old
Created February 21, 2018 20:15
sources.list.old kali
#
# deb cdrom:[Debian GNU/Linux 2017.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170416-02:08]/ kali-rolling contrib main non-free
#deb cdrom:[Debian GNU/Linux 2017.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170416-02:08]/ kali-rolling contrib main non-free
deb http://http.kali.org/kali kali-rolling main non-free contrib
# deb-src http://http.kali.org/kali kali-rolling main non-free contrib
@AgustinParmisano
AgustinParmisano / auto_mqtt_pub.sh
Last active January 31, 2018 20:38
Bash auto mqtt pub script with cofigurable broker, msg and topic
#!/bin/bash
read -p "[!] Enter Broker IP or URL (f.e. broker.hivemq.com): " broker
echo "[!] Testing broker $broker connection with ping . . . "
echo "[!] Please wait . . ."
brokeron=$(ping -c 4 $broker)
if [ $? -gt 0 ]; then
@AgustinParmisano
AgustinParmisano / task_date_scheduler
Last active December 9, 2017 08:00
Easy crontab Python CLI API
import argparse
import os ,sys
import logging
from crontab import CronTab
"""
Task Scheduler
==========
This module manages periodic tasks using cron.
"""
class CronManager:
@AgustinParmisano
AgustinParmisano / combi_xyz.py
Created October 17, 2017 02:14
combinatoria de dos numeros x e y checkeando resultado z
import random
cant = random.randint(3,999)
ult = random.randint(2,999)
nums = []
for i in range(0,cant):
num = random.randint(1,1000)
nums.append(num)
print "Generando numeros ... " + str(num)
@AgustinParmisano
AgustinParmisano / tp-link_tl-wn722N_kernel4_linux
Last active March 4, 2020 19:52
pasos para hacer andar la antena TP-LINK TL-WN722N en el kernel 4 de linux