This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |