wpforms-crawler: support custom config.sh~
This commit is contained in:
parent
7e8daca015
commit
586b087e85
|
@ -1,3 +1,14 @@
|
||||||
[wpforms](https://wpforms.com/) uses a counter for `ENTRY_ID`s and seems to be vulnerable against CSRF :(
|
[wpforms](https://wpforms.com/) uses a counter for `ENTRY_ID`s and seems to be vulnerable against CSRF :(
|
||||||
|
|
||||||
Once we have obtained a cookie, crawling is trivial…
|
Once we have obtained a cookie, crawling is trivial…
|
||||||
|
|
||||||
|
|
||||||
|
## configuration && usage
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cp config.sh{,~}
|
||||||
|
edit config.sh~
|
||||||
|
|
||||||
|
. config.sh~ && ./download.sh
|
||||||
|
./merge.sh
|
||||||
|
```
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
## common
|
## common
|
||||||
|
|
||||||
DATA_DIR="./data"
|
export DATA_DIR=${DATA_DIR:='./data'}
|
||||||
|
|
||||||
## download
|
## download
|
||||||
|
|
||||||
START=500 #57
|
export START=${START:=500} #57
|
||||||
END=500 #1000
|
export END=${END:=1000}
|
||||||
|
|
||||||
WP_ADMIN_URL='https://example.com/wp-admin/admin.php'
|
export WP_ADMIN_URL=${WP_ADMIN_URL:='https://example.com/wp-admin/admin.php'}
|
||||||
FORM_ID=16993
|
export FORM_ID=${FORM_ID:=16993}
|
||||||
NONCE='caffeeeeee'
|
export NONCE=${NONCE:='caffeeeeee'} ## it will change and needs be replaced
|
||||||
AUTHORIZATION_HEADER='authorization: Basic Base64EncodedDataaaaaaaaaa=='
|
export AUTHORIZATION_HEADER=${AUTHORIZATION_HEADER:='authorization: Basic Base64EncodedDataaaaaaaaaa=='}
|
||||||
COOKIE_HEADER='cookie: wordpress_sec_thisCopiedFromTheBrower; wordpress_logged_in_; some_other_cookies'
|
export COOKIE_HEADER=${COOKIE_HEADER:='cookie: wordpress_sec_thisCopiedFromTheBrower; wordpress_logged_in_; some_other_cookies'}
|
||||||
|
|
||||||
## HEADERS_THAT_SEEM_TO_BE_NOT_REQUIRED
|
## HEADERS_THAT_SEEM_TO_BE_NOT_REQUIRED
|
||||||
#-H 'authority: example.com' \
|
#-H 'authority: example.com' \
|
||||||
|
@ -20,7 +20,7 @@ COOKIE_HEADER='cookie: wordpress_sec_thisCopiedFromTheBrower; wordpress_logged_i
|
||||||
|
|
||||||
## merge
|
## merge
|
||||||
|
|
||||||
OUT="/tmp/example.csv"
|
export UT=${OUT:="/tmp/example.csv"}
|
||||||
|
|
||||||
## setup
|
## setup
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue