Exploit database

GH-1f6e853e1fe7dde4689acbc07658a4e7

adirasmadins/gitosx

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2014-9390

5 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files14
adirasmadins/gitosxRevision 36c283e844cd

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

env.sh

Shell · 472 bytes

CURRENT_GIT_VERSION=""

function current-git-version() {
  if [ -z "$CURRENT_GIT_VERSION" ]; then
    if [ "`uname`" == "Darwin" ]; then sed_regexp="-E"; else sed_regexp="-r"; fi
    CURRENT_GIT_VERSION=$(curl -L http://git-scm.com/ 2>&1 | grep '<span class="version">' -A 1 | tail -n 1 | sed $sed_regexp 's/ *//')
  fi
  echo "$CURRENT_GIT_VERSION"
}

function do-make() {
  make OSX_VERSION=${OSX_VERSION:-10.9} VERSION=${GIT_VERSION:-$(current-git-version)} "${@}"
}