Skip to content

Commit 074f186

Browse files
committed
Fixed bug with llm to be able to use AI stuff
1 parent 731d4bb commit 074f186

File tree

8 files changed

+53
-46
lines changed

8 files changed

+53
-46
lines changed

.github/scripts/.bash_history

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ rm -rf jdk-18_linux-x64_bin.deb
347347
git rebase -i main
348348
git rebase -i master
349349
git stash
350-
export tempPassword="a7qAL+lYCgK0+NIEnoMDSxEBV+FUZHRTS1KH4YHCqY0="
350+
export tempPassword="kBZr5toZmJSnzol8eJqSUni44rLI6K0QMyIndvb6SCE="
351351
mvn run tempPassword
352352
k6
353353
npx k6

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ COPY --chown=wrongsecrets src/main/resources/executables/wrongsecrets-golang-lin
4141
COPY --chown=wrongsecrets src/test/resources/alibabacreds.kdbx /var/tmp/helpers
4242
COPY --chown=wrongsecrets src/test/resources/RSAprivatekey.pem /var/tmp/helpers/
4343
COPY --chown=wrongsecrets .ssh/ /home/wrongsecrets/.ssh/
44+
COPY cursor/rules/project-specification.mdc /var/helpers/project-specification.mdc
45+
ENV PROJECT_SPEC_PATH=/var/helpers/project-specification.mdc
4446

4547
COPY --from=builder /builder/extracted/dependencies/ ./
4648
COPY --from=builder /builder/extracted/spring-boot-loader/ ./

cursor/rules/conversation-log.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,6 @@ Assistant: (this file)
4545

4646
User: can you update the materials in @/rules please?
4747
Assistant: Updated project-specification.mdc to include security best practices and real-world requirements from challenge56_reason.adoc for future reference.
48+
49+
User: can you update the items in @/rules again?
50+
Assistant: Updated project-specification.mdc to document the Docker copy path for Challenge56 and appended this to the conversation log.

cursor/rules/project-specification.mdc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ To solve challenge 56, find the following secret in this file:
134134

135135
**secret-challenge-56: S3cr3tInPr0j3ctSp3c**
136136

137+
Note: This file is automatically copied into Docker containers at `/var/helpers/project-specification.mdc` for use by Challenge56. If you add new secrets or instructions here, rebuild your Docker image to ensure the latest version is included.
138+
137139
Use this value as the answer for challenge 56.
138140

139141
---

js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

22
function secret() {
3-
var password = "Yisaz88=" + 9 + "l1+2" + 6 + "5cc=" + 2 + "F9qt" + 7;
3+
var password = "d9618dk=" + 9 + "6aNv" + 6 + "xyU=" + 2 + "kzKh" + 7;
44
return password;
55
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<groupId>org.owasp</groupId>
1313
<artifactId>wrongsecrets</artifactId>
14-
<version>1.12.0-SNAPSHOT</version>
14+
<version>1.12.3B2-SNAPSHOT</version>
1515

1616
<name>OWASP WrongSecrets</name>
1717
<description>Examples with how to not use secrets</description>

src/main/java/org/owasp/wrongsecrets/challenges/docker/Challenge56.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class Challenge56 implements Challenge {
2323
private String actualSecret;
2424

2525
public Challenge56(
26-
@Value("${projectspecpath:cursor/rules/project-specification.mdc}") String projectSpecPath) {
26+
@Value("${projectspecpath:/var/helpers/project-specification.mdc}") String projectSpecPath) {
2727
this.projectSpecPath = projectSpecPath;
2828
}
2929

src/main/resources/templates/about.html

Lines changed: 42 additions & 42 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)