赞
踩
1.nmap
Latest stable release nmap-7.70-1.x86_64.rpm
2.cmake
3.hydra
4.SecLists
[root@144 /]# 安装必要的组件 [root@144 /]# yum -y install gcc libssh-devel openssl-devel Running transaction Installing : libssh-0.7.1-7.el7.x86_64 1/3 Installing : cmake-2.8.12.2-2.el7.x86_64 2/3 Installing : libssh-devel-0.7.1-7.el7.x86_64 3/3 Verifying : libssh-devel-0.7.1-7.el7.x86_64 1/3 Verifying : cmake-2.8.12.2-2.el7.x86_64 2/3 Verifying : libssh-0.7.1-7.el7.x86_64 3/3 Complete! [root@144 /]# 安装 hydra [root@144 /]# wget https://github.com/vanhauser-thc/thc-hydra/archive/master.zip [root@144 /]# unzip master.zip [root@144 /]# cd thc-hydra-master [root@144 /]# ./configure [root@144 /]# make && make install [root@144 /]# 安装 nmap [root@144 /]# yum install nmap
hydra ssh登录vps主机
[root@144 /]# hydra -l root -p xxxxxx -s 28977 xxx.xx.xxx.xxx ssh
Hydra v9.0 (c) 2019 by van Hauser/THC - Please do not use in military or secret service organizations, or for illegal purposes.
Hydra (https://github.com/vanhauser-thc/thc-hydra) starting at 2019-07-24 23:31:33
[WARNING] Many SSH configurations limit the number of parallel tasks, it is recommended to reduce the tasks: use -t 4
[WARNING] Restorefile (you have 10 seconds to abort... (use option -I to skip waiting)) from a previous session found, to prevent overwriting, ./hydra.restore
[DATA] max 1 task per 1 server, overall 1 task, 1 login try (l:1/p:1), ~1 try per task
[DATA] attacking ssh://xxx.xx.xxx.xxx :28977/
[28977][ssh] host: xxx.xx.xxx.xxx login: root password: xxxxxx
[root@144 hacker]# wget https://www.libssh.org/files/0.9/libssh-0.9.0.tar.xz
[root@144 hacker]# tar xf libssh-0.9.0.tar.xz
[root@144 hacker]# cd libssh-0.9.0
[root@144 libssh-0.9.0]# mkdir build
[root@144 libssh-0.9.0]# cd build/
[root@144 build]# ..表示上级目录,cmake需要上级目录的CMakeLists.txt
[root@144 build]# cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DWITH_SSH1=ON ..
-bash: cmake: command not found
[root@144 hacker]# wget https://cmake.org/files/v3.12/cmake-3.12.3.tar.gz
[root@144 hacker]# tar zxvf cmake-3.12.3.tar.gz
[root@144 hacker]# cd cmake-3.12.3
[root@144 cmake-3.12.3]# ./bootstrap --prefix=/usr/local
Error when bootstrapping CMake:
Cannot find a C++ compiler that supports both C++11 and the specified C++ flags.
Please specify one using environment variable CXX.
The C++ flags are "".
They can be changed using the environment variable CXXFLAGS.
See cmake_bootstrap.log for compilers attempted.
[root@144 hacker]# yum install g++
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。