TVT618

[Linux] Wordpresscan - Wordpress Security Scanner (Raw)

Jan 21st, 2018
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.84 KB | None | 0 0
  1. [Linux]
  2. Wordpresscan - WPScan rewritten in Python + some WPSeku ideas
  3.  
  4. Wordpresscan is a simple Wordpress Scanner written in Python based on the work of WPScan (Ruby version)
  5.  
  6. Disclaimer
  7. The author of this github is not responsible for misuse or for any damage that you may cause! You agree that you use this software at your own risk.
  8.  
  9. Install & Launch
  10. Install
  11. git clone https://github.com/swisskyrepo/Wordpresscan.git
  12. cd Wordpresscan
  13.  
  14. Virtualenv
  15. virtualenv .venv -p /usr/bin/python2.7
  16. source .venv/bin/activate
  17. pip install -r requirements.txt
  18.  
  19. Example
  20. Example 1 : Basic update and scan of a wordpress
  21. python main.py -u "http://localhost/wordpress" --update --random-agent
  22. -u : Url of the WordPress
  23. --update : Update the wpscan database
  24. --aggressive : Launch an aggressive version to scan for plugins/themes
  25. --random-agent : Use a random user-agent for this session
  26.  
  27. Example 2 : Basic bruteforce (option --brute, option --nocheck)
  28. * bruteforce customs usernames
  29. python main.py -u "http://127.0.0.1/wordpress/" --brute --usernames "admin,guest" --passwords-list fuzz/wordlist.lst
  30.  
  31. * bruteforce with usernames list
  32. python main.py -u "http://127.0.0.1/wordpress/" --brute --users-list fuzz/wordlist.lst --passwords-list fuzz/wordlist.lst
  33.  
  34. * bruteforce detected users
  35. python main.py -u "http://127.0.0.1/wordpress/" --brute --passwords-list fuzz/wordlist.lst
  36.  
  37. ╭─ πŸ‘» swissky@crashlab: ~/Github/Wordpresscan β€Ήmaster*β€Ί
  38. ╰─$ python main.py -u "http://127.0.0.1/wordpress/" --brute --users-list fuzz/wordlist.lst --passwords-list fuzz/wordlist.lst --nocheck
  39. _______________________________________________________________
  40. _ _ _
  41. | | | | | |
  42. | | | | ___ _ __ __| |_ __ _ __ ___ ___ ___ ___ __ _ _ __
  43. | |/\| |/ _ \| '__/ _` | '_ \| '__/ _ \/ __/ __|/ __/ _` | '_ \
  44. \ /\ / (_) | | | (_| | |_) | | | __/\__ \__ \ (_| (_| | | | |
  45. \/ \/ \___/|_| \__,_| .__/|_| \___||___/___/\___\__,_|_| |_|
  46. | |
  47. |_|
  48. WordPress scanner based on wpscan work - @pentest_swissky
  49. _______________________________________________________________
  50. [+] URL: http://127.0.0.1/wordpress/
  51.  
  52. [!] The Wordpress 'http://127.0.0.1/wordpress/readme.html' file exposing a version number: 4.4.7
  53. [i] Uploads directory has directory listing enabled : http://127.0.0.1/wordpress/wp-content/uploads/
  54. [i] Includes directory has directory listing enabled : http://127.0.0.1/wordpress/wp-includes/
  55.  
  56. [i] Bruteforcing all users
  57. [+] User found admin
  58. [+] Starting passwords bruteforce for admin
  59. Bruteforcing - β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
  60.  
  61. Example 3 : Thinking is overrated, this is aggressive, mostly not advised!
  62. python main.py -u "http://127.0.0.1/wordpress/" --fuzz
  63.  
  64. [i] Enumerating components from aggressive fuzzing ...
  65. [i] File: http://127.0.0.1/wordpress/license.txt - found
  66. [i] File: http://127.0.0.1/wordpress/readme.html - found
  67. [i] File: http://127.0.0.1/wordpress/wp-admin/admin-footer.php - found
  68. [i] File: http://127.0.0.1/wordpress/wp-admin/css/ - found
  69. [i] File: http://127.0.0.1/wordpress/wp-admin/admin-ajax.php - found
  70. [i] File: http://127.0.0.1/wordpress/wp-activate.php - found
  71. --fuzz : Will fuzz the website in order to detect as much file, themes and plugins as possible
  72.  
  73. Output example from a test environment
  74.  
  75. Download Wordpresscan
Advertisement
Add Comment
Please, Sign In to add comment