Python Script: Retrieve WordPress Version
- by Vince
-
in Blog
-
Hits: 1573
#!/usr/bin/python
import urllib2
print "[*] Target URL format = http://www.mydomain.com"
host = raw_input("[*] Enter target URL: ")
path = '/wp-links-opml.php'
combined = host + path
url = urllib2.urlopen(combined)
print
print ("fetching... ") + combined
html = url.readlines()
for line in html:
if 'generator' in line:
print
print line