linux环境下使用wine运行LOIC等windows软件-泓源视野

linux环境下使用wine运行LOIC等windows软件

aptitude install git-core monodevelop #安装monodevelop运行环境

 

linux环境下使用wine运行LOIC等windows软件插图

*****经测试需要http+tcp速度开到最大同时打一台服务器

或tcp模式+随机字符+速度开打最大

*** 一台主机还行,大型服务器打不动!

 mkdir loic && cd loic
vim loic.sh #编辑shell脚本

写入下面的shell代码

linux环境下使用wine运行LOIC等windows软件插图1
#!/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 ; thenecho lsb_release -si | lower elif grep -qi ubuntu /etc/*release ; thenecho "ubuntu" elif [[ -e /etc/fedora-release ]] ; thenecho "fedora" else # Assume Debian-based echo "debian" fi}
DISTRO=$(what_distro)ensure_git() { if ! which git ; thenif [[ $DISTRO = 'ubuntu' || $DISTRO = 'debian' ]] ; thensudo apt-get install git elif [[ $DISTRO = 'fedora' ]] ; thensudo yum install git fifi}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 ; thengit clone $GIT_REPO -b $GIT_BRANCH fi}compile_loic() { get_loic if ! is_loic ; thenecho "Error: You are not in a LOIC repository." exit 1 fiif [[ $DISTRO = 'ubuntu' || $DISTRO = 'debian' ]] ; thensudo apt-get install $DEB_MONO_PKGS elif [[ $DISTRO = 'fedora' ]] ; thensudo yum install $FED_MONO_PKS fimdtool build
}run_loic() { is_loic if [[ ! -e bin/Debug/LOIC.exe ]] ; thencompile_loic fiif ! which mono ; thenif [[ $DISTRO = 'ubuntu' || $DISTRO = 'debian' ]] ; thensudo apt-get install mono-runtime elif [[ $DISTRO = 'fedora' ]] ; thensudo yum install mono-runtime fifimono bin/Debug/LOIC.exe
}update_loic() { ensure_git if is_loic ; thengit pull --rebase compile_loic elseecho "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 #执行安装

 

linux环境下使用wine运行LOIC等windows软件插图1

 

可能出现警告,如图

 

linux环境下使用wine运行LOIC等windows软件插图2

 

忽略这个,执行下面的命令安装依赖

apt-get install mono-gmcs        #安装依赖

然后运行

./loic.sh run #运行

如图:

 

linux环境下使用wine运行LOIC等windows软件插图3

 

OK,关于此软件的用法还有很详细的文档,具体可以参考作者的git上的说明。

git地址:https://github.com/nicolargo/loicinstaller/blob/master/loic.sh

可以运行在googleshell的docker中。

gnome或lxde的linux下通过shell新开一个terminal窗口

gnome-terminal -t "title-name" -x bash -c "sh ./run.sh;exec bash;"

lxterminal -t "title-name" -x bash -c "nload;exec bash;"

本文由 泓源视野 作者:admin 发表,其版权均为 泓源视野 所有,文章内容系作者个人观点,不代表 泓源视野 对观点赞同或支持。如需转载,请注明文章来源。
11

发表评论

Protected with IP Blacklist CloudIP Blacklist Cloud
您是第8237008 位访客, 您的IP是:[100.24.20.141]