Skip to content

Instantly share code, notes, and snippets.

@bigyank
Forked from lrvick/github-troll.md
Created October 27, 2020 15:27
Show Gist options
  • Save bigyank/53bd827b58a7d39d7ed87218e40ac52f to your computer and use it in GitHub Desktop.
Save bigyank/53bd827b58a7d39d7ed87218e40ac52f to your computer and use it in GitHub Desktop.
Trolling Github's DMCA repo with their own security flaws.

Add new Youtube-dl copy to DMCA repo

  1. Fork https://github.com/github/dmca
  2. Download latest youtube-dl source code from https://ytdl.org/latest
  3. Extract
    tar -xvf youtube-dl-2020.09.20.tar.gz
    
  4. Push code to your fork as the GitHub CEO
    cd youtube-dl-2020.09.20
    git init
    git add .
    git config user.email "[email protected]"
    git config user.name "Nat Friedman"
    git commit -m "Your message to the RIAA and GitHub Here"
    git remote add origin [email protected]:YOURUSER/dmca
    git push -f origin master
    
  5. Get new URL to share!
    echo "https://github.com/github/dmca/tree/$(git rev-parse HEAD)"
    

Clone hidden repo from DMCA repo:

git clone -n https://github.com/github/dmca.git youtube-dl
cd youtube-dl
git fetch origin 416da574ec0df3388f652e44f7fe71b1e3a4701f
git checkout FETCH_HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment