Skip to content

Instantly share code, notes, and snippets.

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

htoukour htoukour

🏠
Working from home
  • HTOUKOUR
  • Pretoria, South Africa
View GitHub Profile
@htoukour
htoukour / Dictionary.py
Last active November 22, 2017 07:28
A Simple Dictionary Script.
import re
import urllib.request
try:
url = "http://dictionary.reference.com/browse/"
#This will be our Url where we'll pulled the definition.
word = input("Enter your word: ")
url = url + word
data = urllib.request.urlopen(url).read()
data1 = data.decode("utf-8")
#To remove any encoding issue.
@htoukour
htoukour / portscanner.py
Created October 10, 2017 13:42
A Simple Python Port Scanner Script
import socket
import subprocess
import sys
from datetime import datetime
subprocess.call('cls', shell=True)
# Ask for input
remoteServer = input("Enter a remote host to scan: ")
remoteServerIP = socket.gethostbyname(remoteServer)