Skip to Content
Practical Web Penetration Testing
book

Practical Web Penetration Testing

by Gus Khawaja
June 2018
Intermediate to advanced
294 pages
7h 5m
English
Packt Publishing
Content preview from Practical Web Penetration Testing

Making an if decision

Operator

Description

Example

if

Makes a decision based on the operands

if service == 80: print 'HTTP'

if-else

Takes a different action after an if decision

if service == 80:

print 'HTTP'

else:

print 'Not HTTP'

if-elif

Makes multiple sequential decisions

if service == 80:

print 'HTTP'

elif service == 443:

print 'TLS'

else:

print 'Not HTTP or TLS'

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Web Penetration Testing with Metasploit

Hands-On Web Penetration Testing with Metasploit

Harpreet Singh, Himanshu Sharma
Penetration Testing

Penetration Testing

Georgia Weidman

Publisher Resources

ISBN: 9781788624039Supplemental Content