Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Kali Linux 2:  Windows Penetration Testing

You're reading from   Kali Linux 2: Windows Penetration Testing Kali Linux: a complete pentesting toolkit facilitating smooth backtracking for working hackers

Arrow left icon
Product type Paperback
Published in Jun 2016
Publisher Packt
ISBN-13 9781782168492
Length 422 pages
Edition 1st Edition
Arrow right icon
Toc

Table of Contents (12) Chapters Close

Preface 1. Sharpening the Saw FREE CHAPTER 2. Information Gathering and Vulnerability Assessment 3. Exploitation Tools (Pwnage) 4. Web Application Exploitation 5. Sniffing and Spoofing 6. Password Attacks 7. Windows Privilege Escalation 8. Maintaining Remote Access 9. Reverse Engineering and Stress Testing 10. Forensics Index

Working with Boolean logic


Computer programs are made up data structures which use conditions and decisions that bring the desired outputs. We will use Python notation here, as it is simple, and you may have seen it before. The basic data structures are:

  • Iterators such as while loops and for loops. An iterator loops as many times as it is told to, running other commands each time it goes around

  • Decision Points such as If structures and Case structures. The preceding image is a diagram of a set of nested If structures

    Boolean Operators

     

    Notation

    Description

    X == Y

    X is equivalent to Y. This is not always a numeric value set

    X != Y

    X is not equivalent to Y

    X <= Y

    X is smaller than OR equivalent of Y

    X >= Y

    X is greater than or equivalent of Y

    X < Y

    X is less than Y

    X > Y

    X is greater than Y

  • X and Y are both true

  • X and Y are both false

  • Either X or Y is true

  • Anything but X

  • Anything but Y

    Boolean Variables

     

    Variable

    Description

    AND

    Produces a Boolean comparison...

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