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

This commit is contained in:
Translator
2024-12-31 20:36:01 +00:00
parent 388bdfdf0a
commit 0077c42f9c
245 changed files with 9025 additions and 11888 deletions

View File

@@ -1,60 +1,56 @@
# Accessible Deleted Data in Github
# Github में पहुँच योग्य हटाई गई डेटा
{{#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>`
यदि कमिट ID (sha-1) मान ज्ञात है तो इसे `https://github.com/<user/org>/<repo>/commit/<commit_hash>` में पहुँच पाना संभव है।
### Brute-forcing short SHA-1 values
### छोटे SHA-1 मानों का ब्रूट-फोर्सिंग
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}}