Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- #------------------------------------------------
- import time
- import httplib
- #------------------------------------------------
- #~ Joomla Components Scanner
- #~ By YASSINOX.TN
- #~ Changing Rights Don't make you the coder
- #------------------------------------------------
- def logo():
- print '''
- .
- \ | /
- _\|/_
- .' ' ' '. ___
- _.|.--.--.|.___.--'___`-.
- .'.'|| | ||`----'"` ``'`
- .'.' ||()|()||
- .___..-'.' / \ Joomla Components Scanner
- `----'"` / .-. \ (c) Fadly31337
- (.'.(___).'.)
- `.__.-.__.'
- |_| |_|
- `.`-'.'
- `"`
- '''
- logo()
- #------------------------------------------------
- Notfound = [404,401,400,403,406,301]
- sitesfile = raw_input("sites list path >")
- compath = raw_input("Components List Path >")
- #------------------------------------------------
- def grab(site,com):
- global resp
- try:
- conn = httplib.HTTPConnection(site)
- conn.request('HEAD', "/index.php?option=" + com)
- resp = conn.getresponse().status
- except(), message:
- print "Cant Connect :",message
- pass
- #------------------------------------------------
- def timer():
- now = time.localtime(time.time())
- return time.asctime(now)
- #------------------------------------------------
- def main():
- sites = open(sitesfile).readlines()
- compo = open(compath).readlines()
- for site in sites:
- site = site.rstrip()
- for com in compo:
- com = com.rstrip()
- grab(site,com)
- if resp not in Notfound:
- print "+----------------------------------------+"
- print "| current site :" + site
- print "| Found component : " + com
- #----------------------------------------------------------------
- main()
Add Comment
Please, Sign In to add comment