HTTP
If your penetration testing works, you may want to have a web server for various reasons, such as to serve malicious web application scripts. In Kali Linux, there is already an Apache web server installed; you just need to start the service.
The following are the steps that are required to activate your HTTP server in Kali Linux:
- To start the Apache HTTP service, open a command line Terminal and type the following command to start the Apache server:
service apache2 start
- After this, you can browse to the web page at 127.0.0.1; it will display the It works! page by default:

To stop the Apache HTTP service, perform the following steps:
- Open a command-line Terminal and type the following command to stop the Apache server:
service apache2 stop
Remember that the previous command will not survive boot up. After bootup, you need to give the command again. Fortunately, there is a way to start the Apache HTTP service automatically after the Kali Linux boots up by providing the update-rc.d apache2 defaults command.
- The command will add the apache2 service to be started on booting up.
推薦閱讀
- Securing Blockchain Networks like Ethereum and Hyperledger Fabric
- 零信任網絡:在不可信網絡中構建安全系統
- 信息系統安全檢測與風險評估
- 網絡安全應急管理與技術實踐
- Web安全與攻防入門很輕松(實戰超值版)
- 防火墻技術與應用(第2版)
- Kali Linux Network Scanning Cookbook(Second Edition)
- 數據安全與隱私計算(第3版)
- Building a Home Security System with BeagleBone
- End to End GUI Development with Qt5
- 數據保護:工作負載的可恢復性
- 無線傳感器網絡安全與加權復雜網絡抗毀性建模分析
- 黑客攻防實戰從入門到精通
- CTF特訓營:技術詳解、解題方法與競賽技巧
- 云計算安全技術與應用