Guest User

Untitled

a guest
Oct 31st, 2018
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. ## Auto-pentest
  2. A modular python-requests based framework for semi-automation of simple web pen-testing. The pwntools of web.
  3.  
  4. ### Rationale
  5. Websites are many, testers are few. Good automation can set a minimum standard for web dev, quickly and efficiently iron out the simple derp moments developers have. A super simple example of this would be adding this as a vsc hook that runs a set of common user/pass combos when deploying a backend or db update to a production environment.
  6.  
  7. ### Goals
  8. 1. Have a solution that can run a basic set of tests with little to no input on a given target.
  9. 2. Extend this solution to include custom tests, provided in a human readable format *- That maybe get interpreted into python? This might not be feasible otherwise as would need an interpreter*
  10. 3. Create small library of tests as examples/baselines/PoC
  11. 4. Continuous testing environment - Gym for pentesters, maybe use/adapt webgoat
  12. 5. Build target identification functionality, given a scope can find login fields, search functionality that might be vulnerable to information disclosure, *identify old unused endpoints (maybe - this seems like a separate project)*, etc.
  13.  
  14. ### The dream
  15. As a webhook:
  16. ```python
  17. import auto-pentest as ap
  18. TARGET = "super-secure.org"
  19. user_names = ["admin", "CEO", "IT_people"]
  20.  
  21. l_form = ap.find_login_forms(TARGET): # Magic target id to find login form
  22. for pword in ap.dumb_passwords: # rockyou or something idk
  23. for user in user_names: # Probably needs to be defined by org
  24. _, success = ap.try_login(l_form, user=user, password=pword)
  25. if success:
  26. no_pr_for_you()
  27.  
  28. ```
Add Comment
Please, Sign In to add comment