Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Kali Linux CTF Blueprints

You're reading from  Kali Linux CTF Blueprints

Product type Book
Published in Jul 2014
Publisher Packt
ISBN-13 9781783985982
Pages 190 pages
Edition 1st Edition
Languages
Author (1):
Cameron Buchanan Cameron Buchanan
Profile icon Cameron Buchanan

Table of Contents (14) Chapters

Kali Linux CTF Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Microsoft Environments 2. Linux Environments 3. Wireless and Mobile 4. Social Engineering 5. Cryptographic Projects 6. Red Teaming Appendix Index

Scenario 2 – encode + Python = merry hell


Having covered the basics, now we move onto something a bit more interesting and complicated. String manipulation can be an interesting way to create unique encoding methods. A simple way of doing this is using the string library to perform simple transforms on the text.

This is not cryptographically secure, but it does teach good decoding skills and can be easily edited to create new substitution ciphers. Please don't ever use this method to make legitimate solutions. This is, by far, one of the worst ways of doing things. It's a prime example of security through obscurity and therefore flawed in every aspect.

Setup

The script that we're going to use is really basic and can be found in the next snippet. It doesn't require any extra downloads or modules, but it is designed to work in Python 2.7 as the maketrans method has been replaced in 3.x. Don't copy and paste the script from the book. That will result in errors. The script is as follows:

import...
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}