Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Machine Learning for Penetration Testing

You're reading from  Mastering Machine Learning for Penetration Testing

Product type Book
Published in Jun 2018
Publisher Packt
ISBN-13 9781788997409
Pages 276 pages
Edition 1st Edition
Languages
Author (1):
Chiheb Chebbi Chiheb Chebbi
Profile icon Chiheb Chebbi
Toc

Table of Contents (13) Chapters close

Preface 1. Introduction to Machine Learning in Pentesting 2. Phishing Domain Detection 3. Malware Detection with API Calls and PE Headers 4. Malware Detection with Deep Learning 5. Botnet Detection with Machine Learning 6. Machine Learning in Anomaly Detection Systems 7. Detecting Advanced Persistent Threats 8. Evading Intrusion Detection Systems 9. Bypassing Machine Learning Malware Detectors 10. Best Practices for Machine Learning and Feature Engineering 11. Assessments 12. Other Books You May Enjoy

Implementing neural networks in Python

Classic computer programs are great when it comes to compute operations based on a sequence of instructions and arithmetic, but they face difficulties and challenges in many other cases; for example, handwriting-recognition. As a warm up, let's build a handwritten digit recognizer to take the opportunity to install the Python libraries needed in the next sections and learn how to build and implement our first neural network in Python. To train the model, we need to feed it with data. In our implementation, we are going to use the MNIST dataset:

First, let's install the keras library using the pip install command, as shown here:

# pip install keras

Then, install TensorFlow (tensorflow) using the following command:

# pip install tensorflow

And finally, install np_utils:

# pip install np_utils

Open the Python command-line interface...

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 $15.99/month. Cancel anytime