Skip to Content
Python for Offensive PenTest
book

Python for Offensive PenTest

by Hussam Khrais
April 2018
Intermediate to advanced content levelIntermediate to advanced
176 pages
4h 16m
English
Packt Publishing
Content preview from Python for Offensive PenTest

Parsing a tweet in three lines

For this demonstration, I created an account on Twitter. My profile name is @HussamKhrais.

So, I will log into my Twitter account from the Kali machine and send a tweet, and we will see how easy it is to grab that tweet from the target machine. So let's get started by first composing a new tweet (for example Hello from kali python) and log out from the account. Let's now have a quick look at the HTML page that gets created after posting the tweet, by viewing the page source. Search and find the the tweet we just made. Then, if we scroll to the left a little bit, notice the HTML meta tag parameters:

<meta name="description" content="The latest Tweets from Hussam Khrais (@HussamKhrais): &quot;Hello from kali python&quot;"> ...
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

Python Penetration Testing Cookbook

Python Penetration Testing Cookbook

Rejah Rehim

Publisher Resources

ISBN: 9781788838979Supplemental Content