Read the Blog Post Here
http://blog.shashank.co/2019/03/taking-over-publicly-editable-github.html
A tool to find all the publicly editable wiki of an organization and publish your demo page on it. This code works wells on Mac OS. In case you are looking to run it on ubuntu servers use
pyvirtualdisplay
- Gecko Driver (https://github.com/mozilla/geckodriver/releases)
- Your Github Cookies (I would suggest using a temporary account)
- All those PIP installsss
- Python3x
- Make sure you are using python 3
- Keep your geckodriver file in
/usr/local/bin/
else you have to menton the path of the file in the code 3) How to add cookies ?
c1 = {'name' : 'NAME_OF_THECOOKIE' , 'value' : 'VALUE_OF_THE_COOKIE'}
Set all the cookie and it value in variables c1 , c2 ....
Then make sure you add all the cookies
driver.add_cookie(c1)
driver.add_cookie(c2)
etc.
- Some organisations have more than 100 repos and through the Github API call only 100 can be fetched per page. To fetch more repos. Just set the "page=1" to "page=2" and so on.
data = os.popen('curl -s "https://api.github.com/users/'+enter+'/repos?per_page=100&page=1" | grep -o '+"'https://github.com[^\"]*\.git'").read()
git clone https://github.com/Shashank-In/VulEdiWi.git
python3 VulEdiWi.py github_username