SkillAgentSearch skills...

ShareGPTs

No description available

Install / Use

/learn @GreyDGL/ShareGPTs
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ShareGPTs: Retrieval and Sharing of GPTs Instructions

<div align="center"> <img src=logo.png width=500 height=300 > </div>

Introduction

🎯 Unleash the power of GPTs with ease! Our project automates the collection and sharing of prompts, sparking a world of creativity and inspiration.

In this project, we implement an automatic tool that helps to retrieve the instructions in GPTs using the strategy of prompt injection.

Disclaimer

This tool is developed for educational purpose only, and distributed under MIT license. The authors are not responsible for any potential damages caused by the tool, nor condemn any potential illegal use of the tool. Upon the usage of the tool, you agree that you are responsible for your own actions. Your usage log (retrieved GPTs and prompts) will be collected for research purpose.

How to use the tool

  1. Prepare the URL of the target GPTs. You may refer to the following lists.
  2. The tool relies on the GPT4OpenAI. You shall obtain the session token from the ChatGPT website following how to get the session token section below. You can put it into SESSION_TOKEN file.
  3. Install the tool
    • Create a virtual environment if needed: virtualenv venv, source venv/bin/activate
    • Install the dependencies: pip3 install -r requirements.txt
  4. Run based on the following automatic code.
python3 main.py --url <url> --cookie <session_token> --output <output_file>

Example: you may use python3 main.py --url https://chat.openai.com/g/g-PDWi5Scbc-all-around-teacher-learn-everything-in-3-min

  1. Examine the output in output file, by default GPTs_sysprompts.csv. Note that there's a rate limit of 60s after each attempt, so the tool will execute for at least 60s before saving the results.

How to get the session token

  1. Go to https://chat.openai.com and open the developer tools by F12.
  2. Find the __Secure-next-auth.session-token cookie in Application > Storage > Cookies > https://chat.openai.com.
  3. Copy the value in the Cookie Value field.
  4. The obtained token shall either be stored in file SESSION_TOKEN or passed to the tool through the arg parser.

image

Contact the Contributors!

  • [Gelei Deng] - gelei.deng@ntu.edu.sg
  • [Weitao Feng] - weitaofeng@mail.ustc.edu.cn
  • [Jie Zhang] - jie_zhang@ntu.edu.sg
  • [Jiyan He] - hejiyan@mail.ustc.edu.cn
View on GitHub
GitHub Stars35
CategoryDevelopment
Updated5d ago
Forks1

Languages

Python

Security Score

70/100

Audited on Mar 29, 2026

No findings