Skip to content

Instantly share code, notes, and snippets.

Tomás Hermosilla thermosilla

  • Santiago, Chile
Block or report user

Report or block thermosilla

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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)))
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')",
You can’t perform that action at this time.