Posts

Showing posts from May, 2016

Python Code Example : Port Scanner

Image
Berikut adalah link tempat saya menyimpan kode posrtscanner.py yg saya buat menggunakan bahasar Python.

Menggunakan Python 3.4.4 , diatas Mesin Windows 10
Silahkan di gunakan dan di pelajari tapi bertanggung jawab.

https://drive.google.com/open?id=0B-zDvH9VmpdOM2dFX1Brbm5WMjg

Isinya sebagai berikut :

portscanner.py :

# Program for scanning port , originally written in Python 2
# Source : http://www.pythonforbeginners.com/code-snippets-source-code/port-scanner-in-python
# I Just make it work for Python 3, and translate all command to Indonesian
#--------------------------------------------- Razmal Djamal --2016 -------------------------

import socket
import subprocess
import sys
import os
from datetime import datetime

# Clear the screen
os.system ('cls')

# Ask for input
remoteServer    = input("Masukkan Alamat Host yg ingin di periksa : ")
remoteServerIP  = socket.gethostbyname(remoteServer)

# Print a nice banner with information on which host we are about to scan
print (" -----…