PATCH//NOTES Open it in the app
← All hands-on practice
Ethical hacking · 10 min

Read the automation script

A teammate wrote a Python script to check the client's admin pages for vendor default logins. Read it before anyone runs it.

Start it: free, in your browser, no account

What you will do

  1. Which language is this, and what gives it away?
  2. One target is out of scope. Which address?
  3. How does the script decide that a login worked?
  4. Why is there a time.sleep(DELAY) inside the loop?
  5. After you remove the out-of-scope target, how many login attempts will it make, and how long will it take?
  6. The test laptop is Windows with no Python. Which language would you rewrite it in, to use what's already there?

Exam objectives it practises

  • CompTIA A+ Core 2 4.8 Scripting basics
  • CompTIA PenTest+ 4.10 Scripting to automate attacks

Short and simplified. Real tools also handle sign-in tokens, errors and logging; the reading skills are the same.