CS-PRO-C224: What Is Our GOAL For This MODULE?
CS-PRO-C224: What Is Our GOAL For This MODULE?
PHISHING-1
© 2021 The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
CS-PRO-C224
● import jsonify : Handles “JSON” data properly using Flask's jsonify() method
● The debug parameter is set to true. This will help track down possible Python
errors on the web page
3. Create the Flask class, and create a new instance of it. And pass the argument, the
“_name_ “.Flask needs this information so it knows where to look for resources such
as templates and static files.
● With “route()”, we tell Flask which URL should run our function.
● Next, we are creating a function “index” that returns the (index.html) that will
be created later to design our webpage The function is mapped to the home
using '/' URL. This means when the user navigates to “localhost:5000”, the
© 2021 The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
CS-PRO-C224
home function will run and the output will be displayed on the webpage.
4. In the next step, we will create the login function, whose primary function is to
retrieve the username and password and to store the same in the csv format
● Initialize variable “username” which will request for json data using get ()
method. get() is used to request data from a specified resource.
● Initialize variable “password” which will request for json data using get ()
method
● By using open() we can access csv files, and by using "a+" we can append
usernames and passwords inside csv files.
● "CSV" or (Comma-separated values) files are text files that contain a list of
values (or fields) separated by commas. CSV is a common data exchange
format used by many applications., HTML, JSON and others are also common
data exchange formats.
● For writing data inside csv files will use “writer()”
● CSV represents data in tabular form and we want to write data in row format
by using writerow() method
© 2021 The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
CS-PRO-C224
What’s next?
In the next class, you will be learning more about phishing
© 2021 The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.