TVT618

[Linux] Wordpresscan - WPScan rewritten in Python + some WPS

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