#!/bin/bash
echo " ____ __ __ ______ ___ _____ ____ _ ___ ____ ______ "; echo " / || | || | / \ / /| | | / | || |"; echo "| o || | || || ( _ | o ) | | || | | |"; echo "| || | ||| ||| O |_ || /| |__ | O || | || ||"; echo "| _ || : | | | | |/ \ || | | || || | | | "; echo "| | || | | | | |\ || | | || || | | | "; echo "||| _,| || _/ _||| |_| _/|____| || "; echo " ";
function installDebian () { sudo apt-get update; sudo apt-get -y install git python2.7 python-pip postgresql apache2; pip2 install requests psutil; installMSF; }
function installFedora () { sudo yum -y install git python-pip; pip2 install requests psutil; installMSF; }
function installOSX () { xcode-select --install; /usr/bin/ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"; echo PATH=/usr/local/bin:/usr/local/sbin:$PATH >> ~/.bash_profile; source ~/.bash_profile; brew tap homebrew/versions; brew install nmap; brew install homebrew/versions/ruby21; gem install bundler; brew install postgresql --without-ossp-uuid; initdb /usr/local/var/postgres; mkdir -p ~/Library/LaunchAgents; cp /usr/local/Cellar/postgresql/9.4.4/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/; launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist; createuser msf -P -h localhost; createdb -O msf msf -h localhost; installOsxMSF; }
function installOsxMSF () { mkdir /usr/local/share; cd /usr/local/share/; git clone https://github.com/rapid7/metasploit-framework.git; cd metasploit-framework; for MSF in $(ls msf*); do ln -s /usr/local/share/metasploit-framework/$MSF /usr/local/bin/$MSF;done; sudo chmod go+w /etc/profile; sudo echo export MSF_DATABASE_CONFIG=/usr/local/share/metasploit-framework/config/database.yml >> /etc/profile; bundle install; echo "[!!] A DEFAULT CONFIG OF THE FILE 'database.yml' WILL BE USED"; rm /usr/local/share/metasploit-framework/config/database.yml; cat > /usr/local/share/metasploit-framework/config/database.yml << '_EOF' production: adapter: postgresql database: msf username: msf password: host: 127.0.0.1 port: 5432 pool: 75 timeout: 5 _EOF source /etc/profile; source ~/.bash_profile; }
function installMSF () {
if [[ ! "$(which msfconsole)" = / ]]; then
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall &&
chmod 755 msfinstall &&
./msfinstall;
rm msfinstall;
fi
}
function install () { case "$(uname -a)" in Debian|Ubuntu) installDebian; ;; Fedora) installFedora; ;; Darwin) installOSX; ;; *) echo "Unable to detect operating system that is compatible with AutoSploit..."; ;; esac echo ""; echo "Installation Complete"; }
install;
This repository contains the documentation website code and Markdown source files for docs.github.com.
GitHub's Docs team works on pre-production content in a private repo that regularly syncs with this public repo.
Use the table of contents icon on the top left corner of this document to navigate to a specific section quickly.
We accept different types of contributions, including some that don't require you to write a single line of code. For detailed instructions on how to get started with our project, see "About contributing to GitHub Docs."
On the GitHub Docs site, you can contribute by clicking the Make a contribution button at the bottom of the page to open a pull request for quick fixes like typos, updates, or link fixes.
You can also contribute by creating a local environment or opening a Codespace. For more information, see "Setting up your environment to work on GitHub Docs."
For more complex contributions, please open an issue using the most appropriate issue template to describe the changes you'd like to see.
If you're looking for a way to contribute, you can scan through our help wanted board to find open issues already approved for work.
We use GitHub Discussions to talk about all sorts of topics related to documentation and this site. For example: if you'd like help troubleshooting a PR, have a great new idea, or want to share something amazing you've learned in our docs, join us in the discussions.
If you're having trouble with your GitHub account, contact Support.
That's how you can easily become a member of the GitHub Docs community. ✨
In addition to the README you're reading right now, this repo includes other READMEs that describe the purpose of each subdirectory in more detail:
- content/README.md
- content/graphql/README.md
- content/rest/README.md
- contributing/README.md
- data/README.md
- data/reusables/README.md
- data/variables/README.md
- src/README.md
The GitHub product documentation in the assets, content, and data folders are licensed under a CC-BY license.
All other code in this repository is licensed under the MIT license.
When using the GitHub logos, be sure to follow the GitHub logo guidelines.
Thanks for all your contributions and efforts towards improving the GitHub documentation. We thank you for being part of our ✨ community ✨!