Translated ['src/README.md', 'src/banners/hacktricks-training.md', 'src/

This commit is contained in:
Translator
2024-12-31 20:45:32 +00:00
parent ea3a11546a
commit 3c2f3f44a7
245 changed files with 9950 additions and 12671 deletions

View File

@@ -2,59 +2,55 @@
{{#include ../../banners/hacktricks-training.md}}
This ways to access data from Github that was supposedly deleted was [**reported in this blog post**](https://trufflesecurity.com/blog/anyone-can-access-deleted-and-private-repo-data-github).
Githubから削除されたとされるデータにアクセスする方法は[**このブログ記事で報告されています**](https://trufflesecurity.com/blog/anyone-can-access-deleted-and-private-repo-data-github)
## Accessing Deleted Fork Data
1. You fork a public repository
2. You commit code to your fork
3. You delete your fork
1. 公開リポジトリをフォークします。
2. フォークにコードをコミットします。
3. フォークを削除します。
> [!CAUTION]
> The data commited in the deleted fork is still accessible.
> 削除されたフォークにコミットされたデータはまだアクセス可能です。
## Accessing Deleted Repo Data
1. You have a public repo on GitHub.
2. A user forks your repo.
3. You commit data after they fork it (and they never sync their fork with your updates).
4. You delete the entire repo.
1. GitHubに公開リポジトリがあります。
2. ユーザーがあなたのリポジトリをフォークします。
3. 彼らがフォークした後にデータをコミットします(彼らはあなたの更新とフォークを同期しません)。
4. リポジトリ全体を削除します。
> [!CAUTION]
> Even if you deleted your repo, all the changes made to it are still accessible through the forks.
> リポジトリを削除しても、行われたすべての変更はフォークを通じてアクセス可能です。
## Accessing Private Repo Data
1. You create a private repo that will eventually be made public.
2. You create a private, internal version of that repo (via forking) and commit additional code for features that youre not going to make public.
3. You make your “upstream” repository public and keep your fork private.
1. 最終的に公開されるプライベートリポジトリを作成します。
2. そのリポジトリのプライベートな内部バージョンを作成し(フォークを通じて)、公開しない機能のための追加コードをコミットします。
3. “アップストリーム”リポジトリを公開し、フォークをプライベートに保ちます。
> [!CAUTION]
> It's possible to access al the data pushed to the internal fork in the time between the internal fork was created and the public version was made public.
> 内部フォークが作成された時点から公開バージョンが公開されるまでの間にプッシュされたすべてのデータにアクセスすることが可能です。
## How to discover commits from deleted/hidden forks
The same blog post propose 2 options:
同じブログ記事は2つのオプションを提案しています
### Directly accessing the commit
If the commit ID (sha-1) value is known it's possible to access it in `https://github.com/<user/org>/<repo>/commit/<commit_hash>`
コミットIDsha-1値が知られている場合、`https://github.com/<user/org>/<repo>/commit/<commit_hash>`でアクセス可能です。
### Brute-forcing short SHA-1 values
It's the same to access both of these:
これらの両方にアクセスするのは同じです:
- [https://github.com/HackTricks-wiki/hacktricks/commit/8cf94635c266ca5618a9f4da65ea92c04bee9a14](https://github.com/HackTricks-wiki/hacktricks/commit/8cf94635c266ca5618a9f4da65ea92c04bee9a14)
- [https://github.com/HackTricks-wiki/hacktricks/commit/8cf9463](https://github.com/HackTricks-wiki/hacktricks/commit/8cf9463)
And the latest one use a short sha-1 that is bruteforceable.
そして、最新のものはブルートフォース可能な短いsha-1を使用しています。
## References
- [https://trufflesecurity.com/blog/anyone-can-access-deleted-and-private-repo-data-github](https://trufflesecurity.com/blog/anyone-can-access-deleted-and-private-repo-data-github)
{{#include ../../banners/hacktricks-training.md}}