

项目说明
BHEH's SecretOpt1c
<p align="center">
<a href=" src=" width="300px" alt="BHEH"></a>
</p>
<p align="center">
Unleashing secrets, for a successful attack with pinpoint accuracy
SecretOpt1c is written by Chris "SaintDruG" Abou-Chabke from Black Hat Ethical Hacking and is designed for Red Teams and Bug Bounty Hunters!
</p>
Description
SecretOpt1c is designed for Red Team, Pentesters, and Bug Bounty Hunters. It is a very powerful and tool that helps unco information on websites using ACTIVE and PASSI for Superior Accuracy! It utilizes a payload wordlist that you provide and has a built-in powerful regex pattern matching engine that is written for you based on a lot of research which is included as ‘secrethub.json‘ file to accurately identify secrets hidden within a website's pages. We use Both Active, and Passi using ‘Gobuster‘ and ‘Waybackurls‘ to fetch a lot of URLs then use grep for specific extensions such as Ja and other juicy matching patterns, which gets piped to ‘httpx‘ to find valid URLs, and then e gets merged into one final URL removing duplicates, which we then run ‘curl’ and fetch all the content analyzing them with our patterns and then saving only the secrets found with the snippet in a CSV file..
Features:
Input: The first step is to take input from the user for the URL and wordlist. This is done using the read command, which prompts the user to enter the URL and the path to the wordlist.Wordlist existence check: The next step is to check if the wordlist file exists or not. This is done using the if [ ! -f $wordlist ]; then command, which checks if the file at the specified path does not exist. If the file does not exist, an error message is displayed, and the script exits.Directory creation: The next step is to create a directory to store the results of the curl command. This is done using the mkdir -p $domain command, where $domain is the domain name of the URL extracted using the awk command.Gobuster: The fourth step is to run gobuster, which is a tool for disco directories and files in websites. This is done using the gobuster dir command, with the following options:-u $url: specifies the URL to be tested-w $wordlist: specifies the path to the wordlist-x .js,.php,.yml,.env,.txt,.xml,.html,.config: specifies the file extensions to be tested-e: enables the extension testing-s 200,204,301,302,307,401,403: specifies the status codes to be considered as successful--random-agent: sets a random user agent in each request-o $domain/gobuster.txt: saves the output to a file in the directory created in step 3Waybackurls also takes place just after Gobuster, it uses the same extensions and uses httpx and then combines both results sorting them into one final big discovery!Displays a cool progress bar as it analyses secretsURL extraction: The fifth step is to extract the discovered URLs from the gobuster output. This is done using the grep command with the -oE option, which extracts the URLs that match the regular expression "(http|https)://[a-zA-Z0-9./?=_-]*". The extracted URLs are then sorted and stored in a file using the sort -u > $domain/disco.txt command. It will fetch both 200 and 301 responses adding the redirected URL to the list.Loop through URLs: The sixth step is to loop through each of the discovered URLs and run the curl command to retrieve the content of the URL. This is done using a while loop and the read command, which reads each line of the disco.txt file. For each URL, the curl command is run with the -s option, which suppresses output, and the output is saved to a file with the name disco$(echo $disco | awk -F/ '{print $3}').txt.Secrets discovery: The seventh step is to search for secrets in the output of the curl command. This is done using the grep and awk commands. The secrets are searched for using regular expressions specified in the secrethub.json file, which is processed using the jq command. The grep command searches the content. It is highly configured to also print each URL + Full Path before each secret found to know where it found it.It is also, our little S3cr3t...
!giphy
Requirements:
To use SecretOpt1c, you need to have the following tools installed:
figlet & lolcat: pip install lolcat & apt-get install figlet(Pipe ) utility to display a progress bar in the terminal. You can install "pv" by running: sudo apt-get install pvGobuster: Gobuster is a tool used to brute force subdomains and directories. It is the core component of SecretOpt1c and is required for the tool to function.You can install Gobuster on Kali Linux by running the following command:
sudo apt-get install gobuster
Waybackurls : go install github.com/tomnomnom/waybackurlsWordlists: SecretOpt1c uses wordlists to brute force subdomains and directories. There are several good wordlists a online, such as the SecLists project () and the FuzzDB project ().SecretHub.json: SecretHub.json is a custom regex pattern matching engine that is included in the SecretOpt1c GitHub repositoryInstallation
git clone
cd SecretOpt1c
chmod +x SecretOpt1c.sh
./SecretOpt1c.sh
The script will prompt you to provide the target URL(s) to test for open redirect .Enter the wordlist PathScreenshot
Main Menu
<img width="960" alt="SecretOpt1c" src="
Compatibility:
This tool has been tested on Kali Linux, Ubuntu and MacOS.
Disclaimer
This tool is provided for educational and research purpose only. The author of this project are no way responsible for any misuse of this tool.
We use it to test under NDA agreements with clients and their consents for pentesting purposes and we ne to misuse or take responsibility for any damage caused !
<h2 align="center">
<a href=" target="_blank">BHEH Official Merch</a>
</h2>
<p align="center">
Introducing our Merch Store, designed for the Offensi community. Explore a curated collection of apparel and drinkware, perfect for both professionals and enthusiasts. Our selection includes premium t-shirts, hoodies, and mugs, each featuring bold hacking-themed slogans and graphics that embody the spirit of red teaming and offensi.
Hack with style and showcase your dedication to hacker culture with gear that’s as dynamic and resilient as you are. 😊
</p>
<p align="center">
<img src=" width="540px" height="540">
</p>
项目信息
开发语言:Shell
Star 数:249
技术要点
该项目属于红蓝攻防方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕SecretOpt1c is a Red Team tool that helps uncover sensitive information in websites using ACTIVE and PASSIVE Techniques for Superior Accuracy!展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。
从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。
使用与学习建议
1. 下载源码压缩包,解压到本地环境。
2. 根据项目类型准备对应的运行环境与依赖。
3. 按照 README 中的步骤完成配置与部署。
4. 在隔离的测试环境中运行验证,避免影响生产系统。
免责声明
本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。