- Podcasts
- CyberSecurity Summary
- Beginning Ethical Hacking with Python
About this episodeAn introductory guide to ethical hacking using the Python 3 programming language, specifically for those with no prior experience. It…
You can listen and download our episodes for free on more than 10 different platforms:
https://linktr.ee/cyber_security_summary
Get the Book now from Amazon:
https://www.amazon.com/Beginning-Ethical-Hacking-with-Python/dp/1484240138?&linkCode=ll2&tag=cvthunderx-20&linkId=95e3f23c670a732581505e8f89f7ea37&language=en_US&ref_=as_li_ss_tl
Discover our free courses in tech and cybersecurity, Start learning today:
https://linktr.ee/cybercode_academy
Transcript
From the publisherThis transcript comes from the podcast’s own feed, shown as the publisher wrote it.
Beginning Ethical Hacking with Python
What if you could break into computer systems, completely shatter their defenses and bypass their security, but not as a criminal facing twenty years in prison. Right doing it legally, exactly doing it is a highly paid, perfectly legal security expert. Today we are opening some jeeps and it has manual beginning ethical hacking with Python. And the mission for this deep dive is to really uncover the foundational mindset of an ethical hacker.
Right, So imagine you run a network scan and it outputs fifty thousand lines of active system sources and IP addresses just a wall of text, yeah, completely unreadable. But if you pipe that massive output directly into grap and tell it to search for the word SDRC, you instantly filter all that noise.
Right right, So say you have a variable set to the number one, and your script adds one to it to make it too. Python doesn't just quietly change the value of the original object in memory, doesn't. No, It actually destroys the old object and creates a brand new object with a brand new ID to hold the number two.
I actually have to challenge this though, If you are just writing a quick script for yourself, why put so much effort into gracefully catching errors. I mean, if a network socket times out or the logic is flawed, why not just let the script crash, read the red error message in the terminal, fix the code, and run it again.
Stealth. You want the script to silently log the failure locally on your machine and quietly move on to the next port without ever tipping off the target. Yes, but when you are silently pulling down all that data, you need a way to actually make sense of it. If catching errors keeps our scripts quiet, how do we actually find what we're looking for in all the noise we just quietly downloaded. That's the next challenge, because we need a way to filter gigabytes of data instantly, which requires regular expressions or the remodule.
Right, if you send the walk like a robot command to an instance of the robot class. The robot simply walks. That is just its natural state of locomotion, right, But if you send that exact same command to an instance of the human class, the human behaves completely differently. They perform a stiff mechanical imitation of a robot exactly.
Because it achieves loose coupling, it allows you to build highly modular attack and defense tools. Let's say you build a massive automated network scanning application that targets five different types of operating systems. Okay, if one of those targets suddenly updates its firewall architecture, you don't have to tear apart and rewrite your entire framework.
So what happens when an ethical hacker takes that mindset out of the code editor and starts viewing the entire digital world this way? If the local networks you connect to, the global routers you rely on, and even the human users interacting with those systems are all fundamentally just objects with attributes that can be manipulated, inherited, or spoofed. How does adopting this object oriented worldview change how you perceive the hidden vulnerabilities in the technology you use every single day?
