SPARTA：用于网络渗透测试的 GUI 工具套件
网络渗透 扫描
![](/data/attachment/album/201803/13/094443y4dkm1jk7mkqkt94.png)


SPARTA 是使用 Python 开发的 GUI 应用程序，它是 Kali Linux 内置的网络渗透测试工具。它简化了扫描和枚举阶段，并更快速的得到结果。


SPARTA GUI 工具套件最擅长的事情是扫描和发现目标端口和运行的服务。


此外，作为枚举阶段的一部分功能，它提供对开放端口和服务的暴力攻击。


延伸阅读：[网络渗透检查清单](https://gbhackers.com/network-penetration-testing-checklist-examples/)


### 安装


请从 GitHub 上克隆最新版本的 SPARTA：



```
git clone https://github.com/secforce/sparta.git

```

或者，从 [这里](https://github.com/SECFORCE/sparta/archive/master.zip) 下载最新版本的 Zip 文件。



```
cd /usr/share/
git clone https://github.com/secforce/sparta.git

```

将 `sparta` 文件放到 `/usr/bin/` 目录下并赋于可运行权限。


在任意终端中输入 'sparta' 来启动应用程序。


### 网络渗透测试的范围


添加一个目标主机或者目标主机的列表到测试范围中，来发现一个组织的网络基础设备在安全方面的薄弱环节。


选择菜单条 - “File” -> “Add host(s) to scope”


[![Network Penetration Testing](/data/attachment/album/201803/13/094443vjrb2hn6ao27s7ju.png)](https://i0.wp.com/gbhackers.com/wp-content/uploads/2018/01/Screenshot-526.png?ssl=1)


[![Network Penetration Testing](/data/attachment/album/201803/13/094445t5745qbdx5nns554.png)](https://i2.wp.com/gbhackers.com/wp-content/uploads/2018/01/Screenshot-527.png?ssl=1)


上图展示了在扫描范围中添加 IP 地址。根据你网络的具体情况，你可以添加一个 IP 地址的范围去扫描。 扫描范围添加之后，Nmap 将开始扫描，并很快得到结果，扫描阶段结束。


### 打开的端口及服务


Nmap 扫描结果提供了目标上开放的端口和服务。


[![Network Penetration Testing](/data/attachment/album/201803/13/094446x52jg2vg1gv55hgb.png)](https://i2.wp.com/gbhackers.com/wp-content/uploads/2018/01/Screenshot-528.png?ssl=1)


上图展示了扫描发现的目标操作系统、开发的端口和服务。


### 在开放端口上实施暴力攻击


我们来通过 445 端口的服务器消息块（SMB）协议来暴力获取用户列表和它们的有效密码。


[![Network Penetration Testing](/data/attachment/album/201803/13/094459p0x71pbfsp6wb0sp.png)](https://i1.wp.com/gbhackers.com/wp-content/uploads/2018/01/Screenshot-529.png?ssl=1)


右键并选择 “Send to Brute” 选项。也可以选择发现的目标上的开放端口和服务。


浏览和在用户名密码框中添加字典文件。


[![Network Penetration Testing](/data/attachment/album/201803/13/094622harvaalrvvlx7v8x.png)](https://i2.wp.com/gbhackers.com/wp-content/uploads/2018/01/Screenshot-531.png?ssl=1)


点击 “Run” 去启动对目标的暴力攻击。上图展示了对目标 IP 地址进行的暴力攻击取得成功，找到了有效的密码。


在 Windows 中失败的登陆尝试总是被记录到事件日志中。


密码每 15 到 30 天改变一次的策略是非常好的一个实践经验。


强烈建议使用强密码策略。密码锁定策略是阻止这种暴力攻击的最佳方法之一（ 5 次失败的登录尝试之后将锁定帐户）。


将关键业务资产整合到 SIEM（ 安全冲突 & 事件管理）中将尽可能快地检测到这类攻击行为。


SPARTA 对渗透测试的扫描和枚举阶段来说是一个非常省时的 GUI 工具套件。SPARTA 可以扫描和暴力破解各种协议。它有许多的功能！祝你测试顺利！




---


via: <https://gbhackers.com/sparta-network-penetration-testing-gui-toolkit/>


作者：[Balaganesh](https://gbhackers.com/author/balaganesh/) 译者：[qhwdw](https://github.com/qhwdw) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
SPARTA is a GUI application developed with Python and builds Network Penetration Testing [Kali Linux tool](https://gbhackers.com/anonymous-ddos-a-website-using-kali-linux/). It simplifies the scanning and enumeration phase with faster results.

The best thing about the **SPARTA GUI Toolkit** it scans and detects the service running on the target port.

Also, it provides **a Bruteforce attack** for scanned open ports and services as a part of the enumeration phase.

** Also Read: ****Most Important Network Penetration Testing Checklist**

**Installation**

Please clone the latest version of SPARTA from GitHub:

*git clone https://github.com/secforce/sparta.git*

Alternatively, download the latest zip file here.

```
cd /usr/share/
git clone https://github.com/secforce/sparta.git
Place the "sparta" file in /usr/bin/ and make it executable.
Type 'sparta' in any terminal to launch the application.
```


**The Scope of Network Penetration Testing Work:**

- Organizations’ security weaknesses in their network infrastructures are identified by a list of hosts or targeted hosts and add them to the scope.
- Select menu bar – File > Add host(s) to scope

![Network Penetration Testing](data:image/gif;base64,R0lGODdhAQABAPAAAMPDwwAAACwAAAAAAQABAAACAkQBADs=)


![Network Penetration Testing](https://gbhackers.com/wp-content/uploads/2018/01/Screenshot-526.png)

![Network Penetration Testing](data:image/gif;base64,R0lGODdhAQABAPAAAMPDwwAAACwAAAAAAQABAAACAkQBADs=)


![Network Penetration Testing](https://gbhackers.com/wp-content/uploads/2018/01/Screenshot-527.png)

- The above figures show target Ip is added to the scope. Your network can add a range of IPs to scan.
- After adding Nmap scan will begin and the results will be very faster. now scanning phase is done.

**Open Ports & Services:**

- Nmap results will provide target open ports and services.

![](data:image/gif;base64,R0lGODdhAQABAPAAAMPDwwAAACwAAAAAAQABAAACAkQBADs=)


![](https://gbhackers.com/wp-content/uploads/2018/01/Screenshot-528.png)

- The above figure shows that the target operating system, Open ports, and services are discovered as scan results.

**Brute Force Attack on Open Ports:**

- Let us Brute force Server Message Block (SMB) via port 445 to enumerate the list of users and their valid passwords.

![](data:image/gif;base64,R0lGODdhAQABAPAAAMPDwwAAACwAAAAAAQABAAACAkQBADs=)


![](https://gbhackers.com/wp-content/uploads/2018/01/Screenshot-529.png)

- Right-click and Select the option Send to Brute. Also, select discovered Open ports and services on target.
- Browse and add dictionary files for Username and password fields.

![Network Penetration Testing](data:image/gif;base64,R0lGODdhAQABAPAAAMPDwwAAACwAAAAAAQABAAACAkQBADs=)


![Network Penetration Testing](https://gbhackers.com/wp-content/uploads/2018/01/Screenshot-531.png)

- Click Run to start the Brute force attack on the target. The above Figure shows Brute force attack is successfully completed on the target IP and the valid password is Found!
- Always think failed login attempts will be logged as Event logs in Windows.
- Password changing policy should be 15 to 30 days will be a good practice.
- Always recommended to use a strong password as per policy.
- Password lockout policy is a good one to stop brute force attacks (After 5 failure attempts account will be locked)
- The integration of business-critical assets to SIEM( security incident & Event Management) will detect these kinds of attacks as soon as possible.

SPARTA is timing saving GUI Toolkit for pen-testers for the scanning and enumeration phase.SPARTA Scans and Bruteforce various protocols. It has many more features! Happy pentesting.

**Looking for the **Best WAF Solutions for your web applications environment?? Register for the Free WAF webinar & explore the expert’s** thoughts and Choose the Best one.. Very limited seats available.. grab it here at ProPhaze.**

**You can follow us on Linkedin, Twitter, and **

**Facebook**

**for daily Cybersecurity updates also you can take the Best Cybersecurity course online to keep yourself updated**.

**Also, Read**

[Microsoft Launches Identity Bounty Program That Rewards Up to $100,000](https://gbhackers.com/microsoft-launches-identity-bounty-program/)