3 posts about
python

Reddit Bot

!/usr/bin/python """ This bot searches a subreddit for specified keyword and sends an email notification to defined address. Use at your own risk. No warranty ^^ Got suggestions? Have it your way """ # following are required and must be installed import praw import time import datetime import os import smtplib import email.utils from email.mime.text import MIMEText...
Read More

TCP Connect Scan using Python

##################################################################### # # Need Python version 2.x, scapy, and python module sys installed on system # Usage: python tcpConnect.py [hostname] [port] # For example: python tcpConnect.py google.com 80 # https://github.com/qasimchadhar/portScan/blob/master/tcpConnect.py # ########################################################################### from socket import * import logging logging.getLogger("scapy.runtime").setLevel(logging.CRITICAL) #Supress scapy info level messages from scapy.all import * import...
Read More

PingSweep with Scapy

Want to get a bit geekier with your ping sweeps? Python Scapy can be used to create, modify, send, and intercept network packets and any TCP/IP layer. Here is a simple ping sweep script with Python Scapy: !/usr/bin/python from scapy.all import * TIMEOUT = 2 conf.verb = 0 for ip in range(201, 256): #Change it...
Read More

The author would love to hear your comments. Let us discuss at Twitter @hashtaginfosec.