View difference between Paste ID: 6miMyEM9 and LczpiAUt
SHOW: | | - or go back to the newest paste.
1
#!/usr/bin/python
2
#-*-coding:utf-8-*-
3-
# Coded By Deray
3+
4
try:
5
    import requests
6
except:
7
    os.system('pip2 install requests;pip;install requests')
8
print " "*5+"[+] Simple Wordpress Users Enumerator [+]\n"+" "*5+"[+]"+" "*10+"Coded By Deray"+" "*11+"[+]\n\n"
9
find=""
10
while True:
11
	url=raw_input('url> ')
12
	if url == "":
13
		pass
14
	else:
15
		print "[*] Checking ..."
16
		try:
17
			find=requests.get(''+url+'/wp-json/wp/v2/users').text
18
		except:
19
			print "[-] Ussage: http://site.com"
20
			break
21
		result=re.findall('name":"(.*?)"',find)
22
		print "="*30
23
		print "Possible Username Found."
24
		print "="*30
25
		for k in result:
26
			print "[+]",k
27
		break