博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
彩笔在kali安装 veil 的过程 and 使用
阅读量:5806 次
发布时间:2019-06-18

本文共 8753 字,大约阅读时间需要 29 分钟。

 

Veil-Evasion.tar.gz 链接:  密码: w717need.tar.gz 链接:  密码: st0h

 

将need.tar.gz 里的东西放到steup里面

#!/bin/bash# Global Variablesrunuser=$(whoami)tempdir=$(pwd)# Title Functionfunc_title(){  # Clear (For Prettyness)  clear  # Echo Title  echo '=========================================================================='  echo ' Veil-Evasion Setup Script | [Updated]: 09.09.2014'  echo '=========================================================================='  echo ' [Web]: https://www.veil-framework.com | [Twitter]: @VeilFramework'  echo '=========================================================================='}# Environment Checksfunc_check_env(){  # Check Sudo Dependency  if [ $(which sudo|wc -l) -eq '0' ]; then    echo    echo ' [ERROR]: This Setup Script Requires sudo!'    echo '          Please Install sudo Then Run This Setup Again.'    echo    exit 1  fi  # Check Running User  if [ ${runuser} == 'root' ]; then    echo    echo ' [WARNING]: Setup No Longer Requires Constant Root Privileges.'    echo '            Continuing Will Install Veil Only For The Root User.'    echo    read -p ' Continue With Installation? (y/n): ' rootonly    if [ ${rootonly} != 'y' ]; then      echo      echo ' [ERROR]: Installation Aborted By User.'      echo      exit 1    fi  fi  # Check OS Versions (Temporary To Ensure A Smooth Transition)  if [ $(uname -a|grep -i kali|wc -l) == '1' ]; then    echo    echo ' Kali linux detected...'    echo  elif [ $(uname -a|grep -i ubuntu|wc -l) == '1' ]; then    if [ $(grep "VERSION_ID" /etc/os-release|cut -d"=" -f2|sed -e 's/"//g' -e 's/\..*//') -lt '14' ]; then      echo      echo ' [ERROR]: Veil-Evasion Only Supported On Ubuntu Versions 14+.'      echo      exit 1    fi  elif [ $(uname -a|grep -i debian|wc -l) == '1' ]; then    if [ $(grep "VERSION_ID" /etc/os-release|cut -d"=" -f2|sed -e 's/"//g' -e 's/\..*//') -lt '7' ]; then      echo      echo ' [ERROR]: Veil-Evasion Only Supported On Debian Versions 7+.'      echo      exit 1    fi  fi  # Check Capstone dependency for backdoor factory  if [ -f /etc/ld.so.conf.d/capstone.conf ]; then    echo ' [*] Capstone Already Installed... Skipping.'  else    echo ' [*] Initializing Git Repo Based Dependencies Installation'    func_git_deps  fi  # Check If Wine Python Is Already Installed  if [ -f ~/.wine/drive_c/windows/system32/python27.dll ] && [ -f ~/.wine/drive_c/Python27/python.exe ]; then    echo ' [*] Wine Python Already Installed... Skipping.'    echo ' [*] Initializing Apt Package Installation'    func_apt_deps    # func_update_config  else    echo ' [*] Initializing Apt Dependencies Installation'    func_apt_deps    echo ' [*] Initializing Wine Python Dependencies Installation'    func_python_deps  fi  # Check If Wine Ruby Is Already Installed  if [ -f ~/.wine/drive_c/Ruby187/bin/ruby.exe ];     then    echo ' [*] Wine Ruby Already Installed... Skipping.'  else    echo ' [*] Initializing Wine Ruby Dependencies Installation'    func_ruby_deps  fi  # finally, update the config  func_update_config}# Install Architecture Dependent Dependenciesfunc_apt_deps(){  # Check For 64-bit Kernel  if [ $(uname -m) == 'x86_64' ]; then#######DZXS test    echo ' [*] Adding i386 Architecture To x86_64 System'    sudo dpkg --add-architecture i386    echo ' [*] Updating Apt Package Lists'    sudo apt-get update    echo ' [*] Installing Wine i386 Binaries'    sudo apt-get install -y wine-bin:i386  fi  # Start Apt Dependency Install  echo ' [*] Installing Microsoft Fonts'  # Can't Send This to Log File Due to Dumb Needs to Agree with M$ Crap.  sudo apt-get install -y ttf-mscorefonts-installer  echo ' [*] Installing Apt Dependencies'###我在这老是连不上源,就自己一个个地装  sudo apt-get install -y mingw-w64 monodoc-browser monodevelop mono-mcs wine python python-crypto \                          python-pefile python-pip unzip ruby}# Install Git Dependenciesfunc_git_deps(){    echo ' [*] Installing Git Repo Dependencies'    cd ${tempdir}    git clone https://github.com/aquynh/capstone    cd capstone    git checkout next    ./make.sh    sudo ./make.sh install    cd bindings/python    sudo make install    cd ${tempdir}    sudo rm -rf capstone    echo ' [*] Adding Capstone Library Path To /etc/ls.so.conf.d/capstone.conf'    sudo sh -c "echo '# Capstone Shared Libs' > /etc/ld.so.conf.d/capstone.conf"    sudo sh -c "echo '/usr/lib64' >> /etc/ld.so.conf.d/capstone.conf"    sudo ldconfig}# Install Wine Python Dependenciesfunc_python_deps(){  # Check If symmetricjsonrpc Is Already Installed  if [ -d /usr/local/lib/python2.7/dist-packages/symmetricjsonrpc/ ]; then    echo ' [*] SymmetricJSONRPC Already Installed... Skipping.'  else    echo ' [*] Installing symmetricjsonrpc Dependency'    sudo pip install symmetricjsonrpc    echo  fi  # Install Wine Python and Dependencies  # Download required files, doing no check cert because wget is having an issue with our wildcard cert  # if you're reading this, and actually concerned you might be mitm, use a browser and just download these  # files and then just comment these next two lines out :)  echo ' [*] Downloading Python Setup Files From http://www.veil-framework.com'#####dzxs 这里我下载不了,浏览器也上不了他的网站,然后根据后面的内容,从windows的python目录copy了  distutils tcl Tools 这三个文件夹打包成requiredfiles.zip 我copy的是python2.7.9的  #wget -q https://www.veil-framework.com/InstallMe/requiredfiles.zip --no-check-certificate###dzxs 这里跟上面原因一样,我从别的地方下载了  #wget -q https://www.veil-framework.com/InstallMe/pyinstaller-2.0.zip --no-check-certificate  # Unzip Setup Files  echo ' [*] Uncompressing Setup Archive'  unzip requiredfiles.zip  # Prepare Wine Directories  echo ' [*] Preparing Wine Directories'  mkdir -p ~/.wine/drive_c/Python27/Lib/  cp distutils -r ~/.wine/drive_c/Python27/Lib/  cp tcl -r ~/.wine/drive_c/Python27/  cp Tools -r ~/.wine/drive_c/Python27/  # Install Setup Files  echo ' [*] Installing Wine Python Dependencies'###dzxs 这里我装的是pthon-2.7.9.msi  #wine msiexec /i python-2.7.6.msi  wine msiexec /i python-2.7.6.msi  wine pywin32-218.win32-py2.7.exe  wine pycrypto-2.6.win32-py2.7.exe  if [ -d "/opt/pyinstaller-2.0/" ]; then    echo ' [*] PyInstaller Already Installed... Skipping.'  else    sudo unzip -d /opt pyinstaller-2.0.zip    sudo chmod 755 -R /opt/pyinstaller-2.0/  fi  # Clean Up Setup Files  echo ' [*] Cleaning Up Setup Files'  rm python-2.7.9.msi  rm pywin32-218.win32-py2.7.exe  rm pycrypto-2.6.win32-py2.7.exe  rm pyinstaller-2.0.zip  rm requiredfiles.zip  # Remove Temp Directories  echo ' [*] Removing Temporary Directories'  rm -rf distutils  rm -rf tcl  rm -rf Tools}# Install Wine Ruby Dependenciesfunc_ruby_deps(){  # Install Wine Ruby and Dependencies  # Download required files, doing no check cert because wget is having an issue with our wildcard cert  # if you're reading this, and actually concerned you might be mitm, use a browser and just download these  # files and then just comment these next two lines out :)  echo ' [*] Downloading Ruby Setup Files From http://www.veil-framework.com'####dzxs 这里跟上面一样不能访问,也是自己下载了rubyinstaller-1.8.7-p374.exe 原来的是rubyinstaller-1.8.7-p371.exe  #wget -q https://www.veil-framework.com/InstallMe/rubyinstaller-1.8.7-p371.exe --no-check-certificate#####dzxs 这个不知道内容是啥,就没管,没学过ruby  wget -q https://www.veil-framework.com/InstallMe/ruby_required.zip --no-check-certificate  # install Ruby under Wine  echo ' [*] Installing Ruby under Wine'  wine rubyinstaller-1.8.7-p374.exe /silent  # fetch the OCRA gem  echo ' [*] Fetching and installing Ruby OCRA gem'  gem fetch -v 1.3.0 ocra  # install the OCRA gem under Wine  wine ~/.wine/drive_c/Ruby187/bin/ruby.exe ~/.wine/drive_c/Ruby187/bin/gem install ocra-1.3.0.gem  # unzip the Ruby dependencies  echo ' [*] Uncompressing Ruby Setup Archive'  unzip -o -d /root/.wine/drive_c/Ruby187/lib/ruby/gems/ ruby_required.zip  # Clean Up Setup Files  echo ' [*] Cleaning Up Ruby Setup Files'  rm rubyinstaller-1.8.7-p374.exe  rm ruby_required.zip  rm ocra-1.3.0.gem}# Update Veil Configfunc_update_config(){  # ./config/update.py  echo ' [*] Updating Veil-Framework Configuration'  cd ../config  sudo python update.py  # Chown Output Directory  sudo chown ${runuser}:${runuser} ~/veil-output}# Menu Case Statementcase $1 in  # Force Clean Install Of Wine Python Dependencies  --clean)    # Bypass Environment Checks To Force Install Dependencies    func_title    func_apt_deps    func_git_deps    func_python_deps    func_ruby_deps    ;;  # Print Help Menu  -h|--help)    func_title    echo    echo "  [Usage]....: ${0} [OPTIONAL]"    echo '  [Optional].:'    echo '               --clean   = Force Clean Install Of Python Dependencies'    echo '               -h|--help = Show Help Menu'    echo    ;;  # Run Standard Setup  *)    func_title    func_check_env    ;;esac

 

转载于:https://www.cnblogs.com/dzxs/p/4187990.html

你可能感兴趣的文章
【ES6】数值的扩展
查看>>
性能测试之稳定性测试
查看>>
ES6的 Iterator 遍历器
查看>>
2019届高二(下)半期考试题(文科)
查看>>
【REDO】删除REDO LOG重做日志组后需要手工删除对应的日志文件(转)
查看>>
nginx 301跳转到带www域名方法rewrite(转)
查看>>
AIX 配置vncserver
查看>>
windows下Python 3.x图形图像处理库PIL的安装
查看>>
【IL】IL生成exe的方法
查看>>
network
查看>>
SettingsNotePad++
查看>>
centos7安装cacti-1.0
查看>>
3个概念,入门 Vue 组件开发
查看>>
没有JS的前端:体积更小、速度更快!
查看>>
数据指标/表现度量系统(Performance Measurement System)综述
查看>>
GitHub宣布推出Electron 1.0和Devtron,并将提供无限制的私有代码库
查看>>
Angular2, NativeScript 和 React Native比较[翻译]
查看>>
论模式在领域驱动设计中的重要性
查看>>
国内首例:飞步无人卡车携手中国邮政、德邦投入日常运营
查看>>
微软将停止对 IE 8、9和10的支持
查看>>