r los productos con un descuento dado.
* pass-the-cookie
* robar cookies para logearse en una... sos de Burp Suite
=== Lab 1 Module 14: Footprint the Web Infrastructure
==== Task 1: Perform Web Appli... erform a Whois lookup to gather information about the IP address of the web server and the complete information about the domain such as its registration de
ng a non-existing/malformed address
We’ve reached the point in which we are ready to gather all new fac... know how HTTP works, how it’ is mounted on top of the TCP stack and how the HTTP server is able to do much more for us than just store and publish fancy ima... for storing and processing information. Moreover, the structure of the database (or the service) may va
ls:
* we want to write **a program which reads the address of a WWW site** (e.g., pythoninstitute.org) using the standard ''input()'' function and **fetches the root document** (the main HTML document of the WWW site) of the specified site;
* the program **outp
are different content. You’ve surely noticed that the data sent to those applications are still availab... ossible?
Data is simply information about users, the contents of their posts, and comments. The data are all kinds of information that we can send to the application. During registration, you send the ap
PEP 257?
PEP 257 is a document created as part of the Python Developer's Guide, which makes an attempt to standardize the high-level structure of docstrings. It outlines the **conventions**, best practices, and semantics (no... de using docstrings. In short, it tries to answer the following two questions:
- What should Python
mer, you'll have to read or create a data file in the XML format. Soon, doing that will be a piece of cake.
The standard Python library offers some interesting m... lent choice for people who have never worked with the Document Object Model (DOM) before.
* **xml.dom.minidom** – is the minimum implementation of the Document Object Mod
= 1.6 Making life easier with the requests module
We have reached the point where we can start the final stage of our journey – we know enough to communicate with the web service using JSON as an information carrier.
= 2.1 PEP 20 – The Zen of Python
The **Zen of Python** is a collection of 19 aphorisms, which reflect the philosophy behind Python, its guiding principles,... gn.
Tim Peters, a long time major contributor to the Python programming language and Python community,
= 2.4 Decorators
A decorator is one of the design patterns that describes the structure of related objects. Python is able to decorate functions, methods, and classes.
The decorator's operation is based on wrapping the original function with a new "decorating" function (or
m/whois (here, we are using Mozilla Firefox).
- The Whois Domain Lookup page appears; type www.oasis-open.org in the search field and click SEARCH. \\ {{:info:cursos:... - Oasis is an organization that has published the MQTT v5.0 standard, which represents a significant leap in the refinement and capability of the messaging protoc
= 4.1 Logging in Python
== Logging in Python
The Python Standard Library provides a useful module called ''logging'' to log events occurring in the application. Logs are most often used to find the cause of an error. By default, Python and its modules provide many logs informing you of the causes of errors. However, it's good practice to
objects that represent errors which occur during the execution of a program that disrupts the normal flow of the program's instructions.
Plan for the module:
* short introduction to exceptions;
* review of the
fer documents of virtually any type. For example, the document format produced by MS Office applications (the newer one with file extensions ending with x like... We only want to show you how it’s built and what the most important differences between XML and JSON a... intriguing how different they are, although both the solutions were invented for nearly the same purpo
t:
* object: label vs. identity vs. value;
* the id() function and the is operand;
* shallow and deep copies of the objects.
It’s hard to imagine writing a piece of Pytho... and possible ways of copying them.
When you spot the following clause:
<code python>
a_list = [ 1, 'Ne
of acronyms which plays a very important role in the IT industry. Okay, that’s enough jokes about TLA’s for one course, all the more that GUI is present nearly everywhere. Look ... ) use it to display a GUI and to communicate with the user. They communicate bidirectionally.
GUI stan... hical User Interface. In this three-word acronym, the User seems to be the most obvious part. The word