Giter VIP home page Giter VIP logo

pentest-scripts's Introduction

Pentest Scripts
---------------
A collection of scripts I've created while pentesting.

The rest of this readme was automatically generated with the following command:

for f in * ; do echo "---[ $f ]---" >> README.txt ; ./$f --help >> README.txt ; echo -e "\n" >> README.txt ; done

---[ dim ]---

dim - Dim the screen

Usage: dim  <= Dim the screen to the lowest setting.
       dim <integer>   <= Dim to a custom level.



---[ enable-forwarding ]---

enable-forwarding
-----------------
A simple script to forward all incoming traffic out
whatever interface is currently connected to the Internet.

Usage: enable-forwarding [Internet-connected interface]



---[ extract-hashes-responder ]---

extract-hashes-responder by Wh1t3Rh1n0
========================--------------
Extracts one hash per user from a Responder-Session.log file for easy
cracking with hashcat.

Usage: ./extract-hashes-responder </opt/Responder/Responder-Session.log> [Result number]



---[ gnmap2ip ]---

gnmap2ip
--------
Converts a .gnmap file to an list of colon separated IP and TCP port numbers.

Usage: gnmap2ip [GNMAP FILE]

Requires: grep
Limitations: Only handles TCP ports. Ignores UDP ports. 



---[ grip ]---

grip
----
greps a file for common patterns.

Should accept most standard grep flags.

Example usage:
   grep for IPs only:      grip <filename>
   include CIDR notation:  grip --cidr <filename>
   grep for IP:Port:       grip --port <filename>
   grep for emails:        grip --email <filename>
   grep for MAC addresses: grip --mac <filename>



---[ heartbleed ]---

Usage: heartbleed <IP Address> <Port>"



---[ heartbleed-parser ]---

Usage: heartbleed-parser <input file>



---[ ip2dec.py ]---

ip2dec.py
---------
Converts an IP address to its decimal equivalent.

Usage: ip2dec.py [IP Address]



---[ iplist2dirs ]---

iplist2dirs
-----------
Reads an IP:Port list and creates the following directory structure for 
each IP address:

    ./[OUTPUT DIR]/[PORT]/[IP Address]

Usage: iplist2dirs <IP List> [Ports]

Example: iplist2dirs iplist.txt "80 443"

Use "all" in place of port numbers to create a directory for every port listed.

If ports are omitted, the default port list is used.
The defaul port list and output directory name can be changed in the settings
section of this script.



---[ iplist-detect_http.sh ]---

iplist-detect_http
------------------
Retrieves HTTP headers from each server listed in a IP:Port formatted file.

Usage: iplist-detect_http <IP List File> [Maximum Connect Timeout]



---[ Kali_Linux_Extra_Tools2.sh ]---

Kali Linux: Extra tools and customizations script
=================================================
Created by Wh1t3Rh1n0

This script adds a bunch of my favorite tools to Kali Linux.
* 2015-09-09: In the process of being updated for Kali 2 Light Edition.
* 2015-11-25: More modifications. Still Kali 2 Light Edition centric.
* 2015-12-08: Separated GUI and non-GUI tools into two sections.

Usage: 
  Install all tools:  ./Kali_Linux_Extra_Tools2.sh install
  Non-GUI tools only: ./Kali_Linux_Extra_Tools2.sh install nogui

# Additions for Kali Linux 2 Light


---[ live-usb-tweaks.sh ]---

live-usb-tweaks.sh
------------------
Install tweaks to increase performance when running
Kali from a LiveUSB with persistence.

Usage: ./live-usb-tweaks.sh install


---[ merge-hashcat.py ]---

merge-hashcat.py
----------------
Matches passwords cracked with hashcat to their usernames.

Usage: merge-hashcat.py <user:hash file> <hash:password file>

Notes: The "hash:password" file is created by hashcat's -o option.

       The "user:hash" file is easy to create using your original hashdump and
       the "cut" command. An example of creating this file from hashes dumped
       from a Windows domain controller follows:
       
       cat raw_dump.txt | cut -d ':' -f 1,4 > dumped-users_hashes.txt



---[ ms15-034_check.py ]---
Usage: %s <URL>

Example: %s 'https://example.com:8443/'


---[ mv-screenshots ]---

mv-screenshots
--------------
Moves screenshots from the current directory to a destination directory.
Removes colons from the filename for Windows compatibility.

Usage: mv-screenshots <DESTINATION>



---[ ncsv2ip ]---

ncsv2ip
-------
Converts a Nessus exported CSV file to a colon-separated list of IPs and ports

Usage: ncsv2ip [CSV FILE]

Requires: grep, awk, sort
Limitations: Only outputs TCP ports. UDP ports are ignored.



---[ README.txt ]---


---[ setup-torbrowser-limited.sh ]---
##
## setup-torbrowser-limited.sh | by Wh1t3Rh1n0 
## -------------------------------------------
## 
## usage: setup-torbrowser-limited.sh <full path to torbrowser.xz file>
##
## uninstall: setup-torbrowser-limited.sh --remove
##


---[ setup-x-limited.sh ]---
##
## ----------------------------------
## setup-x-limited.sh | by Wh1t3Rh1n0 
## ----------------------------------
##
## This script creates a script and a menu icon for executing a given program
## as a regular, non-root user while you are logged in as root. Fully tested
## with Kali Linux 1.0.7 where I do not like running my web browser, IRC 
## client, etc. as root, but logging in as root is so convenient for everything
## else.
##
## The following environment variables need to be set for it to run:
##
## script_name - the filename that the created script will be saved as.
## iw_user - the user that will be created for running the target program.
## program_description - the name that will show on the icon.
## command_line - the path of the target program to be run.
## icon - the icon to display on the menu
## categories - where the icon is placed within the applications menu.
##
## Example execution:
## ------------------
## script_name=firefox-nonroot iw_user=firefox-user \
## program_description="Firefox (Non-Root)" \
## command_line="/opt/firefox/firefox" \
## icon="/opt/firefox/browser/icons/mozicon128.png" catagories="Network;" \
## ./setup-x-limited.sh
##


---[ snap ]---
##
## snap
## ----
## A work-in-progress script to snap windows to different parts of the screen.
##
## Usage: snap [tl/tr/bl/br]
##


---[ strip-colors ]---

strip-colors
------------
Removes colors from output for easy grepping.

Usage: cat <some file> | strip-colors



---[ update-firefox.sh ]---

Firefox Updater/Installer
-------------------------
Just a simple script to update or install Firefox on Kali Linux.

Installs to /opt/firefox

Run with no options to install or update.



---[ usb-armory ]---
##
## usb-armory
## ----------
## A simple script to setup a connection to a USB armory with Kali installed.
##
## Usage: usb-armory [Internet-connected interface]
##


---[ word-mutator ]---
##
## word-mutator 9000
## -----------------
## Generates a wordlist by running all of hashcat's built-in rules on a
## single word (such as a company name) or small list of words.
##
## Primarily intended for targeted, offline password cracking attacks.
##
## Usage: bash ./word-mutator [optional output file] [optional input wordlist]
##
## Because I'm being lazy, you must specify an output file name in order
## to specify an input file. :P
##


pentest-scripts's People

Contributors

wh1t3rh1n0 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.