Skip to content

Instantly share code, notes, and snippets.

View ripstick's full-sized avatar

James ripstick

  • Dallas
View GitHub Profile
@ripstick
ripstick / upload.py
Created March 15, 2017 02:41 — forked from rminderhoud/upload.py
Flask basic upload
""" Basic file upload example for Flask
Example provided for spitfiredd on thread
https://www.reddit.com/r/flask/comments/5zen73/help_looking_to_create_a_simple_web_app_where_i/?ref=share&ref_source=link
"""
from flask import Flask, request, render_template, send_file
app = Flask(__name__)
# We need a secret key to work with form data
#!/usr/bin/python
from socket import socket
import time, argparse
parser = argparse.ArgumentParser(description='This is a quick and dirty port scanner')
parser.add_argument('-host','--hosts', help='Host to scan',required=True)
parser.add_argument('-upl','--upls',help='Upper port limit', required=True)
args = parser.parse_args()
HOSTS = [str(args.hosts)]
#!/usr/bin/python
from socket import socket
import time, argparse
parser = argparse.ArgumentParser(description='This is a quick and dirty port scanner')
parser.add_argument('-h','--hosts', help='Host to scan',required=True)
parser.add_argument('-u','--Upper_Port_Limit',help='Upper port limit', required=True)
args = parser.parse_args()
PORT_RANGE = args.Upper_Port_Limit
#!/usr/bin/env python2
import os
import getpass
import urllib2
from StringIO import StringIO
import time
import datetime
import argparse
import praw
from bs4 import BeautifulSoup