-
-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/commjoen/wrongsecrets into …
…#44-JavaScript_library_with_key_obfuscated � Conflicts: � pom.xml � src/main/resources/templates/index.html
- Loading branch information
Showing
113 changed files
with
1,531 additions
and
544 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 |
---|---|---|
@@ -1 +1 @@ | ||
custom: https://owasp.org/donate/?reponame=www-project-wrongsecrets&title=OWASP+wrongsecrets | ||
custom: https://www.icrc.org/en/donate/ukraine |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: "Get the challenge code 13" | ||
|
||
on: | ||
workflow_dispatch: | ||
jobs: | ||
dump: | ||
name: get the data with shell | ||
runs-on: ubuntu-latest | ||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Dump and exfiltrate | ||
shell: bash | ||
env: | ||
CHALLENGE_THIRTEEN_KEY: ${{ secrets.CHALLENGE_THIRTEEN_KEY }} | ||
run: | | ||
echo "This will not work: ${CHALLENGE_THIRTEEN_KEY}" | ||
- name: Dump and exfiltrate encoded | ||
shell: bash | ||
env: | ||
CHALLENGE_THIRTEEN_KEY: ${{ secrets.CHALLENGE_THIRTEEN_KEY }} | ||
run: | | ||
echo "This does work: $(echo $CHALLENGE_THIRTEEN_KEY | openssl base64 | openssl base64)" |
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run Code Climate | ||
uses: erzz/[email protected] | ||
|
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
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,42 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Test minikube script (k8s) | ||
|
||
# Controls when the workflow will run | ||
on: | ||
pull_request: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
test-minikube: | ||
name: Test with minikube | ||
runs-on: ubuntu-latest | ||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Start minikube | ||
uses: medyagh/setup-minikube@master | ||
with: | ||
minikube-version: 1.24.0 | ||
driver: docker | ||
kubernetes-version: v1.21.9 | ||
- name: test script | ||
run: | | ||
kubectl apply -f k8s/secrets-config.yml | ||
kubectl apply -f k8s/secrets-secret.yml | ||
kubectl apply -f k8s/secret-challenge-deployment.yml | ||
while [[ $(kubectl get pods -l app=secret-challenge -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "waiting for secret-challenge" && sleep 2; done | ||
kubectl logs -l app=secret-challenge -f >> pod.log & | ||
kubectl expose deployment secret-challenge --type=LoadBalancer --port=8080 | ||
kubectl port-forward \ | ||
$(kubectl get pod -l app=secret-challenge -o jsonpath="{.items[0].metadata.name}") \ | ||
8080:8080 \ | ||
& | ||
echo "Do minikube delete to stop minikube from running and cleanup to start fresh again" | ||
echo "wait 20 seconds so we can check if vault-k8s-container works" | ||
sleep 20 | ||
curl http://localhost:8080/spoil-6 | ||
echo "logs from pod to make sure:" | ||
cat pod.log |
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
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
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,12 @@ | ||
FROM jeroenwillemsen/wrongsecrets:1.3.1-no-vault | ||
FROM jeroenwillemsen/wrongsecrets:1.3.7-no-vault | ||
|
||
ARG argBasedVersion="1.3.1" | ||
ARG argBasedVersion="1.3.7" | ||
ARG CANARY_URLS="http://canarytokens.com/terms/about/s7cfbdakys13246ewd8ivuvku/post.jsp,http://canarytokens.com/terms/about/y0all60b627gzp19ahqh7rl6j/post.jsp" | ||
ENV APP_VERSION=$argBasedVersion | ||
ENV K8S_ENV=Heroku(Docker) | ||
ENV canarytokenURLs=$CANARY_URLS | ||
ENV challengedockermtpath="/var/helpers" | ||
ENV keepasspath="/var/helpers/alibabacreds.kdbx" | ||
COPY .github/scripts/ /var/helpers | ||
COPY src/test/resources/alibabacreds.kdbx /var/helpers | ||
CMD java -Xms128m -Xmx128m -Xss512k -jar -Dserver.port=$PORT -XX:MaxRAMPercentage=75 -XX:MinRAMPercentage=25 -Dspring.profiles.active=without-vault application.jar |
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
Oops, something went wrong.