kali安装loic
1、安裝mono環境
檢查kali對應的Debian版本,根據Debian版本安裝mono
https://www.monodevelop.com/download/#fndtn-download-lin-debian
查看Debian版本:
查看內核版本和信息
uname -a
查看發行版信息
lsb_release -a
Debian 10
sudo apt install apt-transport-https dirmngr
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/debian vs-buster main" | sudo tee /etc/apt/sources.list.d/mono-official-vs.list
sudo apt update
sudo apt-get install monodevelop
Package has no installation candidate解決方法
解決方法如下:
# apt-get update
# apt-get upgrade
# apt-get install <packagename>
2、安裝loic
mkdir loic && cd loic
vim loic.sh #編輯shell腳本
腳本內容
#!/bin/bash # Copyfuck ? 2010 q # # This script installs, updates and runs LOIC on Linux. # # Supported distributions: # * Ubuntu # * Debian # * Fedora # # Usage: bash ubuntu_loic.bash <install|update|run> #GIT_REPO=http://github.com/NewEraCracker/LOIC.git GIT_BRANCH=masterDEB_MONO_PKG="monodevelop liblog4net-cil-dev" FED_MONO_PKG="mono-basic mono-devel monodevelop mono-tools"lower() {tr '[A-Z]' '[a-z]' }what_distro() {if which lsb_release ; then echo lsb_release -si | lowerelif grep -qi ubuntu /etc/*release ; then echo "ubuntu"elif [[ -e /etc/fedora-release ]] ; then echo "fedora"else# Assume Debian-basedecho "debian"fi }DISTRO=$(what_distro)ensure_git() {if ! which git ; then if [[ $DISTRO = 'ubuntu' || $DISTRO = 'debian' ]] ; then sudo apt-get install gitelif [[ $DISTRO = 'fedora' ]] ; then sudo yum install gitfi fi }is_loic() {is_loic_git || { [[ -d LOIC ]] && cd LOIC && is_loic_git; } }is_loic_git() {[[ -d .git ]] && grep -q LOIC .git/config }get_loic() {ensure_gitif ! is_loic ; then git clone $GIT_REPO -b $GIT_BRANCHfi }compile_loic() {get_loicif ! is_loic ; then echo "Error: You are not in a LOIC repository."exit 1fi if [[ $DISTRO = 'ubuntu' || $DISTRO = 'debian' ]] ; then sudo apt-get install $DEB_MONO_PKGSelif [[ $DISTRO = 'fedora' ]] ; then sudo yum install $FED_MONO_PKSfi mdtool build }run_loic() {is_loicif [[ ! -e bin/Debug/LOIC.exe ]] ; then compile_loicfi if ! which mono ; then if [[ $DISTRO = 'ubuntu' || $DISTRO = 'debian' ]] ; then sudo apt-get install mono-runtimeelif [[ $DISTRO = 'fedora' ]] ; then sudo yum install mono-runtimefi fi mono bin/Debug/LOIC.exe }update_loic() {ensure_gitif is_loic ; then git pull --rebasecompile_loicelse echo "Error: You are not in a LOIC repository."fi }case $1 ininstall)compile_loic;;update)update_loic;;run)run_loic;;*)echo "Usage: $0 <install|update|run>";; esac?
chmod +x loic.sh #賦予執行權限
./loic.sh install #執行安裝
過程中遇到如下警告,直接忽略,輸入n
apt-get install mono-gmcs??????? #安裝依賴(頁面可能會提示你,已有其他包代替了,就可以忽略,繼續走)
./loic.sh run #運行
?
?
總結
以上是生活随笔為你收集整理的kali安装loic的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 从底层重学 Java 之四大整数 Git
- 下一篇: Flex中的Base64加解密