• Stars
    star
    209
  • Rank 187,257 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created over 4 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Just a repo of random Python scripts to get pentesters started with the Python language on engagements.

Python for Pentesters

Overview

Getting started with Python for pentesting and red team engagements is fairly easy! This repo is just a small collection of random scripts to help get you started.

Brought to you by:

Black Hills Information Security

Examples: by Mike Felch (@ustayready) and Joff Thyer (@joff_thyer)

This code is provided purely for educational purposes.

  • pivot_winrm.py: shows how to use Python with winrm to execute commands on a remote machine
  • cloud_aws_s3.py: search AWS S3 buckets for sensitive filenames
  • cloud_aws_secrets.py: Dump all the secrets in AWS Secrets Manager
  • cloud_azure_ad.py: Dumping AzureAD users
  • cloud_gsuite_backdoor.py: Backdooring G Suite accounts for full access
  • cloud_gsuite_email.py: Reading GMail emails
  • crack_jwt.py: Cracking JSON web tokens
  • live_host_discovery.py: Discovering live hosts on a network
  • live_port_discovery.py: Discovering open ports on a host
  • passwords_attack.py: Trying username/password combinations on a web authentication portal
  • pivot_psremoting.py: Pivoting in a Windows environment using PSRemoting
  • pivot_wmi.py: Pivoting in a Windows environment using WMI
  • shodan_search.py: Searching for internet connected devices on Shodan
  • socket_c2_client.py: C2 socket client
  • socket_c2_server.py: C2 socket server
  • web_brute.py: Brute forcing web paths for unknown attack surfaces
  • web_robots.py: Downloading the robots.txt for URLs
  • web_sniff.py: Sniffing HTTP packets
  • web_spa.py: Interacting with a single page app with a headless browser then copying session cookies to the requests library
  • pymeta.py: Read all files in a directory recursively and extracts metadata from any office documents, and PDFs discovered
  • powerstrip.py: Strips comments out of a PowerShell script, and writes a file with -stripped as part of the filename
  • pyinjector.py: Using ctypes to execute shellcode within the same process or inject into a remote process using thread manipulation

More Repositories

1

fireprox

AWS API Gateway management tool for creating on the fly HTTP pass-through proxies for unique IP rotation
Python
1,857
star
2

CredSniper

CredSniper is a phishing framework written with the Python micro-framework Flask and Jinja2 templating which supports capturing 2FA tokens.
HTML
1,310
star
3

CredKing

Password spraying using AWS Lambda for IP rotation
Python
566
star
4

SharpHose

Asynchronous Password Spraying Tool in C# for Windows Environments
C#
306
star
5

golddigger

Python
180
star
6

CasperStager

PoC for persisting .NET payloads in Windows Notification Facility (WNF) state names using low-level Windows Kernel API calls.
C#
146
star
7

cloudgpt

Vulnerability scanner for AWS customer managed policies using ChatGPT
Python
141
star
8

wnfexec

WNF Code Execution Library Using C#
C#
108
star
9

ShredHound

Small utility to chunk up a large BloodHound JSON file into smaller files for importing.
Python
81
star
10

DirectAI

ChatGPT queries via OpenAI API in your terminal
Python
60
star
11

CloudBurst

CloudBurst is a red team framework for interacting with cloud providers to capture, compromise, and exfil data.
36
star
12

roguerdp

33
star
13

outpost

AWS Testing and Reporting Management Tool
Python
20
star
14

android-app-recovery

Scripts to parse large Android binary images and extracts deleted data from apps
Python
13
star
15

mavd

Mobile Application Vulnerability Detection
Python
12
star
16

physical-analyzer-scripts

Cellebrite Physical Analyzer python scripts to aid analysts with extended functionality
Python
8
star
17

googlerecon

Google Recon for Pentesting
Python
6
star
18

pynse

NSE to launch Python Scripts
Python
5
star
19

qrwifi

QRCode Wifi Generator
Python
3
star
20

forensicpy

Library for performing mobile device decoding for nibbles and 7-bit decoding
Python
3
star
21

pyslite

Script for performing SQLite database to Excel workbook conversions
Python
3
star
22

XtoTwitter

JavaScript
2
star
23

polk-sheriff-arrests

Downloads all the arrests from 1990-2017 from Polk County Sheriffs Office
Python
2
star
24

digraph

A digraph plotter for sequential byte visualization
Python
2
star
25

ipsubcon

IP Subnet Converter
Python
1
star
26

stayready.github.io

Personal Github IO Website
HTML
1
star
27

CasperWNF

Simple UI for creating, subscribing, updating, querying, and fuzzing Windows WNF state names.
1
star