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 / base1
Created November 25, 2018 01:09
testing sonic pi
use_debug false
use_bpm 130
fadein = (ramp *range(0 ,2, 0.01))
live_loop :kick do
if (spread 1, 4).tick then
sample :bd_tek, amp: fadein.look, cutoff: 80
end
sleep 0.25
@AgustinParmisano
AgustinParmisano / cesar_cipher.py
Created November 16, 2018 17:54
cesar cipher with circular queue
import string
class ColaCircular:
def __init__(self):
self.datalist = []
def push(self, data):
self.datalist.append(data)
import paho.mqtt.client as mqtt
import paho.mqtt.publish as publish
import time
import datetime
import json
import ast
import requests
import Queue
import sys
import base64
@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