O'Reilly logo

Kali Linux 2: Windows Penetration Testing by Bo Weaver, Wolf Halton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required