Skip to content

Latest commit

 

History

History
74 lines (66 loc) · 5.16 KB

ffuf.md

File metadata and controls

74 lines (66 loc) · 5.16 KB

ffuf

Room Link: https://tryhackme.com/r/room/ffuf

        /'___\  /'___\           /'___\       
       /\ \__/ /\ \__/  __  __  /\ \__/       
       \ \ ,__\\ \ ,__\/\ \/\ \ \ \ ,__\      
        \ \ \_/ \ \ \_/\ \ \_\ \ \ \ \_/      
         \ \_\   \ \_\  \ \____/  \ \_\       
          \/_/    \/_/   \/___/    \/_/       

Tools

  1. HackiFy
  2. ffuf
  3. SecLists

Introduction

  1. Read this section, install ffuf and Seclists, then click on "Complete" buttons.
  2. I used automated tool and wordlist installer HackiFy to install those tools. Repo: https://github.com/ZishanAdThandar/HackiFy

Basics

  1. Read this section properly, connect to the network with openvpn or start AttackBox.
  2. Click on Start the Machine.
  3. Used the given command ffuf -u http://MACHINE_IP/NORAJ -w /usr/share/wordlists/SecLists/Discovery/Web-Content/big.txt:NORAJ, just replaced seclists location with /opt/wordlist/SecLists/ as HackiFy install it inside /opt/wordlist directory.
  4. Question What is the first file you found with a 200 status code? Answer favicon.ico

Finding pages and directories

  1. If we run first command ffuf -u http://MACHINE_IP/FUZZ -w /opt/wordlist/SecLists/Discovery/Web-Content/raft-medium-files-lowercase.txt we can get some output.
  2. Question What text file did you find? Answer robots.txt
  3. If we run second command given ffuf -u http://MACHINE_IP/indexFUZZ -w /opt/wordlist/SecLists/Discovery/Web-Content/web-extensions.txt , we can get output.
  4. Question What two file extensions were found for the index page? Answer php,phps
  5. Again we need to run third given command ffuf -u http://MACHINE_IP/FUZZ -w /opt/wordlist/SecLists/Discovery/Web-Content/raft-medium-words-lowercase.txt -e .php,.txt and observe the output.
  6. Question What page has a size of 4840? Answer about.php
  7. If we run last given command, ffuf -u http://MACHINE_IP/FUZZ -w /opt/wordlist/SecLists/Discovery/Web-Content/raft-medium-directories-lowercase.txt. We will get some directories.
  8. Question How many directories are there? Answer 4

Using filters

  1. Question After applying the fc filter, how many results were returned? Answer 11. Got by observing output of command ffuf -u http://MACHINE_IP/FUZZ -w /opt/wordlist/SecLists/Discovery/Web-Content/raft-medium-files-lowercase.txt -fc 403.
  2. Question After applying the mc filter, how many results were returned? Answer 6 . Got by observing output of command ffuf -u http://MACHINE_IP/FUZZ -w /opt/wordlist/SecLists/Discovery/Web-Content/raft-medium-files-lowercase.txt -mc 200
  3. Question Which valuable file would have been hidden if you used -fc 403 instead of -fr? Answer wp-forum.phps. Got by observing output difference between -fc 403 command and command ffuf -u http://MACHINE_IP/FUZZ -w /opt/wordlist/SecLists/Discovery/Web-Content/raft-medium-files-lowercase.txt -fr '/\..*'

Fuzzing parameters

  1. Terminate if any machine running and click on Start Machine. Also read this section.
  2. Question What is the parameter you found? Answer id. Got it from output of ffuf -u 'http://MACHINE_IP/sqli-labs/Less-1/?FUZZ=1' -c -w /opt/wordlist/SecLists/Discovery/Web-Content/burp-parameter-names.txt -fw 39.
  3. Question What is the highest valid id? Answer 14. Got it by running, for i in {0..255}; do echo $i; done | ffuf -u 'http://MACHINE_IP/sqli-labs/Less-1/?id=FUZZ' -c -w - -fw 33.
  4. Question What is Dummy's password? Answer p@ssword. Got it with command ffuf -u http://MACHINE_IP/sqli-labs/Less-11/ -c -w /opt/wordlist/SecLists/Passwords/Leaked-Databases/hak5.txt -X POST -d 'uname=Dummy&passwd=FUZZ&submit=Submit' -fs 1435 -H 'Content-Type: application/x-www-form-urlencoded' .

Finding vhosts and subdomains

  1. Read the section properly, and mark it Complete.

Proxifying ffuf traffic

  1. Read the section properly, and mark it Complete.

Reviewing the options

  1. Observe output of ffuf -h.
  2. Question How do you save the output to a markdown file (ffuf.md)? Answer -of md -o ffuf.md
  3. Question How do you re-use a raw http request file? Answer -request
  4. Question How do you strip comments from a wordlist? Answer -ic
  5. Question How would you read a wordlist from STDIN? Answer -w -
  6. Question How do you print full URLs and redirect locations? Answer -v
  7. Question What option would you use to follow redirects? Answer -r
  8. Question How do you enable colorized output? Answer -c

About the author

  1. Author details here, just click on Complete and done.

Author: Zishan Ahamed Thandar