Skip to content

Instantly share code, notes, and snippets.

View red-leaf1's full-sized avatar

Tatenda red-leaf1

View GitHub Profile
@red-leaf1
red-leaf1 / netcat.py
Created December 19, 2016 00:57
Push files etc. Networking utility knife. Useful for pentests where the admin has removed it from the system.
import socket
import sys
import getopt
import threading
import subprocess
# Defining constants
LISTEN = False
COMMAND = False
UPLOAD = False
@red-leaf1
red-leaf1 / simplehttpserver.py
Last active December 4, 2017 01:26
Networking projects
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from os import curdir, sep
PORT_NUMBER = 8080
#message = "\nThis is a test WebServer.\n"
#This class will handle any incoming request from
#the browser
class MyHandler(BaseHTTPRequestHandler):