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

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.

主站蜘蛛池模板: 股票| 定结县| 开化县| 漠河县| 东乡| 五华县| 泊头市| 黄石市| 曲沃县| 福州市| 邵东县| 饶平县| 乳源| 乌兰浩特市| 延寿县| 上林县| 明星| 丰镇市| 鸡东县| 上高县| 五莲县| 松阳县| 邢台市| 油尖旺区| 灵丘县| 康保县| 高密市| 垦利县| 内黄县| 克拉玛依市| 深水埗区| 子洲县| 鹿邑县| 阿尔山市| 澄江县| 安福县| 寿宁县| 河东区| 正阳县| 马龙县| 怀宁县|