Skip to content

Instantly share code, notes, and snippets.

Tomás Hermosilla thermosilla

  • Santiago, Chile
View GitHub Profile
View gist:8996333
import operator
nums = {
1: "(4/4)",
2: "(4/r(4))",
4: "(r(4)+r(4))",
6: "(r(4)+4)",
8: "(4+4)",
9: "(4/.4')",
@thermosilla
thermosilla / scanports.py
Created Mar 23, 2012
Python port scaner
View scanports.py
#! /usr/bin/python2.7
import argparse
import socket
def prueba_host(host, puerto):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(10)
try:
s.connect((host, int(puerto)))
You can’t perform that action at this time.