新机装配

每次重装Attack的机器的时候就要装Metasploit、Cobalt Strike、Shadowsocks三件套,索性放在一起好了。

Ubuntu 16.x

  • Install Metasploit5
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && \
  chmod 755 msfinstall && \
  ./msfinstall
  • Install Cobalt Strike
apt-get install openjdk-8-jre-headless
apt-get install git -y
git clone https://github.com/rsmudge/Malleable-C2-Profiles/
nohup ./teamserver ip password /opt/Malleable-C2-Profiles/normal/amazon.profile >/dev/null 2>&1 &
  • Install Shaodowsocks
sudo apt-get update
sudo apt-get install python-gevent python-pip
sudo pip install shadowsocks
vi /etc/shadowsocks.json
{
    "server":"ip",
    "server_port":9999,
    "local_port":1080,
    "password":"[email protected]",
    "timeout":600,
    "method":"aes-256-ctr"
}
ssserver -c /etc/shadowsocks.json -d start
echo ssserver -c /etc/shadowsocks.json -d start >> /etc/rc.local
  • Linux终端连接超时设置
    echo "ClientAliveInterval 60" >>/etc/ssh/sshd_config&&echo "ClientAliveCountMax 3" >>/etc/ssh/sshd_config&&reboot

Leave a Reply