Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Penetration Testing with Kali NetHunter

You're reading from   Hands-On Penetration Testing with Kali NetHunter Spy on and protect vulnerable ecosystems using the power of Kali Linux for pentesting on the go

Arrow left icon
Product type Paperback
Published in Feb 2019
Publisher
ISBN-13 9781788995177
Length 302 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
Sean-Philip Oriyano Sean-Philip Oriyano
Author Profile Icon Sean-Philip Oriyano
Sean-Philip Oriyano
Glen D. Singh Glen D. Singh
Author Profile Icon Glen D. Singh
Glen D. Singh
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Section 1: Exploring Kali NetHunter FREE CHAPTER
2. Introduction to Kali NetHunter 3. Understanding the Phases of the Pentesting Process 4. Section 2: Common Pentesting Tasks and Tools
5. Intelligence-Gathering Tools 6. Scanning and Enumeration Tools 7. Penetrating the Target 8. Clearing Tracks and Removing Evidence from a Target 9. Section 3: Advanced Pentesting Tasks and Tools
10. Packet Sniffing and Traffic Analysis 11. Targeting Wireless Devices and Networks 12. Avoiding Detection 13. Hardening Techniques and Countermeasures 14. Building a Lab 15. Selecting a Kali Device and Hardware 16. Other Books You May Enjoy

Clearing logs in Linux

As with all operating systems, logs are also generated and stored on Linux-based systems. Log files are the records of all activities that took place on a system. The following are the general locations of the Linux log files:

The following are additional log locations on Linux systems:

  • Example 1: Clearing logs using null

In this example, we are going to use null, a non-existent object, to remove the contents of a file. We are going to clear the logs of the Apache access.log file on a Linux system. A null object is an entity without any attributes or characteristics in an operating system.

To discover the location of a file, use the locate command followed by the filename. In this exercise, we use the locate access.log command to show us the location of all files that contain the access.log string sequence:

Additionally, we can use discover...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image