官术网_书友最值得收藏!

Setting up and maintaining the Command and Control Server

After gathering as much intelligence as possible over the last two days, it is now time to start thinking about the penetration test itself, and how we will execute it. On Day 4, we will start the actual testing or penetrate the various systems that we found during our investigational phase, but before we get there, there are still some items to think about. First, where do we plan to place any of the evidence that is acquired during the test? We don't want to leave it on the server in case it is found and potentially changed (or the vulnerability is patched before we can report it). We may also need to perform some off-server analysis depending on the device we have within the network running the test. This is where a command and control (C&C) server comes into play.

In this chapter, we will discuss the use of a C&C server within a penetration-testing exercise and how it plays a pivotal role. We will also dive into various options that exist for a C&C server. This will allow you to have options as to where you put it as well as what it is. Finally, we will discuss setting up, managing, and monitoring as well as using this C&C server effectively and securely. This will include automating some tasks as well as file utilities to make sure we stay under the radar. We will be covering the following topics in this chapter:

  • C&C requirements
  • Setting up secure connectivity
  • Inside server SSH setup
  • C&C server SSH setup
  • Setting up a reverse SSH tunnel
  • Stunnel to the rescue verify the automation automating? evidence collection file utilities

C&C server? setup is very much dependent on the penetration tester. Some, like me, prefer to have a centralized C&C server, with smaller devices within the network to perform tests. Others may choose to just use their more powerful devices for both testing and analysis. It's really up to the penetration tester's personal style. The following section reflects my personal style; however, you should definitely explore other ways based on your own personal preferences.

主站蜘蛛池模板: 崇左市| 江安县| 商水县| 宁蒗| 渭源县| 武清区| 桃园县| 景宁| 潼关县| 休宁县| 万安县| 新邵县| 南郑县| 三都| 科尔| 长岛县| 中阳县| 始兴县| 长阳| 承德市| 富裕县| 大理市| 舟山市| 大余县| 措美县| 大丰市| 西盟| 延长县| 卓尼县| 会昌县| 堆龙德庆县| 鲁山县| 灵台县| 德清县| 黎平县| 石家庄市| 康平县| 宁南县| 青阳县| 嘉峪关市| 平南县|