kali linux 下安装loic软件并不复杂。这里我们仅仅是为了模拟一个压力测试的环境,当然,这个工具仍然可以用来构建一个用于ddos攻击的僵尸网络。
本文部分内容参考:http://xiao106347.blog.163.com/blog/static/21599207820140954559424/
aptitude install git-core monodevelop #安装monodevelop运行环境
mkdir loic && cd loic
vim loic.sh #编辑shell脚本写入下面的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=master DEB_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 | lower elif grep -qi ubuntu /etc/*release ; then echo "ubuntu" elif [[ -e /etc/fedora-release ]] ; then echo "fedora" else # Assume Debian-based echo "debian" fi } DISTRO=$(what_distro) ensure_git() { if ! which git ; then if [[ $DISTRO = 'ubuntu' || $DISTRO = 'debian' ]] ; then sudo apt-get install git elif [[ $DISTRO = 'fedora' ]] ; then sudo yum install git fi 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_git if ! is_loic ; then git clone $GIT_REPO -b $GIT_BRANCH fi } compile_loic() { get_loic if ! is_loic ; then echo "Error: You are not in a LOIC repository." exit 1 fi if [[ $DISTRO = 'ubuntu' || $DISTRO = 'debian' ]] ; then sudo apt-get install $DEB_MONO_PKGS elif [[ $DISTRO = 'fedora' ]] ; then sudo yum install $FED_MONO_PKS fi mdtool build } run_loic() { is_loic if [[ ! -e bin/Debug/LOIC.exe ]] ; then compile_loic fi if ! which mono ; then if [[ $DISTRO = 'ubuntu' || $DISTRO = 'debian' ]] ; then sudo apt-get install mono-runtime elif [[ $DISTRO = 'fedora' ]] ; then sudo yum install mono-runtime fi fi mono bin/Debug/LOIC.exe } update_loic() { ensure_git if is_loic ; then git pull --rebase compile_loic else echo "Error: You are not in a LOIC repository." fi } case $1 in install) compile_loic ;; update) update_loic ;; run) run_loic ;; *) echo "Usage: $0 <install|update|run>" ;; esac保存后执行下面的命令
chmod +x loic.sh #赋予执行权限
./loic.sh install #执行安装
可能出现警告,如图
忽略这个,执行下面的命令安装依赖
apt-get install mono-gmcs #安装依赖
然后运行
./loic.sh run #运行
如图:
OK,关于此软件的用法还有很详细的文档,具体可以参考作者的git上的说明。
git地址:https://github.com/nicolargo/loicinstaller/blob/master/loic.sh
先上一张图(来自韩剧《幽灵》):
注意:请在法律允许的范围内合理使用此软件!
本文链接:https://www.92ez.com/?action=show&id=10
!!! 转载请先联系non3gov@gmail.com授权并在显著位置注明作者和原文链接 !!! 小黑屋
提示:技术文章有一定的时效性,请先确认是否适用你当前的系统环境。
!!! 转载请先联系non3gov@gmail.com授权并在显著位置注明作者和原文链接 !!! 小黑屋
提示:技术文章有一定的时效性,请先确认是否适用你当前的系统环境。